@cinerino/sdk 3.167.0-alpha.1 → 3.167.0-alpha.11

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.
@@ -5228,7 +5228,7 @@ var FlgMember;
5228
5228
  FlgMember["Member"] = "1";
5229
5229
  })(FlgMember = exports.FlgMember || (exports.FlgMember = {}));
5230
5230
  /**
5231
- * オファーサービス
5231
+ * 単価オファーサービス
5232
5232
  */
5233
5233
  var OfferService = /** @class */ (function (_super) {
5234
5234
  __extends(OfferService, _super);
@@ -5282,21 +5282,6 @@ var OfferService = /** @class */ (function (_super) {
5282
5282
  });
5283
5283
  });
5284
5284
  };
5285
- OfferService.prototype.findById = function (params) {
5286
- return __awaiter(this, void 0, void 0, function () {
5287
- var _this = this;
5288
- return __generator(this, function (_a) {
5289
- return [2 /*return*/, this.fetch({
5290
- uri: "/offers/" + encodeURIComponent(String(params.id)),
5291
- method: 'GET',
5292
- expectedStatusCodes: [http_status_1.OK]
5293
- })
5294
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
5295
- return [2 /*return*/, response.json()];
5296
- }); }); })];
5297
- });
5298
- });
5299
- };
5300
5285
  /**
5301
5286
  * オファー更新
5302
5287
  */
@@ -5480,6 +5465,17 @@ var __extends = (this && this.__extends) || (function () {
5480
5465
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5481
5466
  };
5482
5467
  })();
5468
+ var __assign = (this && this.__assign) || function () {
5469
+ __assign = Object.assign || function(t) {
5470
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5471
+ s = arguments[i];
5472
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5473
+ t[p] = s[p];
5474
+ }
5475
+ return t;
5476
+ };
5477
+ return __assign.apply(this, arguments);
5478
+ };
5483
5479
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5484
5480
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5485
5481
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -5530,6 +5526,7 @@ var __rest = (this && this.__rest) || function (s, e) {
5530
5526
  Object.defineProperty(exports, "__esModule", { value: true });
5531
5527
  exports.OfferCatalogService = void 0;
5532
5528
  var http_status_1 = require("http-status");
5529
+ var factory = require("../factory");
5533
5530
  var service_1 = require("../service");
5534
5531
  /**
5535
5532
  * オファーカタログサービス
@@ -5559,17 +5556,50 @@ var OfferCatalogService = /** @class */ (function (_super) {
5559
5556
  });
5560
5557
  };
5561
5558
  /**
5562
- * オファーカタログ検索
5563
- * レスポンス最適化(2023-02-28~)
5559
+ * サブカタログ検索
5560
+ * 強制的にitemListElement.typeOf: { $eq: 'Offer' }
5564
5561
  */
5565
- OfferCatalogService.prototype.search = function (params) {
5562
+ OfferCatalogService.prototype.searchSubCatalogs = function (params) {
5566
5563
  return __awaiter(this, void 0, void 0, function () {
5564
+ var qs;
5567
5565
  var _this = this;
5568
5566
  return __generator(this, function (_a) {
5567
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
5569
5568
  return [2 /*return*/, this.fetch({
5570
5569
  uri: '/offerCatalogs',
5571
5570
  method: 'GET',
5572
- qs: params,
5571
+ qs: qs,
5572
+ expectedStatusCodes: [http_status_1.OK]
5573
+ })
5574
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
5575
+ var _a;
5576
+ return __generator(this, function (_b) {
5577
+ switch (_b.label) {
5578
+ case 0:
5579
+ _a = {};
5580
+ return [4 /*yield*/, response.json()];
5581
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
5582
+ _a)];
5583
+ }
5584
+ });
5585
+ }); })];
5586
+ });
5587
+ });
5588
+ };
5589
+ /**
5590
+ * カタログ(親)検索
5591
+ * 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
5592
+ */
5593
+ OfferCatalogService.prototype.searchCatalogs = function (params) {
5594
+ return __awaiter(this, void 0, void 0, function () {
5595
+ var qs;
5596
+ var _this = this;
5597
+ return __generator(this, function (_a) {
5598
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
5599
+ return [2 /*return*/, this.fetch({
5600
+ uri: '/catalogs',
5601
+ method: 'GET',
5602
+ qs: qs,
5573
5603
  expectedStatusCodes: [http_status_1.OK]
5574
5604
  })
5575
5605
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
@@ -5677,7 +5707,7 @@ var OfferCatalogService = /** @class */ (function (_super) {
5677
5707
  }(service_1.Service));
5678
5708
  exports.OfferCatalogService = OfferCatalogService;
5679
5709
 
5680
- },{"../service":65,"http-status":294}],34:[function(require,module,exports){
5710
+ },{"../factory":60,"../service":65,"http-status":294}],34:[function(require,module,exports){
5681
5711
  "use strict";
5682
5712
  var __extends = (this && this.__extends) || (function () {
5683
5713
  var extendStatics = function (d, b) {
@@ -108,4 +108,16 @@ export declare class EventService extends Service {
108
108
  searchSeats(params: {
109
109
  id: string;
110
110
  } & Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<ISearchResult<factory.place.seat.IPlaceWithOffer[]>>;
111
+ /**
112
+ * オファーで利用可能な適用決済カード条件を検索する
113
+ */
114
+ searchOfferAppliesToMovieTicket(params: {
115
+ limit?: number;
116
+ page?: number;
117
+ id: string;
118
+ availableAt?: {
119
+ id?: string;
120
+ };
121
+ onlyValid?: boolean;
122
+ }): Promise<Pick<factory.priceSpecification.unitPrice.IAppliesToMovieTicket, 'serviceOutput'>[]>;
111
123
  }
@@ -325,6 +325,27 @@ var EventService = /** @class */ (function (_super) {
325
325
  });
326
326
  });
327
327
  };
328
+ /**
329
+ * オファーで利用可能な適用決済カード条件を検索する
330
+ */
331
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
332
+ return __awaiter(this, void 0, void 0, function () {
333
+ var id, query;
334
+ var _this = this;
335
+ return __generator(this, function (_a) {
336
+ id = params.id, query = __rest(params, ["id"]);
337
+ return [2 /*return*/, this.fetch({
338
+ uri: "/events/" + encodeURIComponent(String(id)) + "/offers/appliesToMovieTicket",
339
+ method: 'GET',
340
+ qs: query,
341
+ expectedStatusCodes: [http_status_1.OK]
342
+ })
343
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
344
+ return [2 /*return*/, response.json()];
345
+ }); }); })];
346
+ });
347
+ });
348
+ };
328
349
  return EventService;
329
350
  }(service_1.Service));
330
351
  exports.EventService = EventService;
@@ -6,6 +6,12 @@ export interface IProjectionSearchConditions {
6
6
  [key in keyof factory.unitPriceOffer.IUnitPriceOffer]?: 0 | 1;
7
7
  };
8
8
  }
9
+ export declare type IUnitPriceOfferAsSearchResult = factory.unitPriceOffer.IUnitPriceOffer & {
10
+ offerIndex?: number;
11
+ parentOffer?: {
12
+ id?: string;
13
+ };
14
+ };
9
15
  export interface IPurpose {
10
16
  typeOf: factory.transactionType;
11
17
  id: string;
@@ -55,7 +61,7 @@ export interface ICOAPointOffer {
55
61
  flgMember?: FlgMember;
56
62
  }
57
63
  /**
58
- * オファーサービス
64
+ * 単価オファーサービス
59
65
  */
60
66
  export declare class OfferService extends Service {
61
67
  /**
@@ -65,10 +71,7 @@ export declare class OfferService extends Service {
65
71
  /**
66
72
  * オファー検索
67
73
  */
68
- search(params: Omit<factory.unitPriceOffer.ISearchConditions, 'project'> & IProjectionSearchConditions): Promise<ISearchResult<factory.unitPriceOffer.IUnitPriceOffer[]>>;
69
- findById(params: {
70
- id: string;
71
- }): Promise<factory.unitPriceOffer.IUnitPriceOffer>;
74
+ search(params: Omit<factory.unitPriceOffer.ISearchConditions, 'project'> & IProjectionSearchConditions): Promise<ISearchResult<IUnitPriceOfferAsSearchResult[]>>;
72
75
  /**
73
76
  * オファー更新
74
77
  */
@@ -89,7 +89,7 @@ var FlgMember;
89
89
  FlgMember["Member"] = "1";
90
90
  })(FlgMember = exports.FlgMember || (exports.FlgMember = {}));
