@riocrypto/common 1.0.1261 → 1.0.1263

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
  }>;
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>;
67
+ getUBOS(page: number, limit?: number): Promise<UBO[]>;
66
68
  updateUBO(update: UBOUpdate, uboId?: string): Promise<UBO>;
67
69
  getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
68
70
  textRequirements: ("personalId" | "taxId")[];
@@ -116,6 +116,25 @@ class RioAdminClient {
116
116
  return data;
117
117
  });
118
118
  }
119
+ sendUBOOnboardingEmail(associatedUserId, country) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ yield this.axios.post("/api/ubos/onboarding-email", {
122
+ associatedUserId,
123
+ country,
124
+ });
125
+ });
126
+ }
127
+ getUBOS(page, limit) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const { data } = yield this.axios.get(`/api/ubos?`, {
130
+ params: {
131
+ page,
132
+ limit,
133
+ },
134
+ });
135
+ return data;
136
+ });
137
+ }
119
138
  updateUBO(update, uboId) {
120
139
  return __awaiter(this, void 0, void 0, function* () {
121
140
  const { data } = yield this.axios.patch(`/api/ubos/${uboId}`, update);
@@ -46,6 +46,7 @@ export declare class RioClient {
46
46
  createQuote(input: QuoteInput): Promise<Quote>;
47
47
  createChainedQuote(input: ChainedQuoteInput): Promise<ChainedQuote>;
48
48
  getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
49
+ getUBOS(page: number, limit?: number): Promise<UBO[]>;
49
50
  updateUser(update: UserUpdate, userId?: string): Promise<User>;
50
51
  updateUBO(update: UBOUpdate, uboId?: string): Promise<UBO>;
51
52
  uploadCOI(id: string, formData: FormData): Promise<User>;
@@ -54,6 +55,7 @@ export declare class RioClient {
54
55
  uploadCSF(id: string, formData: FormData): Promise<User>;
55
56
  getRioSettings(): Promise<RioSettings>;
56
57
  sendVerificationEmail(userId: string, country: Country): Promise<void>;
58
+ sendUBOOnboardingEmail(associatedUserId: string, country: Country): Promise<void>;
57
59
  sendBridgeOnboardingEmail(userId: string): Promise<void>;
58
60
  getOnboardingRequirements(userType: UserType, country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
59
61
  textRequirements: ("personalId" | "taxId")[];
@@ -70,6 +70,17 @@ class RioClient {
70
70
  return data;
71
71
  });
72
72
  }
73
+ getUBOS(page, limit) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const { data } = yield this.axios.get(`/api/ubos?`, {
76
+ params: {
77
+ page,
78
+ limit,
79
+ },
80
+ });
81
+ return data;
82
+ });
83
+ }
73
84
  updateUser(update, userId) {
74
85
  return __awaiter(this, void 0, void 0, function* () {
75
86
  const { data } = yield this.axios.patch(`/api/users/${userId || ""}`, update);
@@ -120,6 +131,14 @@ class RioClient {
120
131
  });
121
132
  });
122
133
  }
134
+ sendUBOOnboardingEmail(associatedUserId, country) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ yield this.axios.post("/api/ubos/onboarding-email", {
137
+ associatedUserId,
138
+ country,
139
+ });
140
+ });
141
+ }
123
142
  sendBridgeOnboardingEmail(userId) {
124
143
  return __awaiter(this, void 0, void 0, function* () {
125
144
  yield this.axios.post(`/api/users/${userId}/us/onboarding-email`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1261",
3
+ "version": "1.0.1263",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",