@frontegg/rest-api 7.64.0 → 7.65.0

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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.64.0
1
+ /** @license Frontegg v7.65.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.64.0
1
+ /** @license Frontegg v7.65.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -12,6 +12,9 @@ class PhoneNumbersApi extends _BaseApiClient.BaseApiClient {
12
12
  this.getUserPhoneNumbers = async queryParams => {
13
13
  return this.get(`${_constants.urls.identity.phoneNumbers.v1}`, queryParams);
14
14
  };
15
+ this.getUserOwnPhoneNumbers = async () => {
16
+ return this.get(`${_constants.urls.identity.phoneNumbers.v1}/me`);
17
+ };
15
18
  this.createPhoneNumber = async body => {
16
19
  return this.post(`${_constants.urls.identity.phoneNumbers.v1}`, body);
17
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "7.64.0",
3
+ "version": "7.65.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
@@ -7,6 +7,10 @@ export declare class PhoneNumbersApi extends BaseApiClient {
7
7
  * Get phone numbers of user
8
8
  */
9
9
  getUserPhoneNumbers: (queryParams: IGetPhoneNumbersQueryParams) => Promise<FronteggPaginationWrapper<IPhoneNumber>>;
10
+ /**
11
+ * Get own phone numbers of user
12
+ */
13
+ getUserOwnPhoneNumbers: () => Promise<IPhoneNumber[]>;
10
14
  /**
11
15
  * Create new phone number for user, by default OTC will be sent with this request
12
16
  */
@@ -6,6 +6,9 @@ export class PhoneNumbersApi extends BaseApiClient {
6
6
  this.getUserPhoneNumbers = async queryParams => {
7
7
  return this.get(`${urls.identity.phoneNumbers.v1}`, queryParams);
8
8
  };
9
+ this.getUserOwnPhoneNumbers = async () => {
10
+ return this.get(`${urls.identity.phoneNumbers.v1}/me`);
11
+ };
9
12
  this.createPhoneNumber = async body => {
10
13
  return this.post(`${urls.identity.phoneNumbers.v1}`, body);
11
14
  };