@cinerino/sdk 12.13.0-alpha.8 → 12.13.0-alpha.9
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { IUnset, Service } from '../service';
|
|
3
|
-
export declare type IScreeningRoom = Omit<factory.place.screeningRoom.IPlace, 'containsPlace' | 'parentOrganization'>;
|
|
4
|
-
export declare type IScreeningRoomSection = Omit<factory.place.screeningRoomSection.IPlace, 'containsPlace' | 'parentOrganization'>;
|
|
3
|
+
export declare type IScreeningRoom = Omit<factory.place.screeningRoom.IPlace, 'containsPlace' | 'parentOrganization' | 'seatCount' | 'sectionCount'>;
|
|
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
7
|
/**
|
|
@@ -37,9 +37,18 @@ export declare class PlaceService extends Service {
|
|
|
37
37
|
/**
|
|
38
38
|
* ルーム検索
|
|
39
39
|
*/
|
|
40
|
-
searchScreeningRooms(params: Omit<factory.place.screeningRoom.ISearchConditions, 'project'>): Promise<{
|
|
40
|
+
searchScreeningRooms(params: Omit<factory.place.screeningRoom.ISearchConditions, 'project' | '$projection'>): Promise<{
|
|
41
41
|
data: IScreeningRoom[];
|
|
42
42
|
}>;
|
|
43
|
+
/**
|
|
44
|
+
* ルームの座席数参照
|
|
45
|
+
*/
|
|
46
|
+
findRoomSeatCount(params: {
|
|
47
|
+
branchCode: string;
|
|
48
|
+
movieTheaterCode: string;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
seatCount: number;
|
|
51
|
+
}>;
|
|
43
52
|
/**
|
|
44
53
|
* ルーム更新
|
|
45
54
|
*/
|
|
@@ -60,9 +69,19 @@ export declare class PlaceService extends Service {
|
|
|
60
69
|
/**
|
|
61
70
|
* セクション検索
|
|
62
71
|
*/
|
|
63
|
-
searchScreeningRoomSections(params: Omit<factory.place.screeningRoomSection.ISearchConditions, 'project'>): Promise<{
|
|
72
|
+
searchScreeningRoomSections(params: Omit<factory.place.screeningRoomSection.ISearchConditions, 'project' | '$projection'>): Promise<{
|
|
64
73
|
data: IScreeningRoomSection[];
|
|
65
74
|
}>;
|
|
75
|
+
/**
|
|
76
|
+
* セクションの座席数参照
|
|
77
|
+
*/
|
|
78
|
+
findSectionSeatCount(params: {
|
|
79
|
+
branchCode: string;
|
|
80
|
+
movieTheaterCode: string;
|
|
81
|
+
roomCode: string;
|
|
82
|
+
}): Promise<{
|
|
83
|
+
seatCount: number;
|
|
84
|
+
}>;
|
|
66
85
|
/**
|
|
67
86
|
* セクション更新
|
|
68
87
|
*/
|
|
@@ -196,6 +196,27 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
};
|
|
199
|
+
/**
|
|
200
|
+
* ルームの座席数参照
|
|
201
|
+
*/
|
|
202
|
+
PlaceService.prototype.findRoomSeatCount = function (params) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
204
|
+
var branchCode, movieTheaterCode;
|
|
205
|
+
var _this = this;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
branchCode = params.branchCode, movieTheaterCode = params.movieTheaterCode;
|
|
208
|
+
return [2 /*return*/, this.fetch({
|
|
209
|
+
uri: "/places/" + factory.placeType.ScreeningRoom + "/" + encodeURIComponent(String(branchCode)) + "/seatCount",
|
|
210
|
+
method: 'GET',
|
|
211
|
+
qs: { movieTheaterCode: movieTheaterCode },
|
|
212
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
213
|
+
})
|
|
214
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
215
|
+
return [2 /*return*/, response.json()];
|
|
216
|
+
}); }); })];
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
199
220
|
/**
|
|
200
221
|
* ルーム更新
|
|
201
222
|
*/
|
|
@@ -283,6 +304,27 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
283
304
|
});
|
|
284
305
|
});
|
|
285
306
|
};
|
|
307
|
+
/**
|
|
308
|
+
* セクションの座席数参照
|
|
309
|
+
*/
|
|
310
|
+
PlaceService.prototype.findSectionSeatCount = function (params) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
312
|
+
var branchCode, movieTheaterCode, roomCode;
|
|
313
|
+
var _this = this;
|
|
314
|
+
return __generator(this, function (_a) {
|
|
315
|
+
branchCode = params.branchCode, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
|
|
316
|
+
return [2 /*return*/, this.fetch({
|
|
317
|
+
uri: "/places/" + factory.placeType.ScreeningRoomSection + "/" + encodeURIComponent(String(branchCode)) + "/seatCount",
|
|
318
|
+
method: 'GET',
|
|
319
|
+
qs: { movieTheaterCode: movieTheaterCode, roomCode: roomCode },
|
|
320
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
321
|
+
})
|
|
322
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
323
|
+
return [2 /*return*/, response.json()];
|
|
324
|
+
}); }); })];
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
};
|
|
286
328
|
/**
|
|
287
329
|
* セクション更新
|
|
288
330
|
*/
|
package/lib/bundle.js
CHANGED
|
@@ -15652,6 +15652,27 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
15652
15652
|
});
|
|
15653
15653
|
});
|
|
15654
15654
|
};
|
|
15655
|
+
/**
|
|
15656
|
+
* ルームの座席数参照
|
|
15657
|
+
*/
|
|
15658
|
+
PlaceService.prototype.findRoomSeatCount = function (params) {
|
|
15659
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15660
|
+
var branchCode, movieTheaterCode;
|
|
15661
|
+
var _this = this;
|
|
15662
|
+
return __generator(this, function (_a) {
|
|
15663
|
+
branchCode = params.branchCode, movieTheaterCode = params.movieTheaterCode;
|
|
15664
|
+
return [2 /*return*/, this.fetch({
|
|
15665
|
+
uri: "/places/" + factory.placeType.ScreeningRoom + "/" + encodeURIComponent(String(branchCode)) + "/seatCount",
|
|
15666
|
+
method: 'GET',
|
|
15667
|
+
qs: { movieTheaterCode: movieTheaterCode },
|
|
15668
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
15669
|
+
})
|
|
15670
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
15671
|
+
return [2 /*return*/, response.json()];
|
|
15672
|
+
}); }); })];
|
|
15673
|
+
});
|
|
15674
|
+
});
|
|
15675
|
+
};
|
|
15655
15676
|
/**
|
|
15656
15677
|
* ルーム更新
|
|
15657
15678
|
*/
|
|
@@ -15739,6 +15760,27 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
15739
15760
|
});
|
|
15740
15761
|
});
|
|
15741
15762
|
};
|
|
15763
|
+
/**
|
|
15764
|
+
* セクションの座席数参照
|
|
15765
|
+
*/
|
|
15766
|
+
PlaceService.prototype.findSectionSeatCount = function (params) {
|
|
15767
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15768
|
+
var branchCode, movieTheaterCode, roomCode;
|
|
15769
|
+
var _this = this;
|
|
15770
|
+
return __generator(this, function (_a) {
|
|
15771
|
+
branchCode = params.branchCode, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
|
|
15772
|
+
return [2 /*return*/, this.fetch({
|
|
15773
|
+
uri: "/places/" + factory.placeType.ScreeningRoomSection + "/" + encodeURIComponent(String(branchCode)) + "/seatCount",
|
|
15774
|
+
method: 'GET',
|
|
15775
|
+
qs: { movieTheaterCode: movieTheaterCode, roomCode: roomCode },
|
|
15776
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
15777
|
+
})
|
|
15778
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
15779
|
+
return [2 /*return*/, response.json()];
|
|
15780
|
+
}); }); })];
|
|
15781
|
+
});
|
|
15782
|
+
});
|
|
15783
|
+
};
|
|
15742
15784
|
/**
|
|
15743
15785
|
* セクション更新
|
|
15744
15786
|
*/
|