@teemill/pickfaces 0.8.0 → 0.9.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 +3 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/PickfacesApi.d.ts +17 -2
  5. package/dist/apis/PickfacesApi.js +73 -1
  6. package/dist/models/ApiError.d.ts +37 -0
  7. package/dist/models/ApiError.js +53 -0
  8. package/dist/models/CreatePickfaceRequest.d.ts +1 -1
  9. package/dist/models/CreatePickfaceRequest.js +1 -1
  10. package/dist/models/CreatePickfaceRequestDimensions.d.ts +1 -1
  11. package/dist/models/CreatePickfaceRequestDimensions.js +1 -1
  12. package/dist/models/GetPickfaces200Response.d.ts +1 -1
  13. package/dist/models/GetPickfaces200Response.js +1 -1
  14. package/dist/models/MoveStockRequest.d.ts +43 -0
  15. package/dist/models/MoveStockRequest.js +56 -0
  16. package/dist/models/Pickface.d.ts +1 -1
  17. package/dist/models/Pickface.js +1 -1
  18. package/dist/models/PickfaceContentsInner.d.ts +1 -1
  19. package/dist/models/PickfaceContentsInner.js +1 -1
  20. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +1 -1
  21. package/dist/models/PickfaceContentsInnerApplicationsInner.js +1 -1
  22. package/dist/models/PickfaceContentsInnerMetadata.d.ts +1 -1
  23. package/dist/models/PickfaceContentsInnerMetadata.js +1 -1
  24. package/dist/models/PickfaceContentsInnerQuantity.d.ts +1 -1
  25. package/dist/models/PickfaceContentsInnerQuantity.js +1 -1
  26. package/dist/models/PickfaceLastPicked.d.ts +1 -1
  27. package/dist/models/PickfaceLastPicked.js +1 -1
  28. package/dist/models/PickfaceLastRestocked.d.ts +1 -1
  29. package/dist/models/PickfaceLastRestocked.js +1 -1
  30. package/dist/models/PickfaceLog.d.ts +1 -1
  31. package/dist/models/PickfaceLog.js +1 -1
  32. package/dist/models/PickfaceLogUser.d.ts +1 -1
  33. package/dist/models/PickfaceLogUser.js +1 -1
  34. package/dist/models/UpdatePickfaceRequest.d.ts +8 -1
  35. package/dist/models/UpdatePickfaceRequest.js +4 -1
  36. package/dist/models/UpdatePickfaceRequestContents.d.ts +37 -0
  37. package/dist/models/UpdatePickfaceRequestContents.js +52 -0
  38. package/dist/models/index.d.ts +3 -1
  39. package/dist/models/index.js +3 -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 +78 -1
  44. package/src/models/ApiError.ts +74 -0
  45. package/src/models/CreatePickfaceRequest.ts +1 -1
  46. package/src/models/CreatePickfaceRequestDimensions.ts +1 -1
  47. package/src/models/GetPickfaces200Response.ts +1 -1
  48. package/src/models/MoveStockRequest.ts +84 -0
  49. package/src/models/Pickface.ts +1 -1
  50. package/src/models/PickfaceContentsInner.ts +1 -1
  51. package/src/models/PickfaceContentsInnerApplicationsInner.ts +1 -1
  52. package/src/models/PickfaceContentsInnerMetadata.ts +1 -1
  53. package/src/models/PickfaceContentsInnerQuantity.ts +1 -1
  54. package/src/models/PickfaceLastPicked.ts +1 -1
  55. package/src/models/PickfaceLastRestocked.ts +1 -1
  56. package/src/models/PickfaceLog.ts +1 -1
  57. package/src/models/PickfaceLogUser.ts +1 -1
  58. package/src/models/UpdatePickfaceRequest.ts +16 -1
  59. package/src/models/UpdatePickfaceRequestContents.ts +73 -0
  60. package/src/models/index.ts +3 -1
  61. 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.8.0
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdatePickfaceRequestToJSON = exports.UpdatePickfaceRequestFromJSONTyped = exports.UpdatePickfaceRequestFromJSON = exports.instanceOfUpdatePickfaceRequest = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var UpdatePickfaceRequestContents_1 = require("./UpdatePickfaceRequestContents");
18
19
  /**
19
20
  * Check if a given object implements the UpdatePickfaceRequest interface.
20
21
  */
@@ -33,6 +34,7 @@ function UpdatePickfaceRequestFromJSONTyped(json, ignoreDiscriminator) {
33
34
  }
