@chevre/factory 6.2.0-alpha.6 → 6.2.0-alpha.8

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.
@@ -2,7 +2,7 @@ import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../act
2
2
  import { IOrder } from '../../../order';
3
3
  import { PlaceType } from '../../../placeType';
4
4
  import { ITicket, TicketType } from '../../../reservation';
5
- import { IIssuedThrough, IReservation, IReservationFor } from '../../../reservation/event';
5
+ import { IIssuedThrough, IReservation, IReservationForLegacy } from '../../../reservation/event';
6
6
  import * as UseActionFactory from '../use';
7
7
  export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
8
8
  /**
@@ -11,7 +11,7 @@ export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
11
11
  */
12
12
  export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reservationNumber' | 'typeOf'> {
13
13
  issuedThrough: Pick<IIssuedThrough, 'id' | 'typeOf'>;
14
- reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
14
+ reservationFor: Pick<IReservationForLegacy, 'id' | 'typeOf'>;
15
15
  reservedTicket: Pick<ITicket, 'identifier' | 'ticketedSeat' | 'typeOf'> & {
16
16
  ticketType?: never;
17
17
  };
@@ -3,7 +3,7 @@ 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 IEventReservationFor } from '../reservation/event';
6
+ import { IReservationForLegacy as IEventReservationFor } from '../reservation/event';
7
7
  import { ReservationType } from '../reservationType';
8
8
  import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
9
9
  import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
@@ -3,7 +3,7 @@ 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 IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
6
+ import { IReservation as IEventReservation, IReservationForLegacy as IEventReservationFor } from '../reservation/event';
7
7
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
8
8
  export import IAgent = AssetTransactionFactory.IAgent;
9
9
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
@@ -9,7 +9,7 @@ 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 IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, IReservedTicket, ISubReservation as ISubReservation4eventReservation, ITicketType } from '../reservation/event';
12
+ import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationForLegacy as IEventReservationReservationFor, IReservedTicket, ISubReservation as ISubReservation4eventReservation, ITicketType } from '../reservation/event';
13
13
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
14
14
  import { ReservationStatusType } from '../reservationStatusType';
15
15
  import { ReservationType } from '../reservationType';
@@ -1,6 +1,6 @@
1
1
  import { ActionType } from '../actionType';
2
2
  import { IProvider, ITicket, IUnderName } from '../reservation';
3
- import { IIssuedThrough, IReservation as IEventReservation, IReservationFor, IPrice } from '../reservation/event';
3
+ import { IIssuedThrough, IReservation as IEventReservation, IReservationForLegacy, IPrice } from '../reservation/event';
4
4
  import { ReservationStatusType } from '../reservationStatusType';
5
5
  import { ReservationType } from '../reservationType';
6
6
  import { ISubReservationReservedTicket } from '../assetTransaction/reserve';
@@ -18,7 +18,7 @@ export interface IReservationPackage4informConfirmed {
18
18
  issuedThrough: IIssuedThrough;
19
19
  project: IProject;
20
20
  provider: IProvider;
21
- reservationFor: IReservationFor;
21
+ reservationFor: IReservationForLegacy;
22
22
  reservationNumber: string;
23
23
  reservationStatus: ReservationStatusType.ReservationConfirmed;
24
24
  subReservation: ISubReservation4inform[];
package/lib/order.d.ts CHANGED
@@ -84,8 +84,8 @@ export interface IReferencedInvoice {
84
84
  issuedThrough: IOrderPaymentMethodIssuedThrough;
85
85
  referencesOrder?: never;
86
86
  }
87
- export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
88
- export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
87
+ export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformedLegacy, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
88
+ export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
89
89
  workPerformed: IWorkPerformed;
90
90
  identifier?: never;
91
91
  alternativeHeadline?: never;
@@ -95,10 +95,10 @@ export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id
95
95
  /**
96
96
  * COAの場合の施設コンテンツ
97
97
  */
98
- export type ICOASuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
98
+ export type ICOASuperEvent = Pick<EventReservationFactory.IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
99
99
  workPerformed: IWorkPerformed;
100
100
  };
101
- export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent' | 'identifier' | 'coaInfo'> & {
101
+ export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
102
102
  superEvent: ISuperEvent;
103
103
  /**
104
104
  * COA予約でのみ使用されている
@@ -113,7 +113,7 @@ export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFo
113
113
  /**
114
114
  * COAの場合のイベント
115
115
  */
116
- export type ICOAEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent' | 'identifier' | 'coaInfo'> & {
116
+ export type ICOAEventAsReservationFor = Omit<EventReservationFactory.IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
117
117
  superEvent: ICOASuperEvent;
118
118
  /**
119
119
  * COA予約でのみ使用されている
@@ -14,14 +14,14 @@ import * as ReservationFactory from '../reservation';
14
14
  import { ReservationStatusType } from '../reservationStatusType';
15
15
  import { ReservationType } from '../reservationType';
16
16
  import { SortType } from '../sortType';
17
- export type IOptimizedWorkPerformed = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
17
+ export type IOptimizedWorkPerformedLegacy = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
18
18
  name?: string | IMultilingualString;
19
19
  };
20
20
  /**
21
21
  * 予約対象施設コンテンツ
22
22
  */
23
- export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
24
- workPerformed: IOptimizedWorkPerformed;
23
+ export type IOptimizedSuperEventLegacy = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
24
+ workPerformed: IOptimizedWorkPerformedLegacy;
25
25
  /**
26
26
  * COA予約でのみ使用
27
27
  */
@@ -42,13 +42,13 @@ export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id'
42
42
  /**
43
43
  * 予約対象イベント
44
44
  */
45
- export interface IReservationFor {
45
+ export interface IReservationForLegacy {
46
46
  endDate: Date;
47
47
  id: string;
48
48
  location: IEventLocation;
49
49
  name: IEventName;
50
50
  startDate: Date;
51
- superEvent: IOptimizedSuperEvent;
51
+ superEvent: IOptimizedSuperEventLegacy;
52
52
  typeOf: EventType.ScreeningEvent;
53
53
  doorTime?: Date;
54
54
  /**
@@ -60,6 +60,36 @@ export interface IReservationFor {
60
60
  */
61
61
  coaInfo?: never;
62
62
  }
63
+ export type IMinimizedWorkPerformed = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'version'> & {
64
+ duration?: never;
65
+ contentRating?: never;
66
+ name?: never;
67
+ };
68
+ /**
69
+ * 予約対象施設コンテンツ
70
+ */
71
+ export type IMinimizedSuperEvent = Pick<ISuperEvent, 'id' | 'location' | 'typeOf'> & {
72
+ workPerformed: IMinimizedWorkPerformed;
73
+ } & {
74
+ additionalProperty?: never;
75
+ name?: never;
76
+ soundFormat?: never;
77
+ headline?: never;
78
+ };
79
+ /**
80
+ * 最小化された予約対象イベント
81
+ * 2026-04-05~
82
+ */
83
+ export interface IReservationForMinimized {
84
+ id: string;
85
+ startDate: Date;
86
+ typeOf: EventType.ScreeningEvent;
87
+ endDate: Date;
88
+ doorTime?: Date;
89
+ location: IEventLocation;
90
+ superEvent: IMinimizedSuperEvent;
91
+ name?: never;
92
+ }
63
93
  export type ICategoryChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
64
94
  export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
65
95
  export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
@@ -105,7 +135,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
105
135
  bookingTime: Date;
106
136
  id: string;
107
137
  issuedThrough: IIssuedThrough;
108
- reservationFor: IReservationFor;
138
+ reservationFor: IReservationForMinimized;
109
139
  reservationNumber: string;
110
140
  reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
111
141
  reservedTicket: IReservedTicket;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "6.2.0-alpha.6",
3
+ "version": "6.2.0-alpha.8",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",