@teemill/pickfaces 0.9.1 → 0.11.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 (70) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/PickfacesApi.d.ts +33 -2
  5. package/dist/apis/PickfacesApi.js +144 -1
  6. package/dist/models/ApiError.d.ts +1 -1
  7. package/dist/models/ApiError.js +10 -14
  8. package/dist/models/CreatePickfaceRequest.d.ts +1 -1
  9. package/dist/models/CreatePickfaceRequest.js +9 -14
  10. package/dist/models/CreatePickfaceRequestDimensions.d.ts +1 -1
  11. package/dist/models/CreatePickfaceRequestDimensions.js +11 -16
  12. package/dist/models/GetPickfaces200Response.d.ts +1 -1
  13. package/dist/models/GetPickfaces200Response.js +9 -14
  14. package/dist/models/ListPickfaceLogs200Response.d.ts +38 -0
  15. package/dist/models/ListPickfaceLogs200Response.js +48 -0
  16. package/dist/models/MoveStockRequest.d.ts +1 -1
  17. package/dist/models/MoveStockRequest.js +14 -15
  18. package/dist/models/Pickface.d.ts +1 -1
  19. package/dist/models/Pickface.js +23 -28
  20. package/dist/models/PickfaceContentsInner.d.ts +3 -3
  21. package/dist/models/PickfaceContentsInner.js +15 -20
  22. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +1 -1
  23. package/dist/models/PickfaceContentsInnerApplicationsInner.js +9 -14
  24. package/dist/models/PickfaceContentsInnerMetadata.d.ts +4 -4
  25. package/dist/models/PickfaceContentsInnerMetadata.js +11 -16
  26. package/dist/models/PickfaceContentsInnerQuantity.d.ts +1 -1
  27. package/dist/models/PickfaceContentsInnerQuantity.js +11 -16
  28. package/dist/models/PickfaceLastPicked.d.ts +16 -5
  29. package/dist/models/PickfaceLastPicked.js +15 -17
  30. package/dist/models/PickfaceLastRestocked.d.ts +16 -5
  31. package/dist/models/PickfaceLastRestocked.js +15 -17
  32. package/dist/models/PickfaceLog.d.ts +16 -5
  33. package/dist/models/PickfaceLog.js +15 -17
  34. package/dist/models/UpdatePickfaceRequest.d.ts +5 -5
  35. package/dist/models/UpdatePickfaceRequest.js +10 -15
  36. package/dist/models/UpdatePickfaceRequestContents.d.ts +1 -1
  37. package/dist/models/UpdatePickfaceRequestContents.js +9 -14
  38. package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +38 -0
  39. package/dist/models/UpdatePickfaceRequestContentsInner.js +52 -0
  40. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +45 -0
  41. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +58 -0
  42. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +45 -0
  43. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +58 -0
  44. package/dist/models/index.d.ts +3 -2
  45. package/dist/models/index.js +3 -2
  46. package/dist/runtime.d.ts +1 -1
  47. package/dist/runtime.js +1 -1
  48. package/package.json +1 -1
  49. package/src/apis/PickfacesApi.ts +149 -1
  50. package/src/models/ApiError.ts +10 -15
  51. package/src/models/CreatePickfaceRequest.ts +10 -15
  52. package/src/models/CreatePickfaceRequestDimensions.ts +12 -17
  53. package/src/models/GetPickfaces200Response.ts +10 -15
  54. package/src/models/ListPickfaceLogs200Response.ts +75 -0
  55. package/src/models/MoveStockRequest.ts +12 -17
  56. package/src/models/Pickface.ts +24 -29
  57. package/src/models/PickfaceContentsInner.ts +18 -23
  58. package/src/models/PickfaceContentsInnerApplicationsInner.ts +10 -15
  59. package/src/models/PickfaceContentsInnerMetadata.ts +15 -20
  60. package/src/models/PickfaceContentsInnerQuantity.ts +12 -17
  61. package/src/models/PickfaceLastPicked.ts +31 -27
  62. package/src/models/PickfaceLastRestocked.ts +31 -27
  63. package/src/models/PickfaceLog.ts +31 -27
  64. package/src/models/UpdatePickfaceRequest.ts +18 -23
  65. package/src/models/UpdatePickfaceRequestContents.ts +10 -15
  66. package/src/models/UpdatePickfaceRequestContentsInner.ts +77 -0
  67. package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +81 -0
  68. package/src/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.ts +81 -0
  69. package/src/models/index.ts +3 -2
  70. package/src/runtime.ts +1 -1
@@ -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.9.1
8
+ * The version of the OpenAPI document: 0.11.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,11 +18,13 @@ exports.MoveStockRequestToJSON = exports.MoveStockRequestFromJSONTyped = exports
18
18
  * Check if a given object implements the MoveStockRequest interface.
19
19
  */
20
20
  function instanceOfMoveStockRequest(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "variantRef" in value;
23
- isInstance = isInstance && "quantity" in value;
24
- isInstance = isInstance && "toPickfaceRef" in value;
25
- return isInstance;
21
+ if (!('variantRef' in value))
22
+ return false;
23
+ if (!('quantity' in value))
24
+ return false;
25
+ if (!('toPickfaceRef' in value))
26
+ return false;
27
+ return true;
26
28
  }
27
29
  exports.instanceOfMoveStockRequest = instanceOfMoveStockRequest;
28
30
  function MoveStockRequestFromJSON(json) {
@@ -30,7 +32,7 @@ function MoveStockRequestFromJSON(json) {
30
32
  }
31
33
  exports.MoveStockRequestFromJSON = MoveStockRequestFromJSON;
32
34
  function MoveStockRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((json === undefined) || (json === null)) {
35
+ if (json == null) {
34
36
  return json;
35
37
  }
36
38
  return {
@@ -41,16 +43,13 @@ function MoveStockRequestFromJSONTyped(json, ignoreDiscriminator) {
41
43
  }
42
44
  exports.MoveStockRequestFromJSONTyped = MoveStockRequestFromJSONTyped;
43
45
  function MoveStockRequestToJSON(value) {
44
- if (value === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
46
+ if (value == null) {
47
+ return value;
49
48
  }
50
49
  return {
51
- 'variantRef': value.variantRef,
52
- 'quantity': value.quantity,
53
- 'toPickfaceRef': value.toPickfaceRef,
50
+ 'variantRef': value['variantRef'],
51
+ 'quantity': value['quantity'],
52
+ 'toPickfaceRef': value['toPickfaceRef'],
54
53
  };
55
54
  }
56
55
  exports.MoveStockRequestToJSON = MoveStockRequestToJSON;
@@ -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.9.1
5
+ * The version of the OpenAPI document: 0.11.1
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.9.1
8
+ * The version of the OpenAPI document: 0.11.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PickfaceToJSON = exports.PickfaceFromJSONTyped = exports.PickfaceFromJSON = exports.instanceOfPickface = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var CreatePickfaceRequestDimensions_1 = require("./CreatePickfaceRequestDimensions");
19
18
  var PickfaceContentsInner_1 = require("./PickfaceContentsInner");
20
19
  var PickfaceLastPicked_1 = require("./PickfaceLastPicked");
@@ -23,8 +22,7 @@ var PickfaceLastRestocked_1 = require("./PickfaceLastRestocked");
23
22
  * Check if a given object implements the Pickface interface.
24
23
  */
25
24
  function instanceOfPickface(value) {
26
- var isInstance = true;
27
- return isInstance;
25
+ return true;
28
26
  }
29
27
  exports.instanceOfPickface = instanceOfPickface;
30
28
  function PickfaceFromJSON(json) {
@@ -32,39 +30,36 @@ function PickfaceFromJSON(json) {
32
30
  }
33
31
  exports.PickfaceFromJSON = PickfaceFromJSON;
34
32
  function PickfaceFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
33
+ if (json == null) {
36
34
  return json;
37
35
  }
38
36
  return {
39
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
40
- 'ref': !(0, runtime_1.exists)(json, 'ref') ? undefined : json['ref'],
41
- 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
42
- 'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
43
- 'dimensions': !(0, runtime_1.exists)(json, 'dimensions') ? undefined : (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsFromJSON)(json['dimensions']),
44
- 'fullness': !(0, runtime_1.exists)(json, 'fullness') ? undefined : json['fullness'],
45
- 'lastPicked': !(0, runtime_1.exists)(json, 'lastPicked') ? undefined : (0, PickfaceLastPicked_1.PickfaceLastPickedFromJSON)(json['lastPicked']),
46
- 'lastRestocked': !(0, runtime_1.exists)(json, 'lastRestocked') ? undefined : (0, PickfaceLastRestocked_1.PickfaceLastRestockedFromJSON)(json['lastRestocked']),
47
- 'contents': !(0, runtime_1.exists)(json, 'contents') ? undefined : (json['contents'].map(PickfaceContentsInner_1.PickfaceContentsInnerFromJSON)),
37
+ 'id': json['id'] == null ? undefined : json['id'],
38
+ 'ref': json['ref'] == null ? undefined : json['ref'],
39
+ 'code': json['code'] == null ? undefined : json['code'],
40
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
41
+ 'dimensions': json['dimensions'] == null ? undefined : (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsFromJSON)(json['dimensions']),
42
+ 'fullness': json['fullness'] == null ? undefined : json['fullness'],
43
+ 'lastPicked': json['lastPicked'] == null ? undefined : (0, PickfaceLastPicked_1.PickfaceLastPickedFromJSON)(json['lastPicked']),
44
+ 'lastRestocked': json['lastRestocked'] == null ? undefined : (0, PickfaceLastRestocked_1.PickfaceLastRestockedFromJSON)(json['lastRestocked']),
45
+ 'contents': json['contents'] == null ? undefined : (json['contents'].map(PickfaceContentsInner_1.PickfaceContentsInnerFromJSON)),
48
46
  };
49
47
  }
50
48
  exports.PickfaceFromJSONTyped = PickfaceFromJSONTyped;
51
49
  function PickfaceToJSON(value) {
52
- if (value === undefined) {
53
- return undefined;
54
- }
55
- if (value === null) {
56
- return null;
50
+ if (value == null) {
51
+ return value;
57
52
  }
58
53
  return {
59
- 'id': value.id,
60
- 'ref': value.ref,
61
- 'code': value.code,
62
- 'enabled': value.enabled,
63
- 'dimensions': (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsToJSON)(value.dimensions),
64
- 'fullness': value.fullness,
65
- 'lastPicked': (0, PickfaceLastPicked_1.PickfaceLastPickedToJSON)(value.lastPicked),
66
- 'lastRestocked': (0, PickfaceLastRestocked_1.PickfaceLastRestockedToJSON)(value.lastRestocked),
67
- 'contents': value.contents === undefined ? undefined : (value.contents.map(PickfaceContentsInner_1.PickfaceContentsInnerToJSON)),
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
+ 'fullness': value['fullness'],
60
+ 'lastPicked': (0, PickfaceLastPicked_1.PickfaceLastPickedToJSON)(value['lastPicked']),
61
+ 'lastRestocked': (0, PickfaceLastRestocked_1.PickfaceLastRestockedToJSON)(value['lastRestocked']),
62
+ 'contents': value['contents'] == null ? undefined : (value['contents'].map(PickfaceContentsInner_1.PickfaceContentsInnerToJSON)),
68
63
  };
69
64
  }
70
65
  exports.PickfaceToJSON = PickfaceToJSON;
@@ -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.9.1
5
+ * The version of the OpenAPI document: 0.11.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,7 +29,7 @@ export interface PickfaceContentsInner {
29
29
  * @type {string}
30
30
  * @memberof PickfaceContentsInner
31
31
  */
32
- ownerProjectId?: string | null;
32
+ ownerProjectId?: string;
33
33
  /**
34
34
  *
35
35
  * @type {PickfaceContentsInnerQuantity}
@@ -47,7 +47,7 @@ export interface PickfaceContentsInner {
47
47
  * @type {PickfaceContentsInnerMetadata}
48
48
  * @memberof PickfaceContentsInner
49
49
  */
50
- metadata?: PickfaceContentsInnerMetadata | null;
50
+ metadata?: PickfaceContentsInnerMetadata;
51
51
  }
52
52
  /**
53
53
  * Check if a given object implements the PickfaceContentsInner interface.
@@ -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.9.1
8
+ * The version of the OpenAPI document: 0.11.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PickfaceContentsInnerToJSON = exports.PickfaceContentsInnerFromJSONTyped = exports.PickfaceContentsInnerFromJSON = exports.instanceOfPickfaceContentsInner = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var PickfaceContentsInnerApplicationsInner_1 = require("./PickfaceContentsInnerApplicationsInner");
19
18
  var PickfaceContentsInnerMetadata_1 = require("./PickfaceContentsInnerMetadata");
20
19
  var PickfaceContentsInnerQuantity_1 = require("./PickfaceContentsInnerQuantity");
@@ -22,8 +21,7 @@ var PickfaceContentsInnerQuantity_1 = require("./PickfaceContentsInnerQuantity")
22
21
  * Check if a given object implements the PickfaceContentsInner interface.
23
22
  */
24
23
  function instanceOfPickfaceContentsInner(value) {
25
- var isInstance = true;
26
- return isInstance;
24
+ return true;
27
25
  }
28
26
  exports.instanceOfPickfaceContentsInner = instanceOfPickfaceContentsInner;
29
27
  function PickfaceContentsInnerFromJSON(json) {
@@ -31,31 +29,28 @@ function PickfaceContentsInnerFromJSON(json) {
31
29
  }
32
30
  exports.PickfaceContentsInnerFromJSON = PickfaceContentsInnerFromJSON;
33
31
  function PickfaceContentsInnerFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
35
33
  return json;
36
34
  }
37
35
  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']),
36
+ 'variantRef': json['variantRef'] == null ? undefined : json['variantRef'],
37
+ 'ownerProjectId': json['ownerProjectId'] == null ? undefined : json['ownerProjectId'],
38
+ 'quantity': json['quantity'] == null ? undefined : (0, PickfaceContentsInnerQuantity_1.PickfaceContentsInnerQuantityFromJSON)(json['quantity']),
39
+ 'applications': json['applications'] == null ? undefined : (json['applications'].map(PickfaceContentsInnerApplicationsInner_1.PickfaceContentsInnerApplicationsInnerFromJSON)),
40
+ 'metadata': json['metadata'] == null ? undefined : (0, PickfaceContentsInnerMetadata_1.PickfaceContentsInnerMetadataFromJSON)(json['metadata']),
43
41
  };
44
42
  }
45
43
  exports.PickfaceContentsInnerFromJSONTyped = PickfaceContentsInnerFromJSONTyped;
46
44
  function PickfaceContentsInnerToJSON(value) {
47
- if (value === undefined) {
48
- return undefined;
49
- }
50
- if (value === null) {
51
- return null;
45
+ if (value == null) {
46
+ return value;
52
47
  }
53
48
  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),
49
+ 'variantRef': value['variantRef'],
50
+ 'ownerProjectId': value['ownerProjectId'],
51
+ 'quantity': (0, PickfaceContentsInnerQuantity_1.PickfaceContentsInnerQuantityToJSON)(value['quantity']),
52
+ 'applications': value['applications'] == null ? undefined : (value['applications'].map(PickfaceContentsInnerApplicationsInner_1.PickfaceContentsInnerApplicationsInnerToJSON)),
53
+ 'metadata': (0, PickfaceContentsInnerMetadata_1.PickfaceContentsInnerMetadataToJSON)(value['metadata']),
59
54
  };
60
55
  }
61
56
  exports.PickfaceContentsInnerToJSON = PickfaceContentsInnerToJSON;
@@ -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.9.1
5
+ * The version of the OpenAPI document: 0.11.1
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.9.1
8
+ * The version of the OpenAPI document: 0.11.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,13 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PickfaceContentsInnerApplicationsInnerToJSON = exports.PickfaceContentsInnerApplicationsInnerFromJSONTyped = exports.PickfaceContentsInnerApplicationsInnerFromJSON = exports.instanceOfPickfaceContentsInnerApplicationsInner = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the PickfaceContentsInnerApplicationsInner interface.
20
19
  */
21
20
  function instanceOfPickfaceContentsInnerApplicationsInner(value) {
22
- var isInstance = true;
23
- return isInstance;
21
+ return true;
24
22
  }
25
23
  exports.instanceOfPickfaceContentsInnerApplicationsInner = instanceOfPickfaceContentsInnerApplicationsInner;
26
24
  function PickfaceContentsInnerApplicationsInnerFromJSON(json) {
@@ -28,25 +26,22 @@ function PickfaceContentsInnerApplicationsInnerFromJSON(json) {
28
26
  }
29
27
  exports.PickfaceContentsInnerApplicationsInnerFromJSON = PickfaceContentsInnerApplicationsInnerFromJSON;
30
28
  function PickfaceContentsInnerApplicationsInnerFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'placement': !(0, runtime_1.exists)(json, 'placement') ? undefined : json['placement'],
36
- 'signature': !(0, runtime_1.exists)(json, 'signature') ? undefined : json['signature'],
33
+ 'placement': json['placement'] == null ? undefined : json['placement'],
34
+ 'signature': json['signature'] == null ? undefined : json['signature'],
37
35
  };
38
36
  }
39
37
  exports.PickfaceContentsInnerApplicationsInnerFromJSONTyped = PickfaceContentsInnerApplicationsInnerFromJSONTyped;
40
38
  function PickfaceContentsInnerApplicationsInnerToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
39
+ if (value == null) {
40
+ return value;
46
41
  }
47
42
  return {
48
- 'placement': value.placement,
49
- 'signature': value.signature,
43
+ 'placement': value['placement'],
44
+ 'signature': value['signature'],
50
45
  };
51
46
  }
52
47
  exports.PickfaceContentsInnerApplicationsInnerToJSON = PickfaceContentsInnerApplicationsInnerToJSON;
@@ -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.9.1
5
+ * The version of the OpenAPI document: 0.11.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,19 +20,19 @@ export interface PickfaceContentsInnerMetadata {
20
20
  * @type {string}
21
21
  * @memberof PickfaceContentsInnerMetadata
22
22
  */
23
- title?: string | null;
23
+ title?: string;
24
24
  /**
25
25
  * The image of the front of the product
26
26
  * @type {string}
27
27
  * @memberof PickfaceContentsInnerMetadata
28
28
  */
29
- frontImage?: string | null;
29
+ frontImage?: string;
30
30
  /**
31
31
  * The image of the back of the product
32
32
  * @type {string}
33
33
  * @memberof PickfaceContentsInnerMetadata
34
34
  */
35
- backImage?: string | null;
35
+ backImage?: string;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the PickfaceContentsInnerMetadata interface.
@@ -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.9.1
8
+ * The version of the OpenAPI document: 0.11.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,13 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PickfaceContentsInnerMetadataToJSON = exports.PickfaceContentsInnerMetadataFromJSONTyped = exports.PickfaceContentsInnerMetadataFromJSON = exports.instanceOfPickfaceContentsInnerMetadata = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the PickfaceContentsInnerMetadata interface.
20
19
  */
21
20
  function instanceOfPickfaceContentsInnerMetadata(value) {
22
- var isInstance = true;
23
- return isInstance;
21
+ return true;
24
22
  }
25
23
  exports.instanceOfPickfaceContentsInnerMetadata = instanceOfPickfaceContentsInnerMetadata;
26
24
  function PickfaceContentsInnerMetadataFromJSON(json) {
@@ -28,27 +26,24 @@ function PickfaceContentsInnerMetadataFromJSON(json) {
28
26
  }
29
27
  exports.PickfaceContentsInnerMetadataFromJSON = PickfaceContentsInnerMetadataFromJSON;
30
28
  function PickfaceContentsInnerMetadataFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
36
- 'frontImage': !(0, runtime_1.exists)(json, 'frontImage') ? undefined : json['frontImage'],
37
- 'backImage': !(0, runtime_1.exists)(json, 'backImage') ? undefined : json['backImage'],
33
+ 'title': json['title'] == null ? undefined : json['title'],
34
+ 'frontImage': json['frontImage'] == null ? undefined : json['frontImage'],
35
+ 'backImage': json['backImage'] == null ? undefined : json['backImage'],
38
36
  };
39
37
  }
