@topconsultnpm/sdk-ts 6.20.0-dev1.7 → 6.20.0-dev2.3

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.
@@ -335,6 +335,37 @@ export class BasketEngine extends BaseEngine {
335
335
  DeleteAsync(BTID, BID) {
336
336
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketDelete(BTID, BID)); });
337
337
  }
338
+ RetrieveAllFilesAsync(BTID, BID, fromBFID, toBFID, excludeIgnore) {
339
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRetrieveAllFiles(BTID, BID, fromBFID, toBFID, excludeIgnore ? 1 : 0)); });
340
+ }
341
+ LockAsync(BTID, BID, autoUnlock) {
342
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketLock(BTID, BID, autoUnlock)); });
343
+ }
344
+ UnlockAsync(BTID, BID) {
345
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketUnlock(BTID, BID)); });
346
+ }
347
+ UnlockAllAsync() {
348
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketUnlockAll()); });
349
+ }
350
+ ChangeStatusAsync(BTID, BID, newStatus, newAction) {
351
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketChangeStatus(BTID, BID, newStatus, newAction)); });
352
+ }
353
+ AddFileAsync(BTID, BID, batch, barcode, dateTime, fileName, abortSignal) {
354
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketAddFile(BTID, BID, batch, barcode, dateTime, fileName, abortSignal)); });
355
+ }
356
+ RemoveFilesAsync(BTID, BID, BFIDs) {
357
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRemoveFiles(BTID, BID, BFIDs)); });
358
+ }
359
+ RetrieveFileAsync(BTID, BID, BFID, cvtFormat, abortSignal) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ var _a;
362
+ let fr = yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRetrieveFile(BTID, BID, BFID, cvtFormat, abortSignal));
363
+ return new File([fr === null || fr === void 0 ? void 0 : fr.data], fr === null || fr === void 0 ? void 0 : fr.fileName, {
364
+ lastModified: new Date().getTime(),
365
+ type: fr === null || fr === void 0 ? void 0 : fr.data.type
366
+ });
367
+ });
368
+ }
338
369
  }
339
370
  export class BasketTypeEngine extends BaseEngine {
340
371
  static NewBasketTypeDescriptor() { return this.Normalize(new BasketTypeDescriptor(), true); }