@chevre/factory 4.399.0-alpha.8 → 5.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.
Files changed (41) hide show
  1. package/lib/action/check/paymentMethod/movieTicket.d.ts +2 -2
  2. package/lib/action/check/thing.d.ts +27 -0
  3. package/lib/action/consume/use/reservation.d.ts +2 -3
  4. package/lib/action/create.d.ts +19 -0
  5. package/lib/action/create.js +2 -0
  6. package/lib/action/update/add/object.d.ts +28 -0
  7. package/lib/action/update/add/object.js +2 -0
  8. package/lib/action/update/add.d.ts +18 -14
  9. package/lib/action/update/add.js +15 -0
  10. package/lib/action/update/replace.d.ts +39 -1
  11. package/lib/action/update/update/object.d.ts +47 -0
  12. package/lib/action/update/update/object.js +2 -0
  13. package/lib/action/update/update/result.d.ts +32 -0
  14. package/lib/action/update/update/result.js +2 -0
  15. package/lib/action/update/update/targetCollection.d.ts +32 -0
  16. package/lib/action/update/update/targetCollection.js +2 -0
  17. package/lib/action/update/update.d.ts +11 -18
  18. package/lib/action/update/update.js +17 -0
  19. package/lib/assetTransaction/reserve.d.ts +16 -2
  20. package/lib/event/anyEvent.d.ts +6 -223
  21. package/lib/event/screeningEvent.d.ts +24 -3
  22. package/lib/eventType.d.ts +0 -1
  23. package/lib/eventType.js +1 -1
  24. package/lib/index.d.ts +12 -10
  25. package/lib/index.js +12 -8
  26. package/lib/notification/event.d.ts +1 -2
  27. package/lib/offer/eventOffer.d.ts +18 -74
  28. package/lib/offer/productOffer.d.ts +152 -0
  29. package/lib/offer/productOffer.js +2 -0
  30. package/lib/project.d.ts +0 -4
  31. package/lib/report/accountingReport.d.ts +17 -0
  32. package/lib/reservation/pendingReservationPackage.d.ts +1 -1
  33. package/lib/task/aggregateScreeningEvent.d.ts +1 -1
  34. package/lib/task/checkResource.d.ts +2 -13
  35. package/lib/task/createAccountingReport.d.ts +2 -8
  36. package/lib/task/createEvent.d.ts +7 -28
  37. package/package.json +1 -1
  38. package/lib/action/check/token.d.ts +0 -23
  39. package/lib/action/check/token.js +0 -7
  40. package/lib/action/check.d.ts +0 -10
  41. /package/lib/action/{check.js → check/thing.js} +0 -0
@@ -2,15 +2,12 @@ import * as EventFactory from '../event';
2
2
  import { EventType } from '../eventType';
3
3
  import { IMultilingualString } from '../multilingualString';
4
4
  import * as OfferFactory from '../offer';
5
- import { IEventOffer } from '../offer/eventOffer';
5
+ import { IEventOffer, IMemberProgramTier } from '../offer/eventOffer';
6
6
  import { OfferType } from '../offerType';
7
7
  import { OrganizationType } from '../organizationType';
8
8
  import { PlaceType } from '../placeType';
9
- import { IServiceType as IProductServiceType, ProductType } from '../product';
10
- import * as ReservationFactory from '../reservation';
11
- import { ReservationType } from '../reservationType';
9
+ import { IServiceType as IProductServiceType } from '../product';
12
10
  import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
13
- import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
14
11
  /**
15
12
  * 予約集計
16
13
  */
@@ -72,50 +69,9 @@ export interface IAggregateEntranceGate {
72
69
  aggregateDate: Date;
73
70
  places: IPlaceWithAggregateOffer[];
74
71
  }
