@chevre/factory 8.1.0-alpha.7 → 8.2.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.
@@ -3,11 +3,11 @@ import { ActionType } from '../actionType';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { IOrder } from '../order';
5
5
  import { IAvailableReservationStatusType } from '../reservation';
6
- import { IReservationForLegacy as IEventReservationFor } from '../reservation/event';
6
+ import { IReservationForMinimized } from '../reservation/event';
7
7
  import { ReservationType } from '../reservationType';
8
8
  import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
9
9
  export type IAgent = IParticipantAsProject;
10
- export type IReservationFor = Pick<IEventReservationFor, 'id' | 'typeOf'> & {
10
+ export type IReservationFor = Pick<IReservationForMinimized, 'id' | 'typeOf'> & {
11
11
  optimized: boolean;
12
12
  };
13
13
  export interface IObject {
@@ -3,7 +3,7 @@ import { IAgent, ISearchConditions as IBaseSearchConditions, IStartParams as IBa
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, IReservationForLegacy as IEventReservationFor } from '../reservation/event';
6
+ import { IReservation as IEventReservation, IReservationForMinimized as IEventReservationFor } from '../reservation/event';
7
7
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
8
8
  export { IAgent };
9
9
  export type IStartParamsWithoutDetail = IBaseStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
@@ -2,17 +2,74 @@ import { IInstrument as IReserveActionInstrument } from '../action/reserve';
2
2
  import { IAgent, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../assetTransaction';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
5
- import { IOrder } from '../order';
5
+ import { IWorkPerformed } from '../event/eventSeries';
6
+ import { ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
7
+ import { EventType } from '../eventType';
8
+ import { IMultilingualString } from '../multilingualString';
9
+ import { ICategory as IOfferCategory, IValidRateLimit } from '../offer';
10
+ import { OfferType } from '../offerType';
11
+ import { OrderType } from '../orderType';
6
12
  import { PermitType } from '../permit';
7
13
  import { PriceCurrency } from '../priceCurrency';
14
+ import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
15
+ import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
16
+ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
17
+ import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from '../priceSpecification/unitPriceSpecification';
18
+ import { IServiceType, ProductType } from '../product';
8
19
  import { IPropertyValue } from '../propertyValue';
9
20
  import { ITicketIssuedBy, TicketType, IUnderName as IReservationUnderName, IBroker, ISeat as IReservationSeat } from '../reservation';
10
- import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationForLegacy as IEventReservationReservationFor, IReservedTicket, ISubReservation as ISubReservation4eventReservation, ITicketType } from '../reservation/event';
21
+ import { IReservation as IEventReservation, IReservedTicket, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
11
22
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
12
23
  import { ReservationStatusType } from '../reservationStatusType';
13
24
  import { ReservationType } from '../reservationType';
14
25
  import { PaymentServiceType } from '../service/paymentService';
15
26
  import { IUnitPriceOffer } from '../unitPriceOffer';
27
+ export type IOptimizedWorkPerformedLegacy = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
28
+ name?: string | IMultilingualString;
29
+ };
30
+ /**
31
+ * 予約対象施設コンテンツ
32
+ */
33
+ export type IOptimizedSuperEventLegacy = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
34
+ workPerformed: IOptimizedWorkPerformedLegacy;
35
+ /**
36
+ * COA予約でのみ使用
37
+ */
38
+ identifier?: never;
39
+ /**
40
+ * COA予約でのみ使用
41
+ */
42
+ alternativeHeadline?: never;
43
+ /**
44
+ * COA予約でのみ使用
45
+ */
46
+ duration?: never;
47
+ /**
48
+ * COA予約でのみ使用
49
+ */
50
+ coaInfo?: never;
51
+ };
52
+ /**
53
+ * 予約対象イベント
54
+ */
55
+ export interface IReservationForLegacy {
56
+ endDate: Date;
57
+ id: string;
58
+ location: IEventLocation;
59
+ name: IEventName;
60
+ startDate: Date;
61
+ superEvent: IOptimizedSuperEventLegacy;
62
+ typeOf: EventType.ScreeningEvent;
63
+ doorTime?: Date;
64
+ /**
65
+ * COA予約でのみ使用
66
+ */
67
+ identifier?: never;
68
+ /**
69
+ * COA予約でのみ使用
70
+ */
71
+ coaInfo?: never;
72
+ }
16
73
  export { IAgent };
17
74
  export type IInstrument = IReserveActionInstrument;
18
75
  export type IStartParamsWithoutDetail = IBaseStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
@@ -191,7 +248,11 @@ export interface IAcceptedOffer4object {
191
248
  id: string;
192
249
  itemOffered: IAcceptedTicketOfferItemOffered4object;
193
250
  }
194
- export type IOrderAsReservePurpose = Pick<IOrder, 'confirmationNumber' | 'orderNumber' | 'typeOf'>;
251
+ export interface IOrderAsReservePurpose {
252
+ confirmationNumber: string;
253
+ orderNumber: string;
254
+ typeOf: OrderType;
255
+ }
195
256
  export interface IPotentialActionsParams {
196
257
  reserve?: {
197
258
  purpose?: IOrderAsReservePurpose;
@@ -273,21 +334,48 @@ export interface IObjectWithoutDetail {
273
334
  id: string;
274
335
  };
275
336
  }
276
- export type IReservationFor = IEventReservationReservationFor;
337
+ export type IReservationFor = IReservationForLegacy;
338
+ /**
339
+ * 予約取引に保管されるticketType
340
+ */
341
+ export interface ITicketType {
342
+ additionalProperty?: IPropertyValue<string>[];
343
+ category?: IOfferCategory;
344
+ color?: string;
345
+ description?: string | IMultilingualString;
346
+ id?: string;
347
+ identifier: string;
348
+ name?: IMultilingualString;
349
+ typeOf: OfferType.Offer;
350
+ validRateLimit?: IValidRateLimit;
351
+ }
277
352
  export type ISubReservationReservedTicket = Omit<IReservedTicket, 'ticketType'> & {
278
353
  /**
279
354
  * 予約側ではticketType廃止予定であり、予約取引には残す
280
355
  */
281
356
  ticketType: ITicketType;
282
357
  };
358
+ export type ICategoryChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
359
+ export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
360
+ export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
361
+ export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
362
+ export type IPrice = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
283
363
  export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'programMembershipUsed' | 'subReservation' | 'typeOf'> & {
284
364
  numSeats?: number;
285
- price?: IReservationPrice;
365
+ price?: IPrice;
286
366
  priceCurrency?: PriceCurrency;
287
367
  reservedTicket: ISubReservationReservedTicket;
288
368
  };
289
369
  export type IObjectSubReservation = IEventReservationAsSubReservation;
290
- export type IIssuedThrough = IEventReservationIssuedThrough;
370
+ export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
371
+ export interface IIssuedThrough {
372
+ typeOf: ProductType.EventService;
373
+ serviceType?: IServiceTypeOfIssuedThrough;
374
+ /**
375
+ * 興行id
376
+ */
377
+ id: string;
378
+ }
291
379
  /**
292
380
  * 予約取引に保管される予約者情報
293
381
  */
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
@@ -1,6 +1,7 @@
1
1
  import { ActionType } from '../actionType';
2
- import { IProvider, ITicket, IUnderName } from '../reservation';
3
- import { IIssuedThrough, IReservation as IEventReservation, IReservationForLegacy, IPrice } from '../reservation/event';
2
+ import { IIssuedThrough, IPrice, IReservationForLegacy } from '../assetTransaction/reserve';
3
+ import { IProvider, IUnderName } from '../reservation';
4
+ import { IReservation as IEventReservation } from '../reservation/event';
4
5
  import { ReservationStatusType } from '../reservationStatusType';
5
6
  import { ReservationType } from '../reservationType';
6
7
  import { ISubReservationReservedTicket } from '../assetTransaction/reserve';
@@ -48,7 +49,9 @@ export interface IReservation4informCheckedIn {
48
49
  /**
49
50
  * 発券通知がarrayの場合、ひとつめのみreservedTicket.ticketTokenが含まれる(2024-10-30~)
50
51
  */
51
- reservedTicket?: Pick<ITicket, 'ticketToken'>;
52
+ reservedTicket?: {
53
+ ticketToken?: string;
54
+ };
52
55
  reservationNumber?: never;
53
56
  reservationStatus?: never;
54
57
  attended?: never;
@@ -66,7 +69,9 @@ export interface IReservationPackage4informCheckedIn {
66
69
  /**
67
70
  * 発券通知がarrayの場合、ひとつめのみreservedTicket.ticketTokenが含まれる(2024-10-30~)
68
71
  */
69
- reservedTicket?: Pick<ITicket, 'ticketToken'>;
72
+ reservedTicket?: {
73
+ ticketToken?: string;
74
+ };
70
75
  subReservation: Pick<ISubReservation4inform, 'id'>[];
71
76
  id?: never;
72
77
  reservationStatus?: never;
@@ -1,5 +1,6 @@
1
1
  import type { COAFactory } from '@coasystems/factory';
2
2
  import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
3
+ import { ICategoryChargePriceComponent, IMovieTicketTypeChargePriceComponent, IUnitPriceComponent, IIssuedThrough, IServiceTypeOfIssuedThrough, ITicketType, IOptimizedSuperEventLegacy, IOptimizedWorkPerformedLegacy, IReservationForLegacy } from './assetTransaction/reserve';
3
4
  import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
4
5
  import { ICustomer as ICustomerOrganization } from './customer';
5
6
  import { ICOAInfo, ISuperEvent as IEventSeries } from './event/screeningEvent';
@@ -8,6 +9,7 @@ import { IMonetaryAmount } from './monetaryAmount';
8
9
  import { IMultilingualString } from './multilingualString';
9
10
  import { IOffer } from './offer';
10
11
  import { OrderStatus } from './orderStatus';
12
+ import { OrderType } from './orderType';
11
13
  import { OrganizationType } from './organizationType';
12
14
  import { PaymentStatusType } from './paymentStatusType';
13
15
  import { IPerson, IProfile } from './person';
@@ -17,19 +19,17 @@ import { PriceCurrency } from './priceCurrency';
17
19
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
18
20
  import { ProductType } from './product';
19
21
  import { IPropertyValue } from './propertyValue';
20
- import { ICategoryChargePriceComponent, IIssuedThrough, IMovieTicketTypeChargePriceComponent, IOptimizedSuperEventLegacy, IOptimizedWorkPerformedLegacy, IReservation as IRawReservation, IReservationForLegacy, IReservedTicket as IRawReservedTicket, ITicketType, IUnitPriceComponent, IServiceTypeOfIssuedThrough } from './reservation/event';
22
+ import { IReservation as IRawReservation, IReservedTicket as IRawReservedTicket } from './reservation/event';
21
23
  import { ReservationType } from './reservationType';
22
24
  import { ISeller as IBaseSeller } from './seller';
23
25
  import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
24
26
  import { SortType } from './sortType';
25
27
  import { UnitCode } from './unitCode';
28
+ export { OrderType };
26
29
  export interface IProject {
27
30
  typeOf: OrganizationType.Project;
28
31
  id: string;
29
32
  }
30
- export declare enum OrderType {
31
- Order = "Order"
32
- }
33
33
  export interface IOrderPaymentMethodIssuedThrough {
34
34
  typeOf: PaymentServiceType;
35
35
  /**
@@ -151,27 +151,39 @@ export type ICOATicketInfoWithDetails = COAFactory.reserve.IUpdReserveTicket & {
151
151
  */
152
152
  usePoint: number;
153
153
  };
154
- export type IReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
155
- 'ticketNumber'> & {
156
- ticketType: ITicketType;
154
+ export type ITicketTypeInOrder = Pick<ITicketType, 'id' | 'identifier' | 'name' | 'typeOf' | 'additionalProperty' | 'description'>;
155
+ export type IReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier'> & {
156
+ ticketType: ITicketTypeInOrder;
157
+ ticketNumber?: never;
157
158
  dateIssued?: never;
158
159
  ticketToken?: never;
159
160
  coaTicketInfo?: never;
160
161
  coaReserveAmount?: never;
161
162
  };
163
+ export type ICOATicketType = Pick<ITicketType, 'id' | 'identifier' | 'name' | 'typeOf'>;
162
164
  /**
163
165
  * COAの場合の予約チケット
164
166
  */
165
167
  export type ICOAReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
166
- 'ticketNumber' | 'dateIssued' | 'ticketToken'> & {
167
- ticketType: ITicketType;
168
+ 'dateIssued'> & {
169
+ ticketType: ICOATicketType;
168
170
  /**
169
171
  * COA券種情報
170
172
  */
171
173
  coaTicketInfo?: ICOATicketInfoWithDetails;
172
174
  coaReserveAmount?: number;
175
+ /**
176
+ * The unique identifier for the ticket.
177
+ */
178
+ ticketNumber?: string;
179
+ /**
180
+ * If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
181
+ * such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
182
+ * "aztecCode:AB34" (Aztec codes), "barcodeEAN:1234" (EAN codes) and "barcodeUPCA:1234" (UPCA codes).
183
+ */
184
+ ticketToken?: string;
173
185
  };
174
- export interface ICOAIssuedThrough extends Pick<IIssuedThrough, 'typeOf'> {
186
+ export interface ICOAIssuedThrough {
175
187
  typeOf: ProductType.EventService;
176
188
  serviceType?: never;
177
189
  /**
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderType = void 0;
4
- var OrderType;
5
- (function (OrderType) {
6
- OrderType["Order"] = "Order";
7
- })(OrderType || (exports.OrderType = OrderType = {}));
4
+ const orderType_1 = require("./orderType");
5
+ Object.defineProperty(exports, "OrderType", { enumerable: true, get: function () { return orderType_1.OrderType; } });
@@ -0,0 +1,3 @@
1
+ export declare enum OrderType {
2
+ Order = "Order"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderType = void 0;
4
+ var OrderType;
5
+ (function (OrderType) {
6
+ OrderType["Order"] = "Order";
7
+ })(OrderType || (exports.OrderType = OrderType = {}));
@@ -58,7 +58,6 @@ export interface IReportDocument {
58
58
  export interface ISearchConditions {
59
59
  limit?: number;
60
60
  page?: number;
61
- $unwindAcceptedOffers?: '1';
62
61
  project?: {
63
62
  id?: {
64
63
  $eq?: string;
@@ -1,65 +1,10 @@
1
- import { ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
1
+ import { ILocation as IEventLocation, ISuperEvent } from '../event/screeningEvent';
2
2
  import { IWorkPerformed } from '../event/eventSeries';
3
3
  import { EventType } from '../eventType';
4
- import { IMultilingualString } from '../multilingualString';
5
- import { ICategory as IOfferCategory, IValidRateLimit } from '../offer';
6
- import { OfferType } from '../offerType';
7
- import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
8
- import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
9
- import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
10
- import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from '../priceSpecification/unitPriceSpecification';
11
- import { ProductType } from '../product';
12
- import { IPropertyValue } from '../propertyValue';
13
- import { TicketType, ISeat as IReservationSeat, IServiceTypeOfIssuedThrough, IReservation as IBaseReservation, IAvailableReservationStatusType, ITicket } from '../reservation';
4
+ import { TicketType, ISeat as IReservationSeat, IReservation as IBaseReservation, IAvailableReservationStatusType, ITicket } from '../reservation';
14
5
  import { ReservationStatusType } from '../reservationStatusType';
15
6
  import { ReservationType } from '../reservationType';
16
7
  import { SortType } from '../sortType';
17
- export type IOptimizedWorkPerformedLegacy = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
18
- name?: string | IMultilingualString;
19
- };
20
- /**
21
- * 予約対象施設コンテンツ
22
- */
23
- export type IOptimizedSuperEventLegacy = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
24
- workPerformed: IOptimizedWorkPerformedLegacy;
25
- /**
26
- * COA予約でのみ使用
27
- */
28
- identifier?: never;
29
- /**
30
- * COA予約でのみ使用
31
- */
32
- alternativeHeadline?: never;
33
- /**
34
- * COA予約でのみ使用
35
- */
36
- duration?: never;
37
- /**
38
- * COA予約でのみ使用
39
- */
40
- coaInfo?: never;
41
- };
42
- /**
43
- * 予約対象イベント
44
- */
45
- export interface IReservationForLegacy {
46
- endDate: Date;
47
- id: string;
48
- location: IEventLocation;
49
- name: IEventName;
50
- startDate: Date;
51
- superEvent: IOptimizedSuperEventLegacy;
52
- typeOf: EventType.ScreeningEvent;
53
- doorTime?: Date;
54
- /**
55
- * COA予約でのみ使用
56
- */
57
- identifier?: never;
58
- /**
59
- * COA予約でのみ使用
60
- */
61
- coaInfo?: never;
62
- }
63
8
  export type IMinimizedWorkPerformed = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'version'> & {
64
9
  duration?: never;
65
10
  contentRating?: never;
@@ -99,48 +44,24 @@ export interface IReservationForMinimized {
99
44
  name?: never;
100
45
  doorTime?: never;
101
46
  }
102
- export type ICategoryChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
103
- export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
104
- export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
105
- export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
106
- export type IPrice = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
107
- export type IPriceSpecification = never;
108
47
  export interface ISubReservation {
109
48
  reservedTicket: {
110
49
  typeOf: TicketType;
111
50
  ticketedSeat: IReservationSeat;
112
51
  };
113
52
  }
114
- export { IServiceTypeOfIssuedThrough };
115
- export interface IIssuedThrough {
116
- typeOf: ProductType.EventService;
117
- serviceType?: IServiceTypeOfIssuedThrough;
118
- /**
119
- * 興行id
120
- */
121
- id: string;
122
- }
123
- export interface ITicketType {
124
- additionalProperty?: IPropertyValue<string>[];
125
- category?: IOfferCategory;
126
- color?: string;
127
- description?: string | IMultilingualString;
128
- id?: string;
129
- identifier: string;
130
- name?: IMultilingualString;
131
- typeOf: OfferType.Offer;
132
- validRateLimit?: IValidRateLimit;
133
- }
134
53
  export type IReservedTicket = ITicket & {
135
54
  /**
136
55
  * 予約ドキュメント内のticketTypeは廃止済(2026-03-26~)
137
56
  */
138
57
  ticketType?: never;
58
+ ticketNumber?: never;
59
+ ticketToken?: never;
139
60
  };
140
61
  /**
141
62
  * イベント予約
142
63
  */
143
- export interface IReservation extends IBaseReservation<IPriceSpecification> {
64
+ export interface IReservation extends IBaseReservation {
144
65
  bookingTime: Date;
145
66
  id: string;
146
67
  reservationFor: IReservationForMinimized;
@@ -221,10 +142,6 @@ export interface IReservedTicketSearchConditions {
221
142
  $in?: string[];
222
143
  };
223
144
  };
224
- /**
225
- * discontinue ticketType(2026-05-06~)
226
- */
227
- ticketType?: never;
228
145
  }
229
146
  export interface IStringSearchConditions {
230
147
  $eq?: string;
@@ -1,11 +1,10 @@
1
1
  import { IReservation as IBaseReservation } from '../reservation';
2
2
  import { ReservationType } from '../reservationType';
3
- type IPriceSpecification = never;
4
- type ISubReservation = IBaseReservation<IPriceSpecification>;
3
+ type ISubReservation = IBaseReservation;
5
4
  /**
6
5
  * 予約パッケージインターフェース
7
6
  */
8
- export interface IReservation extends IBaseReservation<IPriceSpecification> {
7
+ export interface IReservation extends IBaseReservation {
9
8
  /**
10
9
  * The individual reservations included in the package. Typically a repeated property.
11
10
  */
@@ -5,7 +5,6 @@ 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 } from './product';
9
8
  import { IProgramMembership } from './programMembership';
10
9
  import { IProject } from './project';
11
10
  import { IPropertyValue } from './propertyValue';
@@ -90,26 +89,17 @@ export interface ITicket {
90
89
  * 座席指定でない場合、この値は存在しない
91
90
  */
92
91
  ticketedSeat?: ISeat;
93
- /**
94
- * The unique identifier for the ticket.
95
- */
96
- ticketNumber?: string;
97
- /**
98
- * If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
99
- * such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
100
- * "aztecCode:AB34" (Aztec codes), "barcodeEAN:1234" (EAN codes) and "barcodeUPCA:1234" (UPCA codes).
101
- */
102
- ticketToken?: string;
103
92
  }
104
93
  export interface IBroker {
105
94
  typeOf: PersonType.Person;
106
95
  id: string;
107
- name?: string;
108
96
  }
109
97
  export type IProgramMembershipIssuedThroughFaceToFace = Pick<IProgramMembership, 'typeOf'> & {
110
98
  identifier: string;
111
99
  issuedThrough: {
112
- serviceType: Pick<IServiceType, 'codeValue'>;
100
+ serviceType: {
101
+ codeValue: string;
102
+ };
113
103
  typeOf: PaymentServiceType.FaceToFace;
114
104
  };
115
105
  };
@@ -117,12 +107,13 @@ export type IProgramMembershipIssuedThroughCreditCard = Pick<IProgramMembership,
117
107
  identifier: string;
118
108
  issuedThrough: {
119
109
  id: string;
120
- serviceType: Pick<IServiceType, 'codeValue'>;
110
+ serviceType: {
111
+ codeValue: string;
112
+ };
121
113
  typeOf: PaymentServiceType.CreditCard;
122
114
  };
123
115
  };
124
116
  export type IProgramMembershipUsed = IProgramMembershipIssuedThroughFaceToFace | IProgramMembershipIssuedThroughCreditCard;
125
- export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
126
117
  export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
127
118
  export interface IProvider {
128
119
  /**
@@ -139,7 +130,7 @@ export interface IProvider {
139
130
  * For offers of tickets, restaurant reservations, flights, or rental cars, use Offer.
140
131
  * {@link https://schema.org/Reservation}
141
132
  */
142
- export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
133
+ export interface IReservation {
143
134
  project: Pick<IProject, 'id' | 'typeOf'>;
144
135
  /**
145
136
  * type of object
@@ -166,10 +157,6 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
166
157
  * Time the reservation was last modified.
167
158
  */
168
159
  modifiedTime?: Date;
169
- /**
170
- * Total price of the Reservation.
171
- */
172
- price?: T;
173
160
  /**
174
161
  * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.
175
162
  */
@@ -6,7 +6,6 @@ exports.ReservationType = void 0;
6
6
  */
7
7
  var ReservationType;
8
8
  (function (ReservationType) {
9
- // BusReservation = 'BusReservation',
10
9
  ReservationType["EventReservation"] = "EventReservation";
11
10
  ReservationType["ReservationPackage"] = "ReservationPackage";
12
11
  })(ReservationType || (exports.ReservationType = ReservationType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.1.0-alpha.7",
3
+ "version": "8.2.0-alpha.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [