gdc-common-utils-ts 2.5.6 → 2.5.7
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.
|
@@ -13,12 +13,12 @@ export declare function isOrganizationRegistrationReviewAction(value: unknown):
|
|
|
13
13
|
export declare const OrganizationRegistrationErrors: Readonly<{
|
|
14
14
|
readonly InvalidReviewAction: "invalid_review_action";
|
|
15
15
|
readonly ApplicationNotReviewable: "application_not_reviewable";
|
|
16
|
-
readonly
|
|
16
|
+
readonly AdmissionCredentialRequired: "organization_test_network_credential_required";
|
|
17
17
|
readonly ReviewFailed: "review_failed";
|
|
18
18
|
readonly InvalidOrganization: "invalid_organization";
|
|
19
19
|
readonly ApplicationFailed: "application_failed";
|
|
20
20
|
}>;
|
|
21
|
-
/** Default and accepted
|
|
21
|
+
/** Default and accepted Test Network admission validity window. */
|
|
22
22
|
export declare const OrganizationRegistrationValidity: Readonly<{
|
|
23
23
|
readonly DefaultDays: 180;
|
|
24
24
|
readonly MinimumDays: 1;
|
|
@@ -15,12 +15,12 @@ export function isOrganizationRegistrationReviewAction(value) {
|
|
|
15
15
|
export const OrganizationRegistrationErrors = Object.freeze({
|
|
16
16
|
InvalidReviewAction: 'invalid_review_action',
|
|
17
17
|
ApplicationNotReviewable: 'application_not_reviewable',
|
|
18
|
-
|
|
18
|
+
AdmissionCredentialRequired: 'organization_test_network_credential_required',
|
|
19
19
|
ReviewFailed: 'review_failed',
|
|
20
20
|
InvalidOrganization: 'invalid_organization',
|
|
21
21
|
ApplicationFailed: 'application_failed',
|
|
22
22
|
});
|
|
23
|
-
/** Default and accepted
|
|
23
|
+
/** Default and accepted Test Network admission validity window. */
|
|
24
24
|
export const OrganizationRegistrationValidity = Object.freeze({
|
|
25
25
|
DefaultDays: 180,
|
|
26
26
|
MinimumDays: 1,
|
|
@@ -80,8 +80,8 @@ export type LegalOrganizationVerificationTransactionInput = Readonly<{
|
|
|
80
80
|
*/
|
|
81
81
|
legalRepresentativePayload?: LegalOrganizationVerificationRepresentativePayload;
|
|
82
82
|
verification?: LegalOrganizationVerificationRouting;
|
|
83
|
-
/**
|
|
84
|
-
|
|
83
|
+
/** Reviewer-issued admission credential used only by the Test Network path. */
|
|
84
|
+
organizationTestNetworkCredential?: VerifiableCredentialV2;
|
|
85
85
|
/** Three reviewer-issued domain VCs accepted only with Test Network authorization. */
|
|
86
86
|
testNetworkCredentials?: readonly VerifiableCredentialV2[];
|
|
87
87
|
attachments?: unknown[];
|
|
@@ -105,7 +105,7 @@ export type LegalOrganizationVerificationTransactionEntry = Readonly<{
|
|
|
105
105
|
/** @deprecated Legacy ICA wire alias accepted only while migrating old callers. */
|
|
106
106
|
legalRepresentative?: LegalOrganizationVerificationRepresentativePayload;
|
|
107
107
|
verification?: LegalOrganizationVerificationRouting;
|
|
108
|
-
|
|
108
|
+
organizationTestNetworkCredential?: VerifiableCredentialV2;
|
|
109
109
|
testNetworkCredentials?: readonly VerifiableCredentialV2[];
|
|
110
110
|
[key: string]: unknown;
|
|
111
111
|
};
|
|
@@ -61,8 +61,8 @@ export function buildLegalOrganizationVerificationTransactionBundle(input) {
|
|
|
61
61
|
verification: {
|
|
62
62
|
resourceType: normalizeText(input.verification?.resourceType) || 'contract',
|
|
63
63
|
},
|
|
64
|
-
...(input.
|
|
65
|
-
? {
|
|
64
|
+
...(input.organizationTestNetworkCredential
|
|
65
|
+
? { organizationTestNetworkCredential: input.organizationTestNetworkCredential }
|
|
66
66
|
: {}),
|
|
67
67
|
...(input.testNetworkCredentials?.length
|
|
68
68
|
? { testNetworkCredentials: input.testNetworkCredentials }
|