75
- /**
76
- * 予約対象
77
- * 現時点でBusTripのみ
78
- */
79
- export type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'identifier' | 'typeOf'>;
80
- export interface IServiceOutput {
81
- typeOf: ReservationType.BusReservation;
82
- reservationFor: IReservationFor;
83
- reservedTicket?: {
84
- typeOf: ReservationFactory.TicketType;
85
- /**
86
- * チケットに割り当てられる座席
87
- * 指定席でない場合、存在しない
88
- */
89
- ticketedSeat?: {
90
- typeOf: PlaceType.Seat;
91
- };
92
- };
93
- }
94
72
  export type IServiceType = IProductServiceType & {
95
73
  id?: string;
96
74
  };
97
- /**
98
- * 旅客サービス
99
- */
100
- export interface IItemOffered {
101
- id: string;
102
- /**
103
- * プロダクト名称
104
- */
105
- name?: {
106
- ja?: string;
107
- };
108
- /**
109
- * サービス区分
110
- */
111
- serviceType?: IServiceType;
112
- /**
113
- * サービスアウトプット
114
- */
115
- serviceOutput: IServiceOutput;
116
- typeOf: ProductType.Transportation;
117
- availableChannel: ReservationFactory.IServiceChannel;
118
- }
119
75
  export type IOfferedThrough = Pick<IWebAPIService<WebAPIIdentifier.Chevre>, 'identifier' | 'typeOf'>;
120
76
  export type IOfferAvailableAtOrFrom = Pick<OfferFactory.IAvailableAtOrFrom, 'id'>;
121
77
  export { IEventOffer as ISellerMakesOffer };
@@ -132,20 +88,6 @@ export interface ISeller {
132
88
  makesOffer: IEventOffer[];
133
89
  }
134
90
  export import IEligibleQuantity = OfferFactory.IEligibleQuantity;
135
- /**
136
- * イベントに対するオファー
137
- */
138
- export interface IOffer {
139
- typeOf: OfferType.Offer;
140
- eligibleQuantity: IEligibleQuantity;
141
- itemOffered: IItemOffered;
142
- /**
143
- * オファー供給サービス
144
- */
145
- offeredThrough?: IOfferedThrough;
146
- unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
147
- seller: ISeller;
148
- }
149
91
  /**
150
92
  * イベントのルーム
151
93
  */
