@teemill/pickfaces 0.11.1 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -1
- package/README.md +2 -2
- package/dist/apis/PickfacesApi.d.ts +32 -2
- package/dist/apis/PickfacesApi.js +146 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/ContainerModel.d.ts +61 -0
- package/dist/models/ContainerModel.js +61 -0
- package/dist/models/ContainerModels.d.ts +32 -0
- package/dist/models/ContainerModels.js +46 -0
- package/dist/models/CreatePickfaceRequest.d.ts +4 -5
- package/dist/models/CreatePickfaceRequest.js +3 -4
- package/dist/models/CreatePickfaceRequestDimensions.d.ts +1 -1
- package/dist/models/CreatePickfaceRequestDimensions.js +1 -1
- package/dist/models/GetPickfaces200Response.d.ts +1 -1
- package/dist/models/GetPickfaces200Response.js +1 -1
- package/dist/models/ListPickfaceLogs200Response.d.ts +1 -1
- package/dist/models/ListPickfaceLogs200Response.js +1 -1
- package/dist/models/MoveStockRequest.d.ts +1 -1
- package/dist/models/MoveStockRequest.js +1 -1
- package/dist/models/Pickface.d.ts +4 -4
- package/dist/models/Pickface.js +4 -4
- package/dist/models/PickfaceContainerModel.d.ts +37 -0
- package/dist/models/PickfaceContainerModel.js +47 -0
- package/dist/models/PickfaceContentsInner.d.ts +1 -1
- package/dist/models/PickfaceContentsInner.js +1 -1
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +1 -1
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerMetadata.js +1 -1
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerQuantity.js +1 -1
- package/dist/models/PickfaceLastPicked.d.ts +1 -1
- package/dist/models/PickfaceLastPicked.js +1 -1
- package/dist/models/PickfaceLastRestocked.d.ts +1 -1
- package/dist/models/PickfaceLastRestocked.js +1 -1
- package/dist/models/PickfaceLog.d.ts +1 -1
- package/dist/models/PickfaceLog.js +1 -1
- package/dist/models/PickfaceModel.d.ts +37 -0
- package/dist/models/PickfaceModel.js +47 -0
- package/dist/models/PickfaceModels.d.ts +32 -0
- package/dist/models/PickfaceModels.js +46 -0
- package/dist/models/UpdatePickfaceRequest.d.ts +7 -1
- package/dist/models/UpdatePickfaceRequest.js +3 -1
- package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequestContentsInner.js +1 -1
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +1 -1
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/PickfacesApi.ts +150 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/ContainerModel.ts +103 -0
- package/src/models/ContainerModels.ts +67 -0
- package/src/models/CreatePickfaceRequest.ts +6 -13
- package/src/models/CreatePickfaceRequestDimensions.ts +1 -1
- package/src/models/GetPickfaces200Response.ts +1 -1
- package/src/models/ListPickfaceLogs200Response.ts +1 -1
- package/src/models/MoveStockRequest.ts +1 -1
- package/src/models/Pickface.ts +10 -10
- package/src/models/PickfaceContainerModel.ts +68 -0
- package/src/models/PickfaceContentsInner.ts +1 -1
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +1 -1
- package/src/models/PickfaceContentsInnerMetadata.ts +1 -1
- package/src/models/PickfaceContentsInnerQuantity.ts +1 -1
- package/src/models/PickfaceLastPicked.ts +1 -1
- package/src/models/PickfaceLastRestocked.ts +1 -1
- package/src/models/PickfaceLog.ts +1 -1
- package/src/models/PickfaceModel.ts +68 -0
- package/src/models/PickfaceModels.ts +67 -0
- package/src/models/UpdatePickfaceRequest.ts +9 -1
- package/src/models/UpdatePickfaceRequestContentsInner.ts +1 -1
- package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +1 -1
- package/src/models/index.ts +3 -1
- package/src/runtime.ts +1 -1
package/src/apis/PickfacesApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiError,
|
|
19
|
+
ContainerModels,
|
|
19
20
|
CreatePickfaceRequest,
|
|
20
21
|
GetPickfaces200Response,
|
|
21
22
|
ListPickfaceLogs200Response,
|
|
@@ -26,6 +27,8 @@ import type {
|
|
|
26
27
|
import {
|
|
27
28
|
ApiErrorFromJSON,
|
|
28
29
|
ApiErrorToJSON,
|
|
30
|
+
ContainerModelsFromJSON,
|
|
31
|
+
ContainerModelsToJSON,
|
|
29
32
|
CreatePickfaceRequestFromJSON,
|
|
30
33
|
CreatePickfaceRequestToJSON,
|
|
31
34
|
GetPickfaces200ResponseFromJSON,
|
|
@@ -59,6 +62,10 @@ export interface GetPickfaceRequest {
|
|
|
59
62
|
pickfaceId: string;
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
export interface GetPickfaceContainerModelsRequest {
|
|
66
|
+
project: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
export interface GetPickfacesRequest {
|
|
63
70
|
project: string;
|
|
64
71
|
search?: string;
|
|
@@ -86,6 +93,14 @@ export interface PrintPickfaceLabelRequest {
|
|
|
86
93
|
deviceRef: string;
|
|
87
94
|
}
|
|
88
95
|
|
|
96
|
+
export interface SuggestPickfacesRequest {
|
|
97
|
+
project: string;
|
|
98
|
+
variantRef: string;
|
|
99
|
+
quantity: number;
|
|
100
|
+
pageToken?: number;
|
|
101
|
+
pageSize?: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
89
104
|
export interface UpdatePickfaceOperationRequest {
|
|
90
105
|
project: string;
|
|
91
106
|
pickfaceId: string;
|
|
@@ -326,6 +341,60 @@ export class PickfacesApi extends runtime.BaseAPI {
|
|
|
326
341
|
return await response.value();
|
|
327
342
|
}
|
|
328
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Lists pickface container models
|
|
346
|
+
* Get pickface container models
|
|
347
|
+
*/
|
|
348
|
+
async getPickfaceContainerModelsRaw(requestParameters: GetPickfaceContainerModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContainerModels>> {
|
|
349
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
350
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getPickfaceContainerModels.');
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const queryParameters: any = {};
|
|
354
|
+
|
|
355
|
+
if (requestParameters.project !== undefined) {
|
|
356
|
+
queryParameters['project'] = requestParameters.project;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
360
|
+
|
|
361
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
362
|
+
// oauth required
|
|
363
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
367
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
const response = await this.request({
|
|
371
|
+
path: `/v1/pickfaces/container-models`,
|
|
372
|
+
method: 'GET',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
}, initOverrides);
|
|
376
|
+
|
|
377
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ContainerModelsFromJSON(jsonValue));
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Lists pickface container models
|
|
382
|
+
* Get pickface container models
|
|
383
|
+
*/
|
|
384
|
+
async getPickfaceContainerModels(
|
|
385
|
+
project: string,
|
|
386
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
387
|
+
): Promise<ContainerModels> {
|
|
388
|
+
const response = await this.getPickfaceContainerModelsRaw(
|
|
389
|
+
{
|
|
390
|
+
project: project,
|
|
391
|
+
},
|
|
392
|
+
initOverrides
|
|
393
|
+
);
|
|
394
|
+
|
|
395
|
+
return await response.value();
|
|
396
|
+
}
|
|
397
|
+
|
|
329
398
|
/**
|
|
330
399
|
* Lists all pickfaces available paginated into chunks
|
|
331
400
|
* List pickfaces
|
|
@@ -595,6 +664,86 @@ export class PickfacesApi extends runtime.BaseAPI {
|
|
|
595
664
|
);
|
|
596
665
|
}
|
|
597
666
|
|
|
667
|
+
/**
|
|
668
|
+
* Suggest pickfaces for putting away stock
|
|
669
|
+
* Suggest pickfaces
|
|
670
|
+
*/
|
|
671
|
+
async suggestPickfacesRaw(requestParameters: SuggestPickfacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPickfaces200Response>> {
|
|
672
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
673
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling suggestPickfaces.');
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
if (requestParameters.variantRef === null || requestParameters.variantRef === undefined) {
|
|
677
|
+
throw new runtime.RequiredError('variantRef','Required parameter requestParameters.variantRef was null or undefined when calling suggestPickfaces.');
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
if (requestParameters.quantity === null || requestParameters.quantity === undefined) {
|
|
681
|
+
throw new runtime.RequiredError('quantity','Required parameter requestParameters.quantity was null or undefined when calling suggestPickfaces.');
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
const queryParameters: any = {};
|
|
685
|
+
|
|
686
|
+
if (requestParameters.project !== undefined) {
|
|
687
|
+
queryParameters['project'] = requestParameters.project;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
if (requestParameters.variantRef !== undefined) {
|
|
691
|
+
queryParameters['variantRef'] = requestParameters.variantRef;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
if (requestParameters.quantity !== undefined) {
|
|
695
|
+
queryParameters['quantity'] = requestParameters.quantity;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
if (requestParameters.pageToken !== undefined) {
|
|
699
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
if (requestParameters.pageSize !== undefined) {
|
|
703
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
707
|
+
|
|
708
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
709
|
+
// oauth required
|
|
710
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
714
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
const response = await this.request({
|
|
718
|
+
path: `/v1/pickfaces/suggest`,
|
|
719
|
+
method: 'GET',
|
|
720
|
+
headers: headerParameters,
|
|
721
|
+
query: queryParameters,
|
|
722
|
+
}, initOverrides);
|
|
723
|
+
|
|
724
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPickfaces200ResponseFromJSON(jsonValue));
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Suggest pickfaces for putting away stock
|
|
729
|
+
* Suggest pickfaces
|
|
730
|
+
*/
|
|
731
|
+
async suggestPickfaces(
|
|
732
|
+
project: string, variantRef: string, quantity: number,
|
|
733
|
+
optionalParameters: runtime.OptionalOnly<SuggestPickfacesRequest> = {},
|
|
734
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
735
|
+
): Promise<GetPickfaces200Response> {
|
|
736
|
+
const response = await this.suggestPickfacesRaw(
|
|
737
|
+
{
|
|
738
|
+
project: project,variantRef: variantRef,quantity: quantity,
|
|
739
|
+
...optionalParameters,
|
|
740
|
+
},
|
|
741
|
+
initOverrides
|
|
742
|
+
);
|
|
743
|
+
|
|
744
|
+
return await response.value();
|
|
745
|
+
}
|
|
746
|
+
|
|
598
747
|
/**
|
|
599
748
|
* Update a Pickface
|
|
600
749
|
* Update Pickface
|
package/src/models/ApiError.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pickfaces API
|
|
5
|
+
* Manage Teemill Pickfaces. 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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.12.1
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ContainerModel
|
|
20
|
+
*/
|
|
21
|
+
export interface ContainerModel {
|
|
22
|
+
/**
|
|
23
|
+
* Unique object identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ContainerModel
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* A reference to the resource location
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ContainerModel
|
|
32
|
+
*/
|
|
33
|
+
ref: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ContainerModel
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* The width of the model in millimetres
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ContainerModel
|
|
44
|
+
*/
|
|
45
|
+
width?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The depth of the model in millimetres
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ContainerModel
|
|
50
|
+
*/
|
|
51
|
+
depth?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The height of the model in millimetres
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ContainerModel
|
|
56
|
+
*/
|
|
57
|
+
height?: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ContainerModel interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfContainerModel(value: object): boolean {
|
|
64
|
+
if (!('id' in value)) return false;
|
|
65
|
+
if (!('ref' in value)) return false;
|
|
66
|
+
if (!('name' in value)) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ContainerModelFromJSON(json: any): ContainerModel {
|
|
71
|
+
return ContainerModelFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ContainerModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerModel {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'id': json['id'],
|
|
81
|
+
'ref': json['ref'],
|
|
82
|
+
'name': json['name'],
|
|
83
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
84
|
+
'depth': json['depth'] == null ? undefined : json['depth'],
|
|
85
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function ContainerModelToJSON(value?: ContainerModel | null): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'ref': value['ref'],
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'width': value['width'],
|
|
99
|
+
'depth': value['depth'],
|
|
100
|
+
'height': value['height'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pickfaces API
|
|
5
|
+
* Manage Teemill Pickfaces. 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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.12.1
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContainerModel } from './ContainerModel';
|
|
17
|
+
import {
|
|
18
|
+
ContainerModelFromJSON,
|
|
19
|
+
ContainerModelFromJSONTyped,
|
|
20
|
+
ContainerModelToJSON,
|
|
21
|
+
} from './ContainerModel';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ContainerModels
|
|
27
|
+
*/
|
|
28
|
+
export interface ContainerModels {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<ContainerModel>}
|
|
32
|
+
* @memberof ContainerModels
|
|
33
|
+
*/
|
|
34
|
+
containerModels?: Array<ContainerModel>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ContainerModels interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfContainerModels(value: object): boolean {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ContainerModelsFromJSON(json: any): ContainerModels {
|
|
45
|
+
return ContainerModelsFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ContainerModelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerModels {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'containerModels': json['containerModels'] == null ? undefined : ((json['containerModels'] as Array<any>).map(ContainerModelFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ContainerModelsToJSON(value?: ContainerModels | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'containerModels': value['containerModels'] == null ? undefined : ((value['containerModels'] as Array<any>).map(ContainerModelToJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { CreatePickfaceRequestDimensions } from './CreatePickfaceRequestDimensions';
|
|
17
|
-
import {
|
|
18
|
-
CreatePickfaceRequestDimensionsFromJSON,
|
|
19
|
-
CreatePickfaceRequestDimensionsFromJSONTyped,
|
|
20
|
-
CreatePickfaceRequestDimensionsToJSON,
|
|
21
|
-
} from './CreatePickfaceRequestDimensions';
|
|
22
|
-
|
|
23
16
|
/**
|
|
24
17
|
*
|
|
25
18
|
* @export
|
|
@@ -33,11 +26,11 @@ export interface CreatePickfaceRequest {
|
|
|
33
26
|
*/
|
|
34
27
|
location?: string;
|
|
35
28
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {
|
|
29
|
+
* Unique object identifier
|
|
30
|
+
* @type {string}
|
|
38
31
|
* @memberof CreatePickfaceRequest
|
|
39
32
|
*/
|
|
40
|
-
|
|
33
|
+
containerModelId?: string;
|
|
41
34
|
}
|
|
42
35
|
|
|
43
36
|
/**
|
|
@@ -58,7 +51,7 @@ export function CreatePickfaceRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
58
51
|
return {
|
|
59
52
|
|
|
60
53
|
'location': json['location'] == null ? undefined : json['location'],
|
|
61
|
-
'
|
|
54
|
+
'containerModelId': json['containerModelId'] == null ? undefined : json['containerModelId'],
|
|
62
55
|
};
|
|
63
56
|
}
|
|
64
57
|
|
|
@@ -69,7 +62,7 @@ export function CreatePickfaceRequestToJSON(value?: CreatePickfaceRequest | null
|
|
|
69
62
|
return {
|
|
70
63
|
|
|
71
64
|
'location': value['location'],
|
|
72
|
-
'
|
|
65
|
+
'containerModelId': value['containerModelId'],
|
|
73
66
|
};
|
|
74
67
|
}
|
|
75
68
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Pickface.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { PickfaceContainerModel } from './PickfaceContainerModel';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
PickfaceContainerModelFromJSON,
|
|
19
|
+
PickfaceContainerModelFromJSONTyped,
|
|
20
|
+
PickfaceContainerModelToJSON,
|
|
21
|
+
} from './PickfaceContainerModel';
|
|
22
22
|
import type { PickfaceContentsInner } from './PickfaceContentsInner';
|
|
23
23
|
import {
|
|
24
24
|
PickfaceContentsInnerFromJSON,
|
|
@@ -70,10 +70,10 @@ export interface Pickface {
|
|
|
70
70
|
enabled?: boolean;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
|
-
* @type {
|
|
73
|
+
* @type {PickfaceContainerModel}
|
|
74
74
|
* @memberof Pickface
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
containerModel?: PickfaceContainerModel;
|
|
77
77
|
/**
|
|
78
78
|
* The percentage of the pickface that has been taken up by its contents
|
|
79
79
|
* @type {number}
|
|
@@ -121,7 +121,7 @@ export function PickfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
121
121
|
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
122
122
|
'code': json['code'] == null ? undefined : json['code'],
|
|
123
123
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
124
|
-
'
|
|
124
|
+
'containerModel': json['containerModel'] == null ? undefined : PickfaceContainerModelFromJSON(json['containerModel']),
|
|
125
125
|
'fullness': json['fullness'] == null ? undefined : json['fullness'],
|
|
126
126
|
'lastPicked': json['lastPicked'] == null ? undefined : PickfaceLastPickedFromJSON(json['lastPicked']),
|
|
127
127
|
'lastRestocked': json['lastRestocked'] == null ? undefined : PickfaceLastRestockedFromJSON(json['lastRestocked']),
|
|
@@ -139,7 +139,7 @@ export function PickfaceToJSON(value?: Pickface | null): any {
|
|
|
139
139
|
'ref': value['ref'],
|
|
140
140
|
'code': value['code'],
|
|
141
141
|
'enabled': value['enabled'],
|
|
142
|
-
'
|
|
142
|
+
'containerModel': PickfaceContainerModelToJSON(value['containerModel']),
|
|
143
143
|
'fullness': value['fullness'],
|
|
144
144
|
'lastPicked': PickfaceLastPickedToJSON(value['lastPicked']),
|
|
145
145
|
'lastRestocked': PickfaceLastRestockedToJSON(value['lastRestocked']),
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pickfaces API
|
|
5
|
+
* Manage Teemill Pickfaces. 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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.12.1
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PickfaceContainerModel
|
|
20
|
+
*/
|
|
21
|
+
export interface PickfaceContainerModel {
|
|
22
|
+
/**
|
|
23
|
+
* Unique object identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PickfaceContainerModel
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A reference to the resource location
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PickfaceContainerModel
|
|
32
|
+
*/
|
|
33
|
+
ref?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PickfaceContainerModel interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPickfaceContainerModel(value: object): boolean {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PickfaceContainerModelFromJSON(json: any): PickfaceContainerModel {
|
|
44
|
+
return PickfaceContainerModelFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PickfaceContainerModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContainerModel {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
54
|
+
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PickfaceContainerModelToJSON(value?: PickfaceContainerModel | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'ref': value['ref'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickfaces API
|
|
5
5
|
* Manage Teemill Pickfaces. 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.12.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|