@teemill/pickfaces 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.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.13.0
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -126,6 +126,38 @@ export interface GetPickfaces200Response {
126
126
  */
127
127
  'nextPageToken'?: number;
128
128
  }
129
+ /**
130
+ *
131
+ * @export
132
+ * @interface IssueEmptyPickfaceRequest
133
+ */
134
+ export interface IssueEmptyPickfaceRequest {
135
+ /**
136
+ * A reference to the resource location
137
+ * @type {string}
138
+ * @memberof IssueEmptyPickfaceRequest
139
+ */
140
+ 'issueRef'?: string;
141
+ }
142
+ /**
143
+ *
144
+ * @export
145
+ * @interface IssueWrongContentsPickfaceRequest
146
+ */
147
+ export interface IssueWrongContentsPickfaceRequest {
148
+ /**
149
+ * A reference to the resource location
150
+ * @type {string}
151
+ * @memberof IssueWrongContentsPickfaceRequest
152
+ */
153
+ 'issueRef'?: string;
154
+ /**
155
+ * A reference to the resource location
156
+ * @type {string}
157
+ * @memberof IssueWrongContentsPickfaceRequest
158
+ */
159
+ 'variantRef'?: string;
160
+ }
129
161
  /**
130
162
  *
131
163
  * @export
@@ -224,6 +256,12 @@ export interface Pickface {
224
256
  * @memberof Pickface
225
257
  */
226
258
  'lastRestocked'?: PickfaceLastRestocked;
259
+ /**
260
+ *
261
+ * @type {PickfaceIssue}
262
+ * @memberof Pickface
263
+ */
264
+ 'issue'?: PickfaceIssue | null;
227
265
  /**
228
266
  *
229
267
  * @type {Array<PickfaceContentsInner>}
@@ -356,6 +394,25 @@ export interface PickfaceContentsInnerQuantity {
356
394
  */
357
395
  'reserved'?: number;
358
396
  }
397
+ /**
398
+ * The open issue for the pickface
399
+ * @export
400
+ * @interface PickfaceIssue
401
+ */
402
+ export interface PickfaceIssue {
403
+ /**
404
+ * Unique object identifier
405
+ * @type {string}
406
+ * @memberof PickfaceIssue
407
+ */
408
+ 'id'?: string;
409
+ /**
410
+ * A reference to the resource location
411
+ * @type {string}
412
+ * @memberof PickfaceIssue
413
+ */
414
+ 'ref'?: string;
415
+ }
359
416
  /**
360
417
  *
361
418
  * @export
@@ -596,6 +653,26 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
596
653
  * @throws {RequiredError}
597
654
  */
