@cinerino/sdk 12.13.0-alpha.8 → 12.13.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.
Files changed (42) hide show
  1. package/example/src/chevre/admin/adminEntranceGates.ts +73 -0
  2. package/example/src/chevre/admin/adminEventSeries.ts +16 -6
  3. package/example/src/chevre/admin/adminFindEvents.ts +9 -6
  4. package/example/src/chevre/admin/adminRooms.ts +54 -0
  5. package/example/src/chevre/admin/adminSeatSections.ts +52 -0
  6. package/example/src/chevre/admin/deleteSeats.ts +52 -0
  7. package/example/src/chevre/admin/findRooms.ts +45 -0
  8. package/example/src/chevre/default/findMovieTheaters.ts +44 -0
  9. package/example/src/cloud/admin/adminEventsByIdentifier.ts +39 -26
  10. package/example/src/cloud/transaction/processPlaceOrder4ttts.ts +1 -1
  11. package/example/src/cloud/transaction/processPlaceOrderCOAEventByCreditCard.ts +1 -1
  12. package/example/src/cloud/transaction/processPlaceOrderCOAEventByMovieTicket.ts +1 -1
  13. package/example/src/{searchHasPOS.ts → findMovieTheaters.ts} +11 -11
  14. package/example/src/st/v2/findMovieTheaters.ts +51 -0
  15. package/lib/abstract/chevre/place.d.ts +14 -0
  16. package/lib/abstract/chevre/place.js +21 -0
  17. package/lib/abstract/chevreAdmin/eventSeries.d.ts +1 -1
  18. package/lib/abstract/chevreAdmin/movieTheater.d.ts +63 -0
  19. package/lib/abstract/chevreAdmin/movieTheater.js +170 -0
  20. package/lib/abstract/chevreAdmin/room.d.ts +42 -0
  21. package/lib/abstract/chevreAdmin/room.js +117 -0
  22. package/lib/abstract/chevreAdmin/seat.d.ts +26 -1
  23. package/lib/abstract/chevreAdmin/seat.js +66 -1
  24. package/lib/abstract/chevreAdmin/seatSection.d.ts +43 -0
  25. package/lib/abstract/chevreAdmin/seatSection.js +117 -0
  26. package/lib/abstract/chevreAdmin.d.ts +39 -0
  27. package/lib/abstract/chevreAdmin.js +72 -0
  28. package/lib/abstract/chevreConsole/aggregateReservation.d.ts +1 -2
  29. package/lib/abstract/chevreConsole/creativeWork.d.ts +0 -7
  30. package/lib/abstract/chevreConsole/creativeWork.js +26 -19
  31. package/lib/abstract/chevreConsole/eventSeries.d.ts +0 -22
  32. package/lib/abstract/chevreConsole/eventSeries.js +0 -20
  33. package/lib/abstract/chevreConsole/place.d.ts +27 -69
  34. package/lib/abstract/chevreConsole/place.js +254 -236
  35. package/lib/abstract/cinerino/service/event.d.ts +7 -3
  36. package/lib/abstract/cinerino/service/event.js +0 -1
  37. package/lib/abstract/cinerino/service/seller.d.ts +5 -1
  38. package/lib/abstract/cinerino/service/seller.js +11 -0
  39. package/lib/abstract/service.d.ts +3 -1
  40. package/lib/abstract/service.js +4 -2
  41. package/lib/bundle.js +1615 -1026
  42. package/package.json +2 -2
@@ -65,6 +65,7 @@ var PlaceService = /** @class */ (function (_super) {
65
65
  }
66
66
  /**
67
67
  * 施設検索
68
+ * @deprecated use findMovieTheaters
68
69
  */
69
70
  PlaceService.prototype.searchMovieTheaters = function (params) {
70
71
  return __awaiter(this, void 0, void 0, function () {
@@ -91,6 +92,26 @@ var PlaceService = /** @class */ (function (_super) {
91
92
  });
92
93
  });
93
94
  };
95
+ /**
96
+ * 施設検索
97
+ * 2026-01-03~
98
+ */
99
+ PlaceService.prototype.findMovieTheaters = function (params) {
100
+ return __awaiter(this, void 0, void 0, function () {
101
+ var _this = this;
102
+ return __generator(this, function (_a) {
103
+ return [2 /*return*/, this.fetch({
104
+ uri: "/movieTheaters",
105
+ method: 'GET',
106
+ qs: params,
107
+ expectedStatusCodes: [http_status_1.OK]
108
+ })
109
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
110
+ return [2 /*return*/, response.json()];
111
+ }); }); })];
112
+ });
113
+ });
114
+ };
94
115
  /**
95
116
  * ルーム検索
96
117
  */
@@ -41,7 +41,7 @@ export interface IFindParams {
41
41
  */
42
42
  endDateGte?: Date;
43
43
  }
44
- export declare type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additionalProperty' | 'alternativeHeadline' | 'description' | 'dubLanguage' | 'duration' | 'endDate' | 'headline' | 'kanaName' | 'location' | 'name' | 'offers' | 'organizer' | 'soundFormat' | 'startDate' | 'subtitleLanguage' | 'typeOf' | 'videoFormat' | 'workPerformed' | 'id' | 'coaInfo' | 'identifier'>;
44
+ export declare type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additionalProperty' | 'alternativeHeadline' | 'description' | 'dubLanguage' | 'duration' | 'endDate' | 'headline' | 'kanaName' | 'location' | 'name' | 'offers' | 'organizer' | 'soundFormat' | 'startDate' | 'subtitleLanguage' | 'typeOf' | 'workPerformed' | 'id' | 'coaInfo' | 'identifier' | 'subEvent'>;
45
45
  /**
46
46
  * 施設コンテンツサービス
47
47
  */
