@riocrypto/common 1.0.1259 → 1.0.1260

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.
@@ -61,6 +61,7 @@ export declare class RioAdminClient {
61
61
  fileRequirements: KYCFileType[];
62
62
  }>;
63
63
  uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
64
+ getUBO(id: string): Promise<UBO>;
64
65
  getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
65
66
  textRequirements: ("personalId" | "taxId")[];
66
67
  fileRequirements: KYCFileType[];
@@ -109,6 +109,13 @@ class RioAdminClient {
109
109
  return data;
110
110
  });
111
111
  }
112
+ getUBO(id) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ let url = `/api/ubos/${id}`;
115
+ const { data } = yield this.axios.get(url);
116
+ return data;
117
+ });
118
+ }
112
119
  getUBOOnboardingRequirements(country, countryOfOrigin) {
113
120
  return __awaiter(this, void 0, void 0, function* () {
114
121
  const { data } = yield this.axios.get(`/api/ubos/requirements`, {
@@ -73,6 +73,7 @@ export declare class RioClient {
73
73
  deleteAPIKey(id: string): Promise<void>;
74
74
  confirmBankPayout(orderId: string): Promise<any>;
75
75
  getUser(userId?: string): Promise<User>;
76
+ getUBO(id: string): Promise<UBO>;
76
77
  createUser(user: UserInput): Promise<User>;
77
78
  createUBO(user: UBOInput): Promise<UBO>;
78
79
  uploadUBOFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<UBO>;
@@ -193,6 +193,13 @@ class RioClient {
193
193
  return data;
194
194
  });
195
195
  }
196
+ getUBO(id) {
197
+ return __awaiter(this, void 0, void 0, function* () {
198
+ let url = `/api/ubos/${id}`;
199
+ const { data } = yield this.axios.get(url);
200
+ return data;
201
+ });
202
+ }
196
203
  createUser(user) {
197
204
  return __awaiter(this, void 0, void 0, function* () {
198
205
  const { data } = yield this.axios.post("/api/users", user);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1259",
3
+ "version": "1.0.1260",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",