@teemill/platform 0.73.0 → 0.74.1
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/README.md +2 -2
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +15 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +6 -1
- package/dist/common.js +15 -4
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +6 -1
- package/dist/esm/common.js +13 -3
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.74.1
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/platform@0.
|
|
39
|
+
npm install @teemill/platform@0.74.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
package/base.ts
CHANGED
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.74.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -86,7 +86,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
86
86
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
87
87
|
if (parameter == null) return;
|
|
88
88
|
if (typeof parameter === "object") {
|
|
89
|
-
if (Array.isArray(parameter)) {
|
|
89
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
90
90
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
@@ -115,6 +115,18 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
|
115
115
|
url.search = searchParams.toString();
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
120
|
+
* @export
|
|
121
|
+
*/
|
|
122
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key: string, value: unknown) {
|
|
123
|
+
if (value instanceof Set) {
|
|
124
|
+
return Array.from(value);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
118
130
|
/**
|
|
119
131
|
*
|
|
120
132
|
* @export
|
|
@@ -125,7 +137,7 @@ export const serializeDataIfNeeded = function (value: any, requestOptions: any,
|
|
|
125
137
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
126
138
|
: nonString;
|
|
127
139
|
return needsSerialization
|
|
128
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
140
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
129
141
|
: (value || "");
|
|
130
142
|
}
|
|
131
143
|
|
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.74.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.74.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
25
|
+
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;
|
|
26
26
|
const base_1 = require("./base");
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
@@ -99,7 +99,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
99
99
|
if (parameter == null)
|
|
100
100
|
return;
|
|
101
101
|
if (typeof parameter === "object") {
|
|
102
|
-
if (Array.isArray(parameter)) {
|
|
102
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
103
103
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
@@ -125,6 +125,17 @@ const setSearchParams = function (url, ...objects) {
|
|
|
125
125
|
url.search = searchParams.toString();
|
|
126
126
|
};
|
|
127
127
|
exports.setSearchParams = setSearchParams;
|
|
128
|
+
/**
|
|
129
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
130
|
+
* @export
|
|
131
|
+
*/
|
|
132
|
+
const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
133
|
+
if (value instanceof Set) {
|
|
134
|
+
return Array.from(value);
|
|
135
|
+
}
|
|
136
|
+
return value;
|
|
137
|
+
};
|
|
138
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
128
139
|
/**
|
|
129
140
|
*
|
|
130
141
|
* @export
|
|
@@ -135,7 +146,7 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
135
146
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
136
147
|
: nonString;
|
|
137
148
|
return needsSerialization
|
|
138
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
149
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
139
150
|
: (value || "");
|
|
140
151
|
};
|
|
141
152
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
package/dist/esm/api.js
CHANGED
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.74.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.74.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,7 +91,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
91
91
|
if (parameter == null)
|
|
92
92
|
return;
|
|
93
93
|
if (typeof parameter === "object") {
|
|
94
|
-
if (Array.isArray(parameter)) {
|
|
94
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
95
95
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
@@ -116,6 +116,16 @@ export const setSearchParams = function (url, ...objects) {
|
|
|
116
116
|
setFlattenedQueryParams(searchParams, objects);
|
|
117
117
|
url.search = searchParams.toString();
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
124
|
+
if (value instanceof Set) {
|
|
125
|
+
return Array.from(value);
|
|
126
|
+
}
|
|
127
|
+
return value;
|
|
128
|
+
};
|
|
119
129
|
/**
|
|
120
130
|
*
|
|
121
131
|
* @export
|
|
@@ -126,7 +136,7 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
126
136
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
137
|
: nonString;
|
|
128
138
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
139
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
140
|
: (value || "");
|
|
131
141
|
};
|
|
132
142
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED