@teemill/warehouse-prefab-applications 0.9.0 → 0.10.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/warehouse-prefab-applications@0.9.0
1
+ ## @teemill/warehouse-prefab-applications@0.10.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/warehouse-prefab-applications@0.9.0 --save
39
+ npm install @teemill/warehouse-prefab-applications@0.10.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -277,6 +277,8 @@ export interface PrefabApplication {
277
277
  }
278
278
 
279
279
  export const PrefabApplicationStatusEnum = {
280
+ Ready: 'ready',
281
+ Cancelled: 'cancelled',
280
282
  Processing: 'processing',
281
283
  Complete: 'complete'
282
284
  } as const;
@@ -1552,6 +1554,54 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
1552
1554
  options: localVarRequestOptions,
1553
1555
  };
1554
1556
  },
1557
+ /**
1558
+ * Delete a tray
1559
+ * @summary Delete tray
1560
+ * @param {string} project What project it is
1561
+ * @param {string} trayId Tray ID
1562
+ * @param {*} [options] Override http request option.
1563
+ * @throws {RequiredError}
1564
+ */
1565
+ deleteTray: async (project: string, trayId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1566
+ // verify required parameter 'project' is not null or undefined
1567
+ assertParamExists('deleteTray', 'project', project)
1568
+ // verify required parameter 'trayId' is not null or undefined
1569
+ assertParamExists('deleteTray', 'trayId', trayId)
1570
+ const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
1571
+ .replace(`{${"trayId"}}`, encodeURIComponent(String(trayId)));
1572
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1573
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1574
+ let baseOptions;
1575
+ if (configuration) {
1576
+ baseOptions = configuration.baseOptions;
1577
+ }
1578
+
1579
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1580
+ const localVarHeaderParameter = {} as any;
1581
+ const localVarQueryParameter = {} as any;
1582
+
1583
+ // authentication session-oauth required
1584
+ // oauth required
1585
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1586
+
1587
+ // authentication api-key required
1588
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1589
+
1590
+ if (project !== undefined) {
1591
+ localVarQueryParameter['project'] = project;
1592
+ }
1593
+
1594
+
1595
+
1596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1598
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1599
+
1600
+ return {
1601
+ url: toPathString(localVarUrlObj),
1602
+ options: localVarRequestOptions,
1603
+ };
1604
+ },
1555
1605
  /**
1556
1606
  * Get a tray of applications
1557
1607
  * @summary Get tray
@@ -1975,6 +2025,20 @@ export const TraysApiFp = function(configuration?: Configuration) {
1975
2025
  const localVarOperationServerBasePath = operationServerMap['TraysApi.createTray']?.[localVarOperationServerIndex]?.url;
1976
2026
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1977
2027
  },
2028
+ /**
2029
+ * Delete a tray
2030
+ * @summary Delete tray
2031
+ * @param {string} project What project it is
2032
+ * @param {string} trayId Tray ID
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ */
2036
+ async deleteTray(project: string, trayId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2037
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTray(project, trayId, options);
2038
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2039
+ const localVarOperationServerBasePath = operationServerMap['TraysApi.deleteTray']?.[localVarOperationServerIndex]?.url;
2040
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2041
+ },
1978
2042
  /**
1979
2043
  * Get a tray of applications
1980
2044
  * @summary Get tray
@@ -2104,6 +2168,16 @@ export const TraysApiFactory = function (configuration?: Configuration, basePath
2104
2168
  createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray> {
2105
2169
  return localVarFp.createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(axios, basePath));
2106
2170
  },
2171
+ /**
2172
+ * Delete a tray
2173
+ * @summary Delete tray
2174
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
2175
+ * @param {*} [options] Override http request option.
2176
+ * @throws {RequiredError}
2177
+ */
2178
+ deleteTray(requestParameters: TraysApiDeleteTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2179
+ return localVarFp.deleteTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(axios, basePath));
2180
+ },
2107
2181
  /**
2108
2182
  * Get a tray of applications
2109
2183
  * @summary Get tray
@@ -2198,6 +2272,27 @@ export interface TraysApiCreateTrayRequest {
2198
2272
  readonly createTrayRequest: CreateTrayRequest
2199
2273
  }
2200
2274
 
2275
+ /**
2276
+ * Request parameters for deleteTray operation in TraysApi.
2277
+ * @export
2278
+ * @interface TraysApiDeleteTrayRequest
2279
+ */
2280
+ export interface TraysApiDeleteTrayRequest {
2281
+ /**
2282
+ * What project it is
2283
+ * @type {string}
2284
+ * @memberof TraysApiDeleteTray
2285
+ */
2286
+ readonly project: string
2287
+
2288
+ /**
2289
+ * Tray ID
2290
+ * @type {string}
2291
+ * @memberof TraysApiDeleteTray
2292
+ */
2293
+ readonly trayId: string
2294
+ }
2295
+
2201
2296
  /**
2202
2297
  * Request parameters for getTray operation in TraysApi.
2203
2298
  * @export
@@ -2441,6 +2536,18 @@ export class TraysApi extends BaseAPI {
2441
2536
  return TraysApiFp(this.configuration).createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(this.axios, this.basePath));
2442
2537
  }
2443
2538
 
2539
+ /**
2540
+ * Delete a tray
2541
+ * @summary Delete tray
2542
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
2543
+ * @param {*} [options] Override http request option.
2544
+ * @throws {RequiredError}
2545
+ * @memberof TraysApi
2546
+ */
2547
+ public deleteTray(requestParameters: TraysApiDeleteTrayRequest, options?: RawAxiosRequestConfig) {
2548
+ return TraysApiFp(this.configuration).deleteTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(this.axios, this.basePath));
2549
+ }
2550
+
2444
2551
  /**
2445
2552
  * Get a tray of applications
2446
2553
  * @summary Get tray
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -92,7 +92,7 @@ export class Configuration {
92
92
  this.baseOptions = {
93
93
  headers: {
94
94
  ...param.baseOptions?.headers,
95
- 'User-Agent': "OpenAPI-Generator/0.9.0/typescript-axios"
95
+ 'User-Agent': "OpenAPI-Generator/0.10.0/typescript-axios"
96
96
  },
97
97
  ...param.baseOptions
98
98
  };
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -263,6 +263,8 @@ export interface PrefabApplication {
263
263
  'updatedAt': string | null;
264
264
  }
265
265
  export declare const PrefabApplicationStatusEnum: {
266
+ readonly Ready: "ready";
267
+ readonly Cancelled: "cancelled";
266
268
  readonly Processing: "processing";
267
269
  readonly Complete: "complete";
268
270
  };
@@ -1018,6 +1020,15 @@ export declare const TraysApiAxiosParamCreator: (configuration?: Configuration)
1018
1020
  * @throws {RequiredError}
1019
1021
  */
