@chevre/factory 4.276.0-alpha.2 → 4.276.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.
@@ -70,6 +70,7 @@ export interface IPurpose {
70
70
  }
71
71
  export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
72
72
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.MoneyTransfer, IObject, IResult> {
73
+ identifier?: string;
73
74
  typeOf: ActionType.MoneyTransfer;
74
75
  /**
75
76
  * どんな取引によって発生した転送アクションか
package/lib/action.d.ts CHANGED
@@ -5,36 +5,28 @@ import { CreativeWorkType } from './creativeWorkType';
5
5
  import { OrganizationType } from './organizationType';
6
6
  import { IPersonAttributes } from './person';
7
7
  import { IProject } from './project';
8
- import { IPropertyValue } from './propertyValue';
9
8
  import { SortType } from './sortType';
10
- export interface IParticipantAsWebApplication {
11
- typeOf: CreativeWorkType.WebApplication;
12
- id: string;
9
+ export interface IParticipantOptionalAttributes {
13
10
  name?: string;
14
11
  url?: string;
15
12
  }
16
- export declare type IParticipantAsPerson = Pick<IPersonAttributes, 'id' | 'typeOf'> & {
17
- name?: string;
18
- url?: string;
13
+ export declare type IParticipantAsWebApplication = IParticipantOptionalAttributes & {
14
+ typeOf: CreativeWorkType.WebApplication;
15
+ id: string;
19
16
  };
20
- export interface IParticipantAsSeller {
17
+ export declare type IParticipantAsPerson = IParticipantOptionalAttributes & Pick<IPersonAttributes, 'id' | 'typeOf'>;
18
+ export declare type IParticipantAsSeller = IParticipantOptionalAttributes & {
21
19
  typeOf: OrganizationType.Corporation;
22
20
  id: string;
23
- name?: string;
24
- url?: string;
25
- }
26
- export interface IParticipantAsProject {
21
+ };
22
+ export declare type IParticipantAsProject = IParticipantOptionalAttributes & {
27
23
  typeOf: OrganizationType.Project;
28
24
  id: string;
29
- name?: string;
30
- url?: string;
31
- }
32
- export interface IParticipantAsCustomer {
25
+ };
26
+ export declare type IParticipantAsCustomer = IParticipantOptionalAttributes & {
33
27
  typeOf: OrganizationType.Organization;
34
28
  id: string;
35
- name?: string;
36
- url?: string;
37
- }
29
+ };
38
30
  /**
39
31
  * アクションへの関係者
40
32
  */
@@ -48,54 +40,23 @@ export interface IPurpose {
48
40
  /**
49
41
  * 追加属性
50
42
  */
51
- export declare type IAdditionalProperty = IPropertyValue<string>[];
52
43
  /**
53
44
  * アクション属性
54
45
  */
55
46
  export interface IAttributes<T extends ActionType, TObject, TResult> {
56
- identifier?: string;
57
47
  project: Pick<IProject, 'id' | 'typeOf'>;
58
- /**
59
- * A property-value pair representing an additional characteristics of the entitity,
60
- * e.g. a product feature or another characteristic for which there is no matching property in schema.org.
61
- */
62
- additionalProperty?: IAdditionalProperty;
63
- /**
64
- * アクション主体者
65
- */
66
48
  agent: IParticipant;
67
- /**
68
- * アクション説明
69
- */
70
49
  description?: string;
71
- /**
72
- * アクション失敗時のエラー結果
73
- */
74
50
  error?: any;
75
51
  /**
76
52
  * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
77
53
  */
78
54
  location?: any;
79
55
  instrument?: any;
80
- /**
81
- * アクション対象
82
- */
83
56
  object: TObject;
84
- /**
85
- * 事後に発生するアクション
86
- */
87
57
  potentialActions?: any;
88
- /**
89
- * 目的
90
- */
91
58
  purpose?: IPurpose;
92
- /**
93
- * アクション受取者
94
- */
95
59
  recipient?: IParticipant;
96
- /**
97
- * アクション結果
98
- */
99
60
  result?: TResult;
100
61
  /**
101
62
  * アクションタイプ
@@ -107,21 +68,12 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
107
68
  * リポジトリに保管時にセット、あるいは変更される
108
69
  */
109
70
  export interface IDynamicAttributes {
110
- /**
111
- * アクション状態
112
- */
113
71
  actionStatus: ActionStatusType;
114
- /**
115
- * 開始日時
116
- */
117
72
  startDate: Date;
118
- /**
119
- * 終了日時
120
- */
121
73
  endDate?: Date;
122
74
  }
123
75
  /**
124
- * 抽象アクション
76
+ * アクション
125
77
  * {@link https://schema.org/Action}
126
78
  */
127
79
  export declare type IAction<TAttributes extends IAttributes<ActionType, any, any>> = IExtendId<TAttributes & IDynamicAttributes>;
@@ -159,6 +111,9 @@ export interface ISearchConditions {
159
111
  };
160
112
  };
161
113
  location?: {
114
+ id?: {
115
+ $eq?: string;
116
+ };
162
117
  identifier?: {
163
118
  $eq?: string;
164
119
  };
package/lib/index.d.ts CHANGED
@@ -179,7 +179,6 @@ export import actionStatusType = ActionStatusType;
179
179
  export import actionType = ActionType;
180
180
  export declare namespace action {
181
181
  export import IAction = ActionFactory.IAction;
182
- export import IAdditionalProperty = ActionFactory.IAdditionalProperty;
183
182
  export import IAttributes = ActionFactory.IAttributes;
184
183
  export import IDynamicAttributes = ActionFactory.IDynamicAttributes;
185
184
  export import IParticipantAsWebApplication = ActionFactory.IParticipantAsWebApplication;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.276.0-alpha.2",
3
+ "version": "4.276.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",