40
38
  exports.PickfaceContentsInnerMetadataFromJSONTyped = PickfaceContentsInnerMetadataFromJSONTyped;
41
39
  function PickfaceContentsInnerMetadataToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
40
+ if (value == null) {
41
+ return value;
47
42
  }
48
43
  return {
49
- 'title': value.title,
50
- 'frontImage': value.frontImage,
51
- 'backImage': value.backImage,
44
+ 'title': value['title'],
45
+ 'frontImage': value['frontImage'],
46
+ 'backImage': value['backImage'],
52
47
  };
53
48
  }
54
49
  exports.PickfaceContentsInnerMetadataToJSON = PickfaceContentsInnerMetadataToJSON;
@@ -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.9.1
5
+ * The version of the OpenAPI document: 0.11.1
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.9.1
8
+ * The version of the OpenAPI document: 0.11.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,13 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PickfaceContentsInnerQuantityToJSON = exports.PickfaceContentsInnerQuantityFromJSONTyped = exports.PickfaceContentsInnerQuantityFromJSON = exports.instanceOfPickfaceContentsInnerQuantity = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the PickfaceContentsInnerQuantity interface.
20
19
  */
21
20
  function instanceOfPickfaceContentsInnerQuantity(value) {
22
- var isInstance = true;
23
- return isInstance;
21
+ return true;
24
22
  }
