@chevre/factory 4.362.0-alpha.1 → 4.362.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,5 @@
|
|
|
1
1
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
2
2
|
import { ISimpleOrder } from '../../../order';
|
|
3
|
-
import { IInstrument } from '../../authorize/paymentMethod/any';
|
|
4
3
|
import * as ConfirmActionFactory from '../confirm';
|
|
5
4
|
export type IPurpose = ISimpleOrder;
|
|
6
5
|
export interface IPayAssetTransaction {
|
|
@@ -21,7 +20,6 @@ export interface IPayAssetTransaction {
|
|
|
21
20
|
export type IObject = IPayAssetTransaction[];
|
|
22
21
|
export type IResult = any;
|
|
23
22
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
24
|
-
instrument: IInstrument;
|
|
25
23
|
purpose: IPurpose;
|
|
26
24
|
}
|
|
27
25
|
/**
|
|
@@ -16,7 +16,7 @@ export interface ITransactionPurpose {
|
|
|
16
16
|
export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
|
|
17
17
|
export type IResult = any;
|
|
18
18
|
export type IPotentialActions = any;
|
|
19
|
-
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | '
|
|
19
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
|
|
20
20
|
agent: IAgent;
|
|
21
21
|
purpose: IPurpose;
|
|
22
22
|
}
|
package/lib/action.d.ts
CHANGED
|
@@ -13,19 +13,23 @@ export interface IParticipantOptionalAttributes {
|
|
|
13
13
|
export type IParticipantAsWebApplication = IParticipantOptionalAttributes & {
|
|
14
14
|
typeOf: CreativeWorkType.WebApplication;
|
|
15
15
|
id: string;
|
|
16
|
+
identifier?: never;
|
|
16
17
|
};
|
|
17
18
|
export type IParticipantAsPerson = IParticipantOptionalAttributes & Pick<IPersonAttributes, 'id' | 'typeOf'>;
|
|
18
19
|
export type IParticipantAsSeller = IParticipantOptionalAttributes & {
|
|
19
20
|
typeOf: OrganizationType.Corporation;
|
|
20
21
|
id: string;
|
|
22
|
+
identifier?: never;
|
|
21
23
|
};
|
|
22
24
|
export type IParticipantAsProject = IParticipantOptionalAttributes & {
|
|
23
25
|
typeOf: OrganizationType.Project;
|
|
24
26
|
id: string;
|
|
27
|
+
identifier?: never;
|
|
25
28
|
};
|
|
26
29
|
export type IParticipantAsCustomer = IParticipantOptionalAttributes & {
|
|
27
30
|
typeOf: OrganizationType.Organization;
|
|
28
31
|
id: string;
|
|
32
|
+
identifier?: never;
|
|
29
33
|
};
|
|
30
34
|
/**
|
|
31
35
|
* アクションへの関係者
|
|
@@ -37,9 +41,6 @@ export type IParticipant = IParticipantAsWebApplication | IParticipantAsPerson |
|
|
|
37
41
|
export interface IPurpose {
|
|
38
42
|
typeOf: string;
|
|
39
43
|
}
|
|
40
|
-
/**
|
|
41
|
-
* 追加属性
|
|
42
|
-
*/
|
|
43
44
|
/**
|
|
44
45
|
* アクション属性
|
|
45
46
|
*/
|