91
91
  /**
92
- * オファーサービス
92
+ * 単価オファーサービス
93
93
  */
94
94
  var OfferService = /** @class */ (function (_super) {
95
95
  __extends(OfferService, _super);
@@ -143,21 +143,6 @@ var OfferService = /** @class */ (function (_super) {
143
143
  });
144
144
  });
145
145
  };
146
- OfferService.prototype.findById = function (params) {
147
- return __awaiter(this, void 0, void 0, function () {
148
- var _this = this;
149
- return __generator(this, function (_a) {
150
- return [2 /*return*/, this.fetch({
151
- uri: "/offers/" + encodeURIComponent(String(params.id)),
152
- method: 'GET',
153
- expectedStatusCodes: [http_status_1.OK]
154
- })
155
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
156
- return [2 /*return*/, response.json()];
157
- }); }); })];
158
- });
159
- });
160
- };
161
146
  /**
162
147
  * オファー更新
163
148
  */
@@ -1,7 +1,8 @@
1
1
  import * as factory from '../factory';
2
2
  import { ISearchResult, Service } from '../service';
3
- export declare type IOfferCatalogAsSearchResult = Omit<factory.offerCatalog.IOfferCatalog, 'itemListElement'> & {
3
+ export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
4
4
  numberOfItems?: number;
5
+ itemListElementTypeOf: factory.offerType.Offer | 'OfferCatalog';
5
6
  };
6
7
  export declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification'> & {
7
8
  sortIndex?: number;
