@riocrypto/common 1.0.637 → 1.0.639

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.
@@ -82,7 +82,7 @@ export declare class RioClient {
82
82
  createKushkiPayment(orderId: string, token: string): Promise<{
83
83
  paymentId: string;
84
84
  }>;
85
- addAuthIdToUser(authId: string): Promise<User>;
85
+ addAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
86
86
  createKushkiBankPayment(orderId: string): Promise<any>;
87
87
  updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
88
88
  }
@@ -291,10 +291,10 @@ class RioClient {
291
291
  return data;
292
292
  });
293
293
  }
294
- addAuthIdToUser(authId) {
294
+ addAuthorizedPhoneNumber(phoneNumber) {
295
295
  return __awaiter(this, void 0, void 0, function* () {
296
- const { data } = yield this.axios.post(`/api/users/auths`, {
297
- authId,
296
+ const { data } = yield this.axios.post(`/api/users/authorized-phone-numbers`, {
297
+ phoneNumber,
298
298
  });
299
299
  return data;
300
300
  });
@@ -26,4 +26,5 @@ export declare type UserInput = {
26
26
  attributes?: UserAttribute[];
27
27
  partnerId?: string;
28
28
  brokerId?: string;
29
+ authorizedPhoneNumbers?: string[];
29
30
  };
@@ -28,5 +28,6 @@ export declare type UserUpdate = {
28
28
  attributes?: UserAttribute[];
29
29
  partnerId?: string;
30
30
  brokerId?: string;
31
+ authorizedPhoneNumbers?: string[];
31
32
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
32
33
  export {};
@@ -34,5 +34,6 @@ export declare type User = {
34
34
  attributes?: UserAttribute[];
35
35
  partnerId?: string;
36
36
  brokerId?: string;
37
+ authorizedPhoneNumbers?: string[];
37
38
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
38
39
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.637",
3
+ "version": "1.0.639",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",