@cinerino/sdk 16.4.0-alpha.2 → 16.4.0-alpha.21
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/event.d.ts +1 -3
- package/lib/abstract/chevre/event.js +3 -3
- package/lib/abstract/chevre.d.ts +0 -9
- package/lib/abstract/chevre.js +0 -9
- package/lib/abstract/chevreConsole/action.d.ts +10 -9
- package/lib/abstract/chevreConsole/action.js +5 -15
- package/lib/abstract/chevreConsole/assetTransaction.d.ts +3 -3
- package/lib/abstract/chevreConsole/assetTransaction.js +3 -7
- package/lib/abstract/chevreConsole/checkAction.d.ts +24 -0
- package/lib/abstract/{chevre/note.js → chevreConsole/checkAction.js} +6 -10
- package/lib/abstract/chevreConsole/informAction.d.ts +18 -0
- package/lib/abstract/chevreConsole/informAction.js +20 -0
- package/lib/abstract/chevreConsole/scheduledTask.d.ts +13 -0
- package/lib/abstract/chevreConsole/scheduledTask.js +20 -0
- package/lib/abstract/chevreConsole/task.d.ts +7 -3
- package/lib/abstract/chevreConsole/task.js +1 -1
- package/lib/abstract/chevreConsole/transaction/placeOrder.d.ts +3 -1
- package/lib/abstract/chevreConsole/updateAction.d.ts +17 -0
- package/lib/abstract/chevreConsole/updateAction.js +20 -0
- package/lib/abstract/chevreConsole/useAction.d.ts +17 -0
- package/lib/abstract/chevreConsole/useAction.js +20 -0
- package/lib/abstract/chevreConsole.d.ts +36 -9
- package/lib/abstract/chevreConsole.js +45 -9
- package/lib/abstract/chevreTxc/offer.d.ts +0 -2
- package/lib/abstract/chevreTxc/offer.js +2 -4
- package/lib/abstract/cinerino/service/event.d.ts +0 -2
- package/lib/abstract/cinerino/service/event.js +3 -7
- package/lib/abstract/cloud/txc/transaction/forceAsync.d.ts +0 -2
- package/lib/abstract/cloud/txc/transaction/forceAsync.js +2 -2
- package/lib/abstract/cloud/txc/transaction/placeOrder.d.ts +0 -4
- package/lib/abstract/cloud/txc/transaction/placeOrder.js +4 -4
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevre/note.d.ts +0 -32
- package/lib/abstract/chevreConsole/ownershipInfo.d.ts +0 -35
- package/lib/abstract/chevreConsole/ownershipInfo.js +0 -27
|
@@ -45,6 +45,18 @@ var service;
|
|
|
45
45
|
let Action;
|
|
46
46
|
(function (Action) {
|
|
47
47
|
})(Action = service.Action || (service.Action = {}));
|
|
48
|
+
let UpdateAction;
|
|
49
|
+
(function (UpdateAction) {
|
|
50
|
+
})(UpdateAction = service.UpdateAction || (service.UpdateAction = {}));
|
|
51
|
+
let InformAction;
|
|
52
|
+
(function (InformAction) {
|
|
53
|
+
})(InformAction = service.InformAction || (service.InformAction = {}));
|
|
54
|
+
let UseAction;
|
|
55
|
+
(function (UseAction) {
|
|
56
|
+
})(UseAction = service.UseAction || (service.UseAction = {}));
|
|
57
|
+
let CheckAction;
|
|
58
|
+
(function (CheckAction) {
|
|
59
|
+
})(CheckAction = service.CheckAction || (service.CheckAction = {}));
|
|
48
60
|
let AdditionalProperty;
|
|
49
61
|
(function (AdditionalProperty) {
|
|
50
62
|
})(AdditionalProperty = service.AdditionalProperty || (service.AdditionalProperty = {}));
|
|
@@ -117,9 +129,6 @@ var service;
|
|
|
117
129
|
let Order;
|
|
118
130
|
(function (Order) {
|
|
119
131
|
})(Order = service.Order || (service.Order = {}));
|
|
120
|
-
let OwnershipInfo;
|
|
121
|
-
(function (OwnershipInfo) {
|
|
122
|
-
})(OwnershipInfo = service.OwnershipInfo || (service.OwnershipInfo = {}));
|
|
123
132
|
let PaymentProduct;
|
|
124
133
|
(function (PaymentProduct) {
|
|
125
134
|
})(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
|
|
@@ -183,6 +192,9 @@ var service;
|
|
|
183
192
|
let AsyncAction;
|
|
184
193
|
(function (AsyncAction) {
|
|
185
194
|
})(AsyncAction = service.AsyncAction || (service.AsyncAction = {}));
|
|
195
|
+
let ScheduledTask;
|
|
196
|
+
(function (ScheduledTask) {
|
|
197
|
+
})(ScheduledTask = service.ScheduledTask || (service.ScheduledTask = {}));
|
|
186
198
|
let Task;
|
|
187
199
|
(function (Task) {
|
|
188
200
|
})(Task = service.Task || (service.Task = {}));
|
|
@@ -249,6 +261,30 @@ class ChevreConsole {
|
|
|
249
261
|
}
|
|
250
262
|
return new service.Action.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
251
263
|
}
|
|
264
|
+
async createUpdateActionInstance(params) {
|
|
265
|
+
if (service.UpdateAction.svc === undefined) {
|
|
266
|
+
service.UpdateAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/updateAction.js')))).UpdateActionService;
|
|
267
|
+
}
|
|
268
|
+
return new service.UpdateAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
269
|
+
}
|
|
270
|
+
async createInformActionInstance(params) {
|
|
271
|
+
if (service.InformAction.svc === undefined) {
|
|
272
|
+
service.InformAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/informAction.js')))).InformActionService;
|
|
273
|
+
}
|
|
274
|
+
return new service.InformAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
275
|
+
}
|
|
276
|
+
async createUseActionInstance(params) {
|
|
277
|
+
if (service.UseAction.svc === undefined) {
|
|
278
|
+
service.UseAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/useAction.js')))).UseActionService;
|
|
279
|
+
}
|
|
280
|
+
return new service.UseAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
281
|
+
}
|
|
282
|
+
async createCheckActionInstance(params) {
|
|
283
|
+
if (service.CheckAction.svc === undefined) {
|
|
284
|
+
service.CheckAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/checkAction.js')))).CheckActionService;
|
|
285
|
+
}
|
|
286
|
+
return new service.CheckAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
287
|
+
}
|
|
252
288
|
async createAdditionalPropertyInstance(params) {
|
|
253
289
|
if (service.AdditionalProperty.svc === undefined) {
|
|
254
290
|
service.AdditionalProperty.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/additionalProperty.js')))).AdditionalPropertyService;
|
|
@@ -393,12 +429,6 @@ class ChevreConsole {
|
|
|
393
429
|
}
|
|
394
430
|
return new service.Order.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
395
431
|
}
|
|
396
|
-
async createOwnershipInfoInstance(params) {
|
|
397
|
-
if (service.OwnershipInfo.svc === undefined) {
|
|
398
|
-
service.OwnershipInfo.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/ownershipInfo.js')))).OwnershipInfoService;
|
|
399
|
-
}
|
|
400
|
-
return new service.OwnershipInfo.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
401
|
-
}
|
|
402
432
|
async createPaymentProductInstance(params) {
|
|
403
433
|
if (service.PaymentProduct.svc === undefined) {
|
|
404
434
|
service.PaymentProduct.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/paymentService.js')))).PaymentProductService;
|
|
@@ -519,6 +549,12 @@ class ChevreConsole {
|
|
|
519
549
|
}
|
|
520
550
|
return new service.AsyncAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
521
551
|
}
|
|
552
|
+
async createScheduledTaskInstance(params) {
|
|
553
|
+
if (service.ScheduledTask.svc === undefined) {
|
|
554
|
+
service.ScheduledTask.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/scheduledTask.js')))).ScheduledTaskService;
|
|
555
|
+
}
|
|
556
|
+
return new service.ScheduledTask.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
557
|
+
}
|
|
522
558
|
async createTaskInstance(params) {
|
|
523
559
|
if (service.Task.svc === undefined) {
|
|
524
560
|
service.Task.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/task.js')))).TaskService;
|
|
@@ -8,9 +8,8 @@ const service_1 = require("../service");
|
|
|
8
8
|
* COAオファーサービス
|
|
9
9
|
*/
|
|
10
10
|
class OfferService extends service_1.Service {
|
|
11
|
-
async acceptOffer(params
|
|
11
|
+
async acceptOffer(params) {
|
|
12
12
|
const { object, purpose, potentialActions } = params;
|
|
13
|
-
const useAsyncAction = options?.useAsyncAction;
|
|
14
13
|
return this.fetch({
|
|
15
14
|
uri: `/offers/${factory_1.factory.product.ProductType.EventService}ByCOA/accept`,
|
|
16
15
|
method: 'POST',
|
|
@@ -21,8 +20,7 @@ class OfferService extends service_1.Service {
|
|
|
21
20
|
...(typeof potentialActions?.id === 'string') ? { potentialActions } : undefined
|
|
22
21
|
},
|
|
23
22
|
qs: {
|
|
24
|
-
purpose: { id: purpose.id }
|
|
25
|
-
...((typeof useAsyncAction === 'string') && { useAsyncAction })
|
|
23
|
+
purpose: { id: purpose.id }
|
|
26
24
|
}
|
|
27
25
|
})
|
|
28
26
|
.then(async (response) => response.json());
|
|
@@ -183,8 +183,6 @@ export declare class EventService extends Service {
|
|
|
183
183
|
};
|
|
184
184
|
limit: number;
|
|
185
185
|
page: number;
|
|
186
|
-
}, options?: {
|
|
187
|
-
useDefaultSection?: boolean;
|
|
188
186
|
}): Promise<ISearchResult<Omit<ISeatAsEventOffer, 'containedInPlace'>[]> & {
|
|
189
187
|
/**
|
|
190
188
|
* デフォルトセクションコード
|
|
@@ -112,16 +112,12 @@ class EventService extends service_1.Service {
|
|
|
112
112
|
* 自動的にルームのひとつめのセクションが選択されます
|
|
113
113
|
* @deprecated use SeatOfferService
|
|
114
114
|
*/
|
|
115
|
-
async findSeatOffersDeprecated(params
|
|
116
|
-
const { event,
|
|
117
|
-
const useDefaultSection = options?.useDefaultSection === true;
|
|
115
|
+
async findSeatOffersDeprecated(params) {
|
|
116
|
+
const { event, limit, page } = params;
|
|
118
117
|
return this.fetch({
|
|
119
118
|
uri: `/events/${encodeURIComponent(String(event.id))}/seats`,
|
|
120
119
|
method: 'GET',
|
|
121
|
-
qs: {
|
|
122
|
-
...query,
|
|
123
|
-
useDefaultSection
|
|
124
|
-
},
|
|
120
|
+
qs: { limit, page },
|
|
125
121
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
126
122
|
})
|
|
127
123
|
.then(async (response) => {
|
|
@@ -43,7 +43,7 @@ function authorizeActionError2responseError(authorizeActionError) {
|
|
|
43
43
|
}
|
|
44
44
|
return error;
|
|
45
45
|
}
|
|
46
|
-
function authorizeOfferAsync(params
|
|
46
|
+
function authorizeOfferAsync(params) {
|
|
47
47
|
return async (repos) => {
|
|
48
48
|
const acceptTask = await repos.offerService.acceptOffer({
|
|
49
49
|
object: {
|
|
@@ -55,7 +55,7 @@ function authorizeOfferAsync(params, options) {
|
|
|
55
55
|
...(typeof params.potentialActions?.id === 'string')
|
|
56
56
|
? { potentialActions: { id: params.potentialActions.id } }
|
|
57
57
|
: undefined
|
|
58
|
-
}
|
|
58
|
+
});
|
|
59
59
|
let alreadyGivenUp = false;
|
|
60
60
|
setTimeout(() => { alreadyGivenUp = true; }, ASYNC_ACTION_GIVEUP_MS);
|
|
61
61
|
let result;
|
|
@@ -38,8 +38,6 @@ export declare class PlaceOrderCOAService extends Service {
|
|
|
38
38
|
appliesToSurfrock?: IAppliesToSurfrock;
|
|
39
39
|
};
|
|
40
40
|
purpose: factory.action.authorize.offer.eventService.IPurpose;
|
|
41
|
-
}, options?: {
|
|
42
|
-
useAsyncAction: '1' | '0';
|
|
43
41
|
}): Promise<IAuthorizeCOAEventServiceResult>;
|
|
44
42
|
/**
|
|
45
43
|
* COA興行オファー承認取消
|
|
@@ -77,8 +75,6 @@ export declare class PlaceOrderCOAService extends Service {
|
|
|
77
75
|
appliesToSurfrock?: IAppliesToSurfrock;
|
|
78
76
|
};
|
|
79
77
|
purpose: factory.action.authorize.offer.eventService.IPurpose;
|
|
80
|
-
}, options?: {
|
|
81
|
-
useAsyncAction: '1' | '0';
|
|
82
78
|
}): Promise<IAuthorizeCOAEventServiceResult>;
|
|
83
79
|
}
|
|
84
80
|
export {};
|
|
@@ -12,7 +12,7 @@ class PlaceOrderCOAService extends service_1.Service {
|
|
|
12
12
|
/**
|
|
13
13
|
* COA興行オファー承認
|
|
14
14
|
*/
|
|
15
|
-
async createSeatReservationAuthorization(params
|
|
15
|
+
async createSeatReservationAuthorization(params) {
|
|
16
16
|
const { object, purpose } = params;
|
|
17
17
|
const { event, acceptedOffer, appliesToSurfrock } = object;
|
|
18
18
|
const appliesToSurfrockIdentifier = (typeof appliesToSurfrock?.identifier === 'string' && appliesToSurfrock.identifier.length > 0)
|
|
@@ -43,7 +43,7 @@ class PlaceOrderCOAService extends service_1.Service {
|
|
|
43
43
|
// potentialActions?: {
|
|
44
44
|
// id?: string;
|
|
45
45
|
// };
|
|
46
|
-
}
|
|
46
|
+
})({
|
|
47
47
|
offerService
|
|
48
48
|
});
|
|
49
49
|
if (typeof action.result?.price !== 'number') {
|
|
@@ -90,7 +90,7 @@ class PlaceOrderCOAService extends service_1.Service {
|
|
|
90
90
|
* COA興行オファー承認変更
|
|
91
91
|
* 完了ステータスの承認アクションに対して券種変更する際に使用
|
|
92
92
|
*/
|
|
93
|
-
async changeSeatReservationOffers(params
|
|
93
|
+
async changeSeatReservationOffers(params) {
|
|
94
94
|
const { id, object, purpose } = params;
|
|
95
95
|
const { event, acceptedOffer, appliesToSurfrock } = object;
|
|
96
96
|
const appliesToSurfrockIdentifier = (typeof appliesToSurfrock?.identifier === 'string' && appliesToSurfrock.identifier.length > 0)
|
|
@@ -119,7 +119,7 @@ class PlaceOrderCOAService extends service_1.Service {
|
|
|
119
119
|
serviceOutput: { typeOf: appliesToSurfrockServiceOutputTypeOf }
|
|
120
120
|
},
|
|
121
121
|
potentialActions: { id }
|
|
122
|
-
}
|
|
122
|
+
})({
|
|
123
123
|
offerService
|
|
124
124
|
});
|
|
125
125
|
if (typeof action.result?.price !== 'number') {
|