@hot-updater/plugin-core 1.0.0-rc.15 → 1.0.0-rc.17

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.
Files changed (151) hide show
  1. package/dist/coreApi.d.cts +131 -0
  2. package/dist/coreApi.d.mts +131 -0
  3. package/dist/database/adapter.cjs +46 -0
  4. package/dist/database/adapter.d.cts +183 -0
  5. package/dist/database/adapter.d.mts +183 -0
  6. package/dist/database/adapter.mjs +38 -0
  7. package/dist/{insightsDistinctSummary.mjs → database/distinct.cjs} +25 -11
  8. package/dist/database/distinct.d.cts +16 -0
  9. package/dist/database/distinct.d.mts +16 -0
  10. package/dist/{insightsDistinctSummary.cjs → database/distinct.mjs} +21 -15
  11. package/dist/database/memoryAdapter.cjs +115 -0
  12. package/dist/database/memoryAdapter.d.cts +16 -0
  13. package/dist/database/memoryAdapter.d.mts +16 -0
  14. package/dist/database/memoryAdapter.mjs +115 -0
  15. package/dist/database/values.cjs +110 -0
  16. package/dist/database/values.d.cts +30 -0
  17. package/dist/database/values.d.mts +30 -0
  18. package/dist/database/values.mjs +100 -0
  19. package/dist/database/verifyAdapter.cjs +136 -0
  20. package/dist/database/verifyAdapter.d.cts +29 -0
  21. package/dist/database/verifyAdapter.d.mts +29 -0
  22. package/dist/database/verifyAdapter.mjs +135 -0
  23. package/dist/databaseErrors.cjs +30 -0
  24. package/dist/databaseErrors.d.cts +21 -0
  25. package/dist/databaseErrors.d.mts +21 -0
  26. package/dist/databaseErrors.mjs +28 -0
  27. package/dist/databaseJsonValue.cjs +0 -2
  28. package/dist/databaseJsonValue.d.cts +3 -3
  29. package/dist/databaseJsonValue.d.mts +3 -3
  30. package/dist/databaseJsonValue.mjs +1 -2
  31. package/dist/databaseMetadata.cjs +2 -2
  32. package/dist/databaseMetadata.mjs +1 -1
  33. package/dist/index.cjs +9 -39
  34. package/dist/index.d.cts +13 -19
  35. package/dist/index.d.mts +13 -19
  36. package/dist/index.mjs +7 -14
  37. package/dist/internal.cjs +37 -20
  38. package/dist/internal.d.cts +11 -12
  39. package/dist/internal.d.mts +11 -12
  40. package/dist/internal.mjs +8 -6
  41. package/dist/releaseCatalogCompiler.cjs +1 -1
  42. package/dist/releaseCatalogCompiler.mjs +2 -2
  43. package/dist/releaseCatalogMutation.cjs +0 -292
  44. package/dist/releaseCatalogMutation.d.cts +4 -45
  45. package/dist/releaseCatalogMutation.d.mts +4 -45
  46. package/dist/releaseCatalogMutation.mjs +1 -288
  47. package/dist/releaseManagement.cjs +0 -221
  48. package/dist/releaseManagement.d.cts +4 -28
  49. package/dist/releaseManagement.d.mts +4 -28
  50. package/dist/releaseManagement.mjs +1 -216
  51. package/dist/types/databaseConfig.cjs +5 -0
  52. package/dist/types/databaseConfig.d.cts +61 -0
  53. package/dist/types/databaseConfig.d.mts +61 -0
  54. package/dist/types/databaseConfig.mjs +5 -0
  55. package/dist/types/databaseOperations.d.cts +5 -174
  56. package/dist/types/databaseOperations.d.mts +5 -174
  57. package/dist/types/databaseRows.d.cts +1 -53
  58. package/dist/types/databaseRows.d.mts +1 -53
  59. package/dist/types/index.cjs +2 -0
  60. package/dist/types/index.d.cts +8 -74
  61. package/dist/types/index.d.mts +8 -74
  62. package/dist/types/index.mjs +2 -1
  63. package/dist/types/internal.d.cts +4 -8
  64. package/dist/types/internal.d.mts +4 -8
  65. package/dist/types/models.d.cts +14 -0
  66. package/dist/types/models.d.mts +14 -0
  67. package/dist/types/public.d.cts +4 -3
  68. package/dist/types/public.d.mts +4 -3
  69. package/package.json +1 -1
  70. package/dist/calculatePagination.cjs +0 -25
  71. package/dist/calculatePagination.d.cts +0 -12
  72. package/dist/calculatePagination.d.mts +0 -12
  73. package/dist/calculatePagination.mjs +0 -25
  74. package/dist/createDatabasePlugin.cjs +0 -875
  75. package/dist/createDatabasePlugin.d.cts +0 -28
  76. package/dist/createDatabasePlugin.d.mts +0 -28
  77. package/dist/createDatabasePlugin.mjs +0 -871
  78. package/dist/databaseClient.cjs +0 -117
  79. package/dist/databaseClient.d.cts +0 -32
  80. package/dist/databaseClient.d.mts +0 -32
  81. package/dist/databaseClient.mjs +0 -114
  82. package/dist/databaseClientReads.cjs +0 -115
  83. package/dist/databaseClientReads.mjs +0 -113
  84. package/dist/databaseClientUpdates.cjs +0 -37
  85. package/dist/databaseClientUpdates.d.cts +0 -11
  86. package/dist/databaseClientUpdates.d.mts +0 -11
  87. package/dist/databaseClientUpdates.mjs +0 -35
  88. package/dist/databasePluginCrud.cjs +0 -87
  89. package/dist/databasePluginCrud.d.cts +0 -4
  90. package/dist/databasePluginCrud.d.mts +0 -4
  91. package/dist/databasePluginCrud.mjs +0 -86
  92. package/dist/databasePluginCrudValidation.d.cts +0 -6
  93. package/dist/databasePluginCrudValidation.d.mts +0 -6
  94. package/dist/databasePluginCrudValidationErrors.cjs +0 -11
  95. package/dist/databasePluginCrudValidationErrors.d.cts +0 -9
  96. package/dist/databasePluginCrudValidationErrors.d.mts +0 -9
  97. package/dist/databasePluginCrudValidationErrors.mjs +0 -11
  98. package/dist/databasePluginCrudValidationFields.cjs +0 -284
  99. package/dist/databasePluginCrudValidationFields.d.cts +0 -1
  100. package/dist/databasePluginCrudValidationFields.d.mts +0 -1
  101. package/dist/databasePluginCrudValidationFields.mjs +0 -272
  102. package/dist/databasePluginCrudValidationMutations.cjs +0 -88
  103. package/dist/databasePluginCrudValidationMutations.d.cts +0 -1
  104. package/dist/databasePluginCrudValidationMutations.d.mts +0 -1
  105. package/dist/databasePluginCrudValidationMutations.mjs +0 -82
  106. package/dist/databasePluginCrudValidationQueries.cjs +0 -103
  107. package/dist/databasePluginCrudValidationQueries.d.cts +0 -2
  108. package/dist/databasePluginCrudValidationQueries.d.mts +0 -2
  109. package/dist/databasePluginCrudValidationQueries.mjs +0 -97
  110. package/dist/databasePluginCrudValidationRows.cjs +0 -55
  111. package/dist/databasePluginCrudValidationRows.d.cts +0 -1
  112. package/dist/databasePluginCrudValidationRows.d.mts +0 -1
  113. package/dist/databasePluginCrudValidationRows.mjs +0 -53
  114. package/dist/databasePluginTransaction.cjs +0 -7
  115. package/dist/databasePluginTransaction.mjs +0 -7
  116. package/dist/insightsContract.cjs +0 -192
  117. package/dist/insightsContract.d.cts +0 -9
  118. package/dist/insightsContract.d.mts +0 -9
  119. package/dist/insightsContract.mjs +0 -189
  120. package/dist/insightsDistinctSummary.d.cts +0 -12
  121. package/dist/insightsDistinctSummary.d.mts +0 -12
  122. package/dist/insightsLatestQueries.cjs +0 -53
  123. package/dist/insightsLatestQueries.d.cts +0 -13
  124. package/dist/insightsLatestQueries.d.mts +0 -13
  125. package/dist/insightsLatestQueries.mjs +0 -52
  126. package/dist/insightsOverview.cjs +0 -139
  127. package/dist/insightsOverview.d.cts +0 -40
  128. package/dist/insightsOverview.d.mts +0 -40
  129. package/dist/insightsOverview.mjs +0 -135
  130. package/dist/paginateBundles.cjs +0 -53
  131. package/dist/paginateBundles.d.cts +0 -13
  132. package/dist/paginateBundles.d.mts +0 -13
  133. package/dist/paginateBundles.mjs +0 -53
  134. package/dist/queryBundles.cjs +0 -34
  135. package/dist/queryBundles.d.cts +0 -9
  136. package/dist/queryBundles.d.mts +0 -9
  137. package/dist/queryBundles.mjs +0 -32
  138. package/dist/requestBundleCache.cjs +0 -22
  139. package/dist/requestBundleCache.d.cts +0 -8
  140. package/dist/requestBundleCache.d.mts +0 -8
  141. package/dist/requestBundleCache.mjs +0 -22
  142. package/dist/types/database.d.cts +0 -5
  143. package/dist/types/database.d.mts +0 -5
  144. package/dist/types/databaseFields.cjs +0 -85
  145. package/dist/types/databaseFields.d.cts +0 -12
  146. package/dist/types/databaseFields.d.mts +0 -12
  147. package/dist/types/databaseFields.mjs +0 -85
  148. package/dist/types/databasePlugin.d.cts +0 -388
  149. package/dist/types/databasePlugin.d.mts +0 -388
  150. package/dist/types/databaseQuery.d.cts +0 -46
  151. package/dist/types/databaseQuery.d.mts +0 -46
