@chevre/factory 4.223.0 → 4.226.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
@@ -442,6 +442,8 @@ export declare namespace assetTransaction {
442
442
  export import reserve = ReserveAssetTransactionFactory;
443
443
  }
444
444
  export declare namespace transaction {
445
+ export import IAgentProfile = TransactionFactory.IAgentProfile;
446
+ export import IAgent = TransactionFactory.IAgent;
445
447
  export import IPassportBeforeStart = TransactionFactory.IPassportBeforeStart;
446
448
  export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
447
449
  export import ISortOrder = TransactionFactory.ISortOrder;
@@ -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
  * 金額
@@ -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
  };
@@ -5,6 +5,7 @@ import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { OfferType } from '../offerType';
7
7
  import { IProduct, IServiceOutput } from '../product';
8
+ import { IUnderNameType } from '../reservation';
8
9
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
9
10
  /**
10
11
  * 取引開始パラメーターインターフェース
@@ -12,7 +13,7 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
12
13
  */
13
14
  export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
14
15
  export interface IAgent {
15
- typeOf: string;
16
+ typeOf: IUnderNameType;
16
17
  id?: string;
17
18
  name: string;
18
19
  url?: string;
@@ -17,7 +17,7 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
17
17
  */
18
18
  export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
19
19
  export interface IAgent {
20
- typeOf: string;
20
+ typeOf: ReservationFactory.IUnderNameType;
21
21
  id?: string;
22
22
  name: string;
23
23
  url?: string;
@@ -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;
@@ -2,7 +2,7 @@ import { ActionType } from '../actionType';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { OfferType } from '../offerType';
4
4
  import { PermitType } from '../permit';
5
- import { IAdditionalProperty, IIdentifier } from '../person';
5
+ import { IIdentifier } from '../person';
6
6
  import { PersonType } from '../personType';
7
7
  import { ProductType } from '../product';
8
8
  import { IProject } from '../project';
@@ -12,7 +12,6 @@ import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../tran
12
12
  export interface IAgent {
13
13
  typeOf: PersonType.Person;
14
14
  id: string;
15
- additionalProperty?: IAdditionalProperty;
16
15
  identifier: IIdentifier;
17
16
  }
18
17
  export interface IAcceptedOffer {
@@ -5,14 +5,14 @@ import { TaskName } from './taskName';
5
5
  import { TaskStatus } from './taskStatus';
6
6
  export declare type IData = any;
7
7
  /**
8
- * タスク実行結果インターフェース
8
+ * タスク実行結果
9
9
  */
10
10
  export interface IExecutionResult {
11
11
  executedAt: Date;
12
12
  error: any;
13
13
  }
14
14
  /**
15
- * タスクインターフェース
15
+ * タスク
16
16
  */
17
17
  export declare type ITask = IExtendId<IAttributes>;
18
18
  export interface IAttributes {
@@ -52,13 +52,28 @@ export interface IAttributes {
52
52
  data: IData;
53
53
  }
54
54
  /**
55
- * ソート条件インターフェース
55
+ * ソート条件
56
56
  */
57
57
  export interface ISortOrder {
58
58
  runsAt?: SortType;
59
59
  }
60
+ export interface IDataSearchConditions {
61
+ object?: {
62
+ transactionNumber?: {
63
+ $eq?: string;
64
+ };
65
+ };
66
+ purpose?: {
67
+ id?: {
68
+ $eq?: string;
69
+ };
70
+ orderNumber?: {
71
+ $eq?: string;
72
+ };
73
+ };
74
+ }
60
75
  /**
61
- * タスク検索条件インターフェース
76
+ * タスク検索条件
62
77
  */
63
78
  export interface ISearchConditions<T extends TaskName | string> {
64
79
  limit?: number;
@@ -75,4 +90,5 @@ export interface ISearchConditions<T extends TaskName | string> {
75
90
  runsThrough?: Date;
76
91
  lastTriedFrom?: Date;
77
92
  lastTriedThrough?: Date;
93
+ data?: IDataSearchConditions;
78
94
  }
@@ -12,9 +12,10 @@ import * as WebAPIFactory from '../service/webAPI';
12
12
  import * as TransactionFactory from '../transaction';
13
13
  import { TransactionType } from '../transactionType';
14
14
  /**
15
- * 取引人インターフェース
15
+ * 取引人
16
16
  */
17
17
  export declare type IAgent = TransactionFactory.IAgent;
18
+ export declare type ICustomer = OrderFactory.ICustomer;
18
19
  export interface IPaymentMethodByPaymentUrl {
19
20
  /**
20
21
  * 決済方法区分
@@ -30,7 +31,7 @@ export interface IPaymentMethodByPaymentUrl {
30
31
  };
31
32
  }
32
33
  /**
33
- * 注文特典口座インターフェース
34
+ * 注文特典口座
34
35
  */
35
36
  export interface IAwardAccount {
36
37
  typeOf: AccountType.Account;
@@ -39,7 +40,7 @@ export interface IAwardAccount {
39
40
  export interface IObject {
40
41
  clientUser?: IClientUser;
41
42
  broker?: OrderFactory.IBroker;
42
- customer?: OrderFactory.ICustomer;
43
+ customer?: ICustomer;
43
44
  identifier?: OrderFactory.IIdentifier;
44
45
  /**
45
46
  * 確認番号
@@ -82,7 +83,7 @@ export interface IStartParamsWithoutDetail {
82
83
  };
83
84
  object: {
84
85
  clientUser?: IClientUser;
85
- customer?: OrderFactory.ICustomer;
86
+ customer?: ICustomer;
86
87
  passport?: TransactionFactory.IPassportBeforeStart;
87
88
  /**
88
89
  * 注文名称
@@ -94,7 +95,7 @@ export interface ISeller extends TransactionFactory.ISeller {
94
95
  id: string;
95
96
  }
96
97
  /**
97
- * 取引開始パラメーターインターフェース
98
+ * 取引開始パラメーター
98
99
  */
99
100
  export interface IStartParams extends TransactionFactory.IStartParams<TransactionType.PlaceOrder, IAgent, undefined, IObject> {
100
101
  /**
@@ -176,30 +177,27 @@ export interface IConfirmParams {
176
177
  result?: IResultParams;
177
178
  }
178
179
  /**
179
- * 取引結果インターフェース
180
+ * 取引結果
180
181
  */
181
182
  export interface IResult {
182
183
  /**
183
- * 注文データ
184
+ * 注文
184
185
  */
185
186
  order: OrderFactory.IOrder;
186
187
  }
187
188
  /**
188
- * エラーインターフェース
189
+ * エラー
189
190
  */
190
191
  export declare type IError = any;
191
192
  export interface IPotentialActions {
192
193
  order: IOrderActionAttributes;
193
194
  }
195
+ export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
196
+ }
194
197
  /**
195
- * 注文取引インターフェース
198
+ * 注文取引
196
199
  */
197
200
  export declare type ITransaction = IExtendId<IAttributes>;
198
- /**
199
- * 注文取引インターフェース
200
- */
201
- export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
202
- }
203
201
  export interface ISearchConditions extends TransactionFactory.ISearchConditions<TransactionType.PlaceOrder> {
204
202
  seller?: {
205
203
  ids?: string[];
@@ -10,10 +10,13 @@ import { SortType } from './sortType';
10
10
  import { TransactionStatusType } from './transactionStatusType';
11
11
  import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
12
12
  import { TransactionType } from './transactionType';
13
- export declare type IWebApplicationAgent = IWebApplication & PersonFactory.IProfile;
14
- export declare type IAgent = IWebApplicationAgent | PersonFactory.IPerson;
13
+ export declare type IOmittedProfileAttributes = 'email' | 'telephone' | 'familyName' | 'givenName' | 'age' | 'address' | 'gender' | 'additionalProperty' | 'url';
14
+ export declare type IAgentProfile = Omit<PersonFactory.IProfile, IOmittedProfileAttributes>;
15
+ export declare type IWebApplicationAgent = IWebApplication & IAgentProfile;
16
+ export declare type IPersonAgent = PersonFactory.IPerson;
17
+ export declare type IAgent = Omit<IWebApplicationAgent | PersonFactory.IPerson, IOmittedProfileAttributes>;
15
18
  /**
16
- * 販売者インターフェース
19
+ * 販売者
17
20
  * 最適化(2022-05-20~)
18
21
  */
19
22
  export declare type ISeller = Omit<SellerFactory.ISeller, 'branchCode' | 'paymentAccepted' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location' | 'url' | 'project'>;
@@ -44,7 +47,7 @@ export interface IPassportBeforeStart {
44
47
  secret: string;
45
48
  }
46
49
  /**
47
- * 取引開始パラメーターインターフェース
50
+ * 取引開始パラメータ
48
51
  */
49
52
  export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TObject> {
50
53
  project: IProject;
@@ -69,10 +72,6 @@ export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TOb
69
72
  */
70
73
  expires: Date;
71
74
  }
72
- export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
73
- /**
74
- * 取引インターフェース
75
- */
76
75
  export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TStartParams & {
77
76
  /**
78
77
  * 取引状態
@@ -111,8 +110,9 @@ export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions
111
110
  */
112
111
  potentialActions?: TPotentialActions;
113
112
  };
113
+ export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
114
114
  /**
115
- * ソート条件インターフェース
115
+ * ソート条件
116
116
  */
117
117
  export interface ISortOrder {
118
118
  startDate?: SortType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.223.0",
3
+ "version": "4.226.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,7 +60,7 @@
60
60
  "typescript": "^4.3.2"
61
61
  },
62
62
  "dependencies": {
63
- "@motionpicture/coa-service": "^9.0.0",
63
+ "@motionpicture/coa-service": "9.2.0",
64
64
  "@motionpicture/gmo-service": "^5.0.0",
65
65
  "@surfrock/sdk": "1.1.0",
66
66
  "@waiter/factory": "2.1.0",