@meistrari/auth-core 1.30.0 → 1.31.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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5803,6 +5803,10 @@ type ListAdminOrganizationMembersOptions = {
|
|
|
5803
5803
|
includeInvitations?: boolean;
|
|
5804
5804
|
/** When true, each row includes the member's teams and accessible applications. */
|
|
5805
5805
|
includeAccess?: boolean;
|
|
5806
|
+
/** Column to sort by. Only the join date (createdAt) is sortable today. Defaults to 'createdAt'. */
|
|
5807
|
+
sortBy?: 'createdAt';
|
|
5808
|
+
/** Sort direction for the listing. Defaults to 'desc'. */
|
|
5809
|
+
sortDirection?: 'asc' | 'desc';
|
|
5806
5810
|
};
|
|
5807
5811
|
/**
|
|
5808
5812
|
* Options accepted when listing teams for a single organization as a global admin.
|
package/dist/index.d.ts
CHANGED
|
@@ -5803,6 +5803,10 @@ type ListAdminOrganizationMembersOptions = {
|
|
|
5803
5803
|
includeInvitations?: boolean;
|
|
5804
5804
|
/** When true, each row includes the member's teams and accessible applications. */
|
|
5805
5805
|
includeAccess?: boolean;
|
|
5806
|
+
/** Column to sort by. Only the join date (createdAt) is sortable today. Defaults to 'createdAt'. */
|
|
5807
|
+
sortBy?: 'createdAt';
|
|
5808
|
+
/** Sort direction for the listing. Defaults to 'desc'. */
|
|
5809
|
+
sortDirection?: 'asc' | 'desc';
|
|
5806
5810
|
};
|
|
5807
5811
|
/**
|
|
5808
5812
|
* Options accepted when listing teams for a single organization as a global admin.
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { defaultStatements } from 'better-auth/plugins/organization/access';
|
|
|
8
8
|
import z, { z as z$1 } from 'zod';
|
|
9
9
|
export { APIError } from 'better-auth';
|
|
10
10
|
|
|
11
|
-
const version = "1.
|
|
11
|
+
const version = "1.31.0";
|
|
12
12
|
|
|
13
13
|
function parsedEnumValues(schema) {
|
|
14
14
|
return Object.fromEntries(
|
|
@@ -507,7 +507,9 @@ class AdminService {
|
|
|
507
507
|
...options.role ? { role: options.role } : {},
|
|
508
508
|
...options.teamIds !== void 0 && options.teamIds.length > 0 ? { team_ids: options.teamIds } : {},
|
|
509
509
|
...options.includeInvitations !== void 0 ? { include_invitations: options.includeInvitations } : {},
|
|
510
|
-
...options.includeAccess !== void 0 ? { include_access: options.includeAccess } : {}
|
|
510
|
+
...options.includeAccess !== void 0 ? { include_access: options.includeAccess } : {},
|
|
511
|
+
...options.sortBy ? { sortBy: options.sortBy } : {},
|
|
512
|
+
...options.sortDirection ? { sortDirection: options.sortDirection } : {}
|
|
511
513
|
}
|
|
512
514
|
});
|
|
513
515
|
}
|