@@ -0,0 +1,63 @@
1
+ import * as factory from '../factory';
2
+ import { Service } from '../service';
3
+ export interface IFindParams {
4
+ /**
5
+ * max: 20
6
+ */
7
+ limit: number;
8
+ page: number;
9
+ id?: string;
10
+ branchCode?: string;
11
+ branchCodeContains?: string;
12
+ nameContains?: string;
13
+ sellerId?: string;
14
+ additionalPropertyName?: string;
15
+ }
16
+ declare type IMovieTheaterAsFindResult = Pick<factory.place.movieTheater.IPlace, 'additionalProperty' | 'branchCode' | 'id' | 'kanaName' | 'name' | 'parentOrganization' | 'telephone' | 'url' | 'offers'>;
17
+ interface IFixMovieTheaterQuery {
18
+ movieTheaterId: string;
19
+ }
20
+ declare type IEntranceGateAsFindResult = Pick<factory.place.movieTheater.IEntranceGate, 'identifier' | 'name'>;
21
+ declare type ICreatingEntranceGate = Pick<factory.place.movieTheater.IEntranceGate, 'identifier' | 'name'>;
22
+ declare type IDeletingEntranceGate = Pick<factory.place.movieTheater.IEntranceGate, 'identifier'>;
23
+ /**
24
+ * 施設サービス
25
+ */
26
+ export declare class MovieTheaterService extends Service {
27
+ /**
28
+ * 施設検索
29
+ */
30
+ findMovieTheaters(params: IFindParams): Promise<IMovieTheaterAsFindResult[]>;
31
+ /**
32
+ * 施設の入場ゲート検索
33
+ */
34
+ findEntranceGates(params: {
35
+ /**
36
+ * 施設ID
37
+ */
38
+ movieTheaterId: string;
39
+ /**
40
+ * max: 20
41
+ */
42
+ limit: number;
43
+ page: number;
44
+ identifier?: string;
45
+ }): Promise<IEntranceGateAsFindResult[]>;
46
+ /**
47
+ * コードによる複数入場ゲート冪等編集
48
+ */
49
+ upsertEntranceGatesByIdentifier(
50
+ /**
51
+ * max: 20
52
+ */
53
+ params: ICreatingEntranceGate[], options: IFixMovieTheaterQuery): Promise<void>;
54
+ /**
55
+ * コードによる複数入場ゲート冪等削除
56
+ */
57
+ deleteEntranceGatesByIdentifier(
58
+ /**
59
+ * max: 20
60
+ */
61
+ params: IDeletingEntranceGate[], options: IFixMovieTheaterQuery): Promise<void>;
62
+ }
63
+ export {};
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ 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;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.MovieTheaterService = void 0;
55
+ var http_status_1 = require("http-status");
56
+ var service_1 = require("../service");
57
+ var BASE_URI = '/movieTheaters';
58
+ var BASE_URI_ENTRANCE_GATES = '/entranceGates';
59
+ /**
60
+ * 施設サービス
61
+ */
62
+ var MovieTheaterService = /** @class */ (function (_super) {
63
+ __extends(MovieTheaterService, _super);
64
+ function MovieTheaterService() {
65
+ return _super !== null && _super.apply(this, arguments) || this;
66
+ }
67
+ /**
68
+ * 施設検索
69
+ */
70
+ MovieTheaterService.prototype.findMovieTheaters = function (params) {
71
+ return __awaiter(this, void 0, void 0, function () {
72
+ var _this = this;
73
+ return __generator(this, function (_a) {
74
+ return [2 /*return*/, this.fetch({
75
+ uri: BASE_URI,
76
+ method: 'GET',
77
+ qs: params,
78
+ expectedStatusCodes: [http_status_1.OK]
79
+ })
80
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
81
+ return [2 /*return*/, response.json()];
82
+ }); }); })];
83
+ });
84
+ });
85
+ };
86
+ /**
87
+ * 施設の入場ゲート検索
88
+ */
89
+ MovieTheaterService.prototype.findEntranceGates = function (params) {
90
+ return __awaiter(this, void 0, void 0, function () {
91
+ var _this = this;
92
+ return __generator(this, function (_a) {
93
+ return [2 /*return*/, this.fetch({
94
+ uri: BASE_URI_ENTRANCE_GATES,
95
+ method: 'GET',
96
+ qs: params,
97
+ expectedStatusCodes: [http_status_1.OK]
98
+ })
99
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
100
+ return [2 /*return*/, response.json()];
101
+ }); }); })];
102
+ });
103
+ });
104
+ };
105
+ /**
106
+ * コードによる複数入場ゲート冪等編集
107
+ */
108
+ MovieTheaterService.prototype.upsertEntranceGatesByIdentifier = function (
109
+ /**
110
+ * max: 20
111
+ */
112
+ params, options) {
113
+ return __awaiter(this, void 0, void 0, function () {
114
+ var movieTheaterId;
115
+ return __generator(this, function (_a) {
116
+ switch (_a.label) {
117
+ case 0:
118
+ movieTheaterId = options.movieTheaterId;
119
+ return [4 /*yield*/, this.fetch({
120
+ uri: BASE_URI_ENTRANCE_GATES,
121
+ method: 'PUT',
122
+ body: params,
123
+ qs: { movieTheaterId: movieTheaterId },
124
+ expectedStatusCodes: [http_status_1.NO_CONTENT],
125
+ stringifyOptions: { arrayFormat: 'repeat' }
126
+ })];
127
+ case 1:
128
+ _a.sent();
129
+ return [2 /*return*/];
130
+ }
131
+ });
132
+ });
133
+ };
134
+ /**
135
+ * コードによる複数入場ゲート冪等削除
136
+ */
137
+ MovieTheaterService.prototype.deleteEntranceGatesByIdentifier = function (
138
+ /**
139
+ * max: 20
140
+ */
141
+ params, options) {
142
+ return __awaiter(this, void 0, void 0, function () {
143
+ var movieTheaterId;
144
+ return __generator(this, function (_a) {
145
+ switch (_a.label) {
146
+ case 0:
147
+ movieTheaterId = options.movieTheaterId;
148
+ return [4 /*yield*/, this.fetch({
149
+ uri: BASE_URI_ENTRANCE_GATES,
150
+ method: 'DELETE',
151
+ qs: {
152
+ movieTheaterId: movieTheaterId,
153
+ identifiers: params.map(function (_a) {
154
+ var identifier = _a.identifier;
155
+ return identifier;
156
+ })
157
+ },
158
+ expectedStatusCodes: [http_status_1.NO_CONTENT],
159
+ stringifyOptions: { arrayFormat: 'repeat' }
160
+ })];
161
+ case 1:
162
+ _a.sent();
163
+ return [2 /*return*/];
164
+ }
165
+ });
166
+ });
167
+ };
168
+ return MovieTheaterService;
169
+ }(service_1.Service));
170
+ exports.MovieTheaterService = MovieTheaterService;
@@ -0,0 +1,42 @@
1
+ import * as factory from '../factory';
2
+ import { Service } from '../service';
3
+ /**
4
+ * 施設を決定するクエリ
5
+ */
6
+ interface IFixMovieTheaterQuery {
7
+ movieTheaterId: string;
8
+ }
9
+ interface IFindParams extends IFixMovieTheaterQuery {
10
+ limit: number;
11
+ page: number;
12
+ branchCode?: string;
13
+ branchCodes?: string[];
14
+ branchCodeContains?: string;
15
+ nameContains?: string;
16
+ openSeatingAllowed?: boolean;
17
+ additionalPropertyName?: string;
18
+ }
19
+ declare type IRoomAsFindResult = Pick<factory.place.screeningRoom.IPlace, 'additionalProperty' | 'address' | 'branchCode' | 'name' | 'openSeatingAllowed'>;
20
+ declare type IUpsertingRoom = Pick<factory.place.screeningRoom.IPlace, 'additionalProperty' | 'branchCode' | 'address' | 'name' | 'openSeatingAllowed'> & {
21
+ additionalProperty: factory.propertyValue.IPropertyValue<string>[];
22
+ name: Pick<factory.multilingualString, 'en' | 'ja'>;
23
+ openSeatingAllowed: boolean;
24
+ };
25
+ /**
26
+ * ルームサービス
27
+ */
28
+ export declare class RoomService extends Service {
29
+ /**
30
+ * ルーム検索
31
+ */
32
+ findRooms(params: IFindParams): Promise<IRoomAsFindResult[]>;
33
+ /**
34
+ * コードによる複数ルーム冪等編集
35
+ */
36
+ upsertRoomsByBranchCode(
37
+ /**
38
+ * max: 20
39
+ */
40
+ params: IUpsertingRoom[], options: IFixMovieTheaterQuery): Promise<void>;
41
+ }
42
+ export {};
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ 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;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.RoomService = void 0;
55
+ var http_status_1 = require("http-status");
56
+ var service_1 = require("../service");
57
+ var BASE_URI = '/rooms';
58
+ /**
59
+ * ルームサービス
60
+ */
61
+ var RoomService = /** @class */ (function (_super) {
62
+ __extends(RoomService, _super);
63
+ function RoomService() {
64
+ return _super !== null && _super.apply(this, arguments) || this;
65
+ }
66
+ /**
67
+ * ルーム検索
68
+ */
69
+ RoomService.prototype.findRooms = function (params) {
70
+ return __awaiter(this, void 0, void 0, function () {
71
+ var _this = this;
72
+ return __generator(this, function (_a) {
73
+ return [2 /*return*/, this.fetch({
74
+ uri: BASE_URI,
75
+ method: 'GET',
76
+ qs: params,
77
+ expectedStatusCodes: [http_status_1.OK],
78
+ stringifyOptions: { arrayFormat: 'repeat' }
79
+ })
80
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
81
+ return [2 /*return*/, response.json()];
82
+ }); }); })];
83
+ });
84
+ });
85
+ };
86
+ /**
87
+ * コードによる複数ルーム冪等編集
88
+ */
89
+ RoomService.prototype.upsertRoomsByBranchCode = function (
90
+ /**
91
+ * max: 20
92
+ */
93
+ params, options) {
94
+ return __awaiter(this, void 0, void 0, function () {
95
+ var movieTheaterId;
96
+ return __generator(this, function (_a) {
97
+ switch (_a.label) {
98
+ case 0:
99
+ movieTheaterId = options.movieTheaterId;
100
+ return [4 /*yield*/, this.fetch({
101
+ uri: BASE_URI,
102
+ method: 'POST',
103
+ body: params,
104
+ qs: { movieTheaterId: movieTheaterId },
105
+ expectedStatusCodes: [http_status_1.NO_CONTENT],
106
+ stringifyOptions: { arrayFormat: 'repeat' }
107
+ })];
108
+ case 1:
109
+ _a.sent();
110
+ return [2 /*return*/];
111
+ }
112
+ });
113
+ });
114
+ };
115
+ return RoomService;
116
+ }(service_1.Service));
117
+ exports.RoomService = RoomService;
@@ -1,9 +1,15 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- export interface IFindParams {
3
+ interface IFixSectionQuery {
4
+ /**
5
+ * 施設ID必須化(2026-01-08~)
6
+ */
7
+ movieTheaterId: string;
4
8
  movieTheaterCode: string;
5
9
  roomCode: string;
6
10
  sectionCode: string;
11
+ }
12
+ export interface IFindParams extends IFixSectionQuery {
7
13
  /**
8
14
  * max: 20
9
15
  */
@@ -21,6 +27,8 @@ export interface IFindParams {
21
27
  export declare type ISeatAsFindResult = Pick<factory.place.seat.IPlace, 'additionalProperty' | 'branchCode' | 'name' | 'seatingType' | 'maximumAttendeeCapacity'> & {
22
28
  typeOf?: never;
23
29
  };
30
+ export declare type ICreatingSeat = Pick<factory.place.seat.IPlace, 'additionalProperty' | 'branchCode' | 'maximumAttendeeCapacity' | 'name' | 'seatingType'>;
31
+ export declare type IDeletingSeat = Pick<factory.place.seat.IPlace, 'branchCode'>;
24
32
  /**
25
33
  * 座席サービス
26
34
  */
@@ -29,4 +37,21 @@ export declare class SeatService extends Service {
29
37
  * 座席検索
30
38
  */
31
39
  findSeats(params: IFindParams): Promise<ISeatAsFindResult[]>;
40
+ /**
41
+ * コードによる複数座席冪等編集
42
+ */
43
+ upsertSeatsByBranchCode(
44
+ /**
45
+ * max: 20
46
+ */
47
+ params: ICreatingSeat[], options: IFixSectionQuery): Promise<void>;
48
+ /**
49
+ * コードによる複数座席冪等削除
50
+ */
51
+ deleteSeatsByBranchCode(
52
+ /**
53
+ * max: 20
54
+ */
55
+ params: IDeletingSeat[], options: IFixSectionQuery): Promise<void>;
32
56
  }
57
+ export {};
@@ -74,7 +74,8 @@ var SeatService = /** @class */ (function (_super) {
74
74
  uri: BASE_URI,
75
75
  method: 'GET',
76
76
  qs: params,
77
- expectedStatusCodes: [http_status_1.OK]
77
+ expectedStatusCodes: [http_status_1.OK],
78
+ stringifyOptions: { arrayFormat: 'repeat' }
78
79
  })
79
80
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
80
81
  return [2 /*return*/, response.json()];
@@ -82,6 +83,70 @@ var SeatService = /** @class */ (function (_super) {
82
83
  });
83
84
  });
84
85
  };
86
+ /**
87
+ * コードによる複数座席冪等編集
88
+ */
89
+ SeatService.prototype.upsertSeatsByBranchCode = function (
90
+ /**
91
+ * max: 20
92
+ */
93
+ params, options) {
94
+ return __awaiter(this, void 0, void 0, function () {
95
+ var movieTheaterId, movieTheaterCode, roomCode, sectionCode;
96
+ return __generator(this, function (_a) {
97
+ switch (_a.label) {
98
+ case 0:
99
+ movieTheaterId = options.movieTheaterId, movieTheaterCode = options.movieTheaterCode, roomCode = options.roomCode, sectionCode = options.sectionCode;
100
+ return [4 /*yield*/, this.fetch({
101
+ uri: BASE_URI,
102
+ method: 'PUT',
103
+ body: params,
104
+ qs: { movieTheaterId: movieTheaterId, movieTheaterCode: movieTheaterCode, roomCode: roomCode, sectionCode: sectionCode },
105
+ expectedStatusCodes: [http_status_1.NO_CONTENT],
106
+ stringifyOptions: { arrayFormat: 'repeat' }
107
+ })];
108
+ case 1:
109
+ _a.sent();
110
+ return [2 /*return*/];
111
+ }
112
+ });
113
+ });
114
+ };
115
+ /**
116
+ * コードによる複数座席冪等削除
117
+ */
118
+ SeatService.prototype.deleteSeatsByBranchCode = function (
119
+ /**
120
+ * max: 20
121
+ */
122
+ params, options) {
123
+ return __awaiter(this, void 0, void 0, function () {
124
+ var movieTheaterId, movieTheaterCode, roomCode, sectionCode;
125
+ return __generator(this, function (_a) {
126
+ switch (_a.label) {
127
+ case 0:
128
+ movieTheaterId = options.movieTheaterId, movieTheaterCode = options.movieTheaterCode, roomCode = options.roomCode, sectionCode = options.sectionCode;
129
+ return [4 /*yield*/, this.fetch({
130
+ uri: BASE_URI,
131
+ method: 'DELETE',
132
+ body: params,
133
+ qs: {
134
+ movieTheaterId: movieTheaterId, movieTheaterCode: movieTheaterCode, roomCode: roomCode, sectionCode: sectionCode,
135
+ branchCodes: params.map(function (_a) {
136
+ var branchCode = _a.branchCode;
137
+ return branchCode;
138
+ })
139
+ },
140
+ expectedStatusCodes: [http_status_1.NO_CONTENT],
141
+ stringifyOptions: { arrayFormat: 'repeat' }
142
+ })];
143
+ case 1:
144
+ _a.sent();
145
+ return [2 /*return*/];
146
+ }
147
+ });
148
+ });
149
+ };
85
150
  return SeatService;
