@teemill/pickfaces 0.1.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 +21 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/PickfacesApi.d.ts +91 -0
- package/dist/apis/PickfacesApi.js +366 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/CreatePickfaceRequest.d.ts +38 -0
- package/dist/models/CreatePickfaceRequest.js +53 -0
- package/dist/models/CreatePickfaceRequestDimensions.d.ts +43 -0
- package/dist/models/CreatePickfaceRequestDimensions.js +54 -0
- package/dist/models/GetPickfaces200Response.d.ts +38 -0
- package/dist/models/GetPickfaces200Response.js +53 -0
- package/dist/models/ModelError.d.ts +37 -0
- package/dist/models/ModelError.js +53 -0
- package/dist/models/Pickface.d.ts +63 -0
- package/dist/models/Pickface.js +62 -0
- package/dist/models/PickfaceContentsInner.d.ts +58 -0
- package/dist/models/PickfaceContentsInner.js +61 -0
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +37 -0
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +52 -0
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +43 -0
- package/dist/models/PickfaceContentsInnerMetadata.js +54 -0
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +43 -0
- package/dist/models/PickfaceContentsInnerQuantity.js +54 -0
- package/dist/models/UpdatePickfaceRequest.d.ts +31 -0
- package/dist/models/UpdatePickfaceRequest.js +50 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +28 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +19 -0
- package/src/apis/PickfacesApi.ts +304 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/CreatePickfaceRequest.ts +80 -0
- package/src/models/CreatePickfaceRequestDimensions.ts +81 -0
- package/src/models/GetPickfaces200Response.ts +80 -0
- package/src/models/ModelError.ts +74 -0
- package/src/models/Pickface.ts +118 -0
- package/src/models/PickfaceContentsInner.ts +116 -0
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +73 -0
- package/src/models/PickfaceContentsInnerMetadata.ts +81 -0
- package/src/models/PickfaceContentsInnerQuantity.ts +81 -0
- package/src/models/UpdatePickfaceRequest.ts +65 -0
- package/src/models/index.ts +12 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,118 @@
|
|
|
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.1.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CreatePickfaceRequestDimensions } from './CreatePickfaceRequestDimensions';
|
|
17
|
+
import {
|
|
18
|
+
CreatePickfaceRequestDimensionsFromJSON,
|
|
19
|
+
CreatePickfaceRequestDimensionsFromJSONTyped,
|
|
20
|
+
CreatePickfaceRequestDimensionsToJSON,
|
|
21
|
+
} from './CreatePickfaceRequestDimensions';
|
|
22
|
+
import type { PickfaceContentsInner } from './PickfaceContentsInner';
|
|
23
|
+
import {
|
|
24
|
+
PickfaceContentsInnerFromJSON,
|
|
25
|
+
PickfaceContentsInnerFromJSONTyped,
|
|
26
|
+
PickfaceContentsInnerToJSON,
|
|
27
|
+
} from './PickfaceContentsInner';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface Pickface
|
|
33
|
+
*/
|
|
34
|
+
export interface Pickface {
|
|
35
|
+
/**
|
|
36
|
+
* Unique object identifier
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Pickface
|
|
39
|
+
*/
|
|
40
|
+
id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* A reference to the resource location
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Pickface
|
|
45
|
+
*/
|
|
46
|
+
ref?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Pickface
|
|
51
|
+
*/
|
|
52
|
+
code?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof Pickface
|
|
57
|
+
*/
|
|
58
|
+
enabled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CreatePickfaceRequestDimensions}
|
|
62
|
+
* @memberof Pickface
|
|
63
|
+
*/
|
|
64
|
+
dimensions?: CreatePickfaceRequestDimensions;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<PickfaceContentsInner>}
|
|
68
|
+
* @memberof Pickface
|
|
69
|
+
*/
|
|
70
|
+
contents?: Array<PickfaceContentsInner>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the Pickface interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfPickface(value: object): boolean {
|
|
77
|
+
let isInstance = true;
|
|
78
|
+
|
|
79
|
+
return isInstance;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function PickfaceFromJSON(json: any): Pickface {
|
|
83
|
+
return PickfaceFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function PickfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pickface {
|
|
87
|
+
if ((json === undefined) || (json === null)) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
93
|
+
'ref': !exists(json, 'ref') ? undefined : json['ref'],
|
|
94
|
+
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
95
|
+
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
96
|
+
'dimensions': !exists(json, 'dimensions') ? undefined : CreatePickfaceRequestDimensionsFromJSON(json['dimensions']),
|
|
97
|
+
'contents': !exists(json, 'contents') ? undefined : ((json['contents'] as Array<any>).map(PickfaceContentsInnerFromJSON)),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function PickfaceToJSON(value?: Pickface | null): any {
|
|
102
|
+
if (value === undefined) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
if (value === null) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': value.id,
|
|
111
|
+
'ref': value.ref,
|
|
112
|
+
'code': value.code,
|
|
113
|
+
'enabled': value.enabled,
|
|
114
|
+
'dimensions': CreatePickfaceRequestDimensionsToJSON(value.dimensions),
|
|
115
|
+
'contents': value.contents === undefined ? undefined : ((value.contents as Array<any>).map(PickfaceContentsInnerToJSON)),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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.1.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { PickfaceContentsInnerApplicationsInner } from './PickfaceContentsInnerApplicationsInner';
|
|
17
|
+
import {
|
|
18
|
+
PickfaceContentsInnerApplicationsInnerFromJSON,
|
|
19
|
+
PickfaceContentsInnerApplicationsInnerFromJSONTyped,
|
|
20
|
+
PickfaceContentsInnerApplicationsInnerToJSON,
|
|
21
|
+
} from './PickfaceContentsInnerApplicationsInner';
|
|
22
|
+
import type { PickfaceContentsInnerMetadata } from './PickfaceContentsInnerMetadata';
|
|
23
|
+
import {
|
|
24
|
+
PickfaceContentsInnerMetadataFromJSON,
|
|
25
|
+
PickfaceContentsInnerMetadataFromJSONTyped,
|
|
26
|
+
PickfaceContentsInnerMetadataToJSON,
|
|
27
|
+
} from './PickfaceContentsInnerMetadata';
|
|
28
|
+
import type { PickfaceContentsInnerQuantity } from './PickfaceContentsInnerQuantity';
|
|
29
|
+
import {
|
|
30
|
+
PickfaceContentsInnerQuantityFromJSON,
|
|
31
|
+
PickfaceContentsInnerQuantityFromJSONTyped,
|
|
32
|
+
PickfaceContentsInnerQuantityToJSON,
|
|
33
|
+
} from './PickfaceContentsInnerQuantity';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface PickfaceContentsInner
|
|
39
|
+
*/
|
|
40
|
+
export interface PickfaceContentsInner {
|
|
41
|
+
/**
|
|
42
|
+
* A reference to the resource location
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PickfaceContentsInner
|
|
45
|
+
*/
|
|
46
|
+
variantRef?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PickfaceContentsInner
|
|
51
|
+
*/
|
|
52
|
+
ownerProjectId?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PickfaceContentsInnerQuantity}
|
|
56
|
+
* @memberof PickfaceContentsInner
|
|
57
|
+
*/
|
|
58
|
+
quantity?: PickfaceContentsInnerQuantity;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<PickfaceContentsInnerApplicationsInner>}
|
|
62
|
+
* @memberof PickfaceContentsInner
|
|
63
|
+
*/
|
|
64
|
+
applications?: Array<PickfaceContentsInnerApplicationsInner>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {PickfaceContentsInnerMetadata}
|
|
68
|
+
* @memberof PickfaceContentsInner
|
|
69
|
+
*/
|
|
70
|
+
metadata?: PickfaceContentsInnerMetadata | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the PickfaceContentsInner interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfPickfaceContentsInner(value: object): boolean {
|
|
77
|
+
let isInstance = true;
|
|
78
|
+
|
|
79
|
+
return isInstance;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function PickfaceContentsInnerFromJSON(json: any): PickfaceContentsInner {
|
|
83
|
+
return PickfaceContentsInnerFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function PickfaceContentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInner {
|
|
87
|
+
if ((json === undefined) || (json === null)) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'variantRef': !exists(json, 'variantRef') ? undefined : json['variantRef'],
|
|
93
|
+
'ownerProjectId': !exists(json, 'ownerProjectId') ? undefined : json['ownerProjectId'],
|
|
94
|
+
'quantity': !exists(json, 'quantity') ? undefined : PickfaceContentsInnerQuantityFromJSON(json['quantity']),
|
|
95
|
+
'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(PickfaceContentsInnerApplicationsInnerFromJSON)),
|
|
96
|
+
'metadata': !exists(json, 'metadata') ? undefined : PickfaceContentsInnerMetadataFromJSON(json['metadata']),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PickfaceContentsInnerToJSON(value?: PickfaceContentsInner | null): any {
|
|
101
|
+
if (value === undefined) {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
if (value === null) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'variantRef': value.variantRef,
|
|
110
|
+
'ownerProjectId': value.ownerProjectId,
|
|
111
|
+
'quantity': PickfaceContentsInnerQuantityToJSON(value.quantity),
|
|
112
|
+
'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(PickfaceContentsInnerApplicationsInnerToJSON)),
|
|
113
|
+
'metadata': PickfaceContentsInnerMetadataToJSON(value.metadata),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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.1.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PickfaceContentsInnerApplicationsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface PickfaceContentsInnerApplicationsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PickfaceContentsInnerApplicationsInner
|
|
26
|
+
*/
|
|
27
|
+
placement?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A unique identifier for the application
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PickfaceContentsInnerApplicationsInner
|
|
32
|
+
*/
|
|
33
|
+
signature?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PickfaceContentsInnerApplicationsInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPickfaceContentsInnerApplicationsInner(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PickfaceContentsInnerApplicationsInnerFromJSON(json: any): PickfaceContentsInnerApplicationsInner {
|
|
46
|
+
return PickfaceContentsInnerApplicationsInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PickfaceContentsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInnerApplicationsInner {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'placement': !exists(json, 'placement') ? undefined : json['placement'],
|
|
56
|
+
'signature': !exists(json, 'signature') ? undefined : json['signature'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PickfaceContentsInnerApplicationsInnerToJSON(value?: PickfaceContentsInnerApplicationsInner | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'placement': value.placement,
|
|
70
|
+
'signature': value.signature,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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.1.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Any additional metadata
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PickfaceContentsInnerMetadata
|
|
20
|
+
*/
|
|
21
|
+
export interface PickfaceContentsInnerMetadata {
|
|
22
|
+
/**
|
|
23
|
+
* The title of the product
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PickfaceContentsInnerMetadata
|
|
26
|
+
*/
|
|
27
|
+
title?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The image of the front of the product
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PickfaceContentsInnerMetadata
|
|
32
|
+
*/
|
|
33
|
+
frontImage?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The image of the back of the product
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PickfaceContentsInnerMetadata
|
|
38
|
+
*/
|
|
39
|
+
backImage?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PickfaceContentsInnerMetadata interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPickfaceContentsInnerMetadata(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PickfaceContentsInnerMetadataFromJSON(json: any): PickfaceContentsInnerMetadata {
|
|
52
|
+
return PickfaceContentsInnerMetadataFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PickfaceContentsInnerMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInnerMetadata {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'title': !exists(json, 'title') ? undefined : json['title'],
|
|
62
|
+
'frontImage': !exists(json, 'frontImage') ? undefined : json['frontImage'],
|
|
63
|
+
'backImage': !exists(json, 'backImage') ? undefined : json['backImage'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PickfaceContentsInnerMetadataToJSON(value?: PickfaceContentsInnerMetadata | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'title': value.title,
|
|
77
|
+
'frontImage': value.frontImage,
|
|
78
|
+
'backImage': value.backImage,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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.1.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PickfaceContentsInnerQuantity
|
|
20
|
+
*/
|
|
21
|
+
export interface PickfaceContentsInnerQuantity {
|
|
22
|
+
/**
|
|
23
|
+
* How many are in the box
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PickfaceContentsInnerQuantity
|
|
26
|
+
*/
|
|
27
|
+
total?: number;
|
|
28
|
+
/**
|
|
29
|
+
* How many are available to reserve
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PickfaceContentsInnerQuantity
|
|
32
|
+
*/
|
|
33
|
+
available?: number;
|
|
34
|
+
/**
|
|
35
|
+
* How many are pending some action e.g. to be picked
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PickfaceContentsInnerQuantity
|
|
38
|
+
*/
|
|
39
|
+
reserved?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PickfaceContentsInnerQuantity interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPickfaceContentsInnerQuantity(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PickfaceContentsInnerQuantityFromJSON(json: any): PickfaceContentsInnerQuantity {
|
|
52
|
+
return PickfaceContentsInnerQuantityFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PickfaceContentsInnerQuantityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInnerQuantity {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'total': !exists(json, 'total') ? undefined : json['total'],
|
|
62
|
+
'available': !exists(json, 'available') ? undefined : json['available'],
|
|
63
|
+
'reserved': !exists(json, 'reserved') ? undefined : json['reserved'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PickfaceContentsInnerQuantityToJSON(value?: PickfaceContentsInnerQuantity | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'total': value.total,
|
|
77
|
+
'available': value.available,
|
|
78
|
+
'reserved': value.reserved,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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.1.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 { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdatePickfaceRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdatePickfaceRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdatePickfaceRequest
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdatePickfaceRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdatePickfaceRequest(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function UpdatePickfaceRequestFromJSON(json: any): UpdatePickfaceRequest {
|
|
40
|
+
return UpdatePickfaceRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UpdatePickfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePickfaceRequest {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdatePickfaceRequestToJSON(value?: UpdatePickfaceRequest | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'enabled': value.enabled,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './CreatePickfaceRequest';
|
|
4
|
+
export * from './CreatePickfaceRequestDimensions';
|
|
5
|
+
export * from './GetPickfaces200Response';
|
|
6
|
+
export * from './ModelError';
|
|
7
|
+
export * from './Pickface';
|
|
8
|
+
export * from './PickfaceContentsInner';
|
|
9
|
+
export * from './PickfaceContentsInnerApplicationsInner';
|
|
10
|
+
export * from './PickfaceContentsInnerMetadata';
|
|
11
|
+
export * from './PickfaceContentsInnerQuantity';
|
|
12
|
+
export * from './UpdatePickfaceRequest';
|