@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
|
@@ -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.SeatSectionService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
var BASE_URI = '/seatSections';
|
|
58
|
+
/**
|
|
59
|
+
* 座席セクションサービス
|
|
60
|
+
*/
|
|
61
|
+
var SeatSectionService = /** @class */ (function (_super) {
|
|
62
|
+
__extends(SeatSectionService, _super);
|
|
63
|
+
function SeatSectionService() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 座席セクション検索
|
|
68
|
+
*/
|
|
69
|
+
SeatSectionService.prototype.findSeatSections = 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
|
+
SeatSectionService.prototype.upsertSeatSectionsByBranchCode = function (
|
|
90
|
+
/**
|
|
91
|
+
* max: 20
|
|
92
|
+
*/
|
|
93
|
+
params, options) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
95
|
+
var movieTheaterId, roomCode;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
switch (_a.label) {
|
|
98
|
+
case 0:
|
|
99
|
+
movieTheaterId = options.movieTheaterId, roomCode = options.roomCode;
|
|
100
|
+
return [4 /*yield*/, this.fetch({
|
|
101
|
+
uri: BASE_URI,
|
|
102
|
+
method: 'POST',
|
|
103
|
+
body: params,
|
|
104
|
+
qs: { movieTheaterId: movieTheaterId, roomCode: roomCode },
|
|
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 SeatSectionService;
|
|
116
|
+
}(service_1.Service));
|
|
117
|
+
exports.SeatSectionService = SeatSectionService;
|
|
@@ -9,6 +9,7 @@ import type { EventSeriesService } from './chevreAdmin/eventSeries';
|
|
|
9
9
|
import type { MeService } from './chevreAdmin/me';
|
|
10
10
|
import type { MemberService } from './chevreAdmin/member';
|
|
11
11
|
import type { MovieService } from './chevreAdmin/movie';
|
|
12
|
+
import type { MovieTheaterService } from './chevreAdmin/movieTheater';
|
|
12
13
|
import type { NoteService } from './chevreAdmin/note';
|
|
13
14
|
import type { NoteAboutOrderService } from './chevreAdmin/noteAboutOrder';
|
|
14
15
|
import type { OfferService } from './chevreAdmin/offer';
|
|
@@ -19,7 +20,9 @@ import type { PaymentMethodService } from './chevreAdmin/paymentMethod';
|
|
|
19
20
|
import type { ProductService } from './chevreAdmin/product';
|
|
20
21
|
import type { ProductOfferService } from './chevreAdmin/productOffer';
|
|
21
22
|
import type { ReservationService } from './chevreAdmin/reservation';
|
|
23
|
+
import type { RoomService } from './chevreAdmin/room';
|
|
22
24
|
import type { SeatService } from './chevreAdmin/seat';
|
|
25
|
+
import type { SeatSectionService } from './chevreAdmin/seatSection';
|
|
23
26
|
import type { SellerService } from './chevreAdmin/seller';
|
|
24
27
|
export declare namespace service {
|
|
25
28
|
type IUnset = IUnsetOnService;
|
|
@@ -86,6 +89,13 @@ export declare namespace service {
|
|
|
86
89
|
namespace Movie {
|
|
87
90
|
let svc: typeof MovieService | undefined;
|
|
88
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* 施設サービス
|
|
94
|
+
*/
|
|
95
|
+
type MovieTheater = MovieTheaterService;
|
|
96
|
+
namespace MovieTheater {
|
|
97
|
+
let svc: typeof MovieTheaterService | undefined;
|
|
98
|
+
}
|
|
89
99
|
/**
|
|
90
100
|
* メモサービス
|
|
91
101
|
*/
|
|
@@ -135,6 +145,13 @@ export declare namespace service {
|
|
|
135
145
|
namespace Reservation {
|
|
136
146
|
let svc: typeof ReservationService | undefined;
|
|
137
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* ルームサービス
|
|
150
|
+
*/
|
|
151
|
+
type Room = RoomService;
|
|
152
|
+
namespace Room {
|
|
153
|
+
let svc: typeof RoomService | undefined;
|
|
154
|
+
}
|
|
138
155
|
/**
|
|
139
156
|
* 座席サービス
|
|
140
157
|
*/
|
|
@@ -142,6 +159,13 @@ export declare namespace service {
|
|
|
142
159
|
namespace Seat {
|
|
143
160
|
let svc: typeof SeatService | undefined;
|
|
144
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* 座席セクションサービス
|
|
164
|
+
*/
|
|
165
|
+
type SeatSection = SeatSectionService;
|
|
166
|
+
namespace SeatSection {
|
|
167
|
+
let svc: typeof SeatSectionService | undefined;
|
|
168
|
+
}
|
|
145
169
|
/**
|
|
146
170
|
* 販売者サービス
|
|
147
171
|
*/
|
|
@@ -195,6 +219,10 @@ export declare class ChevreAdmin {
|
|
|
195
219
|
createMeInstance(): Promise<MeService>;
|
|
196
220
|
createMemberInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MemberService>;
|
|
197
221
|
createMovieInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MovieService>;
|
|
222
|
+
/**
|
|
223
|
+
* 販売者指定必須
|
|
224
|
+
*/
|
|
225
|
+
createMovieTheaterInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MovieTheaterService>;
|
|
198
226
|
createNoteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteService>;
|
|
199
227
|
createNoteAboutOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteAboutOrderService>;
|
|
200
228
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
@@ -202,7 +230,18 @@ export declare class ChevreAdmin {
|
|
|
202
230
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
203
231
|
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
204
232
|
createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
233
|
+
/**
|
|
234
|
+
* 販売者指定必須
|
|
235
|
+
*/
|
|
236
|
+
createRoomInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<RoomService>;
|
|
237
|
+
/**
|
|
238
|
+
* 販売者指定必須
|
|
239
|
+
*/
|
|
205
240
|
createSeatInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatService>;
|
|
241
|
+
/**
|
|
242
|
+
* 販売者指定必須
|
|
243
|
+
*/
|
|
244
|
+
createSeatSectionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatSectionService>;
|
|
206
245
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
207
246
|
createOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OfferService>;
|
|
208
247
|
createOfferCatalogInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OfferCatalogService>;
|
|
@@ -77,6 +77,9 @@ var service;
|
|
|
77
77
|
var Movie;
|
|
78
78
|
(function (Movie) {
|
|
79
79
|
})(Movie = service.Movie || (service.Movie = {}));
|
|
80
|
+
var MovieTheater;
|
|
81
|
+
(function (MovieTheater) {
|
|
82
|
+
})(MovieTheater = service.MovieTheater || (service.MovieTheater = {}));
|
|
80
83
|
var Note;
|
|
81
84
|
(function (Note) {
|
|
82
85
|
})(Note = service.Note || (service.Note = {}));
|
|
@@ -98,9 +101,15 @@ var service;
|
|
|
98
101
|
var Reservation;
|
|
99
102
|
(function (Reservation) {
|
|
100
103
|
})(Reservation = service.Reservation || (service.Reservation = {}));
|
|
104
|
+
var Room;
|
|
105
|
+
(function (Room) {
|
|
106
|
+
})(Room = service.Room || (service.Room = {}));
|
|
101
107
|
var Seat;
|
|
102
108
|
(function (Seat) {
|
|
103
109
|
})(Seat = service.Seat || (service.Seat = {}));
|
|
110
|
+
var SeatSection;
|
|
111
|
+
(function (SeatSection) {
|
|
112
|
+
})(SeatSection = service.SeatSection || (service.SeatSection = {}));
|
|
104
113
|
var Seller;
|
|
105
114
|
(function (Seller) {
|
|
106
115
|
})(Seller = service.Seller || (service.Seller = {}));
|
|
@@ -280,6 +289,26 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
280
289
|
});
|
|
281
290
|
});
|
|
282
291
|
};
|
|
292
|
+
/**
|
|
293
|
+
* 販売者指定必須
|
|
294
|
+
*/
|
|
295
|
+
ChevreAdmin.prototype.createMovieTheaterInstance = function (params) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
297
|
+
var _a;
|
|
298
|
+
return __generator(this, function (_b) {
|
|
299
|
+
switch (_b.label) {
|
|
300
|
+
case 0:
|
|
301
|
+
if (!(service.MovieTheater.svc === undefined)) return [3 /*break*/, 2];
|
|
302
|
+
_a = service.MovieTheater;
|
|
303
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/movieTheater'); })];
|
|
304
|
+
case 1:
|
|
305
|
+
_a.svc = (_b.sent()).MovieTheaterService;
|
|
306
|
+
_b.label = 2;
|
|
307
|
+
case 2: return [2 /*return*/, new service.MovieTheater.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
};
|
|
283
312
|
ChevreAdmin.prototype.createNoteInstance = function (params) {
|
|
284
313
|
return __awaiter(this, void 0, void 0, function () {
|
|
285
314
|
var _a;
|
|
@@ -399,6 +428,29 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
399
428
|
});
|
|
400
429
|
});
|
|
401
430
|
};
|
|
431
|
+
/**
|
|
432
|
+
* 販売者指定必須
|
|
433
|
+
*/
|
|
434
|
+
ChevreAdmin.prototype.createRoomInstance = function (params) {
|
|
435
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
436
|
+
var _a;
|
|
437
|
+
return __generator(this, function (_b) {
|
|
438
|
+
switch (_b.label) {
|
|
439
|
+
case 0:
|
|
440
|
+
if (!(service.Room.svc === undefined)) return [3 /*break*/, 2];
|
|
441
|
+
_a = service.Room;
|
|
442
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/room'); })];
|
|
443
|
+
case 1:
|
|
444
|
+
_a.svc = (_b.sent()).RoomService;
|
|
445
|
+
_b.label = 2;
|
|
446
|
+
case 2: return [2 /*return*/, new service.Room.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
});
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* 販売者指定必須
|
|
453
|
+
*/
|
|
402
454
|
ChevreAdmin.prototype.createSeatInstance = function (params) {
|
|
403
455
|
return __awaiter(this, void 0, void 0, function () {
|
|
404
456
|
var _a;
|
|
@@ -416,6 +468,26 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
416
468
|
});
|
|
417
469
|
});
|
|
418
470
|
};
|
|
471
|
+
/**
|
|
472
|
+
* 販売者指定必須
|
|
473
|
+
*/
|
|
474
|
+
ChevreAdmin.prototype.createSeatSectionInstance = function (params) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
476
|
+
var _a;
|
|
477
|
+
return __generator(this, function (_b) {
|
|
478
|
+
switch (_b.label) {
|
|
479
|
+
case 0:
|
|
480
|
+
if (!(service.SeatSection.svc === undefined)) return [3 /*break*/, 2];
|
|
481
|
+
_a = service.SeatSection;
|
|
482
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/seatSection'); })];
|
|
483
|
+
case 1:
|
|
484
|
+
_a.svc = (_b.sent()).SeatSectionService;
|
|
485
|
+
_b.label = 2;
|
|
486
|
+
case 2: return [2 /*return*/, new service.SeatSection.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
};
|
|
419
491
|
ChevreAdmin.prototype.createSellerInstance = function (params) {
|
|
420
492
|
return __awaiter(this, void 0, void 0, function () {
|
|
421
493
|
var _a;
|
|
@@ -39,10 +39,9 @@ export interface IAggregateReservation {
|
|
|
39
39
|
typeOf: factory.eventType;
|
|
40
40
|
startDate: Date;
|
|
41
41
|
};
|
|
42
|
-
aggregateEntranceGate?: factory.event.screeningEvent.IAggregateEntranceGate;
|
|
43
42
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
44
43
|
}
|
|
45
|
-
export declare type ISearchWithReservationForIdResult = Pick<IAggregateReservation, '
|
|
44
|
+
export declare type ISearchWithReservationForIdResult = Pick<IAggregateReservation, 'aggregateOffer'> & {
|
|
46
45
|
/**
|
|
47
46
|
* イベントID
|
|
48
47
|
*/
|
|
@@ -7,13 +7,6 @@ export declare class CreativeWorkService extends Service {
|
|
|
7
7
|
createMovie(params: factory.creativeWork.movie.ICreateParams): Promise<{
|
|
8
8
|
id: string;
|
|
9
9
|
}>;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated use chevreAdmin
|
|
12
|
-
*/
|
|
13
|
-
findMoviesDeprecated(params: Pick<factory.creativeWork.movie.ISearchConditions, 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor' | 'id' | 'identifier' | 'name' | 'offers' | 'sort'> & {
|
|
14
|
-
limit: number;
|
|
15
|
-
page: number;
|
|
16
|
-
}): Promise<Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'id' | 'identifier' | 'name' | 'offers' | 'thumbnailUrl'>[]>;
|
|
17
10
|
updateMovie(params: factory.creativeWork.movie.ICreateParams & {
|
|
18
11
|
id: string;
|
|
19
12
|
} & IUnset): Promise<void>;
|
|
@@ -78,25 +78,32 @@ var CreativeWorkService = /** @class */ (function (_super) {
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
/**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
81
|
+
// /**
|
|
82
|
+
// * @deprecated use chevreAdmin
|
|
83
|
+
// */
|
|
84
|
+
// public async findMoviesDeprecated(
|
|
85
|
+
// params: Pick<
|
|
86
|
+
// factory.creativeWork.movie.ISearchConditions,
|
|
87
|
+
// 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor'
|
|
88
|
+
// | 'id' | 'identifier' | 'name' | 'offers' | 'sort'
|
|
89
|
+
// > & {
|
|
90
|
+
// limit: number;
|
|
91
|
+
// page: number;
|
|
92
|
+
// }
|
|
93
|
+
// ): Promise<Pick<
|
|
94
|
+
// factory.creativeWork.movie.ICreativeWork,
|
|
95
|
+
// 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline'
|
|
96
|
+
// | 'id' | 'identifier' | 'name' | 'offers' | 'thumbnailUrl'
|
|
97
|
+
// // | 'typeOf'
|
|
98
|
+
// >[]> {
|
|
99
|
+
// return this.fetch({
|
|
100
|
+
// uri: '/creativeWorks/movie',
|
|
101
|
+
// method: 'GET',
|
|
102
|
+
// qs: params,
|
|
103
|
+
// expectedStatusCodes: [OK]
|
|
104
|
+
// })
|
|
105
|
+
// .then(async (response) => response.json());
|
|
106
|
+
// }
|
|
100
107
|
// discontinue(2025-10-19~)
|
|
101
108
|
// public async findMovieById(params: {
|
|
102
109
|
// id: string;
|
|
@@ -1,30 +1,9 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
declare type IKeyOfProjection = keyof factory.eventSeries.IEvent;
|
|
4
|
-
declare type IProjection = {
|
|
5
|
-
[key in IKeyOfProjection]?: 0;
|
|
6
|
-
};
|
|
7
3
|
/**
|
|
8
4
|
* 施設コンテンツサービス
|
|
9
5
|
*/
|
|
10
6
|
export declare class EventSeriesService extends Service {
|
|
11
|
-
/**
|
|
12
|
-
* 施設コンテンツ検索
|
|
13
|
-
* @deprecated use chevreAdmin
|
|
14
|
-
*/
|
|
15
|
-
findEventSeriesDeprecated(params: Pick<factory.eventSeries.ISearchConditions, 'additionalProperty' | 'endFrom' | 'id' | 'inSessionFrom' | 'limit' | 'name' | 'page' | 'sort' | 'soundFormat' | 'videoFormat' | 'workPerformed'> & {
|
|
16
|
-
location?: {
|
|
17
|
-
branchCode?: never;
|
|
18
|
-
/**
|
|
19
|
-
* 施設ID
|
|
20
|
-
*/
|
|
21
|
-
id?: {
|
|
22
|
-
$eq?: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
typeOf: factory.eventType.ScreeningEventSeries;
|
|
26
|
-
$projection?: IProjection;
|
|
27
|
-
}): Promise<factory.eventSeries.IEvent[]>;
|
|
28
7
|
createIfNotExistByWorkPerformed(params: {
|
|
29
8
|
attributes: factory.eventSeries.ICreateParams[];
|
|
30
9
|
qs: {
|
|
@@ -74,4 +53,3 @@ export declare class EventSeriesService extends Service {
|
|
|
74
53
|
id: string;
|
|
75
54
|
}): Promise<void>;
|
|
76
55
|
}
|
|
77
|
-
export {};
|
|
@@ -63,26 +63,6 @@ var EventSeriesService = /** @class */ (function (_super) {
|
|
|
63
63
|
function EventSeriesService() {
|
|
64
64
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
65
|
}
|
|
66
|
-
/**
|
|
67
|
-
* 施設コンテンツ検索
|
|
68
|
-
* @deprecated use chevreAdmin
|
|
69
|
-
*/
|
|
70
|
-
EventSeriesService.prototype.findEventSeriesDeprecated = 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: "/events/" + factory.eventType.ScreeningEventSeries,
|
|
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
66
|
EventSeriesService.prototype.createIfNotExistByWorkPerformed = function (params) {
|
|
87
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
88
68
|
return __generator(this, function (_a) {
|
|
@@ -4,6 +4,13 @@ export declare type IScreeningRoom = Omit<factory.place.screeningRoom.IPlace, 'c
|
|
|
4
4
|
export declare type IScreeningRoomSection = Omit<factory.place.screeningRoomSection.IPlace, 'containsPlace' | 'parentOrganization' | 'seatCount'>;
|
|
5
5
|
export declare type ISeat = Omit<factory.place.seat.IPlace, 'parentOrganization'>;
|
|
6
6
|
export declare type IMovieTheater = Pick<factory.place.movieTheater.IPlace, 'typeOf' | 'additionalProperty' | 'branchCode' | 'hasEntranceGate' | 'id' | 'kanaName' | 'name' | 'offers' | 'parentOrganization' | 'telephone' | 'project'>;
|
|
7
|
+
interface IFixMovieTheaterQuery {
|
|
8
|
+
movieTheaterCode: string;
|
|
9
|
+
}
|
|
10
|
+
interface IFixRoomQuery {
|
|
11
|
+
movieTheaterCode: string;
|
|
12
|
+
roomCode: string;
|
|
13
|
+
}
|
|
7
14
|
/**
|
|
8
15
|
* 施設サービス
|
|
9
16
|
*/
|
|
@@ -14,12 +21,6 @@ export declare class PlaceService extends Service {
|
|
|
14
21
|
createMovieTheater(params: IMovieTheater): Promise<{
|
|
15
22
|
id: string;
|
|
16
23
|
}>;
|
|
17
|
-
/**
|
|
18
|
-
* 施設検索
|
|
19
|
-
*/
|
|
20
|
-
searchMovieTheaters(params: Omit<factory.place.movieTheater.ISearchConditions, 'project'>): Promise<{
|
|
21
|
-
data: IMovieTheater[];
|
|
22
|
-
}>;
|
|
23
24
|
/**
|
|
24
25
|
* 施設更新
|
|
25
26
|
*/
|
|
@@ -30,16 +31,6 @@ export declare class PlaceService extends Service {
|
|
|
30
31
|
deleteMovieTheater(params: {
|
|
31
32
|
id: string;
|
|
32
33
|
}): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* ルーム作成
|
|
35
|
-
*/
|
|
36
|
-
createScreeningRoom(params: IScreeningRoom): Promise<IScreeningRoom>;
|
|
37
|
-
/**
|
|
38
|
-
* ルーム検索
|
|
39
|
-
*/
|
|
40
|
-
searchScreeningRooms(params: Omit<factory.place.screeningRoom.ISearchConditions, 'project' | '$projection'>): Promise<{
|
|
41
|
-
data: IScreeningRoom[];
|
|
42
|
-
}>;
|
|
43
34
|
/**
|
|
44
35
|
* ルームの座席数参照
|
|
45
36
|
*/
|
|
@@ -49,29 +40,15 @@ export declare class PlaceService extends Service {
|
|
|
49
40
|
}): Promise<{
|
|
50
41
|
seatCount: number;
|
|
51
42
|
}>;
|
|
52
|
-
/**
|
|
53
|
-
* ルーム更新
|
|
54
|
-
*/
|
|
55
|
-
updateScreeningRoom(params: IScreeningRoom & IUnset): Promise<void>;
|
|
56
43
|
/**
|
|
57
44
|
* ルーム削除
|
|
58
45
|
*/
|
|
59
|
-
|
|
46
|
+
deleteRoomByBranchCode(params: {
|
|
60
47
|
branchCode: string;
|
|
61
48
|
containedInPlace: {
|
|
62
49
|
branchCode: string;
|
|
63
50
|
};
|
|
64
|
-
}): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* セクション作成
|
|
67
|
-
*/
|
|
68
|
-
createScreeningRoomSection(params: factory.place.screeningRoomSection.IPlace): Promise<IScreeningRoomSection>;
|
|
69
|
-
/**
|
|
70
|
-
* セクション検索
|
|
71
|
-
*/
|
|
72
|
-
searchScreeningRoomSections(params: Omit<factory.place.screeningRoomSection.ISearchConditions, 'project' | '$projection'>): Promise<{
|
|
73
|
-
data: IScreeningRoomSection[];
|
|
74
|
-
}>;
|
|
51
|
+
}, options: IFixMovieTheaterQuery): Promise<void>;
|
|
75
52
|
/**
|
|
76
53
|
* セクションの座席数参照
|
|
77
54
|
*/
|
|
@@ -82,51 +59,12 @@ export declare class PlaceService extends Service {
|
|
|
82
59
|
}): Promise<{
|
|
83
60
|
seatCount: number;
|
|
84
61
|
}>;
|
|
85
|
-
/**
|
|
86
|
-
* セクション更新
|
|
87
|
-
*/
|
|
88
|
-
updateScreeningRoomSection(params: factory.place.screeningRoomSection.IPlace & IUnset): Promise<void>;
|
|
89
62
|
/**
|
|
90
63
|
* セクション削除
|
|
91
64
|
*/
|
|
92
|
-
|
|
65
|
+
deleteSectionByBranchCode(params: {
|
|
93
66
|
branchCode: string;
|
|
94
|
-
|
|
95
|
-
branchCode: string;
|
|
96
|
-
containedInPlace: {
|
|
97
|
-
branchCode: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
}): Promise<void>;
|
|
101
|
-
/**
|
|
102
|
-
* 座席作成
|
|
103
|
-
*/
|
|
104
|
-
createSeat(params: ISeat): Promise<ISeat>;
|
|
105
|
-
/**
|
|
106
|
-
* 座席検索
|
|
107
|
-
*/
|
|
108
|
-
searchSeats(params: Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<{
|
|
109
|
-
data: ISeat[];
|
|
110
|
-
}>;
|
|
111
|
-
/**
|
|
112
|
-
* 座席更新
|
|
113
|
-
*/
|
|
114
|
-
updateSeat(params: ISeat & IUnset): Promise<void>;
|
|
115
|
-
/**
|
|
116
|
-
* 座席削除
|
|
117
|
-
*/
|
|
118
|
-
deleteSeat(params: {
|
|
119
|
-
branchCode: string;
|
|
120
|
-
containedInPlace: {
|
|
121
|
-
branchCode: string;
|
|
122
|
-
containedInPlace: {
|
|
123
|
-
branchCode: string;
|
|
124
|
-
containedInPlace: {
|
|
125
|
-
branchCode: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
}): Promise<void>;
|
|
67
|
+
}, options: IFixRoomQuery): Promise<void>;
|
|
130
68
|
/**
|
|
131
69
|
* ターミナル作成
|
|
132
70
|
*/
|
|
@@ -148,3 +86,4 @@ export declare class PlaceService extends Service {
|
|
|
148
86
|
id: string;
|
|
149
87
|
}): Promise<void>;
|
|
150
88
|
}
|
|
89
|
+
export {};
|