@vuu-ui/vuu-data-test 4.0.0-alpha.2 → 4.0.0-alpha.20

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.
Files changed (51) hide show
  1. package/README.md +8 -0
  2. package/package.json +11 -9
  3. package/src/Table.js +5 -5
  4. package/src/core/filter/PermissionFilter.js +60 -0
  5. package/src/core/filter/PermissionFilteredTable.js +59 -0
  6. package/src/core/module/ModuleContainer.js +8 -0
  7. package/src/core/module/VuuModule.js +54 -6
  8. package/src/core/table/TableContainer.js +1 -1
  9. package/src/core/user/CurrentUser.js +13 -0
  10. package/src/index.js +7 -0
  11. package/src/local-datasource-provider/LocalDatasourceProvider.js +53 -43
  12. package/src/module-admin/ModuleAdminModule.js +124 -0
  13. package/src/module-admin/index.js +3 -0
  14. package/src/module-admin/module-admin-schemas.js +107 -0
  15. package/src/module-admin/snapshot-projection.js +29 -0
  16. package/src/notifications/NotificationModule.js +93 -0
  17. package/src/notifications/NotificationsSchema.js +52 -0
  18. package/src/notifications/index.js +6 -0
  19. package/src/notifications/simulated/DismissNotificationRpcHandler.js +36 -0
  20. package/src/notifications/simulated/SimulatedNotificationsModule.js +14 -0
  21. package/src/notifications/simulated/SimulatedNotificationsProvider.js +151 -0
  22. package/src/notifications/simulated/notificationsModule.js +3 -0
  23. package/src/schemas.js +8 -2
  24. package/src/user-admin/UserAdminModule.js +567 -0
  25. package/src/user-admin/index.js +3 -0
  26. package/src/user-admin/initialSnapshot.js +461 -0
  27. package/src/user-admin/snapshot-projection.js +151 -0
  28. package/types/core/filter/PermissionFilter.d.ts +41 -0
  29. package/types/core/filter/PermissionFilteredTable.d.ts +24 -0
  30. package/types/core/module/ModuleContainer.d.ts +6 -3
  31. package/types/core/module/VuuModule.d.ts +22 -0
  32. package/types/core/table/TableContainer.d.ts +5 -5
  33. package/types/core/user/CurrentUser.d.ts +14 -0
  34. package/types/index.d.ts +7 -0
  35. package/types/local-datasource-provider/LocalDatasourceProvider.d.ts +15 -1
  36. package/types/module-admin/ModuleAdminModule.d.ts +32 -0
  37. package/types/module-admin/index.d.ts +4 -0
  38. package/types/module-admin/module-admin-schemas.d.ts +4 -0
  39. package/types/module-admin/snapshot-projection.d.ts +13 -0
  40. package/types/notifications/NotificationModule.d.ts +39 -0
  41. package/types/notifications/NotificationsSchema.d.ts +20 -0
  42. package/types/notifications/index.d.ts +6 -0
  43. package/types/notifications/simulated/DismissNotificationRpcHandler.d.ts +8 -0
  44. package/types/notifications/simulated/SimulatedNotificationsModule.d.ts +2 -0
  45. package/types/notifications/simulated/SimulatedNotificationsProvider.d.ts +21 -0
  46. package/types/notifications/simulated/notificationsModule.d.ts +5 -0
  47. package/types/schemas.d.ts +5 -3
  48. package/types/user-admin/UserAdminModule.d.ts +54 -0
  49. package/types/user-admin/index.d.ts +3 -0
  50. package/types/user-admin/initialSnapshot.d.ts +2 -0
  51. package/types/user-admin/snapshot-projection.d.ts +9 -0
@@ -2,6 +2,8 @@ import type { DataSourceBase, DataSourceConfig, DataSourceRowWithBigint, DataSou
2
2
  import type { VuuMenu, VuuLink, LinkDescriptorWithLabel, VuuRpcMenuResponse, VuuCreateVisualLink, VuuRemoveVisualLink, VuuRpcServiceRequest, RpcResultSuccess, RpcResultError, VuuRpcMenuRequest } from "@vuu-ui/vuu-protocol-types";
3
3
  import { Table } from "../../Table";
4
4
  import { TickingArrayDataSource } from "../../TickingArrayDataSource";
5
+ import { type PermissionFunction } from "../filter/PermissionFilter";
6
+ import { type VuuModuleUser } from "../user/CurrentUser";
5
7
  export interface IVuuModule<T extends string = string> {
6
8
  createDataSource: (tableName: T, viewport?: string, config?: DataSourceConfig & {
7
9
  session?: SessionDataSourceOverrides;
@@ -28,6 +30,12 @@ type Subscription = {
28
30
  dataSource: DataSourceBase<DataSourceRowWithBigint>;
29
31
  sessionTableName?: string;
30
32
  sourceTableName?: string;
33
+ /**
34
+ * The table viewed by this subscription. Where a permission filter applies,
35
+ * this will be a PermissionFilteredTable
36
+ */
37
+ table: Table;
38
+ user: VuuModuleUser;
31
39
  };
32
40
  export declare abstract class VuuModule<T extends string = string> implements IVuuModule<T> {
33
41
  #private;
@@ -38,6 +46,19 @@ export declare abstract class VuuModule<T extends string = string> implements IV
38
46
  protected abstract menuServices?: Record<T, RpcMenuService[] | undefined> | undefined;
39
47
  protected abstract services?: Record<T, RpcService[] | undefined> | undefined;
40
48
  protected abstract visualLinks?: Record<T, VuuLink[] | undefined>;
49
+ protected get includeDefaultServices(): boolean;
50
+ protected beforeSessionSave(_sourceTable: Table, _sessionTable: Table): Promise<void>;
51
+ protected afterSessionSave(_sourceTable: Table, _sessionTable: Table): Promise<void>;
52
+ /**
53
+ * Optional, per table. Restricts the rows visible to each viewport, based on
54
+ * the viewport (and the user who owns it).
55
+ */
56
+ protected permissionFunctions?: Partial<Record<T, PermissionFunction>>;
57
+ /**
58
+ * Invoked before a dataSource is created. Can be used, for example, to
59
+ * lazily start a data provider.
60
+ */
61
+ protected beforeCreateDataSource?(tableName: T): void;
41
62
  getTableSchema(tableName: string): Record<T, Readonly<TableSchema>>[T];
42
63
  getTableList(): string[];
43
64
  protected handlePostSubscribeActivities: ({ clientViewportId, tableSchema, }: DataSourceSubscribedMessage) => void;
@@ -51,6 +72,7 @@ export declare abstract class VuuModule<T extends string = string> implements IV
51
72
  createDataSource: (tableName: T, viewport?: string, config?: DataSourceConfig & {
52
73
  session?: SessionDataSourceOverrides;
53
74
  }) => DataSourceBase<DataSourceRowWithBigint>;
75
+ private createPermissionFilteredTable;
54
76
  getServices(tableName: T): RpcService[];
55
77
  getMenuServices(tableName: T): RpcMenuService[];
56
78
  protected get sessionTableMap(): SessionTableMap;
@@ -1,13 +1,13 @@
1
- import { TableSchema } from "@vuu-ui/vuu-data-types";
1
+ import type { TableSchema } from "@vuu-ui/vuu-data-types";
2
2
  import { Table } from "../../Table";
3
- import { VuuRowDataItemType, VuuTable } from "@vuu-ui/vuu-protocol-types";
4
- import { ColumnMap } from "@vuu-ui/vuu-utils";
5
- import { UpdateGenerator } from "../../rowUpdates";
3
+ import type { VuuRowDataItemType, VuuTable } from "@vuu-ui/vuu-protocol-types";
4
+ import type { ColumnMap } from "@vuu-ui/vuu-utils";
5
+ import type { UpdateGenerator } from "../../rowUpdates";
6
6
  declare class TableContainer {
7
7
  #private;
8
8
  private constructor();
9
9
  static get instance(): TableContainer;
10
- createTable: (schema: TableSchema, data: Array<Array<VuuRowDataItemType | bigint>>, dataMap: ColumnMap, updateGenerator?: UpdateGenerator) => Table;
10
+ createTable: (schema: TableSchema, data?: Array<Array<VuuRowDataItemType | bigint>>, dataMap?: ColumnMap, updateGenerator?: UpdateGenerator) => Table;
11
11
  createJoinTable(joinTable: VuuTable, { table: t1 }: VuuTable, { table: t2 }: VuuTable, joinColumn: string): Table;
12
12
  addTable(table: Table): void;
13
13
  getTable<T = Table>(tableName: string): NonNullable<T>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The user that owns a viewport, as seen by permission functions and
3
+ * rpc services.
4
+ */
5
+ export interface VuuModuleUser {
6
+ authorizations: string[];
7
+ name: string;
8
+ }
9
+ export declare const getCurrentUser: () => VuuModuleUser;
10
+ /**
11
+ * Applies to viewports created after the change. Pass undefined to restore
12
+ * the default user.
13
+ */
14
+ export declare const setCurrentUser: (user?: string | VuuModuleUser) => void;
package/types/index.d.ts CHANGED
@@ -1,11 +1,18 @@
1
1
  export * from "./ArrayProxy";
2
+ export * from "./core/filter/PermissionFilter";
3
+ export * from "./core/filter/PermissionFilteredTable";
2
4
  export * from "./core/module/VuuModule";
5
+ export { ensureVuuModule } from "./core/module/ModuleContainer";
6
+ export * from "./core/user/CurrentUser";
3
7
  export { default as tableContainer } from "./core/table/TableContainer";
4
8
  export * from "./local-datasource-provider/LocalDatasourceProvider";
5
9
  export * from "./makeSuggestions";
10
+ export * from "./notifications";
6
11
  export * from "./schemas";
7
12
  export * from "./simul";
8
13
  export * from "./basket";
14
+ export * from "./module-admin";
15
+ export * from "./user-admin";
9
16
  export { buildDataColumnMap, buildDataColumnMapFromSchema, Table, type TableEvents, } from "./Table";
10
17
  export * from "./test";
11
18
  export * from "./TickingArrayDataSource";
@@ -1,4 +1,18 @@
1
+ import { type LocalVuuServer } from "@vuu-ui/core";
1
2
  import type { ReactNode } from "react";
2
- export declare const LocalDataSourceProvider: ({ children, }: {
3
+ import type { VuuModule } from "../core/module/VuuModule";
4
+ /** Data context covering every VuuModule registered in the browser. */
5
+ export declare const LocalDataSourceProvider: ({ children }: {
3
6
  children: ReactNode;
4
7
  }) => import("react").JSX.Element;
8
+ export interface LocalVuuServerOptions {
9
+ /** Matches the `vuu.connectionId` of the modules this server serves. */
10
+ connectionId: string;
11
+ modules: VuuModule<any>[];
12
+ }
13
+ /**
14
+ * Simulates a Vuu server in the browser, publishing the tables of the given
15
+ * modules. Pass the result to a local-mode `AuthenticationProvider` as one of
16
+ * its `localServers`.
17
+ */
18
+ export declare const createLocalVuuServer: ({ connectionId, modules, }: LocalVuuServerOptions) => LocalVuuServer;
@@ -0,0 +1,32 @@
1
+ import { type ManagedModule } from "@heswell/module-admin/contracts";
2
+ import type { TableSchema } from "@vuu-ui/vuu-data-types";
3
+ import { VuuModule, type RpcService } from "../core/module/VuuModule";
4
+ import { type Table } from "../Table";
5
+ import { type ModuleAdminTableName } from "./module-admin-schemas";
6
+ import { type ModuleAdminSnapshot } from "./snapshot-projection";
7
+ type ModuleAdminTables = Record<ModuleAdminTableName, Table>;
8
+ export declare const MODULE_ADMIN_INITIAL_SNAPSHOT: ModuleAdminSnapshot;
9
+ /**
10
+ * In-browser MODULE_DISCOVERY server. Supports the module admin RPCs from
11
+ * `@heswell/module-admin/contracts` on both tables; state is held in memory.
12
+ */
13
+ export declare class ModuleAdminModule extends VuuModule<ModuleAdminTableName> {
14
+ #private;
15
+ private readonly now;
16
+ constructor(snapshot?: ModuleAdminSnapshot, now?: () => number);
17
+ /** Current module state. */
18
+ get modules(): readonly ManagedModule[];
19
+ get menus(): {
20
+ modulePermissions: undefined;
21
+ modules: undefined;
22
+ };
23
+ protected get includeDefaultServices(): boolean;
24
+ get menuServices(): undefined;
25
+ get schemas(): Record<ModuleAdminTableName, Readonly<TableSchema>>;
26
+ private service;
27
+ get services(): Record<ModuleAdminTableName, RpcService[]>;
28
+ get tables(): ModuleAdminTables;
29
+ get visualLinks(): undefined;
30
+ }
31
+ export declare const moduleAdminModule: ModuleAdminModule;
32
+ export {};
@@ -0,0 +1,4 @@
1
+ export { ModuleAdminModule, MODULE_ADMIN_INITIAL_SNAPSHOT, moduleAdminModule, } from "./ModuleAdminModule";
2
+ export { MODULE_ADMIN_MODULE_NAME, MODULE_ADMIN_TABLE_SCHEMAS, type ModuleAdminTableName, } from "./module-admin-schemas";
3
+ export { projectModuleAdminSnapshot, reconcileModuleAdminTables, type ModuleAdminSnapshot, } from "./snapshot-projection";
4
+ export type { ManagedModule, ModuleAccessRole, ModuleConfig, ModuleDefinition, ModulePermissionRow, ModuleRow, } from "@heswell/module-admin/contracts";
@@ -0,0 +1,4 @@
1
+ import type { TableSchema } from "@vuu-ui/vuu-data-types";
2
+ export declare const MODULE_ADMIN_MODULE_NAME = "MODULE_DISCOVERY";
3
+ export type ModuleAdminTableName = "modules" | "modulePermissions";
4
+ export declare const MODULE_ADMIN_TABLE_SCHEMAS: Readonly<Record<ModuleAdminTableName, Readonly<TableSchema>>>;
@@ -0,0 +1,13 @@
1
+ import { type ManagedModule } from "@heswell/module-admin/contracts";
2
+ import type { VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
3
+ import type { Table } from "../Table";
4
+ import type { ModuleAdminTableName } from "./module-admin-schemas";
5
+ type Row = Array<bigint | VuuRowDataItemType>;
6
+ type Tables = Record<ModuleAdminTableName, Table>;
7
+ export type ModuleAdminSnapshot = {
8
+ modules: readonly ManagedModule[];
9
+ };
10
+ export declare const projectModuleAdminSnapshot: (snapshot: ModuleAdminSnapshot, tables: Tables) => Record<ModuleAdminTableName, Row[]>;
11
+ /** Brings the tables into line with the snapshot, emitting row-level updates. */
12
+ export declare const reconcileModuleAdminTables: (snapshot: ModuleAdminSnapshot, tables: Tables) => void;
13
+ export {};
@@ -0,0 +1,39 @@
1
+ import type { TableSchema } from "@vuu-ui/vuu-data-types";
2
+ import { type RpcService, VuuModule } from "../core/module/VuuModule";
3
+ import type { PermissionFunction } from "../core/filter/PermissionFilter";
4
+ import { type Table } from "../Table";
5
+ import { type ColumnDefinition } from "./NotificationsSchema";
6
+ export type NotificationsTableName = "notifications";
7
+ /**
8
+ * Source of notifications. Started when the first dataSource is
9
+ * created for the notifications table, or explicitly via module.start().
10
+ */
11
+ export interface NotificationsProvider {
12
+ start: () => void;
13
+ stop: () => void;
14
+ }
15
+ export type NotificationsProviderFactory = (table: Table) => NotificationsProvider;
16
+ export type NotificationsServiceFactory = (table: Table, module: NotificationModule) => RpcService[];
17
+ /**
18
+ * A generic Notifications module, exposing a single 'notifications' table.
19
+ * The source of notifications (provider), the rows visible to each user
20
+ * (permissionFunction) and any rpc services (serviceFactory) are supplied
21
+ * by the consumer. Any additional columns are appended to the generic
22
+ * notification columns (see NotificationsSchema).
23
+ */
24
+ export declare class NotificationModule extends VuuModule<NotificationsTableName> {
25
+ #private;
26
+ static readonly NAME = "NOTIFICATIONS";
27
+ static readonly TABLE_NAME: "notifications";
28
+ constructor(providerFactory: NotificationsProviderFactory, permissionFunction: PermissionFunction, serviceFactory: NotificationsServiceFactory, ...additionalColumns: ColumnDefinition[]);
29
+ protected beforeCreateDataSource(): void;
30
+ get isRunning(): boolean;
31
+ start(): void;
32
+ stop(): void;
33
+ get menus(): undefined;
34
+ get menuServices(): undefined;
35
+ get schemas(): Record<"notifications", TableSchema>;
36
+ get services(): Record<"notifications", RpcService[]>;
37
+ get tables(): Record<"notifications", Table>;
38
+ get visualLinks(): undefined;
39
+ }
@@ -0,0 +1,20 @@
1
+ import type { SchemaColumn } from "@vuu-ui/vuu-data-types";
2
+ /**
3
+ * Accepts either a SchemaColumn or a column definition in the Scala server
4
+ * 'name:Type' format, e.g. "source:String", "priority:Int".
5
+ */
6
+ export type ColumnDefinition = SchemaColumn | string;
7
+ export declare const toColumn: (columnDefinition: ColumnDefinition) => SchemaColumn;
8
+ export declare const NotificationsSchema: {
9
+ Id: string;
10
+ Type: string;
11
+ ExpiryTime: string;
12
+ Title: string;
13
+ Message: string;
14
+ Level: string;
15
+ Audience: string;
16
+ /**
17
+ * The generic notification columns, plus any additional columns.
18
+ */
19
+ allFrom: (...additionalColumns: ColumnDefinition[]) => SchemaColumn[];
20
+ };
@@ -0,0 +1,6 @@
1
+ export * from "./NotificationModule";
2
+ export * from "./NotificationsSchema";
3
+ export * from "./simulated/DismissNotificationRpcHandler";
4
+ export * from "./simulated/SimulatedNotificationsModule";
5
+ export * from "./simulated/SimulatedNotificationsProvider";
6
+ export * from "./simulated/notificationsModule";
@@ -0,0 +1,8 @@
1
+ import type { RpcService } from "../../core/module/VuuModule";
2
+ import type { Table } from "../../Table";
3
+ import type { NotificationModule } from "../NotificationModule";
4
+ /**
5
+ * Marks the notifications selected in the requesting viewport as dismissed
6
+ * by the user that owns the viewport.
7
+ */
8
+ export declare const DismissNotificationRpcHandler: (table: Table, module: NotificationModule) => RpcService[];
@@ -0,0 +1,2 @@
1
+ import { NotificationModule } from "../NotificationModule";
2
+ export declare const SimulatedNotificationsModule: () => NotificationModule;
@@ -0,0 +1,21 @@
1
+ import type { Table } from "../../Table";
2
+ import type { NotificationsProvider } from "../NotificationModule";
3
+ /**
4
+ * Minimal implementation of the subset of Java String.format used by
5
+ * the message templates: %d, %0nd and %%. Args are consumed in order.
6
+ */
7
+ export declare const formatMessage: (format: string, ...args: number[]) => string;
8
+ /**
9
+ * Generates random notifications. Seeds an initial set of notifications on
10
+ * start then, on each cycle, deletes expired notifications and adds a new
11
+ * notification if fewer than the maximum are active.
12
+ */
13
+ export declare class SimulatedNotificationsProvider implements NotificationsProvider {
14
+ #private;
15
+ constructor(table: Table);
16
+ start(): void;
17
+ stop(): void;
18
+ runOnce: () => void;
19
+ private generateRandomNotification;
20
+ private toDataRow;
21
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Simulated notifications. The provider starts generating notifications
3
+ * when the first dataSource is created for the notifications table.
4
+ */
5
+ export declare const notificationsModule: import("..").NotificationModule;
@@ -1,8 +1,10 @@
1
- import { TableSchema } from "@vuu-ui/vuu-data-types";
1
+ import type { TableSchema } from "@vuu-ui/vuu-data-types";
2
2
  import { type BasketsTableName } from "./basket/basket-schemas";
3
3
  import { type SimulTableName } from "./simul/simul-schemas";
4
- import { TestTableName } from "./test/TestModule";
5
- export type VuuTableName = BasketsTableName | SimulTableName | TestTableName;
4
+ import { type TestTableName } from "./test/TestModule";
5
+ import { type UserAdminTableName } from "@heswell/user-admin/contracts";
6
+ import { type ModuleAdminTableName } from "./module-admin";
7
+ export type VuuTableName = BasketsTableName | SimulTableName | TestTableName | UserAdminTableName | ModuleAdminTableName;
6
8
  export declare const schemas: Record<VuuTableName, TableSchema>;
7
9
  export declare const getAllSchemas: () => Record<VuuTableName, TableSchema>;
8
10
  export declare const getSchema: (tableName: VuuTableName) => Readonly<TableSchema>;
@@ -0,0 +1,54 @@
1
+ import { type UserAdminSnapshot, type UserAdminTableName } from "@heswell/user-admin/contracts";
2
+ import { InMemoryUserAdminStore } from "@heswell/user-admin/in-memory";
3
+ import type { TableSchema } from "@vuu-ui/vuu-data-types";
4
+ import { VuuModule, type RpcService } from "../core/module/VuuModule";
5
+ import { Table } from "../Table";
6
+ type UserAdminTables = Record<UserAdminTableName, Table>;
7
+ export declare class UserAdminModule extends VuuModule<UserAdminTableName> {
8
+ #private;
9
+ readonly store: InMemoryUserAdminStore;
10
+ constructor(snapshot?: UserAdminSnapshot);
11
+ get schemas(): Record<UserAdminTableName, Readonly<TableSchema>>;
12
+ get tables(): UserAdminTables;
13
+ get menus(): {
14
+ clients: undefined;
15
+ group_roles: undefined;
16
+ groups: undefined;
17
+ roles: undefined;
18
+ user_group_roles: undefined;
19
+ user_groups: undefined;
20
+ users: undefined;
21
+ };
22
+ get visualLinks(): undefined;
23
+ get menuServices(): undefined;
24
+ get services(): Record<UserAdminTableName, RpcService[]>;
25
+ reconcile(): Promise<void>;
26
+ protected createSessionTable(sourceTable: Table, sessionTableName: string, editSessionMode: import("@vuu-ui/vuu-data-types").EditSessionMode | import("@vuu-ui/vuu-data-types").CopyOption, dataSource: import("../TickingArrayDataSource").TickingArrayDataSource, sessionType?: import("@vuu-ui/vuu-data-types").SessionType): Table;
27
+ protected beforeSessionSave(sourceTable: Table, sessionTable: Table): Promise<void>;
28
+ protected afterSessionSave(sourceTable: Table, sessionTable: Table): Promise<void>;
29
+ private saveGroupsFromSession;
30
+ private saveGroupRoleAssignments;
31
+ private resolveGroupRoleAssignments;
32
+ private saveClientRolesFromSession;
33
+ private mutation;
34
+ private addUser;
35
+ private updateUser;
36
+ private deleteUser;
37
+ private addGroup;
38
+ private updateGroup;
39
+ private deleteGroup;
40
+ private addClient;
41
+ private updateClient;
42
+ private addRole;
43
+ private addClientRole;
44
+ private updateRole;
45
+ private assignGroupRole;
46
+ private removeGroupRole;
47
+ private assignUserToGroup;
48
+ private removeUserFromGroup;
49
+ private getUserModuleAccessOptions;
50
+ private setUserModuleAccess;
51
+ private assertUsernameIsUnique;
52
+ }
53
+ export declare const userAdminModule: UserAdminModule;
54
+ export {};
@@ -0,0 +1,3 @@
1
+ export { UserAdminModule, userAdminModule, } from "./UserAdminModule";
2
+ export { USER_ADMIN_INITIAL_SNAPSHOT } from "./initialSnapshot";
3
+ export { projectUserAdminSnapshot, reconcileUserAdminTables, } from "./snapshot-projection";
@@ -0,0 +1,2 @@
1
+ import type { UserAdminSnapshot } from "@heswell/user-admin";
2
+ export declare const USER_ADMIN_INITIAL_SNAPSHOT: UserAdminSnapshot;
@@ -0,0 +1,9 @@
1
+ import type { UserAdminSnapshot, UserAdminTableName } from "@heswell/user-admin/contracts";
2
+ import type { VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
3
+ import type { Table } from "../Table";
4
+ type Row = Array<bigint | VuuRowDataItemType>;
5
+ type Tables = Record<UserAdminTableName, Table>;
6
+ export declare const resolveDisplayName: (name: string, configuredDisplayName?: string) => string;
7
+ export declare const projectUserAdminSnapshot: (snapshot: UserAdminSnapshot, tables: Tables) => Record<UserAdminTableName, Row[]>;
8
+ export declare const reconcileUserAdminTables: (snapshot: UserAdminSnapshot, tables: Tables) => void;
9
+ export {};