@chevre/factory 4.374.0-alpha.11 → 4.374.0-alpha.13

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.
@@ -35,15 +35,13 @@ export interface IPaymentService extends Pick<PayActionFactory.IPaymentService,
35
35
  }
36
36
  export type IObject = IPaymentService[];
37
37
  export interface IResult {
38
- purchaseNumberAuthIn: IPurchaseNumberAuthIn;
39
- purchaseNumberAuthResult: IPurchaseNumberAuthResult;
40
38
  }
41
39
  export type IError = any;
42
40
  export interface IPurpose {
43
41
  typeOf: TransactionType.PlaceOrder;
44
42
  id: string;
45
43
  }
46
- export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
44
+ export interface IAttributes extends Pick<CheckActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
47
45
  agent: IAgent;
48
46
  object: IObject;
49
47
  purpose?: IPurpose;
@@ -8,16 +8,23 @@ import * as ConfirmActionFactory from '../confirm';
8
8
  export { IRecipe as IConfirmCOAReserveRecipe };
9
9
  export type IAgent = IParticipantAsProject;
10
10
  export type IObject4COA = IUpdReserveArgs & {
11
+ /**
12
+ * 取引番号は必須
13
+ */
11
14
  transactionNumber: string;
12
15
  typeOf: 'COAReserveTransaction';
13
16
  };
14
17
  export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'potentialActions'> & {
18
+ /**
19
+ * 取引番号は必須
20
+ */
15
21
  transactionNumber: string;
16
22
  typeOf: AssetTransactionType.Reserve;
17
23
  };
18
24
  export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
19
25
  export type IPurpose = ISimpleOrder;
20
- export type IResult = any;
26
+ export interface IResult {
27
+ }
21
28
  export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
22
29
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
23
30
  agent: IAgent;
@@ -16,7 +16,7 @@ export interface ITransactionPurpose {
16
16
  export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
17
17
  export type IResult = any;
18
18
  export type IPotentialActions = any;
19
- export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
19
+ export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf' | 'sameAs'> {
20
20
  agent: IAgent;
21
21
  purpose: IPurpose;
22
22
  }
@@ -104,7 +104,6 @@ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInf
104
104
  export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
105
105
  export interface IInstrument {
106
106
  typeOf: string;
107
- seatInfoSyncIn?: ISeatInfoSyncIn;
108
107
  }
109
108
  export interface IResult {
110
109
  }
@@ -115,7 +114,7 @@ export interface ILocation {
115
114
  */
116
115
  id: string;
117
116
  }
118
- export interface IAttributes extends Omit<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'description' | 'identifier' | 'location'> {
117
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
119
118
  agent: IAgent;
120
119
  instrument?: IInstrument;
121
120
  potentialActions?: IPotentialActions;
@@ -46,7 +46,7 @@ export interface IPurposeAsPlaceOrder {
46
46
  id: string;
47
47
  }
48
48
  export type IPurpose = IOrderAsPayPurpose | IPurposeAsAssetTransaction | IPurposeAsReturnAction | IPurposeAsPlaceOrder;
49
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult> {
49
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
50
50
  agent: IAgent;
51
51
  recipient?: IRecipient;
52
52
  purpose: IPurpose;
package/lib/index.d.ts CHANGED
@@ -214,6 +214,7 @@ export declare namespace action {
214
214
  export import IPurpose = ActionFactory.IPurpose;
215
215
  export import ISortOrder = ActionFactory.ISortOrder;
216
216
  export import ISearchConditions = ActionFactory.ISearchConditions;
217
+ export import ISameAs = ActionFactory.ISameAs;
217
218
  namespace accept {
218
219
  export import coaOffer = AcceptCOAOfferActionFactory;
219
220
  export import pay = AcceptPayActionFactory;
package/lib/index.js CHANGED
@@ -171,7 +171,6 @@ exports.actionStatusType = actionStatusType_1.ActionStatusType;
171
171
  exports.actionType = actionType_1.ActionType;
172
172
  var action;
173
173
  (function (action) {
174
- // export import accept = AcceptActionFactory;
175
174
  var accept;
176
175
  (function (accept) {
177
176
  accept.coaOffer = AcceptCOAOfferActionFactory;
@@ -7,7 +7,7 @@ export type IObject4COAOptimized = Pick<IObject4COA, 'transactionNumber' | 'type
7
7
  optimized: boolean;
8
8
  };
9
9
  export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COAOptimized : IObject4Chevre;
10
- export type IData = Omit<IConfirmReservationActionAttributes<WebAPIFactory.Identifier>, 'object'> & {
10
+ export type IData = Pick<IConfirmReservationActionAttributes<WebAPIFactory.Identifier>, 'agent' | 'project' | 'purpose' | 'typeOf'> & {
11
11
  object: IObject<WebAPIFactory.Identifier>;
12
12
  };
13
13
  export interface IAttributes extends TaskFactory.IAttributes {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.374.0-alpha.11",
3
+ "version": "4.374.0-alpha.13",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",