@teemill/platform 0.73.0 → 0.75.0

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.
@@ -124,6 +124,7 @@ docs/UpdateModerationItemRequest.md
124
124
  docs/UpdateOrderRequest.md
125
125
  docs/UpdateOrderRequestAdditionalFilesInner.md
126
126
  docs/UpdatePlatformFulfillmentStyleApplicationRequest.md
127
+ docs/UpdatePlatformFulfillmentStyleApplicationRequestDimensions.md
127
128
  docs/UpdatePlatformRequest.md
128
129
  docs/ValidationError.md
129
130
  docs/Variant.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/platform@0.73.0
1
+ ## @teemill/platform@0.75.0
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.73.0 --save
39
+ npm install @teemill/platform@0.75.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -223,6 +223,7 @@ Class | Method | HTTP request | Description
223
223
  - [UpdateOrderRequest](docs/UpdateOrderRequest.md)
224
224
  - [UpdateOrderRequestAdditionalFilesInner](docs/UpdateOrderRequestAdditionalFilesInner.md)
225
225
  - [UpdatePlatformFulfillmentStyleApplicationRequest](docs/UpdatePlatformFulfillmentStyleApplicationRequest.md)
226
+ - [UpdatePlatformFulfillmentStyleApplicationRequestDimensions](docs/UpdatePlatformFulfillmentStyleApplicationRequestDimensions.md)
226
227
  - [UpdatePlatformRequest](docs/UpdatePlatformRequest.md)
227
228
  - [ValidationError](docs/ValidationError.md)
228
229
  - [Variant](docs/Variant.md)
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.73.0
7
+ * The version of the OpenAPI document: 0.75.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1367,7 +1367,18 @@ export interface UpdateOrderRequestAdditionalFilesInner {
1367
1367
  'name': string;
1368
1368
  }
1369
1369
  export interface UpdatePlatformFulfillmentStyleApplicationRequest {
1370
+ /**
1371
+ * The design file to be updated, as a base-64 encoded data URI.
1372
+ */
1370
1373
  'design'?: string;
1374
+ 'dimensions'?: UpdatePlatformFulfillmentStyleApplicationRequestDimensions;
1375
+ }
1376
+ /**
1377
+ * The dimensions of the application in mm. Must be provided alongside design.
1378
+ */
1379
+ export interface UpdatePlatformFulfillmentStyleApplicationRequestDimensions {
1380
+ 'width': number;
1381
+ 'height': number;
1371
1382
  }
1372
1383
  export interface UpdatePlatformRequest {
1373
1384
  'logos'?: Array<PlatformLogo>;
package/base.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.73.0
7
+ * The version of the OpenAPI document: 0.75.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.73.0
7
+ * The version of the OpenAPI document: 0.75.0
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
@@ -3,7 +3,7 @@
3
3
  * Platform
4
4
  * Manage Your podOS platform
5
5
  *
6
- * The version of the OpenAPI document: 0.73.0
6
+ * The version of the OpenAPI document: 0.75.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1305,7 +1305,18 @@ export interface UpdateOrderRequestAdditionalFilesInner {
1305
1305
  'name': string;
1306
1306
  }
1307
1307
  export interface UpdatePlatformFulfillmentStyleApplicationRequest {
1308
+ /**
1309
+ * The design file to be updated, as a base-64 encoded data URI.
1310
+ */
1308
1311
  'design'?: string;
1312
+ 'dimensions'?: UpdatePlatformFulfillmentStyleApplicationRequestDimensions;
1313
+ }
1314
+ /**
1315
+ * The dimensions of the application in mm. Must be provided alongside design.
1316
+ */
1317
+ export interface UpdatePlatformFulfillmentStyleApplicationRequestDimensions {
1318
+ 'width': number;
1319
+ 'height': number;
1309
1320
  }
1310
1321
  export interface UpdatePlatformRequest {
1311
1322
  'logos'?: Array<PlatformLogo>;
package/dist/api.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.73.0
8
+ * The version of the OpenAPI document: 0.75.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
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
  * Platform
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.73.0
8
+ * The version of the OpenAPI document: 0.75.0
9
9
  *
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
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.73.0
5
+ * The version of the OpenAPI document: 0.75.0
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.73.0
8
+ * The version of the OpenAPI document: 0.75.0
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;
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Platform
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.73.0
7
+ * The version of the OpenAPI document: 0.75.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1305,7 +1305,18 @@ export interface UpdateOrderRequestAdditionalFilesInner {
1305
1305
  'name': string;
1306
1306
  }
1307
1307
  export interface UpdatePlatformFulfillmentStyleApplicationRequest {
1308
+ /**
1309
+ * The design file to be updated, as a base-64 encoded data URI.
1310
+ */
1308
1311
  'design'?: string;
1312
+ 'dimensions'?: UpdatePlatformFulfillmentStyleApplicationRequestDimensions;
1313
+ }
1314
+ /**
1315
+ * The dimensions of the application in mm. Must be provided alongside design.
1316
+ */
1317
+ export interface UpdatePlatformFulfillmentStyleApplicationRequestDimensions {
1318
+ 'width': number;
1319
+ 'height': number;
1309
1320
  }
1310
1321
  export interface UpdatePlatformRequest {
1311
1322
  'logos'?: Array<PlatformLogo>;
package/dist/esm/api.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.73.0
7
+ * The version of the OpenAPI document: 0.75.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.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.73.0
7
+ * The version of the OpenAPI document: 0.75.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.73.0
5
+ * The version of the OpenAPI document: 0.75.0
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
@@ -4,7 +4,7 @@
4
4
  * Platform
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.73.0
7
+ * The version of the OpenAPI document: 0.75.0
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
  /**
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Platform
4
4
  * Manage Your podOS platform
5
5
  *
6
- * The version of the OpenAPI document: 0.73.0
6
+ * The version of the OpenAPI document: 0.75.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.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.73.0
7
+ * The version of the OpenAPI document: 0.75.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.73.0
5
+ * The version of the OpenAPI document: 0.75.0
6
6
  *
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
  * Platform
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.73.0
8
+ * The version of the OpenAPI document: 0.75.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **design** | **string** | | [optional] [default to undefined]
8
+ **design** | **string** | The design file to be updated, as a base-64 encoded data URI. | [optional] [default to undefined]
9
+ **dimensions** | [**UpdatePlatformFulfillmentStyleApplicationRequestDimensions**](UpdatePlatformFulfillmentStyleApplicationRequestDimensions.md) | | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
@@ -14,6 +15,7 @@ import { UpdatePlatformFulfillmentStyleApplicationRequest } from '@teemill/platf
14
15
 
15
16
  const instance: UpdatePlatformFulfillmentStyleApplicationRequest = {
16
17
  design,
18
+ dimensions,
17
19
  };
18
20
  ```
19
21
 
@@ -0,0 +1,23 @@
1
+ # UpdatePlatformFulfillmentStyleApplicationRequestDimensions
2
+
3
+ The dimensions of the application in mm. Must be provided alongside design.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **width** | **number** | | [default to undefined]
10
+ **height** | **number** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UpdatePlatformFulfillmentStyleApplicationRequestDimensions } from '@teemill/platform';
16
+
17
+ const instance: UpdatePlatformFulfillmentStyleApplicationRequestDimensions = {
18
+ width,
19
+ height,
20
+ };
21
+ ```
22
+
23
+ [[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/index.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.73.0
7
+ * The version of the OpenAPI document: 0.75.0
8
8
  *
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": "@teemill/platform",
3
- "version": "0.73.0",
3
+ "version": "0.75.0",
4
4
  "description": "OpenAPI client for @teemill/platform",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {