@riocrypto/common 1.0.1328 → 1.0.1330

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.
@@ -209,7 +209,7 @@ export declare class RioAdminClient {
209
209
  createKushkiPayment(orderId: string, token: string): Promise<{
210
210
  paymentId: string;
211
211
  }>;
212
- addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
212
+ addAuthorizedPhoneNumber(id: string, phoneNumber: string): Promise<User>;
213
213
  deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
214
214
  createKushkiBankPayment(orderId: string): Promise<any>;
215
215
  updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
@@ -703,9 +703,9 @@ class RioAdminClient {
703
703
  return data;
704
704
  });
705
705
  }
706
- addAuthorizedPhoneNumber(phoneNumber) {
706
+ addAuthorizedPhoneNumber(id, phoneNumber) {
707
707
  return __awaiter(this, void 0, void 0, function* () {
708
- const { data } = yield this.axios.post(`/api/users/authorized-phone-numbers`, {
708
+ const { data } = yield this.axios.post(`/api/users/${id}/authorized-phone-numbers`, {
709
709
  phoneNumber,
710
710
  });
711
711
  return data;
@@ -3,5 +3,6 @@ export interface AuthDeletedEvent {
3
3
  subject: Subjects.AuthDeleted;
4
4
  data: {
5
5
  id: string;
6
+ phoneNumber: string;
6
7
  };
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1328",
3
+ "version": "1.0.1330",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",