@@ -178,7 +120,7 @@ export interface IOrganizer {
178
120
  /**
179
121
  * イベント属性
180
122
  */
181
- export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Event>, 'maximumPhysicalAttendeeCapacity' | 'additionalProperty' | 'project' | 'identifier' | 'description' | 'eventStatus' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'location' | 'name' | 'doorTime' | 'endDate' | 'startDate' | 'typeOf'> {
123
+ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType>, 'maximumPhysicalAttendeeCapacity' | 'additionalProperty' | 'project' | 'identifier' | 'description' | 'eventStatus' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'location' | 'name' | 'doorTime' | 'endDate' | 'startDate' | 'typeOf'> {
182
124
  /**
183
125
  * ルーム
184
126
  */
@@ -205,7 +147,6 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Eve
205
147
  /**
206
148
  * 販売情報
207
149
  */
208
- offers: IOffer;
209
150
  /**
210
151
  * 発券数
211
152
  */
@@ -220,19 +161,12 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Eve
220
161
  aggregateReservation?: IAggregateReservation;
221
162
  organizer: IOrganizer;
222
163
  }
223
- /**
224
- * イベント
225
- */
226
- export type IEvent = EventFactory.IEvent<IAttributes>;
227
- export interface IMemberProgramTier4create {
228
- isTierOf: {
229
- identifier: string;
230
- };
231
- }
164
+ export type IMemberProgramTier4create = Pick<IMemberProgramTier, 'typeOf'>;
232
165
  export type ISellerMakesOffer4create = Pick<IEventOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf'> & {
233
166
  availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
234
167
  /**
235
- * メンバープログラムティアごとにイベントオファーを管理する場合に指定
168
+ * 有効なメンバープログラムティア条件
169
+ * メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
236
170
  */
237
171
  validForMemberTier?: IMemberProgramTier4create;
238
172
  };
@@ -243,154 +177,3 @@ export interface ISeller4create {
243
177
  */
244
178
  makesOfferDefault?: Pick<IEventOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'>;
245
179
  }
246
- export interface IAvailableChannel4create {
247
- serviceLocation: {
248
- /**
249
- * ルームコード
250
- */
251
- branchCode: string;
252
- containedInPlace: {
253
- /**
254
- * 施設ID
255
- */
256
- id: string;
257
- };
258
- };
259
- }
260
- export type IReservationFor4create = Pick<IReservationFor, 'identifier'>;
261
- export type IServiceOutput4create = Pick<IServiceOutput, 'reservedTicket' | 'typeOf'> & {
262
- reservationFor: IReservationFor4create;
263
- };
264
- export type IItemOffered4create = Pick<IItemOffered, 'id'> & {
265
- availableChannel: IAvailableChannel4create;
266
- serviceOutput: IServiceOutput4create;
267
- };
268
- export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
269
- /**
270
- * 最大予約数を指定
271
- */
272
- eligibleQuantity: Pick<IEligibleQuantity, 'maxValue'>;
273
- /**
274
- * 興行IDと座席有無を指定
275
- */
276
- itemOffered: IItemOffered4create;
277
- /**
278
- * 販売者IDとアプリケーション設定
279
- */
280
- seller: ISeller4create;
281
- };
282
- export type ICreateParams = Pick<IAttributes, 'doorTime' | 'startDate' | 'endDate' | 'eventStatus' | 'additionalProperty' | 'identifier'> & {
283
- location?: never;
284
- offers: IOffers4create;
285
- };
286
- /**
287
- * イベント更新パラメータ
288
- */
289
- export type IUpdateParams = ICreateParams;
290
- /**
291
- * ソート条件
292
- */
293
- export type ISortOrder = EventFactory.ISortOrder;
294
- export interface IOfferSearchConditions {
295
- /**
296
- * apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
297
- */
298
- availableFrom?: Date;
299
- /**
300
- * apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
301
- */
302
- availableThrough?: Date;
303
- /**
304
- * apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
305
- */
306
- validFrom?: Date;
307
- /**
308
- * apiリクエストクライアントがseller.makesOffer.$elemMatchに含まれるものを検索
309
- */
310
- validThrough?: Date;
311
- itemOffered?: {
312
- id?: {
313
- $in?: string[];
314
- };
315
- serviceType?: {
316
- ids?: string[];
317
- };
318
- serviceOutput?: {
319
- reservationFor?: {
320
- arrivalBusStop?: {
321
- /**
322
- * ターミナルコード
323
- */
324
- branchCode?: {
325
- $eq?: string;
326
- };
327
- };
328
- departureBusStop?: {
329
- /**
330
- * ターミナルコード
331
- */
332
- branchCode?: {
333
- $eq?: string;
334
- };
335
- };
336
- /**
337
- * トリップコード
338
- */
339
- identifier?: {
340
- $eq?: string;
341
- };
342
- };
343
- reservedTicket?: {
344
- ticketedSeat?: {
345
- typeOfs?: string[];
346
- };
347
- };
348
- };
349
- typeOf?: {
350
- $eq?: ProductType;
351
- };
352
- };
353
- seller?: {
354
- makesOffer?: {
355
- $elemMatch?: {
356
- availabilityEnds?: {
357
- $gte?: Date;
358
- $lte?: Date;
359
- };
360
- availabilityStarts?: {
361
- $gte?: Date;
362
- $lte?: Date;
363
- };
364
- validFrom?: {
365
- $gte?: Date;
366
- $lte?: Date;
367
- };
368
- validThrough?: {
369
- $gte?: Date;
370
- $lte?: Date;
371
- };
372
- 'availableAtOrFrom.id'?: {
373
- $eq?: string;
374
- };
375
- };
376
- };
377
- };
378
- }
379
- /**
380
- * イベント検索条件
381
- */
382
- export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.Event> {
383
- location?: {
384
- /**
385
- * ルームコード
386
- */
387
- branchCode?: {
388
- $eq?: string;
389
- $in?: string[];
390
- };
391
- };
392
- /**
393
- * 販売情報
394
- */
395
- offers?: IOfferSearchConditions;
396
- }
@@ -2,12 +2,18 @@ import type * 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 { OfferType } from '../offerType';
5
6
  import { PlaceType } from '../placeType';
