@trinsic/api 2.0.0-alpha2 → 2.0.0-alpha3
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 +5 -0
- package/dist/apis/NetworkApi.d.ts +4 -4
- package/dist/apis/NetworkApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +4 -4
- package/dist/esm/apis/NetworkApi.js +2 -2
- 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 +1 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +3 -3
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +1 -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 +4 -4
- package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/esm/models/IndonesiaNikInput.js +48 -0
- 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/KnownAddress.d.ts +8 -8
- package/dist/esm/models/KnownIdentityData.d.ts +1 -1
- package/dist/esm/models/KnownPersonData.d.ts +8 -8
- package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
- package/dist/esm/models/MexicoCurpInput.js +40 -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/ProviderInfo.d.ts +1 -1
- package/dist/esm/models/ProviderInput.d.ts +41 -6
- package/dist/esm/models/ProviderInput.js +15 -0
- package/dist/esm/models/RecommendRequest.d.ts +10 -4
- package/dist/esm/models/RecommendRequest.js +2 -0
- package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/ResultCollection.d.ts +1 -1
- package/dist/esm/models/Session.d.ts +1 -1
- package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/esm/models/SouthAfricaNidInput.js +52 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- 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 +1 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +3 -3
- package/dist/models/CreateWidgetSessionResponse.d.ts +1 -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 +4 -4
- package/dist/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/models/IndonesiaNikInput.js +54 -0
- 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/KnownAddress.d.ts +8 -8
- package/dist/models/KnownIdentityData.d.ts +1 -1
- package/dist/models/KnownPersonData.d.ts +8 -8
- package/dist/models/MexicoCurpInput.d.ts +31 -0
- package/dist/models/MexicoCurpInput.js +46 -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/ProviderInfo.d.ts +1 -1
- package/dist/models/ProviderInput.d.ts +41 -6
- package/dist/models/ProviderInput.js +15 -0
- package/dist/models/RecommendRequest.d.ts +10 -4
- package/dist/models/RecommendRequest.js +2 -0
- package/dist/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/ResultCollection.d.ts +1 -1
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/models/SouthAfricaNidInput.js +58 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/NetworkApi.ts +4 -4
- 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 +3 -3
- package/src/models/CreateAdvancedProviderSessionRequest.ts +3 -3
- package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
- package/src/models/CreateHostedProviderSessionResponse.ts +1 -1
- package/src/models/CreateWidgetSessionRequest.ts +3 -3
- package/src/models/CreateWidgetSessionResponse.ts +1 -1
- 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 +4 -4
- package/src/models/IndonesiaNikInput.ts +79 -0
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/KenyaNidInput.ts +105 -0
- package/src/models/KnownAddress.ts +8 -8
- package/src/models/KnownIdentityData.ts +1 -1
- package/src/models/KnownPersonData.ts +8 -8
- package/src/models/MexicoCurpInput.ts +61 -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/ProviderInfo.ts +1 -1
- package/src/models/ProviderInput.ts +76 -6
- package/src/models/RecommendRequest.ts +12 -4
- package/src/models/RefreshStepContentRequest.ts +1 -1
- package/src/models/ResultCollection.ts +1 -1
- package/src/models/Session.ts +1 -1
- package/src/models/SouthAfricaNidInput.ts +88 -0
- package/src/models/index.ts +5 -0
package/src/apis/NetworkApi.ts
CHANGED
|
@@ -58,7 +58,7 @@ export interface NetworkApiInterface {
|
|
|
58
58
|
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
61
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
62
62
|
* @summary Recommend Providers
|
|
63
63
|
* @param {RecommendRequest} [recommendRequest]
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
@@ -68,7 +68,7 @@ export interface NetworkApiInterface {
|
|
|
68
68
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
71
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
72
72
|
* Recommend Providers
|
|
73
73
|
*/
|
|
74
74
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -117,7 +117,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
120
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
121
121
|
* Recommend Providers
|
|
122
122
|
*/
|
|
123
123
|
async recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>> {
|
|
@@ -147,7 +147,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
150
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
151
151
|
* Recommend Providers
|
|
152
152
|
*/
|
|
153
153
|
async recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse> {
|
|
@@ -24,13 +24,13 @@ export interface AadhaarInput {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AadhaarInput
|
|
26
26
|
*/
|
|
27
|
-
fullName?: string;
|
|
27
|
+
fullName?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
30
|
* @type {Date}
|
|
31
31
|
* @memberof AadhaarInput
|
|
32
32
|
*/
|
|
33
|
-
dateOfBirth?: Date;
|
|
33
|
+
dateOfBirth?: Date | null;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -62,7 +62,7 @@ export function AadhaarInputToJSON(value?: AadhaarInput | null): any {
|
|
|
62
62
|
return {
|
|
63
63
|
|
|
64
64
|
'fullName': value['fullName'],
|
|
65
|
-
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
65
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
|
package/src/models/Address.ts
CHANGED
|
@@ -24,49 +24,49 @@ export interface Address {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof Address
|
|
26
26
|
*/
|
|
27
|
-
line1?: string;
|
|
27
|
+
line1?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof Address
|
|
32
32
|
*/
|
|
33
|
-
line2?: string;
|
|
33
|
+
line2?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof Address
|
|
38
38
|
*/
|
|
39
|
-
line3?: string;
|
|
39
|
+
line3?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof Address
|
|
44
44
|
*/
|
|
45
|
-
city?: string;
|
|
45
|
+
city?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof Address
|
|
50
50
|
*/
|
|
51
|
-
subdivision?: string;
|
|
51
|
+
subdivision?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof Address
|
|
56
56
|
*/
|
|
57
|
-
postalCode?: string;
|
|
57
|
+
postalCode?: string | null;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof Address
|
|
62
62
|
*/
|
|
63
|
-
country?: string;
|
|
63
|
+
country?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof Address
|
|
68
68
|
*/
|
|
69
|
-
fullAddress?: string;
|
|
69
|
+
fullAddress?: string | null;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
@@ -31,25 +31,25 @@ export interface AttachmentAccessKeys {
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof AttachmentAccessKeys
|
|
33
33
|
*/
|
|
34
|
-
selfie?: string;
|
|
34
|
+
selfie?: string | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof AttachmentAccessKeys
|
|
39
39
|
*/
|
|
40
|
-
documentFront?: string;
|
|
40
|
+
documentFront?: string | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof AttachmentAccessKeys
|
|
45
45
|
*/
|
|
46
|
-
documentBack?: string;
|
|
46
|
+
documentBack?: string | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof AttachmentAccessKeys
|
|
51
51
|
*/
|
|
52
|
-
documentPortrait?: string;
|
|
52
|
+
documentPortrait?: string | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {ProviderAttachments}
|
|
@@ -24,25 +24,25 @@ export interface BangladeshNationalIdInput {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof BangladeshNationalIdInput
|
|
26
26
|
*/
|
|
27
|
-
nationalIdNumber?: string;
|
|
27
|
+
nationalIdNumber?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
30
|
* @type {Date}
|
|
31
31
|
* @memberof BangladeshNationalIdInput
|
|
32
32
|
*/
|
|
33
|
-
dateOfBirth?: Date;
|
|
33
|
+
dateOfBirth?: Date | null;
|
|
34
34
|
/**
|
|
35
35
|
* The user's full name
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof BangladeshNationalIdInput
|
|
38
38
|
*/
|
|
39
|
-
name?: string;
|
|
39
|
+
name?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* The base64-encoded bytes of the photo collected from the user
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof BangladeshNationalIdInput
|
|
44
44
|
*/
|
|
45
|
-
photoBase64?: string;
|
|
45
|
+
photoBase64?: string | null;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -76,7 +76,7 @@ export function BangladeshNationalIdInputToJSON(value?: BangladeshNationalIdInpu
|
|
|
76
76
|
return {
|
|
77
77
|
|
|
78
78
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
79
|
-
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
79
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
|
|
80
80
|
'name': value['name'],
|
|
81
81
|
'photoBase64': value['photoBase64'],
|
|
82
82
|
};
|
|
@@ -36,7 +36,7 @@ export interface BrazilDigitalCnhInput {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof BrazilDigitalCnhInput
|
|
38
38
|
*/
|
|
39
|
-
digitalCnhFile?: string;
|
|
39
|
+
digitalCnhFile?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* The MIME Type of the file contained in `DigitalCnhFile`.
|
|
42
42
|
*
|
|
@@ -44,13 +44,13 @@ export interface BrazilDigitalCnhInput {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof BrazilDigitalCnhInput
|
|
46
46
|
*/
|
|
47
|
-
digitalCnhFileContentType?: string;
|
|
47
|
+
digitalCnhFileContentType?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
* The raw bytes of the image of the user's face, collected for biometric comparison.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof BrazilDigitalCnhInput
|
|
52
52
|
*/
|
|
53
|
-
facialBiometryPhoto?: string;
|
|
53
|
+
facialBiometryPhoto?: string | null;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -43,7 +43,7 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
43
43
|
* @type {ProviderInput}
|
|
44
44
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
45
45
|
*/
|
|
46
|
-
providerInput?: ProviderInput;
|
|
46
|
+
providerInput?: ProviderInput | null;
|
|
47
47
|
/**
|
|
48
48
|
* The Redirect URL to which the user should be sent after the session is complete.
|
|
49
49
|
*
|
|
@@ -51,7 +51,7 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
53
53
|
*/
|
|
54
|
-
redirectUrl?: string;
|
|
54
|
+
redirectUrl?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
* The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
|
|
57
57
|
*
|
|
@@ -87,7 +87,7 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
87
87
|
* @type {boolean}
|
|
88
88
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
89
89
|
*/
|
|
90
|
-
fallbackToHostedUI?: boolean;
|
|
90
|
+
fallbackToHostedUI?: boolean | null;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -34,13 +34,13 @@ export interface CreateWidgetSessionRequest {
|
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof CreateWidgetSessionRequest
|
|
36
36
|
*/
|
|
37
|
-
redirectUrl?: string;
|
|
37
|
+
redirectUrl?: string | null;
|
|
38
38
|
/**
|
|
39
39
|
* The list of allowed identity providers. If not specified, all available providers will be allowed.
|
|
40
40
|
* @type {Array<string>}
|
|
41
41
|
* @memberof CreateWidgetSessionRequest
|
|
42
42
|
*/
|
|
43
|
-
providers?: Array<string
|
|
43
|
+
providers?: Array<string> | null;
|
|
44
44
|
/**
|
|
45
45
|
* Known identity data of an individual being verified.
|
|
46
46
|
*
|
|
@@ -48,7 +48,7 @@ export interface CreateWidgetSessionRequest {
|
|
|
48
48
|
* @type {KnownIdentityData}
|
|
49
49
|
* @memberof CreateWidgetSessionRequest
|
|
50
50
|
*/
|
|
51
|
-
knownIdentityData?: KnownIdentityData;
|
|
51
|
+
knownIdentityData?: KnownIdentityData | null;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -31,37 +31,37 @@ export interface DocumentData {
|
|
|
31
31
|
* @type {DocumentType}
|
|
32
32
|
* @memberof DocumentData
|
|
33
33
|
*/
|
|
34
|
-
type?: DocumentType;
|
|
34
|
+
type?: DocumentType | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof DocumentData
|
|
39
39
|
*/
|
|
40
|
-
number?: string;
|
|
40
|
+
number?: string | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {Date}
|
|
44
44
|
* @memberof DocumentData
|
|
45
45
|
*/
|
|
46
|
-
issueDate?: Date;
|
|
46
|
+
issueDate?: Date | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {Date}
|
|
50
50
|
* @memberof DocumentData
|
|
51
51
|
*/
|
|
52
|
-
expirationDate?: Date;
|
|
52
|
+
expirationDate?: Date | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof DocumentData
|
|
57
57
|
*/
|
|
58
|
-
issuingCountry?: string;
|
|
58
|
+
issuingCountry?: string | null;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof DocumentData
|
|
63
63
|
*/
|
|
64
|
-
issuingAuthority?: string;
|
|
64
|
+
issuingAuthority?: string | null;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
|
|
@@ -100,8 +100,8 @@ export function DocumentDataToJSON(value?: DocumentData | null): any {
|
|
|
100
100
|
|
|
101
101
|
'type': DocumentTypeToJSON(value['type']),
|
|
102
102
|
'number': value['number'],
|
|
103
|
-
'issueDate': value['issueDate'] == null ? undefined : ((value['issueDate']).toISOString().substring(0,10)),
|
|
104
|
-
'expirationDate': value['expirationDate'] == null ? undefined : ((value['expirationDate']).toISOString().substring(0,10)),
|
|
103
|
+
'issueDate': value['issueDate'] == null ? undefined : ((value['issueDate'] as any).toISOString().substring(0,10)),
|
|
104
|
+
'expirationDate': value['expirationDate'] == null ? undefined : ((value['expirationDate'] as any).toISOString().substring(0,10)),
|
|
105
105
|
'issuingCountry': value['issuingCountry'],
|
|
106
106
|
'issuingAuthority': value['issuingAuthority'],
|
|
107
107
|
};
|
|
@@ -24,31 +24,31 @@ export interface HttpValidationProblemDetails {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof HttpValidationProblemDetails
|
|
26
26
|
*/
|
|
27
|
-
type?: string;
|
|
27
|
+
type?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof HttpValidationProblemDetails
|
|
32
32
|
*/
|
|
33
|
-
title?: string;
|
|
33
|
+
title?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof HttpValidationProblemDetails
|
|
38
38
|
*/
|
|
39
|
-
status?: number;
|
|
39
|
+
status?: number | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof HttpValidationProblemDetails
|
|
44
44
|
*/
|
|
45
|
-
detail?: string;
|
|
45
|
+
detail?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof HttpValidationProblemDetails
|
|
50
50
|
*/
|
|
51
|
-
instance?: string;
|
|
51
|
+
instance?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {{ [key: string]: Array<string>; }}
|
|
@@ -43,25 +43,25 @@ export interface IdentityData {
|
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof IdentityData
|
|
45
45
|
*/
|
|
46
|
-
originatingProviderId?: string;
|
|
46
|
+
originatingProviderId?: string | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PersonData}
|
|
50
50
|
* @memberof IdentityData
|
|
51
51
|
*/
|
|
52
|
-
person?: PersonData;
|
|
52
|
+
person?: PersonData | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {DocumentData}
|
|
56
56
|
* @memberof IdentityData
|
|
57
57
|
*/
|
|
58
|
-
document?: DocumentData;
|
|
58
|
+
document?: DocumentData | null;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {AttachmentAccessKeys}
|
|
62
62
|
* @memberof IdentityData
|
|
63
63
|
*/
|
|
64
|
-
attachmentAccessKeys?: AttachmentAccessKeys;
|
|
64
|
+
attachmentAccessKeys?: AttachmentAccessKeys | null;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IndonesiaNikInput
|
|
20
|
+
*/
|
|
21
|
+
export interface IndonesiaNikInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's full name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndonesiaNikInput
|
|
26
|
+
*/
|
|
27
|
+
fullName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof IndonesiaNikInput
|
|
32
|
+
*/
|
|
33
|
+
dateOfBirth: Date;
|
|
34
|
+
/**
|
|
35
|
+
* The user's Indonesia NIK ID number
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndonesiaNikInput
|
|
38
|
+
*/
|
|
39
|
+
nikIdNumber: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IndonesiaNikInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIndonesiaNikInput(value: object): value is IndonesiaNikInput {
|
|
46
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
47
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
48
|
+
if (!('nikIdNumber' in value) || value['nikIdNumber'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IndonesiaNikInputFromJSON(json: any): IndonesiaNikInput {
|
|
53
|
+
return IndonesiaNikInputFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IndonesiaNikInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaNikInput {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'fullName': json['fullName'],
|
|
63
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
64
|
+
'nikIdNumber': json['nikIdNumber'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IndonesiaNikInputToJSON(value?: IndonesiaNikInput | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'fullName': value['fullName'],
|
|
75
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
76
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface KenyaNidInput
|
|
20
|
+
*/
|
|
21
|
+
export interface KenyaNidInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's first name as it appears in their National ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KenyaNidInput
|
|
26
|
+
*/
|
|
27
|
+
firstName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The user's middle name as it appears in their National ID (optional)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof KenyaNidInput
|
|
32
|
+
*/
|
|
33
|
+
middleName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The user's middle name as it appears in their National ID (optional)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof KenyaNidInput
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof KenyaNidInput
|
|
44
|
+
*/
|
|
45
|
+
dateOfBirth: Date;
|
|
46
|
+
/**
|
|
47
|
+
* The user's gender as it appears in their National ID (e.g., male, female)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof KenyaNidInput
|
|
50
|
+
*/
|
|
51
|
+
gender: string;
|
|
52
|
+
/**
|
|
53
|
+
* The user's South Kenya National ID number
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof KenyaNidInput
|
|
56
|
+
*/
|
|
57
|
+
nationalIdNumber: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the KenyaNidInput interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfKenyaNidInput(value: object): value is KenyaNidInput {
|
|
64
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
65
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
66
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
67
|
+
if (!('gender' in value) || value['gender'] === undefined) return false;
|
|
68
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function KenyaNidInputFromJSON(json: any): KenyaNidInput {
|
|
73
|
+
return KenyaNidInputFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function KenyaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidInput {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'firstName': json['firstName'],
|
|
83
|
+
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
84
|
+
'lastName': json['lastName'],
|
|
85
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
86
|
+
'gender': json['gender'],
|
|
87
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function KenyaNidInputToJSON(value?: KenyaNidInput | null): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'firstName': value['firstName'],
|
|
98
|
+
'middleName': value['middleName'],
|
|
99
|
+
'lastName': value['lastName'],
|
|
100
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
101
|
+
'gender': value['gender'],
|
|
102
|
+
'nationalIdNumber': value['nationalIdNumber'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|