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