@@ -16,10 +17,15 @@ export declare class OfferCatalogService extends Service {
16
17
  */
17
18
  create(params: factory.offerCatalog.IOfferCatalog): Promise<ICreateResult>;
18
19
  /**
19
- * オファーカタログ検索
20
- * レスポンス最適化(2023-02-28~)
20
+ * サブカタログ検索
21
+ * 強制的にitemListElement.typeOf: { $eq: 'Offer' }
21
22
  */
22
- search(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
23
+ searchSubCatalogs(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
24
+ /**
25
+ * カタログ(親)検索
26
+ * 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
27
+ */
28
+ searchCatalogs(params: Omit<factory.offerCatalog.ISearchConditions, 'project'>): Promise<ISearchResult<IOfferCatalogAsSearchResult[]>>;
23
29
  /**
24
30
  * オファーカタログ更新
25
31
  */
@@ -56,6 +62,5 @@ export declare class OfferCatalogService extends Service {
56
62
  id: string;
57
63
  limit?: number;
58
64
  page?: number;
59
- useOffersAsPrimary?: boolean;
60
65
  }): Promise<ISearchResult<IItemListElement[]>>;
61
66
  }
@@ -14,6 +14,17 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
17
28
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
29
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
30
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -64,6 +75,7 @@ var __rest = (this && this.__rest) || function (s, e) {
64
75
  Object.defineProperty(exports, "__esModule", { value: true });
65
76
  exports.OfferCatalogService = void 0;
66
77
  var http_status_1 = require("http-status");
78
+ var factory = require("../factory");
67
79
  var service_1 = require("../service");
68
80
  /**
69
81
  * オファーカタログサービス
@@ -93,17 +105,50 @@ var OfferCatalogService = /** @class */ (function (_super) {
93
105
  });
94
106
  };
95
107
  /**
96
- * オファーカタログ検索
97
- * レスポンス最適化(2023-02-28~)
108
+ * サブカタログ検索
109
+ * 強制的にitemListElement.typeOf: { $eq: 'Offer' }
98
110
  */
99
- OfferCatalogService.prototype.search = function (params) {
111
+ OfferCatalogService.prototype.searchSubCatalogs = function (params) {
100
112
  return __awaiter(this, void 0, void 0, function () {
113
+ var qs;
101
114
  var _this = this;
102
115
  return __generator(this, function (_a) {
116
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
103
117
  return [2 /*return*/, this.fetch({
104
118
  uri: '/offerCatalogs',
105
119
  method: 'GET',
106
- qs: params,
120
+ qs: qs,
121
+ expectedStatusCodes: [http_status_1.OK]
122
+ })
123
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
124
+ var _a;
125
+ return __generator(this, function (_b) {
126
+ switch (_b.label) {
127
+ case 0:
128
+ _a = {};
129
+ return [4 /*yield*/, response.json()];
130
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
131
+ _a)];
132
+ }
133
+ });
134
+ }); })];
135
+ });
136
+ });
137
+ };
138
+ /**
139
+ * カタログ(親)検索
140
+ * 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
141
+ */
142
+ OfferCatalogService.prototype.searchCatalogs = function (params) {
143
+ return __awaiter(this, void 0, void 0, function () {
144
+ var qs;
145
+ var _this = this;
146
+ return __generator(this, function (_a) {
147
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
148
+ return [2 /*return*/, this.fetch({
149
+ uri: '/catalogs',
150
+ method: 'GET',
151
+ qs: qs,
107
152
  expectedStatusCodes: [http_status_1.OK]
108
153
  })
109
154
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
@@ -147,7 +147,7 @@ export declare class EventService extends Service {
147
147
  event: {
148
148
  id: string;
149
149
  };
150
- }): Promise<factory.product.ITicketOffer[]>;
150
+ }): Promise<Omit<factory.product.ITicketOffer, 'availableAtOrFrom'>[]>;
151
151
  /**
152
152
  * イベントに対する券種オファー検索(COA券種)
153
153
  */
@@ -198,4 +198,17 @@ export declare class EventService extends Service {
198
198
  kbnEisyahousiki: string;
199
199
  };
200
200
  }): Promise<ICOATicketOffer[]>;
201
+ /**
202
+ * オファーで利用可能な適用決済カード条件を検索する
203
+ */
204
+ searchOfferAppliesToMovieTicket(params: {
205
+ limit?: number;
206
+ page?: number;
207
+ /**
208
+ * イベント
209
+ */
210
+ event: {
211
+ id: string;
212
+ };
213
+ }): Promise<Pick<factory.priceSpecification.unitPrice.IAppliesToMovieTicket, 'serviceOutput'>[]>;
201
214
  }
@@ -215,6 +215,25 @@ var EventService = /** @class */ (function (_super) {
215
215
  });
216
216
  });
217
217
  };
218
+ /**
219
+ * オファーで利用可能な適用決済カード条件を検索する
220
+ */
221
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
222
+ return __awaiter(this, void 0, void 0, function () {
223
+ var _this = this;
224
+ return __generator(this, function (_a) {
225
+ return [2 /*return*/, this.fetch({
226
+ uri: "/events/" + params.event.id + "/offers/appliesToMovieTicket",
227
+ method: 'GET',
228
+ expectedStatusCodes: [http_status_1.OK],
229
+ qs: params
230
+ })
231
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
232
+ return [2 /*return*/, response.json()];
233
+ }); }); })];
234
+ });
235
+ });
236
+ };
218
237
  return EventService;
219
238
  }(service_1.Service));
220
239
  exports.EventService = EventService;
