@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
package/dist/index.native.js
CHANGED
|
@@ -4,18 +4,16 @@ import {
|
|
|
4
4
|
DataLayerProvider,
|
|
5
5
|
PowerSyncAdapter,
|
|
6
6
|
createPowerSyncAdapter,
|
|
7
|
-
sanitizeStorageKey,
|
|
8
7
|
useBulkConflictResolution,
|
|
9
8
|
useConflictCountByTable,
|
|
10
9
|
useConflictForRecord,
|
|
11
10
|
useConflictResolution,
|
|
12
11
|
useConflictState,
|
|
13
12
|
useConflictsForTable,
|
|
14
|
-
useDbAttachmentUpload,
|
|
15
13
|
useHasConflicts,
|
|
16
14
|
usePendingConflicts,
|
|
17
15
|
useSupabaseUpload
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3EVWXMUV.js";
|
|
19
17
|
import {
|
|
20
18
|
ADAPTER_STRATEGIES,
|
|
21
19
|
AdapterAutoDetector,
|
|
@@ -23,7 +21,6 @@ import {
|
|
|
23
21
|
BUCKETS,
|
|
24
22
|
BackendStatus,
|
|
25
23
|
SupabaseAdapter,
|
|
26
|
-
convertFilterToRealtimeQuery,
|
|
27
24
|
createAdapterAutoDetector,
|
|
28
25
|
createAdapterRegistry,
|
|
29
26
|
createInCondition,
|
|
@@ -39,15 +36,6 @@ import {
|
|
|
39
36
|
useChangelogEntries,
|
|
40
37
|
useChangelogMedia,
|
|
41
38
|
useChangelogs,
|
|
42
|
-
useDbDelete,
|
|
43
|
-
useDbInsert,
|
|
44
|
-
useDbMultiDelete,
|
|
45
|
-
useDbMultiUpsert,
|
|
46
|
-
useDbPartialAdvanceQuery,
|
|
47
|
-
useDbPartialQuery,
|
|
48
|
-
useDbRealtime,
|
|
49
|
-
useDbRealtimeQuery,
|
|
50
|
-
useDbUpdate,
|
|
51
39
|
useDeleteChangelog,
|
|
52
40
|
useDeleteChangelogEntry,
|
|
53
41
|
useDeleteChangelogMedia,
|
|
@@ -70,7 +58,7 @@ import {
|
|
|
70
58
|
useUpsertChangelog,
|
|
71
59
|
useUpsertChangelogEntry,
|
|
72
60
|
useUpsertChangelogMedia
|
|
73
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-I4BDZDHX.js";
|
|
74
62
|
import {
|
|
75
63
|
LiveChangeContext,
|
|
76
64
|
LiveChangeContextProvider,
|
|
@@ -81,7 +69,7 @@ import {
|
|
|
81
69
|
useUserMetadataState,
|
|
82
70
|
useUserMetadataValue,
|
|
83
71
|
userMetadataContext
|
|
84
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-WP6TIVPH.js";
|
|
85
73
|
import {
|
|
86
74
|
PostgrestFilter,
|
|
87
75
|
binarySearch,
|
|
@@ -112,9 +100,7 @@ import {
|
|
|
112
100
|
} from "./chunk-U5UNPBKB.js";
|
|
113
101
|
import {
|
|
114
102
|
Constants,
|
|
115
|
-
createCombinedStatus
|
|
116
|
-
normalizeFilter,
|
|
117
|
-
useDbAdvanceFilterQuery
|
|
103
|
+
createCombinedStatus
|
|
118
104
|
} from "./chunk-H3LNH2NT.js";
|
|
119
105
|
import {
|
|
120
106
|
Accessory,
|
|
@@ -304,13 +290,12 @@ import {
|
|
|
304
290
|
UserMetadata
|
|
305
291
|
} from "./chunk-SM73S2DY.js";
|
|
306
292
|
import "./chunk-NSIAAYW3.js";
|
|
307
|
-
import "./chunk-
|
|
293
|
+
import "./chunk-LPC64MD4.js";
|
|
308
294
|
import {
|
|
309
295
|
DEFAULT_QUERY_TIMEOUT,
|
|
310
296
|
TIMEOUT_ERROR_MESSAGE,
|
|
311
|
-
isTimeoutError
|
|
312
|
-
|
|
313
|
-
} from "./chunk-72WV3ALS.js";
|
|
297
|
+
isTimeoutError
|
|
298
|
+
} from "./chunk-OUUQSI3Y.js";
|
|
314
299
|
import {
|
|
315
300
|
DataLayerContext,
|
|
316
301
|
DataLayerCoreContext,
|
|
@@ -318,41 +303,19 @@ import {
|
|
|
318
303
|
useAdvanceQuery,
|
|
319
304
|
useDataLayer,
|
|
320
305
|
useDbCount,
|
|
321
|
-
useDbDelete
|
|
306
|
+
useDbDelete,
|
|
322
307
|
useDbInfiniteQuery,
|
|
323
|
-
useDbInsert
|
|
324
|
-
useDbQuery
|
|
308
|
+
useDbInsert,
|
|
309
|
+
useDbQuery,
|
|
325
310
|
useDbQueryById,
|
|
326
|
-
useDbUpdate
|
|
311
|
+
useDbUpdate,
|
|
327
312
|
useDbUpsert,
|
|
328
313
|
useOnlineStatus,
|
|
329
314
|
useSyncControl,
|
|
330
315
|
useSyncStatus
|
|
331
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-3FHAKRDV.js";
|
|
332
317
|
import "./chunk-HAWJTZCK.js";
|
|
333
|
-
import
|
|
334
|
-
QueryExecutor,
|
|
335
|
-
RelationshipResolver,
|
|
336
|
-
ResultJoiner,
|
|
337
|
-
SQLBuilder,
|
|
338
|
-
createQueryExecutor,
|
|
339
|
-
createRelationshipResolver,
|
|
340
|
-
createResultJoiner,
|
|
341
|
-
createSQLBuilder,
|
|
342
|
-
extractColumnNames,
|
|
343
|
-
extractRelationNames,
|
|
344
|
-
getRelationSelect,
|
|
345
|
-
hasRelation,
|
|
346
|
-
parseSelect,
|
|
347
|
-
stringifySelect,
|
|
348
|
-
tokenizeTopLevel,
|
|
349
|
-
useAdvancedFilterQuery,
|
|
350
|
-
useAdvancedQuery,
|
|
351
|
-
useInfiniteQuery,
|
|
352
|
-
usePartialAdvancedQuery,
|
|
353
|
-
usePartialQuery,
|
|
354
|
-
useQuery
|
|
355
|
-
} from "./chunk-X3HZLNBV.js";
|
|
318
|
+
import "./chunk-FKRACEHV.js";
|
|
356
319
|
import {
|
|
357
320
|
getSupabaseUrl,
|
|
358
321
|
setSupabaseUrl
|
|
@@ -537,15 +500,11 @@ export {
|
|
|
537
500
|
PunchListPageAccess,
|
|
538
501
|
PunchListUserOrderHint,
|
|
539
502
|
QrCode,
|
|
540
|
-
QueryExecutor,
|
|
541
|
-
RelationshipResolver,
|
|
542
|
-
ResultJoiner,
|
|
543
503
|
RetainageItem,
|
|
544
504
|
RevitEquipmentUnitChange,
|
|
545
505
|
RevitImport,
|
|
546
506
|
RevitValueChangedEvent,
|
|
547
507
|
Role,
|
|
548
|
-
SQLBuilder,
|
|
549
508
|
SUPPORTED_OPERATORS,
|
|
550
509
|
Service,
|
|
551
510
|
ServiceCosts,
|
|
@@ -606,36 +565,27 @@ export {
|
|
|
606
565
|
WorkingPhaseSummary,
|
|
607
566
|
binarySearch,
|
|
608
567
|
buildSortedComparator,
|
|
609
|
-
convertFilterToRealtimeQuery,
|
|
610
568
|
createAdapterAutoDetector,
|
|
611
569
|
createAdapterRegistry,
|
|
612
570
|
createCombinedStatus,
|
|
613
571
|
createInCondition,
|
|
614
572
|
createNewSupabaseClient,
|
|
615
573
|
createPowerSyncAdapter,
|
|
616
|
-
createQueryExecutor,
|
|
617
|
-
createRelationshipResolver,
|
|
618
|
-
createResultJoiner,
|
|
619
|
-
createSQLBuilder,
|
|
620
574
|
createSupabaseAdapter,
|
|
621
575
|
useSupabase as default,
|
|
622
576
|
denormalize,
|
|
623
577
|
encodeObject,
|
|
624
578
|
executeAdvanceQuery,
|
|
625
|
-
extractColumnNames,
|
|
626
579
|
extractPathsFromFilters,
|
|
627
|
-
extractRelationNames,
|
|
628
580
|
filterFilterDefinitionsByPaths,
|
|
629
581
|
findFilters,
|
|
630
582
|
findIndexOrdered,
|
|
631
583
|
findLastIndex,
|
|
632
584
|
get,
|
|
633
585
|
getErrorBody,
|
|
634
|
-
getRelationSelect,
|
|
635
586
|
getSupabaseUrl,
|
|
636
587
|
getTable,
|
|
637
588
|
groupPathsRecursive,
|
|
638
|
-
hasRelation,
|
|
639
589
|
ifDateGetTime,
|
|
640
590
|
isAndFilter,
|
|
641
591
|
isAnyPostgrestResponse,
|
|
@@ -652,26 +602,19 @@ export {
|
|
|
652
602
|
isPostgrestPaginationResponse,
|
|
653
603
|
isTimeoutError,
|
|
654
604
|
newTimeActivity,
|
|
655
|
-
normalizeFilter,
|
|
656
605
|
onSupabaseInitialized,
|
|
657
606
|
parseOrderByKey,
|
|
658
|
-
parseSelect,
|
|
659
607
|
parseSelectParam,
|
|
660
608
|
parseValue,
|
|
661
609
|
removeAliasFromDeclaration,
|
|
662
610
|
removeFirstPathElement,
|
|
663
|
-
sanitizeStorageKey,
|
|
664
611
|
setDefaultOptions,
|
|
665
612
|
setFilterValue,
|
|
666
613
|
setSupabaseUrl,
|
|
667
614
|
sortSearchParams,
|
|
668
|
-
stringifySelect,
|
|
669
|
-
tokenizeTopLevel,
|
|
670
615
|
typedSupabase,
|
|
671
616
|
useAI,
|
|
672
617
|
useAdvanceQuery,
|
|
673
|
-
useAdvancedFilterQuery,
|
|
674
|
-
useAdvancedQuery,
|
|
675
618
|
useApplyFeedback,
|
|
676
619
|
useAutosaveState,
|
|
677
620
|
useBatchDelete,
|
|
@@ -688,38 +631,22 @@ export {
|
|
|
688
631
|
useConflictState,
|
|
689
632
|
useConflictsForTable,
|
|
690
633
|
useDataLayer,
|
|
691
|
-
useDbAdvanceFilterQuery,
|
|
692
|
-
useDbAdvanceFilterQuery as useDbAdvanceQuery,
|
|
693
634
|
useDbCount,
|
|
694
635
|
useDbCount as useDbCountV3,
|
|
695
|
-
useDbDelete,
|
|
696
|
-
useDbDelete2 as useDbDeleteV3,
|
|
636
|
+
useDbDelete as useDbDeleteV3,
|
|
697
637
|
useDbInfiniteQuery,
|
|
698
638
|
useDbInfiniteQuery as useDbInfiniteQueryV3,
|
|
699
|
-
useDbInsert,
|
|
700
|
-
useDbInsert2 as useDbInsertV3,
|
|
701
|
-
useDbMultiDelete,
|
|
702
|
-
useDbMultiUpsert,
|
|
703
|
-
useDbPartialAdvanceQuery,
|
|
704
|
-
useDbPartialQuery,
|
|
705
|
-
useDbQuery,
|
|
639
|
+
useDbInsert as useDbInsertV3,
|
|
706
640
|
useDbQueryById,
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
useDbRealtimeQuery,
|
|
710
|
-
useDbUpdate,
|
|
711
|
-
useDbUpdate2 as useDbUpdateV3,
|
|
712
|
-
useDbAttachmentUpload as useDbUpload,
|
|
641
|
+
useDbQuery as useDbQueryV3,
|
|
642
|
+
useDbUpdate as useDbUpdateV3,
|
|
713
643
|
useDbUpsert,
|
|
714
644
|
useDbUpsert as useDbUpsertV3,
|
|
715
|
-
useDbDelete as useDelete,
|
|
716
645
|
useDeleteChangelog,
|
|
717
646
|
useDeleteChangelogEntry,
|
|
718
647
|
useDeleteChangelogMedia,
|
|
719
648
|
useFeedbackList,
|
|
720
649
|
useHasConflicts,
|
|
721
|
-
useInfiniteQuery,
|
|
722
|
-
useDbInsert as useInsert,
|
|
723
650
|
useLatestOperationLog,
|
|
724
651
|
useLiveChangeTracking,
|
|
725
652
|
useLiveChangesIndicator,
|
|
@@ -728,13 +655,8 @@ export {
|
|
|
728
655
|
useMutationSuccess,
|
|
729
656
|
useMutationSuccessRN,
|
|
730
657
|
useOnlineStatus,
|
|
731
|
-
usePartialAdvancedQuery,
|
|
732
|
-
usePartialQuery,
|
|
733
658
|
usePendingConflicts,
|
|
734
659
|
usePublishedChangelogs,
|
|
735
|
-
useQuery,
|
|
736
|
-
useDbRealtime as useRealtime,
|
|
737
|
-
useDbRealtimeQuery as useRealtimeQuery,
|
|
738
660
|
useResolveFeedback,
|
|
739
661
|
useSearchQuery,
|
|
740
662
|
useServerAvailability,
|
|
@@ -747,7 +669,6 @@ export {
|
|
|
747
669
|
useSyncControl,
|
|
748
670
|
useSyncStatus,
|
|
749
671
|
useToastError,
|
|
750
|
-
useDbUpdate as useUpdate,
|
|
751
672
|
useUploadChangelogMedia,
|
|
752
673
|
useDbUpsert as useUpsert,
|
|
753
674
|
useUpsertChangelog,
|