@chevre/factory 10.3.0-alpha.6 → 10.3.0-alpha.8
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.
- package/lib/chevre/action/accept/pay.d.ts +3 -2
- package/lib/chevre/action/consume/use/reservation.d.ts +32 -10
- package/lib/chevre/action/consume/use/reservation.js +1 -0
- package/lib/chevre/action/interact/inform.d.ts +1 -1
- package/lib/chevre/action/trade/pay.d.ts +1 -1
- package/lib/chevre/action/update/update.d.ts +23 -0
- package/lib/chevre/action.d.ts +4 -8
- package/package.json +1 -1
- package/lib/chevre/action/consume/use.d.ts +0 -10
- package/lib/chevre/action/consume/use.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAction as IBaseAction } from '../../action';
|
|
2
|
-
import { IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
|
|
2
|
+
import { IPaymentMethodTicketAsInstrument, ILocation } from '../../action/trade/pay';
|
|
3
3
|
import { ActionType } from '../../actionType';
|
|
4
4
|
import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
@@ -33,7 +33,7 @@ export type IInstrument = IPaymentMethodTicketAsInstrument;
|
|
|
33
33
|
/**
|
|
34
34
|
* 決済採用アクション属性
|
|
35
35
|
*/
|
|
36
|
-
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'identifier' | '
|
|
36
|
+
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'identifier' | 'object' | 'project' | 'purpose' | 'result' | 'sameAs' | 'typeOf'> {
|
|
37
37
|
typeOf: ActionType.AcceptAction;
|
|
38
38
|
object: IObject;
|
|
39
39
|
agent: IAgent;
|
|
@@ -48,6 +48,7 @@ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'ag
|
|
|
48
48
|
* 2025-11-22まではinstrument自体存在しない
|
|
49
49
|
*/
|
|
50
50
|
instrument?: IInstrument[];
|
|
51
|
+
location?: ILocation;
|
|
51
52
|
}
|
|
52
53
|
/**
|
|
53
54
|
* 決済採用アクション
|
|
@@ -3,7 +3,10 @@ import { IOrder } from '../../../order';
|
|
|
3
3
|
import { PlaceType } from '../../../placeType';
|
|
4
4
|
import { TicketType } from '../../../reservation';
|
|
5
5
|
import { IReservation, IReservationForMinimized } from '../../../reservation/event';
|
|
6
|
-
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '
|
|
6
|
+
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../../action';
|
|
7
|
+
import { ActionType } from '../../../actionType';
|
|
8
|
+
import { ActionStatusType } from './../../../actionStatusType';
|
|
9
|
+
import { SortType } from '../../../sortType';
|
|
7
10
|
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
8
11
|
/**
|
|
9
12
|
* 予約使用アクションオブジェクト
|
|
@@ -22,8 +25,10 @@ export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reserva
|
|
|
22
25
|
reservedTicket?: never;
|
|
23
26
|
}
|
|
24
27
|
export type IObject = IReservationAsObject[];
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
/**
|
|
29
|
+
* 現時点でresultは存在しない(2026-08-14)
|
|
30
|
+
*/
|
|
31
|
+
export type IResult = never;
|
|
27
32
|
export interface ILocation {
|
|
28
33
|
typeOf: PlaceType.Place;
|
|
29
34
|
/**
|
|
@@ -38,19 +43,36 @@ export interface ITicketAsInstrument {
|
|
|
38
43
|
*/
|
|
39
44
|
ticketToken?: string;
|
|
40
45
|
typeOf: TicketType;
|
|
41
|
-
/**
|
|
42
|
-
* JWT
|
|
43
|
-
* discontinue(2024-10-03~)
|
|
44
|
-
*/
|
|
45
|
-
token?: never;
|
|
46
46
|
}
|
|
47
47
|
export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
|
|
48
|
-
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, '
|
|
48
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.UseAction, IObject, IResult>, 'object' | 'project' | 'typeOf' | 'error'> {
|
|
49
49
|
agent: IAgent;
|
|
50
50
|
instrument: IInstrument[];
|
|
51
51
|
location?: ILocation;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* 予約使用アクション
|
|
55
55
|
*/
|
|
56
56
|
export type IAction = IBaseAction<IAttributes>;
|
|
57
|
+
export interface IFindParams {
|
|
58
|
+
limit?: number;
|
|
59
|
+
page?: number;
|
|
60
|
+
sort?: {
|
|
61
|
+
startDate?: SortType;
|
|
62
|
+
};
|
|
63
|
+
startFrom?: Date;
|
|
64
|
+
startThrough?: Date;
|
|
65
|
+
project?: {
|
|
66
|
+
id?: {
|
|
67
|
+
$eq?: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
actionStatus?: ActionStatusType;
|
|
71
|
+
id?: string;
|
|
72
|
+
object?: {
|
|
73
|
+
/**
|
|
74
|
+
* 予約ID
|
|
75
|
+
*/
|
|
76
|
+
id?: string;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -48,7 +48,7 @@ export interface IResult {
|
|
|
48
48
|
statusCode?: number;
|
|
49
49
|
useFetchAPI?: boolean;
|
|
50
50
|
}
|
|
51
|
-
export interface IAttributes extends Pick<IBaseAttributes<ActionType.InformAction, IObject, IResult>, 'object' | 'project' | 'result' | 'typeOf'> {
|
|
51
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.InformAction, IObject, IResult>, 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
|
|
52
52
|
agent: IAgent;
|
|
53
53
|
recipient: IRecipient;
|
|
54
54
|
target: IEntryPoint;
|
|
@@ -133,7 +133,7 @@ export interface ILocation {
|
|
|
133
133
|
*/
|
|
134
134
|
id: string;
|
|
135
135
|
}
|
|
136
|
-
export interface IAttributes extends Pick<IBaseAttributes<ActionType.PayAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | '
|
|
136
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.PayAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
|
|
137
137
|
agent: IAgent;
|
|
138
138
|
/**
|
|
139
139
|
* 注文決済の場合、決済取引として存在(2024-06-15~)
|
|
@@ -4,6 +4,7 @@ import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
|
4
4
|
import { IObject } from './update/object';
|
|
5
5
|
import { IResult } from './update/result';
|
|
6
6
|
import { ITargetCollection } from './update/targetCollection';
|
|
7
|
+
import { SortType } from '../../sortType';
|
|
7
8
|
export * from './update/object';
|
|
8
9
|
export * from './update/result';
|
|
9
10
|
export * from './update/targetCollection';
|
|
@@ -21,3 +22,25 @@ export interface IAttributes extends Pick<IBaseAttributes<ActionType.UpdateActio
|
|
|
21
22
|
* 編集アクション
|
|
22
23
|
*/
|
|
23
24
|
export type IAction = IBaseAction<IAttributes>;
|
|
25
|
+
export interface IFindParams {
|
|
26
|
+
limit?: number;
|
|
27
|
+
page?: number;
|
|
28
|
+
sort?: {
|
|
29
|
+
startDate?: SortType;
|
|
30
|
+
};
|
|
31
|
+
startFrom?: Date;
|
|
32
|
+
startThrough?: Date;
|
|
33
|
+
project?: {
|
|
34
|
+
id?: {
|
|
35
|
+
$eq?: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
id?: string;
|
|
39
|
+
typeOf?: ActionType.AddAction | ActionType.UpdateAction | ActionType.ReplaceAction | ActionType.DeleteAction;
|
|
40
|
+
object?: {
|
|
41
|
+
id?: string;
|
|
42
|
+
};
|
|
43
|
+
result?: {
|
|
44
|
+
id?: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
package/lib/chevre/action.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { ActionType } from './actionType';
|
|
|
3
3
|
import { AssetTransactionType } from './assetTransactionType';
|
|
4
4
|
import { IExtendId } from './autoGenerated';
|
|
5
5
|
import { CreativeWorkType } from './creativeWorkType';
|
|
6
|
-
import { IEntryPoint } from './entryPoint';
|
|
7
6
|
import { OrganizationType } from './organizationType';
|
|
8
7
|
import { IPersonAttributes } from './person';
|
|
9
8
|
import { IProject } from './project';
|
|
@@ -67,10 +66,6 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
|
67
66
|
agent: IParticipant;
|
|
68
67
|
description?: string;
|
|
69
68
|
error?: any;
|
|
70
|
-
/**
|
|
71
|
-
* The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
|
|
72
|
-
*/
|
|
73
|
-
location?: any;
|
|
74
69
|
instrument?: any;
|
|
75
70
|
object: TObject;
|
|
76
71
|
potentialActions?: any;
|
|
@@ -82,15 +77,16 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
|
82
77
|
* アクションタイプ
|
|
83
78
|
*/
|
|
84
79
|
typeOf: T;
|
|
85
|
-
replacer?: any;
|
|
86
|
-
targetCollection?: any;
|
|
87
80
|
cancelAction?: any;
|
|
88
81
|
about?: any;
|
|
89
|
-
target?: IEntryPoint;
|
|
90
82
|
/**
|
|
91
83
|
* globally unique identifier(2025-02-25~)
|
|
92
84
|
*/
|
|
93
85
|
identifier?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
|
|
88
|
+
*/
|
|
89
|
+
location?: any;
|
|
94
90
|
}
|
|
95
91
|
/**
|
|
96
92
|
* アクション動的属性
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
|
-
import { ActionType } from '../../actionType';
|
|
3
|
-
export type IObject = any;
|
|
4
|
-
export type IResult = any;
|
|
5
|
-
export interface IAttributes<TObject, TResult> extends Pick<IBaseAttributes<ActionType.UseAction, TObject, TResult>, 'typeOf' | 'result' | 'project' | 'object' | 'location' | 'error' | 'instrument' | 'agent'> {
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* use action
|
|
9
|
-
*/
|
|
10
|
-
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = IBaseAction<TAttributes>;
|