@chevre/factory 4.313.0-alpha.8 → 4.313.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/example/informPayAction.json +8 -1
- package/lib/action/cancel/reservation.d.ts +4 -4
- package/lib/action/reserve.d.ts +4 -5
- package/lib/action/transfer/send/message/email.d.ts +4 -3
- package/lib/action/transfer/send/order.d.ts +3 -3
- package/lib/action/update/delete/member.d.ts +15 -5
- package/lib/action.d.ts +16 -0
- package/lib/additionalProperty.d.ts +7 -1
- package/lib/assetTransaction/reserve.d.ts +30 -3
- package/lib/categoryCode.d.ts +1 -0
- package/lib/creativeWork/movie.d.ts +4 -0
- package/lib/event/anyEvent.d.ts +1 -0
- package/lib/event/screeningEvent.d.ts +7 -2
- package/lib/event/screeningEventSeries.d.ts +4 -2
- package/lib/index.d.ts +13 -7
- package/lib/index.js +10 -2
- package/lib/merchantReturnPolicy.d.ts +6 -1
- package/lib/offerItemCondition.d.ts +4 -0
- package/lib/order.d.ts +7 -15
- package/lib/place/movieTheater.d.ts +1 -1
- package/lib/place/screeningRoom.d.ts +9 -1
- package/lib/product.d.ts +8 -0
- package/lib/report/accountingReport.d.ts +8 -4
- package/lib/reservation/busReservation.d.ts +1 -2
- package/lib/reservation/event.d.ts +1 -2
- package/lib/reservation/pendingReservationPackage.d.ts +24 -0
- package/lib/reservation/pendingReservationPackage.js +14 -0
- package/lib/reservation.d.ts +7 -6
- package/lib/seller.d.ts +7 -0
- package/lib/service/paymentService.d.ts +6 -2
- package/lib/task/deleteTransaction.d.ts +22 -1
- package/lib/task/deleteTransaction.js +9 -0
- package/lib/task/onAuthorizationCreated.d.ts +24 -0
- package/lib/task/{deleteMember.d.ts → onEventChanged.d.ts} +12 -4
- package/lib/task/onResourceUpdated.d.ts +28 -0
- package/lib/task/{deleteOrder.d.ts → syncScreeningRooms.d.ts} +11 -4
- package/lib/task/syncScreeningRooms.js +2 -0
- package/lib/task/useReservation.d.ts +20 -0
- package/lib/task/useReservation.js +2 -0
- package/lib/taskName.d.ts +36 -34
- package/lib/taskName.js +36 -33
- package/lib/transaction/returnOrder.d.ts +3 -0
- package/package.json +1 -1
- package/lib/task/deleteAssetTransaction.d.ts +0 -25
- /package/lib/task/{deleteAssetTransaction.js → onAuthorizationCreated.js} +0 -0
- /package/lib/task/{deleteMember.js → onEventChanged.js} +0 -0
- /package/lib/task/{deleteOrder.js → onResourceUpdated.js} +0 -0
|
@@ -2,11 +2,18 @@ import { IMultilingualString } from '../multilingualString';
|
|
|
2
2
|
import * as PlaceFactory from '../place';
|
|
3
3
|
import { PlaceType } from '../placeType';
|
|
4
4
|
import { IPlace as IScreeningRoomSection } from './screeningRoomSection';
|
|
5
|
+
export interface IContainedInPlace {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: PlaceType.MovieTheater;
|
|
8
|
+
branchCode: string;
|
|
9
|
+
name: IMultilingualString;
|
|
10
|
+
}
|
|
5
11
|
/**
|
|
6
12
|
* ルームインターフェース
|
|
7
13
|
*/
|
|
8
|
-
export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'amenityFeature' | 'branchCode' | 'name' | 'address' | '
|
|
14
|
+
export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'amenityFeature' | 'branchCode' | 'name' | 'address' | 'containsPlace' | 'additionalProperty' | 'openSeatingAllowed' | 'maximumAttendeeCapacity'> {
|
|
9
15
|
typeOf: PlaceType.ScreeningRoom;
|
|
16
|
+
containedInPlace?: IContainedInPlace;
|
|
10
17
|
/**
|
|
11
18
|
* セクションリスト
|
|
12
19
|
*/
|
|
@@ -39,6 +46,7 @@ export interface ISearchConditions {
|
|
|
39
46
|
};
|
|
40
47
|
branchCode?: {
|
|
41
48
|
$eq?: string;
|
|
49
|
+
$in?: string[];
|
|
42
50
|
$regex?: string;
|
|
43
51
|
};
|
|
44
52
|
containedInPlace?: {
|
package/lib/product.d.ts
CHANGED
|
@@ -131,6 +131,14 @@ export interface ISearchConditions {
|
|
|
131
131
|
$in?: string[];
|
|
132
132
|
$regex?: string;
|
|
133
133
|
};
|
|
134
|
+
provider?: {
|
|
135
|
+
id?: {
|
|
136
|
+
/**
|
|
137
|
+
* プロバイダーに指定IDの販売者が含まれる
|
|
138
|
+
*/
|
|
139
|
+
$eq?: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
134
142
|
typeOf?: {
|
|
135
143
|
$eq?: string;
|
|
136
144
|
$in?: string[];
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
|
|
2
2
|
import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
|
|
3
|
-
import { IOrder } from '../order';
|
|
3
|
+
import { ICustomer, IOrder } from '../order';
|
|
4
4
|
export declare type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
5
|
-
export declare type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | '
|
|
5
|
+
export declare type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
6
6
|
object: IPayActionObject[];
|
|
7
7
|
};
|
|
8
8
|
export declare type IRefundActionObject = Pick<IRefundObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
9
|
-
export declare type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDate' | 'id' | '
|
|
9
|
+
export declare type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
10
10
|
object: IRefundActionObject[];
|
|
11
11
|
};
|
|
12
12
|
export declare type IAction = IOptimizedPayAction | IOptimizedRefundAction;
|
|
13
|
-
export declare type
|
|
13
|
+
export declare type IOptimizedCustomer = Pick<ICustomer, 'additionalProperty' | 'id' | 'identifier' | 'typeOf'>;
|
|
14
|
+
export declare type IOrderAsMainEntity = Pick<IOrder, 'acceptedOffers' | 'broker' | 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
|
|
15
|
+
numItems: number;
|
|
16
|
+
customer: IOptimizedCustomer;
|
|
17
|
+
};
|
|
14
18
|
/**
|
|
15
19
|
* 経理レポート
|
|
16
20
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
2
2
|
import { ProductType } from '../product';
|
|
3
3
|
import * as ReservationFactory from '../reservation';
|
|
4
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
5
4
|
import { ReservationType } from '../reservationType';
|
|
6
5
|
import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
|
|
7
6
|
import { TripType } from '../tripType';
|
|
@@ -28,7 +27,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
28
27
|
issuedThrough: IIssuedThrough;
|
|
29
28
|
reservationFor: IReservationFor;
|
|
30
29
|
reservationNumber: string;
|
|
31
|
-
reservationStatus:
|
|
30
|
+
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
32
31
|
reservedTicket: ReservationFactory.ITicket;
|
|
33
32
|
subReservation?: ISubReservation[];
|
|
34
33
|
typeOf: ReservationType.BusReservation;
|
|
@@ -4,7 +4,6 @@ import { IMultilingualString } from '../multilingualString';
|
|
|
4
4
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
5
5
|
import { ProductType } from '../product';
|
|
6
6
|
import * as ReservationFactory from '../reservation';
|
|
7
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
8
7
|
import { ReservationType } from '../reservationType';
|
|
9
8
|
export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
|
|
10
9
|
name?: string | IMultilingualString;
|
|
@@ -53,7 +52,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
53
52
|
issuedThrough: IIssuedThrough;
|
|
54
53
|
reservationFor: IReservationFor;
|
|
55
54
|
reservationNumber: string;
|
|
56
|
-
reservationStatus:
|
|
55
|
+
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
57
56
|
reservedTicket: ReservationFactory.ITicket;
|
|
58
57
|
subReservation?: ISubReservation[];
|
|
59
58
|
typeOf: ReservationType.EventReservation;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventType } from '../eventType';
|
|
2
|
+
import { ISeat } from '../reservation';
|
|
3
|
+
import { ReservationType } from '../reservationType';
|
|
4
|
+
export interface ISubReservation {
|
|
5
|
+
typeOf: ReservationType.BusReservation | ReservationType.EventReservation;
|
|
6
|
+
id: string;
|
|
7
|
+
reservedTicket?: {
|
|
8
|
+
ticketedSeat?: Pick<ISeat, 'seatNumber' | 'seatSection'>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface IReservationPackage {
|
|
12
|
+
typeOf: ReservationType.ReservationPackage;
|
|
13
|
+
reservationNumber: string;
|
|
14
|
+
subReservation: ISubReservation[];
|
|
15
|
+
}
|
|
16
|
+
export interface IAggregateReservation {
|
|
17
|
+
typeOf: 'AggregateReservation';
|
|
18
|
+
reservationCount: number;
|
|
19
|
+
reservationFor: {
|
|
20
|
+
id: string;
|
|
21
|
+
typeOf: EventType.Event | EventType.ScreeningEvent;
|
|
22
|
+
};
|
|
23
|
+
reservations: IReservationPackage[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// public async lockIfNotLimitExceeded
|
|
4
|
+
// reservationCount<=nであれば$push+$incする
|
|
5
|
+
// public async lock
|
|
6
|
+
// [reservationFor.id+seatNumber+seatSection][reservationNumber][subReservation.id]にunique indexを作成した上で$push+$incする
|
|
7
|
+
// public async unlock
|
|
8
|
+
// [id]あるいは[seatNumber+seatSection]でreservations.subReservationsから$pull+$incする
|
|
9
|
+
// public async countUnavailableOffers
|
|
10
|
+
// reservationCountを返す
|
|
11
|
+
// public async getHolder
|
|
12
|
+
// [id]あるいは[seatNumber+seatSection]でreservationNumberを返す
|
|
13
|
+
// public async searchHolders
|
|
14
|
+
// [id]あるいは[seatNumber+seatSection]のリストでreservationNumberのリストを返す
|
package/lib/reservation.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface ITicketType {
|
|
|
28
28
|
description?: string | IMultilingualString;
|
|
29
29
|
id?: string;
|
|
30
30
|
identifier: string;
|
|
31
|
-
name?:
|
|
31
|
+
name?: IMultilingualString;
|
|
32
32
|
typeOf: OfferType.Offer;
|
|
33
33
|
validRateLimit?: OfferFactory.IValidRateLimit;
|
|
34
34
|
}
|
|
@@ -185,6 +185,7 @@ export interface IIssuedThrough {
|
|
|
185
185
|
id: string;
|
|
186
186
|
availableChannel: IServiceChannel;
|
|
187
187
|
}
|
|
188
|
+
export declare type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
|
|
188
189
|
/**
|
|
189
190
|
* 予約
|
|
190
191
|
* Describes a reservation for travel, dining or an event. Some reservations require tickets.
|
|
@@ -264,7 +265,7 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> ex
|
|
|
264
265
|
/**
|
|
265
266
|
* Current status of the reservation.
|
|
266
267
|
*/
|
|
267
|
-
reservationStatus?:
|
|
268
|
+
reservationStatus?: IAvailableReservationStatusType;
|
|
268
269
|
/**
|
|
269
270
|
* A ticket associated with the reservation.
|
|
270
271
|
*/
|
|
@@ -416,14 +417,14 @@ export interface ISearchConditions<T extends ReservationType> {
|
|
|
416
417
|
additionalTicketText?: string | IStringSearchConditions;
|
|
417
418
|
broker?: IBrokerSearchConditions;
|
|
418
419
|
reservationStatus?: {
|
|
419
|
-
$eq?:
|
|
420
|
-
$ne?:
|
|
421
|
-
$in?:
|
|
420
|
+
$eq?: IAvailableReservationStatusType;
|
|
421
|
+
$ne?: IAvailableReservationStatusType;
|
|
422
|
+
$in?: IAvailableReservationStatusType[];
|
|
422
423
|
};
|
|
423
424
|
/**
|
|
424
425
|
* 予約ステータスリスト
|
|
425
426
|
*/
|
|
426
|
-
reservationStatuses?:
|
|
427
|
+
reservationStatuses?: IAvailableReservationStatusType[];
|
|
427
428
|
bookingFrom?: Date;
|
|
428
429
|
bookingThrough?: Date;
|
|
429
430
|
modifiedFrom?: Date;
|
package/lib/seller.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IOrganization } from '../organization';
|
|
2
1
|
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
3
2
|
import { IOnPaymentStatusChanged, IProject } from '../project';
|
|
4
3
|
import { IPropertyValue } from '../propertyValue';
|
|
4
|
+
import { ISeller } from '../seller';
|
|
5
5
|
import { IThing } from '../thing';
|
|
6
6
|
export declare enum PaymentServiceType {
|
|
7
7
|
CreditCard = "CreditCard",
|
|
@@ -41,7 +41,11 @@ export interface IProviderCredentials {
|
|
|
41
41
|
*/
|
|
42
42
|
stCd?: string;
|
|
43
43
|
}
|
|
44
|
-
export interface IProvider extends Pick<
|
|
44
|
+
export interface IProvider extends Pick<ISeller, 'name' | 'typeOf'> {
|
|
45
|
+
/**
|
|
46
|
+
* 販売者ID
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
45
49
|
/**
|
|
46
50
|
* 販売者の決済サービス利用時資格情報
|
|
47
51
|
*/
|
|
@@ -4,16 +4,37 @@ import { TaskName } from '../taskName';
|
|
|
4
4
|
import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../transaction/moneyTransfer';
|
|
5
5
|
import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../transaction/placeOrder';
|
|
6
6
|
import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../transaction/returnOrder';
|
|
7
|
+
import { TransactionType } from '../transactionType';
|
|
8
|
+
/**
|
|
9
|
+
* オブジェクト特定方法
|
|
10
|
+
*/
|
|
11
|
+
export declare enum SpecifyingMethod {
|
|
12
|
+
Id = "Id",
|
|
13
|
+
AgentId = "AgentId"
|
|
14
|
+
}
|
|
7
15
|
export declare type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
8
16
|
object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
|
|
17
|
+
specifyingMethod?: SpecifyingMethod.Id;
|
|
9
18
|
};
|
|
10
19
|
export declare type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
11
20
|
object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
|
|
21
|
+
specifyingMethod?: SpecifyingMethod.Id;
|
|
12
22
|
};
|
|
13
23
|
export declare type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
14
24
|
object: Pick<IReturnOrderObject, 'order'>;
|
|
25
|
+
specifyingMethod?: SpecifyingMethod.Id;
|
|
15
26
|
};
|
|
16
|
-
export
|
|
27
|
+
export interface IObjectByAgentId {
|
|
28
|
+
specifyingMethod: SpecifyingMethod.AgentId;
|
|
29
|
+
project: {
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
typeOf: TransactionType;
|
|
33
|
+
agent: {
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export declare type IObject = IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectByAgentId;
|
|
17
38
|
export interface IData {
|
|
18
39
|
object: IObject;
|
|
19
40
|
}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpecifyingMethod = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* オブジェクト特定方法
|
|
6
|
+
*/
|
|
7
|
+
var SpecifyingMethod;
|
|
8
|
+
(function (SpecifyingMethod) {
|
|
9
|
+
SpecifyingMethod["Id"] = "Id";
|
|
10
|
+
SpecifyingMethod["AgentId"] = "AgentId";
|
|
11
|
+
})(SpecifyingMethod = exports.SpecifyingMethod || (exports.SpecifyingMethod = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import * as TaskFactory from '../task';
|
|
3
|
+
import { TaskName } from '../taskName';
|
|
4
|
+
export interface IData {
|
|
5
|
+
/**
|
|
6
|
+
* 承認コード
|
|
7
|
+
*/
|
|
8
|
+
code: string;
|
|
9
|
+
project: {
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 発券前に予約アクションを実行するかどうか
|
|
14
|
+
*/
|
|
15
|
+
reserveIfNotYet: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
18
|
+
name: TaskName.OnAuthorizationCreated;
|
|
19
|
+
data: IData;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 承認作成時タスク
|
|
23
|
+
*/
|
|
24
|
+
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import { IAttributes as IDeleteMemberActionAttributes } from '../action/update/delete/member';
|
|
2
1
|
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { EventType } from '../eventType';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export
|
|
5
|
+
export interface IData {
|
|
6
|
+
id: string[];
|
|
7
|
+
project: {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
typeOf: EventType;
|
|
11
|
+
isNew: boolean;
|
|
12
|
+
useInform: boolean;
|
|
13
|
+
}
|
|
6
14
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
|
-
name: TaskName.
|
|
15
|
+
name: TaskName.OnEventChanged;
|
|
8
16
|
data: IData;
|
|
9
17
|
}
|
|
10
18
|
/**
|
|
11
|
-
*
|
|
19
|
+
* イベント変更時タスク
|
|
12
20
|
*/
|
|
13
21
|
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IAccountTitle } from '../accountTitle';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { ICategoryCode } from '../categoryCode';
|
|
4
|
+
import { CreativeWorkType } from '../creativeWorkType';
|
|
5
|
+
import { PlaceType } from '../placeType';
|
|
6
|
+
import { ProductType } from '../product';
|
|
7
|
+
import * as TaskFactory from '../task';
|
|
8
|
+
import { TaskName } from '../taskName';
|
|
9
|
+
export declare type AccountTitleType = IAccountTitle['typeOf'];
|
|
10
|
+
export declare type CategoryCodeType = ICategoryCode['typeOf'];
|
|
11
|
+
export declare type IResourceTypeOf = AccountTitleType | CategoryCodeType | CreativeWorkType | PlaceType.MovieTheater | ProductType;
|
|
12
|
+
export interface IData {
|
|
13
|
+
id: string[];
|
|
14
|
+
project: {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
typeOf: IResourceTypeOf;
|
|
18
|
+
isNew: boolean;
|
|
19
|
+
useInform: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
22
|
+
name: TaskName.OnResourceUpdated;
|
|
23
|
+
data: IData;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* リソース変更時タスク
|
|
27
|
+
*/
|
|
28
|
+
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { IExtendId } from '../autoGenerated';
|
|
2
|
-
import {
|
|
2
|
+
import { PlaceType } from '../placeType';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
5
|
export interface IData {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* 施設ID
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
project: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
typeOf: PlaceType.MovieTheater;
|
|
7
14
|
}
|
|
8
15
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
9
|
-
name: TaskName.
|
|
16
|
+
name: TaskName.SyncScreeningRooms;
|
|
10
17
|
data: IData;
|
|
11
18
|
}
|
|
12
19
|
/**
|
|
13
|
-
*
|
|
20
|
+
* ルーム同期タスク
|
|
14
21
|
*/
|
|
15
22
|
export declare type ITask = IExtendId<IAttributes>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAttributes as IUseReservationActionAttributes, IReservationAsObject } from '../action/consume/use/reservation';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import * as TaskFactory from '../task';
|
|
4
|
+
import { TaskName } from '../taskName';
|
|
5
|
+
export declare type IUseReservationObject = Pick<IReservationAsObject, 'id' | 'typeOf'>;
|
|
6
|
+
export declare type IData = Pick<IUseReservationActionAttributes, 'agent' | 'instrument' | 'location' | 'project' | 'typeOf'> & {
|
|
7
|
+
object: IUseReservationObject;
|
|
8
|
+
/**
|
|
9
|
+
* 発券前に予約アクションを実行するかどうか
|
|
10
|
+
*/
|
|
11
|
+
reserveIfNotYet: boolean;
|
|
12
|
+
};
|
|
13
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
14
|
+
name: TaskName.UseReservation;
|
|
15
|
+
data: IData;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 予約使用タスク
|
|
19
|
+
*/
|
|
20
|
+
export declare type ITask = IExtendId<IAttributes>;
|
package/lib/taskName.d.ts
CHANGED
|
@@ -2,31 +2,19 @@
|
|
|
2
2
|
* タスク名
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TaskName {
|
|
5
|
-
Reserve = "reserve",
|
|
6
|
-
CancelReservation = "cancelReservation",
|
|
7
|
-
CancelPendingReservation = "cancelPendingReservation",
|
|
8
|
-
AggregateScreeningEvent = "aggregateScreeningEvent",
|
|
9
|
-
AggregateUseActionsOnEvent = "aggregateUseActionsOnEvent",
|
|
10
|
-
DeleteAssetTransaction = "deleteAssetTransaction",
|
|
11
|
-
DeleteOrder = "deleteOrder",
|
|
12
|
-
DeleteTransaction = "deleteTransaction",
|
|
13
|
-
ImportEventCapacitiesFromCOA = "importEventCapacitiesFromCOA",
|
|
14
|
-
ImportEventsFromCOA = "importEventsFromCOA",
|
|
15
|
-
ImportOffersFromCOA = "importOffersFromCOA",
|
|
16
|
-
CancelMoneyTransfer = "cancelMoneyTransfer",
|
|
17
|
-
MoneyTransfer = "moneyTransfer",
|
|
18
|
-
Refund = "refund",
|
|
19
|
-
RegisterService = "registerService",
|
|
20
|
-
Pay = "pay",
|
|
21
5
|
/**
|
|
22
|
-
*
|
|
6
|
+
* 口座転送
|
|
23
7
|
*/
|
|
24
|
-
|
|
8
|
+
AccountMoneyTransfer = "accountMoneyTransfer",
|
|
9
|
+
AggregateScreeningEvent = "aggregateScreeningEvent",
|
|
10
|
+
AggregateUseActionsOnEvent = "aggregateUseActionsOnEvent",
|
|
25
11
|
/**
|
|
26
|
-
*
|
|
12
|
+
* 口座転送中止
|
|
27
13
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
CancelAccountMoneyTransfer = "cancelAccountMoneyTransfer",
|
|
15
|
+
CancelMoneyTransfer = "cancelMoneyTransfer",
|
|
16
|
+
CancelReservation = "cancelReservation",
|
|
17
|
+
CancelPendingReservation = "cancelPendingReservation",
|
|
30
18
|
/**
|
|
31
19
|
* 通貨転送
|
|
32
20
|
*/
|
|
@@ -47,22 +35,33 @@ export declare enum TaskName {
|
|
|
47
35
|
* 予約資産取引確定
|
|
48
36
|
*/
|
|
49
37
|
ConfirmReserveTransaction = "confirmReserveTransaction",
|
|
50
|
-
|
|
51
|
-
* 会員削除
|
|
52
|
-
*/
|
|
53
|
-
DeleteMember = "deleteMember",
|
|
38
|
+
DeleteTransaction = "deleteTransaction",
|
|
54
39
|
/**
|
|
55
40
|
* ポイント特典付与
|
|
56
41
|
*/
|
|
57
42
|
GivePointAward = "givePointAward",
|
|
43
|
+
ImportEventCapacitiesFromCOA = "importEventCapacitiesFromCOA",
|
|
44
|
+
ImportEventsFromCOA = "importEventsFromCOA",
|
|
45
|
+
ImportOffersFromCOA = "importOffersFromCOA",
|
|
46
|
+
MoneyTransfer = "moneyTransfer",
|
|
47
|
+
OnAuthorizationCreated = "onAuthorizationCreated",
|
|
48
|
+
OnEventChanged = "onEventChanged",
|
|
49
|
+
OnResourceUpdated = "onResourceUpdated",
|
|
58
50
|
/**
|
|
59
51
|
* メンバーシップ注文
|
|
60
52
|
*/
|
|
61
53
|
OrderProgramMembership = "orderProgramMembership",
|
|
54
|
+
Pay = "pay",
|
|
62
55
|
/**
|
|
63
56
|
* 注文受付
|
|
64
57
|
*/
|
|
65
58
|
PlaceOrder = "placeOrder",
|
|
59
|
+
Refund = "refund",
|
|
60
|
+
RegisterService = "registerService",
|
|
61
|
+
/**
|
|
62
|
+
* Eメールメッセージ送信
|
|
63
|
+
*/
|
|
64
|
+
Reserve = "reserve",
|
|
66
65
|
/**
|
|
67
66
|
* 注文返品
|
|
68
67
|
*/
|
|
@@ -83,10 +82,21 @@ export declare enum TaskName {
|
|
|
83
82
|
* 予約資産取引返却
|
|
84
83
|
*/
|
|
85
84
|
ReturnReserveTransaction = "returnReserveTransaction",
|
|
85
|
+
SendEmailMessage = "sendEmailMessage",
|
|
86
86
|
/**
|
|
87
87
|
* 注文配送
|
|
88
88
|
*/
|
|
89
89
|
SendOrder = "sendOrder",
|
|
90
|
+
/**
|
|
91
|
+
* ルーム同期
|
|
92
|
+
*/
|
|
93
|
+
SyncScreeningRooms = "syncScreeningRooms",
|
|
94
|
+
/**
|
|
95
|
+
* ウェブフックをたたく
|
|
96
|
+
*/
|
|
97
|
+
TriggerWebhook = "triggerWebhook",
|
|
98
|
+
UseReservation = "useReservation",
|
|
99
|
+
VoidPayment = "voidPayment",
|
|
90
100
|
/**
|
|
91
101
|
* 通貨転送中止
|
|
92
102
|
*/
|
|
@@ -102,13 +112,5 @@ export declare enum TaskName {
|
|
|
102
112
|
/**
|
|
103
113
|
* 予約中止
|
|
104
114
|
*/
|
|
105
|
-
VoidReserveTransaction = "voidReserveTransaction"
|
|
106
|
-
/**
|
|
107
|
-
* 口座転送中止
|
|
108
|
-
*/
|
|
109
|
-
CancelAccountMoneyTransfer = "cancelAccountMoneyTransfer",
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送
|
|
112
|
-
*/
|
|
113
|
-
AccountMoneyTransfer = "accountMoneyTransfer"
|
|
115
|
+
VoidReserveTransaction = "voidReserveTransaction"
|
|
114
116
|
}
|
package/lib/taskName.js
CHANGED
|
@@ -6,31 +6,19 @@ exports.TaskName = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var TaskName;
|
|
8
8
|
(function (TaskName) {
|
|
9
|
-
TaskName["Reserve"] = "reserve";
|
|
10
|
-
TaskName["CancelReservation"] = "cancelReservation";
|
|
11
|
-
TaskName["CancelPendingReservation"] = "cancelPendingReservation";
|
|
12
|
-
TaskName["AggregateScreeningEvent"] = "aggregateScreeningEvent";
|
|
13
|
-
TaskName["AggregateUseActionsOnEvent"] = "aggregateUseActionsOnEvent";
|
|
14
|
-
TaskName["DeleteAssetTransaction"] = "deleteAssetTransaction";
|
|
15
|
-
TaskName["DeleteOrder"] = "deleteOrder";
|
|
16
|
-
TaskName["DeleteTransaction"] = "deleteTransaction";
|
|
17
|
-
TaskName["ImportEventCapacitiesFromCOA"] = "importEventCapacitiesFromCOA";
|
|
18
|
-
TaskName["ImportEventsFromCOA"] = "importEventsFromCOA";
|
|
19
|
-
TaskName["ImportOffersFromCOA"] = "importOffersFromCOA";
|
|
20
|
-
TaskName["CancelMoneyTransfer"] = "cancelMoneyTransfer";
|
|
21
|
-
TaskName["MoneyTransfer"] = "moneyTransfer";
|
|
22
|
-
TaskName["Refund"] = "refund";
|
|
23
|
-
TaskName["RegisterService"] = "registerService";
|
|
24
|
-
TaskName["Pay"] = "pay";
|
|
25
9
|
/**
|
|
26
|
-
*
|
|
10
|
+
* 口座転送
|
|
27
11
|
*/
|
|
28
|
-
TaskName["
|
|
12
|
+
TaskName["AccountMoneyTransfer"] = "accountMoneyTransfer";
|
|
13
|
+
TaskName["AggregateScreeningEvent"] = "aggregateScreeningEvent";
|
|
14
|
+
TaskName["AggregateUseActionsOnEvent"] = "aggregateUseActionsOnEvent";
|
|
29
15
|
/**
|
|
30
|
-
*
|
|
16
|
+
* 口座転送中止
|
|
31
17
|
*/
|
|
32
|
-
TaskName["
|
|
33
|
-
TaskName["
|
|
18
|
+
TaskName["CancelAccountMoneyTransfer"] = "cancelAccountMoneyTransfer";
|
|
19
|
+
TaskName["CancelMoneyTransfer"] = "cancelMoneyTransfer";
|
|
20
|
+
TaskName["CancelReservation"] = "cancelReservation";
|
|
21
|
+
TaskName["CancelPendingReservation"] = "cancelPendingReservation";
|
|
34
22
|
/**
|
|
35
23
|
* 通貨転送
|
|
36
24
|
*/
|
|
@@ -51,22 +39,34 @@ var TaskName;
|
|
|
51
39
|
* 予約資産取引確定
|
|
52
40
|
*/
|
|
53
41
|
TaskName["ConfirmReserveTransaction"] = "confirmReserveTransaction";
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*/
|
|
57
|
-
TaskName["DeleteMember"] = "deleteMember";
|
|
42
|
+
// DeleteMember = 'deleteMember',
|
|
43
|
+
TaskName["DeleteTransaction"] = "deleteTransaction";
|
|
58
44
|
/**
|
|
59
45
|
* ポイント特典付与
|
|
60
46
|
*/
|
|
61
47
|
TaskName["GivePointAward"] = "givePointAward";
|
|
48
|
+
TaskName["ImportEventCapacitiesFromCOA"] = "importEventCapacitiesFromCOA";
|
|
49
|
+
TaskName["ImportEventsFromCOA"] = "importEventsFromCOA";
|
|
50
|
+
TaskName["ImportOffersFromCOA"] = "importOffersFromCOA";
|
|
51
|
+
TaskName["MoneyTransfer"] = "moneyTransfer";
|
|
52
|
+
TaskName["OnAuthorizationCreated"] = "onAuthorizationCreated";
|
|
53
|
+
TaskName["OnEventChanged"] = "onEventChanged";
|
|
54
|
+
TaskName["OnResourceUpdated"] = "onResourceUpdated";
|
|
62
55
|
/**
|
|
63
56
|
* メンバーシップ注文
|
|
64
57
|
*/
|
|
65
58
|
TaskName["OrderProgramMembership"] = "orderProgramMembership";
|
|
59
|
+
TaskName["Pay"] = "pay";
|
|
66
60
|
/**
|
|
67
61
|
* 注文受付
|
|
68
62
|
*/
|
|
69
63
|
TaskName["PlaceOrder"] = "placeOrder";
|
|
64
|
+
TaskName["Refund"] = "refund";
|
|
65
|
+
TaskName["RegisterService"] = "registerService";
|
|
66
|
+
/**
|
|
67
|
+
* Eメールメッセージ送信
|
|
68
|
+
*/
|
|
69
|
+
TaskName["Reserve"] = "reserve";
|
|
70
70
|
/**
|
|
71
71
|
* 注文返品
|
|
72
72
|
*/
|
|
@@ -87,10 +87,21 @@ var TaskName;
|
|
|
87
87
|
* 予約資産取引返却
|
|
88
88
|
*/
|
|
89
89
|
TaskName["ReturnReserveTransaction"] = "returnReserveTransaction";
|
|
90
|
+
TaskName["SendEmailMessage"] = "sendEmailMessage";
|
|
90
91
|
/**
|
|
91
92
|
* 注文配送
|
|
92
93
|
*/
|
|
93
94
|
TaskName["SendOrder"] = "sendOrder";
|
|
95
|
+
/**
|
|
96
|
+
* ルーム同期
|
|
97
|
+
*/
|
|
98
|
+
TaskName["SyncScreeningRooms"] = "syncScreeningRooms";
|
|
99
|
+
/**
|
|
100
|
+
* ウェブフックをたたく
|
|
101
|
+
*/
|
|
102
|
+
TaskName["TriggerWebhook"] = "triggerWebhook";
|
|
103
|
+
TaskName["UseReservation"] = "useReservation";
|
|
104
|
+
TaskName["VoidPayment"] = "voidPayment";
|
|
94
105
|
/**
|
|
95
106
|
* 通貨転送中止
|
|
96
107
|
*/
|
|
@@ -107,12 +118,4 @@ var TaskName;
|
|
|
107
118
|
* 予約中止
|
|
108
119
|
*/
|
|
109
120
|
TaskName["VoidReserveTransaction"] = "voidReserveTransaction";
|
|
110
|
-
/**
|
|
111
|
-
* 口座転送中止
|
|
112
|
-
*/
|
|
113
|
-
TaskName["CancelAccountMoneyTransfer"] = "cancelAccountMoneyTransfer";
|
|
114
|
-
/**
|
|
115
|
-
* 口座転送
|
|
116
|
-
*/
|
|
117
|
-
TaskName["AccountMoneyTransfer"] = "accountMoneyTransfer";
|
|
118
121
|
})(TaskName = exports.TaskName || (exports.TaskName = {}));
|