@chevre/factory 4.213.0 → 4.214.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,6 +1,10 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
- export declare type IAgent = ActionFactory.IParticipant;
3
+ import { OrganizationType } from '../../organizationType';
4
+ export interface IAgent {
5
+ id: string;
6
+ typeOf: OrganizationType.Project;
7
+ }
4
8
  export declare type IRecipient = ActionFactory.IParticipant;
5
9
  export declare type IObject = any;
6
10
  export declare type IPurpose = any;
@@ -1,7 +1,11 @@
1
1
  import * as ActionFactory from '../../../../action';
2
2
  import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
3
+ import { OrganizationType } from '../../../../organizationType';
3
4
  import * as SendActionFactory from '../../send';
4
- export declare type IAgent = ActionFactory.IParticipant;
5
+ export interface IAgent {
6
+ id: string;
7
+ typeOf: OrganizationType.Project;
8
+ }
5
9
  export declare type IRecipient = ActionFactory.IParticipant;
6
10
  /**
7
11
  * オブジェクトインターフェース
@@ -1,14 +1,36 @@
1
- import { IParticipant } from '../action';
2
1
  import { ActionType } from '../actionType';
3
2
  import { IExtendId } from '../autoGenerated';
4
- import * as OrderFactory from '../order';
5
- import { IPermit } from '../permit';
3
+ import { OfferType } from '../offerType';
4
+ import { PermitType } from '../permit';
5
+ import { IAdditionalProperty, IIdentifier } from '../person';
6
+ import { PersonType } from '../personType';
7
+ import { ProductType } from '../product';
6
8
  import { IProject } from '../project';
7
9
  import * as TaskFactory from '../task';
8
10
  import { TaskName } from '../taskName';
9
11
  import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../transaction/placeOrder';
10
- export declare type IAgent = IParticipant;
11
- export declare type IAcceptedOffer = Omit<OrderFactory.IAcceptedOffer<IPermit>, 'priceSpecification'>;
12
+ export interface IAgent {
13
+ typeOf: PersonType.Person;
14
+ id: string;
15
+ additionalProperty?: IAdditionalProperty;
16
+ identifier: IIdentifier;
17
+ }
18
+ export interface IAcceptedOffer {
19
+ seller: {
20
+ id: string;
21
+ };
22
+ typeOf: OfferType;
23
+ itemOffered: {
24
+ typeOf: PermitType.Permit;
25
+ name: string;
26
+ issuedThrough: {
27
+ typeOf: ProductType.MembershipService;
28
+ id: string;
29
+ };
30
+ };
31
+ id: string;
32
+ identifier: string;
33
+ }
12
34
  export declare type IPotentialActions = IOrderPotentialActionsParams;
13
35
  export interface IData {
14
36
  agent: IAgent;
@@ -28,6 +50,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
28
50
  data: IData;
29
51
  }
30
52
  /**
31
- * メンバーシップ注文タスクインターフェース
53
+ * メンバーシップ注文タスク
32
54
  */
33
55
  export declare type ITask = IExtendId<IAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.213.0",
3
+ "version": "4.214.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",