@hot-updater/plugin-core 1.2.0-rc.5 → 1.2.0-rc.50
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 +246 -10
- package/dist/coreApi.d.mts +246 -10
- package/dist/database/adapter.d.cts +12 -0
- package/dist/database/adapter.d.mts +12 -0
- package/dist/engine/core/schema.cjs +200 -5
- package/dist/engine/core/schema.d.cts +127 -1
- package/dist/engine/core/schema.d.mts +127 -1
- package/dist/engine/core/schema.mjs +200 -6
- package/dist/engine/createEngine.cjs +1 -2
- package/dist/engine/createEngine.d.cts +1 -6
- package/dist/engine/createEngine.d.mts +1 -6
- package/dist/engine/createEngine.mjs +1 -2
- package/dist/engine/database/aggregateBatching.cjs +87 -129
- package/dist/engine/database/aggregateBatching.mjs +87 -129
- package/dist/engine/database/database.cjs +1 -4
- package/dist/engine/database/database.mjs +1 -4
- package/dist/engine/database/engineTransaction.cjs +21 -1
- package/dist/engine/database/engineTransaction.d.cts +5 -1
- package/dist/engine/database/engineTransaction.d.mts +5 -1
- package/dist/engine/database/engineTransaction.mjs +21 -1
- package/dist/engine/database/kv/kvAdapter.cjs +80 -4
- package/dist/engine/database/kv/kvAdapter.mjs +80 -4
- package/dist/engine/database/resolveSchema.cjs +6 -3
- package/dist/engine/database/resolveSchema.mjs +6 -3
- package/dist/engine/database/sql/sqlAdapter.cjs +9 -4
- package/dist/engine/database/sql/sqlAdapter.mjs +9 -4
- package/dist/engine/database/sql/sqlSchema.cjs +24 -6
- package/dist/engine/database/sql/sqlSchema.d.cts +1 -1
- package/dist/engine/database/sql/sqlSchema.d.mts +1 -1
- package/dist/engine/database/sql/sqlSchema.mjs +24 -6
- package/dist/engine/db/coreDatabase.cjs +10 -5
- package/dist/engine/db/coreDatabase.d.cts +2 -1
- package/dist/engine/db/coreDatabase.d.mts +2 -1
- package/dist/engine/db/coreDatabase.mjs +10 -5
- package/dist/engine/db/engineMigrator.cjs +21 -16
- package/dist/engine/db/engineMigrator.mjs +22 -17
- package/dist/engine/db/engineSqlMigrator.cjs +53 -20
- package/dist/engine/db/engineSqlMigrator.d.cts +2 -0
- package/dist/engine/db/engineSqlMigrator.d.mts +2 -0
- package/dist/engine/db/engineSqlMigrator.mjs +55 -22
- package/dist/engine/db/schemaSettings.cjs +36 -5
- package/dist/engine/db/schemaSettings.d.cts +5 -2
- package/dist/engine/db/schemaSettings.d.mts +5 -2
- package/dist/engine/db/schemaSettings.mjs +36 -6
- package/dist/engine/db/settingsMigrator.cjs +92 -14
- package/dist/engine/db/settingsMigrator.d.cts +18 -8
- package/dist/engine/db/settingsMigrator.d.mts +18 -8
- package/dist/engine/db/settingsMigrator.mjs +89 -15
- package/dist/engine/db/sqlSchemaState.cjs +108 -0
- package/dist/engine/db/sqlSchemaState.mjs +104 -0
- package/dist/engine/db/types.d.cts +6 -0
- package/dist/engine/db/types.d.mts +6 -0
- package/dist/index.cjs +2 -8
- package/dist/index.d.cts +5 -6
- package/dist/index.d.mts +5 -6
- package/dist/index.mjs +3 -4
- package/dist/serverPlugin/coreReads.d.cts +10 -1
- package/dist/serverPlugin/coreReads.d.mts +10 -1
- package/dist/serverPlugin/definitions.d.cts +4 -0
- package/dist/serverPlugin/definitions.d.mts +4 -0
- package/dist/serverPlugin/schema.d.cts +4 -0
- package/dist/serverPlugin/schema.d.mts +4 -0
- package/dist/types/databaseConfig.d.cts +10 -20
- package/dist/types/databaseConfig.d.mts +10 -20
- package/dist/types/databaseRows.d.cts +70 -2
- package/dist/types/databaseRows.d.mts +70 -2
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +114 -56
- package/dist/types/index.d.mts +114 -56
- package/dist/types/index.mjs +3 -1
- package/dist/types/models.d.cts +9 -1
- package/dist/types/models.d.mts +9 -1
- package/dist/types/public.d.cts +3 -3
- package/dist/types/public.d.mts +3 -3
- package/package.json +3 -9
- package/dist/remoteBundleSigning.cjs +0 -357
- package/dist/remoteBundleSigning.d.cts +0 -38
- package/dist/remoteBundleSigning.d.mts +0 -38
- package/dist/remoteBundleSigning.mjs +0 -352
|
@@ -156,6 +156,18 @@ interface DatabaseAdapter {
|
|
|
156
156
|
/** Called only by migration tooling, such as `hot-updater db migrate`. */
|
|
157
157
|
readonly migrations?: {
|
|
158
158
|
apply(tables: readonly PhysicalTable[]): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* For a store that keeps index items of its own: writes the items of
|
|
161
|
+
* `index` that rows of `table` lack, or with `dryRun` only counts them,
|
|
162
|
+
* and returns how many rows lacked one. Migrations call it for an index
|
|
163
|
+
* declared on a table rows of a released schema were written to, such
|
|
164
|
+
* as core's `releases.scopes`, whose server may still write rows
|
|
165
|
+
* without the index's items. A store whose indexes cover every row
|
|
166
|
+
* itself, such as SQL or MongoDB, leaves it out.
|
|
167
|
+
*/
|
|
168
|
+
fillIndex?(table: PhysicalTable, index: string, options?: {
|
|
169
|
+
readonly dryRun?: boolean;
|
|
170
|
+
}): Promise<number>;
|
|
159
171
|
};
|
|
160
172
|
dispose?(): Promise<void>;
|
|
161
173
|
}
|
|
@@ -14,9 +14,13 @@ const CHANNEL_ID = {
|
|
|
14
14
|
* applies it to managed databases an earlier release created. The official
|
|
15
15
|
* plugins' `schemaVersion`s follow the same rule. A bump only adds tables:
|
|
16
16
|
* every database's migrator creates missing tables and then records the
|
|
17
|
-
* version, and none of them changes an existing table, so changing
|
|
18
|
-
* needs a migration step of its own first.
|
|
19
|
-
*
|
|
17
|
+
* version, and none of them changes an existing table's columns, so changing
|
|
18
|
+
* one needs a migration step of its own first. An index added to an existing
|
|
19
|
+
* table is listed in `LATE_INDEXES`. The schema fence answers 503 on
|
|
20
|
+
* a database whose row differs, until it runs. Before a version is released,
|
|
21
|
+
* its tables change in place in its own migration, and a database one of its
|
|
22
|
+
* prereleases migrated takes the same change by hand: the fence compares this
|
|
23
|
+
* row, not columns, so nothing reports it.
|
|
20
24
|
*/
|
|
21
25
|
const HOT_UPDATER_SCHEMA_VERSION = "1.2.0";
|
|
22
26
|
const bundles = require_schema.defineTable({
|
|
@@ -198,9 +202,26 @@ const releases = require_schema.defineTable({
|
|
|
198
202
|
all: {
|
|
199
203
|
eq: [],
|
|
200
204
|
sort: ["id"]
|
|
205
|
+
},
|
|
206
|
+
scopes: {
|
|
207
|
+
eq: [],
|
|
208
|
+
sort: ["scope_key"]
|
|
201
209
|
}
|
|
202
210
|
}
|
|
203
211
|
});
|
|
212
|
+
/**
|
|
213
|
+
* Indexes declared on a table that a released schema's servers write: a
|
|
214
|
+
* store that keeps index items of its own (`migrations.fillIndex`) lacks
|
|
215
|
+
* them for rows written before, and for rows such a server still writes
|
|
216
|
+
* after the migration, since its schema fence keeps a check that passed.
|
|
217
|
+
* Each migration writes the missing items, and `db migrate` on a database
|
|
218
|
+
* whose settings match looks for them. `releases.scopes` arrived in 1.2.0;
|
|
219
|
+
* 1.1.x servers write releases without it.
|
|
220
|
+
*/
|
|
221
|
+
const LATE_INDEXES = [{
|
|
222
|
+
table: "releases",
|
|
223
|
+
index: "scopes"
|
|
224
|
+
}];
|
|
204
225
|
/** One compiled catalog per scope; the update check reads exactly this row. */
|
|
205
226
|
const releaseCatalogs = require_schema.defineTable({
|
|
206
227
|
scope_key: {
|
|
@@ -270,7 +291,10 @@ const channels = require_schema.defineTable({
|
|
|
270
291
|
/**
|
|
271
292
|
* The native builds `native-build android` and `native-build ios` track, newest first
|
|
272
293
|
* in each scope: a platform, a channel, and the fingerprint or app version
|
|
273
|
-
* the build compiled in.
|
|
294
|
+
* the build compiled in. A sandbox build's scope has no channel: its app ID,
|
|
295
|
+
* URL scheme, artifact kind and distribution in its place, so pull requests
|
|
296
|
+
* reuse it across channels, while `channel_id` still names the channel it
|
|
297
|
+
* embeds. `min_bundle_id` names the build's built-in bundle,
|
|
274
298
|
* a `bundles` row no release publishes. Its references keep no counters, so
|
|
275
299
|
* adding this table changes no existing one; a channel with builds is
|
|
276
300
|
* refused deletion through `byChannel`. `build_key` is the native build key
|
|
@@ -280,6 +304,27 @@ const channels = require_schema.defineTable({
|
|
|
280
304
|
* or `versionCode`. `submitted_to`, `submitted_at_ms` and
|
|
281
305
|
* `submitted_version` record the store track a build went to, when, and
|
|
282
306
|
* the store's label of the build; they stay null for a build no store took.
|
|
307
|
+
* `is_store_build` is true on the build a person or a job says the store
|
|
308
|
+
* sells, and false on every other: deploys patch from it over the scope's
|
|
309
|
+
* newest build. The engine copies the scope key into `store_build_scope_key`
|
|
310
|
+
* for that build alone, so `byStoreBuild` holds one entry per scope at most,
|
|
311
|
+
* on every store, while any number of a scope's builds hold none.
|
|
312
|
+
* `is_sandbox` is true on a sandbox build, set from its artifact when it
|
|
313
|
+
* registers and never changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
|
|
314
|
+
* which its preview links open; null on any other build, and on a sandbox
|
|
315
|
+
* build registered before the column, which registered the derived one.
|
|
316
|
+
* `export_method` is how an `.ipa` was exported, read from its profile when
|
|
317
|
+
* it registers and never changed; null on any other artifact, on an `.ipa`
|
|
318
|
+
* whose profile couldn't be read, and on one registered before the column.
|
|
319
|
+
* `native_app_version` is the app version the artifact itself reports, its
|
|
320
|
+
* `CFBundleShortVersionString` or `versionName`, read from the artifact when
|
|
321
|
+
* it registers and never changed, whatever the update strategy; `app_version`
|
|
322
|
+
* stays the version OTAs target, null on a fingerprint build. It is null
|
|
323
|
+
* when the artifact's can't be read, and on a build registered before the
|
|
324
|
+
* column.
|
|
325
|
+
* Boolean columns follow one rule: `is_*` for a fact about the row or
|
|
326
|
+
* `should_*` for an instruction to the client, never null; a unique index over
|
|
327
|
+
* the rows where one is true keys a derived slot, not the boolean.
|
|
283
328
|
*/
|
|
284
329
|
const nativeBuilds = require_schema.defineTable({
|
|
285
330
|
id: {
|
|
@@ -356,9 +401,34 @@ const nativeBuilds = require_schema.defineTable({
|
|
|
356
401
|
type: "string",
|
|
357
402
|
maxLength: 255,
|
|
358
403
|
required: false
|
|
404
|
+
},
|
|
405
|
+
is_store_build: { type: "boolean" },
|
|
406
|
+
is_sandbox: { type: "boolean" },
|
|
407
|
+
sandbox_url_scheme: {
|
|
408
|
+
type: "string",
|
|
409
|
+
maxLength: 255,
|
|
410
|
+
ascii: true,
|
|
411
|
+
required: false
|
|
412
|
+
},
|
|
413
|
+
export_method: {
|
|
414
|
+
type: "string",
|
|
415
|
+
maxLength: 16,
|
|
416
|
+
required: false
|
|
417
|
+
},
|
|
418
|
+
native_app_version: {
|
|
419
|
+
type: "string",
|
|
420
|
+
required: false
|
|
359
421
|
}
|
|
360
422
|
}, {
|
|
361
423
|
key: ["id"],
|
|
424
|
+
derived: {
|
|
425
|
+
/** The scope this build is the store build of; null on every other. */
|
|
426
|
+
store_build_scope_key: {
|
|
427
|
+
type: "string",
|
|
428
|
+
maxLength: 2048,
|
|
429
|
+
ascii: true,
|
|
430
|
+
compute: (row) => row.is_store_build ? row.scope_key : null
|
|
431
|
+
} },
|
|
362
432
|
indexes: {
|
|
363
433
|
byScope: {
|
|
364
434
|
eq: ["scope_key"],
|
|
@@ -368,6 +438,15 @@ const nativeBuilds = require_schema.defineTable({
|
|
|
368
438
|
eq: ["scope_key", "build_key"],
|
|
369
439
|
sort: ["id"]
|
|
370
440
|
},
|
|
441
|
+
byScopeKind: {
|
|
442
|
+
eq: ["scope_key", "artifact_kind"],
|
|
443
|
+
sort: ["id"]
|
|
444
|
+
},
|
|
445
|
+
byStoreBuild: {
|
|
446
|
+
eq: ["store_build_scope_key"],
|
|
447
|
+
sort: [],
|
|
448
|
+
unique: true
|
|
449
|
+
},
|
|
371
450
|
byChannel: {
|
|
372
451
|
eq: ["channel_id"],
|
|
373
452
|
sort: ["id"],
|
|
@@ -379,6 +458,119 @@ const nativeBuilds = require_schema.defineTable({
|
|
|
379
458
|
}
|
|
380
459
|
}
|
|
381
460
|
});
|
|
461
|
+
/**
|
|
462
|
+
* The iPhones a team asks to install ad hoc builds on. A row decides what the
|
|
463
|
+
* CLI registers with Apple, not what an export includes: Xcode's automatic ad
|
|
464
|
+
* hoc profile lists every device the Apple account has enabled. `status` is
|
|
465
|
+
* `pending` until someone approves it, `approved` until a build or
|
|
466
|
+
* `native-build devices add` registers it with Apple, then `registered`;
|
|
467
|
+
* declining or removing one deletes its row. `udid` is the UDID in lower case.
|
|
468
|
+
* `apple_issuer_id` is the App Store Connect issuer whose key registered it,
|
|
469
|
+
* set once: a build signed by another account never registers these rows.
|
|
470
|
+
* `apple_error` is Apple's refusal of the device, or why it stopped counting
|
|
471
|
+
* it, cleared by the next success. `build_id` is the newest native build whose
|
|
472
|
+
* .ipa the CLI checked lists it; deleting that build never touches the row.
|
|
473
|
+
* It holds personal data: a UDID, a name, and the emails of who asked and who
|
|
474
|
+
* approved, null for the CLI.
|
|
475
|
+
*/
|
|
476
|
+
const iosDevices = require_schema.defineTable({
|
|
477
|
+
id: {
|
|
478
|
+
type: "string",
|
|
479
|
+
maxLength: 36
|
|
480
|
+
},
|
|
481
|
+
udid: {
|
|
482
|
+
type: "string",
|
|
483
|
+
maxLength: 40,
|
|
484
|
+
ascii: true,
|
|
485
|
+
unique: true
|
|
486
|
+
},
|
|
487
|
+
name: {
|
|
488
|
+
type: "string",
|
|
489
|
+
maxLength: 100
|
|
490
|
+
},
|
|
491
|
+
status: {
|
|
492
|
+
type: "string",
|
|
493
|
+
maxLength: 16
|
|
494
|
+
},
|
|
495
|
+
requested_by: {
|
|
496
|
+
type: "string",
|
|
497
|
+
maxLength: 320,
|
|
498
|
+
required: false
|
|
499
|
+
},
|
|
500
|
+
created_at_ms: { type: "integer" },
|
|
501
|
+
approved_by: {
|
|
502
|
+
type: "string",
|
|
503
|
+
maxLength: 320,
|
|
504
|
+
required: false
|
|
505
|
+
},
|
|
506
|
+
approved_at_ms: {
|
|
507
|
+
type: "integer",
|
|
508
|
+
required: false
|
|
509
|
+
},
|
|
510
|
+
registered_at_ms: {
|
|
511
|
+
type: "integer",
|
|
512
|
+
required: false
|
|
513
|
+
},
|
|
514
|
+
apple_issuer_id: {
|
|
515
|
+
type: "string",
|
|
516
|
+
maxLength: 64,
|
|
517
|
+
ascii: true,
|
|
518
|
+
required: false
|
|
519
|
+
},
|
|
520
|
+
apple_error: {
|
|
521
|
+
type: "string",
|
|
522
|
+
maxLength: 512,
|
|
523
|
+
required: false
|
|
524
|
+
},
|
|
525
|
+
build_id: {
|
|
526
|
+
type: "string",
|
|
527
|
+
maxLength: 36,
|
|
528
|
+
required: false
|
|
529
|
+
}
|
|
530
|
+
}, {
|
|
531
|
+
key: ["id"],
|
|
532
|
+
indexes: {
|
|
533
|
+
byStatus: {
|
|
534
|
+
eq: ["status"],
|
|
535
|
+
sort: ["id"]
|
|
536
|
+
},
|
|
537
|
+
byRegistration: {
|
|
538
|
+
eq: [],
|
|
539
|
+
sort: ["registered_at_ms"]
|
|
540
|
+
},
|
|
541
|
+
all: {
|
|
542
|
+
eq: [],
|
|
543
|
+
sort: ["id"]
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
/**
|
|
548
|
+
* The Apple account the iOS device registry belongs to: one row, keyed
|
|
549
|
+
* `registry`, holding the App Store Connect issuer that first registered a
|
|
550
|
+
* device. A build claims it before it sends Apple anything, and its key makes
|
|
551
|
+
* the claim atomic on every store, so two builds of two accounts can't both
|
|
552
|
+
* spend a slot; another account's build then registers nothing. Removing
|
|
553
|
+
* devices never releases it.
|
|
554
|
+
*/
|
|
555
|
+
const iosDeviceAccount = require_schema.defineTable({
|
|
556
|
+
id: {
|
|
557
|
+
type: "string",
|
|
558
|
+
maxLength: 16,
|
|
559
|
+
ascii: true
|
|
560
|
+
},
|
|
561
|
+
apple_issuer_id: {
|
|
562
|
+
type: "string",
|
|
563
|
+
maxLength: 64,
|
|
564
|
+
ascii: true
|
|
565
|
+
},
|
|
566
|
+
claimed_at_ms: { type: "integer" }
|
|
567
|
+
}, {
|
|
568
|
+
key: ["id"],
|
|
569
|
+
indexes: { all: {
|
|
570
|
+
eq: [],
|
|
571
|
+
sort: ["id"]
|
|
572
|
+
} }
|
|
573
|
+
});
|
|
382
574
|
const coreSchema = {
|
|
383
575
|
bundles,
|
|
384
576
|
bundle_patches: bundlePatches,
|
|
@@ -396,7 +588,9 @@ const coreSchema = {
|
|
|
396
588
|
sort: []
|
|
397
589
|
} }
|
|
398
590
|
}),
|
|
399
|
-
native_builds: nativeBuilds
|
|
591
|
+
native_builds: nativeBuilds,
|
|
592
|
+
ios_devices: iosDevices,
|
|
593
|
+
ios_device_account: iosDeviceAccount
|
|
400
594
|
};
|
|
401
595
|
/** Core's module: always installed, never a plugin. */
|
|
402
596
|
const coreModule = {
|
|
@@ -405,5 +599,6 @@ const coreModule = {
|
|
|
405
599
|
};
|
|
406
600
|
//#endregion
|
|
407
601
|
exports.HOT_UPDATER_SCHEMA_VERSION = HOT_UPDATER_SCHEMA_VERSION;
|
|
602
|
+
exports.LATE_INDEXES = LATE_INDEXES;
|
|
408
603
|
exports.coreModule = coreModule;
|
|
409
604
|
exports.coreSchema = coreSchema;
|
|
@@ -210,6 +210,10 @@ declare const coreSchema: {
|
|
|
210
210
|
readonly eq: readonly [];
|
|
211
211
|
readonly sort: readonly ["id"];
|
|
212
212
|
};
|
|
213
|
+
readonly scopes: {
|
|
214
|
+
readonly eq: readonly [];
|
|
215
|
+
readonly sort: readonly ["scope_key"];
|
|
216
|
+
};
|
|
213
217
|
}, readonly ["id"]>;
|
|
214
218
|
readonly release_catalogs: TableDefinition<{
|
|
215
219
|
readonly scope_key: {
|
|
@@ -385,7 +389,30 @@ declare const coreSchema: {
|
|
|
385
389
|
readonly maxLength: 255;
|
|
386
390
|
readonly required: false;
|
|
387
391
|
};
|
|
388
|
-
|
|
392
|
+
readonly is_store_build: {
|
|
393
|
+
readonly type: "boolean";
|
|
394
|
+
};
|
|
395
|
+
readonly is_sandbox: {
|
|
396
|
+
readonly type: "boolean";
|
|
397
|
+
};
|
|
398
|
+
readonly sandbox_url_scheme: {
|
|
399
|
+
readonly type: "string";
|
|
400
|
+
readonly maxLength: 255;
|
|
401
|
+
readonly ascii: true;
|
|
402
|
+
readonly required: false;
|
|
403
|
+
};
|
|
404
|
+
readonly export_method: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly maxLength: 16;
|
|
407
|
+
readonly required: false;
|
|
408
|
+
};
|
|
409
|
+
readonly native_app_version: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
readonly required: false;
|
|
412
|
+
};
|
|
413
|
+
}, {
|
|
414
|
+
store_build_scope_key: "string";
|
|
415
|
+
}, {
|
|
389
416
|
readonly byScope: {
|
|
390
417
|
readonly eq: readonly ["scope_key"];
|
|
391
418
|
readonly sort: readonly ["id"];
|
|
@@ -394,6 +421,15 @@ declare const coreSchema: {
|
|
|
394
421
|
readonly eq: readonly ["scope_key", "build_key"];
|
|
395
422
|
readonly sort: readonly ["id"];
|
|
396
423
|
};
|
|
424
|
+
readonly byScopeKind: {
|
|
425
|
+
readonly eq: readonly ["scope_key", "artifact_kind"];
|
|
426
|
+
readonly sort: readonly ["id"];
|
|
427
|
+
};
|
|
428
|
+
readonly byStoreBuild: {
|
|
429
|
+
readonly eq: readonly ["store_build_scope_key"];
|
|
430
|
+
readonly sort: readonly [];
|
|
431
|
+
readonly unique: true;
|
|
432
|
+
};
|
|
397
433
|
readonly byChannel: {
|
|
398
434
|
readonly eq: readonly ["channel_id"];
|
|
399
435
|
readonly sort: readonly ["id"];
|
|
@@ -406,6 +442,96 @@ declare const coreSchema: {
|
|
|
406
442
|
readonly sort: readonly ["id"];
|
|
407
443
|
};
|
|
408
444
|
}, readonly ["id"]>;
|
|
445
|
+
readonly ios_devices: TableDefinition<{
|
|
446
|
+
readonly id: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly maxLength: 36;
|
|
449
|
+
};
|
|
450
|
+
readonly udid: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly maxLength: 40;
|
|
453
|
+
readonly ascii: true;
|
|
454
|
+
readonly unique: true;
|
|
455
|
+
};
|
|
456
|
+
readonly name: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
readonly maxLength: 100;
|
|
459
|
+
};
|
|
460
|
+
readonly status: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
readonly maxLength: 16;
|
|
463
|
+
};
|
|
464
|
+
readonly requested_by: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly maxLength: 320;
|
|
467
|
+
readonly required: false;
|
|
468
|
+
};
|
|
469
|
+
readonly created_at_ms: {
|
|
470
|
+
readonly type: "integer";
|
|
471
|
+
};
|
|
472
|
+
readonly approved_by: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
readonly maxLength: 320;
|
|
475
|
+
readonly required: false;
|
|
476
|
+
};
|
|
477
|
+
readonly approved_at_ms: {
|
|
478
|
+
readonly type: "integer";
|
|
479
|
+
readonly required: false;
|
|
480
|
+
};
|
|
481
|
+
readonly registered_at_ms: {
|
|
482
|
+
readonly type: "integer";
|
|
483
|
+
readonly required: false;
|
|
484
|
+
};
|
|
485
|
+
readonly apple_issuer_id: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly maxLength: 64;
|
|
488
|
+
readonly ascii: true;
|
|
489
|
+
readonly required: false;
|
|
490
|
+
};
|
|
491
|
+
readonly apple_error: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
readonly maxLength: 512;
|
|
494
|
+
readonly required: false;
|
|
495
|
+
};
|
|
496
|
+
readonly build_id: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
readonly maxLength: 36;
|
|
499
|
+
readonly required: false;
|
|
500
|
+
};
|
|
501
|
+
}, {}, {
|
|
502
|
+
readonly byStatus: {
|
|
503
|
+
readonly eq: readonly ["status"];
|
|
504
|
+
readonly sort: readonly ["id"];
|
|
505
|
+
};
|
|
506
|
+
readonly byRegistration: {
|
|
507
|
+
readonly eq: readonly [];
|
|
508
|
+
readonly sort: readonly ["registered_at_ms"];
|
|
509
|
+
};
|
|
510
|
+
readonly all: {
|
|
511
|
+
readonly eq: readonly [];
|
|
512
|
+
readonly sort: readonly ["id"];
|
|
513
|
+
};
|
|
514
|
+
}, readonly ["id"]>;
|
|
515
|
+
readonly ios_device_account: TableDefinition<{
|
|
516
|
+
readonly id: {
|
|
517
|
+
readonly type: "string";
|
|
518
|
+
readonly maxLength: 16;
|
|
519
|
+
readonly ascii: true;
|
|
520
|
+
};
|
|
521
|
+
readonly apple_issuer_id: {
|
|
522
|
+
readonly type: "string";
|
|
523
|
+
readonly maxLength: 64;
|
|
524
|
+
readonly ascii: true;
|
|
525
|
+
};
|
|
526
|
+
readonly claimed_at_ms: {
|
|
527
|
+
readonly type: "integer";
|
|
528
|
+
};
|
|
529
|
+
}, {}, {
|
|
530
|
+
readonly all: {
|
|
531
|
+
readonly eq: readonly [];
|
|
532
|
+
readonly sort: readonly ["id"];
|
|
533
|
+
};
|
|
534
|
+
}, readonly ["id"]>;
|
|
409
535
|
};
|
|
410
536
|
/**
|
|
411
537
|
* Core's tables as the engine types them: the type of `createEngine`'s
|
|
@@ -210,6 +210,10 @@ declare const coreSchema: {
|
|
|
210
210
|
readonly eq: readonly [];
|
|
211
211
|
readonly sort: readonly ["id"];
|
|
212
212
|
};
|
|
213
|
+
readonly scopes: {
|
|
214
|
+
readonly eq: readonly [];
|
|
215
|
+
readonly sort: readonly ["scope_key"];
|
|
216
|
+
};
|
|
213
217
|
}, readonly ["id"]>;
|
|
214
218
|
readonly release_catalogs: TableDefinition<{
|
|
215
219
|
readonly scope_key: {
|
|
@@ -385,7 +389,30 @@ declare const coreSchema: {
|
|
|
385
389
|
readonly maxLength: 255;
|
|
386
390
|
readonly required: false;
|
|
387
391
|
};
|
|
388
|
-
|
|
392
|
+
readonly is_store_build: {
|
|
393
|
+
readonly type: "boolean";
|
|
394
|
+
};
|
|
395
|
+
readonly is_sandbox: {
|
|
396
|
+
readonly type: "boolean";
|
|
397
|
+
};
|
|
398
|
+
readonly sandbox_url_scheme: {
|
|
399
|
+
readonly type: "string";
|
|
400
|
+
readonly maxLength: 255;
|
|
401
|
+
readonly ascii: true;
|
|
402
|
+
readonly required: false;
|
|
403
|
+
};
|
|
404
|
+
readonly export_method: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly maxLength: 16;
|
|
407
|
+
readonly required: false;
|
|
408
|
+
};
|
|
409
|
+
readonly native_app_version: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
readonly required: false;
|
|
412
|
+
};
|
|
413
|
+
}, {
|
|
414
|
+
store_build_scope_key: "string";
|
|
415
|
+
}, {
|
|
389
416
|
readonly byScope: {
|
|
390
417
|
readonly eq: readonly ["scope_key"];
|
|
391
418
|
readonly sort: readonly ["id"];
|
|
@@ -394,6 +421,15 @@ declare const coreSchema: {
|
|
|
394
421
|
readonly eq: readonly ["scope_key", "build_key"];
|
|
395
422
|
readonly sort: readonly ["id"];
|
|
396
423
|
};
|
|
424
|
+
readonly byScopeKind: {
|
|
425
|
+
readonly eq: readonly ["scope_key", "artifact_kind"];
|
|
426
|
+
readonly sort: readonly ["id"];
|
|
427
|
+
};
|
|
428
|
+
readonly byStoreBuild: {
|
|
429
|
+
readonly eq: readonly ["store_build_scope_key"];
|
|
430
|
+
readonly sort: readonly [];
|
|
431
|
+
readonly unique: true;
|
|
432
|
+
};
|
|
397
433
|
readonly byChannel: {
|
|
398
434
|
readonly eq: readonly ["channel_id"];
|
|
399
435
|
readonly sort: readonly ["id"];
|
|
@@ -406,6 +442,96 @@ declare const coreSchema: {
|
|
|
406
442
|
readonly sort: readonly ["id"];
|
|
407
443
|
};
|
|
408
444
|
}, readonly ["id"]>;
|
|
445
|
+
readonly ios_devices: TableDefinition<{
|
|
446
|
+
readonly id: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly maxLength: 36;
|
|
449
|
+
};
|
|
450
|
+
readonly udid: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly maxLength: 40;
|
|
453
|
+
readonly ascii: true;
|
|
454
|
+
readonly unique: true;
|
|
455
|
+
};
|
|
456
|
+
readonly name: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
readonly maxLength: 100;
|
|
459
|
+
};
|
|
460
|
+
readonly status: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
readonly maxLength: 16;
|
|
463
|
+
};
|
|
464
|
+
readonly requested_by: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly maxLength: 320;
|
|
467
|
+
readonly required: false;
|
|
468
|
+
};
|
|
469
|
+
readonly created_at_ms: {
|
|
470
|
+
readonly type: "integer";
|
|
471
|
+
};
|
|
472
|
+
readonly approved_by: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
readonly maxLength: 320;
|
|
475
|
+
readonly required: false;
|
|
476
|
+
};
|
|
477
|
+
readonly approved_at_ms: {
|
|
478
|
+
readonly type: "integer";
|
|
479
|
+
readonly required: false;
|
|
480
|
+
};
|
|
481
|
+
readonly registered_at_ms: {
|
|
482
|
+
readonly type: "integer";
|
|
483
|
+
readonly required: false;
|
|
484
|
+
};
|
|
485
|
+
readonly apple_issuer_id: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly maxLength: 64;
|
|
488
|
+
readonly ascii: true;
|
|
489
|
+
readonly required: false;
|
|
490
|
+
};
|
|
491
|
+
readonly apple_error: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
readonly maxLength: 512;
|
|
494
|
+
readonly required: false;
|
|
495
|
+
};
|
|
496
|
+
readonly build_id: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
readonly maxLength: 36;
|
|
499
|
+
readonly required: false;
|
|
500
|
+
};
|
|
501
|
+
}, {}, {
|
|
502
|
+
readonly byStatus: {
|
|
503
|
+
readonly eq: readonly ["status"];
|
|
504
|
+
readonly sort: readonly ["id"];
|
|
505
|
+
};
|
|
506
|
+
readonly byRegistration: {
|
|
507
|
+
readonly eq: readonly [];
|
|
508
|
+
readonly sort: readonly ["registered_at_ms"];
|
|
509
|
+
};
|
|
510
|
+
readonly all: {
|
|
511
|
+
readonly eq: readonly [];
|
|
512
|
+
readonly sort: readonly ["id"];
|
|
513
|
+
};
|
|
514
|
+
}, readonly ["id"]>;
|
|
515
|
+
readonly ios_device_account: TableDefinition<{
|
|
516
|
+
readonly id: {
|
|
517
|
+
readonly type: "string";
|
|
518
|
+
readonly maxLength: 16;
|
|
519
|
+
readonly ascii: true;
|
|
520
|
+
};
|
|
521
|
+
readonly apple_issuer_id: {
|
|
522
|
+
readonly type: "string";
|
|
523
|
+
readonly maxLength: 64;
|
|
524
|
+
readonly ascii: true;
|
|
525
|
+
};
|
|
526
|
+
readonly claimed_at_ms: {
|
|
527
|
+
readonly type: "integer";
|
|
528
|
+
};
|
|
529
|
+
}, {}, {
|
|
530
|
+
readonly all: {
|
|
531
|
+
readonly eq: readonly [];
|
|
532
|
+
readonly sort: readonly ["id"];
|
|
533
|
+
};
|
|
534
|
+
}, readonly ["id"]>;
|
|
409
535
|
};
|
|
410
536
|
/**
|
|
411
537
|
* Core's tables as the engine types them: the type of `createEngine`'s
|