25
23
  exports.instanceOfPickfaceContentsInnerQuantity = instanceOfPickfaceContentsInnerQuantity;
26
24
  function PickfaceContentsInnerQuantityFromJSON(json) {
@@ -28,27 +26,24 @@ function PickfaceContentsInnerQuantityFromJSON(json) {
28
26
  }
29
27
  exports.PickfaceContentsInnerQuantityFromJSON = PickfaceContentsInnerQuantityFromJSON;
30
28
  function PickfaceContentsInnerQuantityFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'total': !(0, runtime_1.exists)(json, 'total') ? undefined : json['total'],
36
- 'available': !(0, runtime_1.exists)(json, 'available') ? undefined : json['available'],
37
- 'reserved': !(0, runtime_1.exists)(json, 'reserved') ? undefined : json['reserved'],
33
+ 'total': json['total'] == null ? undefined : json['total'],
34
+ 'available': json['available'] == null ? undefined : json['available'],
35
+ 'reserved': json['reserved'] == null ? undefined : json['reserved'],
38
36
  };
39
37
  }
40
38
  exports.PickfaceContentsInnerQuantityFromJSONTyped = PickfaceContentsInnerQuantityFromJSONTyped;
41
39
  function PickfaceContentsInnerQuantityToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
40
+ if (value == null) {
41
+ return value;
47
42
  }
