@vpdev2/metakyc 1.0.56 → 1.0.57
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/dist/client/session.d.ts +12 -15
- package/dist/client/session.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +140 -131
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/client/session.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
workflowKey: string;
|
|
1
|
+
export interface ApplicantPreFillParams {
|
|
3
2
|
firstName?: string;
|
|
4
3
|
lastName?: string;
|
|
5
4
|
email?: string;
|
|
@@ -17,33 +16,31 @@ export interface CreateSessionTokenParams {
|
|
|
17
16
|
/** String client ID (non-ABP projects). Provide this OR tenantId. */
|
|
18
17
|
clientId?: string;
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* can only create/access applicants matching this externalRefId.
|
|
19
|
+
* Your system's unique user identifier. The server automatically creates or
|
|
20
|
+
* finds an applicant matching this ID, so the response always includes `applicantId`.
|
|
23
21
|
*/
|
|
24
|
-
externalRefId
|
|
22
|
+
externalRefId: string;
|
|
25
23
|
/**
|
|
26
|
-
* Workflow key
|
|
27
|
-
*
|
|
24
|
+
* Workflow key for this session. Together with `externalRefId`, the server
|
|
25
|
+
* creates or retrieves the applicant assigned to this workflow.
|
|
28
26
|
*/
|
|
29
|
-
workflowKey
|
|
27
|
+
workflowKey: string;
|
|
30
28
|
/**
|
|
31
29
|
* When true, the SDK shows the company applicant form instead of individual.
|
|
32
30
|
* Embedded in the token so the SDK auto-detects the form type.
|
|
33
31
|
*/
|
|
34
32
|
isCompany?: boolean;
|
|
35
33
|
/**
|
|
36
|
-
* Optional
|
|
37
|
-
*
|
|
38
|
-
* to the SDK so the CreateApplicantForm starts pre-filled.
|
|
34
|
+
* Optional pre-fill data for the applicant (email, name, etc.).
|
|
35
|
+
* The applicant is always created; this just seeds initial field values.
|
|
39
36
|
*/
|
|
40
|
-
applicant?:
|
|
37
|
+
applicant?: ApplicantPreFillParams;
|
|
41
38
|
}
|
|
42
39
|
export interface SessionTokenResult {
|
|
43
40
|
accessToken: string;
|
|
44
41
|
expiresInSeconds: number;
|
|
45
|
-
/**
|
|
46
|
-
applicantId
|
|
42
|
+
/** The applicant ID created/found for this externalRefId + workflowKey combination. */
|
|
43
|
+
applicantId: number;
|
|
47
44
|
}
|
|
48
45
|
/**
|
|
49
46
|
* Server-side utility to create a short-lived SDK session token.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/client/session.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/client/session.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,uFAAuF;IACvF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,qBAAa,cAAc;WACZ,WAAW,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA6CxF"}
|