@teemill/pickfaces 0.12.2 → 0.14.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 (182) hide show
  1. package/.openapi-generator/FILES +6 -24
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +2297 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +1480 -0
  9. package/dist/api.js +1243 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +1480 -0
  17. package/dist/esm/api.js +1236 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/esm/index.d.ts +13 -3
  25. package/dist/esm/index.js +13 -3
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/index.ts +18 -0
  30. package/package.json +15 -3
  31. package/tsconfig.json +4 -6
  32. package/dist/apis/PickfacesApi.d.ts +0 -189
  33. package/dist/apis/PickfacesApi.js +0 -569
  34. package/dist/apis/index.d.ts +0 -1
  35. package/dist/apis/index.js +0 -19
  36. package/dist/esm/apis/PickfacesApi.d.ts +0 -189
  37. package/dist/esm/apis/PickfacesApi.js +0 -565
  38. package/dist/esm/apis/index.d.ts +0 -1
  39. package/dist/esm/apis/index.js +0 -3
  40. package/dist/esm/models/ApiError.d.ts +0 -37
  41. package/dist/esm/models/ApiError.js +0 -42
  42. package/dist/esm/models/ContainerModel.d.ts +0 -61
  43. package/dist/esm/models/ContainerModel.js +0 -54
  44. package/dist/esm/models/ContainerModels.d.ts +0 -32
  45. package/dist/esm/models/ContainerModels.js +0 -39
  46. package/dist/esm/models/CreatePickfaceRequest.d.ts +0 -37
  47. package/dist/esm/models/CreatePickfaceRequest.js +0 -40
  48. package/dist/esm/models/CreatePickfaceRequestDimensions.d.ts +0 -43
  49. package/dist/esm/models/CreatePickfaceRequestDimensions.js +0 -42
  50. package/dist/esm/models/GetPickfaces200Response.d.ts +0 -38
  51. package/dist/esm/models/GetPickfaces200Response.js +0 -41
  52. package/dist/esm/models/ListPickfaceLogs200Response.d.ts +0 -38
  53. package/dist/esm/models/ListPickfaceLogs200Response.js +0 -41
  54. package/dist/esm/models/ModelError.d.ts +0 -37
  55. package/dist/esm/models/ModelError.js +0 -46
  56. package/dist/esm/models/MoveStockRequest.d.ts +0 -43
  57. package/dist/esm/models/MoveStockRequest.js +0 -48
  58. package/dist/esm/models/Pickface.d.ts +0 -83
  59. package/dist/esm/models/Pickface.js +0 -58
  60. package/dist/esm/models/PickfaceContainerModel.d.ts +0 -37
  61. package/dist/esm/models/PickfaceContainerModel.js +0 -40
  62. package/dist/esm/models/PickfaceContentsInner.d.ts +0 -58
  63. package/dist/esm/models/PickfaceContentsInner.js +0 -49
  64. package/dist/esm/models/PickfaceContentsInnerApplicationsInner.d.ts +0 -37
  65. package/dist/esm/models/PickfaceContentsInnerApplicationsInner.js +0 -40
  66. package/dist/esm/models/PickfaceContentsInnerMetadata.d.ts +0 -43
  67. package/dist/esm/models/PickfaceContentsInnerMetadata.js +0 -42
  68. package/dist/esm/models/PickfaceContentsInnerQuantity.d.ts +0 -43
  69. package/dist/esm/models/PickfaceContentsInnerQuantity.js +0 -42
  70. package/dist/esm/models/PickfaceLastPicked.d.ts +0 -55
  71. package/dist/esm/models/PickfaceLastPicked.js +0 -46
  72. package/dist/esm/models/PickfaceLastRestocked.d.ts +0 -55
  73. package/dist/esm/models/PickfaceLastRestocked.js +0 -46
  74. package/dist/esm/models/PickfaceLog.d.ts +0 -55
  75. package/dist/esm/models/PickfaceLog.js +0 -46
  76. package/dist/esm/models/PickfaceLogUser.d.ts +0 -37
  77. package/dist/esm/models/PickfaceLogUser.js +0 -45
  78. package/dist/esm/models/PickfaceModel.d.ts +0 -37
  79. package/dist/esm/models/PickfaceModel.js +0 -40
  80. package/dist/esm/models/PickfaceModels.d.ts +0 -32
  81. package/dist/esm/models/PickfaceModels.js +0 -39
  82. package/dist/esm/models/UpdatePickfaceRequest.d.ts +0 -44
  83. package/dist/esm/models/UpdatePickfaceRequest.js +0 -43
  84. package/dist/esm/models/UpdatePickfaceRequestContents.d.ts +0 -37
  85. package/dist/esm/models/UpdatePickfaceRequestContents.js +0 -40
  86. package/dist/esm/models/UpdatePickfaceRequestContentsInner.d.ts +0 -38
  87. package/dist/esm/models/UpdatePickfaceRequestContentsInner.js +0 -45
  88. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +0 -45
  89. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.js +0 -51
  90. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +0 -45
  91. package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +0 -51
  92. package/dist/esm/models/index.d.ts +0 -19
  93. package/dist/esm/models/index.js +0 -21
  94. package/dist/esm/runtime.d.ts +0 -187
  95. package/dist/esm/runtime.js +0 -333
  96. package/dist/models/ApiError.d.ts +0 -37
  97. package/dist/models/ApiError.js +0 -49
  98. package/dist/models/ContainerModel.d.ts +0 -61
  99. package/dist/models/ContainerModel.js +0 -61
  100. package/dist/models/ContainerModels.d.ts +0 -32
  101. package/dist/models/ContainerModels.js +0 -46
  102. package/dist/models/CreatePickfaceRequest.d.ts +0 -37
  103. package/dist/models/CreatePickfaceRequest.js +0 -47
  104. package/dist/models/CreatePickfaceRequestDimensions.d.ts +0 -43
  105. package/dist/models/CreatePickfaceRequestDimensions.js +0 -49
  106. package/dist/models/GetPickfaces200Response.d.ts +0 -38
  107. package/dist/models/GetPickfaces200Response.js +0 -48
  108. package/dist/models/ListPickfaceLogs200Response.d.ts +0 -38
  109. package/dist/models/ListPickfaceLogs200Response.js +0 -48
  110. package/dist/models/ModelError.d.ts +0 -37
  111. package/dist/models/ModelError.js +0 -53
  112. package/dist/models/MoveStockRequest.d.ts +0 -43
  113. package/dist/models/MoveStockRequest.js +0 -55
  114. package/dist/models/Pickface.d.ts +0 -83
  115. package/dist/models/Pickface.js +0 -65
  116. package/dist/models/PickfaceContainerModel.d.ts +0 -37
  117. package/dist/models/PickfaceContainerModel.js +0 -47
  118. package/dist/models/PickfaceContentsInner.d.ts +0 -58
  119. package/dist/models/PickfaceContentsInner.js +0 -56
  120. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +0 -37
  121. package/dist/models/PickfaceContentsInnerApplicationsInner.js +0 -47
  122. package/dist/models/PickfaceContentsInnerMetadata.d.ts +0 -43
  123. package/dist/models/PickfaceContentsInnerMetadata.js +0 -49
  124. package/dist/models/PickfaceContentsInnerQuantity.d.ts +0 -43
  125. package/dist/models/PickfaceContentsInnerQuantity.js +0 -49
  126. package/dist/models/PickfaceLastPicked.d.ts +0 -55
  127. package/dist/models/PickfaceLastPicked.js +0 -53
  128. package/dist/models/PickfaceLastRestocked.d.ts +0 -55
  129. package/dist/models/PickfaceLastRestocked.js +0 -53
  130. package/dist/models/PickfaceLog.d.ts +0 -55
  131. package/dist/models/PickfaceLog.js +0 -53
  132. package/dist/models/PickfaceLogUser.d.ts +0 -37
  133. package/dist/models/PickfaceLogUser.js +0 -52
  134. package/dist/models/PickfaceModel.d.ts +0 -37
  135. package/dist/models/PickfaceModel.js +0 -47
  136. package/dist/models/PickfaceModels.d.ts +0 -32
  137. package/dist/models/PickfaceModels.js +0 -46
  138. package/dist/models/UpdatePickfaceRequest.d.ts +0 -44
  139. package/dist/models/UpdatePickfaceRequest.js +0 -50
  140. package/dist/models/UpdatePickfaceRequestContents.d.ts +0 -37
  141. package/dist/models/UpdatePickfaceRequestContents.js +0 -47
  142. package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +0 -38
  143. package/dist/models/UpdatePickfaceRequestContentsInner.js +0 -52
  144. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +0 -45
  145. package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +0 -58
  146. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +0 -45
  147. package/dist/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +0 -58
  148. package/dist/models/index.d.ts +0 -19
  149. package/dist/models/index.js +0 -37
  150. package/dist/runtime.d.ts +0 -187
  151. package/dist/runtime.js +0 -349
  152. package/src/apis/PickfacesApi.ts +0 -821
  153. package/src/apis/index.ts +0 -3
  154. package/src/index.ts +0 -5
  155. package/src/models/ApiError.ts +0 -69
  156. package/src/models/ContainerModel.ts +0 -103
  157. package/src/models/ContainerModels.ts +0 -67
  158. package/src/models/CreatePickfaceRequest.ts +0 -68
  159. package/src/models/CreatePickfaceRequestDimensions.ts +0 -76
  160. package/src/models/GetPickfaces200Response.ts +0 -75
  161. package/src/models/ListPickfaceLogs200Response.ts +0 -75
  162. package/src/models/ModelError.ts +0 -74
  163. package/src/models/MoveStockRequest.ts +0 -79
  164. package/src/models/Pickface.ts +0 -149
  165. package/src/models/PickfaceContainerModel.ts +0 -68
  166. package/src/models/PickfaceContentsInner.ts +0 -111
  167. package/src/models/PickfaceContentsInnerApplicationsInner.ts +0 -68
  168. package/src/models/PickfaceContentsInnerMetadata.ts +0 -76
  169. package/src/models/PickfaceContentsInnerQuantity.ts +0 -76
  170. package/src/models/PickfaceLastPicked.ts +0 -92
  171. package/src/models/PickfaceLastRestocked.ts +0 -92
  172. package/src/models/PickfaceLog.ts +0 -92
  173. package/src/models/PickfaceLogUser.ts +0 -73
  174. package/src/models/PickfaceModel.ts +0 -68
  175. package/src/models/PickfaceModels.ts +0 -67
  176. package/src/models/UpdatePickfaceRequest.ts +0 -83
  177. package/src/models/UpdatePickfaceRequestContents.ts +0 -68
  178. package/src/models/UpdatePickfaceRequestContentsInner.ts +0 -77
  179. package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +0 -81
  180. package/src/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.ts +0 -81
  181. package/src/models/index.ts +0 -21
  182. package/src/runtime.ts +0 -441
