@riocrypto/common-server 1.0.676 → 1.0.679

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.
@@ -24,8 +24,8 @@ export declare class RioClient {
24
24
  createBrokerCustomer(userInput: UserInput): Promise<User>;
25
25
  sendPhoneAuthCode(phoneNumber: string): Promise<void>;
26
26
  authExists(phoneNumber: string): Promise<boolean>;
27
- uploadCOI(businessUserId: string, formData: FormData): Promise<User>;
28
- uploadKYCReport(businessUserId: string, formData: FormData): Promise<User>;
27
+ uploadCOI(userId: string, formData: FormData): Promise<User>;
28
+ uploadKYCReport(userId: string, formData: FormData): Promise<User>;
29
29
  getSecurityQuestion(): Promise<SecurityQuestion>;
30
30
  signout(): Promise<void>;
31
31
  verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
@@ -118,15 +118,15 @@ class RioClient {
118
118
  return response.data.exists;
119
119
  });
120
120
  }
121
- uploadCOI(businessUserId, formData) {
121
+ uploadCOI(userId, formData) {
122
122
  return __awaiter(this, void 0, void 0, function* () {
123
- const { data } = yield this.axios.patch(`/api/business/users/${businessUserId}/coi`, formData);
123
+ const { data } = yield this.axios.patch(`/api/users/${userId}/coi`, formData);
124
124
  return data;
125
125
  });
126
126
  }
127
- uploadKYCReport(businessUserId, formData) {
127
+ uploadKYCReport(userId, formData) {
128
128
  return __awaiter(this, void 0, void 0, function* () {
129
- const { data } = yield this.axios.patch(`/api/business/users/${businessUserId}/kyc-report`, formData);
129
+ const { data } = yield this.axios.patch(`/api/users/${userId}/kyc-report`, formData);
130
130
  return data;
131
131
  });
132
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.676",
3
+ "version": "1.0.679",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.617",
27
+ "@riocrypto/common": "^1.0.619",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",