@teemill/warehouse-prefab-applications 0.1.0 → 0.3.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.1.0
1
+ ## @teemill/warehouse-prefab-applications@0.3.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.1.0 --save
39
+ npm install @teemill/warehouse-prefab-applications@0.3.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 Teemill Warehouse Prefab Applications Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 0.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,38 +53,60 @@ export interface Batch {
53
53
  * @type {string}
54
54
  * @memberof Batch
55
55
  */
56
- 'id'?: string;
56
+ 'id': string;
57
57
  /**
58
58
  * A reference to the resource location
59
59
  * @type {string}
60
60
  * @memberof Batch
61
61
  */
62
- 'ref'?: string;
62
+ 'ref': string;
63
+ /**
64
+ * The status of the batch
65
+ * @type {string}
66
+ * @memberof Batch
67
+ */
68
+ 'status': BatchStatusEnum;
63
69
  /**
64
70
  * Number of applications in the batch
65
71
  * @type {number}
66
72
  * @memberof Batch
67
73
  */
68
- 'size'?: number;
74
+ 'size': number;
75
+ /**
76
+ * A reference to the resource location
77
+ * @type {string}
78
+ * @memberof Batch
79
+ */
80
+ 'userRef': string | null;
69
81
  /**
70
82
  * A reference to the resource location
71
83
  * @type {string}
72
84
  * @memberof Batch
73
85
  */
74
- 'userRef'?: string | null;
86
+ 'deviceRef': string | null;
75
87
  /**
76
88
  * A reference to the resource location
77
89
  * @type {string}
78
90
  * @memberof Batch
79
91
  */
80
- 'technologyRef'?: string;
92
+ 'technologyRef': string;
81
93
  /**
82
94
  * ISO 8601 Timestamp
83
95
  * @type {string}
84
96
  * @memberof Batch
85
97
  */
86
- 'createdAt'?: string | null;
98
+ 'createdAt': string | null;
87
99
  }
100
+
101
+ export const BatchStatusEnum = {
102
+ Processing: 'processing',
103
+ Ready: 'ready',
104
+ Complete: 'complete',
105
+ Failed: 'failed'
106
+ } as const;
107
+
108
+ export type BatchStatusEnum = typeof BatchStatusEnum[keyof typeof BatchStatusEnum];
109
+
88
110
  /**
89
111
  *
90
112
  * @export
@@ -174,11 +196,11 @@ export interface PrefabApplication {
174
196
  */
175
197
  'ref': string;
176
198
  /**
177
- * A reference to the batch that the prefab application was created in, if applicable.
199
+ * A reference to the batch that the prefab application was created in.
178
200
  * @type {string}
179
201
  * @memberof PrefabApplication
180
202
  */
181
- 'batchRef'?: string | null;
203
+ 'batchRef': string | null;
182
204
  /**
183
205
  * Design file URL
184
206
  * @type {string}
@@ -191,6 +213,12 @@ export interface PrefabApplication {
191
213
  * @memberof PrefabApplication
192
214
  */
193
215
  'applicationRef'?: string | null;
216
+ /**
217
+ *
218
+ * @type {PrefabApplicationCatalogApplication}
219
+ * @memberof PrefabApplication
220
+ */
221
+ 'catalogApplication'?: PrefabApplicationCatalogApplication;
194
222
  /**
195
223
  * A reference to the tray that the prefab application is in.
196
224
  * @type {string}
@@ -224,6 +252,44 @@ export const PrefabApplicationStatusEnum = {
224
252
 
225
253
  export type PrefabApplicationStatusEnum = typeof PrefabApplicationStatusEnum[keyof typeof PrefabApplicationStatusEnum];
226
254
 
255
+ /**
256
+ *
257
+ * @export
258
+ * @interface PrefabApplicationCatalogApplication
259
+ */
260
+ export interface PrefabApplicationCatalogApplication {
261
+ /**
262
+ * Unique object identifier
263
+ * @type {string}
264
+ * @memberof PrefabApplicationCatalogApplication
265
+ */
266
+ 'id'?: string;
267
+ /**
268
+ * A reference to the resource location
269
+ * @type {string}
270
+ * @memberof PrefabApplicationCatalogApplication
271
+ */
272
+ 'ref'?: string;
273
+ /**
274
+ * Design file URL
275
+ * @type {string}
276
+ * @memberof PrefabApplicationCatalogApplication
277
+ */
278
+ 'design'?: string | null;
279
+ }
280
+ /**
281
+ *
282
+ * @export
283
+ * @interface PrintBatch202Response
284
+ */
285
+ export interface PrintBatch202Response {
286
+ /**
287
+ *
288
+ * @type {string}
289
+ * @memberof PrintBatch202Response
290
+ */
291
+ 'message'?: string;
292
+ }
227
293
  /**
228
294
  *
229
295
  * @export
@@ -249,11 +315,23 @@ export interface Tray {
249
315
  */
