@linagora/ldap-rest-client 1.0.7 → 1.0.8
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/README.md +3 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ const updatedUser = await client.organizations.updateUser(orgId, userId, updates
|
|
|
96
96
|
client.organizations.disableUser(orgId, userId)
|
|
97
97
|
client.organizations.deleteUser(orgId, userId)
|
|
98
98
|
client.organizations.getUser(orgId, { by, value })
|
|
99
|
-
client.organizations.listUsers(orgId, { page, limit, status, search, sortBy, sortOrder })
|
|
99
|
+
client.organizations.listUsers(orgId, { page, limit, status, search, sortBy, sortOrder, isTechnical })
|
|
100
100
|
client.organizations.checkUserAvailability(orgId, { field, value })
|
|
101
101
|
|
|
102
102
|
// User role management ('owner', 'admin', 'moderator', 'member')
|
|
@@ -105,6 +105,8 @@ client.organizations.changeUserRole(orgId, userId, { role })
|
|
|
105
105
|
// Technical/service accounts in organizations
|
|
106
106
|
const techUser = await client.organizations.createUser(orgId, { ...userData, isTechnical: true })
|
|
107
107
|
await client.organizations.updateUser(orgId, userId, { isTechnical: true })
|
|
108
|
+
// List only technical users
|
|
109
|
+
await client.organizations.listUsers(orgId, { isTechnical: true })
|
|
108
110
|
```
|
|
109
111
|
|
|
110
112
|
### Groups
|
package/dist/index.d.mts
CHANGED
|
@@ -551,6 +551,8 @@ interface ListUsersParams {
|
|
|
551
551
|
sortBy?: string;
|
|
552
552
|
/** Sort order ('asc' or 'desc') */
|
|
553
553
|
sortOrder?: 'asc' | 'desc';
|
|
554
|
+
/** Filter by technical account status (true: only technical users, undefined: only non-technical users) */
|
|
555
|
+
isTechnical?: boolean;
|
|
554
556
|
[key: string]: string | number | boolean | undefined;
|
|
555
557
|
}
|
|
556
558
|
/**
|
|
@@ -1262,13 +1264,19 @@ declare class OrganizationsResource extends BaseResource {
|
|
|
1262
1264
|
*
|
|
1263
1265
|
* @example
|
|
1264
1266
|
* ```typescript
|
|
1267
|
+
* // List all non-technical users (default)
|
|
1265
1268
|
* const result = await client.organizations.listUsers('org_abc123', {
|
|
1266
1269
|
* page: 1,
|
|
1267
1270
|
* limit: 20,
|
|
1268
1271
|
* status: 'active',
|
|
1269
1272
|
* search: 'john',
|
|
1270
1273
|
* sortBy: 'createdAt',
|
|
1271
|
-
* sortOrder: 'desc'
|
|
1274
|
+
* sortOrder: 'desc',
|
|
1275
|
+
* });
|
|
1276
|
+
*
|
|
1277
|
+
* // List only technical users
|
|
1278
|
+
* const technicalUsers = await client.organizations.listUsers('org_abc123', {
|
|
1279
|
+
* isTechnical: true
|
|
1272
1280
|
* });
|
|
1273
1281
|
* ```
|
|
1274
1282
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -551,6 +551,8 @@ interface ListUsersParams {
|
|
|
551
551
|
sortBy?: string;
|
|
552
552
|
/** Sort order ('asc' or 'desc') */
|
|
553
553
|
sortOrder?: 'asc' | 'desc';
|
|
554
|
+
/** Filter by technical account status (true: only technical users, undefined: only non-technical users) */
|
|
555
|
+
isTechnical?: boolean;
|
|
554
556
|
[key: string]: string | number | boolean | undefined;
|
|
555
557
|
}
|
|
556
558
|
/**
|
|
@@ -1262,13 +1264,19 @@ declare class OrganizationsResource extends BaseResource {
|
|
|
1262
1264
|
*
|
|
1263
1265
|
* @example
|
|
1264
1266
|
* ```typescript
|
|
1267
|
+
* // List all non-technical users (default)
|
|
1265
1268
|
* const result = await client.organizations.listUsers('org_abc123', {
|
|
1266
1269
|
* page: 1,
|
|
1267
1270
|
* limit: 20,
|
|
1268
1271
|
* status: 'active',
|
|
1269
1272
|
* search: 'john',
|
|
1270
1273
|
* sortBy: 'createdAt',
|
|
1271
|
-
* sortOrder: 'desc'
|
|
1274
|
+
* sortOrder: 'desc',
|
|
1275
|
+
* });
|
|
1276
|
+
*
|
|
1277
|
+
* // List only technical users
|
|
1278
|
+
* const technicalUsers = await client.organizations.listUsers('org_abc123', {
|
|
1279
|
+
* isTechnical: true
|
|
1272
1280
|
* });
|
|
1273
1281
|
* ```
|
|
1274
1282
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1014,13 +1014,19 @@ var OrganizationsResource = class extends BaseResource {
|
|
|
1014
1014
|
*
|
|
1015
1015
|
* @example
|
|
1016
1016
|
* ```typescript
|
|
1017
|
+
* // List all non-technical users (default)
|
|
1017
1018
|
* const result = await client.organizations.listUsers('org_abc123', {
|
|
1018
1019
|
* page: 1,
|
|
1019
1020
|
* limit: 20,
|
|
1020
1021
|
* status: 'active',
|
|
1021
1022
|
* search: 'john',
|
|
1022
1023
|
* sortBy: 'createdAt',
|
|
1023
|
-
* sortOrder: 'desc'
|
|
1024
|
+
* sortOrder: 'desc',
|
|
1025
|
+
* });
|
|
1026
|
+
*
|
|
1027
|
+
* // List only technical users
|
|
1028
|
+
* const technicalUsers = await client.organizations.listUsers('org_abc123', {
|
|
1029
|
+
* isTechnical: true
|
|
1024
1030
|
* });
|
|
1025
1031
|
* ```
|
|
1026
1032
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -976,13 +976,19 @@ var OrganizationsResource = class extends BaseResource {
|
|
|
976
976
|
*
|
|
977
977
|
* @example
|
|
978
978
|
* ```typescript
|
|
979
|
+
* // List all non-technical users (default)
|
|
979
980
|
* const result = await client.organizations.listUsers('org_abc123', {
|
|
980
981
|
* page: 1,
|
|
981
982
|
* limit: 20,
|
|
982
983
|
* status: 'active',
|
|
983
984
|
* search: 'john',
|
|
984
985
|
* sortBy: 'createdAt',
|
|
985
|
-
* sortOrder: 'desc'
|
|
986
|
+
* sortOrder: 'desc',
|
|
987
|
+
* });
|
|
988
|
+
*
|
|
989
|
+
* // List only technical users
|
|
990
|
+
* const technicalUsers = await client.organizations.listUsers('org_abc123', {
|
|
991
|
+
* isTechnical: true
|
|
986
992
|
* });
|
|
987
993
|
* ```
|
|
988
994
|
*/
|