@trinsic/api 2.0.0 → 2.0.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/.openapi-generator/FILES +2 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +1 -1
- package/dist/apis/WellKnownApi.d.ts +41 -0
- package/dist/apis/WellKnownApi.js +61 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/WellKnownApi.d.ts +41 -0
- package/dist/esm/apis/WellKnownApi.js +57 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AadhaarInput.d.ts +2 -1
- package/dist/esm/models/AadhaarInput.js +4 -1
- package/dist/esm/models/Address.d.ts +2 -1
- package/dist/esm/models/Address.js +4 -1
- package/dist/esm/models/AttachmentAccessKeys.d.ts +2 -1
- package/dist/esm/models/AttachmentAccessKeys.js +4 -1
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +2 -1
- package/dist/esm/models/BangladeshNationalIdInput.js +4 -1
- package/dist/esm/models/BrazilCpfCheckInput.d.ts +2 -1
- package/dist/esm/models/BrazilCpfCheckInput.js +4 -1
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +2 -1
- package/dist/esm/models/BrazilDigitalCnhInput.js +4 -1
- package/dist/esm/models/CancelSessionResponse.d.ts +2 -1
- package/dist/esm/models/CancelSessionResponse.js +4 -1
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +4 -1
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.js +4 -1
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +2 -1
- package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +2 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +4 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +2 -1
- package/dist/esm/models/CreateWidgetSessionRequest.js +4 -1
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +2 -1
- package/dist/esm/models/CreateWidgetSessionResponse.js +4 -1
- package/dist/esm/models/DocumentData.d.ts +2 -1
- package/dist/esm/models/DocumentData.js +4 -1
- package/dist/esm/models/DocumentScanAttachments.d.ts +2 -1
- package/dist/esm/models/DocumentScanAttachments.js +4 -1
- package/dist/esm/models/DocumentType.d.ts +1 -0
- package/dist/esm/models/DocumentType.js +3 -0
- package/dist/esm/models/GetAttachmentRequest.d.ts +2 -1
- package/dist/esm/models/GetAttachmentRequest.js +4 -1
- package/dist/esm/models/GetAttachmentResponse.d.ts +2 -1
- package/dist/esm/models/GetAttachmentResponse.js +4 -1
- package/dist/esm/models/GetSessionResponse.d.ts +2 -1
- package/dist/esm/models/GetSessionResponse.js +4 -1
- package/dist/esm/models/GetSessionResultRequest.d.ts +2 -1
- package/dist/esm/models/GetSessionResultRequest.js +4 -1
- package/dist/esm/models/GetSessionResultResponse.d.ts +2 -1
- package/dist/esm/models/GetSessionResultResponse.js +4 -1
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +2 -1
- package/dist/esm/models/HttpValidationProblemDetails.js +4 -1
- package/dist/esm/models/IdentityData.d.ts +2 -1
- package/dist/esm/models/IdentityData.js +4 -1
- package/dist/esm/models/IdinInput.d.ts +2 -1
- package/dist/esm/models/IdinInput.js +4 -1
- package/dist/esm/models/IndonesiaNikInput.d.ts +2 -1
- package/dist/esm/models/IndonesiaNikInput.js +4 -1
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +3 -0
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/esm/models/IntegrationLaunchMethod.js +3 -0
- package/dist/esm/models/IntegrationStep.d.ts +3 -2
- package/dist/esm/models/IntegrationStep.js +5 -4
- package/dist/esm/models/KenyaNidInput.d.ts +2 -1
- package/dist/esm/models/KenyaNidInput.js +4 -1
- package/dist/esm/models/Language.d.ts +1 -0
- package/dist/esm/models/Language.js +3 -0
- package/dist/esm/models/ListProviderContractsResponse.d.ts +2 -1
- package/dist/esm/models/ListProviderContractsResponse.js +4 -1
- package/dist/esm/models/ListProvidersResponse.d.ts +2 -1
- package/dist/esm/models/ListProvidersResponse.js +4 -1
- package/dist/esm/models/ListSessionsResponse.d.ts +2 -1
- package/dist/esm/models/ListSessionsResponse.js +4 -1
- package/dist/esm/models/MexicoCurpInput.d.ts +2 -1
- package/dist/esm/models/MexicoCurpInput.js +4 -1
- package/dist/esm/models/MobileIdInput.d.ts +2 -1
- package/dist/esm/models/MobileIdInput.js +4 -1
- package/dist/esm/models/NigeriaNinInput.d.ts +2 -1
- package/dist/esm/models/NigeriaNinInput.js +4 -1
- package/dist/esm/models/OrderDirection.d.ts +1 -0
- package/dist/esm/models/OrderDirection.js +3 -0
- package/dist/esm/models/PersonData.d.ts +2 -1
- package/dist/esm/models/PersonData.js +4 -1
- package/dist/esm/models/PhilippineMatchInput.d.ts +2 -1
- package/dist/esm/models/PhilippineMatchInput.js +4 -1
- package/dist/esm/models/PhilippineQRInput.d.ts +2 -1
- package/dist/esm/models/PhilippineQRInput.js +4 -1
- package/dist/esm/models/ProblemDetails.d.ts +2 -1
- package/dist/esm/models/ProblemDetails.js +4 -1
- package/dist/esm/models/ProviderAttachments.d.ts +2 -1
- package/dist/esm/models/ProviderAttachments.js +4 -1
- package/dist/esm/models/ProviderContract.d.ts +10 -1
- package/dist/esm/models/ProviderContract.js +9 -1
- package/dist/esm/models/ProviderHealth.d.ts +25 -0
- package/dist/esm/models/ProviderHealth.js +43 -0
- package/dist/esm/models/ProviderInfo.d.ts +2 -1
- package/dist/esm/models/ProviderInfo.js +4 -1
- package/dist/esm/models/ProviderInformation.d.ts +2 -1
- package/dist/esm/models/ProviderInformation.js +4 -1
- package/dist/esm/models/ProviderInput.d.ts +2 -1
- package/dist/esm/models/ProviderInput.js +4 -1
- package/dist/esm/models/RecommendRequest.d.ts +2 -1
- package/dist/esm/models/RecommendRequest.js +4 -1
- package/dist/esm/models/RecommendResponse.d.ts +2 -1
- package/dist/esm/models/RecommendResponse.js +4 -1
- package/dist/esm/models/RecommendationInfo.d.ts +2 -1
- package/dist/esm/models/RecommendationInfo.js +4 -1
- package/dist/esm/models/RefreshStepContentRequest.d.ts +2 -1
- package/dist/esm/models/RefreshStepContentRequest.js +4 -1
- package/dist/esm/models/RefreshStepContentResponse.d.ts +2 -1
- package/dist/esm/models/RefreshStepContentResponse.js +4 -1
- package/dist/esm/models/ResultCollection.d.ts +2 -1
- package/dist/esm/models/ResultCollection.js +4 -1
- package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/esm/models/ResultCollectionMethod.js +3 -0
- package/dist/esm/models/Session.d.ts +2 -1
- package/dist/esm/models/Session.js +4 -1
- package/dist/esm/models/SessionErrorCode.d.ts +1 -0
- package/dist/esm/models/SessionErrorCode.js +3 -0
- package/dist/esm/models/SessionOrdering.d.ts +1 -0
- package/dist/esm/models/SessionOrdering.js +3 -0
- package/dist/esm/models/Sex.d.ts +1 -0
- package/dist/esm/models/Sex.js +3 -0
- package/dist/esm/models/SmartIdInput.d.ts +2 -1
- package/dist/esm/models/SmartIdInput.js +4 -1
- package/dist/esm/models/SouthAfricaNidInput.d.ts +2 -1
- package/dist/esm/models/SouthAfricaNidInput.js +4 -1
- package/dist/esm/models/SpidInput.d.ts +2 -1
- package/dist/esm/models/SpidInput.js +4 -1
- package/dist/esm/models/StepRefreshInfo.d.ts +2 -1
- package/dist/esm/models/StepRefreshInfo.js +4 -1
- package/dist/esm/models/SubProviderMetadata.d.ts +2 -1
- package/dist/esm/models/SubProviderMetadata.js +4 -1
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +2 -1
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +4 -1
- package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +2 -1
- package/dist/esm/models/TrinsicTestSubProvidersInput.js +4 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.d.ts +4 -1
- package/dist/esm/runtime.js +9 -1
- package/dist/models/AadhaarInput.d.ts +2 -1
- package/dist/models/AadhaarInput.js +5 -1
- package/dist/models/Address.d.ts +2 -1
- package/dist/models/Address.js +5 -1
- package/dist/models/AttachmentAccessKeys.d.ts +2 -1
- package/dist/models/AttachmentAccessKeys.js +5 -1
- package/dist/models/BangladeshNationalIdInput.d.ts +2 -1
- package/dist/models/BangladeshNationalIdInput.js +5 -1
- package/dist/models/BrazilCpfCheckInput.d.ts +2 -1
- package/dist/models/BrazilCpfCheckInput.js +5 -1
- package/dist/models/BrazilDigitalCnhInput.d.ts +2 -1
- package/dist/models/BrazilDigitalCnhInput.js +5 -1
- package/dist/models/CancelSessionResponse.d.ts +2 -1
- package/dist/models/CancelSessionResponse.js +5 -1
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
- package/dist/models/CreateAdvancedProviderSessionRequest.js +5 -1
- package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
- package/dist/models/CreateAdvancedProviderSessionResponse.js +5 -1
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +2 -1
- package/dist/models/CreateHostedProviderSessionRequest.js +5 -1
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +2 -1
- package/dist/models/CreateHostedProviderSessionResponse.js +5 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +2 -1
- package/dist/models/CreateWidgetSessionRequest.js +5 -1
- package/dist/models/CreateWidgetSessionResponse.d.ts +2 -1
- package/dist/models/CreateWidgetSessionResponse.js +5 -1
- package/dist/models/DocumentData.d.ts +2 -1
- package/dist/models/DocumentData.js +5 -1
- package/dist/models/DocumentScanAttachments.d.ts +2 -1
- package/dist/models/DocumentScanAttachments.js +5 -1
- package/dist/models/DocumentType.d.ts +1 -0
- package/dist/models/DocumentType.js +4 -0
- package/dist/models/GetAttachmentRequest.d.ts +2 -1
- package/dist/models/GetAttachmentRequest.js +5 -1
- package/dist/models/GetAttachmentResponse.d.ts +2 -1
- package/dist/models/GetAttachmentResponse.js +5 -1
- package/dist/models/GetSessionResponse.d.ts +2 -1
- package/dist/models/GetSessionResponse.js +5 -1
- package/dist/models/GetSessionResultRequest.d.ts +2 -1
- package/dist/models/GetSessionResultRequest.js +5 -1
- package/dist/models/GetSessionResultResponse.d.ts +2 -1
- package/dist/models/GetSessionResultResponse.js +5 -1
- package/dist/models/HttpValidationProblemDetails.d.ts +2 -1
- package/dist/models/HttpValidationProblemDetails.js +5 -1
- package/dist/models/IdentityData.d.ts +2 -1
- package/dist/models/IdentityData.js +5 -1
- package/dist/models/IdinInput.d.ts +2 -1
- package/dist/models/IdinInput.js +5 -1
- package/dist/models/IndonesiaNikInput.d.ts +2 -1
- package/dist/models/IndonesiaNikInput.js +5 -1
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +4 -0
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/models/IntegrationLaunchMethod.js +4 -0
- package/dist/models/IntegrationStep.d.ts +3 -2
- package/dist/models/IntegrationStep.js +6 -4
- package/dist/models/KenyaNidInput.d.ts +2 -1
- package/dist/models/KenyaNidInput.js +5 -1
- package/dist/models/Language.d.ts +1 -0
- package/dist/models/Language.js +4 -0
- package/dist/models/ListProviderContractsResponse.d.ts +2 -1
- package/dist/models/ListProviderContractsResponse.js +5 -1
- package/dist/models/ListProvidersResponse.d.ts +2 -1
- package/dist/models/ListProvidersResponse.js +5 -1
- package/dist/models/ListSessionsResponse.d.ts +2 -1
- package/dist/models/ListSessionsResponse.js +5 -1
- package/dist/models/MexicoCurpInput.d.ts +2 -1
- package/dist/models/MexicoCurpInput.js +5 -1
- package/dist/models/MobileIdInput.d.ts +2 -1
- package/dist/models/MobileIdInput.js +5 -1
- package/dist/models/NigeriaNinInput.d.ts +2 -1
- package/dist/models/NigeriaNinInput.js +5 -1
- package/dist/models/OrderDirection.d.ts +1 -0
- package/dist/models/OrderDirection.js +4 -0
- package/dist/models/PersonData.d.ts +2 -1
- package/dist/models/PersonData.js +5 -1
- package/dist/models/PhilippineMatchInput.d.ts +2 -1
- package/dist/models/PhilippineMatchInput.js +5 -1
- package/dist/models/PhilippineQRInput.d.ts +2 -1
- package/dist/models/PhilippineQRInput.js +5 -1
- package/dist/models/ProblemDetails.d.ts +2 -1
- package/dist/models/ProblemDetails.js +5 -1
- package/dist/models/ProviderAttachments.d.ts +2 -1
- package/dist/models/ProviderAttachments.js +5 -1
- package/dist/models/ProviderContract.d.ts +10 -1
- package/dist/models/ProviderContract.js +10 -1
- package/dist/models/ProviderHealth.d.ts +25 -0
- package/dist/models/ProviderHealth.js +51 -0
- package/dist/models/ProviderInfo.d.ts +2 -1
- package/dist/models/ProviderInfo.js +5 -1
- package/dist/models/ProviderInformation.d.ts +2 -1
- package/dist/models/ProviderInformation.js +5 -1
- package/dist/models/ProviderInput.d.ts +2 -1
- package/dist/models/ProviderInput.js +5 -1
- package/dist/models/RecommendRequest.d.ts +2 -1
- package/dist/models/RecommendRequest.js +5 -1
- package/dist/models/RecommendResponse.d.ts +2 -1
- package/dist/models/RecommendResponse.js +5 -1
- package/dist/models/RecommendationInfo.d.ts +2 -1
- package/dist/models/RecommendationInfo.js +5 -1
- package/dist/models/RefreshStepContentRequest.d.ts +2 -1
- package/dist/models/RefreshStepContentRequest.js +5 -1
- package/dist/models/RefreshStepContentResponse.d.ts +2 -1
- package/dist/models/RefreshStepContentResponse.js +5 -1
- package/dist/models/ResultCollection.d.ts +2 -1
- package/dist/models/ResultCollection.js +5 -1
- package/dist/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/models/ResultCollectionMethod.js +4 -0
- package/dist/models/Session.d.ts +2 -1
- package/dist/models/Session.js +5 -1
- package/dist/models/SessionErrorCode.d.ts +1 -0
- package/dist/models/SessionErrorCode.js +4 -0
- package/dist/models/SessionOrdering.d.ts +1 -0
- package/dist/models/SessionOrdering.js +4 -0
- package/dist/models/Sex.d.ts +1 -0
- package/dist/models/Sex.js +4 -0
- package/dist/models/SmartIdInput.d.ts +2 -1
- package/dist/models/SmartIdInput.js +5 -1
- package/dist/models/SouthAfricaNidInput.d.ts +2 -1
- package/dist/models/SouthAfricaNidInput.js +5 -1
- package/dist/models/SpidInput.d.ts +2 -1
- package/dist/models/SpidInput.js +5 -1
- package/dist/models/StepRefreshInfo.d.ts +2 -1
- package/dist/models/StepRefreshInfo.js +5 -1
- package/dist/models/SubProviderMetadata.d.ts +2 -1
- package/dist/models/SubProviderMetadata.js +5 -1
- package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +2 -1
- package/dist/models/TrinsicTestDatabaseLookupInput.js +5 -1
- package/dist/models/TrinsicTestSubProvidersInput.d.ts +2 -1
- package/dist/models/TrinsicTestSubProvidersInput.js +5 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.d.ts +4 -1
- package/dist/runtime.js +10 -1
- package/package.json +1 -1
- package/src/apis/WellKnownApi.ts +82 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AadhaarInput.ts +6 -1
- package/src/models/Address.ts +6 -1
- package/src/models/AttachmentAccessKeys.ts +7 -1
- package/src/models/BangladeshNationalIdInput.ts +6 -1
- package/src/models/BrazilCpfCheckInput.ts +6 -1
- package/src/models/BrazilDigitalCnhInput.ts +6 -1
- package/src/models/CancelSessionResponse.ts +7 -1
- package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -1
- package/src/models/CreateAdvancedProviderSessionResponse.ts +8 -1
- package/src/models/CreateHostedProviderSessionRequest.ts +7 -1
- package/src/models/CreateHostedProviderSessionResponse.ts +6 -1
- package/src/models/CreateWidgetSessionRequest.ts +7 -1
- package/src/models/CreateWidgetSessionResponse.ts +6 -1
- package/src/models/DocumentData.ts +7 -1
- package/src/models/DocumentScanAttachments.ts +6 -1
- package/src/models/DocumentType.ts +4 -0
- package/src/models/GetAttachmentRequest.ts +6 -1
- package/src/models/GetAttachmentResponse.ts +6 -1
- package/src/models/GetSessionResponse.ts +7 -1
- package/src/models/GetSessionResultRequest.ts +6 -1
- package/src/models/GetSessionResultResponse.ts +8 -1
- package/src/models/HttpValidationProblemDetails.ts +6 -1
- package/src/models/IdentityData.ts +9 -1
- package/src/models/IdinInput.ts +6 -1
- package/src/models/IndonesiaNikInput.ts +6 -1
- package/src/models/IntegrationCapability.ts +4 -0
- package/src/models/IntegrationLaunchMethod.ts +4 -0
- package/src/models/IntegrationStep.ts +10 -4
- package/src/models/KenyaNidInput.ts +6 -1
- package/src/models/Language.ts +4 -0
- package/src/models/ListProviderContractsResponse.ts +7 -1
- package/src/models/ListProvidersResponse.ts +7 -1
- package/src/models/ListSessionsResponse.ts +7 -1
- package/src/models/MexicoCurpInput.ts +6 -1
- package/src/models/MobileIdInput.ts +7 -1
- package/src/models/NigeriaNinInput.ts +6 -1
- package/src/models/OrderDirection.ts +4 -0
- package/src/models/PersonData.ts +8 -1
- package/src/models/PhilippineMatchInput.ts +6 -1
- package/src/models/PhilippineQRInput.ts +6 -1
- package/src/models/ProblemDetails.ts +6 -1
- package/src/models/ProviderAttachments.ts +7 -1
- package/src/models/ProviderContract.ts +26 -1
- package/src/models/ProviderHealth.ts +53 -0
- package/src/models/ProviderInfo.ts +6 -1
- package/src/models/ProviderInformation.ts +6 -1
- package/src/models/ProviderInput.ts +23 -1
- package/src/models/RecommendRequest.ts +7 -1
- package/src/models/RecommendResponse.ts +7 -1
- package/src/models/RecommendationInfo.ts +6 -1
- package/src/models/RefreshStepContentRequest.ts +6 -1
- package/src/models/RefreshStepContentResponse.ts +7 -1
- package/src/models/ResultCollection.ts +7 -1
- package/src/models/ResultCollectionMethod.ts +4 -0
- package/src/models/Session.ts +7 -1
- package/src/models/SessionErrorCode.ts +4 -0
- package/src/models/SessionOrdering.ts +4 -0
- package/src/models/Sex.ts +4 -0
- package/src/models/SmartIdInput.ts +6 -1
- package/src/models/SouthAfricaNidInput.ts +6 -1
- package/src/models/SpidInput.ts +6 -1
- package/src/models/StepRefreshInfo.ts +6 -1
- package/src/models/SubProviderMetadata.ts +6 -1
- package/src/models/TrinsicTestDatabaseLookupInput.ts +6 -1
- package/src/models/TrinsicTestSubProvidersInput.ts +6 -1
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +10 -4
|
@@ -18,18 +18,21 @@ import {
|
|
|
18
18
|
DocumentDataFromJSON,
|
|
19
19
|
DocumentDataFromJSONTyped,
|
|
20
20
|
DocumentDataToJSON,
|
|
21
|
+
DocumentDataToJSONTyped,
|
|
21
22
|
} from './DocumentData';
|
|
22
23
|
import type { PersonData } from './PersonData';
|
|
23
24
|
import {
|
|
24
25
|
PersonDataFromJSON,
|
|
25
26
|
PersonDataFromJSONTyped,
|
|
26
27
|
PersonDataToJSON,
|
|
28
|
+
PersonDataToJSONTyped,
|
|
27
29
|
} from './PersonData';
|
|
28
30
|
import type { AttachmentAccessKeys } from './AttachmentAccessKeys';
|
|
29
31
|
import {
|
|
30
32
|
AttachmentAccessKeysFromJSON,
|
|
31
33
|
AttachmentAccessKeysFromJSONTyped,
|
|
32
34
|
AttachmentAccessKeysToJSON,
|
|
35
|
+
AttachmentAccessKeysToJSONTyped,
|
|
33
36
|
} from './AttachmentAccessKeys';
|
|
34
37
|
|
|
35
38
|
/**
|
|
@@ -95,10 +98,15 @@ export function IdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
95
98
|
};
|
|
96
99
|
}
|
|
97
100
|
|
|
98
|
-
export function IdentityDataToJSON(
|
|
101
|
+
export function IdentityDataToJSON(json: any): IdentityData {
|
|
102
|
+
return IdentityDataToJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function IdentityDataToJSONTyped(value?: IdentityData | null, ignoreDiscriminator: boolean = false): any {
|
|
99
106
|
if (value == null) {
|
|
100
107
|
return value;
|
|
101
108
|
}
|
|
109
|
+
|
|
102
110
|
return {
|
|
103
111
|
|
|
104
112
|
'originatingProviderId': value['originatingProviderId'],
|
package/src/models/IdinInput.ts
CHANGED
|
@@ -50,10 +50,15 @@ export function IdinInputFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export function IdinInputToJSON(
|
|
53
|
+
export function IdinInputToJSON(json: any): IdinInput {
|
|
54
|
+
return IdinInputToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function IdinInputToJSONTyped(value?: IdinInput | null, ignoreDiscriminator: boolean = false): any {
|
|
54
58
|
if (value == null) {
|
|
55
59
|
return value;
|
|
56
60
|
}
|
|
61
|
+
|
|
57
62
|
return {
|
|
58
63
|
|
|
59
64
|
'subProviderId': value['subProviderId'],
|
|
@@ -65,10 +65,15 @@ export function IndonesiaNikInputFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export function IndonesiaNikInputToJSON(
|
|
68
|
+
export function IndonesiaNikInputToJSON(json: any): IndonesiaNikInput {
|
|
69
|
+
return IndonesiaNikInputToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IndonesiaNikInputToJSONTyped(value?: IndonesiaNikInput | null, ignoreDiscriminator: boolean = false): any {
|
|
69
73
|
if (value == null) {
|
|
70
74
|
return value;
|
|
71
75
|
}
|
|
76
|
+
|
|
72
77
|
return {
|
|
73
78
|
|
|
74
79
|
'fullName': value['fullName'],
|
|
@@ -51,3 +51,7 @@ export function IntegrationCapabilityToJSON(value?: IntegrationCapability | null
|
|
|
51
51
|
return value as any;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export function IntegrationCapabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): IntegrationCapability {
|
|
55
|
+
return value as IntegrationCapability;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -49,3 +49,7 @@ export function IntegrationLaunchMethodToJSON(value?: IntegrationLaunchMethod |
|
|
|
49
49
|
return value as any;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export function IntegrationLaunchMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): IntegrationLaunchMethod {
|
|
53
|
+
return value as IntegrationLaunchMethod;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -18,12 +18,14 @@ import {
|
|
|
18
18
|
StepRefreshInfoFromJSON,
|
|
19
19
|
StepRefreshInfoFromJSONTyped,
|
|
20
20
|
StepRefreshInfoToJSON,
|
|
21
|
+
StepRefreshInfoToJSONTyped,
|
|
21
22
|
} from './StepRefreshInfo';
|
|
22
23
|
import type { IntegrationLaunchMethod } from './IntegrationLaunchMethod';
|
|
23
24
|
import {
|
|
24
25
|
IntegrationLaunchMethodFromJSON,
|
|
25
26
|
IntegrationLaunchMethodFromJSONTyped,
|
|
26
27
|
IntegrationLaunchMethodToJSON,
|
|
28
|
+
IntegrationLaunchMethodToJSONTyped,
|
|
27
29
|
} from './IntegrationLaunchMethod';
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -49,7 +51,7 @@ export interface IntegrationStep {
|
|
|
49
51
|
* @type {StepRefreshInfo}
|
|
50
52
|
* @memberof IntegrationStep
|
|
51
53
|
*/
|
|
52
|
-
refresh
|
|
54
|
+
refresh?: StepRefreshInfo | null;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
|
|
@@ -60,7 +62,6 @@ export interface IntegrationStep {
|
|
|
60
62
|
export function instanceOfIntegrationStep(value: object): value is IntegrationStep {
|
|
61
63
|
if (!('method' in value) || value['method'] === undefined) return false;
|
|
62
64
|
if (!('content' in value) || value['content'] === undefined) return false;
|
|
63
|
-
if (!('refresh' in value) || value['refresh'] === undefined) return false;
|
|
64
65
|
return true;
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -76,14 +77,19 @@ export function IntegrationStepFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
76
77
|
|
|
77
78
|
'method': IntegrationLaunchMethodFromJSON(json['method']),
|
|
78
79
|
'content': json['content'],
|
|
79
|
-
'refresh': StepRefreshInfoFromJSON(json['refresh']),
|
|
80
|
+
'refresh': json['refresh'] == null ? undefined : StepRefreshInfoFromJSON(json['refresh']),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
export function IntegrationStepToJSON(
|
|
84
|
+
export function IntegrationStepToJSON(json: any): IntegrationStep {
|
|
85
|
+
return IntegrationStepToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function IntegrationStepToJSONTyped(value?: IntegrationStep | null, ignoreDiscriminator: boolean = false): any {
|
|
84
89
|
if (value == null) {
|
|
85
90
|
return value;
|
|
86
91
|
}
|
|
92
|
+
|
|
87
93
|
return {
|
|
88
94
|
|
|
89
95
|
'method': IntegrationLaunchMethodToJSON(value['method']),
|
|
@@ -88,10 +88,15 @@ export function KenyaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export function KenyaNidInputToJSON(
|
|
91
|
+
export function KenyaNidInputToJSON(json: any): KenyaNidInput {
|
|
92
|
+
return KenyaNidInputToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function KenyaNidInputToJSONTyped(value?: KenyaNidInput | null, ignoreDiscriminator: boolean = false): any {
|
|
92
96
|
if (value == null) {
|
|
93
97
|
return value;
|
|
94
98
|
}
|
|
99
|
+
|
|
95
100
|
return {
|
|
96
101
|
|
|
97
102
|
'firstName': value['firstName'],
|
package/src/models/Language.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
ProviderContractFromJSON,
|
|
19
19
|
ProviderContractFromJSONTyped,
|
|
20
20
|
ProviderContractToJSON,
|
|
21
|
+
ProviderContractToJSONTyped,
|
|
21
22
|
} from './ProviderContract';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -56,10 +57,15 @@ export function ListProviderContractsResponseFromJSONTyped(json: any, ignoreDisc
|
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
export function ListProviderContractsResponseToJSON(
|
|
60
|
+
export function ListProviderContractsResponseToJSON(json: any): ListProviderContractsResponse {
|
|
61
|
+
return ListProviderContractsResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ListProviderContractsResponseToJSONTyped(value?: ListProviderContractsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
60
65
|
if (value == null) {
|
|
61
66
|
return value;
|
|
62
67
|
}
|
|
68
|
+
|
|
63
69
|
return {
|
|
64
70
|
|
|
65
71
|
'providerContracts': ((value['providerContracts'] as Array<any>).map(ProviderContractToJSON)),
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
ProviderInfoFromJSON,
|
|
19
19
|
ProviderInfoFromJSONTyped,
|
|
20
20
|
ProviderInfoToJSON,
|
|
21
|
+
ProviderInfoToJSONTyped,
|
|
21
22
|
} from './ProviderInfo';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -56,10 +57,15 @@ export function ListProvidersResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
export function ListProvidersResponseToJSON(
|
|
60
|
+
export function ListProvidersResponseToJSON(json: any): ListProvidersResponse {
|
|
61
|
+
return ListProvidersResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ListProvidersResponseToJSONTyped(value?: ListProvidersResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
60
65
|
if (value == null) {
|
|
61
66
|
return value;
|
|
62
67
|
}
|
|
68
|
+
|
|
63
69
|
return {
|
|
64
70
|
|
|
65
71
|
'providers': ((value['providers'] as Array<any>).map(ProviderInfoToJSON)),
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
SessionFromJSON,
|
|
19
19
|
SessionFromJSONTyped,
|
|
20
20
|
SessionToJSON,
|
|
21
|
+
SessionToJSONTyped,
|
|
21
22
|
} from './Session';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -72,10 +73,15 @@ export function ListSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
|
|
75
|
-
export function ListSessionsResponseToJSON(
|
|
76
|
+
export function ListSessionsResponseToJSON(json: any): ListSessionsResponse {
|
|
77
|
+
return ListSessionsResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ListSessionsResponseToJSONTyped(value?: ListSessionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
76
81
|
if (value == null) {
|
|
77
82
|
return value;
|
|
78
83
|
}
|
|
84
|
+
|
|
79
85
|
return {
|
|
80
86
|
|
|
81
87
|
'sessions': ((value['sessions'] as Array<any>).map(SessionToJSON)),
|
|
@@ -49,10 +49,15 @@ export function MexicoCurpInputFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export function MexicoCurpInputToJSON(
|
|
52
|
+
export function MexicoCurpInputToJSON(json: any): MexicoCurpInput {
|
|
53
|
+
return MexicoCurpInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function MexicoCurpInputToJSONTyped(value?: MexicoCurpInput | null, ignoreDiscriminator: boolean = false): any {
|
|
53
57
|
if (value == null) {
|
|
54
58
|
return value;
|
|
55
59
|
}
|
|
60
|
+
|
|
56
61
|
return {
|
|
57
62
|
|
|
58
63
|
'curp': value['curp'],
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
LanguageFromJSON,
|
|
19
19
|
LanguageFromJSONTyped,
|
|
20
20
|
LanguageToJSON,
|
|
21
|
+
LanguageToJSONTyped,
|
|
21
22
|
} from './Language';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -71,10 +72,15 @@ export function MobileIdInputFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
export function MobileIdInputToJSON(
|
|
75
|
+
export function MobileIdInputToJSON(json: any): MobileIdInput {
|
|
76
|
+
return MobileIdInputToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function MobileIdInputToJSONTyped(value?: MobileIdInput | null, ignoreDiscriminator: boolean = false): any {
|
|
75
80
|
if (value == null) {
|
|
76
81
|
return value;
|
|
77
82
|
}
|
|
83
|
+
|
|
78
84
|
return {
|
|
79
85
|
|
|
80
86
|
'mobileIdPhoneNumber': value['mobileIdPhoneNumber'],
|
|
@@ -94,10 +94,15 @@ export function NigeriaNinInputFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export function NigeriaNinInputToJSON(
|
|
97
|
+
export function NigeriaNinInputToJSON(json: any): NigeriaNinInput {
|
|
98
|
+
return NigeriaNinInputToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function NigeriaNinInputToJSONTyped(value?: NigeriaNinInput | null, ignoreDiscriminator: boolean = false): any {
|
|
98
102
|
if (value == null) {
|
|
99
103
|
return value;
|
|
100
104
|
}
|
|
105
|
+
|
|
101
106
|
return {
|
|
102
107
|
|
|
103
108
|
'firstName': value['firstName'],
|
package/src/models/PersonData.ts
CHANGED
|
@@ -18,12 +18,14 @@ import {
|
|
|
18
18
|
AddressFromJSON,
|
|
19
19
|
AddressFromJSONTyped,
|
|
20
20
|
AddressToJSON,
|
|
21
|
+
AddressToJSONTyped,
|
|
21
22
|
} from './Address';
|
|
22
23
|
import type { Sex } from './Sex';
|
|
23
24
|
import {
|
|
24
25
|
SexFromJSON,
|
|
25
26
|
SexFromJSONTyped,
|
|
26
27
|
SexToJSON,
|
|
28
|
+
SexToJSONTyped,
|
|
27
29
|
} from './Sex';
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -126,10 +128,15 @@ export function PersonDataFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
126
128
|
};
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
export function PersonDataToJSON(
|
|
131
|
+
export function PersonDataToJSON(json: any): PersonData {
|
|
132
|
+
return PersonDataToJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function PersonDataToJSONTyped(value?: PersonData | null, ignoreDiscriminator: boolean = false): any {
|
|
130
136
|
if (value == null) {
|
|
131
137
|
return value;
|
|
132
138
|
}
|
|
139
|
+
|
|
133
140
|
return {
|
|
134
141
|
|
|
135
142
|
'givenName': value['givenName'],
|
|
@@ -76,10 +76,15 @@ export function PhilippineMatchInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export function PhilippineMatchInputToJSON(
|
|
79
|
+
export function PhilippineMatchInputToJSON(json: any): PhilippineMatchInput {
|
|
80
|
+
return PhilippineMatchInputToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PhilippineMatchInputToJSONTyped(value?: PhilippineMatchInput | null, ignoreDiscriminator: boolean = false): any {
|
|
80
84
|
if (value == null) {
|
|
81
85
|
return value;
|
|
82
86
|
}
|
|
87
|
+
|
|
83
88
|
return {
|
|
84
89
|
|
|
85
90
|
'givenName': value['givenName'],
|
|
@@ -55,10 +55,15 @@ export function PhilippineQRInputFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export function PhilippineQRInputToJSON(
|
|
58
|
+
export function PhilippineQRInputToJSON(json: any): PhilippineQRInput {
|
|
59
|
+
return PhilippineQRInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PhilippineQRInputToJSONTyped(value?: PhilippineQRInput | null, ignoreDiscriminator: boolean = false): any {
|
|
59
63
|
if (value == null) {
|
|
60
64
|
return value;
|
|
61
65
|
}
|
|
66
|
+
|
|
62
67
|
return {
|
|
63
68
|
|
|
64
69
|
'qrCodeText': value['qrCodeText'],
|
|
@@ -78,10 +78,15 @@ export function ProblemDetailsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export function ProblemDetailsToJSON(
|
|
81
|
+
export function ProblemDetailsToJSON(json: any): ProblemDetails {
|
|
82
|
+
return ProblemDetailsToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function ProblemDetailsToJSONTyped(value?: ProblemDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
82
86
|
if (value == null) {
|
|
83
87
|
return value;
|
|
84
88
|
}
|
|
89
|
+
|
|
85
90
|
return {
|
|
86
91
|
|
|
87
92
|
...value,
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
DocumentScanAttachmentsFromJSON,
|
|
19
19
|
DocumentScanAttachmentsFromJSONTyped,
|
|
20
20
|
DocumentScanAttachmentsToJSON,
|
|
21
|
+
DocumentScanAttachmentsToJSONTyped,
|
|
21
22
|
} from './DocumentScanAttachments';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -55,10 +56,15 @@ export function ProviderAttachmentsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
export function ProviderAttachmentsToJSON(
|
|
59
|
+
export function ProviderAttachmentsToJSON(json: any): ProviderAttachments {
|
|
60
|
+
return ProviderAttachmentsToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProviderAttachmentsToJSONTyped(value?: ProviderAttachments | null, ignoreDiscriminator: boolean = false): any {
|
|
59
64
|
if (value == null) {
|
|
60
65
|
return value;
|
|
61
66
|
}
|
|
67
|
+
|
|
62
68
|
return {
|
|
63
69
|
|
|
64
70
|
'document-scan': DocumentScanAttachmentsToJSON(value['documentScan']),
|
|
@@ -13,23 +13,33 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProviderHealth } from './ProviderHealth';
|
|
17
|
+
import {
|
|
18
|
+
ProviderHealthFromJSON,
|
|
19
|
+
ProviderHealthFromJSONTyped,
|
|
20
|
+
ProviderHealthToJSON,
|
|
21
|
+
ProviderHealthToJSONTyped,
|
|
22
|
+
} from './ProviderHealth';
|
|
16
23
|
import type { SubProviderMetadata } from './SubProviderMetadata';
|
|
17
24
|
import {
|
|
18
25
|
SubProviderMetadataFromJSON,
|
|
19
26
|
SubProviderMetadataFromJSONTyped,
|
|
20
27
|
SubProviderMetadataToJSON,
|
|
28
|
+
SubProviderMetadataToJSONTyped,
|
|
21
29
|
} from './SubProviderMetadata';
|
|
22
30
|
import type { ResultCollectionMethod } from './ResultCollectionMethod';
|
|
23
31
|
import {
|
|
24
32
|
ResultCollectionMethodFromJSON,
|
|
25
33
|
ResultCollectionMethodFromJSONTyped,
|
|
26
34
|
ResultCollectionMethodToJSON,
|
|
35
|
+
ResultCollectionMethodToJSONTyped,
|
|
27
36
|
} from './ResultCollectionMethod';
|
|
28
37
|
import type { IntegrationLaunchMethod } from './IntegrationLaunchMethod';
|
|
29
38
|
import {
|
|
30
39
|
IntegrationLaunchMethodFromJSON,
|
|
31
40
|
IntegrationLaunchMethodFromJSONTyped,
|
|
32
41
|
IntegrationLaunchMethodToJSON,
|
|
42
|
+
IntegrationLaunchMethodToJSONTyped,
|
|
33
43
|
} from './IntegrationLaunchMethod';
|
|
34
44
|
|
|
35
45
|
/**
|
|
@@ -156,6 +166,13 @@ export interface ProviderContract {
|
|
|
156
166
|
* @memberof ProviderContract
|
|
157
167
|
*/
|
|
158
168
|
subProviders?: Array<SubProviderMetadata> | null;
|
|
169
|
+
/**
|
|
170
|
+
* The current status of the provider and if it is available to launch.
|
|
171
|
+
* If the status is disabled, there is an issue that prevents a provider being able to launch a session.
|
|
172
|
+
* @type {ProviderHealth}
|
|
173
|
+
* @memberof ProviderContract
|
|
174
|
+
*/
|
|
175
|
+
status: ProviderHealth;
|
|
159
176
|
}
|
|
160
177
|
|
|
161
178
|
|
|
@@ -178,6 +195,7 @@ export function instanceOfProviderContract(value: object): value is ProviderCont
|
|
|
178
195
|
if (!('requiresInput' in value) || value['requiresInput'] === undefined) return false;
|
|
179
196
|
if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined) return false;
|
|
180
197
|
if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined) return false;
|
|
198
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
181
199
|
return true;
|
|
182
200
|
}
|
|
183
201
|
|
|
@@ -206,13 +224,19 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
206
224
|
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
207
225
|
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
208
226
|
'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
|
|
227
|
+
'status': ProviderHealthFromJSON(json['status']),
|
|
209
228
|
};
|
|
210
229
|
}
|
|
211
230
|
|
|
212
|
-
export function ProviderContractToJSON(
|
|
231
|
+
export function ProviderContractToJSON(json: any): ProviderContract {
|
|
232
|
+
return ProviderContractToJSONTyped(json, false);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function ProviderContractToJSONTyped(value?: ProviderContract | null, ignoreDiscriminator: boolean = false): any {
|
|
213
236
|
if (value == null) {
|
|
214
237
|
return value;
|
|
215
238
|
}
|
|
239
|
+
|
|
216
240
|
return {
|
|
217
241
|
|
|
218
242
|
'id': value['id'],
|
|
@@ -230,6 +254,7 @@ export function ProviderContractToJSON(value?: ProviderContract | null): any {
|
|
|
230
254
|
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
231
255
|
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
232
256
|
'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
|
|
257
|
+
'status': ProviderHealthToJSON(value['status']),
|
|
233
258
|
};
|
|
234
259
|
}
|
|
235
260
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The health for an integration to be able to successfully perform a verification session.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProviderHealth = {
|
|
21
|
+
Online: 'Online',
|
|
22
|
+
Offline: 'Offline'
|
|
23
|
+
} as const;
|
|
24
|
+
export type ProviderHealth = typeof ProviderHealth[keyof typeof ProviderHealth];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfProviderHealth(value: any): boolean {
|
|
28
|
+
for (const key in ProviderHealth) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(ProviderHealth, key)) {
|
|
30
|
+
if (ProviderHealth[key as keyof typeof ProviderHealth] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ProviderHealthFromJSON(json: any): ProviderHealth {
|
|
39
|
+
return ProviderHealthFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ProviderHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderHealth {
|
|
43
|
+
return json as ProviderHealth;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ProviderHealthToJSON(value?: ProviderHealth | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ProviderHealthToJSONTyped(value: any, ignoreDiscriminator: boolean): ProviderHealth {
|
|
51
|
+
return value as ProviderHealth;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -65,10 +65,15 @@ export function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export function ProviderInfoToJSON(
|
|
68
|
+
export function ProviderInfoToJSON(json: any): ProviderInfo {
|
|
69
|
+
return ProviderInfoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ProviderInfoToJSONTyped(value?: ProviderInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
69
73
|
if (value == null) {
|
|
70
74
|
return value;
|
|
71
75
|
}
|
|
76
|
+
|
|
72
77
|
return {
|
|
73
78
|
|
|
74
79
|
'id': value['id'],
|
|
@@ -65,10 +65,15 @@ export function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export function ProviderInformationToJSON(
|
|
68
|
+
export function ProviderInformationToJSON(json: any): ProviderInformation {
|
|
69
|
+
return ProviderInformationToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ProviderInformationToJSONTyped(value?: Omit<ProviderInformation, 'providerId'|'providerDisplayName'|'providerLogo'> | null, ignoreDiscriminator: boolean = false): any {
|
|
69
73
|
if (value == null) {
|
|
70
74
|
return value;
|
|
71
75
|
}
|
|
76
|
+
|
|
72
77
|
return {
|
|
73
78
|
|
|
74
79
|
};
|