@chevre/factory 10.3.0-alpha.5 → 10.3.0-alpha.6
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,7 @@
|
|
|
1
|
-
import { IParticipantAsProject,
|
|
1
|
+
import { IParticipantAsProject, IParticipantAsWebApplication, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
|
+
import { IEntryPoint } from '../../entryPoint';
|
|
4
5
|
import { IOrder } from '../../order';
|
|
5
6
|
import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
6
7
|
import { IAccountTitleAsNotification } from '../../notification/accountTitle';
|
|
@@ -19,13 +20,6 @@ import { IRefundAction4inform } from '../../notification/refundAction';
|
|
|
19
20
|
import { IReservation4inform } from '../../notification/reservation';
|
|
20
21
|
import { ITask4inform } from '../../notification/task';
|
|
21
22
|
export type IAgent = IParticipantAsProject;
|
|
22
|
-
export type IRecipientAsWebApplicationDeprecated = Pick<IRecipientAsAnonymousWebApplication, 'id' | 'name' | 'typeOf'> & {
|
|
23
|
-
url?: string;
|
|
24
|
-
};
|
|
25
|
-
export type IRecipientAsSellerDeprecated = Pick<IParticipantAsSeller, 'id' | 'name' | 'typeOf'> & {
|
|
26
|
-
url?: string;
|
|
27
|
-
};
|
|
28
|
-
export type IRecipientDeprecated = IRecipientAsWebApplicationDeprecated | IRecipientAsSellerDeprecated;
|
|
29
23
|
/**
|
|
30
24
|
* redefine informAction.recipient(2025-02-15~)
|
|
31
25
|
*/
|
|
@@ -54,13 +48,14 @@ export interface IResult {
|
|
|
54
48
|
statusCode?: number;
|
|
55
49
|
useFetchAPI?: boolean;
|
|
56
50
|
}
|
|
57
|
-
export interface IAttributes
|
|
51
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.InformAction, IObject, IResult>, 'object' | 'project' | 'result' | 'typeOf'> {
|
|
58
52
|
agent: IAgent;
|
|
59
|
-
recipient: IRecipient
|
|
53
|
+
recipient: IRecipient;
|
|
54
|
+
target: IEntryPoint;
|
|
60
55
|
purpose?: IPurpose;
|
|
61
56
|
about?: IAbout;
|
|
62
57
|
}
|
|
63
58
|
/**
|
|
64
|
-
*
|
|
59
|
+
* 通知アクション
|
|
65
60
|
*/
|
|
66
|
-
export type IAction
|
|
61
|
+
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
* アクションタイプ
|
|
3
3
|
*/
|
|
4
4
|
export declare enum ActionType {
|
|
5
|
-
AddAction = "AddAction",
|
|
6
5
|
AcceptAction = "AcceptAction",
|
|
7
6
|
AuthorizeAction = "AuthorizeAction",
|
|
8
7
|
CancelAction = "CancelAction",
|
|
9
8
|
CheckAction = "CheckAction",
|
|
10
9
|
ConfirmAction = "ConfirmAction",
|
|
11
10
|
CreateAction = "CreateAction",
|
|
12
|
-
DeleteAction = "DeleteAction",
|
|
13
|
-
InformAction = "InformAction",
|
|
14
11
|
OrderAction = "OrderAction",
|
|
15
12
|
PayAction = "PayAction",
|
|
16
13
|
RefundAction = "RefundAction",
|
|
17
|
-
ReplaceAction = "ReplaceAction",
|
|
18
14
|
ReserveAction = "ReserveAction",
|
|
19
15
|
ReturnAction = "ReturnAction",
|
|
20
16
|
SendAction = "SendAction",
|
|
17
|
+
AddAction = "AddAction",
|
|
18
|
+
DeleteAction = "DeleteAction",
|
|
19
|
+
ReplaceAction = "ReplaceAction",
|
|
21
20
|
UpdateAction = "UpdateAction",
|
|
21
|
+
InformAction = "InformAction",
|
|
22
22
|
UseAction = "UseAction"
|
|
23
23
|
}
|
package/lib/chevre/actionType.js
CHANGED
|
@@ -6,25 +6,25 @@ exports.ActionType = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var ActionType;
|
|
8
8
|
(function (ActionType) {
|
|
9
|
-
|
|
9
|
+
// 以下actionsで管理
|
|
10
10
|
ActionType["AcceptAction"] = "AcceptAction";
|
|
11
11
|
ActionType["AuthorizeAction"] = "AuthorizeAction";
|
|
12
12
|
ActionType["CancelAction"] = "CancelAction";
|
|
13
13
|
ActionType["CheckAction"] = "CheckAction";
|
|
14
14
|
ActionType["ConfirmAction"] = "ConfirmAction";
|
|
15
15
|
ActionType["CreateAction"] = "CreateAction";
|
|
16
|
-
ActionType["DeleteAction"] = "DeleteAction";
|
|
17
|
-
ActionType["InformAction"] = "InformAction";
|
|
18
|
-
// MoneyTransfer = 'MoneyTransfer', // discontinue(2026-05-09~)
|
|
19
16
|
ActionType["OrderAction"] = "OrderAction";
|
|
20
17
|
ActionType["PayAction"] = "PayAction";
|
|
21
18
|
ActionType["RefundAction"] = "RefundAction";
|
|
22
|
-
// RegisterAction = 'RegisterAction', // discontinue(2026-05-09~)
|
|
23
|
-
ActionType["ReplaceAction"] = "ReplaceAction";
|
|
24
19
|
ActionType["ReserveAction"] = "ReserveAction";
|
|
25
20
|
ActionType["ReturnAction"] = "ReturnAction";
|
|
26
21
|
ActionType["SendAction"] = "SendAction";
|
|
27
|
-
//
|
|
22
|
+
// 以下actions.updateで管理
|
|
23
|
+
ActionType["AddAction"] = "AddAction";
|
|
24
|
+
ActionType["DeleteAction"] = "DeleteAction";
|
|
25
|
+
ActionType["ReplaceAction"] = "ReplaceAction";
|
|
28
26
|
ActionType["UpdateAction"] = "UpdateAction";
|
|
27
|
+
// 以下actions.??で管理
|
|
28
|
+
ActionType["InformAction"] = "InformAction";
|
|
29
29
|
ActionType["UseAction"] = "UseAction";
|
|
30
30
|
})(ActionType || (exports.ActionType = ActionType = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAttributes as IInformActionAttributes, IOrderAsAbout, IPlaceOrderAsAbout, IRecipient
|
|
1
|
+
import { IAttributes as IInformActionAttributes, IOrderAsAbout, IPlaceOrderAsAbout, IRecipient } from '../action/interact/inform';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { IEntryPoint } from '../entryPoint';
|
|
4
4
|
import { IAccountTitleAsNotification } from '../notification/accountTitle';
|
|
@@ -18,25 +18,24 @@ import { IReservation4inform } from '../notification/reservation';
|
|
|
18
18
|
import { ITask4inform } from '../notification/task';
|
|
19
19
|
import { ITaskAttributes } from '../task';
|
|
20
20
|
import { TaskName } from '../taskName';
|
|
21
|
-
export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 'typeOf'> & {
|
|
22
|
-
url?: never;
|
|
23
|
-
};
|
|
24
21
|
/**
|
|
25
22
|
* define strictly(2025-02-20~)
|
|
26
23
|
*/
|
|
27
24
|
export type IAnyResourceAsObject = IOfferCatalogAsNotification | IEntranceGateAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
28
|
-
export type IInformAnyResourceAction = Pick<IInformActionAttributes
|
|
25
|
+
export type IInformAnyResourceAction = Pick<IInformActionAttributes, 'about'> & {
|
|
26
|
+
object: IAnyResourceAsObject;
|
|
29
27
|
/**
|
|
30
28
|
* 通知識別子(2024-10-24~)
|
|
31
29
|
*/
|
|
32
30
|
identifier?: string;
|
|
33
|
-
recipient:
|
|
31
|
+
recipient: IRecipient;
|
|
34
32
|
target: IEntryPoint;
|
|
35
33
|
id?: never;
|
|
36
34
|
typeOf?: never;
|
|
37
35
|
purpose?: never;
|
|
38
36
|
};
|
|
39
|
-
export type IPotentialInformOrderAction = Pick<IInformActionAttributes
|
|
37
|
+
export type IPotentialInformOrderAction = Pick<IInformActionAttributes, 'about'> & {
|
|
38
|
+
object: IOrder4inform;
|
|
40
39
|
/**
|
|
41
40
|
* about required(2025-02-19~)
|
|
42
41
|
*/
|
|
@@ -45,13 +44,14 @@ export type IPotentialInformOrderAction = Pick<IInformActionAttributes<IOrder4in
|
|
|
45
44
|
* 通知識別子(2024-10-24~)
|
|
46
45
|
*/
|
|
47
46
|
identifier?: string;
|
|
48
|
-
recipient:
|
|
47
|
+
recipient: IRecipient;
|
|
49
48
|
target: IEntryPoint;
|
|
50
49
|
id?: never;
|
|
51
50
|
typeOf?: never;
|
|
52
51
|
purpose?: never;
|
|
53
52
|
};
|
|
54
|
-
export type IPotentialInformReservationAction = Pick<IInformActionAttributes
|
|
53
|
+
export type IPotentialInformReservationAction = Pick<IInformActionAttributes, 'about'> & {
|
|
54
|
+
object: IReservation4inform;
|
|
55
55
|
/**
|
|
56
56
|
* about required(2025-02-19~)
|
|
57
57
|
*/
|
|
@@ -71,19 +71,21 @@ export type IPotentialInformReservationAction = Pick<IInformActionAttributes<IRe
|
|
|
71
71
|
/**
|
|
72
72
|
* support task(2025-08-03~)
|
|
73
73
|
*/
|
|
74
|
-
export
|
|
74
|
+
export interface IPotentialInformTaskAction {
|
|
75
|
+
object: ITask4inform;
|
|
75
76
|
/**
|
|
76
77
|
* 通知識別子
|
|
77
78
|
*/
|
|
78
79
|
identifier: string;
|
|
79
|
-
recipient:
|
|
80
|
+
recipient: IRecipient;
|
|
80
81
|
target: IEntryPoint;
|
|
81
82
|
id?: never;
|
|
82
83
|
typeOf?: never;
|
|
83
84
|
purpose?: never;
|
|
84
85
|
about?: never;
|
|
85
|
-
}
|
|
86
|
-
export type IPotentialInformActionWithId = Pick<IInformActionAttributes
|
|
86
|
+
}
|
|
87
|
+
export type IPotentialInformActionWithId = Pick<IInformActionAttributes, 'purpose' | 'about'> & {
|
|
88
|
+
object: IPayAction4inform | IRefundAction4inform;
|
|
87
89
|
identifier?: never;
|
|
88
90
|
recipient?: never;
|
|
89
91
|
target?: never;
|
|
@@ -91,7 +93,7 @@ export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IPayActi
|
|
|
91
93
|
* potentialAction id
|
|
92
94
|
*/
|
|
93
95
|
id: string;
|
|
94
|
-
typeOf: IInformActionAttributes
|
|
96
|
+
typeOf: IInformActionAttributes['typeOf'];
|
|
95
97
|
};
|
|
96
98
|
export type IData = IInformAnyResourceAction | IPotentialInformOrderAction | IPotentialInformReservationAction | IPotentialInformActionWithId | IPotentialInformTaskAction;
|
|
97
99
|
export interface IAttributes extends ITaskAttributes {
|