@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
|
@@ -24,25 +24,31 @@ export interface RecommendRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof RecommendRequest
|
|
26
26
|
*/
|
|
27
|
-
phoneNumber?: string;
|
|
27
|
+
phoneNumber?: string | null;
|
|
28
28
|
/**
|
|
29
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
30
|
* @type {Array<string>}
|
|
31
31
|
* @memberof RecommendRequest
|
|
32
32
|
*/
|
|
33
|
-
countries?: Array<string
|
|
33
|
+
countries?: Array<string> | null;
|
|
34
34
|
/**
|
|
35
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
36
|
* @type {Array<string>}
|
|
37
37
|
* @memberof RecommendRequest
|
|
38
38
|
*/
|
|
39
|
-
subdivisions?: Array<string
|
|
39
|
+
subdivisions?: Array<string> | null;
|
|
40
|
+
/**
|
|
41
|
+
* Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof RecommendRequest
|
|
44
|
+
*/
|
|
45
|
+
ipAddresses?: Array<string> | null;
|
|
40
46
|
/**
|
|
41
47
|
* If true, the recommendation will include providers that are disabled for the app
|
|
42
48
|
* @type {boolean}
|
|
43
49
|
* @memberof RecommendRequest
|
|
44
50
|
*/
|
|
45
|
-
includeDisabledProviders?: boolean;
|
|
51
|
+
includeDisabledProviders?: boolean | null;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -65,6 +71,7 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
65
71
|
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
66
72
|
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
67
73
|
'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
|
|
74
|
+
'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
|
|
68
75
|
'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
|
|
69
76
|
};
|
|
70
77
|
}
|
|
@@ -78,6 +85,7 @@ export function RecommendRequestToJSON(value?: RecommendRequest | null): any {
|
|
|
78
85
|
'phoneNumber': value['phoneNumber'],
|
|
79
86
|
'countries': value['countries'],
|
|
80
87
|
'subdivisions': value['subdivisions'],
|
|
88
|
+
'ipAddresses': value['ipAddresses'],
|
|
81
89
|
'includeDisabledProviders': value['includeDisabledProviders'],
|
|
82
90
|
};
|
|
83
91
|
}
|
package/src/models/Session.ts
CHANGED
|
@@ -0,0 +1,88 @@
|
|
|
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 SouthAfricaNidInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SouthAfricaNidInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's full name as it appears in their National ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SouthAfricaNidInput
|
|
26
|
+
*/
|
|
27
|
+
fullName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof SouthAfricaNidInput
|
|
32
|
+
*/
|
|
33
|
+
dateOfBirth: Date;
|
|
34
|
+
/**
|
|
35
|
+
* The user's gender as it appears in their National ID (e.g., male, female)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SouthAfricaNidInput
|
|
38
|
+
*/
|
|
39
|
+
gender: string;
|
|
40
|
+
/**
|
|
41
|
+
* The user's South African National ID number
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SouthAfricaNidInput
|
|
44
|
+
*/
|
|
45
|
+
nationalIdNumber: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the SouthAfricaNidInput interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfSouthAfricaNidInput(value: object): value is SouthAfricaNidInput {
|
|
52
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
53
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
54
|
+
if (!('gender' in value) || value['gender'] === undefined) return false;
|
|
55
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SouthAfricaNidInputFromJSON(json: any): SouthAfricaNidInput {
|
|
60
|
+
return SouthAfricaNidInputFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SouthAfricaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SouthAfricaNidInput {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'fullName': json['fullName'],
|
|
70
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
71
|
+
'gender': json['gender'],
|
|
72
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SouthAfricaNidInputToJSON(value?: SouthAfricaNidInput | null): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'fullName': value['fullName'],
|
|
83
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
84
|
+
'gender': value['gender'],
|
|
85
|
+
'nationalIdNumber': value['nationalIdNumber'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -23,14 +23,18 @@ export * from './GetSessionResultRequest';
|
|
|
23
23
|
export * from './GetSessionResultResponse';
|
|
24
24
|
export * from './HttpValidationProblemDetails';
|
|
25
25
|
export * from './IdentityData';
|
|
26
|
+
export * from './IndonesiaNikInput';
|
|
26
27
|
export * from './IntegrationCapability';
|
|
27
28
|
export * from './IntegrationLaunchMethod';
|
|
28
29
|
export * from './IntegrationStep';
|
|
30
|
+
export * from './KenyaNidInput';
|
|
29
31
|
export * from './KnownAddress';
|
|
30
32
|
export * from './KnownIdentityData';
|
|
31
33
|
export * from './KnownPersonData';
|
|
32
34
|
export * from './ListProvidersResponse';
|
|
33
35
|
export * from './ListSessionsResponse';
|
|
36
|
+
export * from './MexicoCurpInput';
|
|
37
|
+
export * from './NigeriaNinInput';
|
|
34
38
|
export * from './OrderDirection';
|
|
35
39
|
export * from './PersonData';
|
|
36
40
|
export * from './PhilippineMatchInput';
|
|
@@ -50,4 +54,5 @@ export * from './Session';
|
|
|
50
54
|
export * from './SessionErrorCode';
|
|
51
55
|
export * from './SessionOrdering';
|
|
52
56
|
export * from './Sex';
|
|
57
|
+
export * from './SouthAfricaNidInput';
|
|
53
58
|
export * from './StepRefreshInfo';
|