@chevre/factory 5.2.0-alpha.10 → 5.2.0-alpha.12
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/reserve.d.ts +8 -1
- package/lib/assetTransaction/reserve.d.ts +2 -16
- package/lib/authorization.d.ts +36 -1
- package/lib/iam.d.ts +10 -0
- package/package.json +1 -1
package/lib/action/reserve.d.ts
CHANGED
|
@@ -37,7 +37,14 @@ export interface IPotentialActions {
|
|
|
37
37
|
}
|
|
38
38
|
export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
39
39
|
export type IPlaceOrderAsInstrument = Pick<IPlaceOrder, 'id' | 'typeOf'>;
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 興行オファーチケット
|
|
42
|
+
*/
|
|
43
|
+
export interface ITicketAsInstrument {
|
|
44
|
+
ticketToken: string;
|
|
45
|
+
typeOf: 'Ticket';
|
|
46
|
+
}
|
|
47
|
+
export type IInstrument = IOrderAsInstrument | IPlaceOrderAsInstrument | ITicketAsInstrument;
|
|
41
48
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult>, 'agent' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'typeOf' | 'error' | 'instrument'> {
|
|
42
49
|
agent: IAgent;
|
|
43
50
|
potentialActions?: IPotentialActions;
|
|
@@ -26,7 +26,7 @@ export interface IStartParams extends AssetTransactionFactory.IStartParams<Asset
|
|
|
26
26
|
/**
|
|
27
27
|
* add(2025-02-17~)
|
|
28
28
|
*/
|
|
29
|
-
instrument
|
|
29
|
+
instrument: IInstrument[];
|
|
30
30
|
}
|
|
31
31
|
export interface IPermitIssuedThroughFaceToFace {
|
|
32
32
|
/**
|
|
@@ -313,21 +313,7 @@ export interface IObjectWithoutDetail {
|
|
|
313
313
|
reservationFor?: {
|
|
314
314
|
id: string;
|
|
315
315
|
offers?: {
|
|
316
|
-
|
|
317
|
-
* メンバープログラムティアトークン
|
|
318
|
-
* メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
|
|
319
|
-
*/
|
|
320
|
-
validForMemberTier?: ITokenizedMemberProgramTier;
|
|
321
|
-
/**
|
|
322
|
-
* support オファートークン
|
|
323
|
-
* 2025-10-21~
|
|
324
|
-
*/
|
|
325
|
-
token?: IOfferToken;
|
|
326
|
-
/**
|
|
327
|
-
* アプリケーションオファーコード
|
|
328
|
-
* オファートークン指定の場合、必須
|
|
329
|
-
*/
|
|
330
|
-
identifier?: string;
|
|
316
|
+
validForMemberTier?: never;
|
|
331
317
|
};
|
|
332
318
|
};
|
|
333
319
|
}
|
package/lib/authorization.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CreativeWorkType } from './creativeWorkType';
|
|
2
2
|
import { IMember, IMemberOfRole } from './iam';
|
|
3
3
|
import { IInvoice } from './invoice';
|
|
4
|
+
import { OfferType } from './offerType';
|
|
4
5
|
import { IOrder } from './order';
|
|
5
6
|
import { OrganizationType } from './organizationType';
|
|
6
7
|
import { IOwnershipInfo, IPermitAsGood, IPermitIssuedThroughAsCreditCard, IPermitIssuedThroughAsFaceToFace, IPermitIssuedThroughAsProduct } from './ownershipInfo';
|
|
@@ -61,7 +62,41 @@ export type IOwnershipInfoAsObject = IPermitOwnershipInfo | IInvoiceOwnershipInf
|
|
|
61
62
|
export type IRoleAsObject = Pick<IMember, 'member' | 'typeOf'> & {
|
|
62
63
|
member: Pick<IMemberOfRole, 'hasRole' | 'id' | 'memberOf' | 'typeOf'>;
|
|
63
64
|
};
|
|
64
|
-
|
|
65
|
+
/**
|
|
66
|
+
* トークン化されたメンバープログラムティア
|
|
67
|
+
*/
|
|
68
|
+
export interface ITokenizedMemberProgramTier {
|
|
69
|
+
/**
|
|
70
|
+
* ティアトークン
|
|
71
|
+
*/
|
|
72
|
+
token: string;
|
|
73
|
+
isTierOf: {
|
|
74
|
+
/**
|
|
75
|
+
* メンバープログラムコード
|
|
76
|
+
*/
|
|
77
|
+
identifier: string;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export type IOfferToken = string;
|
|
81
|
+
export interface IOfferAsObject {
|
|
82
|
+
typeOf: OfferType.Offer;
|
|
83
|
+
/**
|
|
84
|
+
* メンバープログラムティアトークン
|
|
85
|
+
* メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
|
|
86
|
+
*/
|
|
87
|
+
validForMemberTier?: ITokenizedMemberProgramTier;
|
|
88
|
+
/**
|
|
89
|
+
* support オファートークン
|
|
90
|
+
* 2025-10-21~
|
|
91
|
+
*/
|
|
92
|
+
token?: IOfferToken;
|
|
93
|
+
/**
|
|
94
|
+
* アプリケーションオファーコード
|
|
95
|
+
* オファートークン指定の場合、必須
|
|
96
|
+
*/
|
|
97
|
+
identifier?: string;
|
|
98
|
+
}
|
|
99
|
+
export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IRoleAsObject | IOfferAsObject;
|
|
65
100
|
export interface IAudienceAsPlaceOrder {
|
|
66
101
|
/**
|
|
67
102
|
* 取引ID
|
package/lib/iam.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface IMemberOfRole {
|
|
|
21
21
|
* クライアントID or Person ID
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* アプリケーションコード
|
|
26
|
+
*/
|
|
27
|
+
identifier?: string;
|
|
24
28
|
image?: string;
|
|
25
29
|
name?: string;
|
|
26
30
|
username?: string;
|
|
@@ -71,6 +75,12 @@ export interface ISearchConditions {
|
|
|
71
75
|
$eq?: string;
|
|
72
76
|
$in?: string[];
|
|
73
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
* アプリケーションコード
|
|
80
|
+
*/
|
|
81
|
+
identifier?: {
|
|
82
|
+
$eq?: string;
|
|
83
|
+
};
|
|
74
84
|
name?: {
|
|
75
85
|
$regex?: string;
|
|
76
86
|
};
|