86
151
  }(service_1.Service));
87
152
  exports.SeatService = SeatService;
@@ -0,0 +1,43 @@
1
+ import * as factory from '../factory';
2
+ import { Service } from '../service';
3
+ interface IFixRoomQuery {
4
+ movieTheaterId: string;
5
+ roomCode: string;
6
+ }
7
+ export interface IFindParams extends IFixRoomQuery {
8
+ /**
9
+ * max: 20
10
+ */
11
+ limit: number;
12
+ page: number;
13
+ branchCode?: string;
14
+ branchCodeContains?: string;
15
+ nameContains?: string;
16
+ /**
17
+ * 追加特性名称
18
+ */
19
+ additionalPropertyName?: string;
20
+ }
21
+ export declare type ISeatSectionAsFindResult = Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'>;
22
+ declare type IUpsertingSeatSection = Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'> & {
23
+ additionalProperty: factory.propertyValue.IPropertyValue<string>[];
24
+ name: Pick<factory.multilingualString, 'en' | 'ja'>;
25
+ };
26
+ /**
27
+ * 座席セクションサービス
28
+ */
29
+ export declare class SeatSectionService extends Service {
30
+ /**
31
+ * 座席セクション検索
32
+ */
33
+ findSeatSections(params: IFindParams): Promise<ISeatSectionAsFindResult[]>;
34
+ /**
35
+ * コードによる複数座席セクション冪等編集
36
+ */
37
+ upsertSeatSectionsByBranchCode(
38
+ /**
39
+ * max: 20
40
+ */
41
+ params: IUpsertingSeatSection[], options: IFixRoomQuery): Promise<void>;
42
+ }
43
+ export {};