@chevre/factory 4.280.0-alpha.8 → 4.280.0-alpha.9

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.
@@ -2,17 +2,25 @@ import * as ActionFactory from '../action';
2
2
  import { ActionType } from '../actionType';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { OrderType } from '../order';
5
- import { IReservation as IEventReservation } from '../reservation/event';
5
+ import { IUnderName } from '../reservation';
6
+ import { IReservation as IEventReservation, IReservationFor } from '../reservation/event';
7
+ import { ReservationStatusType } from '../reservationStatusType';
8
+ import { ReservationType } from '../reservationType';
6
9
  import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
7
10
  export declare type IAgent = ActionFactory.IParticipantAsProject;
8
- /**
9
- * 予約対象
10
- */
11
- export declare type IObject = IEventReservation;
12
- /**
13
- * 予約結果
14
- */
15
- export declare type IResult = any;
11
+ export declare type ISubReservation = Omit<IEventReservation, 'reservationFor'>;
12
+ export interface IReservationPackageAsObject {
13
+ reservationFor: IReservationFor;
14
+ reservationNumber: string;
15
+ reservationStatus: ReservationStatusType;
16
+ subReservation: ISubReservation[];
17
+ underName?: IUnderName;
18
+ typeOf: ReservationType.ReservationPackage;
19
+ }
20
+ export declare type IObject = IEventReservation | IReservationPackageAsObject;
21
+ export interface IResult {
22
+ confirmedReservationId?: string;
23
+ }
16
24
  export interface IOrderAsReservePurpose {
17
25
  typeOf: OrderType.Order;
18
26
  confirmationNumber?: string;
@@ -32,9 +40,6 @@ export declare type IPurpose = IOrderAsReservePurpose | IAssetTransactionAsReser
32
40
  export interface IPotentialActions {
33
41
  moneyTransfer?: IMoneyTransferActionAttributes[];
34
42
  }
35
- /**
36
- * アクション属性
37
- */
38
43
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
39
44
  agent: IAgent;
40
45
  potentialActions?: IPotentialActions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.280.0-alpha.8",
3
+ "version": "4.280.0-alpha.9",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",