48
43
  return {
49
- 'total': value.total,
50
- 'available': value.available,
51
- 'reserved': value.reserved,
44
+ 'total': value['total'],
45
+ 'available': value['available'],
46
+ 'reserved': value['reserved'],
52
47
  };
53
48
  }
54
49
  exports.PickfaceContentsInnerQuantityToJSON = PickfaceContentsInnerQuantityToJSON;
@@ -2,14 +2,13 @@
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.9.1
5
+ * The version of the OpenAPI document: 0.11.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PickfaceLogUser } from './PickfaceLogUser';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -23,11 +22,23 @@ export interface PickfaceLastPicked {
23
22
  */
24
23
  id?: string;
25
24
  /**
26
- *
27
- * @type {PickfaceLogUser}
25
+ * A reference to the resource location
26
+ * @type {string}
27
+ * @memberof PickfaceLastPicked
28
+ */
29
+ userRef?: string;
30
+ /**
31
+ * The action that was taken
32
+ * @type {string}
33
+ * @memberof PickfaceLastPicked
34
+ */
35
+ action?: string;
36
+ /**
37
+ * The reason for the action
38
+ * @type {string}
28
39
  * @memberof PickfaceLastPicked
29
40
  */
30
- user?: PickfaceLogUser;
41
+ reason?: string;
31
42
  /**
32
43
  * ISO 8601 Created at timestamp
33
44
  * @type {Date}
@@ -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.9.1
8
+ * The version of the OpenAPI document: 0.11.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,14 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PickfaceLastPickedToJSON = exports.PickfaceLastPickedFromJSONTyped = exports.PickfaceLastPickedFromJSON = exports.instanceOfPickfaceLastPicked = void 0;
17
- var runtime_1 = require("../runtime");
18
- var PickfaceLogUser_1 = require("./PickfaceLogUser");
19
17
  /**
20
18
  * Check if a given object implements the PickfaceLastPicked interface.
21
19
  */
22
20
  function instanceOfPickfaceLastPicked(value) {
23
- var isInstance = true;
24
- return isInstance;
21
+ return true;
25
22
  }
26
23
  exports.instanceOfPickfaceLastPicked = instanceOfPickfaceLastPicked;
27
24
  function PickfaceLastPickedFromJSON(json) {
@@ -29,27 +26,28 @@ function PickfaceLastPickedFromJSON(json) {
29
26
  }
30
27
  exports.PickfaceLastPickedFromJSON = PickfaceLastPickedFromJSON;
31
28
  function PickfaceLastPickedFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
33
30
  return json;
34
31
  }
35
32
  return {
36
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
37
- 'user': !(0, runtime_1.exists)(json, 'user') ? undefined : (0, PickfaceLogUser_1.PickfaceLogUserFromJSON)(json['user']),
38
- 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
33
+ 'id': json['id'] == null ? undefined : json['id'],
34
+ 'userRef': json['userRef'] == null ? undefined : json['userRef'],
35
+ 'action': json['action'] == null ? undefined : json['action'],
36
+ 'reason': json['reason'] == null ? undefined : json['reason'],
37
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
39
38
  };
40
39
  }
