@budibase/pro 3.24.3 → 3.24.5
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/db/groups.d.ts +11 -5
- package/dist/index.js +27 -27
- package/dist/sdk/groups/groups.d.ts +10 -4
- package/package.json +2 -4
package/dist/db/groups.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatabaseQueryOpts, UserGroup } from "@budibase/types";
|
|
1
|
+
import { DatabaseQueryOpts, EnrichedUserGroup, UserGroup } from "@budibase/types";
|
|
2
2
|
type UserGroupsViewParams = DatabaseQueryOpts & {
|
|
3
3
|
emailSearch?: string;
|
|
4
4
|
bookmark?: string;
|
|
@@ -23,10 +23,16 @@ export declare function getGroupUsers(groupId: string, params?: UserGroupsViewPa
|
|
|
23
23
|
_id: any;
|
|
24
24
|
email: any;
|
|
25
25
|
}[]>;
|
|
26
|
-
export declare function fetch(): Promise<
|
|
27
|
-
export declare function get(groupId: string): Promise<
|
|
26
|
+
export declare function fetch(): Promise<EnrichedUserGroup[]>;
|
|
27
|
+
export declare function get(groupId: string): Promise<EnrichedUserGroup>;
|
|
28
|
+
export declare function getBulk(groupIds: string[], opts: {
|
|
29
|
+
enriched: true;
|
|
30
|
+
}): Promise<EnrichedUserGroup[]>;
|
|
31
|
+
export declare function getBulk(groupIds: string[], opts: {
|
|
32
|
+
enriched: false;
|
|
33
|
+
}): Promise<UserGroup[]>;
|
|
28
34
|
export declare function getBulk(groupIds: string[], opts?: {
|
|
29
|
-
enriched
|
|
35
|
+
enriched?: boolean;
|
|
30
36
|
}): Promise<UserGroup[]>;
|
|
31
37
|
export declare function save(group: UserGroup): Promise<{
|
|
32
38
|
id: string;
|
|
@@ -39,5 +45,5 @@ export declare function bulkSave(groups: UserGroup[]): Promise<{
|
|
|
39
45
|
export declare function destroy(groupId: string, revision: string): Promise<{
|
|
40
46
|
id: string;
|
|
41
47
|
}>;
|
|
42
|
-
export declare function getByName(name: string): Promise<
|
|
48
|
+
export declare function getByName(name: string): Promise<EnrichedUserGroup | undefined>;
|
|
43
49
|
export {};
|