@chevre/factory 4.183.0 → 4.184.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.
@@ -1,9 +1,15 @@
1
+ import { PlaceType } from '../../../placeType';
1
2
  import { IReservation } from '../../../reservation/event';
2
3
  import * as UseActionFactory from '../use';
3
4
  export declare type IObject = IReservation[];
4
5
  export declare type IResult = any;
6
+ export interface ILocation {
7
+ typeOf: PlaceType.Place;
8
+ identifier: string;
9
+ }
5
10
  export declare type IPotentialActions = any;
6
11
  export interface IAttributes extends UseActionFactory.IAttributes<IObject, IResult> {
12
+ location?: ILocation;
7
13
  potentialActions?: IPotentialActions;
8
14
  }
9
15
  /**
@@ -46,8 +46,9 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
46
46
  */
47
47
  error?: any;
48
48
  /**
49
- * The object that helped the agent perform the action. e.g. John wrote a book with a pen.
49
+ * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
50
50
  */
51
+ location?: any;
51
52
  instrument?: any;
52
53
  /**
53
54
  * アクション対象
@@ -94,6 +95,7 @@ export interface IDynamicAttributes {
94
95
  }
95
96
  /**
96
97
  * 抽象アクションインターフェース
98
+ * {@link https://schema.org/Action}
97
99
  */
98
100
  export declare type IAction<TAttributes extends IAttributes<ActionType, any, any>> = IExtendId<TAttributes & IDynamicAttributes>;
99
101
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.183.0",
3
+ "version": "4.184.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",