@riocrypto/common 1.0.1292 → 1.0.1294

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,7 +63,7 @@ export declare class RioAdminClient {
63
63
  }>;
64
64
  uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
65
65
  getUBO(id: string): Promise<UBO>;
66
- sendUBOOnboardingEmail(associatedUserId: string, country: Country): Promise<void>;
66
+ sendUBOOnboardingEmail(email: string, associatedUserId: string, country: Country): Promise<void>;
67
67
  getUBOS(page: number, limit?: number): Promise<UBO[]>;
68
68
  updateUBO(update: UBOUpdate, uboId?: string): Promise<UBO>;
69
69
  getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
@@ -116,11 +116,12 @@ class RioAdminClient {
116
116
  return data;
117
117
  });
118
118
  }
119
- sendUBOOnboardingEmail(associatedUserId, country) {
119
+ sendUBOOnboardingEmail(email, associatedUserId, country) {
120
120
  return __awaiter(this, void 0, void 0, function* () {
121
121
  yield this.axios.post("/api/ubos/onboarding-email", {
122
122
  associatedUserId,
123
123
  country,
124
+ email,
124
125
  });
125
126
  });
126
127
  }
@@ -56,7 +56,7 @@ export declare class RioClient {
56
56
  getRioSettings(): Promise<RioSettings>;
57
57
  sendVerificationEmail(userId: string, country: Country): Promise<void>;
58
58
  sendUBOVerificationEmail(uboId: string, country: Country): Promise<void>;
59
- sendUBOOnboardingEmail(associatedUserId: string, country: Country): Promise<void>;
59
+ sendUBOOnboardingEmail(email: string, associatedUserId: string, country: Country): Promise<void>;
60
60
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
61
61
  getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
62
62
  textRequirements: ("personalId" | "taxId")[];
@@ -139,11 +139,12 @@ class RioClient {
139
139
  });
140
140
  });
141
141
  }
142
- sendUBOOnboardingEmail(associatedUserId, country) {
142
+ sendUBOOnboardingEmail(email, associatedUserId, country) {
143
143
  return __awaiter(this, void 0, void 0, function* () {
144
144
  yield this.axios.post("/api/ubos/onboarding-email", {
145
145
  associatedUserId,
146
146
  country,
147
+ email,
147
148
  });
148
149
  });
149
150
  }
package/build/index.d.ts CHANGED
@@ -211,6 +211,7 @@ export * from "./types/UBO";
211
211
  export * from "./types/UBO-input";
212
212
  export * from "./types/UBO-update";
213
213
  export * from "./types/immigration-status";
214
+ export * from "./types/IdentityVerificationType";
214
215
  export * from "./classes/Asset";
215
216
  export * from "./classes/KYCFieldClass";
216
217
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -227,6 +227,7 @@ __exportStar(require("./types/UBO"), exports);
227
227
  __exportStar(require("./types/UBO-input"), exports);
228
228
  __exportStar(require("./types/UBO-update"), exports);
229
229
  __exportStar(require("./types/immigration-status"), exports);
230
+ __exportStar(require("./types/IdentityVerificationType"), exports);
230
231
  __exportStar(require("./classes/Asset"), exports);
231
232
  __exportStar(require("./classes/KYCFieldClass"), exports);
232
233
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum IdentityVerificationType {
2
+ user = "user",
3
+ legalRepresentative = "legalRepresentative",
4
+ UBO = "UBO"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IdentityVerificationType = void 0;
4
+ var IdentityVerificationType;
5
+ (function (IdentityVerificationType) {
6
+ IdentityVerificationType["user"] = "user";
7
+ IdentityVerificationType["legalRepresentative"] = "legalRepresentative";
8
+ IdentityVerificationType["UBO"] = "UBO";
9
+ })(IdentityVerificationType = exports.IdentityVerificationType || (exports.IdentityVerificationType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1292",
3
+ "version": "1.0.1294",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",