@chevre/factory 7.0.0-alpha.2 → 7.0.0-alpha.3

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.
Files changed (73) hide show
  1. package/lib/account/action/moneyTransfer.d.ts +6 -6
  2. package/lib/account/transaction.d.ts +3 -4
  3. package/lib/account.js +5 -5
  4. package/lib/action/accept/coaOffer.d.ts +5 -5
  5. package/lib/action/accept/pay.d.ts +4 -4
  6. package/lib/action/accept.d.ts +3 -3
  7. package/lib/action/authorize/invoice.d.ts +6 -6
  8. package/lib/action/authorize/offer/any.d.ts +3 -3
  9. package/lib/action/authorize/offer/eventService.d.ts +4 -4
  10. package/lib/action/authorize/offer/eventService.js +1 -1
  11. package/lib/action/authorize/offer/product.d.ts +4 -4
  12. package/lib/action/authorize/offer/product.js +1 -1
  13. package/lib/action/authorize/paymentMethod/any.d.ts +6 -6
  14. package/lib/action/authorize/ticketedObject.d.ts +4 -4
  15. package/lib/action/authorize.d.ts +4 -4
  16. package/lib/action/cancel/coaReserve.d.ts +4 -4
  17. package/lib/action/cancel/reservation.d.ts +4 -4
  18. package/lib/action/check/paymentMethod/movieTicket.d.ts +4 -4
  19. package/lib/action/check/thing.d.ts +5 -5
  20. package/lib/action/consume/use/reservation.d.ts +3 -3
  21. package/lib/action/consume/use.d.ts +3 -3
  22. package/lib/action/create.d.ts +3 -3
  23. package/lib/action/interact/confirm/pay.d.ts +3 -3
  24. package/lib/action/interact/confirm/registerService.d.ts +3 -3
  25. package/lib/action/interact/confirm/reservation.d.ts +3 -3
  26. package/lib/action/interact/confirm.d.ts +4 -4
  27. package/lib/action/interact/inform.d.ts +7 -7
  28. package/lib/action/interact/register/service.d.ts +3 -3
  29. package/lib/action/interact/register.d.ts +5 -5
  30. package/lib/action/reserve.d.ts +4 -4
  31. package/lib/action/trade/order.d.ts +5 -5
  32. package/lib/action/trade/pay.d.ts +5 -5
  33. package/lib/action/trade/refund.d.ts +5 -5
  34. package/lib/action/transfer/give/pointAward.d.ts +5 -5
  35. package/lib/action/transfer/give.d.ts +5 -5
  36. package/lib/action/transfer/moneyTransfer.d.ts +5 -5
  37. package/lib/action/transfer/return/invoice.d.ts +6 -6
  38. package/lib/action/transfer/return/order.d.ts +7 -7
  39. package/lib/action/transfer/return/pointAward.d.ts +6 -6
  40. package/lib/action/transfer/return/reserveTransaction.d.ts +6 -6
  41. package/lib/action/transfer/return.d.ts +3 -3
  42. package/lib/action/transfer/send/message/email.d.ts +3 -3
  43. package/lib/action/transfer/send/order.d.ts +3 -3
  44. package/lib/action/transfer/send.d.ts +6 -6
  45. package/lib/action/update/add.d.ts +4 -4
  46. package/lib/action/update/delete.d.ts +5 -5
  47. package/lib/action/update/replace.d.ts +4 -4
  48. package/lib/action/update/update.d.ts +4 -4
  49. package/lib/error/alreadyInUse.js +12 -31
  50. package/lib/error/argument.js +10 -30
  51. package/lib/error/argumentNull.js +10 -30
  52. package/lib/error/chevre.js +7 -26
  53. package/lib/error/forbidden.js +7 -28
  54. package/lib/error/gatewayTimeout.js +7 -28
  55. package/lib/error/internal.js +7 -28
  56. package/lib/error/notFound.js +10 -30
  57. package/lib/error/notImplemented.js +7 -28
  58. package/lib/error/rateLimitExceeded.js +7 -28
  59. package/lib/error/serviceUnavailable.js +7 -28
  60. package/lib/error/unauthorized.js +7 -28
  61. package/lib/error/unknown.js +7 -28
  62. package/lib/errors.js +13 -13
  63. package/lib/index.js +216 -216
  64. package/lib/invoice.d.ts +4 -4
  65. package/lib/offer.d.ts +2 -2
  66. package/lib/order.d.ts +19 -19
  67. package/lib/ownershipInfo.d.ts +7 -7
  68. package/lib/person.d.ts +3 -3
  69. package/lib/product.d.ts +3 -3
  70. package/lib/reservation.d.ts +1 -2
  71. package/lib/reservedCodeValues.js +24 -24
  72. package/lib/transaction.d.ts +4 -4
  73. package/package.json +2 -3
