@riocrypto/common 1.0.1247 → 1.0.1249

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.
@@ -63,6 +63,8 @@ export declare class RioAdminClient {
63
63
  uploadCSF(id: string, formData: FormData): Promise<User>;
64
64
  uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
65
65
  createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
66
+ sendVerificationEmail(userId: string, country: Country): Promise<void>;
67
+ sendBridgeOnboardingEmail(userId: string): Promise<void>;
66
68
  updateAdmin(update: {
67
69
  email?: string;
68
70
  password?: string;
@@ -137,6 +137,19 @@ class RioAdminClient {
137
137
  return data.link;
138
138
  });
139
139
  }
140
+ sendVerificationEmail(userId, country) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ yield this.axios.post("/api/kyc/email", {
143
+ userId,
144
+ country,
145
+ });
146
+ });
147
+ }
148
+ sendBridgeOnboardingEmail(userId) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ yield this.axios.post(`/api/users/${userId}/us/onboarding-email`);
151
+ });
152
+ }
140
153
  updateAdmin(update) {
141
154
  return __awaiter(this, void 0, void 0, function* () {
142
155
  const { data } = yield this.axios.patch(`/api/auth/admin`, update);
@@ -49,6 +49,8 @@ export declare class RioClient {
49
49
  uploadKYCReport(id: string, formData: FormData): Promise<User>;
50
50
  uploadCSF(id: string, formData: FormData): Promise<User>;
51
51
  getRioSettings(): Promise<RioSettings>;
52
+ sendVerificationEmail(userId: string, country: Country): Promise<void>;
53
+ sendBridgeOnboardingEmail(userId: string): Promise<void>;
52
54
  getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
53
55
  textRequirements: ("personalId" | "taxId")[];
54
56
  fileRequirements: KYCFileType[];
@@ -106,6 +106,19 @@ class RioClient {
106
106
  return data;
107
107
  });
108
108
  }
109
+ sendVerificationEmail(userId, country) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ yield this.axios.post("/api/kyc/email", {
112
+ userId,
113
+ country,
114
+ });
115
+ });
116
+ }
117
+ sendBridgeOnboardingEmail(userId) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ yield this.axios.post(`/api/users/${userId}/us/onboarding-email`);
120
+ });
121
+ }
109
122
  getOnboardingRequirements(userType, country, countryOfOrigin) {
110
123
  return __awaiter(this, void 0, void 0, function* () {
111
124
  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.1247",
3
+ "version": "1.0.1249",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",