@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
@@ -20,6 +20,7 @@ __exportStar(require("./ApiError"), exports);
20
20
  __exportStar(require("./CreatePickfaceRequest"), exports);
21
21
  __exportStar(require("./CreatePickfaceRequestDimensions"), exports);
22
22
  __exportStar(require("./GetPickfaces200Response"), exports);
23
+ __exportStar(require("./ListPickfaceLogs200Response"), exports);
23
24
  __exportStar(require("./MoveStockRequest"), exports);
24
25
  __exportStar(require("./Pickface"), exports);
25
26
  __exportStar(require("./PickfaceContentsInner"), exports);
@@ -29,6 +30,6 @@ __exportStar(require("./PickfaceContentsInnerQuantity"), exports);
29
30
  __exportStar(require("./PickfaceLastPicked"), exports);
30
31
  __exportStar(require("./PickfaceLastRestocked"), exports);
31
32
  __exportStar(require("./PickfaceLog"), exports);
32
- __exportStar(require("./PickfaceLogUser"), exports);
33
33
  __exportStar(require("./UpdatePickfaceRequest"), exports);
34
- __exportStar(require("./UpdatePickfaceRequestContents"), exports);
34
+ __exportStar(require("./UpdatePickfaceRequestContentsInner"), exports);
35
+ __exportStar(require("./UpdatePickfaceRequestContentsInnerQuantity"), 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.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).
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.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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/pickfaces",
3
- "version": "0.9.1",
3
+ "version": "0.11.1",
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.9.1
7
+ * The version of the OpenAPI document: 0.11.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,6 +18,7 @@ import type {
18
18
  ApiError,
19
19
  CreatePickfaceRequest,
20
20
  GetPickfaces200Response,
21
+ ListPickfaceLogs200Response,
21
22
  MoveStockRequest,
22
23
  Pickface,
23
24
  UpdatePickfaceRequest,
@@ -29,6 +30,8 @@ import {
29
30
  CreatePickfaceRequestToJSON,
30
31
  GetPickfaces200ResponseFromJSON,
31
32
  GetPickfaces200ResponseToJSON,
33
+ ListPickfaceLogs200ResponseFromJSON,
34
+ ListPickfaceLogs200ResponseToJSON,
32
35
  MoveStockRequestFromJSON,
33
36
  MoveStockRequestToJSON,
34
37
  PickfaceFromJSON,
@@ -64,12 +67,25 @@ export interface GetPickfacesRequest {
64
67
  filters?: Array<GetPickfacesFiltersEnum>;
65
68
  }
66
69
 
70
+ export interface ListPickfaceLogsRequest {
71
+ project: string;
72
+ pickfaceId: string;
73
+ pageToken?: number;
74
+ pageSize?: number;
75
+ }
76
+
67
77
  export interface MoveStockOperationRequest {
68
78
  project: string;
69
79
  pickfaceId: string;
70
80
  moveStockRequest: MoveStockRequest;
71
81
  }
72
82
 
83
+ export interface PrintPickfaceLabelRequest {
84
+ project: string;
85
+ pickfaceId: string;
86
+ deviceRef: string;
87
+ }
88
+
73
89
  export interface UpdatePickfaceOperationRequest {
74
90
  project: string;
75
91
  pickfaceId: string;
@@ -382,6 +398,74 @@ export class PickfacesApi extends runtime.BaseAPI {
382
398
  return await response.value();
383
399
  }
384
400
 
401
+ /**
402
+ * Get a list of pickface logs
403
+ * Get pickface logs
404
+ */
405
+ async listPickfaceLogsRaw(requestParameters: ListPickfaceLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPickfaceLogs200Response>> {
406
+ if (requestParameters.project === null || requestParameters.project === undefined) {
407
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling listPickfaceLogs.');
408
+ }
409
+
410
+ if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
411
+ throw new runtime.RequiredError('pickfaceId','Required parameter requestParameters.pickfaceId was null or undefined when calling listPickfaceLogs.');
412
+ }
413
+
414
+ const queryParameters: any = {};
415
+
416
+ if (requestParameters.project !== undefined) {
417
+ queryParameters['project'] = requestParameters.project;
418
+ }
419
+
420
+ if (requestParameters.pageToken !== undefined) {
421
+ queryParameters['pageToken'] = requestParameters.pageToken;
422
+ }
423
+
424
+ if (requestParameters.pageSize !== undefined) {
425
+ queryParameters['pageSize'] = requestParameters.pageSize;
426
+ }
427
+
428
+ const headerParameters: runtime.HTTPHeaders = {};
429
+
430
+ if (this.configuration && this.configuration.accessToken) {
431
+ // oauth required
432
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
433
+ }
434
+
435
+ if (this.configuration && this.configuration.apiKey) {
436
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
437
+ }
438
+
439
+ const response = await this.request({
440
+ path: `/v1/pickfaces/{pickfaceId}/logs`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
441
+ method: 'GET',
442
+ headers: headerParameters,
443
+ query: queryParameters,
444
+ }, initOverrides);
445
+
446
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListPickfaceLogs200ResponseFromJSON(jsonValue));
447
+ }
448
+
449
+ /**
450
+ * Get a list of pickface logs
451
+ * Get pickface logs
452
+ */
453
+ async listPickfaceLogs(
454
+ project: string, pickfaceId: string,
455
+ optionalParameters: runtime.OptionalOnly<ListPickfaceLogsRequest> = {},
456
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
457
+ ): Promise<ListPickfaceLogs200Response> {
458
+ const response = await this.listPickfaceLogsRaw(
459
+ {
460
+ project: project,pickfaceId: pickfaceId,
461
+ ...optionalParameters,
462
+ },
463
+ initOverrides
464
+ );
465
+
466
+ return await response.value();
467
+ }
468
+
385
469
  /**
386
470
  * Move stock from one pickface to another in a single transaction
387
471
  * Move stock
@@ -447,6 +531,70 @@ export class PickfacesApi extends runtime.BaseAPI {
447
531
  return await response.value();
448
532
  }
449
533
 
534
+ /**
535
+ * Print a pickface label
536
+ * Print pickface label
537
+ */
538
+ async printPickfaceLabelRaw(requestParameters: PrintPickfaceLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
539
+ if (requestParameters.project === null || requestParameters.project === undefined) {
540
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling printPickfaceLabel.');
541
+ }
542
+
543
+ if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
544
+ throw new runtime.RequiredError('pickfaceId','Required parameter requestParameters.pickfaceId was null or undefined when calling printPickfaceLabel.');
545
+ }
546
+
547
+ if (requestParameters.deviceRef === null || requestParameters.deviceRef === undefined) {
548
+ throw new runtime.RequiredError('deviceRef','Required parameter requestParameters.deviceRef was null or undefined when calling printPickfaceLabel.');
549
+ }
550
+
551
+ const queryParameters: any = {};
552
+
553
+ if (requestParameters.project !== undefined) {
554
+ queryParameters['project'] = requestParameters.project;
555
+ }
556
+
557
+ if (requestParameters.deviceRef !== undefined) {
558
+ queryParameters['deviceRef'] = requestParameters.deviceRef;
559
+ }
560
+
561
+ const headerParameters: runtime.HTTPHeaders = {};
562
+
563
+ if (this.configuration && this.configuration.accessToken) {
564
+ // oauth required
565
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
566
+ }
567
+
568
+ if (this.configuration && this.configuration.apiKey) {
569
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
570
+ }
571
+
572
+ const response = await this.request({
573
+ path: `/v1/pickfaces/{pickfaceId}/print`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
574
+ method: 'GET',
575
+ headers: headerParameters,
576
+ query: queryParameters,
577
+ }, initOverrides);
578
+
579
+ return new runtime.VoidApiResponse(response);
580
+ }
581
+
582
+ /**
583
+ * Print a pickface label
584
+ * Print pickface label
585
+ */
586
+ async printPickfaceLabel(
587
+ project: string, pickfaceId: string, deviceRef: string,
588
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
589
+ ): Promise<void> {
590
+ await this.printPickfaceLabelRaw(
591
+ {
592
+ project: project,pickfaceId: pickfaceId,deviceRef: deviceRef,
593
+ },
594
+ initOverrides
595
+ );
596
+ }
597
+
450
598
  /**
451
599
  * Update a Pickface
452
600
  * Update Pickface
@@ -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.11.1
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,10 +37,8 @@ export interface ApiError {
37
37
  * Check if a given object implements the ApiError interface.
38
38
  */
39
39
  export function instanceOfApiError(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "message" in value;
42
-
43
- return isInstance;
40
+ if (!('message' in value)) return false;
41
+ return true;
44
42
  }
45
43
 
46
44
  export function ApiErrorFromJSON(json: any): ApiError {
@@ -48,27 +46,24 @@ export function ApiErrorFromJSON(json: any): ApiError {
48
46
  }
49
47
 
50
48
  export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
51
- if ((json === undefined) || (json === null)) {
49
+ if (json == null) {
52
50
  return json;
53
51
  }
54
52
  return {
55
53
 
56
- 'code': !exists(json, 'code') ? undefined : json['code'],
54
+ 'code': json['code'] == null ? undefined : json['code'],
57
55
  'message': json['message'],
58
56
  };
59
57
  }
60
58
 
61
59
  export function ApiErrorToJSON(value?: ApiError | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
60
+ if (value == null) {
61
+ return value;
67
62
  }
68
63
  return {
69
64
 
70
- 'code': value.code,
71
- 'message': value.message,
65
+ 'code': value['code'],
66
+ 'message': value['message'],
72
67
  };
73
68
  }
74
69
 
@@ -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.11.1
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.11.1
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.11.1
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.11.1
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { 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.11.1
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