@@ -1,10 +1,10 @@
1
1
  import { AccountType } from '../../accountType';
2
- import * as ActionFactory from '../../action';
2
+ import { IParticipant, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
3
3
  import { ActionType } from '../../actionType';
4
4
  import { IMonetaryAmount } from '../../monetaryAmount';
5
5
  import { AccountTransactionType } from '../transactionType';
6
- export type IAgent = Pick<ActionFactory.IParticipant, 'name' | 'typeOf'>;
7
- export type IRecipient = Pick<ActionFactory.IParticipant, 'name' | 'typeOf'>;
6
+ export type IAgent = Pick<IParticipant, 'name' | 'typeOf'>;
7
+ export type IRecipient = Pick<IParticipant, 'name' | 'typeOf'>;
8
8
  /**
9
9
  * 口座以外の匿名ロケーション
10
10
  */
@@ -56,7 +56,7 @@ export interface IPurpose {
56
56
  transactionNumber: string;
57
57
  }
58
58
  export type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'value'>;
59
- export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.MoneyTransfer, never, never>, 'project' | 'description'> {
59
+ export interface IAttributes extends Pick<IBaseAttributes<ActionType.MoneyTransfer, never, never>, 'project' | 'description'> {
60
60
  agent: IAgent;
61
61
  recipient?: IRecipient;
62
62
  typeOf: ActionType.MoneyTransfer;
@@ -77,8 +77,8 @@ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.M
77
77
  */
78
78
  toLocation: ILocation;
79
79
  }
80
- export type IAction = Pick<ActionFactory.IAction<Omit<IAttributes, 'agent' | 'recipient'> & {
81
- agent: ActionFactory.IParticipant;
80
+ export type IAction = Pick<IBaseAction<Omit<IAttributes, 'agent' | 'recipient'> & {
81
+ agent: IParticipant;
82
82
  object: never;
83
83
  }>, 'actionStatus' | 'amount' | 'description' | 'endDate' | 'fromLocation' | 'project' | 'purpose' | 'startDate' | 'toLocation' | 'typeOf' | 'id'> & {
84
84
  agent: IAgent;
@@ -2,10 +2,9 @@ import { IExtendId } from '../autoGenerated';
2
2
  import { OrganizationType } from '../organizationType';
3
3
  import { SortType } from '../sortType';
4
4
  import { TransactionStatusType } from '../transactionStatusType';
5
- import * as MoneyTransferActionFactory from './action/moneyTransfer';
5
+ import { IAgent, IRecipient, IAttributes as IMoneyTransferActionAttributes } from './action/moneyTransfer';
6
6
  import { AccountTransactionType } from './transactionType';
7
- export import IAgent = MoneyTransferActionFactory.IAgent;
8
- export import IRecipient = MoneyTransferActionFactory.IRecipient;
7
+ export { IAgent, IRecipient };
9
8
  export interface ISimpleAccount {
10
9
  accountNumber: string;
11
10
  }
@@ -66,7 +65,7 @@ export interface IStartParams<T extends AccountTransactionType, TObject extends
66
65
  expires: Date;
67
66
  }
68
67
  export interface IPotentialActions {
69
- moneyTransfer: MoneyTransferActionFactory.IAttributes;
68
+ moneyTransfer: IMoneyTransferActionAttributes;
70
69
  }
71
70
  /**
72
71
  * 口座取引属性
package/lib/account.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.transactionType = exports.transaction = exports.action = void 0;
4
- var transactionType_1 = require("./account/transactionType");
5
- var MoneyTransferActionFactory = require("./account/action/moneyTransfer");
6
- var DepositTransactionFactory = require("./account/transaction/deposit");
7
- var TransferTransactionFactory = require("./account/transaction/transfer");
8
- var WithdrawTransactionFactory = require("./account/transaction/withdraw");
4
+ const transactionType_1 = require("./account/transactionType");
5
+ const MoneyTransferActionFactory = require("./account/action/moneyTransfer");
6
+ const DepositTransactionFactory = require("./account/transaction/deposit");
7
+ const TransferTransactionFactory = require("./account/transaction/transfer");
8
+ const WithdrawTransactionFactory = require("./account/transaction/withdraw");
9
9
  /**
10
10
  * 口座ステータスタイプ
11
11
  */
@@ -1,5 +1,5 @@
1
1
  import type { COAFactory } from '@coasystems/factory';
2
- import * as ActionFactory from '../../action';
2
+ import { IParticipantAsWebApplication, IAction as IBaseAction } from '../../action';
3
3
  import { ActionType } from '../../actionType';
4
4
  import { IAcceptedTicketOfferItemOffered, IAcceptedTicketOfferWithoutDetail as IAcceptedOfferWithoutDetail4chevre } from '../../assetTransaction/reserve';
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
@@ -8,7 +8,7 @@ import { OfferType } from '../../offerType';
8
8
  import * as OrderFactory from '../../order';
9
9
  import { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult } from '../../recipe/acceptCOAOffer';
10
10
  import { TransactionType } from '../../transactionType';
11
- import * as AcceptActionFactory from '../accept';
11
+ import { IAttributes as IBaseAttributes } from '../accept';
12
12
  export interface ICOATicketInfo {
13
13
  /**
14
14
  * チケットコード
@@ -189,7 +189,7 @@ export type IAcceptedOfferBeforeAuthorize4COA = Pick<IAcceptedOfferWithoutDetail
189
189
  priceSpecification: IPriceSpecification4COA;
190
190
  };
191
191
  export { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult };
192
- export type IAgent = ActionFactory.IParticipantAsWebApplication;
192
+ export type IAgent = IParticipantAsWebApplication;
193
193
  /**
194
194
  * COA会員用フラグ
195
195
  */
@@ -243,7 +243,7 @@ export interface IPotentialActions {
243
243
  export interface IInstrument {
244
244
  typeOf: AssetTransactionType.COAReserveTransaction;
245
245
  }
246
- export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
246
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
247
247
  agent: IAgent;
248
248
  instrument: IInstrument;
249
249
  object: IObject;
@@ -254,4 +254,4 @@ export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObjec
254
254
  /**
255
255
  * COA興行オファー採用アクション
256
256
  */
257
- export type IAction = ActionFactory.IAction<IAttributes>;
257
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,11 +1,11 @@
1
- import * as ActionFactory from '../../action';
1
+ import { IAction as IBaseAction } from '../../action';
2
2
  import { IAcceptedPaymentMethodOfferAsInstrument, IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
3
3
  import { ActionType } from '../../actionType';
4
4
  import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
6
6
  import { IExecTran3dsArgs, IExecTran3dsResult, IRecipe } from '../../recipe/publishPaymentUrl';
7
7
  import { TransactionType } from '../../transactionType';
8
- import * as AcceptActionFactory from '../accept';
8
+ import { IAttributes as IBaseAttributes } from '../accept';
9
9
  export { IExecTran3dsArgs, IExecTran3dsResult, IAgent, IRecipe };
10
10
  export type IPaymentMethod = Pick<IPaymentMethodWithoutDetail, 'amount' | 'creditCard' | 'identifier' | 'method'>;
11
11
  /**
@@ -34,7 +34,7 @@ export type IInstrument = IPaymentMethodTicketAsInstrument | IAcceptedPaymentMet
34
34
  /**
35
35
  * 決済採用アクション属性
36
36
  */
37
- export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'identifier' | 'location' | 'object' | 'project' | 'purpose' | 'result' | 'sameAs' | 'typeOf'> {
37
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'identifier' | 'location' | 'object' | 'project' | 'purpose' | 'result' | 'sameAs' | 'typeOf'> {
38
38
  typeOf: ActionType.AcceptAction;
39
39
  object: IObject;
40
40
  agent: IAgent;
@@ -53,4 +53,4 @@ export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObjec
53
53
  /**
54
54
  * 決済採用アクション
55
55
  */
56
- export type IAction = ActionFactory.IAction<IAttributes>;
56
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,12 +1,12 @@
1
- import * as ActionFactory from '../action';
1
+ import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../action';
2
2
  import { ActionType } from '../actionType';
3
3
  export type IObject = any;
4
4
  export type IResult = any;
5
5
  export type IPurpose = any;
6
- export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.AcceptAction, TObject, TResult> {
6
+ export interface IAttributes<TObject, TResult> extends IBaseAttributes<ActionType.AcceptAction, TObject, TResult> {
7
7
  purpose?: IPurpose;
8
8
  }
9
9
  /**
10
10
  * 採用アクション
11
11
  */
12
- export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
12
+ export type IAction<TAttributes extends IAttributes<IObject, IResult>> = IBaseAction<TAttributes>;
@@ -1,19 +1,19 @@
1
- import * as ActionFactory from '../../action';
1
+ import { IParticipantAsProject, ISameAs as IBaseSameAs, IAction as IBaseAction } from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { AssetTransactionType } from '../../assetTransactionType';
4
4
  import { IInvoice } from '../../invoice';
5
5
  import { IEntryTranArgs, IEntryTranResult, IExecTranArgs, IExecTranResult, IRecipe as IAuthorizeInvoiceRecipe } from '../../recipe/authorizeInvoice';
6
6
  import { IRecipe as IAuthorizeInvoice3dsRecipe, ISecureTran2Args, ISecureTran2Result } from '../../recipe/authorizeInvoice3ds';
7
- import * as AuthorizeActionFactory from '../authorize';
7
+ import { IAttributes as IBaseAttributes } from '../authorize';
8
8
  export { IEntryTranArgs, IEntryTranResult, IExecTranArgs, IExecTranResult, ISecureTran2Args, ISecureTran2Result, IAuthorizeInvoiceRecipe, IAuthorizeInvoice3dsRecipe };
9
- export type IAgent = ActionFactory.IParticipantAsProject;
9
+ export type IAgent = IParticipantAsProject;
10
10
  export type IObject = Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
11
11
  export interface IResult {
12
12
  }
13
- export interface ISameAs extends ActionFactory.ISameAs {
13
+ export interface ISameAs extends IBaseSameAs {
14
14
  typeOf: AssetTransactionType.Pay;
15
15
  }
16
- export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'result' | 'project' | 'typeOf' | 'sameAs'> {
16
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'result' | 'project' | 'typeOf' | 'sameAs'> {
17
17
  typeOf: ActionType.AuthorizeAction;
18
18
  object: IObject;
19
19
  agent: IAgent;
@@ -22,4 +22,4 @@ export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IOb
22
22
  /**
23
23
  * 請求承認アクション
24
24
  */
25
- export type IAction = ActionFactory.IAction<IAttributes>;
25
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,4 +1,4 @@
1
- import * as ActionFactory from '../../../action';
1
+ import { IParticipantAsSeller, IParticipantAsWebApplication, IParticipantAsPerson } from '../../../action';
2
2
  import { IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
3
3
  import { AssetTransactionType } from '../../../assetTransactionType';
4
4
  import { OfferType } from '../../../offerType';
@@ -6,8 +6,8 @@ import { PriceCurrency } from '../../../priceCurrency';
6
6
  import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
7
7
  import { ITicketOffer } from '../../../product';
8
8
  import { TransactionType } from '../../../transactionType';
9
- export type IAgent = ActionFactory.IParticipantAsSeller;
10
- export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
9
+ export type IAgent = IParticipantAsSeller;
10
+ export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson;
11
11
  export declare enum ObjectType {
12
12
  SeatReservation = "SeatReservation",
13
13
  AggregateOffer = "AggregateOffer"
@@ -1,11 +1,11 @@
1
1
  import type { COAFactory } from '@coasystems/factory';
2
- import * as ActionFactory from '../../../action';
2
+ import { IAction as IBaseAction } from '../../../action';
3
3
  import { ActionType } from '../../../actionType';
4
4
  import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail } from '../../../assetTransaction/reserve';
5
5
  import { AssetTransactionType } from '../../../assetTransactionType';
6
6
  import { IEvent } from '../../../event/screeningEvent';
7
7
  import * as OrderFactory from '../../../order';
8
- import * as AuthorizeActionFactory from '../../authorize';
8
+ import { IAttributes as IBaseAttributes } from '../../authorize';
9
9
  import { IAcceptedOfferInResult, IAgent, IAggregateProgramMembershipUsed, IError, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
10
10
  export { IAcceptedOfferInResult, IAgent, IAggregateProgramMembershipUsed, IRecipient, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
11
11
  export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
@@ -40,7 +40,7 @@ export interface IObject {
40
40
  */
41
41
  pendingTransaction?: ICOAPendingTransaction;
42
42
  }
43
- export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
43
+ export interface IAttributes extends IBaseAttributes<IObject, IResult> {
44
44
  typeOf: ActionType.AuthorizeAction;
45
45
  agent: IAgent;
46
46
  instrument: IInstrumentAsAssetTransaction;
@@ -51,4 +51,4 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
51
51
  /**
52
52
  * 興行オファー承認アクション
53
53
  */
54
- export type IAction = ActionFactory.IAction<IAttributes>;
54
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ObjectType = void 0;
4
- var any_1 = require("./any");
4
+ const any_1 = require("./any");
5
5
  Object.defineProperty(exports, "ObjectType", { enumerable: true, get: function () { return any_1.ObjectType; } });
@@ -1,11 +1,11 @@
1
- import * as ActionFactory from '../../../action';
1
+ import { IAction as IBaseAction } from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
4
4
  import { IOffer } from '../../../offer';
5
5
  import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
6
6
  import { IMembershipProduct, IPaymentCardProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
7
7
  import { ISeller } from '../../../seller';
8
- import * as AuthorizeActionFactory from '../../authorize';
8
+ import { IAttributes as IBaseAttributes } from '../../authorize';
9
9
  import { IPointAward } from '../../transfer/moneyTransfer';
10
10
  import { IAgent, IError, IInstrumentAsRegisterService, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
11
11
  export { IAgent, IRecipient, IInstrumentAsRegisterService, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
@@ -60,7 +60,7 @@ export interface IResult extends IResultAsAggregateOffer {
60
60
  amount?: never;
61
61
  }
62
62
  export type IInstrument = IInstrumentAsRegisterService;
63
- export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
63
+ export interface IAttributes extends IBaseAttributes<IObject, IResult> {
64
64
  typeOf: ActionType.AuthorizeAction;
65
65
  agent: IAgent;
66
66
  instrument: IInstrument;
@@ -71,4 +71,4 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
71
71
  /**
72
72
  * プロダクトオファー承認アクション
73
73
  */
74
- export type IAction = ActionFactory.IAction<IAttributes>;
74
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ObjectType = void 0;
4
- var any_1 = require("./any");
4
+ const any_1 = require("./any");
5
5
  Object.defineProperty(exports, "ObjectType", { enumerable: true, get: function () { return any_1.ObjectType; } });
@@ -1,4 +1,4 @@
1
- import * as ActionFactory from '../../../action';
1
+ import { IParticipantAsWebApplication, IParticipantAsPerson, IParticipantAsSeller, IAction as IBaseAction } from '../../../action';
2
2
  import * as CheckMovieTicketActionFactory from '../../../action/check/paymentMethod/movieTicket';
3
3
  import { AvailablePaymentMethodType, IMovieTicket } from '../../../action/trade/pay';
4
4
  import { ActionType } from '../../../actionType';
@@ -9,9 +9,9 @@ import { PaymentStatusType } from '../../../paymentStatusType';
9
9
  import { IPropertyValue } from '../../../propertyValue';
10
10
  import { IPermitAsServiceOutput } from '../../../service/paymentService';
11
11
  import { TransactionType } from '../../../transactionType';
12
- import * as AuthorizeActionFactory from '../../authorize';
13
- export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
14
- export type IRecipient = ActionFactory.IParticipantAsSeller;
12
+ import { IAttributes as IBaseAttributes } from '../../authorize';
13
+ export type IAgent = IParticipantAsWebApplication | IParticipantAsPerson;
14
+ export type IRecipient = IParticipantAsSeller;
15
15
  export declare enum ResultType {
16
16
  Payment = "Payment"
17
17
  }
@@ -209,7 +209,7 @@ export interface IInstrumentAsAssetTransaction {
209
209
  identifier: ServiceIdentifier;
210
210
  }
211
211
  export type IInstrument = IInstrumentAsAssetTransaction;
212
- export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'identifier' | 'error' | 'agent'> {
212
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'identifier' | 'error' | 'agent'> {
213
213
  typeOf: ActionType.AuthorizeAction;
214
214
  object: IObject;
215
215
  agent: IAgent;
@@ -229,4 +229,4 @@ export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IOb
229
229
  /**
230
230
  * authorize payment action
231
231
  */
232
- export type IAction = ActionFactory.IAction<IAttributes>;
232
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,17 +1,17 @@
1
- import * as ActionFactory from '../../action';
1
+ import { IAction as IBaseAction } from '../../action';
2
2
  import { IAuthorization, IObject as IAuthorizationObject } from '../../authorization';
3
3
  import { CreativeWorkType } from '../../creativeWorkType';
4
- import * as AuthorizeActionFactory from '../authorize';
4
+ import { IAttributes as IBaseAttributes } from '../authorize';
5
5
  export type IObject = IAuthorizationObject[];
6
6
  export type IResult = Pick<IAuthorization, 'code' | 'typeOf'>[];
7
7
  export interface IInstrument {
8
8
  id: string;
9
9
  typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
10
10
  }
11
- export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'recipient' | 'result' | 'typeOf'> {
11
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'recipient' | 'result' | 'typeOf'> {
12
12
  instrument?: IInstrument;
13
13
  }
14
14
  /**
15
15
  * チケットオブジェクト承認アクション
16
16
  */
17
- export type IAction = ActionFactory.IAction<IAttributes>;
17
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,13 +1,13 @@
1
- import * as ActionFactory from '../action';
1
+ import { IParticipant, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../action';
2
2
  import { ActionType } from '../actionType';
3
3
  export type IObject = any;
4
4
  export type IResult = any;
5
5
  export type IPurpose = any;
6
- export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.AuthorizeAction, TObject, TResult> {
6
+ export interface IAttributes<TObject, TResult> extends IBaseAttributes<ActionType.AuthorizeAction, TObject, TResult> {
7
7
  purpose?: IPurpose;
8
- recipient: ActionFactory.IParticipant;
8
+ recipient: IParticipant;
9
9
  }
10
10
  /**
11
11
  * 承認アクション
12
12
  */
13
- export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
13
+ export type IAction<TAttributes extends IAttributes<IObject, IResult>> = IBaseAction<TAttributes>;
@@ -1,4 +1,4 @@
1
- import * as ActionFactory from '../../action';
1
+ import { IParticipantAsProject, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { AssetTransactionType } from '../../assetTransactionType';
4
4
  import { IOrder } from '../../order';
@@ -8,7 +8,7 @@ import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
8
8
  import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
9
9
  export { IRecipe as ICancelPendingCOAReserveRecipe };
10
10
  export type IDelTmpReserveResultAsError = IResultAsError;
11
- export type IAgent = ActionFactory.IParticipantAsProject;
11
+ export type IAgent = IParticipantAsProject;
12
12
  export type IObject = IDelTmpReserveArgs & {
13
13
  reservationStatus: IAvailableReservationStatusType;
14
14
  transactionNumber: string;
@@ -20,11 +20,11 @@ export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
20
20
  export type IReturnActionAsInstrument = Pick<IReturnReserveTransactionAction, 'id' | 'purpose' | 'typeOf'>;
21
21
  export type IPlaceOrderAsInstrument = Pick<IPlaceOrder, 'id' | 'typeOf'>;
22
22
  export type IInstrument = IOrderAsInstrument | IReturnActionAsInstrument | IPlaceOrderAsInstrument;
23
- export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult>, 'typeOf' | 'result' | 'project' | 'object' | 'agent' | 'instrument'> {
23
+ export interface IAttributes extends Pick<IBaseAttributes<ActionType.CancelAction, IObject, IResult>, 'typeOf' | 'result' | 'project' | 'object' | 'agent' | 'instrument'> {
24
24
  agent: IAgent;
25
25
  instrument?: IInstrument[];
26
26
  }
27
27
  /**
28
28
  * cancel coa reserve
29
29
  */
30
- export type IAction = ActionFactory.IAction<IAttributes>;
30
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,4 +1,4 @@
1
- import * as ActionFactory from '../../action';
1
+ import { IParticipantAsProject, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { AssetTransactionType } from '../../assetTransactionType';
4
4
  import { EventType } from '../../eventType';
@@ -8,7 +8,7 @@ import { IAvailableReservationStatusType } from '../../reservation';
8
8
  import { ReservationType } from '../../reservationType';
9
9
  import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
10
10
  import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
11
- export type IAgent = ActionFactory.IParticipantAsProject;
11
+ export type IAgent = IParticipantAsProject;
12
12
  export interface IReservationPackageAsObject {
13
13
  reservationFor: {
14
14
  typeOf: EventType.ScreeningEvent;
@@ -54,7 +54,7 @@ export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
54
54
  export type IReturnActionAsInstrument = Pick<IReturnReserveTransactionAction, 'id' | 'purpose' | 'typeOf'>;
55
55
  export type IPlaceOrderAsInstrument = Pick<IPlaceOrder, 'id' | 'typeOf'>;
56
56
  export type IInstrument = IOrderAsInstrument | IReturnActionAsInstrument | IPlaceOrderAsInstrument;
57
- export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'object' | 'agent' | 'instrument'> {
57
+ export interface IAttributes extends Pick<IBaseAttributes<ActionType.CancelAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'object' | 'agent' | 'instrument'> {
58
58
  agent: IAgent;
59
59
  purpose: IPurpose;
60
60
  /**
@@ -65,4 +65,4 @@ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.C
65
65
  /**
66
66
  * cancel reservation action
67
67
  */
68
- export type IAction = ActionFactory.IAction<IAttributes>;
68
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,4 +1,4 @@
1
- import * as ActionFactory from '../../../action';
1
+ import { IParticipantAsWebApplication, IParticipantAsPerson, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import { OrganizationType } from '../../../organizationType';
4
4
  import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
@@ -6,7 +6,7 @@ import { IMkknInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IPurchaseN
6
6
  import { TransactionType } from '../../../transactionType';
7
7
  import * as PayActionFactory from '../../trade/pay';
8
8
  export { IMkknInfo, IYkknInfo, IPurchaseNumberInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe };
9
- export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
9
+ export type IAgent = IParticipantAsWebApplication | IParticipantAsPerson;
10
10
  /**
11
11
  * 認証対象の決済カード
12
12
  */
@@ -37,7 +37,7 @@ export interface IPurpose {
37
37
  typeOf: TransactionType.PlaceOrder;
38
38
  id: string;
39
39
  }
40
- export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
40
+ export interface IAttributes extends Pick<IBaseAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
41
41
  agent: IAgent;
42
42
  object: IObject;
43
43
  purpose?: IPurpose;
@@ -45,4 +45,4 @@ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.C
45
45
  /**
46
46
  * 決済カード認証アクション
47
47
  */
48
- export type IAction = ActionFactory.IAction<IAttributes>;
48
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,8 +1,8 @@
1
- import * as ActionFactory from '../../action';
1
+ import { IParticipantAsWebApplication, IParticipantAsPerson, IParticipantAsProject, ISameAs, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { EventType } from '../../eventType';
4
4
  import { OrderType } from '../../order';
5
- export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject;
5
+ export type IAgent = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsProject;
6
6
  export interface IObjectAsEvent {
7
7
  id: string;
8
8
  typeOf: EventType.ScreeningEvent;
@@ -15,13 +15,13 @@ export type IObject = IObjectAsEvent | IObjectAsOrder;
15
15
  export interface IResult {
16
16
  }
17
17
  export type IError = any;
18
- export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'result' | 'sameAs' | 'typeOf'> {
18
+ export interface IAttributes extends Pick<IBaseAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'result' | 'sameAs' | 'typeOf'> {
19
19
  purpose?: never;
20
20
  agent: IAgent;
21
21
  object: IObject;
22
- sameAs: ActionFactory.ISameAs;
22
+ sameAs: ISameAs;
23
23
  }
24
24
  /**
25
25
  * 汎用リソース検証アクション
26
26
  */
27
- export type IAction = ActionFactory.IAction<IAttributes>;
27
+ export type IAction = IBaseAction<IAttributes>;
@@ -3,7 +3,7 @@ import { IOrder } from '../../../order';
3
3
  import { PlaceType } from '../../../placeType';
4
4
  import { ITicket, TicketType } from '../../../reservation';
5
5
  import { IIssuedThrough, IReservation, IReservationForLegacy } from '../../../reservation/event';
6
- import * as UseActionFactory from '../use';
6
+ import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../use';
7
7
  export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
8
8
  /**
9
9
  * 予約使用アクションオブジェクト
@@ -39,7 +39,7 @@ export interface ITicketAsInstrument {
39
39
  typeOf: TicketType;
40
40
  }
41
41
  export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
42
- export interface IAttributes extends Pick<UseActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
42
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
43
43
  agent: IAgent;
44
44
  /**
45
45
  * extend to array(2025-02-17~)
@@ -50,4 +50,4 @@ export interface IAttributes extends Pick<UseActionFactory.IAttributes<IObject,
50
50
  /**
51
51
  * use reservation action
52
52
  */
53
- export type IAction = UseActionFactory.IAction<IAttributes>;
53
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,10 +1,10 @@
1
- import * as ActionFactory from '../../action';
1
+ import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  export type IObject = any;
4
4
  export type IResult = any;
5
- export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult>, 'typeOf' | 'result' | 'project' | 'object' | 'location' | 'error' | 'instrument' | 'agent'> {
5
+ export interface IAttributes<TObject, TResult> extends Pick<IBaseAttributes<ActionType.UseAction, TObject, TResult>, 'typeOf' | 'result' | 'project' | 'object' | 'location' | 'error' | 'instrument' | 'agent'> {
6
6
  }
7
7
  /**
8
8
  * use action
9
9
  */
10
- export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
10
+ export type IAction<TAttributes extends IAttributes<IObject, IResult>> = IBaseAction<TAttributes>;
@@ -1,4 +1,4 @@
1
- import * as ActionFactory from '../action';
1
+ import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../action';
2
2
  import { ActionType } from '../actionType';
3
3
  import { ISimpleOrder } from '../order';
4
4
  import { IOrderAsMainEntity, IReportDocument } from '../report/accountingReport';
@@ -10,10 +10,10 @@ export interface IResult {
10
10
  }
11
11
  export type IPurposeAsOrder = ISimpleOrder;
12
12
  export type IPurpose = IPurposeAsOrder;
13
- export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CreateAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'sameAs' | 'typeOf'> {
13
+ export interface IAttributes extends Pick<IBaseAttributes<ActionType.CreateAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'sameAs' | 'typeOf'> {
14
14
  purpose?: IPurpose;
15
15
  }
16
16
  /**
17
17
  * 作成アクション
18
18
  */
19
- export type IAction = ActionFactory.IAction<IAttributes>;
19
+ export type IAction = IBaseAction<IAttributes>;
@@ -1,6 +1,6 @@
1
1
  import { AssetTransactionType } from '../../../assetTransactionType';
2
2
  import { ISimpleOrder } from '../../../order';
3
- import * as ConfirmActionFactory from '../confirm';
3
+ import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../confirm';
4
4
  export type IPurpose = ISimpleOrder;
5
5
  export interface IPayAssetTransaction {
6
6
  typeOf: AssetTransactionType.Pay;
@@ -19,10 +19,10 @@ export interface IPayAssetTransaction {
19
19
  }
20
20
  export type IObject = IPayAssetTransaction[];
21
21
  export type IResult = any;
22
- export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
22
+ export interface IAttributes extends IBaseAttributes<IObject, IResult> {
23
23
  purpose: IPurpose;
24
24
  }
25
25
  /**
26
26
  * 決済取引確定アクション
27
27
  */
28
- export type IAction = ConfirmActionFactory.IAction<IAttributes>;
28
+ export type IAction = IBaseAction<IAttributes>;
@@ -2,7 +2,7 @@ import { IParticipantAsProject } from '../../../action';
2
2
  import * as RegisterServiceFactory from '../../../assetTransaction/registerService';
3
3
  import { AssetTransactionType } from '../../../assetTransactionType';
4
4
  import { ISimpleOrder } from '../../../order';
5
- import * as ConfirmActionFactory from '../confirm';
5
+ import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../confirm';
6
6
  export type IAgent = IParticipantAsProject;
7
7
  export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
8
8
  transactionNumber: string;
@@ -17,11 +17,11 @@ export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNu
17
17
  };
18
18
  export type IPurpose = ISimpleOrder;
19
19
  export type IResult = any;
20
- export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
20
+ export interface IAttributes extends IBaseAttributes<IObject, IResult> {
21
21
  agent: IAgent;
22
22
  purpose: IPurpose;
23
23
  }
24
24
  /**
25
25
  * サービス登録確定アクション
26
26
  */
27
- export type IAction = ConfirmActionFactory.IAction<IAttributes>;
27
+ export type IAction = IBaseAction<IAttributes>;
@@ -3,7 +3,7 @@ import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
3
3
  import { AssetTransactionType } from '../../../assetTransactionType';
4
4
  import { ISimpleOrder } from '../../../order';
5
5
  import { IRecipe, IUpdReserveArgs } from '../../../recipe/confirmCOAReserve';
6
- import * as ConfirmActionFactory from '../confirm';
6
+ import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../confirm';
7
7
  export { IRecipe as IConfirmCOAReserveRecipe };
8
8
  export type IAgent = IParticipantAsProject;
9
9
  export type IObject4COA = IUpdReserveArgs & {
@@ -24,11 +24,11 @@ export type IObject = IObject4COA | IObject4Chevre;
24
24
  export type IPurpose = ISimpleOrder;
25
25
  export interface IResult {
26
26
  }
27
- export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
27
+ export interface IAttributes extends IBaseAttributes<IObject, IResult> {
28
28
  agent: IAgent;
29
29
  purpose: IPurpose;
30
30
  }
31
31
  /**
32
32
  * 予約取引確定アクション
33
33
  */
34
- export type IAction = ConfirmActionFactory.IAction<IAttributes>;
34
+ export type IAction = IBaseAction<IAttributes>;