@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
|
@@ -23,6 +23,10 @@ exports.CreateHostedProviderSessionResponseToJSON = CreateHostedProviderSessionR
|
|
|
23
23
|
function instanceOfCreateHostedProviderSessionResponse(value) {
|
|
24
24
|
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
|
|
29
|
+
return false;
|
|
26
30
|
return true;
|
|
27
31
|
}
|
|
28
32
|
function CreateHostedProviderSessionResponseFromJSON(json) {
|
|
@@ -34,7 +38,8 @@ function CreateHostedProviderSessionResponseFromJSONTyped(json, ignoreDiscrimina
|
|
|
34
38
|
}
|
|
35
39
|
return {
|
|
36
40
|
'sessionId': json['sessionId'],
|
|
37
|
-
'launchUrl': json['launchUrl']
|
|
41
|
+
'launchUrl': json['launchUrl'],
|
|
42
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
45
|
function CreateHostedProviderSessionResponseToJSON(value) {
|
|
@@ -44,5 +49,6 @@ function CreateHostedProviderSessionResponseToJSON(value) {
|
|
|
44
49
|
return {
|
|
45
50
|
'sessionId': value['sessionId'],
|
|
46
51
|
'launchUrl': value['launchUrl'],
|
|
52
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
47
53
|
};
|
|
48
54
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { RecommendationInfo } from './RecommendationInfo';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -24,21 +24,22 @@ export interface CreateWidgetSessionRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CreateWidgetSessionRequest
|
|
26
26
|
*/
|
|
27
|
-
redirectUrl?: string;
|
|
27
|
+
redirectUrl?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* The list of allowed identity providers. If not specified, all available providers will be allowed.
|
|
30
30
|
* @type {Array<string>}
|
|
31
31
|
* @memberof CreateWidgetSessionRequest
|
|
32
32
|
*/
|
|
33
|
-
providers?: Array<string
|
|
33
|
+
providers?: Array<string> | null;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Data that you already know about the user being verified.
|
|
36
36
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
*
|
|
38
|
+
* This data is used to improve the user experience during provider selection, by surfacing the most relevant providers first.
|
|
39
|
+
* @type {RecommendationInfo}
|
|
39
40
|
* @memberof CreateWidgetSessionRequest
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
recommendationInfo?: RecommendationInfo | null;
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
45
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
@@ -17,7 +17,7 @@ exports.instanceOfCreateWidgetSessionRequest = instanceOfCreateWidgetSessionRequ
|
|
|
17
17
|
exports.CreateWidgetSessionRequestFromJSON = CreateWidgetSessionRequestFromJSON;
|
|
18
18
|
exports.CreateWidgetSessionRequestFromJSONTyped = CreateWidgetSessionRequestFromJSONTyped;
|
|
19
19
|
exports.CreateWidgetSessionRequestToJSON = CreateWidgetSessionRequestToJSON;
|
|
20
|
-
const
|
|
20
|
+
const RecommendationInfo_1 = require("./RecommendationInfo");
|
|
21
21
|
/**
|
|
22
22
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
23
23
|
*/
|
|
@@ -34,7 +34,7 @@ function CreateWidgetSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
36
36
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
37
|
-
'
|
|
37
|
+
'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function CreateWidgetSessionRequestToJSON(value) {
|
|
@@ -44,6 +44,6 @@ function CreateWidgetSessionRequestToJSON(value) {
|
|
|
44
44
|
return {
|
|
45
45
|
'redirectUrl': value['redirectUrl'],
|
|
46
46
|
'providers': value['providers'],
|
|
47
|
-
'
|
|
47
|
+
'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -30,7 +30,19 @@ export interface CreateWidgetSessionResponse {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateWidgetSessionResponse
|
|
32
32
|
*/
|
|
33
|
-
launchUrl
|
|
33
|
+
launchUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
36
|
+
*
|
|
37
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
38
|
+
*
|
|
39
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
40
|
+
*
|
|
41
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateWidgetSessionResponse
|
|
44
|
+
*/
|
|
45
|
+
resultsAccessKey: string;
|
|
34
46
|
}
|
|
35
47
|
/**
|
|
36
48
|
* Check if a given object implements the CreateWidgetSessionResponse interface.
|
|
@@ -23,6 +23,10 @@ exports.CreateWidgetSessionResponseToJSON = CreateWidgetSessionResponseToJSON;
|
|
|
23
23
|
function instanceOfCreateWidgetSessionResponse(value) {
|
|
24
24
|
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
|
|
29
|
+
return false;
|
|
26
30
|
return true;
|
|
27
31
|
}
|
|
28
32
|
function CreateWidgetSessionResponseFromJSON(json) {
|
|
@@ -34,7 +38,8 @@ function CreateWidgetSessionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
38
|
}
|
|
35
39
|
return {
|
|
36
40
|
'sessionId': json['sessionId'],
|
|
37
|
-
'launchUrl': json['launchUrl']
|
|
41
|
+
'launchUrl': json['launchUrl'],
|
|
42
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
45
|
function CreateWidgetSessionResponseToJSON(value) {
|
|
@@ -44,5 +49,6 @@ function CreateWidgetSessionResponseToJSON(value) {
|
|
|
44
49
|
return {
|
|
45
50
|
'sessionId': value['sessionId'],
|
|
46
51
|
'launchUrl': value['launchUrl'],
|
|
52
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
47
53
|
};
|
|
48
54
|
}
|
|
@@ -21,37 +21,37 @@ export interface DocumentData {
|
|
|
21
21
|
* @type {DocumentType}
|
|
22
22
|
* @memberof DocumentData
|
|
23
23
|
*/
|
|
24
|
-
type?: DocumentType;
|
|
24
|
+
type?: DocumentType | null;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof DocumentData
|
|
29
29
|
*/
|
|
30
|
-
number?: string;
|
|
30
|
+
number?: string | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Date}
|
|
34
34
|
* @memberof DocumentData
|
|
35
35
|
*/
|
|
36
|
-
issueDate?: Date;
|
|
36
|
+
issueDate?: Date | null;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {Date}
|
|
40
40
|
* @memberof DocumentData
|
|
41
41
|
*/
|
|
42
|
-
expirationDate?: Date;
|
|
42
|
+
expirationDate?: Date | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof DocumentData
|
|
47
47
|
*/
|
|
48
|
-
issuingCountry?: string;
|
|
48
|
+
issuingCountry?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof DocumentData
|
|
53
53
|
*/
|
|
54
|
-
issuingAuthority?: string;
|
|
54
|
+
issuingAuthority?: string | null;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Check if a given object implements the DocumentData interface.
|
|
@@ -47,8 +47,8 @@ function DocumentDataToJSON(value) {
|
|
|
47
47
|
return {
|
|
48
48
|
'type': (0, DocumentType_1.DocumentTypeToJSON)(value['type']),
|
|
49
49
|
'number': value['number'],
|
|
50
|
-
'issueDate': value['issueDate'] == null ? undefined : (
|
|
51
|
-
'expirationDate': value['expirationDate'] == null ? undefined : (
|
|
50
|
+
'issueDate': value['issueDate'] == null ? undefined : (value['issueDate'].toISOString().substring(0, 10)),
|
|
51
|
+
'expirationDate': value['expirationDate'] == null ? undefined : (value['expirationDate'].toISOString().substring(0, 10)),
|
|
52
52
|
'issuingCountry': value['issuingCountry'],
|
|
53
53
|
'issuingAuthority': value['issuingAuthority'],
|
|
54
54
|
};
|
|
@@ -28,7 +28,7 @@ export interface GetSessionResultResponse {
|
|
|
28
28
|
* @type {IdentityData}
|
|
29
29
|
* @memberof GetSessionResultResponse
|
|
30
30
|
*/
|
|
31
|
-
identityData?: IdentityData;
|
|
31
|
+
identityData?: IdentityData | null;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Check if a given object implements the GetSessionResultResponse interface.
|
|
@@ -20,31 +20,31 @@ export interface HttpValidationProblemDetails {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof HttpValidationProblemDetails
|
|
22
22
|
*/
|
|
23
|
-
type?: string;
|
|
23
|
+
type?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof HttpValidationProblemDetails
|
|
28
28
|
*/
|
|
29
|
-
title?: string;
|
|
29
|
+
title?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof HttpValidationProblemDetails
|
|
34
34
|
*/
|
|
35
|
-
status?: number;
|
|
35
|
+
status?: number | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof HttpValidationProblemDetails
|
|
40
40
|
*/
|
|
41
|
-
detail?: string;
|
|
41
|
+
detail?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof HttpValidationProblemDetails
|
|
46
46
|
*/
|
|
47
|
-
instance?: string;
|
|
47
|
+
instance?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {{ [key: string]: Array<string>; }}
|
|
@@ -23,25 +23,31 @@ export interface IdentityData {
|
|
|
23
23
|
* @type {string}
|
|
24
24
|
* @memberof IdentityData
|
|
25
25
|
*/
|
|
26
|
-
originatingProviderId?: string;
|
|
26
|
+
originatingProviderId?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof IdentityData
|
|
31
|
+
*/
|
|
32
|
+
originatingSubProviderId?: string | null;
|
|
27
33
|
/**
|
|
28
34
|
*
|
|
29
35
|
* @type {PersonData}
|
|
30
36
|
* @memberof IdentityData
|
|
31
37
|
*/
|
|
32
|
-
person?: PersonData;
|
|
38
|
+
person?: PersonData | null;
|
|
33
39
|
/**
|
|
34
40
|
*
|
|
35
41
|
* @type {DocumentData}
|
|
36
42
|
* @memberof IdentityData
|
|
37
43
|
*/
|
|
38
|
-
document?: DocumentData;
|
|
44
|
+
document?: DocumentData | null;
|
|
39
45
|
/**
|
|
40
46
|
*
|
|
41
47
|
* @type {AttachmentAccessKeys}
|
|
42
48
|
* @memberof IdentityData
|
|
43
49
|
*/
|
|
44
|
-
attachmentAccessKeys?: AttachmentAccessKeys;
|
|
50
|
+
attachmentAccessKeys?: AttachmentAccessKeys | null;
|
|
45
51
|
}
|
|
46
52
|
/**
|
|
47
53
|
* Check if a given object implements the IdentityData interface.
|
|
@@ -35,6 +35,7 @@ function IdentityDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'originatingProviderId': json['originatingProviderId'] == null ? undefined : json['originatingProviderId'],
|
|
38
|
+
'originatingSubProviderId': json['originatingSubProviderId'] == null ? undefined : json['originatingSubProviderId'],
|
|
38
39
|
'person': json['person'] == null ? undefined : (0, PersonData_1.PersonDataFromJSON)(json['person']),
|
|
39
40
|
'document': json['document'] == null ? undefined : (0, DocumentData_1.DocumentDataFromJSON)(json['document']),
|
|
40
41
|
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : (0, AttachmentAccessKeys_1.AttachmentAccessKeysFromJSON)(json['attachmentAccessKeys']),
|
|
@@ -46,6 +47,7 @@ function IdentityDataToJSON(value) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'originatingProviderId': value['originatingProviderId'],
|
|
50
|
+
'originatingSubProviderId': value['originatingSubProviderId'],
|
|
49
51
|
'person': (0, PersonData_1.PersonDataToJSON)(value['person']),
|
|
50
52
|
'document': (0, DocumentData_1.DocumentDataToJSON)(value['document']),
|
|
51
53
|
'attachmentAccessKeys': (0, AttachmentAccessKeys_1.AttachmentAccessKeysToJSON)(value['attachmentAccessKeys']),
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IdinInput
|
|
16
|
+
*/
|
|
17
|
+
export interface IdinInput {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the specific bank to invoke with IDIN.
|
|
20
|
+
*
|
|
21
|
+
* If not specified, the user will be prompted to select a bank.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IdinInput
|
|
24
|
+
*/
|
|
25
|
+
subProviderId?: string | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the IdinInput interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfIdinInput(value: object): value is IdinInput;
|
|
31
|
+
export declare function IdinInputFromJSON(json: any): IdinInput;
|
|
32
|
+
export declare function IdinInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdinInput;
|
|
33
|
+
export declare function IdinInputToJSON(value?: IdinInput | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfIdinInput = instanceOfIdinInput;
|
|
17
|
+
exports.IdinInputFromJSON = IdinInputFromJSON;
|
|
18
|
+
exports.IdinInputFromJSONTyped = IdinInputFromJSONTyped;
|
|
19
|
+
exports.IdinInputToJSON = IdinInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the IdinInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfIdinInput(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function IdinInputFromJSON(json) {
|
|
27
|
+
return IdinInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function IdinInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function IdinInputToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'subProviderId': value['subProviderId'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IndonesiaNikInput
|
|
16
|
+
*/
|
|
17
|
+
export interface IndonesiaNikInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's full name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndonesiaNikInput
|
|
22
|
+
*/
|
|
23
|
+
fullName: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof IndonesiaNikInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth: Date;
|
|
30
|
+
/**
|
|
31
|
+
* The user's Indonesia NIK ID number
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IndonesiaNikInput
|
|
34
|
+
*/
|
|
35
|
+
nikIdNumber: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IndonesiaNikInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfIndonesiaNikInput(value: object): value is IndonesiaNikInput;
|
|
41
|
+
export declare function IndonesiaNikInputFromJSON(json: any): IndonesiaNikInput;
|
|
42
|
+
export declare function IndonesiaNikInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaNikInput;
|
|
43
|
+
export declare function IndonesiaNikInputToJSON(value?: IndonesiaNikInput | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfIndonesiaNikInput = instanceOfIndonesiaNikInput;
|
|
17
|
+
exports.IndonesiaNikInputFromJSON = IndonesiaNikInputFromJSON;
|
|
18
|
+
exports.IndonesiaNikInputFromJSONTyped = IndonesiaNikInputFromJSONTyped;
|
|
19
|
+
exports.IndonesiaNikInputToJSON = IndonesiaNikInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the IndonesiaNikInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfIndonesiaNikInput(value) {
|
|
24
|
+
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nikIdNumber' in value) || value['nikIdNumber'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function IndonesiaNikInputFromJSON(json) {
|
|
33
|
+
return IndonesiaNikInputFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function IndonesiaNikInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'fullName': json['fullName'],
|
|
41
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
42
|
+
'nikIdNumber': json['nikIdNumber'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function IndonesiaNikInputToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'fullName': value['fullName'],
|
|
51
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
52
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const IntegrationLaunchMethod: {
|
|
17
17
|
readonly LaunchBrowser: "LaunchBrowser";
|
|
18
|
-
readonly
|
|
18
|
+
readonly None: "None";
|
|
19
19
|
readonly DeeplinkToMobile: "DeeplinkToMobile";
|
|
20
20
|
readonly ShowContent: "ShowContent";
|
|
21
21
|
};
|
|
@@ -24,7 +24,7 @@ exports.IntegrationLaunchMethodToJSON = IntegrationLaunchMethodToJSON;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.IntegrationLaunchMethod = {
|
|
26
26
|
LaunchBrowser: 'LaunchBrowser',
|
|
27
|
-
|
|
27
|
+
None: 'None',
|
|
28
28
|
DeeplinkToMobile: 'DeeplinkToMobile',
|
|
29
29
|
ShowContent: 'ShowContent'
|
|
30
30
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface KenyaNidInput
|
|
16
|
+
*/
|
|
17
|
+
export interface KenyaNidInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's first name as it appears in their National ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof KenyaNidInput
|
|
22
|
+
*/
|
|
23
|
+
firstName: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's middle name as it appears in their National ID (optional)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof KenyaNidInput
|
|
28
|
+
*/
|
|
29
|
+
middleName?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The user's middle name as it appears in their National ID (optional)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof KenyaNidInput
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof KenyaNidInput
|
|
40
|
+
*/
|
|
41
|
+
dateOfBirth: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The user's gender as it appears in their National ID (e.g., male, female)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof KenyaNidInput
|
|
46
|
+
*/
|
|
47
|
+
gender: string;
|
|
48
|
+
/**
|
|
49
|
+
* The user's South Kenya National ID number
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof KenyaNidInput
|
|
52
|
+
*/
|
|
53
|
+
nationalIdNumber: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the KenyaNidInput interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfKenyaNidInput(value: object): value is KenyaNidInput;
|
|
59
|
+
export declare function KenyaNidInputFromJSON(json: any): KenyaNidInput;
|
|
60
|
+
export declare function KenyaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidInput;
|
|
61
|
+
export declare function KenyaNidInputToJSON(value?: KenyaNidInput | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfKenyaNidInput = instanceOfKenyaNidInput;
|
|
17
|
+
exports.KenyaNidInputFromJSON = KenyaNidInputFromJSON;
|
|
18
|
+
exports.KenyaNidInputFromJSONTyped = KenyaNidInputFromJSONTyped;
|
|
19
|
+
exports.KenyaNidInputToJSON = KenyaNidInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the KenyaNidInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfKenyaNidInput(value) {
|
|
24
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('gender' in value) || value['gender'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function KenyaNidInputFromJSON(json) {
|
|
37
|
+
return KenyaNidInputFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function KenyaNidInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'firstName': json['firstName'],
|
|
45
|
+
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
46
|
+
'lastName': json['lastName'],
|
|
47
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
48
|
+
'gender': json['gender'],
|
|
49
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function KenyaNidInputToJSON(value) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'firstName': value['firstName'],
|
|
58
|
+
'middleName': value['middleName'],
|
|
59
|
+
'lastName': value['lastName'],
|
|
60
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
61
|
+
'gender': value['gender'],
|
|
62
|
+
'nationalIdNumber': value['nationalIdNumber'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const Language: {
|
|
17
|
+
readonly Lit: "LIT";
|
|
18
|
+
readonly Est: "EST";
|
|
19
|
+
readonly Eng: "ENG";
|
|
20
|
+
readonly Rus: "RUS";
|
|
21
|
+
};
|
|
22
|
+
export type Language = typeof Language[keyof typeof Language];
|
|
23
|
+
export declare function instanceOfLanguage(value: any): boolean;
|
|
24
|
+
export declare function LanguageFromJSON(json: any): Language;
|
|
25
|
+
export declare function LanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Language;
|
|
26
|
+
export declare function LanguageToJSON(value?: Language | null): any;
|