@chevre/factory 4.280.0-alpha.9 → 4.280.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.
@@ -6,11 +6,22 @@ import { ProductType } from '../../product';
6
6
  import { ReservationStatusType } from '../../reservationStatusType';
7
7
  import { ReservationType } from '../../reservationType';
8
8
  export declare type IAgent = ActionFactory.IParticipantAsProject;
9
+ export interface IReservationPackageAsObject {
10
+ reservationFor: {
11
+ typeOf: EventType.ScreeningEvent;
12
+ id: string;
13
+ };
14
+ reservationNumber: string;
15
+ /**
16
+ * previousReservationStatusを変更時に指定するために必要
17
+ */
18
+ reservationStatus: ReservationStatusType;
19
+ typeOf: ReservationType.ReservationPackage;
20
+ }
9
21
  /**
10
22
  * 予約取消対象
11
23
  */
12
- export interface IObject {
13
- typeOf: ReservationType.EventReservation;
24
+ export interface IEventReservationAsObject {
14
25
  id: string;
15
26
  issuedThrough?: {
16
27
  typeOf?: ProductType.EventService;
@@ -24,7 +35,9 @@ export interface IObject {
24
35
  * previousReservationStatusを変更時に指定するために必要
25
36
  */
26
37
  reservationStatus: ReservationStatusType;
38
+ typeOf: ReservationType.EventReservation;
27
39
  }
40
+ export declare type IObject = IEventReservationAsObject | IReservationPackageAsObject;
28
41
  /**
29
42
  * 予約取消結果
30
43
  */
@@ -13,7 +13,7 @@ export interface IReservationPackageAsObject {
13
13
  reservationFor: IReservationFor;
14
14
  reservationNumber: string;
15
15
  reservationStatus: ReservationStatusType;
16
- subReservation: ISubReservation[];
16
+ subReservation?: ISubReservation[];
17
17
  underName?: IUnderName;
18
18
  typeOf: ReservationType.ReservationPackage;
19
19
  }
@@ -4,7 +4,7 @@ import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { IClientUser } from '../clientUser';
7
- import { IReservation as IEventReservation } from '../reservation/event';
7
+ import { IReservation as IEventReservation, IReservationFor } from '../reservation/event';
8
8
  export import IAgent = AssetTransactionFactory.IAgent;
9
9
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
10
10
  /**
@@ -23,20 +23,28 @@ export interface IObjectWithoutDetail {
23
23
  /**
24
24
  * 予約IDをキーに取消
25
25
  */
26
- id?: string | string[];
26
+ id?: string;
27
27
  /**
28
28
  * 予約番号をキーに取消
29
29
  */
30
30
  reservationNumber?: string;
31
31
  };
32
32
  }
33
+ export declare type IReserveTransactionAsObject = Pick<IReserveTransaction, 'typeOf' | 'id' | 'transactionNumber'> & {
34
+ object: {
35
+ reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
36
+ };
37
+ };
38
+ export declare type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
39
+ reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
40
+ };
33
41
  /**
34
42
  * 取引対象物
35
43
  */
36
44
  export interface IObject {
37
45
  clientUser?: IClientUser;
38
- transaction?: IReserveTransaction;
39
- reservations?: IEventReservation[];
46
+ transaction?: IReserveTransactionAsObject;
47
+ reservations?: IEventReservationAsObject[];
40
48
  }
41
49
  /**
42
50
  * 取引確定パラメータ
@@ -7,7 +7,7 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
7
7
  import { IPointAward } from '../product';
8
8
  import { IPropertyValue } from '../propertyValue';
9
9
  import * as ReservationFactory from '../reservation';
10
- import { IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
10
+ import { 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;
@@ -189,7 +189,7 @@ export interface IObjectWithoutDetail {
189
189
  };
190
190
  }
191
191
  export declare type IReservationFor = IEventReservationReservationFor;
192
- export declare type IObjectSubReservation = Omit<IEventReservation, 'reservationFor'>;
192
+ export declare type IObjectSubReservation = ReserveActionFactory.ISubReservation;
193
193
  /**
194
194
  * 取引対象物
195
195
  */
@@ -314,7 +314,12 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
314
314
  export declare type IEvent = EventFactory.IEvent<IAttributes>;
315
315
  export declare type ILocation4create = Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
316
316
  export declare type ISuperEvent4create = Pick<ISuperEvent, 'id'>;
317
- export declare type ISeller4create = Pick<ISeller, 'makesOffer'>;
317
+ export declare type ISeller4create = Pick<ISeller, 'makesOffer'> & {
318
+ /**
319
+ * POS以外のアプリケーションの共通設定
320
+ */
321
+ makesOfferDefault?: Pick<ISellerMakesOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'>;
322
+ };
318
323
  export declare type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
319
324
  /**
320
325
  * 最大予約数を指定
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.280.0-alpha.9",
3
+ "version": "4.280.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",