@chevre/factory 4.217.0 → 4.218.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.
@@ -2,16 +2,21 @@ import { ActionStatusType } from './actionStatusType';
2
2
  import { ActionType } from './actionType';
3
3
  import { IExtendId } from './autoGenerated';
4
4
  import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
5
+ import { ICustomer } from './customer';
6
+ import { IMultilingualString } from './multilingualString';
5
7
  import { IPerson } from './person';
6
8
  import { IProject } from './project';
7
9
  import { IPropertyValue } from './propertyValue';
8
10
  import { ISeller } from './seller';
9
11
  import { SortType } from './sortType';
12
+ export declare type ICustomerParticipant = ICustomer & {
13
+ name?: string | IMultilingualString;
14
+ };
10
15
  /**
11
16
  * アクションへの関係者インターフェース
12
17
  * 継承先にて、インターフェースが強化される可能性あり
13
18
  */
14
- export declare type IParticipant = IWebApplication | IPerson | ISeller | IProject;
19
+ export declare type IParticipant = IWebApplication | IPerson | ISeller | IProject | ICustomerParticipant;
15
20
  /**
16
21
  * アクション目的インターフェース
17
22
  */
@@ -1,10 +1,9 @@
1
1
  import * as CreativeWorkFactory from '../../creativeWork';
2
2
  import { CreativeWorkType } from '../../creativeWorkType';
3
- export interface IAttributes {
3
+ /**
4
+ * ウェブアプリケーション
5
+ */
6
+ export interface ICreativeWork extends CreativeWorkFactory.ICreativeWork {
4
7
  typeOf: CreativeWorkType.WebApplication;
5
8
  id: string;
6
9
  }
7
- /**
8
- * ウェブアプリケーションインターフェース
9
- */
10
- export declare type ICreativeWork = IAttributes & CreativeWorkFactory.ICreativeWork;
@@ -21,7 +21,6 @@ import { IPropertyValue } from './propertyValue';
21
21
  import { IProgramMembershipUsedSearchConditions } from './reservation';
22
22
  import * as EventReservationFactory from './reservation/event';
23
23
  import { ReservationType } from './reservationType';
24
- import { ISeller as ISellerOrganization } from './seller';
25
24
  import { IServiceType } from './serviceType';
26
25
  import { SortType } from './sortType';
27
26
  import { IThing } from './thing';
@@ -129,13 +128,29 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4
129
128
  /**
130
129
  * 販売者
131
130
  */
132
- seller: ISeller;
131
+ seller: {
132
+ project: {
133
+ id: string;
134
+ typeOf: OrganizationType.Project;
135
+ };
136
+ typeOf: OrganizationType.Corporation;
137
+ name?: string | IMultilingualString;
138
+ };
133
139
  priceSpecification?: ITicketPriceSpecification;
134
140
  }
135
141
  /**
136
142
  * 販売者
137
143
  */
138
- export declare type ISeller = ISellerOrganization;
144
+ export interface ISeller {
145
+ project: {
146
+ id: string;
147
+ typeOf: OrganizationType.Project;
148
+ };
149
+ id: string;
150
+ typeOf: OrganizationType.Corporation;
151
+ name?: string | IMultilingualString;
152
+ url?: string;
153
+ }
139
154
  /**
140
155
  * ウェブアプリケーションとしてのカスタマー
141
156
  */
@@ -1,15 +1,18 @@
1
- import { ICustomer } from './order';
1
+ import { CreativeWorkType } from './creativeWorkType';
2
+ import { OrganizationType } from './organizationType';
2
3
  import * as PermitFactory from './permit';
4
+ import { IMemberOf } from './person';
5
+ import { PersonType } from './personType';
3
6
  import * as ProductFactory from './product';
4
7
  import { IProject } from './project';
8
+ import { IPropertyValue } from './propertyValue';
5
9
  import { IReservation as IEventReservation } from './reservation/event';
6
10
  import { ReservationType } from './reservationType';
7
- import { ISeller } from './seller';
8
11
  import * as WebAPIFactory from './service/webAPI';
9
12
  import { SortType } from './sortType';
10
13
  export declare type IBookingService = WebAPIFactory.IService<WebAPIFactory.Identifier>;
11
14
  /**
12
- * 予約インターフェース
15
+ * 予約
13
16
  */
14
17
  export interface IReservation {
15
18
  typeOf: ReservationType.EventReservation;
@@ -32,21 +35,49 @@ export interface IReservation {
32
35
  export declare type IReservationWithDetail = IReservation & IEventReservation;
33
36
  export declare type IPermit = PermitFactory.IPermit;
34
37
  /**
35
- * 所有対象物インターフェース (Product or Service)
38
+ * 所有対象物 (Product or Service)
36
39
  */
37
40
  export declare type IGood = IReservation | IPermit;
38
41
  /**
39
- * 所有対象物インターフェース(対象物詳細有)
42
+ * 所有対象物(対象物詳細有)
40
43
  */
41
44
  export declare type IGoodWithDetail = IReservationWithDetail | IPermit;
42
45
  /**
43
- * 所有者インターフェース
46
+ * 所有者
44
47
  */
45
- export declare type IOwner = Omit<ICustomer, 'name'>;
46
- export declare type IAcquiredFrom = ISeller;
48
+ export interface IOwnerAsOrganization {
49
+ typeOf: OrganizationType.Organization;
50
+ id: string;
51
+ project: {
52
+ id: string;
53
+ typeOf: OrganizationType.Project;
54
+ };
55
+ identifier?: IPropertyValue<string>[];
56
+ }
57
+ export interface IOwnerAsPerson {
58
+ typeOf: PersonType;
59
+ id: string;
60
+ identifier?: IPropertyValue<string>[];
61
+ memberOf?: IMemberOf;
62
+ }
63
+ export interface IOwnerAsWebApplication {
64
+ typeOf: CreativeWorkType.WebApplication;
65
+ id: string;
66
+ identifier?: IPropertyValue<string>[];
67
+ }
68
+ export declare type IOwner = IOwnerAsOrganization | IOwnerAsPerson | IOwnerAsWebApplication;
69
+ export interface IAcquiredFrom {
70
+ project: {
71
+ id: string;
72
+ typeOf: OrganizationType.Project;
73
+ };
74
+ id: string;
75
+ typeOf: OrganizationType.Corporation;
76
+ name: string;
77
+ }
47
78
  export declare type OwnershipInfoType = 'OwnershipInfo';
48
79
  /**
49
- * 所有権インターフェース
80
+ * 所有権
50
81
  */
51
82
  export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
52
83
  project: IProject;
@@ -84,7 +115,7 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
84
115
  typeOfGood: T;
85
116
  }
86
117
  /**
87
- * ソート条件インターフェース
118
+ * ソート条件
88
119
  */
89
120
  export interface ISortOrder {
90
121
  /**
@@ -93,7 +124,7 @@ export interface ISortOrder {
93
124
  ownedFrom?: SortType;
94
125
  }
95
126
  /**
96
- * 所有対象物検索条件インターフェース
127
+ * 所有対象物検索条件
97
128
  */
98
129
  export interface ITypeOfGoodSearchConditions {
99
130
  typeOf?: string | {
@@ -117,7 +148,7 @@ export interface ITypeOfGoodSearchConditions {
117
148
  };
118
149
  }
119
150
  /**
120
- * 所有権検索条件インターフェース
151
+ * 所有権検索条件
121
152
  */
122
153
  export interface ISearchConditions {
123
154
  limit?: number;
@@ -7,6 +7,7 @@ import * as ThingFactory from './thing';
7
7
  */
8
8
  export declare type IAdditionalProperty = IPropertyValue<string>[];
9
9
  export import IIdentifier = ThingFactory.IIdentifier;
10
+ export declare type IMemberOf = IProgramMembership;
10
11
  /**
11
12
  * プロフィールインターフェース
12
13
  */
@@ -53,6 +54,6 @@ export declare type IPerson = IProfile & {
53
54
  /**
54
55
  * An Organization (or ProgramMembership) to which this Person or Organization belongs.
55
56
  */
56
- memberOf?: IProgramMembership;
57
+ memberOf?: IMemberOf;
57
58
  typeOf: PersonType;
58
59
  };
@@ -1,7 +1,10 @@
1
1
  import { IAction as IPayAction } from '../action/trade/pay';
2
2
  import { IAction as IRefundAction } from '../action/trade/refund';
3
3
  import { IOrder } from '../order';
4
- export declare type IAction = IPayAction | IRefundAction;
4
+ export declare type IExpludedActionAttributes = 'additionalProperty' | 'agent' | 'description' | 'error' | 'identifier' | 'instrument' | 'potentialActions' | 'recipient' | 'result';
5
+ export declare type IOptimizedPayAction = Omit<IPayAction, IExpludedActionAttributes>;
6
+ export declare type IOptimizedRefundAction = Omit<IRefundAction, IExpludedActionAttributes>;
7
+ export declare type IAction = IOptimizedPayAction | IOptimizedRefundAction;
5
8
  /**
6
9
  * 経理レポートインターフェース
7
10
  */
@@ -25,7 +25,7 @@ export interface ISeller extends IOrganization {
25
25
  * A pointer to products or services offered by the organization or person.
26
26
  */
27
27
  paymentAccepted?: IPaymentAccepted[];
28
- typeOf: OrganizationType;
28
+ typeOf: OrganizationType.Corporation;
29
29
  }
30
30
  /**
31
31
  * ソート条件インターフェース
@@ -11,7 +11,6 @@ import { IInformParams, IProject } from '../project';
11
11
  import * as WebAPIFactory from '../service/webAPI';
12
12
  import * as TransactionFactory from '../transaction';
13
13
  import { TransactionType } from '../transactionType';
14
- export import ISeller = TransactionFactory.ISeller;
15
14
  /**
16
15
  * 取引人インターフェース
17
16
  */
@@ -91,6 +90,9 @@ export interface IStartParamsWithoutDetail {
91
90
  name?: string;
92
91
  };
93
92
  }
93
+ export interface ISeller extends TransactionFactory.ISeller {
94
+ id: string;
95
+ }
94
96
  /**
95
97
  * 取引開始パラメーターインターフェース
96
98
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.217.0",
3
+ "version": "4.218.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",