@chevre/factory 4.393.0-alpha.2 → 4.393.0-alpha.21
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/action/accept/pay.d.ts +6 -2
- package/lib/action/cancel/reservation.d.ts +11 -2
- package/lib/action/consume/use/reservation.d.ts +11 -5
- package/lib/action/consume/use.d.ts +1 -1
- package/lib/action/interact/inform.d.ts +16 -3
- package/lib/action/reserve.d.ts +9 -2
- package/lib/action/trade/pay.d.ts +13 -3
- package/lib/action/trade/refund.d.ts +9 -2
- package/lib/action.d.ts +8 -2
- package/lib/assetTransaction/cancelReservation.d.ts +7 -2
- package/lib/assetTransaction/pay.d.ts +12 -6
- package/lib/assetTransaction/refund.d.ts +5 -4
- package/lib/assetTransaction/reserve.d.ts +8 -1
- package/lib/certificationStatusEnumeration.d.ts +4 -0
- package/lib/certificationStatusEnumeration.js +8 -0
- package/lib/creativeWork/{certification.d.ts → certification/webApplication.d.ts} +5 -5
- package/lib/creativeWork/certification/webSite.d.ts +47 -0
- package/lib/creativeWork/certification/webSite.js +2 -0
- package/lib/creativeWorkType.d.ts +2 -1
- package/lib/creativeWorkType.js +1 -0
- package/lib/entryPoint.d.ts +18 -0
- package/lib/entryPoint.js +2 -0
- package/lib/identityProvider.d.ts +29 -0
- package/lib/identityProvider.js +2 -0
- package/lib/index.d.ts +15 -2
- package/lib/index.js +17 -4
- package/lib/potentialAction.d.ts +45 -0
- package/lib/potentialAction.js +2 -0
- package/lib/product.d.ts +10 -3
- package/lib/service/paymentService.d.ts +12 -9
- package/lib/serviceChannel.d.ts +44 -1
- package/lib/task/triggerWebhook.d.ts +39 -4
- package/lib/task/useReservation.d.ts +1 -1
- package/package.json +1 -1
- /package/lib/creativeWork/{certification.js → certification/webApplication.js} +0 -0
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
import { IAgent, IObjectWithoutDetail } from '../../assetTransaction/pay';
|
|
3
|
+
import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
|
|
4
4
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
5
5
|
import { IExecTran3dsArgs, IExecTran3dsResult, IRecipe } from '../../recipe/publishPaymentUrl';
|
|
6
6
|
import { TransactionType } from '../../transactionType';
|
|
7
7
|
import * as AcceptActionFactory from '../accept';
|
|
8
8
|
export { IExecTran3dsArgs, IExecTran3dsResult, IAgent, IRecipe };
|
|
9
|
+
export type IPaymentMethod = Pick<IPaymentMethodWithoutDetail, 'amount' | 'creditCard' | 'identifier' | 'method'>;
|
|
10
|
+
export type IPayObject = Pick<IObjectWithoutDetail, 'id' | 'typeOf'> & {
|
|
11
|
+
paymentMethod: IPaymentMethod;
|
|
12
|
+
};
|
|
9
13
|
export interface IObject {
|
|
10
|
-
object:
|
|
14
|
+
object: IPayObject;
|
|
11
15
|
transactionNumber: string;
|
|
12
16
|
typeOf: AssetTransactionType.Pay;
|
|
13
17
|
}
|
|
@@ -2,10 +2,12 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
4
|
import { EventType } from '../../eventType';
|
|
5
|
+
import { IOrder } from '../../order';
|
|
5
6
|
import { ProductType } from '../../product';
|
|
6
7
|
import { IAvailableReservationStatusType } from '../../reservation';
|
|
7
8
|
import { ReservationType } from '../../reservationType';
|
|
8
9
|
import { TripType } from '../../tripType';
|
|
10
|
+
import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
|
|
9
11
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
10
12
|
export interface IReservationPackageAsObject {
|
|
11
13
|
reservationFor: {
|
|
@@ -64,11 +66,18 @@ export interface IPurpose {
|
|
|
64
66
|
*/
|
|
65
67
|
id: string;
|
|
66
68
|
}
|
|
67
|
-
export
|
|
69
|
+
export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
70
|
+
export type IReturnActionAsInstrument = Pick<IReturnReserveTransactionAction, 'id' | 'purpose' | 'typeOf'>;
|
|
71
|
+
export type IInstrument = IOrderAsInstrument | IReturnActionAsInstrument;
|
|
72
|
+
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'object' | 'agent' | 'instrument'> {
|
|
68
73
|
agent: IAgent;
|
|
69
74
|
purpose: IPurpose;
|
|
75
|
+
/**
|
|
76
|
+
* add(2025-02-17~)
|
|
77
|
+
*/
|
|
78
|
+
instrument?: IInstrument[];
|
|
70
79
|
}
|
|
71
80
|
/**
|
|
72
|
-
*
|
|
81
|
+
* cancel reservation action
|
|
73
82
|
*/
|
|
74
83
|
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../action';
|
|
2
|
+
import { IOrder } from '../../../order';
|
|
2
3
|
import { PlaceType } from '../../../placeType';
|
|
3
4
|
import { ITicket, ITicketType } from '../../../reservation';
|
|
4
5
|
import { IIssuedThrough, IReservation, IReservationFor } from '../../../reservation/event';
|
|
@@ -18,11 +19,12 @@ export interface IResult {
|
|
|
18
19
|
export interface ILocation {
|
|
19
20
|
typeOf: PlaceType.Place;
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* entrance gate identifier
|
|
22
23
|
*/
|
|
23
24
|
identifier: string;
|
|
24
25
|
}
|
|
25
|
-
export
|
|
26
|
+
export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
27
|
+
export interface ITicketAsInstrument {
|
|
26
28
|
/**
|
|
27
29
|
* JWT
|
|
28
30
|
*/
|
|
@@ -33,12 +35,16 @@ export interface IInstrument {
|
|
|
33
35
|
ticketToken?: string;
|
|
34
36
|
typeOf: ObjectType.Ticket;
|
|
35
37
|
}
|
|
36
|
-
export
|
|
38
|
+
export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
|
|
39
|
+
export interface IAttributes extends Pick<UseActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
|
|
37
40
|
agent: IAgent;
|
|
38
|
-
|
|
41
|
+
/**
|
|
42
|
+
* extend to array(2025-02-17~)
|
|
43
|
+
*/
|
|
44
|
+
instrument: IInstrument | IInstrument[];
|
|
39
45
|
location?: ILocation;
|
|
40
46
|
}
|
|
41
47
|
/**
|
|
42
|
-
*
|
|
48
|
+
* use reservation action
|
|
43
49
|
*/
|
|
44
50
|
export type IAction = UseActionFactory.IAction<IAttributes>;
|
|
@@ -5,6 +5,6 @@ export type IResult = any;
|
|
|
5
5
|
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult>, 'typeOf' | 'result' | 'project' | 'object' | 'location' | 'error' | 'instrument' | 'agent'> {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* use action
|
|
9
9
|
*/
|
|
10
10
|
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -3,7 +3,20 @@ import { ActionType } from '../../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
4
|
import { IOrder } from '../../order';
|
|
5
5
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
6
|
-
export type
|
|
6
|
+
export type IRecipientAsWebApplicationDeprecated = Pick<ActionFactory.IRecipientAsAnonymousWebApplication, 'id' | 'name' | 'typeOf'> & {
|
|
7
|
+
url?: string;
|
|
8
|
+
};
|
|
9
|
+
export type IRecipientAsSellerDeprecated = Pick<ActionFactory.IParticipantAsSeller, 'id' | 'name' | 'typeOf'> & {
|
|
10
|
+
url?: string;
|
|
11
|
+
};
|
|
12
|
+
export type IRecipientDeprecated = IRecipientAsWebApplicationDeprecated | IRecipientAsSellerDeprecated;
|
|
13
|
+
/**
|
|
14
|
+
* redefine informAction.recipient(2025-02-15~)
|
|
15
|
+
*/
|
|
16
|
+
export type IRecipient = Pick<ActionFactory.IParticipantAsWebApplication, 'name' | 'typeOf'> & {
|
|
17
|
+
id?: never;
|
|
18
|
+
url?: never;
|
|
19
|
+
};
|
|
7
20
|
export type IObject = any;
|
|
8
21
|
export interface IPayTransactionAsPurpose {
|
|
9
22
|
id: string;
|
|
@@ -20,9 +33,9 @@ export interface IResult {
|
|
|
20
33
|
statusCode?: number;
|
|
21
34
|
useFetchAPI?: boolean;
|
|
22
35
|
}
|
|
23
|
-
export interface IAttributes<TObject> extends Pick<ActionFactory.IAttributes<ActionType.InformAction, TObject, IResult>, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'result' | 'typeOf'> {
|
|
36
|
+
export interface IAttributes<TObject> extends Pick<ActionFactory.IAttributes<ActionType.InformAction, TObject, IResult>, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'result' | 'typeOf' | 'target'> {
|
|
24
37
|
agent: IAgent;
|
|
25
|
-
recipient: IRecipient;
|
|
38
|
+
recipient: IRecipient | IRecipientDeprecated;
|
|
26
39
|
purpose?: IPurpose;
|
|
27
40
|
about?: IAbout;
|
|
28
41
|
}
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as ActionFactory from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
|
+
import { IOrder } from '../order';
|
|
4
5
|
import { IAvailableReservationStatusType } from '../reservation';
|
|
5
6
|
import { IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
6
7
|
import { IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
@@ -33,12 +34,18 @@ export type IPurpose = IAssetTransactionAsReservePurpose;
|
|
|
33
34
|
export interface IPotentialActions {
|
|
34
35
|
moneyTransfer?: IMoneyTransferActionAttributes[];
|
|
35
36
|
}
|
|
36
|
-
export
|
|
37
|
+
export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
38
|
+
export type IInstrument = IOrderAsInstrument;
|
|
39
|
+
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult>, 'agent' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'typeOf' | 'error' | 'instrument'> {
|
|
37
40
|
agent: IAgent;
|
|
38
41
|
potentialActions?: IPotentialActions;
|
|
39
42
|
purpose: IPurpose;
|
|
43
|
+
/**
|
|
44
|
+
* add(2025-02-17~)
|
|
45
|
+
*/
|
|
46
|
+
instrument?: IInstrument[];
|
|
40
47
|
}
|
|
41
48
|
/**
|
|
42
|
-
*
|
|
49
|
+
* reserve action
|
|
43
50
|
*/
|
|
44
51
|
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -11,13 +11,16 @@ import { IPropertyValue } from '../../propertyValue';
|
|
|
11
11
|
import { IAlterTranResult, IRecipe as IPayCreditCardRecipe } from '../../recipe/payCreditCard';
|
|
12
12
|
import { IRecipe as IPayMovieTicketRecipe, ISeatInfoSyncIn, ISeatInfoSyncResult } from '../../recipe/payMovieTicket';
|
|
13
13
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
14
|
-
import {
|
|
14
|
+
import { IPayTransactionAsPurpose, IRefundTransactionAsPurpose } from '../interact/inform';
|
|
15
15
|
export { IAlterTranResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IPayCreditCardRecipe, IPayMovieTicketRecipe };
|
|
16
16
|
export import IAgent = ActionFactory.IParticipantAsProject;
|
|
17
17
|
export import IRecipient = ActionFactory.IParticipantAsSeller;
|
|
18
18
|
export interface IOrderAsPayPurpose {
|
|
19
19
|
typeOf: OrderType.Order;
|
|
20
20
|
confirmationNumber: string;
|
|
21
|
+
/**
|
|
22
|
+
* required(2025-02-14~)
|
|
23
|
+
*/
|
|
21
24
|
orderNumber?: string;
|
|
22
25
|
}
|
|
23
26
|
export interface IPurposeAsAssetTransaction {
|
|
@@ -26,7 +29,7 @@ export interface IPurposeAsAssetTransaction {
|
|
|
26
29
|
transactionNumber?: string;
|
|
27
30
|
}
|
|
28
31
|
export type IPurposeAsReturnAction = Pick<IReturnOrderActionAttributes, 'object' | 'typeOf'>;
|
|
29
|
-
export type IPurpose = IOrderAsPayPurpose |
|
|
32
|
+
export type IPurpose = IOrderAsPayPurpose | IPurposeAsReturnAction;
|
|
30
33
|
export type AvailablePaymentMethodType = string;
|
|
31
34
|
export interface IPendingTransaction {
|
|
32
35
|
typeOf: AccountFactory.transactionType;
|
|
@@ -92,7 +95,14 @@ export interface IPaymentService {
|
|
|
92
95
|
serviceOutput?: IPaymentServiceOutput;
|
|
93
96
|
}
|
|
94
97
|
export type IObject = [IPaymentService];
|
|
95
|
-
export
|
|
98
|
+
export interface IInformPayment {
|
|
99
|
+
purpose: IPayTransactionAsPurpose | IRefundTransactionAsPurpose;
|
|
100
|
+
recipient: Pick<ActionFactory.IParticipantAsSeller, 'id' | 'name' | 'typeOf'>;
|
|
101
|
+
/**
|
|
102
|
+
* potentialAction id
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
}
|
|
96
106
|
export interface IPotentialActions {
|
|
97
107
|
add2report: boolean;
|
|
98
108
|
informPayment?: IInformPayment[];
|
|
@@ -3,7 +3,7 @@ import { ActionType } from '../../actionType';
|
|
|
3
3
|
import { IAlterTranResult, IRecipe as IRefundCreditCardRecipe } from '../../recipe/refundCreditCard';
|
|
4
4
|
import { IRecipe as IRefundMovieTicketRecipe, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult } from '../../recipe/refundMovieTicket';
|
|
5
5
|
import { TransactionType } from '../../transactionType';
|
|
6
|
-
import {
|
|
6
|
+
import { IRefundTransactionAsPurpose } from '../interact/inform';
|
|
7
7
|
import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsAssetTransaction, IPurposeAsReturnAction } from './pay';
|
|
8
8
|
export { IAlterTranResult, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IRefundCreditCardRecipe, IRefundMovieTicketRecipe };
|
|
9
9
|
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
@@ -29,7 +29,14 @@ export interface IResult {
|
|
|
29
29
|
transactionNumber: string;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export interface IInformPayment {
|
|
33
|
+
purpose: IRefundTransactionAsPurpose;
|
|
34
|
+
recipient: Pick<ActionFactory.IParticipantAsSeller, 'id' | 'name' | 'typeOf'>;
|
|
35
|
+
/**
|
|
36
|
+
* potentialAction id
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
33
40
|
export interface IPotentialActions {
|
|
34
41
|
add2report: boolean;
|
|
35
42
|
informPayment?: IInformPayment[];
|
package/lib/action.d.ts
CHANGED
|
@@ -3,14 +3,18 @@ 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';
|
|
6
7
|
import { OrganizationType } from './organizationType';
|
|
7
8
|
import { IPersonAttributes } from './person';
|
|
8
9
|
import { IProject } from './project';
|
|
9
10
|
import { SortType } from './sortType';
|
|
10
11
|
export interface IParticipantOptionalAttributes {
|
|
11
12
|
name?: string;
|
|
12
|
-
url?: string;
|
|
13
13
|
}
|
|
14
|
+
export type IRecipientAsAnonymousWebApplication = IParticipantOptionalAttributes & {
|
|
15
|
+
typeOf: CreativeWorkType.WebApplication;
|
|
16
|
+
id?: never;
|
|
17
|
+
};
|
|
14
18
|
export type IParticipantAsWebApplication = IParticipantOptionalAttributes & {
|
|
15
19
|
typeOf: CreativeWorkType.WebApplication;
|
|
16
20
|
id: string;
|
|
@@ -47,6 +51,7 @@ export interface IPurpose {
|
|
|
47
51
|
typeOf: string;
|
|
48
52
|
id?: string;
|
|
49
53
|
}
|
|
54
|
+
export type IRecipient = IParticipant | IRecipientAsAnonymousWebApplication;
|
|
50
55
|
export interface ISameAs {
|
|
51
56
|
/**
|
|
52
57
|
* タスクID or 資産取引ID
|
|
@@ -70,7 +75,7 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
|
70
75
|
object: TObject;
|
|
71
76
|
potentialActions?: any;
|
|
72
77
|
purpose?: IPurpose;
|
|
73
|
-
recipient?:
|
|
78
|
+
recipient?: IRecipient;
|
|
74
79
|
result?: TResult;
|
|
75
80
|
sameAs?: ISameAs;
|
|
76
81
|
/**
|
|
@@ -84,6 +89,7 @@ export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
|
84
89
|
targetCollection?: any;
|
|
85
90
|
cancelAction?: any;
|
|
86
91
|
about?: any;
|
|
92
|
+
target?: IEntryPoint;
|
|
87
93
|
}
|
|
88
94
|
/**
|
|
89
95
|
* アクション動的属性
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAttributes as ICancelReservationActionAttributes } from '../action/cancel/reservation';
|
|
1
|
+
import { IAttributes as ICancelReservationActionAttributes, IInstrument } from '../action/cancel/reservation';
|
|
2
2
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
3
3
|
import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
@@ -11,7 +11,12 @@ export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<Ass
|
|
|
11
11
|
/**
|
|
12
12
|
* 取引開始パラメータ
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObject> {
|
|
15
|
+
/**
|
|
16
|
+
* add(2025-02-17~)
|
|
17
|
+
*/
|
|
18
|
+
instrument?: IInstrument[];
|
|
19
|
+
}
|
|
15
20
|
export interface IResult {
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction,
|
|
1
|
+
import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
2
2
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IExtendId } from '../autoGenerated';
|
|
5
5
|
import { IMonetaryAmount } from '../monetaryAmount';
|
|
6
6
|
import { ITotalPaymentDue } from '../order';
|
|
7
7
|
import { ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
|
|
8
|
-
import { IOnPaymentStatusChanged } from '../product';
|
|
9
8
|
import { IPropertyValue } from '../propertyValue';
|
|
10
|
-
import { PaymentServiceType } from '../service/paymentService';
|
|
11
|
-
export import IAgent = AssetTransactionFactory.
|
|
9
|
+
import { IPotentialAction as IPotentialInformAction, PaymentServiceType } from '../service/paymentService';
|
|
10
|
+
export import IAgent = AssetTransactionFactory.IAgentAsSeller;
|
|
12
11
|
export type IRecipient = IPayRecipient;
|
|
13
12
|
/**
|
|
14
13
|
* ペイメントカードトークン
|
|
@@ -88,7 +87,6 @@ export interface IObject {
|
|
|
88
87
|
*/
|
|
89
88
|
id: string;
|
|
90
89
|
paymentMethod: IPaymentMethod;
|
|
91
|
-
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
92
90
|
pendingTransaction?: IPendingTransaction;
|
|
93
91
|
accountsReceivablesByServiceType?: never;
|
|
94
92
|
/**
|
|
@@ -108,14 +106,21 @@ export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
|
|
|
108
106
|
export interface IObjectWithoutDetail extends Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'> {
|
|
109
107
|
paymentMethod: IPaymentMethodWithoutDetail;
|
|
110
108
|
}
|
|
109
|
+
export type IPotentialAction = IPotentialInformAction;
|
|
110
|
+
export type IOrderAsPurpose = IOrderAsPayPurpose;
|
|
111
|
+
export type IPurpose = IOrderAsPurpose;
|
|
111
112
|
export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
|
|
112
113
|
location?: ILocation;
|
|
113
114
|
recipient: IRecipient;
|
|
114
|
-
|
|
115
|
+
/**
|
|
116
|
+
* required(2025-02-12~)
|
|
117
|
+
*/
|
|
118
|
+
purpose: IPurpose;
|
|
115
119
|
};
|
|
116
120
|
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
|
|
117
121
|
location?: ILocation;
|
|
118
122
|
recipient: IRecipient;
|
|
123
|
+
potentialAction?: IPotentialAction[];
|
|
119
124
|
}
|
|
120
125
|
export interface IOptimizedPayAction4order {
|
|
121
126
|
object: {
|
|
@@ -159,6 +164,7 @@ export interface IConfirmParams {
|
|
|
159
164
|
export type IResult = any;
|
|
160
165
|
export type IError = any;
|
|
161
166
|
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
167
|
+
potentialAction?: IPotentialAction[];
|
|
162
168
|
}
|
|
163
169
|
export type ITransaction = IExtendId<IAttributes>;
|
|
164
170
|
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
|
|
@@ -3,9 +3,8 @@ import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient
|
|
|
3
3
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
export import IAgent = AssetTransactionFactory.IAgent;
|
|
6
|
+
import { IPotentialAction as IPotentialInformAction, PaymentServiceType } from '../service/paymentService';
|
|
7
|
+
export import IAgent = AssetTransactionFactory.IAgentAsSeller;
|
|
9
8
|
export type IRecipient = IRefundRecipient;
|
|
10
9
|
/**
|
|
11
10
|
* 取引対象物
|
|
@@ -18,13 +17,14 @@ export interface IObject {
|
|
|
18
17
|
* 発行決済サービスID
|
|
19
18
|
*/
|
|
20
19
|
id: string;
|
|
21
|
-
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
22
20
|
paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
|
|
23
21
|
refundFee?: number;
|
|
24
22
|
}
|
|
25
23
|
export type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod' | 'refundFee'>;
|
|
24
|
+
export type IPotentialAction = IPotentialInformAction;
|
|
26
25
|
export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
|
|
27
26
|
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
|
|
27
|
+
potentialAction?: IPotentialAction[];
|
|
28
28
|
}
|
|
29
29
|
export type IRefundPurpose = IPurposeAsReturnAction;
|
|
30
30
|
export interface IPotentialActionsParams {
|
|
@@ -55,6 +55,7 @@ export type ITransaction = IExtendId<IAttributes>;
|
|
|
55
55
|
* 返金取引
|
|
56
56
|
*/
|
|
57
57
|
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
58
|
+
potentialAction?: IPotentialAction[];
|
|
58
59
|
}
|
|
59
60
|
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
|
|
60
61
|
object?: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IInstrument, IOrderAsInstrument } from '../action/reserve';
|
|
1
2
|
import { IPointAward } from '../action/transfer/moneyTransfer';
|
|
2
3
|
import { ActionType } from '../actionType';
|
|
3
4
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
@@ -16,11 +17,17 @@ import { ReservationType } from '../reservationType';
|
|
|
16
17
|
import { PaymentServiceType } from '../service/paymentService';
|
|
17
18
|
import { IUnitPriceOffer } from '../unitPriceOffer';
|
|
18
19
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
20
|
+
export { IInstrument, IOrderAsInstrument };
|
|
19
21
|
export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
|
|
20
22
|
/**
|
|
21
23
|
* 取引開始パラメータ
|
|
22
24
|
*/
|
|
23
|
-
export
|
|
25
|
+
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject> {
|
|
26
|
+
/**
|
|
27
|
+
* add(2025-02-17~)
|
|
28
|
+
*/
|
|
29
|
+
instrument?: IInstrument[];
|
|
30
|
+
}
|
|
24
31
|
export interface IPermitIssuedThroughFaceToFace {
|
|
25
32
|
/**
|
|
26
33
|
* メンバーシップコード
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CertificationStatusEnumeration = void 0;
|
|
4
|
+
var CertificationStatusEnumeration;
|
|
5
|
+
(function (CertificationStatusEnumeration) {
|
|
6
|
+
CertificationStatusEnumeration["CertificationActive"] = "CertificationActive";
|
|
7
|
+
CertificationStatusEnumeration["CertificationInactive"] = "CertificationInactive";
|
|
8
|
+
})(CertificationStatusEnumeration = exports.CertificationStatusEnumeration || (exports.CertificationStatusEnumeration = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as CreativeWorkFactory from '
|
|
2
|
-
import { CreativeWorkType } from '
|
|
3
|
-
import { OrganizationType } from '
|
|
4
|
-
import { IProject } from '
|
|
5
|
-
import { SortType } from '
|
|
1
|
+
import * as CreativeWorkFactory from '../../creativeWork';
|
|
2
|
+
import { CreativeWorkType } from '../../creativeWorkType';
|
|
3
|
+
import { OrganizationType } from '../../organizationType';
|
|
4
|
+
import { IProject } from '../../project';
|
|
5
|
+
import { SortType } from '../../sortType';
|
|
6
6
|
export interface ISubjectAsWebApplication {
|
|
7
7
|
id: string;
|
|
8
8
|
typeOf: CreativeWorkType.WebApplication;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CertificationStatusEnumeration } from '../../certificationStatusEnumeration';
|
|
2
|
+
import * as CreativeWorkFactory from '../../creativeWork';
|
|
3
|
+
import { CreativeWorkType } from '../../creativeWorkType';
|
|
4
|
+
import { IProject } from '../../project';
|
|
5
|
+
import { SortType } from '../../sortType';
|
|
6
|
+
export interface ISubjectAsWebSite {
|
|
7
|
+
identifier: string;
|
|
8
|
+
typeOf: CreativeWorkType.WebSite;
|
|
9
|
+
}
|
|
10
|
+
export type IAbout = ISubjectAsWebSite;
|
|
11
|
+
export interface ICertification extends Pick<CreativeWorkFactory.ICreativeWork, 'id' | 'typeOf'> {
|
|
12
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
13
|
+
/**
|
|
14
|
+
* subject
|
|
15
|
+
*/
|
|
16
|
+
about: IAbout;
|
|
17
|
+
auditDate?: Date;
|
|
18
|
+
certificationIdentification: string;
|
|
19
|
+
certificationStatus: CertificationStatusEnumeration;
|
|
20
|
+
datePublished: Date;
|
|
21
|
+
dateModified?: Date;
|
|
22
|
+
typeOf: CreativeWorkType.Certification;
|
|
23
|
+
}
|
|
24
|
+
export interface ISortOrder {
|
|
25
|
+
'about.identifier'?: SortType;
|
|
26
|
+
}
|
|
27
|
+
export interface ISearchConditions {
|
|
28
|
+
limit?: number;
|
|
29
|
+
page?: number;
|
|
30
|
+
sort?: ISortOrder;
|
|
31
|
+
project?: {
|
|
32
|
+
id?: {
|
|
33
|
+
$eq?: string;
|
|
34
|
+
$in?: string[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
id?: {
|
|
38
|
+
$eq?: string;
|
|
39
|
+
$in?: string[];
|
|
40
|
+
};
|
|
41
|
+
about?: {
|
|
42
|
+
identifier?: {
|
|
43
|
+
$eq?: string;
|
|
44
|
+
$regex?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
package/lib/creativeWorkType.js
CHANGED
|
@@ -13,4 +13,5 @@ var CreativeWorkType;
|
|
|
13
13
|
CreativeWorkType["NoteDigitalDocument"] = "NoteDigitalDocument";
|
|
14
14
|
CreativeWorkType["SoftwareApplication"] = "SoftwareApplication";
|
|
15
15
|
CreativeWorkType["WebApplication"] = "WebApplication";
|
|
16
|
+
CreativeWorkType["WebSite"] = "WebSite";
|
|
16
17
|
})(CreativeWorkType = exports.CreativeWorkType || (exports.CreativeWorkType = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Application } from './encodingFormat';
|
|
2
|
+
export type IHttpMethod = 'POST';
|
|
3
|
+
export interface IEntryPoint {
|
|
4
|
+
typeOf: 'EntryPoint';
|
|
5
|
+
/**
|
|
6
|
+
* The supported encoding type(s) for an EntryPoint request.
|
|
7
|
+
*/
|
|
8
|
+
encodingType: Application.json;
|
|
9
|
+
/**
|
|
10
|
+
* An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint.
|
|
11
|
+
* Values are capitalized strings as used in HTTP.
|
|
12
|
+
*/
|
|
13
|
+
httpMethod: IHttpMethod;
|
|
14
|
+
/**
|
|
15
|
+
* An url template (RFC6570) that will be used to construct the target of the execution of the action.
|
|
16
|
+
*/
|
|
17
|
+
urlTemplate: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OrganizationType } from './organizationType';
|
|
2
|
+
import { IProject } from './project';
|
|
3
|
+
import { SortType } from './sortType';
|
|
4
|
+
export interface IIdentityProvider {
|
|
5
|
+
id: string;
|
|
6
|
+
identifier: string;
|
|
7
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
|
+
typeOf: OrganizationType.Organization;
|
|
9
|
+
}
|
|
10
|
+
export interface ISearchConditions {
|
|
11
|
+
limit?: number;
|
|
12
|
+
page?: number;
|
|
13
|
+
sort?: {
|
|
14
|
+
identifier?: SortType;
|
|
15
|
+
};
|
|
16
|
+
project?: {
|
|
17
|
+
id?: {
|
|
18
|
+
$eq?: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
id?: {
|
|
22
|
+
$eq?: string;
|
|
23
|
+
$in?: string[];
|
|
24
|
+
};
|
|
25
|
+
identifier?: {
|
|
26
|
+
$eq?: string;
|
|
27
|
+
$regex?: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -52,9 +52,11 @@ import * as AdditionalPropertyFactory from './additionalProperty';
|
|
|
52
52
|
import * as AggregationFactory from './aggregation';
|
|
53
53
|
import * as AuthorizationFactory from './authorization';
|
|
54
54
|
import * as CategoryCodeFactory from './categoryCode';
|
|
55
|
+
import { CertificationStatusEnumeration } from './certificationStatusEnumeration';
|
|
55
56
|
import * as ClientUserFactory from './clientUser';
|
|
56
57
|
import * as CreativeWorkFactory from './creativeWork';
|
|
57
|
-
import * as
|
|
58
|
+
import * as webApplicationCertification from './creativeWork/certification/webApplication';
|
|
59
|
+
import * as webSiteCertification from './creativeWork/certification/webSite';
|
|
58
60
|
import * as CommentFactory from './creativeWork/comment';
|
|
59
61
|
import * as EmailMessageFactory from './creativeWork/message/email';
|
|
60
62
|
import * as MovieFactory from './creativeWork/movie';
|
|
@@ -64,12 +66,14 @@ import * as WebApplicationFactory from './creativeWork/softwareApplication/webAp
|
|
|
64
66
|
import { CreativeWorkType } from './creativeWorkType';
|
|
65
67
|
import * as CustomerFactory from './customer';
|
|
66
68
|
import * as EncodingFormat from './encodingFormat';
|
|
69
|
+
import * as entryPoint from './entryPoint';
|
|
67
70
|
import * as AnyEventFactory from './event/anyEvent';
|
|
68
71
|
import * as ScreeningEventFactory from './event/screeningEvent';
|
|
69
72
|
import * as ScreeningEventSeriesFactory from './event/screeningEventSeries';
|
|
70
73
|
import { EventStatusType } from './eventStatusType';
|
|
71
74
|
import { EventType } from './eventType';
|
|
72
75
|
import * as IAMFactory from './iam';
|
|
76
|
+
import * as IdentityProviderFactory from './identityProvider';
|
|
73
77
|
import * as InvoiceFactory from './invoice';
|
|
74
78
|
import { ItemAvailability } from './itemAvailability';
|
|
75
79
|
import * as LanguageFactory from './language';
|
|
@@ -99,6 +103,7 @@ import * as ScreeningRoomPlaceFactory from './place/screeningRoom';
|
|
|
99
103
|
import * as ScreeningRoomSectionPlaceFactory from './place/screeningRoomSection';
|
|
100
104
|
import * as SeatPlaceFactory from './place/seat';
|
|
101
105
|
import { PlaceType } from './placeType';
|
|
106
|
+
import * as potentialAction from './potentialAction';
|
|
102
107
|
import { PriceCurrency } from './priceCurrency';
|
|
103
108
|
import * as PriceSpecificationFactory from './priceSpecification';
|
|
104
109
|
import * as CategoryCodeChargeSpecificationFactory from './priceSpecification/categoryCodeChargeSpecification';
|
|
@@ -223,6 +228,7 @@ export declare namespace action {
|
|
|
223
228
|
export import IParticipantAsCustomer = ActionFactory.IParticipantAsCustomer;
|
|
224
229
|
export import IParticipant = ActionFactory.IParticipant;
|
|
225
230
|
export import IPurpose = ActionFactory.IPurpose;
|
|
231
|
+
export import IRecipient = ActionFactory.IRecipient;
|
|
226
232
|
export import ISortOrder = ActionFactory.ISortOrder;
|
|
227
233
|
export import ISearchConditions = ActionFactory.ISearchConditions;
|
|
228
234
|
export import ISameAs = ActionFactory.ISameAs;
|
|
@@ -319,10 +325,14 @@ export import aggregation = AggregationFactory;
|
|
|
319
325
|
export import aggregateOffer = AggregateOfferFactory;
|
|
320
326
|
export import authorization = AuthorizationFactory;
|
|
321
327
|
export import categoryCode = CategoryCodeFactory;
|
|
328
|
+
export { CertificationStatusEnumeration };
|
|
322
329
|
export import clientUser = ClientUserFactory;
|
|
323
330
|
export declare namespace creativeWork {
|
|
324
331
|
export import ICreativeWork = CreativeWorkFactory.ICreativeWork;
|
|
325
|
-
|
|
332
|
+
namespace certification {
|
|
333
|
+
export import webApplication = webApplicationCertification;
|
|
334
|
+
export import webSite = webSiteCertification;
|
|
335
|
+
}
|
|
326
336
|
export import comment = CommentFactory;
|
|
327
337
|
namespace message {
|
|
328
338
|
export import email = EmailMessageFactory;
|
|
@@ -347,9 +357,11 @@ export declare namespace event {
|
|
|
347
357
|
export import screeningEventSeries = ScreeningEventSeriesFactory;
|
|
348
358
|
}
|
|
349
359
|
export import encodingFormat = EncodingFormat;
|
|
360
|
+
export { entryPoint };
|
|
350
361
|
export import eventStatusType = EventStatusType;
|
|
351
362
|
export import eventType = EventType;
|
|
352
363
|
export import iam = IAMFactory;
|
|
364
|
+
export import identityProvider = IdentityProviderFactory;
|
|
353
365
|
export import invoice = InvoiceFactory;
|
|
354
366
|
export import itemAvailability = ItemAvailability;
|
|
355
367
|
export import language = LanguageFactory;
|
|
@@ -392,6 +404,7 @@ export declare namespace place {
|
|
|
392
404
|
export import seat = SeatPlaceFactory;
|
|
393
405
|
}
|
|
394
406
|
export import placeType = PlaceType;
|
|
407
|
+
export { potentialAction };
|
|
395
408
|
export declare namespace priceSpecification {
|
|
396
409
|
export import IAccounting = PriceSpecificationFactory.IAccounting;
|
|
397
410
|
export import IEligibleQuantity = PriceSpecificationFactory.IEligibleQuantity;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = void 0;
|
|
3
|
+
exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -51,8 +51,11 @@ var AdditionalPropertyFactory = require("./additionalProperty");
|
|
|
51
51
|
var AggregationFactory = require("./aggregation");
|
|
52
52
|
var AuthorizationFactory = require("./authorization");
|
|
53
53
|
var CategoryCodeFactory = require("./categoryCode");
|
|
54
|
+
var certificationStatusEnumeration_1 = require("./certificationStatusEnumeration");
|
|
55
|
+
Object.defineProperty(exports, "CertificationStatusEnumeration", { enumerable: true, get: function () { return certificationStatusEnumeration_1.CertificationStatusEnumeration; } });
|
|
54
56
|
var ClientUserFactory = require("./clientUser");
|
|
55
|
-
var
|
|
57
|
+
var webApplicationCertification = require("./creativeWork/certification/webApplication");
|
|
58
|
+
var webSiteCertification = require("./creativeWork/certification/webSite");
|
|
56
59
|
var CommentFactory = require("./creativeWork/comment");
|
|
57
60
|
var EmailMessageFactory = require("./creativeWork/message/email");
|
|
58
61
|
var MovieFactory = require("./creativeWork/movie");
|
|
@@ -61,12 +64,15 @@ var WebApplicationFactory = require("./creativeWork/softwareApplication/webAppli
|
|
|
61
64
|
var creativeWorkType_1 = require("./creativeWorkType");
|
|
62
65
|
var CustomerFactory = require("./customer");
|
|
63
66
|
var EncodingFormat = require("./encodingFormat");
|
|
67
|
+
var entryPoint = require("./entryPoint");
|
|
68
|
+
exports.entryPoint = entryPoint;
|
|
64
69
|
var AnyEventFactory = require("./event/anyEvent");
|
|
65
70
|
var ScreeningEventFactory = require("./event/screeningEvent");
|
|
66
71
|
var ScreeningEventSeriesFactory = require("./event/screeningEventSeries");
|
|
67
72
|
var eventStatusType_1 = require("./eventStatusType");
|
|
68
73
|
var eventType_1 = require("./eventType");
|
|
69
74
|
var IAMFactory = require("./iam");
|
|
75
|
+
var IdentityProviderFactory = require("./identityProvider");
|
|
70
76
|
var InvoiceFactory = require("./invoice");
|
|
71
77
|
var itemAvailability_1 = require("./itemAvailability");
|
|
72
78
|
var LanguageFactory = require("./language");
|
|
@@ -94,6 +100,8 @@ var ScreeningRoomPlaceFactory = require("./place/screeningRoom");
|
|
|
94
100
|
var ScreeningRoomSectionPlaceFactory = require("./place/screeningRoomSection");
|
|
95
101
|
var SeatPlaceFactory = require("./place/seat");
|
|
96
102
|
var placeType_1 = require("./placeType");
|
|
103
|
+
var potentialAction = require("./potentialAction");
|
|
104
|
+
exports.potentialAction = potentialAction;
|
|
97
105
|
var priceCurrency_1 = require("./priceCurrency");
|
|
98
106
|
var UnitPriceSpecificationFactory = require("./priceSpecification/unitPriceSpecification");
|
|
99
107
|
var priceSpecificationType_1 = require("./priceSpecificationType");
|
|
@@ -306,7 +314,11 @@ exports.categoryCode = CategoryCodeFactory;
|
|
|
306
314
|
exports.clientUser = ClientUserFactory;
|
|
307
315
|
var creativeWork;
|
|
308
316
|
(function (creativeWork) {
|
|
309
|
-
|
|
317
|
+
var certification;
|
|
318
|
+
(function (certification) {
|
|
319
|
+
certification.webApplication = webApplicationCertification;
|
|
320
|
+
certification.webSite = webSiteCertification;
|
|
321
|
+
})(certification = creativeWork.certification || (creativeWork.certification = {}));
|
|
310
322
|
creativeWork.comment = CommentFactory;
|
|
311
323
|
var message;
|
|
312
324
|
(function (message) {
|
|
@@ -332,6 +344,7 @@ exports.encodingFormat = EncodingFormat;
|
|
|
332
344
|
exports.eventStatusType = eventStatusType_1.EventStatusType;
|
|
333
345
|
exports.eventType = eventType_1.EventType;
|
|
334
346
|
exports.iam = IAMFactory;
|
|
347
|
+
exports.identityProvider = IdentityProviderFactory;
|
|
335
348
|
exports.invoice = InvoiceFactory;
|
|
336
349
|
exports.itemAvailability = itemAvailability_1.ItemAvailability;
|
|
337
350
|
exports.language = LanguageFactory;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IRecipient } from './action/interact/inform';
|
|
2
|
+
import { ActionType } from './actionType';
|
|
3
|
+
import { IEntryPoint } from './entryPoint';
|
|
4
|
+
import { IProject } from './project';
|
|
5
|
+
import { SortType } from './sortType';
|
|
6
|
+
export type IHttpMethod = 'POST';
|
|
7
|
+
export { IEntryPoint };
|
|
8
|
+
export type IInformRecipient = Pick<IRecipient, 'name' | 'typeOf'>;
|
|
9
|
+
export interface IPotentialInformAction {
|
|
10
|
+
id: string;
|
|
11
|
+
identifier: string;
|
|
12
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
13
|
+
/**
|
|
14
|
+
* define recipient(2025-02-14~)
|
|
15
|
+
*/
|
|
16
|
+
recipient?: IInformRecipient;
|
|
17
|
+
target: IEntryPoint;
|
|
18
|
+
typeOf: ActionType.InformAction;
|
|
19
|
+
}
|
|
20
|
+
export type IPotentialAction = IPotentialInformAction;
|
|
21
|
+
export interface ISortOrder {
|
|
22
|
+
identifier?: SortType;
|
|
23
|
+
}
|
|
24
|
+
export interface ISearchConditions {
|
|
25
|
+
limit?: number;
|
|
26
|
+
page?: number;
|
|
27
|
+
sort?: ISortOrder;
|
|
28
|
+
project?: {
|
|
29
|
+
id?: {
|
|
30
|
+
$eq?: string;
|
|
31
|
+
$in?: string[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
id?: {
|
|
35
|
+
$eq?: string;
|
|
36
|
+
};
|
|
37
|
+
target?: {
|
|
38
|
+
urlTemplate?: {
|
|
39
|
+
$eq?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
typeOf?: {
|
|
43
|
+
$eq?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
package/lib/product.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { IAppliesToCategoryCode, IPriceSpecification as ICategoryCodeChargeSpeci
|
|
|
7
7
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
8
8
|
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
9
9
|
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
10
|
-
import {
|
|
10
|
+
import { IProject } from './project';
|
|
11
11
|
import { IPropertyValue } from './propertyValue';
|
|
12
12
|
import { SortType } from './sortType';
|
|
13
13
|
import { IThing } from './thing';
|
|
@@ -66,14 +66,20 @@ export interface ICredentials {
|
|
|
66
66
|
clientId?: string;
|
|
67
67
|
clientSecret?: string;
|
|
68
68
|
}
|
|
69
|
+
export interface IInformPayment {
|
|
70
|
+
recipient?: {
|
|
71
|
+
id?: never;
|
|
72
|
+
name?: never;
|
|
73
|
+
url?: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
69
76
|
export interface IOnPaymentStatusChanged {
|
|
70
|
-
informPayment?:
|
|
77
|
+
informPayment?: IInformPayment[];
|
|
71
78
|
}
|
|
72
79
|
export interface IAvailableChannel {
|
|
73
80
|
typeOf: 'ServiceChannel';
|
|
74
81
|
serviceUrl?: string;
|
|
75
82
|
credentials?: ICredentials;
|
|
76
|
-
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
77
83
|
}
|
|
78
84
|
export type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
79
85
|
export type IOffer = Pick<IBaseOffer, 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
|
|
@@ -117,6 +123,7 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
|
|
|
117
123
|
*/
|
|
118
124
|
serviceType?: IServiceType;
|
|
119
125
|
additionalProperty?: IPropertyValue<string>[];
|
|
126
|
+
potentialAction?: never;
|
|
120
127
|
}
|
|
121
128
|
export interface IHasOfferCatalogOnCreate {
|
|
122
129
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IInvoice } from '../invoice';
|
|
2
2
|
import { IMultilingualString } from '../multilingualString';
|
|
3
3
|
import { IPermit } from '../permit';
|
|
4
|
+
import { IPotentialInformAction as IPotentialInformActionTemplate } from '../potentialAction';
|
|
4
5
|
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
5
6
|
import { IProject } from '../project';
|
|
6
7
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -65,15 +66,9 @@ export interface IProvider extends Pick<ISeller, 'typeOf'> {
|
|
|
65
66
|
*/
|
|
66
67
|
credentials?: IProviderCredentials;
|
|
67
68
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export interface ICredentials {
|
|
72
|
-
siteId?: string;
|
|
73
|
-
sitePass?: string;
|
|
74
|
-
}
|
|
75
|
-
export type IAvailableChannel = Pick<IProductAvailableChannel, 'onPaymentStatusChanged' | 'serviceUrl' | 'typeOf'> & {
|
|
76
|
-
credentials?: ICredentials;
|
|
69
|
+
export type IAvailableChannel = Pick<IProductAvailableChannel, 'typeOf'> & {
|
|
70
|
+
serviceUrl: string;
|
|
71
|
+
credentials?: never;
|
|
77
72
|
totalPaymentDue?: {
|
|
78
73
|
maxValue?: number;
|
|
79
74
|
};
|
|
@@ -112,6 +107,8 @@ export type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
|
|
|
112
107
|
};
|
|
113
108
|
};
|
|
114
109
|
export type IServiceOutput = (IInvoiceAsServiceOutput | IPermitAsServiceOutput)[];
|
|
110
|
+
export type IPotentialInformAction = Pick<IPotentialInformActionTemplate, 'id' | 'typeOf'>;
|
|
111
|
+
export type IPotentialAction = IPotentialInformAction;
|
|
115
112
|
/**
|
|
116
113
|
* 決済サービス
|
|
117
114
|
* {@link https://schema.org/Service}
|
|
@@ -139,6 +136,7 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
139
136
|
*/
|
|
140
137
|
serviceType: IServiceType;
|
|
141
138
|
additionalProperty?: IPropertyValue<string>[];
|
|
139
|
+
potentialAction?: IPotentialAction[];
|
|
142
140
|
}
|
|
143
141
|
export interface ISortOrder {
|
|
144
142
|
productID?: SortType;
|
|
@@ -152,6 +150,11 @@ export interface ISearchConditions {
|
|
|
152
150
|
$eq?: string;
|
|
153
151
|
};
|
|
154
152
|
};
|
|
153
|
+
availableChannel?: {
|
|
154
|
+
serviceUrl?: {
|
|
155
|
+
$eq?: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
155
158
|
id?: {
|
|
156
159
|
$eq?: string;
|
|
157
160
|
$in?: string[];
|
package/lib/serviceChannel.d.ts
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
import { IProject } from './project';
|
|
2
2
|
import { PaymentServiceType } from './service/paymentService';
|
|
3
|
+
import { SortType } from './sortType';
|
|
4
|
+
export interface ICredentialsCreditCard {
|
|
5
|
+
siteId: string;
|
|
6
|
+
sitePass: string;
|
|
7
|
+
}
|
|
3
8
|
export interface ICredentialsMovieTicket {
|
|
4
9
|
authorizeServerDomain: string;
|
|
5
10
|
clientId: string;
|
|
6
11
|
clientSecret: string;
|
|
7
12
|
useSeatInfoSyncCancel?: boolean;
|
|
8
13
|
}
|
|
14
|
+
export interface IServiceChannelCreditCard {
|
|
15
|
+
credentials: ICredentialsCreditCard;
|
|
16
|
+
id?: string;
|
|
17
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
18
|
+
providesService: {
|
|
19
|
+
typeOf: PaymentServiceType.CreditCard;
|
|
20
|
+
};
|
|
21
|
+
serviceUrl: string;
|
|
22
|
+
typeOf: 'ServiceChannel';
|
|
23
|
+
}
|
|
9
24
|
export interface IServiceChannelMovieTicket {
|
|
10
25
|
credentials: ICredentialsMovieTicket;
|
|
11
26
|
id?: string;
|
|
@@ -16,4 +31,32 @@ export interface IServiceChannelMovieTicket {
|
|
|
16
31
|
serviceUrl: string;
|
|
17
32
|
typeOf: 'ServiceChannel';
|
|
18
33
|
}
|
|
19
|
-
export type IServiceChannel = IServiceChannelMovieTicket;
|
|
34
|
+
export type IServiceChannel = IServiceChannelCreditCard | IServiceChannelMovieTicket;
|
|
35
|
+
export interface ISortOrder {
|
|
36
|
+
serviceUrl?: SortType;
|
|
37
|
+
}
|
|
38
|
+
export interface ISearchConditions {
|
|
39
|
+
limit?: number;
|
|
40
|
+
page?: number;
|
|
41
|
+
sort?: ISortOrder;
|
|
42
|
+
project?: {
|
|
43
|
+
id?: {
|
|
44
|
+
$eq?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
id?: {
|
|
48
|
+
$eq?: string;
|
|
49
|
+
};
|
|
50
|
+
serviceUrl?: {
|
|
51
|
+
$eq?: string;
|
|
52
|
+
$regex?: string;
|
|
53
|
+
};
|
|
54
|
+
providesService?: {
|
|
55
|
+
typeOf?: {
|
|
56
|
+
/**
|
|
57
|
+
* PaymentServiceType
|
|
58
|
+
*/
|
|
59
|
+
$eq?: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -1,19 +1,54 @@
|
|
|
1
|
-
import { IAttributes as IInformActionAttributes, IObject } from '../action/interact/inform';
|
|
1
|
+
import { IAttributes as IInformActionAttributes, IObject, IRecipient, IRecipientDeprecated } from '../action/interact/inform';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { IEntryPoint } from '../entryPoint';
|
|
4
|
+
import { IReservation4inform } from '../notification/reservation';
|
|
3
5
|
import * as TaskFactory from '../task';
|
|
4
6
|
import { TaskName } from '../taskName';
|
|
5
|
-
export type
|
|
7
|
+
export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 'typeOf'> & {
|
|
8
|
+
url?: never;
|
|
9
|
+
};
|
|
10
|
+
export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'about'> & {
|
|
6
11
|
/**
|
|
7
12
|
* 通知識別子(2024-10-24~)
|
|
8
13
|
*/
|
|
9
14
|
identifier?: string;
|
|
15
|
+
recipient: IDeprecatedRecipient;
|
|
16
|
+
target: IEntryPoint;
|
|
17
|
+
id?: never;
|
|
18
|
+
typeOf?: never;
|
|
19
|
+
};
|
|
20
|
+
export type IPotentialInformReservationAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'about'> & {
|
|
21
|
+
/**
|
|
22
|
+
* 通知識別子(2024-10-24~)
|
|
23
|
+
*/
|
|
24
|
+
identifier?: string;
|
|
25
|
+
object: IReservation4inform;
|
|
26
|
+
recipient: Pick<IRecipient, 'name' | 'typeOf'> & {
|
|
27
|
+
id?: string;
|
|
28
|
+
};
|
|
29
|
+
target: IEntryPoint;
|
|
30
|
+
id?: never;
|
|
31
|
+
typeOf?: never;
|
|
32
|
+
};
|
|
33
|
+
export type IPotentialInformActionWithId = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'about'> & {
|
|
34
|
+
/**
|
|
35
|
+
* 通知識別子(2024-10-24~)
|
|
36
|
+
*/
|
|
37
|
+
identifier?: string;
|
|
38
|
+
recipient?: Pick<IDeprecatedRecipient, 'id' | 'name' | 'typeOf'>;
|
|
39
|
+
target?: never;
|
|
40
|
+
/**
|
|
41
|
+
* potentialAction id
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
typeOf: IInformActionAttributes<IObject>['typeOf'];
|
|
10
45
|
};
|
|
11
|
-
export type IData = IPotentialInformAction;
|
|
46
|
+
export type IData = IPotentialInformAction | IPotentialInformReservationAction | IPotentialInformActionWithId;
|
|
12
47
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
13
48
|
name: TaskName.TriggerWebhook;
|
|
14
49
|
data: IData;
|
|
15
50
|
}
|
|
16
51
|
/**
|
|
17
|
-
*
|
|
52
|
+
* trigger webhook task
|
|
18
53
|
*/
|
|
19
54
|
export type ITask = IExtendId<IAttributes>;
|
package/package.json
CHANGED
|
File without changes
|