@topconsultnpm/sdk-ts 6.20.0-dev1.7 → 6.20.0-dev2.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.
@@ -335,6 +335,31 @@ 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
+ RetrieveFileAsync(BTID, BID, BFID, cvtFormat, abortSignal) {
354
+ return __awaiter(this, void 0, void 0, function* () {
355
+ var _a;
356
+ let fr = yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRetrieveFile(BTID, BID, BFID, cvtFormat, abortSignal));
357
+ return new File([fr === null || fr === void 0 ? void 0 : fr.data], fr === null || fr === void 0 ? void 0 : fr.fileName, {
358
+ lastModified: new Date().getTime(),
359
+ type: fr === null || fr === void 0 ? void 0 : fr.data.type
360
+ });
361
+ });
362
+ }
338
363
  }
339
364
  export class BasketTypeEngine extends BaseEngine {
340
365
  static NewBasketTypeDescriptor() { return this.Normalize(new BasketTypeDescriptor(), true); }