@@ -23,5 +23,5 @@ export declare class ProductService extends Service {
23
23
  seller?: {
24
24
  id: string;
25
25
  };
26
- }): Promise<factory.product.ITicketOffer[]>;
26
+ }): Promise<Omit<factory.product.ITicketOffer, 'availableAtOrFrom'>[]>;
27
27
  }
package/lib/bundle.js CHANGED
@@ -4381,6 +4381,27 @@ var EventService = /** @class */ (function (_super) {
4381
4381
  });
4382
4382
  });
4383
4383
  };
4384
+ /**
4385
+ * オファーで利用可能な適用決済カード条件を検索する
4386
+ */
4387
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
4388
+ return __awaiter(this, void 0, void 0, function () {
4389
+ var id, query;
4390
+ var _this = this;
4391
+ return __generator(this, function (_a) {
4392
+ id = params.id, query = __rest(params, ["id"]);
4393
+ return [2 /*return*/, this.fetch({
4394
+ uri: "/events/" + encodeURIComponent(String(id)) + "/offers/appliesToMovieTicket",
4395
+ method: 'GET',
4396
+ qs: query,
4397
+ expectedStatusCodes: [http_status_1.OK]
4398
+ })
4399
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
4400
+ return [2 /*return*/, response.json()];
4401
+ }); }); })];
4402
+ });
4403
+ });
4404
+ };
4384
4405
  return EventService;
4385
4406
  }(service_1.Service));
4386
4407
  exports.EventService = EventService;
@@ -5228,7 +5249,7 @@ var FlgMember;
5228
5249
  FlgMember["Member"] = "1";
5229
5250
  })(FlgMember = exports.FlgMember || (exports.FlgMember = {}));
5230
5251
  /**
5231
- * オファーサービス
5252
+ * 単価オファーサービス
5232
5253
  */
5233
5254
  var OfferService = /** @class */ (function (_super) {
5234
5255
  __extends(OfferService, _super);
@@ -5282,21 +5303,6 @@ var OfferService = /** @class */ (function (_super) {
5282
5303
  });
5283
5304
  });
5284
5305
  };
5285
- OfferService.prototype.findById = function (params) {
5286
- return __awaiter(this, void 0, void 0, function () {
5287
- var _this = this;
5288
- return __generator(this, function (_a) {
5289
- return [2 /*return*/, this.fetch({
5290
- uri: "/offers/" + encodeURIComponent(String(params.id)),
5291
- method: 'GET',
5292
- expectedStatusCodes: [http_status_1.OK]
5293
- })
5294
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
5295
- return [2 /*return*/, response.json()];
5296
- }); }); })];
5297
- });
5298
- });
5299
- };
5300
5306
  /**
5301
5307
  * オファー更新
5302
5308
  */
@@ -5480,6 +5486,17 @@ var __extends = (this && this.__extends) || (function () {
5480
5486
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5481
5487
  };
5482
5488
  })();
5489
+ var __assign = (this && this.__assign) || function () {
5490
+ __assign = Object.assign || function(t) {
5491
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5492
+ s = arguments[i];
5493
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5494
+ t[p] = s[p];
5495
+ }
5496
+ return t;
5497
+ };
5498
+ return __assign.apply(this, arguments);
5499
+ };
5483
5500
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5484
5501
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5485
5502
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -5530,6 +5547,7 @@ var __rest = (this && this.__rest) || function (s, e) {
5530
5547
  Object.defineProperty(exports, "__esModule", { value: true });
5531
5548
  exports.OfferCatalogService = void 0;
5532
5549
  var http_status_1 = require("http-status");
5550
+ var factory = require("../factory");
5533
5551
  var service_1 = require("../service");
5534
5552
  /**
5535
5553
  * オファーカタログサービス
@@ -5559,17 +5577,50 @@ var OfferCatalogService = /** @class */ (function (_super) {
5559
5577
  });
5560
5578
  };
