Skip to content

Commit

Permalink
[sherlock-build] generated from d85967f
Browse files Browse the repository at this point in the history
  • Loading branch information
broadbot committed Oct 18, 2024
1 parent d85967f commit 0d485c0
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion sherlock-python-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Note: this API will try to load and return associations in responses, so clients
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: development
- Package version: v1.6.6
- Package version: v1.6.7
- Generator version: 7.10.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sherlock_python_client"
version = "v1.6.6"
version = "v1.6.7"
description = "Sherlock"
authors = ["DSP DevOps <[email protected]>"]
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "sherlock-python-client"
VERSION = "v1.6.6"
VERSION = "v1.6.7"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/sherlock_python_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "v1.6.6"
__version__ = "v1.6.7"

# import apis into sdk package
from sherlock_python_client.api.app_versions_api import AppVersionsApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/v1.6.6/python'
self.user_agent = 'OpenAPI-Generator/v1.6.7/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: development\n"\
"SDK Package Version: v1.6.6".\
"SDK Package Version: v1.6.7".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion sherlock-python-client/sherlock_python_client_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Note: this API will try to load and return associations in responses, so clients
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: development
- Package version: v1.6.6
- Package version: v1.6.7
- Generator version: 7.10.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Expand Down
4 changes: 2 additions & 2 deletions sherlock-typescript-client/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @sherlock-js-client/sherlock@v1.6.6
## @sherlock-js-client/sherlock@v1.6.7

This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install @sherlock-js-client/[email protected].6 --save
npm install @sherlock-js-client/[email protected].7 --save
```

_unPublished (not recommended):_
Expand Down
4 changes: 2 additions & 2 deletions sherlock-typescript-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sherlock-typescript-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sherlock-js-client/sherlock",
"version": "v1.6.6",
"version": "v1.6.7",
"description": "OpenAPI client for @sherlock-js-client/sherlock",
"author": "OpenAPI-Generator",
"repository": {
Expand Down
5 changes: 5 additions & 0 deletions sherlock-typescript-client/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ function querystringSingleKey(key: string, value: string | number | null | undef
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
}

export function exists(json: any, key: string) {
const value = json[key];
return value !== null && value !== undefined;
}

export function mapValues(data: any, fn: (item: any) => any) {
return Object.keys(data).reduce(
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
Expand Down

0 comments on commit 0d485c0

Please sign in to comment.