@frontegg/rest-api 3.0.82 → 3.0.83

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/groups/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ICreateGroup, ICreateGroupResponse, IGetGroup, IGetGroupQueryOptions, I
2
2
  /**
3
3
  * Get group by given id
4
4
  */
5
- export declare function getGroupById({ groupId, }: IGetGroup, query?: IGetGroupQueryOptions): Promise<IGroupResponse>;
5
+ export declare function getGroupById({ groupId }: IGetGroup, query?: IGetGroupQueryOptions): Promise<IGroupResponse>;
6
6
  /**
7
7
  * Get all tenant groups
8
8
  */
package/groups/index.js CHANGED
@@ -26,16 +26,16 @@ export async function deleteGroup(groupId) {
26
26
  return Delete(`${urls.identity.groups.v1}/${groupId}`);
27
27
  }
28
28
  export async function addRolesToGroup(groupId, body) {
29
- return Post(`${urls.identity.groups.v1}/${groupId}/${urls.identity.groups.roles}`, body);
29
+ return Post(`${urls.identity.groups.v1}/${groupId}${urls.identity.groups.roles}`, body);
30
30
  }
31
31
  export async function deleteRolesFromGroup(groupId, body) {
32
- return Delete(`${urls.identity.groups.v1}/${groupId}/${urls.identity.groups.roles}`, body);
32
+ return Delete(`${urls.identity.groups.v1}/${groupId}${urls.identity.groups.roles}`, body);
33
33
  }
34
34
  export async function addUsersToGroup(groupId, body) {
35
- return Post(`${urls.identity.groups.v1}/${groupId}/${urls.identity.groups.users}`, body);
35
+ return Post(`${urls.identity.groups.v1}/${groupId}${urls.identity.groups.users}`, body);
36
36
  }
37
37
  export async function deleteUsersFromGroup(groupId, body) {
38
- return Delete(`${urls.identity.groups.v1}/${groupId}/${urls.identity.groups.users}`, body);
38
+ return Delete(`${urls.identity.groups.v1}/${groupId}${urls.identity.groups.users}`, body);
39
39
  }
40
40
  export async function getGroupConfiguration() {
41
41
  return Get(`${urls.identity.groups.configurations.v1}`);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.82
1
+ /** @license Frontegg v3.0.83
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.
@@ -54,19 +54,19 @@ async function deleteGroup(groupId) {
54
54
  }
55
55
 
56
56
  async function addRolesToGroup(groupId, body) {
57
- return (0, _fetch.Post)(`${_constants.urls.identity.groups.v1}/${groupId}/${_constants.urls.identity.groups.roles}`, body);
57
+ return (0, _fetch.Post)(`${_constants.urls.identity.groups.v1}/${groupId}${_constants.urls.identity.groups.roles}`, body);
58
58
  }
59
59
 
60
60
  async function deleteRolesFromGroup(groupId, body) {
61
- return (0, _fetch.Delete)(`${_constants.urls.identity.groups.v1}/${groupId}/${_constants.urls.identity.groups.roles}`, body);
61
+ return (0, _fetch.Delete)(`${_constants.urls.identity.groups.v1}/${groupId}${_constants.urls.identity.groups.roles}`, body);
62
62
  }
63
63
 
64
64
  async function addUsersToGroup(groupId, body) {
65
- return (0, _fetch.Post)(`${_constants.urls.identity.groups.v1}/${groupId}/${_constants.urls.identity.groups.users}`, body);
65
+ return (0, _fetch.Post)(`${_constants.urls.identity.groups.v1}/${groupId}${_constants.urls.identity.groups.users}`, body);
66
66
  }
67
67
 
68
68
  async function deleteUsersFromGroup(groupId, body) {
69
- return (0, _fetch.Delete)(`${_constants.urls.identity.groups.v1}/${groupId}/${_constants.urls.identity.groups.users}`, body);
69
+ return (0, _fetch.Delete)(`${_constants.urls.identity.groups.v1}/${groupId}${_constants.urls.identity.groups.users}`, body);
70
70
  }
71
71
 
72
72
  async function getGroupConfiguration() {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.82
1
+ /** @license Frontegg v3.0.83
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.82",
3
+ "version": "3.0.83",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {