@riocrypto/common 1.0.1257 → 1.0.1259

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,7 +61,11 @@ export declare class RioAdminClient {
61
61
  fileRequirements: KYCFileType[];
62
62
  }>;
63
63
  uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
64
- uploadUBOFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
64
+ getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
65
+ textRequirements: ("personalId" | "taxId")[];
66
+ fileRequirements: KYCFileType[];
67
+ }>;
68
+ uploadUBOFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<UBO>;
65
69
  uploadKYCReport(id: string, formData: FormData): Promise<User>;
66
70
  uploadCSF(id: string, formData: FormData): Promise<User>;
67
71
  uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
@@ -109,6 +109,17 @@ class RioAdminClient {
109
109
  return data;
110
110
  });
111
111
  }
112
+ getUBOOnboardingRequirements(country, countryOfOrigin) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const { data } = yield this.axios.get(`/api/ubos/requirements`, {
115
+ params: {
116
+ country,
117
+ countryOfOrigin,
118
+ },
119
+ });
120
+ return data;
121
+ });
122
+ }
112
123
  uploadUBOFile(id, country, fileType, formData) {
113
124
  return __awaiter(this, void 0, void 0, function* () {
114
125
  const { data } = yield this.axios.post(`/api/ubos/${id}/files/${country}/${fileType}`, formData);
@@ -57,6 +57,10 @@ export declare class RioClient {
57
57
  textRequirements: ("personalId" | "taxId")[];
58
58
  fileRequirements: KYCFileType[];
59
59
  }>;
60
+ getUBOOnboardingRequirements(country: Country, countryOfOrigin: CountryOfOrigin): Promise<{
61
+ textRequirements: ("personalId" | "taxId")[];
62
+ fileRequirements: KYCFileType[];
63
+ }>;
60
64
  createRioSettings(rioSettings: {
61
65
  platformFee: number;
62
66
  }): Promise<void>;
@@ -131,6 +131,17 @@ class RioClient {
131
131
  return data;
132
132
  });
133
133
  }
134
+ getUBOOnboardingRequirements(country, countryOfOrigin) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const { data } = yield this.axios.get(`/api/ubos/requirements`, {
137
+ params: {
138
+ country,
139
+ countryOfOrigin,
140
+ },
141
+ });
142
+ return data;
143
+ });
144
+ }
134
145
  createRioSettings(rioSettings) {
135
146
  return __awaiter(this, void 0, void 0, function* () {
136
147
  yield this.axios.post(`/api/settings`, rioSettings);
@@ -1,6 +1,7 @@
1
1
  import { CountryOfOrigin } from "./country-of-origin";
2
2
  import { OnboardingStatus } from "./onboarding-status";
3
3
  export declare type UBO = {
4
+ id: string;
4
5
  createdAt: Date;
5
6
  individualData?: {
6
7
  firstName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1257",
3
+ "version": "1.0.1259",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",