@rebasepro/types 0.16.1-canary.ge71347e → 0.17.0
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/README.md +1 -1
- package/dist/index.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/types/admin_block.d.ts +7 -7
- package/dist/types/collections.d.ts +19 -1
- package/dist/types/component_ref.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/indexes.d.ts +179 -0
- package/dist/types/postgres_introspection.d.ts +1 -1
- package/dist/types/properties.d.ts +1 -1
- package/package.json +1 -1
- package/src/types/admin_block.ts +7 -7
- package/src/types/collections.ts +20 -1
- package/src/types/component_ref.ts +1 -1
- package/src/types/index.ts +1 -0
- package/src/types/indexes.ts +180 -0
- package/src/types/postgres_introspection.ts +1 -1
- package/src/types/properties.ts +1 -1
package/README.md
CHANGED
|
@@ -90,4 +90,4 @@ Every `@rebasepro/*` package depends on this one. Key consumers:
|
|
|
90
90
|
| `@rebasepro/server-postgres` | `BackendBootstrapper`, `InitializedDriver`, `RealtimeProvider` |
|
|
91
91
|
| `@rebasepro/server-mongo` | `BackendBootstrapper`, `DataDriver`, `CollectionConfig` |
|
|
92
92
|
| `@rebasepro/client` | `RebaseClient`, `DataSourceDelegate`, `StorageSource` |
|
|
93
|
-
| `@rebasepro/
|
|
93
|
+
| `@rebasepro/cms` | `CollectionConfig`, `Property`, `PluginConfig`, controller interfaces |
|
package/dist/index.es.js
CHANGED
|
@@ -333,7 +333,7 @@ function toCanonicalOp(op) {
|
|
|
333
333
|
*
|
|
334
334
|
* There is no *type* for the block in this package any more, and that is the point:
|
|
335
335
|
* `admin` is not declared on `BaseCollectionConfig` or on any property here, so a
|
|
336
|
-
* BaaS install cannot even write one. `@rebasepro/
|
|
336
|
+
* BaaS install cannot even write one. `@rebasepro/cms-types` adds the field back by
|
|
337
337
|
* declaration merging, which is why installing it is what makes the admin surface
|
|
338
338
|
* appear.
|
|
339
339
|
*
|
|
@@ -344,7 +344,7 @@ function toCanonicalOp(op) {
|
|
|
344
344
|
* Every key that belongs inside a collection's `admin` block, as data.
|
|
345
345
|
*
|
|
346
346
|
* The type that describes these fields is `AdminCollectionOptions` in
|
|
347
|
-
* `@rebasepro/
|
|
347
|
+
* `@rebasepro/cms-types`, and it is erased at build time — but three runtime
|
|
348
348
|
* consumers need the list, and two of them are core:
|
|
349
349
|
*
|
|
350
350
|
* - `serializeCollections`, to drop the block from the contract
|
|
@@ -354,7 +354,7 @@ function toCanonicalOp(op) {
|
|
|
354
354
|
* backend ignores it and the panel never finds it again.
|
|
355
355
|
* - the `collections-admin-block` codemod
|
|
356
356
|
*
|
|
357
|
-
* `@rebasepro/
|
|
357
|
+
* `@rebasepro/cms-types` re-exports this and asserts it names only real option
|
|
358
358
|
* keys; the count is pinned by a test there.
|
|
359
359
|
*
|
|
360
360
|
* @group Models
|
|
@@ -406,15 +406,15 @@ var ADMIN_COLLECTION_KEYS = [
|
|
|
406
406
|
* Every key that belongs inside a *property's* `admin` block, as data.
|
|
407
407
|
*
|
|
408
408
|
* The union of `AdminPropertyOptions` and its per-type extensions
|
|
409
|
-
* (`AdminStringOptions`, `AdminArrayOptions`, …) in `@rebasepro/
|
|
409
|
+
* (`AdminStringOptions`, `AdminArrayOptions`, …) in `@rebasepro/cms-types`.
|
|
410
410
|
* It lives here for the same reason {@link ADMIN_COLLECTION_KEYS} does: the
|
|
411
411
|
* runtime consumers are core packages that the BaaS guard forbids from
|
|
412
|
-
* importing `@rebasepro/
|
|
412
|
+
* importing `@rebasepro/cms-types`. Here it is the boot-time collection
|
|
413
413
|
* validator in `@rebasepro/server`, which has to tell "you left `readOnly` at
|
|
414
414
|
* the top of the property, where nothing reads it" apart from "you invented a
|
|
415
415
|
* key we have never heard of".
|
|
416
416
|
*
|
|
417
|
-
* `@rebasepro/
|
|
417
|
+
* `@rebasepro/cms-types` re-exports this and asserts it names only real
|
|
418
418
|
* option keys.
|
|
419
419
|
*
|
|
420
420
|
* @group Models
|
|
@@ -459,7 +459,7 @@ var ADMIN_PROPERTY_KEYS = [
|
|
|
459
459
|
* in favour of the value the user changed away from.
|
|
460
460
|
*
|
|
461
461
|
* This lives here, next to the key lists, because it had two implementations —
|
|
462
|
-
* `toAdminCollectionConfig` in `@rebasepro/
|
|
462
|
+
* `toAdminCollectionConfig` in `@rebasepro/cms-types` and `nestAdminKeys` in
|
|
463
463
|
* `@rebasepro/server`'s schema editor — that agreed on everything except that
|
|
464
464
|
* precedence, which is the only part that decides whether a save is visible.
|
|
465
465
|
*
|