598
655
  getPickfaces: (project: string, search?: string, pageToken?: number, pageSize?: number, filters?: Array<GetPickfacesFiltersEnum>, sortBy?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
656
+ /**
657
+ * Issue an empty pickface
658
+ * @summary Issue empty pickface
659
+ * @param {string} project What project it is
660
+ * @param {string} pickfaceId Unique identifier of a pickface
661
+ * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ issueEmptyPickface: (project: string, pickfaceId: string, issueEmptyPickfaceRequest: IssueEmptyPickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
666
+ /**
667
+ * Issue a pickface with wrong contents
668
+ * @summary Issue wrong contents pickface
669
+ * @param {string} project What project it is
670
+ * @param {string} pickfaceId Unique identifier of a pickface
671
+ * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ issueWrongContentsPickface: (project: string, pickfaceId: string, issueWrongContentsPickfaceRequest: IssueWrongContentsPickfaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
599
676
  /**
600
677
  * Get a list of pickface logs
601
678
  * @summary Get pickface logs
@@ -627,6 +704,15 @@ export declare const PickfacesApiAxiosParamCreator: (configuration?: Configurati
627
704
  * @throws {RequiredError}
628
705
  */
629
706
  printPickfaceLabel: (project: string, pickfaceId: string, deviceRef: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
707
+ /**
708
+ * Resolves an issue on a pickface
709
+ * @summary Resolve pickface issue
710
+ * @param {string} project What project it is
711
+ * @param {string} pickfaceId Unique identifier of a pickface
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ resolvePickfaceIssue: (project: string, pickfaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
630
716
  /**
631
717
  * Suggest pickfaces for putting away stock
632
718
  * @summary Suggest pickfaces
@@ -711,6 +797,26 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
711
797
  * @throws {RequiredError}
712
798
  */
713
799
  getPickfaces(project: string, search?: string, pageToken?: number, pageSize?: number, filters?: Array<GetPickfacesFiltersEnum>, sortBy?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPickfaces200Response>>;
800
+ /**
801
+ * Issue an empty pickface
802
+ * @summary Issue empty pickface
803
+ * @param {string} project What project it is
804
+ * @param {string} pickfaceId Unique identifier of a pickface
805
+ * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
806
+ * @param {*} [options] Override http request option.
807
+ * @throws {RequiredError}
808
+ */
809
+ issueEmptyPickface(project: string, pickfaceId: string, issueEmptyPickfaceRequest: IssueEmptyPickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
810
+ /**
811
+ * Issue a pickface with wrong contents
812
+ * @summary Issue wrong contents pickface
813
+ * @param {string} project What project it is
814
+ * @param {string} pickfaceId Unique identifier of a pickface
815
+ * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ issueWrongContentsPickface(project: string, pickfaceId: string, issueWrongContentsPickfaceRequest: IssueWrongContentsPickfaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
714
820
  /**
715
821
  * Get a list of pickface logs
716
822
  * @summary Get pickface logs
@@ -742,6 +848,15 @@ export declare const PickfacesApiFp: (configuration?: Configuration) => {
742
848
  * @throws {RequiredError}
743
849
  */
744
850
  printPickfaceLabel(project: string, pickfaceId: string, deviceRef: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
851
+ /**
852
+ * Resolves an issue on a pickface
853
+ * @summary Resolve pickface issue
854
+ * @param {string} project What project it is
855
+ * @param {string} pickfaceId Unique identifier of a pickface
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ resolvePickfaceIssue(project: string, pickfaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Pickface>>;
745
860
  /**
746
861
  * Suggest pickfaces for putting away stock
747
862
  * @summary Suggest pickfaces
@@ -818,6 +933,22 @@ export declare const PickfacesApiFactory: (configuration?: Configuration, basePa
818
933
  * @throws {RequiredError}
819
934
  */
820
935
  getPickfaces(requestParameters: PickfacesApiGetPickfacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPickfaces200Response>;
936
+ /**
937
+ * Issue an empty pickface
938
+ * @summary Issue empty pickface
939
+ * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
940
+ * @param {*} [options] Override http request option.
941
+ * @throws {RequiredError}
942
+ */
943
+ issueEmptyPickface(requestParameters: PickfacesApiIssueEmptyPickfaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pickface>;
944
+ /**
945
+ * Issue a pickface with wrong contents
946
+ * @summary Issue wrong contents pickface
947
+ * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
948
+ * @param {*} [options] Override http request option.
949
+ * @throws {RequiredError}
950
+ */
951
+ issueWrongContentsPickface(requestParameters: PickfacesApiIssueWrongContentsPickfaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pickface>;
821
952
  /**
822
953
  * Get a list of pickface logs
823
954
  * @summary Get pickface logs
@@ -842,6 +973,14 @@ export declare const PickfacesApiFactory: (configuration?: Configuration, basePa
842
973
  * @throws {RequiredError}
843
974
  */
844
975
  printPickfaceLabel(requestParameters: PickfacesApiPrintPickfaceLabelRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
976
+ /**
977
+ * Resolves an issue on a pickface
978
+ * @summary Resolve pickface issue
979
+ * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
980
+ * @param {*} [options] Override http request option.
981
+ * @throws {RequiredError}
982
+ */
983
+ resolvePickfaceIssue(requestParameters: PickfacesApiResolvePickfaceIssueRequest, options?: RawAxiosRequestConfig): AxiosPromise<Pickface>;
845
984
  /**
846
985
  * Suggest pickfaces for putting away stock
847
986
  * @summary Suggest pickfaces
@@ -985,6 +1124,56 @@ export interface PickfacesApiGetPickfacesRequest {
985
1124
  */
986
1125
  readonly sortBy?: Array<string>;
987
1126
  }
1127
+ /**
1128
+ * Request parameters for issueEmptyPickface operation in PickfacesApi.
1129
+ * @export
1130
+ * @interface PickfacesApiIssueEmptyPickfaceRequest
1131
+ */
1132
+ export interface PickfacesApiIssueEmptyPickfaceRequest {
1133
+ /**
1134
+ * What project it is
1135
+ * @type {string}
1136
+ * @memberof PickfacesApiIssueEmptyPickface
1137
+ */
1138
+ readonly project: string;
1139
+ /**
1140
+ * Unique identifier of a pickface
1141
+ * @type {string}
1142
+ * @memberof PickfacesApiIssueEmptyPickface
1143
+ */
1144
+ readonly pickfaceId: string;
1145
+ /**
1146
+ * pickface issue schema
1147
+ * @type {IssueEmptyPickfaceRequest}
1148
+ * @memberof PickfacesApiIssueEmptyPickface
1149
+ */
1150
+ readonly issueEmptyPickfaceRequest: IssueEmptyPickfaceRequest;
1151
+ }
1152
+ /**
1153
+ * Request parameters for issueWrongContentsPickface operation in PickfacesApi.
1154
+ * @export
1155
+ * @interface PickfacesApiIssueWrongContentsPickfaceRequest
1156
+ */
1157
+ export interface PickfacesApiIssueWrongContentsPickfaceRequest {
1158
+ /**
1159
+ * What project it is
1160
+ * @type {string}
1161
+ * @memberof PickfacesApiIssueWrongContentsPickface
1162
+ */
1163
+ readonly project: string;
1164
+ /**
1165
+ * Unique identifier of a pickface
1166
+ * @type {string}
1167
+ * @memberof PickfacesApiIssueWrongContentsPickface
1168
+ */
1169
+ readonly pickfaceId: string;
1170
+ /**
1171
+ * pickface issue schema
1172
+ * @type {IssueWrongContentsPickfaceRequest}
1173
+ * @memberof PickfacesApiIssueWrongContentsPickface
1174
+ */
1175
+ readonly issueWrongContentsPickfaceRequest: IssueWrongContentsPickfaceRequest;
1176
+ }
988
1177
  /**
989
1178
  * Request parameters for listPickfaceLogs operation in PickfacesApi.
990
1179
  * @export
@@ -1066,6 +1255,25 @@ export interface PickfacesApiPrintPickfaceLabelRequest {
1066
1255
  */
1067
1256
  readonly deviceRef: string;
1068
1257
  }
1258
+ /**
1259
+ * Request parameters for resolvePickfaceIssue operation in PickfacesApi.
1260
+ * @export
1261
+ * @interface PickfacesApiResolvePickfaceIssueRequest
1262
+ */
1263
+ export interface PickfacesApiResolvePickfaceIssueRequest {
1264
+ /**
1265
+ * What project it is
1266
+ * @type {string}
1267
+ * @memberof PickfacesApiResolvePickfaceIssue
1268
+ */
1269
+ readonly project: string;
1270
+ /**
1271
+ * Unique identifier of a pickface
1272
+ * @type {string}
1273
+ * @memberof PickfacesApiResolvePickfaceIssue
1274
+ */
1275
+ readonly pickfaceId: string;
1276
+ }
1069
1277
  /**
1070
1278
  * Request parameters for suggestPickfaces operation in PickfacesApi.
1071
1279
  * @export
@@ -1189,6 +1397,24 @@ export declare class PickfacesApi extends BaseAPI {
1189
1397
  * @memberof PickfacesApi
1190
1398
  */
1191
1399
  getPickfaces(requestParameters: PickfacesApiGetPickfacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPickfaces200Response, any>>;
1400
+ /**
1401
+ * Issue an empty pickface
1402
+ * @summary Issue empty pickface
1403
+ * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
1404
+ * @param {*} [options] Override http request option.
1405
+ * @throws {RequiredError}
1406
+ * @memberof PickfacesApi
1407
+ */
1408
+ issueEmptyPickface(requestParameters: PickfacesApiIssueEmptyPickfaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Pickface, any>>;
1409
+ /**
1410
+ * Issue a pickface with wrong contents
1411
+ * @summary Issue wrong contents pickface
1412
+ * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
1413
+ * @param {*} [options] Override http request option.
1414
+ * @throws {RequiredError}
1415
+ * @memberof PickfacesApi
1416
+ */
1417
+ issueWrongContentsPickface(requestParameters: PickfacesApiIssueWrongContentsPickfaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Pickface, any>>;
1192
1418
  /**
1193
1419
  * Get a list of pickface logs
1194
1420
  * @summary Get pickface logs
@@ -1216,6 +1442,15 @@ export declare class PickfacesApi extends BaseAPI {
1216
1442
  * @memberof PickfacesApi
1217
1443
  */
1218
1444
  printPickfaceLabel(requestParameters: PickfacesApiPrintPickfaceLabelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1445
+ /**
1446
+ * Resolves an issue on a pickface
1447
+ * @summary Resolve pickface issue
1448
+ * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
1449
+ * @param {*} [options] Override http request option.
1450
+ * @throws {RequiredError}
1451
+ * @memberof PickfacesApi
1452
+ */
1453
+ resolvePickfaceIssue(requestParameters: PickfacesApiResolvePickfaceIssueRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Pickface, any>>;
1219
1454
  /**
1220
1455
  * Suggest pickfaces for putting away stock
1221
1456
  * @summary Suggest pickfaces
package/dist/api.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.13.0
8
+ * The version of the OpenAPI document: 0.14.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -288,6 +288,96 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
288
288
  options: localVarRequestOptions,
289
289
  };
290
290
  }),
291
+ /**
292
+ * Issue an empty pickface
293
+ * @summary Issue empty pickface
294
+ * @param {string} project What project it is
295
+ * @param {string} pickfaceId Unique identifier of a pickface
296
+ * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ issueEmptyPickface: (project_1, pickfaceId_1, issueEmptyPickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, issueEmptyPickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, issueEmptyPickfaceRequest, options = {}) {
301
+ // verify required parameter 'project' is not null or undefined
302
+ (0, common_1.assertParamExists)('issueEmptyPickface', 'project', project);
303
+ // verify required parameter 'pickfaceId' is not null or undefined
304
+ (0, common_1.assertParamExists)('issueEmptyPickface', 'pickfaceId', pickfaceId);
305
+ // verify required parameter 'issueEmptyPickfaceRequest' is not null or undefined
306
+ (0, common_1.assertParamExists)('issueEmptyPickface', 'issueEmptyPickfaceRequest', issueEmptyPickfaceRequest);
307
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/empty`
308
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
310
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
311
+ let baseOptions;
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ }
315
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
316
+ const localVarHeaderParameter = {};
317
+ const localVarQueryParameter = {};
318
+ // authentication session-oauth required
319
+ // oauth required
320
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
321
+ // authentication api-key required
322
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
323
+ if (project !== undefined) {
324
+ localVarQueryParameter['project'] = project;
325
+ }
326
+ localVarHeaderParameter['Content-Type'] = 'application/json';
327
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
328
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
329
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
330
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issueEmptyPickfaceRequest, localVarRequestOptions, configuration);
331
+ return {
332
+ url: (0, common_1.toPathString)(localVarUrlObj),
333
+ options: localVarRequestOptions,
334
+ };
335
+ }),
336
+ /**
337
+ * Issue a pickface with wrong contents
338
+ * @summary Issue wrong contents pickface
339
+ * @param {string} project What project it is
340
+ * @param {string} pickfaceId Unique identifier of a pickface
341
+ * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ issueWrongContentsPickface: (project_1, pickfaceId_1, issueWrongContentsPickfaceRequest_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, issueWrongContentsPickfaceRequest_1, ...args_1], void 0, function* (project, pickfaceId, issueWrongContentsPickfaceRequest, options = {}) {
346
+ // verify required parameter 'project' is not null or undefined
347
+ (0, common_1.assertParamExists)('issueWrongContentsPickface', 'project', project);
348
+ // verify required parameter 'pickfaceId' is not null or undefined
349
+ (0, common_1.assertParamExists)('issueWrongContentsPickface', 'pickfaceId', pickfaceId);
350
+ // verify required parameter 'issueWrongContentsPickfaceRequest' is not null or undefined
351
+ (0, common_1.assertParamExists)('issueWrongContentsPickface', 'issueWrongContentsPickfaceRequest', issueWrongContentsPickfaceRequest);
352
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/wrong-contents`
353
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
355
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
356
+ let baseOptions;
357
+ if (configuration) {
358
+ baseOptions = configuration.baseOptions;
359
+ }
360
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
361
+ const localVarHeaderParameter = {};
362
+ const localVarQueryParameter = {};
363
+ // authentication session-oauth required
364
+ // oauth required
365
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
366
+ // authentication api-key required
367
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
368
+ if (project !== undefined) {
369
+ localVarQueryParameter['project'] = project;
370
+ }
371
+ localVarHeaderParameter['Content-Type'] = 'application/json';
372
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
375
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issueWrongContentsPickfaceRequest, localVarRequestOptions, configuration);
376
+ return {
377
+ url: (0, common_1.toPathString)(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ }),
291
381
  /**
292
382
  * Get a list of pickface logs
293
383
  * @summary Get pickface logs
@@ -427,6 +517,46 @@ const PickfacesApiAxiosParamCreator = function (configuration) {
427
517
  options: localVarRequestOptions,
428
518
  };
429
519
  }),
520
+ /**
521
+ * Resolves an issue on a pickface
522
+ * @summary Resolve pickface issue
523
+ * @param {string} project What project it is
524
+ * @param {string} pickfaceId Unique identifier of a pickface
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ resolvePickfaceIssue: (project_1, pickfaceId_1, ...args_1) => __awaiter(this, [project_1, pickfaceId_1, ...args_1], void 0, function* (project, pickfaceId, options = {}) {
529
+ // verify required parameter 'project' is not null or undefined
530
+ (0, common_1.assertParamExists)('resolvePickfaceIssue', 'project', project);
531
+ // verify required parameter 'pickfaceId' is not null or undefined
532
+ (0, common_1.assertParamExists)('resolvePickfaceIssue', 'pickfaceId', pickfaceId);
533
+ const localVarPath = `/v1/pickfaces/{pickfaceId}/issue/resolve`
534
+ .replace(`{${"pickfaceId"}}`, encodeURIComponent(String(pickfaceId)));
535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
536
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
537
+ let baseOptions;
538
+ if (configuration) {
539
+ baseOptions = configuration.baseOptions;
540
+ }
541
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
542
+ const localVarHeaderParameter = {};
543
+ const localVarQueryParameter = {};
544
+ // authentication session-oauth required
545
+ // oauth required
546
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
547
+ // authentication api-key required
548
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
549
+ if (project !== undefined) {
550
+ localVarQueryParameter['project'] = project;
551
+ }
552
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
554
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
555
+ return {
556
+ url: (0, common_1.toPathString)(localVarUrlObj),
557
+ options: localVarRequestOptions,
558
+ };
559
+ }),
430
560
  /**
431
561
  * Suggest pickfaces for putting away stock
432
562
  * @summary Suggest pickfaces
@@ -642,6 +772,42 @@ const PickfacesApiFp = function (configuration) {
642
772
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
643
773
  });
644
774
  },
775
+ /**
776
+ * Issue an empty pickface
777
+ * @summary Issue empty pickface
778
+ * @param {string} project What project it is
779
+ * @param {string} pickfaceId Unique identifier of a pickface
780
+ * @param {IssueEmptyPickfaceRequest} issueEmptyPickfaceRequest pickface issue schema
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ issueEmptyPickface(project, pickfaceId, issueEmptyPickfaceRequest, options) {
785
+ return __awaiter(this, void 0, void 0, function* () {
786
+ var _a, _b, _c;
787
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.issueEmptyPickface(project, pickfaceId, issueEmptyPickfaceRequest, options);
788
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
789
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PickfacesApi.issueEmptyPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
790
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
791
+ });
792
+ },
793
+ /**
794
+ * Issue a pickface with wrong contents
795
+ * @summary Issue wrong contents pickface
796
+ * @param {string} project What project it is
797
+ * @param {string} pickfaceId Unique identifier of a pickface
798
+ * @param {IssueWrongContentsPickfaceRequest} issueWrongContentsPickfaceRequest pickface issue schema
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ issueWrongContentsPickface(project, pickfaceId, issueWrongContentsPickfaceRequest, options) {
803
+ return __awaiter(this, void 0, void 0, function* () {
804
+ var _a, _b, _c;
805
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.issueWrongContentsPickface(project, pickfaceId, issueWrongContentsPickfaceRequest, options);
806
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
807
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PickfacesApi.issueWrongContentsPickface']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
808
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
809
+ });
810
+ },
645
811
  /**
646
812
  * Get a list of pickface logs
647
813
  * @summary Get pickface logs
@@ -697,6 +863,23 @@ const PickfacesApiFp = function (configuration) {
697
863
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
698
864
  });
699
865
  },
866
+ /**
867
+ * Resolves an issue on a pickface
868
+ * @summary Resolve pickface issue
869
+ * @param {string} project What project it is
870
+ * @param {string} pickfaceId Unique identifier of a pickface
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ resolvePickfaceIssue(project, pickfaceId, options) {
875
+ return __awaiter(this, void 0, void 0, function* () {
876
+ var _a, _b, _c;
877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resolvePickfaceIssue(project, pickfaceId, options);
878
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
879
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PickfacesApi.resolvePickfaceIssue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
880
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
881
+ });
882
+ },
700
883
  /**
701
884
  * Suggest pickfaces for putting away stock
702
885
  * @summary Suggest pickfaces
@@ -805,6 +988,26 @@ const PickfacesApiFactory = function (configuration, basePath, axios) {
805
988
  getPickfaces(requestParameters, options) {
806
989
  return localVarFp.getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.filters, requestParameters.sortBy, options).then((request) => request(axios, basePath));
807
990
  },
991
+ /**
992
+ * Issue an empty pickface
993
+ * @summary Issue empty pickface
994
+ * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ */
998
+ issueEmptyPickface(requestParameters, options) {
999
+ return localVarFp.issueEmptyPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueEmptyPickfaceRequest, options).then((request) => request(axios, basePath));
1000
+ },
1001
+ /**
1002
+ * Issue a pickface with wrong contents
1003
+ * @summary Issue wrong contents pickface
1004
+ * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
1005
+ * @param {*} [options] Override http request option.
1006
+ * @throws {RequiredError}
1007
+ */
1008
+ issueWrongContentsPickface(requestParameters, options) {
1009
+ return localVarFp.issueWrongContentsPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueWrongContentsPickfaceRequest, options).then((request) => request(axios, basePath));
1010
+ },
808
1011
  /**
809
1012
  * Get a list of pickface logs
810
1013
  * @summary Get pickface logs
@@ -835,6 +1038,16 @@ const PickfacesApiFactory = function (configuration, basePath, axios) {
835
1038
  printPickfaceLabel(requestParameters, options) {
836
1039
  return localVarFp.printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(axios, basePath));
837
1040
  },
1041
+ /**
1042
+ * Resolves an issue on a pickface
1043
+ * @summary Resolve pickface issue
1044
+ * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
1045
+ * @param {*} [options] Override http request option.
1046
+ * @throws {RequiredError}
1047
+ */
1048
+ resolvePickfaceIssue(requestParameters, options) {
1049
+ return localVarFp.resolvePickfaceIssue(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(axios, basePath));
1050
+ },
838
1051
  /**
839
1052
  * Suggest pickfaces for putting away stock
840
1053
  * @summary Suggest pickfaces
@@ -931,6 +1144,28 @@ class PickfacesApi extends base_1.BaseAPI {
931
1144
  getPickfaces(requestParameters, options) {
932
1145
  return (0, exports.PickfacesApiFp)(this.configuration).getPickfaces(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.filters, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
933
1146
  }
1147
+ /**
1148
+ * Issue an empty pickface
1149
+ * @summary Issue empty pickface
1150
+ * @param {PickfacesApiIssueEmptyPickfaceRequest} requestParameters Request parameters.
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ * @memberof PickfacesApi
1154
+ */
1155
+ issueEmptyPickface(requestParameters, options) {
1156
+ return (0, exports.PickfacesApiFp)(this.configuration).issueEmptyPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueEmptyPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1157
+ }
1158
+ /**
1159
+ * Issue a pickface with wrong contents
1160
+ * @summary Issue wrong contents pickface
1161
+ * @param {PickfacesApiIssueWrongContentsPickfaceRequest} requestParameters Request parameters.
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ * @memberof PickfacesApi
1165
+ */
1166
+ issueWrongContentsPickface(requestParameters, options) {
1167
+ return (0, exports.PickfacesApiFp)(this.configuration).issueWrongContentsPickface(requestParameters.project, requestParameters.pickfaceId, requestParameters.issueWrongContentsPickfaceRequest, options).then((request) => request(this.axios, this.basePath));
1168
+ }
934
1169
  /**
935
1170
  * Get a list of pickface logs
936
1171
  * @summary Get pickface logs
@@ -964,6 +1199,17 @@ class PickfacesApi extends base_1.BaseAPI {
964
1199
  printPickfaceLabel(requestParameters, options) {
965
1200
  return (0, exports.PickfacesApiFp)(this.configuration).printPickfaceLabel(requestParameters.project, requestParameters.pickfaceId, requestParameters.deviceRef, options).then((request) => request(this.axios, this.basePath));
966
1201
  }
1202
+ /**
1203
+ * Resolves an issue on a pickface
1204
+ * @summary Resolve pickface issue
1205
+ * @param {PickfacesApiResolvePickfaceIssueRequest} requestParameters Request parameters.
1206
+ * @param {*} [options] Override http request option.
1207
+ * @throws {RequiredError}
1208
+ * @memberof PickfacesApi
1209
+ */
1210
+ resolvePickfaceIssue(requestParameters, options) {
1211
+ return (0, exports.PickfacesApiFp)(this.configuration).resolvePickfaceIssue(requestParameters.project, requestParameters.pickfaceId, options).then((request) => request(this.axios, this.basePath));
1212
+ }
967
1213
  /**
968
1214
  * Suggest pickfaces for putting away stock
969
1215
  * @summary Suggest pickfaces
package/dist/base.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.13.0
5
+ * The version of the OpenAPI document: 0.14.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/base.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.13.0
8
+ * The version of the OpenAPI document: 0.14.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/dist/common.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.13.0
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).