@chevre/factory 4.370.0-alpha.0 → 4.370.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.
@@ -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
  */
@@ -3,7 +3,6 @@ import * as AssetTransactionFactory from '../assetTransaction';
3
3
  import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
- import { IClientUser } from '../clientUser';
7
6
  import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
8
7
  import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
9
8
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
@@ -20,7 +19,6 @@ export interface IResult {
20
19
  */
21
20
  export type IError = any;
22
21
  export interface IObjectWithoutDetail {
23
- clientUser?: IClientUser;
24
22
  reservation?: {
25
23
  /**
26
24
  * 予約IDで取消
@@ -47,7 +45,6 @@ export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedTh
47
45
  * 取引対象物
48
46
  */
49
47
  export interface IObject extends Pick<IReservationPackage, 'reservationNumber' | 'typeOf'> {
50
- clientUser?: IClientUser;
51
48
  transaction?: IReserveTransactionAsObject;
52
49
  reservations?: IBusReservationAsObject[] | IEventReservationAsObject[];
53
50
  /**
@@ -50,7 +50,7 @@ export interface IAwardAccount {
50
50
  accountNumber: string;
51
51
  }
52
52
  export interface IObject {
53
- clientUser?: IClientUser;
53
+ clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
54
54
  broker?: OrderFactory.IBroker;
55
55
  customer?: ICustomer;
56
56
  identifier?: OrderFactory.IIdentifier;
@@ -86,7 +86,7 @@ export interface IStartParamsWithoutDetail {
86
86
  id: string;
87
87
  };
88
88
  object: {
89
- clientUser?: IClientUser;
89
+ clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
90
90
  customer?: ICustomer;
91
91
  passport?: TransactionFactory.IPassportBeforeStart;
92
92
  /**
@@ -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.0",
3
+ "version": "4.370.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",