6
7
  import { ProductType } from '../product';
7
8
  import * as ReservationFactory from '../reservation';
8
9
  import { ReservationType } from '../reservationType';
9
10
  import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
10
11
  import * as AnyEventFactory from './anyEvent';
12
+ export import IAggregateReservation = AnyEventFactory.IAggregateReservation;
13
+ export import IOfferWithAggregateReservation = AnyEventFactory.IOfferWithAggregateReservation;
14
+ export import IAggregateOffer = AnyEventFactory.IAggregateOffer;
15
+ export import IAggregateEntranceGate = AnyEventFactory.IAggregateEntranceGate;
16
+ export import IOfferAvailableAtOrFrom = AnyEventFactory.IOfferAvailableAtOrFrom;
11
17
  export interface IServiceOutput {
12
18
  typeOf: ReservationType.EventReservation;
13
19
  reservedTicket?: {
@@ -51,9 +57,23 @@ export import IEligibleQuantity = AnyEventFactory.IEligibleQuantity;
51
57
  /**
52
58
  * イベントに対するオファー
53
59
  */
54
- export type IOffer = Pick<AnyEventFactory.IOffer, 'eligibleQuantity' | 'offeredThrough' | 'seller' | 'typeOf' | 'unacceptedPaymentMethod'> & {
60
+ export interface IOffer {
61
+ typeOf: OfferType.Offer;
62
+ eligibleQuantity: IEligibleQuantity;
63
+ /**
64
+ * オファー供給サービス
65
+ */
66
+ offeredThrough?: IOfferedThrough;
67
+ unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
68
+ seller: ISeller;
69
+ /**
70
+ * プロダクトオファーコレクションコード
71
+ * メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
72
+ * 指定した場合、別管理のプロダクトオファーに従います
73
+ */
74
+ identifier?: string;
55
75
  itemOffered: IItemOffered;
56
- };
76
+ }
57
77
  export type ISeller4COA = Pick<ISeller, 'id' | 'makesOffer' | 'typeOf'>;
58
78
  export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
59
79
  offeredThrough: Pick<IWebAPIService<WebAPIIdentifier.COA>, 'identifier' | 'typeOf'>;
@@ -65,6 +85,7 @@ export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
65
85
  availableChannel?: never;
66
86
  };
67
87
  unacceptedPaymentMethod?: never;
88
+ identifier?: never;
68
89
  };
69
90
  export type ICOAKubun = COA.factory.master.IKubunNameResult;
