@chevre/factory 4.230.0 → 4.233.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
@@ -441,7 +441,8 @@ export declare namespace assetTransaction {
441
441
  export import reserve = ReserveAssetTransactionFactory;
442
442
  }
443
443
  export declare namespace transaction {
444
- export import IAgentProfile = TransactionFactory.IAgentProfile;
444
+ export import IAgentAsPerson = TransactionFactory.IAgentAsPerson;
445
+ export import IAgentAsWebApplication = TransactionFactory.IAgentAsWebApplication;
445
446
  export import IAgent = TransactionFactory.IAgent;
446
447
  export import IPassportBeforeStart = TransactionFactory.IPassportBeforeStart;
447
448
  export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
@@ -2,12 +2,10 @@ import { ActionStatusType } from './actionStatusType';
2
2
  import { ActionType } from './actionType';
3
3
  import { IExtendId } from './autoGenerated';
4
4
  import { CreativeWorkType } from './creativeWorkType';
5
- import { ICustomer } from './customer';
6
5
  import { OrganizationType } from './organizationType';
7
6
  import { IPersonAttributes } from './person';
8
7
  import { IProject } from './project';
9
8
  import { IPropertyValue } from './propertyValue';
10
- import { ISeller } from './seller';
11
9
  import { SortType } from './sortType';
12
10
  export interface IParticipantAsWebApplication {
13
11
  typeOf: CreativeWorkType.WebApplication;
@@ -15,22 +13,28 @@ export interface IParticipantAsWebApplication {
15
13
  name?: string;
16
14
  url?: string;
17
15
  }
18
- export declare type IParticipantAsPerson = IPersonAttributes & {
16
+ export declare type IParticipantAsPerson = Omit<IPersonAttributes, 'identifier' | 'memberOf'> & {
19
17
  name?: string;
20
18
  url?: string;
21
19
  };
22
- export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'name' | 'paymentAccepted' | 'project' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'> & {
20
+ export interface IParticipantAsSeller {
21
+ typeOf: OrganizationType.Corporation;
22
+ id: string;
23
23
  name?: string;
24
- };
24
+ url?: string;
25
+ }
25
26
  export interface IParticipantAsProject {
26
27
  typeOf: OrganizationType.Project;
27
28
  id: string;
28
29
  name?: string;
29
30
  url?: string;
30
31
  }
31
- export declare type IParticipantAsCustomer = Omit<ICustomer, 'name' | 'branchCode' | 'contactPoint' | 'project' | 'additionalProperty'> & {
32
+ export interface IParticipantAsCustomer {
33
+ typeOf: OrganizationType.Organization;
34
+ id: string;
32
35
  name?: string;
33
- };
36
+ url?: string;
37
+ }
34
38
  /**
35
39
  * アクションへの関係者
36
40
  */
@@ -11,30 +11,6 @@ import { IPropertyValue } from '../propertyValue';
11
11
  import { PaymentServiceType } from '../service/paymentService';
12
12
  export import IAgent = AssetTransactionFactory.IAgent;
13
13
  export declare type IRecipient = IPayRecipient;
14
- export declare type IObjectWithoutDetail = IObject;
15
- export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
16
- recipient: IRecipient;
17
- purpose?: IPayPurpose;
18
- };
19
- export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
20
- recipient: IRecipient;
21
- }
22
- export interface IPotentialActionsParams {
23
- pay: {
24
- purpose: IOrderAsPayPurpose;
25
- };
26
- }
27
- /**
28
- * 確定パラメータ
29
- */
30
- export interface IConfirmParams {
31
- id?: string;
32
- transactionNumber?: string;
33
- endDate?: Date;
34
- potentialActions: IPotentialActionsParams;
35
- }
36
- export declare type IResult = any;
37
- export declare type IError = any;
38
14
  /**
39
15
  * ペイメントカードトークン
40
16
  */
@@ -103,6 +79,8 @@ export interface IPaymentMethod {
103
79
  * 取引対象物
104
80
  */
105
81
  export interface IObject {
82
+ accountId: string;
83
+ paymentMethodId: string;
106
84
  typeOf: PaymentServiceType;
107
85
  /**
108
86
  * 発行決済サービスID
@@ -117,14 +95,43 @@ export interface IObject {
117
95
  payAction?: any;
118
96
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
119
97
  }
98
+ export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId'>;
99
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
100
+ recipient: IRecipient;
101
+ purpose?: IPayPurpose;
102
+ };
103
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
104
+ recipient: IRecipient;
105
+ }
120
106
  export interface IPotentialActions {
121
107
  /**
122
108
  * 決済アクション
123
109
  */
124
110
  pay: IPayActionAttributes[];
125
111
  }
112
+ export interface IPotentialActionsParams {
113
+ pay: {
114
+ purpose: IOrderAsPayPurpose;
115
+ };
116
+ }
117
+ /**
118
+ * 確定パラメータ
119
+ */
120
+ export interface IConfirmParams {
121
+ id?: string;
122
+ transactionNumber?: string;
123
+ endDate?: Date;
124
+ potentialActions: IPotentialActionsParams;
125
+ }
126
+ export declare type IResult = any;
127
+ export declare type IError = any;
126
128
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
127
129
  }
128
130
  export declare type ITransaction = IExtendId<IAttributes>;
129
131
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
132
+ object?: {
133
+ accountId?: {
134
+ $eq?: string;
135
+ };
136
+ };
130
137
  }
@@ -7,15 +7,23 @@ import { IOnPaymentStatusChanged } from '../project';
7
7
  import { PaymentServiceType } from '../service/paymentService';
8
8
  export import IAgent = AssetTransactionFactory.IAgent;
9
9
  export declare type IRecipient = IRefundRecipient;
10
- export interface IObjectWithoutDetail {
10
+ export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
11
+ /**
12
+ * 取引対象物
13
+ */
14
+ export interface IObject {
15
+ accountId: string;
16
+ paymentMethodId: string;
11
17
  typeOf: PaymentServiceType;
12
18
  /**
13
19
  * 発行決済サービスID
14
20
  */
15
21
  id: string;
22
+ onPaymentStatusChanged?: IOnPaymentStatusChanged;
16
23
  paymentMethod: IPaymentMethod;
17
24
  refundFee?: number;
18
25
  }
26
+ export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId' | 'onPaymentStatusChanged'>;
19
27
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
20
28
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
21
29
  }
@@ -35,20 +43,6 @@ export interface IConfirmParams {
35
43
  }
36
44
  export declare type IResult = any;
37
45
  export declare type IError = any;
