@chevre/factory 10.4.0-alpha.1 → 10.4.0-alpha.2

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.
@@ -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?: any;
94
+ location?: IActionLocation;
90
95
  }
91
96
  /**
92
97
  * アクション動的属性
@@ -169,14 +174,7 @@ export interface ISearchConditions {
169
174
  $eq?: string;
170
175
  };
171
176
  };
172
- location?: {
173
- id?: {
174
- $eq?: string;
175
- };
176
- identifier?: {
177
- $eq?: string;
178
- };
179
- };
177
+ location?: never;
180
178
  object?: {
181
179
  id?: {
182
180
  $eq?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "10.4.0-alpha.1",
3
+ "version": "10.4.0-alpha.2",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [