@cinerino/sdk 3.31.0 → 3.31.1

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.
@@ -7877,17 +7877,18 @@ var OrderService = /** @class */ (function (_super) {
7877
7877
  */
7878
7878
  OrderService.prototype.deliverOrder = function (params) {
7879
7879
  return __awaiter(this, void 0, void 0, function () {
7880
- var _this = this;
7881
7880
  return __generator(this, function (_a) {
7882
- return [2 /*return*/, this.fetch({
7883
- uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderDelivered,
7884
- method: 'PUT',
7885
- body: params,
7886
- expectedStatusCodes: [http_status_1.OK]
7887
- })
7888
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7889
- return [2 /*return*/, response.json()];
7890
- }); }); })];
7881
+ switch (_a.label) {
7882
+ case 0: return [4 /*yield*/, this.fetch({
7883
+ uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderDelivered,
7884
+ method: 'PUT',
7885
+ body: params,
7886
+ expectedStatusCodes: [http_status_1.NO_CONTENT, http_status_1.OK]
7887
+ })];
7888
+ case 1:
7889
+ _a.sent();
7890
+ return [2 /*return*/];
7891
+ }
7891
7892
  });
7892
7893
  });
7893
7894
  };
@@ -7896,17 +7897,18 @@ var OrderService = /** @class */ (function (_super) {
7896
7897
  */
7897
7898
  OrderService.prototype.returnOrder = function (params) {
7898
7899
  return __awaiter(this, void 0, void 0, function () {
7899
- var _this = this;
7900
7900
  return __generator(this, function (_a) {
7901
- return [2 /*return*/, this.fetch({
7902
- uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderReturned,
7903
- method: 'PUT',
7904
- body: params,
7905
- expectedStatusCodes: [http_status_1.OK]
7906
- })
7907
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7908
- return [2 /*return*/, response.json()];
7909
- }); }); })];
7901
+ switch (_a.label) {
7902
+ case 0: return [4 /*yield*/, this.fetch({
7903
+ uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderReturned,
7904
+ method: 'PUT',
7905
+ body: params,
7906
+ expectedStatusCodes: [http_status_1.NO_CONTENT, http_status_1.OK]
7907
+ })];
7908
+ case 1:
7909
+ _a.sent();
7910
+ return [2 /*return*/];
7911
+ }
7910
7912
  });
7911
7913
  });
7912
7914
  };
package/lib/bundle.js CHANGED
@@ -7877,17 +7877,18 @@ var OrderService = /** @class */ (function (_super) {
7877
7877
  */
7878
7878
  OrderService.prototype.deliverOrder = function (params) {
7879
7879
  return __awaiter(this, void 0, void 0, function () {
7880
- var _this = this;
7881
7880
  return __generator(this, function (_a) {
7882
- return [2 /*return*/, this.fetch({
7883
- uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderDelivered,
7884
- method: 'PUT',
7885
- body: params,
7886
- expectedStatusCodes: [http_status_1.OK]
7887
- })
7888
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7889
- return [2 /*return*/, response.json()];
7890
- }); }); })];
7881
+ switch (_a.label) {
7882
+ case 0: return [4 /*yield*/, this.fetch({
7883
+ uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderDelivered,
7884
+ method: 'PUT',
7885
+ body: params,
7886
+ expectedStatusCodes: [http_status_1.NO_CONTENT, http_status_1.OK]
7887
+ })];
7888
+ case 1:
7889
+ _a.sent();
7890
+ return [2 /*return*/];
7891
+ }
7891
7892
  });
7892
7893
  });
7893
7894
  };
@@ -7896,17 +7897,18 @@ var OrderService = /** @class */ (function (_super) {
7896
7897
  */
7897
7898
  OrderService.prototype.returnOrder = function (params) {
7898
7899
  return __awaiter(this, void 0, void 0, function () {
7899
- var _this = this;
7900
7900
  return __generator(this, function (_a) {
7901
- return [2 /*return*/, this.fetch({
7902
- uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderReturned,
7903
- method: 'PUT',
7904
- body: params,
7905
- expectedStatusCodes: [http_status_1.OK]
7906
- })
7907
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
7908
- return [2 /*return*/, response.json()];
7909
- }); }); })];
7901
+ switch (_a.label) {
7902
+ case 0: return [4 /*yield*/, this.fetch({
7903
+ uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderReturned,
7904
+ method: 'PUT',
7905
+ body: params,
7906
+ expectedStatusCodes: [http_status_1.NO_CONTENT, http_status_1.OK]
7907
+ })];
7908
+ case 1:
7909
+ _a.sent();
7910
+ return [2 /*return*/];
7911
+ }
7910
7912
  });
7911
7913
  });
7912
7914
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.31.0",
3
+ "version": "3.31.1",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -97,7 +97,7 @@
97
97
  "watchify": "^3.11.1"
98
98
  },
99
99
  "dependencies": {
100
- "@cinerino/api-abstract-client": "3.31.0",
100
+ "@cinerino/api-abstract-client": "3.31.1",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",