package/dist/index.cjs CHANGED
@@ -1,42 +1,33 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_calculatePagination = require("./calculatePagination.cjs");
3
2
  const require_contentAddressedAssets = require("./contentAddressedAssets.cjs");
4
3
  const require_createStorageKeyBuilder = require("./createStorageKeyBuilder.cjs");
5
4
  const require_parseStorageUri = require("./parseStorageUri.cjs");
6
5
  const require_assetStorageLayout = require("./assetStorageLayout.cjs");
7
6
  const require_bundleStorageLayout = require("./bundleStorageLayout.cjs");
8
7
  const require_contentType = require("./contentType.cjs");
9
- const require_databasePluginCrudValidationErrors = require("./databasePluginCrudValidationErrors.cjs");
10
- const require_databaseJsonValue = require("./databaseJsonValue.cjs");
11
- const require_uuidv7 = require("./uuidv7.cjs");
12
- const require_insightsContract = require("./insightsContract.cjs");
13
- const require_createDatabasePlugin = require("./createDatabasePlugin.cjs");
8
+ const require_databaseErrors = require("./databaseErrors.cjs");
14
9
  const require_createStoragePlugin = require("./createStoragePlugin.cjs");
10
+ const require_databaseJsonValue = require("./databaseJsonValue.cjs");
15
11
  const require_databaseRows = require("./databaseRows.cjs");
16
- const require_databaseClientUpdates = require("./databaseClientUpdates.cjs");
17
- const require_databaseClient = require("./databaseClient.cjs");
18
12
  const require_semverSatisfies = require("./semverSatisfies.cjs");
19
13
  const require_filterCompatibleAppVersions = require("./filterCompatibleAppVersions.cjs");
20
14
  const require_generateMinBundleId = require("./generateMinBundleId.cjs");
21
- const require_queryBundles = require("./queryBundles.cjs");
22
- const require_paginateBundles = require("./paginateBundles.cjs");
23
- const require_requestBundleCache = require("./requestBundleCache.cjs");
15
+ const require_uuidv7 = require("./uuidv7.cjs");
24
16
  const require_releaseCatalogCompiler = require("./releaseCatalogCompiler.cjs");
25
- const require_releaseCatalogMutation = require("./releaseCatalogMutation.cjs");
26
17
  const require_releaseManagement = require("./releaseManagement.cjs");
18
+ const require_releaseCatalogMutation = require("./releaseCatalogMutation.cjs");
27
19
  const require_remoteBundleSigning = require("./remoteBundleSigning.cjs");
28
20
  const require_storageDownloadPath = require("./storageDownloadPath.cjs");
21
+ const require_databaseConfig = require("./types/databaseConfig.cjs");
29
22
  const require_index = require("./types/index.cjs");
30
23
  let _hot_updater_core = require("@hot-updater/core");
31
24
  exports.BUNDLE_STORAGE_PREFIX = require_bundleStorageLayout.BUNDLE_STORAGE_PREFIX;
32
25
  exports.BundleRowHydrationError = require_databaseRows.BundleRowHydrationError;
33
26
  exports.BundleRowHydrationErrorReason = require_databaseRows.BundleRowHydrationErrorReason;
34
27
  exports.CONTENT_ADDRESSED_ASSET_PREFIX = require_contentAddressedAssets.CONTENT_ADDRESSED_ASSET_PREFIX;
35
- exports.DatabaseAtomicCommitUnsupportedError = require_createDatabasePlugin.DatabaseAtomicCommitUnsupportedError;
36
- exports.DatabaseBundleNotFoundError = require_databaseClient.DatabaseBundleNotFoundError;
37
- exports.DatabasePatchInsertUnsupportedError = require_databaseClient.DatabasePatchInsertUnsupportedError;
38
- exports.DatabasePatchUpdateUnsupportedError = require_databaseClientUpdates.DatabasePatchUpdateUnsupportedError;
39
- exports.DatabasePluginInputError = require_databasePluginCrudValidationErrors.DatabasePluginInputError;
28
+ exports.DatabaseBundleNotFoundError = require_databaseErrors.DatabaseBundleNotFoundError;
29
+ exports.DatabasePluginInputError = require_databaseErrors.DatabasePluginInputError;
30
+ exports.DatabaseRowReferencedError = require_databaseErrors.DatabaseRowReferencedError;
40
31
  exports.REMOTE_BUNDLE_SIGNING_ALGORITHM = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_ALGORITHM;
41
32
  exports.REMOTE_BUNDLE_SIGNING_PATH = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_PATH;
42
33
  exports.REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION = require_remoteBundleSigning.REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION;
@@ -45,21 +36,12 @@ exports.ReleaseCatalogCompilationError = require_releaseCatalogCompiler.ReleaseC
45
36
  exports.ReleaseCatalogMutationError = require_releaseCatalogMutation.ReleaseCatalogMutationError;
46
37
  exports.ReleaseManagementError = require_releaseManagement.ReleaseManagementError;
47
38
  exports.assertStorageOperations = require_createStoragePlugin.assertStorageOperations;
48
- exports.bundleIdMatchesFilter = require_queryBundles.bundleIdMatchesFilter;
49
- exports.bundleMatchesQueryWhere = require_queryBundles.bundleMatchesQueryWhere;
50
39
  exports.bundleToPatchRows = require_databaseRows.bundleToPatchRows;
51
40
  exports.bundleToRow = require_databaseRows.bundleToRow;
52
- exports.calculatePagination = require_calculatePagination.calculatePagination;
53
41
  exports.canonicalizeAppVersion = require_releaseCatalogCompiler.canonicalizeAppVersion;
54
- exports.commitReleaseCatalogMutation = require_releaseCatalogMutation.commitReleaseCatalogMutation;
55
- exports.commitReleaseCatalogMutations = require_releaseCatalogMutation.commitReleaseCatalogMutations;
56
- exports.compareInsightsText = require_insightsContract.compareInsightsText;
57
42
  exports.compileReleaseCatalog = require_releaseCatalogCompiler.compileReleaseCatalog;
58
43
  exports.createBundleSigningHandler = require_remoteBundleSigning.createBundleSigningHandler;
59
44
  exports.createBundleStorageKey = require_bundleStorageLayout.createBundleStorageKey;
60
- exports.createDatabaseClient = require_databaseClient.createDatabaseClient;
61
- exports.createDatabasePlugin = require_createDatabasePlugin.createDatabasePlugin;
62
- exports.createRequestBundleResolver = require_requestBundleCache.createRequestBundleResolver;
63
45
  exports.createStorageDownloadPath = require_storageDownloadPath.createStorageDownloadPath;
64
46
  exports.createStorageDownloadUrl = require_storageDownloadPath.createStorageDownloadUrl;
65
47
  exports.createStorageKeyBuilder = require_createStorageKeyBuilder.createStorageKeyBuilder;
@@ -70,7 +52,6 @@ exports.createStorageUriWithRelativePath = require_assetStorageLayout.createStor
70
52
  exports.createUUIDv7 = require_uuidv7.createUUIDv7;
71
53
  exports.createUUIDv7After = require_uuidv7.createUUIDv7After;
72
54
  exports.createUUIDv7WithSameTimestamp = require_uuidv7.createUUIDv7WithSameTimestamp;
73
- exports.deleteRelease = require_releaseManagement.deleteRelease;
74
55
  exports.extractTimestampFromUUIDv7 = require_uuidv7.extractTimestampFromUUIDv7;
75
56
  exports.filterCompatibleAppVersions = require_filterCompatibleAppVersions.filterCompatibleAppVersions;
76
57
  exports.generateMinBundleId = require_generateMinBundleId.generateMinBundleId;
@@ -81,25 +62,18 @@ exports.getManifestAssetDownloadPath = require_assetStorageLayout.getManifestAss
81
62
  exports.getManifestAssetStoragePath = require_assetStorageLayout.getManifestAssetStoragePath;
82
63
  exports.isBrotliManifestAssetPath = require_assetStorageLayout.isBrotliManifestAssetPath;
83
64
  exports.isContentAddressedAssetFileHash = require_contentAddressedAssets.isContentAddressedAssetFileHash;
84
- exports.isDatabaseBundleEventMetadata = require_databaseJsonValue.isDatabaseBundleEventMetadata;
85
65
  exports.isDatabaseMetadataObject = require_databaseJsonValue.isDatabaseMetadataObject;
