@teemill/pickfaces 0.1.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.
- package/.openapi-generator/FILES +21 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/PickfacesApi.d.ts +91 -0
- package/dist/apis/PickfacesApi.js +366 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/CreatePickfaceRequest.d.ts +38 -0
- package/dist/models/CreatePickfaceRequest.js +53 -0
- package/dist/models/CreatePickfaceRequestDimensions.d.ts +43 -0
- package/dist/models/CreatePickfaceRequestDimensions.js +54 -0
- package/dist/models/GetPickfaces200Response.d.ts +38 -0
- package/dist/models/GetPickfaces200Response.js +53 -0
- package/dist/models/ModelError.d.ts +37 -0
- package/dist/models/ModelError.js +53 -0
- package/dist/models/Pickface.d.ts +63 -0
- package/dist/models/Pickface.js +62 -0
- package/dist/models/PickfaceContentsInner.d.ts +58 -0
- package/dist/models/PickfaceContentsInner.js +61 -0
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +37 -0
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +52 -0
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +43 -0
- package/dist/models/PickfaceContentsInnerMetadata.js +54 -0
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +43 -0
- package/dist/models/PickfaceContentsInnerQuantity.js +54 -0
- package/dist/models/UpdatePickfaceRequest.d.ts +31 -0
- package/dist/models/UpdatePickfaceRequest.js +50 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +28 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +19 -0
- package/src/apis/PickfacesApi.ts +304 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/CreatePickfaceRequest.ts +80 -0
- package/src/models/CreatePickfaceRequestDimensions.ts +81 -0
- package/src/models/GetPickfaces200Response.ts +80 -0
- package/src/models/ModelError.ts +74 -0
- package/src/models/Pickface.ts +118 -0
- package/src/models/PickfaceContentsInner.ts +116 -0
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +73 -0
- package/src/models/PickfaceContentsInnerMetadata.ts +81 -0
- package/src/models/PickfaceContentsInnerQuantity.ts +81 -0
- package/src/models/UpdatePickfaceRequest.ts +65 -0
- package/src/models/index.ts +12 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,304 @@
|
|
|
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.1.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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreatePickfaceRequest,
|
|
19
|
+
GetPickfaces200Response,
|
|
20
|
+
Pickface,
|
|
21
|
+
UpdatePickfaceRequest,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
CreatePickfaceRequestFromJSON,
|
|
25
|
+
CreatePickfaceRequestToJSON,
|
|
26
|
+
GetPickfaces200ResponseFromJSON,
|
|
27
|
+
GetPickfaces200ResponseToJSON,
|
|
28
|
+
PickfaceFromJSON,
|
|
29
|
+
PickfaceToJSON,
|
|
30
|
+
UpdatePickfaceRequestFromJSON,
|
|
31
|
+
UpdatePickfaceRequestToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface CreatePickfaceOperationRequest {
|
|
35
|
+
project: string;
|
|
36
|
+
createPickfaceRequest: CreatePickfaceRequest;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface DeletePickfaceRequest {
|
|
40
|
+
project: string;
|
|
41
|
+
pickfaceId: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface GetPickfaceRequest {
|
|
45
|
+
project: string;
|
|
46
|
+
pickfaceId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface GetPickfacesRequest {
|
|
50
|
+
project: string;
|
|
51
|
+
search?: string;
|
|
52
|
+
pageToken?: number;
|
|
53
|
+
pageSize?: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface UpdatePickfaceOperationRequest {
|
|
57
|
+
project: string;
|
|
58
|
+
pickfaceId: string;
|
|
59
|
+
updatePickfaceRequest: UpdatePickfaceRequest;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export class PickfacesApi extends runtime.BaseAPI {
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Create a Pickface
|
|
69
|
+
* Create Pickface
|
|
70
|
+
*/
|
|
71
|
+
async createPickfaceRaw(requestParameters: CreatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pickface>> {
|
|
72
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
73
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling createPickface.');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (requestParameters.createPickfaceRequest === null || requestParameters.createPickfaceRequest === undefined) {
|
|
77
|
+
throw new runtime.RequiredError('createPickfaceRequest','Required parameter requestParameters.createPickfaceRequest was null or undefined when calling createPickface.');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const queryParameters: any = {};
|
|
81
|
+
|
|
82
|
+
if (requestParameters.project !== undefined) {
|
|
83
|
+
queryParameters['project'] = requestParameters.project;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
87
|
+
|
|
88
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
89
|
+
|
|
90
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
91
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const response = await this.request({
|
|
95
|
+
path: `/v1/pickfaces`,
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
body: CreatePickfaceRequestToJSON(requestParameters.createPickfaceRequest),
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PickfaceFromJSON(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Create a Pickface
|
|
107
|
+
* Create Pickface
|
|
108
|
+
*/
|
|
109
|
+
async createPickface(requestParameters: CreatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface> {
|
|
110
|
+
const response = await this.createPickfaceRaw(requestParameters, initOverrides);
|
|
111
|
+
return await response.value();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Delete a Pickface
|
|
116
|
+
* Delete Pickface
|
|
117
|
+
*/
|
|
118
|
+
async deletePickfaceRaw(requestParameters: DeletePickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
119
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
120
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deletePickface.');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
124
|
+
throw new runtime.RequiredError('pickfaceId','Required parameter requestParameters.pickfaceId was null or undefined when calling deletePickface.');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const queryParameters: any = {};
|
|
128
|
+
|
|
129
|
+
if (requestParameters.project !== undefined) {
|
|
130
|
+
queryParameters['project'] = requestParameters.project;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
134
|
+
|
|
135
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
136
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const response = await this.request({
|
|
140
|
+
path: `/v1/pickfaces/{pickfaceId}`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
141
|
+
method: 'DELETE',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
}, initOverrides);
|
|
145
|
+
|
|
146
|
+
return new runtime.VoidApiResponse(response);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Delete a Pickface
|
|
151
|
+
* Delete Pickface
|
|
152
|
+
*/
|
|
153
|
+
async deletePickface(requestParameters: DeletePickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
154
|
+
await this.deletePickfaceRaw(requestParameters, initOverrides);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Get a pickface
|
|
159
|
+
* Get pickface
|
|
160
|
+
*/
|
|
161
|
+
async getPickfaceRaw(requestParameters: GetPickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pickface>> {
|
|
162
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
163
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getPickface.');
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
167
|
+
throw new runtime.RequiredError('pickfaceId','Required parameter requestParameters.pickfaceId was null or undefined when calling getPickface.');
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
const queryParameters: any = {};
|
|
171
|
+
|
|
172
|
+
if (requestParameters.project !== undefined) {
|
|
173
|
+
queryParameters['project'] = requestParameters.project;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
177
|
+
|
|
178
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
179
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const response = await this.request({
|
|
183
|
+
path: `/v1/pickfaces/{pickfaceId}`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
184
|
+
method: 'GET',
|
|
185
|
+
headers: headerParameters,
|
|
186
|
+
query: queryParameters,
|
|
187
|
+
}, initOverrides);
|
|
188
|
+
|
|
189
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PickfaceFromJSON(jsonValue));
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Get a pickface
|
|
194
|
+
* Get pickface
|
|
195
|
+
*/
|
|
196
|
+
async getPickface(requestParameters: GetPickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface> {
|
|
197
|
+
const response = await this.getPickfaceRaw(requestParameters, initOverrides);
|
|
198
|
+
return await response.value();
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Lists all pickfaces available paginated into chunks
|
|
203
|
+
* List pickfaces
|
|
204
|
+
*/
|
|
205
|
+
async getPickfacesRaw(requestParameters: GetPickfacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPickfaces200Response>> {
|
|
206
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
207
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getPickfaces.');
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const queryParameters: any = {};
|
|
211
|
+
|
|
212
|
+
if (requestParameters.project !== undefined) {
|
|
213
|
+
queryParameters['project'] = requestParameters.project;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (requestParameters.search !== undefined) {
|
|
217
|
+
queryParameters['search'] = requestParameters.search;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (requestParameters.pageToken !== undefined) {
|
|
221
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (requestParameters.pageSize !== undefined) {
|
|
225
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
229
|
+
|
|
230
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
231
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const response = await this.request({
|
|
235
|
+
path: `/v1/pickfaces`,
|
|
236
|
+
method: 'GET',
|
|
237
|
+
headers: headerParameters,
|
|
238
|
+
query: queryParameters,
|
|
239
|
+
}, initOverrides);
|
|
240
|
+
|
|
241
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPickfaces200ResponseFromJSON(jsonValue));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Lists all pickfaces available paginated into chunks
|
|
246
|
+
* List pickfaces
|
|
247
|
+
*/
|
|
248
|
+
async getPickfaces(requestParameters: GetPickfacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPickfaces200Response> {
|
|
249
|
+
const response = await this.getPickfacesRaw(requestParameters, initOverrides);
|
|
250
|
+
return await response.value();
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Update a Pickface
|
|
255
|
+
* Update Pickface
|
|
256
|
+
*/
|
|
257
|
+
async updatePickfaceRaw(requestParameters: UpdatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pickface>> {
|
|
258
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
259
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling updatePickface.');
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
263
|
+
throw new runtime.RequiredError('pickfaceId','Required parameter requestParameters.pickfaceId was null or undefined when calling updatePickface.');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (requestParameters.updatePickfaceRequest === null || requestParameters.updatePickfaceRequest === undefined) {
|
|
267
|
+
throw new runtime.RequiredError('updatePickfaceRequest','Required parameter requestParameters.updatePickfaceRequest was null or undefined when calling updatePickface.');
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const queryParameters: any = {};
|
|
271
|
+
|
|
272
|
+
if (requestParameters.project !== undefined) {
|
|
273
|
+
queryParameters['project'] = requestParameters.project;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
277
|
+
|
|
278
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
279
|
+
|
|
280
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
281
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const response = await this.request({
|
|
285
|
+
path: `/v1/pickfaces/{pickfaceId}`.replace(`{${"pickfaceId"}}`, encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
286
|
+
method: 'PATCH',
|
|
287
|
+
headers: headerParameters,
|
|
288
|
+
query: queryParameters,
|
|
289
|
+
body: UpdatePickfaceRequestToJSON(requestParameters.updatePickfaceRequest),
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
|
|
292
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PickfaceFromJSON(jsonValue));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Update a Pickface
|
|
297
|
+
* Update Pickface
|
|
298
|
+
*/
|
|
299
|
+
async updatePickface(requestParameters: UpdatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface> {
|
|
300
|
+
const response = await this.updatePickfaceRaw(requestParameters, initOverrides);
|
|
301
|
+
return await response.value();
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
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.1.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
|
+
import type { CreatePickfaceRequestDimensions } from './CreatePickfaceRequestDimensions';
|
|
17
|
+
import {
|
|
18
|
+
CreatePickfaceRequestDimensionsFromJSON,
|
|
19
|
+
CreatePickfaceRequestDimensionsFromJSONTyped,
|
|
20
|
+
CreatePickfaceRequestDimensionsToJSON,
|
|
21
|
+
} from './CreatePickfaceRequestDimensions';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreatePickfaceRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface CreatePickfaceRequest {
|
|
29
|
+
/**
|
|
30
|
+
* The location of the pickface
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreatePickfaceRequest
|
|
33
|
+
*/
|
|
34
|
+
location?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {CreatePickfaceRequestDimensions}
|
|
38
|
+
* @memberof CreatePickfaceRequest
|
|
39
|
+
*/
|
|
40
|
+
dimensions?: CreatePickfaceRequestDimensions;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreatePickfaceRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfCreatePickfaceRequest(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CreatePickfaceRequestFromJSON(json: any): CreatePickfaceRequest {
|
|
53
|
+
return CreatePickfaceRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CreatePickfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePickfaceRequest {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'location': !exists(json, 'location') ? undefined : json['location'],
|
|
63
|
+
'dimensions': !exists(json, 'dimensions') ? undefined : CreatePickfaceRequestDimensionsFromJSON(json['dimensions']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function CreatePickfaceRequestToJSON(value?: CreatePickfaceRequest | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'location': value.location,
|
|
77
|
+
'dimensions': CreatePickfaceRequestDimensionsToJSON(value.dimensions),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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.1.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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreatePickfaceRequestDimensions
|
|
20
|
+
*/
|
|
21
|
+
export interface CreatePickfaceRequestDimensions {
|
|
22
|
+
/**
|
|
23
|
+
* The width of the pickface in millimetres
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CreatePickfaceRequestDimensions
|
|
26
|
+
*/
|
|
27
|
+
width?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The depth of the pickface in millimetres
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CreatePickfaceRequestDimensions
|
|
32
|
+
*/
|
|
33
|
+
depth?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The height of the pickface in millimetres
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CreatePickfaceRequestDimensions
|
|
38
|
+
*/
|
|
39
|
+
height?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CreatePickfaceRequestDimensions interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfCreatePickfaceRequestDimensions(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CreatePickfaceRequestDimensionsFromJSON(json: any): CreatePickfaceRequestDimensions {
|
|
52
|
+
return CreatePickfaceRequestDimensionsFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CreatePickfaceRequestDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePickfaceRequestDimensions {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'width': !exists(json, 'width') ? undefined : json['width'],
|
|
62
|
+
'depth': !exists(json, 'depth') ? undefined : json['depth'],
|
|
63
|
+
'height': !exists(json, 'height') ? undefined : json['height'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function CreatePickfaceRequestDimensionsToJSON(value?: CreatePickfaceRequestDimensions | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'width': value.width,
|
|
77
|
+
'depth': value.depth,
|
|
78
|
+
'height': value.height,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
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.1.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
|
+
import type { Pickface } from './Pickface';
|
|
17
|
+
import {
|
|
18
|
+
PickfaceFromJSON,
|
|
19
|
+
PickfaceFromJSONTyped,
|
|
20
|
+
PickfaceToJSON,
|
|
21
|
+
} from './Pickface';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface GetPickfaces200Response
|
|
27
|
+
*/
|
|
28
|
+
export interface GetPickfaces200Response {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Pickface>}
|
|
32
|
+
* @memberof GetPickfaces200Response
|
|
33
|
+
*/
|
|
34
|
+
pickfaces?: Array<Pickface>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof GetPickfaces200Response
|
|
39
|
+
*/
|
|
40
|
+
nextPageToken?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetPickfaces200Response interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfGetPickfaces200Response(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetPickfaces200ResponseFromJSON(json: any): GetPickfaces200Response {
|
|
53
|
+
return GetPickfaces200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetPickfaces200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPickfaces200Response {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'pickfaces': !exists(json, 'pickfaces') ? undefined : ((json['pickfaces'] as Array<any>).map(PickfaceFromJSON)),
|
|
63
|
+
'nextPageToken': !exists(json, 'nextPageToken') ? undefined : json['nextPageToken'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function GetPickfaces200ResponseToJSON(value?: GetPickfaces200Response | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'pickfaces': value.pickfaces === undefined ? undefined : ((value.pickfaces as Array<any>).map(PickfaceToJSON)),
|
|
77
|
+
'nextPageToken': value.nextPageToken,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -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.1.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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ModelError
|
|
20
|
+
*/
|
|
21
|
+
export interface ModelError {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ModelError
|
|
26
|
+
*/
|
|
27
|
+
code?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ModelError
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ModelError interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfModelError(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "message" in value;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ModelErrorFromJSON(json: any): ModelError {
|
|
47
|
+
return ModelErrorFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError {
|
|
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 ModelErrorToJSON(value?: ModelError | 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
|
+
|