@teemill/warehouse-prefab-applications 0.2.1 → 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 +2 -2
- package/api.ts +465 -32
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +288 -32
- package/dist/api.js +262 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +288 -32
- package/dist/esm/api.js +261 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/warehouse-prefab-applications@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.
|
|
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.
|
|
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'
|
|
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'
|
|
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'
|
|
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
|
-
'
|
|
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'
|
|
92
|
+
'technologyRef': string;
|
|
81
93
|
/**
|
|
82
94
|
* ISO 8601 Timestamp
|
|
83
95
|
* @type {string}
|
|
84
96
|
* @memberof Batch
|
|
85
97
|
*/
|
|
86
|
-
'createdAt'
|
|
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
|
|
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'
|
|
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
|
|
@@ -287,54 +353,61 @@ export interface Tray {
|
|
|
287
353
|
export interface TrayContents {
|
|
288
354
|
/**
|
|
289
355
|
*
|
|
290
|
-
* @type {
|
|
356
|
+
* @type {PrefabApplicationCatalogApplication}
|
|
291
357
|
* @memberof TrayContents
|
|
292
358
|
*/
|
|
293
|
-
'catalogApplication'?:
|
|
359
|
+
'catalogApplication'?: PrefabApplicationCatalogApplication;
|
|
294
360
|
}
|
|
295
361
|
/**
|
|
296
362
|
*
|
|
297
363
|
* @export
|
|
298
|
-
* @interface
|
|
364
|
+
* @interface UpdatePrefabApplicationRequest
|
|
299
365
|
*/
|
|
300
|
-
export interface
|
|
366
|
+
export interface UpdatePrefabApplicationRequest {
|
|
301
367
|
/**
|
|
302
|
-
*
|
|
368
|
+
* A reference to the warehouse application that the prefab application is assigned to.
|
|
303
369
|
* @type {string}
|
|
304
|
-
* @memberof
|
|
370
|
+
* @memberof UpdatePrefabApplicationRequest
|
|
305
371
|
*/
|
|
306
|
-
'
|
|
372
|
+
'applicationRef'?: string | null;
|
|
307
373
|
/**
|
|
308
|
-
* A reference to the
|
|
374
|
+
* A reference to the tray that the prefab application is in.
|
|
309
375
|
* @type {string}
|
|
310
|
-
* @memberof
|
|
376
|
+
* @memberof UpdatePrefabApplicationRequest
|
|
311
377
|
*/
|
|
312
|
-
'
|
|
378
|
+
'trayRef'?: string | null;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @export
|
|
383
|
+
* @interface UpdateTrayRequest
|
|
384
|
+
*/
|
|
385
|
+
export interface UpdateTrayRequest {
|
|
313
386
|
/**
|
|
314
|
-
*
|
|
315
|
-
* @type {
|
|
316
|
-
* @memberof
|
|
387
|
+
*
|
|
388
|
+
* @type {UpdateTrayRequestContents}
|
|
389
|
+
* @memberof UpdateTrayRequest
|
|
317
390
|
*/
|
|
318
|
-
'
|
|
391
|
+
'contents': UpdateTrayRequestContents;
|
|
319
392
|
}
|
|
320
393
|
/**
|
|
321
394
|
*
|
|
322
395
|
* @export
|
|
323
|
-
* @interface
|
|
396
|
+
* @interface UpdateTrayRequestContents
|
|
324
397
|
*/
|
|
325
|
-
export interface
|
|
398
|
+
export interface UpdateTrayRequestContents {
|
|
326
399
|
/**
|
|
327
|
-
* A reference to the
|
|
400
|
+
* A reference to the resource location
|
|
328
401
|
* @type {string}
|
|
329
|
-
* @memberof
|
|
402
|
+
* @memberof UpdateTrayRequestContents
|
|
330
403
|
*/
|
|
331
|
-
'
|
|
404
|
+
'catalogApplicationRef': string;
|
|
332
405
|
/**
|
|
333
|
-
*
|
|
334
|
-
* @type {
|
|
335
|
-
* @memberof
|
|
406
|
+
* Number of applications that are in the tray
|
|
407
|
+
* @type {number}
|
|
408
|
+
* @memberof UpdateTrayRequestContents
|
|
336
409
|
*/
|
|
337
|
-
'
|
|
410
|
+
'quantity': number;
|
|
338
411
|
}
|
|
339
412
|
/**
|
|
340
413
|
*
|
|
@@ -568,6 +641,61 @@ export const BatchesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
568
641
|
|
|
569
642
|
|
|
570
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
|
+
|
|
571
699
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
572
700
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
573
701
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -647,6 +775,21 @@ export const BatchesApiFp = function(configuration?: Configuration) {
|
|
|
647
775
|
const localVarOperationServerBasePath = operationServerMap['BatchesApi.listBatches']?.[localVarOperationServerIndex]?.url;
|
|
648
776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
649
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
|
+
},
|
|
650
793
|
}
|
|
651
794
|
};
|
|
652
795
|
|
|
@@ -697,6 +840,16 @@ export const BatchesApiFactory = function (configuration?: Configuration, basePa
|
|
|
697
840
|
listBatches(requestParameters: BatchesApiListBatchesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListBatches200Response> {
|
|
698
841
|
return localVarFp.listBatches(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
699
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
|
+
},
|
|
700
853
|
};
|
|
701
854
|
};
|
|
702
855
|
|
|
@@ -812,6 +965,34 @@ export interface BatchesApiListBatchesRequest {
|
|
|
812
965
|
readonly pageSize?: number
|
|
813
966
|
}
|
|
814
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
|
+
|
|
815
996
|
/**
|
|
816
997
|
* BatchesApi - object-oriented interface
|
|
817
998
|
* @export
|
|
@@ -866,6 +1047,18 @@ export class BatchesApi extends BaseAPI {
|
|
|
866
1047
|
public listBatches(requestParameters: BatchesApiListBatchesRequest, options?: RawAxiosRequestConfig) {
|
|
867
1048
|
return BatchesApiFp(this.configuration).listBatches(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
868
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
|
+
}
|
|
869
1062
|
}
|
|
870
1063
|
|
|
871
1064
|
|
|
@@ -1296,6 +1489,116 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1296
1489
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1297
1490
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1298
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
|
+
|
|
1299
1602
|
return {
|
|
1300
1603
|
url: toPathString(localVarUrlObj),
|
|
1301
1604
|
options: localVarRequestOptions,
|
|
@@ -1356,6 +1659,36 @@ export const TraysApiFp = function(configuration?: Configuration) {
|
|
|
1356
1659
|
const localVarOperationServerBasePath = operationServerMap['TraysApi.printTrayLabel']?.[localVarOperationServerIndex]?.url;
|
|
1357
1660
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1358
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
|
+
},
|
|
1359
1692
|
}
|
|
1360
1693
|
};
|
|
1361
1694
|
|
|
@@ -1396,6 +1729,26 @@ export const TraysApiFactory = function (configuration?: Configuration, basePath
|
|
|
1396
1729
|
printTrayLabel(requestParameters: TraysApiPrintTrayLabelRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1397
1730
|
return localVarFp.printTrayLabel(requestParameters.project, requestParameters.trayId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
|
|
1398
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
|
+
},
|
|
1399
1752
|
};
|
|
1400
1753
|
};
|
|
1401
1754
|
|
|
@@ -1483,6 +1836,62 @@ export interface TraysApiPrintTrayLabelRequest {
|
|
|
1483
1836
|
readonly deviceRef: string
|
|
1484
1837
|
}
|
|
1485
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
|
+
|
|
1486
1895
|
/**
|
|
1487
1896
|
* TraysApi - object-oriented interface
|
|
1488
1897
|
* @export
|
|
@@ -1525,6 +1934,30 @@ export class TraysApi extends BaseAPI {
|
|
|
1525
1934
|
public printTrayLabel(requestParameters: TraysApiPrintTrayLabelRequest, options?: RawAxiosRequestConfig) {
|
|
1526
1935
|
return TraysApiFp(this.configuration).printTrayLabel(requestParameters.project, requestParameters.trayId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
|
|
1527
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
|
+
}
|
|
1528
1961
|
}
|
|
1529
1962
|
|
|
1530
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.
|
|
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).
|