@riocrypto/common 1.0.1426 → 1.0.1427

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.
@@ -172,7 +172,7 @@ export declare class RioClient {
172
172
  createKushkiPayment(orderId: string, token: string): Promise<{
173
173
  paymentId: string;
174
174
  }>;
175
- addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
175
+ addAuthorizedPhoneNumber(phoneNumber: string, userId?: string): Promise<User>;
176
176
  deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
177
177
  createKushkiBankPayment(orderId: string): Promise<any>;
178
178
  updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
@@ -638,9 +638,9 @@ class RioClient {
638
638
  return data;
639
639
  });
640
640
  }
641
- addAuthorizedPhoneNumber(phoneNumber) {
641
+ addAuthorizedPhoneNumber(phoneNumber, userId) {
642
642
  return __awaiter(this, void 0, void 0, function* () {
643
- const { data } = yield this.axios.post(`/api/users/authorized-phone-numbers`, {
643
+ const { data } = yield this.axios.post(`/api/users/${userId}/authorized-phone-numbers`, {
644
644
  phoneNumber,
645
645
  });
646
646
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1426",
3
+ "version": "1.0.1427",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",