@pol-studios/powersync 1.0.30 → 1.0.32
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/{CacheSettingsManager-uz-kbnRH.d.ts → CacheSettingsManager-0H_7thHW.d.ts} +21 -3
- package/dist/attachments/index.d.ts +30 -30
- package/dist/attachments/index.js +13 -4
- package/dist/{background-sync-CVR3PkFi.d.ts → background-sync-BujnI3IR.d.ts} +1 -1
- package/dist/{chunk-RE5HWLCB.js → chunk-2RDWLXJW.js} +322 -103
- package/dist/chunk-2RDWLXJW.js.map +1 -0
- package/dist/{chunk-P4HZA6ZT.js → chunk-4665ZSE5.js} +2 -2
- package/dist/chunk-4665ZSE5.js.map +1 -0
- package/dist/{chunk-XOY2CJ67.js → chunk-4F5B5CZ7.js} +3 -3
- package/dist/chunk-5WRI5ZAA.js +31 -0
- package/dist/{chunk-BC2SRII2.js → chunk-65A3SYJZ.js} +14 -1
- package/dist/chunk-65A3SYJZ.js.map +1 -0
- package/dist/chunk-6SZ64KCZ.js +755 -0
- package/dist/chunk-6SZ64KCZ.js.map +1 -0
- package/dist/{chunk-C2ACBYBZ.js → chunk-74TBHWJ4.js} +10 -96
- package/dist/{chunk-C2ACBYBZ.js.map → chunk-74TBHWJ4.js.map} +1 -1
- package/dist/chunk-ANXWYQEJ.js +1 -0
- package/dist/chunk-ANXWYQEJ.js.map +1 -0
- package/dist/{chunk-CAB26E6F.js → chunk-C4J4MLER.js} +29 -24
- package/dist/chunk-C4J4MLER.js.map +1 -0
- package/dist/{chunk-C5ODS3XH.js → chunk-EOW7JK7Q.js} +9 -16
- package/dist/chunk-EOW7JK7Q.js.map +1 -0
- package/dist/chunk-HRAVPIAZ.js +220 -0
- package/dist/chunk-HRAVPIAZ.js.map +1 -0
- package/dist/{chunk-XAEII4ZX.js → chunk-NUGQOTEM.js} +32 -4
- package/dist/chunk-NUGQOTEM.js.map +1 -0
- package/dist/chunk-OGUFUZSY.js +5415 -0
- package/dist/chunk-OGUFUZSY.js.map +1 -0
- package/dist/{chunk-JCGOZVWL.js → chunk-P4D6BQ4X.js} +115 -576
- package/dist/chunk-P4D6BQ4X.js.map +1 -0
- package/dist/{chunk-CACKC6XG.js → chunk-PGEDE6IM.js} +136 -89
- package/dist/chunk-PGEDE6IM.js.map +1 -0
- package/dist/{chunk-A4IBBWGO.js → chunk-RALHHPTU.js} +1 -1
- package/dist/chunk-RIDSPLE5.js +42 -0
- package/dist/chunk-RIDSPLE5.js.map +1 -0
- package/dist/{chunk-Z6VOBGTU.js → chunk-UOMHWUHV.js} +2 -12
- package/dist/chunk-UOMHWUHV.js.map +1 -0
- package/dist/{chunk-QREWE3NR.js → chunk-YONQYTVH.js} +2 -2
- package/dist/chunk-ZAN22NGL.js +13 -0
- package/dist/chunk-ZAN22NGL.js.map +1 -0
- package/dist/config/index.d.ts +200 -0
- package/dist/config/index.js +23 -0
- package/dist/config/index.js.map +1 -0
- package/dist/connector/index.d.ts +23 -5
- package/dist/connector/index.js +4 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -0
- package/dist/error/index.js +1 -0
- package/dist/generator/index.js +2 -0
- package/dist/generator/index.js.map +1 -1
- package/dist/index.d.ts +19 -16
- package/dist/index.js +68 -36
- package/dist/index.native.d.ts +18 -14
- package/dist/index.native.js +73 -34
- package/dist/index.web.d.ts +17 -14
- package/dist/index.web.js +68 -36
- package/dist/maintenance/index.d.ts +2 -2
- package/dist/maintenance/index.js +3 -2
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +2 -0
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.native.d.ts +1 -1
- package/dist/platform/index.native.js +1 -0
- package/dist/platform/index.web.d.ts +1 -1
- package/dist/platform/index.web.js +1 -0
- package/dist/pol-attachment-queue-DqBvLAEY.d.ts +255 -0
- package/dist/provider/index.d.ts +149 -114
- package/dist/provider/index.js +9 -14
- package/dist/provider/index.native.d.ts +108 -0
- package/dist/provider/index.native.js +121 -0
- package/dist/provider/index.native.js.map +1 -0
- package/dist/provider/index.web.d.ts +16 -0
- package/dist/provider/index.web.js +112 -0
- package/dist/provider/index.web.js.map +1 -0
- package/dist/react/index.d.ts +16 -65
- package/dist/react/index.js +2 -9
- package/dist/storage/index.d.ts +5 -4
- package/dist/storage/index.js +12 -9
- package/dist/storage/index.native.d.ts +5 -4
- package/dist/storage/index.native.js +8 -5
- package/dist/storage/index.web.d.ts +5 -4
- package/dist/storage/index.web.js +11 -8
- package/dist/storage/upload/index.d.ts +4 -3
- package/dist/storage/upload/index.js +4 -2
- package/dist/storage/upload/index.native.d.ts +4 -3
- package/dist/storage/upload/index.native.js +4 -2
- package/dist/storage/upload/index.web.d.ts +2 -1
- package/dist/storage/upload/index.web.js +4 -2
- package/dist/{supabase-connector-C4YpH_l3.d.ts → supabase-connector-HMxBA9Kg.d.ts} +2 -2
- package/dist/sync/index.d.ts +155 -20
- package/dist/sync/index.js +13 -3
- package/dist/{types-CyvBaAl8.d.ts → types-6QHGELuY.d.ts} +4 -1
- package/dist/{types-Dv1uf0LZ.d.ts → types-B9MptP7E.d.ts} +7 -10
- package/dist/types-BhAEsJj-.d.ts +330 -0
- package/dist/{types-D0WcHrq6.d.ts → types-CGMibJKD.d.ts} +8 -0
- package/dist/{types-CpM2_LhU.d.ts → types-DqJnP50o.d.ts} +6 -1
- package/dist/{pol-attachment-queue-BE2HU3Us.d.ts → types-JCEhw2Lf.d.ts} +139 -346
- package/package.json +18 -4
- package/dist/chunk-654ERHA7.js +0 -1
- package/dist/chunk-BC2SRII2.js.map +0 -1
- package/dist/chunk-C5ODS3XH.js.map +0 -1
- package/dist/chunk-CAB26E6F.js.map +0 -1
- package/dist/chunk-CACKC6XG.js.map +0 -1
- package/dist/chunk-FNYQFILT.js +0 -44
- package/dist/chunk-FNYQFILT.js.map +0 -1
- package/dist/chunk-JCGOZVWL.js.map +0 -1
- package/dist/chunk-P4HZA6ZT.js.map +0 -1
- package/dist/chunk-RBPWEOIV.js +0 -358
- package/dist/chunk-RBPWEOIV.js.map +0 -1
- package/dist/chunk-RE5HWLCB.js.map +0 -1
- package/dist/chunk-XAEII4ZX.js.map +0 -1
- package/dist/chunk-Z6VOBGTU.js.map +0 -1
- /package/dist/{chunk-XOY2CJ67.js.map → chunk-4F5B5CZ7.js.map} +0 -0
- /package/dist/{chunk-654ERHA7.js.map → chunk-5WRI5ZAA.js.map} +0 -0
- /package/dist/{chunk-A4IBBWGO.js.map → chunk-RALHHPTU.js.map} +0 -0
- /package/dist/{chunk-QREWE3NR.js.map → chunk-YONQYTVH.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { A as AbstractPowerSyncDatabase } from './types-
|
|
2
|
-
export { k as CacheStats, i as ClassifiedError, j as CompactResult, h as CompletedTransaction, b as ConnectionHealth, o as CountRow, C as CrudEntry, l as CrudTransaction, n as DbStatRow, D as DownloadProgress, E as EntitySyncState, F as FailedTransaction, r as FreelistCountRow, s as IntegrityCheckRow, I as IntegrityResult, q as PageCountRow, p as PageSizeRow, P as PowerSyncBackendConnector, m as SqliteTableRow, c as StorageInfo, d as StorageQuota, f as SyncError, g as SyncErrorType, e as SyncMetrics, S as SyncMode, a as SyncStatus, T as TableCacheStats, U as UploadBlockReason } from './types-
|
|
1
|
+
import { A as AbstractPowerSyncDatabase } from './types-B9MptP7E.js';
|
|
2
|
+
export { k as CacheStats, i as ClassifiedError, j as CompactResult, h as CompletedTransaction, b as ConnectionHealth, o as CountRow, C as CrudEntry, l as CrudTransaction, n as DbStatRow, D as DownloadProgress, E as EntitySyncState, F as FailedTransaction, r as FreelistCountRow, s as IntegrityCheckRow, I as IntegrityResult, q as PageCountRow, p as PageSizeRow, P as PowerSyncBackendConnector, m as SqliteTableRow, c as StorageInfo, d as StorageQuota, f as SyncError, g as SyncErrorType, e as SyncMetrics, S as SyncMode, a as SyncStatus, T as TableCacheStats, U as UploadBlockReason } from './types-B9MptP7E.js';
|
|
3
3
|
export { ATTACHMENT_DOWNLOAD_TIMEOUT_MS, ATTACHMENT_RETRY_DELAY_MS, AttachmentError, COMPRESSION_MAX_WIDTH, COMPRESSION_SKIP_SIZE_BYTES, COMPRESSION_TARGET_SIZE_BYTES, ConfigurationError, ConnectorError, DEFAULT_ATTACHMENT_CACHE_SIZE, DEFAULT_ATTACHMENT_CONCURRENCY, DEFAULT_COMPRESSION_QUALITY, DEFAULT_MAX_RETRY_ATTEMPTS, DEFAULT_RETRY_BACKOFF_MULTIPLIER, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, DEFAULT_SYNC_INTERVAL_MS, DEFAULT_SYNC_MODE, DOWNLOAD_STOP_THRESHOLD, EVICTION_TRIGGER_THRESHOLD, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, InitializationError, LATENCY_DEGRADED_THRESHOLD_MS, MAX_CONSECUTIVE_FAILURES, PlatformAdapterError, PowerSyncError, STATS_CACHE_TTL_MS, STATUS_NOTIFY_THROTTLE_MS, STORAGE_CRITICAL_THRESHOLD, STORAGE_KEY_ATTACHMENT_SETTINGS, STORAGE_KEY_AUTO_OFFLINE, STORAGE_KEY_ENABLED, STORAGE_KEY_METRICS, STORAGE_KEY_PAUSED, STORAGE_KEY_PREFIX, STORAGE_KEY_SYNC_MODE, STORAGE_WARNING_THRESHOLD, SyncOperationError, classifyError, classifySupabaseError, createSyncError, extractEntityIds, extractHttpStatusCode, extractTableNames, generateFailureId, isRlsError, toSyncOperationError } from './core/index.js';
|
|
4
|
-
import { m as ConflictDetectionConfig, j as ConflictCheckResult } from './types-
|
|
5
|
-
export { A as AuthProvider, i as ConflictBus, l as ConflictHandler, n as ConflictListener, k as ConflictResolution, C as ConnectorCircuitBreakerConfig, a as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, o as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, f as Session, S as SupabaseConnectorOptions, U as UploadErrorClassification, g as UploadErrorContext, h as UploadErrorMiddleware, d as defaultSchemaRouter } from './types-
|
|
6
|
-
export { S as SupabaseConnector } from './supabase-connector-
|
|
7
|
-
export { AuthRefreshError, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG, DiscardEntryError, SupabaseAuthOptions, TransactionAbortError, createSupabaseAuth, discardOnHttpStatus, discardOnPgCodes, discardOrphaned, idempotentTables, retryOnHttpStatus, runUploadErrorMiddleware, runUploadErrorMiddlewareSync, successOnPgCodes, tableHandlers } from './connector/index.js';
|
|
8
|
-
export {
|
|
9
|
-
export { CacheManagerDeps, DOWNLOAD_WORKFLOW_STATES, DownloadManagerDeps, LOCALLY_AVAILABLE_STATES, MigrationStats, PENDING_DOWNLOAD_STATES, PROTECTED_UPLOAD_STATES, PolStorageAdapter, PolStorageAdapterOptions, STATE_MAPPING, STATE_NAMES, TERMINAL_STATES, UPLOAD_WORKFLOW_STATES, UploadManagerDeps, UploadManagerState, VALID_STATES, blobToArrayBuffer, buildIdOnlyWatchQuery, buildRecordFetchQuery, buildWatchQuery, cacheLocalFile, clearCache, clearUploadCallback, copyToManagedCache, createCacheManagerDeps, createMigrationStats, createUploadManagerDeps, createUploadManagerState,
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
4
|
+
import { m as ConflictDetectionConfig, j as ConflictCheckResult } from './types-DqJnP50o.js';
|
|
5
|
+
export { A as AuthProvider, i as ConflictBus, l as ConflictHandler, n as ConflictListener, k as ConflictResolution, C as ConnectorCircuitBreakerConfig, a as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, o as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, f as Session, S as SupabaseConnectorOptions, U as UploadErrorClassification, g as UploadErrorContext, h as UploadErrorMiddleware, d as defaultSchemaRouter } from './types-DqJnP50o.js';
|
|
6
|
+
export { S as SupabaseConnector } from './supabase-connector-HMxBA9Kg.js';
|
|
7
|
+
export { AuthRefreshError, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG, DiscardEntryError, SupabaseAuthOptions, TransactionAbortError, createSupabaseAuth, discardOnHttpStatus, discardOnPgCodes, discardOnRlsDenied, discardOrphaned, idempotentTables, retryOnHttpStatus, runUploadErrorMiddleware, runUploadErrorMiddlewareSync, successOnPgCodes, tableHandlers } from './connector/index.js';
|
|
8
|
+
export { P as PolAttachmentQueue, a as PolAttachmentQueueOptions, c as createPolAttachmentQueue } from './pol-attachment-queue-DqBvLAEY.js';
|
|
9
|
+
export { CacheManagerDeps, DOWNLOAD_WORKFLOW_STATES, DownloadManagerDeps, LOCALLY_AVAILABLE_STATES, MigrationStats, PENDING_DOWNLOAD_STATES, PROTECTED_UPLOAD_STATES, PolStorageAdapter, PolStorageAdapterOptions, STATE_MAPPING, STATE_NAMES, TERMINAL_STATES, UPLOAD_WORKFLOW_STATES, UploadManagerDeps, UploadManagerState, VALID_STATES, blobToArrayBuffer, buildIdOnlyWatchQuery, buildRecordFetchQuery, buildWatchQuery, cacheLocalFile, clearCache, clearUploadCallback, copyToManagedCache, createCacheManagerDeps, createMigrationStats, createUploadManagerDeps, createUploadManagerState, createWatchPaths, determineAttachmentState, downloadRecord, enforceCacheLimit, ensureFileUri, extractErrorCode, extractIdsFromRows, formatMigrationStats, getCachedSize, getEvictionCandidates, getExcludeProtectedStatesCondition, getFailedPermanentUploads, getLocalUriForStoragePath, getPendingUploads, getProtectedStatesInClause, getSoonestRetryTime, getStaleUploads, getStateName, getSyncedUploadsWithPendingCallback, isCacheNearCapacity, isDownloadWorkflowState, isLocallyAvailable, isPendingDownloadState, isPermanentError, isProtectedUploadState, isStateTransitionAllowed, isTerminalState, isUploadWorkflowState, isValidAttachmentState, markUploadPermanentFailure, markUploadSynced, migrateAttachmentState, migrateAttachmentStateSafe, recordMigration, scheduleUploadRetry, startUploadProcessing, stripFileUri, uploadOne, validateSqlIdentifier, validateSqlIdentifierFromStateMachine, validateWhereClause, watchConfigToSourceConfig } from './attachments/index.js';
|
|
10
|
+
export { d as AttachmentConfig, z as AttachmentRecord, A as AttachmentSource, c as AttachmentSourceConfig, w as AttachmentStatsRow, e as AttachmentStorageAdapter, v as AttachmentSyncStats, u as AttachmentSyncStatus, m as CACHE_SIZE_PRESETS, k as CacheConfig, x as CacheFileRow, n as CacheSizePreset, o as CacheSizeValue, y as CachedSizeRow, f as CompressionConfig, C as CustomAttachmentSource, l as DEFAULT_CACHE_CONFIG, D as DEFAULT_COMPRESSION_CONFIG, j as DEFAULT_DOWNLOAD_CONFIG, g as DEFAULT_UPLOAD_CONFIG, i as DownloadConfig, q as DownloadPhase, r as DownloadStatus, E as EvictRow, I as IdRow, a as PolAttachmentRecord, A as PolAttachmentSource, P as PolAttachmentState, S as SimpleAttachmentConfig, b as SupabaseBucketSource, U as UploadConfig, h as UploadHandler, s as UploadPhase, t as UploadStatus, W as WatchConfig, p as formatCacheSize, H as getCustomUrlResolver, G as isCustomSource, F as isSignedUrlSource, B as resolveBucketFromConfig } from './types-JCEhw2Lf.js';
|
|
11
|
+
export { B as BackgroundSyncOptions, h as BackgroundSyncSystem, e as HealthCheckResult, H as HealthMonitorOptions, M as MetricsCollectorOptions, P as PowerSyncRawStatus, c as SyncControlActions, f as SyncEvent, g as SyncEventListener, d as SyncOperationData, S as SyncScope, a as SyncStatusState, b as SyncStatusTrackerOptions, U as Unsubscribe, i as defineBackgroundSyncTask, j as initializeBackgroundSync, k as isBackgroundSyncRegistered, r as registerBackgroundSync, u as unregisterBackgroundSync } from './background-sync-BujnI3IR.js';
|
|
12
|
+
export { CompletedTransactionsTable, DeadLetterEntry, DeadLetterQueue, DeadLetterQueueListener, DeadLetterQueueOptions, DeadLetterReason, FailedTransactionsTable, HealthMonitor, LOCAL_ONLY_TABLES, LOCAL_TABLE_NAMES, MetricsCollector, SyncStatusTracker, createDeadLetterEntry, generateDLQEntryId } from './sync/index.js';
|
|
13
|
+
export { createSchemaRouter, definePolConfig, generatePowerSyncSchema, getTableFromSchema, getTableStrategy, isProcessedPolConfig, isTablePowerSync, normalizeTableSpec } from './config/index.js';
|
|
12
14
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
13
15
|
export { DatabaseMaintenanceUtils, checkIntegrityImpl, checkStorageQuotaImpl, compactDatabaseImpl, getCacheStatsImpl, useDatabaseMaintenance } from './maintenance/index.js';
|
|
14
|
-
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from './types-
|
|
15
|
-
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from './CacheSettingsManager-
|
|
16
|
-
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-
|
|
16
|
+
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from './types-CGMibJKD.js';
|
|
17
|
+
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from './CacheSettingsManager-0H_7thHW.js';
|
|
18
|
+
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-6QHGELuY.js';
|
|
17
19
|
export { SupabaseUploadHandler, createSupabaseUploadHandler } from './storage/upload/index.js';
|
|
18
20
|
export { PowerSyncErrorBoundary } from './error/index.js';
|
|
19
|
-
export { AttachmentQueueContext, BackgroundSyncCallbacks, BackgroundSyncConfig, BackgroundSyncStatus, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, DataLayerConfig, DataLayerIntegration, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, OfflineDataAttachmentConfig,
|
|
20
|
-
export { AttachmentQueueContextValue,
|
|
21
|
+
export { AttachmentQueueContext, BackgroundSyncCallbacks, BackgroundSyncConfig, BackgroundSyncStatus, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, DataLayerConfig, DataLayerIntegration, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, OfflineDataAttachmentConfig, OfflineDataProviderConfig, OfflineDataProviderProps, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, PowerSyncSyncStatusSnapshot, ProviderBridge, ProviderBridgeProps, ResetSyncOptions, RetryCountdownResult, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UPLOAD_BACKOFF_DELAYS, UPLOAD_MAX_RETRIES, UploadBlockedReasonResult, UploadStatusResult, useAttachmentQueue, useAttachmentQueueReady, useCompletedTransactions, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactions, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useRetryCountdown, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadBlockedReason, useUploadRetry, useUploadStatus } from './provider/index.js';
|
|
22
|
+
export { AttachmentQueueContextValue, useAttachmentQueueContext, usePowerSyncContext, useSyncStatusContext } from './react/index.js';
|
|
21
23
|
export { AsyncStorageAdapter, CompressedImage, CompressionOptions, ConnectionType, DatabaseOptions, FileInfo, FileSystemAdapter, ImageProcessorAdapter, LoggerAdapter, NetworkAdapter, PlatformAdapter, PlatformType, detectPlatform } from './platform/index.js';
|
|
22
24
|
export { ATTACHMENT_TABLE, AbstractAttachmentQueue, AttachmentState, AttachmentTable, AttachmentTableOptions, AttachmentQueueOptions as BaseAttachmentQueueOptions, DEFAULT_ATTACHMENT_QUEUE_OPTIONS, EncodingType, AttachmentRecord as OfficialAttachmentRecord, StorageAdapter } from '@powersync/attachments';
|
|
23
25
|
export { AbstractPowerSyncDatabase as PowerSyncDBInterface } from '@powersync/common';
|
|
26
|
+
export { g as DatabaseColumnDef, D as DatabaseSchemaObject, f as DatabaseTableDef, P as PolConfig, c as PolConfigAttachments, d as PolConfigConnector, e as PolConfigSync, a as ProcessedPolConfig, b as ProcessedTableStrategy, T as TableSpec } from './types-BhAEsJj-.js';
|
|
27
|
+
import '@powersync/react-native';
|
|
24
28
|
import 'react';
|
|
25
29
|
import '@tanstack/react-query';
|
|
26
|
-
import '@powersync/react-native';
|
|
27
30
|
|
|
28
31
|
/**
|
|
29
32
|
* Exponential backoff retry utilities for resilient network operations.
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-ANXWYQEJ.js";
|
|
2
2
|
import {
|
|
3
|
-
SlimPowerSyncProvider,
|
|
4
3
|
useAttachmentQueueContext,
|
|
5
4
|
usePowerSyncContext,
|
|
6
5
|
useSyncStatusContext
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RIDSPLE5.js";
|
|
7
|
+
import {
|
|
8
|
+
createSchemaRouter,
|
|
9
|
+
definePolConfig,
|
|
10
|
+
generatePowerSyncSchema,
|
|
11
|
+
getTableFromSchema,
|
|
12
|
+
getTableStrategy,
|
|
13
|
+
isProcessedPolConfig,
|
|
14
|
+
isTablePowerSync,
|
|
15
|
+
normalizeTableSpec
|
|
16
|
+
} from "./chunk-HRAVPIAZ.js";
|
|
8
17
|
import {
|
|
9
18
|
DOWNLOAD_WORKFLOW_STATES,
|
|
10
19
|
STATE_MAPPING,
|
|
@@ -16,7 +25,7 @@ import {
|
|
|
16
25
|
buildRecordFetchQuery,
|
|
17
26
|
buildWatchQuery,
|
|
18
27
|
createMigrationStats,
|
|
19
|
-
|
|
28
|
+
createWatchPaths,
|
|
20
29
|
extractIdsFromRows,
|
|
21
30
|
formatMigrationStats,
|
|
22
31
|
getStateName,
|
|
@@ -30,19 +39,17 @@ import {
|
|
|
30
39
|
validateSqlIdentifier as validateSqlIdentifier2,
|
|
31
40
|
validateWhereClause,
|
|
32
41
|
watchConfigToSourceConfig
|
|
33
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EOW7JK7Q.js";
|
|
43
|
+
import {
|
|
44
|
+
PowerSyncErrorBoundary
|
|
45
|
+
} from "./chunk-P6WOZO7H.js";
|
|
34
46
|
import {
|
|
35
47
|
ConflictBus,
|
|
36
|
-
OfflineDataProvider,
|
|
37
48
|
PowerSyncProvider,
|
|
38
49
|
ProviderBridge,
|
|
39
50
|
UPLOAD_BACKOFF_DELAYS,
|
|
40
51
|
UPLOAD_MAX_RETRIES
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-YHTZ7VMV.js";
|
|
43
|
-
import {
|
|
44
|
-
PowerSyncErrorBoundary
|
|
45
|
-
} from "./chunk-P6WOZO7H.js";
|
|
52
|
+
} from "./chunk-P4D6BQ4X.js";
|
|
46
53
|
import {
|
|
47
54
|
ATTACHMENT_TABLE,
|
|
48
55
|
AbstractAttachmentQueue,
|
|
@@ -77,6 +84,7 @@ import {
|
|
|
77
84
|
extractErrorCode,
|
|
78
85
|
formatCacheSize,
|
|
79
86
|
getCachedSize,
|
|
87
|
+
getCustomUrlResolver,
|
|
80
88
|
getEvictionCandidates,
|
|
81
89
|
getExcludeProtectedStatesCondition,
|
|
82
90
|
getExtensionFromMimeType,
|
|
@@ -91,22 +99,25 @@ import {
|
|
|
91
99
|
getSyncedUploadsWithPendingCallback,
|
|
92
100
|
isAudioMimeType,
|
|
93
101
|
isCacheNearCapacity,
|
|
102
|
+
isCustomSource,
|
|
94
103
|
isDocumentMimeType,
|
|
95
104
|
isImageMimeType,
|
|
96
105
|
isLocallyAvailable,
|
|
97
106
|
isPendingDownloadState,
|
|
98
107
|
isPermanentError,
|
|
99
108
|
isProtectedUploadState,
|
|
109
|
+
isSignedUrlSource,
|
|
100
110
|
isStateTransitionAllowed,
|
|
101
111
|
isVideoMimeType,
|
|
102
112
|
markUploadPermanentFailure,
|
|
103
113
|
markUploadSynced,
|
|
114
|
+
resolveBucketFromConfig,
|
|
104
115
|
scheduleUploadRetry,
|
|
105
116
|
startUploadProcessing,
|
|
106
117
|
stripFileUri,
|
|
107
118
|
uploadOne,
|
|
108
119
|
validateSqlIdentifier
|
|
109
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-PGEDE6IM.js";
|
|
110
121
|
import {
|
|
111
122
|
DeadLetterQueue,
|
|
112
123
|
createDeadLetterEntry,
|
|
@@ -116,18 +127,22 @@ import {
|
|
|
116
127
|
isBackgroundSyncRegistered,
|
|
117
128
|
registerBackgroundSync,
|
|
118
129
|
unregisterBackgroundSync
|
|
119
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-RALHHPTU.js";
|
|
120
131
|
import {
|
|
132
|
+
DEFAULT_CONNECTION_HEALTH,
|
|
133
|
+
DEFAULT_SYNC_CONFIG,
|
|
134
|
+
DEFAULT_SYNC_METRICS,
|
|
135
|
+
DEFAULT_SYNC_STATUS,
|
|
121
136
|
HealthMonitor,
|
|
122
137
|
MetricsCollector,
|
|
123
138
|
SyncStatusTracker
|
|
124
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-2RDWLXJW.js";
|
|
125
140
|
import {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
141
|
+
CompletedTransactionsTable,
|
|
142
|
+
FailedTransactionsTable,
|
|
143
|
+
LOCAL_ONLY_TABLES,
|
|
144
|
+
LOCAL_TABLE_NAMES
|
|
145
|
+
} from "./chunk-OGUFUZSY.js";
|
|
131
146
|
import {
|
|
132
147
|
checkIntegrityImpl,
|
|
133
148
|
checkStorageQuotaImpl,
|
|
@@ -135,7 +150,7 @@ import {
|
|
|
135
150
|
formatBytes,
|
|
136
151
|
getCacheStatsImpl,
|
|
137
152
|
useDatabaseMaintenance
|
|
138
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-YONQYTVH.js";
|
|
139
154
|
import {
|
|
140
155
|
AttachmentQueueContext,
|
|
141
156
|
CompletedTransactionsContext,
|
|
@@ -176,32 +191,33 @@ import {
|
|
|
176
191
|
useUploadBlockedReason,
|
|
177
192
|
useUploadRetry,
|
|
178
193
|
useUploadStatus
|
|
179
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-74TBHWJ4.js";
|
|
180
195
|
import "./chunk-T4AO7JIG.js";
|
|
181
|
-
import "./chunk-
|
|
196
|
+
import "./chunk-TGBT5XBE.js";
|
|
197
|
+
import {
|
|
198
|
+
SupabaseUploadHandler,
|
|
199
|
+
createSupabaseUploadHandler
|
|
200
|
+
} from "./chunk-4665ZSE5.js";
|
|
182
201
|
import {
|
|
183
202
|
CacheSettingsManager,
|
|
184
203
|
DEFAULT_CACHE_SETTINGS,
|
|
185
204
|
createSupabaseStorage,
|
|
186
205
|
isBlobResult,
|
|
187
206
|
isFileResult
|
|
188
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-4F5B5CZ7.js";
|
|
208
|
+
import {
|
|
209
|
+
DEFAULT_UPLOAD_NOTIFICATION
|
|
210
|
+
} from "./chunk-ZAN22NGL.js";
|
|
189
211
|
import {
|
|
190
212
|
SupabaseStorageAdapter,
|
|
191
213
|
createSupabaseStorageAdapter,
|
|
192
214
|
getStorageErrorMessage,
|
|
193
215
|
isStorageAuthError,
|
|
194
216
|
normalizeStoragePath
|
|
195
|
-
} from "./chunk-
|
|
196
|
-
import "./chunk-TGBT5XBE.js";
|
|
197
|
-
import {
|
|
198
|
-
SupabaseUploadHandler,
|
|
199
|
-
createSupabaseUploadHandler
|
|
200
|
-
} from "./chunk-P4HZA6ZT.js";
|
|
217
|
+
} from "./chunk-NUGQOTEM.js";
|
|
201
218
|
import {
|
|
202
|
-
DEFAULT_UPLOAD_NOTIFICATION,
|
|
203
219
|
resolveBucket
|
|
204
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-UOMHWUHV.js";
|
|
205
221
|
import {
|
|
206
222
|
AbortError,
|
|
207
223
|
DEFAULT_BACKOFF_CONFIG,
|
|
@@ -245,7 +261,6 @@ import {
|
|
|
245
261
|
STORAGE_KEY_SYNC_MODE,
|
|
246
262
|
STORAGE_WARNING_THRESHOLD
|
|
247
263
|
} from "./chunk-CGL33PL4.js";
|
|
248
|
-
import "./chunk-WN5ZJ3E2.js";
|
|
249
264
|
import {
|
|
250
265
|
AuthRefreshError,
|
|
251
266
|
CircuitBreaker,
|
|
@@ -263,6 +278,7 @@ import {
|
|
|
263
278
|
detectConflicts,
|
|
264
279
|
discardOnHttpStatus,
|
|
265
280
|
discardOnPgCodes,
|
|
281
|
+
discardOnRlsDenied,
|
|
266
282
|
discardOrphaned,
|
|
267
283
|
fetchServerVersion,
|
|
268
284
|
getLocalVersion,
|
|
@@ -273,7 +289,7 @@ import {
|
|
|
273
289
|
runUploadErrorMiddlewareSync,
|
|
274
290
|
successOnPgCodes,
|
|
275
291
|
tableHandlers
|
|
276
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-65A3SYJZ.js";
|
|
277
293
|
import {
|
|
278
294
|
AttachmentError,
|
|
279
295
|
ConfigurationError,
|
|
@@ -292,6 +308,7 @@ import {
|
|
|
292
308
|
isRlsError,
|
|
293
309
|
toSyncOperationError
|
|
294
310
|
} from "./chunk-I2AYMY5O.js";
|
|
311
|
+
import "./chunk-5WRI5ZAA.js";
|
|
295
312
|
export {
|
|
296
313
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
297
314
|
ATTACHMENT_RETRY_DELAY_MS,
|
|
@@ -311,6 +328,7 @@ export {
|
|
|
311
328
|
CircuitBreaker,
|
|
312
329
|
CircuitOpenError,
|
|
313
330
|
CompletedTransactionsContext,
|
|
331
|
+
CompletedTransactionsTable,
|
|
314
332
|
ConfigurationError,
|
|
315
333
|
ConflictBus,
|
|
316
334
|
ConflictDetectionError,
|
|
@@ -347,15 +365,17 @@ export {
|
|
|
347
365
|
EVICTION_TRIGGER_THRESHOLD,
|
|
348
366
|
EncodingType,
|
|
349
367
|
FailedTransactionsContext,
|
|
368
|
+
FailedTransactionsTable,
|
|
350
369
|
HEALTH_CHECK_INTERVAL_MS,
|
|
351
370
|
HEALTH_CHECK_TIMEOUT_MS,
|
|
352
371
|
HealthMonitor,
|
|
353
372
|
InitializationError,
|
|
354
373
|
LATENCY_DEGRADED_THRESHOLD_MS,
|
|
355
374
|
LOCALLY_AVAILABLE_STATES,
|
|
375
|
+
LOCAL_ONLY_TABLES,
|
|
376
|
+
LOCAL_TABLE_NAMES,
|
|
356
377
|
MAX_CONSECUTIVE_FAILURES,
|
|
357
378
|
MetricsCollector,
|
|
358
|
-
OfflineDataProvider,
|
|
359
379
|
PENDING_DOWNLOAD_STATES,
|
|
360
380
|
PROTECTED_UPLOAD_STATES,
|
|
361
381
|
PendingMutationsContext,
|
|
@@ -382,7 +402,6 @@ export {
|
|
|
382
402
|
STORAGE_KEY_PREFIX,
|
|
383
403
|
STORAGE_KEY_SYNC_MODE,
|
|
384
404
|
STORAGE_WARNING_THRESHOLD,
|
|
385
|
-
SlimPowerSyncProvider,
|
|
386
405
|
SupabaseConnector,
|
|
387
406
|
SupabaseStorageAdapter,
|
|
388
407
|
SupabaseUploadHandler,
|
|
@@ -417,6 +436,7 @@ export {
|
|
|
417
436
|
createDeadLetterEntry,
|
|
418
437
|
createMigrationStats,
|
|
419
438
|
createPolAttachmentQueue,
|
|
439
|
+
createSchemaRouter,
|
|
420
440
|
createSupabaseAuth,
|
|
421
441
|
createSupabaseStorage,
|
|
422
442
|
createSupabaseStorageAdapter,
|
|
@@ -424,13 +444,15 @@ export {
|
|
|
424
444
|
createSyncError,
|
|
425
445
|
createUploadManagerDeps,
|
|
426
446
|
createUploadManagerState,
|
|
427
|
-
|
|
447
|
+
createWatchPaths,
|
|
428
448
|
defaultSchemaRouter,
|
|
429
449
|
defineBackgroundSyncTask,
|
|
450
|
+
definePolConfig,
|
|
430
451
|
detectConflicts,
|
|
431
452
|
determineAttachmentState,
|
|
432
453
|
discardOnHttpStatus,
|
|
433
454
|
discardOnPgCodes,
|
|
455
|
+
discardOnRlsDenied,
|
|
434
456
|
discardOrphaned,
|
|
435
457
|
downloadRecord,
|
|
436
458
|
enforceCacheLimit,
|
|
@@ -446,8 +468,10 @@ export {
|
|
|
446
468
|
formatMigrationStats,
|
|
447
469
|
generateDLQEntryId,
|
|
448
470
|
generateFailureId,
|
|
471
|
+
generatePowerSyncSchema,
|
|
449
472
|
getCacheStatsImpl,
|
|
450
473
|
getCachedSize,
|
|
474
|
+
getCustomUrlResolver,
|
|
451
475
|
getEvictionCandidates,
|
|
452
476
|
getExcludeProtectedStatesCondition,
|
|
453
477
|
getExtensionFromMimeType,
|
|
@@ -463,6 +487,8 @@ export {
|
|
|
463
487
|
getStateName,
|
|
464
488
|
getStorageErrorMessage,
|
|
465
489
|
getSyncedUploadsWithPendingCallback,
|
|
490
|
+
getTableFromSchema,
|
|
491
|
+
getTableStrategy,
|
|
466
492
|
hasVersionColumn,
|
|
467
493
|
idempotentTables,
|
|
468
494
|
initializeBackgroundSync,
|
|
@@ -470,6 +496,7 @@ export {
|
|
|
470
496
|
isBackgroundSyncRegistered,
|
|
471
497
|
isBlobResult,
|
|
472
498
|
isCacheNearCapacity,
|
|
499
|
+
isCustomSource,
|
|
473
500
|
isDocumentMimeType,
|
|
474
501
|
isDownloadWorkflowState,
|
|
475
502
|
isFileResult,
|
|
@@ -477,10 +504,13 @@ export {
|
|
|
477
504
|
isLocallyAvailable,
|
|
478
505
|
isPendingDownloadState,
|
|
479
506
|
isPermanentError,
|
|
507
|
+
isProcessedPolConfig,
|
|
480
508
|
isProtectedUploadState,
|
|
481
509
|
isRlsError,
|
|
510
|
+
isSignedUrlSource,
|
|
482
511
|
isStateTransitionAllowed,
|
|
483
512
|
isStorageAuthError,
|
|
513
|
+
isTablePowerSync,
|
|
484
514
|
isTerminalState,
|
|
485
515
|
isUploadWorkflowState,
|
|
486
516
|
isValidAttachmentState,
|
|
@@ -490,9 +520,11 @@ export {
|
|
|
490
520
|
migrateAttachmentState,
|
|
491
521
|
migrateAttachmentStateSafe,
|
|
492
522
|
normalizeStoragePath,
|
|
523
|
+
normalizeTableSpec,
|
|
493
524
|
recordMigration,
|
|
494
525
|
registerBackgroundSync,
|
|
495
526
|
resolveBucket,
|
|
527
|
+
resolveBucketFromConfig,
|
|
496
528
|
retryOnHttpStatus,
|
|
497
529
|
runUploadErrorMiddleware,
|
|
498
530
|
runUploadErrorMiddlewareSync,
|
package/dist/index.native.d.ts
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
export { A as AbstractPowerSyncDatabase, k as CacheStats, i as ClassifiedError, j as CompactResult, h as CompletedTransaction, b as ConnectionHealth, o as CountRow, C as CrudEntry, l as CrudTransaction, n as DbStatRow, D as DownloadProgress, E as EntitySyncState, F as FailedTransaction, r as FreelistCountRow, s as IntegrityCheckRow, I as IntegrityResult, q as PageCountRow, p as PageSizeRow, P as PowerSyncBackendConnector, m as SqliteTableRow, c as StorageInfo, d as StorageQuota, f as SyncError, g as SyncErrorType, e as SyncMetrics, S as SyncMode, a as SyncStatus, T as TableCacheStats, U as UploadBlockReason } from './types-
|
|
1
|
+
export { A as AbstractPowerSyncDatabase, k as CacheStats, i as ClassifiedError, j as CompactResult, h as CompletedTransaction, b as ConnectionHealth, o as CountRow, C as CrudEntry, l as CrudTransaction, n as DbStatRow, D as DownloadProgress, E as EntitySyncState, F as FailedTransaction, r as FreelistCountRow, s as IntegrityCheckRow, I as IntegrityResult, q as PageCountRow, p as PageSizeRow, P as PowerSyncBackendConnector, m as SqliteTableRow, c as StorageInfo, d as StorageQuota, f as SyncError, g as SyncErrorType, e as SyncMetrics, S as SyncMode, a as SyncStatus, T as TableCacheStats, U as UploadBlockReason } from './types-B9MptP7E.js';
|
|
2
2
|
export { ATTACHMENT_DOWNLOAD_TIMEOUT_MS, ATTACHMENT_RETRY_DELAY_MS, AttachmentError, COMPRESSION_MAX_WIDTH, COMPRESSION_SKIP_SIZE_BYTES, COMPRESSION_TARGET_SIZE_BYTES, ConfigurationError, ConnectorError, DEFAULT_ATTACHMENT_CACHE_SIZE, DEFAULT_ATTACHMENT_CONCURRENCY, DEFAULT_COMPRESSION_QUALITY, DEFAULT_MAX_RETRY_ATTEMPTS, DEFAULT_RETRY_BACKOFF_MULTIPLIER, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, DEFAULT_SYNC_INTERVAL_MS, DEFAULT_SYNC_MODE, DOWNLOAD_STOP_THRESHOLD, EVICTION_TRIGGER_THRESHOLD, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, InitializationError, LATENCY_DEGRADED_THRESHOLD_MS, MAX_CONSECUTIVE_FAILURES, PlatformAdapterError, PowerSyncError, STATS_CACHE_TTL_MS, STATUS_NOTIFY_THROTTLE_MS, STORAGE_CRITICAL_THRESHOLD, STORAGE_KEY_ATTACHMENT_SETTINGS, STORAGE_KEY_AUTO_OFFLINE, STORAGE_KEY_ENABLED, STORAGE_KEY_METRICS, STORAGE_KEY_PAUSED, STORAGE_KEY_PREFIX, STORAGE_KEY_SYNC_MODE, STORAGE_WARNING_THRESHOLD, SyncOperationError, classifyError, classifySupabaseError, createSyncError, extractEntityIds, extractHttpStatusCode, extractTableNames, generateFailureId, isRlsError, toSyncOperationError } from './core/index.js';
|
|
3
|
-
export { A as AuthProvider, i as ConflictBus, j as ConflictCheckResult, m as ConflictDetectionConfig, l as ConflictHandler, n as ConflictListener, k as ConflictResolution, C as ConnectorCircuitBreakerConfig, a as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, o as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, f as Session, S as SupabaseConnectorOptions, U as UploadErrorClassification, g as UploadErrorContext, h as UploadErrorMiddleware, d as defaultSchemaRouter } from './types-
|
|
4
|
-
export { S as SupabaseConnector } from './supabase-connector-
|
|
5
|
-
export { AuthRefreshError, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG, DiscardEntryError, SupabaseAuthOptions, TransactionAbortError, createSupabaseAuth, discardOnHttpStatus, discardOnPgCodes, discardOrphaned, idempotentTables, retryOnHttpStatus, runUploadErrorMiddleware, runUploadErrorMiddlewareSync, successOnPgCodes, tableHandlers } from './connector/index.js';
|
|
6
|
-
export {
|
|
7
|
-
export { CacheManagerDeps, DOWNLOAD_WORKFLOW_STATES, DownloadManagerDeps, LOCALLY_AVAILABLE_STATES, MigrationStats, PENDING_DOWNLOAD_STATES, PROTECTED_UPLOAD_STATES, PolStorageAdapter, PolStorageAdapterOptions, STATE_MAPPING, STATE_NAMES, TERMINAL_STATES, UPLOAD_WORKFLOW_STATES, UploadManagerDeps, UploadManagerState, VALID_STATES, blobToArrayBuffer, buildIdOnlyWatchQuery, buildRecordFetchQuery, buildWatchQuery, cacheLocalFile, clearCache, clearUploadCallback, copyToManagedCache, createCacheManagerDeps, createMigrationStats, createUploadManagerDeps, createUploadManagerState,
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
3
|
+
export { A as AuthProvider, i as ConflictBus, j as ConflictCheckResult, m as ConflictDetectionConfig, l as ConflictHandler, n as ConflictListener, k as ConflictResolution, C as ConnectorCircuitBreakerConfig, a as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, o as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, f as Session, S as SupabaseConnectorOptions, U as UploadErrorClassification, g as UploadErrorContext, h as UploadErrorMiddleware, d as defaultSchemaRouter } from './types-DqJnP50o.js';
|
|
4
|
+
export { S as SupabaseConnector } from './supabase-connector-HMxBA9Kg.js';
|
|
5
|
+
export { AuthRefreshError, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG, DiscardEntryError, SupabaseAuthOptions, TransactionAbortError, createSupabaseAuth, discardOnHttpStatus, discardOnPgCodes, discardOnRlsDenied, discardOrphaned, idempotentTables, retryOnHttpStatus, runUploadErrorMiddleware, runUploadErrorMiddlewareSync, successOnPgCodes, tableHandlers } from './connector/index.js';
|
|
6
|
+
export { P as PolAttachmentQueue, a as PolAttachmentQueueOptions, c as createPolAttachmentQueue } from './pol-attachment-queue-DqBvLAEY.js';
|
|
7
|
+
export { CacheManagerDeps, DOWNLOAD_WORKFLOW_STATES, DownloadManagerDeps, LOCALLY_AVAILABLE_STATES, MigrationStats, PENDING_DOWNLOAD_STATES, PROTECTED_UPLOAD_STATES, PolStorageAdapter, PolStorageAdapterOptions, STATE_MAPPING, STATE_NAMES, TERMINAL_STATES, UPLOAD_WORKFLOW_STATES, UploadManagerDeps, UploadManagerState, VALID_STATES, blobToArrayBuffer, buildIdOnlyWatchQuery, buildRecordFetchQuery, buildWatchQuery, cacheLocalFile, clearCache, clearUploadCallback, copyToManagedCache, createCacheManagerDeps, createMigrationStats, createUploadManagerDeps, createUploadManagerState, createWatchPaths, determineAttachmentState, downloadRecord, enforceCacheLimit, ensureFileUri, extractErrorCode, extractIdsFromRows, formatMigrationStats, getCachedSize, getEvictionCandidates, getExcludeProtectedStatesCondition, getFailedPermanentUploads, getLocalUriForStoragePath, getPendingUploads, getProtectedStatesInClause, getSoonestRetryTime, getStaleUploads, getStateName, getSyncedUploadsWithPendingCallback, isCacheNearCapacity, isDownloadWorkflowState, isLocallyAvailable, isPendingDownloadState, isPermanentError, isProtectedUploadState, isStateTransitionAllowed, isTerminalState, isUploadWorkflowState, isValidAttachmentState, markUploadPermanentFailure, markUploadSynced, migrateAttachmentState, migrateAttachmentStateSafe, recordMigration, scheduleUploadRetry, startUploadProcessing, stripFileUri, uploadOne, validateSqlIdentifier, validateSqlIdentifierFromStateMachine, validateWhereClause, watchConfigToSourceConfig } from './attachments/index.js';
|
|
8
|
+
export { d as AttachmentConfig, z as AttachmentRecord, A as AttachmentSource, c as AttachmentSourceConfig, w as AttachmentStatsRow, e as AttachmentStorageAdapter, v as AttachmentSyncStats, u as AttachmentSyncStatus, m as CACHE_SIZE_PRESETS, k as CacheConfig, x as CacheFileRow, n as CacheSizePreset, o as CacheSizeValue, y as CachedSizeRow, f as CompressionConfig, C as CustomAttachmentSource, l as DEFAULT_CACHE_CONFIG, D as DEFAULT_COMPRESSION_CONFIG, j as DEFAULT_DOWNLOAD_CONFIG, g as DEFAULT_UPLOAD_CONFIG, i as DownloadConfig, q as DownloadPhase, r as DownloadStatus, E as EvictRow, I as IdRow, a as PolAttachmentRecord, A as PolAttachmentSource, P as PolAttachmentState, S as SimpleAttachmentConfig, b as SupabaseBucketSource, U as UploadConfig, h as UploadHandler, s as UploadPhase, t as UploadStatus, W as WatchConfig, p as formatCacheSize, H as getCustomUrlResolver, G as isCustomSource, F as isSignedUrlSource, B as resolveBucketFromConfig } from './types-JCEhw2Lf.js';
|
|
9
|
+
export { B as BackgroundSyncOptions, h as BackgroundSyncSystem, e as HealthCheckResult, H as HealthMonitorOptions, M as MetricsCollectorOptions, P as PowerSyncRawStatus, c as SyncControlActions, f as SyncEvent, g as SyncEventListener, d as SyncOperationData, S as SyncScope, a as SyncStatusState, b as SyncStatusTrackerOptions, U as Unsubscribe, i as defineBackgroundSyncTask, j as initializeBackgroundSync, k as isBackgroundSyncRegistered, r as registerBackgroundSync, u as unregisterBackgroundSync } from './background-sync-BujnI3IR.js';
|
|
10
|
+
export { CompletedTransactionsTable, DeadLetterEntry, DeadLetterQueue, DeadLetterQueueListener, DeadLetterQueueOptions, DeadLetterReason, FailedTransactionsTable, HealthMonitor, LOCAL_ONLY_TABLES, LOCAL_TABLE_NAMES, MetricsCollector, SyncStatusTracker, createDeadLetterEntry, generateDLQEntryId } from './sync/index.js';
|
|
10
11
|
export { AbortError, BackoffConfig, BackoffOptions, ConflictDetectionError, DEFAULT_BACKOFF_CONFIG, RetryExhaustedError, addJitter, calculateBackoffDelay, detectConflicts, fetchServerVersion, formatBytes, getExtensionFromMimeType, getLocalVersion, getMimeType, getMimeTypeFromPath, hasVersionColumn, isAudioMimeType, isDocumentMimeType, isImageMimeType, isVideoMimeType, sleep, withExponentialBackoff } from './index.js';
|
|
12
|
+
export { createSchemaRouter, definePolConfig, generatePowerSyncSchema, getTableFromSchema, getTableStrategy, isProcessedPolConfig, isTablePowerSync, normalizeTableSpec } from './config/index.js';
|
|
11
13
|
export { DatabaseMaintenanceUtils, checkIntegrityImpl, checkStorageQuotaImpl, compactDatabaseImpl, getCacheStatsImpl, useDatabaseMaintenance } from './maintenance/index.js';
|
|
12
|
-
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from './types-
|
|
13
|
-
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from './CacheSettingsManager-
|
|
14
|
-
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-
|
|
14
|
+
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from './types-CGMibJKD.js';
|
|
15
|
+
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from './CacheSettingsManager-0H_7thHW.js';
|
|
16
|
+
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-6QHGELuY.js';
|
|
15
17
|
export { SupabaseUploadHandler, createSupabaseUploadHandler } from './storage/upload/index.js';
|
|
16
18
|
export { PowerSyncErrorBoundary } from './error/index.js';
|
|
17
|
-
export { AttachmentQueueContext, BackgroundSyncCallbacks, BackgroundSyncConfig, BackgroundSyncStatus, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, DataLayerConfig, DataLayerIntegration, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, OfflineDataAttachmentConfig,
|
|
18
|
-
export { AttachmentQueueContextValue,
|
|
19
|
+
export { AttachmentQueueContext, BackgroundSyncCallbacks, BackgroundSyncConfig, BackgroundSyncStatus, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, DataLayerConfig, DataLayerIntegration, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, OfflineDataAttachmentConfig, OfflineDataProviderConfig, OfflineDataProviderProps, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, PowerSyncSyncStatusSnapshot, ProviderBridge, ProviderBridgeProps, ResetSyncOptions, RetryCountdownResult, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UPLOAD_BACKOFF_DELAYS, UPLOAD_MAX_RETRIES, UploadBlockedReasonResult, UploadStatusResult, useAttachmentQueue, useAttachmentQueueReady, useCompletedTransactions, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactions, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useRetryCountdown, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadBlockedReason, useUploadRetry, useUploadStatus } from './provider/index.js';
|
|
20
|
+
export { AttachmentQueueContextValue, useAttachmentQueueContext, usePowerSyncContext, useSyncStatusContext } from './react/index.js';
|
|
19
21
|
export { AsyncStorageAdapter, CompressedImage, CompressionOptions, ConnectionType, DatabaseOptions, FileInfo, FileSystemAdapter, ImageProcessorAdapter, LoggerAdapter, NetworkAdapter, PlatformAdapter, PlatformType, detectPlatform } from './platform/index.js';
|
|
20
22
|
export { createNativePlatformAdapter } from './platform/index.native.js';
|
|
23
|
+
export { OfflineDataProvider } from './provider/index.native.js';
|
|
21
24
|
export { ATTACHMENT_TABLE, AbstractAttachmentQueue, AttachmentState, AttachmentTable, AttachmentTableOptions, AttachmentQueueOptions as BaseAttachmentQueueOptions, DEFAULT_ATTACHMENT_QUEUE_OPTIONS, EncodingType, AttachmentRecord as OfficialAttachmentRecord, StorageAdapter } from '@powersync/attachments';
|
|
22
25
|
export { AbstractPowerSyncDatabase as PowerSyncDBInterface } from '@powersync/common';
|
|
26
|
+
export { g as DatabaseColumnDef, D as DatabaseSchemaObject, f as DatabaseTableDef, P as PolConfig, c as PolConfigAttachments, d as PolConfigConnector, e as PolConfigSync, a as ProcessedPolConfig, b as ProcessedTableStrategy, T as TableSpec } from './types-BhAEsJj-.js';
|
|
23
27
|
import '@supabase/supabase-js';
|
|
28
|
+
import '@powersync/react-native';
|
|
24
29
|
import 'react';
|
|
25
30
|
import '@tanstack/react-query';
|
|
26
|
-
import '@powersync/react-native';
|