@chevre/factory 4.352.0-alpha.1 → 4.352.0-alpha.10
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/action/authorize/offer/moneyTransfer.d.ts +3 -1
- package/lib/action/reserve.d.ts +3 -1
- package/lib/action/transfer/send/order.d.ts +0 -5
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/order.d.ts +1 -1
- package/lib/reservation/event.d.ts +1 -1
- package/lib/service/paymentService.d.ts +1 -0
- package/lib/task/confirmReserveTransaction.d.ts +6 -2
- package/lib/task/onAssetTransactionStatusChanged.d.ts +6 -1
- package/lib/task/onAuthorizationCreated.d.ts +0 -4
- package/lib/task/useReservation.d.ts +0 -4
- package/lib/transaction/placeOrder.d.ts +12 -2
- package/package.json +1 -1
|
@@ -8,14 +8,16 @@ import { TransactionType } from '../../../transactionType';
|
|
|
8
8
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
9
9
|
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
|
|
10
10
|
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
11
|
-
export type IRequestBody =
|
|
11
|
+
export type IRequestBody = MoneyTransferTransactionFactory.IStartParamsWithoutDetail;
|
|
12
12
|
export type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
|
|
13
13
|
export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
|
|
14
|
+
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IMoneyTransfer>;
|
|
14
15
|
export interface IResult {
|
|
15
16
|
price: number;
|
|
16
17
|
priceCurrency: PriceCurrency;
|
|
17
18
|
requestBody?: IRequestBody;
|
|
18
19
|
responseBody: IResponseBody;
|
|
20
|
+
acceptedOffers: IResultAcceptedOffer[];
|
|
19
21
|
}
|
|
20
22
|
export import IItemOffered = OrderFactory.IMoneyTransfer;
|
|
21
23
|
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ import { IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
|
8
8
|
import { ReservationType } from '../reservationType';
|
|
9
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
10
10
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
11
|
-
export type IReservationFor = IBusReservationFor | IEventReservationFor
|
|
11
|
+
export type IReservationFor = (Pick<IBusReservationFor, 'id' | 'typeOf'> | Pick<IEventReservationFor, 'id' | 'typeOf'>) & {
|
|
12
|
+
optimized: boolean;
|
|
13
|
+
};
|
|
12
14
|
export interface IReservationPackageAsObject {
|
|
13
15
|
reservationFor: IReservationFor;
|
|
14
16
|
reservationNumber: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
3
|
import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
|
|
4
|
-
import { IAttributes as IMoneyTransferActionAttributes } from '../../interact/confirm/moneyTransfer';
|
|
5
4
|
import { IAttributes as IRegisterServiceAttributes } from '../../interact/confirm/registerService';
|
|
6
5
|
import * as SendActionFactory from '../send';
|
|
7
6
|
import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
|
|
@@ -21,10 +20,6 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
21
20
|
*/
|
|
22
21
|
export type IResult = IOwnershipInfo<IGood>[];
|
|
23
22
|
export interface IPotentialActions {
|
|
24
|
-
/**
|
|
25
|
-
* 通貨転送アクション
|
|
26
|
-
*/
|
|
27
|
-
moneyTransfer?: IMoneyTransferActionAttributes[];
|
|
28
23
|
/**
|
|
29
24
|
* サービス登録アクション
|
|
30
25
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -422,6 +422,7 @@ export declare namespace task {
|
|
|
422
422
|
export import cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
423
423
|
export import cancelReservation = CancelReservationTaskFactory;
|
|
424
424
|
export import createEvent = CreateEventTaskFactory;
|
|
425
|
+
export import confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
425
426
|
export import deleteTransaction = DeleteTransactionTaskFactory;
|
|
426
427
|
export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
427
428
|
export import importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -118,6 +118,7 @@ var CancelAccountMoneyTransferTaskFactory = require("./task/cancelAccountMoneyTr
|
|
|
118
118
|
var CancelMoneyTransferTaskFactory = require("./task/cancelMoneyTransfer");
|
|
119
119
|
var CancelPendingReservationTaskFactory = require("./task/cancelPendingReservation");
|
|
120
120
|
var CancelReservationTaskFactory = require("./task/cancelReservation");
|
|
121
|
+
var ConfirmReserveTransactionTaskFactory = require("./task/confirmReserveTransaction");
|
|
121
122
|
var CreateEventTaskFactory = require("./task/createEvent");
|
|
122
123
|
var DeleteTransactionTaskFactory = require("./task/deleteTransaction");
|
|
123
124
|
var ImportEventCapacitiesFromCOATaskFactory = require("./task/importEventCapacitiesFromCOA");
|
|
@@ -373,6 +374,7 @@ var task;
|
|
|
373
374
|
task.cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
374
375
|
task.cancelReservation = CancelReservationTaskFactory;
|
|
375
376
|
task.createEvent = CreateEventTaskFactory;
|
|
377
|
+
task.confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
|
|
376
378
|
task.deleteTransaction = DeleteTransactionTaskFactory;
|
|
377
379
|
task.importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
|
|
378
380
|
task.importEventsFromCOA = ImportEventsFromCOATaskFactory;
|
package/lib/order.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export interface IDiscount {
|
|
|
112
112
|
discountCurrency: string;
|
|
113
113
|
}
|
|
114
114
|
export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
115
|
-
export type ISuperEvent =
|
|
115
|
+
export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
116
116
|
workPerformed: IWorkPerformed;
|
|
117
117
|
};
|
|
118
118
|
export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
|
|
@@ -9,7 +9,7 @@ import { ReservationType } from '../reservationType';
|
|
|
9
9
|
export type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
|
|
10
10
|
name?: string | IMultilingualString;
|
|
11
11
|
};
|
|
12
|
-
export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | '
|
|
12
|
+
export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
13
13
|
workPerformed: IOptimizedWorkPerformed;
|
|
14
14
|
};
|
|
15
15
|
export interface IReservationFor {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { IAttributes as IConfirmReservationActionAttributes } from '../action/interact/confirm/reservation';
|
|
1
|
+
import { IAttributes as IConfirmReservationActionAttributes, IObject4Chevre, IObject4COA } from '../action/interact/confirm/reservation';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as WebAPIFactory from '../service/webAPI';
|
|
4
4
|
import * as TaskFactory from '../task';
|
|
5
5
|
import { TaskName } from '../taskName';
|
|
6
|
-
export type
|
|
6
|
+
export type IObject4COAOptimized = IObject4COA | Pick<IObject4COA, 'transactionNumber' | 'typeOf'>;
|
|
7
|
+
export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COAOptimized : IObject4Chevre;
|
|
8
|
+
export type IData = Omit<IConfirmReservationActionAttributes<WebAPIFactory.Identifier>, 'object'> & {
|
|
9
|
+
object: IObject<WebAPIFactory.Identifier>;
|
|
10
|
+
};
|
|
7
11
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
8
12
|
name: TaskName.ConfirmReserveTransaction;
|
|
9
13
|
data: IData;
|
|
@@ -25,7 +25,12 @@ export interface IObjectAsReserveTransaction {
|
|
|
25
25
|
transactionNumber: string;
|
|
26
26
|
status: TransactionStatusType.Confirmed;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export interface IObjectAsMoneyTransferTransaction {
|
|
29
|
+
typeOf: AssetTransactionType.MoneyTransfer;
|
|
30
|
+
transactionNumber: string;
|
|
31
|
+
status: TransactionStatusType.Confirmed;
|
|
32
|
+
}
|
|
33
|
+
export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction | IObjectAsMoneyTransferTransaction;
|
|
29
34
|
export interface IData {
|
|
30
35
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
31
36
|
object: IObject;
|
|
@@ -5,10 +5,6 @@ import { TaskName } from '../taskName';
|
|
|
5
5
|
export type IUseReservationObject = Pick<IReservationAsObject, 'id' | 'typeOf'>;
|
|
6
6
|
export type IData = Pick<IUseReservationActionAttributes, 'agent' | 'instrument' | 'location' | 'project' | 'typeOf'> & {
|
|
7
7
|
object: IUseReservationObject;
|
|
8
|
-
/**
|
|
9
|
-
* 発券前に予約アクションを実行するかどうか
|
|
10
|
-
*/
|
|
11
|
-
reserveIfNotYet: boolean;
|
|
12
8
|
};
|
|
13
9
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
14
10
|
name: TaskName.UseReservation;
|
|
@@ -197,13 +197,19 @@ export interface IResult {
|
|
|
197
197
|
* オファー数(2024-01-17~)
|
|
198
198
|
*/
|
|
199
199
|
numAcceptedOffers?: number;
|
|
200
|
+
options?: {
|
|
201
|
+
/**
|
|
202
|
+
* 取引resultの注文オファーを無視する(Orderに適用しない)
|
|
203
|
+
*/
|
|
204
|
+
ignoreAccpetedOffersFromResult?: boolean;
|
|
205
|
+
};
|
|
200
206
|
}
|
|
201
207
|
/**
|
|
202
208
|
* エラー
|
|
203
209
|
*/
|
|
204
210
|
export type IError = any;
|
|
205
211
|
export interface IPotentialActions {
|
|
206
|
-
order: IOrderActionAttributes
|
|
212
|
+
order: Pick<IOrderActionAttributes, 'potentialActions'>;
|
|
207
213
|
}
|
|
208
214
|
export interface IAttributes extends TransactionFactory.IAttributes<Omit<IStartParams, 'expiresInSeconds'>, IResult, IError, IPotentialActions> {
|
|
209
215
|
}
|
|
@@ -215,7 +221,11 @@ export interface ISearchConditions extends TransactionFactory.ISearchConditions<
|
|
|
215
221
|
seller?: {
|
|
216
222
|
ids?: string[];
|
|
217
223
|
};
|
|
218
|
-
object?: {
|
|
224
|
+
object?: {
|
|
225
|
+
orderNumber?: {
|
|
226
|
+
$eq?: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
219
229
|
result?: {
|
|
220
230
|
order?: {
|
|
221
231
|
confirmationNumber?: {
|