@trinsic/api 2.1.0 → 2.1.1-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 +3 -0
- package/dist/esm/models/IdentityData.d.ts +7 -0
- package/dist/esm/models/IdentityData.js +3 -0
- package/dist/esm/models/IndonesiaDukcapilMatchInput.d.ts +84 -0
- package/dist/esm/models/IndonesiaDukcapilMatchInput.js +55 -0
- package/dist/esm/models/Match.d.ts +38 -0
- package/dist/esm/models/Match.js +43 -0
- package/dist/esm/models/MatchData.d.ts +87 -0
- package/dist/esm/models/MatchData.js +60 -0
- package/dist/esm/models/ProviderInput.d.ts +7 -0
- package/dist/esm/models/ProviderInput.js +3 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/IdentityData.d.ts +7 -0
- package/dist/models/IdentityData.js +3 -0
- package/dist/models/IndonesiaDukcapilMatchInput.d.ts +84 -0
- package/dist/models/IndonesiaDukcapilMatchInput.js +62 -0
- package/dist/models/Match.d.ts +38 -0
- package/dist/models/Match.js +50 -0
- package/dist/models/MatchData.d.ts +87 -0
- package/dist/models/MatchData.js +67 -0
- package/dist/models/ProviderInput.d.ts +7 -0
- package/dist/models/ProviderInput.js +3 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/models/IdentityData.ts +15 -0
- package/src/models/IndonesiaDukcapilMatchInput.ts +131 -0
- package/src/models/Match.ts +73 -0
- package/src/models/MatchData.ts +145 -0
- package/src/models/ProviderInput.ts +15 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfIndonesiaDukcapilMatchInput = instanceOfIndonesiaDukcapilMatchInput;
|
|
17
|
+
exports.IndonesiaDukcapilMatchInputFromJSON = IndonesiaDukcapilMatchInputFromJSON;
|
|
18
|
+
exports.IndonesiaDukcapilMatchInputFromJSONTyped = IndonesiaDukcapilMatchInputFromJSONTyped;
|
|
19
|
+
exports.IndonesiaDukcapilMatchInputToJSON = IndonesiaDukcapilMatchInputToJSON;
|
|
20
|
+
exports.IndonesiaDukcapilMatchInputToJSONTyped = IndonesiaDukcapilMatchInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IndonesiaDukcapilMatchInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIndonesiaDukcapilMatchInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function IndonesiaDukcapilMatchInputFromJSON(json) {
|
|
28
|
+
return IndonesiaDukcapilMatchInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function IndonesiaDukcapilMatchInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'fullName': json['fullName'] == null ? undefined : json['fullName'],
|
|
36
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
37
|
+
'nikIdNumber': json['nikIdNumber'] == null ? undefined : json['nikIdNumber'],
|
|
38
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
39
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
40
|
+
'selfieImage': json['selfieImage'] == null ? undefined : json['selfieImage'],
|
|
41
|
+
'documentImage': json['documentImage'] == null ? undefined : json['documentImage'],
|
|
42
|
+
'consentGivenAt': json['consentGivenAt'] == null ? undefined : (new Date(json['consentGivenAt'])),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function IndonesiaDukcapilMatchInputToJSON(json) {
|
|
46
|
+
return IndonesiaDukcapilMatchInputToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function IndonesiaDukcapilMatchInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'fullName': value['fullName'],
|
|
54
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
55
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
56
|
+
'email': value['email'],
|
|
57
|
+
'phoneNumber': value['phoneNumber'],
|
|
58
|
+
'selfieImage': value['selfieImage'],
|
|
59
|
+
'documentImage': value['documentImage'],
|
|
60
|
+
'consentGivenAt': value['consentGivenAt'] == null ? undefined : (value['consentGivenAt'].toISOString()),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Match
|
|
16
|
+
*/
|
|
17
|
+
export interface Match {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Match
|
|
22
|
+
*/
|
|
23
|
+
probabilityValue?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof Match
|
|
28
|
+
*/
|
|
29
|
+
booleanValue?: boolean | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Match interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMatch(value: object): value is Match;
|
|
35
|
+
export declare function MatchFromJSON(json: any): Match;
|
|
36
|
+
export declare function MatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Match;
|
|
37
|
+
export declare function MatchToJSON(json: any): Match;
|
|
38
|
+
export declare function MatchToJSONTyped(value?: Match | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfMatch = instanceOfMatch;
|
|
17
|
+
exports.MatchFromJSON = MatchFromJSON;
|
|
18
|
+
exports.MatchFromJSONTyped = MatchFromJSONTyped;
|
|
19
|
+
exports.MatchToJSON = MatchToJSON;
|
|
20
|
+
exports.MatchToJSONTyped = MatchToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Match interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMatch(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function MatchFromJSON(json) {
|
|
28
|
+
return MatchFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function MatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'probabilityValue': json['probabilityValue'] == null ? undefined : json['probabilityValue'],
|
|
36
|
+
'booleanValue': json['booleanValue'] == null ? undefined : json['booleanValue'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function MatchToJSON(json) {
|
|
40
|
+
return MatchToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MatchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'probabilityValue': value['probabilityValue'],
|
|
48
|
+
'booleanValue': value['booleanValue'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { Match } from './Match';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MatchData
|
|
17
|
+
*/
|
|
18
|
+
export interface MatchData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Match}
|
|
22
|
+
* @memberof MatchData
|
|
23
|
+
*/
|
|
24
|
+
nationalIdNumber?: Match | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Match}
|
|
28
|
+
* @memberof MatchData
|
|
29
|
+
*/
|
|
30
|
+
fullName?: Match | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Match}
|
|
34
|
+
* @memberof MatchData
|
|
35
|
+
*/
|
|
36
|
+
givenName?: Match | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Match}
|
|
40
|
+
* @memberof MatchData
|
|
41
|
+
*/
|
|
42
|
+
middleName?: Match | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Match}
|
|
46
|
+
* @memberof MatchData
|
|
47
|
+
*/
|
|
48
|
+
familyName?: Match | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Match}
|
|
52
|
+
* @memberof MatchData
|
|
53
|
+
*/
|
|
54
|
+
sex?: Match | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Match}
|
|
58
|
+
* @memberof MatchData
|
|
59
|
+
*/
|
|
60
|
+
dateOfBirth?: Match | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Match}
|
|
64
|
+
* @memberof MatchData
|
|
65
|
+
*/
|
|
66
|
+
faceMatch?: Match | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Match}
|
|
70
|
+
* @memberof MatchData
|
|
71
|
+
*/
|
|
72
|
+
liveness?: Match | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Match}
|
|
76
|
+
* @memberof MatchData
|
|
77
|
+
*/
|
|
78
|
+
imageAuthenticity?: Match | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the MatchData interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfMatchData(value: object): value is MatchData;
|
|
84
|
+
export declare function MatchDataFromJSON(json: any): MatchData;
|
|
85
|
+
export declare function MatchDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchData;
|
|
86
|
+
export declare function MatchDataToJSON(json: any): MatchData;
|
|
87
|
+
export declare function MatchDataToJSONTyped(value?: MatchData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfMatchData = instanceOfMatchData;
|
|
17
|
+
exports.MatchDataFromJSON = MatchDataFromJSON;
|
|
18
|
+
exports.MatchDataFromJSONTyped = MatchDataFromJSONTyped;
|
|
19
|
+
exports.MatchDataToJSON = MatchDataToJSON;
|
|
20
|
+
exports.MatchDataToJSONTyped = MatchDataToJSONTyped;
|
|
21
|
+
const Match_1 = require("./Match");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MatchData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMatchData(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function MatchDataFromJSON(json) {
|
|
29
|
+
return MatchDataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function MatchDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['nationalIdNumber']),
|
|
37
|
+
'fullName': json['fullName'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['fullName']),
|
|
38
|
+
'givenName': json['givenName'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['givenName']),
|
|
39
|
+
'middleName': json['middleName'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['middleName']),
|
|
40
|
+
'familyName': json['familyName'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['familyName']),
|
|
41
|
+
'sex': json['sex'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['sex']),
|
|
42
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['dateOfBirth']),
|
|
43
|
+
'faceMatch': json['faceMatch'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['faceMatch']),
|
|
44
|
+
'liveness': json['liveness'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['liveness']),
|
|
45
|
+
'imageAuthenticity': json['imageAuthenticity'] == null ? undefined : (0, Match_1.MatchFromJSON)(json['imageAuthenticity']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function MatchDataToJSON(json) {
|
|
49
|
+
return MatchDataToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function MatchDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'nationalIdNumber': (0, Match_1.MatchToJSON)(value['nationalIdNumber']),
|
|
57
|
+
'fullName': (0, Match_1.MatchToJSON)(value['fullName']),
|
|
58
|
+
'givenName': (0, Match_1.MatchToJSON)(value['givenName']),
|
|
59
|
+
'middleName': (0, Match_1.MatchToJSON)(value['middleName']),
|
|
60
|
+
'familyName': (0, Match_1.MatchToJSON)(value['familyName']),
|
|
61
|
+
'sex': (0, Match_1.MatchToJSON)(value['sex']),
|
|
62
|
+
'dateOfBirth': (0, Match_1.MatchToJSON)(value['dateOfBirth']),
|
|
63
|
+
'faceMatch': (0, Match_1.MatchToJSON)(value['faceMatch']),
|
|
64
|
+
'liveness': (0, Match_1.MatchToJSON)(value['liveness']),
|
|
65
|
+
'imageAuthenticity': (0, Match_1.MatchToJSON)(value['imageAuthenticity']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -22,6 +22,7 @@ import type { AadhaarInput } from './AadhaarInput';
|
|
|
22
22
|
import type { KenyaNidInput } from './KenyaNidInput';
|
|
23
23
|
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
24
24
|
import type { SmartIdInput } from './SmartIdInput';
|
|
25
|
+
import type { IndonesiaDukcapilMatchInput } from './IndonesiaDukcapilMatchInput';
|
|
25
26
|
import type { MobileIdInput } from './MobileIdInput';
|
|
26
27
|
import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
|
|
27
28
|
import type { IndonesiaNikInput } from './IndonesiaNikInput';
|
|
@@ -38,6 +39,12 @@ export interface ProviderInput {
|
|
|
38
39
|
* @memberof ProviderInput
|
|
39
40
|
*/
|
|
40
41
|
indonesiaNik?: IndonesiaNikInput | null;
|
|
42
|
+
/**
|
|
43
|
+
* Input for the `indonesia-dukcapil-match` provider
|
|
44
|
+
* @type {IndonesiaDukcapilMatchInput}
|
|
45
|
+
* @memberof ProviderInput
|
|
46
|
+
*/
|
|
47
|
+
indonesiaDukcapilMatch?: IndonesiaDukcapilMatchInput | null;
|
|
41
48
|
/**
|
|
42
49
|
* Input for the `mexico-curp-lookup` provider
|
|
43
50
|
* @type {MexicoCurpInput}
|
|
@@ -31,6 +31,7 @@ const AadhaarInput_1 = require("./AadhaarInput");
|
|
|
31
31
|
const KenyaNidInput_1 = require("./KenyaNidInput");
|
|
32
32
|
const NigeriaNinInput_1 = require("./NigeriaNinInput");
|
|
33
33
|
const SmartIdInput_1 = require("./SmartIdInput");
|
|
34
|
+
const IndonesiaDukcapilMatchInput_1 = require("./IndonesiaDukcapilMatchInput");
|
|
34
35
|
const MobileIdInput_1 = require("./MobileIdInput");
|
|
35
36
|
const TrinsicTestDatabaseLookupInput_1 = require("./TrinsicTestDatabaseLookupInput");
|
|
36
37
|
const IndonesiaNikInput_1 = require("./IndonesiaNikInput");
|
|
@@ -50,6 +51,7 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
}
|
|
51
52
|
return {
|
|
52
53
|
'indonesiaNik': json['indonesiaNik'] == null ? undefined : (0, IndonesiaNikInput_1.IndonesiaNikInputFromJSON)(json['indonesiaNik']),
|
|
54
|
+
'indonesiaDukcapilMatch': json['indonesiaDukcapilMatch'] == null ? undefined : (0, IndonesiaDukcapilMatchInput_1.IndonesiaDukcapilMatchInputFromJSON)(json['indonesiaDukcapilMatch']),
|
|
53
55
|
'mexicoCurp': json['mexicoCurp'] == null ? undefined : (0, MexicoCurpInput_1.MexicoCurpInputFromJSON)(json['mexicoCurp']),
|
|
54
56
|
'southAfricaNid': json['southAfricaNid'] == null ? undefined : (0, SouthAfricaNidInput_1.SouthAfricaNidInputFromJSON)(json['southAfricaNid']),
|
|
55
57
|
'kenyaNid': json['kenyaNid'] == null ? undefined : (0, KenyaNidInput_1.KenyaNidInputFromJSON)(json['kenyaNid']),
|
|
@@ -77,6 +79,7 @@ function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
79
|
}
|
|
78
80
|
return {
|
|
79
81
|
'indonesiaNik': (0, IndonesiaNikInput_1.IndonesiaNikInputToJSON)(value['indonesiaNik']),
|
|
82
|
+
'indonesiaDukcapilMatch': (0, IndonesiaDukcapilMatchInput_1.IndonesiaDukcapilMatchInputToJSON)(value['indonesiaDukcapilMatch']),
|
|
80
83
|
'mexicoCurp': (0, MexicoCurpInput_1.MexicoCurpInputToJSON)(value['mexicoCurp']),
|
|
81
84
|
'southAfricaNid': (0, SouthAfricaNidInput_1.SouthAfricaNidInputToJSON)(value['southAfricaNid']),
|
|
82
85
|
'kenyaNid': (0, KenyaNidInput_1.KenyaNidInputToJSON)(value['kenyaNid']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './GetSessionResultResponse';
|
|
|
24
24
|
export * from './HttpValidationProblemDetails';
|
|
25
25
|
export * from './IdentityData';
|
|
26
26
|
export * from './IdinInput';
|
|
27
|
+
export * from './IndonesiaDukcapilMatchInput';
|
|
27
28
|
export * from './IndonesiaNikInput';
|
|
28
29
|
export * from './IntegrationCapability';
|
|
29
30
|
export * from './IntegrationLaunchMethod';
|
|
@@ -33,6 +34,8 @@ export * from './Language';
|
|
|
33
34
|
export * from './ListProviderContractsResponse';
|
|
34
35
|
export * from './ListProvidersResponse';
|
|
35
36
|
export * from './ListSessionsResponse';
|
|
37
|
+
export * from './Match';
|
|
38
|
+
export * from './MatchData';
|
|
36
39
|
export * from './MexicoCurpInput';
|
|
37
40
|
export * from './MobileIdInput';
|
|
38
41
|
export * from './NigeriaNinInput';
|
package/dist/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __exportStar(require("./GetSessionResultResponse"), exports);
|
|
|
42
42
|
__exportStar(require("./HttpValidationProblemDetails"), exports);
|
|
43
43
|
__exportStar(require("./IdentityData"), exports);
|
|
44
44
|
__exportStar(require("./IdinInput"), exports);
|
|
45
|
+
__exportStar(require("./IndonesiaDukcapilMatchInput"), exports);
|
|
45
46
|
__exportStar(require("./IndonesiaNikInput"), exports);
|
|
46
47
|
__exportStar(require("./IntegrationCapability"), exports);
|
|
47
48
|
__exportStar(require("./IntegrationLaunchMethod"), exports);
|
|
@@ -51,6 +52,8 @@ __exportStar(require("./Language"), exports);
|
|
|
51
52
|
__exportStar(require("./ListProviderContractsResponse"), exports);
|
|
52
53
|
__exportStar(require("./ListProvidersResponse"), exports);
|
|
53
54
|
__exportStar(require("./ListSessionsResponse"), exports);
|
|
55
|
+
__exportStar(require("./Match"), exports);
|
|
56
|
+
__exportStar(require("./MatchData"), exports);
|
|
54
57
|
__exportStar(require("./MexicoCurpInput"), exports);
|
|
55
58
|
__exportStar(require("./MobileIdInput"), exports);
|
|
56
59
|
__exportStar(require("./NigeriaNinInput"), exports);
|
package/package.json
CHANGED
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
AttachmentAccessKeysToJSON,
|
|
35
35
|
AttachmentAccessKeysToJSONTyped,
|
|
36
36
|
} from './AttachmentAccessKeys';
|
|
37
|
+
import type { MatchData } from './MatchData';
|
|
38
|
+
import {
|
|
39
|
+
MatchDataFromJSON,
|
|
40
|
+
MatchDataFromJSONTyped,
|
|
41
|
+
MatchDataToJSON,
|
|
42
|
+
MatchDataToJSONTyped,
|
|
43
|
+
} from './MatchData';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -65,6 +72,12 @@ export interface IdentityData {
|
|
|
65
72
|
* @memberof IdentityData
|
|
66
73
|
*/
|
|
67
74
|
document?: DocumentData | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {MatchData}
|
|
78
|
+
* @memberof IdentityData
|
|
79
|
+
*/
|
|
80
|
+
match?: MatchData | null;
|
|
68
81
|
/**
|
|
69
82
|
*
|
|
70
83
|
* @type {AttachmentAccessKeys}
|
|
@@ -94,6 +107,7 @@ export function IdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
94
107
|
'originatingSubProviderId': json['originatingSubProviderId'] == null ? undefined : json['originatingSubProviderId'],
|
|
95
108
|
'person': json['person'] == null ? undefined : PersonDataFromJSON(json['person']),
|
|
96
109
|
'document': json['document'] == null ? undefined : DocumentDataFromJSON(json['document']),
|
|
110
|
+
'match': json['match'] == null ? undefined : MatchDataFromJSON(json['match']),
|
|
97
111
|
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : AttachmentAccessKeysFromJSON(json['attachmentAccessKeys']),
|
|
98
112
|
};
|
|
99
113
|
}
|
|
@@ -113,6 +127,7 @@ export function IdentityDataToJSONTyped(value?: IdentityData | null, ignoreDiscr
|
|
|
113
127
|
'originatingSubProviderId': value['originatingSubProviderId'],
|
|
114
128
|
'person': PersonDataToJSON(value['person']),
|
|
115
129
|
'document': DocumentDataToJSON(value['document']),
|
|
130
|
+
'match': MatchDataToJSON(value['match']),
|
|
116
131
|
'attachmentAccessKeys': AttachmentAccessKeysToJSON(value['attachmentAccessKeys']),
|
|
117
132
|
};
|
|
118
133
|
}
|
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IndonesiaDukcapilMatchInput
|
|
20
|
+
*/
|
|
21
|
+
export interface IndonesiaDukcapilMatchInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's full name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
26
|
+
*/
|
|
27
|
+
fullName?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
32
|
+
*/
|
|
33
|
+
dateOfBirth?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
* The user's Indonesia NIK ID number
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
38
|
+
*/
|
|
39
|
+
nikIdNumber?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The email address of the individual.
|
|
42
|
+
*
|
|
43
|
+
* Either email or phone number must be provided.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
46
|
+
*/
|
|
47
|
+
email?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The phone number of the individual.
|
|
50
|
+
*
|
|
51
|
+
* Either email or phone number must be provided.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
54
|
+
*/
|
|
55
|
+
phoneNumber?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The raw bytes of the selfie image of the individual.
|
|
58
|
+
*
|
|
59
|
+
* Must be JPEG or PNG format; 10MB maximum.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
62
|
+
*/
|
|
63
|
+
selfieImage?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* The raw bytes of the image of the individual's KTP government ID.
|
|
66
|
+
*
|
|
67
|
+
* Must be JPEG format; 1MB maximum.
|
|
68
|
+
*
|
|
69
|
+
* Optional.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
72
|
+
*/
|
|
73
|
+
documentImage?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The timestamp when consent was given by the user for the verification.
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
78
|
+
*/
|
|
79
|
+
consentGivenAt?: Date | null;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the IndonesiaDukcapilMatchInput interface.
|
|
84
|
+
*/
|
|
85
|
+
export function instanceOfIndonesiaDukcapilMatchInput(value: object): value is IndonesiaDukcapilMatchInput {
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function IndonesiaDukcapilMatchInputFromJSON(json: any): IndonesiaDukcapilMatchInput {
|
|
90
|
+
return IndonesiaDukcapilMatchInputFromJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function IndonesiaDukcapilMatchInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaDukcapilMatchInput {
|
|
94
|
+
if (json == null) {
|
|
95
|
+
return json;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'fullName': json['fullName'] == null ? undefined : json['fullName'],
|
|
100
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
101
|
+
'nikIdNumber': json['nikIdNumber'] == null ? undefined : json['nikIdNumber'],
|
|
102
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
103
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
104
|
+
'selfieImage': json['selfieImage'] == null ? undefined : json['selfieImage'],
|
|
105
|
+
'documentImage': json['documentImage'] == null ? undefined : json['documentImage'],
|
|
106
|
+
'consentGivenAt': json['consentGivenAt'] == null ? undefined : (new Date(json['consentGivenAt'])),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function IndonesiaDukcapilMatchInputToJSON(json: any): IndonesiaDukcapilMatchInput {
|
|
111
|
+
return IndonesiaDukcapilMatchInputToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function IndonesiaDukcapilMatchInputToJSONTyped(value?: IndonesiaDukcapilMatchInput | null, ignoreDiscriminator: boolean = false): any {
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'fullName': value['fullName'],
|
|
122
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
|
|
123
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
124
|
+
'email': value['email'],
|
|
125
|
+
'phoneNumber': value['phoneNumber'],
|
|
126
|
+
'selfieImage': value['selfieImage'],
|
|
127
|
+
'documentImage': value['documentImage'],
|
|
128
|
+
'consentGivenAt': value['consentGivenAt'] == null ? undefined : ((value['consentGivenAt'] as any).toISOString()),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 Match
|
|
20
|
+
*/
|
|
21
|
+
export interface Match {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Match
|
|
26
|
+
*/
|
|
27
|
+
probabilityValue?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof Match
|
|
32
|
+
*/
|
|
33
|
+
booleanValue?: boolean | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the Match interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfMatch(value: object): value is Match {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function MatchFromJSON(json: any): Match {
|
|
44
|
+
return MatchFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function MatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Match {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'probabilityValue': json['probabilityValue'] == null ? undefined : json['probabilityValue'],
|
|
54
|
+
'booleanValue': json['booleanValue'] == null ? undefined : json['booleanValue'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MatchToJSON(json: any): Match {
|
|
59
|
+
return MatchToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function MatchToJSONTyped(value?: Match | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'probabilityValue': value['probabilityValue'],
|
|
70
|
+
'booleanValue': value['booleanValue'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|