@cinerino/sdk 14.0.0 → 15.0.0-alpha.1
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 -18
- package/lib/abstract/chevre.js +0 -18
- package/lib/abstract/chevreAdmin.d.ts +0 -9
- package/lib/abstract/chevreAdmin.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 -45
- package/lib/abstract/chevreConsole.js +0 -47
- package/lib/abstract/chevreTxn/offer.d.ts +2 -9
- 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/admin.d.ts +0 -9
- package/lib/abstract/cloud/admin.js +0 -9
- package/lib/abstract/cloud/asset/order.d.ts +3 -2
- package/lib/abstract/cloud/asset/order.js +0 -72
- package/lib/abstract/cloud/search.d.ts +0 -12
- package/lib/abstract/cloud/search.js +0 -15
- package/lib/abstract/cloud/txn/offer.d.ts +1 -1
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevre/productOffer.d.ts +0 -33
- package/lib/abstract/chevre/productOffer.js +0 -21
- package/lib/abstract/chevre/trip.d.ts +0 -11
- package/lib/abstract/chevre/trip.js +0 -27
- package/lib/abstract/chevreAdmin/productOffer.d.ts +0 -79
- package/lib/abstract/chevreAdmin/productOffer.js +0 -67
- 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/comment.d.ts +0 -36
- package/lib/abstract/chevreConsole/comment.js +0 -39
- package/lib/abstract/chevreConsole/trip.d.ts +0 -36
- package/lib/abstract/chevreConsole/trip.js +0 -71
- package/lib/abstract/cloud/admin/productOffer.d.ts +0 -48
- package/lib/abstract/cloud/admin/productOffer.js +0 -55
- package/lib/abstract/cloud/search/productOffer.d.ts +0 -11
- package/lib/abstract/cloud/search/productOffer.js +0 -25
|
@@ -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
|
@@ -10,10 +10,8 @@ import type { PaymentProductService } from './chevre/paymentService';
|
|
|
10
10
|
import type { PlaceService } from './chevre/place';
|
|
11
11
|
import type { HasPOSService } from './chevre/place/hasPOS';
|
|
12
12
|
import type { ProductService } from './chevre/product';
|
|
13
|
-
import type { ProductOfferService } from './chevre/productOffer';
|
|
14
13
|
import type { SeatOfferService } from './chevre/seatOffer';
|
|
15
14
|
import type { SellerService } from './chevre/seller';
|
|
16
|
-
import type { TripService } from './chevre/trip';
|
|
17
15
|
export declare namespace service {
|
|
18
16
|
type IUnset = IUnsetOnService;
|
|
19
17
|
/**
|
|
@@ -95,13 +93,6 @@ export declare namespace service {
|
|
|
95
93
|
namespace Product {
|
|
96
94
|
let svc: typeof ProductService | undefined;
|
|
97
95
|
}
|
|
98
|
-
/**
|
|
99
|
-
* プロダクトオファーサービス
|
|
100
|
-
*/
|
|
101
|
-
type ProductOffer = ProductOfferService;
|
|
102
|
-
namespace ProductOffer {
|
|
103
|
-
let svc: typeof ProductOfferService | undefined;
|
|
104
|
-
}
|
|
105
96
|
/**
|
|
106
97
|
* 座席オファーサービス
|
|
107
98
|
*/
|
|
@@ -116,13 +107,6 @@ export declare namespace service {
|
|
|
116
107
|
namespace Seller {
|
|
117
108
|
let svc: typeof SellerService | undefined;
|
|
118
109
|
}
|
|
119
|
-
/**
|
|
120
|
-
* トリップサービス
|
|
121
|
-
*/
|
|
122
|
-
type Trip = TripService;
|
|
123
|
-
namespace Trip {
|
|
124
|
-
let svc: typeof TripService | undefined;
|
|
125
|
-
}
|
|
126
110
|
}
|
|
127
111
|
/**
|
|
128
112
|
* デフォルトサービス
|
|
@@ -141,8 +125,6 @@ export declare class Chevre {
|
|
|
141
125
|
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
142
126
|
createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
|
|
143
127
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
144
|
-
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
145
128
|
createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
|
|
146
129
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
147
|
-
createTripInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TripService>;
|
|
148
130
|
}
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -72,18 +72,12 @@ var service;
|
|
|
72
72
|
let Product;
|
|
73
73
|
(function (Product) {
|
|
74
74
|
})(Product = service.Product || (service.Product = {}));
|
|
75
|
-
let ProductOffer;
|
|
76
|
-
(function (ProductOffer) {
|
|
77
|
-
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
78
75
|
let SeatOffer;
|
|
79
76
|
(function (SeatOffer) {
|
|
80
77
|
})(SeatOffer = service.SeatOffer || (service.SeatOffer = {}));
|
|
81
78
|
let Seller;
|
|
82
79
|
(function (Seller) {
|
|
83
80
|
})(Seller = service.Seller || (service.Seller = {}));
|
|
84
|
-
let Trip;
|
|
85
|
-
(function (Trip) {
|
|
86
|
-
})(Trip = service.Trip || (service.Trip = {}));
|
|
87
81
|
})(service || (exports.service = service = {}));
|
|
88
82
|
/**
|
|
89
83
|
* デフォルトサービス
|
|
@@ -159,12 +153,6 @@ class Chevre {
|
|
|
159
153
|
}
|
|
160
154
|
return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
161
155
|
}
|
|
162
|
-
async createProductOfferInstance(params) {
|
|
163
|
-
if (service.ProductOffer.svc === undefined) {
|
|
164
|
-
service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/productOffer.js')))).ProductOfferService;
|
|
165
|
-
}
|
|
166
|
-
return new service.ProductOffer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
167
|
-
}
|
|
168
156
|
async createSeatOfferInstance(params) {
|
|
169
157
|
if (service.SeatOffer.svc === undefined) {
|
|
170
158
|
service.SeatOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/seatOffer.js')))).SeatOfferService;
|
|
@@ -177,11 +165,5 @@ class Chevre {
|
|
|
177
165
|
}
|
|
178
166
|
return new service.Seller.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
179
167
|
}
|
|
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
168
|
}
|
|
187
169
|
exports.Chevre = Chevre;
|
|
@@ -17,7 +17,6 @@ import type { OfferCatalogItemService } from './chevreAdmin/offerCatalogItem';
|
|
|
17
17
|
import type { OrderService } from './chevreAdmin/order';
|
|
18
18
|
import type { PaymentMethodService } from './chevreAdmin/paymentMethod';
|
|
19
19
|
import type { ProductService } from './chevreAdmin/product';
|
|
20
|
-
import type { ProductOfferService } from './chevreAdmin/productOffer';
|
|
21
20
|
import type { ReservationService } from './chevreAdmin/reservation';
|
|
22
21
|
import type { RoomService } from './chevreAdmin/room';
|
|
23
22
|
import type { SeatService } from './chevreAdmin/seat';
|
|
@@ -123,13 +122,6 @@ export declare namespace service {
|
|
|
123
122
|
namespace Product {
|
|
124
123
|
let svc: typeof ProductService | undefined;
|
|
125
124
|
}
|
|
126
|
-
/**
|
|
127
|
-
* プロダクトオファーサービス
|
|
128
|
-
*/
|
|
129
|
-
type ProductOffer = ProductOfferService;
|
|
130
|
-
namespace ProductOffer {
|
|
131
|
-
let svc: typeof ProductOfferService | undefined;
|
|
132
|
-
}
|
|
133
125
|
/**
|
|
134
126
|
* 予約サービス
|
|
135
127
|
*/
|
|
@@ -219,7 +211,6 @@ export declare class ChevreAdmin {
|
|
|
219
211
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
220
212
|
createPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentMethodService>;
|
|
221
213
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
222
|
-
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
223
214
|
createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
224
215
|
/**
|
|
225
216
|
* 販売者指定必須
|
|
@@ -78,9 +78,6 @@ var service;
|
|
|
78
78
|
let Product;
|
|
79
79
|
(function (Product) {
|
|
80
80
|
})(Product = service.Product || (service.Product = {}));
|
|
81
|
-
let ProductOffer;
|
|
82
|
-
(function (ProductOffer) {
|
|
83
|
-
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
84
81
|
let Reservation;
|
|
85
82
|
(function (Reservation) {
|
|
86
83
|
})(Reservation = service.Reservation || (service.Reservation = {}));
|
|
@@ -207,12 +204,6 @@ class ChevreAdmin {
|
|
|
207
204
|
}
|
|
208
205
|
return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
209
206
|
}
|
|
210
|
-
async createProductOfferInstance(params) {
|
|
211
|
-
if (service.ProductOffer.svc === undefined) {
|
|
212
|
-
service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/productOffer.js')))).ProductOfferService;
|
|
213
|
-
}
|
|
214
|
-
return new service.ProductOffer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
215
|
-
}
|
|
216
207
|
async createReservationInstance(params) {
|
|
217
208
|
if (service.Reservation.svc === undefined) {
|
|
218
209
|
service.Reservation.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/reservation.js')))).ReservationService;
|
|
@@ -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;
|