@trinsic/api 2.0.0-alpha2 → 2.0.0
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 +16 -3
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +32 -9
- package/dist/apis/NetworkApi.js +38 -4
- package/dist/apis/SessionsApi.d.ts +8 -8
- package/dist/apis/SessionsApi.js +4 -4
- package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
- package/dist/esm/apis/AttachmentsApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +32 -9
- package/dist/esm/apis/NetworkApi.js +39 -5
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +4 -4
- package/dist/esm/models/AadhaarInput.d.ts +2 -2
- package/dist/esm/models/AadhaarInput.js +1 -1
- package/dist/esm/models/Address.d.ts +8 -8
- package/dist/esm/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.js +1 -1
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +8 -7
- package/dist/esm/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/esm/models/DocumentData.d.ts +6 -6
- package/dist/esm/models/DocumentData.js +2 -2
- package/dist/esm/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/esm/models/IdentityData.d.ts +10 -4
- package/dist/esm/models/IdentityData.js +2 -0
- package/dist/esm/models/IdinInput.d.ts +33 -0
- package/dist/esm/models/IdinInput.js +38 -0
- package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/esm/models/IndonesiaNikInput.js +48 -0
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/esm/models/IntegrationLaunchMethod.js +1 -1
- package/dist/esm/models/IntegrationStep.d.ts +1 -1
- package/dist/esm/models/KenyaNidInput.d.ts +61 -0
- package/dist/esm/models/KenyaNidInput.js +58 -0
- package/dist/esm/models/Language.d.ts +26 -0
- package/dist/esm/models/Language.js +42 -0
- package/dist/esm/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/esm/models/ListProviderContractsResponse.js +41 -0
- package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
- package/dist/esm/models/MexicoCurpInput.js +40 -0
- package/dist/esm/models/MobileIdInput.d.ts +44 -0
- package/dist/esm/models/MobileIdInput.js +43 -0
- package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
- package/dist/esm/models/NigeriaNinInput.js +58 -0
- package/dist/esm/models/PersonData.d.ts +10 -10
- package/dist/esm/models/PersonData.js +1 -1
- package/dist/esm/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/esm/models/PhilippineMatchInput.js +1 -1
- package/dist/esm/models/PhilippineQRInput.d.ts +2 -2
- package/dist/esm/models/ProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProviderAttachments.d.ts +1 -1
- package/dist/esm/models/ProviderContract.d.ts +146 -0
- package/dist/esm/models/ProviderContract.js +97 -0
- package/dist/esm/models/ProviderInfo.d.ts +0 -6
- package/dist/esm/models/ProviderInfo.js +0 -2
- package/dist/esm/models/ProviderInformation.d.ts +4 -4
- package/dist/esm/models/ProviderInformation.js +1 -5
- package/dist/esm/models/ProviderInput.d.ts +95 -14
- package/dist/esm/models/ProviderInput.js +35 -2
- package/dist/esm/models/RecommendRequest.d.ts +4 -21
- package/dist/esm/models/RecommendRequest.js +3 -8
- package/dist/esm/models/RecommendationInfo.d.ts +55 -0
- package/dist/esm/models/RecommendationInfo.js +44 -0
- package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/ResultCollection.d.ts +8 -2
- package/dist/esm/models/ResultCollection.js +3 -1
- package/dist/esm/models/Session.d.ts +1 -1
- package/dist/esm/models/SmartIdInput.d.ts +31 -0
- package/dist/esm/models/SmartIdInput.js +38 -0
- package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/esm/models/SouthAfricaNidInput.js +52 -0
- package/dist/esm/models/SpidInput.d.ts +33 -0
- package/dist/esm/models/SpidInput.js +38 -0
- package/dist/esm/models/SubProviderMetadata.d.ts +54 -0
- package/dist/esm/models/SubProviderMetadata.js +52 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +44 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.js +38 -0
- package/dist/esm/models/index.d.ts +16 -3
- package/dist/esm/models/index.js +16 -3
- package/dist/models/AadhaarInput.d.ts +2 -2
- package/dist/models/AadhaarInput.js +1 -1
- package/dist/models/Address.d.ts +8 -8
- package/dist/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.js +1 -1
- package/dist/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +8 -7
- package/dist/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/models/DocumentData.d.ts +6 -6
- package/dist/models/DocumentData.js +2 -2
- package/dist/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/models/IdentityData.d.ts +10 -4
- package/dist/models/IdentityData.js +2 -0
- package/dist/models/IdinInput.d.ts +33 -0
- package/dist/models/IdinInput.js +44 -0
- package/dist/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/models/IndonesiaNikInput.js +54 -0
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/models/IntegrationLaunchMethod.js +1 -1
- package/dist/models/IntegrationStep.d.ts +1 -1
- package/dist/models/KenyaNidInput.d.ts +61 -0
- package/dist/models/KenyaNidInput.js +64 -0
- package/dist/models/Language.d.ts +26 -0
- package/dist/models/Language.js +49 -0
- package/dist/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/models/ListProviderContractsResponse.js +47 -0
- package/dist/models/MexicoCurpInput.d.ts +31 -0
- package/dist/models/MexicoCurpInput.js +46 -0
- package/dist/models/MobileIdInput.d.ts +44 -0
- package/dist/models/MobileIdInput.js +49 -0
- package/dist/models/NigeriaNinInput.d.ts +67 -0
- package/dist/models/NigeriaNinInput.js +64 -0
- package/dist/models/PersonData.d.ts +10 -10
- package/dist/models/PersonData.js +1 -1
- package/dist/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/models/PhilippineMatchInput.js +1 -1
- package/dist/models/PhilippineQRInput.d.ts +2 -2
- package/dist/models/ProblemDetails.d.ts +5 -5
- package/dist/models/ProviderAttachments.d.ts +1 -1
- package/dist/models/ProviderContract.d.ts +146 -0
- package/dist/models/ProviderContract.js +103 -0
- package/dist/models/ProviderInfo.d.ts +0 -6
- package/dist/models/ProviderInfo.js +0 -2
- package/dist/models/ProviderInformation.d.ts +4 -4
- package/dist/models/ProviderInformation.js +1 -5
- package/dist/models/ProviderInput.d.ts +95 -14
- package/dist/models/ProviderInput.js +35 -2
- package/dist/models/RecommendRequest.d.ts +4 -21
- package/dist/models/RecommendRequest.js +3 -8
- package/dist/models/RecommendationInfo.d.ts +55 -0
- package/dist/models/RecommendationInfo.js +50 -0
- package/dist/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/ResultCollection.d.ts +8 -2
- package/dist/models/ResultCollection.js +3 -1
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/SmartIdInput.d.ts +31 -0
- package/dist/models/SmartIdInput.js +44 -0
- package/dist/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/models/SouthAfricaNidInput.js +58 -0
- package/dist/models/SpidInput.d.ts +33 -0
- package/dist/models/SpidInput.js +44 -0
- package/dist/models/SubProviderMetadata.d.ts +54 -0
- package/dist/models/SubProviderMetadata.js +58 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.js +50 -0
- package/dist/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/models/TrinsicTestSubProvidersInput.js +44 -0
- package/dist/models/index.d.ts +16 -3
- package/dist/models/index.js +16 -3
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +62 -8
- package/src/apis/SessionsApi.ts +8 -8
- package/src/models/AadhaarInput.ts +3 -3
- package/src/models/Address.ts +8 -8
- package/src/models/AttachmentAccessKeys.ts +4 -4
- package/src/models/BangladeshNationalIdInput.ts +5 -5
- package/src/models/BrazilDigitalCnhInput.ts +11 -11
- package/src/models/CreateAdvancedProviderSessionRequest.ts +29 -29
- package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
- package/src/models/CreateHostedProviderSessionResponse.ts +24 -8
- package/src/models/CreateWidgetSessionRequest.ts +18 -17
- package/src/models/CreateWidgetSessionResponse.ts +22 -6
- package/src/models/DocumentData.ts +8 -8
- package/src/models/DocumentScanAttachments.ts +1 -1
- package/src/models/GetSessionResultResponse.ts +1 -1
- package/src/models/HttpValidationProblemDetails.ts +5 -5
- package/src/models/IdentityData.ts +12 -4
- package/src/models/IdinInput.ts +62 -0
- package/src/models/IndonesiaNikInput.ts +79 -0
- package/src/models/IntegrationLaunchMethod.ts +1 -1
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/KenyaNidInput.ts +105 -0
- package/src/models/Language.ts +51 -0
- package/src/models/ListProviderContractsResponse.ts +68 -0
- package/src/models/MexicoCurpInput.ts +61 -0
- package/src/models/MobileIdInput.ts +85 -0
- package/src/models/NigeriaNinInput.ts +112 -0
- package/src/models/PersonData.ts +11 -11
- package/src/models/PhilippineMatchInput.ts +6 -6
- package/src/models/PhilippineQRInput.ts +2 -2
- package/src/models/ProblemDetails.ts +5 -5
- package/src/models/ProviderAttachments.ts +1 -1
- package/src/models/ProviderContract.ts +235 -0
- package/src/models/ProviderInfo.ts +0 -8
- package/src/models/ProviderInformation.ts +4 -7
- package/src/models/ProviderInput.ts +182 -24
- package/src/models/RecommendRequest.ts +12 -29
- package/src/models/RecommendationInfo.ts +90 -0
- package/src/models/RefreshStepContentRequest.ts +1 -1
- package/src/models/ResultCollection.ts +10 -3
- package/src/models/Session.ts +8 -8
- package/src/models/SmartIdInput.ts +60 -0
- package/src/models/SouthAfricaNidInput.ts +88 -0
- package/src/models/SpidInput.ts +62 -0
- package/src/models/StepRefreshInfo.ts +2 -2
- package/src/models/SubProviderMetadata.ts +93 -0
- package/src/models/TrinsicTestDatabaseLookupInput.ts +101 -0
- package/src/models/TrinsicTestSubProvidersInput.ts +64 -0
- package/src/models/index.ts +16 -3
- package/dist/esm/models/KnownAddress.d.ts +0 -74
- package/dist/esm/models/KnownAddress.js +0 -52
- package/dist/esm/models/KnownIdentityData.d.ts +0 -34
- package/dist/esm/models/KnownIdentityData.js +0 -39
- package/dist/esm/models/KnownPersonData.d.ts +0 -74
- package/dist/esm/models/KnownPersonData.js +0 -53
- package/dist/models/KnownAddress.d.ts +0 -74
- package/dist/models/KnownAddress.js +0 -58
- package/dist/models/KnownIdentityData.d.ts +0 -34
- package/dist/models/KnownIdentityData.js +0 -45
- package/dist/models/KnownPersonData.d.ts +0 -74
- package/dist/models/KnownPersonData.js +0 -59
- package/src/models/KnownAddress.ts +0 -117
- package/src/models/KnownIdentityData.ts +0 -69
- package/src/models/KnownPersonData.ts +0 -123
|
@@ -0,0 +1,235 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SubProviderMetadata } from './SubProviderMetadata';
|
|
17
|
+
import {
|
|
18
|
+
SubProviderMetadataFromJSON,
|
|
19
|
+
SubProviderMetadataFromJSONTyped,
|
|
20
|
+
SubProviderMetadataToJSON,
|
|
21
|
+
} from './SubProviderMetadata';
|
|
22
|
+
import type { ResultCollectionMethod } from './ResultCollectionMethod';
|
|
23
|
+
import {
|
|
24
|
+
ResultCollectionMethodFromJSON,
|
|
25
|
+
ResultCollectionMethodFromJSONTyped,
|
|
26
|
+
ResultCollectionMethodToJSON,
|
|
27
|
+
} from './ResultCollectionMethod';
|
|
28
|
+
import type { IntegrationLaunchMethod } from './IntegrationLaunchMethod';
|
|
29
|
+
import {
|
|
30
|
+
IntegrationLaunchMethodFromJSON,
|
|
31
|
+
IntegrationLaunchMethodFromJSONTyped,
|
|
32
|
+
IntegrationLaunchMethodToJSON,
|
|
33
|
+
} from './IntegrationLaunchMethod';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ProviderContract
|
|
39
|
+
*/
|
|
40
|
+
export interface ProviderContract {
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the Provider for this contract.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ProviderContract
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* The Provider's Name as it appears in Trinsic's Dashboard and Widget
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProviderContract
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* The Provider's description as it appears in Trinsic's Widget.
|
|
55
|
+
*
|
|
56
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ProviderContract
|
|
59
|
+
*/
|
|
60
|
+
description: string;
|
|
61
|
+
/**
|
|
62
|
+
* A URL pointing to the Provider's logo on Trinsic's CDN.
|
|
63
|
+
*
|
|
64
|
+
* May be a PNG, JPG, or SVG image.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ProviderContract
|
|
67
|
+
*/
|
|
68
|
+
logoUrl: string;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the Provider is available for use in your App.
|
|
71
|
+
*
|
|
72
|
+
* If `false`, you will need to contact Trinsic to enable this Provider for your App.
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof ProviderContract
|
|
75
|
+
*/
|
|
76
|
+
available: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The geographies within the Regions the Provider is available.
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof ProviderContract
|
|
81
|
+
*/
|
|
82
|
+
geography: Array<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The regions within which the Provider is available.
|
|
85
|
+
* @type {Array<string>}
|
|
86
|
+
* @memberof ProviderContract
|
|
87
|
+
*/
|
|
88
|
+
regions: Array<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Relevant only to Advanced Provider Sessions.
|
|
91
|
+
*
|
|
92
|
+
* The `LaunchMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
|
|
93
|
+
* @type {IntegrationLaunchMethod}
|
|
94
|
+
* @memberof ProviderContract
|
|
95
|
+
*/
|
|
96
|
+
launchMethod: IntegrationLaunchMethod;
|
|
97
|
+
/**
|
|
98
|
+
* Relevant only to Advanced Provider Sessions.
|
|
99
|
+
*
|
|
100
|
+
* The `CollectionMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
|
|
101
|
+
* @type {ResultCollectionMethod}
|
|
102
|
+
* @memberof ProviderContract
|
|
103
|
+
*/
|
|
104
|
+
collectionMethod: ResultCollectionMethod;
|
|
105
|
+
/**
|
|
106
|
+
* If `true`, then the results for this Provider may not be available immediately after the user is redirected back
|
|
107
|
+
* to your application. In this case, the `GetSessionResults` API must be called until results are available.
|
|
108
|
+
*
|
|
109
|
+
* This is an uncommon scenario, and typically only applies to Providers which use a biometric check or traditional document scan.
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof ProviderContract
|
|
112
|
+
*/
|
|
113
|
+
resultsMayBeDelayedAfterRedirect: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Relevant only to Advanced Provider Sessions.
|
|
116
|
+
*
|
|
117
|
+
* Whether the Provider requires the `RefreshStepContent` capability.
|
|
118
|
+
*
|
|
119
|
+
* For example, Samsung Wallet's deep links expire every 30 seconds, and must be refreshed periodically for a
|
|
120
|
+
* resilient user flow.
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
* @memberof ProviderContract
|
|
123
|
+
*/
|
|
124
|
+
hasRefreshableContent: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Relevant to Hosted Provider Sessions and Advanced Provider Sessions.
|
|
127
|
+
*
|
|
128
|
+
* If `true`, this Provider requires provider-specific input on Session creation.
|
|
129
|
+
* If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
|
|
130
|
+
* @type {boolean}
|
|
131
|
+
* @memberof ProviderContract
|
|
132
|
+
*/
|
|
133
|
+
requiresInput: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Whether there exists a Trinsic-hosted UI for this Provider.
|
|
136
|
+
*
|
|
137
|
+
* This is `true` for any Provider which is not a simple, OIDC-like redirect flow.
|
|
138
|
+
* @type {boolean}
|
|
139
|
+
* @memberof ProviderContract
|
|
140
|
+
*/
|
|
141
|
+
hasTrinsicInterface: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API.
|
|
144
|
+
*
|
|
145
|
+
* If `false`, the Provider may still be launched through Advanced Provider Sessions;
|
|
146
|
+
* however, it will necessarily require a Trinsic-hosted UI to function.
|
|
147
|
+
* @type {boolean}
|
|
148
|
+
* @memberof ProviderContract
|
|
149
|
+
*/
|
|
150
|
+
supportsAdvancedProviderSessions: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Metadata about the sub-providers which are available for this Provider.
|
|
153
|
+
*
|
|
154
|
+
* For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
|
|
155
|
+
* @type {Array<SubProviderMetadata>}
|
|
156
|
+
* @memberof ProviderContract
|
|
157
|
+
*/
|
|
158
|
+
subProviders?: Array<SubProviderMetadata> | null;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Check if a given object implements the ProviderContract interface.
|
|
165
|
+
*/
|
|
166
|
+
export function instanceOfProviderContract(value: object): value is ProviderContract {
|
|
167
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
168
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
169
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
170
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
171
|
+
if (!('available' in value) || value['available'] === undefined) return false;
|
|
172
|
+
if (!('geography' in value) || value['geography'] === undefined) return false;
|
|
173
|
+
if (!('regions' in value) || value['regions'] === undefined) return false;
|
|
174
|
+
if (!('launchMethod' in value) || value['launchMethod'] === undefined) return false;
|
|
175
|
+
if (!('collectionMethod' in value) || value['collectionMethod'] === undefined) return false;
|
|
176
|
+
if (!('resultsMayBeDelayedAfterRedirect' in value) || value['resultsMayBeDelayedAfterRedirect'] === undefined) return false;
|
|
177
|
+
if (!('hasRefreshableContent' in value) || value['hasRefreshableContent'] === undefined) return false;
|
|
178
|
+
if (!('requiresInput' in value) || value['requiresInput'] === undefined) return false;
|
|
179
|
+
if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined) return false;
|
|
180
|
+
if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined) return false;
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function ProviderContractFromJSON(json: any): ProviderContract {
|
|
185
|
+
return ProviderContractFromJSONTyped(json, false);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderContract {
|
|
189
|
+
if (json == null) {
|
|
190
|
+
return json;
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
|
|
194
|
+
'id': json['id'],
|
|
195
|
+
'name': json['name'],
|
|
196
|
+
'description': json['description'],
|
|
197
|
+
'logoUrl': json['logoUrl'],
|
|
198
|
+
'available': json['available'],
|
|
199
|
+
'geography': json['geography'],
|
|
200
|
+
'regions': json['regions'],
|
|
201
|
+
'launchMethod': IntegrationLaunchMethodFromJSON(json['launchMethod']),
|
|
202
|
+
'collectionMethod': ResultCollectionMethodFromJSON(json['collectionMethod']),
|
|
203
|
+
'resultsMayBeDelayedAfterRedirect': json['resultsMayBeDelayedAfterRedirect'],
|
|
204
|
+
'hasRefreshableContent': json['hasRefreshableContent'],
|
|
205
|
+
'requiresInput': json['requiresInput'],
|
|
206
|
+
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
207
|
+
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
208
|
+
'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export function ProviderContractToJSON(value?: ProviderContract | null): any {
|
|
213
|
+
if (value == null) {
|
|
214
|
+
return value;
|
|
215
|
+
}
|
|
216
|
+
return {
|
|
217
|
+
|
|
218
|
+
'id': value['id'],
|
|
219
|
+
'name': value['name'],
|
|
220
|
+
'description': value['description'],
|
|
221
|
+
'logoUrl': value['logoUrl'],
|
|
222
|
+
'available': value['available'],
|
|
223
|
+
'geography': value['geography'],
|
|
224
|
+
'regions': value['regions'],
|
|
225
|
+
'launchMethod': IntegrationLaunchMethodToJSON(value['launchMethod']),
|
|
226
|
+
'collectionMethod': ResultCollectionMethodToJSON(value['collectionMethod']),
|
|
227
|
+
'resultsMayBeDelayedAfterRedirect': value['resultsMayBeDelayedAfterRedirect'],
|
|
228
|
+
'hasRefreshableContent': value['hasRefreshableContent'],
|
|
229
|
+
'requiresInput': value['requiresInput'],
|
|
230
|
+
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
231
|
+
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
232
|
+
'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
@@ -37,12 +37,6 @@ export interface ProviderInfo {
|
|
|
37
37
|
* @memberof ProviderInfo
|
|
38
38
|
*/
|
|
39
39
|
logoUrl: string;
|
|
40
|
-
/**
|
|
41
|
-
* List of child provider id's where the provider allows deep-launching of a specific provider.
|
|
42
|
-
* @type {Array<string>}
|
|
43
|
-
* @memberof ProviderInfo
|
|
44
|
-
*/
|
|
45
|
-
childProviderIds?: Array<string>;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -68,7 +62,6 @@ export function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
68
62
|
'id': json['id'],
|
|
69
63
|
'name': json['name'],
|
|
70
64
|
'logoUrl': json['logoUrl'],
|
|
71
|
-
'childProviderIds': json['childProviderIds'] == null ? undefined : json['childProviderIds'],
|
|
72
65
|
};
|
|
73
66
|
}
|
|
74
67
|
|
|
@@ -81,7 +74,6 @@ export function ProviderInfoToJSON(value?: ProviderInfo | null): any {
|
|
|
81
74
|
'id': value['id'],
|
|
82
75
|
'name': value['name'],
|
|
83
76
|
'logoUrl': value['logoUrl'],
|
|
84
|
-
'childProviderIds': value['childProviderIds'],
|
|
85
77
|
};
|
|
86
78
|
}
|
|
87
79
|
|
|
@@ -24,19 +24,19 @@ export interface ProviderInformation {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ProviderInformation
|
|
26
26
|
*/
|
|
27
|
-
providerId: string;
|
|
27
|
+
readonly providerId: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ProviderInformation
|
|
32
32
|
*/
|
|
33
|
-
providerDisplayName: string;
|
|
33
|
+
readonly providerDisplayName: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof ProviderInformation
|
|
38
38
|
*/
|
|
39
|
-
providerLogo: string;
|
|
39
|
+
readonly providerLogo: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -65,15 +65,12 @@ export function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export function ProviderInformationToJSON(value?: ProviderInformation | null): any {
|
|
68
|
+
export function ProviderInformationToJSON(value?: Omit<ProviderInformation, 'providerId'|'providerDisplayName'|'providerLogo'> | null): any {
|
|
69
69
|
if (value == null) {
|
|
70
70
|
return value;
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
73
|
|
|
74
|
-
'providerId': value['providerId'],
|
|
75
|
-
'providerDisplayName': value['providerDisplayName'],
|
|
76
|
-
'providerLogo': value['providerLogo'],
|
|
77
74
|
};
|
|
78
75
|
}
|
|
79
76
|
|
|
@@ -13,42 +13,108 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
17
|
-
import {
|
|
18
|
-
PhilippineQRInputFromJSON,
|
|
19
|
-
PhilippineQRInputFromJSONTyped,
|
|
20
|
-
PhilippineQRInputToJSON,
|
|
21
|
-
} from './PhilippineQRInput';
|
|
22
16
|
import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
|
|
23
17
|
import {
|
|
24
18
|
BangladeshNationalIdInputFromJSON,
|
|
25
19
|
BangladeshNationalIdInputFromJSONTyped,
|
|
26
20
|
BangladeshNationalIdInputToJSON,
|
|
27
21
|
} from './BangladeshNationalIdInput';
|
|
28
|
-
import type { AadhaarInput } from './AadhaarInput';
|
|
29
|
-
import {
|
|
30
|
-
AadhaarInputFromJSON,
|
|
31
|
-
AadhaarInputFromJSONTyped,
|
|
32
|
-
AadhaarInputToJSON,
|
|
33
|
-
} from './AadhaarInput';
|
|
34
22
|
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
35
23
|
import {
|
|
36
24
|
BrazilCpfCheckInputFromJSON,
|
|
37
25
|
BrazilCpfCheckInputFromJSONTyped,
|
|
38
26
|
BrazilCpfCheckInputToJSON,
|
|
39
27
|
} from './BrazilCpfCheckInput';
|
|
28
|
+
import type { MexicoCurpInput } from './MexicoCurpInput';
|
|
29
|
+
import {
|
|
30
|
+
MexicoCurpInputFromJSON,
|
|
31
|
+
MexicoCurpInputFromJSONTyped,
|
|
32
|
+
MexicoCurpInputToJSON,
|
|
33
|
+
} from './MexicoCurpInput';
|
|
40
34
|
import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
|
|
41
35
|
import {
|
|
42
36
|
BrazilDigitalCnhInputFromJSON,
|
|
43
37
|
BrazilDigitalCnhInputFromJSONTyped,
|
|
44
38
|
BrazilDigitalCnhInputToJSON,
|
|
45
39
|
} from './BrazilDigitalCnhInput';
|
|
40
|
+
import type { TrinsicTestSubProvidersInput } from './TrinsicTestSubProvidersInput';
|
|
41
|
+
import {
|
|
42
|
+
TrinsicTestSubProvidersInputFromJSON,
|
|
43
|
+
TrinsicTestSubProvidersInputFromJSONTyped,
|
|
44
|
+
TrinsicTestSubProvidersInputToJSON,
|
|
45
|
+
} from './TrinsicTestSubProvidersInput';
|
|
46
|
+
import type { SpidInput } from './SpidInput';
|
|
47
|
+
import {
|
|
48
|
+
SpidInputFromJSON,
|
|
49
|
+
SpidInputFromJSONTyped,
|
|
50
|
+
SpidInputToJSON,
|
|
51
|
+
} from './SpidInput';
|
|
52
|
+
import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
|
|
53
|
+
import {
|
|
54
|
+
SouthAfricaNidInputFromJSON,
|
|
55
|
+
SouthAfricaNidInputFromJSONTyped,
|
|
56
|
+
SouthAfricaNidInputToJSON,
|
|
57
|
+
} from './SouthAfricaNidInput';
|
|
46
58
|
import type { PhilippineMatchInput } from './PhilippineMatchInput';
|
|
47
59
|
import {
|
|
48
60
|
PhilippineMatchInputFromJSON,
|
|
49
61
|
PhilippineMatchInputFromJSONTyped,
|
|
50
62
|
PhilippineMatchInputToJSON,
|
|
51
63
|
} from './PhilippineMatchInput';
|
|
64
|
+
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
65
|
+
import {
|
|
66
|
+
PhilippineQRInputFromJSON,
|
|
67
|
+
PhilippineQRInputFromJSONTyped,
|
|
68
|
+
PhilippineQRInputToJSON,
|
|
69
|
+
} from './PhilippineQRInput';
|
|
70
|
+
import type { AadhaarInput } from './AadhaarInput';
|
|
71
|
+
import {
|
|
72
|
+
AadhaarInputFromJSON,
|
|
73
|
+
AadhaarInputFromJSONTyped,
|
|
74
|
+
AadhaarInputToJSON,
|
|
75
|
+
} from './AadhaarInput';
|
|
76
|
+
import type { KenyaNidInput } from './KenyaNidInput';
|
|
77
|
+
import {
|
|
78
|
+
KenyaNidInputFromJSON,
|
|
79
|
+
KenyaNidInputFromJSONTyped,
|
|
80
|
+
KenyaNidInputToJSON,
|
|
81
|
+
} from './KenyaNidInput';
|
|
82
|
+
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
83
|
+
import {
|
|
84
|
+
NigeriaNinInputFromJSON,
|
|
85
|
+
NigeriaNinInputFromJSONTyped,
|
|
86
|
+
NigeriaNinInputToJSON,
|
|
87
|
+
} from './NigeriaNinInput';
|
|
88
|
+
import type { SmartIdInput } from './SmartIdInput';
|
|
89
|
+
import {
|
|
90
|
+
SmartIdInputFromJSON,
|
|
91
|
+
SmartIdInputFromJSONTyped,
|
|
92
|
+
SmartIdInputToJSON,
|
|
93
|
+
} from './SmartIdInput';
|
|
94
|
+
import type { MobileIdInput } from './MobileIdInput';
|
|
95
|
+
import {
|
|
96
|
+
MobileIdInputFromJSON,
|
|
97
|
+
MobileIdInputFromJSONTyped,
|
|
98
|
+
MobileIdInputToJSON,
|
|
99
|
+
} from './MobileIdInput';
|
|
100
|
+
import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
|
|
101
|
+
import {
|
|
102
|
+
TrinsicTestDatabaseLookupInputFromJSON,
|
|
103
|
+
TrinsicTestDatabaseLookupInputFromJSONTyped,
|
|
104
|
+
TrinsicTestDatabaseLookupInputToJSON,
|
|
105
|
+
} from './TrinsicTestDatabaseLookupInput';
|
|
106
|
+
import type { IndonesiaNikInput } from './IndonesiaNikInput';
|
|
107
|
+
import {
|
|
108
|
+
IndonesiaNikInputFromJSON,
|
|
109
|
+
IndonesiaNikInputFromJSONTyped,
|
|
110
|
+
IndonesiaNikInputToJSON,
|
|
111
|
+
} from './IndonesiaNikInput';
|
|
112
|
+
import type { IdinInput } from './IdinInput';
|
|
113
|
+
import {
|
|
114
|
+
IdinInputFromJSON,
|
|
115
|
+
IdinInputFromJSONTyped,
|
|
116
|
+
IdinInputToJSON,
|
|
117
|
+
} from './IdinInput';
|
|
52
118
|
|
|
53
119
|
/**
|
|
54
120
|
*
|
|
@@ -57,41 +123,111 @@ import {
|
|
|
57
123
|
*/
|
|
58
124
|
export interface ProviderInput {
|
|
59
125
|
/**
|
|
60
|
-
* Input for the `f-
|
|
126
|
+
* Input for the `f-indonesia-nik` provider
|
|
127
|
+
* @type {IndonesiaNikInput}
|
|
128
|
+
* @memberof ProviderInput
|
|
129
|
+
*/
|
|
130
|
+
indonesiaNik?: IndonesiaNikInput | null;
|
|
131
|
+
/**
|
|
132
|
+
* Input for the `f-mexico-curp` provider
|
|
133
|
+
* @type {MexicoCurpInput}
|
|
134
|
+
* @memberof ProviderInput
|
|
135
|
+
*/
|
|
136
|
+
mexicoCurp?: MexicoCurpInput | null;
|
|
137
|
+
/**
|
|
138
|
+
* Input for the `f-south-africa-nid` provider
|
|
139
|
+
* @type {SouthAfricaNidInput}
|
|
140
|
+
* @memberof ProviderInput
|
|
141
|
+
*/
|
|
142
|
+
southAfricaNid?: SouthAfricaNidInput | null;
|
|
143
|
+
/**
|
|
144
|
+
* Input for the `f-kenya-nid` provider
|
|
145
|
+
* @type {KenyaNidInput}
|
|
146
|
+
* @memberof ProviderInput
|
|
147
|
+
*/
|
|
148
|
+
kenyaNid?: KenyaNidInput | null;
|
|
149
|
+
/**
|
|
150
|
+
* Input for the `f-nigeria-nin` provider
|
|
151
|
+
* @type {NigeriaNinInput}
|
|
152
|
+
* @memberof ProviderInput
|
|
153
|
+
*/
|
|
154
|
+
nigeriaNin?: NigeriaNinInput | null;
|
|
155
|
+
/**
|
|
156
|
+
* Input for the `f-india-aadhaar-match` provider
|
|
61
157
|
* @type {AadhaarInput}
|
|
62
158
|
* @memberof ProviderInput
|
|
63
159
|
*/
|
|
64
|
-
aadhaar?: AadhaarInput;
|
|
160
|
+
aadhaar?: AadhaarInput | null;
|
|
65
161
|
/**
|
|
66
|
-
* Input for the `bangladesh-nid`
|
|
162
|
+
* Input for the `bangladesh-nid` provider
|
|
67
163
|
* @type {BangladeshNationalIdInput}
|
|
68
164
|
* @memberof ProviderInput
|
|
69
165
|
*/
|
|
70
|
-
bangladeshNationalId?: BangladeshNationalIdInput;
|
|
166
|
+
bangladeshNationalId?: BangladeshNationalIdInput | null;
|
|
71
167
|
/**
|
|
72
|
-
* Input for the `g-brazil-cpf`
|
|
168
|
+
* Input for the `g-brazil-cpf` provider
|
|
73
169
|
* @type {BrazilCpfCheckInput}
|
|
74
170
|
* @memberof ProviderInput
|
|
75
171
|
*/
|
|
76
|
-
brazilCpfCheck?: BrazilCpfCheckInput;
|
|
172
|
+
brazilCpfCheck?: BrazilCpfCheckInput | null;
|
|
77
173
|
/**
|
|
78
|
-
* Input for the `g-brazil-digital-cnh`
|
|
174
|
+
* Input for the `g-brazil-digital-cnh` provider
|
|
79
175
|
* @type {BrazilDigitalCnhInput}
|
|
80
176
|
* @memberof ProviderInput
|
|
81
177
|
*/
|
|
82
|
-
brazilDigitalCnh?: BrazilDigitalCnhInput;
|
|
178
|
+
brazilDigitalCnh?: BrazilDigitalCnhInput | null;
|
|
83
179
|
/**
|
|
84
|
-
* Input for the `b-philsys-biometric`
|
|
180
|
+
* Input for the `b-philsys-biometric` provider
|
|
85
181
|
* @type {PhilippineMatchInput}
|
|
86
182
|
* @memberof ProviderInput
|
|
87
183
|
*/
|
|
88
|
-
philippineMatch?: PhilippineMatchInput;
|
|
184
|
+
philippineMatch?: PhilippineMatchInput | null;
|
|
89
185
|
/**
|
|
90
|
-
* Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id`
|
|
186
|
+
* Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
|
|
91
187
|
* @type {PhilippineQRInput}
|
|
92
188
|
* @memberof ProviderInput
|
|
93
189
|
*/
|
|
94
|
-
philippineQR?: PhilippineQRInput;
|
|
190
|
+
philippineQR?: PhilippineQRInput | null;
|
|
191
|
+
/**
|
|
192
|
+
* Input for the `smart-id` provider
|
|
193
|
+
* @type {SmartIdInput}
|
|
194
|
+
* @memberof ProviderInput
|
|
195
|
+
*/
|
|
196
|
+
smartId?: SmartIdInput | null;
|
|
197
|
+
/**
|
|
198
|
+
* Input for the `mobile-id` provider
|
|
199
|
+
* @type {MobileIdInput}
|
|
200
|
+
* @memberof ProviderInput
|
|
201
|
+
*/
|
|
202
|
+
mobileId?: MobileIdInput | null;
|
|
203
|
+
/**
|
|
204
|
+
* Input for the `idin` provider
|
|
205
|
+
* @type {IdinInput}
|
|
206
|
+
* @memberof ProviderInput
|
|
207
|
+
*/
|
|
208
|
+
idin?: IdinInput | null;
|
|
209
|
+
/**
|
|
210
|
+
* Input for the `spid` provider
|
|
211
|
+
* @type {SpidInput}
|
|
212
|
+
* @memberof ProviderInput
|
|
213
|
+
*/
|
|
214
|
+
spid?: SpidInput | null;
|
|
215
|
+
/**
|
|
216
|
+
* *TEST MODE ONLY.*
|
|
217
|
+
*
|
|
218
|
+
* Input for the `trinsic-test-database-lookup` provider
|
|
219
|
+
* @type {TrinsicTestDatabaseLookupInput}
|
|
220
|
+
* @memberof ProviderInput
|
|
221
|
+
*/
|
|
222
|
+
trinsicTestDatabaseLookup?: TrinsicTestDatabaseLookupInput | null;
|
|
223
|
+
/**
|
|
224
|
+
* *TEST MODE ONLY.*
|
|
225
|
+
*
|
|
226
|
+
* Input for the `trinsic-test-sub-providers` provider
|
|
227
|
+
* @type {TrinsicTestSubProvidersInput}
|
|
228
|
+
* @memberof ProviderInput
|
|
229
|
+
*/
|
|
230
|
+
trinsicTestSubProviders?: TrinsicTestSubProvidersInput | null;
|
|
95
231
|
}
|
|
96
232
|
|
|
97
233
|
/**
|
|
@@ -111,12 +247,23 @@ export function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
111
247
|
}
|
|
112
248
|
return {
|
|
113
249
|
|
|
250
|
+
'indonesiaNik': json['indonesiaNik'] == null ? undefined : IndonesiaNikInputFromJSON(json['indonesiaNik']),
|
|
251
|
+
'mexicoCurp': json['mexicoCurp'] == null ? undefined : MexicoCurpInputFromJSON(json['mexicoCurp']),
|
|
252
|
+
'southAfricaNid': json['southAfricaNid'] == null ? undefined : SouthAfricaNidInputFromJSON(json['southAfricaNid']),
|
|
253
|
+
'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
|
|
254
|
+
'nigeriaNin': json['nigeriaNin'] == null ? undefined : NigeriaNinInputFromJSON(json['nigeriaNin']),
|
|
114
255
|
'aadhaar': json['aadhaar'] == null ? undefined : AadhaarInputFromJSON(json['aadhaar']),
|
|
115
256
|
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNationalIdInputFromJSON(json['bangladeshNationalId']),
|
|
116
257
|
'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : BrazilCpfCheckInputFromJSON(json['brazilCpfCheck']),
|
|
117
258
|
'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
|
|
118
259
|
'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
|
|
119
260
|
'philippineQR': json['philippineQR'] == null ? undefined : PhilippineQRInputFromJSON(json['philippineQR']),
|
|
261
|
+
'smartId': json['smartId'] == null ? undefined : SmartIdInputFromJSON(json['smartId']),
|
|
262
|
+
'mobileId': json['mobileId'] == null ? undefined : MobileIdInputFromJSON(json['mobileId']),
|
|
263
|
+
'idin': json['idin'] == null ? undefined : IdinInputFromJSON(json['idin']),
|
|
264
|
+
'spid': json['spid'] == null ? undefined : SpidInputFromJSON(json['spid']),
|
|
265
|
+
'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : TrinsicTestDatabaseLookupInputFromJSON(json['trinsicTestDatabaseLookup']),
|
|
266
|
+
'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : TrinsicTestSubProvidersInputFromJSON(json['trinsicTestSubProviders']),
|
|
120
267
|
};
|
|
121
268
|
}
|
|
122
269
|
|
|
@@ -126,12 +273,23 @@ export function ProviderInputToJSON(value?: ProviderInput | null): any {
|
|
|
126
273
|
}
|
|
127
274
|
return {
|
|
128
275
|
|
|
276
|
+
'indonesiaNik': IndonesiaNikInputToJSON(value['indonesiaNik']),
|
|
277
|
+
'mexicoCurp': MexicoCurpInputToJSON(value['mexicoCurp']),
|
|
278
|
+
'southAfricaNid': SouthAfricaNidInputToJSON(value['southAfricaNid']),
|
|
279
|
+
'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
|
|
280
|
+
'nigeriaNin': NigeriaNinInputToJSON(value['nigeriaNin']),
|
|
129
281
|
'aadhaar': AadhaarInputToJSON(value['aadhaar']),
|
|
130
282
|
'bangladeshNationalId': BangladeshNationalIdInputToJSON(value['bangladeshNationalId']),
|
|
131
283
|
'brazilCpfCheck': BrazilCpfCheckInputToJSON(value['brazilCpfCheck']),
|
|
132
284
|
'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
|
|
133
285
|
'philippineMatch': PhilippineMatchInputToJSON(value['philippineMatch']),
|
|
134
286
|
'philippineQR': PhilippineQRInputToJSON(value['philippineQR']),
|
|
287
|
+
'smartId': SmartIdInputToJSON(value['smartId']),
|
|
288
|
+
'mobileId': MobileIdInputToJSON(value['mobileId']),
|
|
289
|
+
'idin': IdinInputToJSON(value['idin']),
|
|
290
|
+
'spid': SpidInputToJSON(value['spid']),
|
|
291
|
+
'trinsicTestDatabaseLookup': TrinsicTestDatabaseLookupInputToJSON(value['trinsicTestDatabaseLookup']),
|
|
292
|
+
'trinsicTestSubProviders': TrinsicTestSubProvidersInputToJSON(value['trinsicTestSubProviders']),
|
|
135
293
|
};
|
|
136
294
|
}
|
|
137
295
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RecommendationInfo } from './RecommendationInfo';
|
|
17
|
+
import {
|
|
18
|
+
RecommendationInfoFromJSON,
|
|
19
|
+
RecommendationInfoFromJSONTyped,
|
|
20
|
+
RecommendationInfoToJSON,
|
|
21
|
+
} from './RecommendationInfo';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -20,29 +27,11 @@ import { mapValues } from '../runtime';
|
|
|
20
27
|
*/
|
|
21
28
|
export interface RecommendRequest {
|
|
22
29
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {
|
|
25
|
-
* @memberof RecommendRequest
|
|
26
|
-
*/
|
|
27
|
-
phoneNumber?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
|
|
30
|
-
* @type {Array<string>}
|
|
31
|
-
* @memberof RecommendRequest
|
|
32
|
-
*/
|
|
33
|
-
countries?: Array<string>;
|
|
34
|
-
/**
|
|
35
|
-
* If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
|
|
36
|
-
* @type {Array<string>}
|
|
37
|
-
* @memberof RecommendRequest
|
|
38
|
-
*/
|
|
39
|
-
subdivisions?: Array<string>;
|
|
40
|
-
/**
|
|
41
|
-
* If true, the recommendation will include providers that are disabled for the app
|
|
42
|
-
* @type {boolean}
|
|
30
|
+
* Information about the user you wish to generate a recommendation for.
|
|
31
|
+
* @type {RecommendationInfo}
|
|
43
32
|
* @memberof RecommendRequest
|
|
44
33
|
*/
|
|
45
|
-
|
|
34
|
+
recommendationInfo?: RecommendationInfo | null;
|
|
46
35
|
}
|
|
47
36
|
|
|
48
37
|
/**
|
|
@@ -62,10 +51,7 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
62
51
|
}
|
|
63
52
|
return {
|
|
64
53
|
|
|
65
|
-
'
|
|
66
|
-
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
67
|
-
'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
|
|
68
|
-
'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
|
|
54
|
+
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
69
55
|
};
|
|
70
56
|
}
|
|
71
57
|
|
|
@@ -75,10 +61,7 @@ export function RecommendRequestToJSON(value?: RecommendRequest | null): any {
|
|
|
75
61
|
}
|
|
76
62
|
return {
|
|
77
63
|
|
|
78
|
-
'
|
|
79
|
-
'countries': value['countries'],
|
|
80
|
-
'subdivisions': value['subdivisions'],
|
|
81
|
-
'includeDisabledProviders': value['includeDisabledProviders'],
|
|
64
|
+
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
82
65
|
};
|
|
83
66
|
}
|
|
84
67
|
|