@cinerino/sdk 12.0.0 → 12.1.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,9 +13,18 @@ declare type IUnset<T extends factory.eventType> = {
13
13
  */
14
14
  export declare class EventService extends Service {
15
15
  /**
16
- * イベント作成(NO_CONTENT)
16
+ * 上映イベント複数作成
17
17
  */
18
- createWithNoResponse<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: factory.event.ICreateParams<T>[]): Promise<void>;
18
+ createScreeningEvents(params: factory.event.ICreateParams<factory.eventType.ScreeningEvent>[], options: {
19
+ superEventId: string;
20
+ locationBranchCode: string;
21
+ }): Promise<void>;
22
+ /**
23
+ * イベント複数作成
24
+ */
25
+ createAnyEvents(params: factory.event.ICreateParams<factory.eventType.Event>[], options: {
26
+ locationBranchCode: string;
27
+ }): Promise<void>;
19
28
  /**
20
29
  * イベント検索
21
30
  */
@@ -53,6 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.EventService = 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
  * イベントサービス
@@ -63,19 +64,59 @@ var EventService = /** @class */ (function (_super) {
63
64
  return _super !== null && _super.apply(this, arguments) || this;
64
65
  }
65
66
  /**
66
- * イベント作成(NO_CONTENT)
67
+ * 上映イベント複数作成
67
68
  */
68
- EventService.prototype.createWithNoResponse = function (params) {
69
+ EventService.prototype.createScreeningEvents = function (params,
70
+ // add options(2025-08-26~)
71
+ options) {
69
72
  return __awaiter(this, void 0, void 0, function () {
73
+ var superEventId, locationBranchCode;
70
74
  return __generator(this, function (_a) {
71
75
  switch (_a.label) {
72
- case 0: return [4 /*yield*/, this.fetch({
73
- uri: '/events',
74
- method: 'POST',
75
- body: params,
76
- qs: { expectsNoContent: '1' },
77
- expectedStatusCodes: [http_status_1.NO_CONTENT]
78
- })];
76
+ case 0:
77
+ superEventId = options.superEventId, locationBranchCode = options.locationBranchCode;
78
+ return [4 /*yield*/, this.fetch({
79
+ uri: '/events',
80
+ method: 'POST',
81
+ body: params,
82
+ qs: {
83
+ expectsNoContent: '1',
84
+ typeOf: factory.eventType.ScreeningEvent,
85
+ superEventId: superEventId,
86
+ locationBranchCode: locationBranchCode
87
+ },
88
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
89
+ })];
90
+ case 1:
91
+ _a.sent();
92
+ return [2 /*return*/];
93
+ }
94
+ });
95
+ });
96
+ };
97
+ /**
98
+ * イベント複数作成
99
+ */
100
+ EventService.prototype.createAnyEvents = function (params,
101
+ // add options(2025-08-26~)
102
+ options) {
103
+ return __awaiter(this, void 0, void 0, function () {
104
+ var locationBranchCode;
105
+ return __generator(this, function (_a) {
106
+ switch (_a.label) {
107
+ case 0:
108
+ locationBranchCode = options.locationBranchCode;
109
+ return [4 /*yield*/, this.fetch({
110
+ uri: '/events',
111
+ method: 'POST',
112
+ body: params,
113
+ qs: {
114
+ expectsNoContent: '1',
115
+ typeOf: factory.eventType.Event,
116
+ locationBranchCode: locationBranchCode
117
+ },
118
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
119
+ })];
79
120
  case 1:
80
121
  _a.sent();
81
122
  return [2 /*return*/];
package/lib/bundle.js CHANGED
@@ -9471,6 +9471,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
9471
9471
  Object.defineProperty(exports, "__esModule", { value: true });
9472
9472
  exports.EventService = void 0;
9473
9473
  var http_status_1 = require("http-status");
9474
+ var factory = require("../factory");
9474
9475
  var service_1 = require("../service");
9475
9476
  /**
9476
9477
  * イベントサービス
@@ -9481,19 +9482,59 @@ var EventService = /** @class */ (function (_super) {
9481
9482
  return _super !== null && _super.apply(this, arguments) || this;
9482
9483
  }
9483
9484
  /**
9484
- * イベント作成(NO_CONTENT)
9485
+ * 上映イベント複数作成
9485
9486
  */
9486
- EventService.prototype.createWithNoResponse = function (params) {
9487
+ EventService.prototype.createScreeningEvents = function (params,
9488
+ // add options(2025-08-26~)
9489
+ options) {
9487
9490
  return __awaiter(this, void 0, void 0, function () {
9491
+ var superEventId, locationBranchCode;
9488
9492
  return __generator(this, function (_a) {
9489
9493
  switch (_a.label) {
9490
- case 0: return [4 /*yield*/, this.fetch({
9491
- uri: '/events',
9492
- method: 'POST',
9493
- body: params,
9494
- qs: { expectsNoContent: '1' },
9495
- expectedStatusCodes: [http_status_1.NO_CONTENT]
9496
- })];
9494
+ case 0:
9495
+ superEventId = options.superEventId, locationBranchCode = options.locationBranchCode;
9496
+ return [4 /*yield*/, this.fetch({
9497
+ uri: '/events',
9498
+ method: 'POST',
9499
+ body: params,
9500
+ qs: {
9501
+ expectsNoContent: '1',
9502
+ typeOf: factory.eventType.ScreeningEvent,
9503
+ superEventId: superEventId,
9504
+ locationBranchCode: locationBranchCode
9505
+ },
9506
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
9507
+ })];
9508
+ case 1:
9509
+ _a.sent();
9510
+ return [2 /*return*/];
9511
+ }
9512
+ });
9513
+ });
9514
+ };
9515
+ /**
9516
+ * イベント複数作成
9517
+ */
9518
+ EventService.prototype.createAnyEvents = function (params,
9519
+ // add options(2025-08-26~)
9520
+ options) {
9521
+ return __awaiter(this, void 0, void 0, function () {
9522
+ var locationBranchCode;
9523
+ return __generator(this, function (_a) {
9524
+ switch (_a.label) {
9525
+ case 0:
9526
+ locationBranchCode = options.locationBranchCode;
9527
+ return [4 /*yield*/, this.fetch({
9528
+ uri: '/events',
9529
+ method: 'POST',
9530
+ body: params,
9531
+ qs: {
9532
+ expectsNoContent: '1',
9533
+ typeOf: factory.eventType.Event,
9534
+ locationBranchCode: locationBranchCode
9535
+ },
9536
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
9537
+ })];
9497
9538
  case 1:
9498
9539
  _a.sent();
9499
9540
  return [2 /*return*/];
@@ -9566,7 +9607,7 @@ var EventService = /** @class */ (function (_super) {
9566
9607
  }(service_1.Service));
9567
9608
  exports.EventService = EventService;
9568
9609
 
9569
- },{"../service":163,"http-status":440}],64:[function(require,module,exports){
9610
+ },{"../factory":158,"../service":163,"http-status":440}],64:[function(require,module,exports){
9570
9611
  "use strict";
9571
9612
  var __extends = (this && this.__extends) || (function () {
9572
9613
  var extendStatics = function (d, b) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.0.0",
3
+ "version": "12.1.0-alpha.0",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {