@cinerino/sdk 12.2.0 → 12.3.0-alpha.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.
@@ -13,11 +13,12 @@ declare type IUnset<T extends factory.eventType> = {
13
13
  */
14
14
  export declare class EventService extends Service {
15
15
  /**
16
- * 上映イベント複数作成
16
+ * 興行イベント複数作成
17
17
  */
18
18
  createScreeningEvents(params: factory.event.ICreateParams<factory.eventType.ScreeningEvent>[], options: {
19
19
  superEventId: string;
20
20
  locationBranchCode: string;
21
+ hasTicketedSeat: boolean;
21
22
  }): Promise<void>;
22
23
  /**
23
24
  * イベント複数作成
@@ -39,13 +40,22 @@ export declare class EventService extends Service {
39
40
  id: string;
40
41
  typeOf: T;
41
42
  }): Promise<factory.event.IEvent<T>>;
43
+ /**
44
+ * 興行イベント更新
45
+ */
46
+ updateScreeningEventById(params: {
47
+ id: string;
48
+ attributes: factory.event.screeningEvent.IUpdateParams & {
49
+ $unset?: IUnset<factory.eventType.ScreeningEvent>;
50
+ };
51
+ }): Promise<void>;
42
52
  /**
43
53
  * イベント更新
44
54
  */
45
- updateById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
55
+ updateAnyEventById(params: {
46
56
  id: string;
47
- attributes: factory.event.IUpdateParams<T> & {
48
- $unset?: IUnset<T>;
57
+ attributes: factory.event.IUpdateParams<factory.eventType.Event> & {
58
+ $unset?: IUnset<factory.eventType.Event>;
49
59
  };
50
60
  }): Promise<void>;
51
61
  }
@@ -64,7 +64,7 @@ var EventService = /** @class */ (function (_super) {
64
64
  return _super !== null && _super.apply(this, arguments) || this;
65
65
  }
66
66
  /**
67
- * 上映イベント複数作成
67
+ * 興行イベント複数作成
68
68
  */
69
69
  EventService.prototype.createScreeningEvents = function (params,
70
70
  // add options(2025-08-26~)
@@ -164,10 +164,33 @@ var EventService = /** @class */ (function (_super) {
164
164
  });
165
165
  });
166
166
  };
167
+ /**
168
+ * 興行イベント更新
169
+ */
170
+ EventService.prototype.updateScreeningEventById = function (params) {
171
+ return __awaiter(this, void 0, void 0, function () {
172
+ return __generator(this, function (_a) {
173
+ switch (_a.label) {
174
+ case 0: return [4 /*yield*/, this.fetch({
175
+ uri: "/events/" + encodeURIComponent(String(params.id)),
176
+ method: 'PUT',
177
+ body: params.attributes,
178
+ qs: {
179
+ typeOf: factory.eventType.ScreeningEvent
180
+ },
181
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
182
+ })];
183
+ case 1:
184
+ _a.sent();
185
+ return [2 /*return*/];
186
+ }
187
+ });
188
+ });
189
+ };
167
190
  /**
168
191
  * イベント更新
169
192
  */
170
- EventService.prototype.updateById = function (params) {
193
+ EventService.prototype.updateAnyEventById = function (params) {
171
194
  return __awaiter(this, void 0, void 0, function () {
172
195
  return __generator(this, function (_a) {
173
196
  switch (_a.label) {
@@ -175,7 +198,9 @@ var EventService = /** @class */ (function (_super) {
175
198
  uri: "/events/" + encodeURIComponent(String(params.id)),
176
199
  method: 'PUT',
177
200
  body: params.attributes,
178
- // qs: params.qs,
201
+ qs: {
202
+ typeOf: factory.eventType.Event
203
+ },
179
204
  expectedStatusCodes: [http_status_1.NO_CONTENT]
180
205
  })];
181
206
  case 1:
package/lib/bundle.js CHANGED
@@ -9520,7 +9520,7 @@ var EventService = /** @class */ (function (_super) {
9520
9520
  return _super !== null && _super.apply(this, arguments) || this;
9521
9521
  }
9522
9522
  /**
9523
- * 上映イベント複数作成
9523
+ * 興行イベント複数作成
9524
9524
  */
9525
9525
  EventService.prototype.createScreeningEvents = function (params,
9526
9526
  // add options(2025-08-26~)
@@ -9620,10 +9620,33 @@ var EventService = /** @class */ (function (_super) {
9620
9620
  });
9621
9621
  });
9622
9622
  };
9623
+ /**
9624
+ * 興行イベント更新
9625
+ */
9626
+ EventService.prototype.updateScreeningEventById = function (params) {
9627
+ return __awaiter(this, void 0, void 0, function () {
9628
+ return __generator(this, function (_a) {
9629
+ switch (_a.label) {
9630
+ case 0: return [4 /*yield*/, this.fetch({
9631
+ uri: "/events/" + encodeURIComponent(String(params.id)),
9632
+ method: 'PUT',
9633
+ body: params.attributes,
9634
+ qs: {
9635
+ typeOf: factory.eventType.ScreeningEvent
9636
+ },
9637
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
9638
+ })];
9639
+ case 1:
9640
+ _a.sent();
9641
+ return [2 /*return*/];
9642
+ }
9643
+ });
9644
+ });
9645
+ };
9623
9646
  /**
9624
9647
  * イベント更新
9625
9648
  */
9626
- EventService.prototype.updateById = function (params) {
9649
+ EventService.prototype.updateAnyEventById = function (params) {
9627
9650
  return __awaiter(this, void 0, void 0, function () {
9628
9651
  return __generator(this, function (_a) {
9629
9652
  switch (_a.label) {
@@ -9631,7 +9654,9 @@ var EventService = /** @class */ (function (_super) {
9631
9654
  uri: "/events/" + encodeURIComponent(String(params.id)),
9632
9655
  method: 'PUT',
9633
9656
  body: params.attributes,
9634
- // qs: params.qs,
9657
+ qs: {
9658
+ typeOf: factory.eventType.Event
9659
+ },
9635
9660
  expectedStatusCodes: [http_status_1.NO_CONTENT]
9636
9661
  })];
9637
9662
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.2.0",
3
+ "version": "12.3.0-alpha.0",
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.397.0-alpha.0",
95
+ "@chevre/factory": "4.398.0-alpha.0",
96
96
  "debug": "3.2.7",
97
97
  "http-status": "1.7.4",
98
98
  "idtoken-verifier": "2.0.3",