@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
|
@@ -1,178 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, DatabaseCommit, DatabaseCommitResult, InsightsModel, InsightsRecordEventInput } from "./databasePlugin.mjs";
|
|
3
|
-
import { DatabaseDistinctFields, DatabaseDistinctOn, DatabaseOrderBy, DatabaseSelect, DatabaseWhere, SelectedDatabaseRow } from "./databaseQuery.mjs";
|
|
1
|
+
import { BundleRow, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.mjs";
|
|
4
2
|
//#region src/types/databaseOperations.d.ts
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
readonly create: true;
|
|
9
|
-
readonly update: true;
|
|
10
|
-
readonly delete: true;
|
|
11
|
-
readonly count: true;
|
|
12
|
-
readonly findOne: true;
|
|
13
|
-
readonly findMany: true;
|
|
14
|
-
};
|
|
15
|
-
readonly bundle_patches: {
|
|
16
|
-
readonly create: true;
|
|
17
|
-
readonly update: false;
|
|
18
|
-
readonly delete: true;
|
|
19
|
-
readonly count: true;
|
|
20
|
-
readonly findOne: true;
|
|
21
|
-
readonly findMany: true;
|
|
22
|
-
};
|
|
23
|
-
readonly releases: {
|
|
24
|
-
readonly create: true;
|
|
25
|
-
readonly update: true;
|
|
26
|
-
readonly delete: true;
|
|
27
|
-
readonly count: true;
|
|
28
|
-
readonly findOne: true;
|
|
29
|
-
readonly findMany: true;
|
|
30
|
-
};
|
|
31
|
-
readonly release_catalogs: {
|
|
32
|
-
readonly create: true;
|
|
33
|
-
readonly update: true;
|
|
34
|
-
readonly delete: false;
|
|
35
|
-
readonly count: false;
|
|
36
|
-
readonly findOne: true;
|
|
37
|
-
readonly findMany: true;
|
|
38
|
-
};
|
|
39
|
-
readonly channels: {
|
|
40
|
-
readonly create: true;
|
|
41
|
-
readonly update: false;
|
|
42
|
-
readonly delete: true;
|
|
43
|
-
readonly count: false;
|
|
44
|
-
readonly findOne: true;
|
|
45
|
-
readonly findMany: true;
|
|
46
|
-
};
|
|
47
|
-
readonly bundle_events: {
|
|
48
|
-
readonly create: true;
|
|
49
|
-
readonly update: false;
|
|
50
|
-
readonly delete: false;
|
|
51
|
-
readonly count: true;
|
|
52
|
-
readonly findOne: false;
|
|
53
|
-
readonly findMany: true;
|
|
54
|
-
};
|
|
55
|
-
readonly api_keys: {
|
|
56
|
-
readonly create: true;
|
|
57
|
-
readonly update: true;
|
|
58
|
-
readonly delete: false;
|
|
59
|
-
readonly count: false;
|
|
60
|
-
readonly findOne: true;
|
|
61
|
-
readonly findMany: true;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
type DatabaseModelsWithCapability<TCapability extends DatabaseCapability> = { readonly [TModel in DatabaseModel]: DatabaseModelCapabilities[TModel][TCapability] extends true ? TModel : never; }[DatabaseModel];
|
|
65
|
-
type CreateDatabaseModel = DatabaseModelsWithCapability<"create">;
|
|
66
|
-
type UpdateDatabaseModel = DatabaseModelsWithCapability<"update">;
|
|
67
|
-
type DeleteDatabaseModel = DatabaseModelsWithCapability<"delete">;
|
|
68
|
-
type CountDatabaseModel = DatabaseModelsWithCapability<"count">;
|
|
69
|
-
type FindOneDatabaseModel = DatabaseModelsWithCapability<"findOne">;
|
|
70
|
-
type FindManyDatabaseModel = DatabaseModelsWithCapability<"findMany">;
|
|
71
|
-
type DatabaseDeleteModel = DeleteDatabaseModel;
|
|
72
|
-
type DatabaseFindOneModel = FindOneDatabaseModel;
|
|
73
|
-
type CreateDatabaseInputBase<TModel extends CreateDatabaseModel, TSelect extends DatabaseSelect<TModel> | undefined = undefined> = {
|
|
74
|
-
readonly model: TModel;
|
|
75
|
-
readonly data: DatabaseRow<TModel>;
|
|
76
|
-
readonly select?: TSelect;
|
|
77
|
-
};
|
|
78
|
-
type CreateDatabaseInput<TModel extends CreateDatabaseModel, TSelect extends DatabaseSelect<TModel> | undefined = undefined> = CreateDatabaseInputBase<TModel, TSelect> & (TModel extends "channels" | "api_keys" ? {
|
|
79
|
-
readonly onConflict?: "ignore";
|
|
80
|
-
} : {
|
|
81
|
-
readonly onConflict?: never;
|
|
82
|
-
});
|
|
83
|
-
type BundleRowUpdateFields = Partial<Omit<BundleRow, "id">>;
|
|
3
|
+
/** The fields of a bundle row a change may set. */
|
|
4
|
+
type BundleRowUpdate = Partial<Omit<BundleRow, "id">>;
|
|
5
|
+
/** The fields of a release row a policy change may set. */
|
|
84
6
|
type ReleaseRowUpdate = Partial<Pick<ReleaseRow, "revision" | "scope_key" | "target_app_version" | "fingerprint_hash" | "enabled" | "should_force_update" | "message" | "rollout_cohort_count" | "target_cohorts" | "updated_at_ms">>;
|
|
85
7
|
type ReleaseCatalogRowUpdate = Omit<ReleaseCatalogRow, "scope_key">;
|
|
86
|
-
type BundleRowUpdate = BundleRowUpdateFields;
|
|
87
|
-
type ApiKeyRowUpdate = Pick<ApiKeyRow, "revoked_at_ms">;
|
|
88
|
-
type DatabaseRowUpdate<TModel extends UpdateDatabaseModel> = {
|
|
89
|
-
readonly bundles: BundleRowUpdate;
|
|
90
|
-
readonly releases: ReleaseRowUpdate;
|
|
91
|
-
readonly release_catalogs: ReleaseCatalogRowUpdate;
|
|
92
|
-
readonly api_keys: ApiKeyRowUpdate;
|
|
93
|
-
}[TModel];
|
|
94
|
-
type UpdateDatabaseInput<TModel extends UpdateDatabaseModel, TSelect extends DatabaseSelect<TModel> | undefined = undefined> = {
|
|
95
|
-
readonly model: TModel;
|
|
96
|
-
readonly where: readonly DatabaseWhere<TModel>[];
|
|
97
|
-
readonly update: DatabaseRowUpdate<TModel>;
|
|
98
|
-
readonly select?: TSelect;
|
|
99
|
-
};
|
|
100
|
-
type UpdateBundleDatabaseInput<TSelect extends DatabaseSelect<"bundles"> | undefined = undefined> = UpdateDatabaseInput<"bundles", TSelect>;
|
|
101
|
-
type DeleteDatabaseInput<TModel extends DeleteDatabaseModel> = {
|
|
102
|
-
readonly model: TModel;
|
|
103
|
-
readonly where: readonly DatabaseWhere<TModel>[];
|
|
104
|
-
};
|
|
105
|
-
type CountDatabaseInput<TModel extends CountDatabaseModel> = {
|
|
106
|
-
readonly model: TModel;
|
|
107
|
-
readonly where?: readonly DatabaseWhere<TModel>[];
|
|
108
|
-
readonly distinct?: DatabaseDistinctFields<TModel>;
|
|
109
|
-
};
|
|
110
|
-
type CountBundlesDatabaseInput = CountDatabaseInput<"bundles">;
|
|
111
|
-
type FindOneDatabaseInput<TModel extends FindOneDatabaseModel, TSelect extends DatabaseSelect<TModel> | undefined = undefined> = {
|
|
112
|
-
readonly model: TModel;
|
|
113
|
-
readonly where?: readonly DatabaseWhere<TModel>[];
|
|
114
|
-
readonly select?: TSelect;
|
|
115
|
-
};
|
|
116
|
-
type FindManyDatabaseInput<TModel extends FindManyDatabaseModel, TSelect extends DatabaseSelect<TModel> | undefined = undefined> = {
|
|
117
|
-
readonly model: TModel;
|
|
118
|
-
readonly where?: readonly DatabaseWhere<TModel>[];
|
|
119
|
-
readonly limit?: number;
|
|
120
|
-
readonly offset?: number;
|
|
121
|
-
readonly orderBy?: DatabaseOrderBy<TModel>;
|
|
122
|
-
readonly distinctOn?: DatabaseDistinctOn<TModel>;
|
|
123
|
-
readonly select?: TSelect;
|
|
124
|
-
};
|
|
125
|
-
type SelectedDatabaseInputRow<TInput extends {
|
|
126
|
-
readonly model: DatabaseModel;
|
|
127
|
-
readonly select?: readonly string[] | undefined;
|
|
128
|
-
}> = SelectedDatabaseRow<TInput["model"], "select" extends keyof TInput ? Extract<TInput["select"], DatabaseSelect<TInput["model"]> | undefined> : undefined>;
|
|
129
|
-
interface DatabasePluginCrud {
|
|
130
|
-
create<TInput extends CreateDatabaseImplementationInput>(input: TInput): Promise<SelectedDatabaseInputRow<TInput>>;
|
|
131
|
-
update<TInput extends UpdateDatabaseImplementationInput>(input: TInput): Promise<SelectedDatabaseInputRow<TInput> | null>;
|
|
132
|
-
delete(input: DeleteDatabaseImplementationInput): Promise<void>;
|
|
133
|
-
count(input: CountDatabaseImplementationInput): Promise<number>;
|
|
134
|
-
findOne<TInput extends FindOneDatabaseImplementationInput>(input: TInput): Promise<SelectedDatabaseInputRow<TInput> | null>;
|
|
135
|
-
findMany<TInput extends FindManyDatabasePluginInput>(input: TInput): Promise<SelectedDatabaseInputRow<TInput>[]>;
|
|
136
|
-
}
|
|
137
|
-
type DatabaseImplementationResult = { readonly [TModel in DatabaseModel]: Partial<DatabaseRow<TModel>>; }[DatabaseModel];
|
|
138
|
-
type CreateDatabaseImplementationInput = { readonly [TModel in CreateDatabaseModel]: CreateDatabaseInput<TModel, DatabaseSelect<TModel> | undefined>; }[CreateDatabaseModel];
|
|
139
|
-
type UpdateDatabaseImplementationInput = { readonly [TModel in UpdateDatabaseModel]: UpdateDatabaseInput<TModel, DatabaseSelect<TModel> | undefined>; }[UpdateDatabaseModel];
|
|
140
|
-
type DeleteDatabaseImplementationInput = { readonly [TModel in DeleteDatabaseModel]: DeleteDatabaseInput<TModel>; }[DeleteDatabaseModel];
|
|
141
|
-
type CountDatabaseImplementationInput = { readonly [TModel in CountDatabaseModel]: CountDatabaseInput<TModel>; }[CountDatabaseModel];
|
|
142
|
-
type UpdateBundleDatabaseImplementationInput = UpdateDatabaseInput<"bundles", DatabaseSelect<"bundles"> | undefined>;
|
|
143
|
-
type CountBundlesDatabaseImplementationInput = CountDatabaseInput<"bundles">;
|
|
144
|
-
type FindOneDatabaseImplementationInput = { readonly [TModel in FindOneDatabaseModel]: FindOneDatabaseInput<TModel, DatabaseSelect<TModel> | undefined>; }[FindOneDatabaseModel];
|
|
145
|
-
type FindManyDatabaseImplementationInput = { readonly [TModel in FindManyDatabaseModel]: Omit<FindManyDatabaseInput<TModel, DatabaseSelect<TModel> | undefined>, "limit" | "offset"> & {
|
|
146
|
-
readonly limit: number;
|
|
147
|
-
readonly offset: number;
|
|
148
|
-
}; }[FindManyDatabaseModel];
|
|
149
|
-
type FindManyDatabasePluginInput = { readonly [TModel in FindManyDatabaseModel]: FindManyDatabaseInput<TModel, DatabaseSelect<TModel> | undefined>; }[FindManyDatabaseModel];
|
|
150
|
-
interface TransactionDatabasePluginImplementation {
|
|
151
|
-
create(input: CreateDatabaseImplementationInput): Promise<DatabaseImplementationResult>;
|
|
152
|
-
update(input: UpdateDatabaseImplementationInput): Promise<DatabaseImplementationResult | null>;
|
|
153
|
-
delete(input: DeleteDatabaseImplementationInput): Promise<void>;
|
|
154
|
-
count(input: CountDatabaseImplementationInput): Promise<number>;
|
|
155
|
-
findOne(input: FindOneDatabaseImplementationInput): Promise<DatabaseImplementationResult | null>;
|
|
156
|
-
findMany(input: FindManyDatabaseImplementationInput): Promise<readonly DatabaseImplementationResult[]>;
|
|
157
|
-
}
|
|
158
|
-
interface DatabasePluginImplementation {
|
|
159
|
-
findLatestInsightsEvents: InsightsModel["findLatestEvents"];
|
|
160
|
-
countLatestInsightsEvents: InsightsModel["countLatestEvents"];
|
|
161
|
-
/** Native immutable event insert; any private index is advanced atomically. */
|
|
162
|
-
recordInsights(input: InsightsRecordEventInput): Promise<void>;
|
|
163
|
-
getReleaseActivity: InsightsModel["getReleaseActivity"];
|
|
164
|
-
getAppUsage: InsightsModel["getAppUsage"];
|
|
165
|
-
create(input: CreateDatabaseImplementationInput): Promise<DatabaseImplementationResult>;
|
|
166
|
-
update(input: UpdateDatabaseImplementationInput): Promise<DatabaseImplementationResult | null>;
|
|
167
|
-
delete(input: DeleteDatabaseImplementationInput): Promise<void>;
|
|
168
|
-
count(input: CountDatabaseImplementationInput): Promise<number>;
|
|
169
|
-
findOne(input: FindOneDatabaseImplementationInput): Promise<DatabaseImplementationResult | null>;
|
|
170
|
-
findMany(input: FindManyDatabaseImplementationInput): Promise<readonly DatabaseImplementationResult[]>;
|
|
171
|
-
insertChannel(input: ChannelInsertInput): Promise<ChannelInsertResult>;
|
|
172
|
-
deleteChannel(input: ChannelDeleteInput): Promise<ChannelDeleteResult>;
|
|
173
|
-
transaction?: <TResult>(callback: (transaction: TransactionDatabasePluginImplementation) => Promise<TResult>) => Promise<TResult>;
|
|
174
|
-
commit?: (input: DatabaseCommit) => Promise<DatabaseCommitResult>;
|
|
175
|
-
dispose?: () => Promise<void>;
|
|
176
|
-
}
|
|
177
8
|
//#endregion
|
|
178
|
-
export {
|
|
9
|
+
export { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate };
|
|
@@ -66,57 +66,5 @@ interface ChannelRow {
|
|
|
66
66
|
readonly id: string;
|
|
67
67
|
readonly name: string;
|
|
68
68
|
}
|
|
69
|
-
/** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
|
|
70
|
-
type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
71
|
-
readonly username: string | null;
|
|
72
|
-
readonly cohort: string;
|
|
73
|
-
readonly update_strategy: "fingerprint" | "appVersion" | null;
|
|
74
|
-
readonly fingerprint_hash: string | null;
|
|
75
|
-
readonly sdk_version: string | null;
|
|
76
|
-
};
|
|
77
|
-
type BundleEventRowBase = {
|
|
78
|
-
readonly id: string;
|
|
79
|
-
readonly install_id: string;
|
|
80
|
-
readonly user_id: string | null;
|
|
81
|
-
readonly from_release_id: string | null;
|
|
82
|
-
readonly to_release_id: string | null;
|
|
83
|
-
readonly to_bundle_id: string;
|
|
84
|
-
readonly platform: Platform;
|
|
85
|
-
readonly app_version: string;
|
|
86
|
-
readonly channel: string;
|
|
87
|
-
readonly metadata: DatabaseBundleEventMetadata;
|
|
88
|
-
readonly received_at_ms: number;
|
|
89
|
-
};
|
|
90
|
-
type BundleEventRow = BundleEventRowBase & ({
|
|
91
|
-
readonly type: "UPDATE_DOWNLOADED";
|
|
92
|
-
readonly from_bundle_id: string;
|
|
93
|
-
} | {
|
|
94
|
-
readonly type: "UPDATE_APPLIED" | "RECOVERED";
|
|
95
|
-
readonly from_bundle_id: string;
|
|
96
|
-
} | {
|
|
97
|
-
readonly type: "UNCHANGED";
|
|
98
|
-
readonly from_bundle_id: null;
|
|
99
|
-
});
|
|
100
|
-
interface ApiKeyRow {
|
|
101
|
-
readonly id: string;
|
|
102
|
-
readonly hash: string;
|
|
103
|
-
readonly name: string;
|
|
104
|
-
readonly prefix: string;
|
|
105
|
-
readonly role: "client";
|
|
106
|
-
readonly created_at_ms: number;
|
|
107
|
-
readonly revoked_at_ms: number | null;
|
|
108
|
-
}
|
|
109
|
-
interface DatabaseModelMap {
|
|
110
|
-
readonly bundles: BundleRow;
|
|
111
|
-
readonly bundle_patches: BundlePatchRow;
|
|
112
|
-
readonly releases: ReleaseRow;
|
|
113
|
-
readonly release_catalogs: ReleaseCatalogRow;
|
|
114
|
-
readonly channels: ChannelRow;
|
|
115
|
-
readonly bundle_events: BundleEventRow;
|
|
116
|
-
readonly api_keys: ApiKeyRow;
|
|
117
|
-
}
|
|
118
|
-
type DatabaseModel = keyof DatabaseModelMap;
|
|
119
|
-
type DatabaseRow<TModel extends DatabaseModel> = DatabaseModelMap[TModel];
|
|
120
|
-
type DatabaseField<TModel extends DatabaseModel> = Extract<keyof DatabaseRow<TModel>, string>;
|
|
121
69
|
//#endregion
|
|
122
|
-
export {
|
|
70
|
+
export { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow };
|
|
@@ -66,57 +66,5 @@ interface ChannelRow {
|
|
|
66
66
|
readonly id: string;
|
|
67
67
|
readonly name: string;
|
|
68
68
|
}
|
|
69
|
-
/** Ancillary report data; queryable identity and lifecycle fields stay on the row. */
|
|
70
|
-
type DatabaseBundleEventMetadata = DatabaseJsonObject & {
|
|
71
|
-
readonly username: string | null;
|
|
72
|
-
readonly cohort: string;
|
|
73
|
-
readonly update_strategy: "fingerprint" | "appVersion" | null;
|
|
74
|
-
readonly fingerprint_hash: string | null;
|
|
75
|
-
readonly sdk_version: string | null;
|
|
76
|
-
};
|
|
77
|
-
type BundleEventRowBase = {
|
|
78
|
-
readonly id: string;
|
|
79
|
-
readonly install_id: string;
|
|
80
|
-
readonly user_id: string | null;
|
|
81
|
-
readonly from_release_id: string | null;
|
|
82
|
-
readonly to_release_id: string | null;
|
|
83
|
-
readonly to_bundle_id: string;
|
|
84
|
-
readonly platform: Platform;
|
|
85
|
-
readonly app_version: string;
|
|
86
|
-
readonly channel: string;
|
|
87
|
-
readonly metadata: DatabaseBundleEventMetadata;
|
|
88
|
-
readonly received_at_ms: number;
|
|
89
|
-
};
|
|
90
|
-
type BundleEventRow = BundleEventRowBase & ({
|
|
91
|
-
readonly type: "UPDATE_DOWNLOADED";
|
|
92
|
-
readonly from_bundle_id: string;
|
|
93
|
-
} | {
|
|
94
|
-
readonly type: "UPDATE_APPLIED" | "RECOVERED";
|
|
95
|
-
readonly from_bundle_id: string;
|
|
96
|
-
} | {
|
|
97
|
-
readonly type: "UNCHANGED";
|
|
98
|
-
readonly from_bundle_id: null;
|
|
99
|
-
});
|
|
100
|
-
interface ApiKeyRow {
|
|
101
|
-
readonly id: string;
|
|
102
|
-
readonly hash: string;
|
|
103
|
-
readonly name: string;
|
|
104
|
-
readonly prefix: string;
|
|
105
|
-
readonly role: "client";
|
|
106
|
-
readonly created_at_ms: number;
|
|
107
|
-
readonly revoked_at_ms: number | null;
|
|
108
|
-
}
|
|
109
|
-
interface DatabaseModelMap {
|
|
110
|
-
readonly bundles: BundleRow;
|
|
111
|
-
readonly bundle_patches: BundlePatchRow;
|
|
112
|
-
readonly releases: ReleaseRow;
|
|
113
|
-
readonly release_catalogs: ReleaseCatalogRow;
|
|
114
|
-
readonly channels: ChannelRow;
|
|
115
|
-
readonly bundle_events: BundleEventRow;
|
|
116
|
-
readonly api_keys: ApiKeyRow;
|
|
117
|
-
}
|
|
118
|
-
type DatabaseModel = keyof DatabaseModelMap;
|
|
119
|
-
type DatabaseRow<TModel extends DatabaseModel> = DatabaseModelMap[TModel];
|
|
120
|
-
type DatabaseField<TModel extends DatabaseModel> = Extract<keyof DatabaseRow<TModel>, string>;
|
|
121
69
|
//#endregion
|
|
122
|
-
export {
|
|
70
|
+
export { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow };
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
const require_databaseConfig = require("./databaseConfig.cjs");
|
|
1
2
|
//#region src/types/index.ts
|
|
2
3
|
/**
|
|
3
4
|
* Supported Apple platforms for building and deployment
|
|
4
5
|
*/
|
|
5
6
|
const supportedIosPlatforms = { ios: "ios" };
|
|
6
7
|
//#endregion
|
|
8
|
+
exports.isRemoteDatabase = require_databaseConfig.isRemoteDatabase;
|
|
7
9
|
exports.supportedIosPlatforms = supportedIosPlatforms;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,81 +1,14 @@
|
|
|
1
|
-
import {
|
|
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 { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.cjs";
|
|
4
|
-
import "./database.cjs";
|
|
1
|
+
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./databaseConfig.cjs";
|
|
5
2
|
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./utils.cjs";
|
|
3
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
|
|
4
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.cjs";
|
|
5
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./models.cjs";
|
|
6
6
|
import "./public.cjs";
|
|
7
|
-
import { Bundle
|
|
7
|
+
import { Bundle as Bundle$1, Platform, Platform as Platform$1 } from "@hot-updater/core";
|
|
8
8
|
//#region src/types/index.d.ts
|
|
9
9
|
interface BasePluginArgs {
|
|
10
10
|
cwd: string;
|
|
11
11
|
}
|
|
12
|
-
interface PaginationInfo {
|
|
13
|
-
total: number;
|
|
14
|
-
hasNextPage: boolean;
|
|
15
|
-
hasPreviousPage: boolean;
|
|
16
|
-
currentPage: number;
|
|
17
|
-
totalPages: number;
|
|
18
|
-
nextCursor?: string | null;
|
|
19
|
-
previousCursor?: string | null;
|
|
20
|
-
}
|
|
21
|
-
interface Paginated<TData> {
|
|
22
|
-
data: TData;
|
|
23
|
-
pagination: PaginationInfo;
|
|
24
|
-
}
|
|
25
|
-
type PaginatedResult = Paginated<Bundle[]>;
|
|
26
|
-
interface DatabaseBundleIdFilter {
|
|
27
|
-
eq?: string;
|
|
28
|
-
gt?: string;
|
|
29
|
-
gte?: string;
|
|
30
|
-
lt?: string;
|
|
31
|
-
lte?: string;
|
|
32
|
-
in?: string[];
|
|
33
|
-
}
|
|
34
|
-
interface DatabaseBundleQueryWhere {
|
|
35
|
-
platform?: Platform;
|
|
36
|
-
id?: DatabaseBundleIdFilter;
|
|
37
|
-
}
|
|
38
|
-
interface DatabaseBundleQueryOrder {
|
|
39
|
-
field: "id";
|
|
40
|
-
direction: "asc" | "desc";
|
|
41
|
-
}
|
|
42
|
-
type DatabaseBundleCursor = {
|
|
43
|
-
/**
|
|
44
|
-
* Fetch the next window after this bundle ID.
|
|
45
|
-
*
|
|
46
|
-
* This is the preferred pagination mode for bundle-management queries.
|
|
47
|
-
*/
|
|
48
|
-
after: string;
|
|
49
|
-
before?: never;
|
|
50
|
-
} | {
|
|
51
|
-
after?: never;
|
|
52
|
-
/**
|
|
53
|
-
* Fetch the previous window before this bundle ID.
|
|
54
|
-
*
|
|
55
|
-
* This is the preferred pagination mode for bundle-management queries.
|
|
56
|
-
*/
|
|
57
|
-
before: string;
|
|
58
|
-
};
|
|
59
|
-
type DatabaseBundlePaginationOptions = {
|
|
60
|
-
/**
|
|
61
|
-
* Optional page number used by management UIs to keep page boundaries
|
|
62
|
-
* stable even when new bundles are inserted ahead of the current cursor
|
|
63
|
-
* window.
|
|
64
|
-
*/
|
|
65
|
-
page?: number;
|
|
66
|
-
cursor?: never;
|
|
67
|
-
} | {
|
|
68
|
-
page?: never;
|
|
69
|
-
/**
|
|
70
|
-
* Preferred cursor-based pagination for bundle-management queries.
|
|
71
|
-
*/
|
|
72
|
-
cursor?: DatabaseBundleCursor;
|
|
73
|
-
};
|
|
74
|
-
type DatabaseBundleQueryOptions = {
|
|
75
|
-
where?: DatabaseBundleQueryWhere;
|
|
76
|
-
limit: number;
|
|
77
|
-
orderBy?: DatabaseBundleQueryOrder;
|
|
78
|
-
} & DatabaseBundlePaginationOptions;
|
|
79
12
|
interface BuildPluginConfig {
|
|
80
13
|
outDir?: string;
|
|
81
14
|
}
|
|
@@ -476,7 +409,8 @@ type ConfigInput = {
|
|
|
476
409
|
signing?: SigningConfig;
|
|
477
410
|
build: (args: BasePluginArgs) => Promise<BuildPlugin> | BuildPlugin;
|
|
478
411
|
storage: StoragePlugin;
|
|
479
|
-
database
|
|
412
|
+
/** A provider's database, or `standaloneRepository` for a self-hosted server. */
|
|
413
|
+
database: ConfiguredDatabase;
|
|
480
414
|
};
|
|
481
415
|
interface NativeBuildOptions {
|
|
482
416
|
outputPath?: string;
|
|
@@ -485,4 +419,4 @@ interface NativeBuildOptions {
|
|
|
485
419
|
scheme?: string;
|
|
486
420
|
}
|
|
487
421
|
//#endregion
|
|
488
|
-
export { type
|
|
422
|
+
export { type AggregateBatching, ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, BundleSigningPlugin, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, isRemoteDatabase, supportedIosPlatforms };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,81 +1,14 @@
|
|
|
1
|
-
import {
|
|
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 { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.mjs";
|
|
4
|
-
import "./database.mjs";
|
|
1
|
+
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./databaseConfig.mjs";
|
|
5
2
|
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./utils.mjs";
|
|
3
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.mjs";
|
|
4
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.mjs";
|
|
5
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./models.mjs";
|
|
6
6
|
import "./public.mjs";
|
|
7
|
-
import { Bundle
|
|
7
|
+
import { Bundle as Bundle$1, Platform, Platform as Platform$1 } from "@hot-updater/core";
|
|
8
8
|
//#region src/types/index.d.ts
|
|
9
9
|
interface BasePluginArgs {
|
|
10
10
|
cwd: string;
|
|
11
11
|
}
|
|
12
|
-
interface PaginationInfo {
|
|
13
|
-
total: number;
|
|
14
|
-
hasNextPage: boolean;
|
|
15
|
-
hasPreviousPage: boolean;
|
|
16
|
-
currentPage: number;
|
|
17
|
-
totalPages: number;
|
|
18
|
-
nextCursor?: string | null;
|
|
19
|
-
previousCursor?: string | null;
|
|
20
|
-
}
|
|
21
|
-
interface Paginated<TData> {
|
|
22
|
-
data: TData;
|
|
23
|
-
pagination: PaginationInfo;
|
|
24
|
-
}
|
|
25
|
-
type PaginatedResult = Paginated<Bundle[]>;
|
|
26
|
-
interface DatabaseBundleIdFilter {
|
|
27
|
-
eq?: string;
|
|
28
|
-
gt?: string;
|
|
29
|
-
gte?: string;
|
|
30
|
-
lt?: string;
|
|
31
|
-
lte?: string;
|
|
32
|
-
in?: string[];
|
|
33
|
-
}
|
|
34
|
-
interface DatabaseBundleQueryWhere {
|
|
35
|
-
platform?: Platform;
|
|
36
|
-
id?: DatabaseBundleIdFilter;
|
|
37
|
-
}
|
|
38
|
-
interface DatabaseBundleQueryOrder {
|
|
39
|
-
field: "id";
|
|
40
|
-
direction: "asc" | "desc";
|
|
41
|
-
}
|
|
42
|
-
type DatabaseBundleCursor = {
|
|
43
|
-
/**
|
|
44
|
-
* Fetch the next window after this bundle ID.
|
|
45
|
-
*
|
|
46
|
-
* This is the preferred pagination mode for bundle-management queries.
|
|
47
|
-
*/
|
|
48
|
-
after: string;
|
|
49
|
-
before?: never;
|
|
50
|
-
} | {
|
|
51
|
-
after?: never;
|
|
52
|
-
/**
|
|
53
|
-
* Fetch the previous window before this bundle ID.
|
|
54
|
-
*
|
|
55
|
-
* This is the preferred pagination mode for bundle-management queries.
|
|
56
|
-
*/
|
|
57
|
-
before: string;
|
|
58
|
-
};
|
|
59
|
-
type DatabaseBundlePaginationOptions = {
|
|
60
|
-
/**
|
|
61
|
-
* Optional page number used by management UIs to keep page boundaries
|
|
62
|
-
* stable even when new bundles are inserted ahead of the current cursor
|
|
63
|
-
* window.
|
|
64
|
-
*/
|
|
65
|
-
page?: number;
|
|
66
|
-
cursor?: never;
|
|
67
|
-
} | {
|
|
68
|
-
page?: never;
|
|
69
|
-
/**
|
|
70
|
-
* Preferred cursor-based pagination for bundle-management queries.
|
|
71
|
-
*/
|
|
72
|
-
cursor?: DatabaseBundleCursor;
|
|
73
|
-
};
|
|
74
|
-
type DatabaseBundleQueryOptions = {
|
|
75
|
-
where?: DatabaseBundleQueryWhere;
|
|
76
|
-
limit: number;
|
|
77
|
-
orderBy?: DatabaseBundleQueryOrder;
|
|
78
|
-
} & DatabaseBundlePaginationOptions;
|
|
79
12
|
interface BuildPluginConfig {
|
|
80
13
|
outDir?: string;
|
|
81
14
|
}
|
|
@@ -476,7 +409,8 @@ type ConfigInput = {
|
|
|
476
409
|
signing?: SigningConfig;
|
|
477
410
|
build: (args: BasePluginArgs) => Promise<BuildPlugin> | BuildPlugin;
|
|
478
411
|
storage: StoragePlugin;
|
|
479
|
-
database
|
|
412
|
+
/** A provider's database, or `standaloneRepository` for a self-hosted server. */
|
|
413
|
+
database: ConfiguredDatabase;
|
|
480
414
|
};
|
|
481
415
|
interface NativeBuildOptions {
|
|
482
416
|
outputPath?: string;
|
|
@@ -485,4 +419,4 @@ interface NativeBuildOptions {
|
|
|
485
419
|
scheme?: string;
|
|
486
420
|
}
|
|
487
421
|
//#endregion
|
|
488
|
-
export { type
|
|
422
|
+
export { type AggregateBatching, ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, BundleSigningPlugin, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, isRemoteDatabase, supportedIosPlatforms };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { isRemoteDatabase } from "./databaseConfig.mjs";
|
|
1
2
|
//#region src/types/index.ts
|
|
2
3
|
/**
|
|
3
4
|
* Supported Apple platforms for building and deployment
|
|
4
5
|
*/
|
|
5
6
|
const supportedIosPlatforms = { ios: "ios" };
|
|
6
7
|
//#endregion
|
|
7
|
-
export { supportedIosPlatforms };
|
|
8
|
+
export { isRemoteDatabase, supportedIosPlatforms };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./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 "./index.cjs";
|
|
7
|
-
import { databaseFields } from "./databaseFields.cjs";
|
|
8
|
-
export { ApiKeyModel, ApiKeyRow, ApiKeyRowUpdate, ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, BundleEventRow, BundleEventRowBase, BundleModel, BundleModelQuery, BundlePatchModel, BundlePatchRow, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, BundleRow, BundleRowUpdate, BundleSigningPlugin, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, ChannelRow, ConfigInput, CountBundlesDatabaseImplementationInput, CountBundlesDatabaseInput, CountDatabaseImplementationInput, CountDatabaseInput, CountDatabaseModel, CreateDatabaseImplementationInput, CreateDatabaseInput, CreateDatabaseModel, DatabaseBundleCursor, DatabaseBundleEventMetadata, DatabaseBundleIdFilter, DatabaseBundleMetadata, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, 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, FingerprintExtraSources, HasMultipleCallSignatures, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, type Platform, PlatformConfig, Primitive, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseCatalogRow, ReleaseCatalogRowUpdate, ReleaseModel, ReleaseReference, ReleaseRow, ReleaseRowUpdate, RequiredDeep, SelectedDatabaseInputRow, SelectedDatabaseRow, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, TransactionDatabasePluginImplementation, UpdateBundleDatabaseImplementationInput, UpdateBundleDatabaseInput, UpdateDatabaseImplementationInput, UpdateDatabaseInput, UpdateDatabaseModel, databaseFields, supportedIosPlatforms };
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
|
|
2
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.cjs";
|
|
3
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./models.cjs";
|
|
4
|
+
export { BundlePatchRow, BundleRow, BundleRowUpdate, ChannelDeleteResult, ChannelInsertResult, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseCatalogRowUpdate, ReleaseRow, ReleaseRowUpdate };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./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 "./index.mjs";
|
|
7
|
-
import { databaseFields } from "./databaseFields.mjs";
|
|
8
|
-
export { ApiKeyModel, ApiKeyRow, ApiKeyRowUpdate, ApplePlatform, BasePluginArgs, BuildPlugin, BuildPluginConfig, BuiltIns, type Bundle, BundleEventRow, BundleEventRowBase, BundleModel, BundleModelQuery, BundlePatchModel, BundlePatchRow, BundleRepository, BundleRepositoryChange, BundleRepositoryCommit, BundleRow, BundleRowUpdate, BundleSigningPlugin, ChannelDeleteInput, ChannelDeleteResult, ChannelInsertInput, ChannelInsertResult, ChannelModel, ChannelRow, ConfigInput, CountBundlesDatabaseImplementationInput, CountBundlesDatabaseInput, CountDatabaseImplementationInput, CountDatabaseInput, CountDatabaseModel, CreateDatabaseImplementationInput, CreateDatabaseInput, CreateDatabaseModel, DatabaseBundleCursor, DatabaseBundleEventMetadata, DatabaseBundleIdFilter, DatabaseBundleMetadata, DatabaseBundleQueryOptions, DatabaseBundleQueryOrder, DatabaseBundleQueryWhere, 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, FingerprintExtraSources, HasMultipleCallSignatures, InsightsBundleEventFilter, InsightsCountEventsInput, InsightsCountLatestEventsInput, InsightsCoverage, InsightsEventCursor, InsightsEventFilter, InsightsFindLatestEventsInput, InsightsGetAppUsageInput, InsightsGetAppUsageResult, InsightsGetReleaseActivityInput, InsightsGetReleaseActivityResult, InsightsListEventsInput, InsightsModel, InsightsRecordEventInput, InsightsScope, InsightsTimeRange, IosBuildDestination, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, Paginated, PaginatedResult, PaginationInfo, type Platform, PlatformConfig, Primitive, ReleaseActivityMetrics, ReleaseCatalogModel, ReleaseCatalogRow, ReleaseCatalogRowUpdate, ReleaseModel, ReleaseReference, ReleaseRow, ReleaseRowUpdate, RequiredDeep, SelectedDatabaseInputRow, SelectedDatabaseRow, SigningConfig, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePlugin, StoragePutInput, StoragePutResult, TransactionDatabasePluginImplementation, UpdateBundleDatabaseImplementationInput, UpdateBundleDatabaseInput, UpdateDatabaseImplementationInput, UpdateDatabaseInput, UpdateDatabaseModel, databaseFields, supportedIosPlatforms };
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.mjs";
|
|
2
|
+
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.mjs";
|
|
3
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./models.mjs";
|
|
4
|
+
export { BundlePatchRow, BundleRow, BundleRowUpdate, ChannelDeleteResult, ChannelInsertResult, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseCatalogRowUpdate, ReleaseRow, ReleaseRowUpdate };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChannelRow } from "./databaseRows.cjs";
|
|
2
|
+
//#region src/types/models.d.ts
|
|
3
|
+
interface ChannelInsertResult {
|
|
4
|
+
readonly row: ChannelRow;
|
|
5
|
+
readonly inserted: boolean;
|
|
6
|
+
}
|
|
7
|
+
type ChannelDeleteResult = {
|
|
8
|
+
readonly deleted: true;
|
|
9
|
+
} | {
|
|
10
|
+
readonly deleted: false;
|
|
11
|
+
readonly reason: "not_found" | "not_empty";
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ChannelDeleteResult, ChannelInsertResult };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChannelRow } from "./databaseRows.mjs";
|
|
2
|
+
//#region src/types/models.d.ts
|
|
3
|
+
interface ChannelInsertResult {
|
|
4
|
+
readonly row: ChannelRow;
|
|
5
|
+
readonly inserted: boolean;
|
|
6
|
+
}
|
|
7
|
+
type ChannelDeleteResult = {
|
|
8
|
+
readonly deleted: true;
|
|
9
|
+
} | {
|
|
10
|
+
readonly deleted: false;
|
|
11
|
+
readonly reason: "not_found" | "not_empty";
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ChannelDeleteResult, ChannelInsertResult };
|
package/dist/types/public.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./databaseConfig.cjs";
|
|
2
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
|
|
3
3
|
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.cjs";
|
|
4
|
-
|
|
4
|
+
import { ChannelDeleteResult, ChannelInsertResult } from "./models.cjs";
|
|
5
|
+
export { type AggregateBatching, type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, isRemoteDatabase };
|