34
35
  return {
35
36
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
37
+ 'contents': !(0, runtime_1.exists)(json, 'contents') ? undefined : (0, UpdatePickfaceRequestContents_1.UpdatePickfaceRequestContentsFromJSON)(json['contents']),
36
38
  };
37
39
  }
38
40
  exports.UpdatePickfaceRequestFromJSONTyped = UpdatePickfaceRequestFromJSONTyped;
@@ -45,6 +47,7 @@ function UpdatePickfaceRequestToJSON(value) {
45
47
  }
46
48
  return {
47
49
  'enabled': value.enabled,
50
+ 'contents': (0, UpdatePickfaceRequestContents_1.UpdatePickfaceRequestContentsToJSON)(value.contents),
48
51
  };
49
52
  }
50
53
  exports.UpdatePickfaceRequestToJSON = UpdatePickfaceRequestToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Pickfaces API
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.9.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdatePickfaceRequestContents
16
+ */
17
+ export interface UpdatePickfaceRequestContents {
18
+ /**
19
+ * The variant to add to/remove from the pickface
20
+ * @type {string}
21
+ * @memberof UpdatePickfaceRequestContents
22
+ */
23
+ variantRef?: string;
24
+ /**
25
+ * The quantity to add to/remove from the pickface. A negative number means stock will be removed
26
+ * @type {number}
27
+ * @memberof UpdatePickfaceRequestContents
28
+ */
29
+ quantity?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdatePickfaceRequestContents interface.
33
+ */
34
+ export declare function instanceOfUpdatePickfaceRequestContents(value: object): boolean;
35
+ export declare function UpdatePickfaceRequestContentsFromJSON(json: any): UpdatePickfaceRequestContents;
36
+ export declare function UpdatePickfaceRequestContentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePickfaceRequestContents;
37
+ export declare function UpdatePickfaceRequestContentsToJSON(value?: UpdatePickfaceRequestContents | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pickfaces API
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.9.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdatePickfaceRequestContentsToJSON = exports.UpdatePickfaceRequestContentsFromJSONTyped = exports.UpdatePickfaceRequestContentsFromJSON = exports.instanceOfUpdatePickfaceRequestContents = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the UpdatePickfaceRequestContents interface.
20
+ */
21
+ function instanceOfUpdatePickfaceRequestContents(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfUpdatePickfaceRequestContents = instanceOfUpdatePickfaceRequestContents;
26
+ function UpdatePickfaceRequestContentsFromJSON(json) {
27
+ return UpdatePickfaceRequestContentsFromJSONTyped(json, false);
28
+ }
29
+ exports.UpdatePickfaceRequestContentsFromJSON = UpdatePickfaceRequestContentsFromJSON;
30
+ function UpdatePickfaceRequestContentsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'variantRef': !(0, runtime_1.exists)(json, 'variantRef') ? undefined : json['variantRef'],
36
+ 'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
37
+ };
38
+ }
39
+ exports.UpdatePickfaceRequestContentsFromJSONTyped = UpdatePickfaceRequestContentsFromJSONTyped;
40
+ function UpdatePickfaceRequestContentsToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'variantRef': value.variantRef,
49
+ 'quantity': value.quantity,
50
+ };
51
+ }
52
+ exports.UpdatePickfaceRequestContentsToJSON = UpdatePickfaceRequestContentsToJSON;
@@ -1,7 +1,8 @@
1
+ export * from './ApiError';
1
2
  export * from './CreatePickfaceRequest';
2
3
  export * from './CreatePickfaceRequestDimensions';
3
4
  export * from './GetPickfaces200Response';
4
- export * from './ModelError';
5
+ export * from './MoveStockRequest';
5
6
  export * from './Pickface';
6
7
  export * from './PickfaceContentsInner';
7
8
  export * from './PickfaceContentsInnerApplicationsInner';
@@ -12,3 +13,4 @@ export * from './PickfaceLastRestocked';
12
13
  export * from './PickfaceLog';
13
14
  export * from './PickfaceLogUser';
14
15
  export * from './UpdatePickfaceRequest';
16
+ export * from './UpdatePickfaceRequestContents';
@@ -16,10 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./ApiError"), exports);
19
20
  __exportStar(require("./CreatePickfaceRequest"), exports);
20
21
  __exportStar(require("./CreatePickfaceRequestDimensions"), exports);
21
22
  __exportStar(require("./GetPickfaces200Response"), exports);
