@cinerino/sdk 16.4.0-alpha.2 → 16.4.0-alpha.20
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/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/chevreConsole/checkAction.js +20 -0
- 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/chevreConsole/ownershipInfo.d.ts +0 -35
- package/lib/abstract/chevreConsole/ownershipInfo.js +0 -27
|
@@ -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') {
|