@teemill/pickfaces 0.6.0 → 0.7.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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/PickfacesApi.d.ts +1 -1
  5. package/dist/apis/PickfacesApi.js +1 -1
  6. package/dist/models/CreatePickfaceRequest.d.ts +1 -1
  7. package/dist/models/CreatePickfaceRequest.js +1 -1
  8. package/dist/models/CreatePickfaceRequestDimensions.d.ts +1 -1
  9. package/dist/models/CreatePickfaceRequestDimensions.js +1 -1
  10. package/dist/models/GetPickfaces200Response.d.ts +1 -1
  11. package/dist/models/GetPickfaces200Response.js +1 -1
  12. package/dist/models/ModelError.d.ts +1 -1
  13. package/dist/models/ModelError.js +1 -1
  14. package/dist/models/Pickface.d.ts +9 -7
  15. package/dist/models/Pickface.js +7 -5
  16. package/dist/models/PickfaceContentsInner.d.ts +1 -1
  17. package/dist/models/PickfaceContentsInner.js +1 -1
  18. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +1 -1
  19. package/dist/models/PickfaceContentsInnerApplicationsInner.js +1 -1
  20. package/dist/models/PickfaceContentsInnerMetadata.d.ts +1 -1
  21. package/dist/models/PickfaceContentsInnerMetadata.js +1 -1
  22. package/dist/models/PickfaceContentsInnerQuantity.d.ts +1 -1
  23. package/dist/models/PickfaceContentsInnerQuantity.js +1 -1
  24. package/dist/models/PickfaceLastPicked.d.ts +44 -0
  25. package/dist/models/PickfaceLastPicked.js +55 -0
  26. package/dist/models/PickfaceLastRestocked.d.ts +44 -0
  27. package/dist/models/PickfaceLastRestocked.js +55 -0
  28. package/dist/models/PickfaceLog.d.ts +44 -0
  29. package/dist/models/PickfaceLog.js +55 -0
  30. package/dist/models/PickfaceLogUser.d.ts +37 -0
  31. package/dist/models/PickfaceLogUser.js +52 -0
  32. package/dist/models/UpdatePickfaceRequest.d.ts +1 -1
  33. package/dist/models/UpdatePickfaceRequest.js +1 -1
  34. package/dist/models/index.d.ts +4 -0
  35. package/dist/models/index.js +4 -0
  36. package/dist/runtime.d.ts +1 -1
  37. package/dist/runtime.js +1 -1
  38. package/package.json +1 -1
  39. package/src/apis/PickfacesApi.ts +1 -1
  40. package/src/models/CreatePickfaceRequest.ts +1 -1
  41. package/src/models/CreatePickfaceRequestDimensions.ts +1 -1
  42. package/src/models/GetPickfaces200Response.ts +1 -1
  43. package/src/models/ModelError.ts +1 -1
  44. package/src/models/Pickface.ts +23 -11
  45. package/src/models/PickfaceContentsInner.ts +1 -1
  46. package/src/models/PickfaceContentsInnerApplicationsInner.ts +1 -1
  47. package/src/models/PickfaceContentsInnerMetadata.ts +1 -1
  48. package/src/models/PickfaceContentsInnerQuantity.ts +1 -1
  49. package/src/models/PickfaceLastPicked.ts +88 -0
  50. package/src/models/PickfaceLastRestocked.ts +88 -0
  51. package/src/models/PickfaceLog.ts +88 -0
  52. package/src/models/PickfaceLogUser.ts +73 -0
  53. package/src/models/UpdatePickfaceRequest.ts +1 -1
  54. package/src/models/index.ts +4 -0
  55. package/src/runtime.ts +1 -1
@@ -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.7.0
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
+ * The user that took the action
14
+ * @export
15
+ * @interface PickfaceLogUser
16
+ */
17
+ export interface PickfaceLogUser {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PickfaceLogUser
22
+ */
23
+ id?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PickfaceLogUser
28
+ */
29
+ name?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PickfaceLogUser interface.
33
+ */
34
+ export declare function instanceOfPickfaceLogUser(value: object): boolean;
35
+ export declare function PickfaceLogUserFromJSON(json: any): PickfaceLogUser;
36
+ export declare function PickfaceLogUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLogUser;
37
+ export declare function PickfaceLogUserToJSON(value?: PickfaceLogUser | 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.7.0
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.PickfaceLogUserToJSON = exports.PickfaceLogUserFromJSONTyped = exports.PickfaceLogUserFromJSON = exports.instanceOfPickfaceLogUser = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PickfaceLogUser interface.
20
+ */
21
+ function instanceOfPickfaceLogUser(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPickfaceLogUser = instanceOfPickfaceLogUser;
26
+ function PickfaceLogUserFromJSON(json) {
27
+ return PickfaceLogUserFromJSONTyped(json, false);
28
+ }
29
+ exports.PickfaceLogUserFromJSON = PickfaceLogUserFromJSON;
30
+ function PickfaceLogUserFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ };
38
+ }
39
+ exports.PickfaceLogUserFromJSONTyped = PickfaceLogUserFromJSONTyped;
40
+ function PickfaceLogUserToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'id': value.id,
49
+ 'name': value.name,
50
+ };
51
+ }
52
+ exports.PickfaceLogUserToJSON = PickfaceLogUserToJSON;
@@ -2,7 +2,7 @@
2
2
  * Pickfaces API
3
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
4
  *
5
- * The version of the OpenAPI document: 0.6.0
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Pickfaces API
6
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
7
  *
8
- * The version of the OpenAPI document: 0.6.0
8
+ * The version of the OpenAPI document: 0.7.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7,4 +7,8 @@ export * from './PickfaceContentsInner';
7
7
  export * from './PickfaceContentsInnerApplicationsInner';
8
8
  export * from './PickfaceContentsInnerMetadata';
9
9
  export * from './PickfaceContentsInnerQuantity';
10
+ export * from './PickfaceLastPicked';
11
+ export * from './PickfaceLastRestocked';
12
+ export * from './PickfaceLog';
13
+ export * from './PickfaceLogUser';
10
14
  export * from './UpdatePickfaceRequest';
@@ -25,4 +25,8 @@ __exportStar(require("./PickfaceContentsInner"), exports);
25
25
  __exportStar(require("./PickfaceContentsInnerApplicationsInner"), exports);
26
26
  __exportStar(require("./PickfaceContentsInnerMetadata"), exports);
27
27
  __exportStar(require("./PickfaceContentsInnerQuantity"), exports);
28
+ __exportStar(require("./PickfaceLastPicked"), exports);
29
+ __exportStar(require("./PickfaceLastRestocked"), exports);
30
+ __exportStar(require("./PickfaceLog"), exports);
31
+ __exportStar(require("./PickfaceLogUser"), exports);
28
32
  __exportStar(require("./UpdatePickfaceRequest"), exports);
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pickfaces API
3
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
4
  *
5
- * The version of the OpenAPI document: 0.6.0
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pickfaces API
6
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
7
  *
8
- * The version of the OpenAPI document: 0.6.0
8
+ * The version of the OpenAPI document: 0.7.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/pickfaces",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "OpenAPI client for @teemill/pickfaces",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,6 +25,18 @@ import {
25
25
  PickfaceContentsInnerFromJSONTyped,
26
26
  PickfaceContentsInnerToJSON,
27
27
  } from './PickfaceContentsInner';
28
+ import type { PickfaceLastPicked } from './PickfaceLastPicked';
29
+ import {
30
+ PickfaceLastPickedFromJSON,
31
+ PickfaceLastPickedFromJSONTyped,
32
+ PickfaceLastPickedToJSON,
33
+ } from './PickfaceLastPicked';
34
+ import type { PickfaceLastRestocked } from './PickfaceLastRestocked';
35
+ import {
36
+ PickfaceLastRestockedFromJSON,
37
+ PickfaceLastRestockedFromJSONTyped,
38
+ PickfaceLastRestockedToJSON,
39
+ } from './PickfaceLastRestocked';
28
40
 
29
41
  /**
30
42
  *
@@ -69,17 +81,17 @@ export interface Pickface {
69
81
  */
70
82
  fullness?: number;
71
83
  /**
72
- * The last time the pickface was picked from
73
- * @type {Date}
84
+ *
85
+ * @type {PickfaceLastPicked}
74
86
  * @memberof Pickface
75
87
  */
76
- lastPicked?: Date | null;
88
+ lastPicked?: PickfaceLastPicked;
77
89
  /**
78
- * The last time the pickface was restocked
79
- * @type {Date}
90
+ *
91
+ * @type {PickfaceLastRestocked}
80
92
  * @memberof Pickface
81
93
  */
82
- lastRestocked?: Date | null;
94
+ lastRestocked?: PickfaceLastRestocked;
83
95
  /**
84
96
  *
85
97
  * @type {Array<PickfaceContentsInner>}
@@ -113,8 +125,8 @@ export function PickfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
113
125
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
114
126
  'dimensions': !exists(json, 'dimensions') ? undefined : CreatePickfaceRequestDimensionsFromJSON(json['dimensions']),
115
127
  'fullness': !exists(json, 'fullness') ? undefined : json['fullness'],
116
- 'lastPicked': !exists(json, 'lastPicked') ? undefined : (json['lastPicked'] === null ? null : new Date(json['lastPicked'])),
117
- 'lastRestocked': !exists(json, 'lastRestocked') ? undefined : (json['lastRestocked'] === null ? null : new Date(json['lastRestocked'])),
128
+ 'lastPicked': !exists(json, 'lastPicked') ? undefined : PickfaceLastPickedFromJSON(json['lastPicked']),
129
+ 'lastRestocked': !exists(json, 'lastRestocked') ? undefined : PickfaceLastRestockedFromJSON(json['lastRestocked']),
118
130
  'contents': !exists(json, 'contents') ? undefined : ((json['contents'] as Array<any>).map(PickfaceContentsInnerFromJSON)),
119
131
  };
120
132
  }
@@ -134,8 +146,8 @@ export function PickfaceToJSON(value?: Pickface | null): any {
134
146
  'enabled': value.enabled,
135
147
  'dimensions': CreatePickfaceRequestDimensionsToJSON(value.dimensions),
136
148
  'fullness': value.fullness,
137
- 'lastPicked': value.lastPicked === undefined ? undefined : (value.lastPicked === null ? null : value.lastPicked.toISOString()),
138
- 'lastRestocked': value.lastRestocked === undefined ? undefined : (value.lastRestocked === null ? null : value.lastRestocked.toISOString()),
149
+ 'lastPicked': PickfaceLastPickedToJSON(value.lastPicked),
150
+ 'lastRestocked': PickfaceLastRestockedToJSON(value.lastRestocked),
139
151
  'contents': value.contents === undefined ? undefined : ((value.contents as Array<any>).map(PickfaceContentsInnerToJSON)),
140
152
  };
141
153
  }
@@ -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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.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.6.0
7
+ * The version of the OpenAPI document: 0.7.0
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,88 @@
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.7.0
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 { PickfaceLogUser } from './PickfaceLogUser';
17
+ import {
18
+ PickfaceLogUserFromJSON,
19
+ PickfaceLogUserFromJSONTyped,
20
+ PickfaceLogUserToJSON,
21
+ } from './PickfaceLogUser';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PickfaceLastPicked
27
+ */
28
+ export interface PickfaceLastPicked {
29
+ /**
30
+ * Unique object identifier
31
+ * @type {string}
32
+ * @memberof PickfaceLastPicked
33
+ */
34
+ id?: string;
35
+ /**
36
+ *
37
+ * @type {PickfaceLogUser}
38
+ * @memberof PickfaceLastPicked
39
+ */
40
+ user?: PickfaceLogUser;
41
+ /**
42
+ * ISO 8601 Created at timestamp
43
+ * @type {Date}
44
+ * @memberof PickfaceLastPicked
45
+ */
46
+ createdAt?: Date;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PickfaceLastPicked interface.
51
+ */
52
+ export function instanceOfPickfaceLastPicked(value: object): boolean {
53
+ let isInstance = true;
54
+
55
+ return isInstance;
56
+ }
57
+
58
+ export function PickfaceLastPickedFromJSON(json: any): PickfaceLastPicked {
59
+ return PickfaceLastPickedFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function PickfaceLastPickedFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLastPicked {
63
+ if ((json === undefined) || (json === null)) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'id': !exists(json, 'id') ? undefined : json['id'],
69
+ 'user': !exists(json, 'user') ? undefined : PickfaceLogUserFromJSON(json['user']),
70
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
71
+ };
72
+ }
73
+
74
+ export function PickfaceLastPickedToJSON(value?: PickfaceLastPicked | null): any {
75
+ if (value === undefined) {
76
+ return undefined;
77
+ }
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ return {
82
+
83
+ 'id': value.id,
84
+ 'user': PickfaceLogUserToJSON(value.user),
85
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
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.7.0
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 { PickfaceLogUser } from './PickfaceLogUser';
17
+ import {
18
+ PickfaceLogUserFromJSON,
19
+ PickfaceLogUserFromJSONTyped,
20
+ PickfaceLogUserToJSON,
21
+ } from './PickfaceLogUser';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PickfaceLastRestocked
27
+ */
28
+ export interface PickfaceLastRestocked {
29
+ /**
30
+ * Unique object identifier
31
+ * @type {string}
32
+ * @memberof PickfaceLastRestocked
33
+ */
34
+ id?: string;
35
+ /**
36
+ *
37
+ * @type {PickfaceLogUser}
38
+ * @memberof PickfaceLastRestocked
39
+ */
40
+ user?: PickfaceLogUser;
41
+ /**
42
+ * ISO 8601 Created at timestamp
43
+ * @type {Date}
44
+ * @memberof PickfaceLastRestocked
45
+ */
46
+ createdAt?: Date;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PickfaceLastRestocked interface.
51
+ */
52
+ export function instanceOfPickfaceLastRestocked(value: object): boolean {
53
+ let isInstance = true;
54
+
55
+ return isInstance;
56
+ }
57
+
58
+ export function PickfaceLastRestockedFromJSON(json: any): PickfaceLastRestocked {
59
+ return PickfaceLastRestockedFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function PickfaceLastRestockedFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLastRestocked {
63
+ if ((json === undefined) || (json === null)) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'id': !exists(json, 'id') ? undefined : json['id'],
69
+ 'user': !exists(json, 'user') ? undefined : PickfaceLogUserFromJSON(json['user']),
70
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
71
+ };
72
+ }
73
+
74
+ export function PickfaceLastRestockedToJSON(value?: PickfaceLastRestocked | null): any {
75
+ if (value === undefined) {
76
+ return undefined;
77
+ }
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ return {
82
+
83
+ 'id': value.id,
84
+ 'user': PickfaceLogUserToJSON(value.user),
85
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
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.7.0
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 { PickfaceLogUser } from './PickfaceLogUser';
17
+ import {
18
+ PickfaceLogUserFromJSON,
19
+ PickfaceLogUserFromJSONTyped,
20
+ PickfaceLogUserToJSON,
21
+ } from './PickfaceLogUser';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PickfaceLog
27
+ */
28
+ export interface PickfaceLog {
29
+ /**
30
+ * Unique object identifier
31
+ * @type {string}
32
+ * @memberof PickfaceLog
33
+ */
34
+ id?: string;
35
+ /**
36
+ *
37
+ * @type {PickfaceLogUser}
38
+ * @memberof PickfaceLog
39
+ */
40
+ user?: PickfaceLogUser;
41
+ /**
42
+ * ISO 8601 Created at timestamp
43
+ * @type {Date}
44
+ * @memberof PickfaceLog
45
+ */
46
+ createdAt?: Date;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PickfaceLog interface.
51
+ */
52
+ export function instanceOfPickfaceLog(value: object): boolean {
53
+ let isInstance = true;
54
+
55
+ return isInstance;
56
+ }
57
+
58
+ export function PickfaceLogFromJSON(json: any): PickfaceLog {
59
+ return PickfaceLogFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function PickfaceLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLog {
63
+ if ((json === undefined) || (json === null)) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'id': !exists(json, 'id') ? undefined : json['id'],
69
+ 'user': !exists(json, 'user') ? undefined : PickfaceLogUserFromJSON(json['user']),
70
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
71
+ };
72
+ }
73
+
74
+ export function PickfaceLogToJSON(value?: PickfaceLog | null): any {
75
+ if (value === undefined) {
76
+ return undefined;
77
+ }
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ return {
82
+
83
+ 'id': value.id,
84
+ 'user': PickfaceLogUserToJSON(value.user),
85
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
86
+ };
87
+ }
88
+
@@ -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.7.0
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
+ * The user that took the action
18
+ * @export
19
+ * @interface PickfaceLogUser
20
+ */
21
+ export interface PickfaceLogUser {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PickfaceLogUser
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PickfaceLogUser
32
+ */
33
+ name?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PickfaceLogUser interface.
38
+ */
39
+ export function instanceOfPickfaceLogUser(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function PickfaceLogUserFromJSON(json: any): PickfaceLogUser {
46
+ return PickfaceLogUserFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PickfaceLogUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLogUser {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': !exists(json, 'id') ? undefined : json['id'],
56
+ 'name': !exists(json, 'name') ? undefined : json['name'],
57
+ };
58
+ }
59
+
60
+ export function PickfaceLogUserToJSON(value?: PickfaceLogUser | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'id': value.id,
70
+ 'name': value.name,
71
+ };
72
+ }
73
+