@budibase/pro 3.24.3 → 3.24.4

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.
@@ -1,4 +1,4 @@
1
- import { ContextUser, User, UserGroup } from "@budibase/types";
1
+ import { ContextUser, EnrichedUserGroup, User, UserGroup } from "@budibase/types";
2
2
  export declare function getGroupBuilderAppIds(user: User | ContextUser, opts?: {
3
3
  appId?: string;
4
4
  groups?: UserGroup[];
@@ -7,12 +7,18 @@ export declare function getGroupRoleId(user: User | ContextUser, workspaceId: st
7
7
  groups?: UserGroup[];
8
8
  }): Promise<string | null | undefined>;
9
9
  export declare function enrichUserRolesFromGroups(user: User): Promise<User>;
10
- export declare function fetch(): Promise<UserGroup[]>;
10
+ export declare function fetch(): Promise<EnrichedUserGroup[]>;
11
11
  export declare function get(id: string): Promise<UserGroup>;
12
+ export declare function getBulk(ids: string[], opts: {
13
+ enriched: true;
14
+ }): Promise<EnrichedUserGroup[]>;
15
+ export declare function getBulk(ids: string[], opts: {
16
+ enriched: false;
17
+ }): Promise<UserGroup[]>;
12
18
  export declare function getBulk(ids: string[], opts?: {
13
- enriched: boolean;
19
+ enriched?: boolean;
14
20
  }): Promise<UserGroup[]>;
15
- export declare function save(group: UserGroup): Promise<{
21
+ export declare function save(group: UserGroup | EnrichedUserGroup): Promise<{
16
22
  id: string;
17
23
  rev: string;
18
24
  }>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "dist"
5
5
  ],
6
6
  "license": "UNLICENSED",
7
- "version": "3.24.3",
7
+ "version": "3.24.4",
8
8
  "description": "Budibase Pro (Backend)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
@@ -73,5 +73,5 @@
73
73
  }
74
74
  }
75
75
  },
76
- "gitHead": "a85e0ba10b7d19e204062fb63dc306953284e277"
76
+ "gitHead": "6d1812ff9a22270318eaf1f61f4e9af51bbac383"
77
77
  }