@riocrypto/common 1.0.1261 → 1.0.1262
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,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
|
+
getUBOS(page: number, limit?: number): Promise<UBO[]>;
|
|
66
67
|
updateUBO(update: UBOUpdate, uboId?: string): Promise<UBO>;
|
|
67
68
|
getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
|
|
68
69
|
textRequirements: ("personalId" | "taxId")[];
|
|
@@ -116,6 +116,17 @@ class RioAdminClient {
|
|
|
116
116
|
return data;
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
+
getUBOS(page, limit) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const { data } = yield this.axios.get(`/api/ubos?`, {
|
|
122
|
+
params: {
|
|
123
|
+
page,
|
|
124
|
+
limit,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
return data;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
119
130
|
updateUBO(update, uboId) {
|
|
120
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
132
|
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>;
|
|
@@ -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);
|