@cinerino/sdk 10.21.0-alpha.33 → 10.21.0-alpha.35

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.
@@ -8656,6 +8656,24 @@ var PendingReservationService = /** @class */ (function (_super) {
8656
8656
  });
8657
8657
  });
8658
8658
  };
8659
+ PendingReservationService.prototype.projectSubReservationByReservationNumber = function (params) {
8660
+ return __awaiter(this, void 0, void 0, function () {
8661
+ var reservationNumber;
8662
+ var _this = this;
8663
+ return __generator(this, function (_a) {
8664
+ reservationNumber = params.reservationNumber;
8665
+ return [2 /*return*/, this.fetch({
8666
+ uri: "/pendingReservations/" + encodeURIComponent(String(reservationNumber.$eq)) + "/subReservation",
8667
+ method: 'GET',
8668
+ // qs: params,
8669
+ expectedStatusCodes: [http_status_1.OK]
8670
+ })
8671
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8672
+ return [2 /*return*/, response.json()];
8673
+ }); }); })];
8674
+ });
8675
+ });
8676
+ };
8659
8677
  return PendingReservationService;
8660
8678
  }(service_1.Service));
8661
8679
  exports.PendingReservationService = PendingReservationService;
@@ -77,6 +77,9 @@ export declare class EventService extends Service {
77
77
  };
78
78
  onlyValid?: boolean;
79
79
  includePotentialSpec?: boolean;
80
+ /**
81
+ * サブカタログに含まれるオファーを検索する場合、強制的にサブカタログの適用決済カード条件に変更されます
82
+ */
80
83
  priceSpecification: Pick<factory.unitPriceOffer.IPriceSpecificationSearchConditions, 'appliesToMovieTicket'>;
81
84
  includedInDataCatalog: {
82
85
  /**
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
3
+ declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
4
4
  /**
5
5
  * アイテム数
6
6
  */
@@ -10,10 +10,14 @@ export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOff
10
10
  */
11
11
  itemListElementTypeOf: factory.offerType.Offer | 'OfferCatalog';
12
12
  };
13
- export declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification'> & {
13
+ declare type IItemAsOffer = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification' | 'typeOf'> & {
14
14
  sortIndex?: number;
15
15
  };
16
- export interface ICreateResult {
16
+ declare type IItemAsOfferCatalog = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty' | 'relatedOffer'> & {
17
+ sortIndex?: number;
18
+ };
19
+ declare type IItemListElement = IItemAsOffer | IItemAsOfferCatalog;
20
+ interface ICreateResult {
17
21
  id: string;
18
22
  }
19
23
  /**
@@ -71,3 +75,4 @@ export declare class OfferCatalogService extends Service {
71
75
  sync2aggregateOffers(): Promise<void>;
72
76
  convert2offerCatalogItems(params: Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'identifier' | 'name'>): Promise<Pick<ICreateResult, 'id'>>;
73
77
  }
78
+ export {};
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty' | 'relatedOffer'> & {
3
+ declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty' | 'relatedOffer'> & {
4
4
  /**
5
5
  * アイテム数
6
6
  */
@@ -10,10 +10,10 @@ export declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOff
10
10
  */
11
11
  itemListElementTypeOf: factory.offerType.Offer;
12
12
  };
13
- export declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification'> & {
13
+ declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification' | 'typeOf'> & {
14
14
  sortIndex?: number;
15
15
  };
16
- export interface ICreateResult {
16
+ interface ICreateResult {
17
17
  id: string;
18
18
  }
19
19
  /**
@@ -61,3 +61,4 @@ export declare class OfferCatalogItemService extends Service {
61
61
  page?: number;
62
62
  }): Promise<IItemListElement[]>;
63
63
  }
64
+ export {};
@@ -14,6 +14,10 @@ interface IReservationPackage {
14
14
  expires: Date;
15
15
  subReservationCount: number;
16
16
  }
17
+ interface IProjectSubReservationResult {
18
+ identifier: string;
19
+ index: number;
20
+ }
17
21
  /**
18
22
  * 保留予約サービス
19
23
  */
@@ -45,5 +49,10 @@ export declare class PendingReservationService extends Service {
45
49
  };
46
50
  };
47
51
  }): Promise<IReservationPackage[]>;
52
+ projectSubReservationByReservationNumber(params: {
53
+ reservationNumber: {
54
+ $eq: string;
55
+ };
56
+ }): Promise<IProjectSubReservationResult[]>;
48
57
  }
49
58
  export {};
@@ -81,6 +81,24 @@ var PendingReservationService = /** @class */ (function (_super) {
81
81
  });
82
82
  });
83
83
  };
84
+ PendingReservationService.prototype.projectSubReservationByReservationNumber = function (params) {
85
+ return __awaiter(this, void 0, void 0, function () {
86
+ var reservationNumber;
87
+ var _this = this;
88
+ return __generator(this, function (_a) {
89
+ reservationNumber = params.reservationNumber;
90
+ return [2 /*return*/, this.fetch({
91
+ uri: "/pendingReservations/" + encodeURIComponent(String(reservationNumber.$eq)) + "/subReservation",
92
+ method: 'GET',
93
+ // qs: params,
94
+ expectedStatusCodes: [http_status_1.OK]
95
+ })
96
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
97
+ return [2 /*return*/, response.json()];
98
+ }); }); })];
99
+ });
100
+ });
101
+ };
84
102
  return PendingReservationService;
85
103
  }(service_1.Service));
86
104
  exports.PendingReservationService = PendingReservationService;
@@ -226,6 +226,9 @@ export declare class EventService extends Service {
226
226
  * 区分加算料金を適用しないオファーには含まれない
227
227
  */
228
228
  includePotentialSpec?: boolean;
229
+ /**
230
+ * サブカタログに含まれるオファーを検索する場合、強制的にサブカタログの適用決済カード条件に変更されます
231
+ */
229
232
  priceSpecification?: {
230
233
  /**
231
234
  * 適用決済カード条件
package/lib/bundle.js CHANGED
@@ -10018,6 +10018,24 @@ var PendingReservationService = /** @class */ (function (_super) {
10018
10018
  });
10019
10019
  });
10020
10020
  };
10021
+ PendingReservationService.prototype.projectSubReservationByReservationNumber = function (params) {
10022
+ return __awaiter(this, void 0, void 0, function () {
10023
+ var reservationNumber;
10024
+ var _this = this;
10025
+ return __generator(this, function (_a) {
10026
+ reservationNumber = params.reservationNumber;
10027
+ return [2 /*return*/, this.fetch({
10028
+ uri: "/pendingReservations/" + encodeURIComponent(String(reservationNumber.$eq)) + "/subReservation",
10029
+ method: 'GET',
10030
+ // qs: params,
10031
+ expectedStatusCodes: [http_status_1.OK]
10032
+ })
10033
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
10034
+ return [2 /*return*/, response.json()];
10035
+ }); }); })];
10036
+ });
10037
+ });
10038
+ };
10021
10039
  return PendingReservationService;
10022
10040
  }(service_1.Service));
10023
10041
  exports.PendingReservationService = PendingReservationService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "10.21.0-alpha.33",
3
+ "version": "10.21.0-alpha.35",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -92,7 +92,7 @@
92
92
  "watchify": "^3.11.1"
93
93
  },
94
94
  "dependencies": {
95
- "@chevre/factory": "4.393.0-alpha.48",
95
+ "@chevre/factory": "4.393.0-alpha.50",
96
96
  "debug": "3.2.7",
97
97
  "http-status": "1.7.4",
98
98
  "idtoken-verifier": "2.0.3",