1020
1022
  createTray: (project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1023
+ /**
1024
+ * Delete a tray
1025
+ * @summary Delete tray
1026
+ * @param {string} project What project it is
1027
+ * @param {string} trayId Tray ID
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ deleteTray: (project: string, trayId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1021
1032
  /**
1022
1033
  * Get a tray of applications
1023
1034
  * @summary Get tray
@@ -1107,6 +1118,15 @@ export declare const TraysApiFp: (configuration?: Configuration) => {
1107
1118
  * @throws {RequiredError}
1108
1119
  */
1109
1120
  createTray(project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tray>>;
1121
+ /**
1122
+ * Delete a tray
1123
+ * @summary Delete tray
1124
+ * @param {string} project What project it is
1125
+ * @param {string} trayId Tray ID
1126
+ * @param {*} [options] Override http request option.
1127
+ * @throws {RequiredError}
1128
+ */
1129
+ deleteTray(project: string, trayId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1110
1130
  /**
1111
1131
  * Get a tray of applications
1112
1132
  * @summary Get tray
@@ -1195,6 +1215,14 @@ export declare const TraysApiFactory: (configuration?: Configuration, basePath?:
1195
1215
  * @throws {RequiredError}
1196
1216
  */
1197
1217
  createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray>;
1218
+ /**
1219
+ * Delete a tray
1220
+ * @summary Delete tray
1221
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1222
+ * @param {*} [options] Override http request option.
1223
+ * @throws {RequiredError}
1224
+ */
1225
+ deleteTray(requestParameters: TraysApiDeleteTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1198
1226
  /**
1199
1227
  * Get a tray of applications
1200
1228
  * @summary Get tray
@@ -1271,6 +1299,25 @@ export interface TraysApiCreateTrayRequest {
1271
1299
  */
1272
1300
  readonly createTrayRequest: CreateTrayRequest;
1273
1301
  }
1302
+ /**
1303
+ * Request parameters for deleteTray operation in TraysApi.
1304
+ * @export
1305
+ * @interface TraysApiDeleteTrayRequest
1306
+ */
1307
+ export interface TraysApiDeleteTrayRequest {
1308
+ /**
1309
+ * What project it is
1310
+ * @type {string}
1311
+ * @memberof TraysApiDeleteTray
1312
+ */
1313
+ readonly project: string;
1314
+ /**
1315
+ * Tray ID
1316
+ * @type {string}
1317
+ * @memberof TraysApiDeleteTray
1318
+ */
1319
+ readonly trayId: string;
1320
+ }
1274
1321
  /**
1275
1322
  * Request parameters for getTray operation in TraysApi.
1276
1323
  * @export
@@ -1486,6 +1533,15 @@ export declare class TraysApi extends BaseAPI {
1486
1533
  * @memberof TraysApi
1487
1534
  */
1488
1535
  createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tray, any>>;
1536
+ /**
1537
+ * Delete a tray
1538
+ * @summary Delete tray
1539
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ * @memberof TraysApi
1543
+ */
1544
+ deleteTray(requestParameters: TraysApiDeleteTrayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1489
1545
  /**
1490
1546
  * Get a tray of applications
1491
1547
  * @summary Get tray
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
6
  * Manage PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,6 +36,8 @@ exports.BatchStatusEnum = {
36
36
  Failed: 'failed'
37
37
  };
38
38
  exports.PrefabApplicationStatusEnum = {
39
+ Ready: 'ready',
40
+ Cancelled: 'cancelled',
39
41
  Processing: 'processing',
40
42
  Complete: 'complete'
41
43
  };
@@ -827,6 +829,46 @@ const TraysApiAxiosParamCreator = function (configuration) {
827
829
  options: localVarRequestOptions,
828
830
  };
829
831
  }),
832
+ /**
833
+ * Delete a tray
834
+ * @summary Delete tray
835
+ * @param {string} project What project it is
836
+ * @param {string} trayId Tray ID
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ deleteTray: (project_1, trayId_1, ...args_1) => __awaiter(this, [project_1, trayId_1, ...args_1], void 0, function* (project, trayId, options = {}) {
841
+ // verify required parameter 'project' is not null or undefined
842
+ (0, common_1.assertParamExists)('deleteTray', 'project', project);
843
+ // verify required parameter 'trayId' is not null or undefined
844
+ (0, common_1.assertParamExists)('deleteTray', 'trayId', trayId);
845
+ const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
846
+ .replace(`{${"trayId"}}`, encodeURIComponent(String(trayId)));
847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
848
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
849
+ let baseOptions;
850
+ if (configuration) {
851
+ baseOptions = configuration.baseOptions;
852
+ }
853
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
854
+ const localVarHeaderParameter = {};
855
+ const localVarQueryParameter = {};
856
+ // authentication session-oauth required
857
+ // oauth required
858
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
859
+ // authentication api-key required
860
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
861
+ if (project !== undefined) {
862
+ localVarQueryParameter['project'] = project;
863
+ }
864
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
866
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
867
+ return {
868
+ url: (0, common_1.toPathString)(localVarUrlObj),
869
+ options: localVarRequestOptions,
870
+ };
871
+ }),
830
872
  /**
831
873
  * Get a tray of applications
832
874
  * @summary Get tray
@@ -1183,6 +1225,23 @@ const TraysApiFp = function (configuration) {
1183
1225
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1184
1226
  });
1185
1227
  },
1228
+ /**
1229
+ * Delete a tray
1230
+ * @summary Delete tray
1231
+ * @param {string} project What project it is
1232
+ * @param {string} trayId Tray ID
1233
+ * @param {*} [options] Override http request option.
1234
+ * @throws {RequiredError}
1235
+ */
1236
+ deleteTray(project, trayId, options) {
1237
+ return __awaiter(this, void 0, void 0, function* () {
1238
+ var _a, _b, _c;
1239
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTray(project, trayId, options);
1240
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1241
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TraysApi.deleteTray']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1242
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1243
+ });
1244
+ },
1186
1245
  /**
1187
1246
  * Get a tray of applications
1188
1247
  * @summary Get tray
@@ -1333,6 +1392,16 @@ const TraysApiFactory = function (configuration, basePath, axios) {
1333
1392
  createTray(requestParameters, options) {
1334
1393
  return localVarFp.createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(axios, basePath));
1335
1394
  },
1395
+ /**
1396
+ * Delete a tray
1397
+ * @summary Delete tray
1398
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1399
+ * @param {*} [options] Override http request option.
1400
+ * @throws {RequiredError}
1401
+ */
1402
+ deleteTray(requestParameters, options) {
1403
+ return localVarFp.deleteTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(axios, basePath));
1404
+ },
1336
1405
  /**
1337
1406
  * Get a tray of applications
1338
1407
  * @summary Get tray
@@ -1424,6 +1493,17 @@ class TraysApi extends base_1.BaseAPI {
1424
1493
  createTray(requestParameters, options) {
1425
1494
  return (0, exports.TraysApiFp)(this.configuration).createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(this.axios, this.basePath));
1426
1495
  }
1496
+ /**
1497
+ * Delete a tray
1498
+ * @summary Delete tray
1499
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ * @memberof TraysApi
1503
+ */
1504
+ deleteTray(requestParameters, options) {
1505
+ return (0, exports.TraysApiFp)(this.configuration).deleteTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(this.axios, this.basePath));
1506
+ }
1427
1507
  /**
1428
1508
  * Get a tray of applications
1429
1509
  * @summary Get tray
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
6
6
  * Manage PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
6
  * Manage PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
6
  * Manage PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,7 +23,7 @@ class Configuration {
23
23
  this.accessToken = param.accessToken;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
- this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.9.0/typescript-axios" }) }, param.baseOptions);
26
+ this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.10.0/typescript-axios" }) }, param.baseOptions);
27
27
  this.formDataCtor = param.formDataCtor;
28
28
  }
29
29
  /**
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -263,6 +263,8 @@ export interface PrefabApplication {
263
263
  'updatedAt': string | null;
264
264
  }
265
265
  export declare const PrefabApplicationStatusEnum: {
266
+ readonly Ready: "ready";
267
+ readonly Cancelled: "cancelled";
266
268
  readonly Processing: "processing";
267
269
  readonly Complete: "complete";
268
270
  };
@@ -1018,6 +1020,15 @@ export declare const TraysApiAxiosParamCreator: (configuration?: Configuration)
1018
1020
  * @throws {RequiredError}
1019
1021
  */
1020
1022
  createTray: (project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1023
+ /**
1024
+ * Delete a tray
1025
+ * @summary Delete tray
1026
+ * @param {string} project What project it is
1027
+ * @param {string} trayId Tray ID
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ deleteTray: (project: string, trayId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1021
1032
  /**
1022
1033
  * Get a tray of applications
1023
1034
  * @summary Get tray
@@ -1107,6 +1118,15 @@ export declare const TraysApiFp: (configuration?: Configuration) => {
1107
1118
  * @throws {RequiredError}
1108
1119
  */
1109
1120
  createTray(project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tray>>;
1121
+ /**
1122
+ * Delete a tray
1123
+ * @summary Delete tray
1124
+ * @param {string} project What project it is
1125
+ * @param {string} trayId Tray ID
1126
+ * @param {*} [options] Override http request option.
1127
+ * @throws {RequiredError}
1128
+ */
1129
+ deleteTray(project: string, trayId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1110
1130
  /**
1111
1131
  * Get a tray of applications
1112
1132
  * @summary Get tray
@@ -1195,6 +1215,14 @@ export declare const TraysApiFactory: (configuration?: Configuration, basePath?:
1195
1215
  * @throws {RequiredError}
1196
1216
  */
1197
1217
  createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray>;
1218
+ /**
1219
+ * Delete a tray
1220
+ * @summary Delete tray
1221
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1222
+ * @param {*} [options] Override http request option.
1223
+ * @throws {RequiredError}
1224
+ */
1225
+ deleteTray(requestParameters: TraysApiDeleteTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1198
1226
  /**
1199
1227
  * Get a tray of applications
1200
1228
  * @summary Get tray
@@ -1271,6 +1299,25 @@ export interface TraysApiCreateTrayRequest {
1271
1299
  */
1272
1300
  readonly createTrayRequest: CreateTrayRequest;
1273
1301
  }
1302
+ /**
1303
+ * Request parameters for deleteTray operation in TraysApi.
1304
+ * @export
1305
+ * @interface TraysApiDeleteTrayRequest
1306
+ */
1307
+ export interface TraysApiDeleteTrayRequest {
1308
+ /**
1309
+ * What project it is
1310
+ * @type {string}
1311
+ * @memberof TraysApiDeleteTray
1312
+ */
1313
+ readonly project: string;
1314
+ /**
1315
+ * Tray ID
1316
+ * @type {string}
1317
+ * @memberof TraysApiDeleteTray
1318
+ */
1319
+ readonly trayId: string;
1320
+ }
1274
1321
  /**
1275
1322
  * Request parameters for getTray operation in TraysApi.
1276
1323
  * @export
@@ -1486,6 +1533,15 @@ export declare class TraysApi extends BaseAPI {
1486
1533
  * @memberof TraysApi
1487
1534
  */
1488
1535
  createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tray, any>>;
1536
+ /**
1537
+ * Delete a tray
1538
+ * @summary Delete tray
1539
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ * @memberof TraysApi
1543
+ */
1544
+ deleteTray(requestParameters: TraysApiDeleteTrayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1489
1545
  /**
1490
1546
  * Get a tray of applications
1491
1547
  * @summary Get tray
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,6 +33,8 @@ export const BatchStatusEnum = {
33
33
  Failed: 'failed'
34
34
  };
35
35
  export const PrefabApplicationStatusEnum = {
36
+ Ready: 'ready',
37
+ Cancelled: 'cancelled',
36
38
  Processing: 'processing',
37
39
  Complete: 'complete'
38
40
  };
@@ -816,6 +818,46 @@ export const TraysApiAxiosParamCreator = function (configuration) {
816
818
  options: localVarRequestOptions,
817
819
  };
818
820
  }),
821
+ /**
822
+ * Delete a tray
823
+ * @summary Delete tray
824
+ * @param {string} project What project it is
825
+ * @param {string} trayId Tray ID
826
+ * @param {*} [options] Override http request option.
827
+ * @throws {RequiredError}
828
+ */
829
+ deleteTray: (project_1, trayId_1, ...args_1) => __awaiter(this, [project_1, trayId_1, ...args_1], void 0, function* (project, trayId, options = {}) {
830
+ // verify required parameter 'project' is not null or undefined
831
+ assertParamExists('deleteTray', 'project', project);
832
+ // verify required parameter 'trayId' is not null or undefined
833
+ assertParamExists('deleteTray', 'trayId', trayId);
834
+ const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
835
+ .replace(`{${"trayId"}}`, encodeURIComponent(String(trayId)));
836
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
837
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
838
+ let baseOptions;
839
+ if (configuration) {
840
+ baseOptions = configuration.baseOptions;
841
+ }
842
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
843
+ const localVarHeaderParameter = {};
844
+ const localVarQueryParameter = {};
845
+ // authentication session-oauth required
846
+ // oauth required
847
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
848
+ // authentication api-key required
849
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
850
+ if (project !== undefined) {
851
+ localVarQueryParameter['project'] = project;
852
+ }
853
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
854
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
855
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
856
+ return {
857
+ url: toPathString(localVarUrlObj),
858
+ options: localVarRequestOptions,
859
+ };
860
+ }),
819
861
  /**
820
862
  * Get a tray of applications
821
863
  * @summary Get tray
@@ -1171,6 +1213,23 @@ export const TraysApiFp = function (configuration) {
1171
1213
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1172
1214
  });
1173
1215
  },
1216
+ /**
1217
+ * Delete a tray
1218
+ * @summary Delete tray
1219
+ * @param {string} project What project it is
1220
+ * @param {string} trayId Tray ID
1221
+ * @param {*} [options] Override http request option.
1222
+ * @throws {RequiredError}
1223
+ */
1224
+ deleteTray(project, trayId, options) {
1225
+ return __awaiter(this, void 0, void 0, function* () {
1226
+ var _a, _b, _c;
1227
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTray(project, trayId, options);
1228
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1229
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TraysApi.deleteTray']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1230
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1231
+ });
1232
+ },
1174
1233
  /**
1175
1234
  * Get a tray of applications
1176
1235
  * @summary Get tray
@@ -1320,6 +1379,16 @@ export const TraysApiFactory = function (configuration, basePath, axios) {
1320
1379
  createTray(requestParameters, options) {
1321
1380
  return localVarFp.createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(axios, basePath));
1322
1381
  },
1382
+ /**
1383
+ * Delete a tray
1384
+ * @summary Delete tray
1385
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1386
+ * @param {*} [options] Override http request option.
1387
+ * @throws {RequiredError}
1388
+ */
1389
+ deleteTray(requestParameters, options) {
1390
+ return localVarFp.deleteTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(axios, basePath));
1391
+ },
1323
1392
  /**
1324
1393
  * Get a tray of applications
1325
1394
  * @summary Get tray
@@ -1410,6 +1479,17 @@ export class TraysApi extends BaseAPI {
1410
1479
  createTray(requestParameters, options) {
1411
1480
  return TraysApiFp(this.configuration).createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(this.axios, this.basePath));
1412
1481
  }
1482
+ /**
1483
+ * Delete a tray
1484
+ * @summary Delete tray
1485
+ * @param {TraysApiDeleteTrayRequest} requestParameters Request parameters.
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ * @memberof TraysApi
1489
+ */
1490
+ deleteTray(requestParameters, options) {
1491
+ return TraysApiFp(this.configuration).deleteTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(this.axios, this.basePath));
1492
+ }
1413
1493
  /**
1414
1494
  * Get a tray of applications
1415
1495
  * @summary Get tray
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,7 +20,7 @@ export class Configuration {
20
20
  this.accessToken = param.accessToken;
21
21
  this.basePath = param.basePath;
22
22
  this.serverIndex = param.serverIndex;
23
- this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.9.0/typescript-axios" }) }, param.baseOptions);
23
+ this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.10.0/typescript-axios" }) }, param.baseOptions);
24
24
  this.formDataCtor = param.formDataCtor;
25
25
  }
26
26
  /**
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.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
  * Warehouse Prefab Applications API
6
6
  * Manage PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.9.0
8
+ * The version of the OpenAPI document: 0.10.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.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/warehouse-prefab-applications",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "OpenAPI client for @teemill/warehouse-prefab-applications",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {