@trinsic/api 2.3.0-alpha1 → 2.3.0-alpha2
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 +7 -0
- package/dist/esm/models/AttachmentAccessKeys.d.ts +6 -0
- package/dist/esm/models/AttachmentAccessKeys.js +2 -0
- package/dist/esm/models/KenyaNidBiometric2Input.d.ts +47 -0
- package/dist/esm/models/KenyaNidBiometric2Input.js +45 -0
- package/dist/esm/models/KenyaNidInput.d.ts +1 -1
- package/dist/esm/models/KenyaNidLookup2Input.d.ts +32 -0
- package/dist/esm/models/KenyaNidLookup2Input.js +41 -0
- package/dist/esm/models/KenyaNidMatch2Input.d.ts +63 -0
- package/dist/esm/models/KenyaNidMatch2Input.js +52 -0
- package/dist/esm/models/NigeriaNinInput.d.ts +1 -1
- package/dist/esm/models/PhilippinesDigitalNidProviderOutput.d.ts +32 -0
- package/dist/esm/models/PhilippinesDigitalNidProviderOutput.js +43 -0
- package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.d.ts +32 -0
- package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.js +43 -0
- package/dist/esm/models/ProviderInput.d.ts +28 -0
- package/dist/esm/models/ProviderInput.js +12 -0
- package/dist/esm/models/ProviderOutput.d.ts +14 -0
- package/dist/esm/models/ProviderOutput.js +6 -0
- package/dist/esm/models/SexV1.d.ts +27 -0
- package/dist/esm/models/SexV1.js +45 -0
- package/dist/esm/models/SouthAfricaNidInput.d.ts +1 -1
- package/dist/esm/models/SouthAfricaNidLookup2Input.d.ts +32 -0
- package/dist/esm/models/SouthAfricaNidLookup2Input.js +41 -0
- package/dist/esm/models/SpidProviderOutput.d.ts +72 -10
- package/dist/esm/models/SpidProviderOutput.js +26 -4
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AttachmentAccessKeys.d.ts +6 -0
- package/dist/models/AttachmentAccessKeys.js +2 -0
- package/dist/models/KenyaNidBiometric2Input.d.ts +47 -0
- package/dist/models/KenyaNidBiometric2Input.js +52 -0
- package/dist/models/KenyaNidInput.d.ts +1 -1
- package/dist/models/KenyaNidLookup2Input.d.ts +32 -0
- package/dist/models/KenyaNidLookup2Input.js +48 -0
- package/dist/models/KenyaNidMatch2Input.d.ts +63 -0
- package/dist/models/KenyaNidMatch2Input.js +59 -0
- package/dist/models/NigeriaNinInput.d.ts +1 -1
- package/dist/models/PhilippinesDigitalNidProviderOutput.d.ts +32 -0
- package/dist/models/PhilippinesDigitalNidProviderOutput.js +50 -0
- package/dist/models/PhilippinesPhysicalNidProviderOutput.d.ts +32 -0
- package/dist/models/PhilippinesPhysicalNidProviderOutput.js +50 -0
- package/dist/models/ProviderInput.d.ts +28 -0
- package/dist/models/ProviderInput.js +12 -0
- package/dist/models/ProviderOutput.d.ts +14 -0
- package/dist/models/ProviderOutput.js +6 -0
- package/dist/models/SexV1.d.ts +27 -0
- package/dist/models/SexV1.js +53 -0
- package/dist/models/SouthAfricaNidInput.d.ts +1 -1
- package/dist/models/SouthAfricaNidLookup2Input.d.ts +32 -0
- package/dist/models/SouthAfricaNidLookup2Input.js +48 -0
- package/dist/models/SpidProviderOutput.d.ts +72 -10
- package/dist/models/SpidProviderOutput.js +26 -4
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/models/AttachmentAccessKeys.ts +8 -0
- package/src/models/KenyaNidBiometric2Input.ts +84 -0
- package/src/models/KenyaNidInput.ts +1 -1
- package/src/models/KenyaNidLookup2Input.ts +65 -0
- package/src/models/KenyaNidMatch2Input.ts +115 -0
- package/src/models/NigeriaNinInput.ts +1 -1
- package/src/models/PhilippinesDigitalNidProviderOutput.ts +66 -0
- package/src/models/PhilippinesPhysicalNidProviderOutput.ts +66 -0
- package/src/models/ProviderInput.ts +60 -0
- package/src/models/ProviderOutput.ts +30 -0
- package/src/models/SexV1.ts +55 -0
- package/src/models/SouthAfricaNidInput.ts +1 -1
- package/src/models/SouthAfricaNidLookup2Input.ts +65 -0
- package/src/models/SpidProviderOutput.ts +96 -14
- package/src/models/index.ts +7 -0
|
@@ -25,23 +25,23 @@ export interface SpidProviderOutput {
|
|
|
25
25
|
*/
|
|
26
26
|
billingInformation?: SpidBillingInformation | null;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Unique user identifier contained within the SPID identity.
|
|
28
|
+
* The SPID Entity ID of the Identity Provider which issued the SPID identity.
|
|
29
|
+
*
|
|
30
|
+
* This is an HTTPS URI which uniquely identifies the IdP within the SPID federation.
|
|
31
|
+
*
|
|
32
|
+
* A normalized / simplified representation of this value is present in the `originatingSubProviderId` field in Trinsic's normalized data model.
|
|
35
33
|
* @type {string}
|
|
36
34
|
* @memberof SpidProviderOutput
|
|
37
35
|
*/
|
|
38
|
-
|
|
36
|
+
identityProviderEntityId: string;
|
|
39
37
|
/**
|
|
40
|
-
*
|
|
38
|
+
* The identifier of the user's SPID credential.
|
|
39
|
+
*
|
|
40
|
+
* This uniquely identifies the credential within the SPID federation.
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof SpidProviderOutput
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
spidCode: string;
|
|
45
45
|
/**
|
|
46
46
|
* Expiration date of the user's SPID credential.
|
|
47
47
|
*
|
|
@@ -51,6 +51,68 @@ export interface SpidProviderOutput {
|
|
|
51
51
|
* @memberof SpidProviderOutput
|
|
52
52
|
*/
|
|
53
53
|
spidCredentialExpirationDate?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
* The user's place of birth.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SpidProviderOutput
|
|
58
|
+
*/
|
|
59
|
+
placeOfBirth?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The user's county of birth.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SpidProviderOutput
|
|
64
|
+
*/
|
|
65
|
+
countyOfBirth?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The raw, space-separated string value for the "IdCard" field from the SPID identity.
|
|
68
|
+
*
|
|
69
|
+
* Trinsic additionally parses this field and uses it to populate the `Document` object in the normalized data model.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof SpidProviderOutput
|
|
72
|
+
*/
|
|
73
|
+
rawIdCard?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The email address of the user.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof SpidProviderOutput
|
|
78
|
+
*/
|
|
79
|
+
email?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The digital address of the user.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof SpidProviderOutput
|
|
84
|
+
*/
|
|
85
|
+
digitalAddress?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Fiscal tax number for the subject.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof SpidProviderOutput
|
|
90
|
+
*/
|
|
91
|
+
fiscalNumber?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* VAT number for the subject.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof SpidProviderOutput
|
|
96
|
+
*/
|
|
97
|
+
ivaCode?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* The name of the company which the user is associated with.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof SpidProviderOutput
|
|
102
|
+
*/
|
|
103
|
+
companyName?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* The fiscal tax number of the company which the user is associated with.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof SpidProviderOutput
|
|
108
|
+
*/
|
|
109
|
+
companyFiscalNumber?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* The registered office address of the company which the user is associated with.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof SpidProviderOutput
|
|
114
|
+
*/
|
|
115
|
+
registeredOffice?: string | null;
|
|
54
116
|
}
|
|
55
117
|
/**
|
|
56
118
|
* Check if a given object implements the SpidProviderOutput interface.
|
|
@@ -23,6 +23,10 @@ const SpidBillingInformation_1 = require("./SpidBillingInformation");
|
|
|
23
23
|
* Check if a given object implements the SpidProviderOutput interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfSpidProviderOutput(value) {
|
|
26
|
+
if (!('identityProviderEntityId' in value) || value['identityProviderEntityId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('spidCode' in value) || value['spidCode'] === undefined)
|
|
29
|
+
return false;
|
|
26
30
|
return true;
|
|
27
31
|
}
|
|
28
32
|
function SpidProviderOutputFromJSON(json) {
|
|
@@ -34,10 +38,19 @@ function SpidProviderOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
38
|
}
|
|
35
39
|
return {
|
|
36
40
|
'billingInformation': json['billingInformation'] == null ? undefined : (0, SpidBillingInformation_1.SpidBillingInformationFromJSON)(json['billingInformation']),
|
|
41
|
+
'identityProviderEntityId': json['identityProviderEntityId'],
|
|
42
|
+
'spidCode': json['spidCode'],
|
|
43
|
+
'spidCredentialExpirationDate': json['spidCredentialExpirationDate'] == null ? undefined : (new Date(json['spidCredentialExpirationDate'])),
|
|
44
|
+
'placeOfBirth': json['placeOfBirth'] == null ? undefined : json['placeOfBirth'],
|
|
45
|
+
'countyOfBirth': json['countyOfBirth'] == null ? undefined : json['countyOfBirth'],
|
|
46
|
+
'rawIdCard': json['rawIdCard'] == null ? undefined : json['rawIdCard'],
|
|
47
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
48
|
+
'digitalAddress': json['digitalAddress'] == null ? undefined : json['digitalAddress'],
|
|
37
49
|
'fiscalNumber': json['fiscalNumber'] == null ? undefined : json['fiscalNumber'],
|
|
38
|
-
'spidCode': json['spidCode'] == null ? undefined : json['spidCode'],
|
|
39
50
|
'ivaCode': json['ivaCode'] == null ? undefined : json['ivaCode'],
|
|
40
|
-
'
|
|
51
|
+
'companyName': json['companyName'] == null ? undefined : json['companyName'],
|
|
52
|
+
'companyFiscalNumber': json['companyFiscalNumber'] == null ? undefined : json['companyFiscalNumber'],
|
|
53
|
+
'registeredOffice': json['registeredOffice'] == null ? undefined : json['registeredOffice'],
|
|
41
54
|
};
|
|
42
55
|
}
|
|
43
56
|
function SpidProviderOutputToJSON(json) {
|
|
@@ -49,9 +62,18 @@ function SpidProviderOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
62
|
}
|
|
50
63
|
return {
|
|
51
64
|
'billingInformation': (0, SpidBillingInformation_1.SpidBillingInformationToJSON)(value['billingInformation']),
|
|
52
|
-
'
|
|
65
|
+
'identityProviderEntityId': value['identityProviderEntityId'],
|
|
53
66
|
'spidCode': value['spidCode'],
|
|
54
|
-
'ivaCode': value['ivaCode'],
|
|
55
67
|
'spidCredentialExpirationDate': value['spidCredentialExpirationDate'] == null ? undefined : (value['spidCredentialExpirationDate'].toISOString().substring(0, 10)),
|
|
68
|
+
'placeOfBirth': value['placeOfBirth'],
|
|
69
|
+
'countyOfBirth': value['countyOfBirth'],
|
|
70
|
+
'rawIdCard': value['rawIdCard'],
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'digitalAddress': value['digitalAddress'],
|
|
73
|
+
'fiscalNumber': value['fiscalNumber'],
|
|
74
|
+
'ivaCode': value['ivaCode'],
|
|
75
|
+
'companyName': value['companyName'],
|
|
76
|
+
'companyFiscalNumber': value['companyFiscalNumber'],
|
|
77
|
+
'registeredOffice': value['registeredOffice'],
|
|
56
78
|
};
|
|
57
79
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -42,7 +42,10 @@ export * from './IndonesiaNikInput';
|
|
|
42
42
|
export * from './IntegrationCapability';
|
|
43
43
|
export * from './IntegrationLaunchMethod';
|
|
44
44
|
export * from './IntegrationStep';
|
|
45
|
+
export * from './KenyaNidBiometric2Input';
|
|
45
46
|
export * from './KenyaNidInput';
|
|
47
|
+
export * from './KenyaNidLookup2Input';
|
|
48
|
+
export * from './KenyaNidMatch2Input';
|
|
46
49
|
export * from './Language';
|
|
47
50
|
export * from './ListEnvironmentRedirectUrisResponse';
|
|
48
51
|
export * from './ListProviderContractsResponse';
|
|
@@ -63,6 +66,8 @@ export * from './OrderDirection';
|
|
|
63
66
|
export * from './PersonData';
|
|
64
67
|
export * from './PhilippineMatchInput';
|
|
65
68
|
export * from './PhilippineQRInput';
|
|
69
|
+
export * from './PhilippinesDigitalNidProviderOutput';
|
|
70
|
+
export * from './PhilippinesPhysicalNidProviderOutput';
|
|
66
71
|
export * from './ProblemDetails';
|
|
67
72
|
export * from './ProviderAttachments';
|
|
68
73
|
export * from './ProviderContract';
|
|
@@ -83,8 +88,10 @@ export * from './Session';
|
|
|
83
88
|
export * from './SessionErrorCode';
|
|
84
89
|
export * from './SessionOrdering';
|
|
85
90
|
export * from './Sex';
|
|
91
|
+
export * from './SexV1';
|
|
86
92
|
export * from './SmartIdInput';
|
|
87
93
|
export * from './SouthAfricaNidInput';
|
|
94
|
+
export * from './SouthAfricaNidLookup2Input';
|
|
88
95
|
export * from './SpidBillingInformation';
|
|
89
96
|
export * from './SpidInput';
|
|
90
97
|
export * from './SpidProviderOutput';
|
package/dist/models/index.js
CHANGED
|
@@ -60,7 +60,10 @@ __exportStar(require("./IndonesiaNikInput"), exports);
|
|
|
60
60
|
__exportStar(require("./IntegrationCapability"), exports);
|
|
61
61
|
__exportStar(require("./IntegrationLaunchMethod"), exports);
|
|
62
62
|
__exportStar(require("./IntegrationStep"), exports);
|
|
63
|
+
__exportStar(require("./KenyaNidBiometric2Input"), exports);
|
|
63
64
|
__exportStar(require("./KenyaNidInput"), exports);
|
|
65
|
+
__exportStar(require("./KenyaNidLookup2Input"), exports);
|
|
66
|
+
__exportStar(require("./KenyaNidMatch2Input"), exports);
|
|
64
67
|
__exportStar(require("./Language"), exports);
|
|
65
68
|
__exportStar(require("./ListEnvironmentRedirectUrisResponse"), exports);
|
|
66
69
|
__exportStar(require("./ListProviderContractsResponse"), exports);
|
|
@@ -81,6 +84,8 @@ __exportStar(require("./OrderDirection"), exports);
|
|
|
81
84
|
__exportStar(require("./PersonData"), exports);
|
|
82
85
|
__exportStar(require("./PhilippineMatchInput"), exports);
|
|
83
86
|
__exportStar(require("./PhilippineQRInput"), exports);
|
|
87
|
+
__exportStar(require("./PhilippinesDigitalNidProviderOutput"), exports);
|
|
88
|
+
__exportStar(require("./PhilippinesPhysicalNidProviderOutput"), exports);
|
|
84
89
|
__exportStar(require("./ProblemDetails"), exports);
|
|
85
90
|
__exportStar(require("./ProviderAttachments"), exports);
|
|
86
91
|
__exportStar(require("./ProviderContract"), exports);
|
|
@@ -101,8 +106,10 @@ __exportStar(require("./Session"), exports);
|
|
|
101
106
|
__exportStar(require("./SessionErrorCode"), exports);
|
|
102
107
|
__exportStar(require("./SessionOrdering"), exports);
|
|
103
108
|
__exportStar(require("./Sex"), exports);
|
|
109
|
+
__exportStar(require("./SexV1"), exports);
|
|
104
110
|
__exportStar(require("./SmartIdInput"), exports);
|
|
105
111
|
__exportStar(require("./SouthAfricaNidInput"), exports);
|
|
112
|
+
__exportStar(require("./SouthAfricaNidLookup2Input"), exports);
|
|
106
113
|
__exportStar(require("./SpidBillingInformation"), exports);
|
|
107
114
|
__exportStar(require("./SpidInput"), exports);
|
|
108
115
|
__exportStar(require("./SpidProviderOutput"), exports);
|
package/package.json
CHANGED
|
@@ -51,6 +51,12 @@ export interface AttachmentAccessKeys {
|
|
|
51
51
|
* @memberof AttachmentAccessKeys
|
|
52
52
|
*/
|
|
53
53
|
documentPortrait?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AttachmentAccessKeys
|
|
58
|
+
*/
|
|
59
|
+
documentSignature?: string | null;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {ProviderAttachments}
|
|
@@ -81,6 +87,7 @@ export function AttachmentAccessKeysFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
81
87
|
'documentFront': json['documentFront'] == null ? undefined : json['documentFront'],
|
|
82
88
|
'documentBack': json['documentBack'] == null ? undefined : json['documentBack'],
|
|
83
89
|
'documentPortrait': json['documentPortrait'] == null ? undefined : json['documentPortrait'],
|
|
90
|
+
'documentSignature': json['documentSignature'] == null ? undefined : json['documentSignature'],
|
|
84
91
|
'provider': ProviderAttachmentsFromJSON(json['provider']),
|
|
85
92
|
};
|
|
86
93
|
}
|
|
@@ -100,6 +107,7 @@ export function AttachmentAccessKeysToJSONTyped(value?: AttachmentAccessKeys | n
|
|
|
100
107
|
'documentFront': value['documentFront'],
|
|
101
108
|
'documentBack': value['documentBack'],
|
|
102
109
|
'documentPortrait': value['documentPortrait'],
|
|
110
|
+
'documentSignature': value['documentSignature'],
|
|
103
111
|
'provider': ProviderAttachmentsToJSON(value['provider']),
|
|
104
112
|
};
|
|
105
113
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 KenyaNidBiometric2Input
|
|
20
|
+
*/
|
|
21
|
+
export interface KenyaNidBiometric2Input {
|
|
22
|
+
/**
|
|
23
|
+
* The user's Kenyan National ID number
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KenyaNidBiometric2Input
|
|
26
|
+
*/
|
|
27
|
+
idNumber?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* An array of exactly 8 images required for biometric liveness verification.
|
|
30
|
+
* The first 7 images should be liveness frames captured during the liveness detection process,
|
|
31
|
+
* and the last image (8th) should be a selfie of the user. All images must be in JPEG format
|
|
32
|
+
* and each image must be less than 15MB in size.
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof KenyaNidBiometric2Input
|
|
35
|
+
*/
|
|
36
|
+
livenessImages?: Array<string> | null;
|
|
37
|
+
/**
|
|
38
|
+
* Test selfie for test environment (optional, maximum 15MB). Must be JPEG format.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof KenyaNidBiometric2Input
|
|
41
|
+
*/
|
|
42
|
+
testSelfie?: string | null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the KenyaNidBiometric2Input interface.
|
|
47
|
+
*/
|
|
48
|
+
export function instanceOfKenyaNidBiometric2Input(value: object): value is KenyaNidBiometric2Input {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function KenyaNidBiometric2InputFromJSON(json: any): KenyaNidBiometric2Input {
|
|
53
|
+
return KenyaNidBiometric2InputFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function KenyaNidBiometric2InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidBiometric2Input {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'idNumber': json['idNumber'] == null ? undefined : json['idNumber'],
|
|
63
|
+
'livenessImages': json['livenessImages'] == null ? undefined : json['livenessImages'],
|
|
64
|
+
'testSelfie': json['testSelfie'] == null ? undefined : json['testSelfie'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function KenyaNidBiometric2InputToJSON(json: any): KenyaNidBiometric2Input {
|
|
69
|
+
return KenyaNidBiometric2InputToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function KenyaNidBiometric2InputToJSONTyped(value?: KenyaNidBiometric2Input | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'idNumber': value['idNumber'],
|
|
80
|
+
'livenessImages': value['livenessImages'],
|
|
81
|
+
'testSelfie': value['testSelfie'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 KenyaNidLookup2Input
|
|
20
|
+
*/
|
|
21
|
+
export interface KenyaNidLookup2Input {
|
|
22
|
+
/**
|
|
23
|
+
* The user's National ID number
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KenyaNidLookup2Input
|
|
26
|
+
*/
|
|
27
|
+
idNumber?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the KenyaNidLookup2Input interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfKenyaNidLookup2Input(value: object): value is KenyaNidLookup2Input {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function KenyaNidLookup2InputFromJSON(json: any): KenyaNidLookup2Input {
|
|
38
|
+
return KenyaNidLookup2InputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function KenyaNidLookup2InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2Input {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'idNumber': json['idNumber'] == null ? undefined : json['idNumber'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function KenyaNidLookup2InputToJSON(json: any): KenyaNidLookup2Input {
|
|
52
|
+
return KenyaNidLookup2InputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function KenyaNidLookup2InputToJSONTyped(value?: KenyaNidLookup2Input | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'idNumber': value['idNumber'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
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 { SexV1 } from './SexV1';
|
|
17
|
+
import {
|
|
18
|
+
SexV1FromJSON,
|
|
19
|
+
SexV1FromJSONTyped,
|
|
20
|
+
SexV1ToJSON,
|
|
21
|
+
SexV1ToJSONTyped,
|
|
22
|
+
} from './SexV1';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface KenyaNidMatch2Input
|
|
28
|
+
*/
|
|
29
|
+
export interface KenyaNidMatch2Input {
|
|
30
|
+
/**
|
|
31
|
+
* The user's Kenyan National ID number
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof KenyaNidMatch2Input
|
|
34
|
+
*/
|
|
35
|
+
idNumber?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The user's first name as it appears in their National ID
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof KenyaNidMatch2Input
|
|
40
|
+
*/
|
|
41
|
+
givenName?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The user's last name as it appears in their National ID
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof KenyaNidMatch2Input
|
|
46
|
+
*/
|
|
47
|
+
familyName?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The user's middle name as it appears in their National ID (optional)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof KenyaNidMatch2Input
|
|
52
|
+
*/
|
|
53
|
+
middleName?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof KenyaNidMatch2Input
|
|
58
|
+
*/
|
|
59
|
+
dateOfBirth?: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
* The user's sex as it appears in their National ID
|
|
62
|
+
* @type {SexV1}
|
|
63
|
+
* @memberof KenyaNidMatch2Input
|
|
64
|
+
*/
|
|
65
|
+
sex?: SexV1 | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the KenyaNidMatch2Input interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfKenyaNidMatch2Input(value: object): value is KenyaNidMatch2Input {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function KenyaNidMatch2InputFromJSON(json: any): KenyaNidMatch2Input {
|
|
78
|
+
return KenyaNidMatch2InputFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function KenyaNidMatch2InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidMatch2Input {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'idNumber': json['idNumber'] == null ? undefined : json['idNumber'],
|
|
88
|
+
'givenName': json['givenName'] == null ? undefined : json['givenName'],
|
|
89
|
+
'familyName': json['familyName'] == null ? undefined : json['familyName'],
|
|
90
|
+
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
91
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
92
|
+
'sex': json['sex'] == null ? undefined : SexV1FromJSON(json['sex']),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function KenyaNidMatch2InputToJSON(json: any): KenyaNidMatch2Input {
|
|
97
|
+
return KenyaNidMatch2InputToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function KenyaNidMatch2InputToJSONTyped(value?: KenyaNidMatch2Input | null, ignoreDiscriminator: boolean = false): any {
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'idNumber': value['idNumber'],
|
|
108
|
+
'givenName': value['givenName'],
|
|
109
|
+
'familyName': value['familyName'],
|
|
110
|
+
'middleName': value['middleName'],
|
|
111
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
|
|
112
|
+
'sex': SexV1ToJSON(value['sex']),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 PhilippinesDigitalNidProviderOutput
|
|
20
|
+
*/
|
|
21
|
+
export interface PhilippinesDigitalNidProviderOutput {
|
|
22
|
+
/**
|
|
23
|
+
* The PhilSys card number.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PhilippinesDigitalNidProviderOutput
|
|
26
|
+
*/
|
|
27
|
+
philsysCardNumber: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PhilippinesDigitalNidProviderOutput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPhilippinesDigitalNidProviderOutput(value: object): value is PhilippinesDigitalNidProviderOutput {
|
|
34
|
+
if (!('philsysCardNumber' in value) || value['philsysCardNumber'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PhilippinesDigitalNidProviderOutputFromJSON(json: any): PhilippinesDigitalNidProviderOutput {
|
|
39
|
+
return PhilippinesDigitalNidProviderOutputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PhilippinesDigitalNidProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhilippinesDigitalNidProviderOutput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'philsysCardNumber': json['philsysCardNumber'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PhilippinesDigitalNidProviderOutputToJSON(json: any): PhilippinesDigitalNidProviderOutput {
|
|
53
|
+
return PhilippinesDigitalNidProviderOutputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PhilippinesDigitalNidProviderOutputToJSONTyped(value?: PhilippinesDigitalNidProviderOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'philsysCardNumber': value['philsysCardNumber'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 PhilippinesPhysicalNidProviderOutput
|
|
20
|
+
*/
|
|
21
|
+
export interface PhilippinesPhysicalNidProviderOutput {
|
|
22
|
+
/**
|
|
23
|
+
* The PhilSys card number.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PhilippinesPhysicalNidProviderOutput
|
|
26
|
+
*/
|
|
27
|
+
philsysCardNumber: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PhilippinesPhysicalNidProviderOutput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPhilippinesPhysicalNidProviderOutput(value: object): value is PhilippinesPhysicalNidProviderOutput {
|
|
34
|
+
if (!('philsysCardNumber' in value) || value['philsysCardNumber'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PhilippinesPhysicalNidProviderOutputFromJSON(json: any): PhilippinesPhysicalNidProviderOutput {
|
|
39
|
+
return PhilippinesPhysicalNidProviderOutputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PhilippinesPhysicalNidProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhilippinesPhysicalNidProviderOutput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'philsysCardNumber': json['philsysCardNumber'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PhilippinesPhysicalNidProviderOutputToJSON(json: any): PhilippinesPhysicalNidProviderOutput {
|
|
53
|
+
return PhilippinesPhysicalNidProviderOutputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PhilippinesPhysicalNidProviderOutputToJSONTyped(value?: PhilippinesPhysicalNidProviderOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'philsysCardNumber': value['philsysCardNumber'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|