@linagora/ldap-rest-client 1.0.12 → 1.0.13
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -960,7 +960,7 @@ declare class UsersResource extends BaseResource {
|
|
|
960
960
|
* Returns organizations where the user is an admin or owner.
|
|
961
961
|
* Optionally filter by specific role.
|
|
962
962
|
*
|
|
963
|
-
* @param {string} userId - User identifier (username)
|
|
963
|
+
* @param {string} userId - User identifier (email address - unique identifier, not username)
|
|
964
964
|
* @param {string} [role] - Optional role filter ('owner', 'admin', 'moderator', 'member')
|
|
965
965
|
* @returns {Promise<Organization[]>} Array of organizations
|
|
966
966
|
* @throws {ApiError} On API errors
|
|
@@ -968,10 +968,10 @@ declare class UsersResource extends BaseResource {
|
|
|
968
968
|
* @example
|
|
969
969
|
* ```typescript
|
|
970
970
|
* // Get all organizations where user has any role
|
|
971
|
-
* const orgs = await client.users.getUserOrganizations('
|
|
971
|
+
* const orgs = await client.users.getUserOrganizations('user@example.com');
|
|
972
972
|
*
|
|
973
973
|
* // Get only organizations where user is owner
|
|
974
|
-
* const ownedOrgs = await client.users.getUserOrganizations('
|
|
974
|
+
* const ownedOrgs = await client.users.getUserOrganizations('user@example.com', 'owner');
|
|
975
975
|
* ```
|
|
976
976
|
*/
|
|
977
977
|
getUserOrganizations: (userId: string, role?: string) => Promise<Organization[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -960,7 +960,7 @@ declare class UsersResource extends BaseResource {
|
|
|
960
960
|
* Returns organizations where the user is an admin or owner.
|
|
961
961
|
* Optionally filter by specific role.
|
|
962
962
|
*
|
|
963
|
-
* @param {string} userId - User identifier (username)
|
|
963
|
+
* @param {string} userId - User identifier (email address - unique identifier, not username)
|
|
964
964
|
* @param {string} [role] - Optional role filter ('owner', 'admin', 'moderator', 'member')
|
|
965
965
|
* @returns {Promise<Organization[]>} Array of organizations
|
|
966
966
|
* @throws {ApiError} On API errors
|
|
@@ -968,10 +968,10 @@ declare class UsersResource extends BaseResource {
|
|
|
968
968
|
* @example
|
|
969
969
|
* ```typescript
|
|
970
970
|
* // Get all organizations where user has any role
|
|
971
|
-
* const orgs = await client.users.getUserOrganizations('
|
|
971
|
+
* const orgs = await client.users.getUserOrganizations('user@example.com');
|
|
972
972
|
*
|
|
973
973
|
* // Get only organizations where user is owner
|
|
974
|
-
* const ownedOrgs = await client.users.getUserOrganizations('
|
|
974
|
+
* const ownedOrgs = await client.users.getUserOrganizations('user@example.com', 'owner');
|
|
975
975
|
* ```
|
|
976
976
|
*/
|
|
977
977
|
getUserOrganizations: (userId: string, role?: string) => Promise<Organization[]>;
|
package/dist/index.js
CHANGED
|
@@ -669,7 +669,7 @@ var UsersResource = class extends BaseResource {
|
|
|
669
669
|
* Returns organizations where the user is an admin or owner.
|
|
670
670
|
* Optionally filter by specific role.
|
|
671
671
|
*
|
|
672
|
-
* @param {string} userId - User identifier (username)
|
|
672
|
+
* @param {string} userId - User identifier (email address - unique identifier, not username)
|
|
673
673
|
* @param {string} [role] - Optional role filter ('owner', 'admin', 'moderator', 'member')
|
|
674
674
|
* @returns {Promise<Organization[]>} Array of organizations
|
|
675
675
|
* @throws {ApiError} On API errors
|
|
@@ -677,10 +677,10 @@ var UsersResource = class extends BaseResource {
|
|
|
677
677
|
* @example
|
|
678
678
|
* ```typescript
|
|
679
679
|
* // Get all organizations where user has any role
|
|
680
|
-
* const orgs = await client.users.getUserOrganizations('
|
|
680
|
+
* const orgs = await client.users.getUserOrganizations('user@example.com');
|
|
681
681
|
*
|
|
682
682
|
* // Get only organizations where user is owner
|
|
683
|
-
* const ownedOrgs = await client.users.getUserOrganizations('
|
|
683
|
+
* const ownedOrgs = await client.users.getUserOrganizations('user@example.com', 'owner');
|
|
684
684
|
* ```
|
|
685
685
|
*/
|
|
686
686
|
getUserOrganizations = async (userId, role) => {
|
package/dist/index.mjs
CHANGED
|
@@ -631,7 +631,7 @@ var UsersResource = class extends BaseResource {
|
|
|
631
631
|
* Returns organizations where the user is an admin or owner.
|
|
632
632
|
* Optionally filter by specific role.
|
|
633
633
|
*
|
|
634
|
-
* @param {string} userId - User identifier (username)
|
|
634
|
+
* @param {string} userId - User identifier (email address - unique identifier, not username)
|
|
635
635
|
* @param {string} [role] - Optional role filter ('owner', 'admin', 'moderator', 'member')
|
|
636
636
|
* @returns {Promise<Organization[]>} Array of organizations
|
|
637
637
|
* @throws {ApiError} On API errors
|
|
@@ -639,10 +639,10 @@ var UsersResource = class extends BaseResource {
|
|
|
639
639
|
* @example
|
|
640
640
|
* ```typescript
|
|
641
641
|
* // Get all organizations where user has any role
|
|
642
|
-
* const orgs = await client.users.getUserOrganizations('
|
|
642
|
+
* const orgs = await client.users.getUserOrganizations('user@example.com');
|
|
643
643
|
*
|
|
644
644
|
* // Get only organizations where user is owner
|
|
645
|
-
* const ownedOrgs = await client.users.getUserOrganizations('
|
|
645
|
+
* const ownedOrgs = await client.users.getUserOrganizations('user@example.com', 'owner');
|
|
646
646
|
* ```
|
|
647
647
|
*/
|
|
648
648
|
getUserOrganizations = async (userId, role) => {
|