@chevre/factory 4.374.0-alpha.10 → 4.374.0-alpha.12

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.
@@ -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
  }
@@ -106,15 +106,7 @@ export interface IInstrument {
106
106
  typeOf: string;
107
107
  seatInfoSyncIn?: ISeatInfoSyncIn;
108
108
  }
109
- /**
110
- * 決済結果
111
- */
112
109
  export interface IResult {
113
- /**
114
- * クレジットカード売上結果
115
- */
116
- creditCardSales?: ICreditCardSales[];
117
- seatInfoSyncResult?: ISeatInfoSyncResult;
118
110
  }
119
111
  export interface ILocation {
120
112
  typeOf: CreativeWorkType.WebApplication;
@@ -29,9 +29,6 @@ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISea
29
29
  export type ISeatInfoSyncCancelIn = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
30
30
  export type ISeatInfoSyncCancelResult = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | ISeatInfoSyncResultAsError;
31
31
  export interface IResult {
32
- alterTranResult?: (IAlterTranResult | IAlterTranResultAsError)[];
33
- seatInfoSyncResult?: ISeatInfoSyncResult;
34
- seatInfoSyncCancelResult?: ISeatInfoSyncCancelResult;
35
32
  /**
36
33
  * ペイメントカード決済の場合
37
34
  */
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.10",
3
+ "version": "4.374.0-alpha.12",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",