250
316
  'label': string;
251
317
  /**
252
- * Number of applications in the tray
318
+ * Total number of prefab applications in the tray
253
319
  * @type {number}
254
320
  * @memberof Tray
255
321
  */
256
322
  'fillLevel': number;
323
+ /**
324
+ * Number of prefab applications in the tray that are not assigned to a warehouse application
325
+ * @type {number}
326
+ * @memberof Tray
327
+ */
328
+ 'unassignedCount': number;
329
+ /**
330
+ *
331
+ * @type {TrayContents}
332
+ * @memberof Tray
333
+ */
334
+ 'contents': TrayContents | null;
257
335
  /**
258
336
  * ISO 8601 Timestamp
259
337
  * @type {string}
@@ -267,6 +345,19 @@ export interface Tray {
267
345
  */
268
346
  'updatedAt': string | null;
269
347
  }
348
+ /**
349
+ *
350
+ * @export
351
+ * @interface TrayContents
352
+ */
353
+ export interface TrayContents {
354
+ /**
355
+ *
356
+ * @type {PrefabApplicationCatalogApplication}
357
+ * @memberof TrayContents
358
+ */
359
+ 'catalogApplication'?: PrefabApplicationCatalogApplication;
360
+ }
270
361
  /**
271
362
  *
272
363
  * @export
@@ -286,6 +377,38 @@ export interface UpdatePrefabApplicationRequest {
286
377
  */
287
378
  'trayRef'?: string | null;
288
379
  }
380
+ /**
381
+ *
382
+ * @export
383
+ * @interface UpdateTrayRequest
384
+ */
385
+ export interface UpdateTrayRequest {
386
+ /**
387
+ *
388
+ * @type {UpdateTrayRequestContents}
389
+ * @memberof UpdateTrayRequest
390
+ */
391
+ 'contents': UpdateTrayRequestContents;
392
+ }
393
+ /**
394
+ *
395
+ * @export
396
+ * @interface UpdateTrayRequestContents
397
+ */
398
+ export interface UpdateTrayRequestContents {
399
+ /**
400
+ * A reference to the resource location
401
+ * @type {string}
402
+ * @memberof UpdateTrayRequestContents
403
+ */
404
+ 'catalogApplicationRef': string;
405
+ /**
406
+ * Number of applications that are in the tray
407
+ * @type {number}
408
+ * @memberof UpdateTrayRequestContents
409
+ */
410
+ 'quantity': number;
411
+ }
289
412
  /**
290
413
  *
291
414
  * @export
@@ -518,6 +641,61 @@ export const BatchesApiAxiosParamCreator = function (configuration?: Configurati
518
641
 
519
642
 
520
643
 
644
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
647
+
648
+ return {
649
+ url: toPathString(localVarUrlObj),
650
+ options: localVarRequestOptions,
651
+ };
652
+ },
653
+ /**
654
+ * Send print files to printer
655
+ * @summary Print batch label
656
+ * @param {string} project What project it is
657
+ * @param {string} batchId Batch ID
658
+ * @param {string} deviceRef Unique identifier of a warehouse device
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ printBatch: async (project: string, batchId: string, deviceRef: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
663
+ // verify required parameter 'project' is not null or undefined
664
+ assertParamExists('printBatch', 'project', project)
665
+ // verify required parameter 'batchId' is not null or undefined
666
+ assertParamExists('printBatch', 'batchId', batchId)
667
+ // verify required parameter 'deviceRef' is not null or undefined
668
+ assertParamExists('printBatch', 'deviceRef', deviceRef)
669
+ const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/print`
670
+ .replace(`{${"batchId"}}`, encodeURIComponent(String(batchId)));
671
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
672
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
673
+ let baseOptions;
674
+ if (configuration) {
675
+ baseOptions = configuration.baseOptions;
676
+ }
677
+
678
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
679
+ const localVarHeaderParameter = {} as any;
680
+ const localVarQueryParameter = {} as any;
681
+
682
+ // authentication session-oauth required
683
+ // oauth required
684
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
685
+
686
+ // authentication api-key required
687
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
688
+
689
+ if (project !== undefined) {
690
+ localVarQueryParameter['project'] = project;
691
+ }
692
+
693
+ if (deviceRef !== undefined) {
694
+ localVarQueryParameter['deviceRef'] = deviceRef;
695
+ }
696
+
697
+
698
+
521
699
  setSearchParams(localVarUrlObj, localVarQueryParameter);
522
700
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
523
701
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -597,6 +775,21 @@ export const BatchesApiFp = function(configuration?: Configuration) {
597
775
  const localVarOperationServerBasePath = operationServerMap['BatchesApi.listBatches']?.[localVarOperationServerIndex]?.url;
598
776
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
599
777
  },
778
+ /**
779
+ * Send print files to printer
780
+ * @summary Print batch label
781
+ * @param {string} project What project it is
782
+ * @param {string} batchId Batch ID
783
+ * @param {string} deviceRef Unique identifier of a warehouse device
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ async printBatch(project: string, batchId: string, deviceRef: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintBatch202Response>> {
788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.printBatch(project, batchId, deviceRef, options);
789
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
790
+ const localVarOperationServerBasePath = operationServerMap['BatchesApi.printBatch']?.[localVarOperationServerIndex]?.url;
791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
792
+ },
600
793
  }
601
794
  };
602
795
 
@@ -647,6 +840,16 @@ export const BatchesApiFactory = function (configuration?: Configuration, basePa
647
840
  listBatches(requestParameters: BatchesApiListBatchesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListBatches200Response> {
648
841
  return localVarFp.listBatches(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
649
842
  },
843
+ /**
844
+ * Send print files to printer
845
+ * @summary Print batch label
846
+ * @param {BatchesApiPrintBatchRequest} requestParameters Request parameters.
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ printBatch(requestParameters: BatchesApiPrintBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<PrintBatch202Response> {
851
+ return localVarFp.printBatch(requestParameters.project, requestParameters.batchId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
852
+ },
650
853
  };
651
854
  };
652
855
 
@@ -762,6 +965,34 @@ export interface BatchesApiListBatchesRequest {
762
965
  readonly pageSize?: number
763
966
  }
764
967
 
968
+ /**
969
+ * Request parameters for printBatch operation in BatchesApi.
970
+ * @export
971
+ * @interface BatchesApiPrintBatchRequest
972
+ */
973
+ export interface BatchesApiPrintBatchRequest {
974
+ /**
975
+ * What project it is
976
+ * @type {string}
977
+ * @memberof BatchesApiPrintBatch
978
+ */
979
+ readonly project: string
980
+
981
+ /**
982
+ * Batch ID
983
+ * @type {string}
984
+ * @memberof BatchesApiPrintBatch
985
+ */
986
+ readonly batchId: string
987
+
988
+ /**
989
+ * Unique identifier of a warehouse device
990
+ * @type {string}
991
+ * @memberof BatchesApiPrintBatch
992
+ */
993
+ readonly deviceRef: string
994
+ }
995
+
765
996
  /**
766
997
  * BatchesApi - object-oriented interface
767
998
  * @export
@@ -816,6 +1047,18 @@ export class BatchesApi extends BaseAPI {
816
1047
  public listBatches(requestParameters: BatchesApiListBatchesRequest, options?: RawAxiosRequestConfig) {
817
1048
  return BatchesApiFp(this.configuration).listBatches(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
818
1049
  }
1050
+
1051
+ /**
1052
+ * Send print files to printer
1053
+ * @summary Print batch label
1054
+ * @param {BatchesApiPrintBatchRequest} requestParameters Request parameters.
1055
+ * @param {*} [options] Override http request option.
1056
+ * @throws {RequiredError}
1057
+ * @memberof BatchesApi
1058
+ */
1059
+ public printBatch(requestParameters: BatchesApiPrintBatchRequest, options?: RawAxiosRequestConfig) {
1060
+ return BatchesApiFp(this.configuration).printBatch(requestParameters.project, requestParameters.batchId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
1061
+ }
819
1062
  }
