@chevre/factory 4.281.0-alpha.0 → 4.281.0-alpha.2
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 +19 -2
- package/lib/action/reserve.d.ts +5 -3
- package/lib/assetTransaction/cancelReservation.d.ts +8 -4
- package/lib/assetTransaction/reserve.d.ts +50 -24
- package/lib/event/anyEvent.d.ts +363 -0
- package/lib/event/anyEvent.js +2 -0
- package/lib/event/screeningEvent.d.ts +21 -149
- package/lib/eventType.d.ts +1 -0
- package/lib/eventType.js +1 -0
- package/lib/index.d.ts +26 -18
- package/lib/index.js +5 -0
- package/lib/order.d.ts +10 -3
- package/lib/ownershipInfo.d.ts +25 -5
- package/lib/product.d.ts +1 -1
- package/lib/product.js +1 -1
- package/lib/reservation/busReservation.d.ts +39 -0
- package/lib/reservation/busReservation.js +2 -0
- package/lib/reservation/event.d.ts +6 -1
- package/lib/reservation.d.ts +16 -2
- package/lib/reservationType.d.ts +1 -0
- package/lib/reservationType.js +1 -0
- package/package.json +1 -1
|
@@ -5,10 +5,11 @@ import { EventType } from '../../eventType';
|
|
|
5
5
|
import { ProductType } from '../../product';
|
|
6
6
|
import { ReservationStatusType } from '../../reservationStatusType';
|
|
7
7
|
import { ReservationType } from '../../reservationType';
|
|
8
|
+
import { TripType } from '../../tripType';
|
|
8
9
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
9
10
|
export interface IReservationPackageAsObject {
|
|
10
11
|
reservationFor: {
|
|
11
|
-
typeOf: EventType.ScreeningEvent;
|
|
12
|
+
typeOf: EventType.ScreeningEvent | TripType.BusTrip;
|
|
12
13
|
id: string;
|
|
13
14
|
};
|
|
14
15
|
reservationNumber: string;
|
|
@@ -18,6 +19,22 @@ export interface IReservationPackageAsObject {
|
|
|
18
19
|
reservationStatus: ReservationStatusType;
|
|
19
20
|
typeOf: ReservationType.ReservationPackage;
|
|
20
21
|
}
|
|
22
|
+
export interface IBusReservationAsObject {
|
|
23
|
+
id: string;
|
|
24
|
+
issuedThrough?: {
|
|
25
|
+
typeOf?: ProductType.Transportation;
|
|
26
|
+
};
|
|
27
|
+
reservationFor: {
|
|
28
|
+
typeOf: TripType.BusTrip;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
reservationNumber: string;
|
|
32
|
+
/**
|
|
33
|
+
* previousReservationStatusを変更時に指定するために必要
|
|
34
|
+
*/
|
|
35
|
+
reservationStatus: ReservationStatusType;
|
|
36
|
+
typeOf: ReservationType.BusReservation;
|
|
37
|
+
}
|
|
21
38
|
/**
|
|
22
39
|
* 予約取消対象
|
|
23
40
|
*/
|
|
@@ -37,7 +54,7 @@ export interface IEventReservationAsObject {
|
|
|
37
54
|
reservationStatus: ReservationStatusType;
|
|
38
55
|
typeOf: ReservationType.EventReservation;
|
|
39
56
|
}
|
|
40
|
-
export declare type IObject = IEventReservationAsObject | IReservationPackageAsObject;
|
|
57
|
+
export declare type IObject = IBusReservationAsObject | IEventReservationAsObject | IReservationPackageAsObject;
|
|
41
58
|
/**
|
|
42
59
|
* 予約取消結果
|
|
43
60
|
*/
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { ActionType } from '../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { OrderType } from '../order';
|
|
5
5
|
import { IUnderName } from '../reservation';
|
|
6
|
-
import { IReservation as
|
|
6
|
+
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
|
+
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
7
8
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
8
9
|
import { ReservationType } from '../reservationType';
|
|
9
10
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
10
11
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
11
|
-
export declare type ISubReservation = Omit<IEventReservation, 'reservationFor'>;
|
|
12
|
+
export declare type ISubReservation = Omit<IBusReservation, 'reservationFor'> | Omit<IEventReservation, 'reservationFor'>;
|
|
13
|
+
export declare type IReservationFor = IBusReservationFor | IEventReservationFor;
|
|
12
14
|
export interface IReservationPackageAsObject {
|
|
13
15
|
reservationFor: IReservationFor;
|
|
14
16
|
reservationNumber: string;
|
|
@@ -17,7 +19,7 @@ export interface IReservationPackageAsObject {
|
|
|
17
19
|
underName?: IUnderName;
|
|
18
20
|
typeOf: ReservationType.ReservationPackage;
|
|
19
21
|
}
|
|
20
|
-
export declare type IObject = IEventReservation | IReservationPackageAsObject;
|
|
22
|
+
export declare type IObject = IBusReservation | IEventReservation | IReservationPackageAsObject;
|
|
21
23
|
export interface IResult {
|
|
22
24
|
confirmedReservationId?: string;
|
|
23
25
|
}
|
|
@@ -4,7 +4,8 @@ import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IClientUser } from '../clientUser';
|
|
7
|
-
import { IReservation as
|
|
7
|
+
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
8
|
+
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
9
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
10
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
10
11
|
/**
|
|
@@ -32,11 +33,14 @@ export interface IObjectWithoutDetail {
|
|
|
32
33
|
}
|
|
33
34
|
export declare type IReserveTransactionAsObject = Pick<IReserveTransaction, 'typeOf' | 'id' | 'transactionNumber'> & {
|
|
34
35
|
object: {
|
|
35
|
-
reservationFor: Pick<
|
|
36
|
+
reservationFor: Pick<IEventReservationFor | IBusReservationFor, 'id' | 'typeOf'>;
|
|
36
37
|
};
|
|
37
38
|
};
|
|
39
|
+
export declare type IBusReservationAsObject = Pick<IBusReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
40
|
+
reservationFor: Pick<IBusReservationFor, 'id' | 'typeOf'>;
|
|
41
|
+
};
|
|
38
42
|
export declare type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
39
|
-
reservationFor: Pick<
|
|
43
|
+
reservationFor: Pick<IEventReservationFor, 'id' | 'typeOf'>;
|
|
40
44
|
};
|
|
41
45
|
/**
|
|
42
46
|
* 取引対象物
|
|
@@ -44,7 +48,7 @@ export declare type IEventReservationAsObject = Pick<IEventReservation, 'id' | '
|
|
|
44
48
|
export interface IObject {
|
|
45
49
|
clientUser?: IClientUser;
|
|
46
50
|
transaction?: IReserveTransactionAsObject;
|
|
47
|
-
reservations?: IEventReservationAsObject[];
|
|
51
|
+
reservations?: IBusReservationAsObject[] | IEventReservationAsObject[];
|
|
48
52
|
}
|
|
49
53
|
/**
|
|
50
54
|
* 取引確定パラメータ
|
|
@@ -7,6 +7,7 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
|
7
7
|
import { IPointAward } from '../product';
|
|
8
8
|
import { IPropertyValue } from '../propertyValue';
|
|
9
9
|
import * as ReservationFactory from '../reservation';
|
|
10
|
+
import { IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
|
|
10
11
|
import { IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
11
12
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
12
13
|
import { ReservationType } from '../reservationType';
|
|
@@ -57,34 +58,59 @@ export interface IAcceptedPointAward {
|
|
|
57
58
|
};
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
export interface IBusReservatonAsItemOfferedServiceOutput {
|
|
62
|
+
typeOf: ReservationType.BusReservation;
|
|
63
|
+
/**
|
|
64
|
+
* 追加特性
|
|
65
|
+
*/
|
|
66
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
67
|
+
/**
|
|
68
|
+
* 予約追加テキスト
|
|
69
|
+
*/
|
|
70
|
+
additionalTicketText?: string;
|
|
71
|
+
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
72
|
+
reservedTicket?: {
|
|
73
|
+
issuedBy?: ReservationFactory.IUnderName;
|
|
74
|
+
typeOf: ReservationFactory.TicketType;
|
|
67
75
|
/**
|
|
68
|
-
*
|
|
76
|
+
* 予約座席指定
|
|
77
|
+
* 指定席イベントの場合、座席を指定
|
|
78
|
+
* 自由席イベントの場合、あるいは、最大収容人数がないイベントの場合は、座席指定不要
|
|
69
79
|
*/
|
|
70
|
-
|
|
80
|
+
ticketedSeat?: ReservationFactory.ISeat;
|
|
81
|
+
};
|
|
82
|
+
subReservation?: IAcceptedSubReservation[];
|
|
83
|
+
}
|
|
84
|
+
export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
85
|
+
typeOf: ReservationType.EventReservation;
|
|
86
|
+
/**
|
|
87
|
+
* 追加特性
|
|
88
|
+
*/
|
|
89
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
90
|
+
/**
|
|
91
|
+
* 予約追加テキスト
|
|
92
|
+
*/
|
|
93
|
+
additionalTicketText?: string;
|
|
94
|
+
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
95
|
+
reservedTicket?: {
|
|
96
|
+
issuedBy?: ReservationFactory.IUnderName;
|
|
97
|
+
typeOf: ReservationFactory.TicketType;
|
|
71
98
|
/**
|
|
72
|
-
*
|
|
99
|
+
* 予約座席指定
|
|
100
|
+
* 指定席イベントの場合、座席を指定
|
|
101
|
+
* 自由席イベントの場合、あるいは、最大収容人数がないイベントの場合は、座席指定不要
|
|
73
102
|
*/
|
|
74
|
-
|
|
75
|
-
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
76
|
-
reservedTicket?: {
|
|
77
|
-
issuedBy?: ReservationFactory.IUnderName;
|
|
78
|
-
typeOf: ReservationFactory.TicketType;
|
|
79
|
-
/**
|
|
80
|
-
* 予約座席指定
|
|
81
|
-
* 指定席イベントの場合、座席を指定
|
|
82
|
-
* 自由席イベントの場合、あるいは、最大収容人数がないイベントの場合は、座席指定不要
|
|
83
|
-
*/
|
|
84
|
-
ticketedSeat?: ReservationFactory.ISeat;
|
|
85
|
-
};
|
|
86
|
-
subReservation?: IAcceptedSubReservation[];
|
|
103
|
+
ticketedSeat?: ReservationFactory.ISeat;
|
|
87
104
|
};
|
|
105
|
+
subReservation?: IAcceptedSubReservation[];
|
|
106
|
+
}
|
|
107
|
+
export declare type IItemOfferedServiceOutput = IBusReservatonAsItemOfferedServiceOutput | IEventReservatonAsItemOfferedServiceOutput;
|
|
108
|
+
/**
|
|
109
|
+
* 受け入れられたオファーのアイテム
|
|
110
|
+
*/
|
|
111
|
+
export interface IAcceptedTicketOfferItemOffered {
|
|
112
|
+
pointAward?: IAcceptedPointAward;
|
|
113
|
+
serviceOutput?: IItemOfferedServiceOutput;
|
|
88
114
|
}
|
|
89
115
|
export interface IAcceptedTicketOfferItemOffered4object {
|
|
90
116
|
pointAward?: IPointAward;
|
|
@@ -188,7 +214,7 @@ export interface IObjectWithoutDetail {
|
|
|
188
214
|
id: string;
|
|
189
215
|
};
|
|
190
216
|
}
|
|
191
|
-
export declare type IReservationFor = IEventReservationReservationFor;
|
|
217
|
+
export declare type IReservationFor = IBusReservationReservationFor | IEventReservationReservationFor;
|
|
192
218
|
export declare type IObjectSubReservation = ReserveActionFactory.ISubReservation;
|
|
193
219
|
/**
|
|
194
220
|
* 取引対象物
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import * as EventFactory from '../event';
|
|
2
|
+
import { EventType } from '../eventType';
|
|
3
|
+
import { IMultilingualString } from '../multilingualString';
|
|
4
|
+
import * as OfferFactory from '../offer';
|
|
5
|
+
import { OfferType } from '../offerType';
|
|
6
|
+
import { OrganizationType } from '../organizationType';
|
|
7
|
+
import { PlaceType } from '../placeType';
|
|
8
|
+
import { PriceCurrency } from '../priceCurrency';
|
|
9
|
+
import { IServiceType as IProductServiceType, ProductType } from '../product';
|
|
10
|
+
import { IQuantitativeValue } from '../quantitativeValue';
|
|
11
|
+
import * as ReservationFactory from '../reservation';
|
|
12
|
+
import { ReservationType } from '../reservationType';
|
|
13
|
+
import * as WebAPIFactory from '../service/webAPI';
|
|
14
|
+
import { IThing } from '../thing';
|
|
15
|
+
import { ITrip as IBusTrip } from '../trip/busTrip';
|
|
16
|
+
import { UnitCode } from '../unitCode';
|
|
17
|
+
/**
|
|
18
|
+
* 予約集計
|
|
19
|
+
*/
|
|
20
|
+
export interface IAggregateReservation {
|
|
21
|
+
typeOf: 'AggregateReservation';
|
|
22
|
+
aggregateDate: Date;
|
|
23
|
+
checkInCount?: number;
|
|
24
|
+
attendeeCount?: number;
|
|
25
|
+
reservationCount?: number;
|
|
26
|
+
useActionCount?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 予約集計つきオファー
|
|
30
|
+
*/
|
|
31
|
+
export interface IOfferWithAggregateReservation extends Pick<IThing, 'name'> {
|
|
32
|
+
typeOf: OfferType.Offer;
|
|
33
|
+
id?: string;
|
|
34
|
+
identifier?: string;
|
|
35
|
+
aggregateReservation?: IAggregateReservation;
|
|
36
|
+
category?: OfferFactory.ICategory;
|
|
37
|
+
maximumAttendeeCapacity?: number;
|
|
38
|
+
remainingAttendeeCapacity?: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* オファー集計
|
|
42
|
+
*/
|
|
43
|
+
export interface IAggregateOffer {
|
|
44
|
+
typeOf: OfferType.AggregateOffer;
|
|
45
|
+
offerCount?: number;
|
|
46
|
+
offers?: IOfferWithAggregateReservation[];
|
|
47
|
+
}
|
|
48
|
+
export interface IPlaceWithAggregateOffer {
|
|
49
|
+
typeOf: PlaceType;
|
|
50
|
+
identifier?: string;
|
|
51
|
+
aggregateOffer?: {
|
|
52
|
+
typeOf: OfferType.AggregateOffer;
|
|
53
|
+
offers?: {
|
|
54
|
+
typeOf: OfferType.Offer;
|
|
55
|
+
id?: string;
|
|
56
|
+
identifier?: string;
|
|
57
|
+
category?: OfferFactory.ICategory;
|
|
58
|
+
aggregateReservation?: IAggregateReservation;
|
|
59
|
+
}[];
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 入場ゲート集計
|
|
64
|
+
*/
|
|
65
|
+
export interface IAggregateEntranceGate {
|
|
66
|
+
typeOf: PlaceType.AggregatePlace;
|
|
67
|
+
places: IPlaceWithAggregateOffer[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 予約対象
|
|
71
|
+
* 現時点でBusTripのみ
|
|
72
|
+
*/
|
|
73
|
+
export declare type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'identifier' | 'typeOf'>;
|
|
74
|
+
export interface IServiceOutput {
|
|
75
|
+
typeOf: ReservationType.BusReservation;
|
|
76
|
+
reservationFor: IReservationFor;
|
|
77
|
+
reservedTicket?: {
|
|
78
|
+
typeOf: ReservationFactory.TicketType;
|
|
79
|
+
/**
|
|
80
|
+
* チケットに割り当てられる座席
|
|
81
|
+
* 指定席でない場合、存在しない
|
|
82
|
+
*/
|
|
83
|
+
ticketedSeat?: {
|
|
84
|
+
typeOf: PlaceType.Seat;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export declare type IServiceType = IProductServiceType & {
|
|
89
|
+
id?: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 旅客サービス
|
|
93
|
+
*/
|
|
94
|
+
export interface IItemOffered {
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* プロダクト名称
|
|
98
|
+
*/
|
|
99
|
+
name?: {
|
|
100
|
+
ja?: string;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* サービス区分
|
|
104
|
+
*/
|
|
105
|
+
serviceType?: IServiceType;
|
|
106
|
+
/**
|
|
107
|
+
* サービスアウトプット
|
|
108
|
+
*/
|
|
109
|
+
serviceOutput?: IServiceOutput;
|
|
110
|
+
typeOf: ProductType.Transportation;
|
|
111
|
+
availableChannel: ReservationFactory.IServiceChannel;
|
|
112
|
+
}
|
|
113
|
+
export declare type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier.Chevre>;
|
|
114
|
+
export interface ISellerMakesOffer extends Pick<OfferFactory.IOffer, 'typeOf' | 'availableAtOrFrom' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> {
|
|
115
|
+
availabilityEnds: Date;
|
|
116
|
+
availabilityStarts: Date;
|
|
117
|
+
validFrom: Date;
|
|
118
|
+
validThrough: Date;
|
|
119
|
+
}
|
|
120
|
+
export interface ISeller {
|
|
121
|
+
typeOf: OrganizationType.Corporation;
|
|
122
|
+
id: string;
|
|
123
|
+
name?: string | IMultilingualString;
|
|
124
|
+
makesOffer: ISellerMakesOffer[];
|
|
125
|
+
}
|
|
126
|
+
export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
|
|
127
|
+
/**
|
|
128
|
+
* イベントに対するオファー
|
|
129
|
+
*/
|
|
130
|
+
export interface IOffer {
|
|
131
|
+
typeOf: OfferType.Offer;
|
|
132
|
+
priceCurrency: PriceCurrency.JPY;
|
|
133
|
+
/**
|
|
134
|
+
* 情報提供終了日時(オンライン取引アプリケーションの設定)
|
|
135
|
+
*/
|
|
136
|
+
availabilityEnds: Date;
|
|
137
|
+
/**
|
|
138
|
+
* 情報提供開始日時(オンライン取引アプリケーションの設定)
|
|
139
|
+
*/
|
|
140
|
+
availabilityStarts: Date;
|
|
141
|
+
eligibleQuantity: IEligibleQuantity;
|
|
142
|
+
itemOffered: IItemOffered;
|
|
143
|
+
/**
|
|
144
|
+
* オファー供給サービス
|
|
145
|
+
*/
|
|
146
|
+
offeredThrough?: IOfferedThrough;
|
|
147
|
+
/**
|
|
148
|
+
* 販売可能期間from(オンライン取引アプリケーションの設定)
|
|
149
|
+
*/
|
|
150
|
+
validFrom: Date;
|
|
151
|
+
/**
|
|
152
|
+
* 販売可能期間through(オンライン取引アプリケーションの設定)
|
|
153
|
+
*/
|
|
154
|
+
validThrough: Date;
|
|
155
|
+
unacceptedPaymentMethod?: string[];
|
|
156
|
+
seller: ISeller;
|
|
157
|
+
}
|
|
158
|
+
export interface ILocation {
|
|
159
|
+
typeOf: PlaceType.ScreeningRoom;
|
|
160
|
+
/**
|
|
161
|
+
* ルームコード
|
|
162
|
+
*/
|
|
163
|
+
branchCode: string;
|
|
164
|
+
/**
|
|
165
|
+
* 場所名称
|
|
166
|
+
*/
|
|
167
|
+
name?: IMultilingualString;
|
|
168
|
+
alternateName?: IMultilingualString;
|
|
169
|
+
description?: IMultilingualString;
|
|
170
|
+
address?: IMultilingualString;
|
|
171
|
+
/**
|
|
172
|
+
* イベント固有のキャパシティ
|
|
173
|
+
* 施設のキャパシティに依存しない場合に使用
|
|
174
|
+
*/
|
|
175
|
+
maximumAttendeeCapacity?: number;
|
|
176
|
+
}
|
|
177
|
+
export declare type IName = IMultilingualString;
|
|
178
|
+
/**
|
|
179
|
+
* イベント属性
|
|
180
|
+
*/
|
|
181
|
+
export interface IAttributes extends EventFactory.IAttributes<EventType.Event> {
|
|
182
|
+
/**
|
|
183
|
+
* 上映場所
|
|
184
|
+
*/
|
|
185
|
+
location: ILocation;
|
|
186
|
+
/**
|
|
187
|
+
* イベント名称
|
|
188
|
+
*/
|
|
189
|
+
name: IName;
|
|
190
|
+
/**
|
|
191
|
+
* 開場日時
|
|
192
|
+
* ISO 8601 date format
|
|
193
|
+
*/
|
|
194
|
+
doorTime?: Date;
|
|
195
|
+
/**
|
|
196
|
+
* 終了日時(
|
|
197
|
+
* ISO 8601 date format
|
|
198
|
+
*/
|
|
199
|
+
endDate: Date;
|
|
200
|
+
/**
|
|
201
|
+
* 開始日時
|
|
202
|
+
* ISO 8601 date format
|
|
203
|
+
*/
|
|
204
|
+
startDate: Date;
|
|
205
|
+
/**
|
|
206
|
+
* 販売情報
|
|
207
|
+
*/
|
|
208
|
+
offers?: IOffer;
|
|
209
|
+
/**
|
|
210
|
+
* 発券数
|
|
211
|
+
*/
|
|
212
|
+
checkInCount?: Number;
|
|
213
|
+
/**
|
|
214
|
+
* 参加数
|
|
215
|
+
*/
|
|
216
|
+
attendeeCount?: Number;
|
|
217
|
+
/**
|
|
218
|
+
* 入場ゲート集計
|
|
219
|
+
*/
|
|
220
|
+
aggregateEntranceGate?: IAggregateEntranceGate;
|
|
221
|
+
/**
|
|
222
|
+
* 予約集計
|
|
223
|
+
*/
|
|
224
|
+
aggregateReservation?: IAggregateReservation;
|
|
225
|
+
/**
|
|
226
|
+
* オファー集計
|
|
227
|
+
*/
|
|
228
|
+
aggregateOffer?: IAggregateOffer;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* イベント
|
|
232
|
+
*/
|
|
233
|
+
export declare type IEvent = EventFactory.IEvent<IAttributes>;
|
|
234
|
+
export declare type ILocation4create = Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
|
|
235
|
+
export declare type ISeller4create = Pick<ISeller, 'makesOffer'> & {
|
|
236
|
+
/**
|
|
237
|
+
* POS以外のアプリケーションの共通設定
|
|
238
|
+
*/
|
|
239
|
+
makesOfferDefault?: Pick<ISellerMakesOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'>;
|
|
240
|
+
};
|
|
241
|
+
export declare type IItemOffered4create = Pick<IItemOffered, 'id' | 'serviceOutput'> & {
|
|
242
|
+
availableChannel: {
|
|
243
|
+
serviceLocation: {
|
|
244
|
+
/**
|
|
245
|
+
* ルームコード
|
|
246
|
+
*/
|
|
247
|
+
branchCode: string;
|
|
248
|
+
containedInPlace: {
|
|
249
|
+
/**
|
|
250
|
+
* 施設ID
|
|
251
|
+
*/
|
|
252
|
+
id: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
export declare type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
|
|
258
|
+
/**
|
|
259
|
+
* 最大予約数を指定
|
|
260
|
+
*/
|
|
261
|
+
eligibleQuantity: Pick<IEligibleQuantity, 'maxValue'>;
|
|
262
|
+
/**
|
|
263
|
+
* 興行IDと座席有無を指定
|
|
264
|
+
*/
|
|
265
|
+
itemOffered: IItemOffered4create;
|
|
266
|
+
/**
|
|
267
|
+
* 販売者IDとアプリケーション設定
|
|
268
|
+
*/
|
|
269
|
+
seller: ISeller4create;
|
|
270
|
+
};
|
|
271
|
+
export declare type ICreateParams = Pick<IAttributes, 'project' | 'typeOf' | 'doorTime' | 'startDate' | 'endDate' | 'eventStatus' | 'additionalProperty'> & {
|
|
272
|
+
/**
|
|
273
|
+
* ルームコードとキャパシティを指定
|
|
274
|
+
*/
|
|
275
|
+
location: ILocation4create;
|
|
276
|
+
offers: IOffers4create;
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* イベント更新パラメータ
|
|
280
|
+
*/
|
|
281
|
+
export declare type IUpdateParams = ICreateParams;
|
|
282
|
+
/**
|
|
283
|
+
* ソート条件
|
|
284
|
+
*/
|
|
285
|
+
export declare type ISortOrder = EventFactory.ISortOrder;
|
|
286
|
+
export interface IOfferSearchConditions {
|
|
287
|
+
/**
|
|
288
|
+
* apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
|
|
289
|
+
*/
|
|
290
|
+
availableFrom?: Date;
|
|
291
|
+
/**
|
|
292
|
+
* apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
|
|
293
|
+
*/
|
|
294
|
+
availableThrough?: Date;
|
|
295
|
+
/**
|
|
296
|
+
* apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
|
|
297
|
+
*/
|
|
298
|
+
validFrom?: Date;
|
|
299
|
+
/**
|
|
300
|
+
* apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
|
|
301
|
+
*/
|
|
302
|
+
validThrough?: Date;
|
|
303
|
+
itemOffered?: {
|
|
304
|
+
id?: {
|
|
305
|
+
$in?: string[];
|
|
306
|
+
};
|
|
307
|
+
serviceType?: {
|
|
308
|
+
ids?: string[];
|
|
309
|
+
};
|
|
310
|
+
serviceOutput?: {
|
|
311
|
+
reservedTicket?: {
|
|
312
|
+
ticketedSeat?: {
|
|
313
|
+
typeOfs?: string[];
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
typeOf?: {
|
|
318
|
+
$eq?: ProductType;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
seller?: {
|
|
322
|
+
makesOffer?: {
|
|
323
|
+
$elemMatch?: {
|
|
324
|
+
availabilityEnds?: {
|
|
325
|
+
$gte?: Date;
|
|
326
|
+
$lte?: Date;
|
|
327
|
+
};
|
|
328
|
+
availabilityStarts?: {
|
|
329
|
+
$gte?: Date;
|
|
330
|
+
$lte?: Date;
|
|
331
|
+
};
|
|
332
|
+
validFrom?: {
|
|
333
|
+
$gte?: Date;
|
|
334
|
+
$lte?: Date;
|
|
335
|
+
};
|
|
336
|
+
validThrough?: {
|
|
337
|
+
$gte?: Date;
|
|
338
|
+
$lte?: Date;
|
|
339
|
+
};
|
|
340
|
+
'availableAtOrFrom.id'?: {
|
|
341
|
+
$eq?: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* イベント検索条件
|
|
349
|
+
*/
|
|
350
|
+
export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.Event> {
|
|
351
|
+
location?: {
|
|
352
|
+
/**
|
|
353
|
+
* ルームコード
|
|
354
|
+
*/
|
|
355
|
+
branchCode?: {
|
|
356
|
+
$eq?: string;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* 販売情報
|
|
361
|
+
*/
|
|
362
|
+
offers?: IOfferSearchConditions;
|
|
363
|
+
}
|
|
@@ -2,71 +2,19 @@ import * as COA from '@motionpicture/coa-service';
|
|
|
2
2
|
import * as EventFactory from '../event';
|
|
3
3
|
import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
|
|
4
4
|
import { EventType } from '../eventType';
|
|
5
|
-
import { IMultilingualString } from '../multilingualString';
|
|
6
|
-
import * as OfferFactory from '../offer';
|
|
7
5
|
import { OfferType } from '../offerType';
|
|
8
|
-
import { OrganizationType } from '../organizationType';
|
|
9
6
|
import { PlaceType } from '../placeType';
|
|
10
7
|
import { PriceCurrency } from '../priceCurrency';
|
|
11
|
-
import { IServiceType as IProductServiceType } from '../product';
|
|
12
|
-
import { IQuantitativeValue } from '../quantitativeValue';
|
|
8
|
+
import { IServiceType as IProductServiceType, ProductType } from '../product';
|
|
13
9
|
import * as ReservationFactory from '../reservation';
|
|
14
10
|
import { ReservationType } from '../reservationType';
|
|
15
11
|
import * as WebAPIFactory from '../service/webAPI';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
22
|
-
typeOf: 'AggregateReservation';
|
|
23
|
-
aggregateDate: Date;
|
|
24
|
-
checkInCount?: number;
|
|
25
|
-
attendeeCount?: number;
|
|
26
|
-
reservationCount?: number;
|
|
27
|
-
useActionCount?: number;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 予約集計つきオファー
|
|
31
|
-
*/
|
|
32
|
-
export interface IOfferWithAggregateReservation extends Pick<IThing, 'name'> {
|
|
33
|
-
typeOf: OfferType.Offer;
|
|
34
|
-
id?: string;
|
|
35
|
-
identifier?: string;
|
|
36
|
-
aggregateReservation?: IAggregateReservation;
|
|
37
|
-
category?: OfferFactory.ICategory;
|
|
38
|
-
maximumAttendeeCapacity?: number;
|
|
39
|
-
remainingAttendeeCapacity?: number;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* オファー集計
|
|
43
|
-
*/
|
|
44
|
-
export interface IAggregateOffer {
|
|
45
|
-
typeOf: OfferType.AggregateOffer;
|
|
46
|
-
offerCount?: number;
|
|
47
|
-
offers?: IOfferWithAggregateReservation[];
|
|
48
|
-
}
|
|
49
|
-
export interface IPlaceWithAggregateOffer {
|
|
50
|
-
typeOf: PlaceType;
|
|
51
|
-
identifier?: string;
|
|
52
|
-
aggregateOffer?: {
|
|
53
|
-
typeOf: OfferType.AggregateOffer;
|
|
54
|
-
offers?: {
|
|
55
|
-
typeOf: OfferType.Offer;
|
|
56
|
-
id?: string;
|
|
57
|
-
identifier?: string;
|
|
58
|
-
category?: OfferFactory.ICategory;
|
|
59
|
-
aggregateReservation?: IAggregateReservation;
|
|
60
|
-
}[];
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* 入場ゲート集計
|
|
65
|
-
*/
|
|
66
|
-
export interface IAggregateEntranceGate {
|
|
67
|
-
typeOf: PlaceType.AggregatePlace;
|
|
68
|
-
places: IPlaceWithAggregateOffer[];
|
|
69
|
-
}
|
|
12
|
+
import * as AnyEventFactory from './anyEvent';
|
|
13
|
+
export import IAggregateReservation = AnyEventFactory.IAggregateReservation;
|
|
14
|
+
export import IOfferWithAggregateReservation = AnyEventFactory.IOfferWithAggregateReservation;
|
|
15
|
+
export import IAggregateOffer = AnyEventFactory.IAggregateOffer;
|
|
16
|
+
export import IPlaceWithAggregateOffer = AnyEventFactory.IPlaceWithAggregateOffer;
|
|
17
|
+
export import IAggregateEntranceGate = AnyEventFactory.IAggregateEntranceGate;
|
|
70
18
|
export interface IServiceOutput {
|
|
71
19
|
typeOf: ReservationType.EventReservation;
|
|
72
20
|
reservedTicket?: {
|
|
@@ -87,36 +35,28 @@ export declare type IServiceType = IProductServiceType & {
|
|
|
87
35
|
* 興行
|
|
88
36
|
*/
|
|
89
37
|
export interface IItemOffered {
|
|
90
|
-
id
|
|
38
|
+
id: string;
|
|
91
39
|
/**
|
|
92
|
-
*
|
|
40
|
+
* プロダクト名称
|
|
93
41
|
*/
|
|
94
42
|
name?: {
|
|
95
43
|
ja?: string;
|
|
96
44
|
};
|
|
97
45
|
/**
|
|
98
|
-
*
|
|
46
|
+
* サービス区分
|
|
99
47
|
*/
|
|
100
48
|
serviceType?: IServiceType;
|
|
101
49
|
/**
|
|
102
50
|
* サービスアウトプット
|
|
103
51
|
*/
|
|
104
52
|
serviceOutput?: IServiceOutput;
|
|
53
|
+
typeOf: ProductType.EventService;
|
|
54
|
+
availableChannel: ReservationFactory.IServiceChannel;
|
|
105
55
|
}
|
|
106
56
|
export declare type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier>;
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
validFrom: Date;
|
|
111
|
-
validThrough: Date;
|
|
112
|
-
}
|
|
113
|
-
export interface ISeller {
|
|
114
|
-
typeOf: OrganizationType.Corporation;
|
|
115
|
-
id: string;
|
|
116
|
-
name?: string | IMultilingualString;
|
|
117
|
-
makesOffer: ISellerMakesOffer[];
|
|
118
|
-
}
|
|
119
|
-
export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
|
|
57
|
+
export import ISellerMakesOffer = AnyEventFactory.ISellerMakesOffer;
|
|
58
|
+
export import ISeller = AnyEventFactory.ISeller;
|
|
59
|
+
export import IEligibleQuantity = AnyEventFactory.IEligibleQuantity;
|
|
120
60
|
/**
|
|
121
61
|
* イベントに対するオファー
|
|
122
62
|
*/
|
|
@@ -218,61 +158,17 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
|
218
158
|
usePoint: number;
|
|
219
159
|
};
|
|
220
160
|
export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
|
|
221
|
-
export
|
|
222
|
-
/**
|
|
223
|
-
* 場所タイプ
|
|
224
|
-
*/
|
|
225
|
-
typeOf: PlaceType.ScreeningRoom;
|
|
226
|
-
/**
|
|
227
|
-
* ルームコード
|
|
228
|
-
*/
|
|
229
|
-
branchCode: string;
|
|
230
|
-
/**
|
|
231
|
-
* 場所名称
|
|
232
|
-
*/
|
|
233
|
-
name?: IMultilingualString;
|
|
234
|
-
alternateName?: IMultilingualString;
|
|
235
|
-
description?: IMultilingualString;
|
|
236
|
-
address?: IMultilingualString;
|
|
237
|
-
/**
|
|
238
|
-
* イベント固有のキャパシティ
|
|
239
|
-
* 施設のキャパシティに依存しない場合に使用
|
|
240
|
-
*/
|
|
241
|
-
maximumAttendeeCapacity?: number;
|
|
242
|
-
}
|
|
161
|
+
export import ILocation = AnyEventFactory.ILocation;
|
|
243
162
|
export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'eventStatus' | 'offers' | 'organizer'>;
|
|
244
|
-
export
|
|
163
|
+
export import IName = AnyEventFactory.IName;
|
|
245
164
|
/**
|
|
246
165
|
* イベント属性
|
|
247
166
|
*/
|
|
248
|
-
export interface IAttributes extends
|
|
167
|
+
export interface IAttributes extends Omit<AnyEventFactory.IAttributes, 'offers' | 'typeOf'> {
|
|
249
168
|
/**
|
|
250
169
|
* コンテンツ
|
|
251
170
|
*/
|
|
252
171
|
workPerformed?: IWorkPerformed;
|
|
253
|
-
/**
|
|
254
|
-
* 上映場所
|
|
255
|
-
*/
|
|
256
|
-
location: ILocation;
|
|
257
|
-
/**
|
|
258
|
-
* イベント名称
|
|
259
|
-
*/
|
|
260
|
-
name: IName;
|
|
261
|
-
/**
|
|
262
|
-
* 開場日時
|
|
263
|
-
* ISO 8601 date format
|
|
264
|
-
*/
|
|
265
|
-
doorTime?: Date;
|
|
266
|
-
/**
|
|
267
|
-
* 終了日時(
|
|
268
|
-
* ISO 8601 date format
|
|
269
|
-
*/
|
|
270
|
-
endDate: Date;
|
|
271
|
-
/**
|
|
272
|
-
* 開始日時
|
|
273
|
-
* ISO 8601 date format
|
|
274
|
-
*/
|
|
275
|
-
startDate: Date;
|
|
276
172
|
/**
|
|
277
173
|
* 親イベント
|
|
278
174
|
* 施設コンテンツに相当
|
|
@@ -282,44 +178,20 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
282
178
|
* 販売情報
|
|
283
179
|
*/
|
|
284
180
|
offers?: IOffer | IOffer4COA;
|
|
285
|
-
/**
|
|
286
|
-
* 発券数
|
|
287
|
-
*/
|
|
288
|
-
checkInCount?: Number;
|
|
289
|
-
/**
|
|
290
|
-
* 参加数
|
|
291
|
-
*/
|
|
292
|
-
attendeeCount?: Number;
|
|
293
|
-
/**
|
|
294
|
-
* 入場ゲート集計
|
|
295
|
-
*/
|
|
296
|
-
aggregateEntranceGate?: IAggregateEntranceGate;
|
|
297
|
-
/**
|
|
298
|
-
* 予約集計
|
|
299
|
-
*/
|
|
300
|
-
aggregateReservation?: IAggregateReservation;
|
|
301
|
-
/**
|
|
302
|
-
* オファー集計
|
|
303
|
-
*/
|
|
304
|
-
aggregateOffer?: IAggregateOffer;
|
|
305
181
|
/**
|
|
306
182
|
* その他COA情報
|
|
307
183
|
* 基本的にsskts対応
|
|
308
184
|
*/
|
|
309
185
|
coaInfo?: ICOAInfo;
|
|
186
|
+
typeOf: EventType.ScreeningEvent;
|
|
310
187
|
}
|
|
311
188
|
/**
|
|
312
189
|
* イベント
|
|
313
190
|
*/
|
|
314
191
|
export declare type IEvent = EventFactory.IEvent<IAttributes>;
|
|
315
|
-
export
|
|
192
|
+
export import ILocation4create = AnyEventFactory.ILocation4create;
|
|
193
|
+
export import ISeller4create = AnyEventFactory.ISeller4create;
|
|
316
194
|
export declare type ISuperEvent4create = Pick<ISuperEvent, 'id'>;
|
|
317
|
-
export declare type ISeller4create = Pick<ISeller, 'makesOffer'> & {
|
|
318
|
-
/**
|
|
319
|
-
* POS以外のアプリケーションの共通設定
|
|
320
|
-
*/
|
|
321
|
-
makesOfferDefault?: Pick<ISellerMakesOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'>;
|
|
322
|
-
};
|
|
323
195
|
export declare type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
|
|
324
196
|
/**
|
|
325
197
|
* 最大予約数を指定
|
package/lib/eventType.d.ts
CHANGED
package/lib/eventType.js
CHANGED
|
@@ -6,6 +6,7 @@ exports.EventType = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var EventType;
|
|
8
8
|
(function (EventType) {
|
|
9
|
+
EventType["Event"] = "Event";
|
|
9
10
|
EventType["ScreeningEvent"] = "ScreeningEvent";
|
|
10
11
|
EventType["ScreeningEventSeries"] = "ScreeningEventSeries";
|
|
11
12
|
})(EventType = exports.EventType || (exports.EventType = {}));
|
package/lib/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ import * as WebApplicationFactory from './creativeWork/softwareApplication/webAp
|
|
|
55
55
|
import { CreativeWorkType } from './creativeWorkType';
|
|
56
56
|
import * as CustomerFactory from './customer';
|
|
57
57
|
import * as EncodingFormat from './encodingFormat';
|
|
58
|
+
import * as AnyEventFactory from './event/anyEvent';
|
|
58
59
|
import * as ScreeningEventFactory from './event/screeningEvent';
|
|
59
60
|
import * as ScreeningEventSeriesFactory from './event/screeningEventSeries';
|
|
60
61
|
import { EventStatusType } from './eventStatusType';
|
|
@@ -101,6 +102,7 @@ import * as QualitativeValueFactory from './qualitativeValue';
|
|
|
101
102
|
import * as QuantitativeValueFactory from './quantitativeValue';
|
|
102
103
|
import * as AccountingReportFactory from './report/accountingReport';
|
|
103
104
|
import * as ReservationFactory from './reservation';
|
|
105
|
+
import * as BusReservationFactory from './reservation/busReservation';
|
|
104
106
|
import * as EventReservationFactory from './reservation/event';
|
|
105
107
|
import * as ReservationPackageFactory from './reservation/reservationPackage';
|
|
106
108
|
import { ReservationStatusType } from './reservationStatusType';
|
|
@@ -297,11 +299,12 @@ export declare namespace creativeWork {
|
|
|
297
299
|
export import creativeWorkType = CreativeWorkType;
|
|
298
300
|
export import customer = CustomerFactory;
|
|
299
301
|
export declare namespace event {
|
|
300
|
-
type ISearchConditions<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ISearchConditions : never;
|
|
301
|
-
type IAttributes<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IAttributes : never;
|
|
302
|
-
type IEvent<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IEvent : never;
|
|
303
|
-
type ICreateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : never;
|
|
304
|
-
type IUpdateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IUpdateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : never;
|
|
302
|
+
type ISearchConditions<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ISearchConditions : T extends EventType.Event ? AnyEventFactory.ISearchConditions : never;
|
|
303
|
+
type IAttributes<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IAttributes : T extends EventType.Event ? AnyEventFactory.IAttributes : never;
|
|
304
|
+
type IEvent<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IEvent : T extends EventType.Event ? AnyEventFactory.IEvent : never;
|
|
305
|
+
type ICreateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : T extends EventType.Event ? AnyEventFactory.ICreateParams : never;
|
|
306
|
+
type IUpdateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IUpdateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : T extends EventType.Event ? AnyEventFactory.IUpdateParams : never;
|
|
307
|
+
export import event = AnyEventFactory;
|
|
305
308
|
export import screeningEvent = ScreeningEventFactory;
|
|
306
309
|
export import screeningEventSeries = ScreeningEventSeriesFactory;
|
|
307
310
|
}
|
|
@@ -366,21 +369,26 @@ export declare namespace report {
|
|
|
366
369
|
export import accountingReport = AccountingReportFactory;
|
|
367
370
|
}
|
|
368
371
|
export declare namespace reservation {
|
|
372
|
+
export import busReservation = BusReservationFactory;
|
|
369
373
|
export import eventReservation = EventReservationFactory;
|
|
370
|
-
type IBroker<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IBroker : ReservationFactory.IBroker;
|
|
371
|
-
type IPriceSpecification<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IPriceSpecification : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IPriceSpecification : ReservationFactory.IPriceSpecification;
|
|
372
|
-
type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IProgramMembershipUsed : ReservationFactory.IProgramMembershipUsed;
|
|
373
|
-
type IReservationFor<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IReservationFor : T extends ReservationType.ReservationPackage ? ReservationFactory.IReservationFor : ReservationFactory.IReservationFor;
|
|
374
|
-
type IReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IReservation : ReservationFactory.IReservation<ReservationFactory.IPriceSpecification>;
|
|
375
|
-
type ISearchConditions<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISearchConditions : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISearchConditions : ReservationPackageFactory.ISearchConditions;
|
|
376
|
-
type ISortOrder<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
|
|
377
|
-
type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
|
|
378
|
-
type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
|
|
374
|
+
type IBroker<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.IBroker : T extends ReservationType.EventReservation ? ReservationFactory.IBroker : ReservationFactory.IBroker;
|
|
375
|
+
type IPriceSpecification<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.IPriceSpecification : T extends ReservationType.EventReservation ? EventReservationFactory.IPriceSpecification : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IPriceSpecification : ReservationFactory.IPriceSpecification;
|
|
376
|
+
type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.IProgramMembershipUsed : T extends ReservationType.EventReservation ? ReservationFactory.IProgramMembershipUsed : ReservationFactory.IProgramMembershipUsed;
|
|
377
|
+
type IReservationFor<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.IReservationFor : T extends ReservationType.EventReservation ? EventReservationFactory.IReservationFor : T extends ReservationType.ReservationPackage ? ReservationFactory.IReservationFor : ReservationFactory.IReservationFor;
|
|
378
|
+
type IReservation<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.IReservation : T extends ReservationType.EventReservation ? EventReservationFactory.IReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IReservation : ReservationFactory.IReservation<ReservationFactory.IPriceSpecification>;
|
|
379
|
+
type ISearchConditions<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.ISearchConditions : T extends ReservationType.EventReservation ? EventReservationFactory.ISearchConditions : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISearchConditions : ReservationPackageFactory.ISearchConditions;
|
|
380
|
+
type ISortOrder<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.ISortOrder : T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
|
|
381
|
+
type ISeat<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.ISeat : T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
|
|
382
|
+
type ISubReservation<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.ISubReservation : T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
|
|
379
383
|
export import ITicket = ReservationFactory.ITicket;
|
|
380
|
-
type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
|
|
381
|
-
type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketIssuedBy : ReservationFactory.ITicketIssuedBy;
|
|
382
|
-
type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
|
|
383
|
-
type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
|
|
384
|
+
type IUnderName<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.IUnderName : T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
|
|
385
|
+
type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.ITicketIssuedBy : T extends ReservationType.EventReservation ? ReservationFactory.ITicketIssuedBy : ReservationFactory.ITicketIssuedBy;
|
|
386
|
+
type TicketType<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.TicketType : T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
|
|
387
|
+
type ITicketType<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.ITicketType : T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
|
|
388
|
+
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
389
|
+
export import IServiceLocationContainedInPlace = ReservationFactory.IServiceLocationContainedInPlace;
|
|
390
|
+
export import IServiceLocation = ReservationFactory.IServiceLocation;
|
|
391
|
+
export import IServiceChannel = ReservationFactory.IServiceChannel;
|
|
384
392
|
}
|
|
385
393
|
export import reservationStatusType = ReservationStatusType;
|
|
386
394
|
export import reservationType = ReservationType;
|
package/lib/index.js
CHANGED
|
@@ -53,6 +53,7 @@ var WebApplicationFactory = require("./creativeWork/softwareApplication/webAppli
|
|
|
53
53
|
var creativeWorkType_1 = require("./creativeWorkType");
|
|
54
54
|
var CustomerFactory = require("./customer");
|
|
55
55
|
var EncodingFormat = require("./encodingFormat");
|
|
56
|
+
var AnyEventFactory = require("./event/anyEvent");
|
|
56
57
|
var ScreeningEventFactory = require("./event/screeningEvent");
|
|
57
58
|
var ScreeningEventSeriesFactory = require("./event/screeningEventSeries");
|
|
58
59
|
var eventStatusType_1 = require("./eventStatusType");
|
|
@@ -92,6 +93,7 @@ var PropertyValueFactory = require("./propertyValue");
|
|
|
92
93
|
var QualitativeValueFactory = require("./qualitativeValue");
|
|
93
94
|
var QuantitativeValueFactory = require("./quantitativeValue");
|
|
94
95
|
var AccountingReportFactory = require("./report/accountingReport");
|
|
96
|
+
var BusReservationFactory = require("./reservation/busReservation");
|
|
95
97
|
var EventReservationFactory = require("./reservation/event");
|
|
96
98
|
var reservationStatusType_1 = require("./reservationStatusType");
|
|
97
99
|
var reservationType_1 = require("./reservationType");
|
|
@@ -280,6 +282,8 @@ exports.creativeWorkType = creativeWorkType_1.CreativeWorkType;
|
|
|
280
282
|
exports.customer = CustomerFactory;
|
|
281
283
|
var event;
|
|
282
284
|
(function (event) {
|
|
285
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
286
|
+
event.event = AnyEventFactory;
|
|
283
287
|
event.screeningEvent = ScreeningEventFactory;
|
|
284
288
|
event.screeningEventSeries = ScreeningEventSeriesFactory;
|
|
285
289
|
})(event = exports.event || (exports.event = {}));
|
|
@@ -338,6 +342,7 @@ var report;
|
|
|
338
342
|
})(report = exports.report || (exports.report = {}));
|
|
339
343
|
var reservation;
|
|
340
344
|
(function (reservation) {
|
|
345
|
+
reservation.busReservation = BusReservationFactory;
|
|
341
346
|
reservation.eventReservation = EventReservationFactory;
|
|
342
347
|
})(reservation = exports.reservation || (exports.reservation = {}));
|
|
343
348
|
exports.reservationStatusType = reservationStatusType_1.ReservationStatusType;
|
package/lib/order.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './pr
|
|
|
21
21
|
import { IProduct, ProductType } from './product';
|
|
22
22
|
import { IPropertyValue } from './propertyValue';
|
|
23
23
|
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
24
|
+
import * as BusReservationFactory from './reservation/busReservation';
|
|
24
25
|
import * as EventReservationFactory from './reservation/event';
|
|
25
26
|
import { ReservationType } from './reservationType';
|
|
26
27
|
import { SortType } from './sortType';
|
|
@@ -90,16 +91,22 @@ export declare type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWork
|
|
|
90
91
|
export declare type ISuperEvent = Omit<EventReservationFactory.IOptimizedSuperEvent, 'workPerformed'> & {
|
|
91
92
|
workPerformed: IWorkPerformed;
|
|
92
93
|
};
|
|
93
|
-
export declare type
|
|
94
|
+
export declare type ITripAsReservationFor = BusReservationFactory.IReservationFor;
|
|
95
|
+
export declare type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
|
|
94
96
|
superEvent: ISuperEvent;
|
|
95
97
|
};
|
|
96
98
|
export declare type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
|
|
97
99
|
ticketType: ITicketType;
|
|
98
100
|
};
|
|
99
|
-
export declare type
|
|
100
|
-
reservationFor:
|
|
101
|
+
export declare type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'bookingTime' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'project' | 'reservationNumber' | 'typeOf'> & {
|
|
102
|
+
reservationFor: ITripAsReservationFor;
|
|
101
103
|
reservedTicket: IReservedTicket;
|
|
102
104
|
};
|
|
105
|
+
export declare type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'bookingTime' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'project' | 'reservationNumber' | 'typeOf'> & {
|
|
106
|
+
reservationFor: IEventAsReservationFor;
|
|
107
|
+
reservedTicket: IReservedTicket;
|
|
108
|
+
};
|
|
109
|
+
export declare type IReservation = IBusReservation | IEventReservation;
|
|
103
110
|
export declare type IPermit = Pick<PermitFactory.IPermit, 'amount' | 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
|
|
104
111
|
export interface IMoneyTransferPendingTransaction {
|
|
105
112
|
typeOf: AssetTransactionType.MoneyTransfer;
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -5,15 +5,31 @@ import { PersonType } from './personType';
|
|
|
5
5
|
import * as ProductFactory from './product';
|
|
6
6
|
import { IProject } from './project';
|
|
7
7
|
import { IPropertyValue } from './propertyValue';
|
|
8
|
+
import { IReservation as IBusReservation } from './reservation/busReservation';
|
|
8
9
|
import { IReservation as IEventReservation } from './reservation/event';
|
|
9
10
|
import { ReservationType } from './reservationType';
|
|
10
11
|
import * as WebAPIFactory from './service/webAPI';
|
|
11
12
|
import { SortType } from './sortType';
|
|
12
13
|
export declare type IBookingService = WebAPIFactory.IService<WebAPIFactory.Identifier>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export interface IBusReservationAsGood {
|
|
15
|
+
typeOf: ReservationType.BusReservation;
|
|
16
|
+
/**
|
|
17
|
+
* 予約ID
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
20
|
+
issuedThrough?: {
|
|
21
|
+
typeOf: ProductFactory.ProductType.Transportation;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 予約番号
|
|
25
|
+
*/
|
|
26
|
+
reservationNumber?: string;
|
|
27
|
+
/**
|
|
28
|
+
* ブッキングサービス(API)
|
|
29
|
+
*/
|
|
30
|
+
bookingService?: IBookingService;
|
|
31
|
+
}
|
|
32
|
+
export interface IEventReservationAsGood {
|
|
17
33
|
typeOf: ReservationType.EventReservation;
|
|
18
34
|
/**
|
|
19
35
|
* 予約ID
|
|
@@ -31,7 +47,11 @@ export interface IReservation {
|
|
|
31
47
|
*/
|
|
32
48
|
bookingService?: IBookingService;
|
|
33
49
|
}
|
|
34
|
-
|
|
50
|
+
/**
|
|
51
|
+
* 予約
|
|
52
|
+
*/
|
|
53
|
+
export declare type IReservation = IBusReservationAsGood | IEventReservationAsGood;
|
|
54
|
+
export declare type IReservationWithDetail = (IEventReservationAsGood & IEventReservation) | (IBusReservationAsGood & IBusReservation);
|
|
35
55
|
export declare type IPermit = Pick<PermitFactory.IPermit, 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
|
|
36
56
|
/**
|
|
37
57
|
* 所有対象物 (Product or Service)
|
package/lib/product.d.ts
CHANGED
package/lib/product.js
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
2
|
+
import { ProductType } from '../product';
|
|
3
|
+
import * as ReservationFactory from '../reservation';
|
|
4
|
+
import { ReservationStatusType } from '../reservationStatusType';
|
|
5
|
+
import { ReservationType } from '../reservationType';
|
|
6
|
+
import { ITrip as IBusTrip } from '../trip/busTrip';
|
|
7
|
+
export declare type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'>;
|
|
8
|
+
export declare type IPriceComponentSpecification = ITicketPriceComponent;
|
|
9
|
+
export declare type IPriceSpecification = ITicketPriceSpecification;
|
|
10
|
+
export interface ISubReservation {
|
|
11
|
+
reservedTicket: {
|
|
12
|
+
typeOf: ReservationFactory.TicketType;
|
|
13
|
+
ticketedSeat: ReservationFactory.ISeat;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
17
|
+
export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
|
|
18
|
+
typeOf: ProductType.Transportation;
|
|
19
|
+
serviceType?: IServiceTypeOfIssuedThrough;
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* イベント予約
|
|
24
|
+
*/
|
|
25
|
+
export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
|
|
26
|
+
id: string;
|
|
27
|
+
issuedThrough: IIssuedThrough;
|
|
28
|
+
reservationFor: IReservationFor;
|
|
29
|
+
reservationNumber: string;
|
|
30
|
+
reservationStatus: ReservationStatusType;
|
|
31
|
+
reservedTicket: ReservationFactory.ITicket;
|
|
32
|
+
subReservation?: ISubReservation[];
|
|
33
|
+
typeOf: ReservationType.BusReservation;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 検索条件
|
|
37
|
+
*/
|
|
38
|
+
export interface ISearchConditions extends ReservationFactory.ISearchConditions<ReservationType.BusReservation> {
|
|
39
|
+
}
|
|
@@ -2,6 +2,7 @@ import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent
|
|
|
2
2
|
import { EventType } from '../eventType';
|
|
3
3
|
import { IMultilingualString } from '../multilingualString';
|
|
4
4
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
5
|
+
import { ProductType } from '../product';
|
|
5
6
|
import * as ReservationFactory from '../reservation';
|
|
6
7
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
7
8
|
import { ReservationType } from '../reservationType';
|
|
@@ -39,7 +40,11 @@ export interface ISubReservation {
|
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
42
|
-
export
|
|
43
|
+
export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
|
|
44
|
+
typeOf: ProductType.EventService;
|
|
45
|
+
serviceType?: IServiceTypeOfIssuedThrough;
|
|
46
|
+
id: string;
|
|
47
|
+
}
|
|
43
48
|
/**
|
|
44
49
|
* イベント予約
|
|
45
50
|
*/
|
package/lib/reservation.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { OfferType } from './offerType';
|
|
|
6
6
|
import { OrganizationType } from './organizationType';
|
|
7
7
|
import { IPermit } from './permit';
|
|
8
8
|
import { PersonType } from './personType';
|
|
9
|
+
import * as MovieTheaterFactory from './place/movieTheater';
|
|
10
|
+
import * as ScreeningRoomFactory from './place/screeningRoom';
|
|
9
11
|
import * as SeatFactory from './place/seat';
|
|
10
12
|
import { PlaceType } from './placeType';
|
|
11
13
|
import { PriceCurrency } from './priceCurrency';
|
|
@@ -166,10 +168,22 @@ export interface IBroker {
|
|
|
166
168
|
}
|
|
167
169
|
export declare type IProgramMembershipUsed = IPermit;
|
|
168
170
|
export declare type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
171
|
+
export declare type IServiceLocationContainedInPlace = Pick<MovieTheaterFactory.IPlaceWithoutScreeningRoom, 'typeOf' | 'id' | 'branchCode'> & {
|
|
172
|
+
name?: IMultilingualString;
|
|
173
|
+
};
|
|
174
|
+
export declare type IServiceLocation = Pick<ScreeningRoomFactory.IPlace, 'typeOf' | 'branchCode'> & {
|
|
175
|
+
containedInPlace: IServiceLocationContainedInPlace;
|
|
176
|
+
name?: IMultilingualString;
|
|
177
|
+
};
|
|
178
|
+
export interface IServiceChannel {
|
|
179
|
+
typeOf: 'ServiceChannel';
|
|
180
|
+
serviceLocation: IServiceLocation;
|
|
181
|
+
}
|
|
169
182
|
export interface IIssuedThrough {
|
|
170
|
-
typeOf: ProductType.EventService;
|
|
183
|
+
typeOf: ProductType.Transportation | ProductType.EventService;
|
|
171
184
|
serviceType?: IServiceTypeOfIssuedThrough;
|
|
172
|
-
id
|
|
185
|
+
id: string;
|
|
186
|
+
availableChannel: IServiceChannel;
|
|
173
187
|
}
|
|
174
188
|
/**
|
|
175
189
|
* 予約
|
package/lib/reservationType.d.ts
CHANGED
package/lib/reservationType.js
CHANGED
|
@@ -6,6 +6,7 @@ exports.ReservationType = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var ReservationType;
|
|
8
8
|
(function (ReservationType) {
|
|
9
|
+
ReservationType["BusReservation"] = "BusReservation";
|
|
9
10
|
ReservationType["EventReservation"] = "EventReservation";
|
|
10
11
|
ReservationType["ReservationPackage"] = "ReservationPackage";
|
|
11
12
|
})(ReservationType = exports.ReservationType || (exports.ReservationType = {}));
|