wildberries-sdk 0.1.47 → 0.1.48

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.
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -141,6 +141,18 @@ export interface ApiV1ClaimsGet200ResponseClaimsInner {
141
141
  * @memberof ApiV1ClaimsGet200ResponseClaimsInner
142
142
  */
143
143
  srid?: string;
144
+ /**
145
+ * Результат сверки [IMEI](https://seller.wildberries.ru/instructions/ru/ru/material/items-labeling-in-fbs#imei) для возврата через ПВЗ Wildberries.<br>Значение показывает, совпадает ли IMEI, который был указан продавцом или отсканирован при приёмке на складе Wildberries, с IMEI из заявки покупателя, что позволяет эффективнее [обрабатывать заявки](./user-communication#tag/Vozvraty-pokupatelyami/paths/~1api~1v1~1claim/patch).<br>Применимо только для товаров **Apple** предмета `Смартфоны` (`"subjectId":515`) с ценой от 40000 рублей, учитывая скидку продавца ([только](./work-with-products#tag/Ceny-i-skidki/paths/~1api~1v2~1upload~1task/post) параметры и поля `price` и `discount`)
146
+ * @type {string}
147
+ * @memberof ApiV1ClaimsGet200ResponseClaimsInner
148
+ */
149
+ originIdInfo?: string | null;
150
+ /**
151
+ * Дата и время получения заказа покупателем
152
+ * @type {string}
153
+ * @memberof ApiV1ClaimsGet200ResponseClaimsInner
154
+ */
155
+ deliveryDt?: string;
144
156
  }
145
157
  /**
146
158
  * Check if a given object implements the ApiV1ClaimsGet200ResponseClaimsInner interface.
@@ -49,6 +49,8 @@ function ApiV1ClaimsGet200ResponseClaimsInnerFromJSONTyped(json, ignoreDiscrimin
49
49
  'price': json['price'] == null ? undefined : json['price'],
50
50
  'currencyCode': json['currency_code'] == null ? undefined : json['currency_code'],
51
51
  'srid': json['srid'] == null ? undefined : json['srid'],
52
+ 'originIdInfo': json['origin_id_info'] == null ? undefined : json['origin_id_info'],
53
+ 'deliveryDt': json['delivery_dt'] == null ? undefined : json['delivery_dt'],
52
54
  };
53
55
  }
54
56
  function ApiV1ClaimsGet200ResponseClaimsInnerToJSON(json) {
@@ -77,5 +79,7 @@ function ApiV1ClaimsGet200ResponseClaimsInnerToJSONTyped(value, ignoreDiscrimina
77
79
  'price': value['price'],
78
80
  'currency_code': value['currencyCode'],
79
81
  'srid': value['srid'],
82
+ 'origin_id_info': value['originIdInfo'],
83
+ 'delivery_dt': value['deliveryDt'],
80
84
  };
81
85
  }
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -148,7 +148,7 @@ export declare class DefaultApi extends runtime.BaseAPI {
148
148
  * Метод возвращает отчёт о [платной приёмке](https://seller.wildberries.ru/analytics-reports/acceptance-report) по ID [задания на генерацию](/openapi/reports#tag/Platnaya-priyomka/paths/~1api~1v1~1acceptance_report/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 1 запрос | 1 мин | 1 запрос | </div>
149
149
  * Получить отчёт
150
150
  */
