@cinerino/sdk 12.0.0 → 12.1.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.
@@ -1105,6 +1105,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
1105
1105
  Object.defineProperty(exports, "__esModule", { value: true });
1106
1106
  exports.EventService = void 0;
1107
1107
  var http_status_1 = require("http-status");
1108
+ var factory = require("../factory");
1108
1109
  var service_1 = require("../service");
1109
1110
  /**
1110
1111
  * イベントサービス
@@ -1120,21 +1121,38 @@ var EventService = /** @class */ (function (_super) {
1120
1121
  * 存在すれば、一部属性を更新する(eventStatus,superEvent,offers.seller.makesOffer)
1121
1122
  */
1122
1123
  EventService.prototype.upsertManyByAdditionalProperty = function (params, options) {
1124
+ var _a, _b, _c, _d;
1123
1125
  return __awaiter(this, void 0, void 0, function () {
1124
- return __generator(this, function (_a) {
1125
- switch (_a.label) {
1126
- case 0: return [4 /*yield*/, this.fetch({
1127
- uri: '/events',
1128
- method: 'PUT',
1129
- body: params,
1130
- qs: {
1131
- filter: options.filter,
1132
- update: options.update === true
1133
- },
1134
- expectedStatusCodes: [http_status_1.NO_CONTENT]
1135
- })];
1126
+ var superEventId, locationBranchCode;
1127
+ return __generator(this, function (_e) {
1128
+ switch (_e.label) {
1129
+ case 0:
1130
+ if (!Array.isArray(params) || params.length === 0) {
1131
+ throw new factory.errors.ArgumentNull('body');
1132
+ }
1133
+ superEventId = (_b = (_a = params[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
1134
+ locationBranchCode = (_d = (_c = params[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
1135
+ if (typeof superEventId !== 'string' || superEventId === '') {
1136
+ throw new factory.errors.ArgumentNull('superEvent.id');
1137
+ }
1138
+ if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
1139
+ throw new factory.errors.ArgumentNull('location.branchCode');
1140
+ }
1141
+ return [4 /*yield*/, this.fetch({
1142
+ uri: '/events',
1143
+ method: 'PUT',
1144
+ body: params,
1145
+ qs: {
1146
+ filter: options.filter,
1147
+ update: options.update === true,
1148
+ typeOf: factory.eventType.ScreeningEvent,
1149
+ superEventId: superEventId,
1150
+ locationBranchCode: locationBranchCode // add query(2025-08-27~)
1151
+ },
1152
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
1153
+ })];
1136
1154
  case 1:
1137
- _a.sent();
1155
+ _e.sent();
1138
1156
  return [2 /*return*/];
1139
1157
  }
1140
1158
  });
@@ -1164,7 +1182,7 @@ var EventService = /** @class */ (function (_super) {
1164
1182
  }(service_1.Service));
1165
1183
  exports.EventService = EventService;
1166
1184
 
1167
- },{"../service":163,"http-status":440}],10:[function(require,module,exports){
1185
+ },{"../factory":158,"../service":163,"http-status":440}],10:[function(require,module,exports){
1168
1186
  "use strict";
1169
1187
  var __extends = (this && this.__extends) || (function () {
1170
1188
  var extendStatics = function (d, b) {
@@ -8017,6 +8035,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
8017
8035
  Object.defineProperty(exports, "__esModule", { value: true });
8018
8036
  exports.EventService = void 0;
8019
8037
  var http_status_1 = require("http-status");
8038
+ var factory = require("../factory");
8020
8039
  var service_1 = require("../service");
8021
8040
  /**
8022
8041
  * イベントサービス
@@ -8027,19 +8046,59 @@ var EventService = /** @class */ (function (_super) {
8027
8046
  return _super !== null && _super.apply(this, arguments) || this;
8028
8047
  }
8029
8048
  /**
8030
- * イベント作成(NO_CONTENT)
8049
+ * 上映イベント複数作成
8031
8050
  */
8032
- EventService.prototype.createWithNoResponse = function (params) {
8051
+ EventService.prototype.createScreeningEvents = function (params,
8052
+ // add options(2025-08-26~)
8053
+ options) {
8033
8054
  return __awaiter(this, void 0, void 0, function () {
8055
+ var superEventId, locationBranchCode;
8034
8056
  return __generator(this, function (_a) {
8035
8057
  switch (_a.label) {
8036
- case 0: return [4 /*yield*/, this.fetch({
8037
- uri: '/events',
8038
- method: 'POST',
8039
- body: params,
8040
- qs: { expectsNoContent: '1' },
8041
- expectedStatusCodes: [http_status_1.NO_CONTENT]
8042
- })];
8058
+ case 0:
8059
+ superEventId = options.superEventId, locationBranchCode = options.locationBranchCode;
8060
+ return [4 /*yield*/, this.fetch({
8061
+ uri: '/events',
8062
+ method: 'POST',
8063
+ body: params,
8064
+ qs: {
8065
+ expectsNoContent: '1',
8066
+ typeOf: factory.eventType.ScreeningEvent,
8067
+ superEventId: superEventId,
8068
+ locationBranchCode: locationBranchCode
8069
+ },
8070
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
8071
+ })];
8072
+ case 1:
8073
+ _a.sent();
8074
+ return [2 /*return*/];
8075
+ }
8076
+ });
8077
+ });
8078
+ };
8079
+ /**
8080
+ * イベント複数作成
8081
+ */
8082
+ EventService.prototype.createAnyEvents = function (params,
8083
+ // add options(2025-08-26~)
8084
+ options) {
8085
+ return __awaiter(this, void 0, void 0, function () {
8086
+ var locationBranchCode;
8087
+ return __generator(this, function (_a) {
8088
+ switch (_a.label) {
8089
+ case 0:
8090
+ locationBranchCode = options.locationBranchCode;
8091
+ return [4 /*yield*/, this.fetch({
8092
+ uri: '/events',
8093
+ method: 'POST',
8094
+ body: params,
8095
+ qs: {
8096
+ expectsNoContent: '1',
8097
+ typeOf: factory.eventType.Event,
8098
+ locationBranchCode: locationBranchCode
8099
+ },
8100
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
8101
+ })];
8043
8102
  case 1:
8044
8103
  _a.sent();
8045
8104
  return [2 /*return*/];
@@ -8112,7 +8171,7 @@ var EventService = /** @class */ (function (_super) {
8112
8171
  }(service_1.Service));
8113
8172
  exports.EventService = EventService;
8114
8173
 
8115
- },{"../service":163,"http-status":440}],53:[function(require,module,exports){
8174
+ },{"../factory":158,"../service":163,"http-status":440}],53:[function(require,module,exports){
8116
8175
  "use strict";
8117
8176
  var __extends = (this && this.__extends) || (function () {
8118
8177
  var extendStatics = function (d, b) {
@@ -18741,7 +18800,6 @@ exports.service = void 0;
18741
18800
  var ServiceFactory = require("../service");
18742
18801
  // import * as OrderServiceFactory from '../chevreAsset/order/factory';
18743
18802
  var categoryCode_1 = require("./service/categoryCode");
18744
- var creativeWork_1 = require("./service/creativeWork");
18745
18803
  var emailMessage_1 = require("./service/emailMessage");
18746
18804
  var event_1 = require("./service/event");
18747
18805
  var place_1 = require("./service/place");
@@ -18774,17 +18832,6 @@ var service;
18774
18832
  return CategoryCode;
18775
18833
  }(categoryCode_1.CategoryCodeService));
18776
18834
  service.CategoryCode = CategoryCode;
18777
- /**
18778
- * コンテンツサービス
18779
- */
18780
- var CreativeWork = /** @class */ (function (_super) {
18781
- __extends(CreativeWork, _super);
18782
- function CreativeWork() {
18783
- return _super !== null && _super.apply(this, arguments) || this;
18784
- }
18785
- return CreativeWork;
18786
- }(creativeWork_1.CreativeWorkService));
18787
- service.CreativeWork = CreativeWork;
18788
18835
  /**
18789
18836
  * Eメールメッセージサービス
18790
18837
  */
@@ -18845,7 +18892,7 @@ var service;
18845
18892
  service.Seller = Seller;
18846
18893
  })(service = exports.service || (exports.service = {}));
18847
18894
 
18848
- },{"../service":163,"./service/categoryCode":121,"./service/creativeWork":122,"./service/emailMessage":123,"./service/event":124,"./service/place":125,"./service/place/hasPOS":126,"./service/seller":127}],121:[function(require,module,exports){
18895
+ },{"../service":163,"./service/categoryCode":121,"./service/emailMessage":122,"./service/event":123,"./service/place":124,"./service/place/hasPOS":125,"./service/seller":126}],121:[function(require,module,exports){
18849
18896
  "use strict";
18850
18897
  var __extends = (this && this.__extends) || (function () {
18851
18898
  var extendStatics = function (d, b) {
@@ -19018,114 +19065,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
19018
19065
  }
19019
19066
  };
19020
19067
  Object.defineProperty(exports, "__esModule", { value: true });
19021
- exports.CreativeWorkService = void 0;
19022
- var http_status_1 = require("http-status");
19023
- var service_1 = require("../../service");
19024
- /**
19025
- * コンテンツサービス
19026
- */
19027
- var CreativeWorkService = /** @class */ (function (_super) {
19028
- __extends(CreativeWorkService, _super);
19029
- function CreativeWorkService(options) {
19030
- return _super.call(this, __assign(__assign({}, options), { retryableStatusCodes: [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED] })) || this;
19031
- }
19032
- /**
19033
- * コンテンツ検索
19034
- */
19035
- CreativeWorkService.prototype.searchMovies = function (params) {
19036
- return __awaiter(this, void 0, void 0, function () {
19037
- var _this = this;
19038
- return __generator(this, function (_a) {
19039
- return [2 /*return*/, this.fetch({
19040
- uri: '/creativeWorks/movie',
19041
- method: 'GET',
19042
- qs: params,
19043
- expectedStatusCodes: [http_status_1.OK]
19044
- })
19045
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
19046
- var _a;
19047
- return __generator(this, function (_b) {
19048
- switch (_b.label) {
19049
- case 0:
19050
- _a = {};
19051
- return [4 /*yield*/, response.json()];
19052
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
19053
- _a)];
19054
- }
19055
- });
19056
- }); })];
19057
- });
19058
- });
19059
- };
19060
- return CreativeWorkService;
19061
- }(service_1.Service));
19062
- exports.CreativeWorkService = CreativeWorkService;
19063
-
19064
- },{"../../service":163,"http-status":440}],123:[function(require,module,exports){
19065
- "use strict";
19066
- var __extends = (this && this.__extends) || (function () {
19067
- var extendStatics = function (d, b) {
19068
- extendStatics = Object.setPrototypeOf ||
19069
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19070
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19071
- return extendStatics(d, b);
19072
- };
19073
- return function (d, b) {
19074
- if (typeof b !== "function" && b !== null)
19075
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19076
- extendStatics(d, b);
19077
- function __() { this.constructor = d; }
19078
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19079
- };
19080
- })();
19081
- var __assign = (this && this.__assign) || function () {
19082
- __assign = Object.assign || function(t) {
19083
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19084
- s = arguments[i];
19085
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19086
- t[p] = s[p];
19087
- }
19088
- return t;
19089
- };
19090
- return __assign.apply(this, arguments);
19091
- };
19092
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19093
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19094
- return new (P || (P = Promise))(function (resolve, reject) {
19095
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19096
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19097
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19098
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19099
- });
19100
- };
19101
- var __generator = (this && this.__generator) || function (thisArg, body) {
19102
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
19103
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
19104
- function verb(n) { return function (v) { return step([n, v]); }; }
19105
- function step(op) {
19106
- if (f) throw new TypeError("Generator is already executing.");
19107
- while (_) try {
19108
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19109
- if (y = 0, t) op = [op[0] & 2, t.value];
19110
- switch (op[0]) {
19111
- case 0: case 1: t = op; break;
19112
- case 4: _.label++; return { value: op[1], done: false };
19113
- case 5: _.label++; y = op[1]; op = [0]; continue;
19114
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
19115
- default:
19116
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
19117
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
19118
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
19119
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
19120
- if (t[2]) _.ops.pop();
19121
- _.trys.pop(); continue;
19122
- }
19123
- op = body.call(thisArg, _);
19124
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
19125
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
19126
- }
19127
- };
19128
- Object.defineProperty(exports, "__esModule", { value: true });
19129
19068
  exports.EmailMessageService = void 0;
19130
19069
  var http_status_1 = require("http-status");
19131
19070
  var service_1 = require("../../service");
@@ -19169,7 +19108,7 @@ var EmailMessageService = /** @class */ (function (_super) {
19169
19108
  }(service_1.Service));
19170
19109
  exports.EmailMessageService = EmailMessageService;
19171
19110
 
19172
- },{"../../service":163,"http-status":440}],124:[function(require,module,exports){
19111
+ },{"../../service":163,"http-status":440}],123:[function(require,module,exports){
19173
19112
  "use strict";
19174
19113
  var __extends = (this && this.__extends) || (function () {
19175
19114
  var extendStatics = function (d, b) {
@@ -19570,7 +19509,7 @@ var EventService = /** @class */ (function (_super) {
19570
19509
  }(service_1.Service));
19571
19510
  exports.EventService = EventService;
19572
19511
 
19573
- },{"../../factory":158,"../../service":163,"http-status":440}],125:[function(require,module,exports){
19512
+ },{"../../factory":158,"../../service":163,"http-status":440}],124:[function(require,module,exports){
19574
19513
  "use strict";
19575
19514
  var __extends = (this && this.__extends) || (function () {
19576
19515
  var extendStatics = function (d, b) {
@@ -19763,7 +19702,7 @@ var PlaceService = /** @class */ (function (_super) {
19763
19702
  }(service_1.Service));
19764
19703
  exports.PlaceService = PlaceService;
19765
19704
 
19766
- },{"../../factory":158,"../../service":163,"http-status":440}],126:[function(require,module,exports){
19705
+ },{"../../factory":158,"../../service":163,"http-status":440}],125:[function(require,module,exports){
19767
19706
  "use strict";
19768
19707
  var __extends = (this && this.__extends) || (function () {
19769
19708
  var extendStatics = function (d, b) {
@@ -19863,7 +19802,7 @@ var HasPOSService = /** @class */ (function (_super) {
19863
19802
  }(service_1.Service));
19864
19803
  exports.HasPOSService = HasPOSService;
19865
19804
 
19866
- },{"../../../factory":158,"../../../service":163,"http-status":440}],127:[function(require,module,exports){
19805
+ },{"../../../factory":158,"../../../service":163,"http-status":440}],126:[function(require,module,exports){
19867
19806
  "use strict";
19868
19807
  var __extends = (this && this.__extends) || (function () {
19869
19808
  var extendStatics = function (d, b) {
@@ -20051,7 +19990,7 @@ var SellerService = /** @class */ (function (_super) {
20051
19990
  }(service_1.Service));
20052
19991
  exports.SellerService = SellerService;
20053
19992
 
20054
- },{"../../service":163,"http-status":440}],128:[function(require,module,exports){
19993
+ },{"../../service":163,"http-status":440}],127:[function(require,module,exports){
20055
19994
  "use strict";
20056
19995
  var __assign = (this && this.__assign) || function () {
20057
19996
  __assign = Object.assign || function(t) {
@@ -20364,7 +20303,7 @@ var CloudAdmin = /** @class */ (function () {
20364
20303
  }());
20365
20304
  exports.CloudAdmin = CloudAdmin;
20366
20305
 
20367
- },{"./admin/creativeWork":129,"./admin/customer":130,"./admin/event":131,"./admin/me":132,"./admin/note":133,"./admin/offer":134,"./admin/offerCatalog":135,"./admin/offerCatalogItem":136,"./admin/order":137,"./admin/product":138,"./admin/reservation":139,"./admin/seller":140}],129:[function(require,module,exports){
20306
+ },{"./admin/creativeWork":128,"./admin/customer":129,"./admin/event":130,"./admin/me":131,"./admin/note":132,"./admin/offer":133,"./admin/offerCatalog":134,"./admin/offerCatalogItem":135,"./admin/order":136,"./admin/product":137,"./admin/reservation":138,"./admin/seller":139}],128:[function(require,module,exports){
20368
20307
  "use strict";
20369
20308
  var __extends = (this && this.__extends) || (function () {
20370
20309
  var extendStatics = function (d, b) {
@@ -20464,7 +20403,7 @@ var CreativeWorkService = /** @class */ (function (_super) {
20464
20403
  }(service_1.Service));
20465
20404
  exports.CreativeWorkService = CreativeWorkService;
20466
20405
 
20467
- },{"../../index":159,"../../service":163}],130:[function(require,module,exports){
20406
+ },{"../../index":159,"../../service":163}],129:[function(require,module,exports){
20468
20407
  "use strict";
20469
20408
  var __extends = (this && this.__extends) || (function () {
20470
20409
  var extendStatics = function (d, b) {
@@ -20574,7 +20513,7 @@ var CustomerService = /** @class */ (function (_super) {
20574
20513
  }(service_1.Service));
20575
20514
  exports.CustomerService = CustomerService;
20576
20515
 
20577
- },{"../../index":159,"../../service":163}],131:[function(require,module,exports){
20516
+ },{"../../index":159,"../../service":163}],130:[function(require,module,exports){
20578
20517
  "use strict";
20579
20518
  var __extends = (this && this.__extends) || (function () {
20580
20519
  var extendStatics = function (d, b) {
@@ -20769,7 +20708,7 @@ var EventService = /** @class */ (function (_super) {
20769
20708
  }(service_1.Service));
20770
20709
  exports.EventService = EventService;
20771
20710
 
20772
- },{"../../factory":158,"../../index":159,"../../service":163}],132:[function(require,module,exports){
20711
+ },{"../../factory":158,"../../index":159,"../../service":163}],131:[function(require,module,exports){
20773
20712
  "use strict";
20774
20713
  var __extends = (this && this.__extends) || (function () {
20775
20714
  var extendStatics = function (d, b) {
@@ -20891,7 +20830,7 @@ var MeService = /** @class */ (function (_super) {
20891
20830
  }(service_1.Service));
20892
20831
  exports.MeService = MeService;
20893
20832
 
20894
- },{"../../index":159,"../../service":163}],133:[function(require,module,exports){
20833
+ },{"../../index":159,"../../service":163}],132:[function(require,module,exports){
20895
20834
  "use strict";
20896
20835
  var __extends = (this && this.__extends) || (function () {
20897
20836
  var extendStatics = function (d, b) {
@@ -21059,7 +20998,7 @@ var NoteService = /** @class */ (function (_super) {
21059
20998
  }(service_1.Service));
21060
20999
  exports.NoteService = NoteService;
21061
21000
 
21062
- },{"../../index":159,"../../service":163}],134:[function(require,module,exports){
21001
+ },{"../../index":159,"../../service":163}],133:[function(require,module,exports){
21063
21002
  "use strict";
21064
21003
  var __extends = (this && this.__extends) || (function () {
21065
21004
  var extendStatics = function (d, b) {
@@ -21248,7 +21187,7 @@ var OfferService = /** @class */ (function (_super) {
21248
21187
  }(service_1.Service));
21249
21188
  exports.OfferService = OfferService;
21250
21189
 
21251
- },{"../../factory":158,"../../index":159,"../../service":163}],135:[function(require,module,exports){
21190
+ },{"../../factory":158,"../../index":159,"../../service":163}],134:[function(require,module,exports){
21252
21191
  "use strict";
21253
21192
  var __extends = (this && this.__extends) || (function () {
21254
21193
  var extendStatics = function (d, b) {
@@ -21357,7 +21296,7 @@ var OfferCatalogService = /** @class */ (function (_super) {
21357
21296
  }(service_1.Service));
21358
21297
  exports.OfferCatalogService = OfferCatalogService;
21359
21298
 
21360
- },{"../../factory":158,"../../index":159,"../../service":163}],136:[function(require,module,exports){
21299
+ },{"../../factory":158,"../../index":159,"../../service":163}],135:[function(require,module,exports){
21361
21300
  "use strict";
21362
21301
  var __extends = (this && this.__extends) || (function () {
21363
21302
  var extendStatics = function (d, b) {
@@ -21492,7 +21431,7 @@ var OfferCatalogItemService = /** @class */ (function (_super) {
21492
21431
  }(service_1.Service));
21493
21432
  exports.OfferCatalogItemService = OfferCatalogItemService;
21494
21433
 
21495
- },{"../../index":159,"../../service":163}],137:[function(require,module,exports){
21434
+ },{"../../index":159,"../../service":163}],136:[function(require,module,exports){
21496
21435
  "use strict";
21497
21436
  var __extends = (this && this.__extends) || (function () {
21498
21437
  var extendStatics = function (d, b) {
@@ -21731,7 +21670,7 @@ var OrderService = /** @class */ (function (_super) {
21731
21670
  }(service_1.Service));
21732
21671
  exports.OrderService = OrderService;
21733
21672
 
21734
- },{"../../factory":158,"../../index":159,"../../service":163}],138:[function(require,module,exports){
21673
+ },{"../../factory":158,"../../index":159,"../../service":163}],137:[function(require,module,exports){
21735
21674
  "use strict";
21736
21675
  var __extends = (this && this.__extends) || (function () {
21737
21676
  var extendStatics = function (d, b) {
@@ -21839,7 +21778,7 @@ var ProductService = /** @class */ (function (_super) {
21839
21778
  }(service_1.Service));
21840
21779
  exports.ProductService = ProductService;
21841
21780
 
21842
- },{"../../factory":158,"../../index":159,"../../service":163}],139:[function(require,module,exports){
21781
+ },{"../../factory":158,"../../index":159,"../../service":163}],138:[function(require,module,exports){
21843
21782
  "use strict";
21844
21783
  var __extends = (this && this.__extends) || (function () {
21845
21784
  var extendStatics = function (d, b) {
@@ -22067,7 +22006,7 @@ var ReservationService = /** @class */ (function (_super) {
22067
22006
  }(service_1.Service));
22068
22007
  exports.ReservationService = ReservationService;
22069
22008
 
22070
- },{"../../factory":158,"../../index":159,"../../service":163}],140:[function(require,module,exports){
22009
+ },{"../../factory":158,"../../index":159,"../../service":163}],139:[function(require,module,exports){
22071
22010
  "use strict";
22072
22011
  var __extends = (this && this.__extends) || (function () {
22073
22012
  var extendStatics = function (d, b) {
@@ -22156,7 +22095,7 @@ var SellerService = /** @class */ (function (_super) {
22156
22095
  }(service_1.Service));
22157
22096
  exports.SellerService = SellerService;
22158
22097
 
22159
- },{"../../index":159,"../../service":163}],141:[function(require,module,exports){
22098
+ },{"../../index":159,"../../service":163}],140:[function(require,module,exports){
22160
22099
  "use strict";
22161
22100
  var __assign = (this && this.__assign) || function () {
22162
22101
  __assign = Object.assign || function(t) {
@@ -22333,7 +22272,7 @@ var CloudAsset = /** @class */ (function () {
22333
22272
  }());
22334
22273
  exports.CloudAsset = CloudAsset;
22335
22274
 
22336
- },{"../chevreAsset/order/factory":23,"./asset/delivery":142,"./asset/order":143,"./asset/reservation":144,"./asset/token":145,"http-status":440}],142:[function(require,module,exports){
22275
+ },{"../chevreAsset/order/factory":23,"./asset/delivery":141,"./asset/order":142,"./asset/reservation":143,"./asset/token":144,"http-status":440}],141:[function(require,module,exports){
22337
22276
  "use strict";
22338
22277
  var __extends = (this && this.__extends) || (function () {
22339
22278
  var extendStatics = function (d, b) {
@@ -22440,7 +22379,7 @@ var DeliveryService = /** @class */ (function (_super) {
22440
22379
  }(service_1.Service));
22441
22380
  exports.DeliveryService = DeliveryService;
22442
22381
 
22443
- },{"../../index":159,"../../service":163}],143:[function(require,module,exports){
22382
+ },{"../../index":159,"../../service":163}],142:[function(require,module,exports){
22444
22383
  "use strict";
22445
22384
  var __extends = (this && this.__extends) || (function () {
22446
22385
  var extendStatics = function (d, b) {
@@ -22742,7 +22681,7 @@ var OrderService = /** @class */ (function (_super) {
22742
22681
  }(service_1.Service));
22743
22682
  exports.OrderService = OrderService;
22744
22683
 
22745
- },{"../../index":159,"../../service":163}],144:[function(require,module,exports){
22684
+ },{"../../index":159,"../../service":163}],143:[function(require,module,exports){
22746
22685
  "use strict";
22747
22686
  var __extends = (this && this.__extends) || (function () {
22748
22687
  var extendStatics = function (d, b) {
@@ -22868,7 +22807,7 @@ var ReservationService = /** @class */ (function (_super) {
22868
22807
  }(service_1.Service));
22869
22808
  exports.ReservationService = ReservationService;
22870
22809
 
22871
- },{"../../index":159,"../../service":163}],145:[function(require,module,exports){
22810
+ },{"../../index":159,"../../service":163}],144:[function(require,module,exports){
22872
22811
  "use strict";
22873
22812
  var __extends = (this && this.__extends) || (function () {
22874
22813
  var extendStatics = function (d, b) {
@@ -22901,7 +22840,7 @@ var TokenService = /** @class */ (function (_super) {
22901
22840
  }(service_1.Service));
22902
22841
  exports.TokenService = TokenService;
22903
22842
 
22904
- },{"../../service":163}],146:[function(require,module,exports){
22843
+ },{"../../service":163}],145:[function(require,module,exports){
22905
22844
  "use strict";
22906
22845
  var __assign = (this && this.__assign) || function () {
22907
22846
  __assign = Object.assign || function(t) {
@@ -23002,7 +22941,7 @@ var CloudPay = /** @class */ (function () {
23002
22941
  }());
23003
22942
  exports.CloudPay = CloudPay;
23004
22943
 
23005
- },{"../chevrePay/payment/factory":100,"./pay/payment":147,"http-status":440}],147:[function(require,module,exports){
22944
+ },{"../chevrePay/payment/factory":100,"./pay/payment":146,"http-status":440}],146:[function(require,module,exports){
23006
22945
  "use strict";
23007
22946
  var __extends = (this && this.__extends) || (function () {
23008
22947
  var extendStatics = function (d, b) {
@@ -23647,7 +23586,7 @@ var PaymentService = /** @class */ (function (_super) {
23647
23586
  }(service_1.Service));
23648
23587
  exports.PaymentService = PaymentService;
23649
23588
 
23650
- },{"../../factory":158,"../../index":159,"../../service":163,"http-status":440}],148:[function(require,module,exports){
23589
+ },{"../../factory":158,"../../index":159,"../../service":163,"http-status":440}],147:[function(require,module,exports){
23651
23590
  "use strict";
23652
23591
  var __assign = (this && this.__assign) || function () {
23653
23592
  __assign = Object.assign || function(t) {
@@ -23705,6 +23644,9 @@ var http_status_1 = require("http-status");
23705
23644
  */
23706
23645
  var service;
23707
23646
  (function (service) {
23647
+ var CreativeWork;
23648
+ (function (CreativeWork) {
23649
+ })(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
23708
23650
  var PaymentProduct;
23709
23651
  (function (PaymentProduct) {
23710
23652
  })(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
@@ -23720,6 +23662,26 @@ var CloudSearch = /** @class */ (function () {
23720
23662
  function CloudSearch(options) {
23721
23663
  this.options = options;
23722
23664
  }
23665
+ /**
23666
+ * コンテンツサービスインスタンス生成
23667
+ */
23668
+ CloudSearch.prototype.createCreativeWorkInstance = function (params) {
23669
+ return __awaiter(this, void 0, void 0, function () {
23670
+ var _a;
23671
+ return __generator(this, function (_b) {
23672
+ switch (_b.label) {
23673
+ case 0:
23674
+ if (!(service.CreativeWork.svc === undefined)) return [3 /*break*/, 2];
23675
+ _a = service.CreativeWork;
23676
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/creativeWork'); })];
23677
+ case 1:
23678
+ _a.svc = (_b.sent()).CreativeWorkService;
23679
+ _b.label = 2;
23680
+ case 2: return [2 /*return*/, new service.CreativeWork.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
23681
+ }
23682
+ });
23683
+ });
23684
+ };
23723
23685
  /**
23724
23686
  * 決済商品サービスインスタンス生成
23725
23687
  */
@@ -23764,7 +23726,98 @@ var CloudSearch = /** @class */ (function () {
23764
23726
  }());
23765
23727
  exports.CloudSearch = CloudSearch;
23766
23728
 
23767
- },{"./search/paymentService":149,"./search/product":150,"http-status":440}],149:[function(require,module,exports){
23729
+ },{"./search/creativeWork":148,"./search/paymentService":149,"./search/product":150,"http-status":440}],148:[function(require,module,exports){
23730
+ "use strict";
23731
+ var __extends = (this && this.__extends) || (function () {
23732
+ var extendStatics = function (d, b) {
23733
+ extendStatics = Object.setPrototypeOf ||
23734
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23735
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
23736
+ return extendStatics(d, b);
23737
+ };
23738
+ return function (d, b) {
23739
+ if (typeof b !== "function" && b !== null)
23740
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
23741
+ extendStatics(d, b);
23742
+ function __() { this.constructor = d; }
23743
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23744
+ };
23745
+ })();
23746
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
23747
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23748
+ return new (P || (P = Promise))(function (resolve, reject) {
23749
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
23750
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
23751
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23752
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23753
+ });
23754
+ };
23755
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23756
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23757
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23758
+ function verb(n) { return function (v) { return step([n, v]); }; }
23759
+ function step(op) {
23760
+ if (f) throw new TypeError("Generator is already executing.");
23761
+ while (_) try {
23762
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
23763
+ if (y = 0, t) op = [op[0] & 2, t.value];
23764
+ switch (op[0]) {
23765
+ case 0: case 1: t = op; break;
23766
+ case 4: _.label++; return { value: op[1], done: false };
23767
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23768
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
23769
+ default:
23770
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
23771
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
23772
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
23773
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
23774
+ if (t[2]) _.ops.pop();
23775
+ _.trys.pop(); continue;
23776
+ }
23777
+ op = body.call(thisArg, _);
23778
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
23779
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
23780
+ }
23781
+ };
23782
+ Object.defineProperty(exports, "__esModule", { value: true });
23783
+ exports.CreativeWorkService = void 0;
23784
+ var http_status_1 = require("http-status");
23785
+ var service_1 = require("../../service");
23786
+ /**
23787
+ * コンテンツサービス
23788
+ */
23789
+ var CreativeWorkService = /** @class */ (function (_super) {
23790
+ __extends(CreativeWorkService, _super);
23791
+ function CreativeWorkService() {
23792
+ return _super !== null && _super.apply(this, arguments) || this;
23793
+ }
23794
+ // constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>) {
23795
+ // super({ ...options, retryableStatusCodes: [BAD_GATEWAY, FORBIDDEN, UNAUTHORIZED] });
23796
+ // }
23797
+ /**
23798
+ * コンテンツ検索
23799
+ */
23800
+ CreativeWorkService.prototype.findMovies = function (params) {
23801
+ return __awaiter(this, void 0, void 0, function () {
23802
+ var _this = this;
23803
+ return __generator(this, function (_a) {
23804
+ return [2 /*return*/, this.fetch({
23805
+ uri: '/creativeWorks/movie',
23806
+ method: 'GET',
23807
+ qs: params,
23808
+ expectedStatusCodes: [http_status_1.OK]
23809
+ })
23810
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
23811
+ return [2 /*return*/, response.json()];
23812
+ }); }); })];
23813
+ });
23814
+ });
23815
+ };
23816
+ return CreativeWorkService;
23817
+ }(service_1.Service));
23818
+ exports.CreativeWorkService = CreativeWorkService;
23819
+
23820
+ },{"../../service":163,"http-status":440}],149:[function(require,module,exports){
23768
23821
  "use strict";
23769
23822
  var __extends = (this && this.__extends) || (function () {
23770
23823
  var extendStatics = function (d, b) {
@@ -23915,7 +23968,7 @@ exports.ProductService = void 0;
23915
23968
  var http_status_1 = require("http-status");
23916
23969
  var service_1 = require("../../service");
23917
23970
  /**
23918
- * プロダクトサービス
23971
+ * プロダクト(興行、アドオンなど)サービス
23919
23972
  */
23920
23973
  var ProductService = /** @class */ (function (_super) {
23921
23974
  __extends(ProductService, _super);
@@ -23951,13 +24004,15 @@ var ProductService = /** @class */ (function (_super) {
23951
24004
  */
23952
24005
  ProductService.prototype.searchOffers = function (params) {
23953
24006
  return __awaiter(this, void 0, void 0, function () {
24007
+ var limit, page, itemOffered, seller;
23954
24008
  var _this = this;
23955
24009
  return __generator(this, function (_a) {
24010
+ limit = params.limit, page = params.page, itemOffered = params.itemOffered, seller = params.seller;
23956
24011
  return [2 /*return*/, this.fetch({
23957
24012
  uri: "/products/" + params.itemOffered.id + "/offers",
23958
24013
  method: 'GET',
23959
24014
  expectedStatusCodes: [http_status_1.OK],
23960
- qs: params
24015
+ qs: { limit: limit, page: page, itemOffered: itemOffered, seller: seller }
23961
24016
  })
23962
24017
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
23963
24018
  return [2 /*return*/, response.json()];
@@ -23970,12 +24025,14 @@ var ProductService = /** @class */ (function (_super) {
23970
24025
  */
23971
24026
  ProductService.prototype.searchProductModels = function (params) {
23972
24027
  return __awaiter(this, void 0, void 0, function () {
24028
+ var category, limit, page;
23973
24029
  var _this = this;
23974
24030
  return __generator(this, function (_a) {
24031
+ category = params.category, limit = params.limit, page = params.page;
23975
24032
  return [2 /*return*/, this.fetch({
23976
24033
  uri: '/productModels',
23977
24034
  method: 'GET',
23978
- qs: params,
24035
+ qs: { category: category, limit: limit, page: page },
23979
24036
  expectedStatusCodes: [http_status_1.OK]
23980
24037
  })
23981
24038
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -25719,7 +25776,7 @@ exports.loadWaiterAdmin = loadWaiterAdmin;
25719
25776
  // export class StubAuth extends StubAuthClient { }
25720
25777
  // }
25721
25778
 
25722
- },{"./chevre":3,"./chevreAdmin":4,"./chevreAsset":21,"./chevreConsole":29,"./chevrePay":98,"./chevreTxc":101,"./chevreTxn":103,"./cinerino/default":120,"./cloud/admin":128,"./cloud/asset":141,"./cloud/pay":146,"./cloud/search":148,"./cloud/txc":151,"./cloud/txn":154,"./factory":158,"./pecorino":160,"./transporters":164,"./waiterAdmin":165}],160:[function(require,module,exports){
25779
+ },{"./chevre":3,"./chevreAdmin":4,"./chevreAsset":21,"./chevreConsole":29,"./chevrePay":98,"./chevreTxc":101,"./chevreTxn":103,"./cinerino/default":120,"./cloud/admin":127,"./cloud/asset":140,"./cloud/pay":145,"./cloud/search":147,"./cloud/txc":151,"./cloud/txn":154,"./factory":158,"./pecorino":160,"./transporters":164,"./waiterAdmin":165}],160:[function(require,module,exports){
25723
25780
  "use strict";
25724
25781
  var __extends = (this && this.__extends) || (function () {
25725
25782
  var extendStatics = function (d, b) {
@@ -1,8 +1,8 @@
1
1
  // tslint:disable:no-console
2
2
  // tslint:disable-next-line:no-implicit-dependencies
3
3
  import * as moment from 'moment';
4
- import * as client from '../../../lib/index';
5
- import * as auth from '../auth/authAsAdmin';
4
+ import * as client from '../../../../lib/index';
5
+ import * as auth from '../../auth/authAsAdmin';
6
6
 
7
7
  const PROJECT_ID = String(process.env.PROJECT_ID);
8
8
  const SELLER_ID = '59d20831e53ebc2b4e774466';
@@ -33,11 +33,11 @@ async function main() {
33
33
  typeOf: client.factory.organizationType.Project,
34
34
  id: PROJECT_ID
35
35
  },
36
- doorTime: moment('2024-12-20T07:00:00.000Z')
36
+ doorTime: moment('2025-08-27T07:00:00.000Z')
37
37
  .toDate(),
38
- startDate: moment('2024-12-20T07:00:00.000Z')
38
+ startDate: moment('2025-08-27T07:00:00.000Z')
39
39
  .toDate(),
40
- endDate: moment('2024-12-20T07:10:00.000Z')
40
+ endDate: moment('2025-08-27T07:10:00.000Z')
41
41
  .toDate(),
42
42
  eventStatus: client.factory.eventStatusType.EventScheduled,
43
43
  additionalProperty: [
@@ -66,13 +66,13 @@ async function main() {
66
66
  {
67
67
  typeOf: client.factory.offerType.Offer,
68
68
  availableAtOrFrom: { id: AVAILABLE_AT_OR_FROM_ID }, // <-販売アプリケーションIDを指定する
69
- availabilityStarts: moment('2024-12-20T00:00:00.000Z')
69
+ availabilityStarts: moment('2025-08-27T00:00:00.000Z')
70
70
  .toDate(),
71
- availabilityEnds: moment('2024-12-20T00:00:00.000Z')
71
+ availabilityEnds: moment('2025-08-27T00:00:00.000Z')
72
72
  .toDate(),
73
- validFrom: moment('2024-12-20T00:00:00.000Z')
73
+ validFrom: moment('2025-08-27T00:00:00.000Z')
74
74
  .toDate(),
75
- validThrough: moment('2024-12-20T15:00:00.000Z')
75
+ validThrough: moment('2025-08-27T15:00:00.000Z')
76
76
  .toDate()
77
77
  }
78
78
  ]
@@ -17,6 +17,7 @@ const paymentServiceId = '664d98376fb87922bd6a4e52';
17
17
  // 取引に使用するクレジットカード
18
18
  const creditCard: client.factory.paymentMethod.paymentCard.creditCard.IUncheckedCardRaw = {
19
19
  cardNo: '4100000000000100',
20
+ // cardNo: '4111111111111111',
20
21
  expire: '2812',
21
22
  cardPass: '123',
22
23
  holderName: 'AA AA'
@@ -430,6 +431,7 @@ function publishPaymentUrlAsyncForcibly(params: {
430
431
  sameAs: { id: acceptTask.id },
431
432
  purpose: params.purpose
432
433
  });
434
+ console.log('findAcceptPayAction result:', acceptAction);
433
435
 
434
436
  // CompletedActionStatusであればタスク完了とみなす
435
437
  if (acceptAction.actionStatus === client.factory.actionStatusType.CompletedActionStatus
@@ -513,6 +515,7 @@ function authorizeCreditCardAsyncForcibly(params: {
513
515
  },
514
516
  purpose: params.purpose
515
517
  });
518
+ console.log('findAuthorizeAction result:', authorizeAction);
516
519
 
517
520
  // アクションIDが存在し、CompletedActionStatusであればタスク完了とみなす
518
521
  if (typeof authorizeAction.id === 'string') {
@@ -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
  * イベントサービス
@@ -68,21 +69,38 @@ var EventService = /** @class */ (function (_super) {
68
69
  * 存在すれば、一部属性を更新する(eventStatus,superEvent,offers.seller.makesOffer)
69
70
  */
70
71
  EventService.prototype.upsertManyByAdditionalProperty = function (params, options) {
72
+ var _a, _b, _c, _d;
71
73
  return __awaiter(this, void 0, void 0, function () {
72
- return __generator(this, function (_a) {
73
- switch (_a.label) {
74
- case 0: return [4 /*yield*/, this.fetch({
75
- uri: '/events',
76
- method: 'PUT',
77
- body: params,
78
- qs: {
79
- filter: options.filter,
80
- update: options.update === true
81
- },
82
- expectedStatusCodes: [http_status_1.NO_CONTENT]
83
- })];
74
+ var superEventId, locationBranchCode;
75
+ return __generator(this, function (_e) {
76
+ switch (_e.label) {
77
+ case 0:
78
+ if (!Array.isArray(params) || params.length === 0) {
79
+ throw new factory.errors.ArgumentNull('body');
80
+ }
81
+ superEventId = (_b = (_a = params[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
82
+ locationBranchCode = (_d = (_c = params[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
83
+ if (typeof superEventId !== 'string' || superEventId === '') {
84
+ throw new factory.errors.ArgumentNull('superEvent.id');
85
+ }
86
+ if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
87
+ throw new factory.errors.ArgumentNull('location.branchCode');
88
+ }
89
+ return [4 /*yield*/, this.fetch({
90
+ uri: '/events',
91
+ method: 'PUT',
92
+ body: params,
93
+ qs: {
94
+ filter: options.filter,
95
+ update: options.update === true,
96
+ typeOf: factory.eventType.ScreeningEvent,
97
+ superEventId: superEventId,
98
+ locationBranchCode: locationBranchCode // add query(2025-08-27~)
99
+ },
100
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
101
+ })];
84
102
  case 1:
85
- _a.sent();
103
+ _e.sent();
86
104
  return [2 /*return*/];
87
105
  }
88
106
  });
@@ -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*/];
@@ -66,3 +66,24 @@ export interface ITicket {
66
66
  */
67
67
  ticketToken: string;
68
68
  }
69
+ export interface IFindAcceptActionResult {
70
+ /**
71
+ * アクションステータス
72
+ */
73
+ actionStatus: factory.actionStatusType;
74
+ object?: {
75
+ /**
76
+ * 決済取引番号
77
+ * 値が存在すれば、決済代行へリクエストされた可能性がある。
78
+ */
79
+ transactionNumber: string;
80
+ };
81
+ /**
82
+ * エラー
83
+ */
84
+ error?: {
85
+ name?: string;
86
+ message?: string;
87
+ };
88
+ result?: IPublishPaymentUrlResult;
89
+ }
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizePaymentCardObject, IAuthorizeResult, ICheckMovieTicketResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPublishPaymentUrlResult, IPurpose, ITicket } from './payment/factory';
3
+ import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizePaymentCardObject, IAuthorizeResult, ICheckMovieTicketResult, IFindAcceptActionResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPurpose, ITicket } from './payment/factory';
4
4
  /**
5
5
  * 決済サービス
6
6
  */
@@ -180,20 +180,7 @@ export declare class PaymentService extends Service {
180
180
  id: string;
181
181
  };
182
182
  purpose: IPurpose;
183
- }): Promise<{
184
- /**
185
- * アクションステータス
186
- */
187
- actionStatus: factory.actionStatusType;
188
- /**
189
- * エラー
190
- */
191
- error?: {
192
- name?: string;
193
- message?: string;
194
- };
195
- result?: IPublishPaymentUrlResult;
196
- }>;
183
+ }): Promise<IFindAcceptActionResult>;
197
184
  issueTicketThroughFaceToFace(params: {
198
185
  purpose: IPurpose;
199
186
  }): Promise<ITicket>;
@@ -1,4 +1,4 @@
1
- import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizeResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPublishPaymentUrlResult, IPurpose, ITicket } from '../../chevrePay/payment/factory';
1
+ import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizeResult, IFindAcceptActionResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPurpose, ITicket } from '../../chevrePay/payment/factory';
2
2
  import * as factory from '../../factory';
3
3
  import { Service } from '../../service';
4
4
  /**
@@ -149,20 +149,7 @@ export declare class PaymentService extends Service {
149
149
  id: string;
150
150
  };
151
151
  purpose: IPurpose;
152
- }): Promise<{
153
- /**
154
- * アクションステータス
155
- */
156
- actionStatus: factory.actionStatusType;
157
- /**
158
- * エラー
159
- */
160
- error?: {
161
- name?: string;
162
- message?: string;
163
- };
164
- result?: IPublishPaymentUrlResult;
165
- }>;
152
+ }): Promise<IFindAcceptActionResult>;
166
153
  /**
167
154
  * 決済カード認証アクション検索
168
155
  */
package/lib/bundle.js CHANGED
@@ -2559,6 +2559,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
2559
2559
  Object.defineProperty(exports, "__esModule", { value: true });
2560
2560
  exports.EventService = void 0;
2561
2561
  var http_status_1 = require("http-status");
2562
+ var factory = require("../factory");
2562
2563
  var service_1 = require("../service");
2563
2564
  /**
2564
2565
  * イベントサービス
@@ -2574,21 +2575,38 @@ var EventService = /** @class */ (function (_super) {
2574
2575
  * 存在すれば、一部属性を更新する(eventStatus,superEvent,offers.seller.makesOffer)
2575
2576
  */
2576
2577
  EventService.prototype.upsertManyByAdditionalProperty = function (params, options) {
2578
+ var _a, _b, _c, _d;
2577
2579
  return __awaiter(this, void 0, void 0, function () {
2578
- return __generator(this, function (_a) {
2579
- switch (_a.label) {
2580
- case 0: return [4 /*yield*/, this.fetch({
2581
- uri: '/events',
2582
- method: 'PUT',
2583
- body: params,
2584
- qs: {
2585
- filter: options.filter,
2586
- update: options.update === true
2587
- },
2588
- expectedStatusCodes: [http_status_1.NO_CONTENT]
2589
- })];
2580
+ var superEventId, locationBranchCode;
2581
+ return __generator(this, function (_e) {
2582
+ switch (_e.label) {
2583
+ case 0:
2584
+ if (!Array.isArray(params) || params.length === 0) {
2585
+ throw new factory.errors.ArgumentNull('body');
2586
+ }
2587
+ superEventId = (_b = (_a = params[0]) === null || _a === void 0 ? void 0 : _a.superEvent) === null || _b === void 0 ? void 0 : _b.id;
2588
+ locationBranchCode = (_d = (_c = params[0]) === null || _c === void 0 ? void 0 : _c.location) === null || _d === void 0 ? void 0 : _d.branchCode;
2589
+ if (typeof superEventId !== 'string' || superEventId === '') {
2590
+ throw new factory.errors.ArgumentNull('superEvent.id');
2591
+ }
2592
+ if (typeof locationBranchCode !== 'string' || locationBranchCode === '') {
2593
+ throw new factory.errors.ArgumentNull('location.branchCode');
2594
+ }
2595
+ return [4 /*yield*/, this.fetch({
2596
+ uri: '/events',
2597
+ method: 'PUT',
2598
+ body: params,
2599
+ qs: {
2600
+ filter: options.filter,
2601
+ update: options.update === true,
2602
+ typeOf: factory.eventType.ScreeningEvent,
2603
+ superEventId: superEventId,
2604
+ locationBranchCode: locationBranchCode // add query(2025-08-27~)
2605
+ },
2606
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
2607
+ })];
2590
2608
  case 1:
2591
- _a.sent();
2609
+ _e.sent();
2592
2610
  return [2 /*return*/];
2593
2611
  }
2594
2612
  });
@@ -2618,7 +2636,7 @@ var EventService = /** @class */ (function (_super) {
2618
2636
  }(service_1.Service));
2619
2637
  exports.EventService = EventService;
2620
2638
 
2621
- },{"../service":163,"http-status":440}],21:[function(require,module,exports){
2639
+ },{"../factory":158,"../service":163,"http-status":440}],21:[function(require,module,exports){
2622
2640
  "use strict";
2623
2641
  var __extends = (this && this.__extends) || (function () {
2624
2642
  var extendStatics = function (d, b) {
@@ -9471,6 +9489,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
9471
9489
  Object.defineProperty(exports, "__esModule", { value: true });
9472
9490
  exports.EventService = void 0;
9473
9491
  var http_status_1 = require("http-status");
9492
+ var factory = require("../factory");
9474
9493
  var service_1 = require("../service");
9475
9494
  /**
9476
9495
  * イベントサービス
@@ -9481,19 +9500,59 @@ var EventService = /** @class */ (function (_super) {
9481
9500
  return _super !== null && _super.apply(this, arguments) || this;
9482
9501
  }
9483
9502
  /**
9484
- * イベント作成(NO_CONTENT)
9503
+ * 上映イベント複数作成
9485
9504
  */
9486
- EventService.prototype.createWithNoResponse = function (params) {
9505
+ EventService.prototype.createScreeningEvents = function (params,
9506
+ // add options(2025-08-26~)
9507
+ options) {
9487
9508
  return __awaiter(this, void 0, void 0, function () {
9509
+ var superEventId, locationBranchCode;
9488
9510
  return __generator(this, function (_a) {
9489
9511
  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
- })];
9512
+ case 0:
9513
+ superEventId = options.superEventId, locationBranchCode = options.locationBranchCode;
9514
+ return [4 /*yield*/, this.fetch({
9515
+ uri: '/events',
9516
+ method: 'POST',
9517
+ body: params,
9518
+ qs: {
9519
+ expectsNoContent: '1',
9520
+ typeOf: factory.eventType.ScreeningEvent,
9521
+ superEventId: superEventId,
9522
+ locationBranchCode: locationBranchCode
9523
+ },
9524
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
9525
+ })];
9526
+ case 1:
9527
+ _a.sent();
9528
+ return [2 /*return*/];
9529
+ }
9530
+ });
9531
+ });
9532
+ };
9533
+ /**
9534
+ * イベント複数作成
9535
+ */
9536
+ EventService.prototype.createAnyEvents = function (params,
9537
+ // add options(2025-08-26~)
9538
+ options) {
9539
+ return __awaiter(this, void 0, void 0, function () {
9540
+ var locationBranchCode;
9541
+ return __generator(this, function (_a) {
9542
+ switch (_a.label) {
9543
+ case 0:
9544
+ locationBranchCode = options.locationBranchCode;
9545
+ return [4 /*yield*/, this.fetch({
9546
+ uri: '/events',
9547
+ method: 'POST',
9548
+ body: params,
9549
+ qs: {
9550
+ expectsNoContent: '1',
9551
+ typeOf: factory.eventType.Event,
9552
+ locationBranchCode: locationBranchCode
9553
+ },
9554
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
9555
+ })];
9497
9556
  case 1:
9498
9557
  _a.sent();
9499
9558
  return [2 /*return*/];
@@ -9566,7 +9625,7 @@ var EventService = /** @class */ (function (_super) {
9566
9625
  }(service_1.Service));
9567
9626
  exports.EventService = EventService;
9568
9627
 
9569
- },{"../service":163,"http-status":440}],64:[function(require,module,exports){
9628
+ },{"../factory":158,"../service":163,"http-status":440}],64:[function(require,module,exports){
9570
9629
  "use strict";
9571
9630
  var __extends = (this && this.__extends) || (function () {
9572
9631
  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",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {