@chevre/factory 8.1.0-alpha.4 → 8.1.0-alpha.5

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.
@@ -3,7 +3,6 @@ import { ActionType } from '../../actionType';
3
3
  import { AssetTransactionType } from '../../assetTransactionType';
4
4
  import { EventType } from '../../eventType';
5
5
  import { IOrder } from '../../order';
6
- import { ProductType } from '../../product';
7
6
  import { IAvailableReservationStatusType } from '../../reservation';
8
7
  import { ReservationType } from '../../reservationType';
9
8
  import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
@@ -23,9 +22,7 @@ export interface IReservationPackageAsObject {
23
22
  }
24
23
  export interface IEventReservationAsObject {
25
24
  id: string;
26
- issuedThrough?: {
27
- typeOf?: ProductType.EventService;
28
- };
25
+ issuedThrough?: never;
29
26
  reservationFor: {
30
27
  typeOf: EventType.ScreeningEvent;
31
28
  id: string;
@@ -299,7 +299,10 @@ export type IUnderName = Pick<IReservationUnderName, 'email' | 'givenName' | 'fa
299
299
  export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'typeOf'> {
300
300
  underName?: IUnderName;
301
301
  acceptedOffer?: IAcceptedOffer4object[];
302
- issuedThrough?: IIssuedThrough;
302
+ /**
303
+ * 予約取引開始時に確定するはず
304
+ */
305
+ issuedThrough: IIssuedThrough;
303
306
  reservationFor?: IReservationFor;
304
307
  reservationNumber: string;
305
308
  reservationStatus: ReservationStatusType.ReservationPending;
@@ -423,13 +423,11 @@ export declare namespace reservation {
423
423
  export import eventReservation = EventReservationFactory;
424
424
  export import IProgramMembershipUsed = ReservationFactory.IProgramMembershipUsed;
425
425
  export import IBroker = ReservationFactory.IBroker;
426
- export import IIssuedThrough = ReservationFactory.IIssuedThrough;
427
426
  export import IProvider = ReservationFactory.IProvider;
428
427
  export import ISeat = ReservationFactory.ISeat;
429
428
  export import IUnderName = ReservationFactory.IUnderName;
430
429
  export import ITicketIssuedBy = ReservationFactory.ITicketIssuedBy;
431
430
  export import TicketType = ReservationFactory.TicketType;
432
- export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
433
431
  }
434
432
  export import reservationStatusType = ReservationStatusType;
435
433
  export import reservationType = ReservationType;
@@ -171,7 +171,7 @@ export type ICOAReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSe
171
171
  coaTicketInfo?: ICOATicketInfoWithDetails;
172
172
  coaReserveAmount?: number;
173
173
  };
174
- export interface ICOAIssuedThrough extends Pick<IIssuedThrough, 'typeOf' | 'availableChannel'> {
174
+ export interface ICOAIssuedThrough extends Pick<IIssuedThrough, 'typeOf'> {
175
175
  typeOf: ProductType.EventService;
176
176
  serviceType?: never;
177
177
  /**
@@ -10,7 +10,7 @@ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../p
10
10
  import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from '../priceSpecification/unitPriceSpecification';
11
11
  import { ProductType } from '../product';
12
12
  import { IPropertyValue } from '../propertyValue';
13
- import { TicketType, ISeat as IReservationSeat, IServiceTypeOfIssuedThrough, IIssuedThrough as IReservationIssuedThrough, IReservation as IBaseReservation, IAvailableReservationStatusType, ITicket } from '../reservation';
13
+ import { TicketType, ISeat as IReservationSeat, IServiceTypeOfIssuedThrough, IReservation as IBaseReservation, IAvailableReservationStatusType, ITicket } from '../reservation';
14
14
  import { ReservationStatusType } from '../reservationStatusType';
15
15
  import { ReservationType } from '../reservationType';
16
16
  import { SortType } from '../sortType';
@@ -112,7 +112,7 @@ export interface ISubReservation {
112
112
  };
113
113
  }
114
114
  export { IServiceTypeOfIssuedThrough };
115
- export interface IIssuedThrough extends IReservationIssuedThrough {
115
+ export interface IIssuedThrough {
116
116
  typeOf: ProductType.EventService;
117
117
  serviceType?: IServiceTypeOfIssuedThrough;
118
118
  /**
@@ -143,13 +143,14 @@ export type IReservedTicket = ITicket & {
143
143
  export interface IReservation extends IBaseReservation<IPriceSpecification> {
144
144
  bookingTime: Date;
145
145
  id: string;
146
- issuedThrough: IIssuedThrough;
147
146
  reservationFor: IReservationForMinimized;
148
147
  reservationNumber: string;
149
148
  reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
150
149
  reservedTicket: IReservedTicket;
151
150
  subReservation?: ISubReservation[];
152
151
  typeOf: ReservationType.EventReservation;
152
+ issuedThrough?: never;
153
+ priceCurrency?: never;
153
154
  }
154
155
  export interface IReservationForSearchConditions {
155
156
  typeOf?: EventType;
@@ -5,7 +5,7 @@ import { ISeatingType } from './place/seat';
5
5
  import { PlaceType } from './placeType';
6
6
  import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
7
7
  import { PriceSpecificationType } from './priceSpecificationType';
8
- import { IServiceType, ProductType } from './product';
8
+ import { IServiceType } from './product';
9
9
  import { IProgramMembership } from './programMembership';
10
10
  import { IProject } from './project';
11
11
  import { IPropertyValue } from './propertyValue';
@@ -123,19 +123,6 @@ export type IProgramMembershipIssuedThroughCreditCard = Pick<IProgramMembership,
123
123
  };
124
124
  export type IProgramMembershipUsed = IProgramMembershipIssuedThroughFaceToFace | IProgramMembershipIssuedThroughCreditCard;
125
125
  export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
126
- export interface IIssuedThrough {
127
- typeOf: ProductType.EventService;
128
- serviceType?: IServiceTypeOfIssuedThrough;
129
- /**
130
- * 興行ID
131
- * プロダクト管理をしている場合のみ
132
- */
133
- id?: string;
134
- /**
135
- * discontinue(2026-03-27~)
136
- */
137
- availableChannel?: never;
138
- }
139
126
  export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
140
127
  export interface IProvider {
141
128
  /**
@@ -179,16 +166,6 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
179
166
  * In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
180
167
  */
181
168
  broker?: IBroker;
182
- /**
183
- * Web page where reservation can be cancelled.
184
- */
185
- /**
186
- * Webpage where the passenger can check in.
187
- */
188
- /**
189
- * Web page where reservation can be confirmed.
190
- */
191
- issuedThrough?: IIssuedThrough;
192
169
  /**
193
170
  * Time the reservation was last modified.
194
171
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.1.0-alpha.4",
3
+ "version": "8.1.0-alpha.5",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [