@chevre/factory 4.218.0 → 4.219.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
@@ -186,6 +186,11 @@ export declare namespace action {
186
186
  export import IAdditionalProperty = ActionFactory.IAdditionalProperty;
187
187
  export import IAttributes = ActionFactory.IAttributes;
188
188
  export import IDynamicAttributes = ActionFactory.IDynamicAttributes;
189
+ export import IParticipantAsWebApplication = ActionFactory.IParticipantAsWebApplication;
190
+ export import IParticipantAsPerson = ActionFactory.IParticipantAsPerson;
191
+ export import IParticipantAsSeller = ActionFactory.IParticipantAsSeller;
192
+ export import IParticipantAsProject = ActionFactory.IParticipantAsProject;
193
+ export import IParticipantAsCustomer = ActionFactory.IParticipantAsCustomer;
189
194
  export import IParticipant = ActionFactory.IParticipant;
190
195
  export import IPurpose = ActionFactory.IPurpose;
191
196
  export import ISortOrder = ActionFactory.ISortOrder;
@@ -2,7 +2,7 @@ import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import { TransactionType } from '../../../transactionType';
4
4
  import * as AuthorizeActionFactory from '../../authorize';
5
- export declare type IAgent = ActionFactory.IParticipant;
5
+ export declare type IAgent = ActionFactory.IParticipantAsSeller;
6
6
  export declare type IRecipient = ActionFactory.IParticipant;
7
7
  export declare enum ObjectType {
8
8
  PointAward = "PointAward"
@@ -8,7 +8,7 @@ import { IProduct } from '../../../product';
8
8
  import { ISeller } from '../../../seller';
9
9
  import { TransactionType } from '../../../transactionType';
10
10
  import * as AuthorizeActionFactory from '../../authorize';
11
- export declare type IAgent = ActionFactory.IParticipant;
11
+ export declare type IAgent = ActionFactory.IParticipantAsSeller;
12
12
  export declare type IRecipient = ActionFactory.IParticipant;
13
13
  export declare type IService = IProduct;
14
14
  export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
@@ -11,7 +11,7 @@ import { PriceCurrency } from '../../../priceCurrency';
11
11
  import * as WebAPIFactory from '../../../service/webAPI';
12
12
  import { TransactionType } from '../../../transactionType';
13
13
  import * as AuthorizeActionFactory from '../../authorize';
14
- export declare type IAgent = ActionFactory.IParticipant;
14
+ export declare type IAgent = ActionFactory.IParticipantAsSeller;
15
15
  export declare type IRecipient = ActionFactory.IParticipant;
16
16
  export declare enum ObjectType {
17
17
  SeatReservation = "SeatReservation"
@@ -13,7 +13,7 @@ import { PaymentServiceType } from '../../../service/paymentService';
13
13
  import { TransactionType } from '../../../transactionType';
14
14
  import * as AuthorizeActionFactory from '../../authorize';
15
15
  export declare type IAgent = ActionFactory.IParticipant;
16
- export declare type IRecipient = ActionFactory.IParticipant;
16
+ export declare type IRecipient = ActionFactory.IParticipantAsSeller;
17
17
  export declare enum ResultType {
18
18
  Payment = "Payment"
19
19
  }
@@ -9,22 +9,25 @@ import { IProject } from './project';
9
9
  import { IPropertyValue } from './propertyValue';
10
10
  import { ISeller } from './seller';
11
11
  import { SortType } from './sortType';
12
- export declare type ICustomerParticipant = ICustomer & {
12
+ export declare type IParticipantAsWebApplication = Omit<IWebApplication, 'additionalProperty'>;
13
+ export declare type IParticipantAsPerson = Omit<IPerson, 'email' | 'telephone' | 'givenName' | 'familyName' | 'additionalProperty'>;
14
+ export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'paymentAccepted' | 'project' | 'additionalProperty'>;
15
+ export declare type IParticipantAsProject = Omit<IProject, 'settings' | 'subscription' | 'alternateName' | 'description' | 'additionalProperty'>;
16
+ export declare type IParticipantAsCustomer = Omit<ICustomer, 'name' | 'branchCode' | 'contactPoint' | 'project' | 'additionalProperty'> & {
13
17
  name?: string | IMultilingualString;
14
18
  };
15
19
  /**
16
- * アクションへの関係者インターフェース
17
- * 継承先にて、インターフェースが強化される可能性あり
20
+ * アクションへの関係者
18
21
  */
19
- export declare type IParticipant = IWebApplication | IPerson | ISeller | IProject | ICustomerParticipant;
22
+ export declare type IParticipant = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsSeller | IParticipantAsProject | IParticipantAsCustomer;
20
23
  /**
21
- * アクション目的インターフェース
24
+ * アクション目的
22
25
  */
23
26
  export interface IPurpose {
24
27
  typeOf: string;
25
28
  }
26
29
  /**
27
- * 追加属性インターフェース
30
+ * 追加属性
28
31
  */
29
32
  export declare type IAdditionalProperty = IPropertyValue<string>[];
30
33
  /**
@@ -81,7 +84,7 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
81
84
  typeOf: T;
82
85
  }
83
86
  /**
84
- * アクション動的属性インターフェース
87
+ * アクション動的属性
85
88
  * リポジトリに保管時にセット、あるいは変更される
86
89
  */
87
90
  export interface IDynamicAttributes {
@@ -99,18 +102,18 @@ export interface IDynamicAttributes {
99
102
  endDate?: Date;
100
103
  }
101
104
  /**
102
- * 抽象アクションインターフェース
105
+ * 抽象アクション
103
106
  * {@link https://schema.org/Action}
104
107
  */
105
108
  export declare type IAction<TAttributes extends IAttributes<ActionType, any, any>> = IExtendId<TAttributes & IDynamicAttributes>;
106
109
  /**
107
- * ソート条件インターフェース
110
+ * ソート条件
108
111
  */
109
112
  export interface ISortOrder {
110
113
  startDate?: SortType;
111
114
  }
112
115
  /**
113
- * 検索条件インターフェース
116
+ * 検索条件
114
117
  */
115
118
  export interface ISearchConditions {
116
119
  limit?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.218.0",
3
+ "version": "4.219.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",