@chevre/factory 8.1.0-alpha.3 → 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;
@@ -4,6 +4,7 @@ import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
5
5
  import { IOrder } from '../order';
6
6
  import { PermitType } from '../permit';
7
+ import { PriceCurrency } from '../priceCurrency';
7
8
  import { IPropertyValue } from '../propertyValue';
8
9
  import { ITicketIssuedBy, TicketType, IUnderName as IReservationUnderName, IBroker, ISeat as IReservationSeat } from '../reservation';
9
10
  import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationForLegacy as IEventReservationReservationFor, IReservedTicket, ISubReservation as ISubReservation4eventReservation, ITicketType } from '../reservation/event';
@@ -279,8 +280,9 @@ export type ISubReservationReservedTicket = Omit<IReservedTicket, 'ticketType'>
279
280
  */
280
281
  ticketType: ITicketType;
281
282
  };
282
- export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'priceCurrency' | 'programMembershipUsed' | 'subReservation' | 'typeOf'> & {
283
+ export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'programMembershipUsed' | 'subReservation' | 'typeOf'> & {
283
284
  price?: IReservationPrice;
285
+ priceCurrency?: PriceCurrency;
284
286
  reservedTicket: ISubReservationReservedTicket;
285
287
  };
286
288
  export type IObjectSubReservation = IEventReservationAsSubReservation;
@@ -297,7 +299,10 @@ export type IUnderName = Pick<IReservationUnderName, 'email' | 'givenName' | 'fa
297
299
  export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'typeOf'> {
298
300
  underName?: IUnderName;
299
301
  acceptedOffer?: IAcceptedOffer4object[];
300
- issuedThrough?: IIssuedThrough;
302
+ /**
303
+ * 予約取引開始時に確定するはず
304
+ */
305
+ issuedThrough: IIssuedThrough;
301
306
  reservationFor?: IReservationFor;
302
307
  reservationNumber: string;
303
308
  reservationStatus: ReservationStatusType.ReservationPending;
@@ -109,7 +109,6 @@ import * as QuantitativeValueFactory from './quantitativeValue';
109
109
  import * as AccountingReportFactory from './report/accountingReport';
110
110
  import * as ReservationFactory from './reservation';
111
111
  import * as EventReservationFactory from './reservation/event';
112
- import * as ReservationPackageFactory from './reservation/reservationPackage';
113
112
  import { ReservationStatusType } from './reservationStatusType';
114
113
  import { ReservationType } from './reservationType';
115
114
  import { RESERVED_CODE_VALUES } from './reservedCodeValues';
@@ -424,15 +423,12 @@ export declare namespace reservation {
424
423
  export import eventReservation = EventReservationFactory;
425
424
  export import IProgramMembershipUsed = ReservationFactory.IProgramMembershipUsed;
426
425
  export import IBroker = ReservationFactory.IBroker;
427
- export import IIssuedThrough = ReservationFactory.IIssuedThrough;
428
426
  export import IProvider = ReservationFactory.IProvider;
429
427
  export import ISeat = ReservationFactory.ISeat;
430
428
  export import IUnderName = ReservationFactory.IUnderName;
431
429
  export import ITicketIssuedBy = ReservationFactory.ITicketIssuedBy;
432
430
  export import TicketType = ReservationFactory.TicketType;
433
- export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
434
431
  }
435
- export import reservationPackage = ReservationPackageFactory;
436
432
  export import reservationStatusType = ReservationStatusType;
437
433
  export import reservationType = ReservationType;
438
434
  export { RESERVED_CODE_VALUES };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.offerType = exports.offerItemCondition = exports.offerCatalog = 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.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregation = exports.additionalProperty = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.errorCode = exports.recipe = exports.errors = exports.unitPriceOffer = exports.project = exports.order = exports.eventOffer = exports.aggregateOffer = exports.offer = exports.eventSeries = exports.cognito = exports.waiter = void 0;
4
- exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = 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.reservationPackage = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = void 0;
4
+ exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = 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.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = void 0;
5
5
  exports.waiter = require("@waiter/factory");
6
6
  exports.cognito = require("./cognito");
7
7
  const AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
@@ -107,7 +107,6 @@ const QualitativeValueFactory = require("./qualitativeValue");
107
107
  const QuantitativeValueFactory = require("./quantitativeValue");
108
108
  const AccountingReportFactory = require("./report/accountingReport");
109
109
  const EventReservationFactory = require("./reservation/event");
110
- const ReservationPackageFactory = require("./reservation/reservationPackage");
111
110
  const reservationStatusType_1 = require("./reservationStatusType");
112
111
  const reservationType_1 = require("./reservationType");
113
112
  const reservedCodeValues_1 = require("./reservedCodeValues");
@@ -409,7 +408,6 @@ var reservation;
409
408
  (function (reservation) {
410
409
  reservation.eventReservation = EventReservationFactory;
411
410
  })(reservation || (exports.reservation = reservation = {}));
412
- exports.reservationPackage = ReservationPackageFactory;
413
411
  exports.reservationStatusType = reservationStatusType_1.ReservationStatusType;
414
412
  exports.reservationType = reservationType_1.ReservationType;
415
413
  var role;
@@ -17,7 +17,7 @@ import { PriceCurrency } from './priceCurrency';
17
17
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
18
18
  import { ProductType } from './product';
19
19
  import { IPropertyValue } from './propertyValue';
20
- import { ICategoryChargePriceComponent, IIssuedThrough, IMovieTicketTypeChargePriceComponent, IOptimizedSuperEventLegacy, IOptimizedWorkPerformedLegacy, IProgramMembershipUsedSearchConditions, IReservation as IRawReservation, IReservationForLegacy, IReservedTicket as IRawReservedTicket, ITicketType, IUnitPriceComponent, IServiceTypeOfIssuedThrough } from './reservation/event';
20
+ import { ICategoryChargePriceComponent, IIssuedThrough, IMovieTicketTypeChargePriceComponent, IOptimizedSuperEventLegacy, IOptimizedWorkPerformedLegacy, IReservation as IRawReservation, IReservationForLegacy, IReservedTicket as IRawReservedTicket, ITicketType, IUnitPriceComponent, IServiceTypeOfIssuedThrough } from './reservation/event';
21
21
  import { ReservationType } from './reservationType';
22
22
  import { ISeller as IBaseSeller } from './seller';
23
23
  import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
@@ -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
  /**
@@ -373,12 +373,7 @@ export interface ISortOrder {
373
373
  * 予約対象検索条件
374
374
  */
375
375
  export interface IReservationForSearchConditions {
376
- typeOfs?: EventType[];
377
376
  ids?: string[];
378
- /**
379
- * イベント名称
380
- */
381
- name?: string;
382
377
  /**
383
378
  * 開催中 from
384
379
  */
@@ -437,16 +432,6 @@ export interface ICustomerSearchConditions {
437
432
  $all?: IIdentifier;
438
433
  $in?: IIdentifier;
439
434
  };
440
- additionalProperty?: {
441
- $all?: IIdentifier;
442
- $in?: IIdentifier;
443
- };
444
- memberOf?: {
445
- membershipNumber?: {
446
- $eq?: string;
447
- $in?: string[];
448
- };
449
- };
450
435
  givenName?: string | {
451
436
  $eq?: string;
452
437
  $regex?: string;
@@ -503,36 +488,7 @@ export interface IPaymentMethodsSearchConditions {
503
488
  };
504
489
  }
505
490
  export interface IAcceptedOffersSearchConditions {
506
- $size?: number;
507
491
  itemOffered?: {
508
- /**
509
- * アイテムタイプ
510
- * 現状、EventReservation or Permit
511
- */
512
- typeOf?: {
513
- $in?: string[];
514
- };
515
- /**
516
- * アイテムコード
517
- * メンバーシップコード、ペイメントカード番号など
518
- */
519
- identifier?: {
520
- $in?: string[];
521
- };
522
- issuedThrough?: {
523
- /**
524
- * 発行サービスID
525
- */
526
- id?: {
527
- $in?: string[];
528
- };
529
- /**
530
- * 発行サービスタイプ
531
- */
532
- typeOf?: {
533
- $eq?: ProductType;
534
- };
535
- };
536
492
  /**
537
493
  * アイテムID
538
494
  * 予約IDなど
@@ -543,10 +499,6 @@ export interface IAcceptedOffersSearchConditions {
543
499
  * 予約番号
544
500
  */
545
501
  reservationNumbers?: string[];
546
- /**
547
- * 使用メンバーシップ
548
- */
549
- programMembershipUsed?: IProgramMembershipUsedSearchConditions;
550
502
  reservedTicket?: {
551
503
  /**
552
504
  * 予約チケット識別子
@@ -603,13 +555,6 @@ export interface ISearchConditions {
603
555
  * 顧客条件
604
556
  */
605
557
  customer?: ICustomerSearchConditions;
606
- /**
607
- * 識別子条件
608
- */
609
- identifier?: {
610
- $all?: IIdentifier;
611
- $in?: IIdentifier;
612
- };
613
558
  /**
614
559
  * 注文番号リスト
615
560
  */
@@ -631,19 +576,6 @@ export interface ISearchConditions {
631
576
  */
632
577
  $lte?: Date;
633
578
  };
634
- /**
635
- * 注文日時(から)
636
- * @deprecated Use orderDate.$gte
637
- */
638
- orderDateFrom?: Date;
639
- /**
640
- * 注文日時(まで)
641
- * @deprecated Use orderDate.$lte
642
- */
643
- orderDateThrough?: Date;
644
- orderedItem?: {
645
- $size?: number;
646
- };
647
579
  /**
648
580
  * 確認番号リスト
649
581
  */
@@ -656,8 +588,4 @@ export interface ISearchConditions {
656
588
  * 注文アイテム条件
657
589
  */
658
590
  acceptedOffers?: IAcceptedOffersSearchConditions;
659
- price?: {
660
- $gte?: number;
661
- $lte?: number;
662
- };
663
591
  }
@@ -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;
@@ -200,15 +201,10 @@ export interface IUnderNameSearchConditions {
200
201
  $options?: string;
201
202
  $regex?: string;
202
203
  };
203
- identifier?: {
204
- $all?: IPropertyValue<string>[];
205
- $in?: IPropertyValue<string>[];
206
- $nin?: IPropertyValue<string>[];
207
- $elemMatch?: any;
208
- };
209
- identifiers?: IPropertyValue<string>[];
210
204
  }
211
- export type IBrokerSearchConditions = IUnderNameSearchConditions;
205
+ export interface IBrokerSearchConditions {
206
+ id?: string;
207
+ }
212
208
  /**
213
209
  * 予約チケット検索条件
214
210
  */
@@ -243,27 +239,6 @@ export interface IStringSearchConditions {
243
239
  export interface ISortOrder {
244
240
  bookingTime?: SortType;
245
241
  }
246
- export interface IProgramMembershipUsedSearchConditions {
247
- identifier?: {
248
- $eq?: string;
249
- };
250
- issuedThrough?: {
251
- serviceType?: {
252
- codeValue?: {
253
- $eq?: string;
254
- };
255
- };
256
- };
257
- }
258
- export interface IPriceSearchConditions {
259
- priceComponent?: {
260
- appliesToMovieTicket?: {
261
- identifier?: {
262
- $eq?: string;
263
- };
264
- };
265
- };
266
- }
267
242
  /**
268
243
  * 検索条件
269
244
  */
@@ -332,17 +307,6 @@ export interface ISearchConditions {
332
307
  * 出席(入場)済かどうか
333
308
  */
334
309
  attended?: boolean;
335
- additionalProperty?: {
336
- $all?: IPropertyValue<string>[];
337
- $in?: IPropertyValue<string>[];
338
- $nin?: IPropertyValue<string>[];
339
- $elemMatch?: any;
340
- };
341
- /**
342
- * 使用メンバーシップ
343
- */
344
- programMembershipUsed?: IProgramMembershipUsedSearchConditions;
345
- price?: IPriceSearchConditions;
346
310
  /**
347
311
  * 予約対象
348
312
  */
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
@@ -1,9 +1,7 @@
1
- import { IPriceSpecification as IGenericPriceSpecification } from '../priceSpecification';
2
- import { PriceSpecificationType } from '../priceSpecificationType';
3
1
  import { IReservation as IBaseReservation } from '../reservation';
4
2
  import { ReservationType } from '../reservationType';
5
- export type IPriceSpecification = Omit<IGenericPriceSpecification<PriceSpecificationType>, 'project'>;
6
- export type ISubReservation = IBaseReservation<IPriceSpecification>;
3
+ type IPriceSpecification = never;
4
+ type ISubReservation = IBaseReservation<IPriceSpecification>;
7
5
  /**
8
6
  * 予約パッケージインターフェース
9
7
  */
@@ -14,3 +12,4 @@ export interface IReservation extends IBaseReservation<IPriceSpecification> {
14
12
  subReservation?: ISubReservation[];
15
13
  typeOf: ReservationType.ReservationPackage;
16
14
  }
15
+ export {};
@@ -3,10 +3,9 @@ import { OrganizationType } from './organizationType';
3
3
  import { PersonType } from './personType';
4
4
  import { ISeatingType } from './place/seat';
5
5
  import { PlaceType } from './placeType';
6
- import { PriceCurrency } from './priceCurrency';
7
6
  import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
8
7
  import { PriceSpecificationType } from './priceSpecificationType';
9
- import { IServiceType, ProductType } from './product';
8
+ import { IServiceType } from './product';
10
9
  import { IProgramMembership } from './programMembership';
11
10
  import { IProject } from './project';
12
11
  import { IPropertyValue } from './propertyValue';
@@ -124,19 +123,6 @@ export type IProgramMembershipIssuedThroughCreditCard = Pick<IProgramMembership,
124
123
  };
125
124
  export type IProgramMembershipUsed = IProgramMembershipIssuedThroughFaceToFace | IProgramMembershipIssuedThroughCreditCard;
126
125
  export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
127
- export interface IIssuedThrough {
128
- typeOf: ProductType.EventService;
129
- serviceType?: IServiceTypeOfIssuedThrough;
130
- /**
131
- * 興行ID
132
- * プロダクト管理をしている場合のみ
133
- */
134
- id?: string;
135
- /**
136
- * discontinue(2026-03-27~)
137
- */
138
- availableChannel?: never;
139
- }
140
126
  export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
141
127
  export interface IProvider {
142
128
  /**
@@ -180,16 +166,6 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
180
166
  * In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
181
167
  */
182
168
  broker?: IBroker;
183
- /**
184
- * Web page where reservation can be cancelled.
185
- */
186
- /**
187
- * Webpage where the passenger can check in.
188
- */
189
- /**
190
- * Web page where reservation can be confirmed.
191
- */
192
- issuedThrough?: IIssuedThrough;
193
169
  /**
194
170
  * Time the reservation was last modified.
195
171
  */
@@ -205,10 +181,6 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
205
181
  * Total price of the Reservation.
206
182
  */
207
183
  price?: T;
208
- /**
209
- * The currency (in 3-letter ISO 4217 format) of the Reservation's price.
210
- */
211
- priceCurrency?: PriceCurrency;
212
184
  /**
213
185
  * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.
214
186
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.1.0-alpha.3",
3
+ "version": "8.1.0-alpha.5",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [