@budibase/backend-core 2.9.33-alpha.2 → 2.9.34

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,17 +1,13 @@
1
- import { Account, BulkUserCreated, BulkUserDeleted, SaveUserOpts, User, UserGroup } from "@budibase/types";
1
+ import { BulkUserCreated, BulkUserDeleted, SaveUserOpts, User, Account } from "@budibase/types";
2
2
  declare type QuotaUpdateFn = (change: number, cb?: () => Promise<any>) => Promise<any>;
3
3
  declare type GroupUpdateFn = (groupId: string, userIds: string[]) => Promise<any>;
4
4
  declare type FeatureFn = () => Promise<Boolean>;
5
- declare type GroupGetFn = (ids: string[]) => Promise<UserGroup[]>;
6
- declare type GroupBuildersFn = (user: User) => Promise<string[]>;
7
5
  declare type QuotaFns = {
8
6
  addUsers: QuotaUpdateFn;
9
7
  removeUsers: QuotaUpdateFn;
10
8
  };
11
9
  declare type GroupFns = {
12
10
  addUsers: GroupUpdateFn;
13
- getBulk: GroupGetFn;
14
- getGroupBuilderAppIds: GroupBuildersFn;
15
11
  };
16
12
  declare type FeatureFns = {
17
13
  isSSOEnforced: FeatureFn;
@@ -34,13 +30,9 @@ export declare class UserDB {
34
30
  * Gets a user by ID from the global database, based on the current tenancy.
35
31
  */
36
32
  static getUser(userId: string): Promise<User>;
37
- static bulkGet(userIds: string[]): Promise<User[]>;
38
- static bulkUpdate(users: User[]): Promise<import("@budibase/types").BulkDocsResponse>;
39
33
  static save(user: User, opts?: SaveUserOpts): Promise<User>;
40
34
  static bulkCreate(newUsersRequested: User[], groups: string[]): Promise<BulkUserCreated>;
41
35
  static bulkDelete(userIds: string[]): Promise<BulkUserDeleted>;
42
36
  static destroy(id: string): Promise<void>;
43
- static getGroups(groupIds: string[]): Promise<UserGroup[]>;
44
- static getGroupBuilderAppIds(user: User): Promise<string[]>;
45
37
  }
46
38
  export {};
@@ -17,9 +17,7 @@ export declare const useEnforceableSSO: () => License;
17
17
  export declare const useGroups: () => License;
18
18
  export declare const useEnvironmentVariables: () => License;
19
19
  export declare const useAuditLogs: () => License;
20
- export declare const usePublicApiUserRoles: () => License;
21
20
  export declare const useScimIntegration: () => License;
22
21
  export declare const useSyncAutomations: () => License;
23
22
  export declare const useAppBuilders: () => License;
24
- export declare const useViewPermissions: () => License;
25
23
  export declare const setAutomationLogsQuota: (value: number) => License;