@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.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getPowerSyncInstance,
|
|
5
5
|
isAbstractPowerSyncDatabase,
|
|
6
6
|
isPowerSyncAvailable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FZF26ZRB.js";
|
|
8
8
|
import {
|
|
9
9
|
useReceiptAI_default,
|
|
10
10
|
useSupabaseFunction
|
|
@@ -15,18 +15,16 @@ import {
|
|
|
15
15
|
DataLayerProvider,
|
|
16
16
|
PowerSyncAdapter,
|
|
17
17
|
createPowerSyncAdapter,
|
|
18
|
-
sanitizeStorageKey,
|
|
19
18
|
useBulkConflictResolution,
|
|
20
19
|
useConflictCountByTable,
|
|
21
20
|
useConflictForRecord,
|
|
22
21
|
useConflictResolution,
|
|
23
22
|
useConflictState,
|
|
24
23
|
useConflictsForTable,
|
|
25
|
-
useDbAttachmentUpload,
|
|
26
24
|
useHasConflicts,
|
|
27
25
|
usePendingConflicts,
|
|
28
26
|
useSupabaseUpload
|
|
29
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3EVWXMUV.js";
|
|
30
28
|
import {
|
|
31
29
|
ADAPTER_STRATEGIES,
|
|
32
30
|
AdapterAutoDetector,
|
|
@@ -34,7 +32,6 @@ import {
|
|
|
34
32
|
BUCKETS,
|
|
35
33
|
BackendStatus,
|
|
36
34
|
SupabaseAdapter,
|
|
37
|
-
convertFilterToRealtimeQuery,
|
|
38
35
|
createAdapterAutoDetector,
|
|
39
36
|
createAdapterRegistry,
|
|
40
37
|
createInCondition,
|
|
@@ -50,15 +47,6 @@ import {
|
|
|
50
47
|
useChangelogEntries,
|
|
51
48
|
useChangelogMedia,
|
|
52
49
|
useChangelogs,
|
|
53
|
-
useDbDelete,
|
|
54
|
-
useDbInsert,
|
|
55
|
-
useDbMultiDelete,
|
|
56
|
-
useDbMultiUpsert,
|
|
57
|
-
useDbPartialAdvanceQuery,
|
|
58
|
-
useDbPartialQuery,
|
|
59
|
-
useDbRealtime,
|
|
60
|
-
useDbRealtimeQuery,
|
|
61
|
-
useDbUpdate,
|
|
62
50
|
useDeleteChangelog,
|
|
63
51
|
useDeleteChangelogEntry,
|
|
64
52
|
useDeleteChangelogMedia,
|
|
@@ -81,7 +69,7 @@ import {
|
|
|
81
69
|
useUpsertChangelog,
|
|
82
70
|
useUpsertChangelogEntry,
|
|
83
71
|
useUpsertChangelogMedia
|
|
84
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-I4BDZDHX.js";
|
|
85
73
|
import {
|
|
86
74
|
LiveChangeContext,
|
|
87
75
|
LiveChangeContextProvider,
|
|
@@ -92,7 +80,7 @@ import {
|
|
|
92
80
|
useUserMetadataState,
|
|
93
81
|
useUserMetadataValue,
|
|
94
82
|
userMetadataContext
|
|
95
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-WP6TIVPH.js";
|
|
96
84
|
import {
|
|
97
85
|
PostgrestFilter,
|
|
98
86
|
binarySearch,
|
|
@@ -123,9 +111,7 @@ import {
|
|
|
123
111
|
} from "./chunk-U5UNPBKB.js";
|
|
124
112
|
import {
|
|
125
113
|
Constants,
|
|
126
|
-
createCombinedStatus
|
|
127
|
-
normalizeFilter,
|
|
128
|
-
useDbAdvanceFilterQuery
|
|
114
|
+
createCombinedStatus
|
|
129
115
|
} from "./chunk-H3LNH2NT.js";
|
|
130
116
|
import {
|
|
131
117
|
Accessory,
|
|
@@ -315,13 +301,12 @@ import {
|
|
|
315
301
|
UserMetadata
|
|
316
302
|
} from "./chunk-SM73S2DY.js";
|
|
317
303
|
import "./chunk-NSIAAYW3.js";
|
|
318
|
-
import "./chunk-
|
|
304
|
+
import "./chunk-LPC64MD4.js";
|
|
319
305
|
import {
|
|
320
306
|
DEFAULT_QUERY_TIMEOUT,
|
|
321
307
|
TIMEOUT_ERROR_MESSAGE,
|
|
322
|
-
isTimeoutError
|
|
323
|
-
|
|
324
|
-
} from "./chunk-72WV3ALS.js";
|
|
308
|
+
isTimeoutError
|
|
309
|
+
} from "./chunk-OUUQSI3Y.js";
|
|
325
310
|
import {
|
|
326
311
|
DataLayerContext,
|
|
327
312
|
DataLayerCoreContext,
|
|
@@ -331,41 +316,19 @@ import {
|
|
|
331
316
|
useDataLayerCore,
|
|
332
317
|
useDataLayerStatus,
|
|
333
318
|
useDbCount,
|
|
334
|
-
useDbDelete
|
|
319
|
+
useDbDelete,
|
|
335
320
|
useDbInfiniteQuery,
|
|
336
|
-
useDbInsert
|
|
337
|
-
useDbQuery
|
|
321
|
+
useDbInsert,
|
|
322
|
+
useDbQuery,
|
|
338
323
|
useDbQueryById,
|
|
339
|
-
useDbUpdate
|
|
324
|
+
useDbUpdate,
|
|
340
325
|
useDbUpsert,
|
|
341
326
|
useOnlineStatus,
|
|
342
327
|
useSyncControl,
|
|
343
328
|
useSyncStatus
|
|
344
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-3FHAKRDV.js";
|
|
345
330
|
import "./chunk-HAWJTZCK.js";
|
|
346
|
-
import
|
|
347
|
-
QueryExecutor,
|
|
348
|
-
RelationshipResolver,
|
|
349
|
-
ResultJoiner,
|
|
350
|
-
SQLBuilder,
|
|
351
|
-
createQueryExecutor,
|
|
352
|
-
createRelationshipResolver,
|
|
353
|
-
createResultJoiner,
|
|
354
|
-
createSQLBuilder,
|
|
355
|
-
extractColumnNames,
|
|
356
|
-
extractRelationNames,
|
|
357
|
-
getRelationSelect,
|
|
358
|
-
hasRelation,
|
|
359
|
-
parseSelect,
|
|
360
|
-
stringifySelect,
|
|
361
|
-
tokenizeTopLevel,
|
|
362
|
-
useAdvancedFilterQuery,
|
|
363
|
-
useAdvancedQuery,
|
|
364
|
-
useInfiniteQuery,
|
|
365
|
-
usePartialAdvancedQuery,
|
|
366
|
-
usePartialQuery,
|
|
367
|
-
useQuery
|
|
368
|
-
} from "./chunk-X3HZLNBV.js";
|
|
331
|
+
import "./chunk-FKRACEHV.js";
|
|
369
332
|
import {
|
|
370
333
|
getSupabaseUrl,
|
|
371
334
|
setSupabaseUrl
|
|
@@ -550,15 +513,11 @@ export {
|
|
|
550
513
|
PunchListPageAccess,
|
|
551
514
|
PunchListUserOrderHint,
|
|
552
515
|
QrCode,
|
|
553
|
-
QueryExecutor,
|
|
554
|
-
RelationshipResolver,
|
|
555
|
-
ResultJoiner,
|
|
556
516
|
RetainageItem,
|
|
557
517
|
RevitEquipmentUnitChange,
|
|
558
518
|
RevitImport,
|
|
559
519
|
RevitValueChangedEvent,
|
|
560
520
|
Role,
|
|
561
|
-
SQLBuilder,
|
|
562
521
|
SUPPORTED_OPERATORS,
|
|
563
522
|
Service,
|
|
564
523
|
ServiceCosts,
|
|
@@ -619,7 +578,6 @@ export {
|
|
|
619
578
|
WorkingPhaseSummary,
|
|
620
579
|
binarySearch,
|
|
621
580
|
buildSortedComparator,
|
|
622
|
-
convertFilterToRealtimeQuery,
|
|
623
581
|
convertToDataLayerSyncControl,
|
|
624
582
|
convertToDataLayerSyncStatus,
|
|
625
583
|
createAdapterAutoDetector,
|
|
@@ -628,18 +586,12 @@ export {
|
|
|
628
586
|
createInCondition,
|
|
629
587
|
createNewSupabaseClient,
|
|
630
588
|
createPowerSyncAdapter,
|
|
631
|
-
createQueryExecutor,
|
|
632
|
-
createRelationshipResolver,
|
|
633
|
-
createResultJoiner,
|
|
634
|
-
createSQLBuilder,
|
|
635
589
|
createSupabaseAdapter,
|
|
636
590
|
useSupabase as default,
|
|
637
591
|
denormalize,
|
|
638
592
|
encodeObject,
|
|
639
593
|
executeAdvanceQuery,
|
|
640
|
-
extractColumnNames,
|
|
641
594
|
extractPathsFromFilters,
|
|
642
|
-
extractRelationNames,
|
|
643
595
|
filterFilterDefinitionsByPaths,
|
|
644
596
|
findFilters,
|
|
645
597
|
findIndexOrdered,
|
|
@@ -647,11 +599,9 @@ export {
|
|
|
647
599
|
get,
|
|
648
600
|
getErrorBody,
|
|
649
601
|
getPowerSyncInstance,
|
|
650
|
-
getRelationSelect,
|
|
651
602
|
getSupabaseUrl,
|
|
652
603
|
getTable,
|
|
653
604
|
groupPathsRecursive,
|
|
654
|
-
hasRelation,
|
|
655
605
|
ifDateGetTime,
|
|
656
606
|
isAbstractPowerSyncDatabase,
|
|
657
607
|
isAndFilter,
|
|
@@ -670,26 +620,19 @@ export {
|
|
|
670
620
|
isPowerSyncAvailable,
|
|
671
621
|
isTimeoutError,
|
|
672
622
|
newTimeActivity,
|
|
673
|
-
normalizeFilter,
|
|
674
623
|
onSupabaseInitialized,
|
|
675
624
|
parseOrderByKey,
|
|
676
|
-
parseSelect,
|
|
677
625
|
parseSelectParam,
|
|
678
626
|
parseValue,
|
|
679
627
|
removeAliasFromDeclaration,
|
|
680
628
|
removeFirstPathElement,
|
|
681
|
-
sanitizeStorageKey,
|
|
682
629
|
setDefaultOptions,
|
|
683
630
|
setFilterValue,
|
|
684
631
|
setSupabaseUrl,
|
|
685
632
|
sortSearchParams,
|
|
686
|
-
stringifySelect,
|
|
687
|
-
tokenizeTopLevel,
|
|
688
633
|
typedSupabase,
|
|
689
634
|
useAI,
|
|
690
635
|
useAdvanceQuery,
|
|
691
|
-
useAdvancedFilterQuery,
|
|
692
|
-
useAdvancedQuery,
|
|
693
636
|
useApplyFeedback,
|
|
694
637
|
useAutosaveState,
|
|
695
638
|
useBatchDelete,
|
|
@@ -708,38 +651,21 @@ export {
|
|
|
708
651
|
useDataLayer,
|
|
709
652
|
useDataLayerCore,
|
|
710
653
|
useDataLayerStatus,
|
|
711
|
-
useDbAdvanceFilterQuery,
|
|
712
|
-
useDbAdvanceFilterQuery as useDbAdvanceQuery,
|
|
713
654
|
useDbCount,
|
|
714
655
|
useDbCount as useDbCountV3,
|
|
715
656
|
useDbDelete,
|
|
716
|
-
useDbDelete2 as useDbDeleteV3,
|
|
717
657
|
useDbInfiniteQuery,
|
|
718
658
|
useDbInfiniteQuery as useDbInfiniteQueryV3,
|
|
719
659
|
useDbInsert,
|
|
720
|
-
useDbInsert2 as useDbInsertV3,
|
|
721
|
-
useDbMultiDelete,
|
|
722
|
-
useDbMultiUpsert,
|
|
723
|
-
useDbPartialAdvanceQuery,
|
|
724
|
-
useDbPartialQuery,
|
|
725
660
|
useDbQuery,
|
|
726
661
|
useDbQueryById,
|
|
727
|
-
useDbQuery2 as useDbQueryV3,
|
|
728
|
-
useDbRealtime,
|
|
729
|
-
useDbRealtimeQuery,
|
|
730
662
|
useDbUpdate,
|
|
731
|
-
useDbUpdate2 as useDbUpdateV3,
|
|
732
|
-
useDbAttachmentUpload as useDbUpload,
|
|
733
663
|
useDbUpsert,
|
|
734
|
-
useDbUpsert as useDbUpsertV3,
|
|
735
|
-
useDbDelete as useDelete,
|
|
736
664
|
useDeleteChangelog,
|
|
737
665
|
useDeleteChangelogEntry,
|
|
738
666
|
useDeleteChangelogMedia,
|
|
739
667
|
useFeedbackList,
|
|
740
668
|
useHasConflicts,
|
|
741
|
-
useInfiniteQuery,
|
|
742
|
-
useDbInsert as useInsert,
|
|
743
669
|
useLatestOperationLog,
|
|
744
670
|
useLiveChangeTracking,
|
|
745
671
|
useLiveChangesIndicator,
|
|
@@ -748,13 +674,8 @@ export {
|
|
|
748
674
|
useMutationSuccess,
|
|
749
675
|
useMutationSuccessRN,
|
|
750
676
|
useOnlineStatus,
|
|
751
|
-
usePartialAdvancedQuery,
|
|
752
|
-
usePartialQuery,
|
|
753
677
|
usePendingConflicts,
|
|
754
678
|
usePublishedChangelogs,
|
|
755
|
-
useQuery,
|
|
756
|
-
useDbRealtime as useRealtime,
|
|
757
|
-
useDbRealtimeQuery as useRealtimeQuery,
|
|
758
679
|
useReceiptAI_default as useReceiptAI,
|
|
759
680
|
useResolveFeedback,
|
|
760
681
|
useSearchQuery,
|
|
@@ -769,9 +690,7 @@ export {
|
|
|
769
690
|
useSyncControl,
|
|
770
691
|
useSyncStatus,
|
|
771
692
|
useToastError,
|
|
772
|
-
useDbUpdate as useUpdate,
|
|
773
693
|
useUploadChangelogMedia,
|
|
774
|
-
useDbUpsert as useUpsert,
|
|
775
694
|
useUpsertChangelog,
|
|
776
695
|
useUpsertChangelogEntry,
|
|
777
696
|
useUpsertChangelogMedia,
|