@hot-updater/plugin-core 1.2.0-rc.27 → 1.2.0-rc.29
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 +112 -2
- package/dist/coreApi.d.mts +112 -2
- package/dist/engine/core/schema.cjs +122 -2
- package/dist/engine/core/schema.d.cts +91 -0
- package/dist/engine/core/schema.d.mts +91 -0
- package/dist/engine/core/schema.mjs +122 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/types/databaseRows.d.cts +42 -1
- package/dist/types/databaseRows.d.mts +42 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/public.d.cts +2 -2
- package/dist/types/public.d.mts +2 -2
- package/package.json +2 -2
package/dist/coreApi.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
|
|
2
2
|
import { ChannelDeleteResult, NativeBuildDeleteResult, NativeBuildMarkResult } from "./types/models.cjs";
|
|
3
3
|
import { Bundle, Platform } from "./types/index.cjs";
|
|
4
4
|
import { ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult } from "./releaseCatalogMutation.cjs";
|
|
@@ -9,6 +9,8 @@ interface KeysetInput {
|
|
|
9
9
|
readonly order?: "asc" | "desc";
|
|
10
10
|
/** The last key a previous page returned. */
|
|
11
11
|
readonly after?: string;
|
|
12
|
+
/** The last key this read may return: it ends with that key, if present. */
|
|
13
|
+
readonly through?: string;
|
|
12
14
|
readonly limit: number;
|
|
13
15
|
}
|
|
14
16
|
/** A release list's filter: exactly the sets the release indexes serve. */
|
|
@@ -99,6 +101,11 @@ type NativeBuildRegistration = NativeBuildScope & {
|
|
|
99
101
|
* links open; null or left out for any other build.
|
|
100
102
|
*/
|
|
101
103
|
readonly sandboxUrlScheme?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* How an `.ipa` was exported, read from its embedded profile; null or left
|
|
106
|
+
* out for any other artifact, or an `.ipa` whose profile wasn't read.
|
|
107
|
+
*/
|
|
108
|
+
readonly exportMethod?: NativeBuildExportMethod | null;
|
|
102
109
|
readonly artifact: {
|
|
103
110
|
readonly kind: NativeBuildArtifactKind;
|
|
104
111
|
readonly storageUri: string;
|
|
@@ -115,6 +122,43 @@ type NativeBuildRegistration = NativeBuildScope & {
|
|
|
115
122
|
readonly metadata?: DatabaseBundleMetadata;
|
|
116
123
|
};
|
|
117
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* What a build or `native-build devices add` learned from Apple about one
|
|
127
|
+
* registry row: Apple has it enabled (`registered`), refused to add it
|
|
128
|
+
* (`refused`), has it disabled (`disabled`), or no longer lists a device the
|
|
129
|
+
* row says it registered (`missing`).
|
|
130
|
+
*/
|
|
131
|
+
type IosDeviceOutcome = "registered" | "refused" | "disabled" | "missing";
|
|
132
|
+
/** A device registry row's outcome at Apple, written only over the row the caller read. */
|
|
133
|
+
interface IosDeviceOutcomeInput {
|
|
134
|
+
readonly id: string;
|
|
135
|
+
/**
|
|
136
|
+
* The row as the caller read it before asking Apple: a row that changed
|
|
137
|
+
* since, such as one removed and requested again, is left alone.
|
|
138
|
+
*/
|
|
139
|
+
readonly seen: {
|
|
140
|
+
readonly status: IosDeviceStatus;
|
|
141
|
+
readonly approvedAtMs: number | null;
|
|
142
|
+
};
|
|
143
|
+
/** The App Store Connect issuer of the key that asked Apple. */
|
|
144
|
+
readonly issuerId: string;
|
|
145
|
+
readonly outcome: IosDeviceOutcome;
|
|
146
|
+
/** Apple's words for `refused`, kept as the row's `apple_error`. */
|
|
147
|
+
readonly reason?: string;
|
|
148
|
+
}
|
|
149
|
+
/** The device registry's Apple account, after a build tried to claim it. */
|
|
150
|
+
interface IosDeviceAccountClaim {
|
|
151
|
+
/** The App Store Connect issuer the registry belongs to. */
|
|
152
|
+
readonly issuerId: string;
|
|
153
|
+
/** Whether that is the issuer that asked: false means another account's. */
|
|
154
|
+
readonly claimed: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** A device request's row, and whether the request created it. */
|
|
157
|
+
interface IosDeviceRequestResult {
|
|
158
|
+
readonly device: IosDeviceRow;
|
|
159
|
+
/** False when the UDID was already in the registry, whose row is unchanged. */
|
|
160
|
+
readonly created: boolean;
|
|
161
|
+
}
|
|
118
162
|
interface ReleaseTarget {
|
|
119
163
|
readonly releaseId: string;
|
|
120
164
|
/** Refuses the change when the release is at another revision. */
|
|
@@ -243,6 +287,72 @@ interface HotUpdaterCoreApi {
|
|
|
243
287
|
markNativeBuild(id: string, mark: {
|
|
244
288
|
readonly storeBuild: boolean;
|
|
245
289
|
}): Promise<NativeBuildMarkResult | null>;
|
|
290
|
+
/**
|
|
291
|
+
* One page of the iOS device registry, by ID: oldest or newest first. With
|
|
292
|
+
* `status`, only the rows in it, also one read.
|
|
293
|
+
*/
|
|
294
|
+
listIosDevices(input: KeysetInput & {
|
|
295
|
+
readonly status?: IosDeviceStatus;
|
|
296
|
+
}): Promise<IosDeviceRow[]>;
|
|
297
|
+
/** The registry's row of a UDID, in either case: one read. Null for none. */
|
|
298
|
+
findIosDevice(udid: string): Promise<IosDeviceRow | null>;
|
|
299
|
+
/**
|
|
300
|
+
* Adds a UDID to the registry as `pending`. A UDID already there keeps its
|
|
301
|
+
* row unchanged, so nobody takes over another person's request.
|
|
302
|
+
*/
|
|
303
|
+
requestIosDevice(input: {
|
|
304
|
+
readonly udid: string;
|
|
305
|
+
readonly name: string;
|
|
306
|
+
/** Who asks, or null for the CLI. */
|
|
307
|
+
readonly requestedBy: string | null;
|
|
308
|
+
}): Promise<IosDeviceRequestResult>;
|
|
309
|
+
/**
|
|
310
|
+
* Approves a pending device, so the next ad hoc build registers it with
|
|
311
|
+
* Apple. A device past `pending` stays as it is. With `name`, renames it.
|
|
312
|
+
* Null for an unknown ID.
|
|
313
|
+
*/
|
|
314
|
+
approveIosDevice(id: string, input: {
|
|
315
|
+
readonly name?: string;
|
|
316
|
+
/** Who approves: a Console email, or null for the CLI. */
|
|
317
|
+
readonly approvedBy: string | null;
|
|
318
|
+
}): Promise<IosDeviceRow | null>;
|
|
319
|
+
/** Renames a device in the registry, whatever its status. Null for an unknown ID. */
|
|
320
|
+
renameIosDevice(id: string, name: string): Promise<IosDeviceRow | null>;
|
|
321
|
+
/**
|
|
322
|
+
* Records what Apple said of a device, only over the row the caller read
|
|
323
|
+
* (`seen`) and only for the account that registered it: null, with nothing
|
|
324
|
+
* written, for a row that changed, is gone, or belongs to another issuer.
|
|
325
|
+
* It never creates a row.
|
|
326
|
+
*/
|
|
327
|
+
recordIosDeviceOutcome(input: IosDeviceOutcomeInput): Promise<IosDeviceRow | null>;
|
|
328
|
+
/**
|
|
329
|
+
* Claims the device registry for an Apple account before a build records
|
|
330
|
+
* or sends anything at Apple: the first claim wins, atomically, and holds
|
|
331
|
+
* for good. A registry with no claim yet whose rows already name an account
|
|
332
|
+
* (any status) goes to the earliest of them, not to the caller. Answers the
|
|
333
|
+
* registry's account and whether it is `issuerId`'s; a build of another
|
|
334
|
+
* account registers nothing.
|
|
335
|
+
*/
|
|
336
|
+
claimIosDeviceAccount(issuerId: string): Promise<IosDeviceAccountClaim>;
|
|
337
|
+
/**
|
|
338
|
+
* Records that a native build's .ipa lists these devices, one write per
|
|
339
|
+
* row: a row removed meanwhile is skipped.
|
|
340
|
+
*/
|
|
341
|
+
markIosDevicesInBuild(input: {
|
|
342
|
+
readonly buildId: string;
|
|
343
|
+
readonly ids: readonly string[];
|
|
344
|
+
}): Promise<void>;
|
|
345
|
+
/**
|
|
346
|
+
* Deletes a device from the registry. Apple keeps it: a device enabled
|
|
347
|
+
* there stays in new ad hoc builds. With `only`, it deletes the row only
|
|
348
|
+
* while it still has that status and requester, read in the same
|
|
349
|
+
* transaction, such as a request its owner withdraws. Null, with nothing
|
|
350
|
+
* deleted, for an unknown ID or a row that no longer matches.
|
|
351
|
+
*/
|
|
352
|
+
deleteIosDevice(id: string, only?: {
|
|
353
|
+
readonly status?: IosDeviceStatus;
|
|
354
|
+
readonly requestedBy?: string;
|
|
355
|
+
}): Promise<IosDeviceRow | null>;
|
|
246
356
|
}
|
|
247
357
|
//#endregion
|
|
248
|
-
export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
|
|
358
|
+
export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
|
package/dist/coreApi.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
|
|
2
2
|
import { ChannelDeleteResult, NativeBuildDeleteResult, NativeBuildMarkResult } from "./types/models.mjs";
|
|
3
3
|
import { Bundle, Platform } from "./types/index.mjs";
|
|
4
4
|
import { ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult } from "./releaseCatalogMutation.mjs";
|
|
@@ -9,6 +9,8 @@ interface KeysetInput {
|
|
|
9
9
|
readonly order?: "asc" | "desc";
|
|
10
10
|
/** The last key a previous page returned. */
|
|
11
11
|
readonly after?: string;
|
|
12
|
+
/** The last key this read may return: it ends with that key, if present. */
|
|
13
|
+
readonly through?: string;
|
|
12
14
|
readonly limit: number;
|
|
13
15
|
}
|
|
14
16
|
/** A release list's filter: exactly the sets the release indexes serve. */
|
|
@@ -99,6 +101,11 @@ type NativeBuildRegistration = NativeBuildScope & {
|
|
|
99
101
|
* links open; null or left out for any other build.
|
|
100
102
|
*/
|
|
101
103
|
readonly sandboxUrlScheme?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* How an `.ipa` was exported, read from its embedded profile; null or left
|
|
106
|
+
* out for any other artifact, or an `.ipa` whose profile wasn't read.
|
|
107
|
+
*/
|
|
108
|
+
readonly exportMethod?: NativeBuildExportMethod | null;
|
|
102
109
|
readonly artifact: {
|
|
103
110
|
readonly kind: NativeBuildArtifactKind;
|
|
104
111
|
readonly storageUri: string;
|
|
@@ -115,6 +122,43 @@ type NativeBuildRegistration = NativeBuildScope & {
|
|
|
115
122
|
readonly metadata?: DatabaseBundleMetadata;
|
|
116
123
|
};
|
|
117
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* What a build or `native-build devices add` learned from Apple about one
|
|
127
|
+
* registry row: Apple has it enabled (`registered`), refused to add it
|
|
128
|
+
* (`refused`), has it disabled (`disabled`), or no longer lists a device the
|
|
129
|
+
* row says it registered (`missing`).
|
|
130
|
+
*/
|
|
131
|
+
type IosDeviceOutcome = "registered" | "refused" | "disabled" | "missing";
|
|
132
|
+
/** A device registry row's outcome at Apple, written only over the row the caller read. */
|
|
133
|
+
interface IosDeviceOutcomeInput {
|
|
134
|
+
readonly id: string;
|
|
135
|
+
/**
|
|
136
|
+
* The row as the caller read it before asking Apple: a row that changed
|
|
137
|
+
* since, such as one removed and requested again, is left alone.
|
|
138
|
+
*/
|
|
139
|
+
readonly seen: {
|
|
140
|
+
readonly status: IosDeviceStatus;
|
|
141
|
+
readonly approvedAtMs: number | null;
|
|
142
|
+
};
|
|
143
|
+
/** The App Store Connect issuer of the key that asked Apple. */
|
|
144
|
+
readonly issuerId: string;
|
|
145
|
+
readonly outcome: IosDeviceOutcome;
|
|
146
|
+
/** Apple's words for `refused`, kept as the row's `apple_error`. */
|
|
147
|
+
readonly reason?: string;
|
|
148
|
+
}
|
|
149
|
+
/** The device registry's Apple account, after a build tried to claim it. */
|
|
150
|
+
interface IosDeviceAccountClaim {
|
|
151
|
+
/** The App Store Connect issuer the registry belongs to. */
|
|
152
|
+
readonly issuerId: string;
|
|
153
|
+
/** Whether that is the issuer that asked: false means another account's. */
|
|
154
|
+
readonly claimed: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** A device request's row, and whether the request created it. */
|
|
157
|
+
interface IosDeviceRequestResult {
|
|
158
|
+
readonly device: IosDeviceRow;
|
|
159
|
+
/** False when the UDID was already in the registry, whose row is unchanged. */
|
|
160
|
+
readonly created: boolean;
|
|
161
|
+
}
|
|
118
162
|
interface ReleaseTarget {
|
|
119
163
|
readonly releaseId: string;
|
|
120
164
|
/** Refuses the change when the release is at another revision. */
|
|
@@ -243,6 +287,72 @@ interface HotUpdaterCoreApi {
|
|
|
243
287
|
markNativeBuild(id: string, mark: {
|
|
244
288
|
readonly storeBuild: boolean;
|
|
245
289
|
}): Promise<NativeBuildMarkResult | null>;
|
|
290
|
+
/**
|
|
291
|
+
* One page of the iOS device registry, by ID: oldest or newest first. With
|
|
292
|
+
* `status`, only the rows in it, also one read.
|
|
293
|
+
*/
|
|
294
|
+
listIosDevices(input: KeysetInput & {
|
|
295
|
+
readonly status?: IosDeviceStatus;
|
|
296
|
+
}): Promise<IosDeviceRow[]>;
|
|
297
|
+
/** The registry's row of a UDID, in either case: one read. Null for none. */
|
|
298
|
+
findIosDevice(udid: string): Promise<IosDeviceRow | null>;
|
|
299
|
+
/**
|
|
300
|
+
* Adds a UDID to the registry as `pending`. A UDID already there keeps its
|
|
301
|
+
* row unchanged, so nobody takes over another person's request.
|
|
302
|
+
*/
|
|
303
|
+
requestIosDevice(input: {
|
|
304
|
+
readonly udid: string;
|
|
305
|
+
readonly name: string;
|
|
306
|
+
/** Who asks, or null for the CLI. */
|
|
307
|
+
readonly requestedBy: string | null;
|
|
308
|
+
}): Promise<IosDeviceRequestResult>;
|
|
309
|
+
/**
|
|
310
|
+
* Approves a pending device, so the next ad hoc build registers it with
|
|
311
|
+
* Apple. A device past `pending` stays as it is. With `name`, renames it.
|
|
312
|
+
* Null for an unknown ID.
|
|
313
|
+
*/
|
|
314
|
+
approveIosDevice(id: string, input: {
|
|
315
|
+
readonly name?: string;
|
|
316
|
+
/** Who approves: a Console email, or null for the CLI. */
|
|
317
|
+
readonly approvedBy: string | null;
|
|
318
|
+
}): Promise<IosDeviceRow | null>;
|
|
319
|
+
/** Renames a device in the registry, whatever its status. Null for an unknown ID. */
|
|
320
|
+
renameIosDevice(id: string, name: string): Promise<IosDeviceRow | null>;
|
|
321
|
+
/**
|
|
322
|
+
* Records what Apple said of a device, only over the row the caller read
|
|
323
|
+
* (`seen`) and only for the account that registered it: null, with nothing
|
|
324
|
+
* written, for a row that changed, is gone, or belongs to another issuer.
|
|
325
|
+
* It never creates a row.
|
|
326
|
+
*/
|
|
327
|
+
recordIosDeviceOutcome(input: IosDeviceOutcomeInput): Promise<IosDeviceRow | null>;
|
|
328
|
+
/**
|
|
329
|
+
* Claims the device registry for an Apple account before a build records
|
|
330
|
+
* or sends anything at Apple: the first claim wins, atomically, and holds
|
|
331
|
+
* for good. A registry with no claim yet whose rows already name an account
|
|
332
|
+
* (any status) goes to the earliest of them, not to the caller. Answers the
|
|
333
|
+
* registry's account and whether it is `issuerId`'s; a build of another
|
|
334
|
+
* account registers nothing.
|
|
335
|
+
*/
|
|
336
|
+
claimIosDeviceAccount(issuerId: string): Promise<IosDeviceAccountClaim>;
|
|
337
|
+
/**
|
|
338
|
+
* Records that a native build's .ipa lists these devices, one write per
|
|
339
|
+
* row: a row removed meanwhile is skipped.
|
|
340
|
+
*/
|
|
341
|
+
markIosDevicesInBuild(input: {
|
|
342
|
+
readonly buildId: string;
|
|
343
|
+
readonly ids: readonly string[];
|
|
344
|
+
}): Promise<void>;
|
|
345
|
+
/**
|
|
346
|
+
* Deletes a device from the registry. Apple keeps it: a device enabled
|
|
347
|
+
* there stays in new ad hoc builds. With `only`, it deletes the row only
|
|
348
|
+
* while it still has that status and requester, read in the same
|
|
349
|
+
* transaction, such as a request its owner withdraws. Null, with nothing
|
|
350
|
+
* deleted, for an unknown ID or a row that no longer matches.
|
|
351
|
+
*/
|
|
352
|
+
deleteIosDevice(id: string, only?: {
|
|
353
|
+
readonly status?: IosDeviceStatus;
|
|
354
|
+
readonly requestedBy?: string;
|
|
355
|
+
}): Promise<IosDeviceRow | null>;
|
|
246
356
|
}
|
|
247
357
|
//#endregion
|
|
248
|
-
export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
|
|
358
|
+
export { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment };
|
|
@@ -291,7 +291,11 @@ const channels = require_schema.defineTable({
|
|
|
291
291
|
* `is_sandbox` is true on a sandbox build, set when it registers and never
|
|
292
292
|
* changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
|
|
293
293
|
* which its preview links open; null on any other build, and on a sandbox
|
|
294
|
-
* build registered before the column, which registered the derived one.
|
|
294
|
+
* build registered before the column, which registered the derived one.
|
|
295
|
+
* `export_method` is how an `.ipa` was exported, read from its profile when
|
|
296
|
+
* it registers and never changed; null on any other artifact, on an `.ipa`
|
|
297
|
+
* whose profile couldn't be read, and on one registered before the column.
|
|
298
|
+
* Boolean columns follow one rule: `is_*` for a fact about the row or
|
|
295
299
|
* `should_*` for an instruction to the client, never null; a unique index over
|
|
296
300
|
* the rows where one is true keys a derived slot, not the boolean.
|
|
297
301
|
*/
|
|
@@ -378,6 +382,11 @@ const nativeBuilds = require_schema.defineTable({
|
|
|
378
382
|
maxLength: 255,
|
|
379
383
|
ascii: true,
|
|
380
384
|
required: false
|
|
385
|
+
},
|
|
386
|
+
export_method: {
|
|
387
|
+
type: "string",
|
|
388
|
+
maxLength: 16,
|
|
389
|
+
required: false
|
|
381
390
|
}
|
|
382
391
|
}, {
|
|
383
392
|
key: ["id"],
|
|
@@ -414,6 +423,115 @@ store_build_scope_key: {
|
|
|
414
423
|
}
|
|
415
424
|
}
|
|
416
425
|
});
|
|
426
|
+
/**
|
|
427
|
+
* The iPhones a team asks to install ad hoc builds on. A row decides what the
|
|
428
|
+
* CLI registers with Apple, not what an export includes: Xcode's automatic ad
|
|
429
|
+
* hoc profile lists every device the Apple account has enabled. `status` is
|
|
430
|
+
* `pending` until someone approves it, `approved` until a build or
|
|
431
|
+
* `native-build devices add` registers it with Apple, then `registered`;
|
|
432
|
+
* declining or removing one deletes its row. `udid` is the UDID in lower case.
|
|
433
|
+
* `apple_issuer_id` is the App Store Connect issuer whose key registered it,
|
|
434
|
+
* set once: a build signed by another account never registers these rows.
|
|
435
|
+
* `apple_error` is Apple's refusal of the device, or why it stopped counting
|
|
436
|
+
* it, cleared by the next success. `build_id` is the newest native build whose
|
|
437
|
+
* .ipa the CLI checked lists it; deleting that build never touches the row.
|
|
438
|
+
* It holds personal data: a UDID, a name, and the emails of who asked and who
|
|
439
|
+
* approved, null for the CLI.
|
|
440
|
+
*/
|
|
441
|
+
const iosDevices = require_schema.defineTable({
|
|
442
|
+
id: {
|
|
443
|
+
type: "string",
|
|
444
|
+
maxLength: 36
|
|
445
|
+
},
|
|
446
|
+
udid: {
|
|
447
|
+
type: "string",
|
|
448
|
+
maxLength: 40,
|
|
449
|
+
ascii: true,
|
|
450
|
+
unique: true
|
|
451
|
+
},
|
|
452
|
+
name: {
|
|
453
|
+
type: "string",
|
|
454
|
+
maxLength: 100
|
|
455
|
+
},
|
|
456
|
+
status: {
|
|
457
|
+
type: "string",
|
|
458
|
+
maxLength: 16
|
|
459
|
+
},
|
|
460
|
+
requested_by: {
|
|
461
|
+
type: "string",
|
|
462
|
+
maxLength: 320,
|
|
463
|
+
required: false
|
|
464
|
+
},
|
|
465
|
+
created_at_ms: { type: "integer" },
|
|
466
|
+
approved_by: {
|
|
467
|
+
type: "string",
|
|
468
|
+
maxLength: 320,
|
|
469
|
+
required: false
|
|
470
|
+
},
|
|
471
|
+
approved_at_ms: {
|
|
472
|
+
type: "integer",
|
|
473
|
+
required: false
|
|
474
|
+
},
|
|
475
|
+
registered_at_ms: {
|
|
476
|
+
type: "integer",
|
|
477
|
+
required: false
|
|
478
|
+
},
|
|
479
|
+
apple_issuer_id: {
|
|
480
|
+
type: "string",
|
|
481
|
+
maxLength: 64,
|
|
482
|
+
ascii: true,
|
|
483
|
+
required: false
|
|
484
|
+
},
|
|
485
|
+
apple_error: {
|
|
486
|
+
type: "string",
|
|
487
|
+
maxLength: 512,
|
|
488
|
+
required: false
|
|
489
|
+
},
|
|
490
|
+
build_id: {
|
|
491
|
+
type: "string",
|
|
492
|
+
maxLength: 36,
|
|
493
|
+
required: false
|
|
494
|
+
}
|
|
495
|
+
}, {
|
|
496
|
+
key: ["id"],
|
|
497
|
+
indexes: {
|
|
498
|
+
byStatus: {
|
|
499
|
+
eq: ["status"],
|
|
500
|
+
sort: ["id"]
|
|
501
|
+
},
|
|
502
|
+
all: {
|
|
503
|
+
eq: [],
|
|
504
|
+
sort: ["id"]
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
/**
|
|
509
|
+
* The Apple account the iOS device registry belongs to: one row, keyed
|
|
510
|
+
* `registry`, holding the App Store Connect issuer that first registered a
|
|
511
|
+
* device. A build claims it before it sends Apple anything, and its key makes
|
|
512
|
+
* the claim atomic on every store, so two builds of two accounts can't both
|
|
513
|
+
* spend a slot; another account's build then registers nothing. Removing
|
|
514
|
+
* devices never releases it.
|
|
515
|
+
*/
|
|
516
|
+
const iosDeviceAccount = require_schema.defineTable({
|
|
517
|
+
id: {
|
|
518
|
+
type: "string",
|
|
519
|
+
maxLength: 16,
|
|
520
|
+
ascii: true
|
|
521
|
+
},
|
|
522
|
+
apple_issuer_id: {
|
|
523
|
+
type: "string",
|
|
524
|
+
maxLength: 64,
|
|
525
|
+
ascii: true
|
|
526
|
+
},
|
|
527
|
+
claimed_at_ms: { type: "integer" }
|
|
528
|
+
}, {
|
|
529
|
+
key: ["id"],
|
|
530
|
+
indexes: { all: {
|
|
531
|
+
eq: [],
|
|
532
|
+
sort: ["id"]
|
|
533
|
+
} }
|
|
534
|
+
});
|
|
417
535
|
const coreSchema = {
|
|
418
536
|
bundles,
|
|
419
537
|
bundle_patches: bundlePatches,
|
|
@@ -431,7 +549,9 @@ const coreSchema = {
|
|
|
431
549
|
sort: []
|
|
432
550
|
} }
|
|
433
551
|
}),
|
|
434
|
-
native_builds: nativeBuilds
|
|
552
|
+
native_builds: nativeBuilds,
|
|
553
|
+
ios_devices: iosDevices,
|
|
554
|
+
ios_device_account: iosDeviceAccount
|
|
435
555
|
};
|
|
436
556
|
/** Core's module: always installed, never a plugin. */
|
|
437
557
|
const coreModule = {
|
|
@@ -397,6 +397,11 @@ declare const coreSchema: {
|
|
|
397
397
|
readonly ascii: true;
|
|
398
398
|
readonly required: false;
|
|
399
399
|
};
|
|
400
|
+
readonly export_method: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly maxLength: 16;
|
|
403
|
+
readonly required: false;
|
|
404
|
+
};
|
|
400
405
|
}, {
|
|
401
406
|
store_build_scope_key: "string";
|
|
402
407
|
}, {
|
|
@@ -425,6 +430,92 @@ declare const coreSchema: {
|
|
|
425
430
|
readonly sort: readonly ["id"];
|
|
426
431
|
};
|
|
427
432
|
}, readonly ["id"]>;
|
|
433
|
+
readonly ios_devices: TableDefinition<{
|
|
434
|
+
readonly id: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly maxLength: 36;
|
|
437
|
+
};
|
|
438
|
+
readonly udid: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly maxLength: 40;
|
|
441
|
+
readonly ascii: true;
|
|
442
|
+
readonly unique: true;
|
|
443
|
+
};
|
|
444
|
+
readonly name: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
readonly maxLength: 100;
|
|
447
|
+
};
|
|
448
|
+
readonly status: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
readonly maxLength: 16;
|
|
451
|
+
};
|
|
452
|
+
readonly requested_by: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly maxLength: 320;
|
|
455
|
+
readonly required: false;
|
|
456
|
+
};
|
|
457
|
+
readonly created_at_ms: {
|
|
458
|
+
readonly type: "integer";
|
|
459
|
+
};
|
|
460
|
+
readonly approved_by: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
readonly maxLength: 320;
|
|
463
|
+
readonly required: false;
|
|
464
|
+
};
|
|
465
|
+
readonly approved_at_ms: {
|
|
466
|
+
readonly type: "integer";
|
|
467
|
+
readonly required: false;
|
|
468
|
+
};
|
|
469
|
+
readonly registered_at_ms: {
|
|
470
|
+
readonly type: "integer";
|
|
471
|
+
readonly required: false;
|
|
472
|
+
};
|
|
473
|
+
readonly apple_issuer_id: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly maxLength: 64;
|
|
476
|
+
readonly ascii: true;
|
|
477
|
+
readonly required: false;
|
|
478
|
+
};
|
|
479
|
+
readonly apple_error: {
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
readonly maxLength: 512;
|
|
482
|
+
readonly required: false;
|
|
483
|
+
};
|
|
484
|
+
readonly build_id: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly maxLength: 36;
|
|
487
|
+
readonly required: false;
|
|
488
|
+
};
|
|
489
|
+
}, {}, {
|
|
490
|
+
readonly byStatus: {
|
|
491
|
+
readonly eq: readonly ["status"];
|
|
492
|
+
readonly sort: readonly ["id"];
|
|
493
|
+
};
|
|
494
|
+
readonly all: {
|
|
495
|
+
readonly eq: readonly [];
|
|
496
|
+
readonly sort: readonly ["id"];
|
|
497
|
+
};
|
|
498
|
+
}, readonly ["id"]>;
|
|
499
|
+
readonly ios_device_account: TableDefinition<{
|
|
500
|
+
readonly id: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly maxLength: 16;
|
|
503
|
+
readonly ascii: true;
|
|
504
|
+
};
|
|
505
|
+
readonly apple_issuer_id: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly maxLength: 64;
|
|
508
|
+
readonly ascii: true;
|
|
509
|
+
};
|
|
510
|
+
readonly claimed_at_ms: {
|
|
511
|
+
readonly type: "integer";
|
|
512
|
+
};
|
|
513
|
+
}, {}, {
|
|
514
|
+
readonly all: {
|
|
515
|
+
readonly eq: readonly [];
|
|
516
|
+
readonly sort: readonly ["id"];
|
|
517
|
+
};
|
|
518
|
+
}, readonly ["id"]>;
|
|
428
519
|
};
|
|
429
520
|
/**
|
|
430
521
|
* Core's tables as the engine types them: the type of `createEngine`'s
|
|
@@ -397,6 +397,11 @@ declare const coreSchema: {
|
|
|
397
397
|
readonly ascii: true;
|
|
398
398
|
readonly required: false;
|
|
399
399
|
};
|
|
400
|
+
readonly export_method: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly maxLength: 16;
|
|
403
|
+
readonly required: false;
|
|
404
|
+
};
|
|
400
405
|
}, {
|
|
401
406
|
store_build_scope_key: "string";
|
|
402
407
|
}, {
|
|
@@ -425,6 +430,92 @@ declare const coreSchema: {
|
|
|
425
430
|
readonly sort: readonly ["id"];
|
|
426
431
|
};
|
|
427
432
|
}, readonly ["id"]>;
|
|
433
|
+
readonly ios_devices: TableDefinition<{
|
|
434
|
+
readonly id: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly maxLength: 36;
|
|
437
|
+
};
|
|
438
|
+
readonly udid: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly maxLength: 40;
|
|
441
|
+
readonly ascii: true;
|
|
442
|
+
readonly unique: true;
|
|
443
|
+
};
|
|
444
|
+
readonly name: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
readonly maxLength: 100;
|
|
447
|
+
};
|
|
448
|
+
readonly status: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
readonly maxLength: 16;
|
|
451
|
+
};
|
|
452
|
+
readonly requested_by: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly maxLength: 320;
|
|
455
|
+
readonly required: false;
|
|
456
|
+
};
|
|
457
|
+
readonly created_at_ms: {
|
|
458
|
+
readonly type: "integer";
|
|
459
|
+
};
|
|
460
|
+
readonly approved_by: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
readonly maxLength: 320;
|
|
463
|
+
readonly required: false;
|
|
464
|
+
};
|
|
465
|
+
readonly approved_at_ms: {
|
|
466
|
+
readonly type: "integer";
|
|
467
|
+
readonly required: false;
|
|
468
|
+
};
|
|
469
|
+
readonly registered_at_ms: {
|
|
470
|
+
readonly type: "integer";
|
|
471
|
+
readonly required: false;
|
|
472
|
+
};
|
|
473
|
+
readonly apple_issuer_id: {
|
|
474
|
+
readonly type: "string";
|
|
475
|
+
readonly maxLength: 64;
|
|
476
|
+
readonly ascii: true;
|
|
477
|
+
readonly required: false;
|
|
478
|
+
};
|
|
479
|
+
readonly apple_error: {
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
readonly maxLength: 512;
|
|
482
|
+
readonly required: false;
|
|
483
|
+
};
|
|
484
|
+
readonly build_id: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly maxLength: 36;
|
|
487
|
+
readonly required: false;
|
|
488
|
+
};
|
|
489
|
+
}, {}, {
|
|
490
|
+
readonly byStatus: {
|
|
491
|
+
readonly eq: readonly ["status"];
|
|
492
|
+
readonly sort: readonly ["id"];
|
|
493
|
+
};
|
|
494
|
+
readonly all: {
|
|
495
|
+
readonly eq: readonly [];
|
|
496
|
+
readonly sort: readonly ["id"];
|
|
497
|
+
};
|
|
498
|
+
}, readonly ["id"]>;
|
|
499
|
+
readonly ios_device_account: TableDefinition<{
|
|
500
|
+
readonly id: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly maxLength: 16;
|
|
503
|
+
readonly ascii: true;
|
|
504
|
+
};
|
|
505
|
+
readonly apple_issuer_id: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly maxLength: 64;
|
|
508
|
+
readonly ascii: true;
|
|
509
|
+
};
|
|
510
|
+
readonly claimed_at_ms: {
|
|
511
|
+
readonly type: "integer";
|
|
512
|
+
};
|
|
513
|
+
}, {}, {
|
|
514
|
+
readonly all: {
|
|
515
|
+
readonly eq: readonly [];
|
|
516
|
+
readonly sort: readonly ["id"];
|
|
517
|
+
};
|
|
518
|
+
}, readonly ["id"]>;
|
|
428
519
|
};
|
|
429
520
|
/**
|
|
430
521
|
* Core's tables as the engine types them: the type of `createEngine`'s
|
|
@@ -291,7 +291,11 @@ const channels = defineTable({
|
|
|
291
291
|
* `is_sandbox` is true on a sandbox build, set when it registers and never
|
|
292
292
|
* changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
|
|
293
293
|
* which its preview links open; null on any other build, and on a sandbox
|
|
294
|
-
* build registered before the column, which registered the derived one.
|
|
294
|
+
* build registered before the column, which registered the derived one.
|
|
295
|
+
* `export_method` is how an `.ipa` was exported, read from its profile when
|
|
296
|
+
* it registers and never changed; null on any other artifact, on an `.ipa`
|
|
297
|
+
* whose profile couldn't be read, and on one registered before the column.
|
|
298
|
+
* Boolean columns follow one rule: `is_*` for a fact about the row or
|
|
295
299
|
* `should_*` for an instruction to the client, never null; a unique index over
|
|
296
300
|
* the rows where one is true keys a derived slot, not the boolean.
|
|
297
301
|
*/
|
|
@@ -378,6 +382,11 @@ const nativeBuilds = defineTable({
|
|
|
378
382
|
maxLength: 255,
|
|
379
383
|
ascii: true,
|
|
380
384
|
required: false
|
|
385
|
+
},
|
|
386
|
+
export_method: {
|
|
387
|
+
type: "string",
|
|
388
|
+
maxLength: 16,
|
|
389
|
+
required: false
|
|
381
390
|
}
|
|
382
391
|
}, {
|
|
383
392
|
key: ["id"],
|
|
@@ -414,6 +423,115 @@ store_build_scope_key: {
|
|
|
414
423
|
}
|
|
415
424
|
}
|
|
416
425
|
});
|
|
426
|
+
/**
|
|
427
|
+
* The iPhones a team asks to install ad hoc builds on. A row decides what the
|
|
428
|
+
* CLI registers with Apple, not what an export includes: Xcode's automatic ad
|
|
429
|
+
* hoc profile lists every device the Apple account has enabled. `status` is
|
|
430
|
+
* `pending` until someone approves it, `approved` until a build or
|
|
431
|
+
* `native-build devices add` registers it with Apple, then `registered`;
|
|
432
|
+
* declining or removing one deletes its row. `udid` is the UDID in lower case.
|
|
433
|
+
* `apple_issuer_id` is the App Store Connect issuer whose key registered it,
|
|
434
|
+
* set once: a build signed by another account never registers these rows.
|
|
435
|
+
* `apple_error` is Apple's refusal of the device, or why it stopped counting
|
|
436
|
+
* it, cleared by the next success. `build_id` is the newest native build whose
|
|
437
|
+
* .ipa the CLI checked lists it; deleting that build never touches the row.
|
|
438
|
+
* It holds personal data: a UDID, a name, and the emails of who asked and who
|
|
439
|
+
* approved, null for the CLI.
|
|
440
|
+
*/
|
|
441
|
+
const iosDevices = defineTable({
|
|
442
|
+
id: {
|
|
443
|
+
type: "string",
|
|
444
|
+
maxLength: 36
|
|
445
|
+
},
|
|
446
|
+
udid: {
|
|
447
|
+
type: "string",
|
|
448
|
+
maxLength: 40,
|
|
449
|
+
ascii: true,
|
|
450
|
+
unique: true
|
|
451
|
+
},
|
|
452
|
+
name: {
|
|
453
|
+
type: "string",
|
|
454
|
+
maxLength: 100
|
|
455
|
+
},
|
|
456
|
+
status: {
|
|
457
|
+
type: "string",
|
|
458
|
+
maxLength: 16
|
|
459
|
+
},
|
|
460
|
+
requested_by: {
|
|
461
|
+
type: "string",
|
|
462
|
+
maxLength: 320,
|
|
463
|
+
required: false
|
|
464
|
+
},
|
|
465
|
+
created_at_ms: { type: "integer" },
|
|
466
|
+
approved_by: {
|
|
467
|
+
type: "string",
|
|
468
|
+
maxLength: 320,
|
|
469
|
+
required: false
|
|
470
|
+
},
|
|
471
|
+
approved_at_ms: {
|
|
472
|
+
type: "integer",
|
|
473
|
+
required: false
|
|
474
|
+
},
|
|
475
|
+
registered_at_ms: {
|
|
476
|
+
type: "integer",
|
|
477
|
+
required: false
|
|
478
|
+
},
|
|
479
|
+
apple_issuer_id: {
|
|
480
|
+
type: "string",
|
|
481
|
+
maxLength: 64,
|
|
482
|
+
ascii: true,
|
|
483
|
+
required: false
|
|
484
|
+
},
|
|
485
|
+
apple_error: {
|
|
486
|
+
type: "string",
|
|
487
|
+
maxLength: 512,
|
|
488
|
+
required: false
|
|
489
|
+
},
|
|
490
|
+
build_id: {
|
|
491
|
+
type: "string",
|
|
492
|
+
maxLength: 36,
|
|
493
|
+
required: false
|
|
494
|
+
}
|
|
495
|
+
}, {
|
|
496
|
+
key: ["id"],
|
|
497
|
+
indexes: {
|
|
498
|
+
byStatus: {
|
|
499
|
+
eq: ["status"],
|
|
500
|
+
sort: ["id"]
|
|
501
|
+
},
|
|
502
|
+
all: {
|
|
503
|
+
eq: [],
|
|
504
|
+
sort: ["id"]
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
/**
|
|
509
|
+
* The Apple account the iOS device registry belongs to: one row, keyed
|
|
510
|
+
* `registry`, holding the App Store Connect issuer that first registered a
|
|
511
|
+
* device. A build claims it before it sends Apple anything, and its key makes
|
|
512
|
+
* the claim atomic on every store, so two builds of two accounts can't both
|
|
513
|
+
* spend a slot; another account's build then registers nothing. Removing
|
|
514
|
+
* devices never releases it.
|
|
515
|
+
*/
|
|
516
|
+
const iosDeviceAccount = defineTable({
|
|
517
|
+
id: {
|
|
518
|
+
type: "string",
|
|
519
|
+
maxLength: 16,
|
|
520
|
+
ascii: true
|
|
521
|
+
},
|
|
522
|
+
apple_issuer_id: {
|
|
523
|
+
type: "string",
|
|
524
|
+
maxLength: 64,
|
|
525
|
+
ascii: true
|
|
526
|
+
},
|
|
527
|
+
claimed_at_ms: { type: "integer" }
|
|
528
|
+
}, {
|
|
529
|
+
key: ["id"],
|
|
530
|
+
indexes: { all: {
|
|
531
|
+
eq: [],
|
|
532
|
+
sort: ["id"]
|
|
533
|
+
} }
|
|
534
|
+
});
|
|
417
535
|
const coreSchema = {
|
|
418
536
|
bundles,
|
|
419
537
|
bundle_patches: bundlePatches,
|
|
@@ -431,7 +549,9 @@ const coreSchema = {
|
|
|
431
549
|
sort: []
|
|
432
550
|
} }
|
|
433
551
|
}),
|
|
434
|
-
native_builds: nativeBuilds
|
|
552
|
+
native_builds: nativeBuilds,
|
|
553
|
+
ios_devices: iosDevices,
|
|
554
|
+
ios_device_account: iosDeviceAccount
|
|
435
555
|
};
|
|
436
556
|
/** Core's module: always installed, never a plugin. */
|
|
437
557
|
const coreModule = {
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getMani
|
|
|
3
3
|
import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.cjs";
|
|
4
4
|
import { getContentType } from "./contentType.cjs";
|
|
5
5
|
import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.cjs";
|
|
6
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
|
|
6
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.cjs";
|
|
7
7
|
import { CoreReads, ReleaseCatalogRequest } from "./serverPlugin/coreReads.cjs";
|
|
8
8
|
import { 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";
|
|
9
9
|
import { FieldDefinition, FieldReference, FieldType, IndexDefinition, ReferenceAction } from "./serverPlugin/definitions.cjs";
|
|
@@ -21,7 +21,7 @@ import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult, Nati
|
|
|
21
21
|
import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, ConfigInput, FingerprintExtraSources, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeBuildSandboxOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, resolveLazy, supportedIosPlatforms } from "./types/index.cjs";
|
|
22
22
|
import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.cjs";
|
|
23
23
|
import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.cjs";
|
|
24
|
-
import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.cjs";
|
|
24
|
+
import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.cjs";
|
|
25
25
|
import { DatabaseAdapterInputError, DatabaseAdapterInputErrorCode, DatabaseBundleNotFoundError, DatabaseRowReferencedError } from "./databaseErrors.cjs";
|
|
26
26
|
import { createStorageKeyBuilder } from "./createStorageKeyBuilder.cjs";
|
|
27
27
|
import { CreateStorageAdapterOptions, StorageAdapterWith, StorageOperation, assertStorageOperations, createStorageAdapter } from "./createStorageAdapter.cjs";
|
|
@@ -51,4 +51,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.cjs";
|
|
|
51
51
|
import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.cjs";
|
|
52
52
|
import { writeSchemaSettings } from "./engine/db/schemaSettings.cjs";
|
|
53
53
|
import { createSettingsMigrator } from "./engine/db/settingsMigrator.cjs";
|
|
54
|
-
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
|
|
54
|
+
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type IosDeviceAccountClaim, type IosDeviceOutcome, type IosDeviceOutcomeInput, type IosDeviceRequestResult, type IosDeviceRow, type IosDeviceStatus, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { createStorageUriWithRelativePath, getManifestAssetDownloadPath, getMani
|
|
|
3
3
|
import { CONTENT_ADDRESSED_ASSET_PREFIX, getContentAddressedAssetStoragePath, isContentAddressedAssetFileHash } from "./contentAddressedAssets.mjs";
|
|
4
4
|
import { getContentType } from "./contentType.mjs";
|
|
5
5
|
import { CatalogVersionBound, CompiledCatalogSegment, CompiledReleaseCatalog, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, canonicalizeAppVersion, compileReleaseCatalog, projectCompiledCatalog, projectCompiledRollbackCatalog, referenceCompatibleReleases } from "./releaseCatalogCompiler.mjs";
|
|
6
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
|
|
6
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./types/databaseRows.mjs";
|
|
7
7
|
import { CoreReads, ReleaseCatalogRequest } from "./serverPlugin/coreReads.mjs";
|
|
8
8
|
import { 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";
|
|
9
9
|
import { FieldDefinition, FieldReference, FieldType, IndexDefinition, ReferenceAction } from "./serverPlugin/definitions.mjs";
|
|
@@ -21,7 +21,7 @@ import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult, Nati
|
|
|
21
21
|
import { ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, Bundle, ConfigInput, FingerprintExtraSources, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, NativeBuildIosScheme, NativeBuildOptions, NativeBuildSandboxOptions, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, Platform, PlatformConfig, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, resolveLazy, supportedIosPlatforms } from "./types/index.mjs";
|
|
22
22
|
import { ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, ReleaseCatalogScope } from "./releaseCatalogMutation.mjs";
|
|
23
23
|
import { PromoteReleaseResult, ReleaseManagementError, ReleasePolicyPatch } from "./releaseManagement.mjs";
|
|
24
|
-
import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.mjs";
|
|
24
|
+
import { BundleDeployment, BundleDetail, DeployReleasePolicy, Deployment, HotUpdaterCoreApi, IosDeviceAccountClaim, IosDeviceOutcome, IosDeviceOutcomeInput, IosDeviceRequestResult, KeysetInput, NativeBuildRegistration, NativeBuildScope, ReleaseFilter, ReleaseTarget, StoredBundleDeployment } from "./coreApi.mjs";
|
|
25
25
|
import { DatabaseAdapterInputError, DatabaseAdapterInputErrorCode, DatabaseBundleNotFoundError, DatabaseRowReferencedError } from "./databaseErrors.mjs";
|
|
26
26
|
import { createStorageKeyBuilder } from "./createStorageKeyBuilder.mjs";
|
|
27
27
|
import { CreateStorageAdapterOptions, StorageAdapterWith, StorageOperation, assertStorageOperations, createStorageAdapter } from "./createStorageAdapter.mjs";
|
|
@@ -51,4 +51,4 @@ import { EngineSqlOptions, generateEngineSql } from "./engine/db/engineSql.mjs";
|
|
|
51
51
|
import { EngineSqlMigratorOptions, createEngineSqlMigrator } from "./engine/db/engineSqlMigrator.mjs";
|
|
52
52
|
import { writeSchemaSettings } from "./engine/db/schemaSettings.mjs";
|
|
53
53
|
import { createSettingsMigrator } from "./engine/db/settingsMigrator.mjs";
|
|
54
|
-
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
|
|
54
|
+
export { type AggregateBatching, type AggregateChanges, type AggregateDefinition, type AggregateIdentity, type AggregateRow, type AnyHotUpdaterPlugin, ApplePlatform, BUNDLE_STORAGE_PREFIX, type BaseCandidateQuery, type BaseCandidateTarget, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle, type BundleDeployment, type BundleDetail, type BundlePatchRow, type BundleRow, BundleRowHydrationError, BundleRowHydrationErrorReason, type BundleRowUpdate, CONTENT_ADDRESSED_ASSET_PREFIX, CatalogVersionBound, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, type ClientAuth, CompiledCatalogSegment, CompiledReleaseCatalog, ConfigInput, type ConfiguredDatabase, type ConstraintReason, type CoreReader, type CoreReads, type CoreSchema, type CreateRow, CreateStorageAdapterOptions, CreateStorageUriInput, DATABASE_VERSION_COLUMN, type DatabaseAdapter, DatabaseAdapterContractError, DatabaseAdapterInputError, type DatabaseAdapterInputErrorCode, DatabaseAmbiguousCommitError, type DatabaseBundleMetadata, DatabaseBundleNotFoundError, DatabaseConflictError, DatabaseConstraintError, DatabaseCursorError, type DatabaseJson, type DatabaseJsonObject, type DatabaseJsonValue, type DatabaseKey, type DatabaseKeyValue, DatabaseQueryError, type DatabaseReadCount, type DatabaseReadMeter, DatabaseRowReferencedError, DatabaseSchemaError, type DatabaseTooling, DatabaseTransactionError, type DatabaseValue, type DeployReleasePolicy, type Deployment, type DerivedDefinition, type DerivedFields, type Engine, type EngineColumns, type EngineDatabase, type EngineDatabaseOptions, type EngineOptions, type EngineReadCount, type EngineSqlMigratorOptions, type EngineSqlOptions, type FieldDefinition, type FieldReference, type FieldType, type FieldValue, type FindAggregatesModel, type FindManyModel, FingerprintExtraSources, HasMultipleCallSignatures, HotUpdaterConfigError, type HotUpdaterCoreApi, type HotUpdaterDatabase, type HotUpdaterPlugin, HotUpdaterSchemaMigrationRequiredError, type HotUpdaterTransaction, type IndexDefinition, IosBuildDestination, type IosDeviceAccountClaim, type IosDeviceOutcome, type IosDeviceOutcomeInput, type IosDeviceRequestResult, type IosDeviceRow, type IosDeviceStatus, type KeyLookup, type KeyValueStore, type KeysetInput, type KvAdapterOptions, type KvCondition, type KvItem, type KvKey, type KvOp, type KvRange, Lazy, LocalSigningConfig, type Lookup, type MemoryAdapterOptions, type MeteredDatabase, type MigrateOptions, type MigrationResult, type Migrator, type ModelDefinition, type ModuleSchema, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRegistration, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildScope, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type NormalizeOptions, type Page, ParsedStorageUri, type PhysicalColumn, type PhysicalColumnType, type PhysicalIndex, type PhysicalRetention, type PhysicalTable, type Platform, PlatformConfig, type PluginApis, type PluginCli, type PluginClientCredential, type PluginClientPlugin, type PluginContext, type PluginEndpoint, type PluginEndpointMethod, type PluginInstance, type PluginProvides, type PluginTables, Primitive, PromoteReleaseResult, type QueryBound, type QueryRequest, type ReadMeasurement, type ReadOptions, type ReadRow, type ReferenceAction, ReleaseCatalogCompilation, ReleaseCatalogCompilationError, ReleaseCatalogCompilerDiagnostics, ReleaseCatalogMutationError, ReleaseCatalogMutationPreflight, ReleaseCatalogMutationResult, ReleaseCatalogRebuildPreflight, ReleaseCatalogRebuildResult, type ReleaseCatalogRequest, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, ReleaseCatalogScope, type ReleaseFilter, ReleaseManagementError, ReleasePolicyPatch, type ReleaseRow, type ReleaseRowUpdate, type ReleaseTarget, type RemoteDatabase, RequiredDeep, type ResolvedModel, type ResolvedSchema, type RetentionDefinition, type RetryOptions, type RowOf, SETTINGS_TABLE, type SchemaGenerator, type SchemaSettings, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, type SqlAdapterOptions, type SqlColumnShape, type SqlConnection, type SqlDialect, type SqlExecutor, type SqlResult, type SqlStatement, type SqlTableShape, StorageAdapter, StorageAdapterWith, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StorageOperation, StoragePutInput, StoragePutResult, type StoredBundleDeployment, type StoredRow, type TableDefinition, type TableRow, type ToolingDatabase, type ToolingTarget, type UpdateSet, type VerifiedDatabaseAdapter, type VerifyAdapterOptions, WRITE_GUARD_TABLE, type WriteGuard, type WriteOp, type WriteResult, addDistinct, aggregateBatchingTables, assertStorageOperations, bundleToPatchRows, bundleToRow, canonicalizeAppVersion, compareUtf8, compileReleaseCatalog, coreSchema, coreSettings, coreTarget, countDistinct, createBundleStorageKey, createEngine, createEngineDatabase, createEngineSqlMigrator, createKvAdapter, createMemoryAdapter, createSettingsMigrator, createSqlAdapter, createStorageAdapter, createStorageKeyBuilder, createStorageRootUriWithPath, createStorageUri, createStorageUriWithRelativePath, createTableStatements, createUUIDv7, createUUIDv7After, createUUIDv7WithSameTimestamp, defineAggregate, definePlugin, defineTable, encodeKvKey, expiresAt, extractTimestampFromUUIDv7, findPhysicalColumn, findPhysicalIndex, generateEngineSql, generateMinBundleId, getBundleArchiveStorageUri, getContentAddressedAssetStoragePath, getContentType, getManifestAssetDownloadPath, getManifestAssetStoragePath, indexOrderColumns, isBrotliManifestAssetPath, isContentAddressedAssetFileHash, isDatabaseBusyError, isDatabaseJsonObject, isDatabaseMetadataObject, isMultiIndex, isRemoteDatabase, isUUIDv7, mergeDistinct, meterReads, migrateCoreSchema, normalizeStoredRow, parseBaseCandidateKey, parseStorageUri, projectCompiledCatalog, projectCompiledRollbackCatalog, quoteSql, referenceCompatibleReleases, releaseRowToRelease, releaseToRow, replaceStorageUriKeySuffix, resolveLazy, resolveManifestAssetStorageFileHash, resolveManifestAssetStorageUri, rowKey, rowToBundle, rowsToBundles, semverSatisfies, sqlTableShapes, supportedIosPlatforms, targetBaseCandidateKey, toolingTargetOf, verifyAdapter, writeSchemaSettings };
|
|
@@ -70,6 +70,12 @@ interface ChannelRow {
|
|
|
70
70
|
type NativeBuildArtifactKind = "apk" | "aab" | "ipa" | "app";
|
|
71
71
|
/** The store track a native build was submitted to. */
|
|
72
72
|
type NativeBuildSubmissionDestination = "testflight" | "play-internal" | "play-closed" | "play-open" | "play-production";
|
|
73
|
+
/**
|
|
74
|
+
* How an iOS `.ipa` was exported, as its embedded provisioning profile says:
|
|
75
|
+
* for the App Store (no device list), ad hoc or development (a device list,
|
|
76
|
+
* development's with `get-task-allow`), or enterprise (every device).
|
|
77
|
+
*/
|
|
78
|
+
type NativeBuildExportMethod = "app-store" | "ad-hoc" | "development" | "enterprise";
|
|
73
79
|
/**
|
|
74
80
|
* A registered native build: its artifact in storage, the scope it serves,
|
|
75
81
|
* and `min_bundle_id`, the `bundles` row of the bundle built into it.
|
|
@@ -122,6 +128,41 @@ interface NativeBuildRow {
|
|
|
122
128
|
* before it was recorded, which registered `hu-sandbox-<app ID>`.
|
|
123
129
|
*/
|
|
124
130
|
readonly sandbox_url_scheme: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* How an `.ipa` was exported, read from its profile when it registered and
|
|
133
|
+
* never changed. Null on any other artifact, and on an `.ipa` registered
|
|
134
|
+
* before it was recorded.
|
|
135
|
+
*/
|
|
136
|
+
readonly export_method: NativeBuildExportMethod | null;
|
|
137
|
+
}
|
|
138
|
+
/** Where an iOS device is in the registry: requested, approved, or registered with Apple. */
|
|
139
|
+
type IosDeviceStatus = "pending" | "approved" | "registered";
|
|
140
|
+
/**
|
|
141
|
+
* An iPhone or iPad a team asked to install ad hoc builds on: the device
|
|
142
|
+
* registry the CLI registers with Apple from. Holds personal data: a UDID, a
|
|
143
|
+
* name, and emails.
|
|
144
|
+
*/
|
|
145
|
+
interface IosDeviceRow {
|
|
146
|
+
readonly id: string;
|
|
147
|
+
/** The UDID in lower case, in whichever of Apple's two formats it came. */
|
|
148
|
+
readonly udid: string;
|
|
149
|
+
/** The name App Store Connect shows once it is registered. */
|
|
150
|
+
readonly name: string;
|
|
151
|
+
readonly status: IosDeviceStatus;
|
|
152
|
+
/** Who asked for it, or null for the CLI. */
|
|
153
|
+
readonly requested_by: string | null;
|
|
154
|
+
readonly created_at_ms: number;
|
|
155
|
+
/** Who approved it: a Console email, or null for the CLI. */
|
|
156
|
+
readonly approved_by: string | null;
|
|
157
|
+
readonly approved_at_ms: number | null;
|
|
158
|
+
/** When it first counted as registered with Apple. */
|
|
159
|
+
readonly registered_at_ms: number | null;
|
|
160
|
+
/** The App Store Connect issuer of the account that registered it, set once. */
|
|
161
|
+
readonly apple_issuer_id: string | null;
|
|
162
|
+
/** Why Apple didn't take it or stopped counting it, in Apple's words or ours. */
|
|
163
|
+
readonly apple_error: string | null;
|
|
164
|
+
/** The newest native build whose .ipa the CLI checked lists it. */
|
|
165
|
+
readonly build_id: string | null;
|
|
125
166
|
}
|
|
126
167
|
//#endregion
|
|
127
|
-
export { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow };
|
|
168
|
+
export { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow };
|
|
@@ -70,6 +70,12 @@ interface ChannelRow {
|
|
|
70
70
|
type NativeBuildArtifactKind = "apk" | "aab" | "ipa" | "app";
|
|
71
71
|
/** The store track a native build was submitted to. */
|
|
72
72
|
type NativeBuildSubmissionDestination = "testflight" | "play-internal" | "play-closed" | "play-open" | "play-production";
|
|
73
|
+
/**
|
|
74
|
+
* How an iOS `.ipa` was exported, as its embedded provisioning profile says:
|
|
75
|
+
* for the App Store (no device list), ad hoc or development (a device list,
|
|
76
|
+
* development's with `get-task-allow`), or enterprise (every device).
|
|
77
|
+
*/
|
|
78
|
+
type NativeBuildExportMethod = "app-store" | "ad-hoc" | "development" | "enterprise";
|
|
73
79
|
/**
|
|
74
80
|
* A registered native build: its artifact in storage, the scope it serves,
|
|
75
81
|
* and `min_bundle_id`, the `bundles` row of the bundle built into it.
|
|
@@ -122,6 +128,41 @@ interface NativeBuildRow {
|
|
|
122
128
|
* before it was recorded, which registered `hu-sandbox-<app ID>`.
|
|
123
129
|
*/
|
|
124
130
|
readonly sandbox_url_scheme: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* How an `.ipa` was exported, read from its profile when it registered and
|
|
133
|
+
* never changed. Null on any other artifact, and on an `.ipa` registered
|
|
134
|
+
* before it was recorded.
|
|
135
|
+
*/
|
|
136
|
+
readonly export_method: NativeBuildExportMethod | null;
|
|
137
|
+
}
|
|
138
|
+
/** Where an iOS device is in the registry: requested, approved, or registered with Apple. */
|
|
139
|
+
type IosDeviceStatus = "pending" | "approved" | "registered";
|
|
140
|
+
/**
|
|
141
|
+
* An iPhone or iPad a team asked to install ad hoc builds on: the device
|
|
142
|
+
* registry the CLI registers with Apple from. Holds personal data: a UDID, a
|
|
143
|
+
* name, and emails.
|
|
144
|
+
*/
|
|
145
|
+
interface IosDeviceRow {
|
|
146
|
+
readonly id: string;
|
|
147
|
+
/** The UDID in lower case, in whichever of Apple's two formats it came. */
|
|
148
|
+
readonly udid: string;
|
|
149
|
+
/** The name App Store Connect shows once it is registered. */
|
|
150
|
+
readonly name: string;
|
|
151
|
+
readonly status: IosDeviceStatus;
|
|
152
|
+
/** Who asked for it, or null for the CLI. */
|
|
153
|
+
readonly requested_by: string | null;
|
|
154
|
+
readonly created_at_ms: number;
|
|
155
|
+
/** Who approved it: a Console email, or null for the CLI. */
|
|
156
|
+
readonly approved_by: string | null;
|
|
157
|
+
readonly approved_at_ms: number | null;
|
|
158
|
+
/** When it first counted as registered with Apple. */
|
|
159
|
+
readonly registered_at_ms: number | null;
|
|
160
|
+
/** The App Store Connect issuer of the account that registered it, set once. */
|
|
161
|
+
readonly apple_issuer_id: string | null;
|
|
162
|
+
/** Why Apple didn't take it or stopped counting it, in Apple's words or ours. */
|
|
163
|
+
readonly apple_error: string | null;
|
|
164
|
+
/** The newest native build whose .ipa the CLI checked lists it. */
|
|
165
|
+
readonly build_id: string | null;
|
|
125
166
|
}
|
|
126
167
|
//#endregion
|
|
127
|
-
export { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow };
|
|
168
|
+
export { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
|
|
2
2
|
import { AnyHotUpdaterPlugin } from "../serverPlugin/definePlugin.cjs";
|
|
3
3
|
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./databaseConfig.cjs";
|
|
4
4
|
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./utils.cjs";
|
|
@@ -650,4 +650,4 @@ interface NativeBuildOptions {
|
|
|
650
650
|
scheme?: string;
|
|
651
651
|
}
|
|
652
652
|
//#endregion
|
|
653
|
-
export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, resolveLazy, supportedIosPlatforms };
|
|
653
|
+
export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, type IosDeviceRow, type IosDeviceStatus, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, resolveLazy, supportedIosPlatforms };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.mjs";
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.mjs";
|
|
2
2
|
import { AnyHotUpdaterPlugin } from "../serverPlugin/definePlugin.mjs";
|
|
3
3
|
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./databaseConfig.mjs";
|
|
4
4
|
import { BuiltIns, HasMultipleCallSignatures, Primitive, RequiredDeep } from "./utils.mjs";
|
|
@@ -650,4 +650,4 @@ interface NativeBuildOptions {
|
|
|
650
650
|
scheme?: string;
|
|
651
651
|
}
|
|
652
652
|
//#endregion
|
|
653
|
-
export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, resolveLazy, supportedIosPlatforms };
|
|
653
|
+
export { type AggregateBatching, ApplePlatform, BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, BuiltIns, type Bundle$1 as Bundle, type BundlePatchRow, type BundleRow, type BundleRowUpdate, type ChannelDeleteResult, type ChannelInsertResult, type ChannelRow, ConfigInput, type ConfiguredDatabase, type DatabaseBundleMetadata, type DatabaseJsonObject, type DatabaseJsonValue, type EngineDatabase, FingerprintExtraSources, HasMultipleCallSignatures, IosBuildDestination, type IosDeviceRow, type IosDeviceStatus, Lazy, LocalSigningConfig, NativeBuildAndroidScheme, NativeBuildArgs, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, NativeBuildIosScheme, type NativeBuildMarkResult, NativeBuildOptions, type NativeBuildRow, NativeBuildSandboxOptions, type NativeBuildSubmissionDestination, NativeFingerprint, NativeFingerprintOptions, NativeFingerprintProvider, NativeFingerprintSource, type Platform$1 as Platform, PlatformConfig, Primitive, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, RequiredDeep, SecretRef, SecretsAdapter, SecretsContext, SigningConfig, StorageAdapter, StorageDeleteInput, StorageDeleteResult, StorageExistsInput, StorageExistsResult, StorageGetDownloadUrlInput, StorageGetDownloadUrlResult, StorageGetInput, StorageGetResult, StorageObject, StoragePutInput, StoragePutResult, isRemoteDatabase, resolveLazy, supportedIosPlatforms };
|
package/dist/types/public.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.cjs";
|
|
2
2
|
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./databaseConfig.cjs";
|
|
3
3
|
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.cjs";
|
|
4
4
|
import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult, NativeBuildMarkResult } 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 NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildMarkResult, type NativeBuildRow, type NativeBuildSubmissionDestination, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, isRemoteDatabase };
|
|
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 IosDeviceRow, type IosDeviceStatus, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, type NativeBuildMarkResult, type NativeBuildRow, type NativeBuildSubmissionDestination, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, isRemoteDatabase };
|
package/dist/types/public.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, NativeBuildArtifactKind, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.mjs";
|
|
1
|
+
import { BundlePatchRow, BundleRow, ChannelRow, DatabaseBundleMetadata, DatabaseJsonObject, DatabaseJsonValue, IosDeviceRow, IosDeviceStatus, NativeBuildArtifactKind, NativeBuildExportMethod, NativeBuildRow, NativeBuildSubmissionDestination, ReleaseCatalogRow, ReleaseRow } from "./databaseRows.mjs";
|
|
2
2
|
import { AggregateBatching, ConfiguredDatabase, EngineDatabase, RemoteDatabase, isRemoteDatabase } from "./databaseConfig.mjs";
|
|
3
3
|
import { BundleRowUpdate, ReleaseCatalogRowUpdate, ReleaseRowUpdate } from "./databaseOperations.mjs";
|
|
4
4
|
import { ChannelDeleteResult, ChannelInsertResult, NativeBuildDeleteResult, NativeBuildMarkResult } from "./models.mjs";
|
|
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 NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildMarkResult, type NativeBuildRow, type NativeBuildSubmissionDestination, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, isRemoteDatabase };
|
|
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 IosDeviceRow, type IosDeviceStatus, type NativeBuildArtifactKind, type NativeBuildDeleteResult, type NativeBuildExportMethod, type NativeBuildMarkResult, type NativeBuildRow, type NativeBuildSubmissionDestination, type ReleaseCatalogRow, type ReleaseCatalogRowUpdate, type ReleaseRow, type ReleaseRowUpdate, type RemoteDatabase, isRemoteDatabase };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/plugin-core",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"es-toolkit": "^1.32.0",
|
|
46
46
|
"mime": "^4.0.4",
|
|
47
47
|
"verkit": "0.4.0",
|
|
48
|
-
"@hot-updater/protocol": "1.2.0-rc.
|
|
48
|
+
"@hot-updater/protocol": "1.2.0-rc.29"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@electric-sql/pglite": "0.4.1",
|