@trinsic/api 3.0.0 → 3.0.1
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 +2 -0
- package/dist/esm/models/KenyaNidLookup2Address.d.ts +90 -0
- package/dist/esm/models/KenyaNidLookup2Address.js +49 -0
- package/dist/esm/models/KenyaNidLookup2ProviderOutput.d.ts +114 -0
- package/dist/esm/models/KenyaNidLookup2ProviderOutput.js +74 -0
- package/dist/esm/models/ProviderOutput.d.ts +7 -0
- package/dist/esm/models/ProviderOutput.js +3 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/KenyaNidLookup2Address.d.ts +90 -0
- package/dist/models/KenyaNidLookup2Address.js +56 -0
- package/dist/models/KenyaNidLookup2ProviderOutput.d.ts +114 -0
- package/dist/models/KenyaNidLookup2ProviderOutput.js +81 -0
- package/dist/models/ProviderOutput.d.ts +7 -0
- package/dist/models/ProviderOutput.js +3 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/KenyaNidLookup2Address.ts +131 -0
- package/src/models/KenyaNidLookup2ProviderOutput.ts +180 -0
- package/src/models/ProviderOutput.ts +15 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -61,7 +61,9 @@ src/models/IntegrationStep.ts
|
|
|
61
61
|
src/models/ItsmeProviderOutput.ts
|
|
62
62
|
src/models/KenyaNidBiometric2Input.ts
|
|
63
63
|
src/models/KenyaNidInput.ts
|
|
64
|
+
src/models/KenyaNidLookup2Address.ts
|
|
64
65
|
src/models/KenyaNidLookup2Input.ts
|
|
66
|
+
src/models/KenyaNidLookup2ProviderOutput.ts
|
|
65
67
|
src/models/KenyaNidMatch2Input.ts
|
|
66
68
|
src/models/KenyaNidMatch2InputSex.ts
|
|
67
69
|
src/models/LaWalletProviderOutput.ts
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
* Represents a Kenya address as stored in the IPRS (Integrated Population Registration System) database.
|
|
14
|
+
*
|
|
15
|
+
* The structure reflects the pre-2010 provincial administration system: District > Division > Location.
|
|
16
|
+
* Since the 2010 constitutional change to counties, these legacy administrative divisions are still
|
|
17
|
+
* maintained in IPRS records for historical continuity.
|
|
18
|
+
*
|
|
19
|
+
* The raw address from IPRS is a newline-separated string with labeled administrative components.
|
|
20
|
+
* Example format:
|
|
21
|
+
*
|
|
22
|
+
* ```
|
|
23
|
+
* P O BOX 41842 NAIROBI
|
|
24
|
+
* PARLIAMENT BUILDINGS
|
|
25
|
+
* LOCATION - CITY SQUARE
|
|
26
|
+
* DIVISION - CENTRAL
|
|
27
|
+
* DISTRICT - NAIROBI
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* The first lines contain informal address details (village, P.O. Box) while the suffixed lines
|
|
31
|
+
* contain official administrative designations prefixed with labels like "LOCATION -", "DIVISION -", "DISTRICT -".
|
|
32
|
+
* @export
|
|
33
|
+
* @interface KenyaNidLookup2Address
|
|
34
|
+
*/
|
|
35
|
+
export interface KenyaNidLookup2Address {
|
|
36
|
+
/**
|
|
37
|
+
* The district where the person resides.
|
|
38
|
+
*
|
|
39
|
+
* This is the highest level of the pre-2010 administrative hierarchy stored in IPRS. Districts were
|
|
40
|
+
* the primary administrative units under Kenya's provincial system before the change to counties in 2010.
|
|
41
|
+
* Districts roughly correspond to sub-counties in the current administrative structure.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof KenyaNidLookup2Address
|
|
44
|
+
*/
|
|
45
|
+
district?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The division within the district.
|
|
48
|
+
*
|
|
49
|
+
* This is the second level of the pre-2010 administrative hierarchy. Divisions were administrative
|
|
50
|
+
* units between districts and locations.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof KenyaNidLookup2Address
|
|
53
|
+
*/
|
|
54
|
+
division?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The location within the division.
|
|
57
|
+
*
|
|
58
|
+
* This is the third level of the pre-2010 administrative hierarchy. Locations were the smallest
|
|
59
|
+
* administrative units.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof KenyaNidLookup2Address
|
|
62
|
+
*/
|
|
63
|
+
location?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Additional address lines that appear before the structured administrative parts.
|
|
66
|
+
*
|
|
67
|
+
* May include P.O. Box (format: "P O BOX [number] [location]"), village names, estate names,
|
|
68
|
+
* or other informal locality information.
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof KenyaNidLookup2Address
|
|
71
|
+
*/
|
|
72
|
+
additionalLines?: Array<string> | null;
|
|
73
|
+
/**
|
|
74
|
+
* The raw, unparsed address string as returned from IPRS (Integrated Population Registration System).
|
|
75
|
+
*
|
|
76
|
+
* This preserves the original newline-separated format containing both informal address components
|
|
77
|
+
* (village, P.O. Box) and labeled administrative divisions (LOCATION, DIVISION, DISTRICT).
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof KenyaNidLookup2Address
|
|
80
|
+
*/
|
|
81
|
+
raw?: string | null;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the KenyaNidLookup2Address interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfKenyaNidLookup2Address(value: object): value is KenyaNidLookup2Address;
|
|
87
|
+
export declare function KenyaNidLookup2AddressFromJSON(json: any): KenyaNidLookup2Address;
|
|
88
|
+
export declare function KenyaNidLookup2AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2Address;
|
|
89
|
+
export declare function KenyaNidLookup2AddressToJSON(json: any): KenyaNidLookup2Address;
|
|
90
|
+
export declare function KenyaNidLookup2AddressToJSONTyped(value?: KenyaNidLookup2Address | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* Check if a given object implements the KenyaNidLookup2Address interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfKenyaNidLookup2Address(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function KenyaNidLookup2AddressFromJSON(json) {
|
|
21
|
+
return KenyaNidLookup2AddressFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function KenyaNidLookup2AddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'district': json['district'] == null ? undefined : json['district'],
|
|
29
|
+
'division': json['division'] == null ? undefined : json['division'],
|
|
30
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
31
|
+
'additionalLines': json['additionalLines'] == null ? undefined : json['additionalLines'],
|
|
32
|
+
'raw': json['raw'] == null ? undefined : json['raw'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function KenyaNidLookup2AddressToJSON(json) {
|
|
36
|
+
return KenyaNidLookup2AddressToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function KenyaNidLookup2AddressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'district': value['district'],
|
|
44
|
+
'division': value['division'],
|
|
45
|
+
'location': value['location'],
|
|
46
|
+
'additionalLines': value['additionalLines'],
|
|
47
|
+
'raw': value['raw'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
import type { KenyaNidLookup2Address } from './KenyaNidLookup2Address';
|
|
13
|
+
/**
|
|
14
|
+
* Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface KenyaNidLookup2ProviderOutput
|
|
17
|
+
*/
|
|
18
|
+
export interface KenyaNidLookup2ProviderOutput {
|
|
19
|
+
/**
|
|
20
|
+
* The first name (given name) of the ID holder as recorded in IPRS.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
23
|
+
*/
|
|
24
|
+
firstName: string;
|
|
25
|
+
/**
|
|
26
|
+
* The surname (family name) of the ID holder as recorded in IPRS.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
29
|
+
*/
|
|
30
|
+
surname: string;
|
|
31
|
+
/**
|
|
32
|
+
* The other name (middle name) of the ID holder as recorded in IPRS.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
35
|
+
*/
|
|
36
|
+
otherName?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The sex of the ID holder as recorded on the National ID.
|
|
39
|
+
*
|
|
40
|
+
* Possible values:
|
|
41
|
+
* - Male
|
|
42
|
+
* - Female
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
45
|
+
*/
|
|
46
|
+
sex: string;
|
|
47
|
+
/**
|
|
48
|
+
* The date of birth of the ID holder as recorded in IPRS.
|
|
49
|
+
* @type {Date}
|
|
50
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
51
|
+
*/
|
|
52
|
+
dateOfBirth?: Date | null;
|
|
53
|
+
/**
|
|
54
|
+
* Citizenship status as recorded in the IPRS civil registry database.
|
|
55
|
+
*
|
|
56
|
+
* For the Kenya National ID lookup, this value will always be "Kenyan" as the National ID is only
|
|
57
|
+
* issued to Kenyan citizens. Non-citizens residing in Kenya are issued different identification
|
|
58
|
+
* documents (Alien ID cards, refugee documentation, etc.) which are not supported by this provider.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
61
|
+
*/
|
|
62
|
+
citizenship: string;
|
|
63
|
+
/**
|
|
64
|
+
* The Kenya National ID Number (Nambari ya Kitambulisho).
|
|
65
|
+
*
|
|
66
|
+
* This is the primary unique identifier for Kenyan citizens in all government systems, issued by
|
|
67
|
+
* the National Registration Bureau (NRB). The format is 1 to 9 numeric digits (regex: /^[0-9]{1,9}$/).
|
|
68
|
+
* This number is assigned upon first registration at age 18 (or upon naturalization for new citizens)
|
|
69
|
+
* and remains constant for life.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
72
|
+
*/
|
|
73
|
+
idNumber: string;
|
|
74
|
+
/**
|
|
75
|
+
* The physical card serial number printed on the Kenya National ID card.
|
|
76
|
+
*
|
|
77
|
+
* This is distinct from the ID Number and serves as a card issuance tracking identifier maintained
|
|
78
|
+
* by IPRS. This value changes each time a new physical card is issued (loss, damage, renewal).
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
81
|
+
*/
|
|
82
|
+
serialNumber: string;
|
|
83
|
+
/**
|
|
84
|
+
* The date the National ID was issued by the National Registration Bureau (NRB).
|
|
85
|
+
* @type {Date}
|
|
86
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
87
|
+
*/
|
|
88
|
+
dateOfIssue?: Date | null;
|
|
89
|
+
/**
|
|
90
|
+
* Place of birth as recorded in Kenya's civil registry (IPRS).
|
|
91
|
+
*
|
|
92
|
+
* This is structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
93
|
+
* @type {KenyaNidLookup2Address}
|
|
94
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
95
|
+
*/
|
|
96
|
+
placeOfBirth?: KenyaNidLookup2Address | null;
|
|
97
|
+
/**
|
|
98
|
+
* Current residence address as registered in IPRS.
|
|
99
|
+
*
|
|
100
|
+
* This represents the address on file at the time of ID registration or last update, structured
|
|
101
|
+
* according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
102
|
+
* @type {KenyaNidLookup2Address}
|
|
103
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
104
|
+
*/
|
|
105
|
+
placeOfResidence?: KenyaNidLookup2Address | null;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the KenyaNidLookup2ProviderOutput interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfKenyaNidLookup2ProviderOutput(value: object): value is KenyaNidLookup2ProviderOutput;
|
|
111
|
+
export declare function KenyaNidLookup2ProviderOutputFromJSON(json: any): KenyaNidLookup2ProviderOutput;
|
|
112
|
+
export declare function KenyaNidLookup2ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2ProviderOutput;
|
|
113
|
+
export declare function KenyaNidLookup2ProviderOutputToJSON(json: any): KenyaNidLookup2ProviderOutput;
|
|
114
|
+
export declare function KenyaNidLookup2ProviderOutputToJSONTyped(value?: KenyaNidLookup2ProviderOutput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { KenyaNidLookup2AddressFromJSON, KenyaNidLookup2AddressToJSON, } from './KenyaNidLookup2Address';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the KenyaNidLookup2ProviderOutput interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfKenyaNidLookup2ProviderOutput(value) {
|
|
19
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('surname' in value) || value['surname'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('sex' in value) || value['sex'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('citizenship' in value) || value['citizenship'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('idNumber' in value) || value['idNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('serialNumber' in value) || value['serialNumber'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function KenyaNidLookup2ProviderOutputFromJSON(json) {
|
|
34
|
+
return KenyaNidLookup2ProviderOutputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function KenyaNidLookup2ProviderOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'firstName': json['firstName'],
|
|
42
|
+
'surname': json['surname'],
|
|
43
|
+
'otherName': json['otherName'] == null ? undefined : json['otherName'],
|
|
44
|
+
'sex': json['sex'],
|
|
45
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
46
|
+
'citizenship': json['citizenship'],
|
|
47
|
+
'idNumber': json['idNumber'],
|
|
48
|
+
'serialNumber': json['serialNumber'],
|
|
49
|
+
'dateOfIssue': json['dateOfIssue'] == null ? undefined : (new Date(json['dateOfIssue'])),
|
|
50
|
+
'placeOfBirth': json['placeOfBirth'] == null ? undefined : KenyaNidLookup2AddressFromJSON(json['placeOfBirth']),
|
|
51
|
+
'placeOfResidence': json['placeOfResidence'] == null ? undefined : KenyaNidLookup2AddressFromJSON(json['placeOfResidence']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function KenyaNidLookup2ProviderOutputToJSON(json) {
|
|
55
|
+
return KenyaNidLookup2ProviderOutputToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function KenyaNidLookup2ProviderOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'firstName': value['firstName'],
|
|
63
|
+
'surname': value['surname'],
|
|
64
|
+
'otherName': value['otherName'],
|
|
65
|
+
'sex': value['sex'],
|
|
66
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
67
|
+
'citizenship': value['citizenship'],
|
|
68
|
+
'idNumber': value['idNumber'],
|
|
69
|
+
'serialNumber': value['serialNumber'],
|
|
70
|
+
'dateOfIssue': value['dateOfIssue'] == null ? undefined : (value['dateOfIssue'].toISOString().substring(0, 10)),
|
|
71
|
+
'placeOfBirth': KenyaNidLookup2AddressToJSON(value['placeOfBirth']),
|
|
72
|
+
'placeOfResidence': KenyaNidLookup2AddressToJSON(value['placeOfResidence']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -37,6 +37,7 @@ import type { AppleWalletProviderOutput } from './AppleWalletProviderOutput';
|
|
|
37
37
|
import type { MobileIdProviderOutput } from './MobileIdProviderOutput';
|
|
38
38
|
import type { BelgiumIdCardProviderOutput } from './BelgiumIdCardProviderOutput';
|
|
39
39
|
import type { LloydsSmartIdProviderOutput } from './LloydsSmartIdProviderOutput';
|
|
40
|
+
import type { KenyaNidLookup2ProviderOutput } from './KenyaNidLookup2ProviderOutput';
|
|
40
41
|
import type { LatviaEparakstsMobileProviderOutput } from './LatviaEparakstsMobileProviderOutput';
|
|
41
42
|
import type { SamsungWalletProviderOutput } from './SamsungWalletProviderOutput';
|
|
42
43
|
import type { PhilippinesPhysicalNidProviderOutput } from './PhilippinesPhysicalNidProviderOutput';
|
|
@@ -167,6 +168,12 @@ export interface ProviderOutput {
|
|
|
167
168
|
* @memberof ProviderOutput
|
|
168
169
|
*/
|
|
169
170
|
italySpid?: SpidProviderOutput | null;
|
|
171
|
+
/**
|
|
172
|
+
* Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
173
|
+
* @type {KenyaNidLookup2ProviderOutput}
|
|
174
|
+
* @memberof ProviderOutput
|
|
175
|
+
*/
|
|
176
|
+
kenyaNidLookup2?: KenyaNidLookup2ProviderOutput | null;
|
|
170
177
|
/**
|
|
171
178
|
* Exposed properties for the `lloyds-smart-id` Provider which do not directly map to the normalized IdentityData model.
|
|
172
179
|
* @type {LloydsSmartIdProviderOutput}
|
|
@@ -39,6 +39,7 @@ import { AppleWalletProviderOutputFromJSON, AppleWalletProviderOutputToJSON, } f
|
|
|
39
39
|
import { MobileIdProviderOutputFromJSON, MobileIdProviderOutputToJSON, } from './MobileIdProviderOutput';
|
|
40
40
|
import { BelgiumIdCardProviderOutputFromJSON, BelgiumIdCardProviderOutputToJSON, } from './BelgiumIdCardProviderOutput';
|
|
41
41
|
import { LloydsSmartIdProviderOutputFromJSON, LloydsSmartIdProviderOutputToJSON, } from './LloydsSmartIdProviderOutput';
|
|
42
|
+
import { KenyaNidLookup2ProviderOutputFromJSON, KenyaNidLookup2ProviderOutputToJSON, } from './KenyaNidLookup2ProviderOutput';
|
|
42
43
|
import { LatviaEparakstsMobileProviderOutputFromJSON, LatviaEparakstsMobileProviderOutputToJSON, } from './LatviaEparakstsMobileProviderOutput';
|
|
43
44
|
import { SamsungWalletProviderOutputFromJSON, SamsungWalletProviderOutputToJSON, } from './SamsungWalletProviderOutput';
|
|
44
45
|
import { PhilippinesPhysicalNidProviderOutputFromJSON, PhilippinesPhysicalNidProviderOutputToJSON, } from './PhilippinesPhysicalNidProviderOutput';
|
|
@@ -77,6 +78,7 @@ export function ProviderOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
78
|
'franceIdentiteNumerique': json['france-identite-numerique'] == null ? undefined : FrenchNumeriqueProviderOutputFromJSON(json['france-identite-numerique']),
|
|
78
79
|
'googleWallet': json['google-wallet'] == null ? undefined : GoogleWalletProviderOutputFromJSON(json['google-wallet']),
|
|
79
80
|
'italySpid': json['italy-spid'] == null ? undefined : SpidProviderOutputFromJSON(json['italy-spid']),
|
|
81
|
+
'kenyaNidLookup2': json['kenya-nid-lookup-2'] == null ? undefined : KenyaNidLookup2ProviderOutputFromJSON(json['kenya-nid-lookup-2']),
|
|
80
82
|
'lloydsSmartId': json['lloyds-smart-id'] == null ? undefined : LloydsSmartIdProviderOutputFromJSON(json['lloyds-smart-id']),
|
|
81
83
|
'mexicoCurpLookup': json['mexico-curp-lookup'] == null ? undefined : MexicoCurpProviderOutputFromJSON(json['mexico-curp-lookup']),
|
|
82
84
|
'mobileId': json['mobile-id'] == null ? undefined : MobileIdProviderOutputFromJSON(json['mobile-id']),
|
|
@@ -119,6 +121,7 @@ export function ProviderOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
119
121
|
'france-identite-numerique': FrenchNumeriqueProviderOutputToJSON(value['franceIdentiteNumerique']),
|
|
120
122
|
'google-wallet': GoogleWalletProviderOutputToJSON(value['googleWallet']),
|
|
121
123
|
'italy-spid': SpidProviderOutputToJSON(value['italySpid']),
|
|
124
|
+
'kenya-nid-lookup-2': KenyaNidLookup2ProviderOutputToJSON(value['kenyaNidLookup2']),
|
|
122
125
|
'lloyds-smart-id': LloydsSmartIdProviderOutputToJSON(value['lloydsSmartId']),
|
|
123
126
|
'mexico-curp-lookup': MexicoCurpProviderOutputToJSON(value['mexicoCurpLookup']),
|
|
124
127
|
'mobile-id': MobileIdProviderOutputToJSON(value['mobileId']),
|
|
@@ -50,7 +50,9 @@ export * from './IntegrationStep';
|
|
|
50
50
|
export * from './ItsmeProviderOutput';
|
|
51
51
|
export * from './KenyaNidBiometric2Input';
|
|
52
52
|
export * from './KenyaNidInput';
|
|
53
|
+
export * from './KenyaNidLookup2Address';
|
|
53
54
|
export * from './KenyaNidLookup2Input';
|
|
55
|
+
export * from './KenyaNidLookup2ProviderOutput';
|
|
54
56
|
export * from './KenyaNidMatch2Input';
|
|
55
57
|
export * from './KenyaNidMatch2InputSex';
|
|
56
58
|
export * from './LaWalletProviderOutput';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -52,7 +52,9 @@ export * from './IntegrationStep';
|
|
|
52
52
|
export * from './ItsmeProviderOutput';
|
|
53
53
|
export * from './KenyaNidBiometric2Input';
|
|
54
54
|
export * from './KenyaNidInput';
|
|
55
|
+
export * from './KenyaNidLookup2Address';
|
|
55
56
|
export * from './KenyaNidLookup2Input';
|
|
57
|
+
export * from './KenyaNidLookup2ProviderOutput';
|
|
56
58
|
export * from './KenyaNidMatch2Input';
|
|
57
59
|
export * from './KenyaNidMatch2InputSex';
|
|
58
60
|
export * from './LaWalletProviderOutput';
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
* Represents a Kenya address as stored in the IPRS (Integrated Population Registration System) database.
|
|
14
|
+
*
|
|
15
|
+
* The structure reflects the pre-2010 provincial administration system: District > Division > Location.
|
|
16
|
+
* Since the 2010 constitutional change to counties, these legacy administrative divisions are still
|
|
17
|
+
* maintained in IPRS records for historical continuity.
|
|
18
|
+
*
|
|
19
|
+
* The raw address from IPRS is a newline-separated string with labeled administrative components.
|
|
20
|
+
* Example format:
|
|
21
|
+
*
|
|
22
|
+
* ```
|
|
23
|
+
* P O BOX 41842 NAIROBI
|
|
24
|
+
* PARLIAMENT BUILDINGS
|
|
25
|
+
* LOCATION - CITY SQUARE
|
|
26
|
+
* DIVISION - CENTRAL
|
|
27
|
+
* DISTRICT - NAIROBI
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* The first lines contain informal address details (village, P.O. Box) while the suffixed lines
|
|
31
|
+
* contain official administrative designations prefixed with labels like "LOCATION -", "DIVISION -", "DISTRICT -".
|
|
32
|
+
* @export
|
|
33
|
+
* @interface KenyaNidLookup2Address
|
|
34
|
+
*/
|
|
35
|
+
export interface KenyaNidLookup2Address {
|
|
36
|
+
/**
|
|
37
|
+
* The district where the person resides.
|
|
38
|
+
*
|
|
39
|
+
* This is the highest level of the pre-2010 administrative hierarchy stored in IPRS. Districts were
|
|
40
|
+
* the primary administrative units under Kenya's provincial system before the change to counties in 2010.
|
|
41
|
+
* Districts roughly correspond to sub-counties in the current administrative structure.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof KenyaNidLookup2Address
|
|
44
|
+
*/
|
|
45
|
+
district?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The division within the district.
|
|
48
|
+
*
|
|
49
|
+
* This is the second level of the pre-2010 administrative hierarchy. Divisions were administrative
|
|
50
|
+
* units between districts and locations.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof KenyaNidLookup2Address
|
|
53
|
+
*/
|
|
54
|
+
division?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The location within the division.
|
|
57
|
+
*
|
|
58
|
+
* This is the third level of the pre-2010 administrative hierarchy. Locations were the smallest
|
|
59
|
+
* administrative units.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof KenyaNidLookup2Address
|
|
62
|
+
*/
|
|
63
|
+
location?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Additional address lines that appear before the structured administrative parts.
|
|
66
|
+
*
|
|
67
|
+
* May include P.O. Box (format: "P O BOX [number] [location]"), village names, estate names,
|
|
68
|
+
* or other informal locality information.
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof KenyaNidLookup2Address
|
|
71
|
+
*/
|
|
72
|
+
additionalLines?: Array<string> | null;
|
|
73
|
+
/**
|
|
74
|
+
* The raw, unparsed address string as returned from IPRS (Integrated Population Registration System).
|
|
75
|
+
*
|
|
76
|
+
* This preserves the original newline-separated format containing both informal address components
|
|
77
|
+
* (village, P.O. Box) and labeled administrative divisions (LOCATION, DIVISION, DISTRICT).
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof KenyaNidLookup2Address
|
|
80
|
+
*/
|
|
81
|
+
raw?: string | null;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the KenyaNidLookup2Address interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfKenyaNidLookup2Address(value: object): value is KenyaNidLookup2Address;
|
|
87
|
+
export declare function KenyaNidLookup2AddressFromJSON(json: any): KenyaNidLookup2Address;
|
|
88
|
+
export declare function KenyaNidLookup2AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2Address;
|
|
89
|
+
export declare function KenyaNidLookup2AddressToJSON(json: any): KenyaNidLookup2Address;
|
|
90
|
+
export declare function KenyaNidLookup2AddressToJSONTyped(value?: KenyaNidLookup2Address | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfKenyaNidLookup2Address = instanceOfKenyaNidLookup2Address;
|
|
17
|
+
exports.KenyaNidLookup2AddressFromJSON = KenyaNidLookup2AddressFromJSON;
|
|
18
|
+
exports.KenyaNidLookup2AddressFromJSONTyped = KenyaNidLookup2AddressFromJSONTyped;
|
|
19
|
+
exports.KenyaNidLookup2AddressToJSON = KenyaNidLookup2AddressToJSON;
|
|
20
|
+
exports.KenyaNidLookup2AddressToJSONTyped = KenyaNidLookup2AddressToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the KenyaNidLookup2Address interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfKenyaNidLookup2Address(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function KenyaNidLookup2AddressFromJSON(json) {
|
|
28
|
+
return KenyaNidLookup2AddressFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function KenyaNidLookup2AddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'district': json['district'] == null ? undefined : json['district'],
|
|
36
|
+
'division': json['division'] == null ? undefined : json['division'],
|
|
37
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
38
|
+
'additionalLines': json['additionalLines'] == null ? undefined : json['additionalLines'],
|
|
39
|
+
'raw': json['raw'] == null ? undefined : json['raw'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function KenyaNidLookup2AddressToJSON(json) {
|
|
43
|
+
return KenyaNidLookup2AddressToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function KenyaNidLookup2AddressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'district': value['district'],
|
|
51
|
+
'division': value['division'],
|
|
52
|
+
'location': value['location'],
|
|
53
|
+
'additionalLines': value['additionalLines'],
|
|
54
|
+
'raw': value['raw'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
import type { KenyaNidLookup2Address } from './KenyaNidLookup2Address';
|
|
13
|
+
/**
|
|
14
|
+
* Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface KenyaNidLookup2ProviderOutput
|
|
17
|
+
*/
|
|
18
|
+
export interface KenyaNidLookup2ProviderOutput {
|
|
19
|
+
/**
|
|
20
|
+
* The first name (given name) of the ID holder as recorded in IPRS.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
23
|
+
*/
|
|
24
|
+
firstName: string;
|
|
25
|
+
/**
|
|
26
|
+
* The surname (family name) of the ID holder as recorded in IPRS.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
29
|
+
*/
|
|
30
|
+
surname: string;
|
|
31
|
+
/**
|
|
32
|
+
* The other name (middle name) of the ID holder as recorded in IPRS.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
35
|
+
*/
|
|
36
|
+
otherName?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The sex of the ID holder as recorded on the National ID.
|
|
39
|
+
*
|
|
40
|
+
* Possible values:
|
|
41
|
+
* - Male
|
|
42
|
+
* - Female
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
45
|
+
*/
|
|
46
|
+
sex: string;
|
|
47
|
+
/**
|
|
48
|
+
* The date of birth of the ID holder as recorded in IPRS.
|
|
49
|
+
* @type {Date}
|
|
50
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
51
|
+
*/
|
|
52
|
+
dateOfBirth?: Date | null;
|
|
53
|
+
/**
|
|
54
|
+
* Citizenship status as recorded in the IPRS civil registry database.
|
|
55
|
+
*
|
|
56
|
+
* For the Kenya National ID lookup, this value will always be "Kenyan" as the National ID is only
|
|
57
|
+
* issued to Kenyan citizens. Non-citizens residing in Kenya are issued different identification
|
|
58
|
+
* documents (Alien ID cards, refugee documentation, etc.) which are not supported by this provider.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
61
|
+
*/
|
|
62
|
+
citizenship: string;
|
|
63
|
+
/**
|
|
64
|
+
* The Kenya National ID Number (Nambari ya Kitambulisho).
|
|
65
|
+
*
|
|
66
|
+
* This is the primary unique identifier for Kenyan citizens in all government systems, issued by
|
|
67
|
+
* the National Registration Bureau (NRB). The format is 1 to 9 numeric digits (regex: /^[0-9]{1,9}$/).
|
|
68
|
+
* This number is assigned upon first registration at age 18 (or upon naturalization for new citizens)
|
|
69
|
+
* and remains constant for life.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
72
|
+
*/
|
|
73
|
+
idNumber: string;
|
|
74
|
+
/**
|
|
75
|
+
* The physical card serial number printed on the Kenya National ID card.
|
|
76
|
+
*
|
|
77
|
+
* This is distinct from the ID Number and serves as a card issuance tracking identifier maintained
|
|
78
|
+
* by IPRS. This value changes each time a new physical card is issued (loss, damage, renewal).
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
81
|
+
*/
|
|
82
|
+
serialNumber: string;
|
|
83
|
+
/**
|
|
84
|
+
* The date the National ID was issued by the National Registration Bureau (NRB).
|
|
85
|
+
* @type {Date}
|
|
86
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
87
|
+
*/
|
|
88
|
+
dateOfIssue?: Date | null;
|
|
89
|
+
/**
|
|
90
|
+
* Place of birth as recorded in Kenya's civil registry (IPRS).
|
|
91
|
+
*
|
|
92
|
+
* This is structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
93
|
+
* @type {KenyaNidLookup2Address}
|
|
94
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
95
|
+
*/
|
|
96
|
+
placeOfBirth?: KenyaNidLookup2Address | null;
|
|
97
|
+
/**
|
|
98
|
+
* Current residence address as registered in IPRS.
|
|
99
|
+
*
|
|
100
|
+
* This represents the address on file at the time of ID registration or last update, structured
|
|
101
|
+
* according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
102
|
+
* @type {KenyaNidLookup2Address}
|
|
103
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
104
|
+
*/
|
|
105
|
+
placeOfResidence?: KenyaNidLookup2Address | null;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the KenyaNidLookup2ProviderOutput interface.
|
|
109
|
+
*/
|
|
110
|
+
export declare function instanceOfKenyaNidLookup2ProviderOutput(value: object): value is KenyaNidLookup2ProviderOutput;
|
|
111
|
+
export declare function KenyaNidLookup2ProviderOutputFromJSON(json: any): KenyaNidLookup2ProviderOutput;
|
|
112
|
+
export declare function KenyaNidLookup2ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2ProviderOutput;
|
|
113
|
+
export declare function KenyaNidLookup2ProviderOutputToJSON(json: any): KenyaNidLookup2ProviderOutput;
|
|
114
|
+
export declare function KenyaNidLookup2ProviderOutputToJSONTyped(value?: KenyaNidLookup2ProviderOutput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfKenyaNidLookup2ProviderOutput = instanceOfKenyaNidLookup2ProviderOutput;
|
|
17
|
+
exports.KenyaNidLookup2ProviderOutputFromJSON = KenyaNidLookup2ProviderOutputFromJSON;
|
|
18
|
+
exports.KenyaNidLookup2ProviderOutputFromJSONTyped = KenyaNidLookup2ProviderOutputFromJSONTyped;
|
|
19
|
+
exports.KenyaNidLookup2ProviderOutputToJSON = KenyaNidLookup2ProviderOutputToJSON;
|
|
20
|
+
exports.KenyaNidLookup2ProviderOutputToJSONTyped = KenyaNidLookup2ProviderOutputToJSONTyped;
|
|
21
|
+
const KenyaNidLookup2Address_1 = require("./KenyaNidLookup2Address");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the KenyaNidLookup2ProviderOutput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfKenyaNidLookup2ProviderOutput(value) {
|
|
26
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('surname' in value) || value['surname'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('sex' in value) || value['sex'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('citizenship' in value) || value['citizenship'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('idNumber' in value) || value['idNumber'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('serialNumber' in value) || value['serialNumber'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function KenyaNidLookup2ProviderOutputFromJSON(json) {
|
|
41
|
+
return KenyaNidLookup2ProviderOutputFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function KenyaNidLookup2ProviderOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'firstName': json['firstName'],
|
|
49
|
+
'surname': json['surname'],
|
|
50
|
+
'otherName': json['otherName'] == null ? undefined : json['otherName'],
|
|
51
|
+
'sex': json['sex'],
|
|
52
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
53
|
+
'citizenship': json['citizenship'],
|
|
54
|
+
'idNumber': json['idNumber'],
|
|
55
|
+
'serialNumber': json['serialNumber'],
|
|
56
|
+
'dateOfIssue': json['dateOfIssue'] == null ? undefined : (new Date(json['dateOfIssue'])),
|
|
57
|
+
'placeOfBirth': json['placeOfBirth'] == null ? undefined : (0, KenyaNidLookup2Address_1.KenyaNidLookup2AddressFromJSON)(json['placeOfBirth']),
|
|
58
|
+
'placeOfResidence': json['placeOfResidence'] == null ? undefined : (0, KenyaNidLookup2Address_1.KenyaNidLookup2AddressFromJSON)(json['placeOfResidence']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function KenyaNidLookup2ProviderOutputToJSON(json) {
|
|
62
|
+
return KenyaNidLookup2ProviderOutputToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function KenyaNidLookup2ProviderOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'firstName': value['firstName'],
|
|
70
|
+
'surname': value['surname'],
|
|
71
|
+
'otherName': value['otherName'],
|
|
72
|
+
'sex': value['sex'],
|
|
73
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
74
|
+
'citizenship': value['citizenship'],
|
|
75
|
+
'idNumber': value['idNumber'],
|
|
76
|
+
'serialNumber': value['serialNumber'],
|
|
77
|
+
'dateOfIssue': value['dateOfIssue'] == null ? undefined : (value['dateOfIssue'].toISOString().substring(0, 10)),
|
|
78
|
+
'placeOfBirth': (0, KenyaNidLookup2Address_1.KenyaNidLookup2AddressToJSON)(value['placeOfBirth']),
|
|
79
|
+
'placeOfResidence': (0, KenyaNidLookup2Address_1.KenyaNidLookup2AddressToJSON)(value['placeOfResidence']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -37,6 +37,7 @@ import type { AppleWalletProviderOutput } from './AppleWalletProviderOutput';
|
|
|
37
37
|
import type { MobileIdProviderOutput } from './MobileIdProviderOutput';
|
|
38
38
|
import type { BelgiumIdCardProviderOutput } from './BelgiumIdCardProviderOutput';
|
|
39
39
|
import type { LloydsSmartIdProviderOutput } from './LloydsSmartIdProviderOutput';
|
|
40
|
+
import type { KenyaNidLookup2ProviderOutput } from './KenyaNidLookup2ProviderOutput';
|
|
40
41
|
import type { LatviaEparakstsMobileProviderOutput } from './LatviaEparakstsMobileProviderOutput';
|
|
41
42
|
import type { SamsungWalletProviderOutput } from './SamsungWalletProviderOutput';
|
|
42
43
|
import type { PhilippinesPhysicalNidProviderOutput } from './PhilippinesPhysicalNidProviderOutput';
|
|
@@ -167,6 +168,12 @@ export interface ProviderOutput {
|
|
|
167
168
|
* @memberof ProviderOutput
|
|
168
169
|
*/
|
|
169
170
|
italySpid?: SpidProviderOutput | null;
|
|
171
|
+
/**
|
|
172
|
+
* Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
173
|
+
* @type {KenyaNidLookup2ProviderOutput}
|
|
174
|
+
* @memberof ProviderOutput
|
|
175
|
+
*/
|
|
176
|
+
kenyaNidLookup2?: KenyaNidLookup2ProviderOutput | null;
|
|
170
177
|
/**
|
|
171
178
|
* Exposed properties for the `lloyds-smart-id` Provider which do not directly map to the normalized IdentityData model.
|
|
172
179
|
* @type {LloydsSmartIdProviderOutput}
|
|
@@ -46,6 +46,7 @@ const AppleWalletProviderOutput_1 = require("./AppleWalletProviderOutput");
|
|
|
46
46
|
const MobileIdProviderOutput_1 = require("./MobileIdProviderOutput");
|
|
47
47
|
const BelgiumIdCardProviderOutput_1 = require("./BelgiumIdCardProviderOutput");
|
|
48
48
|
const LloydsSmartIdProviderOutput_1 = require("./LloydsSmartIdProviderOutput");
|
|
49
|
+
const KenyaNidLookup2ProviderOutput_1 = require("./KenyaNidLookup2ProviderOutput");
|
|
49
50
|
const LatviaEparakstsMobileProviderOutput_1 = require("./LatviaEparakstsMobileProviderOutput");
|
|
50
51
|
const SamsungWalletProviderOutput_1 = require("./SamsungWalletProviderOutput");
|
|
51
52
|
const PhilippinesPhysicalNidProviderOutput_1 = require("./PhilippinesPhysicalNidProviderOutput");
|
|
@@ -84,6 +85,7 @@ function ProviderOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
85
|
'franceIdentiteNumerique': json['france-identite-numerique'] == null ? undefined : (0, FrenchNumeriqueProviderOutput_1.FrenchNumeriqueProviderOutputFromJSON)(json['france-identite-numerique']),
|
|
85
86
|
'googleWallet': json['google-wallet'] == null ? undefined : (0, GoogleWalletProviderOutput_1.GoogleWalletProviderOutputFromJSON)(json['google-wallet']),
|
|
86
87
|
'italySpid': json['italy-spid'] == null ? undefined : (0, SpidProviderOutput_1.SpidProviderOutputFromJSON)(json['italy-spid']),
|
|
88
|
+
'kenyaNidLookup2': json['kenya-nid-lookup-2'] == null ? undefined : (0, KenyaNidLookup2ProviderOutput_1.KenyaNidLookup2ProviderOutputFromJSON)(json['kenya-nid-lookup-2']),
|
|
87
89
|
'lloydsSmartId': json['lloyds-smart-id'] == null ? undefined : (0, LloydsSmartIdProviderOutput_1.LloydsSmartIdProviderOutputFromJSON)(json['lloyds-smart-id']),
|
|
88
90
|
'mexicoCurpLookup': json['mexico-curp-lookup'] == null ? undefined : (0, MexicoCurpProviderOutput_1.MexicoCurpProviderOutputFromJSON)(json['mexico-curp-lookup']),
|
|
89
91
|
'mobileId': json['mobile-id'] == null ? undefined : (0, MobileIdProviderOutput_1.MobileIdProviderOutputFromJSON)(json['mobile-id']),
|
|
@@ -126,6 +128,7 @@ function ProviderOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
126
128
|
'france-identite-numerique': (0, FrenchNumeriqueProviderOutput_1.FrenchNumeriqueProviderOutputToJSON)(value['franceIdentiteNumerique']),
|
|
127
129
|
'google-wallet': (0, GoogleWalletProviderOutput_1.GoogleWalletProviderOutputToJSON)(value['googleWallet']),
|
|
128
130
|
'italy-spid': (0, SpidProviderOutput_1.SpidProviderOutputToJSON)(value['italySpid']),
|
|
131
|
+
'kenya-nid-lookup-2': (0, KenyaNidLookup2ProviderOutput_1.KenyaNidLookup2ProviderOutputToJSON)(value['kenyaNidLookup2']),
|
|
129
132
|
'lloyds-smart-id': (0, LloydsSmartIdProviderOutput_1.LloydsSmartIdProviderOutputToJSON)(value['lloydsSmartId']),
|
|
130
133
|
'mexico-curp-lookup': (0, MexicoCurpProviderOutput_1.MexicoCurpProviderOutputToJSON)(value['mexicoCurpLookup']),
|
|
131
134
|
'mobile-id': (0, MobileIdProviderOutput_1.MobileIdProviderOutputToJSON)(value['mobileId']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -50,7 +50,9 @@ export * from './IntegrationStep';
|
|
|
50
50
|
export * from './ItsmeProviderOutput';
|
|
51
51
|
export * from './KenyaNidBiometric2Input';
|
|
52
52
|
export * from './KenyaNidInput';
|
|
53
|
+
export * from './KenyaNidLookup2Address';
|
|
53
54
|
export * from './KenyaNidLookup2Input';
|
|
55
|
+
export * from './KenyaNidLookup2ProviderOutput';
|
|
54
56
|
export * from './KenyaNidMatch2Input';
|
|
55
57
|
export * from './KenyaNidMatch2InputSex';
|
|
56
58
|
export * from './LaWalletProviderOutput';
|
package/dist/models/index.js
CHANGED
|
@@ -68,7 +68,9 @@ __exportStar(require("./IntegrationStep"), exports);
|
|
|
68
68
|
__exportStar(require("./ItsmeProviderOutput"), exports);
|
|
69
69
|
__exportStar(require("./KenyaNidBiometric2Input"), exports);
|
|
70
70
|
__exportStar(require("./KenyaNidInput"), exports);
|
|
71
|
+
__exportStar(require("./KenyaNidLookup2Address"), exports);
|
|
71
72
|
__exportStar(require("./KenyaNidLookup2Input"), exports);
|
|
73
|
+
__exportStar(require("./KenyaNidLookup2ProviderOutput"), exports);
|
|
72
74
|
__exportStar(require("./KenyaNidMatch2Input"), exports);
|
|
73
75
|
__exportStar(require("./KenyaNidMatch2InputSex"), exports);
|
|
74
76
|
__exportStar(require("./LaWalletProviderOutput"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
* Represents a Kenya address as stored in the IPRS (Integrated Population Registration System) database.
|
|
18
|
+
*
|
|
19
|
+
* The structure reflects the pre-2010 provincial administration system: District > Division > Location.
|
|
20
|
+
* Since the 2010 constitutional change to counties, these legacy administrative divisions are still
|
|
21
|
+
* maintained in IPRS records for historical continuity.
|
|
22
|
+
*
|
|
23
|
+
* The raw address from IPRS is a newline-separated string with labeled administrative components.
|
|
24
|
+
* Example format:
|
|
25
|
+
*
|
|
26
|
+
* ```
|
|
27
|
+
* P O BOX 41842 NAIROBI
|
|
28
|
+
* PARLIAMENT BUILDINGS
|
|
29
|
+
* LOCATION - CITY SQUARE
|
|
30
|
+
* DIVISION - CENTRAL
|
|
31
|
+
* DISTRICT - NAIROBI
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* The first lines contain informal address details (village, P.O. Box) while the suffixed lines
|
|
35
|
+
* contain official administrative designations prefixed with labels like "LOCATION -", "DIVISION -", "DISTRICT -".
|
|
36
|
+
* @export
|
|
37
|
+
* @interface KenyaNidLookup2Address
|
|
38
|
+
*/
|
|
39
|
+
export interface KenyaNidLookup2Address {
|
|
40
|
+
/**
|
|
41
|
+
* The district where the person resides.
|
|
42
|
+
*
|
|
43
|
+
* This is the highest level of the pre-2010 administrative hierarchy stored in IPRS. Districts were
|
|
44
|
+
* the primary administrative units under Kenya's provincial system before the change to counties in 2010.
|
|
45
|
+
* Districts roughly correspond to sub-counties in the current administrative structure.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof KenyaNidLookup2Address
|
|
48
|
+
*/
|
|
49
|
+
district?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* The division within the district.
|
|
52
|
+
*
|
|
53
|
+
* This is the second level of the pre-2010 administrative hierarchy. Divisions were administrative
|
|
54
|
+
* units between districts and locations.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof KenyaNidLookup2Address
|
|
57
|
+
*/
|
|
58
|
+
division?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The location within the division.
|
|
61
|
+
*
|
|
62
|
+
* This is the third level of the pre-2010 administrative hierarchy. Locations were the smallest
|
|
63
|
+
* administrative units.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof KenyaNidLookup2Address
|
|
66
|
+
*/
|
|
67
|
+
location?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Additional address lines that appear before the structured administrative parts.
|
|
70
|
+
*
|
|
71
|
+
* May include P.O. Box (format: "P O BOX [number] [location]"), village names, estate names,
|
|
72
|
+
* or other informal locality information.
|
|
73
|
+
* @type {Array<string>}
|
|
74
|
+
* @memberof KenyaNidLookup2Address
|
|
75
|
+
*/
|
|
76
|
+
additionalLines?: Array<string> | null;
|
|
77
|
+
/**
|
|
78
|
+
* The raw, unparsed address string as returned from IPRS (Integrated Population Registration System).
|
|
79
|
+
*
|
|
80
|
+
* This preserves the original newline-separated format containing both informal address components
|
|
81
|
+
* (village, P.O. Box) and labeled administrative divisions (LOCATION, DIVISION, DISTRICT).
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof KenyaNidLookup2Address
|
|
84
|
+
*/
|
|
85
|
+
raw?: string | null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the KenyaNidLookup2Address interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfKenyaNidLookup2Address(value: object): value is KenyaNidLookup2Address {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function KenyaNidLookup2AddressFromJSON(json: any): KenyaNidLookup2Address {
|
|
96
|
+
return KenyaNidLookup2AddressFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function KenyaNidLookup2AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2Address {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'district': json['district'] == null ? undefined : json['district'],
|
|
106
|
+
'division': json['division'] == null ? undefined : json['division'],
|
|
107
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
108
|
+
'additionalLines': json['additionalLines'] == null ? undefined : json['additionalLines'],
|
|
109
|
+
'raw': json['raw'] == null ? undefined : json['raw'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function KenyaNidLookup2AddressToJSON(json: any): KenyaNidLookup2Address {
|
|
114
|
+
return KenyaNidLookup2AddressToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function KenyaNidLookup2AddressToJSONTyped(value?: KenyaNidLookup2Address | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'district': value['district'],
|
|
125
|
+
'division': value['division'],
|
|
126
|
+
'location': value['location'],
|
|
127
|
+
'additionalLines': value['additionalLines'],
|
|
128
|
+
'raw': value['raw'],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -0,0 +1,180 @@
|
|
|
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 { KenyaNidLookup2Address } from './KenyaNidLookup2Address';
|
|
17
|
+
import {
|
|
18
|
+
KenyaNidLookup2AddressFromJSON,
|
|
19
|
+
KenyaNidLookup2AddressFromJSONTyped,
|
|
20
|
+
KenyaNidLookup2AddressToJSON,
|
|
21
|
+
KenyaNidLookup2AddressToJSONTyped,
|
|
22
|
+
} from './KenyaNidLookup2Address';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface KenyaNidLookup2ProviderOutput
|
|
28
|
+
*/
|
|
29
|
+
export interface KenyaNidLookup2ProviderOutput {
|
|
30
|
+
/**
|
|
31
|
+
* The first name (given name) of the ID holder as recorded in IPRS.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
34
|
+
*/
|
|
35
|
+
firstName: string;
|
|
36
|
+
/**
|
|
37
|
+
* The surname (family name) of the ID holder as recorded in IPRS.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
40
|
+
*/
|
|
41
|
+
surname: string;
|
|
42
|
+
/**
|
|
43
|
+
* The other name (middle name) of the ID holder as recorded in IPRS.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
46
|
+
*/
|
|
47
|
+
otherName?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The sex of the ID holder as recorded on the National ID.
|
|
50
|
+
*
|
|
51
|
+
* Possible values:
|
|
52
|
+
* - Male
|
|
53
|
+
* - Female
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
56
|
+
*/
|
|
57
|
+
sex: string;
|
|
58
|
+
/**
|
|
59
|
+
* The date of birth of the ID holder as recorded in IPRS.
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
62
|
+
*/
|
|
63
|
+
dateOfBirth?: Date | null;
|
|
64
|
+
/**
|
|
65
|
+
* Citizenship status as recorded in the IPRS civil registry database.
|
|
66
|
+
*
|
|
67
|
+
* For the Kenya National ID lookup, this value will always be "Kenyan" as the National ID is only
|
|
68
|
+
* issued to Kenyan citizens. Non-citizens residing in Kenya are issued different identification
|
|
69
|
+
* documents (Alien ID cards, refugee documentation, etc.) which are not supported by this provider.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
72
|
+
*/
|
|
73
|
+
citizenship: string;
|
|
74
|
+
/**
|
|
75
|
+
* The Kenya National ID Number (Nambari ya Kitambulisho).
|
|
76
|
+
*
|
|
77
|
+
* This is the primary unique identifier for Kenyan citizens in all government systems, issued by
|
|
78
|
+
* the National Registration Bureau (NRB). The format is 1 to 9 numeric digits (regex: /^[0-9]{1,9}$/).
|
|
79
|
+
* This number is assigned upon first registration at age 18 (or upon naturalization for new citizens)
|
|
80
|
+
* and remains constant for life.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
83
|
+
*/
|
|
84
|
+
idNumber: string;
|
|
85
|
+
/**
|
|
86
|
+
* The physical card serial number printed on the Kenya National ID card.
|
|
87
|
+
*
|
|
88
|
+
* This is distinct from the ID Number and serves as a card issuance tracking identifier maintained
|
|
89
|
+
* by IPRS. This value changes each time a new physical card is issued (loss, damage, renewal).
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
92
|
+
*/
|
|
93
|
+
serialNumber: string;
|
|
94
|
+
/**
|
|
95
|
+
* The date the National ID was issued by the National Registration Bureau (NRB).
|
|
96
|
+
* @type {Date}
|
|
97
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
98
|
+
*/
|
|
99
|
+
dateOfIssue?: Date | null;
|
|
100
|
+
/**
|
|
101
|
+
* Place of birth as recorded in Kenya's civil registry (IPRS).
|
|
102
|
+
*
|
|
103
|
+
* This is structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
104
|
+
* @type {KenyaNidLookup2Address}
|
|
105
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
106
|
+
*/
|
|
107
|
+
placeOfBirth?: KenyaNidLookup2Address | null;
|
|
108
|
+
/**
|
|
109
|
+
* Current residence address as registered in IPRS.
|
|
110
|
+
*
|
|
111
|
+
* This represents the address on file at the time of ID registration or last update, structured
|
|
112
|
+
* according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
|
|
113
|
+
* @type {KenyaNidLookup2Address}
|
|
114
|
+
* @memberof KenyaNidLookup2ProviderOutput
|
|
115
|
+
*/
|
|
116
|
+
placeOfResidence?: KenyaNidLookup2Address | null;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Check if a given object implements the KenyaNidLookup2ProviderOutput interface.
|
|
121
|
+
*/
|
|
122
|
+
export function instanceOfKenyaNidLookup2ProviderOutput(value: object): value is KenyaNidLookup2ProviderOutput {
|
|
123
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
124
|
+
if (!('surname' in value) || value['surname'] === undefined) return false;
|
|
125
|
+
if (!('sex' in value) || value['sex'] === undefined) return false;
|
|
126
|
+
if (!('citizenship' in value) || value['citizenship'] === undefined) return false;
|
|
127
|
+
if (!('idNumber' in value) || value['idNumber'] === undefined) return false;
|
|
128
|
+
if (!('serialNumber' in value) || value['serialNumber'] === undefined) return false;
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function KenyaNidLookup2ProviderOutputFromJSON(json: any): KenyaNidLookup2ProviderOutput {
|
|
133
|
+
return KenyaNidLookup2ProviderOutputFromJSONTyped(json, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function KenyaNidLookup2ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2ProviderOutput {
|
|
137
|
+
if (json == null) {
|
|
138
|
+
return json;
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'firstName': json['firstName'],
|
|
143
|
+
'surname': json['surname'],
|
|
144
|
+
'otherName': json['otherName'] == null ? undefined : json['otherName'],
|
|
145
|
+
'sex': json['sex'],
|
|
146
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
147
|
+
'citizenship': json['citizenship'],
|
|
148
|
+
'idNumber': json['idNumber'],
|
|
149
|
+
'serialNumber': json['serialNumber'],
|
|
150
|
+
'dateOfIssue': json['dateOfIssue'] == null ? undefined : (new Date(json['dateOfIssue'])),
|
|
151
|
+
'placeOfBirth': json['placeOfBirth'] == null ? undefined : KenyaNidLookup2AddressFromJSON(json['placeOfBirth']),
|
|
152
|
+
'placeOfResidence': json['placeOfResidence'] == null ? undefined : KenyaNidLookup2AddressFromJSON(json['placeOfResidence']),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function KenyaNidLookup2ProviderOutputToJSON(json: any): KenyaNidLookup2ProviderOutput {
|
|
157
|
+
return KenyaNidLookup2ProviderOutputToJSONTyped(json, false);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function KenyaNidLookup2ProviderOutputToJSONTyped(value?: KenyaNidLookup2ProviderOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
161
|
+
if (value == null) {
|
|
162
|
+
return value;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
|
|
167
|
+
'firstName': value['firstName'],
|
|
168
|
+
'surname': value['surname'],
|
|
169
|
+
'otherName': value['otherName'],
|
|
170
|
+
'sex': value['sex'],
|
|
171
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
|
|
172
|
+
'citizenship': value['citizenship'],
|
|
173
|
+
'idNumber': value['idNumber'],
|
|
174
|
+
'serialNumber': value['serialNumber'],
|
|
175
|
+
'dateOfIssue': value['dateOfIssue'] == null ? undefined : ((value['dateOfIssue'] as any).toISOString().substring(0,10)),
|
|
176
|
+
'placeOfBirth': KenyaNidLookup2AddressToJSON(value['placeOfBirth']),
|
|
177
|
+
'placeOfResidence': KenyaNidLookup2AddressToJSON(value['placeOfResidence']),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
@@ -209,6 +209,13 @@ import {
|
|
|
209
209
|
LloydsSmartIdProviderOutputToJSON,
|
|
210
210
|
LloydsSmartIdProviderOutputToJSONTyped,
|
|
211
211
|
} from './LloydsSmartIdProviderOutput';
|
|
212
|
+
import type { KenyaNidLookup2ProviderOutput } from './KenyaNidLookup2ProviderOutput';
|
|
213
|
+
import {
|
|
214
|
+
KenyaNidLookup2ProviderOutputFromJSON,
|
|
215
|
+
KenyaNidLookup2ProviderOutputFromJSONTyped,
|
|
216
|
+
KenyaNidLookup2ProviderOutputToJSON,
|
|
217
|
+
KenyaNidLookup2ProviderOutputToJSONTyped,
|
|
218
|
+
} from './KenyaNidLookup2ProviderOutput';
|
|
212
219
|
import type { LatviaEparakstsMobileProviderOutput } from './LatviaEparakstsMobileProviderOutput';
|
|
213
220
|
import {
|
|
214
221
|
LatviaEparakstsMobileProviderOutputFromJSON,
|
|
@@ -364,6 +371,12 @@ export interface ProviderOutput {
|
|
|
364
371
|
* @memberof ProviderOutput
|
|
365
372
|
*/
|
|
366
373
|
italySpid?: SpidProviderOutput | null;
|
|
374
|
+
/**
|
|
375
|
+
* Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
|
|
376
|
+
* @type {KenyaNidLookup2ProviderOutput}
|
|
377
|
+
* @memberof ProviderOutput
|
|
378
|
+
*/
|
|
379
|
+
kenyaNidLookup2?: KenyaNidLookup2ProviderOutput | null;
|
|
367
380
|
/**
|
|
368
381
|
* Exposed properties for the `lloyds-smart-id` Provider which do not directly map to the normalized IdentityData model.
|
|
369
382
|
* @type {LloydsSmartIdProviderOutput}
|
|
@@ -475,6 +488,7 @@ export function ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
475
488
|
'franceIdentiteNumerique': json['france-identite-numerique'] == null ? undefined : FrenchNumeriqueProviderOutputFromJSON(json['france-identite-numerique']),
|
|
476
489
|
'googleWallet': json['google-wallet'] == null ? undefined : GoogleWalletProviderOutputFromJSON(json['google-wallet']),
|
|
477
490
|
'italySpid': json['italy-spid'] == null ? undefined : SpidProviderOutputFromJSON(json['italy-spid']),
|
|
491
|
+
'kenyaNidLookup2': json['kenya-nid-lookup-2'] == null ? undefined : KenyaNidLookup2ProviderOutputFromJSON(json['kenya-nid-lookup-2']),
|
|
478
492
|
'lloydsSmartId': json['lloyds-smart-id'] == null ? undefined : LloydsSmartIdProviderOutputFromJSON(json['lloyds-smart-id']),
|
|
479
493
|
'mexicoCurpLookup': json['mexico-curp-lookup'] == null ? undefined : MexicoCurpProviderOutputFromJSON(json['mexico-curp-lookup']),
|
|
480
494
|
'mobileId': json['mobile-id'] == null ? undefined : MobileIdProviderOutputFromJSON(json['mobile-id']),
|
|
@@ -521,6 +535,7 @@ export function ProviderOutputToJSONTyped(value?: ProviderOutput | null, ignoreD
|
|
|
521
535
|
'france-identite-numerique': FrenchNumeriqueProviderOutputToJSON(value['franceIdentiteNumerique']),
|
|
522
536
|
'google-wallet': GoogleWalletProviderOutputToJSON(value['googleWallet']),
|
|
523
537
|
'italy-spid': SpidProviderOutputToJSON(value['italySpid']),
|
|
538
|
+
'kenya-nid-lookup-2': KenyaNidLookup2ProviderOutputToJSON(value['kenyaNidLookup2']),
|
|
524
539
|
'lloyds-smart-id': LloydsSmartIdProviderOutputToJSON(value['lloydsSmartId']),
|
|
525
540
|
'mexico-curp-lookup': MexicoCurpProviderOutputToJSON(value['mexicoCurpLookup']),
|
|
526
541
|
'mobile-id': MobileIdProviderOutputToJSON(value['mobileId']),
|
package/src/models/index.ts
CHANGED
|
@@ -52,7 +52,9 @@ export * from './IntegrationStep';
|
|
|
52
52
|
export * from './ItsmeProviderOutput';
|
|
53
53
|
export * from './KenyaNidBiometric2Input';
|
|
54
54
|
export * from './KenyaNidInput';
|
|
55
|
+
export * from './KenyaNidLookup2Address';
|
|
55
56
|
export * from './KenyaNidLookup2Input';
|
|
57
|
+
export * from './KenyaNidLookup2ProviderOutput';
|
|
56
58
|
export * from './KenyaNidMatch2Input';
|
|
57
59
|
export * from './KenyaNidMatch2InputSex';
|
|
58
60
|
export * from './LaWalletProviderOutput';
|