@chevre/factory 5.3.0-alpha.0 → 5.3.0-alpha.1
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/authorization.d.ts +22 -9
- package/package.json +1 -1
package/lib/authorization.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IEventOfferToken } from './assetTransaction/reserve';
|
|
2
2
|
import { CreativeWorkType } from './creativeWorkType';
|
|
3
|
-
import { IMember, IMemberOfRole } from './iam';
|
|
4
3
|
import { IInvoice } from './invoice';
|
|
5
4
|
import { OfferType } from './offerType';
|
|
6
5
|
import { IOrder } from './order';
|
|
@@ -13,6 +12,9 @@ import { ReservationType } from './reservationType';
|
|
|
13
12
|
import { PaymentServiceType } from './service/paymentService';
|
|
14
13
|
import { SortType } from './sortType';
|
|
15
14
|
import { TransactionType } from './transactionType';
|
|
15
|
+
/**
|
|
16
|
+
* 発券対象の注文
|
|
17
|
+
*/
|
|
16
18
|
export type IOrderAsObject = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
17
19
|
export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<IPermitIssuedThroughAsProduct, 'id' | 'typeOf'>;
|
|
18
20
|
export type IPermitAsTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
|
|
@@ -51,13 +53,10 @@ export type IPaymentMethodOwnershipInfo = Pick<IOwnershipInfo<IPaymentMethodAsTy
|
|
|
51
53
|
* support(2025-11-12~)
|
|
52
54
|
*/
|
|
53
55
|
export type IFaceToFacePaymentMethodOwnershipInfo = Pick<IOwnershipInfo<IFaceToFacePaymentMethodAsTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
54
|
-
export type IOwnershipInfoAsObject = IPermitOwnershipInfo | IPaymentMethodOwnershipInfo | IFaceToFacePaymentMethodOwnershipInfo;
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
+
* Permit所有権あるいは決済方法所有権
|
|
57
58
|
*/
|
|
58
|
-
export type
|
|
59
|
-
member: Pick<IMemberOfRole, 'hasRole' | 'id' | 'memberOf' | 'typeOf'>;
|
|
60
|
-
};
|
|
59
|
+
export type IOwnershipInfoAsObject = IPermitOwnershipInfo | IPaymentMethodOwnershipInfo | IFaceToFacePaymentMethodOwnershipInfo;
|
|
61
60
|
/**
|
|
62
61
|
* トークン化されたメンバープログラムティア
|
|
63
62
|
*/
|
|
@@ -106,7 +105,7 @@ export interface IOfferAsObject {
|
|
|
106
105
|
*/
|
|
107
106
|
validForMemberTier?: ITokenizedMemberProgramTier;
|
|
108
107
|
}
|
|
109
|
-
export type IObject = IOrderAsObject | IOwnershipInfoAsObject |
|
|
108
|
+
export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IOfferAsObject;
|
|
110
109
|
export interface IAudienceAsPlaceOrder {
|
|
111
110
|
/**
|
|
112
111
|
* 取引ID
|
|
@@ -122,16 +121,24 @@ export interface IAudienceAsApplication {
|
|
|
122
121
|
typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
|
|
123
122
|
}
|
|
124
123
|
export type IAudience = IAudienceAsApplication | IAudienceAsPlaceOrder;
|
|
124
|
+
/**
|
|
125
|
+
* 承認作成者
|
|
126
|
+
* 現時点でSoftwareApplicationは認めない
|
|
127
|
+
*/
|
|
125
128
|
export interface IAuthor {
|
|
126
129
|
id: string;
|
|
127
130
|
typeOf: PersonType.Person | CreativeWorkType.WebApplication;
|
|
128
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* 承認発行組織
|
|
134
|
+
*/
|
|
129
135
|
export interface IIssuedBy {
|
|
130
136
|
id: string;
|
|
131
137
|
typeOf: OrganizationType.Corporation | OrganizationType.Project;
|
|
132
138
|
}
|
|
133
139
|
/**
|
|
134
140
|
* 承認
|
|
141
|
+
* 任意の情報をチケット化するために使用
|
|
135
142
|
*/
|
|
136
143
|
export interface IAuthorization {
|
|
137
144
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
@@ -154,8 +161,14 @@ export interface IAuthorization {
|
|
|
154
161
|
*/
|
|
155
162
|
validUntil: Date;
|
|
156
163
|
audience?: IAudience;
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
/**
|
|
165
|
+
* 承認作成者
|
|
166
|
+
*/
|
|
167
|
+
author: IAuthor;
|
|
168
|
+
/**
|
|
169
|
+
* 承認発行組織
|
|
170
|
+
*/
|
|
171
|
+
issuedBy: IIssuedBy;
|
|
159
172
|
}
|
|
160
173
|
/**
|
|
161
174
|
* ソート条件
|