@chevre/factory 4.218.0 → 4.221.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
  }
@@ -10,7 +10,6 @@ import { OrderType } from '../../order';
10
10
  import { OrganizationType } from '../../organizationType';
11
11
  import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
12
12
  import { IPropertyValue } from '../../propertyValue';
13
- import { ISeller } from '../../seller';
14
13
  import { PaymentServiceType } from '../../service/paymentService';
15
14
  import { TransactionType } from '../../transactionType';
16
15
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
@@ -18,7 +17,7 @@ export interface IAgent {
18
17
  id: string;
19
18
  typeOf: OrganizationType.Project;
20
19
  }
21
- export declare type IRecipient = Omit<ISeller, 'branchCode' | 'paymentAccepted'>;
20
+ export import IRecipient = ActionFactory.IParticipantAsSeller;
22
21
  export interface IOrderAsPayPurpose {
23
22
  typeOf: OrderType.Order;
24
23
  confirmationNumber?: string;
@@ -1,15 +1,8 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
- import { ISeller } from '../../seller';
4
3
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
5
4
  import { IPaymentService as IPaymentServiceOnPay, IPayPurpose } from './pay';
6
- /**
7
- * agentはSeller
8
- */
9
- export interface IAgentAsSeller extends Omit<ISeller, 'branchCode' | 'paymentAccepted'> {
10
- name: string;
11
- }
12
- export declare type IAgent = IAgentAsSeller | ActionFactory.IParticipant;
5
+ export declare type IAgent = ActionFactory.IParticipant;
13
6
  export declare type IRecipient = ActionFactory.IParticipant;
14
7
  export declare type IPaymentService = IPaymentServiceOnPay & {
15
8
  refundFee?: number;
@@ -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' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'>;
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;
@@ -31,9 +31,8 @@ export interface IProject {
31
31
  export declare enum OrderType {
32
32
  Order = "Order"
33
33
  }
34
- export declare type AvailablePaymentMethodType = string;
35
34
  /**
36
- * 決済方法インターフェース
35
+ * 決済方法
37
36
  */
38
37
  export interface IPaymentMethod {
39
38
  /**
@@ -41,9 +40,9 @@ export interface IPaymentMethod {
41
40
  */
42
41
  accountId?: string;
43
42
  /**
44
- * 決済方法タイプ
43
+ * 決済方法区分コード
45
44
  */
46
- typeOf: AvailablePaymentMethodType;
45
+ typeOf: string;
47
46
  /**
48
47
  * 決済方法名称
49
48
  */
@@ -63,7 +62,7 @@ export interface IPaymentMethod {
63
62
  issuedThrough: IPaymentMethodIssuedThrough;
64
63
  }
65
64
  /**
66
- * 割引インターフェース
65
+ * ディスカウント
67
66
  */
68
67
  export interface IDiscount {
69
68
  /**
@@ -84,8 +83,8 @@ export interface IDiscount {
84
83
  */
85
84
  discountCurrency: string;
86
85
  }
87
- export declare type IReservation = EventReservationFactory.IReservation;
88
- export declare type IPermit = PermitFactory.IPermit;
86
+ export declare type IReservation = Omit<EventReservationFactory.IReservation, 'attended' | 'broker' | 'checkedIn' | 'modifiedTime' | 'previousReservationStatus' | 'price' | 'priceCurrency' | 'reservationStatus' | 'subReservation' | 'underName'>;
87
+ export declare type IPermit = Omit<PermitFactory.IPermit, 'accessCode' | 'additionalProperty' | 'depositAmount' | 'paymentAmount' | 'paymentAccount' | 'issuedBy'>;
89
88
  export interface IMoneyTransferPendingTransaction {
90
89
  typeOf: AssetTransactionType.MoneyTransfer;
91
90
  /**
@@ -113,7 +112,7 @@ export interface IMoneyTransfer {
113
112
  name?: string;
114
113
  }
115
114
  /**
116
- * 注文アイテムインターフェース
115
+ * 注文アイテム
117
116
  */
118
117
  export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
119
118
  export declare type IOfferOptimized4acceptedOffer = Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'>;
@@ -148,8 +147,7 @@ export interface ISeller {
148
147
  };
149
148
  id: string;
150
149
  typeOf: OrganizationType.Corporation;
151
- name?: string | IMultilingualString;
152
- url?: string;
150
+ name: string;
153
151
  }
154
152
  /**
155
153
  * ウェブアプリケーションとしてのカスタマー
@@ -236,7 +234,7 @@ export interface IOrderedItem {
236
234
  orderedItem: IProduct | IEventServiceAsOrderedItem;
237
235
  }
238
236
  /**
239
- * 注文インターフェース
237
+ * 注文
240
238
  * {@link https://schema.org/Order}
241
239
  */
242
240
  export interface IOrder extends ISimpleOrder {
@@ -287,13 +285,13 @@ export interface IOrder extends ISimpleOrder {
287
285
  url?: string;
288
286
  }
289
287
  /**
290
- * ソート条件インターフェース
288
+ * ソート条件
291
289
  */
292
290
  export interface ISortOrder {
293
291
  orderDate?: SortType;
294
292
  }
295
293
  /**
296
- * 予約対象検索条件インターフェース
294
+ * 予約対象検索条件
297
295
  */
298
296
  export interface IReservationForSearchConditions {
299
297
  typeOfs?: EventType[];
@@ -407,7 +405,7 @@ export interface IPaymentMethodsSearchConditions {
407
405
  /**
408
406
  * 決済方法区分コード
409
407
  */
410
- typeOfs?: AvailablePaymentMethodType[];
408
+ typeOfs?: string[];
411
409
  /**
412
410
  * 決済方法ID
413
411
  * 決済代行オーダーIDなど
@@ -461,7 +459,7 @@ export interface IAcceptedOffersSearchConditions {
461
459
  };
462
460
  }
463
461
  /**
464
- * 注文検索条件インターフェース
462
+ * 注文検索条件
465
463
  */
466
464
  export interface ISearchConditions {
467
465
  limit?: number;
@@ -14,8 +14,9 @@ export declare type IWebApplicationAgent = IWebApplication & PersonFactory.IProf
14
14
  export declare type IAgent = IWebApplicationAgent | PersonFactory.IPerson;
15
15
  /**
16
16
  * 販売者インターフェース
17
+ * 最適化(2022-05-20~)
17
18
  */
18
- export declare type ISeller = SellerFactory.ISeller;
19
+ export declare type ISeller = Omit<SellerFactory.ISeller, 'branchCode' | 'paymentAccepted' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location' | 'url' | 'project'>;
19
20
  /**
20
21
  * Eメール送信パラメータ
21
22
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.218.0",
3
+ "version": "4.221.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",