@riocrypto/common 1.0.1309 → 1.0.1311

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.
@@ -58,6 +58,15 @@ export declare class RioAdminClient {
58
58
  signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
59
59
  updateUser(update: UserUpdate, userId?: string): Promise<User>;
60
60
  uploadCOI(id: string, formData: FormData): Promise<User>;
61
+ createTemporaryVerification(phoneNumber: string): Promise<{
62
+ code: string;
63
+ }>;
64
+ deleteTemporaryVerification(id: string): Promise<{
65
+ code: string;
66
+ }>;
67
+ getTemporaryVerifications(): Promise<{
68
+ phoneNumber: string;
69
+ }[]>;
61
70
  getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
62
71
  textRequirements: ("personalId" | "taxId")[];
63
72
  fileRequirements: KYCFileType[];
@@ -96,6 +96,26 @@ class RioAdminClient {
96
96
  return data;
97
97
  });
98
98
  }
99
+ createTemporaryVerification(phoneNumber) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const { data } = yield this.axios.post("/api/auth/temporary-verifications", {
102
+ phoneNumber,
103
+ });
104
+ return data;
105
+ });
106
+ }
107
+ deleteTemporaryVerification(id) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ const { data } = yield this.axios.delete(`/api/auth/temporary-verifications/${id}`);
110
+ return data;
111
+ });
112
+ }
113
+ getTemporaryVerifications() {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const response = yield this.axios.get("/api/auth/temporary-verifications");
116
+ return response.data;
117
+ });
118
+ }
99
119
  getOnboardingRequirements(userType, country, countryOfOrigin) {
100
120
  return __awaiter(this, void 0, void 0, function* () {
101
121
  const { data } = yield this.axios.get(`/api/users/requirements`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1309",
3
+ "version": "1.0.1311",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",