@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.
- package/dist/coreApi.d.cts +131 -0
- package/dist/coreApi.d.mts +131 -0
- package/dist/database/adapter.cjs +46 -0
- package/dist/database/adapter.d.cts +183 -0
- package/dist/database/adapter.d.mts +183 -0
- package/dist/database/adapter.mjs +38 -0
- package/dist/{insightsDistinctSummary.mjs → database/distinct.cjs} +25 -11
- package/dist/database/distinct.d.cts +16 -0
- package/dist/database/distinct.d.mts +16 -0
- package/dist/{insightsDistinctSummary.cjs → database/distinct.mjs} +21 -15
- package/dist/database/memoryAdapter.cjs +115 -0
- package/dist/database/memoryAdapter.d.cts +16 -0
- package/dist/database/memoryAdapter.d.mts +16 -0
- package/dist/database/memoryAdapter.mjs +115 -0
- package/dist/database/values.cjs +110 -0
- package/dist/database/values.d.cts +30 -0
- package/dist/database/values.d.mts +30 -0
- package/dist/database/values.mjs +100 -0
- package/dist/database/verifyAdapter.cjs +136 -0
- package/dist/database/verifyAdapter.d.cts +29 -0
- package/dist/database/verifyAdapter.d.mts +29 -0
- package/dist/database/verifyAdapter.mjs +135 -0
- package/dist/databaseErrors.cjs +30 -0
- package/dist/databaseErrors.d.cts +21 -0
- package/dist/databaseErrors.d.mts +21 -0
- package/dist/databaseErrors.mjs +28 -0
- package/dist/databaseJsonValue.cjs +0 -2
- package/dist/databaseJsonValue.d.cts +3 -3
- package/dist/databaseJsonValue.d.mts +3 -3
- package/dist/databaseJsonValue.mjs +1 -2
- package/dist/databaseMetadata.cjs +2 -2
- package/dist/databaseMetadata.mjs +1 -1
- package/dist/index.cjs +9 -39
- package/dist/index.d.cts +13 -19
- package/dist/index.d.mts +13 -19
- package/dist/index.mjs +7 -14
- package/dist/internal.cjs +37 -20
- package/dist/internal.d.cts +11 -12
- package/dist/internal.d.mts +11 -12
- package/dist/internal.mjs +8 -6
- package/dist/releaseCatalogCompiler.cjs +1 -1
- package/dist/releaseCatalogCompiler.mjs +2 -2
- package/dist/releaseCatalogMutation.cjs +0 -292
- package/dist/releaseCatalogMutation.d.cts +4 -45
- package/dist/releaseCatalogMutation.d.mts +4 -45
- package/dist/releaseCatalogMutation.mjs +1 -288
- package/dist/releaseManagement.cjs +0 -221
- package/dist/releaseManagement.d.cts +4 -28
- package/dist/releaseManagement.d.mts +4 -28
- package/dist/releaseManagement.mjs +1 -216
- package/dist/types/databaseConfig.cjs +5 -0
- package/dist/types/databaseConfig.d.cts +61 -0
- package/dist/types/databaseConfig.d.mts +61 -0
- package/dist/types/databaseConfig.mjs +5 -0
- package/dist/types/databaseOperations.d.cts +5 -174
- package/dist/types/databaseOperations.d.mts +5 -174
- package/dist/types/databaseRows.d.cts +1 -53
- package/dist/types/databaseRows.d.mts +1 -53
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +8 -74
- package/dist/types/index.d.mts +8 -74
- package/dist/types/index.mjs +2 -1
- package/dist/types/internal.d.cts +4 -8
- package/dist/types/internal.d.mts +4 -8
- package/dist/types/models.d.cts +14 -0
- package/dist/types/models.d.mts +14 -0
- package/dist/types/public.d.cts +4 -3
- package/dist/types/public.d.mts +4 -3
- package/package.json +1 -1
- package/dist/calculatePagination.cjs +0 -25
- package/dist/calculatePagination.d.cts +0 -12
- package/dist/calculatePagination.d.mts +0 -12
- package/dist/calculatePagination.mjs +0 -25
- package/dist/createDatabasePlugin.cjs +0 -875
- package/dist/createDatabasePlugin.d.cts +0 -28
- package/dist/createDatabasePlugin.d.mts +0 -28
- package/dist/createDatabasePlugin.mjs +0 -871
- package/dist/databaseClient.cjs +0 -117
- package/dist/databaseClient.d.cts +0 -32
- package/dist/databaseClient.d.mts +0 -32
- package/dist/databaseClient.mjs +0 -114
- package/dist/databaseClientReads.cjs +0 -115
- package/dist/databaseClientReads.mjs +0 -113
- package/dist/databaseClientUpdates.cjs +0 -37
- package/dist/databaseClientUpdates.d.cts +0 -11
- package/dist/databaseClientUpdates.d.mts +0 -11
- package/dist/databaseClientUpdates.mjs +0 -35
- package/dist/databasePluginCrud.cjs +0 -87
- package/dist/databasePluginCrud.d.cts +0 -4
- package/dist/databasePluginCrud.d.mts +0 -4
- package/dist/databasePluginCrud.mjs +0 -86
- package/dist/databasePluginCrudValidation.d.cts +0 -6
- package/dist/databasePluginCrudValidation.d.mts +0 -6
- package/dist/databasePluginCrudValidationErrors.cjs +0 -11
- package/dist/databasePluginCrudValidationErrors.d.cts +0 -9
- package/dist/databasePluginCrudValidationErrors.d.mts +0 -9
- package/dist/databasePluginCrudValidationErrors.mjs +0 -11
- package/dist/databasePluginCrudValidationFields.cjs +0 -284
- package/dist/databasePluginCrudValidationFields.d.cts +0 -1
- package/dist/databasePluginCrudValidationFields.d.mts +0 -1
- package/dist/databasePluginCrudValidationFields.mjs +0 -272
- package/dist/databasePluginCrudValidationMutations.cjs +0 -88
- package/dist/databasePluginCrudValidationMutations.d.cts +0 -1
- package/dist/databasePluginCrudValidationMutations.d.mts +0 -1
- package/dist/databasePluginCrudValidationMutations.mjs +0 -82
- package/dist/databasePluginCrudValidationQueries.cjs +0 -103
- package/dist/databasePluginCrudValidationQueries.d.cts +0 -2
- package/dist/databasePluginCrudValidationQueries.d.mts +0 -2
- package/dist/databasePluginCrudValidationQueries.mjs +0 -97
- package/dist/databasePluginCrudValidationRows.cjs +0 -55
- package/dist/databasePluginCrudValidationRows.d.cts +0 -1
- package/dist/databasePluginCrudValidationRows.d.mts +0 -1
- package/dist/databasePluginCrudValidationRows.mjs +0 -53
- package/dist/databasePluginTransaction.cjs +0 -7
- package/dist/databasePluginTransaction.mjs +0 -7
- package/dist/insightsContract.cjs +0 -192
- package/dist/insightsContract.d.cts +0 -9
- package/dist/insightsContract.d.mts +0 -9
- package/dist/insightsContract.mjs +0 -189
- package/dist/insightsDistinctSummary.d.cts +0 -12
- package/dist/insightsDistinctSummary.d.mts +0 -12
- package/dist/insightsLatestQueries.cjs +0 -53
- package/dist/insightsLatestQueries.d.cts +0 -13
- package/dist/insightsLatestQueries.d.mts +0 -13
- package/dist/insightsLatestQueries.mjs +0 -52
- package/dist/insightsOverview.cjs +0 -139
- package/dist/insightsOverview.d.cts +0 -40
- package/dist/insightsOverview.d.mts +0 -40
- package/dist/insightsOverview.mjs +0 -135
- package/dist/paginateBundles.cjs +0 -53
- package/dist/paginateBundles.d.cts +0 -13
- package/dist/paginateBundles.d.mts +0 -13
- package/dist/paginateBundles.mjs +0 -53
- package/dist/queryBundles.cjs +0 -34
- package/dist/queryBundles.d.cts +0 -9
- package/dist/queryBundles.d.mts +0 -9
- package/dist/queryBundles.mjs +0 -32
- package/dist/requestBundleCache.cjs +0 -22
- package/dist/requestBundleCache.d.cts +0 -8
- package/dist/requestBundleCache.d.mts +0 -8
- package/dist/requestBundleCache.mjs +0 -22
- package/dist/types/database.d.cts +0 -5
- package/dist/types/database.d.mts +0 -5
- package/dist/types/databaseFields.cjs +0 -85
- package/dist/types/databaseFields.d.cts +0 -12
- package/dist/types/databaseFields.d.mts +0 -12
- package/dist/types/databaseFields.mjs +0 -85
- package/dist/types/databasePlugin.d.cts +0 -388
- package/dist/types/databasePlugin.d.mts +0 -388
- package/dist/types/databaseQuery.d.cts +0 -46
- package/dist/types/databaseQuery.d.mts +0 -46
package/dist/queryBundles.cjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//#region src/queryBundles.ts
|
|
2
|
-
const compareValue = (value, expected, comparator) => {
|
|
3
|
-
if (expected === void 0) return true;
|
|
4
|
-
switch (comparator) {
|
|
5
|
-
case "eq": return value === expected;
|
|
6
|
-
case "gt": return value.localeCompare(expected) > 0;
|
|
7
|
-
case "gte": return value.localeCompare(expected) >= 0;
|
|
8
|
-
case "lt": return value.localeCompare(expected) < 0;
|
|
9
|
-
case "lte": return value.localeCompare(expected) <= 0;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
function bundleIdMatchesFilter(id, filter) {
|
|
13
|
-
if (!filter) return true;
|
|
14
|
-
if (filter.in && !filter.in.includes(id)) return false;
|
|
15
|
-
return compareValue(id, filter.eq, "eq") && compareValue(id, filter.gt, "gt") && compareValue(id, filter.gte, "gte") && compareValue(id, filter.lt, "lt") && compareValue(id, filter.lte, "lte");
|
|
16
|
-
}
|
|
17
|
-
function bundleMatchesQueryWhere(bundle, where) {
|
|
18
|
-
if (!where) return true;
|
|
19
|
-
if (where.platform !== void 0 && bundle.platform !== where.platform) return false;
|
|
20
|
-
if (!bundleIdMatchesFilter(bundle.id, where.id)) return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
function sortBundles(bundles, orderBy) {
|
|
24
|
-
const direction = orderBy?.direction ?? "desc";
|
|
25
|
-
if (orderBy && orderBy.field !== "id") return [...bundles];
|
|
26
|
-
return bundles.slice().sort((a, b) => {
|
|
27
|
-
const result = a.id.localeCompare(b.id);
|
|
28
|
-
return direction === "asc" ? result : -result;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
exports.bundleIdMatchesFilter = bundleIdMatchesFilter;
|
|
33
|
-
exports.bundleMatchesQueryWhere = bundleMatchesQueryWhere;
|
|
34
|
-
exports.sortBundles = sortBundles;
|
package/dist/queryBundles.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Bundle, DatabaseBundleIdFilter, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere } from "./types/index.cjs";
|
|
2
|
-
//#region src/queryBundles.d.ts
|
|
3
|
-
declare function bundleIdMatchesFilter(id: string, filter: DatabaseBundleIdFilter | undefined): boolean;
|
|
4
|
-
declare function bundleMatchesQueryWhere(bundle: Bundle, where: DatabaseBundleQueryWhere | undefined): boolean;
|
|
5
|
-
declare function sortBundles<TBundle extends {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
}>(bundles: readonly TBundle[], orderBy: DatabaseBundleQueryOrder | undefined): TBundle[];
|
|
8
|
-
//#endregion
|
|
9
|
-
export { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles };
|
package/dist/queryBundles.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Bundle, DatabaseBundleIdFilter, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere } from "./types/index.mjs";
|
|
2
|
-
//#region src/queryBundles.d.ts
|
|
3
|
-
declare function bundleIdMatchesFilter(id: string, filter: DatabaseBundleIdFilter | undefined): boolean;
|
|
4
|
-
declare function bundleMatchesQueryWhere(bundle: Bundle, where: DatabaseBundleQueryWhere | undefined): boolean;
|
|
5
|
-
declare function sortBundles<TBundle extends {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
}>(bundles: readonly TBundle[], orderBy: DatabaseBundleQueryOrder | undefined): TBundle[];
|
|
8
|
-
//#endregion
|
|
9
|
-
export { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles };
|
package/dist/queryBundles.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/queryBundles.ts
|
|
2
|
-
const compareValue = (value, expected, comparator) => {
|
|
3
|
-
if (expected === void 0) return true;
|
|
4
|
-
switch (comparator) {
|
|
5
|
-
case "eq": return value === expected;
|
|
6
|
-
case "gt": return value.localeCompare(expected) > 0;
|
|
7
|
-
case "gte": return value.localeCompare(expected) >= 0;
|
|
8
|
-
case "lt": return value.localeCompare(expected) < 0;
|
|
9
|
-
case "lte": return value.localeCompare(expected) <= 0;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
function bundleIdMatchesFilter(id, filter) {
|
|
13
|
-
if (!filter) return true;
|
|
14
|
-
if (filter.in && !filter.in.includes(id)) return false;
|
|
15
|
-
return compareValue(id, filter.eq, "eq") && compareValue(id, filter.gt, "gt") && compareValue(id, filter.gte, "gte") && compareValue(id, filter.lt, "lt") && compareValue(id, filter.lte, "lte");
|
|
16
|
-
}
|
|
17
|
-
function bundleMatchesQueryWhere(bundle, where) {
|
|
18
|
-
if (!where) return true;
|
|
19
|
-
if (where.platform !== void 0 && bundle.platform !== where.platform) return false;
|
|
20
|
-
if (!bundleIdMatchesFilter(bundle.id, where.id)) return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
function sortBundles(bundles, orderBy) {
|
|
24
|
-
const direction = orderBy?.direction ?? "desc";
|
|
25
|
-
if (orderBy && orderBy.field !== "id") return [...bundles];
|
|
26
|
-
return bundles.slice().sort((a, b) => {
|
|
27
|
-
const result = a.id.localeCompare(b.id);
|
|
28
|
-
return direction === "asc" ? result : -result;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { bundleIdMatchesFilter, bundleMatchesQueryWhere, sortBundles };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region src/requestBundleCache.ts
|
|
2
|
-
const createRequestBundleResolver = () => {
|
|
3
|
-
const entries = /* @__PURE__ */ new Map();
|
|
4
|
-
const pendingLoads = /* @__PURE__ */ new Map();
|
|
5
|
-
return { async getById(bundleId, loadBundleById) {
|
|
6
|
-
if (entries.has(bundleId)) return entries.get(bundleId) ?? null;
|
|
7
|
-
const pending = pendingLoads.get(bundleId);
|
|
8
|
-
if (pending) return pending;
|
|
9
|
-
const load = loadBundleById().then((bundle) => {
|
|
10
|
-
pendingLoads.delete(bundleId);
|
|
11
|
-
if (!entries.has(bundleId)) entries.set(bundleId, bundle);
|
|
12
|
-
return entries.get(bundleId) ?? null;
|
|
13
|
-
}, (error) => {
|
|
14
|
-
pendingLoads.delete(bundleId);
|
|
15
|
-
throw error;
|
|
16
|
-
});
|
|
17
|
-
pendingLoads.set(bundleId, load);
|
|
18
|
-
return load;
|
|
19
|
-
} };
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
exports.createRequestBundleResolver = createRequestBundleResolver;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Bundle } from "./types/index.cjs";
|
|
2
|
-
//#region src/requestBundleCache.d.ts
|
|
3
|
-
interface RequestBundleResolver {
|
|
4
|
-
readonly getById: (bundleId: string, loadBundleById: () => Promise<Bundle | null>) => Promise<Bundle | null>;
|
|
5
|
-
}
|
|
6
|
-
declare const createRequestBundleResolver: () => RequestBundleResolver;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { RequestBundleResolver, createRequestBundleResolver };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Bundle } from "./types/index.mjs";
|
|
2
|
-
//#region src/requestBundleCache.d.ts
|
|
3
|
-
interface RequestBundleResolver {
|
|
4
|
-
readonly getById: (bundleId: string, loadBundleById: () => Promise<Bundle | null>) => Promise<Bundle | null>;
|
|
5
|
-
}
|
|
6
|
-
declare const createRequestBundleResolver: () => RequestBundleResolver;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { RequestBundleResolver, createRequestBundleResolver };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region src/requestBundleCache.ts
|
|
2
|
-
const createRequestBundleResolver = () => {
|
|
3
|
-
const entries = /* @__PURE__ */ new Map();
|
|
4
|
-
const pendingLoads = /* @__PURE__ */ new Map();
|
|
5
|
-
return { async getById(bundleId, loadBundleById) {
|
|
6
|
-
if (entries.has(bundleId)) return entries.get(bundleId) ?? null;
|
|
7
|
-
const pending = pendingLoads.get(bundleId);
|
|
8
|
-
if (pending) return pending;
|
|
9
|
-
const load = loadBundleById().then((bundle) => {
|
|
10
|
-
pendingLoads.delete(bundleId);
|
|
11
|
-
if (!entries.has(bundleId)) entries.set(bundleId, bundle);
|
|
12
|
-
return entries.get(bundleId) ?? null;
|
|
13
|
-
}, (error) => {
|
|
14
|
-
pendingLoads.delete(bundleId);
|
|
15
|
-
throw error;
|
|
16
|
-
});
|
|
17
|
-
pendingLoads.set(bundleId, load);
|
|
18
|
-
return load;
|
|
19
|
-
} };
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { createRequestBundleResolver };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseField, DatabaseJsonObject, DatabaseJsonValue, DatabaseModel, DatabaseModelMap, DatabaseRow, ReleaseCatalogRow, ReleaseRow } from "./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 "./databasePlugin.cjs";
|
|
3
|
-
import { DatabaseDistinctFields, DatabaseDistinctOn, DatabaseOrderBy, DatabaseSelect, DatabaseSortBy, DatabaseSortClause, DatabaseSortNulls, DatabaseStringComparisonMode, DatabaseWhere, DatabaseWhereConnector, DatabaseWhereOperator, SelectedDatabaseRow } from "./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 "./databaseOperations.cjs";
|
|
5
|
-
export { ApiKeyModel, ApiKeyRow, ApiKeyRowUpdate, BundleEventRow, BundleEventRowBase, BundleModel, BundleModelQuery, BundlePatchModel, BundlePatchRow, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, BundleRow, BundleRowUpdate, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, ChannelRow, CountBundlesDatabaseImplementationInput, CountBundlesDatabaseInput, CountDatabaseImplementationInput, CountDatabaseInput, CountDatabaseModel, CreateDatabaseImplementationInput, CreateDatabaseInput, CreateDatabaseModel, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseCapability, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseDeleteModel, DatabaseDistinctFields, DatabaseDistinctOn, DatabaseField, DatabaseFindOneModel, DatabaseImplementationResult, DatabaseJsonObject, DatabaseJsonValue, DatabaseModel, DatabaseModelCapabilities, DatabaseModelMap, DatabaseModels, DatabaseModelsWithCapability, DatabaseOrderBy, DatabasePlugin, DatabasePluginCrud, DatabasePluginImplementation, DatabaseRow, DatabaseRowUpdate, DatabaseSelect, DatabaseSortBy, DatabaseSortClause, DatabaseSortNulls, DatabaseStringComparisonMode, DatabaseWhere, DatabaseWhereConnector, DatabaseWhereOperator, DeleteDatabaseImplementationInput, DeleteDatabaseInput, DeleteDatabaseModel, FindManyDatabaseImplementationInput, FindManyDatabaseInput, FindManyDatabaseModel, FindManyDatabasePluginInput, FindOneDatabaseImplementationInput, FindOneDatabaseInput, FindOneDatabaseModel, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseCatalogRow, ReleaseCatalogRowUpdate, ReleaseModel, ReleaseReference, ReleaseRow, ReleaseRowUpdate, SelectedDatabaseInputRow, SelectedDatabaseRow, TransactionDatabasePluginImplementation, UpdateBundleDatabaseImplementationInput, UpdateBundleDatabaseInput, UpdateDatabaseImplementationInput, UpdateDatabaseInput, UpdateDatabaseModel };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ApiKeyRow, BundleEventRow, BundleEventRowBase, BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseField, DatabaseJsonObject, DatabaseJsonValue, DatabaseModel, DatabaseModelMap, DatabaseRow, ReleaseCatalogRow, ReleaseRow } from "./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 "./databasePlugin.mjs";
|
|
3
|
-
import { DatabaseDistinctFields, DatabaseDistinctOn, DatabaseOrderBy, DatabaseSelect, DatabaseSortBy, DatabaseSortClause, DatabaseSortNulls, DatabaseStringComparisonMode, DatabaseWhere, DatabaseWhereConnector, DatabaseWhereOperator, SelectedDatabaseRow } from "./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 "./databaseOperations.mjs";
|
|
5
|
-
export { ApiKeyModel, ApiKeyRow, ApiKeyRowUpdate, BundleEventRow, BundleEventRowBase, BundleModel, BundleModelQuery, BundlePatchModel, BundlePatchRow, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, BundleRow, BundleRowUpdate, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, ChannelRow, CountBundlesDatabaseImplementationInput, CountBundlesDatabaseInput, CountDatabaseImplementationInput, CountDatabaseInput, CountDatabaseModel, CreateDatabaseImplementationInput, CreateDatabaseInput, CreateDatabaseModel, DatabaseBundleEventMetadata, DatabaseBundleMetadata, DatabaseCapability, DatabaseChange, DatabaseCommit, DatabaseCommitExpectation, DatabaseCommitResult, DatabaseDeleteModel, DatabaseDistinctFields, DatabaseDistinctOn, DatabaseField, DatabaseFindOneModel, DatabaseImplementationResult, DatabaseJsonObject, DatabaseJsonValue, DatabaseModel, DatabaseModelCapabilities, DatabaseModelMap, DatabaseModels, DatabaseModelsWithCapability, DatabaseOrderBy, DatabasePlugin, DatabasePluginCrud, DatabasePluginImplementation, DatabaseRow, DatabaseRowUpdate, DatabaseSelect, DatabaseSortBy, DatabaseSortClause, DatabaseSortNulls, DatabaseStringComparisonMode, DatabaseWhere, DatabaseWhereConnector, DatabaseWhereOperator, DeleteDatabaseImplementationInput, DeleteDatabaseInput, DeleteDatabaseModel, FindManyDatabaseImplementationInput, FindManyDatabaseInput, FindManyDatabaseModel, FindManyDatabasePluginInput, FindOneDatabaseImplementationInput, FindOneDatabaseInput, FindOneDatabaseModel, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseCatalogRow, ReleaseCatalogRowUpdate, ReleaseModel, ReleaseReference, ReleaseRow, ReleaseRowUpdate, SelectedDatabaseInputRow, SelectedDatabaseRow, TransactionDatabasePluginImplementation, UpdateBundleDatabaseImplementationInput, UpdateBundleDatabaseInput, UpdateDatabaseImplementationInput, UpdateDatabaseInput, UpdateDatabaseModel };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
//#region src/types/databaseFields.ts
|
|
2
|
-
const databaseFields = {
|
|
3
|
-
bundles: [
|
|
4
|
-
"id",
|
|
5
|
-
"platform",
|
|
6
|
-
"git_commit_hash",
|
|
7
|
-
"metadata",
|
|
8
|
-
"manifest_storage_uri",
|
|
9
|
-
"manifest_file_hash",
|
|
10
|
-
"asset_base_storage_uri"
|
|
11
|
-
],
|
|
12
|
-
bundle_patches: [
|
|
13
|
-
"id",
|
|
14
|
-
"bundle_id",
|
|
15
|
-
"base_bundle_id",
|
|
16
|
-
"base_file_hash",
|
|
17
|
-
"patch_file_hash",
|
|
18
|
-
"patch_storage_uri",
|
|
19
|
-
"byte_size",
|
|
20
|
-
"order_index"
|
|
21
|
-
],
|
|
22
|
-
releases: [
|
|
23
|
-
"id",
|
|
24
|
-
"revision",
|
|
25
|
-
"scope_key",
|
|
26
|
-
"channel_id",
|
|
27
|
-
"platform",
|
|
28
|
-
"kind",
|
|
29
|
-
"bundle_id",
|
|
30
|
-
"strategy",
|
|
31
|
-
"target_app_version",
|
|
32
|
-
"fingerprint_hash",
|
|
33
|
-
"enabled",
|
|
34
|
-
"should_force_update",
|
|
35
|
-
"message",
|
|
36
|
-
"rollout_cohort_count",
|
|
37
|
-
"target_cohorts",
|
|
38
|
-
"operation",
|
|
39
|
-
"source_release_id",
|
|
40
|
-
"created_at_ms",
|
|
41
|
-
"updated_at_ms"
|
|
42
|
-
],
|
|
43
|
-
release_catalogs: [
|
|
44
|
-
"scope_key",
|
|
45
|
-
"catalog_id",
|
|
46
|
-
"strategy",
|
|
47
|
-
"channel_id",
|
|
48
|
-
"channel_key",
|
|
49
|
-
"platform",
|
|
50
|
-
"fingerprint_hash",
|
|
51
|
-
"generation",
|
|
52
|
-
"payload",
|
|
53
|
-
"catalog_hash",
|
|
54
|
-
"byte_size",
|
|
55
|
-
"is_tombstone",
|
|
56
|
-
"updated_at_ms"
|
|
57
|
-
],
|
|
58
|
-
channels: ["id", "name"],
|
|
59
|
-
bundle_events: [
|
|
60
|
-
"id",
|
|
61
|
-
"type",
|
|
62
|
-
"install_id",
|
|
63
|
-
"user_id",
|
|
64
|
-
"from_bundle_id",
|
|
65
|
-
"from_release_id",
|
|
66
|
-
"to_release_id",
|
|
67
|
-
"to_bundle_id",
|
|
68
|
-
"platform",
|
|
69
|
-
"app_version",
|
|
70
|
-
"channel",
|
|
71
|
-
"metadata",
|
|
72
|
-
"received_at_ms"
|
|
73
|
-
],
|
|
74
|
-
api_keys: [
|
|
75
|
-
"id",
|
|
76
|
-
"hash",
|
|
77
|
-
"name",
|
|
78
|
-
"prefix",
|
|
79
|
-
"role",
|
|
80
|
-
"created_at_ms",
|
|
81
|
-
"revoked_at_ms"
|
|
82
|
-
]
|
|
83
|
-
};
|
|
84
|
-
//#endregion
|
|
85
|
-
exports.databaseFields = databaseFields;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/types/databaseFields.d.ts
|
|
2
|
-
declare const databaseFields: {
|
|
3
|
-
readonly bundles: readonly ["id", "platform", "git_commit_hash", "metadata", "manifest_storage_uri", "manifest_file_hash", "asset_base_storage_uri"];
|
|
4
|
-
readonly bundle_patches: readonly ["id", "bundle_id", "base_bundle_id", "base_file_hash", "patch_file_hash", "patch_storage_uri", "byte_size", "order_index"];
|
|
5
|
-
readonly releases: readonly ["id", "revision", "scope_key", "channel_id", "platform", "kind", "bundle_id", "strategy", "target_app_version", "fingerprint_hash", "enabled", "should_force_update", "message", "rollout_cohort_count", "target_cohorts", "operation", "source_release_id", "created_at_ms", "updated_at_ms"];
|
|
6
|
-
readonly release_catalogs: readonly ["scope_key", "catalog_id", "strategy", "channel_id", "channel_key", "platform", "fingerprint_hash", "generation", "payload", "catalog_hash", "byte_size", "is_tombstone", "updated_at_ms"];
|
|
7
|
-
readonly channels: readonly ["id", "name"];
|
|
8
|
-
readonly bundle_events: readonly ["id", "type", "install_id", "user_id", "from_bundle_id", "from_release_id", "to_release_id", "to_bundle_id", "platform", "app_version", "channel", "metadata", "received_at_ms"];
|
|
9
|
-
readonly api_keys: readonly ["id", "hash", "name", "prefix", "role", "created_at_ms", "revoked_at_ms"];
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { databaseFields };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/types/databaseFields.d.ts
|
|
2
|
-
declare const databaseFields: {
|
|
3
|
-
readonly bundles: readonly ["id", "platform", "git_commit_hash", "metadata", "manifest_storage_uri", "manifest_file_hash", "asset_base_storage_uri"];
|
|
4
|
-
readonly bundle_patches: readonly ["id", "bundle_id", "base_bundle_id", "base_file_hash", "patch_file_hash", "patch_storage_uri", "byte_size", "order_index"];
|
|
5
|
-
readonly releases: readonly ["id", "revision", "scope_key", "channel_id", "platform", "kind", "bundle_id", "strategy", "target_app_version", "fingerprint_hash", "enabled", "should_force_update", "message", "rollout_cohort_count", "target_cohorts", "operation", "source_release_id", "created_at_ms", "updated_at_ms"];
|
|
6
|
-
readonly release_catalogs: readonly ["scope_key", "catalog_id", "strategy", "channel_id", "channel_key", "platform", "fingerprint_hash", "generation", "payload", "catalog_hash", "byte_size", "is_tombstone", "updated_at_ms"];
|
|
7
|
-
readonly channels: readonly ["id", "name"];
|
|
8
|
-
readonly bundle_events: readonly ["id", "type", "install_id", "user_id", "from_bundle_id", "from_release_id", "to_release_id", "to_bundle_id", "platform", "app_version", "channel", "metadata", "received_at_ms"];
|
|
9
|
-
readonly api_keys: readonly ["id", "hash", "name", "prefix", "role", "created_at_ms", "revoked_at_ms"];
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { databaseFields };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
//#region src/types/databaseFields.ts
|
|
2
|
-
const databaseFields = {
|
|
3
|
-
bundles: [
|
|
4
|
-
"id",
|
|
5
|
-
"platform",
|
|
6
|
-
"git_commit_hash",
|
|
7
|
-
"metadata",
|
|
8
|
-
"manifest_storage_uri",
|
|
9
|
-
"manifest_file_hash",
|
|
10
|
-
"asset_base_storage_uri"
|
|
11
|
-
],
|
|
12
|
-
bundle_patches: [
|
|
13
|
-
"id",
|
|
14
|
-
"bundle_id",
|
|
15
|
-
"base_bundle_id",
|
|
16
|
-
"base_file_hash",
|
|
17
|
-
"patch_file_hash",
|
|
18
|
-
"patch_storage_uri",
|
|
19
|
-
"byte_size",
|
|
20
|
-
"order_index"
|
|
21
|
-
],
|
|
22
|
-
releases: [
|
|
23
|
-
"id",
|
|
24
|
-
"revision",
|
|
25
|
-
"scope_key",
|
|
26
|
-
"channel_id",
|
|
27
|
-
"platform",
|
|
28
|
-
"kind",
|
|
29
|
-
"bundle_id",
|
|
30
|
-
"strategy",
|
|
31
|
-
"target_app_version",
|
|
32
|
-
"fingerprint_hash",
|
|
33
|
-
"enabled",
|
|
34
|
-
"should_force_update",
|
|
35
|
-
"message",
|
|
36
|
-
"rollout_cohort_count",
|
|
37
|
-
"target_cohorts",
|
|
38
|
-
"operation",
|
|
39
|
-
"source_release_id",
|
|
40
|
-
"created_at_ms",
|
|
41
|
-
"updated_at_ms"
|
|
42
|
-
],
|
|
43
|
-
release_catalogs: [
|
|
44
|
-
"scope_key",
|
|
45
|
-
"catalog_id",
|
|
46
|
-
"strategy",
|
|
47
|
-
"channel_id",
|
|
48
|
-
"channel_key",
|
|
49
|
-
"platform",
|
|
50
|
-
"fingerprint_hash",
|
|
51
|
-
"generation",
|
|
52
|
-
"payload",
|
|
53
|
-
"catalog_hash",
|
|
54
|
-
"byte_size",
|
|
55
|
-
"is_tombstone",
|
|
56
|
-
"updated_at_ms"
|
|
57
|
-
],
|
|
58
|
-
channels: ["id", "name"],
|
|
59
|
-
bundle_events: [
|
|
60
|
-
"id",
|
|
61
|
-
"type",
|
|
62
|
-
"install_id",
|
|
63
|
-
"user_id",
|
|
64
|
-
"from_bundle_id",
|
|
65
|
-
"from_release_id",
|
|
66
|
-
"to_release_id",
|
|
67
|
-
"to_bundle_id",
|
|
68
|
-
"platform",
|
|
69
|
-
"app_version",
|
|
70
|
-
"channel",
|
|
71
|
-
"metadata",
|
|
72
|
-
"received_at_ms"
|
|
73
|
-
],
|
|
74
|
-
api_keys: [
|
|
75
|
-
"id",
|
|
76
|
-
"hash",
|
|
77
|
-
"name",
|
|
78
|
-
"prefix",
|
|
79
|
-
"role",
|
|
80
|
-
"created_at_ms",
|
|
81
|
-
"revoked_at_ms"
|
|
82
|
-
]
|
|
83
|
-
};
|
|
84
|
-
//#endregion
|
|
85
|
-
export { databaseFields };
|