@trinsic/api 2.0.2 → 2.0.3
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 +1 -2
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/BangladeshNidInput.d.ts +58 -0
- package/dist/esm/models/{BangladeshNationalIdInput.js → BangladeshNidInput.js} +12 -10
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +0 -6
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProviderInput.d.ts +3 -3
- package/dist/esm/models/ProviderInput.js +3 -3
- package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/RefreshStepContentRequest.js +3 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/BangladeshNidInput.d.ts +58 -0
- package/dist/models/{BangladeshNationalIdInput.js → BangladeshNidInput.js} +17 -15
- package/dist/models/BrazilDigitalCnhInput.d.ts +0 -6
- package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/models/ProblemDetails.d.ts +5 -5
- package/dist/models/ProviderInput.d.ts +3 -3
- package/dist/models/ProviderInput.js +3 -3
- package/dist/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/RefreshStepContentRequest.js +3 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/{BangladeshNationalIdInput.ts → BangladeshNidInput.ts} +28 -18
- package/src/models/BrazilDigitalCnhInput.ts +0 -6
- package/src/models/HttpValidationProblemDetails.ts +5 -5
- package/src/models/ProblemDetails.ts +5 -5
- package/src/models/ProviderInput.ts +11 -11
- package/src/models/RefreshStepContentRequest.ts +3 -2
- package/src/models/index.ts +1 -1
- package/dist/apis/WellKnownApi.d.ts +0 -41
- package/dist/apis/WellKnownApi.js +0 -61
- package/dist/esm/apis/WellKnownApi.d.ts +0 -41
- package/dist/esm/apis/WellKnownApi.js +0 -57
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +0 -50
- package/dist/models/BangladeshNationalIdInput.d.ts +0 -50
- package/src/apis/WellKnownApi.ts +0 -82
package/.openapi-generator/FILES
CHANGED
|
@@ -6,13 +6,12 @@ package.json
|
|
|
6
6
|
src/apis/AttachmentsApi.ts
|
|
7
7
|
src/apis/NetworkApi.ts
|
|
8
8
|
src/apis/SessionsApi.ts
|
|
9
|
-
src/apis/WellKnownApi.ts
|
|
10
9
|
src/apis/index.ts
|
|
11
10
|
src/index.ts
|
|
12
11
|
src/models/AadhaarInput.ts
|
|
13
12
|
src/models/Address.ts
|
|
14
13
|
src/models/AttachmentAccessKeys.ts
|
|
15
|
-
src/models/
|
|
14
|
+
src/models/BangladeshNidInput.ts
|
|
16
15
|
src/models/BrazilCpfCheckInput.ts
|
|
17
16
|
src/models/BrazilDigitalCnhInput.ts
|
|
18
17
|
src/models/CancelSessionResponse.ts
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -19,4 +19,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AttachmentsApi"), exports);
|
|
20
20
|
__exportStar(require("./NetworkApi"), exports);
|
|
21
21
|
__exportStar(require("./SessionsApi"), exports);
|
|
22
|
-
__exportStar(require("./WellKnownApi"), exports);
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
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 BangladeshNidInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BangladeshNidInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's Bangladesh National ID number.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BangladeshNidInput
|
|
22
|
+
*/
|
|
23
|
+
nationalIdNumber?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BangladeshNidInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* The user's full name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BangladeshNidInput
|
|
34
|
+
*/
|
|
35
|
+
name?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The raw bytes of the photo file collected from the user.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BangladeshNidInput
|
|
40
|
+
*/
|
|
41
|
+
photoByes?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The MIME Type of the file contained in `PhotoByes`.
|
|
44
|
+
*
|
|
45
|
+
* Must be one of `image/jpeg`, or `image/png`.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof BangladeshNidInput
|
|
48
|
+
*/
|
|
49
|
+
photoImageMimeType?: string | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the BangladeshNidInput interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput;
|
|
55
|
+
export declare function BangladeshNidInputFromJSON(json: any): BangladeshNidInput;
|
|
56
|
+
export declare function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNidInput;
|
|
57
|
+
export declare function BangladeshNidInputToJSON(json: any): BangladeshNidInput;
|
|
58
|
+
export declare function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the BangladeshNidInput interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfBangladeshNidInput(value) {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
|
-
export function
|
|
21
|
-
return
|
|
20
|
+
export function BangladeshNidInputFromJSON(json) {
|
|
21
|
+
return BangladeshNidInputFromJSONTyped(json, false);
|
|
22
22
|
}
|
|
23
|
-
export function
|
|
23
|
+
export function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
24
|
if (json == null) {
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
@@ -28,13 +28,14 @@ export function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator
|
|
|
28
28
|
'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
|
|
29
29
|
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
30
30
|
'name': json['name'] == null ? undefined : json['name'],
|
|
31
|
-
'
|
|
31
|
+
'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
|
|
32
|
+
'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
export function
|
|
35
|
-
return
|
|
35
|
+
export function BangladeshNidInputToJSON(json) {
|
|
36
|
+
return BangladeshNidInputToJSONTyped(json, false);
|
|
36
37
|
}
|
|
37
|
-
export function
|
|
38
|
+
export function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
39
|
if (value == null) {
|
|
39
40
|
return value;
|
|
40
41
|
}
|
|
@@ -42,6 +43,7 @@ export function BangladeshNationalIdInputToJSONTyped(value, ignoreDiscriminator
|
|
|
42
43
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
43
44
|
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
44
45
|
'name': value['name'],
|
|
45
|
-
'
|
|
46
|
+
'photoByes': value['photoByes'],
|
|
47
|
+
'photoImageMimeType': value['photoImageMimeType'],
|
|
46
48
|
};
|
|
47
49
|
}
|
|
@@ -23,12 +23,6 @@ export interface BrazilDigitalCnhInput {
|
|
|
23
23
|
cpfNumber: string;
|
|
24
24
|
/**
|
|
25
25
|
* The raw bytes of the digital CNH file collected from the user.
|
|
26
|
-
*
|
|
27
|
-
* TODO: Lucas or JP help me describe these below vvvvvvvv
|
|
28
|
-
* This can be:
|
|
29
|
-
* - An image containing a physical or digital QR code
|
|
30
|
-
* - A PDF file exported from the CNH app
|
|
31
|
-
* - Some scary third thing?
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof BrazilDigitalCnhInput
|
|
34
28
|
*/
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface HttpValidationProblemDetails {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* A URI reference that identifies the problem type.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof HttpValidationProblemDetails
|
|
22
22
|
*/
|
|
23
23
|
type?: string | null;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* A short, human-readable summary of the error.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof HttpValidationProblemDetails
|
|
28
28
|
*/
|
|
29
29
|
title?: string | null;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* The HTTP status code returned for the request.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof HttpValidationProblemDetails
|
|
34
34
|
*/
|
|
35
35
|
status?: number | null;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* A human-readable explanation specific of the problem.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof HttpValidationProblemDetails
|
|
40
40
|
*/
|
|
41
41
|
detail?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof HttpValidationProblemDetails
|
|
46
46
|
*/
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
export interface ProblemDetails {
|
|
18
18
|
[key: string]: any | any;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* A URI reference that identifies the problem type.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ProblemDetails
|
|
23
23
|
*/
|
|
24
24
|
type?: string | null;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* A short, human-readable summary of the error.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ProblemDetails
|
|
29
29
|
*/
|
|
30
30
|
title?: string | null;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* The HTTP status code returned for the request.
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof ProblemDetails
|
|
35
35
|
*/
|
|
36
36
|
status?: number | null;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* A human-readable explanation specific of the problem.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof ProblemDetails
|
|
41
41
|
*/
|
|
42
42
|
detail?: string | null;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof ProblemDetails
|
|
47
47
|
*/
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
|
|
13
12
|
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
14
13
|
import type { MexicoCurpInput } from './MexicoCurpInput';
|
|
15
14
|
import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
|
|
@@ -18,6 +17,7 @@ import type { SpidInput } from './SpidInput';
|
|
|
18
17
|
import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
|
|
19
18
|
import type { PhilippineMatchInput } from './PhilippineMatchInput';
|
|
20
19
|
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
20
|
+
import type { BangladeshNidInput } from './BangladeshNidInput';
|
|
21
21
|
import type { AadhaarInput } from './AadhaarInput';
|
|
22
22
|
import type { KenyaNidInput } from './KenyaNidInput';
|
|
23
23
|
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
@@ -70,10 +70,10 @@ export interface ProviderInput {
|
|
|
70
70
|
aadhaar?: AadhaarInput | null;
|
|
71
71
|
/**
|
|
72
72
|
* Input for the `bangladesh-nid` provider
|
|
73
|
-
* @type {
|
|
73
|
+
* @type {BangladeshNidInput}
|
|
74
74
|
* @memberof ProviderInput
|
|
75
75
|
*/
|
|
76
|
-
bangladeshNationalId?:
|
|
76
|
+
bangladeshNationalId?: BangladeshNidInput | null;
|
|
77
77
|
/**
|
|
78
78
|
* Input for the `g-brazil-cpf` provider
|
|
79
79
|
* @type {BrazilCpfCheckInput}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { BangladeshNationalIdInputFromJSON, BangladeshNationalIdInputToJSON, } from './BangladeshNationalIdInput';
|
|
15
14
|
import { BrazilCpfCheckInputFromJSON, BrazilCpfCheckInputToJSON, } from './BrazilCpfCheckInput';
|
|
16
15
|
import { MexicoCurpInputFromJSON, MexicoCurpInputToJSON, } from './MexicoCurpInput';
|
|
17
16
|
import { BrazilDigitalCnhInputFromJSON, BrazilDigitalCnhInputToJSON, } from './BrazilDigitalCnhInput';
|
|
@@ -20,6 +19,7 @@ import { SpidInputFromJSON, SpidInputToJSON, } from './SpidInput';
|
|
|
20
19
|
import { SouthAfricaNidInputFromJSON, SouthAfricaNidInputToJSON, } from './SouthAfricaNidInput';
|
|
21
20
|
import { PhilippineMatchInputFromJSON, PhilippineMatchInputToJSON, } from './PhilippineMatchInput';
|
|
22
21
|
import { PhilippineQRInputFromJSON, PhilippineQRInputToJSON, } from './PhilippineQRInput';
|
|
22
|
+
import { BangladeshNidInputFromJSON, BangladeshNidInputToJSON, } from './BangladeshNidInput';
|
|
23
23
|
import { AadhaarInputFromJSON, AadhaarInputToJSON, } from './AadhaarInput';
|
|
24
24
|
import { KenyaNidInputFromJSON, KenyaNidInputToJSON, } from './KenyaNidInput';
|
|
25
25
|
import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInput';
|
|
@@ -48,7 +48,7 @@ export function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
|
|
49
49
|
'nigeriaNin': json['nigeriaNin'] == null ? undefined : NigeriaNinInputFromJSON(json['nigeriaNin']),
|
|
50
50
|
'aadhaar': json['aadhaar'] == null ? undefined : AadhaarInputFromJSON(json['aadhaar']),
|
|
51
|
-
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined :
|
|
51
|
+
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNidInputFromJSON(json['bangladeshNationalId']),
|
|
52
52
|
'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : BrazilCpfCheckInputFromJSON(json['brazilCpfCheck']),
|
|
53
53
|
'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
|
|
54
54
|
'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
|
|
@@ -75,7 +75,7 @@ export function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
75
|
'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
|
|
76
76
|
'nigeriaNin': NigeriaNinInputToJSON(value['nigeriaNin']),
|
|
77
77
|
'aadhaar': AadhaarInputToJSON(value['aadhaar']),
|
|
78
|
-
'bangladeshNationalId':
|
|
78
|
+
'bangladeshNationalId': BangladeshNidInputToJSON(value['bangladeshNationalId']),
|
|
79
79
|
'brazilCpfCheck': BrazilCpfCheckInputToJSON(value['brazilCpfCheck']),
|
|
80
80
|
'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
|
|
81
81
|
'philippineMatch': PhilippineMatchInputToJSON(value['philippineMatch']),
|
|
@@ -20,7 +20,7 @@ export interface RefreshStepContentRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RefreshStepContentRequest
|
|
22
22
|
*/
|
|
23
|
-
resultsAccessKey
|
|
23
|
+
resultsAccessKey: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfRefreshStepContentRequest(value) {
|
|
18
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
|
|
19
|
+
return false;
|
|
18
20
|
return true;
|
|
19
21
|
}
|
|
20
22
|
export function RefreshStepContentRequestFromJSON(json) {
|
|
@@ -25,7 +27,7 @@ export function RefreshStepContentRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
25
27
|
return json;
|
|
26
28
|
}
|
|
27
29
|
return {
|
|
28
|
-
'resultsAccessKey': json['resultsAccessKey']
|
|
30
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
export function RefreshStepContentRequestToJSON(json) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './AadhaarInput';
|
|
2
2
|
export * from './Address';
|
|
3
3
|
export * from './AttachmentAccessKeys';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BangladeshNidInput';
|
|
5
5
|
export * from './BrazilCpfCheckInput';
|
|
6
6
|
export * from './BrazilDigitalCnhInput';
|
|
7
7
|
export * from './CancelSessionResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export * from './AadhaarInput';
|
|
4
4
|
export * from './Address';
|
|
5
5
|
export * from './AttachmentAccessKeys';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './BangladeshNidInput';
|
|
7
7
|
export * from './BrazilCpfCheckInput';
|
|
8
8
|
export * from './BrazilDigitalCnhInput';
|
|
9
9
|
export * from './CancelSessionResponse';
|
|
@@ -0,0 +1,58 @@
|
|
|
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 BangladeshNidInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BangladeshNidInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's Bangladesh National ID number.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BangladeshNidInput
|
|
22
|
+
*/
|
|
23
|
+
nationalIdNumber?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BangladeshNidInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* The user's full name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BangladeshNidInput
|
|
34
|
+
*/
|
|
35
|
+
name?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The raw bytes of the photo file collected from the user.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BangladeshNidInput
|
|
40
|
+
*/
|
|
41
|
+
photoByes?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The MIME Type of the file contained in `PhotoByes`.
|
|
44
|
+
*
|
|
45
|
+
* Must be one of `image/jpeg`, or `image/png`.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof BangladeshNidInput
|
|
48
|
+
*/
|
|
49
|
+
photoImageMimeType?: string | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the BangladeshNidInput interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput;
|
|
55
|
+
export declare function BangladeshNidInputFromJSON(json: any): BangladeshNidInput;
|
|
56
|
+
export declare function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNidInput;
|
|
57
|
+
export declare function BangladeshNidInputToJSON(json: any): BangladeshNidInput;
|
|
58
|
+
export declare function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfBangladeshNidInput = instanceOfBangladeshNidInput;
|
|
17
|
+
exports.BangladeshNidInputFromJSON = BangladeshNidInputFromJSON;
|
|
18
|
+
exports.BangladeshNidInputFromJSONTyped = BangladeshNidInputFromJSONTyped;
|
|
19
|
+
exports.BangladeshNidInputToJSON = BangladeshNidInputToJSON;
|
|
20
|
+
exports.BangladeshNidInputToJSONTyped = BangladeshNidInputToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the BangladeshNidInput interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfBangladeshNidInput(value) {
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function BangladeshNidInputFromJSON(json) {
|
|
28
|
+
return BangladeshNidInputFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
@@ -35,13 +35,14 @@ function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
|
|
36
36
|
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
37
37
|
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
-
'
|
|
38
|
+
'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
|
|
39
|
+
'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
42
|
+
function BangladeshNidInputToJSON(json) {
|
|
43
|
+
return BangladeshNidInputToJSONTyped(json, false);
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
46
|
if (value == null) {
|
|
46
47
|
return value;
|
|
47
48
|
}
|
|
@@ -49,6 +50,7 @@ function BangladeshNationalIdInputToJSONTyped(value, ignoreDiscriminator = false
|
|
|
49
50
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
50
51
|
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
51
52
|
'name': value['name'],
|
|
52
|
-
'
|
|
53
|
+
'photoByes': value['photoByes'],
|
|
54
|
+
'photoImageMimeType': value['photoImageMimeType'],
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -23,12 +23,6 @@ export interface BrazilDigitalCnhInput {
|
|
|
23
23
|
cpfNumber: string;
|
|
24
24
|
/**
|
|
25
25
|
* The raw bytes of the digital CNH file collected from the user.
|
|
26
|
-
*
|
|
27
|
-
* TODO: Lucas or JP help me describe these below vvvvvvvv
|
|
28
|
-
* This can be:
|
|
29
|
-
* - An image containing a physical or digital QR code
|
|
30
|
-
* - A PDF file exported from the CNH app
|
|
31
|
-
* - Some scary third thing?
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof BrazilDigitalCnhInput
|
|
34
28
|
*/
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface HttpValidationProblemDetails {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* A URI reference that identifies the problem type.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof HttpValidationProblemDetails
|
|
22
22
|
*/
|
|
23
23
|
type?: string | null;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* A short, human-readable summary of the error.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof HttpValidationProblemDetails
|
|
28
28
|
*/
|
|
29
29
|
title?: string | null;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* The HTTP status code returned for the request.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof HttpValidationProblemDetails
|
|
34
34
|
*/
|
|
35
35
|
status?: number | null;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* A human-readable explanation specific of the problem.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof HttpValidationProblemDetails
|
|
40
40
|
*/
|
|
41
41
|
detail?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof HttpValidationProblemDetails
|
|
46
46
|
*/
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
export interface ProblemDetails {
|
|
18
18
|
[key: string]: any | any;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* A URI reference that identifies the problem type.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ProblemDetails
|
|
23
23
|
*/
|
|
24
24
|
type?: string | null;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* A short, human-readable summary of the error.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ProblemDetails
|
|
29
29
|
*/
|
|
30
30
|
title?: string | null;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* The HTTP status code returned for the request.
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof ProblemDetails
|
|
35
35
|
*/
|
|
36
36
|
status?: number | null;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* A human-readable explanation specific of the problem.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof ProblemDetails
|
|
41
41
|
*/
|
|
42
42
|
detail?: string | null;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof ProblemDetails
|
|
47
47
|
*/
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
|
|
13
12
|
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
14
13
|
import type { MexicoCurpInput } from './MexicoCurpInput';
|
|
15
14
|
import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
|
|
@@ -18,6 +17,7 @@ import type { SpidInput } from './SpidInput';
|
|
|
18
17
|
import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
|
|
19
18
|
import type { PhilippineMatchInput } from './PhilippineMatchInput';
|
|
20
19
|
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
20
|
+
import type { BangladeshNidInput } from './BangladeshNidInput';
|
|
21
21
|
import type { AadhaarInput } from './AadhaarInput';
|
|
22
22
|
import type { KenyaNidInput } from './KenyaNidInput';
|
|
23
23
|
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
@@ -70,10 +70,10 @@ export interface ProviderInput {
|
|
|
70
70
|
aadhaar?: AadhaarInput | null;
|
|
71
71
|
/**
|
|
72
72
|
* Input for the `bangladesh-nid` provider
|
|
73
|
-
* @type {
|
|
73
|
+
* @type {BangladeshNidInput}
|
|
74
74
|
* @memberof ProviderInput
|
|
75
75
|
*/
|
|
76
|
-
bangladeshNationalId?:
|
|
76
|
+
bangladeshNationalId?: BangladeshNidInput | null;
|
|
77
77
|
/**
|
|
78
78
|
* Input for the `g-brazil-cpf` provider
|
|
79
79
|
* @type {BrazilCpfCheckInput}
|
|
@@ -18,7 +18,6 @@ exports.ProviderInputFromJSON = ProviderInputFromJSON;
|
|
|
18
18
|
exports.ProviderInputFromJSONTyped = ProviderInputFromJSONTyped;
|
|
19
19
|
exports.ProviderInputToJSON = ProviderInputToJSON;
|
|
20
20
|
exports.ProviderInputToJSONTyped = ProviderInputToJSONTyped;
|
|
21
|
-
const BangladeshNationalIdInput_1 = require("./BangladeshNationalIdInput");
|
|
22
21
|
const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
|
|
23
22
|
const MexicoCurpInput_1 = require("./MexicoCurpInput");
|
|
24
23
|
const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
|
|
@@ -27,6 +26,7 @@ const SpidInput_1 = require("./SpidInput");
|
|
|
27
26
|
const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
|
|
28
27
|
const PhilippineMatchInput_1 = require("./PhilippineMatchInput");
|
|
29
28
|
const PhilippineQRInput_1 = require("./PhilippineQRInput");
|
|
29
|
+
const BangladeshNidInput_1 = require("./BangladeshNidInput");
|
|
30
30
|
const AadhaarInput_1 = require("./AadhaarInput");
|
|
31
31
|
const KenyaNidInput_1 = require("./KenyaNidInput");
|
|
32
32
|
const NigeriaNinInput_1 = require("./NigeriaNinInput");
|
|
@@ -55,7 +55,7 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'kenyaNid': json['kenyaNid'] == null ? undefined : (0, KenyaNidInput_1.KenyaNidInputFromJSON)(json['kenyaNid']),
|
|
56
56
|
'nigeriaNin': json['nigeriaNin'] == null ? undefined : (0, NigeriaNinInput_1.NigeriaNinInputFromJSON)(json['nigeriaNin']),
|
|
57
57
|
'aadhaar': json['aadhaar'] == null ? undefined : (0, AadhaarInput_1.AadhaarInputFromJSON)(json['aadhaar']),
|
|
58
|
-
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0,
|
|
58
|
+
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0, BangladeshNidInput_1.BangladeshNidInputFromJSON)(json['bangladeshNationalId']),
|
|
59
59
|
'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputFromJSON)(json['brazilCpfCheck']),
|
|
60
60
|
'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputFromJSON)(json['brazilDigitalCnh']),
|
|
61
61
|
'philippineMatch': json['philippineMatch'] == null ? undefined : (0, PhilippineMatchInput_1.PhilippineMatchInputFromJSON)(json['philippineMatch']),
|
|
@@ -82,7 +82,7 @@ function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
82
82
|
'kenyaNid': (0, KenyaNidInput_1.KenyaNidInputToJSON)(value['kenyaNid']),
|
|
83
83
|
'nigeriaNin': (0, NigeriaNinInput_1.NigeriaNinInputToJSON)(value['nigeriaNin']),
|
|
84
84
|
'aadhaar': (0, AadhaarInput_1.AadhaarInputToJSON)(value['aadhaar']),
|
|
85
|
-
'bangladeshNationalId': (0,
|
|
85
|
+
'bangladeshNationalId': (0, BangladeshNidInput_1.BangladeshNidInputToJSON)(value['bangladeshNationalId']),
|
|
86
86
|
'brazilCpfCheck': (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputToJSON)(value['brazilCpfCheck']),
|
|
87
87
|
'brazilDigitalCnh': (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputToJSON)(value['brazilDigitalCnh']),
|
|
88
88
|
'philippineMatch': (0, PhilippineMatchInput_1.PhilippineMatchInputToJSON)(value['philippineMatch']),
|
|
@@ -20,7 +20,7 @@ export interface RefreshStepContentRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RefreshStepContentRequest
|
|
22
22
|
*/
|
|
23
|
-
resultsAccessKey
|
|
23
|
+
resultsAccessKey: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
@@ -22,6 +22,8 @@ exports.RefreshStepContentRequestToJSONTyped = RefreshStepContentRequestToJSONTy
|
|
|
22
22
|
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfRefreshStepContentRequest(value) {
|
|
25
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
function RefreshStepContentRequestFromJSON(json) {
|
|
@@ -32,7 +34,7 @@ function RefreshStepContentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
'resultsAccessKey': json['resultsAccessKey']
|
|
37
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
function RefreshStepContentRequestToJSON(json) {
|