@chevre/factory 10.3.0-alpha.1 → 10.3.0-alpha.11
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 +7 -12
- package/lib/chevre/action/trade/pay.d.ts +1 -1
- package/lib/chevre/action/transfer/send/message/email.d.ts +3 -4
- package/lib/chevre/action/transfer/send/order.d.ts +3 -4
- package/lib/chevre/action/transfer/send.d.ts +1 -1
- package/lib/chevre/action/update/add.d.ts +5 -3
- package/lib/chevre/action/update/delete.d.ts +15 -31
- package/lib/chevre/action/update/replace.d.ts +15 -10
- package/lib/chevre/action/update/replace.js +1 -0
- package/lib/chevre/action/update/update.d.ts +30 -9
- package/lib/chevre/action.d.ts +9 -8
- package/lib/chevre/actionType.d.ts +4 -4
- package/lib/chevre/actionType.js +7 -7
- package/lib/chevre/assetTransaction/reserve.d.ts +4 -18
- package/lib/chevre/authorization.d.ts +1 -4
- package/lib/chevre/index.d.ts +0 -2
- package/lib/chevre/index.js +0 -3
- package/lib/chevre/notification/reservation.d.ts +9 -1
- package/lib/chevre/ownershipInfo.d.ts +7 -54
- package/lib/chevre/task/checkResource.d.ts +9 -2
- package/lib/chevre/task/checkResource.js +1 -0
- package/lib/chevre/task/syncResourcesFromCOA.d.ts +0 -4
- package/lib/chevre/task/triggerWebhook.d.ts +16 -14
- package/lib/chevre/task/triggerWebhook.js +1 -0
- package/package.json +1 -1
- package/lib/chevre/action/check/thing.d.ts +0 -27
- package/lib/chevre/action/check/thing.js +0 -2
- 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
|
+
}
|
|
@@ -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' | 'error'> {
|
|
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>;
|
|
@@ -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~)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IParticipantAsProject } from '../../../../action';
|
|
2
2
|
import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
|
|
3
3
|
import { ISimpleOrder } from '../../../../order';
|
|
4
4
|
import { IRecipe, ISendMultipleArgs, ISendMultipleResult } from '../../../../recipe/sendEmailMessage';
|
|
5
5
|
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../send';
|
|
6
6
|
export { IRecipe, ISendMultipleArgs, ISendMultipleResult };
|
|
7
7
|
export type IAgent = IParticipantAsProject;
|
|
8
|
-
export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
|
|
9
8
|
export type IObjectAsEmailMessage = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'sender' | 'text' | 'toRecipient' | 'typeOf'>;
|
|
10
9
|
export type IOptimizedObject = Pick<IEmailMessage, 'identifier' | 'typeOf'> & {
|
|
11
10
|
identifier: string;
|
|
@@ -21,10 +20,10 @@ export interface IResult {
|
|
|
21
20
|
statusMessage?: string;
|
|
22
21
|
}
|
|
23
22
|
export type IPurpose = ISimpleOrder;
|
|
24
|
-
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | '
|
|
23
|
+
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'purpose' | 'project' | 'object' | 'error'> {
|
|
25
24
|
agent: IAgent;
|
|
26
25
|
purpose: IPurpose;
|
|
27
|
-
recipient
|
|
26
|
+
recipient?: never;
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
29
|
* Eメール送信アクション
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
|
|
2
2
|
import { ISimpleOrder } from '../../../order';
|
|
3
3
|
import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
|
|
4
4
|
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../send';
|
|
5
5
|
export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
6
|
-
export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
|
|
7
6
|
export type IObject = ISimpleOrder & {
|
|
8
7
|
/**
|
|
9
8
|
* 配送対象オファー(2024-01-11~)
|
|
@@ -17,9 +16,9 @@ export type IObject = ISimpleOrder & {
|
|
|
17
16
|
* 注文配送結果としての所有権
|
|
18
17
|
*/
|
|
19
18
|
export type IResult = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier'>[];
|
|
20
|
-
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'result' | '
|
|
19
|
+
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'result' | 'project' | 'object' | 'error'> {
|
|
21
20
|
agent: IAgent;
|
|
22
|
-
recipient
|
|
21
|
+
recipient?: never;
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* 注文配送アクション
|
|
@@ -8,7 +8,7 @@ export type IPotentialActions = any;
|
|
|
8
8
|
export type IPurpose = any;
|
|
9
9
|
export interface IAttributes<TObject, TResult> extends IBaseAttributes<ActionType.SendAction, TObject, TResult> {
|
|
10
10
|
agent: IAgent;
|
|
11
|
-
recipient
|
|
11
|
+
recipient?: IParticipant;
|
|
12
12
|
potentialActions?: IPotentialActions;
|
|
13
13
|
purpose?: IPurpose;
|
|
14
14
|
}
|
|
@@ -23,11 +23,13 @@ export interface ITargetCollectionAsResource {
|
|
|
23
23
|
typeOf: ProductType | OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType;
|
|
24
24
|
}
|
|
25
25
|
export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsResource;
|
|
26
|
-
export interface IAttributes extends Pick<IBaseAttributes<ActionType.AddAction, IObject, IResult>, 'typeOf' | '
|
|
27
|
-
|
|
28
|
-
purpose?: never;
|
|
26
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.AddAction, IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'project' | 'object' | 'error'> {
|
|
27
|
+
agent: IAgent;
|
|
29
28
|
instrument: IInstrument;
|
|
30
29
|
targetCollection: ITargetCollection;
|
|
30
|
+
potentialActions?: never;
|
|
31
|
+
purpose?: never;
|
|
32
|
+
replacer?: never;
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* 追加アクション
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IParticipantAsProject, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
|
|
4
|
-
import { CreativeWorkType } from '../../creativeWorkType';
|
|
5
|
-
import { IPerson } from '../../person';
|
|
6
|
-
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
7
3
|
import { IEvent as IEventSeries } from '../../event/eventSeries';
|
|
8
4
|
import { IAggregateOffer } from '../../offer/aggregateOffer';
|
|
9
5
|
import { IOfferCatalog } from '../../offerCatalog';
|
|
10
|
-
import { IGood, IOwnershipInfo } from '../../ownershipInfo';
|
|
11
6
|
import { IPlace as IMovieTheater } from '../../place/movieTheater';
|
|
12
7
|
import { IPlace as IRoom } from '../../place/screeningRoom';
|
|
13
8
|
import { IProduct } from '../../product';
|
|
14
9
|
import { ISeller } from '../../seller';
|
|
15
10
|
import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
16
11
|
import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* ユーザープールから物理削除するかどうか
|
|
22
|
-
*/
|
|
23
|
-
physically?: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type IObjectAsOwnershipInfo = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier' | 'typeOf'> & {
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
12
|
+
/**
|
|
13
|
+
* 削除者は現時点でプロジェクトのみ
|
|
14
|
+
*/
|
|
15
|
+
export type IAgent = IParticipantAsProject;
|
|
28
16
|
export type IObjectAsProduct = Pick<IProduct, 'id' | 'typeOf'>;
|
|
29
17
|
export type IObjectAsOfferCatalog = Pick<IOfferCatalog, 'id' | 'typeOf'>;
|
|
30
18
|
export type IObjectAsAggregateOffer = Pick<IAggregateOffer, 'id' | 'typeOf'>;
|
|
@@ -56,22 +44,18 @@ export type IObjectAsReturnOrder = Pick<IReturnOrder, 'id' | 'typeOf'> & {
|
|
|
56
44
|
endDate?: never;
|
|
57
45
|
project?: never;
|
|
58
46
|
};
|
|
59
|
-
export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries |
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
export type IResult =
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
67
|
-
about: Pick<INoteAbout, 'typeOf'>;
|
|
68
|
-
}
|
|
69
|
-
export type ITargetCollection = ITargetCollectionAsNote;
|
|
70
|
-
export interface IAttributes extends Pick<IBaseAttributes<ActionType.DeleteAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'replacer' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
47
|
+
export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPlaceOrder | IObjectAsReturnOrder;
|
|
48
|
+
/**
|
|
49
|
+
* deleteクエリのレスポンスなど削除結果を定義するべきであるが、ひとまず汎用的に
|
|
50
|
+
*/
|
|
51
|
+
export type IResult = any;
|
|
52
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.DeleteAction, IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'project' | 'object' | 'error'> {
|
|
53
|
+
agent: IAgent;
|
|
71
54
|
potentialActions?: never;
|
|
72
55
|
purpose?: never;
|
|
73
|
-
instrument?:
|
|
74
|
-
targetCollection?:
|
|
56
|
+
instrument?: never;
|
|
57
|
+
targetCollection?: never;
|
|
58
|
+
replacer?: never;
|
|
75
59
|
}
|
|
76
60
|
/**
|
|
77
61
|
* 削除アクション
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IParticipantAsProject, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { Identifier as WebAPIIdentifier, IService as IWebAPI } from '../../service/webAPI';
|
|
4
|
-
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
5
4
|
import { EventType } from '../../eventType';
|
|
6
5
|
import { OrganizationType } from '../../organizationType';
|
|
7
6
|
import { PlaceType } from '../../placeType';
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* 現時点で置換者はプロジェクトのみ
|
|
9
|
+
*/
|
|
10
|
+
export type IAgent = IParticipantAsProject;
|
|
9
11
|
interface IImportFromCOAParams {
|
|
10
12
|
project: {
|
|
11
13
|
id: string;
|
|
@@ -42,7 +44,6 @@ export interface IObjectAsMovieTheaterByCOA extends IImportFromCOAParams {
|
|
|
42
44
|
}
|
|
43
45
|
export type IObject = IObjectAsEventByCOA | IObjectAsMovieTheaterByCOA;
|
|
44
46
|
export type IResult = any;
|
|
45
|
-
export type IReplacer = any;
|
|
46
47
|
export interface IInstrumentAsCOAAPI {
|
|
47
48
|
theaterCode: string;
|
|
48
49
|
begin?: string;
|
|
@@ -50,17 +51,21 @@ export interface IInstrumentAsCOAAPI {
|
|
|
50
51
|
typeOf: IWebAPI<WebAPIIdentifier>['typeOf'];
|
|
51
52
|
identifier: WebAPIIdentifier.COA;
|
|
52
53
|
}
|
|
53
|
-
export type IInstrument =
|
|
54
|
-
export
|
|
55
|
-
|
|
54
|
+
export type IInstrument = IInstrumentAsCOAAPI;
|
|
55
|
+
export interface ITargetCollection {
|
|
56
|
+
typeOf: EventType.ScreeningEvent | EventType.ScreeningEventSeries | PlaceType.MovieTheater;
|
|
57
|
+
}
|
|
58
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.ReplaceAction, IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'project' | 'object' | 'error'> {
|
|
59
|
+
agent: IAgent;
|
|
60
|
+
instrument: IInstrument;
|
|
61
|
+
targetCollection: ITargetCollection;
|
|
56
62
|
potentialActions?: never;
|
|
57
63
|
purpose?: never;
|
|
58
|
-
replacer?:
|
|
59
|
-
instrument?: IInstrument;
|
|
60
|
-
targetCollection: ITargetCollection;
|
|
64
|
+
replacer?: never;
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
63
67
|
* 置換アクション
|
|
68
|
+
* COAリソースインポート時にのみ発生する
|
|
64
69
|
*/
|
|
65
70
|
export type IAction = IBaseAction<IAttributes>;
|
|
66
71
|
export {};
|
|
@@ -1,25 +1,46 @@
|
|
|
1
|
-
import { IParticipantAsPerson, IParticipantAsWebApplication, IParticipantAsSoftwareApplication,
|
|
1
|
+
import { IParticipantAsPerson, IParticipantAsWebApplication, IParticipantAsSoftwareApplication, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
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';
|
|
10
|
-
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication | IParticipantAsSoftwareApplication
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export type IInstrument = IInstrumentAsApplication | IInstrumentAsTask;
|
|
15
|
-
export interface IAttributes extends Pick<IBaseAttributes<ActionType.UpdateAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
16
|
-
potentialActions?: never;
|
|
17
|
-
purpose?: never;
|
|
11
|
+
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication | IParticipantAsSoftwareApplication;
|
|
12
|
+
export type IInstrument = IInstrumentAsApplication;
|
|
13
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.UpdateAction, IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'project' | 'object' | 'error'> {
|
|
18
14
|
agent: IAgent;
|
|
19
15
|
instrument: IInstrument;
|
|
20
16
|
targetCollection: ITargetCollection;
|
|
17
|
+
potentialActions?: never;
|
|
18
|
+
purpose?: never;
|
|
19
|
+
replacer?: never;
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
22
|
* 編集アクション
|
|
24
23
|
*/
|
|
25
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
|
* アクション動的属性
|
|
@@ -100,6 +96,11 @@ export interface IDynamicAttributes {
|
|
|
100
96
|
actionStatus: ActionStatusType;
|
|
101
97
|
startDate: Date;
|
|
102
98
|
endDate?: Date;
|
|
99
|
+
/**
|
|
100
|
+
* ドキュメント期限切れ日時
|
|
101
|
+
* support(2026-08-16~)
|
|
102
|
+
*/
|
|
103
|
+
expires?: Date;
|
|
103
104
|
}
|
|
104
105
|
/**
|
|
105
106
|
* アクション
|
|
@@ -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 = {}));
|
|
@@ -408,11 +408,6 @@ export interface IAttributes extends IBaseAttributes<IStartParams, IResult, IErr
|
|
|
408
408
|
*/
|
|
409
409
|
export type ITransaction = IExtendId<IAttributes>;
|
|
410
410
|
export interface IObjectSearchConditions {
|
|
411
|
-
provider?: {
|
|
412
|
-
id?: {
|
|
413
|
-
$eq?: string;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
411
|
reservationFor?: {
|
|
417
412
|
id?: {
|
|
418
413
|
$eq?: string;
|
|
@@ -426,14 +421,6 @@ export interface IObjectSearchConditions {
|
|
|
426
421
|
id?: {
|
|
427
422
|
$in?: string[];
|
|
428
423
|
};
|
|
429
|
-
reservationNumber?: {
|
|
430
|
-
$in?: string[];
|
|
431
|
-
};
|
|
432
|
-
reservationFor?: {
|
|
433
|
-
id?: {
|
|
434
|
-
$in?: string[];
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
424
|
reservedTicket?: {
|
|
438
425
|
ticketedSeat?: {
|
|
439
426
|
seatNumber?: {
|
|
@@ -441,12 +428,11 @@ export interface IObjectSearchConditions {
|
|
|
441
428
|
};
|
|
442
429
|
};
|
|
443
430
|
};
|
|
431
|
+
reservationFor?: never;
|
|
432
|
+
reservationNumber?: never;
|
|
444
433
|
};
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
$eq?: string;
|
|
448
|
-
};
|
|
449
|
-
};
|
|
434
|
+
provider?: never;
|
|
435
|
+
reservatiounderNamenNumber?: never;
|
|
450
436
|
}
|
|
451
437
|
export interface ISearchConditions extends IBaseSearchConditions<AssetTransactionType.Reserve> {
|
|
452
438
|
object?: IObjectSearchConditions;
|
|
@@ -161,13 +161,10 @@ export interface ISortOrder {
|
|
|
161
161
|
export interface IObjectSearchConditions {
|
|
162
162
|
typeOfs?: string[];
|
|
163
163
|
ids?: string[];
|
|
164
|
-
typeOfGood?: {
|
|
165
|
-
typeOfs?: string[];
|
|
166
|
-
ids?: string[];
|
|
167
|
-
};
|
|
168
164
|
orderNumber?: {
|
|
169
165
|
$eq?: string;
|
|
170
166
|
};
|
|
167
|
+
typeOfGood?: never;
|
|
171
168
|
}
|
|
172
169
|
/**
|
|
173
170
|
* 承認検索条件
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import * as AuthorizeTicketedObjectActionFactory from './action/authorize/ticket
|
|
|
11
11
|
import * as CancelCOAReserveActionFactory from './action/cancel/coaReserve';
|
|
12
12
|
import * as CancelReservationActionFactory from './action/cancel/reservation';
|
|
13
13
|
import * as CheckMovieTicketActionFactory from './action/check/paymentMethod/movieTicket';
|
|
14
|
-
import * as CheckThingActionFactory from './action/check/thing';
|
|
15
14
|
import * as UseReservationActionFactory from './action/consume/use/reservation';
|
|
16
15
|
import * as CreateActionFactory from './action/create';
|
|
17
16
|
import * as ConfirmPayActionFactory from './action/interact/confirm/pay';
|
|
@@ -236,7 +235,6 @@ export declare namespace action {
|
|
|
236
235
|
namespace paymentMethod {
|
|
237
236
|
export import movieTicket = CheckMovieTicketActionFactory;
|
|
238
237
|
}
|
|
239
|
-
export import thing = CheckThingActionFactory;
|
|
240
238
|
}
|
|
241
239
|
export import create = CreateActionFactory;
|
|
242
240
|
namespace interact {
|
package/lib/chevre/index.js
CHANGED
|
@@ -13,7 +13,6 @@ const AuthorizeTicketedObjectActionFactory = require("./action/authorize/tickete
|
|
|
13
13
|
const CancelCOAReserveActionFactory = require("./action/cancel/coaReserve");
|
|
14
14
|
const CancelReservationActionFactory = require("./action/cancel/reservation");
|
|
15
15
|
const CheckMovieTicketActionFactory = require("./action/check/paymentMethod/movieTicket");
|
|
16
|
-
const CheckThingActionFactory = require("./action/check/thing");
|
|
17
16
|
const UseReservationActionFactory = require("./action/consume/use/reservation");
|
|
18
17
|
const CreateActionFactory = require("./action/create");
|
|
19
18
|
const ConfirmPayActionFactory = require("./action/interact/confirm/pay");
|
|
@@ -216,8 +215,6 @@ var action;
|
|
|
216
215
|
(function (paymentMethod) {
|
|
217
216
|
paymentMethod.movieTicket = CheckMovieTicketActionFactory;
|
|
218
217
|
})(paymentMethod = check.paymentMethod || (check.paymentMethod = {}));
|
|
219
|
-
check.thing = CheckThingActionFactory;
|
|
220
|
-
// export import token = CheckTokenActionFactory; // discontinue(2025-09-22~)
|
|
221
218
|
})(check = action.check || (action.check = {}));
|
|
222
219
|
action.create = CreateActionFactory;
|
|
223
220
|
let interact;
|
|
@@ -20,6 +20,14 @@ export type ISubReservation4inform = Pick<IEventReservation, 'id' | 'modifiedTim
|
|
|
20
20
|
additionalProperty?: never;
|
|
21
21
|
programMembershipUsed?: never;
|
|
22
22
|
};
|
|
23
|
+
export type IReservationFor4informLegacy = IReservationForLegacy;
|
|
24
|
+
/**
|
|
25
|
+
* 確定予約通知のイベント属性
|
|
26
|
+
* 2026-09-01~
|
|
27
|
+
*/
|
|
28
|
+
export type IReservationFor4inform = Pick<IReservationForLegacy, 'id' | 'typeOf'> & {
|
|
29
|
+
superEvent?: never;
|
|
30
|
+
};
|
|
23
31
|
/**
|
|
24
32
|
* 確定予約通知
|
|
25
33
|
*/
|
|
@@ -27,7 +35,7 @@ export interface IReservationPackage4informConfirmed {
|
|
|
27
35
|
bookingTime: Date;
|
|
28
36
|
project: IProject;
|
|
29
37
|
provider: IProvider;
|
|
30
|
-
reservationFor:
|
|
38
|
+
reservationFor: IReservationFor4inform | IReservationFor4informLegacy;
|
|
31
39
|
reservationNumber: string;
|
|
32
40
|
reservationStatus: ReservationStatusType.ReservationConfirmed;
|
|
33
41
|
subReservation: ISubReservation4inform[];
|
|
@@ -132,30 +132,6 @@ export interface ISortOrder {
|
|
|
132
132
|
*/
|
|
133
133
|
ownedFrom?: SortType;
|
|
134
134
|
}
|
|
135
|
-
/**
|
|
136
|
-
* 所有対象物検索条件
|
|
137
|
-
*/
|
|
138
|
-
export interface ITypeOfGoodSearchConditions {
|
|
139
|
-
typeOf?: string | {
|
|
140
|
-
$eq?: string;
|
|
141
|
-
$in?: string[];
|
|
142
|
-
};
|
|
143
|
-
identifier?: {
|
|
144
|
-
$eq?: string;
|
|
145
|
-
};
|
|
146
|
-
id?: {
|
|
147
|
-
$eq?: string;
|
|
148
|
-
$in?: string[];
|
|
149
|
-
};
|
|
150
|
-
issuedThrough?: {
|
|
151
|
-
id?: {
|
|
152
|
-
$eq?: string;
|
|
153
|
-
};
|
|
154
|
-
typeOf?: {
|
|
155
|
-
$eq?: string;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
135
|
/**
|
|
160
136
|
* 所有権検索条件
|
|
161
137
|
*/
|
|
@@ -168,36 +144,13 @@ export interface ISearchConditions {
|
|
|
168
144
|
$eq?: string;
|
|
169
145
|
};
|
|
170
146
|
};
|
|
171
|
-
acquiredFrom?: {
|
|
172
|
-
id?: {
|
|
173
|
-
$in?: string[];
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
ids?: string[];
|
|
177
|
-
identifiers?: string[];
|
|
178
|
-
/**
|
|
179
|
-
* 所有者
|
|
180
|
-
*/
|
|
181
|
-
ownedBy?: {
|
|
182
|
-
id?: string | {
|
|
183
|
-
$in?: string[];
|
|
184
|
-
};
|
|
185
|
-
typeOf?: {
|
|
186
|
-
$eq?: string;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
147
|
ownedFromGte?: Date;
|
|
190
148
|
ownedFromLte?: Date;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
ownedThrough?: Date;
|
|
199
|
-
/**
|
|
200
|
-
* 所有対象物
|
|
201
|
-
*/
|
|
202
|
-
typeOfGood?: ITypeOfGoodSearchConditions;
|
|
149
|
+
ownedFrom?: never;
|
|
150
|
+
ownedThrough?: never;
|
|
151
|
+
acquiredFrom?: never;
|
|
152
|
+
ids?: never;
|
|
153
|
+
identifiers?: never;
|
|
154
|
+
ownedBy?: never;
|
|
155
|
+
typeOfGood?: never;
|
|
203
156
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { IAttributes as ICheckActionAttributes } from '../action/check/thing';
|
|
2
1
|
import { IExtendId } from '../autoGenerated';
|
|
3
2
|
import { ITaskAttributes } from '../task';
|
|
4
3
|
import { TaskName } from '../taskName';
|
|
5
|
-
|
|
4
|
+
import { OrderType } from '../order';
|
|
5
|
+
export interface IObjectAsOrder {
|
|
6
|
+
orderNumber: string;
|
|
7
|
+
typeOf: OrderType.Order;
|
|
8
|
+
}
|
|
9
|
+
export type IObject = IObjectAsOrder;
|
|
10
|
+
export interface IData {
|
|
11
|
+
object: IObject;
|
|
12
|
+
}
|
|
6
13
|
export interface IAttributes extends ITaskAttributes {
|
|
7
14
|
name: TaskName.CheckResource;
|
|
8
15
|
data: IData;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { IParticipantAsPerson, IParticipantAsSoftwareApplication, IParticipantAsWebApplication } from '../action';
|
|
2
1
|
import { IExtendId } from '../autoGenerated';
|
|
3
2
|
import { EventType } from '../eventType';
|
|
4
3
|
import { ITaskAttributes } from '../task';
|
|
5
4
|
import { TaskName } from '../taskName';
|
|
6
|
-
export type IAgent = IParticipantAsPerson | IParticipantAsSoftwareApplication | IParticipantAsWebApplication;
|
|
7
5
|
export interface IReplaceEventSeriesAction {
|
|
8
|
-
agent: IAgent;
|
|
9
6
|
object: {
|
|
10
7
|
locationBranchCode: string;
|
|
11
8
|
titleCode: string;
|
|
@@ -14,7 +11,6 @@ export interface IReplaceEventSeriesAction {
|
|
|
14
11
|
};
|
|
15
12
|
}
|
|
16
13
|
export interface IReplaceEventsAction {
|
|
17
|
-
agent: IAgent;
|
|
18
14
|
object: {
|
|
19
15
|
locationBranchCode: string;
|
|
20
16
|
roomCode: string;
|
|
@@ -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 {
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IParticipantAsWebApplication, IParticipantAsPerson, IParticipantAsProject, ISameAs, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
|
-
import { ActionType } from '../../actionType';
|
|
3
|
-
import { EventType } from '../../eventType';
|
|
4
|
-
import { OrderType } from '../../order';
|
|
5
|
-
export type IAgent = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsProject;
|
|
6
|
-
export interface IObjectAsEvent {
|
|
7
|
-
id: string;
|
|
8
|
-
typeOf: EventType.ScreeningEvent;
|
|
9
|
-
}
|
|
10
|
-
export interface IObjectAsOrder {
|
|
11
|
-
orderNumber: string;
|
|
12
|
-
typeOf: OrderType.Order;
|
|
13
|
-
}
|
|
14
|
-
export type IObject = IObjectAsEvent | IObjectAsOrder;
|
|
15
|
-
export interface IResult {
|
|
16
|
-
}
|
|
17
|
-
export type IError = any;
|
|
18
|
-
export interface IAttributes extends Pick<IBaseAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'result' | 'sameAs' | 'typeOf'> {
|
|
19
|
-
purpose?: never;
|
|
20
|
-
agent: IAgent;
|
|
21
|
-
object: IObject;
|
|
22
|
-
sameAs: ISameAs;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 汎用リソース検証アクション
|
|
26
|
-
*/
|
|
27
|
-
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -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>;
|