@chevre/factory 4.225.0 → 4.228.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.
package/lib/chevre.d.ts CHANGED
@@ -6,7 +6,6 @@ import * as cognito from './cognito';
6
6
  export import cognito = cognito;
7
7
  export import waiter = waiter;
8
8
  import * as AccountFactory from './factory/account';
9
- import { AccountStatusType } from './factory/accountStatusType';
10
9
  import * as ActionFactory from './factory/action';
11
10
  import * as AuthorizeActionFactory from './factory/action/authorize';
12
11
  import * as PointAwardAuthorizeActionFactory from './factory/action/authorize/award/point';
@@ -179,7 +178,6 @@ import * as errors from './factory/errors';
179
178
  export import errors = errors;
180
179
  export import errorCode = ErrorCode;
181
180
  export import account = AccountFactory;
182
- export import accountStatusType = AccountStatusType;
183
181
  export import actionStatusType = ActionStatusType;
184
182
  export import actionType = ActionType;
185
183
  export declare namespace action {
package/lib/chevre.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.accountStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = void 0;
3
+ exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
+ exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -10,7 +10,6 @@ var cognito = require("./cognito");
10
10
  exports.cognito = cognito;
11
11
  exports.waiter = waiter;
12
12
  var AccountFactory = require("./factory/account");
13
- var accountStatusType_1 = require("./factory/accountStatusType");
14
13
  var PointAwardAuthorizeActionFactory = require("./factory/action/authorize/award/point");
15
14
  var AuthorizeMoneyTransferOfferActionFactory = require("./factory/action/authorize/offer/moneyTransfer");
16
15
  var AuthorizeProductOfferActionFactory = require("./factory/action/authorize/offer/product");
@@ -145,7 +144,6 @@ var errors = require("./factory/errors");
145
144
  exports.errors = errors;
146
145
  exports.errorCode = errorCode_1.ErrorCode;
147
146
  exports.account = AccountFactory;
148
- exports.accountStatusType = accountStatusType_1.AccountStatusType;
149
147
  exports.actionStatusType = actionStatusType_1.ActionStatusType;
150
148
  exports.actionType = actionType_1.ActionType;
151
149
  var action;
@@ -1,5 +1,4 @@
1
1
  import { AccountTransactionType } from './account/transactionType';
2
- import { AccountStatusType } from './accountStatusType';
3
2
  import { AccountType } from './accountType';
4
3
  import { IProject } from './project';
5
4
  import { SortType } from './sortType';
@@ -8,6 +7,19 @@ import * as TransactionFactory from './account/transaction';
8
7
  import * as DepositTransactionFactory from './account/transaction/deposit';
9
8
  import * as TransferTransactionFactory from './account/transaction/transfer';
10
9
  import * as WithdrawTransactionFactory from './account/transaction/withdraw';
10
+ /**
11
+ * 口座ステータスタイプ
12
+ */
13
+ export declare enum AccountStatusType {
14
+ /**
15
+ * 開設済
16
+ */
17
+ Opened = "Opened",
18
+ /**
19
+ * 解約済
20
+ */
21
+ Closed = "Closed"
22
+ }
11
23
  export declare namespace action {
12
24
  export import moneyTransfer = MoneyTransferActionFactory;
13
25
  }
@@ -23,7 +35,7 @@ export declare namespace transaction {
23
35
  }
24
36
  export import transactionType = AccountTransactionType;
25
37
  /**
26
- * 進行中取引インターフェース
38
+ * 進行中取引
27
39
  */
28
40
  export interface IPendingTransaction {
29
41
  typeOf: AccountTransactionType;
@@ -37,7 +49,7 @@ export interface IPendingTransaction {
37
49
  amount: number;
38
50
  }
39
51
  /**
40
- * 口座インターフェース
52
+ * 口座
41
53
  */
42
54
  export interface IAccount {
43
55
  project: IProject;
@@ -83,7 +95,7 @@ export interface IAccount {
83
95
  status?: AccountStatusType;
84
96
  }
85
97
  /**
86
- * ソート条件インターフェース
98
+ * ソート条件
87
99
  */
88
100
  export interface ISortOrder {
89
101
  /**
@@ -98,7 +110,7 @@ export interface IProjectSearchConditions {
98
110
  };
99
111
  }
100
112
  /**
101
- * 口座検索条件インターフェース
113
+ * 口座検索条件
102
114
  */
103
115
  export interface ISearchConditions {
104
116
  limit?: number;
@@ -1,11 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.transactionType = exports.transaction = exports.action = void 0;
3
+ exports.transactionType = exports.transaction = exports.action = exports.AccountStatusType = void 0;
4
4
  var transactionType_1 = require("./account/transactionType");
5
5
  var MoneyTransferActionFactory = require("./account/action/moneyTransfer");
6
6
  var DepositTransactionFactory = require("./account/transaction/deposit");
7
7
  var TransferTransactionFactory = require("./account/transaction/transfer");
8
8
  var WithdrawTransactionFactory = require("./account/transaction/withdraw");
9
+ /**
10
+ * 口座ステータスタイプ
11
+ */
12
+ var AccountStatusType;
13
+ (function (AccountStatusType) {
14
+ /**
15
+ * 開設済
16
+ */
17
+ AccountStatusType["Opened"] = "Opened";
18
+ /**
19
+ * 解約済
20
+ */
21
+ AccountStatusType["Closed"] = "Closed";
22
+ })(AccountStatusType = exports.AccountStatusType || (exports.AccountStatusType = {}));
9
23
  var action;
10
24
  (function (action) {
11
25
  action.moneyTransfer = MoneyTransferActionFactory;
@@ -3,16 +3,17 @@ import { ActionType } from '../../actionType';
3
3
  import { AssetTransactionType } from '../../assetTransactionType';
4
4
  import { IReservation as IEventReservation } from '../../reservation/event';
5
5
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
6
+ export declare type IAgent = ActionFactory.IParticipantAsProject;
6
7
  /**
7
- * 予約キャンセル対象インターフェース
8
+ * 予約キャンセル対象
8
9
  */
9
10
  export declare type IObject = IEventReservation;
10
11
  /**
11
- * 予約キャンセル結果インターフェース
12
+ * 予約キャンセル結果
12
13
  */
13
14
  export declare type IResult = any;
14
15
  /**
15
- * 予約キャンセル目的インターフェース
16
+ * 予約キャンセル目的
16
17
  */
17
18
  export interface IPurpose {
18
19
  /**
@@ -28,13 +29,14 @@ export declare type IInformReservation = IInformActionAttributes<IObject, any>;
28
29
  export interface IPotentialActions {
29
30
  }
30
31
  /**
31
- * アクション属性インターフェース
32
+ * アクション属性
32
33
  */
33
34
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult> {
35
+ agent: IAgent;
34
36
  potentialActions?: IPotentialActions;
35
37
  purpose: IPurpose;
36
38
  }
37
39
  /**
38
- * 予約キャンセルアクションインターフェース
40
+ * 予約キャンセルアクション
39
41
  */
40
42
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,15 +1,18 @@
1
+ import { IParticipantAsProject } from '../../../action';
1
2
  import { IPermit } from '../../../permit';
2
3
  import { IAttributes as IMoneyTransferActionAttributes } from '../../transfer/moneyTransfer';
3
4
  import * as RegisterActionFactory from '../register';
5
+ export declare type IAgent = IParticipantAsProject;
4
6
  export declare type IObject = IPermit;
5
7
  export declare type IResult = any;
6
8
  export interface IPotentialActions {
7
9
  moneyTransfer: IMoneyTransferActionAttributes[];
8
10
  }
9
11
  export interface IAttributes extends RegisterActionFactory.IAttributes<IObject, IResult> {
12
+ agent: IAgent;
10
13
  potentialActions?: IPotentialActions;
11
14
  }
12
15
  /**
13
- * サービス登録アクションインターフェース
16
+ * サービス登録アクション
14
17
  */
15
18
  export declare type IAction = RegisterActionFactory.IAction<IAttributes>;
@@ -5,6 +5,7 @@ import { OrderType } from '../order';
5
5
  import { IReservation as IEventReservation } from '../reservation/event';
6
6
  import { IAttributes as IInformActionAttributes } from './interact/inform';
7
7
  import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
8
+ export declare type IAgent = ActionFactory.IParticipantAsProject;
8
9
  /**
9
10
  * 予約対象
10
11
  */
@@ -37,6 +38,7 @@ export interface IPotentialActions {
37
38
  * アクション属性
38
39
  */
39
40
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
41
+ agent: IAgent;
40
42
  potentialActions?: IPotentialActions;
41
43
  purpose: IPurpose;
42
44
  }
@@ -5,7 +5,7 @@ import * as MoneyTransferTransactionFactory from '../../assetTransaction/moneyTr
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
6
6
  import { IMonetaryAmount } from '../../monetaryAmount';
7
7
  /**
8
- * 進行中取引インターフェース
8
+ * 進行中取引
9
9
  */
10
10
  export interface IPendingTransaction {
11
11
  typeOf: AccountFactory.transactionType;
@@ -16,11 +16,11 @@ export interface IPendingTransaction {
16
16
  export declare type IAgent = ActionFactory.IParticipant;
17
17
  export declare type IRecipient = ActionFactory.IParticipant;
18
18
  /**
19
- * 匿名ロケーションインターフェース
19
+ * 匿名ロケーション
20
20
  */
21
21
  export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymousLocation;
22
22
  /**
23
- * ペイメントカードインターフェース
23
+ * ペイメントカード
24
24
  */
25
25
  export import IPaymentCard = MoneyTransferTransactionFactory.IPaymentCard;
26
26
  /**
@@ -45,6 +45,8 @@ export interface ITransactionPurpose {
45
45
  export declare type IPurpose = ITransactionPurpose;
46
46
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.MoneyTransfer, IObject, IResult> {
47
47
  typeOf: ActionType.MoneyTransfer;
48
+ agent: IAgent;
49
+ recipient: IRecipient;
48
50
  purpose: IPurpose;
49
51
  /**
50
52
  * 金額
@@ -21,7 +21,7 @@ export declare type IPurpose = ISimpleOrder;
21
21
  export declare type IResult = any;
22
22
  export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReturnAction, TObject, TResult> {
23
23
  agent: IAgent;
24
- purpose?: IPurpose;
24
+ purpose: IPurpose;
25
25
  }
26
26
  /**
27
27
  * 予約返却アクション
@@ -1,18 +1,32 @@
1
1
  import { ActionStatusType } from './actionStatusType';
2
2
  import { ActionType } from './actionType';
3
3
  import { IExtendId } from './autoGenerated';
4
- import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
4
+ import { CreativeWorkType } from './creativeWorkType';
5
5
  import { ICustomer } from './customer';
6
6
  import { IMultilingualString } from './multilingualString';
7
- import { IPerson } from './person';
7
+ import { OrganizationType } from './organizationType';
8
+ import { IPersonAttributes } from './person';
8
9
  import { IProject } from './project';
9
10
  import { IPropertyValue } from './propertyValue';
10
11
  import { ISeller } from './seller';
11
12
  import { SortType } from './sortType';
12
- export declare type IParticipantAsWebApplication = Omit<IWebApplication, 'additionalProperty'>;
13
- export declare type IParticipantAsPerson = Omit<IPerson, 'email' | 'telephone' | 'givenName' | 'familyName' | 'additionalProperty'>;
13
+ export interface IParticipantAsWebApplication {
14
+ typeOf: CreativeWorkType.WebApplication;
15
+ id: string;
16
+ name?: string;
17
+ url?: string;
18
+ }
19
+ export declare type IParticipantAsPerson = IPersonAttributes & {
20
+ name?: string;
21
+ url?: string;
22
+ };
14
23
  export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'paymentAccepted' | 'project' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'>;
15
- export declare type IParticipantAsProject = Omit<IProject, 'settings' | 'subscription' | 'alternateName' | 'description' | 'additionalProperty'>;
24
+ export interface IParticipantAsProject {
25
+ typeOf: OrganizationType.Project;
26
+ id: string;
27
+ name?: string;
28
+ url?: string;
29
+ }
16
30
  export declare type IParticipantAsCustomer = Omit<ICustomer, 'name' | 'branchCode' | 'contactPoint' | 'project' | 'additionalProperty'> & {
17
31
  name?: string | IMultilingualString;
18
32
  };
@@ -1,21 +1,16 @@
1
1
  import { IAttributes as ICancelReservationActionAttributes } from '../action/cancel/reservation';
2
- import * as TransactionFactory from '../assetTransaction';
2
+ import * as AssetTransactionFactory from '../assetTransaction';
3
3
  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
7
  import { IReservation as IEventReservation } from '../reservation/event';
8
- export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
8
+ export import IAgent = AssetTransactionFactory.IAgent;
9
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
9
10
  /**
10
- * 取引開始パラメーター
11
+ * 取引開始パラメータ
11
12
  */
12
- export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObject>;
13
- export interface IAgent {
14
- typeOf: string;
15
- id?: string;
16
- name: string;
17
- url?: string;
18
- }
13
+ export declare type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObject>;
19
14
  export interface IResult {
20
15
  }
21
16
  /**
@@ -56,7 +51,7 @@ export declare type ITransaction = IExtendId<IAttributes>;
56
51
  /**
57
52
  * 取引属性
58
53
  */
59
- export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
54
+ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
60
55
  }
61
- export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.CancelReservation> {
56
+ export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.CancelReservation> {
62
57
  }
@@ -1,12 +1,14 @@
1
- import { IAgent as IMoneyTransferAgent, IAttributes as IMoneyTransferActionAttributes, ILocation, IPendingTransaction, IRecipient as IMoneyTransferRecipient } from '../action/transfer/moneyTransfer';
2
- import * as TransactionFactory from '../assetTransaction';
1
+ import { IAttributes as IMoneyTransferActionAttributes, ILocation, IPendingTransaction, IRecipient as IMoneyTransferRecipient } from '../action/transfer/moneyTransfer';
2
+ import * as AssetTransactionFactory from '../assetTransaction';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
5
5
  import { IMonetaryAmount } from '../monetaryAmount';
6
6
  import { OrderType } from '../order';
7
7
  import { PermitType } from '../permit';
8
- export declare type IAgent = IMoneyTransferAgent;
9
- export declare type IRecipient = IMoneyTransferRecipient;
8
+ export import IAgent = AssetTransactionFactory.IAgent;
9
+ export declare type IRecipient = IMoneyTransferRecipient & {
10
+ name: string;
11
+ };
10
12
  export declare type IFromLocation = ILocation;
11
13
  export declare type IToLocation = ILocation;
12
14
  /**
@@ -88,13 +90,13 @@ export interface IObjectBeforeStart {
88
90
  */
89
91
  force?: boolean;
90
92
  }
91
- export interface IStartParamsWithoutDetail extends TransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectWithoutDetail> {
93
+ export interface IStartParamsWithoutDetail extends AssetTransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectWithoutDetail> {
92
94
  recipient: IRecipient;
93
95
  }
94
- export interface IStartParamsBeforeStart extends TransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectBeforeStart> {
96
+ export interface IStartParamsBeforeStart extends AssetTransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectBeforeStart> {
95
97
  recipient: IRecipient;
96
98
  }
97
- export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObject> {
99
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObject> {
98
100
  recipient: IRecipient;
99
101
  }
100
102
  export declare type IResult = any;
@@ -105,13 +107,13 @@ export interface IPotentialActions {
105
107
  */
106
108
  moneyTransfer: IMoneyTransferActionAttributes[];
107
109
  }
108
- export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
110
+ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
109
111
  }
110
112
  /**
111
113
  * 転送取引
112
114
  */
113
115
  export declare type ITransaction = IExtendId<IAttributes>;
114
- export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.MoneyTransfer> {
116
+ export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.MoneyTransfer> {
115
117
  object?: {
116
118
  fromLocation?: {
117
119
  identifier?: {
@@ -1,7 +1,6 @@
1
1
  import * as GMO from '@motionpicture/gmo-service';
2
- import { IParticipant } from '../action';
3
2
  import { IAttributes as IPayActionAttributes, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
4
- import * as TransactionFactory from '../assetTransaction';
3
+ import * as AssetTransactionFactory from '../assetTransaction';
5
4
  import { AssetTransactionType } from '../assetTransactionType';
6
5
  import { IExtendId } from '../autoGenerated';
7
6
  import { IMonetaryAmount } from '../monetaryAmount';
@@ -10,14 +9,14 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
10
9
  import { IOnPaymentStatusChanged } from '../project';
11
10
  import { IPropertyValue } from '../propertyValue';
12
11
  import { PaymentServiceType } from '../service/paymentService';
13
- export declare type IAgent = IParticipant;
12
+ export import IAgent = AssetTransactionFactory.IAgent;
14
13
  export declare type IRecipient = IPayRecipient;
15
14
  export declare type IObjectWithoutDetail = IObject;
16
- export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
15
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
17
16
  recipient: IRecipient;
18
17
  purpose?: IPayPurpose;
19
18
  };
20
- export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
19
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
21
20
  recipient: IRecipient;
22
21
  }
23
22
  export interface IPotentialActionsParams {
@@ -26,7 +25,7 @@ export interface IPotentialActionsParams {
26
25
  };
27
26
  }
28
27
  /**
29
- * 確定パラメーターインターフェース
28
+ * 確定パラメータ
30
29
  */
31
30
  export interface IConfirmParams {
32
31
  id?: string;
@@ -101,7 +100,7 @@ export interface IPaymentMethod {
101
100
  creditCard?: ICreditCard;
102
101
  }
103
102
  /**
104
- * 取引対象物インターフェース
103
+ * 取引対象物
105
104
  */
106
105
  export interface IObject {
107
106
  typeOf: PaymentServiceType;
@@ -124,11 +123,8 @@ export interface IPotentialActions {
124
123
  */
125
124
  pay: IPayActionAttributes[];
126
125
  }
127
- export declare type ITransaction = IExtendId<IAttributes>;
128
- /**
129
- * 転送取引インターフェース
130
- */
131
- export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
126
+ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
132
127
  }
133
- export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
128
+ export declare type ITransaction = IExtendId<IAttributes>;
129
+ export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
134
130
  }
@@ -1,12 +1,11 @@
1
1
  import { AvailablePaymentMethodType, IPaymentMethod, IPayPurpose } from '../action/trade/pay';
2
2
  import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient } from '../action/trade/refund';
3
- import * as TransactionFactory from '../assetTransaction';
3
+ import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { IOnPaymentStatusChanged } from '../project';
7
- import { ISeller } from '../seller';
8
7
  import { PaymentServiceType } from '../service/paymentService';
9
- export declare type IAgent = ISeller;
8
+ export import IAgent = AssetTransactionFactory.IAgent;
10
9
  export declare type IRecipient = IRefundRecipient;
11
10
  export interface IObjectWithoutDetail {
12
11
  typeOf: PaymentServiceType;
@@ -17,8 +16,8 @@ export interface IObjectWithoutDetail {
17
16
  paymentMethod: IPaymentMethod;
18
17
  refundFee?: number;
19
18
  }
20
- export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
21
- export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
19
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
20
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
22
21
  }
23
22
  export interface IPotentialActionsParams {
24
23
  refund?: {
@@ -60,7 +59,7 @@ export declare type ITransaction = IExtendId<IAttributes>;
60
59
  /**
61
60
  * 返金取引
62
61
  */
63
- export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
62
+ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
64
63
  }
65
- export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
64
+ export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
66
65
  }
@@ -1,24 +1,19 @@
1
1
  import { IAttributes as IRegisterServiceActionAttributes } from '../action/interact/register/service';
2
2
  import { IAttributes as IMoneyTransferActionAttributes } from '../action/transfer/moneyTransfer';
3
- import * as TransactionFactory from '../assetTransaction';
3
+ import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { OfferType } from '../offerType';
7
7
  import { IProduct, IServiceOutput } from '../product';
8
- export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
8
+ export import IAgent = AssetTransactionFactory.IAgent;
9
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
9
10
  /**
10
- * 取引開始パラメーターインターフェース
11
+ * 取引開始パラメーター
11
12
  * サービス: MembershipService,PaymentCardであればserviceOutputを発行する
12
13
  */
13
- export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
14
- export interface IAgent {
15
- typeOf: string;
16
- id?: string;
17
- name: string;
18
- url?: string;
19
- }
14
+ export declare type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
20
15
  /**
21
- * 確定パラメーターインターフェース
16
+ * 確定パラメータ
22
17
  */
23
18
  export interface IConfirmParams {
24
19
  id?: string;
@@ -32,7 +27,7 @@ export interface IConfirmParams {
32
27
  export interface IResult {
33
28
  }
34
29
  /**
35
- * エラーインターフェース
30
+ * エラー
36
31
  */
37
32
  export declare type IError = any;
38
33
  export interface IAcceptedPointAward {
@@ -80,12 +75,12 @@ export interface IPotentialActions {
80
75
  moneyTransfer: IMoneyTransferActionAttributes[];
81
76
  registerService: IRegisterServiceActionAttributes[];
82
77
  }
83
- export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
78
+ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
84
79
  }
85
80
  /**
86
- * 取引インターフェース
81
+ * 取引
87
82
  */
88
83
  export declare type ITransaction = IExtendId<IAttributes>;
89
- export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.RegisterService> {
84
+ export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.RegisterService> {
90
85
  object?: any;
91
86
  }
@@ -1,6 +1,6 @@
1
1
  import * as ReserveActionFactory from '../action/reserve';
2
2
  import { ActionType } from '../actionType';
3
- import * as TransactionFactory from '../assetTransaction';
3
+ import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { ITicketOffer } from '../event/screeningEvent';
@@ -11,17 +11,12 @@ import * as ReservationFactory from '../reservation';
11
11
  import { IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
12
12
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
13
13
  import { ReservationType } from '../reservationType';
14
- export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
14
+ export import IAgent = AssetTransactionFactory.IAgent;
15
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
15
16
  /**
16
- * 取引開始パラメーター
17
+ * 取引開始パラメータ
17
18
  */
18
- export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
19
- export interface IAgent {
20
- typeOf: string;
21
- id?: string;
22
- name: string;
23
- url?: string;
24
- }
19
+ export declare type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
25
20
  export interface IAcceptedProgramMembershipUsedAsObject {
26
21
  accessCode?: string;
27
22
  /**
@@ -213,7 +208,7 @@ export interface IObject extends IReservationPackage {
213
208
  export interface IPotentialActions {
214
209
  reserve: ReserveActionFactory.IAttributes[];
215
210
  }
216
- export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
211
+ export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
217
212
  }
218
213
  /**
219
214
  * 予約取引
@@ -237,6 +232,6 @@ export interface IObjectSearchConditions {
237
232
  };
238
233
  };
239
234
  }
240
- export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.Reserve> {
235
+ export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Reserve> {
241
236
  object?: IObjectSearchConditions;
242
237
  }
@@ -1,13 +1,44 @@
1
1
  import { AssetTransactionType } from './assetTransactionType';
2
2
  import { IExtendId } from './autoGenerated';
3
+ import { OrganizationType } from './organizationType';
4
+ import { PersonType } from './personType';
3
5
  import { IProject } from './project';
4
6
  import { SortType } from './sortType';
7
+ import { IIdentifier } from './thing';
5
8
  import { TransactionStatusType } from './transactionStatusType';
6
9
  import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
7
10
  /**
8
- * 取引開始パラメーターインターフェース
11
+ * 販売者主体
9
12
  */
10
- export interface IStartParams<T extends AssetTransactionType, TAgent, TRecipient, TObject> {
13
+ export interface IAgentAsSeller {
14
+ typeOf: OrganizationType.Corporation;
15
+ id: string;
16
+ /**
17
+ * 名称は必須
18
+ */
19
+ name: string;
20
+ identifier?: IIdentifier;
21
+ }
22
+ /**
23
+ * 管理者主体
24
+ */
25
+ export interface IAgentAsPerson {
26
+ typeOf: PersonType.Person;
27
+ id: string;
28
+ /**
29
+ * 名称は必須
30
+ */
31
+ name: string;
32
+ identifier?: IIdentifier;
33
+ }
34
+ /**
35
+ * 資産取引主体は販売者or管理者
36
+ */
37
+ export declare type IAgent = IAgentAsSeller | IAgentAsPerson;
38
+ /**
39
+ * 資産取引開始パラメータ
40
+ */
41
+ export interface IStartParams<T extends AssetTransactionType, TAgent extends IAgent, TRecipient, TObject> {
11
42
  project: IProject;
12
43
  /**
13
44
  * 取引タイプ
@@ -39,11 +70,7 @@ export interface IStartParams<T extends AssetTransactionType, TAgent, TRecipient
39
70
  expires: Date;
40
71
  }
41
72
  /**
42
- * 取引インターフェース
43
- */
44
- export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
45
- /**
46
- * 取引属性インターフェース
73
+ * 資産取引属性
47
74
  */
48
75
  export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TStartParams & {
49
76
  purpose?: any;
@@ -81,7 +108,11 @@ export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions
81
108
  potentialActions?: TPotentialActions;
82
109
  };
83
110
  /**
84
- * ソート条件インターフェース
111
+ * 資産取引
112
+ */
113
+ export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
114
+ /**
115
+ * ソート条件
85
116
  */
86
117
  export interface ISortOrder {
87
118
  startDate?: SortType;
@@ -9,7 +9,7 @@ export declare type IAdditionalProperty = IPropertyValue<string>[];
9
9
  export import IIdentifier = ThingFactory.IIdentifier;
10
10
  export declare type IMemberOf = IProgramMembership;
11
11
  /**
12
- * プロフィールインターフェース
12
+ * プロフィール
13
13
  */
14
14
  export interface IProfile extends ThingFactory.IThing {
15
15
  /**
@@ -38,15 +38,13 @@ export interface IProfile extends ThingFactory.IThing {
38
38
  * Gender of the person.
39
39
  */
40
40
  gender?: string;
41
+ name?: string;
41
42
  /**
42
43
  * The telephone number.
43
44
  */
44
45
  telephone?: string;
45
46
  }
46
- /**
47
- * 人物インターフェース
48
- */
49
- export declare type IPerson = IProfile & {
47
+ export interface IPersonAttributes {
50
48
  /**
51
49
  * Person ID (Amazon Cognito User Identifier)
52
50
  */
@@ -56,4 +54,8 @@ export declare type IPerson = IProfile & {
56
54
  */
57
55
  memberOf?: IMemberOf;
58
56
  typeOf: PersonType;
59
- };
57
+ }
58
+ /**
59
+ * 人物
60
+ */
61
+ export declare type IPerson = IProfile & IPersonAttributes;
@@ -10,7 +10,6 @@ export interface IInformParams {
10
10
  */
11
11
  recipient?: {
12
12
  id?: string;
13
- typeOf?: any;
14
13
  name?: string;
15
14
  url?: string;
16
15
  };
@@ -19,7 +18,7 @@ export interface IOnPaymentStatusChanged {
19
18
  informPayment?: IInformParams[];
20
19
  }
21
20
  /**
22
- * 予約使用時イベントインターフェース
21
+ * 予約使用時イベント
23
22
  */
24
23
  export interface IOnReservationUsed {
25
24
  informAction?: IInformParams[];
@@ -27,7 +26,7 @@ export interface IOnReservationUsed {
27
26
  export interface ICognitoSettings {
28
27
  }
29
28
  /**
30
- * 注文ステータス変更時イベントインターフェース
29
+ * 注文ステータス変更時イベント
31
30
  */
32
31
  export interface IOnOrderStatusChanged {
33
32
  informOrder?: IInformParams[];
@@ -43,7 +42,7 @@ export interface IWebhookSettings {
43
42
  timeout?: number;
44
43
  }
45
44
  /**
46
- * プロジェクト設定インターフェース
45
+ * プロジェクト設定
47
46
  */
48
47
  export interface ISettings {
49
48
  importEventsInWeeks?: number;
@@ -58,7 +57,7 @@ export interface ISettings {
58
57
  useUsernameAsGMOMemberId?: boolean;
59
58
  }
60
59
  /**
61
- * プロジェクトインターフェース
60
+ * プロジェクト
62
61
  */
63
62
  export interface IProject extends IOrganization {
64
63
  typeOf: OrganizationType.Project;
@@ -72,13 +71,13 @@ export interface IProject extends IOrganization {
72
71
  };
73
72
  }
74
73
  /**
75
- * ソート条件インターフェース
74
+ * ソート条件
76
75
  */
77
76
  export interface ISortOrder {
78
77
  _id?: SortType;
79
78
  }
80
79
  /**
81
- * プロジェクト検索条件インターフェース
80
+ * プロジェクト検索条件
82
81
  */
83
82
  export interface ISearchConditions {
84
83
  limit?: number;
@@ -1,8 +1,11 @@
1
1
  import * as COA from '@motionpicture/coa-service';
2
+ import { CreativeWorkType } from './creativeWorkType';
2
3
  import { IMultilingualString } from './multilingualString';
3
4
  import * as OfferFactory from './offer';
4
5
  import { OfferType } from './offerType';
6
+ import { OrganizationType } from './organizationType';
5
7
  import { IPermit } from './permit';
8
+ import { PersonType } from './personType';
6
9
  import * as SeatFactory from './place/seat';
7
10
  import { PlaceType } from './placeType';
8
11
  import { PriceCurrency } from './priceCurrency';
@@ -32,11 +35,12 @@ export interface ITicketType {
32
35
  }
33
36
  export declare type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
34
37
  export declare type ISeatingType = SeatFactory.ISeatingType;
38
+ export declare type IUnderNameType = CreativeWorkType.WebApplication | PersonType.Person | OrganizationType.Organization | OrganizationType.Corporation | OrganizationType.Project;
35
39
  /**
36
40
  * under name interface
37
41
  */
38
42
  export interface IUnderName {
39
- typeOf: string;
43
+ typeOf: IUnderNameType;
40
44
  name: string;
41
45
  additionalName?: string;
42
46
  address?: string;
@@ -0,0 +1,13 @@
1
+ import { IAttributes as IConfirmRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
2
+ import { IExtendId } from '../autoGenerated';
3
+ import * as TaskFactory from '../task';
4
+ import { TaskName } from '../taskName';
5
+ export declare type IData = IConfirmRegisterServiceActionAttributes;
6
+ export interface IAttributes extends TaskFactory.IAttributes {
7
+ name: TaskName.ConfirmRegisterServiceTransaction;
8
+ data: IData;
9
+ }
10
+ /**
11
+ * サービス登録資産取引確定タスク
12
+ */
13
+ export declare type ITask = IExtendId<IAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -55,6 +55,10 @@ export declare enum TaskName {
55
55
  * 決済資産取引確定
56
56
  */
57
57
  ConfirmPayTransaction = "confirmPayTransaction",
58
+ /**
59
+ * サービス登録資産取引確定
60
+ */
61
+ ConfirmRegisterServiceTransaction = "confirmRegisterServiceTransaction",
58
62
  /**
59
63
  * 予約資産取引確定
60
64
  */
@@ -59,6 +59,10 @@ var TaskName;
59
59
  * 決済資産取引確定
60
60
  */
61
61
  TaskName["ConfirmPayTransaction"] = "confirmPayTransaction";
62
+ /**
63
+ * サービス登録資産取引確定
64
+ */
65
+ TaskName["ConfirmRegisterServiceTransaction"] = "confirmRegisterServiceTransaction";
62
66
  /**
63
67
  * 予約資産取引確定
64
68
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.225.0",
3
+ "version": "4.228.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,13 +0,0 @@
1
- /**
2
- * 口座ステータスタイプ
3
- */
4
- export declare enum AccountStatusType {
5
- /**
6
- * 開設済
7
- */
8
- Opened = "Opened",
9
- /**
10
- * 解約済
11
- */
12
- Closed = "Closed"
13
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountStatusType = void 0;
4
- /**
5
- * 口座ステータスタイプ
6
- */
7
- var AccountStatusType;
8
- (function (AccountStatusType) {
9
- /**
10
- * 開設済
11
- */
12
- AccountStatusType["Opened"] = "Opened";
13
- /**
14
- * 解約済
15
- */
16
- AccountStatusType["Closed"] = "Closed";
17
- })(AccountStatusType = exports.AccountStatusType || (exports.AccountStatusType = {}));