@chevre/factory 4.225.0 → 4.226.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.
@@ -3,16 +3,17 @@ import { ActionType } from '../../actionType';
3
3
  import { AssetTransactionType } from '../../assetTransactionType';
4
4
  import { IReservation as IEventReservation } from '../../reservation/event';
5
5
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
6
+ export declare type IAgent = ActionFactory.IParticipantAsProject;
6
7
  /**
7
- * 予約キャンセル対象インターフェース
8
+ * 予約キャンセル対象
8
9
  */
9
10
  export declare type IObject = IEventReservation;
10
11
  /**
11
- * 予約キャンセル結果インターフェース
12
+ * 予約キャンセル結果
12
13
  */
13
14
  export declare type IResult = any;
14
15
  /**
15
- * 予約キャンセル目的インターフェース
16
+ * 予約キャンセル目的
16
17
  */
17
18
  export interface IPurpose {
18
19
  /**
@@ -28,13 +29,14 @@ export declare type IInformReservation = IInformActionAttributes<IObject, any>;
28
29
  export interface IPotentialActions {
29
30
  }
30
31
  /**
31
- * アクション属性インターフェース
32
+ * アクション属性
32
33
  */
33
34
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult> {
35
+ agent: IAgent;
34
36
  potentialActions?: IPotentialActions;
35
37
  purpose: IPurpose;
36
38
  }
37
39
  /**
38
- * 予約キャンセルアクションインターフェース
40
+ * 予約キャンセルアクション
39
41
  */
40
42
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,15 +1,18 @@
1
+ import { IParticipantAsProject } from '../../../action';
1
2
  import { IPermit } from '../../../permit';
2
3
  import { IAttributes as IMoneyTransferActionAttributes } from '../../transfer/moneyTransfer';
3
4
  import * as RegisterActionFactory from '../register';
5
+ export declare type IAgent = IParticipantAsProject;
4
6
  export declare type IObject = IPermit;
5
7
  export declare type IResult = any;
6
8
  export interface IPotentialActions {
7
9
  moneyTransfer: IMoneyTransferActionAttributes[];
8
10
  }
9
11
  export interface IAttributes extends RegisterActionFactory.IAttributes<IObject, IResult> {
12
+ agent: IAgent;
10
13
  potentialActions?: IPotentialActions;
11
14
  }
12
15
  /**
13
- * サービス登録アクションインターフェース
16
+ * サービス登録アクション
14
17
  */
15
18
  export declare type IAction = RegisterActionFactory.IAction<IAttributes>;
@@ -5,6 +5,7 @@ import { OrderType } from '../order';
5
5
  import { IReservation as IEventReservation } from '../reservation/event';
6
6
  import { IAttributes as IInformActionAttributes } from './interact/inform';
7
7
  import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
8
+ export declare type IAgent = ActionFactory.IParticipantAsProject;
8
9
  /**
9
10
  * 予約対象
10
11
  */
@@ -37,6 +38,7 @@ export interface IPotentialActions {
37
38
  * アクション属性
38
39
  */
39
40
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
41
+ agent: IAgent;
40
42
  potentialActions?: IPotentialActions;
41
43
  purpose: IPurpose;
42
44
  }
@@ -5,7 +5,7 @@ import * as MoneyTransferTransactionFactory from '../../assetTransaction/moneyTr
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
6
6
  import { IMonetaryAmount } from '../../monetaryAmount';
7
7
  /**
8
- * 進行中取引インターフェース
8
+ * 進行中取引
9
9
  */
10
10
  export interface IPendingTransaction {
11
11
  typeOf: AccountFactory.transactionType;
@@ -16,11 +16,11 @@ export interface IPendingTransaction {
16
16
  export declare type IAgent = ActionFactory.IParticipant;
17
17
  export declare type IRecipient = ActionFactory.IParticipant;
18
18
  /**
19
- * 匿名ロケーションインターフェース
19
+ * 匿名ロケーション
20
20
  */
21
21
  export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymousLocation;
22
22
  /**
23
- * ペイメントカードインターフェース
23
+ * ペイメントカード
24
24
  */
25
25
  export import IPaymentCard = MoneyTransferTransactionFactory.IPaymentCard;
26
26
  /**
@@ -45,6 +45,8 @@ export interface ITransactionPurpose {
45
45
  export declare type IPurpose = ITransactionPurpose;
46
46
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.MoneyTransfer, IObject, IResult> {
47
47
  typeOf: ActionType.MoneyTransfer;
48
+ agent: IAgent;
49
+ recipient: IRecipient;
48
50
  purpose: IPurpose;
49
51
  /**
50
52
  * 金額
@@ -1,18 +1,32 @@
1
1
  import { ActionStatusType } from './actionStatusType';
2
2
  import { ActionType } from './actionType';
3
3
  import { IExtendId } from './autoGenerated';
4
- import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
4
+ import { CreativeWorkType } from './creativeWorkType';
5
5
  import { ICustomer } from './customer';
6
6
  import { IMultilingualString } from './multilingualString';
7
- import { IPerson } from './person';
7
+ import { OrganizationType } from './organizationType';
8
+ import { IPersonAttributes } from './person';
8
9
  import { IProject } from './project';
9
10
  import { IPropertyValue } from './propertyValue';
10
11
  import { ISeller } from './seller';
11
12
  import { SortType } from './sortType';
12
- export declare type IParticipantAsWebApplication = Omit<IWebApplication, 'additionalProperty'>;
13
- export declare type IParticipantAsPerson = Omit<IPerson, 'email' | 'telephone' | 'givenName' | 'familyName' | 'additionalProperty'>;
13
+ export interface IParticipantAsWebApplication {
14
+ typeOf: CreativeWorkType.WebApplication;
15
+ id: string;
16
+ name?: string;
17
+ url?: string;
18
+ }
19
+ export declare type IParticipantAsPerson = IPersonAttributes & {
20
+ name?: string;
21
+ url?: string;
22
+ };
14
23
  export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'paymentAccepted' | 'project' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'>;
15
- export declare type IParticipantAsProject = Omit<IProject, 'settings' | 'subscription' | 'alternateName' | 'description' | 'additionalProperty'>;
24
+ export interface IParticipantAsProject {
25
+ typeOf: OrganizationType.Project;
26
+ id: string;
27
+ name?: string;
28
+ url?: string;
29
+ }
16
30
  export declare type IParticipantAsCustomer = Omit<ICustomer, 'name' | 'branchCode' | 'contactPoint' | 'project' | 'additionalProperty'> & {
17
31
  name?: string | IMultilingualString;
18
32
  };
@@ -5,6 +5,7 @@ import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { OfferType } from '../offerType';
7
7
  import { IProduct, IServiceOutput } from '../product';
8
+ import { IUnderNameType } from '../reservation';
8
9
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
9
10
  /**
10
11
  * 取引開始パラメーターインターフェース
@@ -12,7 +13,7 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
12
13
  */
13
14
  export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
14
15
  export interface IAgent {
15
- typeOf: string;
16
+ typeOf: IUnderNameType;
16
17
  id?: string;
17
18
  name: string;
18
19
  url?: string;
@@ -17,7 +17,7 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
17
17
  */
18
18
  export declare type IStartParams = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
19
19
  export interface IAgent {
20
- typeOf: string;
20
+ typeOf: ReservationFactory.IUnderNameType;
21
21
  id?: string;
22
22
  name: string;
23
23
  url?: string;
@@ -9,7 +9,7 @@ export declare type IAdditionalProperty = IPropertyValue<string>[];
9
9
  export import IIdentifier = ThingFactory.IIdentifier;
10
10
  export declare type IMemberOf = IProgramMembership;
11
11
  /**
12
- * プロフィールインターフェース
12
+ * プロフィール
13
13
  */
14
14
  export interface IProfile extends ThingFactory.IThing {
15
15
  /**
@@ -38,15 +38,13 @@ export interface IProfile extends ThingFactory.IThing {
38
38
  * Gender of the person.
39
39
  */
40
40
  gender?: string;
41
+ name?: string;
41
42
  /**
42
43
  * The telephone number.
43
44
  */
44
45
  telephone?: string;
45
46
  }
46
- /**
47
- * 人物インターフェース
48
- */
49
- export declare type IPerson = IProfile & {
47
+ export interface IPersonAttributes {
50
48
  /**
51
49
  * Person ID (Amazon Cognito User Identifier)
52
50
  */
@@ -56,4 +54,8 @@ export declare type IPerson = IProfile & {
56
54
  */
57
55
  memberOf?: IMemberOf;
58
56
  typeOf: PersonType;
59
- };
57
+ }
58
+ /**
59
+ * 人物
60
+ */
61
+ export declare type IPerson = IProfile & IPersonAttributes;
@@ -10,7 +10,6 @@ export interface IInformParams {
10
10
  */
11
11
  recipient?: {
12
12
  id?: string;
13
- typeOf?: any;
14
13
  name?: string;
15
14
  url?: string;
16
15
  };
@@ -19,7 +18,7 @@ export interface IOnPaymentStatusChanged {
19
18
  informPayment?: IInformParams[];
20
19
  }
21
20
  /**
22
- * 予約使用時イベントインターフェース
21
+ * 予約使用時イベント
23
22
  */
24
23
  export interface IOnReservationUsed {
25
24
  informAction?: IInformParams[];
@@ -27,7 +26,7 @@ export interface IOnReservationUsed {
27
26
  export interface ICognitoSettings {
28
27
  }
29
28
  /**
30
- * 注文ステータス変更時イベントインターフェース
29
+ * 注文ステータス変更時イベント
31
30
  */
32
31
  export interface IOnOrderStatusChanged {
33
32
  informOrder?: IInformParams[];
@@ -43,7 +42,7 @@ export interface IWebhookSettings {
43
42
  timeout?: number;
44
43
  }
45
44
  /**
46
- * プロジェクト設定インターフェース
45
+ * プロジェクト設定
47
46
  */
48
47
  export interface ISettings {
49
48
  importEventsInWeeks?: number;
@@ -58,7 +57,7 @@ export interface ISettings {
58
57
  useUsernameAsGMOMemberId?: boolean;
59
58
  }
60
59
  /**
61
- * プロジェクトインターフェース
60
+ * プロジェクト
62
61
  */
63
62
  export interface IProject extends IOrganization {
64
63
  typeOf: OrganizationType.Project;
@@ -72,13 +71,13 @@ export interface IProject extends IOrganization {
72
71
  };
73
72
  }
74
73
  /**
75
- * ソート条件インターフェース
74
+ * ソート条件
76
75
  */
77
76
  export interface ISortOrder {
78
77
  _id?: SortType;
79
78
  }
80
79
  /**
81
- * プロジェクト検索条件インターフェース
80
+ * プロジェクト検索条件
82
81
  */
83
82
  export interface ISearchConditions {
84
83
  limit?: number;
@@ -1,8 +1,11 @@
1
1
  import * as COA from '@motionpicture/coa-service';
2
+ import { CreativeWorkType } from './creativeWorkType';
2
3
  import { IMultilingualString } from './multilingualString';
3
4
  import * as OfferFactory from './offer';
4
5
  import { OfferType } from './offerType';
6
+ import { OrganizationType } from './organizationType';
5
7
  import { IPermit } from './permit';
8
+ import { PersonType } from './personType';
6
9
  import * as SeatFactory from './place/seat';
7
10
  import { PlaceType } from './placeType';
8
11
  import { PriceCurrency } from './priceCurrency';
@@ -32,11 +35,12 @@ export interface ITicketType {
32
35
  }
33
36
  export declare type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
34
37
  export declare type ISeatingType = SeatFactory.ISeatingType;
38
+ export declare type IUnderNameType = CreativeWorkType.WebApplication | PersonType.Person | OrganizationType.Organization | OrganizationType.Corporation | OrganizationType.Project;
35
39
  /**
36
40
  * under name interface
37
41
  */
38
42
  export interface IUnderName {
39
- typeOf: string;
43
+ typeOf: IUnderNameType;
40
44
  name: string;
41
45
  additionalName?: string;
42
46
  address?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.225.0",
3
+ "version": "4.226.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",