820
1063
 
821
1064
 
@@ -1246,6 +1489,116 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
1246
1489
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1247
1490
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1248
1491
 
1492
+ return {
1493
+ url: toPathString(localVarUrlObj),
1494
+ options: localVarRequestOptions,
1495
+ };
1496
+ },
1497
+ /**
1498
+ * Print tray labels
1499
+ * @summary Print trays
1500
+ * @param {string} project What project it is
1501
+ * @param {string} deviceRef Unique identifier of a warehouse device
1502
+ * @param {Array<string>} [trayIds] List of tray IDs
1503
+ * @param {*} [options] Override http request option.
1504
+ * @throws {RequiredError}
1505
+ */
1506
+ printTrayLabels: async (project: string, deviceRef: string, trayIds?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1507
+ // verify required parameter 'project' is not null or undefined
1508
+ assertParamExists('printTrayLabels', 'project', project)
1509
+ // verify required parameter 'deviceRef' is not null or undefined
1510
+ assertParamExists('printTrayLabels', 'deviceRef', deviceRef)
1511
+ const localVarPath = `/v1/warehouse/prefab-applications/trays/print`;
1512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1513
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1514
+ let baseOptions;
1515
+ if (configuration) {
1516
+ baseOptions = configuration.baseOptions;
1517
+ }
1518
+
1519
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1520
+ const localVarHeaderParameter = {} as any;
1521
+ const localVarQueryParameter = {} as any;
1522
+
1523
+ // authentication session-oauth required
1524
+ // oauth required
1525
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1526
+
1527
+ // authentication api-key required
1528
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1529
+
1530
+ if (project !== undefined) {
1531
+ localVarQueryParameter['project'] = project;
1532
+ }
1533
+
1534
+ if (deviceRef !== undefined) {
1535
+ localVarQueryParameter['deviceRef'] = deviceRef;
1536
+ }
1537
+
1538
+ if (trayIds) {
1539
+ localVarQueryParameter['trayIds'] = trayIds;
1540
+ }
1541
+
1542
+
1543
+
1544
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1545
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1546
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1547
+
1548
+ return {
1549
+ url: toPathString(localVarUrlObj),
1550
+ options: localVarRequestOptions,
1551
+ };
1552
+ },
1553
+ /**
1554
+ * Update a tray of applications
1555
+ * @summary Update tray
1556
+ * @param {string} project What project it is
1557
+ * @param {string} trayId Tray ID
1558
+ * @param {UpdateTrayRequest} updateTrayRequest Tray of applications
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ updateTray: async (project: string, trayId: string, updateTrayRequest: UpdateTrayRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1563
+ // verify required parameter 'project' is not null or undefined
1564
+ assertParamExists('updateTray', 'project', project)
1565
+ // verify required parameter 'trayId' is not null or undefined
1566
+ assertParamExists('updateTray', 'trayId', trayId)
1567
+ // verify required parameter 'updateTrayRequest' is not null or undefined
1568
+ assertParamExists('updateTray', 'updateTrayRequest', updateTrayRequest)
1569
+ const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
1570
+ .replace(`{${"trayId"}}`, encodeURIComponent(String(trayId)));
1571
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1572
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1573
+ let baseOptions;
1574
+ if (configuration) {
1575
+ baseOptions = configuration.baseOptions;
1576
+ }
1577
+
1578
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1579
+ const localVarHeaderParameter = {} as any;
1580
+ const localVarQueryParameter = {} as any;
1581
+
1582
+ // authentication session-oauth required
1583
+ // oauth required
1584
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1585
+
1586
+ // authentication api-key required
1587
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1588
+
1589
+ if (project !== undefined) {
1590
+ localVarQueryParameter['project'] = project;
1591
+ }
1592
+
1593
+
1594
+
1595
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1596
+
1597
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1598
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1599
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1600
+ localVarRequestOptions.data = serializeDataIfNeeded(updateTrayRequest, localVarRequestOptions, configuration)
1601
+
1249
1602
  return {
1250
1603
  url: toPathString(localVarUrlObj),
1251
1604
  options: localVarRequestOptions,
@@ -1306,6 +1659,36 @@ export const TraysApiFp = function(configuration?: Configuration) {
1306
1659
  const localVarOperationServerBasePath = operationServerMap['TraysApi.printTrayLabel']?.[localVarOperationServerIndex]?.url;
1307
1660
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1308
1661
  },
1662
+ /**
1663
+ * Print tray labels
1664
+ * @summary Print trays
1665
+ * @param {string} project What project it is
1666
+ * @param {string} deviceRef Unique identifier of a warehouse device
1667
+ * @param {Array<string>} [trayIds] List of tray IDs
1668
+ * @param {*} [options] Override http request option.
1669
+ * @throws {RequiredError}
1670
+ */
1671
+ async printTrayLabels(project: string, deviceRef: string, trayIds?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintBatch202Response>> {
1672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.printTrayLabels(project, deviceRef, trayIds, options);
1673
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1674
+ const localVarOperationServerBasePath = operationServerMap['TraysApi.printTrayLabels']?.[localVarOperationServerIndex]?.url;
1675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1676
+ },
1677
+ /**
1678
+ * Update a tray of applications
1679
+ * @summary Update tray
1680
+ * @param {string} project What project it is
1681
+ * @param {string} trayId Tray ID
1682
+ * @param {UpdateTrayRequest} updateTrayRequest Tray of applications
1683
+ * @param {*} [options] Override http request option.
1684
+ * @throws {RequiredError}
1685
+ */
1686
+ async updateTray(project: string, trayId: string, updateTrayRequest: UpdateTrayRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tray>> {
1687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTray(project, trayId, updateTrayRequest, options);
1688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1689
+ const localVarOperationServerBasePath = operationServerMap['TraysApi.updateTray']?.[localVarOperationServerIndex]?.url;
1690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1691
+ },
1309
1692
  }
1310
1693
  };
1311
1694
 
@@ -1346,6 +1729,26 @@ export const TraysApiFactory = function (configuration?: Configuration, basePath
1346
1729
  printTrayLabel(requestParameters: TraysApiPrintTrayLabelRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1347
1730
  return localVarFp.printTrayLabel(requestParameters.project, requestParameters.trayId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
1348
1731
  },
1732
+ /**
1733
+ * Print tray labels
1734
+ * @summary Print trays
1735
+ * @param {TraysApiPrintTrayLabelsRequest} requestParameters Request parameters.
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ */
1739
+ printTrayLabels(requestParameters: TraysApiPrintTrayLabelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PrintBatch202Response> {
1740
+ return localVarFp.printTrayLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.trayIds, options).then((request) => request(axios, basePath));
1741
+ },
1742
+ /**
1743
+ * Update a tray of applications
1744
+ * @summary Update tray
1745
+ * @param {TraysApiUpdateTrayRequest} requestParameters Request parameters.
1746
+ * @param {*} [options] Override http request option.
1747
+ * @throws {RequiredError}
1748
+ */
1749
+ updateTray(requestParameters: TraysApiUpdateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray> {
1750
+ return localVarFp.updateTray(requestParameters.project, requestParameters.trayId, requestParameters.updateTrayRequest, options).then((request) => request(axios, basePath));
1751
+ },
1349
1752
  };
1350
1753
  };
1351
1754
 
@@ -1433,6 +1836,62 @@ export interface TraysApiPrintTrayLabelRequest {
1433
1836
  readonly deviceRef: string
1434
1837
  }
1435
1838
 
1839
+ /**
1840
+ * Request parameters for printTrayLabels operation in TraysApi.
1841
+ * @export
1842
+ * @interface TraysApiPrintTrayLabelsRequest
1843
+ */
1844
+ export interface TraysApiPrintTrayLabelsRequest {
1845
+ /**
1846
+ * What project it is
1847
+ * @type {string}
1848
+ * @memberof TraysApiPrintTrayLabels
1849
+ */
1850
+ readonly project: string
1851
+
1852
+ /**
1853
+ * Unique identifier of a warehouse device
1854
+ * @type {string}
1855
+ * @memberof TraysApiPrintTrayLabels
1856
+ */
1857
+ readonly deviceRef: string
1858
+
1859
+ /**
1860
+ * List of tray IDs
1861
+ * @type {Array<string>}
1862
+ * @memberof TraysApiPrintTrayLabels
1863
+ */
1864
+ readonly trayIds?: Array<string>
1865
+ }
1866
+
1867
+ /**
1868
+ * Request parameters for updateTray operation in TraysApi.
1869
+ * @export
1870
+ * @interface TraysApiUpdateTrayRequest
1871
+ */
1872
+ export interface TraysApiUpdateTrayRequest {
1873
+ /**
1874
+ * What project it is
1875
+ * @type {string}
1876
+ * @memberof TraysApiUpdateTray
1877
+ */
1878
+ readonly project: string
1879
+
1880
+ /**
1881
+ * Tray ID
1882
+ * @type {string}
1883
+ * @memberof TraysApiUpdateTray
1884
+ */
1885
+ readonly trayId: string
1886
+
1887
+ /**
1888
+ * Tray of applications
1889
+ * @type {UpdateTrayRequest}
1890
+ * @memberof TraysApiUpdateTray
1891
+ */
1892
+ readonly updateTrayRequest: UpdateTrayRequest
1893
+ }
1894
+
1436
1895
  /**
1437
1896
  * TraysApi - object-oriented interface
1438
1897
  * @export
@@ -1475,6 +1934,30 @@ export class TraysApi extends BaseAPI {
1475
1934
  public printTrayLabel(requestParameters: TraysApiPrintTrayLabelRequest, options?: RawAxiosRequestConfig) {
1476
1935
  return TraysApiFp(this.configuration).printTrayLabel(requestParameters.project, requestParameters.trayId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
1477
1936
  }
1937
+
1938
+ /**
1939
+ * Print tray labels
1940
+ * @summary Print trays
1941
+ * @param {TraysApiPrintTrayLabelsRequest} requestParameters Request parameters.
1942
+ * @param {*} [options] Override http request option.
1943
+ * @throws {RequiredError}
1944
+ * @memberof TraysApi
1945
+ */
1946
+ public printTrayLabels(requestParameters: TraysApiPrintTrayLabelsRequest, options?: RawAxiosRequestConfig) {
1947
+ return TraysApiFp(this.configuration).printTrayLabels(requestParameters.project, requestParameters.deviceRef, requestParameters.trayIds, options).then((request) => request(this.axios, this.basePath));
1948
+ }
1949
+
1950
+ /**
1951
+ * Update a tray of applications
1952
+ * @summary Update tray
1953
+ * @param {TraysApiUpdateTrayRequest} requestParameters Request parameters.
1954
+ * @param {*} [options] Override http request option.
1955
+ * @throws {RequiredError}
1956
+ * @memberof TraysApi
1957
+ */
1958
+ public updateTray(requestParameters: TraysApiUpdateTrayRequest, options?: RawAxiosRequestConfig) {
1959
+ return TraysApiFp(this.configuration).updateTray(requestParameters.project, requestParameters.trayId, requestParameters.updateTrayRequest, options).then((request) => request(this.axios, this.basePath));
1960
+ }
1478
1961
  }
1479
1962
 
1480
1963
 
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage Teemill Warehouse Prefab Applications Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 0.3.0
8
8
  * Contact: hello@teemill.com
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 Teemill Warehouse Prefab Applications Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 0.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).