@chevre/factory 5.4.0-alpha.9 → 6.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/action/cancel/reservation.d.ts +2 -19
- package/lib/action/interact/confirm.d.ts +1 -1
- package/lib/action/interact/inform.d.ts +5 -2
- package/lib/action/reserve.d.ts +1 -2
- package/lib/action/update/add/object.d.ts +1 -13
- package/lib/action/update/add/object.js +2 -0
- package/lib/action/update/add.d.ts +1 -10
- package/lib/action/update/delete.d.ts +1 -6
- package/lib/assetTransaction/cancelReservation.d.ts +2 -6
- package/lib/assetTransaction/reserve.d.ts +4 -33
- package/lib/event/anyEvent.d.ts +0 -13
- package/lib/event/screeningEvent.d.ts +3 -4
- package/lib/event/screeningEventSeries.d.ts +28 -17
- package/lib/index.d.ts +29 -39
- package/lib/index.js +7 -15
- package/lib/notification/eventSeries.d.ts +3 -2
- package/lib/notification/place.d.ts +47 -4
- package/lib/notification/reservation.d.ts +1 -1
- package/lib/offer/eventOffer.d.ts +4 -0
- package/lib/offerCatalog.d.ts +8 -0
- package/lib/order.d.ts +4 -50
- package/lib/ownershipInfo.d.ts +1 -19
- package/lib/place/entranceGate.d.ts +28 -0
- package/lib/place/movieTheater.d.ts +12 -9
- package/lib/place/screeningRoomSection.d.ts +16 -1
- package/lib/placeType.d.ts +1 -0
- package/lib/placeType.js +1 -0
- package/lib/reservation/event.d.ts +1 -1
- package/lib/reservation/pendingReservationPackage.d.ts +1 -1
- package/lib/reservationType.d.ts +0 -1
- package/lib/reservationType.js +1 -1
- package/lib/reservedCodeValues.js +1 -2
- package/lib/task/deleteTransaction.d.ts +3 -3
- package/lib/task/onAuthorizationCreated.d.ts +1 -0
- package/lib/task/onResourceDeleted.d.ts +81 -0
- package/lib/task/onResourceUpdated.d.ts +36 -6
- package/lib/task/triggerWebhook.d.ts +2 -2
- package/lib/taskName.d.ts +1 -16
- package/lib/taskName.js +5 -16
- package/lib/transactionType.d.ts +0 -4
- package/lib/transactionType.js +0 -4
- package/package.json +2 -2
- package/lib/action/authorize/offer/moneyTransfer.d.ts +0 -46
- package/lib/action/interact/confirm/moneyTransfer.d.ts +0 -27
- package/lib/action/transfer/return/moneyTransfer.d.ts +0 -21
- package/lib/action/transfer/return/moneyTransfer.js +0 -2
- package/lib/reservation/busReservation.d.ts +0 -55
- package/lib/reservation/busReservation.js +0 -2
- package/lib/task/confirmMoneyTransfer.d.ts +0 -13
- package/lib/task/confirmMoneyTransfer.js +0 -2
- package/lib/task/createEvent.d.ts +0 -24
- package/lib/task/createEvent.js +0 -2
- package/lib/task/returnMoneyTransfer.d.ts +0 -13
- package/lib/task/returnMoneyTransfer.js +0 -2
- package/lib/task/voidMoneyTransferTransaction.d.ts +0 -24
- package/lib/task/voidMoneyTransferTransaction.js +0 -2
- package/lib/transaction/moneyTransfer.d.ts +0 -138
- package/lib/transaction/moneyTransfer.js +0 -2
- /package/lib/{action/authorize/offer/moneyTransfer.js → place/entranceGate.js} +0 -0
- /package/lib/{action/interact/confirm/moneyTransfer.js → task/onResourceDeleted.js} +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ProductType } from '../product';
|
|
2
|
-
import * as ReservationFactory from '../reservation';
|
|
3
|
-
import { ReservationType } from '../reservationType';
|
|
4
|
-
import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
|
|
5
|
-
import { TripType } from '../tripType';
|
|
6
|
-
import { IPriceSpecification, ITicketPriceComponent } from './event';
|
|
7
|
-
export type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'> & {
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
export type IPriceComponentSpecification = ITicketPriceComponent;
|
|
11
|
-
export { IPriceSpecification };
|
|
12
|
-
export interface ISubReservation {
|
|
13
|
-
reservedTicket: {
|
|
14
|
-
typeOf: ReservationFactory.TicketType;
|
|
15
|
-
ticketedSeat: ReservationFactory.ISeat;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
19
|
-
export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
|
|
20
|
-
typeOf: ProductType.Transportation;
|
|
21
|
-
serviceType?: IServiceTypeOfIssuedThrough;
|
|
22
|
-
id: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* トリップ予約
|
|
26
|
-
*/
|
|
27
|
-
export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
|
|
28
|
-
bookingTime: Date;
|
|
29
|
-
id: string;
|
|
30
|
-
issuedThrough: IIssuedThrough;
|
|
31
|
-
reservationFor: IReservationFor;
|
|
32
|
-
reservationNumber: string;
|
|
33
|
-
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
34
|
-
reservedTicket: ReservationFactory.ITicket;
|
|
35
|
-
subReservation?: ISubReservation[];
|
|
36
|
-
typeOf: ReservationType.BusReservation;
|
|
37
|
-
}
|
|
38
|
-
export interface IReservationForSearchConditions {
|
|
39
|
-
typeOf?: {
|
|
40
|
-
$eq?: TripType;
|
|
41
|
-
};
|
|
42
|
-
id?: {
|
|
43
|
-
$eq?: string;
|
|
44
|
-
$in?: string[];
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* 検索条件
|
|
49
|
-
*/
|
|
50
|
-
export interface ISearchConditions extends ReservationFactory.ISearchConditions<ReservationType.BusReservation> {
|
|
51
|
-
/**
|
|
52
|
-
* 予約対象
|
|
53
|
-
*/
|
|
54
|
-
reservationFor?: IReservationForSearchConditions;
|
|
55
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IConfirmMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import * as TaskFactory from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IConfirmMoneyTransferActionAttributes;
|
|
6
|
-
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
|
-
name: TaskName.ConfirmMoneyTransfer;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 通貨転送確定タスク
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IAddActionAttributes, IInstrumentWithAddEventSeriesOption, IObjectAsEventBySchedule, IObjectAsEventSeriesAttributes } from '../action/update/add';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import * as TaskFactory from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IAddEventSeriesAction = Pick<IAddActionAttributes, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
|
|
6
|
-
object: IObjectAsEventSeriesAttributes[];
|
|
7
|
-
instrument: IInstrumentWithAddEventSeriesOption;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* スケジュールによるイベント作成アクション
|
|
11
|
-
*/
|
|
12
|
-
export type IAddEventByScheduleAction = Pick<IAddActionAttributes, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
|
|
13
|
-
object: IObjectAsEventBySchedule;
|
|
14
|
-
instrument?: never;
|
|
15
|
-
};
|
|
16
|
-
export type IData = IAddEventSeriesAction | IAddEventByScheduleAction;
|
|
17
|
-
export interface IAttributes extends TaskFactory.IAttributes {
|
|
18
|
-
name: TaskName.CreateEvent;
|
|
19
|
-
data: IData;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* イベント or 施設コンテンツ作成タスク
|
|
23
|
-
*/
|
|
24
|
-
export type ITask = IExtendId<IAttributes>;
|
package/lib/task/createEvent.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IReturnMoneyTransferActionAttributes } from '../action/transfer/return/moneyTransfer';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import * as TaskFactory from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IReturnMoneyTransferActionAttributes;
|
|
6
|
-
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
|
-
name: TaskName.ReturnMoneyTransfer;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 入金返却タスクインターフェース
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IPurpose } from '../action/authorize/offer/moneyTransfer';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { IProject } from '../project';
|
|
4
|
-
import * as TaskFactory from '../task';
|
|
5
|
-
import { TaskName } from '../taskName';
|
|
6
|
-
export interface IData {
|
|
7
|
-
agent?: {
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* 承認アクションID指定であれば、指定アクションのみ中止
|
|
12
|
-
*/
|
|
13
|
-
id?: string;
|
|
14
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
15
|
-
purpose: IPurpose;
|
|
16
|
-
}
|
|
17
|
-
export interface IAttributes extends TaskFactory.IAttributes {
|
|
18
|
-
name: TaskName.VoidMoneyTransferTransaction;
|
|
19
|
-
data: IData;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* 通貨転送中止タスクインターフェース
|
|
23
|
-
*/
|
|
24
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as waiter from '@waiter/factory';
|
|
2
|
-
import { IAttributes as IMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
|
|
3
|
-
import { IAmount as IMoneyTransferAmount } from '../action/transfer/moneyTransfer';
|
|
4
|
-
import * as MoneyTransferAssetTransactionFactory from '../assetTransaction/moneyTransfer';
|
|
5
|
-
import { AssetTransactionType } from '../assetTransactionType';
|
|
6
|
-
import { IExtendId } from '../autoGenerated';
|
|
7
|
-
import { PersonType } from '../personType';
|
|
8
|
-
import { IProject } from '../project';
|
|
9
|
-
import * as TransactionFactory from '../transaction';
|
|
10
|
-
import { TransactionType } from '../transactionType';
|
|
11
|
-
export type IAgent = TransactionFactory.IAgent;
|
|
12
|
-
export interface IRecipientAsPerson {
|
|
13
|
-
typeOf: PersonType.Person;
|
|
14
|
-
id: string;
|
|
15
|
-
/**
|
|
16
|
-
* 受取人名称
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
}
|
|
20
|
-
export type IRecipient = IRecipientAsPerson;
|
|
21
|
-
export import ISeller = TransactionFactory.ISeller;
|
|
22
|
-
export import IPaymentCard = MoneyTransferAssetTransactionFactory.IPaymentCard;
|
|
23
|
-
export import ITokenizedPaymentCard = MoneyTransferAssetTransactionFactory.ITokenizedPaymentCard;
|
|
24
|
-
export import IOrderAsFromLocation = MoneyTransferAssetTransactionFactory.IOrderAsFromLocation;
|
|
25
|
-
export import IFromLocationBeforeStart = MoneyTransferAssetTransactionFactory.IFromLocationBeforeStart;
|
|
26
|
-
export type IFromLocation = IPaymentCard;
|
|
27
|
-
export type IToLocation = IPaymentCard;
|
|
28
|
-
export interface IObjectPendingTransaction {
|
|
29
|
-
typeOf?: AssetTransactionType.MoneyTransfer;
|
|
30
|
-
id?: string;
|
|
31
|
-
transactionNumber?: string;
|
|
32
|
-
identifier?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface IStartParamsWithoutDetail {
|
|
35
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
36
|
-
/**
|
|
37
|
-
* 取引期限
|
|
38
|
-
*/
|
|
39
|
-
expires: Date;
|
|
40
|
-
/**
|
|
41
|
-
* 転送人
|
|
42
|
-
*/
|
|
43
|
-
agent: IAgent;
|
|
44
|
-
/**
|
|
45
|
-
* 受取人
|
|
46
|
-
*/
|
|
47
|
-
recipient: IRecipient;
|
|
48
|
-
seller: {
|
|
49
|
-
id: string;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* 転送内容
|
|
53
|
-
*/
|
|
54
|
-
object: {
|
|
55
|
-
passport?: TransactionFactory.IPassportBeforeStart;
|
|
56
|
-
/**
|
|
57
|
-
* 金額
|
|
58
|
-
*/
|
|
59
|
-
amount: IMoneyTransferAmount;
|
|
60
|
-
/**
|
|
61
|
-
* 転送元
|
|
62
|
-
*/
|
|
63
|
-
fromLocation: IFromLocationBeforeStart;
|
|
64
|
-
/**
|
|
65
|
-
* 転送先
|
|
66
|
-
*/
|
|
67
|
-
toLocation: IToLocation;
|
|
68
|
-
/**
|
|
69
|
-
* 取引説明
|
|
70
|
-
*/
|
|
71
|
-
description?: string;
|
|
72
|
-
pendingTransaction?: IObjectPendingTransaction;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* 取引開始パラメーターインターフェース
|
|
77
|
-
*/
|
|
78
|
-
export interface IStartParams extends TransactionFactory.IStartParams<TransactionType.MoneyTransfer, IAgent, IRecipient, IObject> {
|
|
79
|
-
/**
|
|
80
|
-
* 転送先
|
|
81
|
-
*/
|
|
82
|
-
recipient: IRecipient;
|
|
83
|
-
/**
|
|
84
|
-
* 販売者
|
|
85
|
-
*/
|
|
86
|
-
seller: ISeller;
|
|
87
|
-
}
|
|
88
|
-
export type IResult = any;
|
|
89
|
-
/**
|
|
90
|
-
* エラーインターフェース
|
|
91
|
-
*/
|
|
92
|
-
export type IError = any;
|
|
93
|
-
/**
|
|
94
|
-
* 取引対象物インターフェース
|
|
95
|
-
*/
|
|
96
|
-
export interface IObject {
|
|
97
|
-
/**
|
|
98
|
-
* 金額
|
|
99
|
-
*/
|
|
100
|
-
amount: IMoneyTransferAmount;
|
|
101
|
-
/**
|
|
102
|
-
* 転送元
|
|
103
|
-
*/
|
|
104
|
-
fromLocation: IFromLocationBeforeStart;
|
|
105
|
-
/**
|
|
106
|
-
* 転送先
|
|
107
|
-
*/
|
|
108
|
-
toLocation: IToLocation;
|
|
109
|
-
/**
|
|
110
|
-
* 取引説明
|
|
111
|
-
*/
|
|
112
|
-
description?: string;
|
|
113
|
-
pendingTransaction?: IObjectPendingTransaction;
|
|
114
|
-
/**
|
|
115
|
-
* WAITER許可証
|
|
116
|
-
*/
|
|
117
|
-
passport?: waiter.passport.IPassport;
|
|
118
|
-
}
|
|
119
|
-
export interface IPotentialActions {
|
|
120
|
-
/**
|
|
121
|
-
* 通貨転送アクション
|
|
122
|
-
*/
|
|
123
|
-
moneyTransfer: IMoneyTransferActionAttributes[];
|
|
124
|
-
}
|
|
125
|
-
export type ITransaction = IExtendId<IAttributes>;
|
|
126
|
-
/**
|
|
127
|
-
* 転送取引インターフェース
|
|
128
|
-
*/
|
|
129
|
-
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
130
|
-
}
|
|
131
|
-
export interface ISearchConditions extends TransactionFactory.ISearchConditions<TransactionType.MoneyTransfer> {
|
|
132
|
-
seller?: {
|
|
133
|
-
ids?: string[];
|
|
134
|
-
};
|
|
135
|
-
object?: {};
|
|
136
|
-
potentialActions?: {};
|
|
137
|
-
result?: {};
|
|
138
|
-
}
|
|
File without changes
|
|
File without changes
|