@chevre/factory 4.353.0-alpha.2 → 4.353.0-alpha.4
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/iam.d.ts +25 -7
- package/lib/seller.d.ts +0 -7
- package/lib/transaction/placeOrder.d.ts +4 -0
- package/package.json +1 -1
package/lib/iam.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CreativeWorkType } from './creativeWorkType';
|
|
2
2
|
import { OrganizationType } from './organizationType';
|
|
3
3
|
import { PersonType } from './personType';
|
|
4
|
+
import { IProgramMembership } from './programMembership';
|
|
4
5
|
import { SortType } from './sortType';
|
|
5
6
|
export declare enum RoleType {
|
|
6
7
|
OrganizationRole = "OrganizationRole"
|
|
@@ -32,24 +33,41 @@ export interface IRoleSearchConditions {
|
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
export type IMemberType = PersonType | CreativeWorkType.WebApplication;
|
|
35
|
-
export type
|
|
36
|
+
export type IMemberRole = Pick<IRole, 'typeOf' | 'roleName'>;
|
|
37
|
+
export type IProgramMembershipOfProject = Pick<IProgramMembership, 'typeOf'> & {
|
|
38
|
+
issuer: string;
|
|
39
|
+
secret: string;
|
|
40
|
+
};
|
|
41
|
+
export interface IMemberOfAsProject {
|
|
42
|
+
typeOf: OrganizationType.Project;
|
|
43
|
+
id: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IMemberOfAsSeller {
|
|
46
|
+
typeOf: OrganizationType.Corporation;
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
export type IMemberOf = IMemberOfAsProject | IMemberOfAsSeller;
|
|
50
|
+
export interface IMemberOfWebApplication {
|
|
51
|
+
memberOf?: IProgramMembershipOfProject;
|
|
52
|
+
}
|
|
36
53
|
export interface IMemberOfRole {
|
|
37
54
|
typeOf: IMemberType;
|
|
38
55
|
/**
|
|
39
|
-
* クライアントID
|
|
56
|
+
* クライアントID or Person ID
|
|
40
57
|
*/
|
|
41
58
|
id: string;
|
|
42
59
|
image?: string;
|
|
43
60
|
name?: string;
|
|
44
61
|
username?: string;
|
|
45
|
-
hasRole:
|
|
62
|
+
hasRole: IMemberRole[];
|
|
46
63
|
/**
|
|
47
64
|
* プロジェクトメンバー or 販売者メンバー
|
|
48
65
|
*/
|
|
49
|
-
memberOf:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
66
|
+
memberOf: IMemberOf;
|
|
67
|
+
/**
|
|
68
|
+
* 所属会員
|
|
69
|
+
*/
|
|
70
|
+
member?: IMemberOfWebApplication[];
|
|
53
71
|
}
|
|
54
72
|
export interface IMember {
|
|
55
73
|
typeOf: RoleType;
|
package/lib/seller.d.ts
CHANGED
|
@@ -23,12 +23,6 @@ export interface IPaymentAccepted {
|
|
|
23
23
|
paymentMethodType: string;
|
|
24
24
|
}
|
|
25
25
|
export type IEligibleTransactionDuration = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'typeOf' | 'unitCode'>;
|
|
26
|
-
export interface IEligibleMembership {
|
|
27
|
-
/**
|
|
28
|
-
* メンバーシップトークン検証シークレット(2024-01-31~)
|
|
29
|
-
*/
|
|
30
|
-
secret?: string;
|
|
31
|
-
}
|
|
32
26
|
export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> {
|
|
33
27
|
availableAtOrFrom: IAvailableAtOrFrom[];
|
|
34
28
|
/**
|
|
@@ -39,7 +33,6 @@ export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'
|
|
|
39
33
|
* 適用取引期間
|
|
40
34
|
*/
|
|
41
35
|
eligibleTransactionDuration: IEligibleTransactionDuration;
|
|
42
|
-
eligibleMembership?: IEligibleMembership;
|
|
43
36
|
}
|
|
44
37
|
export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
|
|
45
38
|
project: Pick<IProject, 'id' | 'typeOf'>;
|