41
40
  exports.PickfaceLastPickedFromJSONTyped = PickfaceLastPickedFromJSONTyped;
42
41
  function PickfaceLastPickedToJSON(value) {
43
- if (value === undefined) {
44
- return undefined;
45
- }
46
- if (value === null) {
47
- return null;
42
+ if (value == null) {
43
+ return value;
48
44
  }
49
45
  return {
50
- 'id': value.id,
51
- 'user': (0, PickfaceLogUser_1.PickfaceLogUserToJSON)(value.user),
52
- 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
46
+ 'id': value['id'],
47
+ 'userRef': value['userRef'],
48
+ 'action': value['action'],
49
+ 'reason': value['reason'],
50
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
53
51
  };
54
52
  }
55
53
  exports.PickfaceLastPickedToJSON = PickfaceLastPickedToJSON;
@@ -2,14 +2,13 @@
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.9.1
5
+ * The version of the OpenAPI document: 0.11.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PickfaceLogUser } from './PickfaceLogUser';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -23,11 +22,23 @@ export interface PickfaceLastRestocked {
23
22
  */
24
23
  id?: string;
25
24
  /**
26
- *
27
- * @type {PickfaceLogUser}
25
+ * A reference to the resource location
26
+ * @type {string}
27
+ * @memberof PickfaceLastRestocked
28
+ */
29
+ userRef?: string;
30
+ /**
31
+ * The action that was taken
32
+ * @type {string}
33
+ * @memberof PickfaceLastRestocked
34
+ */
35
+ action?: string;
36
+ /**
37
+ * The reason for the action
38
+ * @type {string}
28
39
  * @memberof PickfaceLastRestocked
29
40
  */
30
- user?: PickfaceLogUser;
41
+ reason?: string;
31
42
  /**
32
43
  * ISO 8601 Created at timestamp
33
44
  * @type {Date}