@cinerino/sdk 14.0.0 → 15.0.0-alpha.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/lib/abstract/chevre/place.d.ts +0 -6
- package/lib/abstract/chevre/place.js +0 -16
- package/lib/abstract/chevre.d.ts +0 -9
- package/lib/abstract/chevre.js +0 -9
- package/lib/abstract/chevreAsset/order/factory.d.ts +0 -1
- package/lib/abstract/chevreAsset/order.d.ts +3 -2
- package/lib/abstract/chevreAsset/order.js +0 -5
- package/lib/abstract/chevreAsset.d.ts +0 -9
- package/lib/abstract/chevreAsset.js +0 -14
- package/lib/abstract/chevreConsole/order/factory.d.ts +2 -2
- package/lib/abstract/chevreConsole/place.d.ts +1 -22
- package/lib/abstract/chevreConsole/place.js +0 -291
- package/lib/abstract/chevreConsole.d.ts +0 -36
- package/lib/abstract/chevreConsole.js +0 -38
- package/lib/abstract/chevreTxn/offer.d.ts +1 -8
- package/lib/abstract/chevreTxn/offer.js +0 -15
- package/lib/abstract/chevreTxn/transaction/placeOrder/factory.d.ts +0 -3
- package/lib/abstract/cloud/admin/order.d.ts +3 -3
- package/lib/abstract/cloud/admin/order.js +1 -50
- package/lib/abstract/cloud/asset/order.d.ts +3 -2
- package/lib/abstract/cloud/asset/order.js +0 -72
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevre/trip.d.ts +0 -11
- package/lib/abstract/chevre/trip.js +0 -27
- package/lib/abstract/chevreAsset/permit.d.ts +0 -36
- package/lib/abstract/chevreAsset/permit.js +0 -36
- package/lib/abstract/chevreConsole/accountTransaction.d.ts +0 -18
- package/lib/abstract/chevreConsole/accountTransaction.js +0 -27
- package/lib/abstract/chevreConsole/assetTransaction/moneyTransfer.d.ts +0 -27
- package/lib/abstract/chevreConsole/assetTransaction/moneyTransfer.js +0 -51
- package/lib/abstract/chevreConsole/assetTransaction/registerService.d.ts +0 -24
- package/lib/abstract/chevreConsole/assetTransaction/registerService.js +0 -51
- package/lib/abstract/chevreConsole/trip.d.ts +0 -36
- package/lib/abstract/chevreConsole/trip.js +0 -71
|
@@ -85,11 +85,5 @@ export declare class PlaceService extends Service {
|
|
|
85
85
|
*/
|
|
86
86
|
seatingType?: string;
|
|
87
87
|
}): Promise<ISeat[]>;
|
|
88
|
-
/**
|
|
89
|
-
* ターミナル検索
|
|
90
|
-
*/
|
|
91
|
-
searchBusStops(params: Omit<factory.place.busStop.ISearchConditions, 'project'>): Promise<{
|
|
92
|
-
data: factory.place.busStop.IPlace[];
|
|
93
|
-
}>;
|
|
94
88
|
}
|
|
95
89
|
export {};
|
|
@@ -98,21 +98,5 @@ class PlaceService extends service_1.Service {
|
|
|
98
98
|
})
|
|
99
99
|
.then(async (response) => response.json());
|
|
100
100
|
}
|
|
101
|
-
/**
|
|
102
|
-
* ターミナル検索
|
|
103
|
-
*/
|
|
104
|
-
async searchBusStops(params) {
|
|
105
|
-
return this.fetch({
|
|
106
|
-
uri: `/places/${factory_1.factory.placeType.BusStop}`,
|
|
107
|
-
method: 'GET',
|
|
108
|
-
qs: params,
|
|
109
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
110
|
-
})
|
|
111
|
-
.then(async (response) => {
|
|
112
|
-
return {
|
|
113
|
-
data: await response.json()
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
101
|
}
|
|
118
102
|
exports.PlaceService = PlaceService;
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ import type { ProductService } from './chevre/product';
|
|
|
13
13
|
import type { ProductOfferService } from './chevre/productOffer';
|
|
14
14
|
import type { SeatOfferService } from './chevre/seatOffer';
|
|
15
15
|
import type { SellerService } from './chevre/seller';
|
|
16
|
-
import type { TripService } from './chevre/trip';
|
|
17
16
|
export declare namespace service {
|
|
18
17
|
type IUnset = IUnsetOnService;
|
|
19
18
|
/**
|
|
@@ -116,13 +115,6 @@ export declare namespace service {
|
|
|
116
115
|
namespace Seller {
|
|
117
116
|
let svc: typeof SellerService | undefined;
|
|
118
117
|
}
|
|
119
|
-
/**
|
|
120
|
-
* トリップサービス
|
|
121
|
-
*/
|
|
122
|
-
type Trip = TripService;
|
|
123
|
-
namespace Trip {
|
|
124
|
-
let svc: typeof TripService | undefined;
|
|
125
|
-
}
|
|
126
118
|
}
|
|
127
119
|
/**
|
|
128
120
|
* デフォルトサービス
|
|
@@ -144,5 +136,4 @@ export declare class Chevre {
|
|
|
144
136
|
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
145
137
|
createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
|
|
146
138
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
147
|
-
createTripInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TripService>;
|
|
148
139
|
}
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -81,9 +81,6 @@ var service;
|
|
|
81
81
|
let Seller;
|
|
82
82
|
(function (Seller) {
|
|
83
83
|
})(Seller = service.Seller || (service.Seller = {}));
|
|
84
|
-
let Trip;
|
|
85
|
-
(function (Trip) {
|
|
86
|
-
})(Trip = service.Trip || (service.Trip = {}));
|
|
87
84
|
})(service || (exports.service = service = {}));
|
|
88
85
|
/**
|
|
89
86
|
* デフォルトサービス
|
|
@@ -177,11 +174,5 @@ class Chevre {
|
|
|
177
174
|
}
|
|
178
175
|
return new service.Seller.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
179
176
|
}
|
|
180
|
-
async createTripInstance(params) {
|
|
181
|
-
if (service.Trip.svc === undefined) {
|
|
182
|
-
service.Trip.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/trip.js')))).TripService;
|
|
183
|
-
}
|
|
184
|
-
return new service.Trip.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
185
|
-
}
|
|
186
177
|
}
|
|
187
178
|
exports.Chevre = Chevre;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { IAuthorizeResult, IOrderAsFindByConfirmationNumberResult } from './order/factory';
|
|
2
3
|
import { Service } from '../service';
|
|
3
4
|
/**
|
|
4
5
|
* 注文サービス
|
|
@@ -89,7 +90,7 @@ export declare class OrderService extends Service {
|
|
|
89
90
|
page?: number;
|
|
90
91
|
confirmationNumber: string;
|
|
91
92
|
orderNumber: string;
|
|
92
|
-
}): Promise<IAcceptedOffer[]>;
|
|
93
|
+
}): Promise<factory.order.IAcceptedOffer[]>;
|
|
93
94
|
/**
|
|
94
95
|
* 注文コードを発行する
|
|
95
96
|
*/
|
|
@@ -4,11 +4,6 @@ exports.OrderService = void 0;
|
|
|
4
4
|
const http_status_1 = require("http-status");
|
|
5
5
|
const factory_1 = require("../factory");
|
|
6
6
|
const service_1 = require("../service");
|
|
7
|
-
// type IKeyOfProjection = keyof factory.order.IOrder | '_id';
|
|
8
|
-
// type IProjection = { [key in IKeyOfProjection]?: 0; };
|
|
9
|
-
// interface IProjectionSearchConditions {
|
|
10
|
-
// $projection?: IProjection;
|
|
11
|
-
// }
|
|
12
7
|
/**
|
|
13
8
|
* 注文サービス
|
|
14
9
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
|
|
2
2
|
import type { OrderService } from './chevreAsset/order';
|
|
3
|
-
import type { PermitService } from './chevreAsset/permit';
|
|
4
3
|
import type { ReservationService } from './chevreAsset/reservation';
|
|
5
4
|
import type { TokenService } from './chevreAsset/token';
|
|
6
5
|
export declare namespace service {
|
|
@@ -12,13 +11,6 @@ export declare namespace service {
|
|
|
12
11
|
namespace Order {
|
|
13
12
|
let svc: typeof OrderService | undefined;
|
|
14
13
|
}
|
|
15
|
-
/**
|
|
16
|
-
* 許可証サービス
|
|
17
|
-
*/
|
|
18
|
-
type Permit = PermitService;
|
|
19
|
-
namespace Permit {
|
|
20
|
-
let svc: typeof PermitService | undefined;
|
|
21
|
-
}
|
|
22
14
|
/**
|
|
23
15
|
* 予約サービス
|
|
24
16
|
*/
|
|
@@ -41,7 +33,6 @@ export declare class ChevreAsset {
|
|
|
41
33
|
options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
|
|
42
34
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
|
|
43
35
|
createOrderInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
44
|
-
createPermitInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
|
|
45
36
|
createReservationInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
46
37
|
createTokenInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<TokenService>;
|
|
47
38
|
}
|
|
@@ -39,9 +39,6 @@ var service;
|
|
|
39
39
|
let Order;
|
|
40
40
|
(function (Order) {
|
|
41
41
|
})(Order = service.Order || (service.Order = {}));
|
|
42
|
-
let Permit;
|
|
43
|
-
(function (Permit) {
|
|
44
|
-
})(Permit = service.Permit || (service.Permit = {}));
|
|
45
42
|
let Reservation;
|
|
46
43
|
(function (Reservation) {
|
|
47
44
|
})(Reservation = service.Reservation || (service.Reservation = {}));
|
|
@@ -68,17 +65,6 @@ class ChevreAsset {
|
|
|
68
65
|
]
|
|
69
66
|
});
|
|
70
67
|
}
|
|
71
|
-
async createPermitInstance(params) {
|
|
72
|
-
if (service.Permit.svc === undefined) {
|
|
73
|
-
service.Permit.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAsset/permit.js')))).PermitService;
|
|
74
|
-
}
|
|
75
|
-
return new service.Permit.svc({
|
|
76
|
-
...this.options, ...params,
|
|
77
|
-
retryableStatusCodes: [
|
|
78
|
-
...(Array.isArray(params.retryableStatusCodes)) ? params.retryableStatusCodes : []
|
|
79
|
-
]
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
68
|
async createReservationInstance(params) {
|
|
83
69
|
if (service.Reservation.svc === undefined) {
|
|
84
70
|
service.Reservation.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAsset/reservation.js')))).ReservationService;
|
|
@@ -3,7 +3,7 @@ import { factory } from '../../factory';
|
|
|
3
3
|
* オファー展開の検索結果としての注文
|
|
4
4
|
*/
|
|
5
5
|
export type IOrderAsSearchWithUnwindAcceptedOffersResult = Pick<factory.order.IOrder, 'confirmationNumber' | 'customer' | 'dateReturned' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'paymentMethods' | 'price' | 'priceCurrency' | 'project' | 'seller'> & {
|
|
6
|
-
acceptedOffers?: factory.order.IAcceptedOffer
|
|
6
|
+
acceptedOffers?: factory.order.IAcceptedOffer[];
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* オファー展開しない検索結果としての注文
|
|
@@ -15,7 +15,7 @@ export interface ISearchOrdersOptions {
|
|
|
15
15
|
*/
|
|
16
16
|
$unwindAcceptedOffers?: '1';
|
|
17
17
|
}
|
|
18
|
-
export type IAcceptedOffer = factory.order.IAcceptedOffer
|
|
18
|
+
export type IAcceptedOffer = factory.order.IAcceptedOffer;
|
|
19
19
|
export type IReturner = Pick<factory.iam.IMemberOfRole, 'typeOf' | 'id' | 'name'>;
|
|
20
20
|
export type IExternalOrder = Pick<factory.order.IOrder, 'project' | 'typeOf' | 'seller' | 'customer' | 'confirmationNumber' | 'orderNumber' | 'price' | 'priceCurrency' | 'orderDate' | 'name' | 'orderStatus' | 'orderedItem' | 'paymentMethods'>;
|
|
21
21
|
export interface IUpdateChangeableAttributesParams {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IUnset, Service } from '../service';
|
|
1
|
+
import { Service } from '../service';
|
|
3
2
|
interface IFixMovieTheaterQuery {
|
|
4
3
|
movieTheaterCode: string;
|
|
5
4
|
}
|
|
@@ -51,25 +50,5 @@ export declare class PlaceService extends Service {
|
|
|
51
50
|
deleteSectionByBranchCode(params: {
|
|
52
51
|
branchCode: string;
|
|
53
52
|
}, options: IFixRoomQuery): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* ターミナル作成
|
|
56
|
-
*/
|
|
57
|
-
createBusStop(params: factory.place.busStop.IPlace): Promise<factory.place.busStop.IPlace>;
|
|
58
|
-
/**
|
|
59
|
-
* ターミナル検索
|
|
60
|
-
*/
|
|
61
|
-
searchBusStops(params: Omit<factory.place.busStop.ISearchConditions, 'project'>): Promise<{
|
|
62
|
-
data: factory.place.busStop.IPlace[];
|
|
63
|
-
}>;
|
|
64
|
-
/**
|
|
65
|
-
* ターミナル更新
|
|
66
|
-
*/
|
|
67
|
-
updateBusStop(params: factory.place.busStop.IPlace & IUnset): Promise<void>;
|
|
68
|
-
/**
|
|
69
|
-
* ターミナル削除
|
|
70
|
-
*/
|
|
71
|
-
deleteBusStop(params: {
|
|
72
|
-
id: string;
|
|
73
|
-
}): Promise<void>;
|
|
74
53
|
}
|
|
75
54
|
export {};
|
|
@@ -4,61 +4,10 @@ exports.PlaceService = void 0;
|
|
|
4
4
|
const http_status_1 = require("http-status");
|
|
5
5
|
const factory_1 = require("../factory");
|
|
6
6
|
const service_1 = require("../service");
|
|
7
|
-
// interface IFixSectionQuery {
|
|
8
|
-
// movieTheaterCode: string;
|
|
9
|
-
// roomCode: string;
|
|
10
|
-
// sectionCode: string;
|
|
11
|
-
// }
|
|
12
7
|
/**
|
|
13
8
|
* 施設サービス
|
|
14
9
|
*/
|
|
15
10
|
class PlaceService extends service_1.Service {
|
|
16
|
-
// /**
|
|
17
|
-
// * 施設作成
|
|
18
|
-
// */
|
|
19
|
-
// public async createMovieTheater(
|
|
20
|
-
// params: IMovieTheater
|
|
21
|
-
// ): Promise<{ id: string }> {
|
|
22
|
-
// return this.fetch({
|
|
23
|
-
// uri: `/places/${factory.placeType.MovieTheater}`,
|
|
24
|
-
// method: 'POST',
|
|
25
|
-
// body: params,
|
|
26
|
-
// expectedStatusCodes: [status.CREATED]
|
|
27
|
-
// })
|
|
28
|
-
// .then(async (response) => response.json());
|
|
29
|
-
// }
|
|
30
|
-
// /**
|
|
31
|
-
// * 施設検索
|
|
32
|
-
// * migrate to chevreAdmin(2026-01-03~)
|
|
33
|
-
// */
|
|
34
|
-
// public async searchMovieTheaters(
|
|
35
|
-
// params: Omit<factory.place.movieTheater.ISearchConditions, 'project'>
|
|
36
|
-
// ): Promise<{
|
|
37
|
-
// data: IMovieTheater[];
|
|
38
|
-
// }> {
|
|
39
|
-
// return this.fetch({
|
|
40
|
-
// uri: `/places/${factory.placeType.MovieTheater}`,
|
|
41
|
-
// method: 'GET',
|
|
42
|
-
// qs: params,
|
|
43
|
-
// expectedStatusCodes: [status.OK]
|
|
44
|
-
// })
|
|
45
|
-
// .then(async (response) => {
|
|
46
|
-
// return {
|
|
47
|
-
// data: await response.json()
|
|
48
|
-
// };
|
|
49
|
-
// });
|
|
50
|
-
// }
|
|
51
|
-
// /**
|
|
52
|
-
// * 施設更新
|
|
53
|
-
// */
|
|
54
|
-
// public async updateMovieTheater(params: IMovieTheater & IUnset): Promise<void> {
|
|
55
|
-
// await this.fetch({
|
|
56
|
-
// uri: `/places/${factory.placeType.MovieTheater}/${encodeURIComponent(String(params.id))}`,
|
|
57
|
-
// method: 'PUT',
|
|
58
|
-
// body: params,
|
|
59
|
-
// expectedStatusCodes: [status.NO_CONTENT]
|
|
60
|
-
// });
|
|
61
|
-
// }
|
|
62
11
|
/**
|
|
63
12
|
* 施設削除
|
|
64
13
|
*/
|
|
@@ -69,44 +18,6 @@ class PlaceService extends service_1.Service {
|
|
|
69
18
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
70
19
|
});
|
|
71
20
|
}
|
|
72
|
-
// /**
|
|
73
|
-
// * ルーム追加
|
|
74
|
-
// * migrate to chevreAdmin(2026-01-12~)
|
|
75
|
-
// */
|
|
76
|
-
// public async createRoom(
|
|
77
|
-
// params: Pick<IScreeningRoom, 'additionalProperty' | 'address' | 'branchCode' | 'name' | 'openSeatingAllowed'>,
|
|
78
|
-
// options: IFixMovieTheaterQuery
|
|
79
|
-
// ): Promise<IScreeningRoom> {
|
|
80
|
-
// const { movieTheaterCode } = options;
|
|
81
|
-
// return this.fetch({
|
|
82
|
-
// uri: `/places/${factory.placeType.ScreeningRoom}`,
|
|
83
|
-
// method: 'POST',
|
|
84
|
-
// qs: { movieTheaterCode },
|
|
85
|
-
// body: params,
|
|
86
|
-
// expectedStatusCodes: [status.CREATED]
|
|
87
|
-
// })
|
|
88
|
-
// .then(async (response) => response.json());
|
|
89
|
-
// }
|
|
90
|
-
// /**
|
|
91
|
-
// * ルーム検索
|
|
92
|
-
// */
|
|
93
|
-
// public async searchScreeningRooms(
|
|
94
|
-
// params: Omit<factory.place.screeningRoom.ISearchConditions, 'project' | '$projection'>
|
|
95
|
-
// ): Promise<{
|
|
96
|
-
// data: IScreeningRoom[];
|
|
97
|
-
// }> {
|
|
98
|
-
// return this.fetch({
|
|
99
|
-
// uri: `/places/${factory.placeType.ScreeningRoom}`,
|
|
100
|
-
// method: 'GET',
|
|
101
|
-
// qs: params,
|
|
102
|
-
// expectedStatusCodes: [status.OK]
|
|
103
|
-
// })
|
|
104
|
-
// .then(async (response) => {
|
|
105
|
-
// return {
|
|
106
|
-
// data: await response.json()
|
|
107
|
-
// };
|
|
108
|
-
// });
|
|
109
|
-
// }
|
|
110
21
|
/**
|
|
111
22
|
* ルームの座席数参照
|
|
112
23
|
*/
|
|
@@ -120,23 +31,6 @@ class PlaceService extends service_1.Service {
|
|
|
120
31
|
})
|
|
121
32
|
.then(async (response) => response.json());
|
|
122
33
|
}
|
|
123
|
-
// /**
|
|
124
|
-
// * ルーム編集
|
|
125
|
-
// * migrate to chevreAdmin(2026-01-12~)
|
|
126
|
-
// */
|
|
127
|
-
// public async updateRoomByBranchCode(
|
|
128
|
-
// params: Pick<IScreeningRoom, 'additionalProperty' | 'address' | 'branchCode' | 'name' | 'openSeatingAllowed'> & IUnset,
|
|
129
|
-
// options: IFixMovieTheaterQuery
|
|
130
|
-
// ): Promise<void> {
|
|
131
|
-
// const { movieTheaterCode } = options;
|
|
132
|
-
// await this.fetch({
|
|
133
|
-
// uri: `/places/${factory.placeType.ScreeningRoom}/${encodeURIComponent(String(params.branchCode))}`,
|
|
134
|
-
// method: 'PUT',
|
|
135
|
-
// qs: { movieTheaterCode },
|
|
136
|
-
// body: params,
|
|
137
|
-
// expectedStatusCodes: [status.NO_CONTENT]
|
|
138
|
-
// });
|
|
139
|
-
// }
|
|
140
34
|
/**
|
|
141
35
|
* ルーム削除
|
|
142
36
|
*/
|
|
@@ -150,45 +44,6 @@ class PlaceService extends service_1.Service {
|
|
|
150
44
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
151
45
|
});
|
|
152
46
|
}
|
|
153
|
-
// /**
|
|
154
|
-
// * セクション作成
|
|
155
|
-
// */
|
|
156
|
-
// public async createSection(
|
|
157
|
-
// params: Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'> & {
|
|
158
|
-
// $unset?: never;
|
|
159
|
-
// },
|
|
160
|
-
// options: IFixRoomQuery
|
|
161
|
-
// ): Promise<IScreeningRoomSection> {
|
|
162
|
-
// const { movieTheaterCode, roomCode } = options;
|
|
163
|
-
// return this.fetch({
|
|
164
|
-
// uri: `/places/${factory.placeType.ScreeningRoomSection}`,
|
|
165
|
-
// method: 'POST',
|
|
166
|
-
// qs: { movieTheaterCode, roomCode },
|
|
167
|
-
// body: params,
|
|
168
|
-
// expectedStatusCodes: [status.CREATED]
|
|
169
|
-
// })
|
|
170
|
-
// .then(async (response) => response.json());
|
|
171
|
-
// }
|
|
172
|
-
// /**
|
|
173
|
-
// * セクション検索
|
|
174
|
-
// */
|
|
175
|
-
// public async searchScreeningRoomSections(
|
|
176
|
-
// params: Omit<factory.place.screeningRoomSection.ISearchConditions, 'project' | '$projection'>
|
|
177
|
-
// ): Promise<{
|
|
178
|
-
// data: IScreeningRoomSection[];
|
|
179
|
-
// }> {
|
|
180
|
-
// return this.fetch({
|
|
181
|
-
// uri: `/places/${factory.placeType.ScreeningRoomSection}`,
|
|
182
|
-
// method: 'GET',
|
|
183
|
-
// qs: params,
|
|
184
|
-
// expectedStatusCodes: [status.OK]
|
|
185
|
-
// })
|
|
186
|
-
// .then(async (response) => {
|
|
187
|
-
// return {
|
|
188
|
-
// data: await response.json()
|
|
189
|
-
// };
|
|
190
|
-
// });
|
|
191
|
-
// }
|
|
192
47
|
/**
|
|
193
48
|
* セクションの座席数参照
|
|
194
49
|
*/
|
|
@@ -202,38 +57,6 @@ class PlaceService extends service_1.Service {
|
|
|
202
57
|
})
|
|
203
58
|
.then(async (response) => response.json());
|
|
204
59
|
}
|
|
205
|
-
// /**
|
|
206
|
-
// * セクションの名称と追加特性を編集する
|
|
207
|
-
// */
|
|
208
|
-
// public async updateSectionByBranchCode(
|
|
209
|
-
// params: Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'> & IUnset,
|
|
210
|
-
// options: IFixRoomQuery
|
|
211
|
-
// ): Promise<void> {
|
|
212
|
-
// const { movieTheaterCode, roomCode } = options;
|
|
213
|
-
// await this.fetch({
|
|
214
|
-
// uri: `/places/${factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(params.branchCode))}`,
|
|
215
|
-
// method: 'PUT',
|
|
216
|
-
// qs: { movieTheaterCode, roomCode },
|
|
217
|
-
// body: params,
|
|
218
|
-
// expectedStatusCodes: [status.NO_CONTENT]
|
|
219
|
-
// });
|
|
220
|
-
// }
|
|
221
|
-
// /**
|
|
222
|
-
// * セクションの座席を上書きする
|
|
223
|
-
// */
|
|
224
|
-
// public async overwriteSectionSeats(
|
|
225
|
-
// params: Pick<factory.place.screeningRoomSection.IPlace, 'branchCode' | 'containsPlace'>,
|
|
226
|
-
// options: IFixRoomQuery
|
|
227
|
-
// ): Promise<void> {
|
|
228
|
-
// const { movieTheaterCode, roomCode } = options;
|
|
229
|
-
// await this.fetch({
|
|
230
|
-
// uri: `/places/${factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(params.branchCode))}/containsPlace`,
|
|
231
|
-
// method: 'PUT',
|
|
232
|
-
// qs: { movieTheaterCode, roomCode },
|
|
233
|
-
// body: params,
|
|
234
|
-
// expectedStatusCodes: [status.NO_CONTENT]
|
|
235
|
-
// });
|
|
236
|
-
// }
|
|
237
60
|
/**
|
|
238
61
|
* セクション削除
|
|
239
62
|
*/
|
|
@@ -247,119 +70,5 @@ class PlaceService extends service_1.Service {
|
|
|
247
70
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
248
71
|
});
|
|
249
72
|
}
|
|
250
|
-
// /**
|
|
251
|
-
// * 座席作成
|
|
252
|
-
// */
|
|
253
|
-
// public async createSeat(
|
|
254
|
-
// params: Pick<ISeat, 'additionalProperty' | 'branchCode' | 'maximumAttendeeCapacity' | 'name' | 'seatingType'> & {
|
|
255
|
-
// $unset?: never;
|
|
256
|
-
// },
|
|
257
|
-
// options: IFixSectionQuery
|
|
258
|
-
// ): Promise<ISeat> {
|
|
259
|
-
// const { movieTheaterCode, roomCode, sectionCode } = options;
|
|
260
|
-
// return this.fetch({
|
|
261
|
-
// uri: `/places/${factory.placeType.Seat}`,
|
|
262
|
-
// method: 'POST',
|
|
263
|
-
// qs: { movieTheaterCode, roomCode, sectionCode },
|
|
264
|
-
// body: params,
|
|
265
|
-
// expectedStatusCodes: [status.CREATED]
|
|
266
|
-
// })
|
|
267
|
-
// .then(async (response) => response.json());
|
|
268
|
-
// }
|
|
269
|
-
// /**
|
|
270
|
-
// * 座席検索
|
|
271
|
-
// */
|
|
272
|
-
// public async findSeatsDeprecated(params: Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<ISeat[]> {
|
|
273
|
-
// return this.fetch({
|
|
274
|
-
// uri: `/places/${factory.placeType.Seat}`,
|
|
275
|
-
// method: 'GET',
|
|
276
|
-
// qs: params,
|
|
277
|
-
// expectedStatusCodes: [status.OK]
|
|
278
|
-
// })
|
|
279
|
-
// .then(async (response) => response.json());
|
|
280
|
-
// }
|
|
281
|
-
// /**
|
|
282
|
-
// * 座席更新
|
|
283
|
-
// */
|
|
284
|
-
// public async updateSeatByBranchCode(
|
|
285
|
-
// params: Pick<ISeat, 'additionalProperty' | 'branchCode' | 'maximumAttendeeCapacity' | 'name' | 'seatingType'> & IUnset,
|
|
286
|
-
// options: IFixSectionQuery
|
|
287
|
-
// ): Promise<void> {
|
|
288
|
-
// const { movieTheaterCode, roomCode, sectionCode } = options;
|
|
289
|
-
// await this.fetch({
|
|
290
|
-
// uri: `/places/${factory.placeType.Seat}/${encodeURIComponent(String(params.branchCode))}`,
|
|
291
|
-
// method: 'PUT',
|
|
292
|
-
// qs: { movieTheaterCode, roomCode, sectionCode },
|
|
293
|
-
// body: params,
|
|
294
|
-
// expectedStatusCodes: [status.NO_CONTENT]
|
|
295
|
-
// });
|
|
296
|
-
// }
|
|
297
|
-
// /**
|
|
298
|
-
// * 座席削除
|
|
299
|
-
// */
|
|
300
|
-
// public async deleteSeatByBranchCode(
|
|
301
|
-
// params: {
|
|
302
|
-
// branchCode: string;
|
|
303
|
-
// },
|
|
304
|
-
// options: IFixSectionQuery
|
|
305
|
-
// ): Promise<void> {
|
|
306
|
-
// const { movieTheaterCode, roomCode, sectionCode } = options;
|
|
307
|
-
// await this.fetch({
|
|
308
|
-
// uri: `/places/${factory.placeType.Seat}/${encodeURIComponent(String(params.branchCode))}`,
|
|
309
|
-
// method: 'DELETE',
|
|
310
|
-
// qs: { movieTheaterCode, roomCode, sectionCode },
|
|
311
|
-
// body: params,
|
|
312
|
-
// expectedStatusCodes: [status.NO_CONTENT]
|
|
313
|
-
// });
|
|
314
|
-
// }
|
|
315
|
-
/**
|
|
316
|
-
* ターミナル作成
|
|
317
|
-
*/
|
|
318
|
-
async createBusStop(params) {
|
|
319
|
-
return this.fetch({
|
|
320
|
-
uri: `/places/${factory_1.factory.placeType.BusStop}`,
|
|
321
|
-
method: 'POST',
|
|
322
|
-
body: params,
|
|
323
|
-
expectedStatusCodes: [http_status_1.status.CREATED]
|
|
324
|
-
})
|
|
325
|
-
.then(async (response) => response.json());
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* ターミナル検索
|
|
329
|
-
*/
|
|
330
|
-
async searchBusStops(params) {
|
|
331
|
-
return this.fetch({
|
|
332
|
-
uri: `/places/${factory_1.factory.placeType.BusStop}`,
|
|
333
|
-
method: 'GET',
|
|
334
|
-
qs: params,
|
|
335
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
336
|
-
})
|
|
337
|
-
.then(async (response) => {
|
|
338
|
-
return {
|
|
339
|
-
data: await response.json()
|
|
340
|
-
};
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* ターミナル更新
|
|
345
|
-
*/
|
|
346
|
-
async updateBusStop(params) {
|
|
347
|
-
await this.fetch({
|
|
348
|
-
uri: `/places/${factory_1.factory.placeType.BusStop}/${encodeURIComponent(String(params.id))}`,
|
|
349
|
-
method: 'PUT',
|
|
350
|
-
body: params,
|
|
351
|
-
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* ターミナル削除
|
|
356
|
-
*/
|
|
357
|
-
async deleteBusStop(params) {
|
|
358
|
-
await this.fetch({
|
|
359
|
-
uri: `/places/${factory_1.factory.placeType.BusStop}/${encodeURIComponent(String(params.id))}`,
|
|
360
|
-
method: 'DELETE',
|
|
361
|
-
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
73
|
}
|
|
365
74
|
exports.PlaceService = PlaceService;
|
|
@@ -2,7 +2,6 @@ import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './servi
|
|
|
2
2
|
import type { AccountService } from './chevreConsole/account';
|
|
3
3
|
import type { AccountingReportService } from './chevreConsole/accountingReport';
|
|
4
4
|
import type { AccountTitleService } from './chevreConsole/accountTitle';
|
|
5
|
-
import type { AccountTransactionService } from './chevreConsole/accountTransaction';
|
|
6
5
|
import type { ActionService } from './chevreConsole/action';
|
|
7
6
|
import type { AdditionalPropertyService } from './chevreConsole/additionalProperty';
|
|
8
7
|
import type { AdvanceBookingRequirementService } from './chevreConsole/advanceBookingRequirement';
|
|
@@ -10,9 +9,7 @@ import type { AggregateOfferService } from './chevreConsole/aggregateOffer';
|
|
|
10
9
|
import type { AggregateReservationService } from './chevreConsole/aggregateReservation';
|
|
11
10
|
import type { AggregationService } from './chevreConsole/aggregation';
|
|
12
11
|
import type { AssetTransactionService } from './chevreConsole/assetTransaction';
|
|
13
|
-
import type { MoneyTransferAssetTransactionService } from './chevreConsole/assetTransaction/moneyTransfer';
|
|
14
12
|
import type { PayAssetTransactionService } from './chevreConsole/assetTransaction/pay';
|
|
15
|
-
import type { RegisterServiceAssetTransactionService } from './chevreConsole/assetTransaction/registerService';
|
|
16
13
|
import type { ReserveAssetTransactionService } from './chevreConsole/assetTransaction/reserve';
|
|
17
14
|
import type { AuthorizationService } from './chevreConsole/authorization';
|
|
18
15
|
import type { CategoryCodeService } from './chevreConsole/categoryCode';
|
|
@@ -63,7 +60,6 @@ import type { TokenService } from './chevreConsole/token';
|
|
|
63
60
|
import type { PlaceOrderTransactionService } from './chevreConsole/transaction/placeOrder';
|
|
64
61
|
import type { ReturnOrderTransactionService } from './chevreConsole/transaction/returnOrder';
|
|
65
62
|
import type { TransactionNumberService } from './chevreConsole/transactionNumber';
|
|
66
|
-
import type { TripService } from './chevreConsole/trip';
|
|
67
63
|
import type { UserPoolService } from './chevreConsole/userPool';
|
|
68
64
|
import type { WebSiteService } from './chevreConsole/webSite';
|
|
69
65
|
export declare namespace service {
|
|
@@ -89,13 +85,6 @@ export declare namespace service {
|
|
|
89
85
|
namespace AccountTitle {
|
|
90
86
|
let svc: typeof AccountTitleService | undefined;
|
|
91
87
|
}
|
|
92
|
-
/**
|
|
93
|
-
* 口座取引サービス
|
|
94
|
-
*/
|
|
95
|
-
type AccountTransaction = AccountTransactionService;
|
|
96
|
-
namespace AccountTransaction {
|
|
97
|
-
let svc: typeof AccountTransactionService | undefined;
|
|
98
|
-
}
|
|
99
88
|
/**
|
|
100
89
|
* アクションサービス
|
|
101
90
|
*/
|
|
@@ -463,13 +452,6 @@ export declare namespace service {
|
|
|
463
452
|
let svc: typeof AssetTransactionService | undefined;
|
|
464
453
|
}
|
|
465
454
|
namespace assetTransaction {
|
|
466
|
-
/**
|
|
467
|
-
* 通貨転送取引サービス
|
|
468
|
-
*/
|
|
469
|
-
type MoneyTransfer = MoneyTransferAssetTransactionService;
|
|
470
|
-
namespace MoneyTransfer {
|
|
471
|
-
let svc: typeof MoneyTransferAssetTransactionService | undefined;
|
|
472
|
-
}
|
|
473
455
|
/**
|
|
474
456
|
* 決済取引サービス
|
|
475
457
|
*/
|
|
@@ -477,13 +459,6 @@ export declare namespace service {
|
|
|
477
459
|
namespace Pay {
|
|
478
460
|
let svc: typeof PayAssetTransactionService | undefined;
|
|
479
461
|
}
|
|
480
|
-
/**
|
|
481
|
-
* サービス登録取引
|
|
482
|
-
*/
|
|
483
|
-
type RegisterService = RegisterServiceAssetTransactionService;
|
|
484
|
-
namespace RegisterService {
|
|
485
|
-
let svc: typeof RegisterServiceAssetTransactionService | undefined;
|
|
486
|
-
}
|
|
487
462
|
/**
|
|
488
463
|
* 予約取引サービス
|
|
489
464
|
*/
|
|
@@ -525,13 +500,6 @@ export declare namespace service {
|
|
|
525
500
|
namespace TransactionNumber {
|
|
526
501
|
let svc: typeof TransactionNumberService | undefined;
|
|
527
502
|
}
|
|
528
|
-
/**
|
|
529
|
-
* トリップサービス
|
|
530
|
-
*/
|
|
531
|
-
type Trip = TripService;
|
|
532
|
-
namespace Trip {
|
|
533
|
-
let svc: typeof TripService | undefined;
|
|
534
|
-
}
|
|
535
503
|
/**
|
|
536
504
|
* Cognitoユーザープールサービス
|
|
537
505
|
*/
|
|
@@ -556,7 +524,6 @@ export declare class ChevreConsole {
|
|
|
556
524
|
createAccountInstance(params: Pick<IOptions, 'project'>): Promise<AccountService>;
|
|
557
525
|
createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
|
|
558
526
|
createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
|
|
559
|
-
createAccountTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTransactionService>;
|
|
560
527
|
createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
|
|
561
528
|
createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
|
|
562
529
|
createAdvanceBookingRequirementInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdvanceBookingRequirementService>;
|
|
@@ -609,15 +576,12 @@ export declare class ChevreConsole {
|
|
|
609
576
|
createTaskInstance(params: Pick<IOptions, 'project'>): Promise<TaskService>;
|
|
610
577
|
createTicketInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TicketService>;
|
|
611
578
|
createAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AssetTransactionService>;
|
|
612
|
-
createMoneyTransferAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MoneyTransferAssetTransactionService>;
|
|
613
579
|
createPayAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PayAssetTransactionService>;
|
|
614
|
-
createRegisterServiceAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<RegisterServiceAssetTransactionService>;
|
|
615
580
|
createReserveAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReserveAssetTransactionService>;
|
|
616
581
|
createTokenInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TokenService>;
|
|
617
582
|
createPlaceOrderTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceOrderTransactionService>;
|
|
618
583
|
createReturnOrderTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReturnOrderTransactionService>;
|
|
619
584
|
createTransactionNumberInstance(params: Pick<IOptions, 'project'>): Promise<TransactionNumberService>;
|
|
620
|
-
createTripInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TripService>;
|
|
621
585
|
createUserPoolInstance(params: Pick<IOptions, 'project'>): Promise<UserPoolService>;
|
|
622
586
|
createWebSiteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<WebSiteService>;
|
|
623
587
|
}
|