@teemill/pickfaces 0.9.1 → 0.10.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 (61) hide show
  1. package/.openapi-generator/FILES +1 -1
  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 +2 -2
  35. package/dist/models/UpdatePickfaceRequest.js +9 -14
  36. package/dist/models/UpdatePickfaceRequestContents.d.ts +1 -1
  37. package/dist/models/UpdatePickfaceRequestContents.js +9 -14
  38. package/dist/models/index.d.ts +1 -1
  39. package/dist/models/index.js +1 -1
  40. package/dist/runtime.d.ts +1 -1
  41. package/dist/runtime.js +1 -1
  42. package/package.json +1 -1
  43. package/src/apis/PickfacesApi.ts +149 -1
  44. package/src/models/ApiError.ts +10 -15
  45. package/src/models/CreatePickfaceRequest.ts +10 -15
  46. package/src/models/CreatePickfaceRequestDimensions.ts +12 -17
  47. package/src/models/GetPickfaces200Response.ts +10 -15
  48. package/src/models/ListPickfaceLogs200Response.ts +75 -0
  49. package/src/models/MoveStockRequest.ts +12 -17
  50. package/src/models/Pickface.ts +24 -29
  51. package/src/models/PickfaceContentsInner.ts +18 -23
  52. package/src/models/PickfaceContentsInnerApplicationsInner.ts +10 -15
  53. package/src/models/PickfaceContentsInnerMetadata.ts +15 -20
  54. package/src/models/PickfaceContentsInnerQuantity.ts +12 -17
  55. package/src/models/PickfaceLastPicked.ts +31 -27
  56. package/src/models/PickfaceLastRestocked.ts +31 -27
  57. package/src/models/PickfaceLog.ts +31 -27
  58. package/src/models/UpdatePickfaceRequest.ts +11 -16
  59. package/src/models/UpdatePickfaceRequestContents.ts +10 -15
  60. package/src/models/index.ts +1 -1
  61. package/src/runtime.ts +1 -1
