@abpjs/identity 2.2.0 → 2.4.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/dist/index.d.mts CHANGED
@@ -120,10 +120,15 @@ declare namespace Identity {
120
120
  * Service for managing identity-related API operations.
121
121
  * Handles roles and users CRUD operations.
122
122
  *
123
- * Translated from @abp/ng.identity IdentityService
123
+ * Translated from @abp/ng.identity IdentityService v2.4.0
124
124
  */
125
125
  declare class IdentityService {
126
126
  private rest;
127
+ /**
128
+ * The API name used for REST requests.
129
+ * @since 2.4.0
130
+ */
131
+ apiName: string;
127
132
  constructor(rest: RestService);
128
133
  /**
129
134
  * Get all roles with optional pagination/filtering (v0.9.0)
@@ -131,6 +136,13 @@ declare class IdentityService {
131
136
  * @returns Promise with paginated role response
132
137
  */
133
138
  getRoles(params?: ABP.PageQueryParams): Promise<Identity.RoleResponse>;
139
+ /**
140
+ * Get all roles without pagination.
141
+ * Fetches all roles in a single request.
142
+ * @since 2.4.0
143
+ * @returns Promise with all roles
144
+ */
145
+ getAllRoles(): Promise<Identity.RoleResponse>;
134
146
  /**
135
147
  * Get a role by ID
136
148
  * @param id - The role ID
package/dist/index.d.ts CHANGED
@@ -120,10 +120,15 @@ declare namespace Identity {
120
120
  * Service for managing identity-related API operations.
121
121
  * Handles roles and users CRUD operations.
122
122
  *
123
- * Translated from @abp/ng.identity IdentityService
123
+ * Translated from @abp/ng.identity IdentityService v2.4.0
124
124
  */
125
125
  declare class IdentityService {
126
126
  private rest;
127
+ /**
128
+ * The API name used for REST requests.
129
+ * @since 2.4.0
130
+ */
131
+ apiName: string;
127
132
  constructor(rest: RestService);
128
133
  /**
129
134
  * Get all roles with optional pagination/filtering (v0.9.0)
@@ -131,6 +136,13 @@ declare class IdentityService {
131
136
  * @returns Promise with paginated role response
132
137
  */
133
138
  getRoles(params?: ABP.PageQueryParams): Promise<Identity.RoleResponse>;
139
+ /**
140
+ * Get all roles without pagination.
141
+ * Fetches all roles in a single request.
142
+ * @since 2.4.0
143
+ * @returns Promise with all roles
144
+ */
145
+ getAllRoles(): Promise<Identity.RoleResponse>;
134
146
  /**
135
147
  * Get a role by ID
136
148
  * @param id - The role ID
package/dist/index.js CHANGED
@@ -35,6 +35,11 @@ module.exports = __toCommonJS(index_exports);
35
35
  // src/services/identity.service.ts
36
36
  var IdentityService = class {
37
37
  constructor(rest) {
38
+ /**
39
+ * The API name used for REST requests.
40
+ * @since 2.4.0
41
+ */
42
+ this.apiName = "default";
38
43
  this.rest = rest;
39
44
  }
40
45
  // ========================
@@ -52,6 +57,18 @@ var IdentityService = class {
52
57
  params
53
58
  });
54
59
  }
60
+ /**
61
+ * Get all roles without pagination.
62
+ * Fetches all roles in a single request.
63
+ * @since 2.4.0
64
+ * @returns Promise with all roles
65
+ */
66
+ getAllRoles() {
67
+ return this.rest.request({
68
+ method: "GET",
69
+ url: "/api/identity/roles/all"
70
+ });
71
+ }
55
72
  /**
56
73
  * Get a role by ID
57
74
  * @param id - The role ID
package/dist/index.mjs CHANGED
@@ -1,6 +1,11 @@
1
1
  // src/services/identity.service.ts
2
2
  var IdentityService = class {
3
3
  constructor(rest) {
4
+ /**
5
+ * The API name used for REST requests.
6
+ * @since 2.4.0
7
+ */
8
+ this.apiName = "default";
4
9
  this.rest = rest;
5
10
  }
6
11
  // ========================
@@ -18,6 +23,18 @@ var IdentityService = class {
18
23
  params
19
24
  });
20
25
  }
26
+ /**
27
+ * Get all roles without pagination.
28
+ * Fetches all roles in a single request.
29
+ * @since 2.4.0
30
+ * @returns Promise with all roles
31
+ */
32
+ getAllRoles() {
33
+ return this.rest.request({
34
+ method: "GET",
35
+ url: "/api/identity/roles/all"
36
+ });
37
+ }
21
38
  /**
22
39
  * Get a role by ID
23
40
  * @param id - The role ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abpjs/identity",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "ABP Framework identity components for React - translated from @abp/ng.identity",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,12 +25,12 @@
25
25
  "dependencies": {
26
26
  "@chakra-ui/react": "^3.2.0",
27
27
  "@emotion/react": "^11.11.0",
28
- "@abpjs/theme-shared": "2.2.0",
29
- "@abpjs/core": "2.2.0",
30
- "@abpjs/permission-management": "2.2.0"
28
+ "@abpjs/core": "2.4.0",
29
+ "@abpjs/permission-management": "2.4.0",
30
+ "@abpjs/theme-shared": "2.4.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@abp/ng.identity": "2.2.0",
33
+ "@abp/ng.identity": "2.4.0",
34
34
  "@testing-library/jest-dom": "^6.9.1",
35
35
  "@testing-library/react": "^14.0.0",
36
36
  "@testing-library/user-event": "^14.6.1",