@chevre/factory 4.393.0-alpha.17 → 4.393.0-alpha.19

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,6 +6,7 @@ import { ProductType } from '../../product';
6
6
  import { IAvailableReservationStatusType } from '../../reservation';
7
7
  import { ReservationType } from '../../reservationType';
8
8
  import { TripType } from '../../tripType';
9
+ import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
9
10
  export type IAgent = ActionFactory.IParticipantAsProject;
10
11
  export interface IReservationPackageAsObject {
11
12
  reservationFor: {
@@ -64,11 +65,17 @@ export interface IPurpose {
64
65
  */
65
66
  id: string;
66
67
  }
67
- export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'object' | 'agent'> {
68
+ export type IReturnActionAsInstrument = Pick<IReturnReserveTransactionAction, 'id' | 'purpose' | 'typeOf'>;
69
+ export type IInstrument = IReturnActionAsInstrument;
70
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'object' | 'agent' | 'instrument'> {
68
71
  agent: IAgent;
69
72
  purpose: IPurpose;
73
+ /**
74
+ * add(2025-02-17~)
75
+ */
76
+ instrument?: IInstrument[];
70
77
  }
71
78
  /**
72
- * 予約取消アクション
79
+ * cancel reservation action
73
80
  */
74
81
  export type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,6 +1,7 @@
1
1
  import * as ActionFactory from '../action';
2
2
  import { ActionType } from '../actionType';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
+ import { IOrder } from '../order';
4
5
  import { IAvailableReservationStatusType } from '../reservation';
5
6
  import { IReservationFor as IBusReservationFor } from '../reservation/busReservation';
6
7
  import { IReservationFor as IEventReservationFor } from '../reservation/event';
@@ -33,12 +34,18 @@ export type IPurpose = IAssetTransactionAsReservePurpose;
33
34
  export interface IPotentialActions {
34
35
  moneyTransfer?: IMoneyTransferActionAttributes[];
35
36
  }
36
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
37
+ export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
38
+ export type IInstrument = IOrderAsInstrument;
39
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult>, 'agent' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'typeOf' | 'error' | 'instrument'> {
37
40
  agent: IAgent;
38
41
  potentialActions?: IPotentialActions;
39
42
  purpose: IPurpose;
43
+ /**
44
+ * add(2025-02-17~)
45
+ */
46
+ instrument?: IInstrument[];
40
47
  }
41
48
  /**
42
- * 予約アクション
49
+ * reserve action
43
50
  */
44
51
  export type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,4 +1,4 @@
1
- import { IAttributes as ICancelReservationActionAttributes } from '../action/cancel/reservation';
1
+ import { IAttributes as ICancelReservationActionAttributes, IInstrument, IReturnActionAsInstrument } from '../action/cancel/reservation';
2
2
  import * as AssetTransactionFactory from '../assetTransaction';
3
3
  import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
@@ -7,11 +7,17 @@ import { IReservation as IBusReservation, IReservationFor as IBusReservationFor
7
7
  import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
8
8
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
9
9
  export import IAgent = AssetTransactionFactory.IAgent;
10
+ export { IInstrument, IReturnActionAsInstrument };
10
11
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
11
12
  /**
12
13
  * 取引開始パラメータ
13
14
  */
14
- export type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObject>;
15
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObject> {
16
+ /**
17
+ * add(2025-02-17~)
18
+ */
19
+ instrument?: IInstrument[];
20
+ }
15
21
  export interface IResult {
16
22
  }
17
23
  /**
@@ -1,3 +1,4 @@
1
+ import { IInstrument, IOrderAsInstrument } from '../action/reserve';
1
2
  import { IPointAward } from '../action/transfer/moneyTransfer';
2
3
  import { ActionType } from '../actionType';
3
4
  import * as AssetTransactionFactory from '../assetTransaction';
@@ -16,11 +17,17 @@ import { ReservationType } from '../reservationType';
16
17
  import { PaymentServiceType } from '../service/paymentService';
17
18
  import { IUnitPriceOffer } from '../unitPriceOffer';
18
19
  export import IAgent = AssetTransactionFactory.IAgent;
20
+ export { IInstrument, IOrderAsInstrument };
19
21
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
20
22
  /**
21
23
  * 取引開始パラメータ
22
24
  */
23
- export type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
25
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject> {
26
+ /**
27
+ * add(2025-02-17~)
28
+ */
29
+ instrument?: IInstrument[];
30
+ }
24
31
  export interface IPermitIssuedThroughFaceToFace {
25
32
  /**
26
33
  * メンバーシップコード
@@ -1,9 +1,10 @@
1
- import { IAttributes as IInformActionAttributes, IObject, IRecipientDeprecated } from '../action/interact/inform';
1
+ import { IAttributes as IInformActionAttributes, IObject, IRecipient, IRecipientDeprecated } from '../action/interact/inform';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { IEntryPoint } from '../entryPoint';
4
+ import { IReservation4inform } from '../notification/reservation';
4
5
  import * as TaskFactory from '../task';
5
6
  import { TaskName } from '../taskName';
6
- export type IRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 'typeOf'> & {
7
+ export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 'typeOf'> & {
7
8
  url?: never;
8
9
  };
9
10
  export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'about'> & {
@@ -11,7 +12,20 @@ export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'obj
11
12
  * 通知識別子(2024-10-24~)
12
13
  */
13
14
  identifier?: string;
14
- recipient: IRecipient;
15
+ recipient: IDeprecatedRecipient;
16
+ target: IEntryPoint;
17
+ id?: never;
18
+ typeOf?: never;
19
+ };
20
+ export type IPotentialInformReservationAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'about'> & {
21
+ /**
22
+ * 通知識別子(2024-10-24~)
23
+ */
24
+ identifier?: string;
25
+ object: IReservation4inform;
26
+ recipient: Pick<IRecipient, 'name' | 'typeOf'> & {
27
+ id?: string;
28
+ };
15
29
  target: IEntryPoint;
16
30
  id?: never;
17
31
  typeOf?: never;
@@ -21,7 +35,7 @@ export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IObject>
21
35
  * 通知識別子(2024-10-24~)
22
36
  */
23
37
  identifier?: string;
24
- recipient?: Pick<IRecipient, 'id' | 'name' | 'typeOf'>;
38
+ recipient?: Pick<IDeprecatedRecipient, 'id' | 'name' | 'typeOf'>;
25
39
  target?: never;
26
40
  /**
27
41
  * potentialAction id
@@ -29,7 +43,7 @@ export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IObject>
29
43
  id: string;
30
44
  typeOf: IInformActionAttributes<IObject>['typeOf'];
31
45
  };
32
- export type IData = IPotentialInformAction | IPotentialInformActionWithId;
46
+ export type IData = IPotentialInformAction | IPotentialInformReservationAction | IPotentialInformActionWithId;
33
47
  export interface IAttributes extends TaskFactory.IAttributes {
34
48
  name: TaskName.TriggerWebhook;
35
49
  data: IData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.393.0-alpha.17",
3
+ "version": "4.393.0-alpha.19",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",