70
91
  export type ICOAInfo = Pick<COA.factory.master.IScheduleResult, 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'timeEnd' | 'screenCode' | 'trailerTime' | 'nameServiceDay' | 'availableNum' | 'rsvStartDate' | 'rsvEndDate' | 'flgEarlyBooking'> & {
@@ -130,7 +151,7 @@ export interface IAttributes extends Pick<AnyEventFactory.IAttributes, 'maximumP
130
151
  export type IEvent = EventFactory.IEvent<IAttributes>;
131
152
  export import ISellerMakesOffer4create = AnyEventFactory.ISellerMakesOffer4create;
132
153
  export import ISeller4create = AnyEventFactory.ISeller4create;
133
- export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
154
+ export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod' | 'identifier'> & {
134
155
  /**
135
156
  * 最大予約数を指定
136
157
  */
@@ -2,7 +2,6 @@
2
2
  * イベントタイプ
3
3
  */
4
4
  export declare enum EventType {
5
- Event = "Event",
6
5
  ScreeningEvent = "ScreeningEvent",
7
6
  ScreeningEventSeries = "ScreeningEventSeries"
8
7
  }
package/lib/eventType.js CHANGED
@@ -6,7 +6,7 @@ exports.EventType = void 0;
6
6
  */
7
7
  var EventType;
8
8
  (function (EventType) {
9
- EventType["Event"] = "Event";
9
+ // Event = 'Event', // discontinue(2025-10-04~)
10
10
  EventType["ScreeningEvent"] = "ScreeningEvent";
11
11
  EventType["ScreeningEventSeries"] = "ScreeningEventSeries";
12
12
  })(EventType = exports.EventType || (exports.EventType = {}));
package/lib/index.d.ts CHANGED
@@ -19,8 +19,9 @@ import * as AuthorizeTicketedObjectActionFactory from './action/authorize/ticket
19
19
  import * as CancelCOAReserveActionFactory from './action/cancel/coaReserve';
20
20
  import * as CancelReservationActionFactory from './action/cancel/reservation';
21
21
  import * as CheckMovieTicketActionFactory from './action/check/paymentMethod/movieTicket';
22
- import * as CheckTokenActionFactory from './action/check/token';
22
+ import * as CheckThingActionFactory from './action/check/thing';
23
23
  import * as UseReservationActionFactory from './action/consume/use/reservation';
24
+ import * as CreateActionFactory from './action/create';
24
25
  import * as ConfirmMoneyTransferActionFactory from './action/interact/confirm/moneyTransfer';
25
26
  import * as ConfirmPayActionFactory from './action/interact/confirm/pay';
26
27
  import * as ConfirmRegisterServiceActionFactory from './action/interact/confirm/registerService';
@@ -71,7 +72,6 @@ import { CreativeWorkType } from './creativeWorkType';
71
72
  import * as CustomerFactory from './customer';
72
73
  import * as EncodingFormat from './encodingFormat';
73
74
  import * as entryPoint from './entryPoint';
74
- import * as AnyEventFactory from './event/anyEvent';
75
75
  import * as ScreeningEventFactory from './event/screeningEvent';
76
76
  import * as ScreeningEventSeriesFactory from './event/screeningEventSeries';
77
77
  import { EventStatusType } from './eventStatusType';
@@ -88,6 +88,7 @@ import { IMultilingualString } from './multilingualString';
88
88
  import * as OfferFactory from './offer';
89
89
  import * as AggregateOfferFactory from './offer/aggregateOffer';
90
90
  import * as EventOfferFactory from './offer/eventOffer';
91
+ import * as ProductOfferFactory from './offer/productOffer';
91
92
  import * as OfferCatalogFactory from './offerCatalog';
92
93
  import * as OfferItemConditionFactory from './offerItemCondition';
93
94
  import { OfferType } from './offerType';
@@ -279,8 +280,9 @@ export declare namespace action {
279
280
  namespace paymentMethod {
280
281
  export import movieTicket = CheckMovieTicketActionFactory;
281
282
  }
282
- export import token = CheckTokenActionFactory;
283
+ export import thing = CheckThingActionFactory;
283
284
  }
285
+ export import create = CreateActionFactory;
284
286
  namespace interact {
285
287
  namespace confirm {
286
288
  export import moneyTransfer = ConfirmMoneyTransferActionFactory;
@@ -375,15 +377,14 @@ export declare namespace creativeWork {
375
377
  export import creativeWorkType = CreativeWorkType;
376
378
  export import customer = CustomerFactory;
377
379
  export declare namespace event {
378
- type ISearchConditions<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ISearchConditions : T extends EventType.Event ? AnyEventFactory.ISearchConditions : never;
379
- type IAttributes<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IAttributes : T extends EventType.Event ? AnyEventFactory.IAttributes : never;
380
- type IEvent<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.IEvent : T extends EventType.Event ? AnyEventFactory.IEvent : never;
381
- type ICreateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : T extends EventType.Event ? AnyEventFactory.ICreateParams : never;
382
- type IUpdateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IUpdateParams : T extends EventType.ScreeningEventSeries ? ScreeningEventSeriesFactory.ICreateParams : T extends EventType.Event ? AnyEventFactory.IUpdateParams : never;
383
- export import event = AnyEventFactory;
380
+ type ISearchConditions<T extends EventType.ScreeningEvent> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions : never;
381
+ type IAttributes<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes : never;
382
+ type IEvent<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent : never;
383
+ type ICreateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams : never;
384
+ type IUpdateParams<T extends EventType> = T extends EventType.ScreeningEvent ? ScreeningEventFactory.IUpdateParams : never;
384
385
  export import screeningEvent = ScreeningEventFactory;
385
- export import screeningEventSeries = ScreeningEventSeriesFactory;
386
386
  }
387
+ export import eventSeries = ScreeningEventSeriesFactory;
387
388
  export import eventOffer = EventOfferFactory;
388
389
  export import encodingFormat = EncodingFormat;
389
390
  export { entryPoint };
@@ -461,6 +462,7 @@ export declare namespace compoundPriceSpecification {
461
462
  export import priceSpecificationType = PriceSpecificationType;
462
463
  export import programMembership = ProgramMembershipFactory;
463
464
  export import product = ProductFactory;
465
+ export import productOffer = ProductOfferFactory;
464
466
  export import project = project;
465
467
  export declare namespace propertyValue {
466
468
  export import PropertyValueType = PropertyValueFactory.PropertyValueType;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.priceCurrency = exports.personType = 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.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = 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.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = void 0;
3
+ exports.personType = 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.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventOffer = exports.eventSeries = 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.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 = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -21,8 +21,9 @@ var AuthorizeTicketedObjectActionFactory = require("./action/authorize/ticketedO
21
21
  var CancelCOAReserveActionFactory = require("./action/cancel/coaReserve");
22
22
  var CancelReservationActionFactory = require("./action/cancel/reservation");
23
23
  var CheckMovieTicketActionFactory = require("./action/check/paymentMethod/movieTicket");
24
- var CheckTokenActionFactory = require("./action/check/token");
24
+ var CheckThingActionFactory = require("./action/check/thing");
25
25
  var UseReservationActionFactory = require("./action/consume/use/reservation");
26
+ var CreateActionFactory = require("./action/create");
26
27
  var ConfirmMoneyTransferActionFactory = require("./action/interact/confirm/moneyTransfer");
27
28
  var ConfirmPayActionFactory = require("./action/interact/confirm/pay");
28
29
  var ConfirmRegisterServiceActionFactory = require("./action/interact/confirm/registerService");
@@ -71,7 +72,6 @@ var CustomerFactory = require("./customer");
71
72
  var EncodingFormat = require("./encodingFormat");
72
73
  var entryPoint = require("./entryPoint");
73
74
  exports.entryPoint = entryPoint;
74
- var AnyEventFactory = require("./event/anyEvent");
75
75
  var ScreeningEventFactory = require("./event/screeningEvent");
76
76
  var ScreeningEventSeriesFactory = require("./event/screeningEventSeries");
77
77
  var eventStatusType_1 = require("./eventStatusType");
@@ -86,6 +86,7 @@ var MonetaryAmountFactory = require("./monetaryAmount");
86
86
  var OfferFactory = require("./offer");
87
87
  var AggregateOfferFactory = require("./offer/aggregateOffer");
88
88
  var EventOfferFactory = require("./offer/eventOffer");
89
+ var ProductOfferFactory = require("./offer/productOffer");
89
90
  var OfferCatalogFactory = require("./offerCatalog");
90
91
  var OfferItemConditionFactory = require("./offerItemCondition");
91
92
  var offerType_1 = require("./offerType");
@@ -249,8 +250,11 @@ var action;
249
250
  (function (paymentMethod) {
250
251
  paymentMethod.movieTicket = CheckMovieTicketActionFactory;
251
252
  })(paymentMethod = check.paymentMethod || (check.paymentMethod = {}));
252
- check.token = CheckTokenActionFactory;
253
+ // tslint:disable-next-line:no-shadowed-variable
254
+ check.thing = CheckThingActionFactory;
255
+ // export import token = CheckTokenActionFactory; // discontinue(2025-09-22~)
253
256
  })(check = action.check || (action.check = {}));
257
+ action.create = CreateActionFactory;
254
258
  var interact;
255
259
  (function (interact) {
256
260
  var confirm;
@@ -366,11 +370,10 @@ exports.creativeWorkType = creativeWorkType_1.CreativeWorkType;
366
370
  exports.customer = CustomerFactory;
367
371
  var event;
368
372
  (function (event) {
369
- // tslint:disable-next-line:no-shadowed-variable
370
- event.event = AnyEventFactory;
371
373
  event.screeningEvent = ScreeningEventFactory;
372
- event.screeningEventSeries = ScreeningEventSeriesFactory;
374
+ // export import screeningEventSeries = ScreeningEventSeriesFactory;
373
375
  })(event = exports.event || (exports.event = {}));
376
+ exports.eventSeries = ScreeningEventSeriesFactory; // reimplement from event.screeningEventSeries
374
377
  exports.eventOffer = EventOfferFactory;
375
378
  exports.encodingFormat = EncodingFormat;
376
379
  exports.eventStatusType = eventStatusType_1.EventStatusType;
@@ -451,6 +454,7 @@ var priceSpecification;
451
454
  exports.priceSpecificationType = priceSpecificationType_1.PriceSpecificationType;
452
455
  exports.programMembership = ProgramMembershipFactory;
453
456
  exports.product = ProductFactory;
457
+ exports.productOffer = ProductOfferFactory;
454
458
  exports.project = project;
455
459
  var propertyValue;
456
460
  (function (propertyValue) {
@@ -1,4 +1,3 @@
1
- import { IEvent } from '../event/anyEvent';
2
1
  import { IEvent as IScreeningEvent, IOffer, IOffer4COA, ISeller, ISellerMakesOffer } from '../event/screeningEvent';
3
2
  import { IEvent as IEventSeries } from '../event/screeningEventSeries';
4
3
  import { EventType } from '../eventType';
@@ -25,4 +24,4 @@ export type IEventAsNotification<T extends EventType> = T extends EventType.Scre
25
24
  })[];
26
25
  };
27
26
  }) | Pick<IOffer4COA, 'itemOffered' | 'typeOf'>;
28
- } : T extends EventType.ScreeningEventSeries ? Pick<IEventSeries, 'project' | 'organizer' | 'typeOf' | 'name' | 'endDate' | 'location' | 'startDate' | 'id' | 'additionalProperty' | 'subtitleLanguage' | 'dubLanguage' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'kanaName' | 'alternativeHeadline' | 'description' | 'duration' | 'eventStatus' | 'headline'> : T extends EventType.Event ? Pick<IEvent, 'project' | 'organizer' | 'typeOf' | 'name' | 'doorTime' | 'endDate' | 'eventStatus' | 'location' | 'startDate' | 'id' | 'additionalProperty'> : never;
27
+ } : T extends EventType.ScreeningEventSeries ? Pick<IEventSeries, 'project' | 'organizer' | 'typeOf' | 'name' | 'endDate' | 'location' | 'startDate' | 'id' | 'additionalProperty' | 'subtitleLanguage' | 'dubLanguage' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'kanaName' | 'alternativeHeadline' | 'description' | 'duration' | 'eventStatus' | 'headline'> : never;
@@ -1,15 +1,14 @@
1
- import { EventType } from '../eventType';
2
1
  import { issuer } from '../issuer';
3
2
  import { IAvailableAtOrFrom, IOffer } from '../offer';
4
- import { OrganizationType } from '../organizationType';
5
- import { SortType } from '../sortType';
3
+ import { OfferType } from '../offerType';
6
4
  type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
7
- type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'isTierOf' | 'typeOf'>;
5
+ type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'typeOf'>;
8
6
  /**
9
- * アプリケーションごとのイベントに対するオファー
10
- * 基本的に有効期間を定義
7
+ * イベントに対する単一オファー
8
+ * 利用可能アプリケーションのみ定義
11
9
  */
12
- interface IEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> {
10
+ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> {
11
+ typeOf: OfferType.Offer;
13
12
  /**
14
13
  * いつまで表示可能か
15
14
  */
@@ -27,78 +26,23 @@ interface IEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' | 'avai
27
26
  */
28
27
  validThrough: Date;
29
28
  availableAtOrFrom?: IOfferAvailableAtOrFrom | IOfferAvailableAtOrFrom[];
29
+ validForMemberTier?: never;
30
+ }
31
+ /**
32
+ * メンバープログラムティア適用のイベントオファー
33
+ * ティアごとの有効期間はプロダクトオファーで管理される
34
+ */
35
+ interface IEventOfferForMemberTier extends Pick<ISingleEventOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'availableAtOrFrom'> {
30
36
  /**
31
37
  * 有効なメンバープログラムティア
32
38
  * 定義されている場合、オファー承認の際にメンバーシップトークンが必須
33
39
  * また、オファーの有効期間がメンバープログラムティアごとのイベントオファーに依存する
34
40
  */
35
- validForMemberTier?: IMemberProgramTier;
41
+ validForMemberTier: IMemberProgramTier;
36
42
  }
37
43
  /**
38
- * メンバープログラムティアごとのイベントオファー
39
- * itemOffered.id + availableAtOrFrom.id + validForMemberTier.identifier でユニーク
44
+ * アプリケーションごとのイベントに対するオファー
45
+ * 基本的に有効期間を定義
40
46
  */
41
- interface IEventOfferForMemberTier extends Pick<IEventOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
42
- availableAtOrFrom: IOfferAvailableAtOrFrom;
43
- validForMemberTier: Pick<issuer.IMemberProgramTier, 'identifier' | 'typeOf'>;
44
- project: {
45
- id: string;
46
- typeOf: OrganizationType.Project;
47
- };
48
- seller: {
49
- id: string;
50
- typeOf: OrganizationType.Organization;
51
- };
52
- /**
53
- * イベントオファーコード
54
- * イベントID内でユニーク必須
55
- */
56
- identifier: string;
57
- itemOffered: {
58
- /**
59
- * イベントID
60
- */
61
- id: string;
62
- typeOf: EventType.ScreeningEvent;
63
- };
64
- }
65
- interface ISearchConditions {
66
- limit?: number;
67
- page?: number;
68
- sort?: {
69
- validFrom?: SortType;
70
- };
71
- project?: {
72
- id?: {
73
- $eq?: string;
74
- };
75
- };
76
- seller?: {
77
- id?: {
78
- $eq?: string;
79
- };
80
- };
81
- id?: {
82
- $eq?: string;
83
- $in?: string[];
84
- };
85
- identifier?: {
86
- $eq?: string;
87
- };
88
- itemOffered?: {
89
- id?: {
90
- $eq?: string;
91
- };
92
- };
93
- availableAtOrFrom?: {
94
- id?: {
95
- $eq?: string;
96
- };
97
- };
98
- validForMemberTier?: {
99
- identifier?: {
100
- $eq?: string;
101
- };
102
- };
103
- }
104
- export { IEventOffer, IEventOfferForMemberTier, IMemberProgramTier, ISearchConditions };
47
+ type IEventOffer = ISingleEventOffer | IEventOfferForMemberTier;
48
+ export { IEventOffer, IEventOfferForMemberTier, IMemberProgramTier };