@chevre/factory 10.4.0-alpha.1 → 10.4.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/action.d.ts +15 -28
- package/package.json +1 -1
package/lib/chevre/action.d.ts
CHANGED
|
@@ -9,7 +9,11 @@ import { IProject } from './project';
|
|
|
9
9
|
import { SortType } from './sortType';
|
|
10
10
|
export interface IParticipantOptionalAttributes {
|
|
11
11
|
name?: string;
|
|
12
|
+
identifier?: never;
|
|
12
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* informActionの場合のrecipient
|
|
16
|
+
*/
|
|
13
17
|
export type IRecipientAsAnonymousWebApplication = IParticipantOptionalAttributes & {
|
|
14
18
|
typeOf: CreativeWorkType.WebApplication;
|
|
15
19
|
id?: never;
|
|
@@ -17,7 +21,6 @@ export type IRecipientAsAnonymousWebApplication = IParticipantOptionalAttributes
|
|
|
17
21
|
export type IParticipantAsWebApplication = IParticipantOptionalAttributes & {
|
|
18
22
|
typeOf: CreativeWorkType.WebApplication;
|
|
19
23
|
id: string;
|
|
20
|
-
identifier?: never;
|
|
21
24
|
};
|
|
22
25
|
export type IParticipantAsSoftwareApplication = IParticipantOptionalAttributes & {
|
|
23
26
|
typeOf: CreativeWorkType.SoftwareApplication;
|
|
@@ -27,17 +30,14 @@ export type IParticipantAsPerson = IParticipantOptionalAttributes & Pick<IPerson
|
|
|
27
30
|
export type IParticipantAsSeller = IParticipantOptionalAttributes & {
|
|
28
31
|
typeOf: OrganizationType.Corporation;
|
|
29
32
|
id: string;
|
|
30
|
-
identifier?: never;
|
|
31
33
|
};
|
|
32
34
|
export type IParticipantAsProject = IParticipantOptionalAttributes & {
|
|
33
35
|
typeOf: OrganizationType.Project;
|
|
34
36
|
id: string;
|
|
35
|
-
identifier?: never;
|
|
36
37
|
};
|
|
37
38
|
export type IParticipantAsCustomer = IParticipantOptionalAttributes & {
|
|
38
39
|
typeOf: OrganizationType.Organization;
|
|
39
40
|
id: string;
|
|
40
|
-
identifier?: never;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* アクションへの関係者
|
|
@@ -58,6 +58,11 @@ export interface ISameAs {
|
|
|
58
58
|
id: string;
|
|
59
59
|
typeOf: 'Task' | AssetTransactionType.Pay;
|
|
60
60
|
}
|
|
61
|
+
export interface IActionLocation {
|
|
62
|
+
typeOf: string;
|
|
63
|
+
id?: string;
|
|
64
|
+
identifier?: string;
|
|
65
|
+
}
|
|
61
66
|
/**
|
|
62
67
|
* アクション属性
|
|
63
68
|
*/
|
|
@@ -86,7 +91,7 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
|
86
91
|
/**
|
|
87
92
|
* The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
|
|
88
93
|
*/
|
|
89
|
-
location?:
|
|
94
|
+
location?: IActionLocation;
|
|
90
95
|
}
|
|
91
96
|
/**
|
|
92
97
|
* アクション動的属性
|
|
@@ -156,27 +161,15 @@ export interface ISearchConditions {
|
|
|
156
161
|
transactionNumber?: {
|
|
157
162
|
$eq?: string;
|
|
158
163
|
};
|
|
159
|
-
/**
|
|
160
|
-
* returnPolicy.identifier etc.
|
|
161
|
-
*/
|
|
162
|
-
identifier?: {
|
|
163
|
-
$eq?: string;
|
|
164
|
-
};
|
|
165
164
|
id?: {
|
|
166
165
|
$eq?: string;
|
|
167
166
|
};
|
|
168
167
|
orderNumber?: {
|
|
169
168
|
$eq?: string;
|
|
170
169
|
};
|
|
170
|
+
identifier?: never;
|
|
171
171
|
};
|
|
172
|
-
location?:
|
|
173
|
-
id?: {
|
|
174
|
-
$eq?: string;
|
|
175
|
-
};
|
|
176
|
-
identifier?: {
|
|
177
|
-
$eq?: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
172
|
+
location?: never;
|
|
180
173
|
object?: {
|
|
181
174
|
id?: {
|
|
182
175
|
$eq?: string;
|
|
@@ -204,9 +197,6 @@ export interface ISearchConditions {
|
|
|
204
197
|
$in?: string[];
|
|
205
198
|
};
|
|
206
199
|
paymentMethod?: {
|
|
207
|
-
accountId?: {
|
|
208
|
-
$eq?: string;
|
|
209
|
-
};
|
|
210
200
|
/**
|
|
211
201
|
* 決済アクションの決済方法ID
|
|
212
202
|
*/
|
|
@@ -214,6 +204,7 @@ export interface ISearchConditions {
|
|
|
214
204
|
$eq?: string;
|
|
215
205
|
$in?: string[];
|
|
216
206
|
};
|
|
207
|
+
accountId?: never;
|
|
217
208
|
typeOf?: never;
|
|
218
209
|
};
|
|
219
210
|
/**
|
|
@@ -248,18 +239,14 @@ export interface ISearchConditions {
|
|
|
248
239
|
};
|
|
249
240
|
};
|
|
250
241
|
result?: {
|
|
251
|
-
typeOf?: {
|
|
252
|
-
$in?: string[];
|
|
253
|
-
};
|
|
254
242
|
id?: {
|
|
255
243
|
$in?: string[];
|
|
256
244
|
};
|
|
257
|
-
orderNumber?: {
|
|
258
|
-
$in?: string[];
|
|
259
|
-
};
|
|
260
245
|
code?: {
|
|
261
246
|
$in?: string[];
|
|
262
247
|
};
|
|
248
|
+
typeOf?: never;
|
|
249
|
+
orderNumber?: never;
|
|
263
250
|
};
|
|
264
251
|
sameAs?: {
|
|
265
252
|
id?: {
|