@chevre/factory 10.3.0-alpha.7 → 10.3.0-alpha.9
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 +3 -2
- package/lib/chevre/action/trade/pay.d.ts +1 -1
- package/lib/chevre/action.d.ts +4 -8
- package/lib/chevre/index.d.ts +0 -2
- package/lib/chevre/index.js +0 -3
- package/lib/chevre/task/checkResource.d.ts +9 -2
- package/lib/chevre/task/checkResource.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,8 @@ 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';
|
|
7
8
|
import { ActionStatusType } from './../../../actionStatusType';
|
|
8
9
|
import { SortType } from '../../../sortType';
|
|
9
10
|
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
@@ -44,7 +45,7 @@ export interface ITicketAsInstrument {
|
|
|
44
45
|
typeOf: TicketType;
|
|
45
46
|
}
|
|
46
47
|
export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
|
|
47
|
-
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'object' | 'project' | 'typeOf' | 'error'> {
|
|
48
|
+
export interface IAttributes extends Pick<IBaseAttributes<ActionType.UseAction, IObject, IResult>, 'object' | 'project' | 'typeOf' | 'error'> {
|
|
48
49
|
agent: IAgent;
|
|
49
50
|
instrument: IInstrument[];
|
|
50
51
|
location?: ILocation;
|
|
@@ -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~)
|
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/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;
|
|
@@ -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;
|
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>;
|