@pol-studios/db 1.0.21 → 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/auth/context.js +2 -2
- package/dist/auth/hooks.js +3 -3
- 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/core/index.d.ts +30 -1
- package/dist/hooks/index.d.ts +20 -1
- package/dist/hooks/index.js +1 -1
- package/dist/{index-BNKhgDdC.d.ts → index-2YySlz7X.d.ts} +3 -3
- package/dist/index.d.ts +11 -12
- package/dist/index.js +14 -95
- package/dist/index.native.d.ts +12 -30
- package/dist/index.native.js +17 -96
- package/dist/index.web.d.ts +132 -15
- package/dist/index.web.js +585 -46
- package/dist/index.web.js.map +1 -1
- package/dist/powersync-bridge/index.d.ts +1 -1
- package/dist/powersync-bridge/index.js +1 -1
- package/dist/query/index.js +10 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/{useDbCount-Id14x_1P.d.ts → useDbCount-s-aR9YeV.d.ts} +1 -1
- package/dist/{useResolveFeedback-Ca2rh_Bs.d.ts → useResolveFeedback-DTGcHpCs.d.ts} +275 -390
- package/dist/with-auth/index.js +4 -4
- package/package.json +13 -12
- 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
|
@@ -1,389 +1,25 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { G as GetResult } from './select-query-parser-BwyHum1L.js';
|
|
5
|
-
import { j as GenericSchema, G as GenericTable } from './types-CYr9JiUE.js';
|
|
6
|
-
import { useInsertMutation, useUpdateMutation } from '@supabase-cache-helpers/postgrest-react-query';
|
|
7
|
-
import { PostgrestSingleResponse, PostgrestError, RealtimePostgresChangesPayload, SupabaseClient } from '@supabase/supabase-js';
|
|
8
|
-
import { u as useDbAdvanceFilterQuery, Q as QueryState, D as DbChangeLog } from './index-BNKhgDdC.js';
|
|
9
|
-
import { ItemType as ItemType$5 } from '@pol-studios/utils';
|
|
10
|
-
import { U as UseDbQuerySingleReturn } from './useDbQuery-C-TL8jY1.js';
|
|
2
|
+
import { UseMutationResult, UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
import { SupabaseClient, PostgrestSingleResponse as PostgrestSingleResponse$1, PostgrestError } from '@supabase/supabase-js';
|
|
11
4
|
import { T as TableDataAdapter, C as CapableDataAdapter, c as AdapterCapabilities, A as AdapterQueryResult } from './DataLayerContext-ZmLPYR_s.js';
|
|
12
5
|
import { DatabaseSchema, QueryOptions } from './core/index.js';
|
|
13
6
|
import { FunctionsResponse } from '@supabase/functions-js';
|
|
14
7
|
import * as _supabase_postgrest_js from '@supabase/postgrest-js';
|
|
15
|
-
import { PostgrestSingleResponse
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
declare function useDbDelete<TableName extends string & keyof PublicSchema["Tables"], Table extends PublicSchema["Tables"][TableName], Schema extends keyof Database = "public", PublicSchema extends GenericSchema = Database[Extract<keyof Database, Schema>], Query extends string = "*", RelationName = unknown, Relationships = Table extends {
|
|
28
|
-
Relationships: infer R;
|
|
29
|
-
} ? R : unknown, RowResult extends object = GetResult<PublicSchema, Table["Row"], RelationName, Relationships, Query>>(relation: TableName | {
|
|
30
|
-
table: TableName;
|
|
31
|
-
schema: Schema;
|
|
32
|
-
}, primaryKeys?: (keyof ItemType$4<RowResult> & string)[]): _tanstack_react_query.UseMutationResult<RowResult, Error, Partial<RowResult>, unknown>;
|
|
33
|
-
|
|
34
|
-
type ItemType$3<T> = T extends Array<infer U> ? U : T;
|
|
35
|
-
type MutationOption$1 = Parameters<typeof useInsertMutation>[3];
|
|
36
|
-
declare function useDbInsert<TableName extends string & keyof PublicSchema["Tables"], Table extends PublicSchema["Tables"][TableName], Schema extends keyof Database = "public", ReturnQuery extends string | undefined = undefined, PublicSchema extends GenericSchema = Database[Extract<keyof Database, Schema>], RelationName = unknown, Relationships = Table extends {
|
|
37
|
-
Relationships: infer R;
|
|
38
|
-
} ? R : unknown, RowResult = ReturnQuery extends undefined ? null : GetResult<PublicSchema, Table["Row"], RelationName, Relationships, Extract<ReturnQuery, string>>, ResultInsert extends object = GetResult<PublicSchema, Table["Insert"], RelationName, Relationships, "*">>(relation: TableName | {
|
|
39
|
-
table: TableName;
|
|
40
|
-
schema: Schema;
|
|
41
|
-
}, primaryKeys?: (keyof (ItemType$3<RowResult> | any) & string)[], query?: ReturnQuery, mutationOption?: MutationOption$1 & {
|
|
42
|
-
crossOrganization?: boolean;
|
|
43
|
-
}): _tanstack_react_query.UseMutationResult<RowResult, Error, ResultInsert, unknown>;
|
|
44
|
-
|
|
45
|
-
type ItemType$2<T> = T extends Array<infer U> ? U : T;
|
|
46
|
-
declare function useDbMultiDelete<TableName extends string & keyof PublicSchema["Tables"], Table extends PublicSchema["Tables"][TableName], Schema extends keyof Database = "public", PublicSchema extends GenericSchema = Database[Extract<keyof Database, Schema>], Query extends string = "*", RelationName = unknown, Relationships = Table extends {
|
|
47
|
-
Relationships: infer R;
|
|
48
|
-
} ? R : unknown, RowResult extends object = Omit<GetResult<PublicSchema, Table["Update"], RelationName, Relationships, Query>, "id">>(relation: TableName | {
|
|
49
|
-
table: TableName;
|
|
50
|
-
schema: Schema;
|
|
51
|
-
}, primaryKeys?: (keyof ItemType$2<RowResult> & string)[]): _tanstack_react_query.UseMutationResult<RowResult, Error, RowResult | RowResult[], unknown>;
|
|
52
|
-
|
|
53
|
-
type ItemType$1<T> = T extends Array<infer U> ? U : T;
|
|
54
|
-
declare function useDbMultiUpsert<TableName extends string & keyof PublicSchema["Tables"], Table extends PublicSchema["Tables"][TableName], Schema extends keyof Database = "public", PublicSchema extends GenericSchema = Database[Extract<keyof Database, Schema>], Query extends string = "*", RelationName = unknown, Relationships = Table extends {
|
|
55
|
-
Relationships: infer R;
|
|
56
|
-
} ? R : unknown, RowResult extends object = GetResult<PublicSchema, Table["Row"], RelationName, Relationships, Query>, ResultInsert extends object = GetResult<PublicSchema, Table["Insert"], RelationName, Relationships, Query>, ResultUpdate extends object = Omit<GetResult<PublicSchema, Table["Update"], RelationName, Relationships, Query>, "id"> & {
|
|
57
|
-
id: any;
|
|
58
|
-
}>(relation: TableName | {
|
|
59
|
-
table: TableName;
|
|
60
|
-
schema: Schema;
|
|
61
|
-
}, primaryKeys?: (keyof (ItemType$1<RowResult> | any) & string)[], query?: string): _tanstack_react_query.UseMutationResult<RowResult[], Error, (ResultInsert | ResultUpdate)[], unknown>;
|
|
62
|
-
|
|
63
|
-
type UseDbPartialAdvanceQueryResult<T extends Record<string, any>> = ReturnType<typeof useDbPartialAdvanceQuery<T[]>>;
|
|
64
|
-
declare function useDbPartialAdvanceQuery<Result extends Record<string, any>[]>(query: PromiseLike<PostgrestSingleResponse<Result>>, itemCountPerPage: number, config?: Omit<UseQueryOptions<PostgrestSingleResponse<Result>>, "queryKey" | "queryFn"> & {
|
|
65
|
-
filterKey?: string;
|
|
66
|
-
timeout?: number;
|
|
67
|
-
}): [
|
|
68
|
-
ReturnType<typeof useDbAdvanceFilterQuery<Result>>[0] & {
|
|
69
|
-
currentPage: number;
|
|
70
|
-
setCurrentPage: (value: React.SetStateAction<number>) => void;
|
|
71
|
-
fetchNextPage: () => any;
|
|
72
|
-
fetchPreviousPage: () => any;
|
|
73
|
-
data: {
|
|
74
|
-
Items: Result;
|
|
75
|
-
CurrentPage: number;
|
|
76
|
-
ItemCount: number;
|
|
77
|
-
MaxCountPerPage: number;
|
|
78
|
-
PageCount: number;
|
|
79
|
-
};
|
|
80
|
-
pageCount: number;
|
|
81
|
-
hasNextPage: boolean;
|
|
82
|
-
hasPreviousPage: boolean;
|
|
83
|
-
count: number;
|
|
84
|
-
},
|
|
85
|
-
QueryState,
|
|
86
|
-
React.Dispatch<React.SetStateAction<QueryState>>
|
|
87
|
-
];
|
|
88
|
-
|
|
89
|
-
type UseDbPartialQueryResult<T extends Record<string, any>> = ReturnType<typeof useDbPartialQuery<T[]>>;
|
|
90
|
-
declare function useDbPartialQuery<Result extends Record<string, any>[]>(query: PromiseLike<PostgrestSingleResponse<Result>>, itemCountPerPage: number, config?: Omit<UseQueryOptions<Result, PostgrestError>, "queryKey" | "queryFn">): {
|
|
91
|
-
fetchPreviousPage: () => void;
|
|
92
|
-
fetchNextPage: () => void;
|
|
93
|
-
currentPage: number;
|
|
94
|
-
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
95
|
-
data: {
|
|
96
|
-
Items: Result;
|
|
97
|
-
CurrentPage: number;
|
|
98
|
-
ItemCount: number;
|
|
99
|
-
MaxCountPerPage: number;
|
|
100
|
-
PageCount: number;
|
|
101
|
-
};
|
|
102
|
-
pageCount: number;
|
|
103
|
-
hasNextPage: boolean;
|
|
104
|
-
hasPreviousPage: boolean;
|
|
105
|
-
error: PostgrestError;
|
|
106
|
-
status: "error";
|
|
107
|
-
isError: true;
|
|
108
|
-
isPending: false;
|
|
109
|
-
isSuccess: false;
|
|
110
|
-
failureCount: number;
|
|
111
|
-
failureReason: PostgrestError;
|
|
112
|
-
isPaused: boolean;
|
|
113
|
-
isLoading: false;
|
|
114
|
-
isLoadingError: false;
|
|
115
|
-
isRefetchError: true;
|
|
116
|
-
isPlaceholderData: false;
|
|
117
|
-
dataUpdatedAt: number;
|
|
118
|
-
errorUpdatedAt: number;
|
|
119
|
-
errorUpdateCount: number;
|
|
120
|
-
isFetched: boolean;
|
|
121
|
-
isFetchedAfterMount: boolean;
|
|
122
|
-
isFetching: boolean;
|
|
123
|
-
isInitialLoading: boolean;
|
|
124
|
-
isRefetching: boolean;
|
|
125
|
-
isStale: boolean;
|
|
126
|
-
isEnabled: boolean;
|
|
127
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
128
|
-
promise: Promise<Result>;
|
|
129
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse<Result>, PostgrestError>>;
|
|
130
|
-
count: number | null;
|
|
131
|
-
} | {
|
|
132
|
-
fetchPreviousPage: () => void;
|
|
133
|
-
fetchNextPage: () => void;
|
|
134
|
-
currentPage: number;
|
|
135
|
-
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
136
|
-
data: {
|
|
137
|
-
Items: Result;
|
|
138
|
-
CurrentPage: number;
|
|
139
|
-
ItemCount: number;
|
|
140
|
-
MaxCountPerPage: number;
|
|
141
|
-
PageCount: number;
|
|
142
|
-
};
|
|
143
|
-
pageCount: number;
|
|
144
|
-
hasNextPage: boolean;
|
|
145
|
-
hasPreviousPage: boolean;
|
|
146
|
-
error: null;
|
|
147
|
-
status: "success";
|
|
148
|
-
isError: false;
|
|
149
|
-
isPending: false;
|
|
150
|
-
isSuccess: true;
|
|
151
|
-
failureCount: number;
|
|
152
|
-
failureReason: PostgrestError;
|
|
153
|
-
isPaused: boolean;
|
|
154
|
-
isLoading: false;
|
|
155
|
-
isLoadingError: false;
|
|
156
|
-
isRefetchError: false;
|
|
157
|
-
isPlaceholderData: false;
|
|
158
|
-
dataUpdatedAt: number;
|
|
159
|
-
errorUpdatedAt: number;
|
|
160
|
-
errorUpdateCount: number;
|
|
161
|
-
isFetched: boolean;
|
|
162
|
-
isFetchedAfterMount: boolean;
|
|
163
|
-
isFetching: boolean;
|
|
164
|
-
isInitialLoading: boolean;
|
|
165
|
-
isRefetching: boolean;
|
|
166
|
-
isStale: boolean;
|
|
167
|
-
isEnabled: boolean;
|
|
168
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
169
|
-
promise: Promise<Result>;
|
|
170
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse<Result>, PostgrestError>>;
|
|
171
|
-
count: number | null;
|
|
172
|
-
} | {
|
|
173
|
-
fetchPreviousPage: () => void;
|
|
174
|
-
fetchNextPage: () => void;
|
|
175
|
-
currentPage: number;
|
|
176
|
-
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
177
|
-
data: {
|
|
178
|
-
Items: Result;
|
|
179
|
-
CurrentPage: number;
|
|
180
|
-
ItemCount: number;
|
|
181
|
-
MaxCountPerPage: number;
|
|
182
|
-
PageCount: number;
|
|
183
|
-
};
|
|
184
|
-
pageCount: number;
|
|
185
|
-
hasNextPage: boolean;
|
|
186
|
-
hasPreviousPage: boolean;
|
|
187
|
-
error: PostgrestError;
|
|
188
|
-
status: "error";
|
|
189
|
-
isError: true;
|
|
190
|
-
isPending: false;
|
|
191
|
-
isSuccess: false;
|
|
192
|
-
failureCount: number;
|
|
193
|
-
failureReason: PostgrestError;
|
|
194
|
-
isPaused: boolean;
|
|
195
|
-
isLoading: false;
|
|
196
|
-
isLoadingError: true;
|
|
197
|
-
isRefetchError: false;
|
|
198
|
-
isPlaceholderData: false;
|
|
199
|
-
dataUpdatedAt: number;
|
|
200
|
-
errorUpdatedAt: number;
|
|
201
|
-
errorUpdateCount: number;
|
|
202
|
-
isFetched: boolean;
|
|
203
|
-
isFetchedAfterMount: boolean;
|
|
204
|
-
isFetching: boolean;
|
|
205
|
-
isInitialLoading: boolean;
|
|
206
|
-
isRefetching: boolean;
|
|
207
|
-
isStale: boolean;
|
|
208
|
-
isEnabled: boolean;
|
|
209
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
210
|
-
promise: Promise<Result>;
|
|
211
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse<Result>, PostgrestError>>;
|
|
212
|
-
count: number | null;
|
|
213
|
-
} | {
|
|
214
|
-
fetchPreviousPage: () => void;
|
|
215
|
-
fetchNextPage: () => void;
|
|
216
|
-
currentPage: number;
|
|
217
|
-
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
218
|
-
data: {
|
|
219
|
-
Items: Result;
|
|
220
|
-
CurrentPage: number;
|
|
221
|
-
ItemCount: number;
|
|
222
|
-
MaxCountPerPage: number;
|
|
223
|
-
PageCount: number;
|
|
224
|
-
};
|
|
225
|
-
pageCount: number;
|
|
226
|
-
hasNextPage: boolean;
|
|
227
|
-
hasPreviousPage: boolean;
|
|
228
|
-
error: null;
|
|
229
|
-
status: "pending";
|
|
230
|
-
isError: false;
|
|
231
|
-
isPending: true;
|
|
232
|
-
isSuccess: false;
|
|
233
|
-
failureCount: number;
|
|
234
|
-
failureReason: PostgrestError;
|
|
235
|
-
isPaused: boolean;
|
|
236
|
-
isLoading: true;
|
|
237
|
-
isLoadingError: false;
|
|
238
|
-
isRefetchError: false;
|
|
239
|
-
isPlaceholderData: false;
|
|
240
|
-
dataUpdatedAt: number;
|
|
241
|
-
errorUpdatedAt: number;
|
|
242
|
-
errorUpdateCount: number;
|
|
243
|
-
isFetched: boolean;
|
|
244
|
-
isFetchedAfterMount: boolean;
|
|
245
|
-
isFetching: boolean;
|
|
246
|
-
isInitialLoading: boolean;
|
|
247
|
-
isRefetching: boolean;
|
|
248
|
-
isStale: boolean;
|
|
249
|
-
isEnabled: boolean;
|
|
250
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
251
|
-
promise: Promise<Result>;
|
|
252
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse<Result>, PostgrestError>>;
|
|
253
|
-
count: number | null;
|
|
254
|
-
} | {
|
|
255
|
-
fetchPreviousPage: () => void;
|
|
256
|
-
fetchNextPage: () => void;
|
|
257
|
-
currentPage: number;
|
|
258
|
-
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
259
|
-
data: {
|
|
260
|
-
Items: Result;
|
|
261
|
-
CurrentPage: number;
|
|
262
|
-
ItemCount: number;
|
|
263
|
-
MaxCountPerPage: number;
|
|
264
|
-
PageCount: number;
|
|
265
|
-
};
|
|
266
|
-
pageCount: number;
|
|
267
|
-
hasNextPage: boolean;
|
|
268
|
-
hasPreviousPage: boolean;
|
|
269
|
-
error: null;
|
|
270
|
-
status: "pending";
|
|
271
|
-
isError: false;
|
|
272
|
-
isPending: true;
|
|
273
|
-
isSuccess: false;
|
|
274
|
-
failureCount: number;
|
|
275
|
-
failureReason: PostgrestError;
|
|
276
|
-
isPaused: boolean;
|
|
277
|
-
isLoading: boolean;
|
|
278
|
-
isLoadingError: false;
|
|
279
|
-
isRefetchError: false;
|
|
280
|
-
isPlaceholderData: false;
|
|
281
|
-
dataUpdatedAt: number;
|
|
282
|
-
errorUpdatedAt: number;
|
|
283
|
-
errorUpdateCount: number;
|
|
284
|
-
isFetched: boolean;
|
|
285
|
-
isFetchedAfterMount: boolean;
|
|
286
|
-
isFetching: boolean;
|
|
287
|
-
isInitialLoading: boolean;
|
|
288
|
-
isRefetching: boolean;
|
|
289
|
-
isStale: boolean;
|
|
290
|
-
isEnabled: boolean;
|
|
291
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
292
|
-
promise: Promise<Result>;
|
|
293
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse<Result>, PostgrestError>>;
|
|
294
|
-
count: number | null;
|
|
295
|
-
} | {
|
|
296
|
-
fetchPreviousPage: () => void;
|
|
297
|
-
fetchNextPage: () => void;
|
|
298
|
-
currentPage: number;
|
|
299
|
-
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
300
|
-
data: {
|
|
301
|
-
Items: Result;
|
|
302
|
-
CurrentPage: number;
|
|
303
|
-
ItemCount: number;
|
|
304
|
-
MaxCountPerPage: number;
|
|
305
|
-
PageCount: number;
|
|
306
|
-
};
|
|
307
|
-
pageCount: number;
|
|
308
|
-
hasNextPage: boolean;
|
|
309
|
-
hasPreviousPage: boolean;
|
|
310
|
-
error: null;
|
|
311
|
-
status: "success";
|
|
312
|
-
isError: false;
|
|
313
|
-
isPending: false;
|
|
314
|
-
isSuccess: true;
|
|
315
|
-
failureCount: number;
|
|
316
|
-
failureReason: PostgrestError;
|
|
317
|
-
isPaused: boolean;
|
|
318
|
-
isLoading: false;
|
|
319
|
-
isLoadingError: false;
|
|
320
|
-
isRefetchError: false;
|
|
321
|
-
isPlaceholderData: true;
|
|
322
|
-
dataUpdatedAt: number;
|
|
323
|
-
errorUpdatedAt: number;
|
|
324
|
-
errorUpdateCount: number;
|
|
325
|
-
isFetched: boolean;
|
|
326
|
-
isFetchedAfterMount: boolean;
|
|
327
|
-
isFetching: boolean;
|
|
328
|
-
isInitialLoading: boolean;
|
|
329
|
-
isRefetching: boolean;
|
|
330
|
-
isStale: boolean;
|
|
331
|
-
isEnabled: boolean;
|
|
332
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
333
|
-
promise: Promise<Result>;
|
|
334
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse<Result>, PostgrestError>>;
|
|
335
|
-
count: number | null;
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
declare function useDbRealtime(key: string, query: string, table: string | {
|
|
339
|
-
table: string;
|
|
340
|
-
schema: string;
|
|
341
|
-
}, primaryKeys: string[], options?: {
|
|
342
|
-
filter?: string;
|
|
343
|
-
enabled?: boolean;
|
|
344
|
-
onChange?: (payload: RealtimePostgresChangesPayload<{
|
|
345
|
-
[key: string]: any;
|
|
346
|
-
}>) => any;
|
|
347
|
-
}): "SUBSCRIBED" | "TIMED_OUT" | "CLOSED" | "CHANNEL_ERROR";
|
|
348
|
-
|
|
349
|
-
type ConfigurationOptions<T> = {
|
|
350
|
-
crossOrganization?: boolean;
|
|
351
|
-
};
|
|
352
|
-
type FilterOperator = "or" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "ilike" | "is" | "in" | "cs" | "cd" | "fts" | "plfts";
|
|
353
|
-
type ValueType = number | string | boolean | null | Date | object;
|
|
354
|
-
type FilterDefinition = {
|
|
355
|
-
path: string;
|
|
356
|
-
alias?: string;
|
|
357
|
-
operator: FilterOperator;
|
|
358
|
-
negate: boolean;
|
|
359
|
-
value: ValueType;
|
|
360
|
-
};
|
|
361
|
-
type FilterDefinitions = (FilterComposite | FilterDefinition)[];
|
|
362
|
-
type FilterComposite = {
|
|
363
|
-
or?: FilterDefinitions;
|
|
364
|
-
and?: FilterDefinitions;
|
|
365
|
-
};
|
|
366
|
-
type UseDbRealtimeQueryResult<T> = UseDbQuerySingleReturn<T> & {
|
|
367
|
-
realtimeStatus: "SUBSCRIBED" | "TIMED_OUT" | "CLOSED" | "CHANNEL_ERROR" | "Loading...";
|
|
368
|
-
isRealtimeConnected: boolean;
|
|
369
|
-
isRealtimeLoading: boolean;
|
|
370
|
-
};
|
|
371
|
-
type DataType = Record<string, any>;
|
|
372
|
-
declare function convertFilterToRealtimeQuery(filters: FilterDefinitions): string;
|
|
373
|
-
declare function useDbRealtimeQuery<Result extends DataType>(query: PromiseLike<PostgrestSingleResponse<Result>>, config?: Omit<UseQueryOptions<PostgrestSingleResponse<Result>>, "queryKey" | "queryFn"> & ConfigurationOptions<Result>, primaryKeys?: (keyof ItemType$5<Result> & string)[]): UseDbRealtimeQueryResult<Result>;
|
|
8
|
+
import { PostgrestSingleResponse } from '@supabase/postgrest-js';
|
|
9
|
+
import { G as GetResult } from './select-query-parser-BwyHum1L.js';
|
|
10
|
+
import { G as GenericTable } from './types-CYr9JiUE.js';
|
|
11
|
+
import { D as Database } from './useSupabase-DvWVuHHE.js';
|
|
12
|
+
import { D as DbChangeLog, Q as QueryState } from './index-2YySlz7X.js';
|
|
13
|
+
import { U as UseDbQuerySingleReturn } from './useDbQuery-C-TL8jY1.js';
|
|
14
|
+
import { J as UseDbUpsertResult } from './useDbCount-s-aR9YeV.js';
|
|
15
|
+
import { Moment } from 'moment';
|
|
16
|
+
import * as react from 'react';
|
|
17
|
+
import { ReactNode } from 'react';
|
|
18
|
+
import { TransformOptions } from '@supabase/storage-js';
|
|
19
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
374
20
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
declare function useDbUpdate<TableName extends string & keyof PublicSchema["Tables"], Table extends PublicSchema["Tables"][TableName], Schema extends keyof Database = "public", ReturnQuery extends string | undefined = undefined, PublicSchema extends GenericSchema = Database[Extract<keyof Database, Schema>], RelationName = unknown, Relationships = Table extends {
|
|
378
|
-
Relationships: infer R;
|
|
379
|
-
} ? R : unknown, RowResult = ReturnQuery extends undefined ? null : GetResult<PublicSchema, Table["Row"], RelationName, Relationships, Extract<ReturnQuery, string>>, ResultUpdate extends object = (Omit<GetResult<PublicSchema, Table["Update"], RelationName, Relationships, "*">, "id"> & {
|
|
380
|
-
id: number;
|
|
381
|
-
}) | Omit<GetResult<PublicSchema, Table["Update"], RelationName, Relationships, "*">, "id">>(relation: TableName | {
|
|
382
|
-
table: TableName;
|
|
383
|
-
schema: Schema;
|
|
384
|
-
}, primaryKeys?: (keyof (ItemType<RowResult> | any) & string)[], query?: ReturnQuery, mutationOption?: MutationOption & {
|
|
385
|
-
crossOrganization?: boolean;
|
|
386
|
-
}): _tanstack_react_query.UseMutationResult<RowResult, Error, ResultUpdate, unknown>;
|
|
21
|
+
declare function setSupabaseUrl(url: string): void;
|
|
22
|
+
declare function getSupabaseUrl(): string;
|
|
387
23
|
|
|
388
24
|
interface UseMutationSuccessOptions {
|
|
389
25
|
successMessage?: string;
|
|
@@ -578,22 +214,22 @@ declare function useServerAvailability(options?: {
|
|
|
578
214
|
checkAvailability: () => Promise<void>;
|
|
579
215
|
};
|
|
580
216
|
|
|
581
|
-
declare function useSearchQuery<Result>(baseQuery: PromiseLike<PostgrestSingleResponse
|
|
217
|
+
declare function useSearchQuery<Result>(baseQuery: PromiseLike<PostgrestSingleResponse<Result>>, searchText: string, columns: ((string & keyof Result) | string)[], options?: {
|
|
582
218
|
isOptional: boolean;
|
|
583
219
|
additionCondition: (string | undefined)[];
|
|
584
|
-
}): PromiseLike<PostgrestSingleResponse
|
|
220
|
+
}): PromiseLike<PostgrestSingleResponse<Result>>;
|
|
585
221
|
|
|
586
|
-
type PublicSchema$
|
|
222
|
+
type PublicSchema$1 = Database[Extract<keyof Database, "public">];
|
|
587
223
|
type TableRow<T> = T extends {
|
|
588
224
|
Row: infer R extends Record<string, unknown>;
|
|
589
225
|
} ? R : Record<string, unknown>;
|
|
590
|
-
declare function useLiveChangeTracking<Relation extends GenericTable, TableName extends string & keyof PublicSchema$
|
|
226
|
+
declare function useLiveChangeTracking<Relation extends GenericTable, TableName extends string & keyof PublicSchema$1["Tables"], Table extends PublicSchema$1["Tables"][TableName] = PublicSchema$1["Tables"][TableName], Query extends string = "*", RelationName = unknown, Relationships = Table extends {
|
|
591
227
|
Relationships: infer R;
|
|
592
|
-
} ? R : unknown, TItem = GetResult<PublicSchema$
|
|
228
|
+
} ? R : unknown, TItem = GetResult<PublicSchema$1, TableRow<Table>, RelationName, Relationships, Query>>(tableName: TableName, item: TItem, action?: (updates: Partial<TItem>, changeLog: DbChangeLog) => any): DbChangeLog;
|
|
593
229
|
|
|
594
230
|
declare function useLatestOperationLog(tableName: string, recordId: number): UseDbQuerySingleReturn<unknown>;
|
|
595
231
|
|
|
596
|
-
type PublicSchema
|
|
232
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
597
233
|
type TimeActivity = any;
|
|
598
234
|
declare function newTimeActivity(date: Moment): TimeActivity;
|
|
599
235
|
type AutosaveOptions<T> = UpdateOptions<T> & {
|
|
@@ -632,9 +268,9 @@ type UpdateOptions<T> = Partial<UseMutationOptions<T, Error, T, unknown>> & {
|
|
|
632
268
|
*/
|
|
633
269
|
declare function useAutosaveState<T extends TItem & {
|
|
634
270
|
id: string;
|
|
635
|
-
}, TableName extends string & keyof PublicSchema
|
|
271
|
+
}, TableName extends string & keyof PublicSchema["Tables"] = any, Table extends PublicSchema["Tables"][TableName] = any, Query extends string = "*", RelationName = unknown, Relationships = Table extends {
|
|
636
272
|
Relationships: infer R;
|
|
637
|
-
} ? R : unknown, TItem = Omit<GetResult<PublicSchema
|
|
273
|
+
} ? R : unknown, TItem = Omit<GetResult<PublicSchema, Table extends {
|
|
638
274
|
Row: infer R;
|
|
639
275
|
} ? R extends Record<string, unknown> ? R : any : any, RelationName, Relationships, Query>, "id"> & {
|
|
640
276
|
id: string;
|
|
@@ -649,12 +285,261 @@ declare function useAutosaveState<T extends TItem & {
|
|
|
649
285
|
|
|
650
286
|
declare function useToastError<T>(mutation: UseDbUpsertResult<T>): UseDbUpsertResult<T>;
|
|
651
287
|
|
|
652
|
-
declare function executeAdvanceQuery<Result>(supabase: any, query: PromiseLike<PostgrestSingleResponse<Result>>, filterLayer: QueryState): Promise<{
|
|
288
|
+
declare function executeAdvanceQuery<Result>(supabase: any, query: PromiseLike<PostgrestSingleResponse$1<Result>>, filterLayer: QueryState): Promise<{
|
|
653
289
|
data: any;
|
|
654
290
|
count: number | null;
|
|
655
291
|
error: any;
|
|
656
292
|
}>;
|
|
657
293
|
|
|
294
|
+
type UseDbPartialQueryResult<T extends Record<string, any>> = ReturnType<typeof useDbPartialQuery<T[]>>;
|
|
295
|
+
declare function useDbPartialQuery<Result extends Record<string, any>[]>(query: PromiseLike<PostgrestSingleResponse$1<Result>>, itemCountPerPage: number, config?: Omit<UseQueryOptions<Result, PostgrestError>, "queryKey" | "queryFn">): {
|
|
296
|
+
fetchPreviousPage: () => void;
|
|
297
|
+
fetchNextPage: () => void;
|
|
298
|
+
currentPage: number;
|
|
299
|
+
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
300
|
+
data: {
|
|
301
|
+
Items: Result;
|
|
302
|
+
CurrentPage: number;
|
|
303
|
+
ItemCount: number;
|
|
304
|
+
MaxCountPerPage: number;
|
|
305
|
+
PageCount: number;
|
|
306
|
+
};
|
|
307
|
+
pageCount: number;
|
|
308
|
+
hasNextPage: boolean;
|
|
309
|
+
hasPreviousPage: boolean;
|
|
310
|
+
error: PostgrestError;
|
|
311
|
+
status: "error";
|
|
312
|
+
isError: true;
|
|
313
|
+
isPending: false;
|
|
314
|
+
isSuccess: false;
|
|
315
|
+
failureCount: number;
|
|
316
|
+
failureReason: PostgrestError;
|
|
317
|
+
isPaused: boolean;
|
|
318
|
+
isLoading: false;
|
|
319
|
+
isLoadingError: false;
|
|
320
|
+
isRefetchError: true;
|
|
321
|
+
isPlaceholderData: false;
|
|
322
|
+
dataUpdatedAt: number;
|
|
323
|
+
errorUpdatedAt: number;
|
|
324
|
+
errorUpdateCount: number;
|
|
325
|
+
isFetched: boolean;
|
|
326
|
+
isFetchedAfterMount: boolean;
|
|
327
|
+
isFetching: boolean;
|
|
328
|
+
isInitialLoading: boolean;
|
|
329
|
+
isRefetching: boolean;
|
|
330
|
+
isStale: boolean;
|
|
331
|
+
isEnabled: boolean;
|
|
332
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
333
|
+
promise: Promise<Result>;
|
|
334
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse$1<Result>, PostgrestError>>;
|
|
335
|
+
count: number | null;
|
|
336
|
+
} | {
|
|
337
|
+
fetchPreviousPage: () => void;
|
|
338
|
+
fetchNextPage: () => void;
|
|
339
|
+
currentPage: number;
|
|
340
|
+
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
341
|
+
data: {
|
|
342
|
+
Items: Result;
|
|
343
|
+
CurrentPage: number;
|
|
344
|
+
ItemCount: number;
|
|
345
|
+
MaxCountPerPage: number;
|
|
346
|
+
PageCount: number;
|
|
347
|
+
};
|
|
348
|
+
pageCount: number;
|
|
349
|
+
hasNextPage: boolean;
|
|
350
|
+
hasPreviousPage: boolean;
|
|
351
|
+
error: null;
|
|
352
|
+
status: "success";
|
|
353
|
+
isError: false;
|
|
354
|
+
isPending: false;
|
|
355
|
+
isSuccess: true;
|
|
356
|
+
failureCount: number;
|
|
357
|
+
failureReason: PostgrestError;
|
|
358
|
+
isPaused: boolean;
|
|
359
|
+
isLoading: false;
|
|
360
|
+
isLoadingError: false;
|
|
361
|
+
isRefetchError: false;
|
|
362
|
+
isPlaceholderData: false;
|
|
363
|
+
dataUpdatedAt: number;
|
|
364
|
+
errorUpdatedAt: number;
|
|
365
|
+
errorUpdateCount: number;
|
|
366
|
+
isFetched: boolean;
|
|
367
|
+
isFetchedAfterMount: boolean;
|
|
368
|
+
isFetching: boolean;
|
|
369
|
+
isInitialLoading: boolean;
|
|
370
|
+
isRefetching: boolean;
|
|
371
|
+
isStale: boolean;
|
|
372
|
+
isEnabled: boolean;
|
|
373
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
374
|
+
promise: Promise<Result>;
|
|
375
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse$1<Result>, PostgrestError>>;
|
|
376
|
+
count: number | null;
|
|
377
|
+
} | {
|
|
378
|
+
fetchPreviousPage: () => void;
|
|
379
|
+
fetchNextPage: () => void;
|
|
380
|
+
currentPage: number;
|
|
381
|
+
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
382
|
+
data: {
|
|
383
|
+
Items: Result;
|
|
384
|
+
CurrentPage: number;
|
|
385
|
+
ItemCount: number;
|
|
386
|
+
MaxCountPerPage: number;
|
|
387
|
+
PageCount: number;
|
|
388
|
+
};
|
|
389
|
+
pageCount: number;
|
|
390
|
+
hasNextPage: boolean;
|
|
391
|
+
hasPreviousPage: boolean;
|
|
392
|
+
error: PostgrestError;
|
|
393
|
+
status: "error";
|
|
394
|
+
isError: true;
|
|
395
|
+
isPending: false;
|
|
396
|
+
isSuccess: false;
|
|
397
|
+
failureCount: number;
|
|
398
|
+
failureReason: PostgrestError;
|
|
399
|
+
isPaused: boolean;
|
|
400
|
+
isLoading: false;
|
|
401
|
+
isLoadingError: true;
|
|
402
|
+
isRefetchError: false;
|
|
403
|
+
isPlaceholderData: false;
|
|
404
|
+
dataUpdatedAt: number;
|
|
405
|
+
errorUpdatedAt: number;
|
|
406
|
+
errorUpdateCount: number;
|
|
407
|
+
isFetched: boolean;
|
|
408
|
+
isFetchedAfterMount: boolean;
|
|
409
|
+
isFetching: boolean;
|
|
410
|
+
isInitialLoading: boolean;
|
|
411
|
+
isRefetching: boolean;
|
|
412
|
+
isStale: boolean;
|
|
413
|
+
isEnabled: boolean;
|
|
414
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
415
|
+
promise: Promise<Result>;
|
|
416
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse$1<Result>, PostgrestError>>;
|
|
417
|
+
count: number | null;
|
|
418
|
+
} | {
|
|
419
|
+
fetchPreviousPage: () => void;
|
|
420
|
+
fetchNextPage: () => void;
|
|
421
|
+
currentPage: number;
|
|
422
|
+
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
423
|
+
data: {
|
|
424
|
+
Items: Result;
|
|
425
|
+
CurrentPage: number;
|
|
426
|
+
ItemCount: number;
|
|
427
|
+
MaxCountPerPage: number;
|
|
428
|
+
PageCount: number;
|
|
429
|
+
};
|
|
430
|
+
pageCount: number;
|
|
431
|
+
hasNextPage: boolean;
|
|
432
|
+
hasPreviousPage: boolean;
|
|
433
|
+
error: null;
|
|
434
|
+
status: "pending";
|
|
435
|
+
isError: false;
|
|
436
|
+
isPending: true;
|
|
437
|
+
isSuccess: false;
|
|
438
|
+
failureCount: number;
|
|
439
|
+
failureReason: PostgrestError;
|
|
440
|
+
isPaused: boolean;
|
|
441
|
+
isLoading: true;
|
|
442
|
+
isLoadingError: false;
|
|
443
|
+
isRefetchError: false;
|
|
444
|
+
isPlaceholderData: false;
|
|
445
|
+
dataUpdatedAt: number;
|
|
446
|
+
errorUpdatedAt: number;
|
|
447
|
+
errorUpdateCount: number;
|
|
448
|
+
isFetched: boolean;
|
|
449
|
+
isFetchedAfterMount: boolean;
|
|
450
|
+
isFetching: boolean;
|
|
451
|
+
isInitialLoading: boolean;
|
|
452
|
+
isRefetching: boolean;
|
|
453
|
+
isStale: boolean;
|
|
454
|
+
isEnabled: boolean;
|
|
455
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
456
|
+
promise: Promise<Result>;
|
|
457
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse$1<Result>, PostgrestError>>;
|
|
458
|
+
count: number | null;
|
|
459
|
+
} | {
|
|
460
|
+
fetchPreviousPage: () => void;
|
|
461
|
+
fetchNextPage: () => void;
|
|
462
|
+
currentPage: number;
|
|
463
|
+
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
464
|
+
data: {
|
|
465
|
+
Items: Result;
|
|
466
|
+
CurrentPage: number;
|
|
467
|
+
ItemCount: number;
|
|
468
|
+
MaxCountPerPage: number;
|
|
469
|
+
PageCount: number;
|
|
470
|
+
};
|
|
471
|
+
pageCount: number;
|
|
472
|
+
hasNextPage: boolean;
|
|
473
|
+
hasPreviousPage: boolean;
|
|
474
|
+
error: null;
|
|
475
|
+
status: "pending";
|
|
476
|
+
isError: false;
|
|
477
|
+
isPending: true;
|
|
478
|
+
isSuccess: false;
|
|
479
|
+
failureCount: number;
|
|
480
|
+
failureReason: PostgrestError;
|
|
481
|
+
isPaused: boolean;
|
|
482
|
+
isLoading: boolean;
|
|
483
|
+
isLoadingError: false;
|
|
484
|
+
isRefetchError: false;
|
|
485
|
+
isPlaceholderData: false;
|
|
486
|
+
dataUpdatedAt: number;
|
|
487
|
+
errorUpdatedAt: number;
|
|
488
|
+
errorUpdateCount: number;
|
|
489
|
+
isFetched: boolean;
|
|
490
|
+
isFetchedAfterMount: boolean;
|
|
491
|
+
isFetching: boolean;
|
|
492
|
+
isInitialLoading: boolean;
|
|
493
|
+
isRefetching: boolean;
|
|
494
|
+
isStale: boolean;
|
|
495
|
+
isEnabled: boolean;
|
|
496
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
497
|
+
promise: Promise<Result>;
|
|
498
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse$1<Result>, PostgrestError>>;
|
|
499
|
+
count: number | null;
|
|
500
|
+
} | {
|
|
501
|
+
fetchPreviousPage: () => void;
|
|
502
|
+
fetchNextPage: () => void;
|
|
503
|
+
currentPage: number;
|
|
504
|
+
setCurrentPage: react.Dispatch<react.SetStateAction<number>>;
|
|
505
|
+
data: {
|
|
506
|
+
Items: Result;
|
|
507
|
+
CurrentPage: number;
|
|
508
|
+
ItemCount: number;
|
|
509
|
+
MaxCountPerPage: number;
|
|
510
|
+
PageCount: number;
|
|
511
|
+
};
|
|
512
|
+
pageCount: number;
|
|
513
|
+
hasNextPage: boolean;
|
|
514
|
+
hasPreviousPage: boolean;
|
|
515
|
+
error: null;
|
|
516
|
+
status: "success";
|
|
517
|
+
isError: false;
|
|
518
|
+
isPending: false;
|
|
519
|
+
isSuccess: true;
|
|
520
|
+
failureCount: number;
|
|
521
|
+
failureReason: PostgrestError;
|
|
522
|
+
isPaused: boolean;
|
|
523
|
+
isLoading: false;
|
|
524
|
+
isLoadingError: false;
|
|
525
|
+
isRefetchError: false;
|
|
526
|
+
isPlaceholderData: true;
|
|
527
|
+
dataUpdatedAt: number;
|
|
528
|
+
errorUpdatedAt: number;
|
|
529
|
+
errorUpdateCount: number;
|
|
530
|
+
isFetched: boolean;
|
|
531
|
+
isFetchedAfterMount: boolean;
|
|
532
|
+
isFetching: boolean;
|
|
533
|
+
isInitialLoading: boolean;
|
|
534
|
+
isRefetching: boolean;
|
|
535
|
+
isStale: boolean;
|
|
536
|
+
isEnabled: boolean;
|
|
537
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
538
|
+
promise: Promise<Result>;
|
|
539
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PostgrestSingleResponse$1<Result>, PostgrestError>>;
|
|
540
|
+
count: number | null;
|
|
541
|
+
};
|
|
542
|
+
|
|
658
543
|
type CustomPageQueryResult<T extends Record<string, any>[]> = ReturnType<typeof useDbPartialQuery<T>>;
|
|
659
544
|
|
|
660
545
|
type Attachment = {
|
|
@@ -994,4 +879,4 @@ declare function useResolveFeedback(): _tanstack_react_query.UseMutationResult<{
|
|
|
994
879
|
}>;
|
|
995
880
|
}, Error, number, unknown>;
|
|
996
881
|
|
|
997
|
-
export {
|
|
882
|
+
export { type SubmitFeedbackParams as $, type AIOptions as A, BUCKETS as B, type CustomPageQueryResult as C, DEFAULT_QUERY_TIMEOUT as D, useUpsertChangelog as E, useDeleteChangelog as F, useUpsertChangelogEntry as G, useMultiUpsertChangelogEntries as H, useDeleteChangelogEntry as I, useMultiDeleteChangelogEntries as J, useUpsertChangelogMedia as K, LiveChangeContext as L, useDeleteChangelogMedia as M, useUploadChangelogMedia as N, useChangelogs as O, usePublishedChangelogs as P, useChangelogById as Q, useChangelogBySlug as R, SupabaseAdapter as S, TIMEOUT_ERROR_MESSAGE as T, type UseMutationSuccessOptions as U, useChangelogEntries as V, useChangelogMedia as W, useFeedbackList as X, type FeedbackListItem as Y, type FeedbackListParams as Z, useSubmitFeedback as _, useLatestOperationLog as a, useApplyFeedback as a0, useResolveFeedback as a1, type UseDbPartialQueryResult as a2, useDbPartialQuery as a3, useAutosaveState as b, useToastError as c, useStorageUrl as d, useStoragePath as e, useMutationSuccess as f, getSupabaseUrl as g, useMutationSuccessRN as h, createSupabaseAdapter as i, getErrorBody as j, type AIResponse as k, useAI as l, type ServerAvailabilityState as m, newTimeActivity as n, useServerAvailability as o, useSearchQuery as p, type UpdateOptions as q, executeAdvanceQuery as r, setSupabaseUrl as s, type StorageObjectMetadata as t, useLiveChangeTracking as u, type BucketName as v, createInCondition as w, isTimeoutError as x, type AlertProps as y, LiveChangeContextProvider as z };
|