@cinerino/sdk 12.13.0-alpha.9 → 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.
- package/example/src/chevre/admin/adminEntranceGates.ts +73 -0
- package/example/src/chevre/admin/adminEventSeries.ts +16 -6
- package/example/src/chevre/admin/adminFindEvents.ts +9 -6
- package/example/src/chevre/admin/adminRooms.ts +54 -0
- package/example/src/chevre/admin/adminSeatSections.ts +52 -0
- package/example/src/chevre/admin/deleteSeats.ts +52 -0
- package/example/src/chevre/admin/findRooms.ts +45 -0
- package/example/src/chevre/default/findMovieTheaters.ts +44 -0
- package/example/src/cloud/admin/adminEventsByIdentifier.ts +39 -26
- package/example/src/cloud/transaction/processPlaceOrder4ttts.ts +1 -1
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByCreditCard.ts +1 -1
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByMovieTicket.ts +1 -1
- package/example/src/{searchHasPOS.ts → findMovieTheaters.ts} +11 -11
- package/example/src/st/v2/findMovieTheaters.ts +51 -0
- package/lib/abstract/chevre/place.d.ts +14 -0
- package/lib/abstract/chevre/place.js +21 -0
- package/lib/abstract/chevreAdmin/eventSeries.d.ts +1 -1
- package/lib/abstract/chevreAdmin/movieTheater.d.ts +63 -0
- package/lib/abstract/chevreAdmin/movieTheater.js +170 -0
- package/lib/abstract/chevreAdmin/room.d.ts +42 -0
- package/lib/abstract/chevreAdmin/room.js +117 -0
- package/lib/abstract/chevreAdmin/seat.d.ts +26 -1
- package/lib/abstract/chevreAdmin/seat.js +66 -1
- package/lib/abstract/chevreAdmin/seatSection.d.ts +43 -0
- package/lib/abstract/chevreAdmin/seatSection.js +117 -0
- package/lib/abstract/chevreAdmin.d.ts +39 -0
- package/lib/abstract/chevreAdmin.js +72 -0
- package/lib/abstract/chevreConsole/aggregateReservation.d.ts +1 -2
- package/lib/abstract/chevreConsole/creativeWork.d.ts +0 -7
- package/lib/abstract/chevreConsole/creativeWork.js +26 -19
- package/lib/abstract/chevreConsole/eventSeries.d.ts +0 -22
- package/lib/abstract/chevreConsole/eventSeries.js +0 -20
- package/lib/abstract/chevreConsole/place.d.ts +12 -73
- package/lib/abstract/chevreConsole/place.js +239 -263
- package/lib/abstract/cinerino/service/event.d.ts +7 -3
- package/lib/abstract/cinerino/service/event.js +0 -1
- package/lib/abstract/cinerino/service/seller.d.ts +5 -1
- package/lib/abstract/cinerino/service/seller.js +11 -0
- package/lib/abstract/service.d.ts +3 -1
- package/lib/abstract/service.js +4 -2
- package/lib/bundle.js +1600 -1053
- package/package.json +2 -2
|
@@ -55,6 +55,11 @@ exports.PlaceService = void 0;
|
|
|
55
55
|
var http_status_1 = require("http-status");
|
|
56
56
|
var factory = require("../factory");
|
|
57
57
|
var service_1 = require("../service");
|
|
58
|
+
// interface IFixSectionQuery {
|
|
59
|
+
// movieTheaterCode: string;
|
|
60
|
+
// roomCode: string;
|
|
61
|
+
// sectionCode: string;
|
|
62
|
+
// }
|
|
58
63
|
/**
|
|
59
64
|
* 施設サービス
|
|
60
65
|
*/
|
|
@@ -82,34 +87,27 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
82
87
|
});
|
|
83
88
|
});
|
|
84
89
|
};
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
_a)];
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}); })];
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
};
|
|
90
|
+
// /**
|
|
91
|
+
// * 施設検索
|
|
92
|
+
// * migrate to chevreAdmin(2026-01-03~)
|
|
93
|
+
// */
|
|
94
|
+
// public async searchMovieTheaters(
|
|
95
|
+
// params: Omit<factory.place.movieTheater.ISearchConditions, 'project'>
|
|
96
|
+
// ): Promise<{
|
|
97
|
+
// data: IMovieTheater[];
|
|
98
|
+
// }> {
|
|
99
|
+
// return this.fetch({
|
|
100
|
+
// uri: `/places/${factory.placeType.MovieTheater}`,
|
|
101
|
+
// method: 'GET',
|
|
102
|
+
// qs: params,
|
|
103
|
+
// expectedStatusCodes: [OK]
|
|
104
|
+
// })
|
|
105
|
+
// .then(async (response) => {
|
|
106
|
+
// return {
|
|
107
|
+
// data: await response.json()
|
|
108
|
+
// };
|
|
109
|
+
// });
|
|
110
|
+
// }
|
|
113
111
|
/**
|
|
114
112
|
* 施設更新
|
|
115
113
|
*/
|
|
@@ -149,53 +147,44 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
149
147
|
});
|
|
150
148
|
});
|
|
151
149
|
};
|
|
152
|
-
/**
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
return [4 /*yield*/, response.json()];
|
|
191
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
192
|
-
_a)];
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
}); })];
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
};
|
|
150
|
+
// /**
|
|
151
|
+
// * ルーム追加
|
|
152
|
+
// * migrate to chevreAdmin(2026-01-12~)
|
|
153
|
+
// */
|
|
154
|
+
// public async createRoom(
|
|
155
|
+
// params: Pick<IScreeningRoom, 'additionalProperty' | 'address' | 'branchCode' | 'name' | 'openSeatingAllowed'>,
|
|
156
|
+
// options: IFixMovieTheaterQuery
|
|
157
|
+
// ): Promise<IScreeningRoom> {
|
|
158
|
+
// const { movieTheaterCode } = options;
|
|
159
|
+
// return this.fetch({
|
|
160
|
+
// uri: `/places/${factory.placeType.ScreeningRoom}`,
|
|
161
|
+
// method: 'POST',
|
|
162
|
+
// qs: { movieTheaterCode },
|
|
163
|
+
// body: params,
|
|
164
|
+
// expectedStatusCodes: [CREATED]
|
|
165
|
+
// })
|
|
166
|
+
// .then(async (response) => response.json());
|
|
167
|
+
// }
|
|
168
|
+
// /**
|
|
169
|
+
// * ルーム検索
|
|
170
|
+
// */
|
|
171
|
+
// public async searchScreeningRooms(
|
|
172
|
+
// params: Omit<factory.place.screeningRoom.ISearchConditions, 'project' | '$projection'>
|
|
173
|
+
// ): Promise<{
|
|
174
|
+
// data: IScreeningRoom[];
|
|
175
|
+
// }> {
|
|
176
|
+
// return this.fetch({
|
|
177
|
+
// uri: `/places/${factory.placeType.ScreeningRoom}`,
|
|
178
|
+
// method: 'GET',
|
|
179
|
+
// qs: params,
|
|
180
|
+
// expectedStatusCodes: [OK]
|
|
181
|
+
// })
|
|
182
|
+
// .then(async (response) => {
|
|
183
|
+
// return {
|
|
184
|
+
// data: await response.json()
|
|
185
|
+
// };
|
|
186
|
+
// });
|
|
187
|
+
// }
|
|
199
188
|
/**
|
|
200
189
|
* ルームの座席数参照
|
|
201
190
|
*/
|
|
@@ -217,39 +206,40 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
217
206
|
});
|
|
218
207
|
});
|
|
219
208
|
};
|
|
220
|
-
/**
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
});
|
|
238
|
-
});
|
|
239
|
-
};
|
|
209
|
+
// /**
|
|
210
|
+
// * ルーム編集
|
|
211
|
+
// * migrate to chevreAdmin(2026-01-12~)
|
|
212
|
+
// */
|
|
213
|
+
// public async updateRoomByBranchCode(
|
|
214
|
+
// params: Pick<IScreeningRoom, 'additionalProperty' | 'address' | 'branchCode' | 'name' | 'openSeatingAllowed'> & IUnset,
|
|
215
|
+
// options: IFixMovieTheaterQuery
|
|
216
|
+
// ): Promise<void> {
|
|
217
|
+
// const { movieTheaterCode } = options;
|
|
218
|
+
// await this.fetch({
|
|
219
|
+
// uri: `/places/${factory.placeType.ScreeningRoom}/${encodeURIComponent(String(params.branchCode))}`,
|
|
220
|
+
// method: 'PUT',
|
|
221
|
+
// qs: { movieTheaterCode },
|
|
222
|
+
// body: params,
|
|
223
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
224
|
+
// });
|
|
225
|
+
// }
|
|
240
226
|
/**
|
|
241
227
|
* ルーム削除
|
|
242
228
|
*/
|
|
243
|
-
PlaceService.prototype.
|
|
229
|
+
PlaceService.prototype.deleteRoomByBranchCode = function (params, options) {
|
|
244
230
|
return __awaiter(this, void 0, void 0, function () {
|
|
231
|
+
var movieTheaterCode;
|
|
245
232
|
return __generator(this, function (_a) {
|
|
246
233
|
switch (_a.label) {
|
|
247
|
-
case 0:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
234
|
+
case 0:
|
|
235
|
+
movieTheaterCode = options.movieTheaterCode;
|
|
236
|
+
return [4 /*yield*/, this.fetch({
|
|
237
|
+
uri: "/places/" + factory.placeType.ScreeningRoom + "/" + encodeURIComponent(String(params.branchCode)),
|
|
238
|
+
method: 'DELETE',
|
|
239
|
+
qs: { movieTheaterCode: movieTheaterCode },
|
|
240
|
+
body: params,
|
|
241
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
242
|
+
})];
|
|
253
243
|
case 1:
|
|
254
244
|
_a.sent();
|
|
255
245
|
return [2 /*return*/];
|
|
@@ -257,53 +247,45 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
257
247
|
});
|
|
258
248
|
});
|
|
259
249
|
};
|
|
260
|
-
/**
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
300
|
-
_a)];
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
}); })];
|
|
304
|
-
});
|
|
305
|
-
});
|
|
306
|
-
};
|
|
250
|
+
// /**
|
|
251
|
+
// * セクション作成
|
|
252
|
+
// */
|
|
253
|
+
// public async createSection(
|
|
254
|
+
// params: Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'> & {
|
|
255
|
+
// $unset?: never;
|
|
256
|
+
// },
|
|
257
|
+
// options: IFixRoomQuery
|
|
258
|
+
// ): Promise<IScreeningRoomSection> {
|
|
259
|
+
// const { movieTheaterCode, roomCode } = options;
|
|
260
|
+
// return this.fetch({
|
|
261
|
+
// uri: `/places/${factory.placeType.ScreeningRoomSection}`,
|
|
262
|
+
// method: 'POST',
|
|
263
|
+
// qs: { movieTheaterCode, roomCode },
|
|
264
|
+
// body: params,
|
|
265
|
+
// expectedStatusCodes: [CREATED]
|
|
266
|
+
// })
|
|
267
|
+
// .then(async (response) => response.json());
|
|
268
|
+
// }
|
|
269
|
+
// /**
|
|
270
|
+
// * セクション検索
|
|
271
|
+
// */
|
|
272
|
+
// public async searchScreeningRoomSections(
|
|
273
|
+
// params: Omit<factory.place.screeningRoomSection.ISearchConditions, 'project' | '$projection'>
|
|
274
|
+
// ): Promise<{
|
|
275
|
+
// data: IScreeningRoomSection[];
|
|
276
|
+
// }> {
|
|
277
|
+
// return this.fetch({
|
|
278
|
+
// uri: `/places/${factory.placeType.ScreeningRoomSection}`,
|
|
279
|
+
// method: 'GET',
|
|
280
|
+
// qs: params,
|
|
281
|
+
// expectedStatusCodes: [OK]
|
|
282
|
+
// })
|
|
283
|
+
// .then(async (response) => {
|
|
284
|
+
// return {
|
|
285
|
+
// data: await response.json()
|
|
286
|
+
// };
|
|
287
|
+
// });
|
|
288
|
+
// }
|
|
307
289
|
/**
|
|
308
290
|
* セクションの座席数参照
|
|
309
291
|
*/
|
|
@@ -325,126 +307,55 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
325
307
|
});
|
|
326
308
|
});
|
|
327
309
|
};
|
|
328
|
-
/**
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
310
|
+
// /**
|
|
311
|
+
// * セクションの名称と追加特性を編集する
|
|
312
|
+
// */
|
|
313
|
+
// public async updateSectionByBranchCode(
|
|
314
|
+
// params: Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'> & IUnset,
|
|
315
|
+
// options: IFixRoomQuery
|
|
316
|
+
// ): Promise<void> {
|
|
317
|
+
// const { movieTheaterCode, roomCode } = options;
|
|
318
|
+
// await this.fetch({
|
|
319
|
+
// uri: `/places/${factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(params.branchCode))}`,
|
|
320
|
+
// method: 'PUT',
|
|
321
|
+
// qs: { movieTheaterCode, roomCode },
|
|
322
|
+
// body: params,
|
|
323
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
324
|
+
// });
|
|
325
|
+
// }
|
|
326
|
+
// /**
|
|
327
|
+
// * セクションの座席を上書きする
|
|
328
|
+
// */
|
|
329
|
+
// public async overwriteSectionSeats(
|
|
330
|
+
// params: Pick<factory.place.screeningRoomSection.IPlace, 'branchCode' | 'containsPlace'>,
|
|
331
|
+
// options: IFixRoomQuery
|
|
332
|
+
// ): Promise<void> {
|
|
333
|
+
// const { movieTheaterCode, roomCode } = options;
|
|
334
|
+
// await this.fetch({
|
|
335
|
+
// uri: `/places/${factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(params.branchCode))}/containsPlace`,
|
|
336
|
+
// method: 'PUT',
|
|
337
|
+
// qs: { movieTheaterCode, roomCode },
|
|
338
|
+
// body: params,
|
|
339
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
340
|
+
// });
|
|
341
|
+
// }
|
|
348
342
|
/**
|
|
349
343
|
* セクション削除
|
|
350
344
|
*/
|
|
351
|
-
PlaceService.prototype.
|
|
345
|
+
PlaceService.prototype.deleteSectionByBranchCode = function (params, options) {
|
|
352
346
|
return __awaiter(this, void 0, void 0, function () {
|
|
347
|
+
var movieTheaterCode, roomCode;
|
|
353
348
|
return __generator(this, function (_a) {
|
|
354
349
|
switch (_a.label) {
|
|
355
|
-
case 0:
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
});
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
* 座席作成
|
|
370
|
-
*/
|
|
371
|
-
PlaceService.prototype.createSeat = function (params) {
|
|
372
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
373
|
-
var _this = this;
|
|
374
|
-
return __generator(this, function (_a) {
|
|
375
|
-
return [2 /*return*/, this.fetch({
|
|
376
|
-
uri: "/places/" + factory.placeType.Seat,
|
|
377
|
-
method: 'POST',
|
|
378
|
-
body: params,
|
|
379
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
380
|
-
})
|
|
381
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
382
|
-
return [2 /*return*/, response.json()];
|
|
383
|
-
}); }); })];
|
|
384
|
-
});
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
/**
|
|
388
|
-
* 座席検索
|
|
389
|
-
*/
|
|
390
|
-
PlaceService.prototype.searchSeats = function (params) {
|
|
391
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
392
|
-
var _this = this;
|
|
393
|
-
return __generator(this, function (_a) {
|
|
394
|
-
return [2 /*return*/, this.fetch({
|
|
395
|
-
uri: "/places/" + factory.placeType.Seat,
|
|
396
|
-
method: 'GET',
|
|
397
|
-
qs: params,
|
|
398
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
399
|
-
})
|
|
400
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
401
|
-
var _a;
|
|
402
|
-
return __generator(this, function (_b) {
|
|
403
|
-
switch (_b.label) {
|
|
404
|
-
case 0:
|
|
405
|
-
_a = {};
|
|
406
|
-
return [4 /*yield*/, response.json()];
|
|
407
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
408
|
-
_a)];
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
}); })];
|
|
412
|
-
});
|
|
413
|
-
});
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* 座席更新
|
|
417
|
-
*/
|
|
418
|
-
PlaceService.prototype.updateSeat = function (params) {
|
|
419
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
420
|
-
return __generator(this, function (_a) {
|
|
421
|
-
switch (_a.label) {
|
|
422
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
423
|
-
uri: "/places/" + factory.placeType.Seat + "/" + encodeURIComponent(String(params.branchCode)),
|
|
424
|
-
method: 'PUT',
|
|
425
|
-
body: params,
|
|
426
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
427
|
-
})];
|
|
428
|
-
case 1:
|
|
429
|
-
_a.sent();
|
|
430
|
-
return [2 /*return*/];
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
});
|
|
434
|
-
};
|
|
435
|
-
/**
|
|
436
|
-
* 座席削除
|
|
437
|
-
*/
|
|
438
|
-
PlaceService.prototype.deleteSeat = function (params) {
|
|
439
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
440
|
-
return __generator(this, function (_a) {
|
|
441
|
-
switch (_a.label) {
|
|
442
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
443
|
-
uri: "/places/" + factory.placeType.Seat + "/" + encodeURIComponent(String(params.branchCode)),
|
|
444
|
-
method: 'DELETE',
|
|
445
|
-
body: params,
|
|
446
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
447
|
-
})];
|
|
350
|
+
case 0:
|
|
351
|
+
movieTheaterCode = options.movieTheaterCode, roomCode = options.roomCode;
|
|
352
|
+
return [4 /*yield*/, this.fetch({
|
|
353
|
+
uri: "/places/" + factory.placeType.ScreeningRoomSection + "/" + encodeURIComponent(String(params.branchCode)),
|
|
354
|
+
method: 'DELETE',
|
|
355
|
+
qs: { movieTheaterCode: movieTheaterCode, roomCode: roomCode },
|
|
356
|
+
body: params,
|
|
357
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
358
|
+
})];
|
|
448
359
|
case 1:
|
|
449
360
|
_a.sent();
|
|
450
361
|
return [2 /*return*/];
|
|
@@ -452,6 +363,71 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
452
363
|
});
|
|
453
364
|
});
|
|
454
365
|
};
|
|
366
|
+
// /**
|
|
367
|
+
// * 座席作成
|
|
368
|
+
// */
|
|
369
|
+
// public async createSeat(
|
|
370
|
+
// params: Pick<ISeat, 'additionalProperty' | 'branchCode' | 'maximumAttendeeCapacity' | 'name' | 'seatingType'> & {
|
|
371
|
+
// $unset?: never;
|
|
372
|
+
// },
|
|
373
|
+
// options: IFixSectionQuery
|
|
374
|
+
// ): Promise<ISeat> {
|
|
375
|
+
// const { movieTheaterCode, roomCode, sectionCode } = options;
|
|
376
|
+
// return this.fetch({
|
|
377
|
+
// uri: `/places/${factory.placeType.Seat}`,
|
|
378
|
+
// method: 'POST',
|
|
379
|
+
// qs: { movieTheaterCode, roomCode, sectionCode },
|
|
380
|
+
// body: params,
|
|
381
|
+
// expectedStatusCodes: [CREATED]
|
|
382
|
+
// })
|
|
383
|
+
// .then(async (response) => response.json());
|
|
384
|
+
// }
|
|
385
|
+
// /**
|
|
386
|
+
// * 座席検索
|
|
387
|
+
// */
|
|
388
|
+
// public async findSeatsDeprecated(params: Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<ISeat[]> {
|
|
389
|
+
// return this.fetch({
|
|
390
|
+
// uri: `/places/${factory.placeType.Seat}`,
|
|
391
|
+
// method: 'GET',
|
|
392
|
+
// qs: params,
|
|
393
|
+
// expectedStatusCodes: [OK]
|
|
394
|
+
// })
|
|
395
|
+
// .then(async (response) => response.json());
|
|
396
|
+
// }
|
|
397
|
+
// /**
|
|
398
|
+
// * 座席更新
|
|
399
|
+
// */
|
|
400
|
+
// public async updateSeatByBranchCode(
|
|
401
|
+
// params: Pick<ISeat, 'additionalProperty' | 'branchCode' | 'maximumAttendeeCapacity' | 'name' | 'seatingType'> & IUnset,
|
|
402
|
+
// options: IFixSectionQuery
|
|
403
|
+
// ): Promise<void> {
|
|
404
|
+
// const { movieTheaterCode, roomCode, sectionCode } = options;
|
|
405
|
+
// await this.fetch({
|
|
406
|
+
// uri: `/places/${factory.placeType.Seat}/${encodeURIComponent(String(params.branchCode))}`,
|
|
407
|
+
// method: 'PUT',
|
|
408
|
+
// qs: { movieTheaterCode, roomCode, sectionCode },
|
|
409
|
+
// body: params,
|
|
410
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
411
|
+
// });
|
|
412
|
+
// }
|
|
413
|
+
// /**
|
|
414
|
+
// * 座席削除
|
|
415
|
+
// */
|
|
416
|
+
// public async deleteSeatByBranchCode(
|
|
417
|
+
// params: {
|
|
418
|
+
// branchCode: string;
|
|
419
|
+
// },
|
|
420
|
+
// options: IFixSectionQuery
|
|
421
|
+
// ): Promise<void> {
|
|
422
|
+
// const { movieTheaterCode, roomCode, sectionCode } = options;
|
|
423
|
+
// await this.fetch({
|
|
424
|
+
// uri: `/places/${factory.placeType.Seat}/${encodeURIComponent(String(params.branchCode))}`,
|
|
425
|
+
// method: 'DELETE',
|
|
426
|
+
// qs: { movieTheaterCode, roomCode, sectionCode },
|
|
427
|
+
// body: params,
|
|
428
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
429
|
+
// });
|
|
430
|
+
// }
|
|
455
431
|
/**
|
|
456
432
|
* ターミナル作成
|
|
457
433
|
*/
|
|
@@ -24,10 +24,14 @@ declare type IScreeningEventOffer4COA = Omit<factory.event.screeningEvent.IOffer
|
|
|
24
24
|
declare type IScreeningEventExtensibleOffer = Omit<factory.event.screeningEvent.IExtensibleEventOffer, 'seller'> & {
|
|
25
25
|
seller: ISeller;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
declare type IEvent = Omit<factory.event.screeningEvent.IEvent, 'offers' | 'superEvent'> & {
|
|
28
28
|
offers?: IScreeningEventOffer | IScreeningEventOffer4COA | IScreeningEventExtensibleOffer;
|
|
29
|
+
superEvent: Omit<factory.event.screeningEvent.ISuperEvent, 'videoFormat' | 'soundFormat'>;
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
declare type IMinimizedEvent = Pick<factory.event.screeningEvent.IEvent, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'id' | 'location' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'startDate'> & {
|
|
32
|
+
superEvent: Omit<factory.event.screeningEvent.ISuperEvent, 'videoFormat' | 'soundFormat'>;
|
|
33
|
+
};
|
|
34
|
+
declare type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additionalProperty' | 'alternativeHeadline' | 'coaInfo' | 'description' | 'dubLanguage' | 'duration' | 'endDate' | 'eventStatus' | 'headline' | 'identifier' | 'kanaName' | 'location' | 'name' | 'offers' | 'organizer' | 'project' | 'soundFormat' | 'startDate' | 'subtitleLanguage' | 'typeOf' | 'workPerformed' | 'subEvent' | 'id'>;
|
|
31
35
|
/**
|
|
32
36
|
* COA券種オファーインターフェース
|
|
33
37
|
*/
|
|
@@ -137,7 +141,7 @@ export declare class EventService extends Service {
|
|
|
137
141
|
$projection?: {
|
|
138
142
|
[key in keyof factory.eventSeries.IEvent]?: 0;
|
|
139
143
|
};
|
|
140
|
-
}): Promise<
|
|
144
|
+
}): Promise<IEventSeriesAsFindResult[]>;
|
|
141
145
|
/**
|
|
142
146
|
* イベント検索(最小限の属性)
|
|
143
147
|
*/
|
|
@@ -127,7 +127,6 @@ var EventService = /** @class */ (function (_super) {
|
|
|
127
127
|
return __awaiter(this, void 0, void 0, function () {
|
|
128
128
|
var _this = this;
|
|
129
129
|
return __generator(this, function (_a) {
|
|
130
|
-
// separate ScreeningEventSeries(2024-10-21~)
|
|
131
130
|
return [2 /*return*/, this.fetch({
|
|
132
131
|
uri: '/eventSeries',
|
|
133
132
|
method: 'GET',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPaymentAccepted, IPaymentServiceByProvider, ISearchPaymentServiceConditions } from '../../chevre/seller/factory';
|
|
2
2
|
import * as factory from '../../factory';
|
|
3
|
-
import { IOptions, ISearchResult, Service } from '../../service';
|
|
3
|
+
import { IFetchOptions, IOptions, ISearchResult, Service } from '../../service';
|
|
4
4
|
declare type IKeyOfProjection = keyof Omit<factory.seller.ISeller, 'makesOffer' | 'paymentAccepted'>;
|
|
5
5
|
declare type IProjection = {
|
|
6
6
|
[key in IKeyOfProjection]?: 0;
|
|
@@ -10,6 +10,10 @@ declare type IProjection = {
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class SellerService extends Service<IOptions> {
|
|
12
12
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>);
|
|
13
|
+
/**
|
|
14
|
+
* for examples
|
|
15
|
+
*/
|
|
16
|
+
fetch(options: IFetchOptions): Promise<Response>;
|
|
13
17
|
/**
|
|
14
18
|
* 販売者取得
|
|
15
19
|
*/
|
|
@@ -73,6 +73,17 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
73
73
|
function SellerService(options) {
|
|
74
74
|
return _super.call(this, __assign(__assign({}, options), { retryableStatusCodes: [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED] })) || this;
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* for examples
|
|
78
|
+
*/
|
|
79
|
+
// tslint:disable-next-line:no-unnecessary-override
|
|
80
|
+
SellerService.prototype.fetch = function (options) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
return [2 /*return*/, _super.prototype.fetch.call(this, options)];
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
};
|
|
76
87
|
/**
|
|
77
88
|
* 販売者取得
|
|
78
89
|
*/
|