@cosmotech/api-ts 5.0.1 → 5.1.0-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -2
- package/api.ts +369 -411
- package/base.ts +1 -1
- package/common.ts +17 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +10 -1
- package/dist/api.js +352 -262
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +7 -1
- package/dist/common.js +19 -4
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Runner.md +2 -0
- package/docs/RunnerStatus.md +11 -0
- package/docs/WorkspaceWebApp.md +3 -3
- package/index.ts +1 -1
- package/package.json +2 -2
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Platform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.0
|
|
5
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.0
|
|
8
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Platform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.0
|
|
5
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,6 +23,12 @@ export declare const setBasicAuthToObject: (object: any, configuration?: Configu
|
|
|
23
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
24
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
25
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
26
|
+
/**
|
|
27
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
28
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
30
|
+
*/
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
26
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
27
33
|
export declare const toPathString: (url: URL) => string;
|
|
28
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.0
|
|
8
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -60,7 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
63
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
64
|
var base_1 = require("./base");
|
|
65
65
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
66
66
|
/**
|
|
@@ -162,7 +162,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
|
|
|
162
162
|
if (parameter == null)
|
|
163
163
|
return;
|
|
164
164
|
if (typeof parameter === "object") {
|
|
165
|
-
if (Array.isArray(parameter)) {
|
|
165
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
166
166
|
parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
|
|
167
167
|
}
|
|
168
168
|
else {
|
|
@@ -190,13 +190,28 @@ var setSearchParams = function (url) {
|
|
|
190
190
|
url.search = searchParams.toString();
|
|
191
191
|
};
|
|
192
192
|
exports.setSearchParams = setSearchParams;
|
|
193
|
+
/**
|
|
194
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
195
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
196
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
197
|
+
*/
|
|
198
|
+
// @ts-ignore
|
|
199
|
+
var replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
200
|
+
if (value instanceof Set) {
|
|
201
|
+
return Array.from(value);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
return value;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
193
208
|
var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
194
209
|
var nonString = typeof value !== 'string';
|
|
195
210
|
var needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
196
211
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
197
212
|
: nonString;
|
|
198
213
|
return needsSerialization
|
|
199
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
214
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
200
215
|
: (value || "");
|
|
201
216
|
};
|
|
202
217
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Platform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.0
|
|
5
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.0
|
|
7
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,8 +49,8 @@ var Configuration = /** @class */ (function () {
|
|
|
49
49
|
* @return True if the given MIME is JSON, false otherwise.
|
|
50
50
|
*/
|
|
51
51
|
Configuration.prototype.isJsonMime = function (mime) {
|
|
52
|
-
var jsonMime =
|
|
53
|
-
return mime !== null &&
|
|
52
|
+
var jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
53
|
+
return mime !== null && jsonMime.test(mime);
|
|
54
54
|
};
|
|
55
55
|
return Configuration;
|
|
56
56
|
}());
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cosmo Tech Platform API
|
|
3
3
|
* Cosmo Tech Platform API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.0
|
|
5
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
6
6
|
* Contact: platform@cosmotech.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
* Cosmo Tech Platform API
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.0
|
|
8
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
9
9
|
* Contact: platform@cosmotech.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Runner.md
CHANGED
|
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**runSizing** | [**RunnerResourceSizing**](RunnerResourceSizing.md) | definition of resources needed for the runner run | [optional] [default to undefined]
|
|
26
26
|
**parametersValues** | [**Array<RunnerRunTemplateParameterValue>**](RunnerRunTemplateParameterValue.md) | the list of Solution Run Template parameters values | [default to undefined]
|
|
27
27
|
**lastRunInfo** | [**LastRunInfo**](LastRunInfo.md) | last run info from current runner | [default to undefined]
|
|
28
|
+
**status** | [**RunnerStatus**](RunnerStatus.md) | | [optional] [default to undefined]
|
|
28
29
|
**validationStatus** | [**RunnerValidationStatus**](RunnerValidationStatus.md) | | [default to undefined]
|
|
29
30
|
**security** | [**RunnerSecurity**](RunnerSecurity.md) | | [default to undefined]
|
|
30
31
|
|
|
@@ -53,6 +54,7 @@ const instance: Runner = {
|
|
|
53
54
|
runSizing,
|
|
54
55
|
parametersValues,
|
|
55
56
|
lastRunInfo,
|
|
57
|
+
status,
|
|
56
58
|
validationStatus,
|
|
57
59
|
security,
|
|
58
60
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# RunnerStatus
|
|
2
|
+
|
|
3
|
+
the status of the runner
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Ok` (value: `'Ok'`)
|
|
8
|
+
|
|
9
|
+
* `Archived` (value: `'Archived'`)
|
|
10
|
+
|
|
11
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/WorkspaceWebApp.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# WorkspaceWebApp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
a Workspace Web Application
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**url** | **string** |
|
|
10
|
-
**iframes** | **{ [key: string]: any; }** |
|
|
9
|
+
**url** | **string** | the Workspace Web Application URL | [default to undefined]
|
|
10
|
+
**iframes** | **{ [key: string]: any; }** | a map of iframeKey/iframeURL | [optional] [default to undefined]
|
|
11
11
|
**_options** | **{ [key: string]: any; }** | free form options for Web Application | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cosmo Tech Platform API
|
|
5
5
|
* Cosmo Tech Platform API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.0
|
|
7
|
+
* The version of the OpenAPI document: 5.1.0-rc2
|
|
8
8
|
* Contact: platform@cosmotech.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmotech/api-ts",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0-rc2",
|
|
4
4
|
"description": "OpenAPI client for @cosmotech/api-ts",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prepare": "npm run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"axios": "^1.
|
|
25
|
+
"axios": "^1.16.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "12.11.5 - 12.20.42",
|