@chevre/factory 5.4.0-alpha.8 → 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/creativeWork/movie.d.ts +1 -0
- 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
|
@@ -7,12 +7,11 @@ import { ProductType } from '../../product';
|
|
|
7
7
|
import { IAvailableReservationStatusType } from '../../reservation';
|
|
8
8
|
import { ReservationType } from '../../reservationType';
|
|
9
9
|
import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
10
|
-
import { TripType } from '../../tripType';
|
|
11
10
|
import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
|
|
12
11
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
13
12
|
export interface IReservationPackageAsObject {
|
|
14
13
|
reservationFor: {
|
|
15
|
-
typeOf: EventType.ScreeningEvent
|
|
14
|
+
typeOf: EventType.ScreeningEvent;
|
|
16
15
|
id: string;
|
|
17
16
|
};
|
|
18
17
|
reservationNumber: string;
|
|
@@ -22,22 +21,6 @@ export interface IReservationPackageAsObject {
|
|
|
22
21
|
reservationStatus: IAvailableReservationStatusType;
|
|
23
22
|
typeOf: ReservationType.ReservationPackage;
|
|
24
23
|
}
|
|
25
|
-
export interface IBusReservationAsObject {
|
|
26
|
-
id: string;
|
|
27
|
-
issuedThrough?: {
|
|
28
|
-
typeOf?: ProductType.Transportation;
|
|
29
|
-
};
|
|
30
|
-
reservationFor: {
|
|
31
|
-
typeOf: TripType.BusTrip;
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
|
-
reservationNumber: string;
|
|
35
|
-
/**
|
|
36
|
-
* previousReservationStatusを変更時に指定するために必要
|
|
37
|
-
*/
|
|
38
|
-
reservationStatus: IAvailableReservationStatusType;
|
|
39
|
-
typeOf: ReservationType.BusReservation;
|
|
40
|
-
}
|
|
41
24
|
export interface IEventReservationAsObject {
|
|
42
25
|
id: string;
|
|
43
26
|
issuedThrough?: {
|
|
@@ -54,7 +37,7 @@ export interface IEventReservationAsObject {
|
|
|
54
37
|
reservationStatus: IAvailableReservationStatusType;
|
|
55
38
|
typeOf: ReservationType.EventReservation;
|
|
56
39
|
}
|
|
57
|
-
export type IObject =
|
|
40
|
+
export type IObject = IEventReservationAsObject | IReservationPackageAsObject;
|
|
58
41
|
export interface IResult {
|
|
59
42
|
}
|
|
60
43
|
export interface IPurpose {
|
|
@@ -10,7 +10,7 @@ import { TransactionType } from '../../transactionType';
|
|
|
10
10
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject | ActionFactory.IParticipantAsWebApplication;
|
|
11
11
|
export type IObject = any;
|
|
12
12
|
export interface ITransactionPurpose {
|
|
13
|
-
typeOf: TransactionType.
|
|
13
|
+
typeOf: TransactionType.PlaceOrder;
|
|
14
14
|
id: string;
|
|
15
15
|
}
|
|
16
16
|
export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
|
|
@@ -13,7 +13,7 @@ import { IOfferCatalogAsNotification } from '../../notification/offerCatalog';
|
|
|
13
13
|
import { IOrder4inform } from '../../notification/order';
|
|
14
14
|
import { IPayAction4inform } from '../../notification/payAction';
|
|
15
15
|
import { IPersonAsNotification } from '../../notification/person';
|
|
16
|
-
import { IHasPOSAsNotification, IMovieTheaterAsNotification } from '../../notification/place';
|
|
16
|
+
import { IEntranceGateAsNotification, IHasPOSAsNotification, IMovieTheaterAsNotification, IRoomAsNotification } from '../../notification/place';
|
|
17
17
|
import { IProductAsNotification } from '../../notification/product';
|
|
18
18
|
import { IRefundAction4inform } from '../../notification/refundAction';
|
|
19
19
|
import { IReservation4inform } from '../../notification/reservation';
|
|
@@ -34,7 +34,10 @@ export type IRecipient = Pick<ActionFactory.IParticipantAsWebApplication, 'name'
|
|
|
34
34
|
id?: never;
|
|
35
35
|
url?: never;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
|
+
* 取引、タスク以外の通知対象リソース
|
|
39
|
+
*/
|
|
40
|
+
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IEntranceGateAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
38
41
|
export type IObject = IAnyResourceAsObject | IOrder4inform | IReservation4inform | IPayAction4inform | IRefundAction4inform | ITask4inform;
|
|
39
42
|
export interface IPayTransactionAsPurpose {
|
|
40
43
|
id: string;
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -3,13 +3,12 @@ import { ActionType } from '../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IOrder } from '../order';
|
|
5
5
|
import { IAvailableReservationStatusType } from '../reservation';
|
|
6
|
-
import { IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
6
|
import { IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
7
|
import { ReservationType } from '../reservationType';
|
|
9
8
|
import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
|
|
10
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
11
10
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
12
|
-
export type IReservationFor =
|
|
11
|
+
export type IReservationFor = Pick<IEventReservationFor, 'id' | 'typeOf'> & {
|
|
13
12
|
optimized: boolean;
|
|
14
13
|
};
|
|
15
14
|
export interface IObject {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
2
|
-
import { IAttributes as IEventSeriesAttributes } from '../../../event/screeningEventSeries';
|
|
3
2
|
import { EventType } from '../../../eventType';
|
|
4
3
|
import { OfferType } from '../../../offerType';
|
|
5
4
|
import { ProductType } from '../../../product';
|
|
@@ -14,15 +13,4 @@ export interface IObjectAsProduct {
|
|
|
14
13
|
export interface IObjectAsSingleResource {
|
|
15
14
|
typeOf: OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType;
|
|
16
15
|
}
|
|
17
|
-
export type
|
|
18
|
-
export interface IObjectAsEventBySchedule {
|
|
19
|
-
/**
|
|
20
|
-
* スケジュールを作成し始める日(Asia/Tokyoでこの日から作成される)
|
|
21
|
-
*/
|
|
22
|
-
startDate?: Date;
|
|
23
|
-
eventSchedule: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
typeOf: EventType.ScreeningEvent;
|
|
27
|
-
}
|
|
28
|
-
export type IObject = IObjectAsSingleResource | IObjectAsNote[] | IObjectAsProduct[] | IObjectAsEventSeriesAttributes[] | IObjectAsEventBySchedule;
|
|
16
|
+
export type IObject = IObjectAsSingleResource | IObjectAsNote[] | IObjectAsProduct[];
|
|
@@ -14,16 +14,7 @@ export interface IAddedObject {
|
|
|
14
14
|
typeOf: CreativeWorkType.NoteDigitalDocument | ProductType | OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType;
|
|
15
15
|
}
|
|
16
16
|
export type IResult = IAddedObject[];
|
|
17
|
-
export
|
|
18
|
-
typeOf: CreativeWorkType.WebApplication;
|
|
19
|
-
id: string;
|
|
20
|
-
createScreeningEventSeriesIfNotExistByWorkPerformed: true;
|
|
21
|
-
/**
|
|
22
|
-
* 全施設に施設コンテンツを作成するかどうか
|
|
23
|
-
*/
|
|
24
|
-
createScreeningEventSeriesOnAllLocation?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export type IInstrument = IInstrumentAsApplication | IInstrumentWithAddEventSeriesOption;
|
|
17
|
+
export type IInstrument = IInstrumentAsApplication;
|
|
27
18
|
export interface ITargetCollectionAsNote {
|
|
28
19
|
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
29
20
|
about: Pick<INoteAbout, 'typeOf'>;
|
|
@@ -12,7 +12,6 @@ import { IPlace as IMovieTheater } from '../../place/movieTheater';
|
|
|
12
12
|
import { IPlace as IRoom } from '../../place/screeningRoom';
|
|
13
13
|
import { IProduct } from '../../product';
|
|
14
14
|
import { ISeller } from '../../seller';
|
|
15
|
-
import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../../transaction/moneyTransfer';
|
|
16
15
|
import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
17
16
|
import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
|
|
18
17
|
import { TransactionType } from '../../transactionType';
|
|
@@ -53,10 +52,6 @@ export declare enum ObjectAsTransactionSpecifyingMethod {
|
|
|
53
52
|
Id = "Id",
|
|
54
53
|
AgentId = "AgentId"
|
|
55
54
|
}
|
|
56
|
-
export type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
57
|
-
object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
|
|
58
|
-
specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
|
|
59
|
-
};
|
|
60
55
|
export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
|
|
61
56
|
object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
|
|
62
57
|
specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
|
|
@@ -75,7 +70,7 @@ export interface IObjectAsTransactionByAgentId {
|
|
|
75
70
|
id: string;
|
|
76
71
|
};
|
|
77
72
|
}
|
|
78
|
-
export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo |
|
|
73
|
+
export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
|
|
79
74
|
export interface IResultAsPerson {
|
|
80
75
|
existingPeople?: any;
|
|
81
76
|
}
|
|
@@ -3,7 +3,6 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
3
3
|
import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
6
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
7
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
9
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
@@ -35,12 +34,9 @@ export interface IObjectWithoutDetail {
|
|
|
35
34
|
}
|
|
36
35
|
export type IReserveTransactionAsObject = Pick<IReserveTransaction, 'typeOf' | 'id' | 'transactionNumber'> & {
|
|
37
36
|
object: {
|
|
38
|
-
reservationFor: Pick<IEventReservationFor
|
|
37
|
+
reservationFor: Pick<IEventReservationFor, 'id' | 'typeOf'>;
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
|
-
export type IBusReservationAsObject = Pick<IBusReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
42
|
-
reservationFor: Pick<IBusReservationFor, 'id' | 'typeOf'>;
|
|
43
|
-
};
|
|
44
40
|
export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
45
41
|
reservationFor: Pick<IEventReservationFor, 'id' | 'typeOf'>;
|
|
46
42
|
};
|
|
@@ -49,7 +45,7 @@ export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedTh
|
|
|
49
45
|
*/
|
|
50
46
|
export interface IObject extends Pick<IReservationPackage, 'reservationNumber' | 'typeOf'> {
|
|
51
47
|
transaction?: IReserveTransactionAsObject;
|
|
52
|
-
reservations?:
|
|
48
|
+
reservations?: IEventReservationAsObject[];
|
|
53
49
|
/**
|
|
54
50
|
* 予約番号
|
|
55
51
|
*/
|
|
@@ -9,7 +9,6 @@ import { PermitType } from '../permit';
|
|
|
9
9
|
import { ProductType } from '../product';
|
|
10
10
|
import { IPropertyValue } from '../propertyValue';
|
|
11
11
|
import * as ReservationFactory from '../reservation';
|
|
12
|
-
import { IIssuedThrough as IBusReservationIssuedThrough, IReservation as IBusReservation, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
|
|
13
12
|
import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
14
13
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
15
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
@@ -88,33 +87,6 @@ export interface IAcceptedPointAward {
|
|
|
88
87
|
};
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
|
-
export interface IBusReservatonAsItemOfferedServiceOutput {
|
|
92
|
-
typeOf: ReservationType.BusReservation;
|
|
93
|
-
/**
|
|
94
|
-
* 追加特性
|
|
95
|
-
*/
|
|
96
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
97
|
-
/**
|
|
98
|
-
* 予約追加テキスト
|
|
99
|
-
*/
|
|
100
|
-
additionalTicketText?: string;
|
|
101
|
-
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
102
|
-
reservedTicket?: {
|
|
103
|
-
/**
|
|
104
|
-
* チケット識別子
|
|
105
|
-
* 指定された場合、決済カードの対象チケット識別子と関連付けされます
|
|
106
|
-
* /^[0-9a-zA-Z]{8,16}$/
|
|
107
|
-
*/
|
|
108
|
-
identifier?: string;
|
|
109
|
-
issuedBy?: ReservationFactory.IUnderName;
|
|
110
|
-
typeOf: ReservationFactory.TicketType;
|
|
111
|
-
/**
|
|
112
|
-
* 座席指定
|
|
113
|
-
*/
|
|
114
|
-
ticketedSeat?: ReservationFactory.ISeat;
|
|
115
|
-
};
|
|
116
|
-
subReservation?: IAcceptedSubReservation[];
|
|
117
|
-
}
|
|
118
90
|
export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
119
91
|
typeOf: ReservationType.EventReservation;
|
|
120
92
|
/**
|
|
@@ -142,7 +114,7 @@ export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
|
142
114
|
};
|
|
143
115
|
subReservation?: IAcceptedSubReservation[];
|
|
144
116
|
}
|
|
145
|
-
export type IItemOfferedServiceOutput =
|
|
117
|
+
export type IItemOfferedServiceOutput = IEventReservatonAsItemOfferedServiceOutput;
|
|
146
118
|
/**
|
|
147
119
|
* 受け入れられたオファーのアイテム
|
|
148
120
|
*/
|
|
@@ -325,11 +297,10 @@ export interface IObjectWithoutDetail {
|
|
|
325
297
|
};
|
|
326
298
|
};
|
|
327
299
|
}
|
|
328
|
-
export type IReservationFor =
|
|
329
|
-
export type IBusReservationAsSubReservation = Pick<IBusReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'price' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
|
|
300
|
+
export type IReservationFor = IEventReservationReservationFor;
|
|
330
301
|
export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'price' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
|
|
331
|
-
export type IObjectSubReservation =
|
|
332
|
-
export type IIssuedThrough =
|
|
302
|
+
export type IObjectSubReservation = IEventReservationAsSubReservation;
|
|
303
|
+
export type IIssuedThrough = IEventReservationIssuedThrough;
|
|
333
304
|
export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
|
|
334
305
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
335
306
|
issuedThrough?: IIssuedThrough;
|
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -57,19 +57,6 @@ export interface IAggregateOfferOfPlace {
|
|
|
57
57
|
aggregateReservation?: Pick<IAggregateReservation, 'typeOf' | 'useActionCount'>;
|
|
58
58
|
}[];
|
|
59
59
|
}
|
|
60
|
-
export interface IPlaceWithAggregateOffer {
|
|
61
|
-
typeOf: PlaceType;
|
|
62
|
-
identifier?: string;
|
|
63
|
-
aggregateOffer?: IAggregateOfferOfPlace;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* 入場ゲート集計
|
|
67
|
-
*/
|
|
68
|
-
export interface IAggregateEntranceGate {
|
|
69
|
-
typeOf: PlaceType.AggregatePlace;
|
|
70
|
-
aggregateDate: Date;
|
|
71
|
-
places: IPlaceWithAggregateOffer[];
|
|
72
|
-
}
|
|
73
60
|
export type IServiceType = IProductServiceType & {
|
|
74
61
|
id?: string;
|
|
75
62
|
};
|
|
@@ -12,7 +12,6 @@ import * as AnyEventFactory from './anyEvent';
|
|
|
12
12
|
export import IAggregateReservation = AnyEventFactory.IAggregateReservation;
|
|
13
13
|
export import IOfferWithAggregateReservation = AnyEventFactory.IOfferWithAggregateReservation;
|
|
14
14
|
export import IAggregateOffer = AnyEventFactory.IAggregateOffer;
|
|
15
|
-
export import IAggregateEntranceGate = AnyEventFactory.IAggregateEntranceGate;
|
|
16
15
|
export import IOfferAvailableAtOrFrom = AnyEventFactory.IOfferAvailableAtOrFrom;
|
|
17
16
|
export import IEventOfferForMemberTier = AnyEventFactory.IEventOfferForMemberTier;
|
|
18
17
|
export import ISellerMakesOffer = AnyEventFactory.ISellerMakesOffer;
|
|
@@ -142,7 +141,7 @@ export type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
|
142
141
|
usePoint: number;
|
|
143
142
|
};
|
|
144
143
|
export import ILocation = AnyEventFactory.ILocation;
|
|
145
|
-
export type ISuperEvent = Pick<IEventSeries, 'typeOf' | 'id' | '
|
|
144
|
+
export type ISuperEvent = Pick<IEventSeries, 'typeOf' | 'id' | 'soundFormat' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
146
145
|
startDate?: Date;
|
|
147
146
|
endDate?: Date;
|
|
148
147
|
};
|
|
@@ -179,9 +178,9 @@ export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod' | 'identifie
|
|
|
179
178
|
*/
|
|
180
179
|
eligibleQuantity: Pick<IEligibleQuantity, 'maxValue'>;
|
|
181
180
|
/**
|
|
182
|
-
* 興行ID
|
|
181
|
+
* 興行ID
|
|
183
182
|
*/
|
|
184
|
-
itemOffered: Pick<IItemOffered, 'id'
|
|
183
|
+
itemOffered: Pick<IItemOffered, 'id'>;
|
|
185
184
|
/**
|
|
186
185
|
* アプリケーション設定
|
|
187
186
|
*/
|
|
@@ -33,6 +33,23 @@ export interface ISoundFormat {
|
|
|
33
33
|
typeOf: string;
|
|
34
34
|
name: string;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* サブイベント
|
|
38
|
+
* 施設コンテンツに所属するScreeningEventの属性など
|
|
39
|
+
*/
|
|
40
|
+
export interface ISubEvent {
|
|
41
|
+
typeOf: EventType.ScreeningEvent;
|
|
42
|
+
/**
|
|
43
|
+
* 上映方式区分コードリスト
|
|
44
|
+
*/
|
|
45
|
+
videoFormat?: string[];
|
|
46
|
+
}
|
|
47
|
+
export interface IOrganizer {
|
|
48
|
+
/**
|
|
49
|
+
* 販売者ID
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
}
|
|
36
53
|
/**
|
|
37
54
|
* コンテンツ
|
|
38
55
|
* contentRatingはCOAのみ存在
|
|
@@ -101,15 +118,12 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
101
118
|
* 吹替利用可能言語
|
|
102
119
|
*/
|
|
103
120
|
dubLanguage?: ILanguage;
|
|
104
|
-
|
|
105
|
-
* 上映方式
|
|
106
|
-
* discontinue ICOAKubun(2024-09-18~)
|
|
107
|
-
*/
|
|
108
|
-
videoFormat: IVideoFormat[];
|
|
121
|
+
videoFormat?: never;
|
|
109
122
|
/**
|
|
110
123
|
* 音響方式
|
|
111
124
|
*/
|
|
112
|
-
soundFormat
|
|
125
|
+
soundFormat?: ISoundFormat[];
|
|
126
|
+
subEvent?: ISubEvent;
|
|
113
127
|
/**
|
|
114
128
|
* コンテンツ
|
|
115
129
|
*/
|
|
@@ -150,23 +164,20 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
150
164
|
* 施設コンテンツ
|
|
151
165
|
*/
|
|
152
166
|
export type IEvent = EventFactory.IEvent<IAttributes>;
|
|
167
|
+
/**
|
|
168
|
+
* 施設コンテンツ追加時の利用不可決済方法区分指定
|
|
169
|
+
* offerType:AggregateOfferの場合、指定は無視される
|
|
170
|
+
*/
|
|
153
171
|
export type IOffers4create = Pick<ISingleOffer, 'unacceptedPaymentMethod'> & {
|
|
154
172
|
typeOf?: never;
|
|
155
|
-
} | Pick<IAggregateOffer, 'typeOf'> & {
|
|
156
|
-
unacceptedPaymentMethod?: never;
|
|
157
173
|
};
|
|
158
174
|
/**
|
|
159
175
|
* 施設コンテンツ作成パラメータ
|
|
160
176
|
*/
|
|
161
|
-
export type ICreateParams = Pick<IAttributes, '
|
|
177
|
+
export type ICreateParams = Pick<IAttributes, 'name' | 'duration' | 'endDate' | 'headline' | 'startDate' | 'additionalProperty' | 'kanaName' | 'description'> & {
|
|
162
178
|
subtitleLanguage?: Pick<ILanguage, 'name'>;
|
|
163
179
|
dubLanguage?: Pick<ILanguage, 'name'>;
|
|
164
|
-
location
|
|
165
|
-
/**
|
|
166
|
-
* 施設ID
|
|
167
|
-
*/
|
|
168
|
-
id: string;
|
|
169
|
-
};
|
|
180
|
+
location?: never;
|
|
170
181
|
offers?: IOffers4create;
|
|
171
182
|
workPerformed: {
|
|
172
183
|
/**
|
|
@@ -175,9 +186,9 @@ export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | '
|
|
|
175
186
|
identifier: string;
|
|
176
187
|
/**
|
|
177
188
|
* 同コンテンツに対する複数施設コンテンツのバージョン
|
|
178
|
-
*
|
|
189
|
+
* 施設+コンテンツ+バージョンでuniqueな想定
|
|
179
190
|
*/
|
|
180
|
-
version
|
|
191
|
+
version: string;
|
|
181
192
|
};
|
|
182
193
|
videoFormat: {
|
|
183
194
|
/**
|