@chevre/factory 5.4.0-alpha.2 → 5.4.0-alpha.20

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.
@@ -1,5 +1,5 @@
1
1
  import * as ActionFactory from '../../action';
2
- import { IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
2
+ import { IAcceptedPaymentMethodOfferAsInstrument, IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
3
3
  import { ActionType } from '../../actionType';
4
4
  import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
@@ -30,7 +30,7 @@ export interface IPurpose {
30
30
  typeOf: TransactionType.PlaceOrder;
31
31
  id: string;
32
32
  }
33
- export type IInstrument = IPaymentMethodTicketAsInstrument;
33
+ export type IInstrument = IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
34
34
  /**
35
35
  * 決済採用アクション属性
36
36
  */
@@ -132,6 +132,10 @@ export type IAuthorizePaymentCardObject = Pick<IObjectIncludingPaymentMethodDeta
132
132
  * 決済承認リクエストの承認対象オブジェクト
133
133
  */
134
134
  export type IObjectWithoutDetail = IAuthorizeAnyPaymentObject | IAuthorizeCreditCardObject | IAuthorizeMovieTicketObject | IAuthorizePaymentCardObject;
135
+ /**
136
+ * 決済承認アクションオブジェクト
137
+ * paymentMethodIdが決済取引の取引番号に等しい
138
+ */
135
139
  export type IObject = Pick<IObjectIncludingPaymentMethodDetails, 'typeOf' | 'paymentMethodId' | 'accountId'>;
136
140
  export interface IResultPaymentMethod {
137
141
  /**
@@ -205,10 +209,14 @@ export interface IInstrumentAsAssetTransaction {
205
209
  identifier: ServiceIdentifier;
206
210
  }
207
211
  export type IInstrument = IInstrumentAsAssetTransaction;
208
- export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
212
+ export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'identifier' | 'error' | 'agent'> {
209
213
  typeOf: ActionType.AuthorizeAction;
210
214
  object: IObject;
211
215
  agent: IAgent;
216
+ /**
217
+ * 決済取引としてのinstrument
218
+ * @deprecated object.paymentMethodIdに依存すること
219
+ */
212
220
  instrument: IInstrument;
213
221
  recipient: IRecipient;
214
222
  purpose: IPurpose;
@@ -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 { 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,7 @@ export type IRecipient = Pick<ActionFactory.IParticipantAsWebApplication, 'name'
34
34
  id?: never;
35
35
  url?: never;
36
36
  };
37
- export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
37
+ export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
38
38
  export type IObject = IAnyResourceAsObject | IOrder4inform | IReservation4inform | IPayAction4inform | IRefundAction4inform | ITask4inform;
39
39
  export interface IPayTransactionAsPurpose {
40
40
  id: string;
@@ -5,6 +5,7 @@ import { ActionType } from '../../actionType';
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
6
6
  import { CreativeWorkType } from '../../creativeWorkType';
7
7
  import { IPaymentServiceOutput } from '../../invoice';
8
+ import { OfferType } from '../../offerType';
8
9
  import { IOrder, ITotalPaymentDue, OrderType } from '../../order';
9
10
  import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
10
11
  import { IPropertyValue } from '../../propertyValue';
@@ -118,16 +119,26 @@ export interface IPayTransactionAsInstrument {
118
119
  }
119
120
  export type IRefundActionAsInstrument = Pick<IRefundAction, 'id' | 'typeOf'>;
120
121
  /**
121
- * 決済方法チケット
122
+ * ツールとしての決済方法チケット
122
123
  */
123
124
  export interface IPaymentMethodTicketAsInstrument {
124
125
  ticketToken: string;
125
126
  typeOf: 'Ticket';
126
127
  }
128
+ /**
129
+ * ツールとしての対応決済方法オファー
130
+ */
131
+ export interface IAcceptedPaymentMethodOfferAsInstrument {
132
+ /**
133
+ * 対応決済方法オファーID
134
+ */
135
+ id: string;
136
+ typeOf: OfferType.Offer;
137
+ }
127
138
  /**
128
139
  * 注文時の決済アクションツール
129
140
  */
130
- export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument;
141
+ export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
131
142
  /**
132
143
  * 注文返品時の決済アクションツール
133
144
  */
@@ -87,6 +87,7 @@ export interface ISearchConditions {
87
87
  identifier?: string | {
88
88
  $eq?: string;
89
89
  $in?: string[];
90
+ $regex?: string;
90
91
  };
91
92
  name?: string;
92
93
  datePublishedFrom?: Date;
@@ -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' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
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
  };
@@ -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のみ存在
@@ -109,7 +126,8 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
109
126
  /**
110
127
  * 音響方式
111
128
  */
112
- soundFormat: ISoundFormat[];
129
+ soundFormat?: ISoundFormat[];
130
+ subEvent?: ISubEvent;
113
131
  /**
114
132
  * コンテンツ
115
133
  */
package/lib/index.d.ts CHANGED
@@ -86,6 +86,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
86
86
  import * as MovieTicketTypeFactory from './movieTicketType';
87
87
  import { IMultilingualString } from './multilingualString';
88
88
  import * as OfferFactory from './offer';
89
+ import * as AcceptedPaymentMethodOfferFactory from './offer/acceptedPaymentMethod';
89
90
  import * as AggregateOfferFactory from './offer/aggregateOffer';
90
91
  import * as EventOfferFactory from './offer/eventOffer';
91
92
  import * as ProductOfferFactory from './offer/productOffer';
@@ -105,6 +106,7 @@ import * as PermitFactory from './permit';
105
106
  import * as PersonFactory from './person';
106
107
  import { PersonType } from './personType';
107
108
  import * as BusStopFactory from './place/busStop';
109
+ import * as EntranceGateFactory from './place/entranceGate';
108
110
  import * as MovieTheaterPlaceFactory from './place/movieTheater';
109
111
  import * as ScreeningRoomPlaceFactory from './place/screeningRoom';
110
112
  import * as ScreeningRoomSectionPlaceFactory from './place/screeningRoomSection';
@@ -197,6 +199,7 @@ import * as OnAssetTransactionStatusChangedTaskFactory from './task/onAssetTrans
197
199
  import * as OnAuthorizationCreatedTaskFactory from './task/onAuthorizationCreated';
198
200
  import * as OnEventChangedTaskFactory from './task/onEventChanged';
199
201
  import * as OnOrderPaymentCompletedTaskFactory from './task/onOrderPaymentCompleted';
202
+ import * as OnResourceDeletedTaskFactory from './task/onResourceDeleted';
200
203
  import * as OnResourceUpdatedTaskFactory from './task/onResourceUpdated';
201
204
  import * as PayTaskFactory from './task/pay';
202
205
  import * as PlaceOrderTaskFactory from './task/placeOrder';
@@ -211,6 +214,7 @@ import * as ReturnPointAwardTaskFactory from './task/returnPointAward';
211
214
  import * as ReturnReserveTransactionTaskFactory from './task/returnReserveTransaction';
212
215
  import * as SendEmailMessageTaskFactory from './task/sendEmailMessage';
213
216
  import * as SendOrderTaskFactory from './task/sendOrder';
217
+ import * as SyncResourcesFromCOATaskFactory from './task/syncResourcesFromCOA';
214
218
  import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
215
219
  import * as UseReservationTaskFactory from './task/useReservation';
216
220
  import * as VoidMoneyTransferTransactionTaskFactory from './task/voidMoneyTransferTransaction';
@@ -238,6 +242,7 @@ import { ErrorCode } from './errorCode';
238
242
  import * as errors from './errors';
239
243
  export import errors = errors;
240
244
  export import errorCode = ErrorCode;
245
+ export import acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
241
246
  export import account = AccountFactory;
242
247
  export import actionStatusType = ActionStatusType;
243
248
  export import actionType = ActionType;
@@ -448,6 +453,7 @@ export import personType = PersonType;
448
453
  export import priceCurrency = PriceCurrency;
449
454
  export declare namespace place {
450
455
  export import busStop = BusStopFactory;
456
+ export import entranceGate = EntranceGateFactory;
451
457
  export import movieTheater = MovieTheaterPlaceFactory;
452
458
  export import screeningRoom = ScreeningRoomPlaceFactory;
453
459
  export import screeningRoomSection = ScreeningRoomSectionPlaceFactory;
@@ -517,9 +523,9 @@ export import schedule = ScheduleFactory;
517
523
  export import seller = SellerFactory;
518
524
  export import sellerReturnPolicy = SellerReturnPolicyFactory;
519
525
  export declare namespace task {
520
- type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
521
- type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IAttributes : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IAttributes : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.IAttributes : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.IAttributes;
522
- type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateEvent ? CreateEventTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
526
+ type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
527
+ type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IAttributes : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IAttributes : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.IAttributes : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IAttributes : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.IAttributes : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.IAttributes;
528
+ type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateEvent ? CreateEventTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
523
529
  export import ISearchConditions = TaskFactory.ISearchConditions;
524
530
  export import IExecutionResult = TaskFactory.IExecutionResult;
525
531
  export import acceptCOAOffer = AcceptCOAOfferTaskFactory;
@@ -549,11 +555,13 @@ export declare namespace task {
549
555
  export import registerService = RegisterServiceTaskFactory;
550
556
  export import reserve = ReserveTaskFactory;
551
557
  export import sendEmailMessage = SendEmailMessageTaskFactory;
558
+ export import syncResourcesFromCOA = SyncResourcesFromCOATaskFactory;
552
559
  export import triggerWebhook = TriggerWebhookTaskFactory;
553
560
  export import useReservation = UseReservationTaskFactory;
554
561
  export import voidPayment = VoidPaymentTaskFactory;
555
562
  export import onAuthorizationCreated = OnAuthorizationCreatedTaskFactory;
556
563
  export import onEventChanged = OnEventChangedTaskFactory;
564
+ export import onResourceDeleted = OnResourceDeletedTaskFactory;
557
565
  export import onResourceUpdated = OnResourceUpdatedTaskFactory;
558
566
  export import accountMoneyTransfer = AccountMoneyTransferTaskFactory;
559
567
  export import cancelAccountMoneyTransfer = CancelAccountMoneyTransferTaskFactory;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = void 0;
3
+ exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.acceptedPaymentMethodOffer = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -86,6 +86,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
86
86
  var MonetaryAmountFactory = require("./monetaryAmount");
87
87
  var MovieTicketTypeFactory = require("./movieTicketType");
88
88
  var OfferFactory = require("./offer");
89
+ var AcceptedPaymentMethodOfferFactory = require("./offer/acceptedPaymentMethod");
89
90
  var AggregateOfferFactory = require("./offer/aggregateOffer");
90
91
  var EventOfferFactory = require("./offer/eventOffer");
91
92
  var ProductOfferFactory = require("./offer/productOffer");
@@ -104,6 +105,7 @@ var PermitFactory = require("./permit");
104
105
  var PersonFactory = require("./person");
105
106
  var personType_1 = require("./personType");
106
107
  var BusStopFactory = require("./place/busStop");
108
+ var EntranceGateFactory = require("./place/entranceGate");
107
109
  var MovieTheaterPlaceFactory = require("./place/movieTheater");
108
110
  var ScreeningRoomPlaceFactory = require("./place/screeningRoom");
109
111
  var ScreeningRoomSectionPlaceFactory = require("./place/screeningRoomSection");
@@ -184,6 +186,7 @@ var InvalidatePaymentUrlTaskFactory = require("./task/invalidatePaymentUrl");
184
186
  var MoneyTransferTaskFactory = require("./task/moneyTransfer");
185
187
  var OnAuthorizationCreatedTaskFactory = require("./task/onAuthorizationCreated");
186
188
  var OnEventChangedTaskFactory = require("./task/onEventChanged");
189
+ var OnResourceDeletedTaskFactory = require("./task/onResourceDeleted");
187
190
  var OnResourceUpdatedTaskFactory = require("./task/onResourceUpdated");
188
191
  var PayTaskFactory = require("./task/pay");
189
192
  var PublishPaymentUrlTaskFactory = require("./task/publishPaymentUrl");
@@ -191,6 +194,7 @@ var RefundTaskFactory = require("./task/refund");
191
194
  var RegisterServiceTaskFactory = require("./task/registerService");
192
195
  var ReserveTaskFactory = require("./task/reserve");
193
196
  var SendEmailMessageTaskFactory = require("./task/sendEmailMessage");
197
+ var SyncResourcesFromCOATaskFactory = require("./task/syncResourcesFromCOA");
194
198
  var TriggerWebhookTaskFactory = require("./task/triggerWebhook");
195
199
  var UseReservationTaskFactory = require("./task/useReservation");
196
200
  var VoidPaymentTaskFactory = require("./task/voidPayment");
@@ -212,6 +216,7 @@ var errorCode_1 = require("./errorCode");
212
216
  var errors = require("./errors");
213
217
  exports.errors = errors;
214
218
  exports.errorCode = errorCode_1.ErrorCode;
219
+ exports.acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
215
220
  exports.account = AccountFactory;
216
221
  exports.actionStatusType = actionStatusType_1.ActionStatusType;
217
222
  exports.actionType = actionType_1.ActionType;
@@ -477,6 +482,7 @@ exports.priceCurrency = priceCurrency_1.PriceCurrency;
477
482
  var place;
478
483
  (function (place) {
479
484
  place.busStop = BusStopFactory;
485
+ place.entranceGate = EntranceGateFactory;
480
486
  place.movieTheater = MovieTheaterPlaceFactory;
481
487
  place.screeningRoom = ScreeningRoomPlaceFactory;
482
488
  place.screeningRoomSection = ScreeningRoomSectionPlaceFactory;
@@ -548,11 +554,13 @@ var task;
548
554
  task.registerService = RegisterServiceTaskFactory;
549
555
  task.reserve = ReserveTaskFactory;
550
556
  task.sendEmailMessage = SendEmailMessageTaskFactory;
557
+ task.syncResourcesFromCOA = SyncResourcesFromCOATaskFactory;
551
558
  task.triggerWebhook = TriggerWebhookTaskFactory;
552
559
  task.useReservation = UseReservationTaskFactory;
553
560
  task.voidPayment = VoidPaymentTaskFactory;
554
561
  task.onAuthorizationCreated = OnAuthorizationCreatedTaskFactory;
555
562
  task.onEventChanged = OnEventChangedTaskFactory;
563
+ task.onResourceDeleted = OnResourceDeletedTaskFactory;
556
564
  task.onResourceUpdated = OnResourceUpdatedTaskFactory;
557
565
  task.accountMoneyTransfer = AccountMoneyTransferTaskFactory;
558
566
  task.cancelAccountMoneyTransfer = CancelAccountMoneyTransferTaskFactory;
@@ -4,6 +4,27 @@ export type IHasPOSAsNotification = Pick<IMovieTheater, 'id' | 'typeOf'> & {
4
4
  hasPOS: IPOS[];
5
5
  };
6
6
  export type IContainsPlace = Pick<IScreeningRoom, 'branchCode' | 'name' | 'typeOf' | 'additionalProperty' | 'address'>;
7
+ /**
8
+ * ルーム通知
9
+ */
10
+ export type IRoomAsNotification = IContainsPlace & {
11
+ /**
12
+ * 施設IDとルームコードで一意性を担保するので、現時点でルームIDは通知しない(2026-01-16~)
13
+ */
14
+ id?: never;
15
+ containedInPlace: {
16
+ /**
17
+ * 施設ID
18
+ */
19
+ id: string;
20
+ };
21
+ project: {
22
+ id: string;
23
+ };
24
+ };
25
+ /**
26
+ * 施設通知
27
+ */
7
28
  export type IMovieTheaterAsNotification = Pick<IMovieTheater, 'id' | 'additionalProperty' | 'branchCode' | 'hasEntranceGate' | 'kanaName' | 'name' | 'parentOrganization' | 'project' | 'telephone' | 'url' | 'typeOf'> & {
8
- containsPlace: IContainsPlace[];
29
+ containsPlace?: never;
9
30
  };
@@ -0,0 +1,111 @@
1
+ import { EventType } from '../eventType';
2
+ import { IOffer } from '../offer';
3
+ import { OfferType } from '../offerType';
4
+ import { OrganizationType } from '../organizationType';
5
+ import { PaymentServiceType } from '../service/paymentService';
6
+ import { SortType } from '../sortType';
7
+ interface ISeller {
8
+ id: string;
9
+ typeOf: OrganizationType.Corporation;
10
+ }
11
+ interface IAcceptedPaymentMethod {
12
+ typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
13
+ /**
14
+ * 決済サービスID
15
+ */
16
+ id: string;
17
+ }
18
+ /**
19
+ * 対応決済方法オファー
20
+ */
21
+ interface IAcceptedPaymentMethodOffer extends Pick<IOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
22
+ project: {
23
+ id: string;
24
+ typeOf: OrganizationType.Project;
25
+ };
26
+ seller: ISeller;
27
+ typeOf: OfferType.Offer;
28
+ /**
29
+ * いつから承認可能か
30
+ */
31
+ validFrom: Date;
32
+ /**
33
+ * いつまで承認可能か
34
+ */
35
+ validThrough: Date;
36
+ id: string;
37
+ /**
38
+ * オファーコード
39
+ * 提供リソースID内でユニーク必須
40
+ */
41
+ identifier: string;
42
+ /**
43
+ * オファーの提供リソース
44
+ */
45
+ itemOffered: {
46
+ /**
47
+ * リソースID
48
+ */
49
+ id: string;
50
+ typeOf: EventType.ScreeningEventSeries;
51
+ };
52
+ /**
53
+ * 対応決済方法
54
+ */
55
+ acceptedPaymentMethod: IAcceptedPaymentMethod;
56
+ }
57
+ interface ISearchConditions {
58
+ limit?: number;
59
+ page?: number;
60
+ sort?: {
61
+ validFrom?: SortType;
62
+ };
63
+ project?: {
64
+ id?: {
65
+ $eq?: string;
66
+ };
67
+ };
68
+ id?: {
69
+ $eq?: string;
70
+ $in?: string[];
71
+ };
72
+ /**
73
+ * オファーコード
74
+ */
75
+ identifier?: {
76
+ $eq?: string;
77
+ $in?: string[];
78
+ };
79
+ itemOffered?: {
80
+ /**
81
+ * 提供リソースID
82
+ */
83
+ id?: {
84
+ $eq?: string;
85
+ $in?: string[];
86
+ };
87
+ };
88
+ acceptedPaymentMethod?: {
89
+ /**
90
+ * 決済サービスID
91
+ */
92
+ id?: {
93
+ $eq?: string;
94
+ };
95
+ };
96
+ seller?: {
97
+ /**
98
+ * 提供販売者ID
99
+ */
100
+ id?: {
101
+ $eq?: string;
102
+ };
103
+ };
104
+ validFrom?: {
105
+ $lte?: Date;
106
+ };
107
+ validThrough?: {
108
+ $gte?: Date;
109
+ };
110
+ }
111
+ export { IAcceptedPaymentMethodOffer, ISearchConditions };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,6 +15,10 @@ interface ISeller {
15
15
  }
16
16
  /**
17
17
  * 拡張可能なイベントオファー
18
+ * イベント(itemOffered)とアプリケーション(availableAtOrFrom)に対して有効期間を明確に定義する
19
+ * イベントIF内にもアプリケーションごとのオファー定義(makesOffer)が存在するが、そちらとのAND条件として検証される
20
+ * オファーコードはプロジェクトが任意に定義する(ただし、イベントID内でユニーク)
21
+ * 有効期間外のオファーは予告なく自動的に削除される
18
22
  */
19
23
  interface IEventOffer extends Pick<IOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
20
24
  project: {
@@ -89,7 +93,7 @@ interface ISearchConditions {
89
93
  };
90
94
  itemOffered?: {
91
95
  /**
92
- * オファーコレクションコード
96
+ * イベントID
93
97
  */
94
98
  id?: {
95
99
  $eq?: string;
package/lib/order.d.ts CHANGED
@@ -88,7 +88,7 @@ export interface IReferencedInvoice {
88
88
  referencesOrder?: never;
89
89
  }
90
90
  export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
91
- export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
91
+ export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
92
92
  workPerformed: IWorkPerformed;
93
93
  };
94
94
  export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
@@ -0,0 +1,28 @@
1
+ import * as PlaceFactory from '../place';
2
+ import { PlaceType } from '../placeType';
3
+ /**
4
+ * 入場ゲート
5
+ */
6
+ export type IEntranceGate = Pick<PlaceFactory.IPlace, 'typeOf' | 'identifier' | 'name'> & {
7
+ typeOf: PlaceType.Place;
8
+ identifier: string;
9
+ };
10
+ /**
11
+ * 入場ゲート検索条件
12
+ */
13
+ export interface ISearchConditions {
14
+ limit?: number;
15
+ page?: number;
16
+ /**
17
+ * プロジェクト
18
+ */
19
+ project?: {
20
+ id?: {
21
+ $eq?: string;
22
+ };
23
+ };
24
+ identifier?: {
25
+ $eq?: string;
26
+ $in?: string[];
27
+ };
28
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,7 @@ import { IQuantitativeValue } from '../quantitativeValue';
6
6
  import { ISeller } from '../seller';
7
7
  import { SortType } from '../sortType';
8
8
  import { UnitCode } from '../unitCode';
9
+ import { IEntranceGate } from './entranceGate';
9
10
  export interface IAvailabilityStartsGraceTime extends Pick<IQuantitativeValue<UnitCode.Day>, 'typeOf' | 'value' | 'unitCode'> {
10
11
  unitCode: UnitCode.Day;
11
12
  value: number;
@@ -29,11 +30,11 @@ export interface IOffer extends Pick<OfferFactory.IOffer, 'typeOf' | 'eligibleQu
29
30
  /**
30
31
  * イベント開始前の販売猶予期間(POS)
31
32
  */
32
- availabilityStartsGraceTimeOnPOS: IAvailabilityStartsGraceTime;
33
+ availabilityStartsGraceTimeOnPOS?: never;
33
34
  /**
34
35
  * イベント開始後の販売猶予期間(POS)
35
36
  */
36
- availabilityEndsGraceTimeOnPOS: IAvailabilityEndsGraceTime;
37
+ availabilityEndsGraceTimeOnPOS?: never;
37
38
  }
38
39
  /**
39
40
  * 施設の操作するPoints-of-Sales
@@ -53,13 +54,7 @@ export interface IPOS {
53
54
  */
54
55
  name: string;
55
56
  }
56
- /**
57
- * 入場ゲート
58
- */
59
- export type IEntranceGate = Pick<PlaceFactory.IPlace, 'typeOf' | 'identifier' | 'name'> & {
60
- typeOf: PlaceType.Place;
61
- identifier: string;
62
- };
57
+ export { IEntranceGate };
63
58
  /**
64
59
  * 親組織
65
60
  */
@@ -123,6 +118,14 @@ export interface ISearchConditions {
123
118
  $eq?: string;
124
119
  };
125
120
  };
121
+ /**
122
+ * 所属販売者
123
+ */
124
+ seller?: {
125
+ id?: {
126
+ $eq?: string;
127
+ };
128
+ };
126
129
  id?: {
127
130
  $eq?: string;
128
131
  $in?: string[];
@@ -45,14 +45,29 @@ export interface ISearchConditions {
45
45
  $eq?: string;
46
46
  $regex?: string;
47
47
  };
48
+ /**
49
+ * ルーム
50
+ */
48
51
  containedInPlace?: {
52
+ /**
53
+ * ルームコード
54
+ */
49
55
  branchCode?: {
50
56
  $eq?: string;
51
57
  };
52
- containedInPlace: {
58
+ containedInPlace?: {
59
+ /**
60
+ * 施設コード
61
+ */
53
62
  branchCode?: {
54
63
  $eq?: string;
55
64
  };
65
+ /**
66
+ * 施設ID
67
+ */
68
+ id?: {
69
+ $eq?: string;
70
+ };
56
71
  };
57
72
  };
58
73
  name?: {
@@ -13,7 +13,7 @@ import { ReservationType } from '../reservationType';
13
13
  export type IOptimizedWorkPerformed = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
14
14
  name?: string | IMultilingualString;
15
15
  };
16
- export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
16
+ export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
17
17
  workPerformed: IOptimizedWorkPerformed;
18
18
  };
19
19
  export interface IReservationFor {
@@ -1,9 +1,10 @@
1
1
  import { IObjectWithoutDetail, IPurpose } from '../action/authorize/paymentMethod/any';
2
- import { ILocation } from '../action/trade/pay';
2
+ import { IAcceptedPaymentMethodOfferAsInstrument, ILocation } from '../action/trade/pay';
3
3
  import { IExtendId } from '../autoGenerated';
4
4
  import { PaymentServiceType } from '../service/paymentService';
5
5
  import * as TaskFactory from '../task';
6
6
  import { TaskName } from '../taskName';
7
+ export type IInstrument = IAcceptedPaymentMethodOfferAsInstrument;
7
8
  export interface IData {
8
9
  project: {
9
10
  id: string;
@@ -28,6 +29,10 @@ export interface IData {
28
29
  id: string;
29
30
  };
30
31
  };
32
+ /**
33
+ * クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
34
+ */
35
+ instrument?: IInstrument[];
31
36
  }
32
37
  export interface IAttributes extends TaskFactory.IAttributes {
33
38
  name: TaskName.AuthorizePayment;
@@ -0,0 +1,81 @@
1
+ import { IExtendId } from '../autoGenerated';
2
+ import { ICategoryCode } from '../categoryCode';
3
+ import { EventType } from '../eventType';
4
+ import { IOfferCatalog } from '../offerCatalog';
5
+ import { OfferType } from '../offerType';
6
+ import { OrganizationType } from '../organizationType';
7
+ import { PlaceType } from '../placeType';
8
+ import { ProductType } from '../product';
9
+ import * as TaskFactory from '../task';
10
+ import { TaskName } from '../taskName';
11
+ export type CategoryCodeType = ICategoryCode['typeOf'];
12
+ export type OfferCatalogType = IOfferCatalog['typeOf'];
13
+ export type IResourceTypeOf = CategoryCodeType | EventType.ScreeningEventSeries | OrganizationType.Corporation | PlaceType.MovieTheater | ProductType | OfferCatalogType | OfferType.AggregateOffer;
14
+ export interface IData4common {
15
+ /**
16
+ * リソースIDリスト
17
+ */
18
+ id: string[];
19
+ project: {
20
+ id: string;
21
+ };
22
+ typeOf: IResourceTypeOf;
23
+ isNew: boolean;
24
+ isDeleted: true;
25
+ useInform: boolean;
26
+ /**
27
+ * typeOf: OfferCatalogのリポジトリを判定するため
28
+ */
29
+ isOfferCatalogItem?: boolean;
30
+ branchCode?: never;
31
+ }
32
+ /**
33
+ * ルーム変更の場合のタスクデータ
34
+ */
35
+ export interface IData4screeningRoom {
36
+ /**
37
+ * ルームコードリスト
38
+ */
39
+ branchCode: string[];
40
+ containedInPlace: {
41
+ /**
42
+ * 施設ID
43
+ */
44
+ id: string;
45
+ };
46
+ project: {
47
+ id: string;
48
+ };
49
+ typeOf: PlaceType.ScreeningRoom;
50
+ isNew?: never;
51
+ isDeleted: true;
52
+ useInform: boolean;
53
+ }
54
+ export interface IData4pos {
55
+ /**
56
+ * コード
57
+ */
58
+ branchCode: string;
59
+ operator: {
60
+ /**
61
+ * 施設ID
62
+ */
63
+ id: string;
64
+ };
65
+ project: {
66
+ id: string;
67
+ };
68
+ typeOf: 'POS';
69
+ isNew: boolean;
70
+ isDeleted: true;
71
+ useInform: boolean;
72
+ }
73
+ export type IData = IData4common | IData4screeningRoom | IData4pos;
74
+ export interface IAttributes extends TaskFactory.IAttributes {
75
+ name: TaskName.OnResourceDeleted;
76
+ data: IData;
77
+ }
78
+ /**
79
+ * リソース変更時タスク
80
+ */
81
+ export type ITask = IExtendId<IAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,24 +15,31 @@ export type CategoryCodeType = ICategoryCode['typeOf'];
15
15
  export type OfferCatalogType = IOfferCatalog['typeOf'];
16
16
  export type IResourceTypeOf = AccountTitleType | CategoryCodeType | CreativeWorkType.Movie | CreativeWorkType.NoteDigitalDocument | EventType.ScreeningEventSeries | OrganizationType.Corporation | PlaceType.MovieTheater | ProductType | OfferCatalogType | OfferType.AggregateOffer;
17
17
  export interface IData4common {
18
+ /**
19
+ * リソースIDリスト
20
+ */
18
21
  id: string[];
19
22
  project: {
20
23
  id: string;
21
24
  };
22
25
  typeOf: IResourceTypeOf;
23
26
  isNew: boolean;
24
- isDeleted?: boolean;
25
27
  useInform: boolean;
26
28
  /**
27
29
  * typeOf: OfferCatalogのリポジトリを判定するため
28
30
  */
29
31
  isOfferCatalogItem?: boolean;
32
+ branchCode?: never;
33
+ isDeleted?: never;
30
34
  }
35
+ /**
36
+ * ルーム変更の場合のタスクデータ
37
+ */
31
38
  export interface IData4screeningRoom {
32
39
  /**
33
- * ルームコード
40
+ * ルームコードリスト
34
41
  */
35
- branchCode: string;
42
+ branchCode: string[];
36
43
  containedInPlace: {
37
44
  /**
38
45
  * 施設ID
@@ -43,8 +50,9 @@ export interface IData4screeningRoom {
43
50
  id: string;
44
51
  };
45
52
  typeOf: PlaceType.ScreeningRoom;
46
- isDeleted: boolean;
53
+ isNew?: never;
47
54
  useInform: boolean;
55
+ isDeleted?: never;
48
56
  }
49
57
  export interface IData4pos {
50
58
  /**
@@ -62,8 +70,8 @@ export interface IData4pos {
62
70
  };
63
71
  typeOf: 'POS';
64
72
  isNew: boolean;
65
- isDeleted: boolean;
66
73
  useInform: boolean;
74
+ isDeleted?: never;
67
75
  }
68
76
  export type IData = IData4common | IData4screeningRoom | IData4pos;
69
77
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -1,9 +1,10 @@
1
1
  import { IAuthorizeCreditCardObject, IPurpose } from '../action/authorize/paymentMethod/any';
2
- import { ILocation } from '../action/trade/pay';
2
+ import { IAcceptedPaymentMethodOfferAsInstrument, ILocation } from '../action/trade/pay';
3
3
  import { IExtendId } from '../autoGenerated';
4
4
  import { PaymentServiceType } from '../service/paymentService';
5
5
  import * as TaskFactory from '../task';
6
6
  import { TaskName } from '../taskName';
7
+ export type IInstrument = IAcceptedPaymentMethodOfferAsInstrument;
7
8
  export interface IData {
8
9
  project: {
9
10
  id: string;
@@ -20,6 +21,10 @@ export interface IData {
20
21
  * authorize payment action identifier
21
22
  */
22
23
  identifier?: string;
24
+ /**
25
+ * クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
26
+ */
27
+ instrument?: IInstrument[];
23
28
  }
24
29
  export interface IAttributes extends TaskFactory.IAttributes {
25
30
  name: TaskName.PublishPaymentUrl;
@@ -0,0 +1,35 @@
1
+ import { IParticipantAsPerson, IParticipantAsSoftwareApplication, IParticipantAsWebApplication } from '../action';
2
+ import { IExtendId } from '../autoGenerated';
3
+ import { EventType } from '../eventType';
4
+ import * as TaskFactory from '../task';
5
+ import { TaskName } from '../taskName';
6
+ export type IAgent = IParticipantAsPerson | IParticipantAsSoftwareApplication | IParticipantAsWebApplication;
7
+ export interface IReplaceEventSeriesAction {
8
+ agent: IAgent;
9
+ object: {
10
+ locationBranchCode: string;
11
+ titleCode: string;
12
+ titleBranchNum: string;
13
+ typeOf: EventType.ScreeningEventSeries;
14
+ };
15
+ }
16
+ export interface IReplaceEventsAction {
17
+ agent: IAgent;
18
+ object: {
19
+ locationBranchCode: string;
20
+ roomCode: string;
21
+ titleCode: string;
22
+ titleBranchNum: string;
23
+ startDate: Date;
24
+ typeOf: EventType.ScreeningEvent;
25
+ };
26
+ }
27
+ export type IData = IReplaceEventSeriesAction | IReplaceEventsAction;
28
+ export interface IAttributes extends TaskFactory.IAttributes {
29
+ name: TaskName.SyncResourcesFromCOA;
30
+ data: IData;
31
+ }
32
+ /**
33
+ * リソース同期タスク
34
+ */
35
+ export type ITask = IExtendId<IAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,7 +11,7 @@ import { IOfferCatalogAsNotification } from '../notification/offerCatalog';
11
11
  import { IOrder4inform } from '../notification/order';
12
12
  import { IPayAction4inform } from '../notification/payAction';
13
13
  import { IPersonAsNotification } from '../notification/person';
14
- import { IHasPOSAsNotification, IMovieTheaterAsNotification } from '../notification/place';
14
+ import { IHasPOSAsNotification, IMovieTheaterAsNotification, IRoomAsNotification } from '../notification/place';
15
15
  import { IProductAsNotification } from '../notification/product';
16
16
  import { IRefundAction4inform } from '../notification/refundAction';
17
17
  import { IReservation4inform } from '../notification/reservation';
@@ -25,7 +25,7 @@ export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 't
25
25
  /**
26
26
  * define strictly(2025-02-20~)
27
27
  */
28
- export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
28
+ export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
29
29
  export type IInformAnyResourceAction = Pick<IInformActionAttributes<IAnyResourceAsObject>, 'object' | 'about'> & {
30
30
  /**
31
31
  * 通知識別子(2024-10-24~)
package/lib/taskName.d.ts CHANGED
@@ -72,6 +72,7 @@ export declare enum TaskName {
72
72
  OnAssetTransactionStatusChanged = "onAssetTransactionStatusChanged",
73
73
  OnAuthorizationCreated = "onAuthorizationCreated",
74
74
  OnEventChanged = "onEventChanged",
75
+ OnResourceDeleted = "onResourceDeleted",
75
76
  OnResourceUpdated = "onResourceUpdated",
76
77
  OnOrderPaymentCompleted = "onOrderPaymentCompleted",
77
78
  Pay = "pay",
@@ -114,6 +115,7 @@ export declare enum TaskName {
114
115
  * 注文配送
115
116
  */
116
117
  SendOrder = "sendOrder",
118
+ SyncResourcesFromCOA = "syncResourcesFromCOA",
117
119
  /**
118
120
  * ウェブフックをたたく
119
121
  */
package/lib/taskName.js CHANGED
@@ -76,6 +76,7 @@ var TaskName;
76
76
  TaskName["OnAssetTransactionStatusChanged"] = "onAssetTransactionStatusChanged";
77
77
  TaskName["OnAuthorizationCreated"] = "onAuthorizationCreated";
78
78
  TaskName["OnEventChanged"] = "onEventChanged";
79
+ TaskName["OnResourceDeleted"] = "onResourceDeleted";
79
80
  TaskName["OnResourceUpdated"] = "onResourceUpdated";
80
81
  TaskName["OnOrderPaymentCompleted"] = "onOrderPaymentCompleted";
81
82
  // OrderProgramMembership = 'orderProgramMembership', // 廃止(2023-08-18~)
@@ -119,6 +120,7 @@ var TaskName;
119
120
  * 注文配送
120
121
  */
121
122
  TaskName["SendOrder"] = "sendOrder";
123
+ TaskName["SyncResourcesFromCOA"] = "syncResourcesFromCOA";
122
124
  /**
123
125
  * ウェブフックをたたく
124
126
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "5.4.0-alpha.2",
3
+ "version": "5.4.0-alpha.20",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",