@chevre/factory 4.315.0 → 4.316.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,13 +3,11 @@ import { ActionType } from '../actionType';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { OrderType } from '../order';
5
5
  import { IAvailableReservationStatusType } from '../reservation';
6
- import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
7
- import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
6
+ import { IReservationFor as IBusReservationFor } from '../reservation/busReservation';
7
+ import { IReservationFor as IEventReservationFor } from '../reservation/event';
8
8
  import { ReservationType } from '../reservationType';
9
9
  import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
10
10
  export declare type IAgent = ActionFactory.IParticipantAsProject;
11
- export declare type IOmittedReservationProperty = 'reservationFor' | 'broker' | 'issuedThrough';
12
- export declare type ISubReservation = Omit<IBusReservation, IOmittedReservationProperty> | Omit<IEventReservation, IOmittedReservationProperty>;
13
11
  export declare type IReservationFor = IBusReservationFor | IEventReservationFor;
14
12
  export interface IReservationPackageAsObject {
15
13
  reservationFor: IReservationFor;
@@ -6,8 +6,8 @@ import { AssetTransactionType } from '../assetTransactionType';
6
6
  import { IExtendId } from '../autoGenerated';
7
7
  import { IPropertyValue } from '../propertyValue';
8
8
  import * as ReservationFactory from '../reservation';
9
- import { IIssuedThrough as IBusReservationIssuedThrough, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
10
- import { IIssuedThrough as IEventReservationIssuedThrough, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
9
+ import { IIssuedThrough as IBusReservationIssuedThrough, IReservation as IBusReservation, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
10
+ import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
11
11
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
12
12
  import { ReservationType } from '../reservationType';
13
13
  export import IAgent = AssetTransactionFactory.IAgent;
@@ -208,22 +208,26 @@ export interface IObjectWithoutDetail {
208
208
  };
209
209
  }
210
210
  export declare type IReservationFor = IBusReservationReservationFor | IEventReservationReservationFor;
211
- export declare type IObjectSubReservation = ReserveActionFactory.ISubReservation;
211
+ export declare type IOmittedReservationProperty = 'reservationFor' | 'broker' | 'issuedThrough' | 'provider' | 'reservationStatus';
212
+ export declare type IObjectSubReservation = Omit<IBusReservation, IOmittedReservationProperty> | Omit<IEventReservation, IOmittedReservationProperty>;
212
213
  export declare type IObjectSubReservationReservedTicket = Pick<ReservationFactory.ITicket, 'issuedBy' | 'ticketedSeat' | 'ticketType'>;
213
- export declare type IMinimizedObjectSubReservation = Pick<ReserveActionFactory.ISubReservation, 'typeOf' | 'id' | 'subReservation'> & {
214
+ export declare type IMinimizedObjectSubReservation = Pick<IObjectSubReservation, 'typeOf' | 'id' | 'subReservation'> & {
214
215
  reservedTicket: IObjectSubReservationReservedTicket;
215
216
  };
216
217
  export declare type IIssuedThrough = IBusReservationIssuedThrough | IEventReservationIssuedThrough;
217
218
  /**
218
219
  * 取引対象物
219
220
  */
220
- export interface IObject extends Pick<IReservationPackage, 'broker' | 'reservationStatus' | 'underName' | 'typeOf'> {
221
+ export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
221
222
  acceptedOffer?: IAcceptedOffer4object[];
222
223
  issuedThrough?: IIssuedThrough;
223
224
  reservationFor?: IReservationFor;
224
225
  reservationNumber: string;
225
226
  subReservation?: IObjectSubReservation[];
226
- disablePendingReservations: boolean;
227
+ /**
228
+ * trueで固定(2023-07-19~)
229
+ */
230
+ disablePendingReservations: true;
227
231
  useHoldStockByTransactionNumber?: boolean;
228
232
  }
229
233
  export interface IPotentialActions {
package/lib/index.d.ts CHANGED
@@ -383,8 +383,10 @@ export declare namespace reservation {
383
383
  export import busReservation = BusReservationFactory;
384
384
  export import eventReservation = EventReservationFactory;
385
385
  type IBroker<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.IBroker : T extends ReservationType.EventReservation ? ReservationFactory.IBroker : ReservationFactory.IBroker;
386
+ type IIssuedThrough<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.IIssuedThrough : T extends ReservationType.EventReservation ? EventReservationFactory.IIssuedThrough : ReservationFactory.IIssuedThrough;
386
387
  type IPriceSpecification<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.IPriceSpecification : T extends ReservationType.EventReservation ? EventReservationFactory.IPriceSpecification : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IPriceSpecification : ReservationFactory.IPriceSpecification;
387
388
  type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.BusReservation ? ReservationFactory.IProgramMembershipUsed : T extends ReservationType.EventReservation ? ReservationFactory.IProgramMembershipUsed : ReservationFactory.IProgramMembershipUsed;
389
+ export import IProvider = ReservationFactory.IProvider;
388
390
  type IReservationFor<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.IReservationFor : T extends ReservationType.EventReservation ? EventReservationFactory.IReservationFor : T extends ReservationType.ReservationPackage ? ReservationFactory.IReservationFor : ReservationFactory.IReservationFor;
389
391
  type IReservation<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.IReservation : T extends ReservationType.EventReservation ? EventReservationFactory.IReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IReservation : ReservationFactory.IReservation<ReservationFactory.IPriceSpecification>;
390
392
  type ISearchConditions<T extends ReservationType> = T extends ReservationType.BusReservation ? BusReservationFactory.ISearchConditions : T extends ReservationType.EventReservation ? EventReservationFactory.ISearchConditions : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISearchConditions : ReservationPackageFactory.ISearchConditions;
@@ -4,6 +4,7 @@ import { IMultilingualString } from '../multilingualString';
4
4
  import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
5
5
  import { ProductType } from '../product';
6
6
  import * as ReservationFactory from '../reservation';
7
+ import { ReservationStatusType } from '../reservationStatusType';
7
8
  import { ReservationType } from '../reservationType';
8
9
  export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
9
10
  name?: string | IMultilingualString;
@@ -52,7 +53,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
52
53
  issuedThrough: IIssuedThrough;
53
54
  reservationFor: IReservationFor;
54
55
  reservationNumber: string;
55
- reservationStatus: ReservationFactory.IAvailableReservationStatusType;
56
+ reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
56
57
  reservedTicket: ReservationFactory.ITicket;
57
58
  subReservation?: ISubReservation[];
58
59
  typeOf: ReservationType.EventReservation;
@@ -186,6 +186,13 @@ export interface IIssuedThrough {
186
186
  availableChannel: IServiceChannel;
187
187
  }
188
188
  export declare type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
189
+ export interface IProvider {
190
+ /**
191
+ * 販売者ID
192
+ */
193
+ id: string;
194
+ typeOf: OrganizationType.Corporation;
195
+ }
189
196
  /**
190
197
  * 予約
191
198
  * Describes a reservation for travel, dining or an event. Some reservations require tickets.
@@ -254,6 +261,12 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> ex
254
261
  * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.
255
262
  */
256
263
  programMembershipUsed?: IProgramMembershipUsed;
264
+ /**
265
+ * The service provider, service operator, or service performer; the goods producer.
266
+ * Another party (a seller) may offer those services or goods on behalf of the provider.
267
+ * A provider may also serve as the seller.
268
+ */
269
+ provider: IProvider;
257
270
  /**
258
271
  * The thing -- restaurant, movie, event, flight, etc. -- the reservation is for.
259
272
  */
@@ -395,6 +408,11 @@ export interface ISearchConditions<T extends ReservationType> {
395
408
  $eq?: string;
396
409
  };
397
410
  };
411
+ provider?: {
412
+ id?: {
413
+ $eq?: string;
414
+ };
415
+ };
398
416
  /**
399
417
  * IDリスト
400
418
  */
@@ -13,7 +13,6 @@ export declare enum ReservationStatusType {
13
13
  /**
14
14
  * The status of a reservation on hold pending an update like credit card number or flight changes.
15
15
  */
16
- ReservationHold = "ReservationHold",
17
16
  /**
18
17
  * The status of a reservation when a request has been sent, but not confirmed.
19
18
  */
@@ -17,7 +17,7 @@ var ReservationStatusType;
17
17
  /**
18
18
  * The status of a reservation on hold pending an update like credit card number or flight changes.
19
19
  */
20
- ReservationStatusType["ReservationHold"] = "ReservationHold";
20
+ // ReservationHold = 'ReservationHold',
21
21
  /**
22
22
  * The status of a reservation when a request has been sent, but not confirmed.
23
23
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.315.0",
3
+ "version": "4.316.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",