@cinerino/sdk 3.162.0 → 3.162.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.
@@ -4172,6 +4172,7 @@ var EventService = /** @class */ (function (_super) {
4172
4172
  uri: "/events/" + encodeURIComponent(String(params.id)),
4173
4173
  method: 'PUT',
4174
4174
  body: params.attributes,
4175
+ qs: params.qs,
4175
4176
  expectedStatusCodes: [http_status_1.NO_CONTENT]
4176
4177
  })];
4177
4178
  case 1:
@@ -13675,6 +13676,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13675
13676
  Object.defineProperty(exports, "__esModule", { value: true });
13676
13677
  exports.ReservationService = void 0;
13677
13678
  var http_status_1 = require("http-status");
13679
+ var factory = require("../factory");
13678
13680
  var service_1 = require("../service");
13679
13681
  /**
13680
13682
  * 予約サービス
@@ -13763,13 +13765,14 @@ var ReservationService = /** @class */ (function (_super) {
13763
13765
  };
13764
13766
  /**
13765
13767
  * 予約取消
13768
+ * 再定義(2023-08-01~)
13766
13769
  */
13767
13770
  ReservationService.prototype.cancel = function (params) {
13768
13771
  return __awaiter(this, void 0, void 0, function () {
13769
13772
  return __generator(this, function (_a) {
13770
13773
  switch (_a.label) {
13771
13774
  case 0: return [4 /*yield*/, this.fetch({
13772
- uri: '/reservations/cancel',
13775
+ uri: "/reservations/" + String(params.object.id) + "/" + factory.reservationStatusType.ReservationCancelled,
13773
13776
  method: 'PUT',
13774
13777
  body: params,
13775
13778
  expectedStatusCodes: [http_status_1.NO_CONTENT]
@@ -13785,7 +13788,7 @@ var ReservationService = /** @class */ (function (_super) {
13785
13788
  }(service_1.Service));
13786
13789
  exports.ReservationService = ReservationService;
13787
13790
 
13788
- },{"../service":64,"http-status":292}],84:[function(require,module,exports){
13791
+ },{"../factory":59,"../service":64,"http-status":292}],84:[function(require,module,exports){
13789
13792
  "use strict";
13790
13793
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13791
13794
  if (k2 === undefined) k2 = k;
@@ -2,7 +2,7 @@
2
2
  import * as client from '../../lib/index';
3
3
  import * as authAsAdmin from './auth/authAsAdmin';
4
4
 
5
- const project = { id: 'cinerino' };
5
+ const project = { id: String(process.env.PROJECT_ID) };
6
6
 
7
7
  async function main() {
8
8
  const authClient = await authAsAdmin.login();
@@ -17,14 +17,8 @@ async function main() {
17
17
  seller: { id: '' }
18
18
  });
19
19
  await reservationService.cancel({
20
- project: { id: project.id, typeOf: client.factory.organizationType.Project },
21
- typeOf: client.factory.assetTransactionType.CancelReservation,
22
- transactionNumber: 'xxx',
23
- agent: { typeOf: client.factory.personType.Person, id: 'xxx', name: 'sample' },
24
- object: {
25
- reservation: { id: 'CIN029375202258362-0' }
26
- },
27
- expires: new Date()
20
+ agent: { name: 'agentName' },
21
+ object: { id: 'reservationId' }
28
22
  });
29
23
  console.log('canceled');
30
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.162.0",
3
+ "version": "3.162.2",
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.321.0",
100
+ "@chevre/factory": "4.322.0",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",