38
- export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
39
- /**
40
- * 取引対象物
41
- */
42
- export interface IObject {
43
- typeOf: PaymentServiceType;
44
- /**
45
- * 発行決済サービスID
46
- */
47
- id: string;
48
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
49
- paymentMethod: IPaymentMethod;
50
- refundFee?: number;
51
- }
52
46
  export interface IPotentialActions {
53
47
  /**
54
48
  * 返金アクション
@@ -62,4 +56,9 @@ export declare type ITransaction = IExtendId<IAttributes>;
62
56
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
63
57
  }
64
58
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
59
+ object?: {
60
+ accountId?: {
61
+ $eq?: string;
62
+ };
63
+ };
65
64
  }
@@ -1,9 +1,15 @@
1
1
  import * as CreativeWorkFactory from '../../creativeWork';
2
2
  import { CreativeWorkType } from '../../creativeWorkType';
3
- /**
4
- * ウェブアプリケーション
5
- */
6
- export interface ICreativeWork extends CreativeWorkFactory.ICreativeWork {
3
+ import { IIdentifier } from '../../thing';
4
+ export interface IWebApplicationAttributes {
7
5
  typeOf: CreativeWorkType.WebApplication;
6
+ /**
7
+ * アプリケーションクライアントID
8
+ */
8
9
  id: string;
10
+ identifier?: IIdentifier;
9
11
  }
12
+ /**
13
+ * ウェブアプリケーション
14
+ */
15
+ export declare type ICreativeWork = CreativeWorkFactory.ICreativeWork & IWebApplicationAttributes;
@@ -2,8 +2,16 @@
2
2
  * 組織タイプ
3
3
  */
4
4
  export declare enum OrganizationType {
5
+ /**
6
+ * 販売組織
7
+ */
5
8
  Corporation = "Corporation",
6
- MovieTheater = "MovieTheater",
9
+ /**
10
+ * 顧客組織
11
+ */
7
12
  Organization = "Organization",
13
+ /**
14
+ * プロジェクト
15
+ */
8
16
  Project = "Project"
9
17
  }
@@ -6,8 +6,18 @@ exports.OrganizationType = void 0;
6
6
  */
7
7
  var OrganizationType;
8
8
  (function (OrganizationType) {
9
+ /**
10
+ * 販売組織
11
+ */
9
12
  OrganizationType["Corporation"] = "Corporation";
10
- OrganizationType["MovieTheater"] = "MovieTheater";
13
+ // 不要なので廃止(2022-05-30~)
14
+ // MovieTheater = 'MovieTheater',
15
+ /**
16
+ * 顧客組織
17
+ */
11
18
  OrganizationType["Organization"] = "Organization";
19
+ /**
20
+ * プロジェクト
21
+ */
12
22
  OrganizationType["Project"] = "Project";
13
23
  })(OrganizationType = exports.OrganizationType || (exports.OrganizationType = {}));
@@ -3,7 +3,7 @@ import { IProgramMembership } from './programMembership';
3
3
  import { IPropertyValue } from './propertyValue';
4
4
  import * as ThingFactory from './thing';
5
5
  /**
6
- * 追加属性インターフェース
6
+ * 追加特性
7
7
  */
8
8
  export declare type IAdditionalProperty = IPropertyValue<string>[];
9
9
  export import IIdentifier = ThingFactory.IIdentifier;
@@ -12,10 +12,6 @@ export declare type IMemberOf = IProgramMembership;
12
12
  * プロフィール
13
13
  */
14
14
  export interface IProfile extends ThingFactory.IThing {
15
- /**
16
- * 追加属性
17
- * プロジェクト固有の属性等
18
- */
19
15
  additionalProperty?: IAdditionalProperty;
20
16
  /**
21
17
  * Physical address of the item.
@@ -46,9 +42,10 @@ export interface IProfile extends ThingFactory.IThing {
46
42
  }
47
43
  export interface IPersonAttributes {
48
44
  /**
49
- * Person ID (Amazon Cognito User Identifier)
45
+ * Person ID(User sub)
50
46
  */
51
47
  id: string;
48
+ identifier?: IIdentifier;
52
49
  /**
53
50
  * An Organization (or ProgramMembership) to which this Person or Organization belongs.
54
51
  */
@@ -9,9 +9,6 @@ export declare enum ProgramMembershipType {
9
9
  */
10
10
  export interface IProgramMembership extends IThing {
11
11
  typeOf: ProgramMembershipType;
12
- /**
13
- * The service through with the permit was granted.
14
- */
15
12
  /**
16
13
  * A unique identifier for the membership.
17
14
  */
@@ -5,12 +5,29 @@ import * as MoneyTransferAssetTransactionFactory from '../assetTransaction/money
5
5
  import { AssetTransactionType } from '../assetTransactionType';
6
6
  import { IExtendId } from '../autoGenerated';
7
7
  import { IMonetaryAmount } from '../monetaryAmount';
8
- import { IPerson } from '../person';
8
+ import { OrganizationType } from '../organizationType';
9
+ import { PersonType } from '../personType';
9
10
  import { IProject } from '../project';
10
11
  import * as TransactionFactory from '../transaction';
11
12
  import { TransactionType } from '../transactionType';
12
13
  export declare type IAgent = TransactionFactory.IAgent;
13
- export declare type IRecipient = IPerson | TransactionFactory.ISeller;
14
+ export interface IRecipientAsPerson {
15
+ typeOf: PersonType.Person;
16
+ id: string;
17
+ /**
18
+ * 受取人名称
19
+ */
20
+ name?: string;
21
+ }
22
+ export interface IRecipientAsSeller {
23
+ typeOf: OrganizationType.Corporation;
24
+ id: string;
25
+ /**
26
+ * 受取人名称
27
+ */
28
+ name?: string;
29
+ }
30
+ export declare type IRecipient = IRecipientAsPerson | IRecipientAsSeller;
14
31
  export import ISeller = TransactionFactory.ISeller;
15
32
  export import IPaymentCard = MoneyTransferAssetTransactionFactory.IPaymentCard;
16
33
  export import ITokenizedPaymentCard = MoneyTransferAssetTransactionFactory.ITokenizedPaymentCard;
@@ -1,21 +1,23 @@
1
1
  import * as waiter from '@waiter/factory';
2
2
  import { IExtendId } from './autoGenerated';
3
3
  import * as EmailFactory from './creativeWork/message/email';
4
- import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
4
+ import { IWebApplicationAttributes } from './creativeWork/softwareApplication/webApplication';
5
5
  import { IMultilingualString } from './multilingualString';
6
6
  import { OrganizationType } from './organizationType';
7
- import * as PersonFactory from './person';
7
+ import { IIdentifier, IPersonAttributes } from './person';
8
8
  import { PersonType } from './personType';
9
9
  import { IProject } from './project';
10
10
  import { SortType } from './sortType';
11
11
  import { TransactionStatusType } from './transactionStatusType';
12
12
  import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
13
13
  import { TransactionType } from './transactionType';
14
- export declare type IOmittedProfileAttributes = 'email' | 'telephone' | 'familyName' | 'givenName' | 'age' | 'address' | 'gender' | 'additionalProperty' | 'url';
15
- export declare type IAgentProfile = Omit<PersonFactory.IProfile, IOmittedProfileAttributes>;
16
- export declare type IWebApplicationAgent = IWebApplication & IAgentProfile;
17
- export declare type IPersonAgent = PersonFactory.IPerson;
18
- export declare type IAgent = Omit<IWebApplicationAgent | PersonFactory.IPerson, IOmittedProfileAttributes>;
14
+ export interface IAgentAsWebApplication extends IWebApplicationAttributes {
15
+ name?: string;
16
+ }
17
+ export interface IAgentAsPerson extends IPersonAttributes {
18
+ name?: string;
19
+ }
20
+ export declare type IAgent = IAgentAsWebApplication | IAgentAsPerson;
19
21
  /**
20
22
  * 販売者
21
23
  */
@@ -161,7 +163,7 @@ export interface ISearchConditions<T extends TransactionType> {
161
163
  agent?: {
162
164
  typeOf?: PersonType;
163
165
  ids?: string[];
164
- identifiers?: PersonFactory.IIdentifier;
166
+ identifiers?: IIdentifier;
165
167
  givenName?: string;
166
168
  familyName?: string;
167
169
  telephone?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.230.0",
3
+ "version": "4.233.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",