86
- exports.isInsightsMovementEvent = require_insightsContract.isInsightsMovementEvent;
66
+ exports.isRemoteDatabase = require_databaseConfig.isRemoteDatabase;
87
67
  Object.defineProperty(exports, "isUUIDv7", {
88
68
  enumerable: true,
89
69
  get: function() {
90
70
  return _hot_updater_core.isUUIDv7;
91
71
  }
92
72
  });
93
- exports.paginateBundles = require_paginateBundles.paginateBundles;
94
73
  exports.parseStorageDownloadPath = require_storageDownloadPath.parseStorageDownloadPath;
95
74
  exports.parseStorageUri = require_parseStorageUri.parseStorageUri;
96
- exports.preflightReleaseCatalogMutation = require_releaseCatalogMutation.preflightReleaseCatalogMutation;
97
- exports.preflightReleaseCatalogRebuild = require_releaseCatalogMutation.preflightReleaseCatalogRebuild;
98
- exports.preflightReleasePolicy = require_releaseManagement.preflightReleasePolicy;
99
75
  exports.projectCompiledCatalog = require_releaseCatalogCompiler.projectCompiledCatalog;
100
76
  exports.projectCompiledRollbackCatalog = require_releaseCatalogCompiler.projectCompiledRollbackCatalog;
101
- exports.promoteRelease = require_releaseManagement.promoteRelease;
102
- exports.rebuildReleaseCatalog = require_releaseCatalogMutation.rebuildReleaseCatalog;
103
77
  exports.referenceCompatibleReleases = require_releaseCatalogCompiler.referenceCompatibleReleases;
104
78
  exports.releaseRowToRelease = require_databaseRows.releaseRowToRelease;
105
79
  exports.releaseToRow = require_databaseRows.releaseToRow;
@@ -107,11 +81,7 @@ exports.remoteSigning = require_remoteBundleSigning.remoteSigning;
107
81
  exports.replaceStorageUriKeySuffix = require_assetStorageLayout.replaceStorageUriKeySuffix;
108
82
  exports.resolveManifestAssetStorageFileHash = require_assetStorageLayout.resolveManifestAssetStorageFileHash;
109
83
  exports.resolveManifestAssetStorageUri = require_assetStorageLayout.resolveManifestAssetStorageUri;
110
- exports.rollbackRelease = require_releaseManagement.rollbackRelease;
111
- exports.rollbackReleases = require_releaseManagement.rollbackReleases;
112
84
  exports.rowToBundle = require_databaseRows.rowToBundle;
113
85
  exports.rowsToBundles = require_databaseRows.rowsToBundles;
114
86
  exports.semverSatisfies = require_semverSatisfies.semverSatisfies;
115
- exports.sortBundles = require_queryBundles.sortBundles;
116
87
  exports.supportedIosPlatforms = require_index.supportedIosPlatforms;
117
- exports.updateReleasePolicy = require_releaseManagement.updateReleasePolicy;
package/dist/index.d.cts CHANGED
@@ -1,33 +1,27 @@
1
- import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
2
- import { ApiKeyModel, BundleModel, BundleModelQuery, BundlePatchModel, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseModels, DatabasePlugin, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseModel, ReleaseReference } from "./types/databasePlugin.cjs";
3
- import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.cjs";
4
- import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.cjs";
5
- import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.cjs";
6
- import { PaginationOptions, calculatePagination } from "./calculatePagination.cjs";
7
1
  import { BUNDLE_STORAGE_PREFIX, createBundleStorageKey, createStorageRootUriWithPath, getBundleArchiveStorageUri } from "./bundleStorageLayout.cjs";
8
2
  import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri } from "./assetStorageLayout.cjs";
9
3
  import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.cjs";
10
4
  import { getContentType } from "./contentType.cjs";
11
- import { DatabasePluginInputError, DatabasePluginInputErrorCode } from "./databasePluginCrudValidationErrors.cjs";
12
- import { CreateDatabasePluginOptions, DatabaseAtomicCommitUnsupportedError, createDatabasePlugin } from "./createDatabasePlugin.cjs";
5
+ import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.cjs";
6
+ import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./types/databaseConfig.cjs";
7
+ import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.cjs";
8
+ import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
9
+ import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.cjs";
10
+ import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.cjs";
11
+ import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.cjs";
12
+ import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.cjs";
13
+ import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.cjs";
14
+ import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.cjs";
15
+ import { DatabaseBundleNotFoundError, DatabasePluginInputError, DatabasePluginInputErrorCode, DatabaseRowReferencedError } from "./databaseErrors.cjs";
13
16
  import { createStorageKeyBuilder } from "./createStorageKeyBuilder.cjs";
14
17
  import { CreateStoragePluginOptions, StorageOperation, StoragePluginWith, assertStorageOperations, createStoragePlugin } from "./createStoragePlugin.cjs";
15
- import { DatabasePatchUpdateUnsupportedError } from "./databaseClientUpdates.cjs";
16
- import { DatabaseBundleNotFoundError, DatabaseClient, DatabaseMutationClient, DatabasePatchInsertUnsupportedError, createDatabaseClient } from "./databaseClient.cjs";
17
- import { isDatabaseBundleEventMetadata, isDatabaseMetadataObject } from "./databaseJsonValue.cjs";
18
+ import { isDatabaseMetadataObject } from "./databaseJsonValue.cjs";
18
19
  import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.cjs";
19
20
  import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.cjs";
20
21
  import { generateMinBundleId } from "./generateMinBundleId.cjs";
21
- import { compareInsightsText, isInsightsMovementEvent } from "./insightsContract.cjs";
22
22
  import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.cjs";
23
- import { paginateBundles } from "./paginateBundles.cjs";
24
- import { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles } from "./queryBundles.cjs";
25
- import { createRequestBundleResolver } from "./requestBundleCache.cjs";
26
- import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.cjs";
27
- import { ReleaseCatalogMutation, ReleaseCatalogMutationError, ReleaseCatalogMutationInput, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope, commitReleaseCatalogMutation, commitReleaseCatalogMutations, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, rebuildReleaseCatalog } from "./releaseCatalogMutation.cjs";
28
- import { PromoteReleaseInput, PromoteReleaseResult, ReleaseManagementError, ReleaseMutationTarget, ReleasePolicyPatch, RollbackReleaseInput, deleteRelease, preflightReleasePolicy, promoteRelease, rollbackRelease, rollbackReleases, updateReleasePolicy } from "./releaseManagement.cjs";
29
23
  import { BundleSigningHandlerOptions, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, RemoteSigningOptions, createBundleSigningHandler, remoteSigning } from "./remoteBundleSigning.cjs";
30
24
  import { semverSatisfies } from "./semverSatisfies.cjs";
31
25
  import { createStorageDownloadPath, createStorageDownloadUrl, parseStorageDownloadPath } from "./storageDownloadPath.cjs";
32
26
  import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.cjs";
33
- export { type ApiKeyModel, type ApiKeyRow, ApplePlatform, BUNDLE_STORAGE_PREFIX, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, type BundleEventRow, type BundleEventRowBase, type BundleModel, type BundleModelQuery, type BundlePatchModel, type BundlePatchRow, type BundleRepository, type BundleRepositoryChange, type BundleRepositoryCommit, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningHandlerOptions, BundleSigningPlugin, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteInput, type ChannelDeleteResult, type ChannelInsertInput, type ChannelInsertResult, type ChannelModel, type ChannelRow, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type CreateDatabasePluginOptions, CreateStoragePluginOptions, CreateStorageUriInput, DatabaseAtomicCommitUnsupportedError, DatabaseBundleCursor, type DatabaseBundleEventMetadata, DatabaseBundleIdFilter, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, type DatabaseChange, DatabaseClient, type DatabaseCommit, type DatabaseCommitExpectation, type DatabaseCommitResult, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseModels, DatabaseMutationClient, DatabasePatchInsertUnsupportedError, DatabasePatchUpdateUnsupportedError, type DatabasePlugin, DatabasePluginInputError, type DatabasePluginInputErrorCode, FingerprintExtraSources, HasMultipleCallSignatures, type InsightsBundleEventFilter, type InsightsCountEventsInput, type InsightsCountLatestEventsInput, type InsightsCoverage, type InsightsEventCursor, type InsightsEventFilter, type InsightsFindLatestEventsInput, type InsightsGetAppUsageInput, type InsightsGetAppUsageResult, type InsightsGetReleaseActivityInput, type InsightsGetReleaseActivityResult, type InsightsListEventsInput, type InsightsModel, type InsightsRecordEventInput, type InsightsScope, type InsightsTimeRange, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, PaginationOptions, ParsedStorageUri, type Platform, PlatformConfig, Primitive, PromoteReleaseInput, PromoteReleaseResult, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, type ReleaseActivityMetrics, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, type ReleaseCatalogModel, ReleaseCatalogMutation, ReleaseCatalogMutationError, ReleaseCatalogMutationInput, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, ReleaseManagementError, type ReleaseModel, ReleaseMutationTarget, ReleasePolicyPatch, type ReleaseReference, type ReleaseRow, type ReleaseRowUpdate, RemoteSigningOptions, RequiredDeep, RollbackReleaseInput, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePlugin, StoragePluginWith, StoragePutInput, StoragePutResult, assertStorageOperations, bundleIdMatchesFilter, bundleMatchesQueryWhere, bundleToPatchRows, bundleToRow, calculatePagination, canonicalizeAppVersion, commitReleaseCatalogMutation, commitReleaseCatalogMutations, compareInsightsText, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createDatabaseClient, createDatabasePlugin, createRequestBundleResolver, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, deleteRelease, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBundleEventMetadata, isDatabaseMetadataObject, isInsightsMovementEvent, isUUIDv7, paginateBundles, parseStorageDownloadPath, parseStorageUri, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, preflightReleasePolicy, projectCompiledCatalog, projectCompiledRollbackCatalog, promoteRelease, rebuildReleaseCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rollbackRelease, rollbackReleases, rowToBundle, rowsToBundles, semverSatisfies, sortBundles, supportedIosPlatforms, updateReleasePolicy };
27
+ export { type AggregateBatching, ApplePlatform, BUNDLE_STORAGE_PREFIX, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningHandlerOptions, BundleSigningPlugin, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, CreateStoragePluginOptions, CreateStorageUriInput, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, type DatabaseJsonObject, type DatabaseJsonValue, DatabasePluginInputError, type DatabasePluginInputErrorCode, DatabaseRowReferencedError, type DeployReleasePolicy, type Deployment, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, type HotUpdaterCoreApi, IosBuildDestination, type KeysetInput, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, ParsedStorageUri, type Platform, PlatformConfig, Primitive, PromoteReleaseResult, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePlugin, StoragePluginWith, StoragePutInput, StoragePutResult, type StoredBundleDeployment, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseMetadataObject, isRemoteDatabase, isUUIDv7, parseStorageDownloadPath, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowToBundle, rowsToBundles, semverSatisfies, supportedIosPlatforms };
package/dist/index.d.mts CHANGED
@@ -1,33 +1,27 @@
1
- import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
2
- import { ApiKeyModel, BundleModel, BundleModelQuery, BundlePatchModel, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseModels, DatabasePlugin, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseModel, ReleaseReference } from "./types/databasePlugin.mjs";
3
- import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.mjs";
4
- import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.mjs";
5
- import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.mjs";
6
- import { PaginationOptions, calculatePagination } from "./calculatePagination.mjs";
7
1
  import { BUNDLE_STORAGE_PREFIX, createBundleStorageKey, createStorageRootUriWithPath, getBundleArchiveStorageUri } from "./bundleStorageLayout.mjs";
8
2
  import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri } from "./assetStorageLayout.mjs";
9
3
  import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.mjs";
10
4
  import { getContentType } from "./contentType.mjs";
11
- import { DatabasePluginInputError, DatabasePluginInputErrorCode } from "./databasePluginCrudValidationErrors.mjs";
12
- import { CreateDatabasePluginOptions, DatabaseAtomicCommitUnsupportedError, createDatabasePlugin } from "./createDatabasePlugin.mjs";
5
+ import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
6
+ import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./types/databaseConfig.mjs";
7
+ import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.mjs";
8
+ import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
9
+ import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.mjs";
10
+ import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.mjs";
11
+ import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.mjs";
12
+ import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.mjs";
13
+ import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.mjs";
14
+ import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.mjs";
15
+ import { DatabaseBundleNotFoundError, DatabasePluginInputError, DatabasePluginInputErrorCode, DatabaseRowReferencedError } from "./databaseErrors.mjs";
13
16
  import { createStorageKeyBuilder } from "./createStorageKeyBuilder.mjs";
14
17
  import { CreateStoragePluginOptions, StorageOperation, StoragePluginWith, assertStorageOperations, createStoragePlugin } from "./createStoragePlugin.mjs";
15
- import { DatabasePatchUpdateUnsupportedError } from "./databaseClientUpdates.mjs";
16
- import { DatabaseBundleNotFoundError, DatabaseClient, DatabaseMutationClient, DatabasePatchInsertUnsupportedError, createDatabaseClient } from "./databaseClient.mjs";
17
- import { isDatabaseBundleEventMetadata, isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
18
+ import { isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
18
19
  import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.mjs";
19
20
  import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.mjs";
20
21
  import { generateMinBundleId } from "./generateMinBundleId.mjs";
21
- import { compareInsightsText, isInsightsMovementEvent } from "./insightsContract.mjs";
22
22
  import { CreateStorageUriInput, ParsedStorageUri, createStorageUri, parseStorageUri } from "./parseStorageUri.mjs";
23
- import { paginateBundles } from "./paginateBundles.mjs";
24
- import { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles } from "./queryBundles.mjs";
25
- import { createRequestBundleResolver } from "./requestBundleCache.mjs";
26
- import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
27
- import { ReleaseCatalogMutation, ReleaseCatalogMutationError, ReleaseCatalogMutationInput, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope, commitReleaseCatalogMutation, commitReleaseCatalogMutations, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, rebuildReleaseCatalog } from "./releaseCatalogMutation.mjs";
28
- import { PromoteReleaseInput, PromoteReleaseResult, ReleaseManagementError, ReleaseMutationTarget, ReleasePolicyPatch, RollbackReleaseInput, deleteRelease, preflightReleasePolicy, promoteRelease, rollbackRelease, rollbackReleases, updateReleasePolicy } from "./releaseManagement.mjs";
29
23
  import { BundleSigningHandlerOptions, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, RemoteSigningOptions, createBundleSigningHandler, remoteSigning } from "./remoteBundleSigning.mjs";
30
24
  import { semverSatisfies } from "./semverSatisfies.mjs";
31
25
  import { createStorageDownloadPath, createStorageDownloadUrl, parseStorageDownloadPath } from "./storageDownloadPath.mjs";
32
26
  import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
33
- export { type ApiKeyModel, type ApiKeyRow, ApplePlatform, BUNDLE_STORAGE_PREFIX, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, type BundleEventRow, type BundleEventRowBase, type BundleModel, type BundleModelQuery, type BundlePatchModel, type BundlePatchRow, type BundleRepository, type BundleRepositoryChange, type BundleRepositoryCommit, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningHandlerOptions, BundleSigningPlugin, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteInput, type ChannelDeleteResult, type ChannelInsertInput, type ChannelInsertResult, type ChannelModel, type ChannelRow, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type CreateDatabasePluginOptions, CreateStoragePluginOptions, CreateStorageUriInput, DatabaseAtomicCommitUnsupportedError, DatabaseBundleCursor, type DatabaseBundleEventMetadata, DatabaseBundleIdFilter, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, type DatabaseChange, DatabaseClient, type DatabaseCommit, type DatabaseCommitExpectation, type DatabaseCommitResult, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseModels, DatabaseMutationClient, DatabasePatchInsertUnsupportedError, DatabasePatchUpdateUnsupportedError, type DatabasePlugin, DatabasePluginInputError, type DatabasePluginInputErrorCode, FingerprintExtraSources, HasMultipleCallSignatures, type InsightsBundleEventFilter, type InsightsCountEventsInput, type InsightsCountLatestEventsInput, type InsightsCoverage, type InsightsEventCursor, type InsightsEventFilter, type InsightsFindLatestEventsInput, type InsightsGetAppUsageInput, type InsightsGetAppUsageResult, type InsightsGetReleaseActivityInput, type InsightsGetReleaseActivityResult, type InsightsListEventsInput, type InsightsModel, type InsightsRecordEventInput, type InsightsScope, type InsightsTimeRange, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, PaginationOptions, ParsedStorageUri, type Platform, PlatformConfig, Primitive, PromoteReleaseInput, PromoteReleaseResult, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, type ReleaseActivityMetrics, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, type ReleaseCatalogModel, ReleaseCatalogMutation, ReleaseCatalogMutationError, ReleaseCatalogMutationInput, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, ReleaseManagementError, type ReleaseModel, ReleaseMutationTarget, ReleasePolicyPatch, type ReleaseReference, type ReleaseRow, type ReleaseRowUpdate, RemoteSigningOptions, RequiredDeep, RollbackReleaseInput, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePlugin, StoragePluginWith, StoragePutInput, StoragePutResult, assertStorageOperations, bundleIdMatchesFilter, bundleMatchesQueryWhere, bundleToPatchRows, bundleToRow, calculatePagination, canonicalizeAppVersion, commitReleaseCatalogMutation, commitReleaseCatalogMutations, compareInsightsText, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createDatabaseClient, createDatabasePlugin, createRequestBundleResolver, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, deleteRelease, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBundleEventMetadata, isDatabaseMetadataObject, isInsightsMovementEvent, isUUIDv7, paginateBundles, parseStorageDownloadPath, parseStorageUri, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, preflightReleasePolicy, projectCompiledCatalog, projectCompiledRollbackCatalog, promoteRelease, rebuildReleaseCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rollbackRelease, rollbackReleases, rowToBundle, rowsToBundles, semverSatisfies, sortBundles, supportedIosPlatforms, updateReleasePolicy };
27
+ export { type AggregateBatching, ApplePlatform, BUNDLE_STORAGE_PREFIX, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, BundleSigningHandlerOptions, BundleSigningPlugin, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, CreateStoragePluginOptions, CreateStorageUriInput, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, type DatabaseJsonObject, type DatabaseJsonValue, DatabasePluginInputError, type DatabasePluginInputErrorCode, DatabaseRowReferencedError, type DeployReleasePolicy, type Deployment, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, type HotUpdaterCoreApi, IosBuildDestination, type KeysetInput, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, ParsedStorageUri, type Platform, PlatformConfig, Primitive, PromoteReleaseResult, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RemoteSigningOptions, RequiredDeep, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePlugin, StoragePluginWith, StoragePutInput, StoragePutResult, type StoredBundleDeployment, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseMetadataObject, isRemoteDatabase, isUUIDv7, parseStorageDownloadPath, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowToBundle, rowsToBundles, semverSatisfies, supportedIosPlatforms };
package/dist/index.mjs CHANGED
@@ -1,29 +1,22 @@
1
- import { calculatePagination } from "./calculatePagination.mjs";
2
1
  import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.mjs";
3
2
  import { createStorageKeyBuilder } from "./createStorageKeyBuilder.mjs";
4
3
  import { createStorageUri, parseStorageUri } from "./parseStorageUri.mjs";
5
4
  import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri } from "./assetStorageLayout.mjs";
6
5
  import { BUNDLE_STORAGE_PREFIX, createBundleStorageKey, createStorageRootUriWithPath, getBundleArchiveStorageUri } from "./bundleStorageLayout.mjs";
7
6
  import { getContentType } from "./contentType.mjs";
8
- import { DatabasePluginInputError } from "./databasePluginCrudValidationErrors.mjs";
9
- import { isDatabaseBundleEventMetadata, isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
10
- import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
11
- import { compareInsightsText, isInsightsMovementEvent } from "./insightsContract.mjs";
12
- import { DatabaseAtomicCommitUnsupportedError, createDatabasePlugin } from "./createDatabasePlugin.mjs";
7
+ import { DatabaseBundleNotFoundError, DatabasePluginInputError, DatabaseRowReferencedError } from "./databaseErrors.mjs";
13
8
  import { assertStorageOperations, createStoragePlugin } from "./createStoragePlugin.mjs";
9
+ import { isDatabaseMetadataObject } from "./databaseJsonValue.mjs";
14
10
  import { BundleRowHydrationError, BundleRowHydrationErrorReason, bundleToPatchRows, bundleToRow, releaseRowToRelease, releaseToRow, rowToBundle, rowsToBundles } from "./databaseRows.mjs";
15
- import { DatabasePatchUpdateUnsupportedError } from "./databaseClientUpdates.mjs";
16
- import { DatabaseBundleNotFoundError, DatabasePatchInsertUnsupportedError, createDatabaseClient } from "./databaseClient.mjs";
17
11
  import { semverSatisfies } from "./semverSatisfies.mjs";
18
12
  import { filterCompatibleAppVersions } from "./filterCompatibleAppVersions.mjs";
19
13
  import { generateMinBundleId } from "./generateMinBundleId.mjs";
20
- import { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles } from "./queryBundles.mjs";
21
- import { paginateBundles } from "./paginateBundles.mjs";
22
- import { createRequestBundleResolver } from "./requestBundleCache.mjs";
14
+ import { createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, isUUIDv7 } from "./uuidv7.mjs";
23
15
  import { ReleaseCatalogCompilationError, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
24
- import { ReleaseCatalogMutationError, commitReleaseCatalogMutation, commitReleaseCatalogMutations, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, rebuildReleaseCatalog } from "./releaseCatalogMutation.mjs";
25
- import { ReleaseManagementError, deleteRelease, preflightReleasePolicy, promoteRelease, rollbackRelease, rollbackReleases, updateReleasePolicy } from "./releaseManagement.mjs";
16
+ import { ReleaseManagementError } from "./releaseManagement.mjs";
17
+ import { ReleaseCatalogMutationError } from "./releaseCatalogMutation.mjs";
26
18
  import { REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, createBundleSigningHandler, remoteSigning } from "./remoteBundleSigning.mjs";
27
19
  import { createStorageDownloadPath, createStorageDownloadUrl, parseStorageDownloadPath } from "./storageDownloadPath.mjs";
20
+ import { isRemoteDatabase } from "./types/databaseConfig.mjs";
28
21
  import { supportedIosPlatforms } from "./types/index.mjs";
29
- export { BUNDLE_STORAGE_PREFIX, BundleRowHydrationError, BundleRowHydrationErrorReason, CONTENT_ADDRESSED_ASSET_PREFIX, DatabaseAtomicCommitUnsupportedError, DatabaseBundleNotFoundError, DatabasePatchInsertUnsupportedError, DatabasePatchUpdateUnsupportedError, DatabasePluginInputError, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilationError, ReleaseCatalogMutationError, ReleaseManagementError, assertStorageOperations, bundleIdMatchesFilter, bundleMatchesQueryWhere, bundleToPatchRows, bundleToRow, calculatePagination, canonicalizeAppVersion, commitReleaseCatalogMutation, commitReleaseCatalogMutations, compareInsightsText, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createDatabaseClient, createDatabasePlugin, createRequestBundleResolver, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, deleteRelease, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBundleEventMetadata, isDatabaseMetadataObject, isInsightsMovementEvent, isUUIDv7, paginateBundles, parseStorageDownloadPath, parseStorageUri, preflightReleaseCatalogMutation, preflightReleaseCatalogRebuild, preflightReleasePolicy, projectCompiledCatalog, projectCompiledRollbackCatalog, promoteRelease, rebuildReleaseCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rollbackRelease, rollbackReleases, rowToBundle, rowsToBundles, semverSatisfies, sortBundles, supportedIosPlatforms, updateReleasePolicy };
22
+ export { BUNDLE_STORAGE_PREFIX, BundleRowHydrationError, BundleRowHydrationErrorReason, CONTENT_ADDRESSED_ASSET_PREFIX, DatabaseBundleNotFoundError, DatabasePluginInputError, DatabaseRowReferencedError, REMOTE_BUNDLE_SIGNING_ALGORITHM, REMOTE_BUNDLE_SIGNING_PATH, REMOTE_BUNDLE_SIGNING_PROTOCOL_VERSION, REMOTE_BUNDLE_SIGNING_TOKEN_HEADER, ReleaseCatalogCompilationError, ReleaseCatalogMutationError, ReleaseManagementError, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compileReleaseCatalog, createBundleSigningHandler, createBundleStorageKey, createStorageDownloadPath, createStorageDownloadUrl, createStorageKeyBuilder, createStoragePlugin, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, extractTimestampFromUUIDv7, filterCompatibleAppVersions, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseMetadataObject, isRemoteDatabase, isUUIDv7, parseStorageDownloadPath, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, remoteSigning, replaceStorageUriKeySuffix, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowToBundle, rowsToBundles, semverSatisfies, supportedIosPlatforms };
package/dist/internal.cjs CHANGED
@@ -1,21 +1,38 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_databaseFields = require("./types/databaseFields.cjs");
3
- const require_createDatabasePlugin = require("./createDatabasePlugin.cjs");
4
- const require_insightsLatestQueries = require("./insightsLatestQueries.cjs");
5
- const require_insightsDistinctSummary = require("./insightsDistinctSummary.cjs");
6
- const require_insightsOverview = require("./insightsOverview.cjs");
7
- exports.DatabaseRowReferencedError = require_createDatabasePlugin.DatabaseRowReferencedError;
8
- exports.addInsightsDistinct = require_insightsDistinctSummary.addInsightsDistinct;
9
- exports.countInsightsDistinct = require_insightsDistinctSummary.countInsightsDistinct;
10
- exports.createDatabasePluginAdapter = require_createDatabasePlugin.createDatabasePluginAdapter;
11
- exports.currentInsightsReleaseId = require_insightsOverview.currentInsightsReleaseId;
12
- exports.databaseFields = require_databaseFields.databaseFields;
13
- exports.emptyInsightsDistinct = require_insightsDistinctSummary.emptyInsightsDistinct;
14
- exports.getInsightsDistinctRegister = require_insightsDistinctSummary.getInsightsDistinctRegister;
15
- exports.insightsDistributionIdentity = require_insightsOverview.insightsDistributionIdentity;
16
- exports.insightsOverviewDeltas = require_insightsOverview.insightsOverviewDeltas;
17
- exports.insightsOverviewId = require_insightsOverview.insightsOverviewId;
18
- exports.insightsOverviewValues = require_insightsOverview.insightsOverviewValues;
19
- exports.latestInsightsCountGroups = require_insightsLatestQueries.latestInsightsCountGroups;
20
- exports.latestInsightsWhere = require_insightsLatestQueries.latestInsightsWhere;
21
- exports.mergeInsightsDistinct = require_insightsDistinctSummary.mergeInsightsDistinct;
2
+ const require_databaseErrors = require("./databaseErrors.cjs");
3
+ const require_databaseJsonValue = require("./databaseJsonValue.cjs");
4
+ const require_adapter = require("./database/adapter.cjs");
5
+ const require_distinct = require("./database/distinct.cjs");
6
+ const require_values = require("./database/values.cjs");
7
+ const require_memoryAdapter = require("./database/memoryAdapter.cjs");
8
+ const require_verifyAdapter = require("./database/verifyAdapter.cjs");
9
+ exports.DATABASE_MAX_MULTI_VALUES = require_adapter.DATABASE_MAX_MULTI_VALUES;
10
+ exports.DATABASE_MAX_QUERY_LIMIT = require_adapter.DATABASE_MAX_QUERY_LIMIT;
11
+ exports.DATABASE_VERSION_COLUMN = require_adapter.DATABASE_VERSION_COLUMN;
12
+ exports.DatabaseAdapterContractError = require_verifyAdapter.DatabaseAdapterContractError;
13
+ exports.DatabaseRowReferencedError = require_databaseErrors.DatabaseRowReferencedError;
14
+ exports.DatabaseSchemaError = require_adapter.DatabaseSchemaError;
15
+ exports.DatabaseValueError = require_values.DatabaseValueError;
16
+ exports.addDistinct = require_distinct.addDistinct;
17
+ exports.canonicalJson = require_values.canonicalJson;
18
+ exports.compareKeyValues = require_values.compareKeyValues;
19
+ exports.compareTuples = require_values.compareTuples;
20
+ exports.compareUtf8 = require_values.compareUtf8;
21
+ exports.countDistinct = require_distinct.countDistinct;
22
+ exports.createMemoryAdapter = require_memoryAdapter.createMemoryAdapter;
23
+ exports.distinctRegister = require_distinct.distinctRegister;
24
+ exports.emptyDistinct = require_distinct.emptyDistinct;
25
+ exports.expiresAt = require_adapter.expiresAt;
26
+ exports.findPhysicalColumn = require_adapter.findPhysicalColumn;
27
+ exports.findPhysicalIndex = require_adapter.findPhysicalIndex;
28
+ exports.indexEntries = require_values.indexEntries;
29
+ exports.indexOrderColumns = require_adapter.indexOrderColumns;
30
+ exports.indexOrderTuple = require_values.indexOrderTuple;
31
+ exports.isDatabaseJsonObject = require_databaseJsonValue.isDatabaseJsonObject;
32
+ exports.isKeyValue = require_values.isKeyValue;
33
+ exports.matchesQuery = require_values.matchesQuery;
34
+ exports.mergeDistinct = require_distinct.mergeDistinct;
35
+ exports.normalizeStoredRow = require_values.normalizeStoredRow;
36
+ exports.normalizeStoredValue = require_values.normalizeStoredValue;
37
+ exports.rowKey = require_adapter.rowKey;
38
+ exports.verifyAdapter = require_verifyAdapter.verifyAdapter;
@@ -1,13 +1,12 @@
1
- import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseField, DatabaseJsonObject, DatabaseJsonValue, DatabaseModel, DatabaseModelMap, DatabaseRow, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
2
- import { ApiKeyModel, BundleModel, BundleModelQuery, BundlePatchModel, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseModels, DatabasePlugin, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseModel, ReleaseReference } from "./types/databasePlugin.cjs";
3
- import { DatabaseDistinctFields, DatabaseDistinctOn, DatabaseOrderBy, DatabaseSelect, DatabaseSortBy, DatabaseSortClause, DatabaseSortNulls, DatabaseStringComparisonMode, DatabaseWhere, DatabaseWhereConnector, DatabaseWhereOperator, SelectedDatabaseRow } from "./types/databaseQuery.cjs";
4
- import { ApiKeyRowUpdate, BundleRowUpdate, CountBundlesDatabaseImplementationInput, CountBundlesDatabaseInput, CountDatabaseImplementationInput, CountDatabaseInput, CountDatabaseModel, CreateDatabaseImplementationInput, CreateDatabaseInput, CreateDatabaseModel, DatabaseCapability, DatabaseDeleteModel, DatabaseFindOneModel, DatabaseImplementationResult, DatabaseModelCapabilities, DatabaseModelsWithCapability, DatabasePluginCrud, DatabasePluginImplementation, DatabaseRowUpdate, DeleteDatabaseImplementationInput, DeleteDatabaseInput, DeleteDatabaseModel, FindManyDatabaseImplementationInput, FindManyDatabaseInput, FindManyDatabaseModel, FindManyDatabasePluginInput, FindOneDatabaseImplementationInput, FindOneDatabaseInput, FindOneDatabaseModel, ReleaseCatalogRowUpdate, ReleaseRowUpdate, SelectedDatabaseInputRow, TransactionDatabasePluginImplementation, UpdateBundleDatabaseImplementationInput, UpdateBundleDatabaseInput, UpdateDatabaseImplementationInput, UpdateDatabaseInput, UpdateDatabaseModel } from "./types/databaseOperations.cjs";
5
- import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.cjs";
6
- import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.cjs";
7
- import { databaseFields } from "./types/databaseFields.cjs";
1
+ import { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseJson, DatabaseKey, DatabaseKeyValue, DatabaseSchemaError, DatabaseValue, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, StoredRow, WriteGuard, WriteOp, WriteResult, expiresAt, findPhysicalColumn, findPhysicalIndex, indexOrderColumns, rowKey } from "./database/adapter.cjs";
2
+ import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
3
+ import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.cjs";
4
+ import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.cjs";
5
+ import { DatabaseRowReferencedError } from "./databaseErrors.cjs";
6
+ import { isDatabaseJsonObject } from "./databaseJsonValue.cjs";
8
7
  import "./types/internal.cjs";
9
- import { DatabasePluginAdapter, DatabaseRowReferencedError, createDatabasePluginAdapter } from "./createDatabasePlugin.cjs";
10
- import { latestInsightsCountGroups, latestInsightsWhere } from "./insightsLatestQueries.cjs";
11
- import { addInsightsDistinct, countInsightsDistinct, emptyInsightsDistinct, getInsightsDistinctRegister, mergeInsightsDistinct } from "./insightsDistinctSummary.cjs";
12
- import { InsightsOverviewDelta, InsightsOverviewIdentity, currentInsightsReleaseId, insightsDistributionIdentity, insightsOverviewDeltas, insightsOverviewId, insightsOverviewValues } from "./insightsOverview.cjs";
13
- export { type ApiKeyModel, type ApiKeyRow, type ApiKeyRowUpdate, type ApplePlatform, type BasePluginArgs, type BuildPlugin, type BuildPluginConfig, type BuiltIns, type Bundle, type BundleEventRow, type BundleEventRowBase, type BundleModel, type BundleModelQuery, type BundlePatchModel, type BundlePatchRow, type BundleRepository, type BundleRepositoryChange, type BundleRepositoryCommit, type BundleRow, type BundleRowUpdate, type BundleSigningPlugin, type ChannelDeleteInput, type ChannelDeleteResult, type ChannelInsertInput, type ChannelInsertResult, type ChannelModel, type ChannelRow, type ConfigInput, type CountBundlesDatabaseImplementationInput, type CountBundlesDatabaseInput, type CountDatabaseImplementationInput, type CountDatabaseInput, type CountDatabaseModel, type CreateDatabaseImplementationInput, type CreateDatabaseInput, type CreateDatabaseModel, type DatabaseBundleCursor, type DatabaseBundleEventMetadata, type DatabaseBundleIdFilter, type DatabaseBundleMetadata, type DatabaseBundleQueryOptions, type DatabaseBundleQueryOrder, type DatabaseBundleQueryWhere, type DatabaseCapability, type DatabaseChange, type DatabaseCommit, type DatabaseCommitExpectation, type DatabaseCommitResult, type DatabaseDeleteModel, type DatabaseDistinctFields, type DatabaseDistinctOn, type DatabaseField, type DatabaseFindOneModel, type DatabaseImplementationResult, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseModel, type DatabaseModelCapabilities, type DatabaseModelMap, type DatabaseModels, type DatabaseModelsWithCapability, type DatabaseOrderBy, type DatabasePlugin, type DatabasePluginAdapter, type DatabasePluginCrud, type DatabasePluginImplementation, type DatabaseRow, DatabaseRowReferencedError, type DatabaseRowUpdate, type DatabaseSelect, type DatabaseSortBy, type DatabaseSortClause, type DatabaseSortNulls, type DatabaseStringComparisonMode, type DatabaseWhere, type DatabaseWhereConnector, type DatabaseWhereOperator, type DeleteDatabaseImplementationInput, type DeleteDatabaseInput, type DeleteDatabaseModel, type FindManyDatabaseImplementationInput, type FindManyDatabaseInput, type FindManyDatabaseModel, type FindManyDatabasePluginInput, type FindOneDatabaseImplementationInput, type FindOneDatabaseInput, type FindOneDatabaseModel, type FingerprintExtraSources, type HasMultipleCallSignatures, type InsightsBundleEventFilter, type InsightsCountEventsInput, type InsightsCountLatestEventsInput, type InsightsCoverage, type InsightsEventCursor, type InsightsEventFilter, type InsightsFindLatestEventsInput, type InsightsGetAppUsageInput, type InsightsGetAppUsageResult, type InsightsGetReleaseActivityInput, type InsightsGetReleaseActivityResult, type InsightsListEventsInput, type InsightsModel, type InsightsOverviewDelta, type InsightsOverviewIdentity, type InsightsRecordEventInput, type InsightsScope, type InsightsTimeRange, type IosBuildDestination, type LocalSigningConfig, type NativeBuildAndroidScheme, type NativeBuildArgs, type NativeBuildIosScheme, type NativeBuildOptions, type Paginated, type PaginatedResult, type PaginationInfo, type Platform, type PlatformConfig, type Primitive, type ReleaseActivityMetrics, type ReleaseCatalogModel, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseModel, type ReleaseReference, type ReleaseRow, type ReleaseRowUpdate, type RequiredDeep, type SelectedDatabaseInputRow, type SelectedDatabaseRow, type SigningConfig, type StorageDeleteInput, type StorageDeleteResult, type StorageExistsInput, type StorageExistsResult, type StorageGetDownloadUrlInput, type StorageGetDownloadUrlResult, type StorageGetInput, type StorageGetResult, type StorageObject, type StoragePlugin, type StoragePutInput, type StoragePutResult, type TransactionDatabasePluginImplementation, type UpdateBundleDatabaseImplementationInput, type UpdateBundleDatabaseInput, type UpdateDatabaseImplementationInput, type UpdateDatabaseInput, type UpdateDatabaseModel, addInsightsDistinct, countInsightsDistinct, createDatabasePluginAdapter, currentInsightsReleaseId, databaseFields, emptyInsightsDistinct, getInsightsDistinctRegister, insightsDistributionIdentity, insightsOverviewDeltas, insightsOverviewId, insightsOverviewValues, latestInsightsCountGroups, latestInsightsWhere, mergeInsightsDistinct, type supportedIosPlatforms };
8
+ import { addDistinct, countDistinct, distinctRegister, emptyDistinct, mergeDistinct } from "./database/distinct.cjs";
9
+ import { MemoryAdapterOptions, createMemoryAdapter } from "./database/memoryAdapter.cjs";
10
+ import { DatabaseValueError, NormalizeOptions, canonicalJson, compareKeyValues, compareTuples, compareUtf8, indexEntries, indexOrderTuple, isKeyValue, matchesQuery, normalizeStoredRow, normalizeStoredValue } from "./database/values.cjs";
11
+ import { DatabaseAdapterContractError, DatabaseReadCount, DatabaseReadMeter, VerifiedDatabaseAdapter, VerifyAdapterOptions, verifyAdapter } from "./database/verifyAdapter.cjs";
12
+ export { type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseAdapterContractError, type DatabaseBundleMetadata, DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, DatabaseKey, DatabaseKeyValue, DatabaseReadCount, DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseValue, DatabaseValueError, MemoryAdapterOptions, NormalizeOptions, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, StoredRow, VerifiedDatabaseAdapter, VerifyAdapterOptions, WriteGuard, WriteOp, WriteResult, addDistinct, canonicalJson, compareKeyValues, compareTuples, compareUtf8, countDistinct, createMemoryAdapter, distinctRegister, emptyDistinct, expiresAt, findPhysicalColumn, findPhysicalIndex, indexEntries, indexOrderColumns, indexOrderTuple, isDatabaseJsonObject, isKeyValue, matchesQuery, mergeDistinct, normalizeStoredRow, normalizeStoredValue, rowKey, verifyAdapter };
@@ -1,13 +1,12 @@
1
- import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseField, DatabaseJsonObject, DatabaseJsonValue, DatabaseModel, DatabaseModelMap, DatabaseRow, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
2
- import { ApiKeyModel, BundleModel, BundleModelQuery, BundlePatchModel, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseModels, DatabasePlugin, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseModel, ReleaseReference } from "./types/databasePlugin.mjs";
3
- import { DatabaseDistinctFields, DatabaseDistinctOn, DatabaseOrderBy, DatabaseSelect, DatabaseSortBy, DatabaseSortClause, DatabaseSortNulls, DatabaseStringComparisonMode, DatabaseWhere, DatabaseWhereConnector, DatabaseWhereOperator, SelectedDatabaseRow } from "./types/databaseQuery.mjs";
4
- import { ApiKeyRowUpdate, BundleRowUpdate, CountBundlesDatabaseImplementationInput, CountBundlesDatabaseInput, CountDatabaseImplementationInput, CountDatabaseInput, CountDatabaseModel, CreateDatabaseImplementationInput, CreateDatabaseInput, CreateDatabaseModel, DatabaseCapability, DatabaseDeleteModel, DatabaseFindOneModel, DatabaseImplementationResult, DatabaseModelCapabilities, DatabaseModelsWithCapability, DatabasePluginCrud, DatabasePluginImplementation, DatabaseRowUpdate, DeleteDatabaseImplementationInput, DeleteDatabaseInput, DeleteDatabaseModel, FindManyDatabaseImplementationInput, FindManyDatabaseInput, FindManyDatabaseModel, FindManyDatabasePluginInput, FindOneDatabaseImplementationInput, FindOneDatabaseInput, FindOneDatabaseModel, ReleaseCatalogRowUpdate, ReleaseRowUpdate, SelectedDatabaseInputRow, TransactionDatabasePluginImplementation, UpdateBundleDatabaseImplementationInput, UpdateBundleDatabaseInput, UpdateDatabaseImplementationInput, UpdateDatabaseInput, UpdateDatabaseModel } from "./types/databaseOperations.mjs";
5
- import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./types/utils.mjs";
6
- import { ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, Bundle, BundleSigningPlugin, ConfigInput, DatabaseBundleCursor, DatabaseBundleIdFilter, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, FingerprintExtraSources, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, Platform, PlatformConfig, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, supportedIosPlatforms } from "./types/index.mjs";
7
- import { databaseFields } from "./types/databaseFields.mjs";
1
+ import { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseJson, DatabaseKey, DatabaseKeyValue, DatabaseSchemaError, DatabaseValue, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, StoredRow, WriteGuard, WriteOp, WriteResult, expiresAt, findPhysicalColumn, findPhysicalIndex, indexOrderColumns, rowKey } from "./database/adapter.mjs";
2
+ import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
3
+ import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./types/databaseOperations.mjs";
4
+ import { ChannelDeleteResult, ChannelInsertResult } from "./types/models.mjs";
5
+ import { DatabaseRowReferencedError } from "./databaseErrors.mjs";
6
+ import { isDatabaseJsonObject } from "./databaseJsonValue.mjs";
8
7
  import "./types/internal.mjs";
9
- import { DatabasePluginAdapter, DatabaseRowReferencedError, createDatabasePluginAdapter } from "./createDatabasePlugin.mjs";
10
- import { latestInsightsCountGroups, latestInsightsWhere } from "./insightsLatestQueries.mjs";
11
- import { addInsightsDistinct, countInsightsDistinct, emptyInsightsDistinct, getInsightsDistinctRegister, mergeInsightsDistinct } from "./insightsDistinctSummary.mjs";
12
- import { InsightsOverviewDelta, InsightsOverviewIdentity, currentInsightsReleaseId, insightsDistributionIdentity, insightsOverviewDeltas, insightsOverviewId, insightsOverviewValues } from "./insightsOverview.mjs";
13
- export { type ApiKeyModel, type ApiKeyRow, type ApiKeyRowUpdate, type ApplePlatform, type BasePluginArgs, type BuildPlugin, type BuildPluginConfig, type BuiltIns, type Bundle, type BundleEventRow, type BundleEventRowBase, type BundleModel, type BundleModelQuery, type BundlePatchModel, type BundlePatchRow, type BundleRepository, type BundleRepositoryChange, type BundleRepositoryCommit, type BundleRow, type BundleRowUpdate, type BundleSigningPlugin, type ChannelDeleteInput, type ChannelDeleteResult, type ChannelInsertInput, type ChannelInsertResult, type ChannelModel, type ChannelRow, type ConfigInput, type CountBundlesDatabaseImplementationInput, type CountBundlesDatabaseInput, type CountDatabaseImplementationInput, type CountDatabaseInput, type CountDatabaseModel, type CreateDatabaseImplementationInput, type CreateDatabaseInput, type CreateDatabaseModel, type DatabaseBundleCursor, type DatabaseBundleEventMetadata, type DatabaseBundleIdFilter, type DatabaseBundleMetadata, type DatabaseBundleQueryOptions, type DatabaseBundleQueryOrder, type DatabaseBundleQueryWhere, type DatabaseCapability, type DatabaseChange, type DatabaseCommit, type DatabaseCommitExpectation, type DatabaseCommitResult, type DatabaseDeleteModel, type DatabaseDistinctFields, type DatabaseDistinctOn, type DatabaseField, type DatabaseFindOneModel, type DatabaseImplementationResult, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseModel, type DatabaseModelCapabilities, type DatabaseModelMap, type DatabaseModels, type DatabaseModelsWithCapability, type DatabaseOrderBy, type DatabasePlugin, type DatabasePluginAdapter, type DatabasePluginCrud, type DatabasePluginImplementation, type DatabaseRow, DatabaseRowReferencedError, type DatabaseRowUpdate, type DatabaseSelect, type DatabaseSortBy, type DatabaseSortClause, type DatabaseSortNulls, type DatabaseStringComparisonMode, type DatabaseWhere, type DatabaseWhereConnector, type DatabaseWhereOperator, type DeleteDatabaseImplementationInput, type DeleteDatabaseInput, type DeleteDatabaseModel, type FindManyDatabaseImplementationInput, type FindManyDatabaseInput, type FindManyDatabaseModel, type FindManyDatabasePluginInput, type FindOneDatabaseImplementationInput, type FindOneDatabaseInput, type FindOneDatabaseModel, type FingerprintExtraSources, type HasMultipleCallSignatures, type InsightsBundleEventFilter, type InsightsCountEventsInput, type InsightsCountLatestEventsInput, type InsightsCoverage, type InsightsEventCursor, type InsightsEventFilter, type InsightsFindLatestEventsInput, type InsightsGetAppUsageInput, type InsightsGetAppUsageResult, type InsightsGetReleaseActivityInput, type InsightsGetReleaseActivityResult, type InsightsListEventsInput, type InsightsModel, type InsightsOverviewDelta, type InsightsOverviewIdentity, type InsightsRecordEventInput, type InsightsScope, type InsightsTimeRange, type IosBuildDestination, type LocalSigningConfig, type NativeBuildAndroidScheme, type NativeBuildArgs, type NativeBuildIosScheme, type NativeBuildOptions, type Paginated, type PaginatedResult, type PaginationInfo, type Platform, type PlatformConfig, type Primitive, type ReleaseActivityMetrics, type ReleaseCatalogModel, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseModel, type ReleaseReference, type ReleaseRow, type ReleaseRowUpdate, type RequiredDeep, type SelectedDatabaseInputRow, type SelectedDatabaseRow, type SigningConfig, type StorageDeleteInput, type StorageDeleteResult, type StorageExistsInput, type StorageExistsResult, type StorageGetDownloadUrlInput, type StorageGetDownloadUrlResult, type StorageGetInput, type StorageGetResult, type StorageObject, type StoragePlugin, type StoragePutInput, type StoragePutResult, type TransactionDatabasePluginImplementation, type UpdateBundleDatabaseImplementationInput, type UpdateBundleDatabaseInput, type UpdateDatabaseImplementationInput, type UpdateDatabaseInput, type UpdateDatabaseModel, addInsightsDistinct, countInsightsDistinct, createDatabasePluginAdapter, currentInsightsReleaseId, databaseFields, emptyInsightsDistinct, getInsightsDistinctRegister, insightsDistributionIdentity, insightsOverviewDeltas, insightsOverviewId, insightsOverviewValues, latestInsightsCountGroups, latestInsightsWhere, mergeInsightsDistinct, type supportedIosPlatforms };
8
+ import { addDistinct, countDistinct, distinctRegister, emptyDistinct, mergeDistinct } from "./database/distinct.mjs";
9
+ import { MemoryAdapterOptions, createMemoryAdapter } from "./database/memoryAdapter.mjs";
10
+ import { DatabaseValueError, NormalizeOptions, canonicalJson, compareKeyValues, compareTuples, compareUtf8, indexEntries, indexOrderTuple, isKeyValue, matchesQuery, normalizeStoredRow, normalizeStoredValue } from "./database/values.mjs";
11
+ import { DatabaseAdapterContractError, DatabaseReadCount, DatabaseReadMeter, VerifiedDatabaseAdapter, VerifyAdapterOptions, verifyAdapter } from "./database/verifyAdapter.mjs";
12
+ export { type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapter, DatabaseAdapterContractError, type DatabaseBundleMetadata, DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, DatabaseKey, DatabaseKeyValue, DatabaseReadCount, DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseValue, DatabaseValueError, MemoryAdapterOptions, NormalizeOptions, PhysicalColumn, PhysicalColumnType, PhysicalIndex, PhysicalRetention, PhysicalTable, QueryBound, QueryRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, StoredRow, VerifiedDatabaseAdapter, VerifyAdapterOptions, WriteGuard, WriteOp, WriteResult, addDistinct, canonicalJson, compareKeyValues, compareTuples, compareUtf8, countDistinct, createMemoryAdapter, distinctRegister, emptyDistinct, expiresAt, findPhysicalColumn, findPhysicalIndex, indexEntries, indexOrderColumns, indexOrderTuple, isDatabaseJsonObject, isKeyValue, matchesQuery, mergeDistinct, normalizeStoredRow, normalizeStoredValue, rowKey, verifyAdapter };
package/dist/internal.mjs CHANGED
@@ -1,6 +1,8 @@
1
- import { databaseFields } from "./types/databaseFields.mjs";
2
- import { DatabaseRowReferencedError, createDatabasePluginAdapter } from "./createDatabasePlugin.mjs";
3
- import { latestInsightsCountGroups, latestInsightsWhere } from "./insightsLatestQueries.mjs";
4
- import { addInsightsDistinct, countInsightsDistinct, emptyInsightsDistinct, getInsightsDistinctRegister, mergeInsightsDistinct } from "./insightsDistinctSummary.mjs";
5
- import { currentInsightsReleaseId, insightsDistributionIdentity, insightsOverviewDeltas, insightsOverviewId, insightsOverviewValues } from "./insightsOverview.mjs";
6
- export { DatabaseRowReferencedError, addInsightsDistinct, countInsightsDistinct, createDatabasePluginAdapter, currentInsightsReleaseId, databaseFields, emptyInsightsDistinct, getInsightsDistinctRegister, insightsDistributionIdentity, insightsOverviewDeltas, insightsOverviewId, insightsOverviewValues, latestInsightsCountGroups, latestInsightsWhere, mergeInsightsDistinct };
1
+ import { DatabaseRowReferencedError } from "./databaseErrors.mjs";
2
+ import { isDatabaseJsonObject } from "./databaseJsonValue.mjs";
3
+ import { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseSchemaError, expiresAt, findPhysicalColumn, findPhysicalIndex, indexOrderColumns, rowKey } from "./database/adapter.mjs";
4
+ import { addDistinct, countDistinct, distinctRegister, emptyDistinct, mergeDistinct } from "./database/distinct.mjs";
5
+ import { DatabaseValueError, canonicalJson, compareKeyValues, compareTuples, compareUtf8, indexEntries, indexOrderTuple, isKeyValue, matchesQuery, normalizeStoredRow, normalizeStoredValue } from "./database/values.mjs";
6
+ import { createMemoryAdapter } from "./database/memoryAdapter.mjs";
7
+ import { DatabaseAdapterContractError, verifyAdapter } from "./database/verifyAdapter.mjs";
8
+ export { DATABASE_MAX_MULTI_VALUES, DATABASE_MAX_QUERY_LIMIT, DATABASE_VERSION_COLUMN, DatabaseAdapterContractError, DatabaseRowReferencedError, DatabaseSchemaError, DatabaseValueError, addDistinct, canonicalJson, compareKeyValues, compareTuples, compareUtf8, countDistinct, createMemoryAdapter, distinctRegister, emptyDistinct, expiresAt, findPhysicalColumn, findPhysicalIndex, indexEntries, indexOrderColumns, indexOrderTuple, isDatabaseJsonObject, isKeyValue, matchesQuery, mergeDistinct, normalizeStoredRow, normalizeStoredValue, rowKey, verifyAdapter };
@@ -283,7 +283,7 @@ function compileAppVersion(releases) {
283
283
  ...segment,
284
284
  releaseIndexes: releases.filter((release) => retainedIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0),
285
285
  rollbackReleaseIndexes: releases.filter((release) => rollbackIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0)
286
- })).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0));
286
+ }))).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0);
287
287
  return {
288
288
  envelope: {
289
289
  fallbackPolicy: _hot_updater_core.RELEASE_CATALOG_FALLBACK_POLICY,
@@ -1,7 +1,7 @@
1
- import { isUUIDv7 as isUUIDv7$1 } from "./uuidv7.mjs";
2
1
  import { t as compare } from "./node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/comparison-DenM3wCn.mjs";
3
2
  import { f as satisfies, m as parseRange } from "./node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/range-DvX-Y6iv.mjs";
4
3
  import { m as normalizeFull, n as coerce, p as normalize } from "./node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/version-CQ98ZBpL.mjs";
4
+ import { isUUIDv7 as isUUIDv7$1 } from "./uuidv7.mjs";
5
5
  import { MAX_COMPILED_CATALOG_BYTES, MAX_DISTINCT_TARGET_COHORTS_PER_SCOPE, MAX_TARGET_COHORTS_PER_RELEASE, NUMERIC_COHORT_SIZE, RELEASE_CATALOG_FALLBACK_POLICY, RELEASE_CATALOG_SCHEMA_VERSION, getNumericCohortValue, getRolledOutNumericCohorts, isCustomCohort, normalizeCohortValue, normalizeRolloutCohortCount } from "@hot-updater/core";
6
6
  //#region src/releaseCatalogCompiler.ts
7
7
  var ReleaseCatalogCompilationError = class extends Error {
@@ -284,7 +284,7 @@ function compileAppVersion(releases) {
284
284
  ...segment,
285
285
  releaseIndexes: releases.filter((release) => retainedIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0),
286
286
  rollbackReleaseIndexes: releases.filter((release) => rollbackIds.has(release.id)).map((release) => descriptorIndex.get(release.id)).filter((index) => index !== void 0)
287
- })).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0));
287
+ }))).filter((segment) => segment.releaseIndexes.length > 0 || segment.rollbackReleaseIndexes.length > 0);
288
288
  return {
289
289
  envelope: {
290
290
  fallbackPolicy: RELEASE_CATALOG_FALLBACK_POLICY,