@teemill/pickfaces 0.12.0 → 0.12.2
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 +4 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/PickfacesApi.d.ts +9 -9
- package/dist/apis/PickfacesApi.js +428 -729
- package/dist/esm/apis/PickfacesApi.d.ts +189 -0
- package/dist/esm/apis/PickfacesApi.js +565 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiError.d.ts +37 -0
- package/dist/esm/models/ApiError.js +42 -0
- package/dist/esm/models/ContainerModel.d.ts +61 -0
- package/dist/esm/models/ContainerModel.js +54 -0
- package/dist/esm/models/ContainerModels.d.ts +32 -0
- package/dist/esm/models/ContainerModels.js +39 -0
- package/dist/esm/models/CreatePickfaceRequest.d.ts +37 -0
- package/dist/esm/models/CreatePickfaceRequest.js +40 -0
- package/dist/esm/models/CreatePickfaceRequestDimensions.d.ts +43 -0
- package/dist/esm/models/CreatePickfaceRequestDimensions.js +42 -0
- package/dist/esm/models/GetPickfaces200Response.d.ts +38 -0
- package/dist/esm/models/GetPickfaces200Response.js +41 -0
- package/dist/esm/models/ListPickfaceLogs200Response.d.ts +38 -0
- package/dist/esm/models/ListPickfaceLogs200Response.js +41 -0
- package/dist/esm/models/ModelError.d.ts +37 -0
- package/dist/esm/models/ModelError.js +46 -0
- package/dist/esm/models/MoveStockRequest.d.ts +43 -0
- package/dist/esm/models/MoveStockRequest.js +48 -0
- package/dist/esm/models/Pickface.d.ts +83 -0
- package/dist/esm/models/Pickface.js +58 -0
- package/dist/esm/models/PickfaceContainerModel.d.ts +37 -0
- package/dist/esm/models/PickfaceContainerModel.js +40 -0
- package/dist/esm/models/PickfaceContentsInner.d.ts +58 -0
- package/dist/esm/models/PickfaceContentsInner.js +49 -0
- package/dist/esm/models/PickfaceContentsInnerApplicationsInner.d.ts +37 -0
- package/dist/esm/models/PickfaceContentsInnerApplicationsInner.js +40 -0
- package/dist/esm/models/PickfaceContentsInnerMetadata.d.ts +43 -0
- package/dist/esm/models/PickfaceContentsInnerMetadata.js +42 -0
- package/dist/esm/models/PickfaceContentsInnerQuantity.d.ts +43 -0
- package/dist/esm/models/PickfaceContentsInnerQuantity.js +42 -0
- package/dist/esm/models/PickfaceLastPicked.d.ts +55 -0
- package/dist/esm/models/PickfaceLastPicked.js +46 -0
- package/dist/esm/models/PickfaceLastRestocked.d.ts +55 -0
- package/dist/esm/models/PickfaceLastRestocked.js +46 -0
- package/dist/esm/models/PickfaceLog.d.ts +55 -0
- package/dist/esm/models/PickfaceLog.js +46 -0
- package/dist/esm/models/PickfaceLogUser.d.ts +37 -0
- package/dist/esm/models/PickfaceLogUser.js +45 -0
- package/dist/esm/models/PickfaceModel.d.ts +37 -0
- package/dist/esm/models/PickfaceModel.js +40 -0
- package/dist/esm/models/PickfaceModels.d.ts +32 -0
- package/dist/esm/models/PickfaceModels.js +39 -0
- package/dist/esm/models/UpdatePickfaceRequest.d.ts +44 -0
- package/dist/esm/models/UpdatePickfaceRequest.js +43 -0
- package/dist/esm/models/UpdatePickfaceRequestContents.d.ts +37 -0
- package/dist/esm/models/UpdatePickfaceRequestContents.js +40 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInner.d.ts +38 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInner.js +45 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +45 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantity.js +51 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.d.ts +45 -0
- package/dist/esm/models/UpdatePickfaceRequestContentsInnerQuantityOneOf.js +51 -0
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/esm/runtime.d.ts +187 -0
- package/dist/esm/runtime.js +333 -0
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/ContainerModel.d.ts +61 -0
- package/dist/models/ContainerModel.js +61 -0
- package/dist/models/ContainerModels.d.ts +32 -0
- package/dist/models/ContainerModels.js +46 -0
- package/dist/models/CreatePickfaceRequest.d.ts +2 -2
- package/dist/models/CreatePickfaceRequest.js +3 -3
- package/dist/models/GetPickfaces200Response.d.ts +1 -1
- package/dist/models/GetPickfaces200Response.js +2 -2
- package/dist/models/ListPickfaceLogs200Response.d.ts +1 -1
- package/dist/models/ListPickfaceLogs200Response.js +2 -2
- package/dist/models/ModelError.js +2 -2
- package/dist/models/MoveStockRequest.d.ts +1 -1
- package/dist/models/MoveStockRequest.js +1 -1
- package/dist/models/Pickface.d.ts +4 -4
- package/dist/models/Pickface.js +7 -7
- package/dist/models/PickfaceContainerModel.d.ts +37 -0
- package/dist/models/PickfaceContainerModel.js +47 -0
- package/dist/models/PickfaceContentsInner.d.ts +1 -1
- package/dist/models/PickfaceContentsInner.js +4 -4
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +1 -1
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerMetadata.js +1 -1
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +1 -1
- package/dist/models/PickfaceContentsInnerQuantity.js +1 -1
- package/dist/models/PickfaceLastPicked.d.ts +1 -1
- package/dist/models/PickfaceLastPicked.js +1 -1
- package/dist/models/PickfaceLastRestocked.d.ts +1 -1
- package/dist/models/PickfaceLastRestocked.js +1 -1
- package/dist/models/PickfaceLog.d.ts +1 -1
- package/dist/models/PickfaceLog.js +1 -1
- package/dist/models/PickfaceLogUser.js +2 -2
- package/dist/models/PickfaceModel.d.ts +1 -1
- package/dist/models/PickfaceModel.js +1 -1
- package/dist/models/PickfaceModels.d.ts +1 -1
- package/dist/models/PickfaceModels.js +2 -2
- package/dist/models/UpdatePickfaceRequest.d.ts +2 -2
- package/dist/models/UpdatePickfaceRequest.js +4 -4
- package/dist/models/UpdatePickfaceRequestContentsInner.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequestContentsInner.js +2 -2
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.d.ts +1 -1
- package/dist/models/UpdatePickfaceRequestContentsInnerQuantity.js +1 -1
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +223 -439
- package/package.json +4 -2
- package/src/apis/PickfacesApi.ts +16 -16
- package/src/models/ApiError.ts +1 -1
- package/src/models/ContainerModel.ts +103 -0
- package/src/models/ContainerModels.ts +67 -0
- package/src/models/CreatePickfaceRequest.ts +4 -4
- package/src/models/GetPickfaces200Response.ts +1 -1
- package/src/models/ListPickfaceLogs200Response.ts +1 -1
- package/src/models/MoveStockRequest.ts +1 -1
- package/src/models/Pickface.ts +11 -11
- package/src/models/PickfaceContainerModel.ts +68 -0
- package/src/models/PickfaceContentsInner.ts +1 -1
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +1 -1
- package/src/models/PickfaceContentsInnerMetadata.ts +1 -1
- package/src/models/PickfaceContentsInnerQuantity.ts +1 -1
- package/src/models/PickfaceLastPicked.ts +1 -1
- package/src/models/PickfaceLastRestocked.ts +1 -1
- package/src/models/PickfaceLog.ts +1 -1
- package/src/models/PickfaceModel.ts +1 -1
- package/src/models/PickfaceModels.ts +1 -1
- package/src/models/UpdatePickfaceRequest.ts +4 -4
- package/src/models/UpdatePickfaceRequestContentsInner.ts +1 -1
- package/src/models/UpdatePickfaceRequestContentsInnerQuantity.ts +1 -1
- package/src/models/index.ts +3 -2
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -2
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Pickfaces API
|
|
5
|
+
* Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.12.2
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export const BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
|
|
24
|
+
export class Configuration {
|
|
25
|
+
constructor(configuration = {}) {
|
|
26
|
+
this.configuration = configuration;
|
|
27
|
+
}
|
|
28
|
+
set config(configuration) {
|
|
29
|
+
this.configuration = configuration;
|
|
30
|
+
}
|
|
31
|
+
get basePath() {
|
|
32
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
33
|
+
}
|
|
34
|
+
get fetchApi() {
|
|
35
|
+
return this.configuration.fetchApi;
|
|
36
|
+
}
|
|
37
|
+
get middleware() {
|
|
38
|
+
return this.configuration.middleware || [];
|
|
39
|
+
}
|
|
40
|
+
get queryParamsStringify() {
|
|
41
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
42
|
+
}
|
|
43
|
+
get username() {
|
|
44
|
+
return this.configuration.username;
|
|
45
|
+
}
|
|
46
|
+
get password() {
|
|
47
|
+
return this.configuration.password;
|
|
48
|
+
}
|
|
49
|
+
get apiKey() {
|
|
50
|
+
const apiKey = this.configuration.apiKey;
|
|
51
|
+
if (apiKey) {
|
|
52
|
+
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
get accessToken() {
|
|
57
|
+
const accessToken = this.configuration.accessToken;
|
|
58
|
+
if (accessToken) {
|
|
59
|
+
return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
|
|
60
|
+
}
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
get headers() {
|
|
64
|
+
return this.configuration.headers;
|
|
65
|
+
}
|
|
66
|
+
get credentials() {
|
|
67
|
+
return this.configuration.credentials;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export const DefaultConfig = new Configuration();
|
|
71
|
+
/**
|
|
72
|
+
* This is the base class for all generated API classes.
|
|
73
|
+
*/
|
|
74
|
+
export class BaseAPI {
|
|
75
|
+
constructor(configuration = DefaultConfig) {
|
|
76
|
+
this.configuration = configuration;
|
|
77
|
+
this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
let fetchParams = { url, init };
|
|
79
|
+
for (const middleware of this.middleware) {
|
|
80
|
+
if (middleware.pre) {
|
|
81
|
+
fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
let response = undefined;
|
|
85
|
+
try {
|
|
86
|
+
response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
for (const middleware of this.middleware) {
|
|
90
|
+
if (middleware.onError) {
|
|
91
|
+
response = (yield middleware.onError({
|
|
92
|
+
fetch: this.fetchApi,
|
|
93
|
+
url: fetchParams.url,
|
|
94
|
+
init: fetchParams.init,
|
|
95
|
+
error: e,
|
|
96
|
+
response: response ? response.clone() : undefined,
|
|
97
|
+
})) || response;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (response === undefined) {
|
|
101
|
+
if (e instanceof Error) {
|
|
102
|
+
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
throw e;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
for (const middleware of this.middleware) {
|
|
110
|
+
if (middleware.post) {
|
|
111
|
+
response = (yield middleware.post({
|
|
112
|
+
fetch: this.fetchApi,
|
|
113
|
+
url: fetchParams.url,
|
|
114
|
+
init: fetchParams.init,
|
|
115
|
+
response: response.clone(),
|
|
116
|
+
})) || response;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return response;
|
|
120
|
+
});
|
|
121
|
+
this.middleware = configuration.middleware;
|
|
122
|
+
}
|
|
123
|
+
isResponseError(error) {
|
|
124
|
+
return error instanceof Error && error.name === 'ResponseError';
|
|
125
|
+
}
|
|
126
|
+
withMiddleware(...middlewares) {
|
|
127
|
+
const next = this.clone();
|
|
128
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
129
|
+
return next;
|
|
130
|
+
}
|
|
131
|
+
withPreMiddleware(...preMiddlewares) {
|
|
132
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
133
|
+
return this.withMiddleware(...middlewares);
|
|
134
|
+
}
|
|
135
|
+
withPostMiddleware(...postMiddlewares) {
|
|
136
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
137
|
+
return this.withMiddleware(...middlewares);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Check if the given MIME is a JSON MIME.
|
|
141
|
+
* JSON MIME examples:
|
|
142
|
+
* application/json
|
|
143
|
+
* application/json; charset=UTF8
|
|
144
|
+
* APPLICATION/JSON
|
|
145
|
+
* application/vnd.company+json
|
|
146
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
147
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
148
|
+
*/
|
|
149
|
+
isJsonMime(mime) {
|
|
150
|
+
if (!mime) {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
154
|
+
}
|
|
155
|
+
request(context, initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const { url, init } = yield this.createFetchParams(context, initOverrides);
|
|
158
|
+
const response = yield this.fetchApi(url, init);
|
|
159
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
160
|
+
return response;
|
|
161
|
+
}
|
|
162
|
+
throw new ResponseError(response, 'Response returned an error code');
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
createFetchParams(context, initOverrides) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
let url = this.configuration.basePath + context.path;
|
|
168
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
169
|
+
// only add the querystring to the URL if there are query parameters.
|
|
170
|
+
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
171
|
+
// do not handle correctly sometimes.
|
|
172
|
+
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
173
|
+
}
|
|
174
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
175
|
+
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
176
|
+
const initOverrideFn = typeof initOverrides === "function"
|
|
177
|
+
? initOverrides
|
|
178
|
+
: () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
|
|
179
|
+
const initParams = {
|
|
180
|
+
method: context.method,
|
|
181
|
+
headers,
|
|
182
|
+
body: context.body,
|
|
183
|
+
credentials: this.configuration.credentials,
|
|
184
|
+
};
|
|
185
|
+
const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
|
|
186
|
+
init: initParams,
|
|
187
|
+
context,
|
|
188
|
+
})));
|
|
189
|
+
let body;
|
|
190
|
+
if (isFormData(overriddenInit.body)
|
|
191
|
+
|| (overriddenInit.body instanceof URLSearchParams)
|
|
192
|
+
|| isBlob(overriddenInit.body)) {
|
|
193
|
+
body = overriddenInit.body;
|
|
194
|
+
}
|
|
195
|
+
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
196
|
+
body = JSON.stringify(overriddenInit.body);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
body = overriddenInit.body;
|
|
200
|
+
}
|
|
201
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
202
|
+
return { url, init };
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
207
|
+
* and then shallow cloning data members.
|
|
208
|
+
*/
|
|
209
|
+
clone() {
|
|
210
|
+
const constructor = this.constructor;
|
|
211
|
+
const next = new constructor(this.configuration);
|
|
212
|
+
next.middleware = this.middleware.slice();
|
|
213
|
+
return next;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
217
|
+
;
|
|
218
|
+
function isBlob(value) {
|
|
219
|
+
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
220
|
+
}
|
|
221
|
+
function isFormData(value) {
|
|
222
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
223
|
+
}
|
|
224
|
+
export class ResponseError extends Error {
|
|
225
|
+
constructor(response, msg) {
|
|
226
|
+
super(msg);
|
|
227
|
+
this.response = response;
|
|
228
|
+
this.name = "ResponseError";
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export class FetchError extends Error {
|
|
232
|
+
constructor(cause, msg) {
|
|
233
|
+
super(msg);
|
|
234
|
+
this.cause = cause;
|
|
235
|
+
this.name = "FetchError";
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
export class RequiredError extends Error {
|
|
239
|
+
constructor(field, msg) {
|
|
240
|
+
super(msg);
|
|
241
|
+
this.field = field;
|
|
242
|
+
this.name = "RequiredError";
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
export const COLLECTION_FORMATS = {
|
|
246
|
+
csv: ",",
|
|
247
|
+
ssv: " ",
|
|
248
|
+
tsv: "\t",
|
|
249
|
+
pipes: "|",
|
|
250
|
+
};
|
|
251
|
+
export function exists(json, key) {
|
|
252
|
+
const value = json[key];
|
|
253
|
+
return value !== null && value !== undefined;
|
|
254
|
+
}
|
|
255
|
+
export function querystring(params, prefix = '') {
|
|
256
|
+
return Object.keys(params)
|
|
257
|
+
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
258
|
+
.filter(part => part.length > 0)
|
|
259
|
+
.join('&');
|
|
260
|
+
}
|
|
261
|
+
function querystringSingleKey(key, value, keyPrefix = '') {
|
|
262
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
263
|
+
if (value instanceof Array) {
|
|
264
|
+
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
265
|
+
.join(`&${encodeURIComponent(fullKey)}[]=`);
|
|
266
|
+
return `${encodeURIComponent(fullKey)}[]=${multiValue}`;
|
|
267
|
+
}
|
|
268
|
+
if (value instanceof Set) {
|
|
269
|
+
const valueAsArray = Array.from(value);
|
|
270
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
271
|
+
}
|
|
272
|
+
if (value instanceof Date) {
|
|
273
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
274
|
+
}
|
|
275
|
+
if (value instanceof Object) {
|
|
276
|
+
return querystring(value, fullKey);
|
|
277
|
+
}
|
|
278
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
279
|
+
}
|
|
280
|
+
export function mapValues(data, fn) {
|
|
281
|
+
return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
|
|
282
|
+
}
|
|
283
|
+
export function canConsumeForm(consumes) {
|
|
284
|
+
for (const consume of consumes) {
|
|
285
|
+
if ('multipart/form-data' === consume.contentType) {
|
|
286
|
+
return true;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return false;
|
|
290
|
+
}
|
|
291
|
+
export class JSONApiResponse {
|
|
292
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
293
|
+
this.raw = raw;
|
|
294
|
+
this.transformer = transformer;
|
|
295
|
+
}
|
|
296
|
+
value() {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
return this.transformer(yield this.raw.json());
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
export class VoidApiResponse {
|
|
303
|
+
constructor(raw) {
|
|
304
|
+
this.raw = raw;
|
|
305
|
+
}
|
|
306
|
+
value() {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
return undefined;
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
export class BlobApiResponse {
|
|
313
|
+
constructor(raw) {
|
|
314
|
+
this.raw = raw;
|
|
315
|
+
}
|
|
316
|
+
value() {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
return yield this.raw.blob();
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
;
|
|
322
|
+
}
|
|
323
|
+
export class TextApiResponse {
|
|
324
|
+
constructor(raw) {
|
|
325
|
+
this.raw = raw;
|
|
326
|
+
}
|
|
327
|
+
value() {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
return yield this.raw.text();
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
;
|
|
333
|
+
}
|
|
@@ -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.12.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.2
|
|
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.12.
|
|
8
|
+
* The version of the OpenAPI document: 0.12.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,61 @@
|
|
|
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.12.2
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContainerModel
|
|
16
|
+
*/
|
|
17
|
+
export interface ContainerModel {
|
|
18
|
+
/**
|
|
19
|
+
* Unique object identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContainerModel
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* A reference to the resource location
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContainerModel
|
|
28
|
+
*/
|
|
29
|
+
ref: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ContainerModel
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* The width of the model in millimetres
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ContainerModel
|
|
40
|
+
*/
|
|
41
|
+
width?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The depth of the model in millimetres
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ContainerModel
|
|
46
|
+
*/
|
|
47
|
+
depth?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The height of the model in millimetres
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ContainerModel
|
|
52
|
+
*/
|
|
53
|
+
height?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ContainerModel interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfContainerModel(value: object): boolean;
|
|
59
|
+
export declare function ContainerModelFromJSON(json: any): ContainerModel;
|
|
60
|
+
export declare function ContainerModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerModel;
|
|
61
|
+
export declare function ContainerModelToJSON(value?: ContainerModel | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.12.2
|
|
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.ContainerModelToJSON = exports.ContainerModelFromJSONTyped = exports.ContainerModelFromJSON = exports.instanceOfContainerModel = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ContainerModel interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfContainerModel(value) {
|
|
21
|
+
if (!('id' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('ref' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('name' in value))
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfContainerModel = instanceOfContainerModel;
|
|
30
|
+
function ContainerModelFromJSON(json) {
|
|
31
|
+
return ContainerModelFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ContainerModelFromJSON = ContainerModelFromJSON;
|
|
34
|
+
function ContainerModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'ref': json['ref'],
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
43
|
+
'depth': json['depth'] == null ? undefined : json['depth'],
|
|
44
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ContainerModelFromJSONTyped = ContainerModelFromJSONTyped;
|
|
48
|
+
function ContainerModelToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'ref': value['ref'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'width': value['width'],
|
|
57
|
+
'depth': value['depth'],
|
|
58
|
+
'height': value['height'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.ContainerModelToJSON = ContainerModelToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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.12.2
|
|
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 { ContainerModel } from './ContainerModel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContainerModels
|
|
17
|
+
*/
|
|
18
|
+
export interface ContainerModels {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ContainerModel>}
|
|
22
|
+
* @memberof ContainerModels
|
|
23
|
+
*/
|
|
24
|
+
containerModels?: Array<ContainerModel>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ContainerModels interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfContainerModels(value: object): boolean;
|
|
30
|
+
export declare function ContainerModelsFromJSON(json: any): ContainerModels;
|
|
31
|
+
export declare function ContainerModelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerModels;
|
|
32
|
+
export declare function ContainerModelsToJSON(value?: ContainerModels | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.12.2
|
|
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.ContainerModelsToJSON = exports.ContainerModelsFromJSONTyped = exports.ContainerModelsFromJSON = exports.instanceOfContainerModels = void 0;
|
|
17
|
+
const ContainerModel_1 = require("./ContainerModel");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ContainerModels interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfContainerModels(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfContainerModels = instanceOfContainerModels;
|
|
25
|
+
function ContainerModelsFromJSON(json) {
|
|
26
|
+
return ContainerModelsFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.ContainerModelsFromJSON = ContainerModelsFromJSON;
|
|
29
|
+
function ContainerModelsFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'containerModels': json['containerModels'] == null ? undefined : (json['containerModels'].map(ContainerModel_1.ContainerModelFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.ContainerModelsFromJSONTyped = ContainerModelsFromJSONTyped;
|
|
38
|
+
function ContainerModelsToJSON(value) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'containerModels': value['containerModels'] == null ? undefined : (value['containerModels'].map(ContainerModel_1.ContainerModelToJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.ContainerModelsToJSON = ContainerModelsToJSON;
|
|
@@ -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.12.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ export interface CreatePickfaceRequest {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreatePickfaceRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
containerModelId?: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the CreatePickfaceRequest 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.12.
|
|
8
|
+
* The version of the OpenAPI document: 0.12.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,7 +31,7 @@ function CreatePickfaceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
'location': json['location'] == null ? undefined : json['location'],
|
|
34
|
-
'
|
|
34
|
+
'containerModelId': json['containerModelId'] == null ? undefined : json['containerModelId'],
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
exports.CreatePickfaceRequestFromJSONTyped = CreatePickfaceRequestFromJSONTyped;
|
|
@@ -41,7 +41,7 @@ function CreatePickfaceRequestToJSON(value) {
|
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
43
|
'location': value['location'],
|
|
44
|
-
'
|
|
44
|
+
'containerModelId': value['containerModelId'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
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.12.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.2
|
|
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.12.
|
|
8
|
+
* The version of the OpenAPI document: 0.12.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GetPickfaces200ResponseToJSON = exports.GetPickfaces200ResponseFromJSONTyped = exports.GetPickfaces200ResponseFromJSON = exports.instanceOfGetPickfaces200Response = void 0;
|
|
17
|
-
|
|
17
|
+
const Pickface_1 = require("./Pickface");
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the GetPickfaces200Response interface.
|
|
20
20
|
*/
|
|
@@ -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.12.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.2
|
|
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.12.
|
|
8
|
+
* The version of the OpenAPI document: 0.12.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ListPickfaceLogs200ResponseToJSON = exports.ListPickfaceLogs200ResponseFromJSONTyped = exports.ListPickfaceLogs200ResponseFromJSON = exports.instanceOfListPickfaceLogs200Response = void 0;
|
|
17
|
-
|
|
17
|
+
const PickfaceLog_1 = require("./PickfaceLog");
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the ListPickfaceLogs200Response interface.
|
|
20
20
|
*/
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ModelErrorToJSON = exports.ModelErrorFromJSONTyped = exports.ModelErrorFromJSON = exports.instanceOfModelError = void 0;
|
|
17
|
-
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the ModelError interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfModelError(value) {
|
|
22
|
-
|
|
22
|
+
let isInstance = true;
|
|
23
23
|
isInstance = isInstance && "message" in value;
|
|
24
24
|
return isInstance;
|
|
25
25
|
}
|