@chevre/factory 4.259.0-alpha.7 → 4.259.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.
@@ -18,7 +18,7 @@ import { PlaceType } from './placeType';
18
18
  import { PriceCurrency } from './priceCurrency';
19
19
  import { IProduct, ProductType } from './product';
20
20
  import { IPropertyValue } from './propertyValue';
21
- import { IProgramMembershipUsedSearchConditions } from './reservation';
21
+ import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
22
22
  import * as EventReservationFactory from './reservation/event';
23
23
  import { ReservationType } from './reservationType';
24
24
  import { IServiceType } from './serviceType';
@@ -83,7 +83,21 @@ export interface IDiscount {
83
83
  */
84
84
  discountCurrency: string;
85
85
  }
86
- export declare type IReservation = Omit<EventReservationFactory.IReservation, 'attended' | 'broker' | 'checkedIn' | 'modifiedTime' | 'previousReservationStatus' | 'price' | 'priceCurrency' | 'reservationStatus' | 'subReservation' | 'underName'>;
86
+ export declare type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
87
+ export declare type ISuperEvent = Omit<EventReservationFactory.IOptimizedSuperEvent, 'workPerformed'> & {
88
+ workPerformed: IWorkPerformed;
89
+ };
90
+ export declare type IReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
91
+ superEvent: ISuperEvent;
92
+ };
93
+ export declare type IReservedTicketType = Pick<ITicketType, 'additionalProperty' | 'description' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'project' | 'typeOf'>;
94
+ export declare type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
95
+ ticketType: ITicketType;
96
+ };
97
+ export declare type IReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'bookingTime' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'project' | 'reservationNumber' | 'typeOf'> & {
98
+ reservationFor: IReservationFor;
99
+ reservedTicket: IReservedTicket;
100
+ };
87
101
  export declare type IPermit = Omit<PermitFactory.IPermit, 'accessCode' | 'additionalProperty' | 'depositAmount' | 'paymentAmount' | 'paymentAccount' | 'issuedBy'>;
88
102
  export interface IMoneyTransferPendingTransaction {
89
103
  typeOf: AssetTransactionType.MoneyTransfer;
@@ -115,7 +129,7 @@ export interface IMoneyTransfer {
115
129
  * 注文アイテム
116
130
  */
117
131
  export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
118
- export declare type IOfferOptimized4acceptedOffer = Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'>;
132
+ export declare type IOfferOptimized4acceptedOffer = Pick<IOffer, 'project' | 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'priceCurrency' | 'priceSpecification'>;
119
133
  /**
120
134
  * 受け入れオファー
121
135
  */
@@ -50,6 +50,7 @@ export interface ISubReservation {
50
50
  */
51
51
  export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
52
52
  id: string;
53
+ issuedThrough: ReservationFactory.IIssuedThrough;
53
54
  reservationFor: IReservationFor;
54
55
  reservationNumber: string;
55
56
  reservationStatus: ReservationStatusType;
@@ -167,6 +167,10 @@ export interface IBroker {
167
167
  name?: string;
168
168
  }
169
169
  export declare type IProgramMembershipUsed = IPermit;
170
+ export interface IIssuedThrough {
171
+ typeOf: ProductType.EventService;
172
+ serviceType?: IServiceType;
173
+ }
170
174
  /**
171
175
  * 予約
172
176
  * Describes a reservation for travel, dining or an event. Some reservations require tickets.
@@ -211,10 +215,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
211
215
  /**
212
216
  * Web page where reservation can be confirmed.
213
217
  */
214
- issuedThrough?: {
215
- typeOf: ProductType.EventService;
216
- serviceType?: IServiceType;
217
- };
218
+ issuedThrough?: IIssuedThrough;
218
219
  /**
219
220
  * Time the reservation was last modified.
220
221
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.259.0-alpha.7",
3
+ "version": "4.259.0-alpha.8",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",