@teemill/platform 0.72.1 → 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 +9 -1
- package/base.ts +1 -1
- package/common.ts +15 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +9 -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 +9 -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/docs/Platform.md +2 -0
- package/docs/UpdatePlatformRequest.md +2 -0
- 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
|
@@ -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).
|
|
@@ -1093,6 +1093,10 @@ export interface Platform {
|
|
|
1093
1093
|
* The maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX.
|
|
1094
1094
|
*/
|
|
1095
1095
|
'slaApplicationFloat': number;
|
|
1096
|
+
/**
|
|
1097
|
+
* When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status.
|
|
1098
|
+
*/
|
|
1099
|
+
'refundClientWhenProcessing': boolean;
|
|
1096
1100
|
}
|
|
1097
1101
|
export interface PlatformLogo {
|
|
1098
1102
|
'url': string;
|
|
@@ -1383,6 +1387,10 @@ export interface UpdatePlatformRequest {
|
|
|
1383
1387
|
* Set the maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX.
|
|
1384
1388
|
*/
|
|
1385
1389
|
'slaApplicationFloat'?: number;
|
|
1390
|
+
/**
|
|
1391
|
+
* When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status.
|
|
1392
|
+
*/
|
|
1393
|
+
'refundClientWhenProcessing'?: boolean;
|
|
1386
1394
|
}
|
|
1387
1395
|
export interface ValidationError {
|
|
1388
1396
|
'message': string;
|
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
|
@@ -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).
|
|
@@ -1043,6 +1043,10 @@ export interface Platform {
|
|
|
1043
1043
|
* The maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX.
|
|
1044
1044
|
*/
|
|
1045
1045
|
'slaApplicationFloat': number;
|
|
1046
|
+
/**
|
|
1047
|
+
* When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status.
|
|
1048
|
+
*/
|
|
1049
|
+
'refundClientWhenProcessing': boolean;
|
|
1046
1050
|
}
|
|
1047
1051
|
export interface PlatformLogo {
|
|
1048
1052
|
'url': string;
|
|
@@ -1321,6 +1325,10 @@ export interface UpdatePlatformRequest {
|
|
|
1321
1325
|
* Set the maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX.
|
|
1322
1326
|
*/
|
|
1323
1327
|
'slaApplicationFloat'?: number;
|
|
1328
|
+
/**
|
|
1329
|
+
* When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status.
|
|
1330
|
+
*/
|
|
1331
|
+
'refundClientWhenProcessing'?: boolean;
|
|
1324
1332
|
}
|
|
1325
1333
|
export interface ValidationError {
|
|
1326
1334
|
'message': string;
|
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
|
@@ -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).
|
|
@@ -1043,6 +1043,10 @@ export interface Platform {
|
|
|
1043
1043
|
* The maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX.
|
|
1044
1044
|
*/
|
|
1045
1045
|
'slaApplicationFloat': number;
|
|
1046
|
+
/**
|
|
1047
|
+
* When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status.
|
|
1048
|
+
*/
|
|
1049
|
+
'refundClientWhenProcessing': boolean;
|
|
1046
1050
|
}
|
|
1047
1051
|
export interface PlatformLogo {
|
|
1048
1052
|
'url': string;
|
|
@@ -1321,6 +1325,10 @@ export interface UpdatePlatformRequest {
|
|
|
1321
1325
|
* Set the maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX.
|
|
1322
1326
|
*/
|
|
1323
1327
|
'slaApplicationFloat'?: number;
|
|
1328
|
+
/**
|
|
1329
|
+
* When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status.
|
|
1330
|
+
*/
|
|
1331
|
+
'refundClientWhenProcessing'?: boolean;
|
|
1324
1332
|
}
|
|
1325
1333
|
export interface ValidationError {
|
|
1326
1334
|
'message': string;
|
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/docs/Platform.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**customerServiceEmail** | **string** | Recipient of customer service emails | [default to undefined]
|
|
20
20
|
**slaFloat** | **number** | The maximum number of days it can take to dispatch an order to adjust the comms in cart, receipt and CX. | [default to undefined]
|
|
21
21
|
**slaApplicationFloat** | **number** | The maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX. | [default to undefined]
|
|
22
|
+
**refundClientWhenProcessing** | **boolean** | When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status. | [default to undefined]
|
|
22
23
|
|
|
23
24
|
## Example
|
|
24
25
|
|
|
@@ -40,6 +41,7 @@ const instance: Platform = {
|
|
|
40
41
|
customerServiceEmail,
|
|
41
42
|
slaFloat,
|
|
42
43
|
slaApplicationFloat,
|
|
44
|
+
refundClientWhenProcessing,
|
|
43
45
|
};
|
|
44
46
|
```
|
|
45
47
|
|
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**customerServiceEmail** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**slaFloat** | **number** | Set the maximum number of days it can take to dispatch an order to adjust the comms in cart, receipt and CX. | [optional] [default to undefined]
|
|
18
18
|
**slaApplicationFloat** | **number** | Set the maximum number of days it can take to dispatch an order containing products with application technologies, to adjust the comms in cart, receipt and CX. | [optional] [default to undefined]
|
|
19
|
+
**refundClientWhenProcessing** | **boolean** | When true, billing refunds are still issued to the client even if the order has begun processing in the factory. When false (default), the client is not refunded for orders that have entered the `processing` status. | [optional] [default to undefined]
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -34,6 +35,7 @@ const instance: UpdatePlatformRequest = {
|
|
|
34
35
|
customerServiceEmail,
|
|
35
36
|
slaFloat,
|
|
36
37
|
slaApplicationFloat,
|
|
38
|
+
refundClientWhenProcessing,
|
|
37
39
|
};
|
|
38
40
|
```
|
|
39
41
|
|
package/index.ts
CHANGED