@@ -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.9.1
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { CreatePickfaceRequestDimensions } from './CreatePickfaceRequestDimensions';
17
17
  import {
18
18
  CreatePickfaceRequestDimensionsFromJSON,
@@ -44,9 +44,7 @@ export interface CreatePickfaceRequest {
44
44
  * Check if a given object implements the CreatePickfaceRequest interface.
45
45
  */
46
46
  export function instanceOfCreatePickfaceRequest(value: object): boolean {
47
- let isInstance = true;
48
-
49
- return isInstance;
47
+ return true;
50
48
  }
51
49
 
52
50
  export function CreatePickfaceRequestFromJSON(json: any): CreatePickfaceRequest {
@@ -54,27 +52,24 @@ export function CreatePickfaceRequestFromJSON(json: any): CreatePickfaceRequest
54
52
  }
55
53
 
56
54
  export function CreatePickfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePickfaceRequest {
57
- if ((json === undefined) || (json === null)) {
55
+ if (json == null) {
58
56
  return json;
59
57
  }
60
58
  return {
61
59
 
62
- 'location': !exists(json, 'location') ? undefined : json['location'],
63
- 'dimensions': !exists(json, 'dimensions') ? undefined : CreatePickfaceRequestDimensionsFromJSON(json['dimensions']),
60
+ 'location': json['location'] == null ? undefined : json['location'],
61
+ 'dimensions': json['dimensions'] == null ? undefined : CreatePickfaceRequestDimensionsFromJSON(json['dimensions']),
64
62
  };
65
63
  }
66
64
 
67
65
  export function CreatePickfaceRequestToJSON(value?: CreatePickfaceRequest | null): any {
68
- if (value === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
66
+ if (value == null) {
67
+ return value;
73
68
  }
74
69
  return {
75
70
 
76
- 'location': value.location,
77
- 'dimensions': CreatePickfaceRequestDimensionsToJSON(value.dimensions),
71
+ 'location': value['location'],
72
+ 'dimensions': CreatePickfaceRequestDimensionsToJSON(value['dimensions']),
78
73
  };
79
74
  }
80
75
 
@@ -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.9.1
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -43,9 +43,7 @@ export interface CreatePickfaceRequestDimensions {
43
43
  * Check if a given object implements the CreatePickfaceRequestDimensions interface.
44
44
  */
45
45
  export function instanceOfCreatePickfaceRequestDimensions(value: object): boolean {
46
- let isInstance = true;
47
-
48
- return isInstance;
46
+ return true;
49
47
  }
50
48
 
51
49
  export function CreatePickfaceRequestDimensionsFromJSON(json: any): CreatePickfaceRequestDimensions {
@@ -53,29 +51,26 @@ export function CreatePickfaceRequestDimensionsFromJSON(json: any): CreatePickfa
53
51
  }
54
52
 
55
53
  export function CreatePickfaceRequestDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePickfaceRequestDimensions {
56
- if ((json === undefined) || (json === null)) {
54
+ if (json == null) {
57
55
  return json;
58
56
  }
59
57
  return {
60
58
 
61
- 'width': !exists(json, 'width') ? undefined : json['width'],
62
- 'depth': !exists(json, 'depth') ? undefined : json['depth'],
63
- 'height': !exists(json, 'height') ? undefined : json['height'],
59
+ 'width': json['width'] == null ? undefined : json['width'],
60
+ 'depth': json['depth'] == null ? undefined : json['depth'],
61
+ 'height': json['height'] == null ? undefined : json['height'],
64
62
  };
65
63
  }
66
64
 
67
65
  export function CreatePickfaceRequestDimensionsToJSON(value?: CreatePickfaceRequestDimensions | null): any {
68
- if (value === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
66
+ if (value == null) {
67
+ return value;
73
68
  }
74
69
  return {
75
70
 
76
- 'width': value.width,
77
- 'depth': value.depth,
78
- 'height': value.height,
71
+ 'width': value['width'],
72
+ 'depth': value['depth'],
73
+ 'height': value['height'],
79
74
  };
80
75
  }
81
76
 
@@ -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.9.1
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { Pickface } from './Pickface';
17
17
  import {
18
18
  PickfaceFromJSON,
@@ -44,9 +44,7 @@ export interface GetPickfaces200Response {
44
44
  * Check if a given object implements the GetPickfaces200Response interface.
45
45
  */
46
46
  export function instanceOfGetPickfaces200Response(value: object): boolean {
47
- let isInstance = true;
48
-
49
- return isInstance;
47
+ return true;
50
48
  }
51
49
 
52
50
  export function GetPickfaces200ResponseFromJSON(json: any): GetPickfaces200Response {
@@ -54,27 +52,24 @@ export function GetPickfaces200ResponseFromJSON(json: any): GetPickfaces200Respo
54
52
  }
55
53
 
56
54
  export function GetPickfaces200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPickfaces200Response {
57
- if ((json === undefined) || (json === null)) {
55
+ if (json == null) {
58
56
  return json;
59
57
  }
60
58
  return {
61
59
 
62
- 'pickfaces': !exists(json, 'pickfaces') ? undefined : ((json['pickfaces'] as Array<any>).map(PickfaceFromJSON)),
63
- 'nextPageToken': !exists(json, 'nextPageToken') ? undefined : json['nextPageToken'],
60
+ 'pickfaces': json['pickfaces'] == null ? undefined : ((json['pickfaces'] as Array<any>).map(PickfaceFromJSON)),
61
+ 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
64
62
  };
65
63
  }
66
64
 
67
65
  export function GetPickfaces200ResponseToJSON(value?: GetPickfaces200Response | null): any {
68
- if (value === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
66
+ if (value == null) {
67
+ return value;
73
68
  }
74
69
  return {
75
70
 
76
- 'pickfaces': value.pickfaces === undefined ? undefined : ((value.pickfaces as Array<any>).map(PickfaceToJSON)),
77
- 'nextPageToken': value.nextPageToken,
71
+ 'pickfaces': value['pickfaces'] == null ? undefined : ((value['pickfaces'] as Array<any>).map(PickfaceToJSON)),
72
+ 'nextPageToken': value['nextPageToken'],
78
73
  };
79
74
  }
80
75
 
@@ -0,0 +1,75 @@
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.10.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 { mapValues } from '../runtime';
16
+ import type { PickfaceLog } from './PickfaceLog';
17
+ import {
18
+ PickfaceLogFromJSON,
19
+ PickfaceLogFromJSONTyped,
20
+ PickfaceLogToJSON,
21
+ } from './PickfaceLog';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ListPickfaceLogs200Response
27
+ */
28
+ export interface ListPickfaceLogs200Response {
29
+ /**
30
+ *
31
+ * @type {Array<PickfaceLog>}
32
+ * @memberof ListPickfaceLogs200Response
33
+ */
34
+ logs?: Array<PickfaceLog>;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof ListPickfaceLogs200Response
39
+ */
40
+ nextPageToken?: number;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the ListPickfaceLogs200Response interface.
45
+ */
46
+ export function instanceOfListPickfaceLogs200Response(value: object): boolean {
47
+ return true;
48
+ }
49
+
50
+ export function ListPickfaceLogs200ResponseFromJSON(json: any): ListPickfaceLogs200Response {
51
+ return ListPickfaceLogs200ResponseFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function ListPickfaceLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPickfaceLogs200Response {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'logs': json['logs'] == null ? undefined : ((json['logs'] as Array<any>).map(PickfaceLogFromJSON)),
61
+ 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
62
+ };
63
+ }
64
+
65
+ export function ListPickfaceLogs200ResponseToJSON(value?: ListPickfaceLogs200Response | null): any {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+
71
+ 'logs': value['logs'] == null ? undefined : ((value['logs'] as Array<any>).map(PickfaceLogToJSON)),
72
+ 'nextPageToken': value['nextPageToken'],
73
+ };
74
+ }
75
+
@@ -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.9.1
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -43,12 +43,10 @@ export interface MoveStockRequest {
43
43
  * Check if a given object implements the MoveStockRequest interface.
44
44
  */
45
45
  export function instanceOfMoveStockRequest(value: object): boolean {
46
- let isInstance = true;
47
- isInstance = isInstance && "variantRef" in value;
48
- isInstance = isInstance && "quantity" in value;
49
- isInstance = isInstance && "toPickfaceRef" in value;
50
-
51
- return isInstance;
46
+ if (!('variantRef' in value)) return false;
47
+ if (!('quantity' in value)) return false;
48
+ if (!('toPickfaceRef' in value)) return false;
49
+ return true;
52
50
  }
53
51
 
54
52
  export function MoveStockRequestFromJSON(json: any): MoveStockRequest {
@@ -56,7 +54,7 @@ export function MoveStockRequestFromJSON(json: any): MoveStockRequest {
56
54
  }
57
55
 
58
56
  export function MoveStockRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveStockRequest {
59
- if ((json === undefined) || (json === null)) {
57
+ if (json == null) {
60
58
  return json;
61
59
  }
62
60
  return {
@@ -68,17 +66,14 @@ export function MoveStockRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
68
66
  }
69
67
 
70
68
  export function MoveStockRequestToJSON(value?: MoveStockRequest | null): any {
71
- if (value === undefined) {
72
- return undefined;
73
- }
74
- if (value === null) {
75
- return null;
69
+ if (value == null) {
70
+ return value;
76
71
  }
77
72
  return {
78
73
 
79
- 'variantRef': value.variantRef,
80
- 'quantity': value.quantity,
81
- 'toPickfaceRef': value.toPickfaceRef,
74
+ 'variantRef': value['variantRef'],
75
+ 'quantity': value['quantity'],
76
+ 'toPickfaceRef': value['toPickfaceRef'],
82
77
  };
83
78
  }
84
79
 
@@ -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.9.1
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { CreatePickfaceRequestDimensions } from './CreatePickfaceRequestDimensions';
17
17
  import {
18
18
  CreatePickfaceRequestDimensionsFromJSON,
@@ -104,9 +104,7 @@ export interface Pickface {
104
104
  * Check if a given object implements the Pickface interface.
105
105
  */
106
106
  export function instanceOfPickface(value: object): boolean {
107
- let isInstance = true;
108
-
109
- return isInstance;
107
+ return true;
110
108
  }
111
109
 
112
110
  export function PickfaceFromJSON(json: any): Pickface {
@@ -114,41 +112,38 @@ export function PickfaceFromJSON(json: any): Pickface {
114
112
  }
115
113
 
116
114
  export function PickfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pickface {
117
- if ((json === undefined) || (json === null)) {
115
+ if (json == null) {
118
116
  return json;
119
117
  }
120
118
  return {
121
119
 
122
- 'id': !exists(json, 'id') ? undefined : json['id'],
123
- 'ref': !exists(json, 'ref') ? undefined : json['ref'],
124
- 'code': !exists(json, 'code') ? undefined : json['code'],
125
- 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
126
- 'dimensions': !exists(json, 'dimensions') ? undefined : CreatePickfaceRequestDimensionsFromJSON(json['dimensions']),
127
- 'fullness': !exists(json, 'fullness') ? undefined : json['fullness'],
128
- 'lastPicked': !exists(json, 'lastPicked') ? undefined : PickfaceLastPickedFromJSON(json['lastPicked']),
129
- 'lastRestocked': !exists(json, 'lastRestocked') ? undefined : PickfaceLastRestockedFromJSON(json['lastRestocked']),
130
- 'contents': !exists(json, 'contents') ? undefined : ((json['contents'] as Array<any>).map(PickfaceContentsInnerFromJSON)),
120
+ 'id': json['id'] == null ? undefined : json['id'],
121
+ 'ref': json['ref'] == null ? undefined : json['ref'],
122
+ 'code': json['code'] == null ? undefined : json['code'],
123
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
124
+ 'dimensions': json['dimensions'] == null ? undefined : CreatePickfaceRequestDimensionsFromJSON(json['dimensions']),
125
+ 'fullness': json['fullness'] == null ? undefined : json['fullness'],
126
+ 'lastPicked': json['lastPicked'] == null ? undefined : PickfaceLastPickedFromJSON(json['lastPicked']),
127
+ 'lastRestocked': json['lastRestocked'] == null ? undefined : PickfaceLastRestockedFromJSON(json['lastRestocked']),
128
+ 'contents': json['contents'] == null ? undefined : ((json['contents'] as Array<any>).map(PickfaceContentsInnerFromJSON)),
131
129
  };
132
130
  }
133
131
 
134
132
  export function PickfaceToJSON(value?: Pickface | null): any {
135
- if (value === undefined) {
136
- return undefined;
137
- }
138
- if (value === null) {
139
- return null;
133
+ if (value == null) {
134
+ return value;
140
135
  }
141
136
  return {
142
137
 
143
- 'id': value.id,
144
- 'ref': value.ref,
145
- 'code': value.code,
146
- 'enabled': value.enabled,
147
- 'dimensions': CreatePickfaceRequestDimensionsToJSON(value.dimensions),
148
- 'fullness': value.fullness,
149
- 'lastPicked': PickfaceLastPickedToJSON(value.lastPicked),
150
- 'lastRestocked': PickfaceLastRestockedToJSON(value.lastRestocked),
151
- 'contents': value.contents === undefined ? undefined : ((value.contents as Array<any>).map(PickfaceContentsInnerToJSON)),
138
+ 'id': value['id'],
139
+ 'ref': value['ref'],
140
+ 'code': value['code'],
141
+ 'enabled': value['enabled'],
142
+ 'dimensions': CreatePickfaceRequestDimensionsToJSON(value['dimensions']),
143
+ 'fullness': value['fullness'],
144
+ 'lastPicked': PickfaceLastPickedToJSON(value['lastPicked']),
145
+ 'lastRestocked': PickfaceLastRestockedToJSON(value['lastRestocked']),
146
+ 'contents': value['contents'] == null ? undefined : ((value['contents'] as Array<any>).map(PickfaceContentsInnerToJSON)),
152
147
  };
153
148
  }
154
149
 
@@ -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.9.1
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { PickfaceContentsInnerApplicationsInner } from './PickfaceContentsInnerApplicationsInner';
17
17
  import {
18
18
  PickfaceContentsInnerApplicationsInnerFromJSON,
@@ -49,7 +49,7 @@ export interface PickfaceContentsInner {
49
49
  * @type {string}
50
50
  * @memberof PickfaceContentsInner
51
51
  */
52
- ownerProjectId?: string | null;
52
+ ownerProjectId?: string;
53
53
  /**
54
54
  *
55
55
  * @type {PickfaceContentsInnerQuantity}
@@ -67,16 +67,14 @@ export interface PickfaceContentsInner {
67
67
  * @type {PickfaceContentsInnerMetadata}
68
68
  * @memberof PickfaceContentsInner
69
69
  */
70
- metadata?: PickfaceContentsInnerMetadata | null;
70
+ metadata?: PickfaceContentsInnerMetadata;
71
71
  }
72
72
 
73
73
  /**
74
74
  * Check if a given object implements the PickfaceContentsInner interface.
75
75
  */
76
76
  export function instanceOfPickfaceContentsInner(value: object): boolean {
77
- let isInstance = true;
78
-
79
- return isInstance;
77
+ return true;
80
78
  }
81
79
 
82
80
  export function PickfaceContentsInnerFromJSON(json: any): PickfaceContentsInner {
@@ -84,33 +82,30 @@ export function PickfaceContentsInnerFromJSON(json: any): PickfaceContentsInner
84
82
  }
85
83
 
86
84
  export function PickfaceContentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInner {
87
- if ((json === undefined) || (json === null)) {
85
+ if (json == null) {
88
86
  return json;
89
87
  }
90
88
  return {
91
89
 
92
- 'variantRef': !exists(json, 'variantRef') ? undefined : json['variantRef'],
93
- 'ownerProjectId': !exists(json, 'ownerProjectId') ? undefined : json['ownerProjectId'],
94
- 'quantity': !exists(json, 'quantity') ? undefined : PickfaceContentsInnerQuantityFromJSON(json['quantity']),
95
- 'applications': !exists(json, 'applications') ? undefined : ((json['applications'] as Array<any>).map(PickfaceContentsInnerApplicationsInnerFromJSON)),
96
- 'metadata': !exists(json, 'metadata') ? undefined : PickfaceContentsInnerMetadataFromJSON(json['metadata']),
90
+ 'variantRef': json['variantRef'] == null ? undefined : json['variantRef'],
91
+ 'ownerProjectId': json['ownerProjectId'] == null ? undefined : json['ownerProjectId'],
92
+ 'quantity': json['quantity'] == null ? undefined : PickfaceContentsInnerQuantityFromJSON(json['quantity']),
93
+ 'applications': json['applications'] == null ? undefined : ((json['applications'] as Array<any>).map(PickfaceContentsInnerApplicationsInnerFromJSON)),
94
+ 'metadata': json['metadata'] == null ? undefined : PickfaceContentsInnerMetadataFromJSON(json['metadata']),
97
95
  };
98
96
  }
99
97
 
100
98
  export function PickfaceContentsInnerToJSON(value?: PickfaceContentsInner | null): any {
101
- if (value === undefined) {
102
- return undefined;
103
- }
104
- if (value === null) {
105
- return null;
99
+ if (value == null) {
100
+ return value;
106
101
  }
107
102
  return {
108
103
 
109
- 'variantRef': value.variantRef,
110
- 'ownerProjectId': value.ownerProjectId,
111
- 'quantity': PickfaceContentsInnerQuantityToJSON(value.quantity),
112
- 'applications': value.applications === undefined ? undefined : ((value.applications as Array<any>).map(PickfaceContentsInnerApplicationsInnerToJSON)),
113
- 'metadata': PickfaceContentsInnerMetadataToJSON(value.metadata),
104
+ 'variantRef': value['variantRef'],
105
+ 'ownerProjectId': value['ownerProjectId'],
106
+ 'quantity': PickfaceContentsInnerQuantityToJSON(value['quantity']),
107
+ 'applications': value['applications'] == null ? undefined : ((value['applications'] as Array<any>).map(PickfaceContentsInnerApplicationsInnerToJSON)),
108
+ 'metadata': PickfaceContentsInnerMetadataToJSON(value['metadata']),
114
109
  };
115
110
  }
116
111
 
@@ -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.9.1
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -37,9 +37,7 @@ export interface PickfaceContentsInnerApplicationsInner {
37
37
  * Check if a given object implements the PickfaceContentsInnerApplicationsInner interface.
38
38
  */
39
39
  export function instanceOfPickfaceContentsInnerApplicationsInner(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
40
+ return true;
43
41
  }
44
42
 
45
43
  export function PickfaceContentsInnerApplicationsInnerFromJSON(json: any): PickfaceContentsInnerApplicationsInner {
@@ -47,27 +45,24 @@ export function PickfaceContentsInnerApplicationsInnerFromJSON(json: any): Pickf
47
45
  }
48
46
 
49
47
  export function PickfaceContentsInnerApplicationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceContentsInnerApplicationsInner {
50
- if ((json === undefined) || (json === null)) {
48
+ if (json == null) {
51
49
  return json;
52
50
  }
53
51
  return {
54
52
 
55
- 'placement': !exists(json, 'placement') ? undefined : json['placement'],
56
- 'signature': !exists(json, 'signature') ? undefined : json['signature'],
53
+ 'placement': json['placement'] == null ? undefined : json['placement'],
54
+ 'signature': json['signature'] == null ? undefined : json['signature'],
57
55
  };
58
56
  }
59
57
 
60
58
  export function PickfaceContentsInnerApplicationsInnerToJSON(value?: PickfaceContentsInnerApplicationsInner | null): any {
61
- if (value === undefined) {
62
- return undefined;
63
- }
64
- if (value === null) {
65
- return null;
59
+ if (value == null) {
60
+ return value;
66
61
  }
67
62
  return {
68
63
 
69
- 'placement': value.placement,
70
- 'signature': value.signature,
64
+ 'placement': value['placement'],
65
+ 'signature': value['signature'],
71
66
  };
72
67
  }
73
68