151
- apiV1AcceptanceReportTasksTaskIdDownloadGet(requestParameters: ApiV1AcceptanceReportTasksTaskIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1AcceptanceReportTasksTaskIdDownloadGet200ResponseInner>>;
151
+ apiV1AcceptanceReportTasksTaskIdDownloadGet(requestParameters: ApiV1AcceptanceReportTasksTaskIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1AcceptanceReportTasksTaskIdDownloadGet200ResponseInner> | null | undefined>;
152
152
  /**
153
153
  * Creates request options for apiV1AcceptanceReportTasksTaskIdStatusGet without sending the request
154
154
  */
@@ -316,7 +316,7 @@ export declare class DefaultApi extends runtime.BaseAPI {
316
316
  * Метод возвращает отчёт о [платном хранении](https://seller.wildberries.ru/analytics-reports/paid-storage/storage) по ID [задания на генерацию](/openapi/reports#tag/Platnoe-hranenie/paths/~1api~1v1~1paid_storage/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 1 запрос | 1 мин | 1 запрос | </div>
317
317
  * Получить отчёт
318
318
  */
319
- apiV1PaidStorageTasksTaskIdDownloadGet(requestParameters: ApiV1PaidStorageTasksTaskIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ResponsePaidStorageInner>>;
319
+ apiV1PaidStorageTasksTaskIdDownloadGet(requestParameters: ApiV1PaidStorageTasksTaskIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ResponsePaidStorageInner> | null | undefined>;
320
320
  /**
321
321
  * Creates request options for apiV1PaidStorageTasksTaskIdStatusGet without sending the request
322
322
  */
@@ -417,7 +417,7 @@ export declare class DefaultApi extends runtime.BaseAPI {
417
417
  * Метод возвращает отчёт об [остатках на складах WB](https://seller.wildberries.ru/analytics-reports/warehouse-remains) по ID [задания на генерацию](/openapi/reports#tag/Otchyot-ob-ostatkah-na-skladah/paths/~1api~1v1~1warehouse_remains/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 1 запрос | 1 мин | 1 запрос | </div>
418
418
  * Получить отчёт
419
419
  */
420
- apiV1WarehouseRemainsTasksTaskIdDownloadGet(requestParameters: ApiV1WarehouseRemainsTasksTaskIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1WarehouseRemainsTasksTaskIdDownloadGet200ResponseInner>>;
420
+ apiV1WarehouseRemainsTasksTaskIdDownloadGet(requestParameters: ApiV1WarehouseRemainsTasksTaskIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1WarehouseRemainsTasksTaskIdDownloadGet200ResponseInner> | null | undefined>;
421
421
  /**
422
422
  * Creates request options for apiV1WarehouseRemainsTasksTaskIdStatusGet without sending the request
423
423
  */
@@ -215,14 +215,23 @@ var DefaultApi = /** @class */ (function (_super) {
215
215
  */
216
216
  DefaultApi.prototype.apiV1AcceptanceReportTasksTaskIdDownloadGet = function (requestParameters, initOverrides) {
217
217
  return __awaiter(this, void 0, void 0, function () {
218
- var response;
219
- return __generator(this, function (_a) {
220
- switch (_a.label) {
218
+ var response, _a;
219
+ return __generator(this, function (_b) {
220
+ switch (_b.label) {
221
221
  case 0: return [4 /*yield*/, this.apiV1AcceptanceReportTasksTaskIdDownloadGetRaw(requestParameters, initOverrides)];
222
222
  case 1:
223
- response = _a.sent();
224
- return [4 /*yield*/, response.value()];
225
- case 2: return [2 /*return*/, _a.sent()];
223
+ response = _b.sent();
224
+ _a = response.raw.status;
225
+ switch (_a) {
226
+ case 200: return [3 /*break*/, 2];
227
+ case 204: return [3 /*break*/, 4];
228
+ }
229
+ return [3 /*break*/, 5];
230
+ case 2: return [4 /*yield*/, response.value()];
231
+ case 3: return [2 /*return*/, _b.sent()];
232
+ case 4: return [2 /*return*/, null];
233
+ case 5: return [4 /*yield*/, response.value()];
234
+ case 6: return [2 /*return*/, _b.sent()];
226
235
  }
227
236
  });
228
237
  });
@@ -1160,14 +1169,23 @@ var DefaultApi = /** @class */ (function (_super) {
1160
1169
  */
1161
1170
  DefaultApi.prototype.apiV1PaidStorageTasksTaskIdDownloadGet = function (requestParameters, initOverrides) {
1162
1171
  return __awaiter(this, void 0, void 0, function () {
1163
- var response;
1164
- return __generator(this, function (_a) {
1165
- switch (_a.label) {
1172
+ var response, _a;
1173
+ return __generator(this, function (_b) {
1174
+ switch (_b.label) {
1166
1175
  case 0: return [4 /*yield*/, this.apiV1PaidStorageTasksTaskIdDownloadGetRaw(requestParameters, initOverrides)];
1167
1176
  case 1:
1168
- response = _a.sent();
1169
- return [4 /*yield*/, response.value()];
1170
- case 2: return [2 /*return*/, _a.sent()];
1177
+ response = _b.sent();
1178
+ _a = response.raw.status;
1179
+ switch (_a) {
1180
+ case 200: return [3 /*break*/, 2];
1181
+ case 204: return [3 /*break*/, 4];
1182
+ }
1183
+ return [3 /*break*/, 5];
1184
+ case 2: return [4 /*yield*/, response.value()];
1185
+ case 3: return [2 /*return*/, _b.sent()];
1186
+ case 4: return [2 /*return*/, null];
1187
+ case 5: return [4 /*yield*/, response.value()];
1188
+ case 6: return [2 /*return*/, _b.sent()];
1171
1189
  }
1172
1190
  });
1173
1191
  });
@@ -1705,14 +1723,23 @@ var DefaultApi = /** @class */ (function (_super) {
1705
1723
  */
1706
1724
  DefaultApi.prototype.apiV1WarehouseRemainsTasksTaskIdDownloadGet = function (requestParameters, initOverrides) {
1707
1725
  return __awaiter(this, void 0, void 0, function () {
1708
- var response;
1709
- return __generator(this, function (_a) {
1710
- switch (_a.label) {
1726
+ var response, _a;
1727
+ return __generator(this, function (_b) {
1728
+ switch (_b.label) {
1711
1729
  case 0: return [4 /*yield*/, this.apiV1WarehouseRemainsTasksTaskIdDownloadGetRaw(requestParameters, initOverrides)];
1712
1730
  case 1:
1713
- response = _a.sent();
1714
- return [4 /*yield*/, response.value()];
1715
- case 2: return [2 /*return*/, _a.sent()];
1731
+ response = _b.sent();
1732
+ _a = response.raw.status;
1733
+ switch (_a) {
1734
+ case 200: return [3 /*break*/, 2];
1735
+ case 204: return [3 /*break*/, 4];
1736
+ }
1737
+ return [3 /*break*/, 5];
1738
+ case 2: return [4 /*yield*/, response.value()];
1739
+ case 3: return [2 /*return*/, _b.sent()];
1740
+ case 4: return [2 /*return*/, null];
1741
+ case 5: return [4 /*yield*/, response.value()];
1742
+ case 6: return [2 /*return*/, _b.sent()];
1716
1743
  }
1717
1744
  });
1718
1745
  });
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
@@ -406,9 +406,15 @@ function isFormData(value) {
406
406
  var ResponseError = /** @class */ (function (_super) {
407
407
  __extends(ResponseError, _super);
408
408
  function ResponseError(response, msg) {
409
+ var _newTarget = this.constructor;
409
410
  var _this = _super.call(this, msg) || this;
410
411
  _this.response = response;
411
412
  _this.name = "ResponseError";
413
+ // restore prototype chain
414
+ var actualProto = _newTarget.prototype;
415
+ if (Object.setPrototypeOf) {
416
+ Object.setPrototypeOf(_this, actualProto);
417
+ }
412
418
  return _this;
413
419
  }
414
420
  return ResponseError;
@@ -417,9 +423,15 @@ exports.ResponseError = ResponseError;
417
423
  var FetchError = /** @class */ (function (_super) {
418
424
  __extends(FetchError, _super);
419
425
  function FetchError(cause, msg) {
426
+ var _newTarget = this.constructor;
420
427
  var _this = _super.call(this, msg) || this;
421
428
  _this.cause = cause;
422
429
  _this.name = "FetchError";
430
+ // restore prototype chain
431
+ var actualProto = _newTarget.prototype;
432
+ if (Object.setPrototypeOf) {
433
+ Object.setPrototypeOf(_this, actualProto);
434
+ }
423
435
  return _this;
424
436
  }
425
437
  return FetchError;
@@ -428,9 +440,15 @@ exports.FetchError = FetchError;
428
440
  var RequiredError = /** @class */ (function (_super) {
429
441
  __extends(RequiredError, _super);
430
442
  function RequiredError(field, msg) {
443
+ var _newTarget = this.constructor;
431
444
  var _this = _super.call(this, msg) || this;
432
445
  _this.field = field;
433
446
  _this.name = "RequiredError";
447
+ // restore prototype chain
448
+ var actualProto = _newTarget.prototype;
449
+ if (Object.setPrototypeOf) {
450
+ Object.setPrototypeOf(_this, actualProto);
451
+ }
434
452
  return _this;
435
453
  }
436
454
  return RequiredError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildberries-sdk",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "description": "Wildberries OpenAPI clients (generated).",
5
5
  "license": "MIT",
6
6
  "repository": {