@chevre/factory 4.370.0-alpha.1 → 4.370.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,6 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
- export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication;
3
+ export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
4
4
  export type IObject = any;
5
5
  export type IResult = any;
6
6
  export type IReplacer = any;
package/lib/action.d.ts CHANGED
@@ -15,6 +15,10 @@ export type IParticipantAsWebApplication = IParticipantOptionalAttributes & {
15
15
  id: string;
16
16
  identifier?: never;
17
17
  };
18
+ export type IParticipantAsSoftwareApplication = IParticipantOptionalAttributes & {
19
+ typeOf: CreativeWorkType.SoftwareApplication;
20
+ id: string;
21
+ };
18
22
  export type IParticipantAsPerson = IParticipantOptionalAttributes & Pick<IPersonAttributes, 'id' | 'typeOf'>;
19
23
  export type IParticipantAsSeller = IParticipantOptionalAttributes & {
20
24
  typeOf: OrganizationType.Corporation;
@@ -34,7 +38,7 @@ export type IParticipantAsCustomer = IParticipantOptionalAttributes & {
34
38
  /**
35
39
  * アクションへの関係者
36
40
  */
37
- export type IParticipant = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsSeller | IParticipantAsProject | IParticipantAsCustomer;
41
+ export type IParticipant = IParticipantAsWebApplication | IParticipantAsSoftwareApplication | IParticipantAsPerson | IParticipantAsSeller | IParticipantAsProject | IParticipantAsCustomer;
38
42
  /**
39
43
  * アクション目的
40
44
  */
@@ -13,7 +13,7 @@ import { TransactionType } from './transactionType';
13
13
  export interface IAgentAsWebApplication extends Pick<IWebApplication, 'id' | 'identifier' | 'typeOf'> {
14
14
  name?: string;
15
15
  }
16
- export interface IAgentAsPerson extends Pick<IPersonAttributes, 'id' | 'identifier' | 'memberOf' | 'typeOf'> {
16
+ export interface IAgentAsPerson extends Pick<IPersonAttributes, 'id' | 'identifier' | 'typeOf'> {
17
17
  name?: string;
18
18
  }
19
19
  export type IAgent = IAgentAsWebApplication | IAgentAsPerson;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.370.0-alpha.1",
3
+ "version": "4.370.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",