@spritz-finance/service-client 0.3.80 → 0.3.81
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * as VerificationClient from './verificationServiceClient';
|
|
2
|
-
import { User } from '../users/types';
|
|
3
2
|
import { IdentityData, Verification } from './types';
|
|
4
3
|
export declare function getUserVerification(userId: string): Promise<Verification>;
|
|
5
4
|
export declare function getUserIdentity(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<IdentityData>>;
|
|
6
|
-
export declare function createUserVerification(
|
|
5
|
+
export declare function createUserVerification(input: {
|
|
6
|
+
userId: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
}): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<Verification>>;
|
|
@@ -39,9 +39,9 @@ async function getUserIdentity(userId) {
|
|
|
39
39
|
.then((res) => res.data);
|
|
40
40
|
}
|
|
41
41
|
exports.getUserIdentity = getUserIdentity;
|
|
42
|
-
async function createUserVerification(
|
|
42
|
+
async function createUserVerification(input) {
|
|
43
43
|
return serviceClient_1.baseClient
|
|
44
|
-
.post(`${VERIFICATION_ENDPOINT}/users`,
|
|
44
|
+
.post(`${VERIFICATION_ENDPOINT}/v2/users`, input)
|
|
45
45
|
.then((res) => res.data);
|
|
46
46
|
}
|
|
47
47
|
exports.createUserVerification = createUserVerification;
|