@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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +21 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/PickfacesApi.d.ts +91 -0
  6. package/dist/apis/PickfacesApi.js +366 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +19 -0
  9. package/dist/index.d.ts +3 -0
  10. package/dist/index.js +21 -0
  11. package/dist/models/CreatePickfaceRequest.d.ts +38 -0
  12. package/dist/models/CreatePickfaceRequest.js +53 -0
  13. package/dist/models/CreatePickfaceRequestDimensions.d.ts +43 -0
  14. package/dist/models/CreatePickfaceRequestDimensions.js +54 -0
  15. package/dist/models/GetPickfaces200Response.d.ts +38 -0
  16. package/dist/models/GetPickfaces200Response.js +53 -0
  17. package/dist/models/ModelError.d.ts +37 -0
  18. package/dist/models/ModelError.js +53 -0
  19. package/dist/models/Pickface.d.ts +63 -0
  20. package/dist/models/Pickface.js +62 -0
  21. package/dist/models/PickfaceContentsInner.d.ts +58 -0
  22. package/dist/models/PickfaceContentsInner.js +61 -0
  23. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +37 -0
  24. package/dist/models/PickfaceContentsInnerApplicationsInner.js +52 -0
  25. package/dist/models/PickfaceContentsInnerMetadata.d.ts +43 -0
  26. package/dist/models/PickfaceContentsInnerMetadata.js +54 -0
  27. package/dist/models/PickfaceContentsInnerQuantity.d.ts +43 -0
  28. package/dist/models/PickfaceContentsInnerQuantity.js +54 -0
  29. package/dist/models/UpdatePickfaceRequest.d.ts +31 -0
  30. package/dist/models/UpdatePickfaceRequest.js +50 -0
  31. package/dist/models/index.d.ts +10 -0
  32. package/dist/models/index.js +28 -0
  33. package/dist/runtime.d.ts +182 -0
  34. package/dist/runtime.js +562 -0
  35. package/package.json +19 -0
  36. package/src/apis/PickfacesApi.ts +304 -0
  37. package/src/apis/index.ts +3 -0
  38. package/src/index.ts +5 -0
  39. package/src/models/CreatePickfaceRequest.ts +80 -0
  40. package/src/models/CreatePickfaceRequestDimensions.ts +81 -0
  41. package/src/models/GetPickfaces200Response.ts +80 -0
  42. package/src/models/ModelError.ts +74 -0
  43. package/src/models/Pickface.ts +118 -0
  44. package/src/models/PickfaceContentsInner.ts +116 -0
  45. package/src/models/PickfaceContentsInnerApplicationsInner.ts +73 -0
  46. package/src/models/PickfaceContentsInnerMetadata.ts +81 -0
  47. package/src/models/PickfaceContentsInnerQuantity.ts +81 -0
  48. package/src/models/UpdatePickfaceRequest.ts +65 -0
  49. package/src/models/index.ts +12 -0
  50. package/src/runtime.ts +431 -0
  51. package/tsconfig.json +20 -0
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * 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)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreatePickfaceRequestToJSON = exports.CreatePickfaceRequestFromJSONTyped = exports.CreatePickfaceRequestFromJSON = exports.instanceOfCreatePickfaceRequest = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var CreatePickfaceRequestDimensions_1 = require("./CreatePickfaceRequestDimensions");
19
+ /**
20
+ * Check if a given object implements the CreatePickfaceRequest interface.
21
+ */
22
+ function instanceOfCreatePickfaceRequest(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfCreatePickfaceRequest = instanceOfCreatePickfaceRequest;
27
+ function CreatePickfaceRequestFromJSON(json) {
28
+ return CreatePickfaceRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.CreatePickfaceRequestFromJSON = CreatePickfaceRequestFromJSON;
31
+ function CreatePickfaceRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'location': !(0, runtime_1.exists)(json, 'location') ? undefined : json['location'],
37
+ 'dimensions': !(0, runtime_1.exists)(json, 'dimensions') ? undefined : (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsFromJSON)(json['dimensions']),
38
+ };
39
+ }
40
+ exports.CreatePickfaceRequestFromJSONTyped = CreatePickfaceRequestFromJSONTyped;
41
+ function CreatePickfaceRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'location': value.location,
50
+ 'dimensions': (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsToJSON)(value.dimensions),
51
+ };
52
+ }
53
+ exports.CreatePickfaceRequestToJSON = CreatePickfaceRequestToJSON;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Pickfaces API
3
+ * 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)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreatePickfaceRequestDimensions
16
+ */
17
+ export interface CreatePickfaceRequestDimensions {
18
+ /**
19
+ * The width of the pickface in millimetres
20
+ * @type {number}
21
+ * @memberof CreatePickfaceRequestDimensions
22
+ */
23
+ width?: number;
24
+ /**
25
+ * The depth of the pickface in millimetres
26
+ * @type {number}
27
+ * @memberof CreatePickfaceRequestDimensions
28
+ */
29
+ depth?: number;
30
+ /**
31
+ * The height of the pickface in millimetres
32
+ * @type {number}
33
+ * @memberof CreatePickfaceRequestDimensions
34
+ */
35
+ height?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CreatePickfaceRequestDimensions interface.
39
+ */
40
+ export declare function instanceOfCreatePickfaceRequestDimensions(value: object): boolean;
41
+ export declare function CreatePickfaceRequestDimensionsFromJSON(json: any): CreatePickfaceRequestDimensions;
42
+ export declare function CreatePickfaceRequestDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePickfaceRequestDimensions;
43
+ export declare function CreatePickfaceRequestDimensionsToJSON(value?: CreatePickfaceRequestDimensions | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * 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)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreatePickfaceRequestDimensionsToJSON = exports.CreatePickfaceRequestDimensionsFromJSONTyped = exports.CreatePickfaceRequestDimensionsFromJSON = exports.instanceOfCreatePickfaceRequestDimensions = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the CreatePickfaceRequestDimensions interface.
20
+ */
21
+ function instanceOfCreatePickfaceRequestDimensions(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCreatePickfaceRequestDimensions = instanceOfCreatePickfaceRequestDimensions;
26
+ function CreatePickfaceRequestDimensionsFromJSON(json) {
27
+ return CreatePickfaceRequestDimensionsFromJSONTyped(json, false);
28
+ }
29
+ exports.CreatePickfaceRequestDimensionsFromJSON = CreatePickfaceRequestDimensionsFromJSON;
30
+ function CreatePickfaceRequestDimensionsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'width': !(0, runtime_1.exists)(json, 'width') ? undefined : json['width'],
36
+ 'depth': !(0, runtime_1.exists)(json, 'depth') ? undefined : json['depth'],
37
+ 'height': !(0, runtime_1.exists)(json, 'height') ? undefined : json['height'],
38
+ };
39
+ }
40
+ exports.CreatePickfaceRequestDimensionsFromJSONTyped = CreatePickfaceRequestDimensionsFromJSONTyped;
41
+ function CreatePickfaceRequestDimensionsToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'width': value.width,
50
+ 'depth': value.depth,
51
+ 'height': value.height,
52
+ };
53
+ }
54
+ exports.CreatePickfaceRequestDimensionsToJSON = CreatePickfaceRequestDimensionsToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Pickfaces API
3
+ * 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)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Pickface } from './Pickface';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetPickfaces200Response
17
+ */
18
+ export interface GetPickfaces200Response {
19
+ /**
20
+ *
21
+ * @type {Array<Pickface>}
22
+ * @memberof GetPickfaces200Response
23
+ */
24
+ pickfaces?: Array<Pickface>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GetPickfaces200Response
29
+ */
30
+ nextPageToken?: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the GetPickfaces200Response interface.
34
+ */
35
+ export declare function instanceOfGetPickfaces200Response(value: object): boolean;
36
+ export declare function GetPickfaces200ResponseFromJSON(json: any): GetPickfaces200Response;
37
+ export declare function GetPickfaces200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPickfaces200Response;
38
+ export declare function GetPickfaces200ResponseToJSON(value?: GetPickfaces200Response | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * 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)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetPickfaces200ResponseToJSON = exports.GetPickfaces200ResponseFromJSONTyped = exports.GetPickfaces200ResponseFromJSON = exports.instanceOfGetPickfaces200Response = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Pickface_1 = require("./Pickface");
19
+ /**
20
+ * Check if a given object implements the GetPickfaces200Response interface.
21
+ */
22
+ function instanceOfGetPickfaces200Response(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfGetPickfaces200Response = instanceOfGetPickfaces200Response;
27
+ function GetPickfaces200ResponseFromJSON(json) {
28
+ return GetPickfaces200ResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.GetPickfaces200ResponseFromJSON = GetPickfaces200ResponseFromJSON;
31
+ function GetPickfaces200ResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'pickfaces': !(0, runtime_1.exists)(json, 'pickfaces') ? undefined : (json['pickfaces'].map(Pickface_1.PickfaceFromJSON)),
37
+ 'nextPageToken': !(0, runtime_1.exists)(json, 'nextPageToken') ? undefined : json['nextPageToken'],
38
+ };
39
+ }
40
+ exports.GetPickfaces200ResponseFromJSONTyped = GetPickfaces200ResponseFromJSONTyped;
41
+ function GetPickfaces200ResponseToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'pickfaces': value.pickfaces === undefined ? undefined : (value.pickfaces.map(Pickface_1.PickfaceToJSON)),
50
+ 'nextPageToken': value.nextPageToken,
51
+ };
52
+ }
53
+ exports.GetPickfaces200ResponseToJSON = GetPickfaces200ResponseToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Pickfaces API
3
+ * 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)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ModelError
16
+ */
17
+ export interface ModelError {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ModelError
22
+ */
23
+ code?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ModelError
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ModelError interface.
33
+ */
34
+ export declare function instanceOfModelError(value: object): boolean;
35
+ export declare function ModelErrorFromJSON(json: any): ModelError;
36
+ export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
37
+ export declare function ModelErrorToJSON(value?: ModelError | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * 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)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ModelErrorToJSON = exports.ModelErrorFromJSONTyped = exports.ModelErrorFromJSON = exports.instanceOfModelError = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ModelError interface.
20
+ */
21
+ function instanceOfModelError(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "message" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfModelError = instanceOfModelError;
27
+ function ModelErrorFromJSON(json) {
28
+ return ModelErrorFromJSONTyped(json, false);
29
+ }
30
+ exports.ModelErrorFromJSON = ModelErrorFromJSON;
31
+ function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
37
+ 'message': json['message'],
38
+ };
39
+ }
40
+ exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped;
41
+ function ModelErrorToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'code': value.code,
50
+ 'message': value.message,
51
+ };
52
+ }
53
+ exports.ModelErrorToJSON = ModelErrorToJSON;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Pickfaces API
3
+ * 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)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CreatePickfaceRequestDimensions } from './CreatePickfaceRequestDimensions';
13
+ import type { PickfaceContentsInner } from './PickfaceContentsInner';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Pickface
18
+ */
19
+ export interface Pickface {
20
+ /**
21
+ * Unique object identifier
22
+ * @type {string}
23
+ * @memberof Pickface
24
+ */
25
+ id?: string;
26
+ /**
27
+ * A reference to the resource location
28
+ * @type {string}
29
+ * @memberof Pickface
30
+ */
31
+ ref?: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof Pickface
36
+ */
37
+ code?: string;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof Pickface
42
+ */
43
+ enabled?: boolean;
44
+ /**
45
+ *
46
+ * @type {CreatePickfaceRequestDimensions}
47
+ * @memberof Pickface
48
+ */
49
+ dimensions?: CreatePickfaceRequestDimensions;
50
+ /**
51
+ *
52
+ * @type {Array<PickfaceContentsInner>}
53
+ * @memberof Pickface
54
+ */
55
+ contents?: Array<PickfaceContentsInner>;
56
+ }
57
+ /**
58
+ * Check if a given object implements the Pickface interface.
59
+ */
60
+ export declare function instanceOfPickface(value: object): boolean;
61
+ export declare function PickfaceFromJSON(json: any): Pickface;
62
+ export declare function PickfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pickface;
63
+ export declare function PickfaceToJSON(value?: Pickface | null): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * 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)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PickfaceToJSON = exports.PickfaceFromJSONTyped = exports.PickfaceFromJSON = exports.instanceOfPickface = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var CreatePickfaceRequestDimensions_1 = require("./CreatePickfaceRequestDimensions");
19
+ var PickfaceContentsInner_1 = require("./PickfaceContentsInner");
20
+ /**
21
+ * Check if a given object implements the Pickface interface.
22
+ */
23
+ function instanceOfPickface(value) {
24
+ var isInstance = true;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfPickface = instanceOfPickface;
28
+ function PickfaceFromJSON(json) {
29
+ return PickfaceFromJSONTyped(json, false);
30
+ }
31
+ exports.PickfaceFromJSON = PickfaceFromJSON;
32
+ function PickfaceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
+ 'ref': !(0, runtime_1.exists)(json, 'ref') ? undefined : json['ref'],
39
+ 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
40
+ 'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
41
+ 'dimensions': !(0, runtime_1.exists)(json, 'dimensions') ? undefined : (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsFromJSON)(json['dimensions']),
42
+ 'contents': !(0, runtime_1.exists)(json, 'contents') ? undefined : (json['contents'].map(PickfaceContentsInner_1.PickfaceContentsInnerFromJSON)),
43
+ };
44
+ }
45
+ exports.PickfaceFromJSONTyped = PickfaceFromJSONTyped;
46
+ function PickfaceToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'id': value.id,
55
+ 'ref': value.ref,
56
+ 'code': value.code,
57
+ 'enabled': value.enabled,
58
+ 'dimensions': (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsToJSON)(value.dimensions),
59
+ 'contents': value.contents === undefined ? undefined : (value.contents.map(PickfaceContentsInner_1.PickfaceContentsInnerToJSON)),
60
+ };
61
+ }
62
+ exports.PickfaceToJSON = PickfaceToJSON;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Pickfaces API
3
+ * 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)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PickfaceContentsInnerApplicationsInner } from './PickfaceContentsInnerApplicationsInner';
13
+ import type { PickfaceContentsInnerMetadata } from './PickfaceContentsInnerMetadata';
14
+ import type { PickfaceContentsInnerQuantity } from './PickfaceContentsInnerQuantity';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface PickfaceContentsInner
19
+ */
20
+ export interface PickfaceContentsInner {
21
+ /**
22
+ * A reference to the resource location
23
+ * @type {string}
24
+ * @memberof PickfaceContentsInner
25
+ */
26
+ variantRef?: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof PickfaceContentsInner
31
+ */
32
+ ownerProjectId?: string;
33
+ /**
34
+ *
35
+ * @type {PickfaceContentsInnerQuantity}
36
+ * @memberof PickfaceContentsInner
37
+ */
38
+ quantity?: PickfaceContentsInnerQuantity;
39
+ /**
40
+ *
41
+ * @type {Array<PickfaceContentsInnerApplicationsInner>}
42
+ * @memberof PickfaceContentsInner
43
+ */
44
+ applications?: Array<PickfaceContentsInnerApplicationsInner>;
45
+ /**
46
+ *
47
+ * @type {PickfaceContentsInnerMetadata}
48
+ * @memberof PickfaceContentsInner
49
+ */
50
+ metadata?: PickfaceContentsInnerMetadata | null;
51
+ }
52
+ /**
53
+ * Check if a given object implements the PickfaceContentsInner interface.
54
+ */
55
+ export declare function instanceOfPickfaceContentsInner(value: object): boolean;
56
+ export declare function PickfaceContentsInnerFromJSON(json: any): PickfaceContentsInner;
57
+ export declare function PickfaceContentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInner;
58
+ export declare function PickfaceContentsInnerToJSON(value?: PickfaceContentsInner | null): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * 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)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PickfaceContentsInnerToJSON = exports.PickfaceContentsInnerFromJSONTyped = exports.PickfaceContentsInnerFromJSON = exports.instanceOfPickfaceContentsInner = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var PickfaceContentsInnerApplicationsInner_1 = require("./PickfaceContentsInnerApplicationsInner");
19
+ var PickfaceContentsInnerMetadata_1 = require("./PickfaceContentsInnerMetadata");
20
+ var PickfaceContentsInnerQuantity_1 = require("./PickfaceContentsInnerQuantity");
21
+ /**
22
+ * Check if a given object implements the PickfaceContentsInner interface.
23
+ */
24
+ function instanceOfPickfaceContentsInner(value) {
25
+ var isInstance = true;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPickfaceContentsInner = instanceOfPickfaceContentsInner;
29
+ function PickfaceContentsInnerFromJSON(json) {
30
+ return PickfaceContentsInnerFromJSONTyped(json, false);
31
+ }
32
+ exports.PickfaceContentsInnerFromJSON = PickfaceContentsInnerFromJSON;
33
+ function PickfaceContentsInnerFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'variantRef': !(0, runtime_1.exists)(json, 'variantRef') ? undefined : json['variantRef'],
39
+ 'ownerProjectId': !(0, runtime_1.exists)(json, 'ownerProjectId') ? undefined : json['ownerProjectId'],
40
+ 'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : (0, PickfaceContentsInnerQuantity_1.PickfaceContentsInnerQuantityFromJSON)(json['quantity']),
41
+ 'applications': !(0, runtime_1.exists)(json, 'applications') ? undefined : (json['applications'].map(PickfaceContentsInnerApplicationsInner_1.PickfaceContentsInnerApplicationsInnerFromJSON)),
42
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, PickfaceContentsInnerMetadata_1.PickfaceContentsInnerMetadataFromJSON)(json['metadata']),
43
+ };
44
+ }
45
+ exports.PickfaceContentsInnerFromJSONTyped = PickfaceContentsInnerFromJSONTyped;
46
+ function PickfaceContentsInnerToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'variantRef': value.variantRef,
55
+ 'ownerProjectId': value.ownerProjectId,
56
+ 'quantity': (0, PickfaceContentsInnerQuantity_1.PickfaceContentsInnerQuantityToJSON)(value.quantity),
57
+ 'applications': value.applications === undefined ? undefined : (value.applications.map(PickfaceContentsInnerApplicationsInner_1.PickfaceContentsInnerApplicationsInnerToJSON)),
58
+ 'metadata': (0, PickfaceContentsInnerMetadata_1.PickfaceContentsInnerMetadataToJSON)(value.metadata),
59
+ };
60
+ }
61
+ exports.PickfaceContentsInnerToJSON = PickfaceContentsInnerToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Pickfaces API
3
+ * 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)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PickfaceContentsInnerApplicationsInner
16
+ */
17
+ export interface PickfaceContentsInnerApplicationsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PickfaceContentsInnerApplicationsInner
22
+ */
23
+ placement?: string;
24
+ /**
25
+ * A unique identifier for the application
26
+ * @type {string}
27
+ * @memberof PickfaceContentsInnerApplicationsInner
28
+ */
29
+ signature?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PickfaceContentsInnerApplicationsInner interface.
33
+ */
34
+ export declare function instanceOfPickfaceContentsInnerApplicationsInner(value: object): boolean;
35
+ export declare function PickfaceContentsInnerApplicationsInnerFromJSON(json: any): PickfaceContentsInnerApplicationsInner;
36
+ export declare function PickfaceContentsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInnerApplicationsInner;
37
+ export declare function PickfaceContentsInnerApplicationsInnerToJSON(value?: PickfaceContentsInnerApplicationsInner | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * 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)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PickfaceContentsInnerApplicationsInnerToJSON = exports.PickfaceContentsInnerApplicationsInnerFromJSONTyped = exports.PickfaceContentsInnerApplicationsInnerFromJSON = exports.instanceOfPickfaceContentsInnerApplicationsInner = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PickfaceContentsInnerApplicationsInner interface.
20
+ */
21
+ function instanceOfPickfaceContentsInnerApplicationsInner(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPickfaceContentsInnerApplicationsInner = instanceOfPickfaceContentsInnerApplicationsInner;
26
+ function PickfaceContentsInnerApplicationsInnerFromJSON(json) {
27
+ return PickfaceContentsInnerApplicationsInnerFromJSONTyped(json, false);
28
+ }
29
+ exports.PickfaceContentsInnerApplicationsInnerFromJSON = PickfaceContentsInnerApplicationsInnerFromJSON;
30
+ function PickfaceContentsInnerApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'placement': !(0, runtime_1.exists)(json, 'placement') ? undefined : json['placement'],
36
+ 'signature': !(0, runtime_1.exists)(json, 'signature') ? undefined : json['signature'],
37
+ };
38
+ }
39
+ exports.PickfaceContentsInnerApplicationsInnerFromJSONTyped = PickfaceContentsInnerApplicationsInnerFromJSONTyped;
40
+ function PickfaceContentsInnerApplicationsInnerToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'placement': value.placement,
49
+ 'signature': value.signature,
50
+ };
51
+ }
52
+ exports.PickfaceContentsInnerApplicationsInnerToJSON = PickfaceContentsInnerApplicationsInnerToJSON;