22
- __exportStar(require("./ModelError"), exports);
23
+ __exportStar(require("./MoveStockRequest"), exports);
23
24
  __exportStar(require("./Pickface"), exports);
24
25
  __exportStar(require("./PickfaceContentsInner"), exports);
25
26
  __exportStar(require("./PickfaceContentsInnerApplicationsInner"), exports);
@@ -30,3 +31,4 @@ __exportStar(require("./PickfaceLastRestocked"), exports);
30
31
  __exportStar(require("./PickfaceLog"), exports);
31
32
  __exportStar(require("./PickfaceLogUser"), exports);
32
33
  __exportStar(require("./UpdatePickfaceRequest"), exports);
34
+ __exportStar(require("./UpdatePickfaceRequestContents"), 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.8.0
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pickfaces API
6
6
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.0
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/pickfaces",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "OpenAPI client for @teemill/pickfaces",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,16 +15,22 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApiError,
18
19
  CreatePickfaceRequest,
19
20
  GetPickfaces200Response,
21
+ MoveStockRequest,
20
22
  Pickface,
21
23
  UpdatePickfaceRequest,
22
24
  } from '../models/index';
23
25
  import {
26
+ ApiErrorFromJSON,
27
+ ApiErrorToJSON,
24
28
  CreatePickfaceRequestFromJSON,
25
29
  CreatePickfaceRequestToJSON,
26
30
  GetPickfaces200ResponseFromJSON,
27
31
  GetPickfaces200ResponseToJSON,
32
+ MoveStockRequestFromJSON,
33
+ MoveStockRequestToJSON,
28
34
  PickfaceFromJSON,
29
35
  PickfaceToJSON,
30
36
  UpdatePickfaceRequestFromJSON,
@@ -58,6 +64,12 @@ export interface GetPickfacesRequest {
58
64
  filters?: Array<GetPickfacesFiltersEnum>;
59
65
  }
60
66
 
67
+ export interface MoveStockOperationRequest {
68
+ project: string;
69
+ pickfaceId: string;
70
+ moveStockRequest: MoveStockRequest;
71
+ }
72
+
61
73
  export interface UpdatePickfaceOperationRequest {
62
74
  project: string;
63
75
  pickfaceId: string;
@@ -370,6 +382,71 @@ export class PickfacesApi extends runtime.BaseAPI {
370
382
  return await response.value();
371
383
  }
372
384
 
385
+ /**
386
+ * Move stock from one pickface to another in a single transaction
387
+ * Move stock
388
+ */
389
+ async moveStockRaw(requestParameters: MoveStockOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pickface>> {
390
+ if (requestParameters.project === null || requestParameters.project === undefined) {
391
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling moveStock.');
392
+ }
393
+
394
+ if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
395
+ throw new runtime.RequiredError('pickfaceId','Required parameter requestParameters.pickfaceId was null or undefined when calling moveStock.');
396
+ }
397
+
398
+ if (requestParameters.moveStockRequest === null || requestParameters.moveStockRequest === undefined) {
399
+ throw new runtime.RequiredError('moveStockRequest','Required parameter requestParameters.moveStockRequest was null or undefined when calling moveStock.');
400
+ }
401
+
402
+ const queryParameters: any = {};
403
+
404
+ if (requestParameters.project !== undefined) {
405
+ queryParameters['project'] = requestParameters.project;
406
+ }
407
+
408
+ const headerParameters: runtime.HTTPHeaders = {};
409
+
410
+ headerParameters['Content-Type'] = 'application/json';
411
+
412
+ if (this.configuration && this.configuration.accessToken) {
413
+ // oauth required
414
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
415
+ }
416
+
417
+ if (this.configuration && this.configuration.apiKey) {
418
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
419
+ }
420
+
421
+ const response = await this.request({
422
+ path: `/v1/pickfaces/{pickfaceId}/stock/move`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
423
+ method: 'POST',
424
+ headers: headerParameters,
425
+ query: queryParameters,
426
+ body: MoveStockRequestToJSON(requestParameters.moveStockRequest),
427
+ }, initOverrides);
428
+
429
+ return new runtime.JSONApiResponse(response, (jsonValue) => PickfaceFromJSON(jsonValue));
430
+ }
431
+
432
+ /**
433
+ * Move stock from one pickface to another in a single transaction
434
+ * Move stock
435
+ */
436
+ async moveStock(
437
+ project: string, pickfaceId: string, moveStockRequest: MoveStockRequest,
438
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
439
+ ): Promise<Pickface> {
440
+ const response = await this.moveStockRaw(
441
+ {
442
+ project: project,pickfaceId: pickfaceId,moveStockRequest: moveStockRequest,
443
+ },
444
+ initOverrides
445
+ );
446
+
447
+ return await response.value();
448
+ }
449
+
373
450
  /**
374
451
  * Update a Pickface
375
452
  * Update Pickface
@@ -0,0 +1,74 @@
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.9.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiError
20
+ */
21
+ export interface ApiError {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiError
26
+ */
27
+ code?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiError
32
+ */
33
+ message: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiError interface.
38
+ */
39
+ export function instanceOfApiError(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "message" in value;
42
+
43
+ return isInstance;
44
+ }
45
+
46
+ export function ApiErrorFromJSON(json: any): ApiError {
47
+ return ApiErrorFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
51
+ if ((json === undefined) || (json === null)) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'code': !exists(json, 'code') ? undefined : json['code'],
57
+ 'message': json['message'],
58
+ };
59
+ }
60
+
61
+ export function ApiErrorToJSON(value?: ApiError | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'code': value.code,
71
+ 'message': value.message,
72
+ };
73
+ }
74
+
@@ -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.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,84 @@
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.9.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface MoveStockRequest
20
+ */
21
+ export interface MoveStockRequest {
22
+ /**
23
+ * The variant to move from the pickface
24
+ * @type {string}
25
+ * @memberof MoveStockRequest
26
+ */
27
+ variantRef: string;
28
+ /**
29
+ * The quantity to move from the pickface
30
+ * @type {number}
31
+ * @memberof MoveStockRequest
32
+ */
33
+ quantity: number;
34
+ /**
35
+ * The pickface to move the stock to
36
+ * @type {string}
37
+ * @memberof MoveStockRequest
38
+ */
39
+ toPickfaceRef: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the MoveStockRequest interface.
44
+ */
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;
52
+ }
53
+
54
+ export function MoveStockRequestFromJSON(json: any): MoveStockRequest {
55
+ return MoveStockRequestFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function MoveStockRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveStockRequest {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'variantRef': json['variantRef'],
65
+ 'quantity': json['quantity'],
66
+ 'toPickfaceRef': json['toPickfaceRef'],
67
+ };
68
+ }
69
+
70
+ export function MoveStockRequestToJSON(value?: MoveStockRequest | null): any {
71
+ if (value === undefined) {
72
+ return undefined;
73
+ }
74
+ if (value === null) {
75
+ return null;
76
+ }
77
+ return {
78
+
79
+ 'variantRef': value.variantRef,
80
+ 'quantity': value.quantity,
81
+ 'toPickfaceRef': value.toPickfaceRef,
82
+ };
83
+ }
84
+
@@ -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.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickfaces API
5
5
  * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { UpdatePickfaceRequestContents } from './UpdatePickfaceRequestContents';
17
+ import {
18
+ UpdatePickfaceRequestContentsFromJSON,
19
+ UpdatePickfaceRequestContentsFromJSONTyped,
20
+ UpdatePickfaceRequestContentsToJSON,
21
+ } from './UpdatePickfaceRequestContents';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -25,6 +32,12 @@ export interface UpdatePickfaceRequest {
25
32
  * @memberof UpdatePickfaceRequest
26
33
  */
27
34
  enabled?: boolean;
35
+ /**
36
+ *
37
+ * @type {UpdatePickfaceRequestContents}
38
+ * @memberof UpdatePickfaceRequest
39
+ */
40
+ contents?: UpdatePickfaceRequestContents | null;
28
41
  }
29
42
 
30
43
  /**
@@ -47,6 +60,7 @@ export function UpdatePickfaceRequestFromJSONTyped(json: any, ignoreDiscriminato
47
60
  return {
48
61
 
49
62
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
63
+ 'contents': !exists(json, 'contents') ? undefined : UpdatePickfaceRequestContentsFromJSON(json['contents']),
50
64
  };
51
65
  }
52
66
 
@@ -60,6 +74,7 @@ export function UpdatePickfaceRequestToJSON(value?: UpdatePickfaceRequest | null
60
74
  return {
61
75
 
62
76
  'enabled': value.enabled,
77
+ 'contents': UpdatePickfaceRequestContentsToJSON(value.contents),
63
78
  };
64
79
  }
65
80