@pol-studios/db 1.0.19 → 1.0.22
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/context.js +2 -2
- package/dist/auth/guards.d.ts +180 -0
- package/dist/auth/hooks.d.ts +312 -0
- package/dist/auth/hooks.js +3 -3
- package/dist/auth/index.d.ts +11 -0
- package/dist/auth/index.js +3 -3
- package/dist/{chunk-2T6WTCP4.js → chunk-3EVWXMUV.js} +54 -155
- package/dist/chunk-3EVWXMUV.js.map +1 -0
- package/dist/{chunk-YERWPV6B.js → chunk-3FHAKRDV.js} +145 -19
- package/dist/{chunk-YERWPV6B.js.map → chunk-3FHAKRDV.js.map} +1 -1
- package/dist/{chunk-X3HZLNBV.js → chunk-FKRACEHV.js} +2 -962
- package/dist/chunk-FKRACEHV.js.map +1 -0
- package/dist/{chunk-N26IEHZT.js → chunk-FZF26ZRB.js} +18 -2
- package/dist/{chunk-N26IEHZT.js.map → chunk-FZF26ZRB.js.map} +1 -1
- package/dist/chunk-HTJ2FQW5.js +963 -0
- package/dist/chunk-HTJ2FQW5.js.map +1 -0
- package/dist/{chunk-R5B2XMN5.js → chunk-I4BDZDHX.js} +1614 -2141
- package/dist/chunk-I4BDZDHX.js.map +1 -0
- package/dist/{chunk-36DVUMQD.js → chunk-LPC64MD4.js} +2 -2
- package/dist/{chunk-72WV3ALS.js → chunk-OUUQSI3Y.js} +2 -2
- package/dist/{chunk-RMRYGICS.js → chunk-WP6TIVPH.js} +4 -4
- package/dist/client/index.d.ts +16 -0
- package/dist/core/index.d.ts +568 -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 +119 -0
- package/dist/hooks/index.js +1 -1
- package/dist/index-2YySlz7X.d.ts +433 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +14 -95
- package/dist/index.native.d.ts +775 -0
- package/dist/index.native.js +17 -96
- package/dist/index.web.d.ts +438 -0
- package/dist/index.web.js +585 -46
- package/dist/index.web.js.map +1 -1
- 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/powersync-bridge/index.js +1 -1
- package/dist/query/index.d.ts +723 -0
- package/dist/query/index.js +10 -8
- 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-s-aR9YeV.d.ts +1082 -0
- package/dist/useDbQuery-C-TL8jY1.d.ts +19 -0
- package/dist/useReceiptAI-6HkRpRml.d.ts +58 -0
- package/dist/useResolveFeedback-DTGcHpCs.d.ts +882 -0
- package/dist/useSupabase-DvWVuHHE.d.ts +28 -0
- package/dist/with-auth/index.d.ts +704 -0
- package/dist/with-auth/index.js +4 -4
- package/package.json +50 -1
- package/dist/chunk-2T6WTCP4.js.map +0 -1
- package/dist/chunk-R5B2XMN5.js.map +0 -1
- package/dist/chunk-X3HZLNBV.js.map +0 -1
- /package/dist/{chunk-36DVUMQD.js.map → chunk-LPC64MD4.js.map} +0 -0
- /package/dist/{chunk-72WV3ALS.js.map → chunk-OUUQSI3Y.js.map} +0 -0
- /package/dist/{chunk-RMRYGICS.js.map → chunk-WP6TIVPH.js.map} +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
export { C as ClarificationQuestion, D as DatabaseTypes, F as Filter, x as FilterGroup, y as FilterOperator, z as Pagination, P as PublicTableNames, Q as QueryState, R as ResolveRowType, S as SchemaNames, l as SchemaTableNames, A as Sort, T as TableIdentifier, U as UseAdvanceQueryOptions, m as UseAdvanceQueryResult, n as UseDbCountOptions, o as UseDbCountResult, K as UseDbDeleteOptions, L as UseDbDeleteResult, p as UseDbInfiniteQueryOptions, q as UseDbInfiniteQueryResult, B as UseDbInsertOptions, E as UseDbInsertResult, v as UseDbQueryByIdOptions, w as UseDbQueryByIdResult, r as UseDbQueryOptions, s as UseDbQueryResult, G as UseDbUpdateOptions, H as UseDbUpdateResult, I as UseDbUpsertOptions, J as UseDbUpsertResult, u as useAdvanceQuery, a as useDataLayer, b as useDataLayerCore, t as useDataLayerOptional, c as useDataLayerStatus, d as useDbCount, e as useDbDelete, f as useDbInfiniteQuery, g as useDbInsert, h as useDbQuery, i as useDbQueryById, j as useDbUpdate, k as useDbUpsert } from '../useDbCount-s-aR9YeV.js';
|
|
2
|
+
import { SyncStatus, SyncControl } from '../core/index.js';
|
|
3
|
+
import '../DataLayerContext-ZmLPYR_s.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@supabase/supabase-js';
|
|
6
|
+
import '@tanstack/react-query';
|
|
7
|
+
import '../executor-CB4KHyYG.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* V3 useSyncStatus Hook
|
|
11
|
+
*
|
|
12
|
+
* Provides sync status information from the data layer.
|
|
13
|
+
* Returns default "always synced" status when PowerSync is not available.
|
|
14
|
+
*
|
|
15
|
+
* Uses the split context architecture for optimal performance.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Hook to get the current sync status
|
|
20
|
+
*
|
|
21
|
+
* When PowerSync is not available, returns a default "always synced" status.
|
|
22
|
+
*
|
|
23
|
+
* This hook uses the split context architecture - it only subscribes to
|
|
24
|
+
* status changes, not core value changes.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* const { isSyncing, pendingUploads, isConnected } = useSyncStatus();
|
|
28
|
+
*
|
|
29
|
+
* if (pendingUploads > 0) {
|
|
30
|
+
* console.log(`${pendingUploads} changes waiting to sync`);
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
declare function useSyncStatus(): SyncStatus;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* V3 useSyncControl Hook
|
|
37
|
+
*
|
|
38
|
+
* Provides sync control functions from the data layer.
|
|
39
|
+
* Returns no-op functions when PowerSync is not available.
|
|
40
|
+
*
|
|
41
|
+
* Uses the split context architecture for optimal performance.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Hook to get sync controls for PowerSync
|
|
46
|
+
*
|
|
47
|
+
* When PowerSync is not available, all methods are no-ops that log a warning.
|
|
48
|
+
*
|
|
49
|
+
* This hook uses the split context architecture - it subscribes to both
|
|
50
|
+
* status (for syncControl) and core (for powerSync instance check).
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* const { triggerSync, startLiveSync, stopLiveSync } = useSyncControl();
|
|
54
|
+
*
|
|
55
|
+
* // Manually trigger a sync
|
|
56
|
+
* await triggerSync();
|
|
57
|
+
*
|
|
58
|
+
* // Start/stop live sync
|
|
59
|
+
* await startLiveSync();
|
|
60
|
+
* stopLiveSync();
|
|
61
|
+
*
|
|
62
|
+
* @example Failed upload controls
|
|
63
|
+
* const {
|
|
64
|
+
* failedUploads,
|
|
65
|
+
* retryFailedUploads,
|
|
66
|
+
* clearFailedUploads,
|
|
67
|
+
* pauseAutoRetry,
|
|
68
|
+
* resumeAutoRetry,
|
|
69
|
+
* isAutoRetryPaused
|
|
70
|
+
* } = useSyncControl();
|
|
71
|
+
*
|
|
72
|
+
* // Show failed uploads count
|
|
73
|
+
* console.log(`${failedUploads.length} uploads failed`);
|
|
74
|
+
*
|
|
75
|
+
* // Manually retry all failed uploads
|
|
76
|
+
* await retryFailedUploads();
|
|
77
|
+
*
|
|
78
|
+
* // Discard all failed uploads
|
|
79
|
+
* clearFailedUploads();
|
|
80
|
+
*/
|
|
81
|
+
declare function useSyncControl(): SyncControl;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* V3 useOnlineStatus Hook
|
|
85
|
+
*
|
|
86
|
+
* Provides online/connection status information.
|
|
87
|
+
* Uses DataLayerProvider's status as the SINGLE source of truth.
|
|
88
|
+
*
|
|
89
|
+
* On React Native: status.isOnline comes from PowerSync platform adapter (NetInfo)
|
|
90
|
+
* On Web: status.isOnline comes from browser navigator.onLine
|
|
91
|
+
*/
|
|
92
|
+
/**
|
|
93
|
+
* Online status information
|
|
94
|
+
*/
|
|
95
|
+
interface OnlineStatus {
|
|
96
|
+
/** Whether the device has network connectivity */
|
|
97
|
+
isOnline: boolean;
|
|
98
|
+
/** Whether PowerSync is connected (false if using Supabase-only) */
|
|
99
|
+
isConnected: boolean;
|
|
100
|
+
/** Current backend being used */
|
|
101
|
+
backend: "powersync" | "supabase" | null;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Hook to get online/connection status
|
|
105
|
+
*
|
|
106
|
+
* Uses DataLayerProvider's status as the single source of truth:
|
|
107
|
+
* - On React Native: isOnline comes from PowerSync platform adapter (NetInfo)
|
|
108
|
+
* - On Web: isOnline comes from browser navigator.onLine
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* const { isOnline, isConnected, backend } = useOnlineStatus();
|
|
112
|
+
*
|
|
113
|
+
* if (!isOnline) {
|
|
114
|
+
* return <OfflineBanner />;
|
|
115
|
+
* }
|
|
116
|
+
*/
|
|
117
|
+
declare function useOnlineStatus(): OnlineStatus;
|
|
118
|
+
|
|
119
|
+
export { type OnlineStatus, useOnlineStatus, useSyncControl, useSyncStatus };
|
package/dist/hooks/index.js
CHANGED
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { V as ValueForPropertyType, P as PropertyType, a as FilterConfig } from './FilterConfig-Bt2Ek74z.js';
|
|
2
|
+
import { Moment } from 'moment';
|
|
3
|
+
import './database.types-ChFCG-4M.js';
|
|
4
|
+
import { PostgrestSingleResponse, SupabaseClient } from '@supabase/supabase-js';
|
|
5
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
6
|
+
import { UseQueryOptions, DefinedUseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { SyncControl, SyncStatus, DataLayerConfig } from './core/index.js';
|
|
8
|
+
import { s as DataLayerStatus, p as DataLayerContextValue } from './DataLayerContext-ZmLPYR_s.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents a change log entry for database records.
|
|
12
|
+
* Used for tracking live changes to entities.
|
|
13
|
+
*/
|
|
14
|
+
interface DbChangeLog {
|
|
15
|
+
modifiedByUserId: string;
|
|
16
|
+
changedOn: Moment;
|
|
17
|
+
changes: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const normalizeFilter: (filter: FilterInput) => Filter | FilterGroup | null;
|
|
21
|
+
/**
|
|
22
|
+
* Filter state for the UI - extends Filter with UI-specific metadata.
|
|
23
|
+
* FilterState can always be assigned where Filter is expected since it
|
|
24
|
+
* contains all Filter properties. The omitted properties (similarity, where, options)
|
|
25
|
+
* are AI search-specific and not typically needed in the UI filter state.
|
|
26
|
+
*/
|
|
27
|
+
interface FilterState extends Omit<Filter, 'similarity' | 'where' | 'options'> {
|
|
28
|
+
}
|
|
29
|
+
type ValueOrArrayForPropertyType<T extends PropertyType> = ValueForPropertyType<T> | ValueForPropertyType<T>[];
|
|
30
|
+
type BooleanOperator = "AND" | "OR";
|
|
31
|
+
/**
|
|
32
|
+
* Filter operators supported by the edge function.
|
|
33
|
+
* This is the single source of truth - matches /supabase/functions/_shared/query-sdk/types.ts
|
|
34
|
+
*
|
|
35
|
+
* Note: The following operators are normalized by normalizeFilter() before sending to the server:
|
|
36
|
+
* - "like" -> "contains"
|
|
37
|
+
* - "regex", "regex_i", "similar_to" -> "contains"
|
|
38
|
+
* - "!=" and "<>" are NOT supported - use "=" with not: true instead
|
|
39
|
+
*/
|
|
40
|
+
type FilterOperator = "=" | ">" | ">=" | "<" | "<=" | "contains" | "ilike" | "is" | "in" | "ai_search";
|
|
41
|
+
type FilterConditionType = FilterOperator;
|
|
42
|
+
/**
|
|
43
|
+
* Filter interface - matches edge function API
|
|
44
|
+
*/
|
|
45
|
+
interface Filter {
|
|
46
|
+
/** Unique identifier */
|
|
47
|
+
id: string;
|
|
48
|
+
/** Field to filter on */
|
|
49
|
+
field: string;
|
|
50
|
+
/** Operator */
|
|
51
|
+
op: FilterOperator;
|
|
52
|
+
/** Value to compare */
|
|
53
|
+
value: string | number | string[] | number[] | boolean | null;
|
|
54
|
+
/** Negate the condition */
|
|
55
|
+
not?: boolean;
|
|
56
|
+
/** AI search options (when op = "ai_search") */
|
|
57
|
+
similarity?: number;
|
|
58
|
+
where?: string;
|
|
59
|
+
display?: string;
|
|
60
|
+
options?: {
|
|
61
|
+
display: string;
|
|
62
|
+
value: ValueForPropertyType<PropertyType>;
|
|
63
|
+
}[];
|
|
64
|
+
/** Filter configuration (UI metadata) */
|
|
65
|
+
info?: FilterConfig<any>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Filter group - combine multiple filters
|
|
69
|
+
*/
|
|
70
|
+
interface FilterGroup {
|
|
71
|
+
/** Unique identifier */
|
|
72
|
+
id: string;
|
|
73
|
+
/** How to combine filters */
|
|
74
|
+
op: "AND" | "OR";
|
|
75
|
+
/** Filters in this group */
|
|
76
|
+
filters: Array<Filter | FilterGroup>;
|
|
77
|
+
/** Negate the entire group (NOT (A AND B)) */
|
|
78
|
+
not?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input type for normalizeFilter - accepts both legacy and new filter formats.
|
|
82
|
+
* The normalizeFilter function handles legacy operators (like, regex, etc.) for data migration,
|
|
83
|
+
* but the type only exposes the supported FilterOperator values.
|
|
84
|
+
*/
|
|
85
|
+
type FilterInput = {
|
|
86
|
+
id?: string;
|
|
87
|
+
field?: string;
|
|
88
|
+
value?: string | number | string[] | number[] | boolean | null;
|
|
89
|
+
not?: boolean;
|
|
90
|
+
similarity?: number;
|
|
91
|
+
where?: string;
|
|
92
|
+
display?: string;
|
|
93
|
+
options?: {
|
|
94
|
+
display: string;
|
|
95
|
+
value: ValueForPropertyType<PropertyType>;
|
|
96
|
+
}[];
|
|
97
|
+
filters?: Array<Filter | FilterGroup | FilterInput>;
|
|
98
|
+
op?: FilterOperator | "AND" | "OR";
|
|
99
|
+
propertyName?: string;
|
|
100
|
+
condition?: string;
|
|
101
|
+
operator?: "AND" | "OR";
|
|
102
|
+
inverted?: boolean;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Pagination settings
|
|
106
|
+
*/
|
|
107
|
+
interface Pagination {
|
|
108
|
+
offset?: number;
|
|
109
|
+
limit?: number;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Configuration for computed/aggregated field sorting
|
|
113
|
+
*/
|
|
114
|
+
interface ComputedSortConfig {
|
|
115
|
+
/** Aggregation function to apply */
|
|
116
|
+
fn: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX";
|
|
117
|
+
/** Field to aggregate */
|
|
118
|
+
field: string;
|
|
119
|
+
/** Relationship path for related table aggregation (e.g., "OrderItem" or "Order.OrderItem") */
|
|
120
|
+
relationship?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Sort order
|
|
124
|
+
*/
|
|
125
|
+
interface Sort {
|
|
126
|
+
field: string;
|
|
127
|
+
direction: "asc" | "desc";
|
|
128
|
+
/** Optional computed/aggregated sort configuration for sorting by aggregate values */
|
|
129
|
+
computed?: ComputedSortConfig;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Query state that includes FilterGroup plus pagination, sort, and isReady
|
|
133
|
+
* Used by useDbAdvanceFilterQuery for managing filter state with query metadata
|
|
134
|
+
*/
|
|
135
|
+
interface QueryState extends FilterGroup {
|
|
136
|
+
/** Pagination settings */
|
|
137
|
+
pagination?: Pagination;
|
|
138
|
+
/** Sort order */
|
|
139
|
+
sort?: Sort[];
|
|
140
|
+
/** Distinct ON expressions - returns one record per unique combination */
|
|
141
|
+
distinctOn?: string[];
|
|
142
|
+
/** Natural language query - converts to filters automatically */
|
|
143
|
+
naturalLanguageQuery?: string;
|
|
144
|
+
/** Whether the query is ready to execute */
|
|
145
|
+
isReady: boolean;
|
|
146
|
+
}
|
|
147
|
+
interface ClarificationSuggestion {
|
|
148
|
+
interpretation: string;
|
|
149
|
+
field_path: string;
|
|
150
|
+
example: string;
|
|
151
|
+
confidence: number;
|
|
152
|
+
}
|
|
153
|
+
interface ClarificationQuestion {
|
|
154
|
+
question: string;
|
|
155
|
+
suggestions: ClarificationSuggestion[];
|
|
156
|
+
}
|
|
157
|
+
interface FilterContextType<T> {
|
|
158
|
+
filters: FilterGroup;
|
|
159
|
+
setFilters: Dispatch<SetStateAction<FilterGroup>>;
|
|
160
|
+
}
|
|
161
|
+
interface OrderColumn {
|
|
162
|
+
field: string;
|
|
163
|
+
direction: "asc" | "desc";
|
|
164
|
+
}
|
|
165
|
+
declare function useDbAdvanceFilterQuery<Result>(query: PromiseLike<PostgrestSingleResponse<Result>>, config?: Omit<UseQueryOptions<PostgrestSingleResponse<Result>>, "queryKey" | "queryFn"> & {
|
|
166
|
+
key?: string;
|
|
167
|
+
filterKey?: string;
|
|
168
|
+
searchByDefault?: boolean;
|
|
169
|
+
timeout?: number;
|
|
170
|
+
count?: "exact" | "estimated" | "";
|
|
171
|
+
}): [
|
|
172
|
+
DefinedUseQueryResult<Result, Error> & {
|
|
173
|
+
count: number;
|
|
174
|
+
clarification?: ClarificationQuestion;
|
|
175
|
+
},
|
|
176
|
+
QueryState,
|
|
177
|
+
Dispatch<SetStateAction<QueryState>>
|
|
178
|
+
];
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* PowerSync Integration Types for @pol-studios/db
|
|
182
|
+
*
|
|
183
|
+
* This module provides TypeScript types for integrating the @pol-studios/db
|
|
184
|
+
* package with @pol-studios/powersync. These types enable type-safe configuration
|
|
185
|
+
* and context access when using both packages together.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Extended DataLayerConfig with PowerSync-specific options.
|
|
190
|
+
*
|
|
191
|
+
* Use this type when you want to configure the data layer to work
|
|
192
|
+
* optimally with @pol-studios/powersync.
|
|
193
|
+
*
|
|
194
|
+
* @template DB - The database types (from generated types)
|
|
195
|
+
*/
|
|
196
|
+
interface PowerSyncEnabledConfig<DB = unknown> extends DataLayerConfig<DB> {
|
|
197
|
+
/**
|
|
198
|
+
* PowerSync-specific configuration options.
|
|
199
|
+
*/
|
|
200
|
+
powerSync?: {
|
|
201
|
+
/**
|
|
202
|
+
* Whether to prefer PowerSync when both backends are available.
|
|
203
|
+
* @default true
|
|
204
|
+
*/
|
|
205
|
+
preferPowerSync?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Whether to automatically reconnect on network changes.
|
|
208
|
+
* @default true
|
|
209
|
+
*/
|
|
210
|
+
autoReconnect?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Tables that should always use Supabase directly (bypass PowerSync).
|
|
213
|
+
* Useful for tables with real-time requirements or very large data.
|
|
214
|
+
*/
|
|
215
|
+
supabaseOnlyTables?: string[];
|
|
216
|
+
/**
|
|
217
|
+
* Tables that should prioritize local data freshness over sync.
|
|
218
|
+
* These tables will be queried from PowerSync first without waiting for sync.
|
|
219
|
+
*/
|
|
220
|
+
offlineFirstTables?: string[];
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Enhanced sync status that includes PowerSync-specific details.
|
|
225
|
+
*
|
|
226
|
+
* This type extends the base SyncStatus with additional information
|
|
227
|
+
* available when using @pol-studios/powersync.
|
|
228
|
+
*/
|
|
229
|
+
interface EnhancedSyncStatus extends SyncStatus {
|
|
230
|
+
/**
|
|
231
|
+
* Whether the initial sync has completed.
|
|
232
|
+
* Data may be stale until this is true.
|
|
233
|
+
*/
|
|
234
|
+
hasSynced?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Download progress during initial sync or re-sync.
|
|
237
|
+
*/
|
|
238
|
+
downloadProgress?: {
|
|
239
|
+
/** Number of operations downloaded so far */
|
|
240
|
+
current: number;
|
|
241
|
+
/** Total number of operations to download */
|
|
242
|
+
target: number;
|
|
243
|
+
/** Percentage complete (0-100) */
|
|
244
|
+
percentage: number;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Connection health status when available.
|
|
248
|
+
*/
|
|
249
|
+
connectionHealth?: {
|
|
250
|
+
/** Current connection status */
|
|
251
|
+
status: "healthy" | "degraded" | "disconnected";
|
|
252
|
+
/** Last measured query latency in milliseconds */
|
|
253
|
+
latency: number | null;
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Enhanced sync control with PowerSync-specific actions.
|
|
258
|
+
*/
|
|
259
|
+
interface EnhancedSyncControl extends SyncControl {
|
|
260
|
+
/**
|
|
261
|
+
* Pause sync operations.
|
|
262
|
+
* The database remains accessible but won't sync with the server.
|
|
263
|
+
*/
|
|
264
|
+
pause?: () => Promise<void>;
|
|
265
|
+
/**
|
|
266
|
+
* Resume sync operations after pausing.
|
|
267
|
+
*/
|
|
268
|
+
resume?: () => Promise<void>;
|
|
269
|
+
/**
|
|
270
|
+
* Disconnect from the PowerSync service entirely.
|
|
271
|
+
*/
|
|
272
|
+
disconnect?: () => Promise<void>;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Extended DataLayerContextValue with PowerSync integration.
|
|
276
|
+
*
|
|
277
|
+
* This type provides additional context values available when
|
|
278
|
+
* PowerSync is being used as the backend.
|
|
279
|
+
*/
|
|
280
|
+
interface PowerSyncEnabledContextValue extends DataLayerContextValue {
|
|
281
|
+
/**
|
|
282
|
+
* Enhanced sync status with PowerSync details.
|
|
283
|
+
*/
|
|
284
|
+
syncStatus: EnhancedSyncStatus;
|
|
285
|
+
/**
|
|
286
|
+
* Enhanced sync control with PowerSync actions.
|
|
287
|
+
*/
|
|
288
|
+
syncControl: EnhancedSyncControl;
|
|
289
|
+
/**
|
|
290
|
+
* Whether PowerSync is the active backend.
|
|
291
|
+
*/
|
|
292
|
+
isPowerSyncActive: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Connection health metrics (only available with PowerSync).
|
|
295
|
+
*/
|
|
296
|
+
connectionHealth?: {
|
|
297
|
+
status: "healthy" | "degraded" | "disconnected";
|
|
298
|
+
latency: number | null;
|
|
299
|
+
lastHealthCheck: Date | null;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Sync metrics (only available with PowerSync).
|
|
303
|
+
*/
|
|
304
|
+
syncMetrics?: {
|
|
305
|
+
totalSyncs: number;
|
|
306
|
+
successfulSyncs: number;
|
|
307
|
+
failedSyncs: number;
|
|
308
|
+
lastSyncDuration: number | null;
|
|
309
|
+
averageSyncDuration: number | null;
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Props for using DataLayerProvider with PowerSync.
|
|
314
|
+
*
|
|
315
|
+
* This type defines the shape of props when integrating DataLayerProvider
|
|
316
|
+
* with values from PowerSyncProvider.
|
|
317
|
+
*
|
|
318
|
+
* @template DB - The database types
|
|
319
|
+
*/
|
|
320
|
+
interface DataLayerWithPowerSyncProps<DB = unknown> {
|
|
321
|
+
/**
|
|
322
|
+
* Data layer configuration.
|
|
323
|
+
*/
|
|
324
|
+
config: PowerSyncEnabledConfig<DB>;
|
|
325
|
+
/**
|
|
326
|
+
* Children to render.
|
|
327
|
+
*/
|
|
328
|
+
children: React.ReactNode;
|
|
329
|
+
/**
|
|
330
|
+
* PowerSync database instance from PowerSyncProvider.
|
|
331
|
+
* Pass this from usePowerSync().db
|
|
332
|
+
*/
|
|
333
|
+
powerSyncInstance: unknown | null;
|
|
334
|
+
/**
|
|
335
|
+
* Supabase client (required).
|
|
336
|
+
*/
|
|
337
|
+
supabaseClient: SupabaseClient;
|
|
338
|
+
/**
|
|
339
|
+
* React Query client (required).
|
|
340
|
+
*/
|
|
341
|
+
queryClient: QueryClient;
|
|
342
|
+
/**
|
|
343
|
+
* Optional callback when initialization completes.
|
|
344
|
+
*/
|
|
345
|
+
onInitialized?: (context: DataLayerContextValue) => void;
|
|
346
|
+
/**
|
|
347
|
+
* Optional callback when error occurs.
|
|
348
|
+
*/
|
|
349
|
+
onError?: (error: Error) => void;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Return type for useDataLayer when PowerSync is available.
|
|
353
|
+
*/
|
|
354
|
+
type UseDataLayerWithPowerSync = PowerSyncEnabledContextValue;
|
|
355
|
+
/**
|
|
356
|
+
* Return type for useSyncStatus when PowerSync is available.
|
|
357
|
+
*/
|
|
358
|
+
type UseSyncStatusWithPowerSync = EnhancedSyncStatus;
|
|
359
|
+
/**
|
|
360
|
+
* Return type for useSyncControl when PowerSync is available.
|
|
361
|
+
*/
|
|
362
|
+
type UseSyncControlWithPowerSync = EnhancedSyncControl;
|
|
363
|
+
/**
|
|
364
|
+
* Type helper to check if PowerSync is configured in a config.
|
|
365
|
+
*/
|
|
366
|
+
type HasPowerSyncConfig<T> = T extends {
|
|
367
|
+
powerSync: object;
|
|
368
|
+
} ? true : false;
|
|
369
|
+
/**
|
|
370
|
+
* Type helper to extract PowerSync tables from config.
|
|
371
|
+
*/
|
|
372
|
+
type PowerSyncTables<Config> = Config extends PowerSyncEnabledConfig ? Exclude<keyof Config["tables"], Config["powerSync"] extends {
|
|
373
|
+
supabaseOnlyTables: infer T;
|
|
374
|
+
} ? T extends readonly string[] ? T[number] : never : never> : keyof Config extends {
|
|
375
|
+
tables: infer T;
|
|
376
|
+
} ? keyof T : never;
|
|
377
|
+
/**
|
|
378
|
+
* Backend selection result type.
|
|
379
|
+
*/
|
|
380
|
+
interface BackendSelectionResult {
|
|
381
|
+
/**
|
|
382
|
+
* The selected backend for the operation.
|
|
383
|
+
*/
|
|
384
|
+
backend: "powersync" | "supabase";
|
|
385
|
+
/**
|
|
386
|
+
* Reason for the selection.
|
|
387
|
+
*/
|
|
388
|
+
reason: "powersync_available" | "powersync_preferred" | "offline" | "supabase_only_table" | "powersync_not_ready" | "fallback";
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Combined status from both DataLayer and PowerSync providers.
|
|
392
|
+
*/
|
|
393
|
+
interface CombinedProviderStatus {
|
|
394
|
+
/**
|
|
395
|
+
* DataLayer initialization status.
|
|
396
|
+
*/
|
|
397
|
+
dataLayer: DataLayerStatus;
|
|
398
|
+
/**
|
|
399
|
+
* PowerSync readiness status.
|
|
400
|
+
*/
|
|
401
|
+
powerSync: {
|
|
402
|
+
isReady: boolean;
|
|
403
|
+
isInitializing: boolean;
|
|
404
|
+
error: Error | null;
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* Overall status.
|
|
408
|
+
*/
|
|
409
|
+
overall: {
|
|
410
|
+
/**
|
|
411
|
+
* True when both providers are ready.
|
|
412
|
+
*/
|
|
413
|
+
isReady: boolean;
|
|
414
|
+
/**
|
|
415
|
+
* True when either provider is initializing.
|
|
416
|
+
*/
|
|
417
|
+
isInitializing: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* First error from either provider.
|
|
420
|
+
*/
|
|
421
|
+
error: Error | null;
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Creates a combined status from DataLayer and PowerSync status.
|
|
426
|
+
*/
|
|
427
|
+
declare function createCombinedStatus(dataLayerStatus: DataLayerStatus, powerSyncStatus: {
|
|
428
|
+
isReady: boolean;
|
|
429
|
+
isInitializing: boolean;
|
|
430
|
+
error: Error | null;
|
|
431
|
+
}): CombinedProviderStatus;
|
|
432
|
+
|
|
433
|
+
export { type BooleanOperator as B, type CombinedProviderStatus as C, type DbChangeLog as D, type EnhancedSyncControl as E, type FilterOperator as F, type HasPowerSyncConfig as H, type OrderColumn as O, type PowerSyncEnabledConfig as P, type QueryState as Q, type Sort as S, type UseDataLayerWithPowerSync as U, type ValueOrArrayForPropertyType as V, type EnhancedSyncStatus as a, type PowerSyncEnabledContextValue as b, createCombinedStatus as c, type FilterConditionType as d, type Filter as e, type FilterGroup as f, type FilterInput as g, type FilterState as h, type Pagination as i, type ComputedSortConfig as j, type ClarificationSuggestion as k, type ClarificationQuestion as l, type FilterContextType as m, type DataLayerWithPowerSyncProps as n, type UseSyncStatusWithPowerSync as o, type UseSyncControlWithPowerSync as p, type PowerSyncTables as q, type BackendSelectionResult as r, normalizeFilter as s, useDbAdvanceFilterQuery as u };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { C as CompositeTypes, c as Constants, D as Database, E as Enums, J as Json, T as Tables, a as TablesInsert, b as TablesUpdate } from './database.types-ChFCG-4M.js';
|
|
2
|
+
export { a as FilterConfig, F as FilterConfigOption, G as Group, P as PropertyType, S as SortConfig, T as TableInfo, V as ValueForPropertyType, W as WhereFilter } from './FilterConfig-Bt2Ek74z.js';
|
|
3
|
+
export { r as BackendSelectionResult, B as BooleanOperator, l as ClarificationQuestion, k as ClarificationSuggestion, C as CombinedProviderStatus, j as ComputedSortConfig, n as DataLayerWithPowerSyncProps, D as DbChangeLog, E as EnhancedSyncControl, a as EnhancedSyncStatus, e as Filter, d as FilterConditionType, m as FilterContextType, f as FilterGroup, g as FilterInput, F as FilterOperator, h as FilterState, H as HasPowerSyncConfig, O as OrderColumn, i as Pagination, P as PowerSyncEnabledConfig, b as PowerSyncEnabledContextValue, q as PowerSyncTables, Q as QueryState, S as Sort, U as UseDataLayerWithPowerSync, p as UseSyncControlWithPowerSync, o as UseSyncStatusWithPowerSync, V as ValueOrArrayForPropertyType, c as createCombinedStatus } from './index-2YySlz7X.js';
|
|
4
|
+
export { A as AIOptions, k as AIResponse, y as AlertProps, B as BUCKETS, v as BucketName, C as CustomPageQueryResult, D as DEFAULT_QUERY_TIMEOUT, Y as FeedbackListItem, Z as FeedbackListParams, L as LiveChangeContext, z as LiveChangeContextProvider, m as ServerAvailabilityState, t as StorageObjectMetadata, $ as SubmitFeedbackParams, S as SupabaseAdapter, T as TIMEOUT_ERROR_MESSAGE, q as UpdateOptions, U as UseMutationSuccessOptions, w as createInCondition, i as createSupabaseAdapter, r as executeAdvanceQuery, j as getErrorBody, g as getSupabaseUrl, x as isTimeoutError, n as newTimeActivity, s as setSupabaseUrl, l as useAI, a0 as useApplyFeedback, b as useAutosaveState, Q as useChangelogById, R as useChangelogBySlug, V as useChangelogEntries, W as useChangelogMedia, O as useChangelogs, F as useDeleteChangelog, I as useDeleteChangelogEntry, M as useDeleteChangelogMedia, X as useFeedbackList, a as useLatestOperationLog, u as useLiveChangeTracking, J as useMultiDeleteChangelogEntries, H as useMultiUpsertChangelogEntries, f as useMutationSuccess, h as useMutationSuccessRN, P as usePublishedChangelogs, a1 as useResolveFeedback, p as useSearchQuery, o as useServerAvailability, e as useStoragePath, d as useStorageUrl, _ as useSubmitFeedback, c as useToastError, N as useUploadChangelogMedia, E as useUpsertChangelog, G as useUpsertChangelogEntry, K as useUpsertChangelogMedia } from './useResolveFeedback-DTGcHpCs.js';
|
|
5
|
+
export { u as useBatchDelete, a as useBatchUpsert } from './useBatchUpsert-9OYjibLh.js';
|
|
6
|
+
export { AdapterRegistry as AdapterRegistryInterface, AutoStrategy, BuiltQuery, CachedStrategy, ColumnInfo, ColumnType, ConnectionConfig, DataAdapter, DataLayerConfig, DataLayerHooks, DatabaseSchema, DeleteMutationResult, ExtractInsert, ExtractRow, ExtractUpdate, FailedUpload, HybridStrategy, MutationHookResult, MutationResult, OrderBy, ParsedSelect, PowerSyncStrategy, QueryOptions, QueryResult, QuerySingleResult, RelationshipInfo, RelationshipType, ResolvedRelationship, ScopeDefinition, SelectColumn, SelectRelation, SupabaseStrategy, SyncControl, SyncMode, SyncScope, SyncStatus, TableNames, TableSchema, TableStrategy, UseDbMutationHook, UseDbQueryByIdHook, UseDbQueryHook, WhereClause, WhereOperators } from './core/index.js';
|
|
7
|
+
export { f as ADAPTER_STRATEGIES, i as AdapterAutoDetector, c as AdapterCapabilities, a as AdapterConfig, d as AdapterDependencies, b as AdapterFactory, A as AdapterQueryResult, g as AdapterRegistry, e as AdapterStrategyType, k as AutoDetectionResult, l as AutoDetectorOptions, m as BackendChangeListener, B as BackendStatus, C as CapableDataAdapter, D as DataLayerContext, p as DataLayerContextValue, n as DataLayerCoreContext, q as DataLayerCoreContextValue, s as DataLayerStatus, o as DataLayerStatusContext, r as DataLayerStatusContextValue, S as SyncStatusInfo, T as TableDataAdapter, j as createAdapterAutoDetector, h as createAdapterRegistry } from './DataLayerContext-ZmLPYR_s.js';
|
|
8
|
+
export { ConflictCheckResult, ConflictContext, ConflictContextValue, ConflictProvider, ConflictProviderProps, ConflictResolution, DataLayerProvider, DataLayerProviderProps, FieldConflict, PowerSyncAdapter, UseConflictResolutionReturn, UseSupabaseUploadOptions, UseSupabaseUploadReturn, createPowerSyncAdapter, useBulkConflictResolution, useConflictCountByTable, useConflictForRecord, useConflictResolution, useConflictState, useConflictsForTable, useHasConflicts, usePendingConflicts, useSupabaseUpload } from './index.native.js';
|
|
9
|
+
export { D as DatabaseTypes, P as PublicTableNames, R as ResolveRowType, S as SchemaNames, l as SchemaTableNames, T as TableIdentifier, U as UseAdvanceQueryOptions, m as UseAdvanceQueryResult, n as UseDbCountOptions, o as UseDbCountResult, p as UseDbInfiniteQueryOptions, q as UseDbInfiniteQueryResult, r as UseDbQueryOptions, s as UseDbQueryResult, u as useAdvanceQuery, a as useDataLayer, b as useDataLayerCore, c as useDataLayerStatus, d as useDbCount, d as useDbCountV3, e as useDbDelete, f as useDbInfiniteQuery, f as useDbInfiniteQueryV3, g as useDbInsert, h as useDbQuery, i as useDbQueryById, j as useDbUpdate, k as useDbUpsert } from './useDbCount-s-aR9YeV.js';
|
|
10
|
+
export { useOnlineStatus, useSyncControl, useSyncStatus } from './hooks/index.js';
|
|
11
|
+
export { C as ClientInstanceId, S as SupabaseDatabaseTypes, a as SupabaseProvider, T as TypedSupabaseClient, U as UserSessionId, c as createNewSupabaseClient, u as default, o as onSupabaseInitialized, s as setDefaultOptions, t as typedSupabase, u as useSupabase } from './useSupabase-DvWVuHHE.js';
|
|
12
|
+
export { B as BatchAnalysisProgress, E as ExtractedReceipt, P as PendingExpense, a as useReceiptAI, u as useSupabaseFunction } from './useReceiptAI-6HkRpRml.js';
|
|
13
|
+
export { e as UserMetadataContextProvider, c as UserMetadataContextType, a as UserMetadataInsert, U as UserMetadataRow, b as UserMetadataUpdate, u as useLiveChangesIndicator, h as useSetUserMetadata, f as useUserMetadata, i as useUserMetadataState, g as useUserMetadataValue, d as userMetadataContext } from './UserMetadataContext-B8gVWGMl.js';
|
|
14
|
+
export { AnyPostgrestResponse, FilterDefinition, FilterDefinitions, FilterFn, NestedPath, OPERATOR_MAP, OperatorFn, OrderDefinition, Path, PostgrestFilter, PostgrestFilterOperator, PostgrestHasMorePaginationCacheData, PostgrestHasMorePaginationResponse, PostgrestPaginationCacheData, PostgrestPaginationResponse, PostgrestParser, PostgrestQueryParser, PostgrestQueryParserOptions, SUPPORTED_OPERATORS, ValueType, binarySearch, buildSortedComparator, denormalize, encodeObject, extractPathsFromFilters, filterFilterDefinitionsByPaths, findFilters, findIndexOrdered, findLastIndex, get, getTable, groupPathsRecursive, ifDateGetTime, isAndFilter, isAnyPostgrestResponse, isFilterDefinition, isISODateString, isNestedPath, isNotNull, isObject, isOrFilter, isPostgrestBuilder, isPostgrestHasMorePaginationCacheData, isPostgrestHasMorePaginationResponse, isPostgrestPaginationCacheData, isPostgrestPaginationResponse, parseOrderByKey, parseSelectParam, parseValue, removeAliasFromDeclaration, removeFirstPathElement, setFilterValue, sortSearchParams } from './parser/index.js';
|
|
15
|
+
export { G as GetResult, S as SelectQueryError } from './select-query-parser-BwyHum1L.js';
|
|
16
|
+
export { F as Fetch, i as GenericFunction, g as GenericNonUpdatableView, j as GenericSchema, G as GenericTable, f as GenericUpdatableView, h as GenericView, P as PostgrestError, d as PostgrestMaybeSingleResponse, e as PostgrestResponse, b as PostgrestResponseFailure, a as PostgrestResponseSuccess, c as PostgrestSingleResponse, k as Prettify } from './types-CYr9JiUE.js';
|
|
17
|
+
export { Accessory, Address, AdvanceQuery, AdvanceQueryNotificationSetting, AdvancedQueryView, BillableService, BillingDetails, CachedEmbedding, Changelog, ChangelogEntry, ChangelogMedia, ChargeTable, Circuit, Client, Comment, CommentReaction, CommentRead, CommentSection, CommentTag, CommonNote, CommonNoteCategory, CommonNoteSubCategory, ControlComponent, ControlComponentDatasheet, Controller, CoreSavedQuery, CoreSavedQueryAccess, Currency, CurrencyUsdConversion, DataExchangeImport, Datasheet, Dimension, DimmerModule, DimmerRack, Embedding, EquipmentConfigurationGroup, EquipmentFixture, EquipmentFixtureConfiguration, EquipmentFixtureConfigurationAccessoryEntry, EquipmentFixtureConfigurationControlComponentEntry, EquipmentFixtureCost, EquipmentFixtureDatasheet, EquipmentFixtureDimension, EquipmentFixtureDocument, EquipmentFixtureLampConfiguration, EquipmentFixtureListing, EquipmentFixtureMode, EquipmentFixtureModeChannel, EquipmentFixturePreset, EquipmentFixtureUnit, EquipmentFixtureUnitControl, EquipmentFixtureUnitLocation, EquipmentFixtureUnitLocationTag, EquipmentFixtureUnitLocationTagValue, EquipmentFixtureUnitPatternEntry, EquipmentFixtureWeight, EquipmentType, EquipmentUnitMediaContent, Expense, ExpenseLineItem, ExpenseReport, Fixture, FixtureCatalog, FixtureCatalogItem, FixtureCategory, FixtureTag, GlobalExpenseReport, HighlightServer, HighlightServerInstance, HighlightServerInstanceLog, HighlightServerInstanceOptions, HighlightServerInstanceStatus, HighlightServerRequest, Invoice, InvoiceSummaryTable, InvoiceTerm, InvoiceTermCondition, Lamp, LampCategory, LampCurrentListing, LampType, LicenseAssignment, Logo, Manufacturer, ManufacturerTag, ManufacturerToTag, OperationLog, OrderHinted, Organization, OrganizationUser, OrganizationUserAccess, ParameterMappingProfile, ParameterMappingProfileAssignment, Pattern, PaymentCustomer, PaymentInvoice, PaymentPaymentIntents, PaymentPlan, PaymentProduct, PaymentProductFeature, PaymentSubscription, PaymentSubscriptionPlan, PhaseActivityBucket, ProfileConfig as Profile, ProfileConfig, ProfileTimeBank, Project, ProjectDatabase, ProjectDatabaseEquipmentConfigurationGroup, ProjectDatabaseExcelParameterAssignment, ProjectDatabaseGroup, ProjectDatabaseParameterMappingProfile, ProjectDefaultRateByTitle, ProjectDocument, ProjectDocumentLineItem, PunchList, PunchListAccess, PunchListItem, PunchListItemAssignment, PunchListItemAttachedEntity, PunchListItemAttachment, PunchListItemCheckListItem, PunchListPage, PunchListPageAccess, PunchListUserOrderHint, QrCode, RetainageItem, RevitEquipmentUnitChange, RevitImport, RevitValueChangedEvent, Role, Service, ServiceCosts, ServiceStorageHourly, SmartCode, SmartCodeTag, Subtask, SystemBroadcastChannel, SystemBroadcastChannelThrottle, SystemConfiguration, SystemEmailNotification, SystemEvent, SystemEventListener, SystemEventWorker, SystemGlobalVariables, SystemHealthCheck, SystemInAppNotification, SystemLog, SystemMutedTopic, SystemNotification, SystemPushNotification, SystemSubscriber, SystemSupportAccess, SystemSupportTeam, SystemTask, SystemTaskAttempt, SystemTaskAttemptAccess, SystemTemp, SystemTicket, SystemTicketAttachment, SystemTicketComment, SystemTicketCommentAttachment, SystemUserPushTokens, Tag, Task, TaxCategory, Ticket, TicketAttachment, TicketComment, TicketCommentAttachment, TimeActivity, TimeBankTransaction, UserMetadata, UserTimesheet, WeeklyTimesheet, WorkEstimation, WorkEstimationLineItem, WorkingPhase, WorkingPhaseBillingItemDailySummary, WorkingPhaseBillingItemLatestSummary, WorkingPhaseCategory, WorkingPhaseDailySummary, WorkingPhaseRoleRate, WorkingPhaseSummary } from './gen/index.js';
|
|
18
|
+
export { AbstractPowerSyncDatabase, PowerSyncConnectionHealth, PowerSyncControlActions, PowerSyncIntegrationOptions, PowerSyncMetrics, PowerSyncSyncStatus, convertToDataLayerSyncControl, convertToDataLayerSyncStatus, getPowerSyncInstance, isAbstractPowerSyncDatabase, isPowerSyncAvailable } from './powersync-bridge/index.js';
|
|
19
|
+
import 'moment';
|
|
20
|
+
import '@supabase/supabase-js';
|
|
21
|
+
import 'react';
|
|
22
|
+
import '@tanstack/react-query';
|
|
23
|
+
import '@supabase/functions-js';
|
|
24
|
+
import '@supabase/postgrest-js';
|
|
25
|
+
import './useDbQuery-C-TL8jY1.js';
|
|
26
|
+
import '@pol-studios/utils';
|
|
27
|
+
import '@supabase-cache-helpers/postgrest-react-query';
|
|
28
|
+
import '@supabase/storage-js';
|
|
29
|
+
import 'react/jsx-runtime';
|
|
30
|
+
import './executor-CB4KHyYG.js';
|
|
31
|
+
import 'react-dropzone';
|
|
32
|
+
import '@supabase/supabase-js/dist/module/lib/types.js';
|