@pol-studios/db 1.0.19 → 1.0.21
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/DataLayerContext-ZmLPYR_s.d.ts +825 -0
- package/dist/EntityPermissions-DwFt4tUd.d.ts +35 -0
- package/dist/FilterConfig-Bt2Ek74z.d.ts +99 -0
- package/dist/UserMetadataContext-B8gVWGMl.d.ts +35 -0
- package/dist/UserMetadataContext-DntmpK41.d.ts +33 -0
- package/dist/auth/context.d.ts +48 -0
- package/dist/auth/guards.d.ts +180 -0
- package/dist/auth/hooks.d.ts +312 -0
- package/dist/auth/index.d.ts +11 -0
- package/dist/client/index.d.ts +16 -0
- package/dist/core/index.d.ts +539 -0
- package/dist/database.types-ChFCG-4M.d.ts +8604 -0
- package/dist/executor-CB4KHyYG.d.ts +507 -0
- package/dist/gen/index.d.ts +1099 -0
- package/dist/hooks/index.d.ts +100 -0
- package/dist/index-BNKhgDdC.d.ts +433 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.native.d.ts +793 -0
- package/dist/index.web.d.ts +321 -0
- package/dist/mutation/index.d.ts +58 -0
- package/dist/parser/index.d.ts +366 -0
- package/dist/powersync-bridge/index.d.ts +284 -0
- package/dist/query/index.d.ts +723 -0
- package/dist/realtime/index.d.ts +44 -0
- package/dist/select-query-parser-BwyHum1L.d.ts +352 -0
- package/dist/setupAuthContext-Kv-THH-h.d.ts +61 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types-CYr9JiUE.d.ts +62 -0
- package/dist/useBatchUpsert-9OYjibLh.d.ts +24 -0
- package/dist/useDbCount-Id14x_1P.d.ts +1082 -0
- package/dist/useDbQuery-C-TL8jY1.d.ts +19 -0
- package/dist/useReceiptAI-6HkRpRml.d.ts +58 -0
- package/dist/useResolveFeedback-Ca2rh_Bs.d.ts +997 -0
- package/dist/useSupabase-DvWVuHHE.d.ts +28 -0
- package/dist/with-auth/index.d.ts +704 -0
- package/package.json +61 -13
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _supabase_supabase_js_dist_module_lib_types_js from '@supabase/supabase-js/dist/module/lib/types.js';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { SupabaseClient, SupabaseClientOptions } from '@supabase/supabase-js';
|
|
5
|
+
|
|
6
|
+
interface SupabaseDatabaseTypes {
|
|
7
|
+
}
|
|
8
|
+
type Database = SupabaseDatabaseTypes extends {
|
|
9
|
+
Database: infer D;
|
|
10
|
+
} ? D : any;
|
|
11
|
+
type TypedSupabaseClient = SupabaseClient<Database>;
|
|
12
|
+
declare const ClientInstanceId: string;
|
|
13
|
+
declare const UserSessionId: string;
|
|
14
|
+
declare function createNewSupabaseClient<SchemaName extends string & keyof Database = "public" extends keyof Database ? "public" : string & keyof Database>(options?: SupabaseClientOptions<SchemaName>): SupabaseClient<any, SchemaName, SchemaName extends string ? SchemaName : "public", Omit<any, "__InternalSupabase">[SchemaName extends string ? SchemaName : "public"] extends _supabase_supabase_js_dist_module_lib_types_js.GenericSchema ? Omit<any, "__InternalSupabase">[SchemaName extends string ? SchemaName : "public"] : never, SchemaName extends string ? any : SchemaName extends {
|
|
15
|
+
PostgrestVersion: string;
|
|
16
|
+
} ? SchemaName : never>;
|
|
17
|
+
declare function onSupabaseInitialized(afterInitialize: (supabase: SupabaseClient) => any): void;
|
|
18
|
+
declare function setDefaultOptions(options: SupabaseClientOptions<string & keyof Database>): void;
|
|
19
|
+
declare let typedSupabase: SupabaseClient<Database>;
|
|
20
|
+
declare function useSupabase(): SupabaseClient<any, "public", "public", any, any>;
|
|
21
|
+
declare function SupabaseProvider({ children, options, afterInitialize, supabaseClient: supabaseClientProp, }: {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
options?: SupabaseClientOptions<string & keyof Database>;
|
|
24
|
+
afterInitialize?: (supabase: SupabaseClient<Database>) => any;
|
|
25
|
+
supabaseClient?: SupabaseClient<Database>;
|
|
26
|
+
}): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { ClientInstanceId as C, type Database as D, type SupabaseDatabaseTypes as S, type TypedSupabaseClient as T, UserSessionId as U, SupabaseProvider as a, createNewSupabaseClient as c, onSupabaseInitialized as o, setDefaultOptions as s, typedSupabase as t, useSupabase as u };
|