@cinerino/sdk 3.162.0-alpha.7 → 3.162.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.
@@ -49,6 +49,20 @@ export declare class ReservationService extends Service {
49
49
  }): Promise<ISearchResult<IUseAction[]>>;
50
50
  /**
51
51
  * 予約取消
52
+ * 再定義(2023-08-01~)
52
53
  */
53
- cancel(params: factory.assetTransaction.cancelReservation.IStartParamsWithoutDetail & {}): Promise<void>;
54
+ cancel(params: {
55
+ agent: {
56
+ /**
57
+ * 取消人名称
58
+ */
59
+ name?: string;
60
+ };
61
+ object: {
62
+ /**
63
+ * 予約ID
64
+ */
65
+ id: string;
66
+ };
67
+ }): Promise<void>;
54
68
  }
@@ -53,6 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.ReservationService = void 0;
55
55
  var http_status_1 = require("http-status");
56
+ var factory = require("../factory");
56
57
  var service_1 = require("../service");
57
58
  /**
58
59
  * 予約サービス
@@ -141,13 +142,14 @@ var ReservationService = /** @class */ (function (_super) {
141
142
  };
142
143
  /**
143
144
  * 予約取消
145
+ * 再定義(2023-08-01~)
144
146
  */
145
147
  ReservationService.prototype.cancel = function (params) {
146
148
  return __awaiter(this, void 0, void 0, function () {
147
149
  return __generator(this, function (_a) {
148
150
  switch (_a.label) {
149
151
  case 0: return [4 /*yield*/, this.fetch({
150
- uri: '/reservations/cancel',
152
+ uri: "/reservations/" + String(params.object.id) + "/" + factory.reservationStatusType.ReservationCancelled,
151
153
  method: 'PUT',
152
154
  body: params,
153
155
  expectedStatusCodes: [http_status_1.NO_CONTENT]
package/lib/bundle.js CHANGED
@@ -13676,6 +13676,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13676
13676
  Object.defineProperty(exports, "__esModule", { value: true });
13677
13677
  exports.ReservationService = void 0;
13678
13678
  var http_status_1 = require("http-status");
13679
+ var factory = require("../factory");
13679
13680
  var service_1 = require("../service");
13680
13681
  /**
13681
13682
  * 予約サービス
@@ -13764,13 +13765,14 @@ var ReservationService = /** @class */ (function (_super) {
13764
13765
  };
13765
13766
  /**
13766
13767
  * 予約取消
13768
+ * 再定義(2023-08-01~)
13767
13769
  */
13768
13770
  ReservationService.prototype.cancel = function (params) {
13769
13771
  return __awaiter(this, void 0, void 0, function () {
13770
13772
  return __generator(this, function (_a) {
13771
13773
  switch (_a.label) {
13772
13774
  case 0: return [4 /*yield*/, this.fetch({
13773
- uri: '/reservations/cancel',
13775
+ uri: "/reservations/" + String(params.object.id) + "/" + factory.reservationStatusType.ReservationCancelled,
13774
13776
  method: 'PUT',
13775
13777
  body: params,
13776
13778
  expectedStatusCodes: [http_status_1.NO_CONTENT]
@@ -13786,7 +13788,7 @@ var ReservationService = /** @class */ (function (_super) {
13786
13788
  }(service_1.Service));
13787
13789
  exports.ReservationService = ReservationService;
13788
13790
 
13789
- },{"../service":64,"http-status":292}],84:[function(require,module,exports){
13791
+ },{"../factory":59,"../service":64,"http-status":292}],84:[function(require,module,exports){
13790
13792
  "use strict";
13791
13793
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13792
13794
  if (k2 === undefined) k2 = k;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.162.0-alpha.7",
3
+ "version": "3.162.0",
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
- "@chevre/factory": "4.319.0",
100
+ "@chevre/factory": "4.321.0",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",