@@ -1,92 +0,0 @@
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.12.2
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
- /**
17
- *
18
- * @export
19
- * @interface PickfaceLastRestocked
20
- */
21
- export interface PickfaceLastRestocked {
22
- /**
23
- * Unique object identifier
24
- * @type {string}
25
- * @memberof PickfaceLastRestocked
26
- */
27
- id?: string;
28
- /**
29
- * A reference to the resource location
30
- * @type {string}
31
- * @memberof PickfaceLastRestocked
32
- */
33
- userRef?: string;
34
- /**
35
- * The action that was taken
36
- * @type {string}
37
- * @memberof PickfaceLastRestocked
38
- */
39
- action?: string;
40
- /**
41
- * The reason for the action
42
- * @type {string}
43
- * @memberof PickfaceLastRestocked
44
- */
45
- reason?: string;
46
- /**
47
- * ISO 8601 Created at timestamp
48
- * @type {Date}
49
- * @memberof PickfaceLastRestocked
50
- */
51
- createdAt?: Date;
52
- }
53
-
54
- /**
55
- * Check if a given object implements the PickfaceLastRestocked interface.
56
- */
57
- export function instanceOfPickfaceLastRestocked(value: object): boolean {
58
- return true;
59
- }
60
-
61
- export function PickfaceLastRestockedFromJSON(json: any): PickfaceLastRestocked {
62
- return PickfaceLastRestockedFromJSONTyped(json, false);
63
- }
64
-
65
- export function PickfaceLastRestockedFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLastRestocked {
66
- if (json == null) {
67
- return json;
68
- }
69
- return {
70
-
71
- 'id': json['id'] == null ? undefined : json['id'],
72
- 'userRef': json['userRef'] == null ? undefined : json['userRef'],
73
- 'action': json['action'] == null ? undefined : json['action'],
74
- 'reason': json['reason'] == null ? undefined : json['reason'],
75
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
76
- };
77
- }
78
-
79
- export function PickfaceLastRestockedToJSON(value?: PickfaceLastRestocked | null): any {
80
- if (value == null) {
81
- return value;
82
- }
83
- return {
84
-
85
- 'id': value['id'],
86
- 'userRef': value['userRef'],
87
- 'action': value['action'],
88
- 'reason': value['reason'],
89
- 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
90
- };
91
- }
92
-
@@ -1,92 +0,0 @@
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.12.2
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
- /**
17
- *
18
- * @export
19
- * @interface PickfaceLog
20
- */
21
- export interface PickfaceLog {
22
- /**
23
- * Unique object identifier
24
- * @type {string}
25
- * @memberof PickfaceLog
26
- */
27
- id?: string;
28
- /**
29
- * A reference to the resource location
30
- * @type {string}
31
- * @memberof PickfaceLog
32
- */
33
- userRef?: string;
34
- /**
35
- * The action that was taken
36
- * @type {string}
37
- * @memberof PickfaceLog
38
- */
39
- action?: string;
40
- /**
41
- * The reason for the action
42
- * @type {string}
43
- * @memberof PickfaceLog
44
- */
45
- reason?: string;
46
- /**
47
- * ISO 8601 Created at timestamp
48
- * @type {Date}
49
- * @memberof PickfaceLog
50
- */
51
- createdAt?: Date;
52
- }
53
-
54
- /**
55
- * Check if a given object implements the PickfaceLog interface.
56
- */
57
- export function instanceOfPickfaceLog(value: object): boolean {
58
- return true;
59
- }
60
-
61
- export function PickfaceLogFromJSON(json: any): PickfaceLog {
62
- return PickfaceLogFromJSONTyped(json, false);
63
- }
64
-
65
- export function PickfaceLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLog {
66
- if (json == null) {
67
- return json;
68
- }
69
- return {
70
-
71
- 'id': json['id'] == null ? undefined : json['id'],
72
- 'userRef': json['userRef'] == null ? undefined : json['userRef'],
73
- 'action': json['action'] == null ? undefined : json['action'],
74
- 'reason': json['reason'] == null ? undefined : json['reason'],
75
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
76
- };
77
- }
78
-
79
- export function PickfaceLogToJSON(value?: PickfaceLog | null): any {
80
- if (value == null) {
81
- return value;
82
- }
83
- return {
84
-
85
- 'id': value['id'],
86
- 'userRef': value['userRef'],
87
- 'action': value['action'],
88
- 'reason': value['reason'],
89
- 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
90
- };
91
- }
92
-
@@ -1,73 +0,0 @@
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.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 { exists, mapValues } from '../runtime';
16
- /**
17
- * The user that took the action
18
- * @export
19
- * @interface PickfaceLogUser
20
- */
21
- export interface PickfaceLogUser {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof PickfaceLogUser
26
- */
27
- id?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof PickfaceLogUser
32
- */
33
- name?: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the PickfaceLogUser interface.
38
- */
39
- export function instanceOfPickfaceLogUser(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
43
- }
44
-
45
- export function PickfaceLogUserFromJSON(json: any): PickfaceLogUser {
46
- return PickfaceLogUserFromJSONTyped(json, false);
47
- }
48
-
49
- export function PickfaceLogUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceLogUser {
50
- if ((json === undefined) || (json === null)) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'id': !exists(json, 'id') ? undefined : json['id'],
56
- 'name': !exists(json, 'name') ? undefined : json['name'],
57
- };
58
- }
59
-
60
- export function PickfaceLogUserToJSON(value?: PickfaceLogUser | null): any {
61
- if (value === undefined) {
62
- return undefined;
63
- }
64
- if (value === null) {
65
- return null;
66
- }
67
- return {
68
-
69
- 'id': value.id,
70
- 'name': value.name,
71
- };
72
- }
73
-
@@ -1,68 +0,0 @@
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.12.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
- /**
17
- *
18
- * @export
19
- * @interface PickfaceModel
20
- */
21
- export interface PickfaceModel {
22
- /**
23
- * Unique object identifier
24
- * @type {string}
25
- * @memberof PickfaceModel
26
- */
27
- id?: string;
28
- /**
29
- * A reference to the resource location
30
- * @type {string}
31
- * @memberof PickfaceModel
32
- */
33
- ref?: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the PickfaceModel interface.
38
- */
39
- export function instanceOfPickfaceModel(value: object): boolean {
40
- return true;
41
- }
42
-
43
- export function PickfaceModelFromJSON(json: any): PickfaceModel {
44
- return PickfaceModelFromJSONTyped(json, false);
45
- }
46
-
47
- export function PickfaceModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceModel {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'id': json['id'] == null ? undefined : json['id'],
54
- 'ref': json['ref'] == null ? undefined : json['ref'],
55
- };
56
- }
57
-
58
- export function PickfaceModelToJSON(value?: PickfaceModel | null): any {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
-
64
- 'id': value['id'],
65
- 'ref': value['ref'],
66
- };
67
- }
68
-
@@ -1,67 +0,0 @@
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.12.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 { PickfaceModel } from './PickfaceModel';
17
- import {
18
- PickfaceModelFromJSON,
19
- PickfaceModelFromJSONTyped,
20
- PickfaceModelToJSON,
21
- } from './PickfaceModel';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface PickfaceModels
27
- */
28
- export interface PickfaceModels {
29
- /**
30
- *
31
- * @type {Array<PickfaceModel>}
32
- * @memberof PickfaceModels
33
- */
34
- pickfaceModels?: Array<PickfaceModel>;
35
- }
36
-
37
- /**
38
- * Check if a given object implements the PickfaceModels interface.
39
- */
40
- export function instanceOfPickfaceModels(value: object): boolean {
41
- return true;
42
- }
43
-
44
- export function PickfaceModelsFromJSON(json: any): PickfaceModels {
45
- return PickfaceModelsFromJSONTyped(json, false);
46
- }
47
-
48
- export function PickfaceModelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickfaceModels {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'pickfaceModels': json['pickfaceModels'] == null ? undefined : ((json['pickfaceModels'] as Array<any>).map(PickfaceModelFromJSON)),
55
- };
56
- }
57
-
58
- export function PickfaceModelsToJSON(value?: PickfaceModels | null): any {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
-
64
- 'pickfaceModels': value['pickfaceModels'] == null ? undefined : ((value['pickfaceModels'] as Array<any>).map(PickfaceModelToJSON)),
65
- };
66
- }
67
-
@@ -1,83 +0,0 @@
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.12.2
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 { UpdatePickfaceRequestContentsInner } from './UpdatePickfaceRequestContentsInner';
17
- import {
18
- UpdatePickfaceRequestContentsInnerFromJSON,
19
- UpdatePickfaceRequestContentsInnerFromJSONTyped,
20
- UpdatePickfaceRequestContentsInnerToJSON,
21
- } from './UpdatePickfaceRequestContentsInner';
22
-
23
- /**
24
- * A list of updates to apply to the pickface.
25
- * @export
26
- * @interface UpdatePickfaceRequest
27
- */
28
- export interface UpdatePickfaceRequest {
29
- /**
30
- *
31
- * @type {boolean}
32
- * @memberof UpdatePickfaceRequest
33
- */
34
- enabled?: boolean;
35
- /**
36
- * Unique object identifier
37
- * @type {string}
38
- * @memberof UpdatePickfaceRequest
39
- */
40
- containerModelId?: string;
41
- /**
42
- *
43
- * @type {Array<UpdatePickfaceRequestContentsInner>}
44
- * @memberof UpdatePickfaceRequest
45
- */
46
- contents?: Array<UpdatePickfaceRequestContentsInner>;
47
- }
48
-
49
- /**
50
- * Check if a given object implements the UpdatePickfaceRequest interface.
51
- */
52
- export function instanceOfUpdatePickfaceRequest(value: object): boolean {
53
- return true;
54
- }
55
-
56
- export function UpdatePickfaceRequestFromJSON(json: any): UpdatePickfaceRequest {
57
- return UpdatePickfaceRequestFromJSONTyped(json, false);
58
- }
59
-
60
- export function UpdatePickfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePickfaceRequest {
61
- if (json == null) {
62
- return json;
63
- }
64
- return {
65
-
66
- 'enabled': json['enabled'] == null ? undefined : json['enabled'],
67
- 'containerModelId': json['containerModelId'] == null ? undefined : json['containerModelId'],
68
- 'contents': json['contents'] == null ? undefined : ((json['contents'] as Array<any>).map(UpdatePickfaceRequestContentsInnerFromJSON)),
69
- };
70
- }
71
-
72
- export function UpdatePickfaceRequestToJSON(value?: UpdatePickfaceRequest | null): any {
73
- if (value == null) {
74
- return value;
75
- }
76
- return {
77
-
78
- 'enabled': value['enabled'],
79
- 'containerModelId': value['containerModelId'],
80
- 'contents': value['contents'] == null ? undefined : ((value['contents'] as Array<any>).map(UpdatePickfaceRequestContentsInnerToJSON)),
81
- };
82
- }
83
-
@@ -1,68 +0,0 @@
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
- /**
17
- *
18
- * @export
19
- * @interface UpdatePickfaceRequestContents
20
- */
21
- export interface UpdatePickfaceRequestContents {
22
- /**
23
- * The variant to add to/remove from the pickface
24
- * @type {string}
25
- * @memberof UpdatePickfaceRequestContents
26
- */
27
- variantRef?: string;
28
- /**
29
- * The quantity to add to/remove from the pickface. A negative number means stock will be removed
30
- * @type {number}
31
- * @memberof UpdatePickfaceRequestContents
32
- */
33
- quantity?: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the UpdatePickfaceRequestContents interface.
38
- */
39
- export function instanceOfUpdatePickfaceRequestContents(value: object): boolean {
40
- return true;
41
- }
42
-
43
- export function UpdatePickfaceRequestContentsFromJSON(json: any): UpdatePickfaceRequestContents {
44
- return UpdatePickfaceRequestContentsFromJSONTyped(json, false);
45
- }
46
-
47
- export function UpdatePickfaceRequestContentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePickfaceRequestContents {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'variantRef': json['variantRef'] == null ? undefined : json['variantRef'],
54
- 'quantity': json['quantity'] == null ? undefined : json['quantity'],
55
- };
56
- }
57
-
58
- export function UpdatePickfaceRequestContentsToJSON(value?: UpdatePickfaceRequestContents | null): any {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
-
64
- 'variantRef': value['variantRef'],
65
- 'quantity': value['quantity'],
66
- };
67
- }
68
-
@@ -1,77 +0,0 @@
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.12.2
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 { UpdatePickfaceRequestContentsInnerQuantity } from './UpdatePickfaceRequestContentsInnerQuantity';
17
- import {
18
- UpdatePickfaceRequestContentsInnerQuantityFromJSON,
19
- UpdatePickfaceRequestContentsInnerQuantityFromJSONTyped,
20
- UpdatePickfaceRequestContentsInnerQuantityToJSON,
21
- } from './UpdatePickfaceRequestContentsInnerQuantity';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface UpdatePickfaceRequestContentsInner
27
- */
28
- export interface UpdatePickfaceRequestContentsInner {
29
- /**
30
- * The variant to add or subtract from the pickface
31
- * @type {string}
32
- * @memberof UpdatePickfaceRequestContentsInner
33
- */
34
- variantRef: string;
35
- /**
36
- *
37
- * @type {UpdatePickfaceRequestContentsInnerQuantity}
38
- * @memberof UpdatePickfaceRequestContentsInner
39
- */
40
- quantity: UpdatePickfaceRequestContentsInnerQuantity;
41
- }
42
-
43
- /**
44
- * Check if a given object implements the UpdatePickfaceRequestContentsInner interface.
45
- */
46
- export function instanceOfUpdatePickfaceRequestContentsInner(value: object): boolean {
47
- if (!('variantRef' in value)) return false;
48
- if (!('quantity' in value)) return false;
49
- return true;
50
- }
51
-
52
- export function UpdatePickfaceRequestContentsInnerFromJSON(json: any): UpdatePickfaceRequestContentsInner {
53
- return UpdatePickfaceRequestContentsInnerFromJSONTyped(json, false);
54
- }
55
-
56
- export function UpdatePickfaceRequestContentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePickfaceRequestContentsInner {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'variantRef': json['variantRef'],
63
- 'quantity': UpdatePickfaceRequestContentsInnerQuantityFromJSON(json['quantity']),
64
- };
65
- }
66
-
67
- export function UpdatePickfaceRequestContentsInnerToJSON(value?: UpdatePickfaceRequestContentsInner | null): any {
68
- if (value == null) {
69
- return value;
70
- }
71
- return {
72
-
73
- 'variantRef': value['variantRef'],
74
- 'quantity': UpdatePickfaceRequestContentsInnerQuantityToJSON(value['quantity']),
75
- };
76
- }
77
-