5561
5579
  /**
5562
- * オファーカタログ検索
5563
- * レスポンス最適化(2023-02-28~)
5580
+ * サブカタログ検索
5581
+ * 強制的にitemListElement.typeOf: { $eq: 'Offer' }
5564
5582
  */
5565
- OfferCatalogService.prototype.search = function (params) {
5583
+ OfferCatalogService.prototype.searchSubCatalogs = function (params) {
5566
5584
  return __awaiter(this, void 0, void 0, function () {
5585
+ var qs;
5567
5586
  var _this = this;
5568
5587
  return __generator(this, function (_a) {
5588
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: factory.offerType.Offer } }) });
5569
5589
  return [2 /*return*/, this.fetch({
5570
5590
  uri: '/offerCatalogs',
5571
5591
  method: 'GET',
5572
- qs: params,
5592
+ qs: qs,
5593
+ expectedStatusCodes: [http_status_1.OK]
5594
+ })
5595
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
5596
+ var _a;
5597
+ return __generator(this, function (_b) {
5598
+ switch (_b.label) {
5599
+ case 0:
5600
+ _a = {};
5601
+ return [4 /*yield*/, response.json()];
5602
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
5603
+ _a)];
5604
+ }
5605
+ });
5606
+ }); })];
5607
+ });
5608
+ });
5609
+ };
5610
+ /**
5611
+ * カタログ(親)検索
5612
+ * 強制的にitemListElement.typeOf: { $eq: 'OfferCatalog' }
5613
+ */
5614
+ OfferCatalogService.prototype.searchCatalogs = function (params) {
5615
+ return __awaiter(this, void 0, void 0, function () {
5616
+ var qs;
5617
+ var _this = this;
5618
+ return __generator(this, function (_a) {
5619
+ qs = __assign(__assign({}, params), { itemListElement: __assign(__assign({}, params.itemListElement), { typeOf: { $eq: 'OfferCatalog' } }) });
5620
+ return [2 /*return*/, this.fetch({
5621
+ uri: '/catalogs',
5622
+ method: 'GET',
5623
+ qs: qs,
5573
5624
  expectedStatusCodes: [http_status_1.OK]
5574
5625
  })
5575
5626
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
@@ -5677,7 +5728,7 @@ var OfferCatalogService = /** @class */ (function (_super) {
5677
5728
  }(service_1.Service));
5678
5729
  exports.OfferCatalogService = OfferCatalogService;
5679
5730
 
5680
- },{"../service":65,"http-status":294}],34:[function(require,module,exports){
5731
+ },{"../factory":60,"../service":65,"http-status":294}],34:[function(require,module,exports){
5681
5732
  "use strict";
5682
5733
  var __extends = (this && this.__extends) || (function () {
5683
5734
  var extendStatics = function (d, b) {
@@ -12071,6 +12122,25 @@ var EventService = /** @class */ (function (_super) {
12071
12122
  });
12072
12123
  });
12073
12124
  };
12125
+ /**
12126
+ * オファーで利用可能な適用決済カード条件を検索する
12127
+ */
12128
+ EventService.prototype.searchOfferAppliesToMovieTicket = function (params) {
12129
+ return __awaiter(this, void 0, void 0, function () {
12130
+ var _this = this;
12131
+ return __generator(this, function (_a) {
12132
+ return [2 /*return*/, this.fetch({
12133
+ uri: "/events/" + params.event.id + "/offers/appliesToMovieTicket",
12134
+ method: 'GET',
12135
+ expectedStatusCodes: [http_status_1.OK],
12136
+ qs: params
12137
+ })
12138
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
12139
+ return [2 /*return*/, response.json()];
12140
+ }); }); })];
12141
+ });
12142
+ });
12143
+ };
12074
12144
  return EventService;
12075
12145
  }(service_1.Service));
12076
12146
  exports.EventService = EventService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.167.0-alpha.1",
3
+ "version": "3.167.0-alpha.11",
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.329.0-alpha.7",
100
+ "@chevre/factory": "4.329.0",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",