@teemill/pickfaces 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/PickfacesApi.d.ts +33 -2
- package/dist/apis/PickfacesApi.js +144 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +10 -14
- package/dist/models/CreatePickfaceRequest.d.ts +1 -1
- package/dist/models/CreatePickfaceRequest.js +9 -14
- package/dist/models/CreatePickfaceRequestDimensions.d.ts +1 -1
- package/dist/models/CreatePickfaceRequestDimensions.js +11 -16
- package/dist/models/GetPickfaces200Response.d.ts +1 -1
- package/dist/models/GetPickfaces200Response.js +9 -14
- package/dist/models/ListPickfaceLogs200Response.d.ts +38 -0
- package/dist/models/ListPickfaceLogs200Response.js +48 -0
- package/dist/models/MoveStockRequest.d.ts +1 -1
- package/dist/models/MoveStockRequest.js +14 -15
- package/dist/models/Pickface.d.ts +1 -1
- package/dist/models/Pickface.js +23 -28
- package/dist/models/PickfaceContentsInner.d.ts +3 -3
- package/dist/models/PickfaceContentsInner.js +15 -20
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +9 -14
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +4 -4
- package/dist/models/PickfaceContentsInnerMetadata.js +11 -16
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerQuantity.js +11 -16
- package/dist/models/PickfaceLastPicked.d.ts +16 -5
- package/dist/models/PickfaceLastPicked.js +15 -17
- package/dist/models/PickfaceLastRestocked.d.ts +16 -5
- package/dist/models/PickfaceLastRestocked.js +15 -17
- package/dist/models/PickfaceLog.d.ts +16 -5
- package/dist/models/PickfaceLog.js +15 -17
- package/dist/models/UpdatePickfaceRequest.d.ts +2 -2
- package/dist/models/UpdatePickfaceRequest.js +9 -14
- package/dist/models/UpdatePickfaceRequestContents.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequestContents.js +9 -14
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/PickfacesApi.ts +149 -1
- package/src/models/ApiError.ts +10 -15
- package/src/models/CreatePickfaceRequest.ts +10 -15
- package/src/models/CreatePickfaceRequestDimensions.ts +12 -17
- package/src/models/GetPickfaces200Response.ts +10 -15
- package/src/models/ListPickfaceLogs200Response.ts +75 -0
- package/src/models/MoveStockRequest.ts +12 -17
- package/src/models/Pickface.ts +24 -29
- package/src/models/PickfaceContentsInner.ts +18 -23
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +10 -15
- package/src/models/PickfaceContentsInnerMetadata.ts +15 -20
- package/src/models/PickfaceContentsInnerQuantity.ts +12 -17
- package/src/models/PickfaceLastPicked.ts +31 -27
- package/src/models/PickfaceLastRestocked.ts +31 -27
- package/src/models/PickfaceLog.ts +31 -27
- package/src/models/UpdatePickfaceRequest.ts +11 -16
- package/src/models/UpdatePickfaceRequestContents.ts +10 -15
- package/src/models/index.ts +1 -1
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ src/models/ApiError.ts
|
|
|
9
9
|
src/models/CreatePickfaceRequest.ts
|
|
10
10
|
src/models/CreatePickfaceRequestDimensions.ts
|
|
11
11
|
src/models/GetPickfaces200Response.ts
|
|
12
|
+
src/models/ListPickfaceLogs200Response.ts
|
|
12
13
|
src/models/MoveStockRequest.ts
|
|
13
14
|
src/models/Pickface.ts
|
|
14
15
|
src/models/PickfaceContentsInner.ts
|
|
@@ -18,7 +19,6 @@ src/models/PickfaceContentsInnerQuantity.ts
|
|
|
18
19
|
src/models/PickfaceLastPicked.ts
|
|
19
20
|
src/models/PickfaceLastRestocked.ts
|
|
20
21
|
src/models/PickfaceLog.ts
|
|
21
|
-
src/models/PickfaceLogUser.ts
|
|
22
22
|
src/models/UpdatePickfaceRequest.ts
|
|
23
23
|
src/models/UpdatePickfaceRequestContents.ts
|
|
24
24
|
src/models/index.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.4.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/pickfaces@0.
|
|
1
|
+
## @teemill/pickfaces@0.10.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/pickfaces@0.
|
|
39
|
+
npm install @teemill/pickfaces@0.10.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreatePickfaceRequest, GetPickfaces200Response, MoveStockRequest, Pickface, UpdatePickfaceRequest } from '../models/index';
|
|
13
|
+
import type { CreatePickfaceRequest, GetPickfaces200Response, ListPickfaceLogs200Response, MoveStockRequest, Pickface, UpdatePickfaceRequest } from '../models/index';
|
|
14
14
|
export interface CreatePickfaceOperationRequest {
|
|
15
15
|
project: string;
|
|
16
16
|
createPickfaceRequest: CreatePickfaceRequest;
|
|
@@ -33,11 +33,22 @@ export interface GetPickfacesRequest {
|
|
|
33
33
|
pageSize?: number;
|
|
34
34
|
filters?: Array<GetPickfacesFiltersEnum>;
|
|
35
35
|
}
|
|
36
|
+
export interface ListPickfaceLogsRequest {
|
|
37
|
+
project: string;
|
|
38
|
+
pickfaceId: string;
|
|
39
|
+
pageToken?: number;
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
}
|
|
36
42
|
export interface MoveStockOperationRequest {
|
|
37
43
|
project: string;
|
|
38
44
|
pickfaceId: string;
|
|
39
45
|
moveStockRequest: MoveStockRequest;
|
|
40
46
|
}
|
|
47
|
+
export interface PrintPickfaceLabelRequest {
|
|
48
|
+
project: string;
|
|
49
|
+
pickfaceId: string;
|
|
50
|
+
deviceRef: string;
|
|
51
|
+
}
|
|
41
52
|
export interface UpdatePickfaceOperationRequest {
|
|
42
53
|
project: string;
|
|
43
54
|
pickfaceId: string;
|
|
@@ -97,6 +108,16 @@ export declare class PickfacesApi extends runtime.BaseAPI {
|
|
|
97
108
|
* List pickfaces
|
|
98
109
|
*/
|
|
99
110
|
getPickfaces(project: string, optionalParameters?: runtime.OptionalOnly<GetPickfacesRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPickfaces200Response>;
|
|
111
|
+
/**
|
|
112
|
+
* Get a list of pickface logs
|
|
113
|
+
* Get pickface logs
|
|
114
|
+
*/
|
|
115
|
+
listPickfaceLogsRaw(requestParameters: ListPickfaceLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPickfaceLogs200Response>>;
|
|
116
|
+
/**
|
|
117
|
+
* Get a list of pickface logs
|
|
118
|
+
* Get pickface logs
|
|
119
|
+
*/
|
|
120
|
+
listPickfaceLogs(project: string, pickfaceId: string, optionalParameters?: runtime.OptionalOnly<ListPickfaceLogsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPickfaceLogs200Response>;
|
|
100
121
|
/**
|
|
101
122
|
* Move stock from one pickface to another in a single transaction
|
|
102
123
|
* Move stock
|
|
@@ -107,6 +128,16 @@ export declare class PickfacesApi extends runtime.BaseAPI {
|
|
|
107
128
|
* Move stock
|
|
108
129
|
*/
|
|
109
130
|
moveStock(project: string, pickfaceId: string, moveStockRequest: MoveStockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface>;
|
|
131
|
+
/**
|
|
132
|
+
* Print a pickface label
|
|
133
|
+
* Print pickface label
|
|
134
|
+
*/
|
|
135
|
+
printPickfaceLabelRaw(requestParameters: PrintPickfaceLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
136
|
+
/**
|
|
137
|
+
* Print a pickface label
|
|
138
|
+
* Print pickface label
|
|
139
|
+
*/
|
|
140
|
+
printPickfaceLabel(project: string, pickfaceId: string, deviceRef: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
110
141
|
/**
|
|
111
142
|
* Update a Pickface
|
|
112
143
|
* Update Pickface
|
|
@@ -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
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -426,6 +426,78 @@ var PickfacesApi = /** @class */ (function (_super) {
|
|
|
426
426
|
});
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
|
+
/**
|
|
430
|
+
* Get a list of pickface logs
|
|
431
|
+
* Get pickface logs
|
|
432
|
+
*/
|
|
433
|
+
PickfacesApi.prototype.listPickfaceLogsRaw = function (requestParameters, initOverrides) {
|
|
434
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
435
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
436
|
+
return __generator(this, function (_c) {
|
|
437
|
+
switch (_c.label) {
|
|
438
|
+
case 0:
|
|
439
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
440
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling listPickfaceLogs.');
|
|
441
|
+
}
|
|
442
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
443
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling listPickfaceLogs.');
|
|
444
|
+
}
|
|
445
|
+
queryParameters = {};
|
|
446
|
+
if (requestParameters.project !== undefined) {
|
|
447
|
+
queryParameters['project'] = requestParameters.project;
|
|
448
|
+
}
|
|
449
|
+
if (requestParameters.pageToken !== undefined) {
|
|
450
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
451
|
+
}
|
|
452
|
+
if (requestParameters.pageSize !== undefined) {
|
|
453
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
454
|
+
}
|
|
455
|
+
headerParameters = {};
|
|
456
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
457
|
+
// oauth required
|
|
458
|
+
_a = headerParameters;
|
|
459
|
+
_b = "Authorization";
|
|
460
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
461
|
+
case 1:
|
|
462
|
+
// oauth required
|
|
463
|
+
_a[_b] = _c.sent();
|
|
464
|
+
_c.label = 2;
|
|
465
|
+
case 2:
|
|
466
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
467
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
468
|
+
}
|
|
469
|
+
return [4 /*yield*/, this.request({
|
|
470
|
+
path: "/v1/pickfaces/{pickfaceId}/logs".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
471
|
+
method: 'GET',
|
|
472
|
+
headers: headerParameters,
|
|
473
|
+
query: queryParameters,
|
|
474
|
+
}, initOverrides)];
|
|
475
|
+
case 3:
|
|
476
|
+
response = _c.sent();
|
|
477
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListPickfaceLogs200ResponseFromJSON)(jsonValue); })];
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
});
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Get a list of pickface logs
|
|
484
|
+
* Get pickface logs
|
|
485
|
+
*/
|
|
486
|
+
PickfacesApi.prototype.listPickfaceLogs = function (project, pickfaceId, optionalParameters, initOverrides) {
|
|
487
|
+
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
488
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
489
|
+
var response;
|
|
490
|
+
return __generator(this, function (_a) {
|
|
491
|
+
switch (_a.label) {
|
|
492
|
+
case 0: return [4 /*yield*/, this.listPickfaceLogsRaw(__assign({ project: project, pickfaceId: pickfaceId }, optionalParameters), initOverrides)];
|
|
493
|
+
case 1:
|
|
494
|
+
response = _a.sent();
|
|
495
|
+
return [4 /*yield*/, response.value()];
|
|
496
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
};
|
|
429
501
|
/**
|
|
430
502
|
* Move stock from one pickface to another in a single transaction
|
|
431
503
|
* Move stock
|
|
@@ -498,6 +570,77 @@ var PickfacesApi = /** @class */ (function (_super) {
|
|
|
498
570
|
});
|
|
499
571
|
});
|
|
500
572
|
};
|
|
573
|
+
/**
|
|
574
|
+
* Print a pickface label
|
|
575
|
+
* Print pickface label
|
|
576
|
+
*/
|
|
577
|
+
PickfacesApi.prototype.printPickfaceLabelRaw = function (requestParameters, initOverrides) {
|
|
578
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
579
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
580
|
+
return __generator(this, function (_c) {
|
|
581
|
+
switch (_c.label) {
|
|
582
|
+
case 0:
|
|
583
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
584
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling printPickfaceLabel.');
|
|
585
|
+
}
|
|
586
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
587
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling printPickfaceLabel.');
|
|
588
|
+
}
|
|
589
|
+
if (requestParameters.deviceRef === null || requestParameters.deviceRef === undefined) {
|
|
590
|
+
throw new runtime.RequiredError('deviceRef', 'Required parameter requestParameters.deviceRef was null or undefined when calling printPickfaceLabel.');
|
|
591
|
+
}
|
|
592
|
+
queryParameters = {};
|
|
593
|
+
if (requestParameters.project !== undefined) {
|
|
594
|
+
queryParameters['project'] = requestParameters.project;
|
|
595
|
+
}
|
|
596
|
+
if (requestParameters.deviceRef !== undefined) {
|
|
597
|
+
queryParameters['deviceRef'] = requestParameters.deviceRef;
|
|
598
|
+
}
|
|
599
|
+
headerParameters = {};
|
|
600
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
601
|
+
// oauth required
|
|
602
|
+
_a = headerParameters;
|
|
603
|
+
_b = "Authorization";
|
|
604
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
605
|
+
case 1:
|
|
606
|
+
// oauth required
|
|
607
|
+
_a[_b] = _c.sent();
|
|
608
|
+
_c.label = 2;
|
|
609
|
+
case 2:
|
|
610
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
611
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
612
|
+
}
|
|
613
|
+
return [4 /*yield*/, this.request({
|
|
614
|
+
path: "/v1/pickfaces/{pickfaceId}/print".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
615
|
+
method: 'GET',
|
|
616
|
+
headers: headerParameters,
|
|
617
|
+
query: queryParameters,
|
|
618
|
+
}, initOverrides)];
|
|
619
|
+
case 3:
|
|
620
|
+
response = _c.sent();
|
|
621
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
});
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* Print a pickface label
|
|
628
|
+
* Print pickface label
|
|
629
|
+
*/
|
|
630
|
+
PickfacesApi.prototype.printPickfaceLabel = function (project, pickfaceId, deviceRef, initOverrides) {
|
|
631
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
632
|
+
return __generator(this, function (_a) {
|
|
633
|
+
switch (_a.label) {
|
|
634
|
+
case 0: return [4 /*yield*/, this.printPickfaceLabelRaw({
|
|
635
|
+
project: project, pickfaceId: pickfaceId, deviceRef: deviceRef,
|
|
636
|
+
}, initOverrides)];
|
|
637
|
+
case 1:
|
|
638
|
+
_a.sent();
|
|
639
|
+
return [2 /*return*/];
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
});
|
|
643
|
+
};
|
|
501
644
|
/**
|
|
502
645
|
* Update a Pickface
|
|
503
646
|
* Update Pickface
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 0.10.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/models/ApiError.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
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the ApiError interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfApiError(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
21
|
+
if (!('message' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
25
24
|
}
|
|
26
25
|
exports.instanceOfApiError = instanceOfApiError;
|
|
27
26
|
function ApiErrorFromJSON(json) {
|
|
@@ -29,25 +28,22 @@ function ApiErrorFromJSON(json) {
|
|
|
29
28
|
}
|
|
30
29
|
exports.ApiErrorFromJSON = ApiErrorFromJSON;
|
|
31
30
|
function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
33
32
|
return json;
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
|
-
'code':
|
|
35
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
37
36
|
'message': json['message'],
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
|
|
41
40
|
function ApiErrorToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
47
43
|
}
|
|
48
44
|
return {
|
|
49
|
-
'code': value
|
|
50
|
-
'message': value
|
|
45
|
+
'code': value['code'],
|
|
46
|
+
'message': value['message'],
|
|
51
47
|
};
|
|
52
48
|
}
|
|
53
49
|
exports.ApiErrorToJSON = ApiErrorToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,14 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreatePickfaceRequestToJSON = exports.CreatePickfaceRequestFromJSONTyped = exports.CreatePickfaceRequestFromJSON = exports.instanceOfCreatePickfaceRequest = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var CreatePickfaceRequestDimensions_1 = require("./CreatePickfaceRequestDimensions");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the CreatePickfaceRequest interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfCreatePickfaceRequest(value) {
|
|
23
|
-
|
|
24
|
-
return isInstance;
|
|
22
|
+
return true;
|
|
25
23
|
}
|
|
26
24
|
exports.instanceOfCreatePickfaceRequest = instanceOfCreatePickfaceRequest;
|
|
27
25
|
function CreatePickfaceRequestFromJSON(json) {
|
|
@@ -29,25 +27,22 @@ function CreatePickfaceRequestFromJSON(json) {
|
|
|
29
27
|
}
|
|
30
28
|
exports.CreatePickfaceRequestFromJSON = CreatePickfaceRequestFromJSON;
|
|
31
29
|
function CreatePickfaceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
30
|
+
if (json == null) {
|
|
33
31
|
return json;
|
|
34
32
|
}
|
|
35
33
|
return {
|
|
36
|
-
'location':
|
|
37
|
-
'dimensions':
|
|
34
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
35
|
+
'dimensions': json['dimensions'] == null ? undefined : (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsFromJSON)(json['dimensions']),
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
38
|
exports.CreatePickfaceRequestFromJSONTyped = CreatePickfaceRequestFromJSONTyped;
|
|
41
39
|
function CreatePickfaceRequestToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
47
42
|
}
|
|
48
43
|
return {
|
|
49
|
-
'location': value
|
|
50
|
-
'dimensions': (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsToJSON)(value
|
|
44
|
+
'location': value['location'],
|
|
45
|
+
'dimensions': (0, CreatePickfaceRequestDimensions_1.CreatePickfaceRequestDimensionsToJSON)(value['dimensions']),
|
|
51
46
|
};
|
|
52
47
|
}
|
|
53
48
|
exports.CreatePickfaceRequestToJSON = CreatePickfaceRequestToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreatePickfaceRequestDimensionsToJSON = exports.CreatePickfaceRequestDimensionsFromJSONTyped = exports.CreatePickfaceRequestDimensionsFromJSON = exports.instanceOfCreatePickfaceRequestDimensions = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the CreatePickfaceRequestDimensions interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfCreatePickfaceRequestDimensions(value) {
|
|
22
|
-
|
|
23
|
-
return isInstance;
|
|
21
|
+
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfCreatePickfaceRequestDimensions = instanceOfCreatePickfaceRequestDimensions;
|
|
26
24
|
function CreatePickfaceRequestDimensionsFromJSON(json) {
|
|
@@ -28,27 +26,24 @@ function CreatePickfaceRequestDimensionsFromJSON(json) {
|
|
|
28
26
|
}
|
|
29
27
|
exports.CreatePickfaceRequestDimensionsFromJSON = CreatePickfaceRequestDimensionsFromJSON;
|
|
30
28
|
function CreatePickfaceRequestDimensionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
29
|
+
if (json == null) {
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'width':
|
|
36
|
-
'depth':
|
|
37
|
-
'height':
|
|
33
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
34
|
+
'depth': json['depth'] == null ? undefined : json['depth'],
|
|
35
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
38
|
exports.CreatePickfaceRequestDimensionsFromJSONTyped = CreatePickfaceRequestDimensionsFromJSONTyped;
|
|
41
39
|
function CreatePickfaceRequestDimensionsToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
47
42
|
}
|
|
48
43
|
return {
|
|
49
|
-
'width': value
|
|
50
|
-
'depth': value
|
|
51
|
-
'height': value
|
|
44
|
+
'width': value['width'],
|
|
45
|
+
'depth': value['depth'],
|
|
46
|
+
'height': value['height'],
|
|
52
47
|
};
|
|
53
48
|
}
|
|
54
49
|
exports.CreatePickfaceRequestDimensionsToJSON = CreatePickfaceRequestDimensionsToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,14 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GetPickfaces200ResponseToJSON = exports.GetPickfaces200ResponseFromJSONTyped = exports.GetPickfaces200ResponseFromJSON = exports.instanceOfGetPickfaces200Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var Pickface_1 = require("./Pickface");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the GetPickfaces200Response interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfGetPickfaces200Response(value) {
|
|
23
|
-
|
|
24
|
-
return isInstance;
|
|
22
|
+
return true;
|
|
25
23
|
}
|
|
26
24
|
exports.instanceOfGetPickfaces200Response = instanceOfGetPickfaces200Response;
|
|
27
25
|
function GetPickfaces200ResponseFromJSON(json) {
|
|
@@ -29,25 +27,22 @@ function GetPickfaces200ResponseFromJSON(json) {
|
|
|
29
27
|
}
|
|
30
28
|
exports.GetPickfaces200ResponseFromJSON = GetPickfaces200ResponseFromJSON;
|
|
31
29
|
function GetPickfaces200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
30
|
+
if (json == null) {
|
|
33
31
|
return json;
|
|
34
32
|
}
|
|
35
33
|
return {
|
|
36
|
-
'pickfaces':
|
|
37
|
-
'nextPageToken':
|
|
34
|
+
'pickfaces': json['pickfaces'] == null ? undefined : (json['pickfaces'].map(Pickface_1.PickfaceFromJSON)),
|
|
35
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
38
|
exports.GetPickfaces200ResponseFromJSONTyped = GetPickfaces200ResponseFromJSONTyped;
|
|
41
39
|
function GetPickfaces200ResponseToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
47
42
|
}
|
|
48
43
|
return {
|
|
49
|
-
'pickfaces': value
|
|
50
|
-
'nextPageToken': value
|
|
44
|
+
'pickfaces': value['pickfaces'] == null ? undefined : (value['pickfaces'].map(Pickface_1.PickfaceToJSON)),
|
|
45
|
+
'nextPageToken': value['nextPageToken'],
|
|
51
46
|
};
|
|
52
47
|
}
|
|
53
48
|
exports.GetPickfaces200ResponseToJSON = GetPickfaces200ResponseToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.10.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
|
+
import type { PickfaceLog } from './PickfaceLog';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListPickfaceLogs200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListPickfaceLogs200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PickfaceLog>}
|
|
22
|
+
* @memberof ListPickfaceLogs200Response
|
|
23
|
+
*/
|
|
24
|
+
logs?: Array<PickfaceLog>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListPickfaceLogs200Response
|
|
29
|
+
*/
|
|
30
|
+
nextPageToken?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ListPickfaceLogs200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfListPickfaceLogs200Response(value: object): boolean;
|
|
36
|
+
export declare function ListPickfaceLogs200ResponseFromJSON(json: any): ListPickfaceLogs200Response;
|
|
37
|
+
export declare function ListPickfaceLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPickfaceLogs200Response;
|
|
38
|
+
export declare function ListPickfaceLogs200ResponseToJSON(value?: ListPickfaceLogs200Response | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.10.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.ListPickfaceLogs200ResponseToJSON = exports.ListPickfaceLogs200ResponseFromJSONTyped = exports.ListPickfaceLogs200ResponseFromJSON = exports.instanceOfListPickfaceLogs200Response = void 0;
|
|
17
|
+
var PickfaceLog_1 = require("./PickfaceLog");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ListPickfaceLogs200Response interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfListPickfaceLogs200Response(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfListPickfaceLogs200Response = instanceOfListPickfaceLogs200Response;
|
|
25
|
+
function ListPickfaceLogs200ResponseFromJSON(json) {
|
|
26
|
+
return ListPickfaceLogs200ResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.ListPickfaceLogs200ResponseFromJSON = ListPickfaceLogs200ResponseFromJSON;
|
|
29
|
+
function ListPickfaceLogs200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'logs': json['logs'] == null ? undefined : (json['logs'].map(PickfaceLog_1.PickfaceLogFromJSON)),
|
|
35
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ListPickfaceLogs200ResponseFromJSONTyped = ListPickfaceLogs200ResponseFromJSONTyped;
|
|
39
|
+
function ListPickfaceLogs200ResponseToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'logs': value['logs'] == null ? undefined : (value['logs'].map(PickfaceLog_1.PickfaceLogToJSON)),
|
|
45
|
+
'nextPageToken': value['nextPageToken'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.ListPickfaceLogs200ResponseToJSON = ListPickfaceLogs200ResponseToJSON;
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|