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

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.
@@ -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;
@@ -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';
@@ -432,7 +431,6 @@ export declare namespace reservation {
432
431
  export import TicketType = ReservationFactory.TicketType;
433
432
  export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
434
433
  }
435
- export import reservationPackage = ReservationPackageFactory;
436
434
  export import reservationStatusType = ReservationStatusType;
437
435
  export import reservationType = ReservationType;
438
436
  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';
@@ -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
  }
@@ -1,6 +1,6 @@
1
1
  import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
2
2
  import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
3
- import { ICustomer, IOrder, ISeller } from '../order';
3
+ import { IOrder, ISeller, IReferencedInvoice } from '../order';
4
4
  import { OrganizationType } from '../organizationType';
5
5
  export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
6
6
  export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
@@ -11,14 +11,17 @@ export type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDa
11
11
  object: IRefundActionObject[];
12
12
  };
13
13
  export type IAction = IOptimizedPayAction | IOptimizedRefundAction;
14
- export type IOptimizedCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
15
14
  /**
16
15
  * 経理レポートドキュメントに保管される注文
17
16
  * optimize(2026-05-06~)
18
17
  */
19
- export type IOrderAsMainEntity = Pick<IOrder, 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'paymentMethods' | 'price' | 'priceCurrency' | 'typeOf'> & {
20
- customer: IOptimizedCustomer;
18
+ export type IOrderAsMainEntity = Pick<IOrder, 'id' | 'orderDate' | 'orderNumber' | 'typeOf'> & {
21
19
  seller: Pick<ISeller, 'id' | 'name' | 'typeOf'>;
20
+ paymentMethods: Pick<IReferencedInvoice, 'paymentMethodId'>[];
21
+ confirmationNumber?: never;
22
+ price?: never;
23
+ priceCurrency?: never;
24
+ customer?: never;
22
25
  broker?: never;
23
26
  orderedItem?: never;
24
27
  acceptedOffers?: never;
@@ -200,15 +200,10 @@ export interface IUnderNameSearchConditions {
200
200
  $options?: string;
201
201
  $regex?: string;
202
202
  };
203
- identifier?: {
204
- $all?: IPropertyValue<string>[];
205
- $in?: IPropertyValue<string>[];
206
- $nin?: IPropertyValue<string>[];
207
- $elemMatch?: any;
208
- };
209
- identifiers?: IPropertyValue<string>[];
210
203
  }
211
- export type IBrokerSearchConditions = IUnderNameSearchConditions;
204
+ export interface IBrokerSearchConditions {
205
+ id?: string;
206
+ }
212
207
  /**
213
208
  * 予約チケット検索条件
214
209
  */
@@ -243,27 +238,6 @@ export interface IStringSearchConditions {
243
238
  export interface ISortOrder {
244
239
  bookingTime?: SortType;
245
240
  }
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
241
  /**
268
242
  * 検索条件
269
243
  */
@@ -332,17 +306,6 @@ export interface ISearchConditions {
332
306
  * 出席(入場)済かどうか
333
307
  */
334
308
  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
309
  /**
347
310
  * 予約対象
348
311
  */
@@ -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,7 +3,6 @@ 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
8
  import { IServiceType, ProductType } from './product';
@@ -205,10 +204,6 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
205
204
  * Total price of the Reservation.
206
205
  */
207
206
  price?: T;
208
- /**
209
- * The currency (in 3-letter ISO 4217 format) of the Reservation's price.
210
- */
211
- priceCurrency?: PriceCurrency;
212
207
  /**
213
208
  * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.
214
209
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.1.0-alpha.2",
3
+ "version": "8.1.0-alpha.4",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [