@elytracms/core 0.0.6
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/LICENSE +21 -0
- package/dist/clipboard/build.d.ts +77 -0
- package/dist/clipboard/build.js +128 -0
- package/dist/clipboard/build.js.map +1 -0
- package/dist/clipboard/clipboard.d.ts +33 -0
- package/dist/clipboard/clipboard.js +45 -0
- package/dist/clipboard/clipboard.js.map +1 -0
- package/dist/clipboard/fragment.d.ts +112 -0
- package/dist/clipboard/fragment.js +79 -0
- package/dist/clipboard/fragment.js.map +1 -0
- package/dist/clipboard/html.d.ts +26 -0
- package/dist/clipboard/html.js +82 -0
- package/dist/clipboard/html.js.map +1 -0
- package/dist/clipboard/index.d.ts +15 -0
- package/dist/clipboard/index.js +16 -0
- package/dist/clipboard/index.js.map +1 -0
- package/dist/clipboard/references.d.ts +50 -0
- package/dist/clipboard/references.js +0 -0
- package/dist/clipboard/references.js.map +1 -0
- package/dist/clipboard/serialize.d.ts +69 -0
- package/dist/clipboard/serialize.js +130 -0
- package/dist/clipboard/serialize.js.map +1 -0
- package/dist/cms-core/collections.d.ts +82 -0
- package/dist/cms-core/collections.js +187 -0
- package/dist/cms-core/collections.js.map +1 -0
- package/dist/cms-core/documents.d.ts +71 -0
- package/dist/cms-core/documents.js +67 -0
- package/dist/cms-core/documents.js.map +1 -0
- package/dist/cms-core/envelopes.d.ts +80 -0
- package/dist/cms-core/envelopes.js +124 -0
- package/dist/cms-core/envelopes.js.map +1 -0
- package/dist/cms-core/fields.d.ts +220 -0
- package/dist/cms-core/fields.js +250 -0
- package/dist/cms-core/fields.js.map +1 -0
- package/dist/cms-core/fixtures.d.ts +92 -0
- package/dist/cms-core/fixtures.js +357 -0
- package/dist/cms-core/fixtures.js.map +1 -0
- package/dist/cms-core/hierarchy.d.ts +113 -0
- package/dist/cms-core/hierarchy.js +223 -0
- package/dist/cms-core/hierarchy.js.map +1 -0
- package/dist/cms-core/index.d.ts +25 -0
- package/dist/cms-core/index.js +26 -0
- package/dist/cms-core/index.js.map +1 -0
- package/dist/cms-core/infer.d.ts +103 -0
- package/dist/cms-core/infer.js +57 -0
- package/dist/cms-core/infer.js.map +1 -0
- package/dist/cms-core/issues.d.ts +92 -0
- package/dist/cms-core/issues.js +74 -0
- package/dist/cms-core/issues.js.map +1 -0
- package/dist/cms-core/json-schema.d.ts +25 -0
- package/dist/cms-core/json-schema.js +110 -0
- package/dist/cms-core/json-schema.js.map +1 -0
- package/dist/cms-core/localization.d.ts +51 -0
- package/dist/cms-core/localization.js +89 -0
- package/dist/cms-core/localization.js.map +1 -0
- package/dist/cms-core/routes.d.ts +76 -0
- package/dist/cms-core/routes.js +220 -0
- package/dist/cms-core/routes.js.map +1 -0
- package/dist/cms-core/self-type.d.ts +41 -0
- package/dist/cms-core/self-type.js +191 -0
- package/dist/cms-core/self-type.js.map +1 -0
- package/dist/cms-core/url-for-document.d.ts +39 -0
- package/dist/cms-core/url-for-document.js +138 -0
- package/dist/cms-core/url-for-document.js.map +1 -0
- package/dist/cms-core/validate-document.d.ts +121 -0
- package/dist/cms-core/validate-document.js +871 -0
- package/dist/cms-core/validate-document.js.map +1 -0
- package/dist/cms-core/versions.d.ts +75 -0
- package/dist/cms-core/versions.js +97 -0
- package/dist/cms-core/versions.js.map +1 -0
- package/dist/collaboration/approval.d.ts +68 -0
- package/dist/collaboration/approval.js +104 -0
- package/dist/collaboration/approval.js.map +1 -0
- package/dist/collaboration/collaboration.d.ts +49 -0
- package/dist/collaboration/collaboration.js +56 -0
- package/dist/collaboration/collaboration.js.map +1 -0
- package/dist/collaboration/comments.d.ts +72 -0
- package/dist/collaboration/comments.js +118 -0
- package/dist/collaboration/comments.js.map +1 -0
- package/dist/collaboration/core.d.ts +25 -0
- package/dist/collaboration/core.js +26 -0
- package/dist/collaboration/core.js.map +1 -0
- package/dist/collaboration/index.d.ts +14 -0
- package/dist/collaboration/index.js +15 -0
- package/dist/collaboration/index.js.map +1 -0
- package/dist/collaboration/presence.d.ts +62 -0
- package/dist/collaboration/presence.js +85 -0
- package/dist/collaboration/presence.js.map +1 -0
- package/dist/collaboration/publishing.d.ts +60 -0
- package/dist/collaboration/publishing.js +93 -0
- package/dist/collaboration/publishing.js.map +1 -0
- package/dist/collaboration/versions.d.ts +52 -0
- package/dist/collaboration/versions.js +81 -0
- package/dist/collaboration/versions.js.map +1 -0
- package/dist/component-registry/index.d.ts +3 -0
- package/dist/component-registry/index.js +4 -0
- package/dist/component-registry/index.js.map +1 -0
- package/dist/component-registry/issues.d.ts +6 -0
- package/dist/component-registry/issues.js +2 -0
- package/dist/component-registry/issues.js.map +1 -0
- package/dist/component-registry/manifest.d.ts +164 -0
- package/dist/component-registry/manifest.js +129 -0
- package/dist/component-registry/manifest.js.map +1 -0
- package/dist/component-registry/registry.d.ts +33 -0
- package/dist/component-registry/registry.js +90 -0
- package/dist/component-registry/registry.js.map +1 -0
- package/dist/content/__fixtures__/filterable-collections.d.ts +14 -0
- package/dist/content/__fixtures__/filterable-collections.js +15 -0
- package/dist/content/__fixtures__/filterable-collections.js.map +1 -0
- package/dist/content/__fixtures__/sample-accessor-types.d.ts +56 -0
- package/dist/content/__fixtures__/sample-accessor-types.js +5 -0
- package/dist/content/__fixtures__/sample-accessor-types.js.map +1 -0
- package/dist/content/__fixtures__/sample-delivery-types.d.ts +122 -0
- package/dist/content/__fixtures__/sample-delivery-types.js +5 -0
- package/dist/content/__fixtures__/sample-delivery-types.js.map +1 -0
- package/dist/content/assets.d.ts +53 -0
- package/dist/content/assets.js +38 -0
- package/dist/content/assets.js.map +1 -0
- package/dist/content/binding-sources.d.ts +53 -0
- package/dist/content/binding-sources.js +73 -0
- package/dist/content/binding-sources.js.map +1 -0
- package/dist/content/client.d.ts +90 -0
- package/dist/content/client.js +383 -0
- package/dist/content/client.js.map +1 -0
- package/dist/content/codegen.d.ts +54 -0
- package/dist/content/codegen.js +305 -0
- package/dist/content/codegen.js.map +1 -0
- package/dist/content/context.d.ts +38 -0
- package/dist/content/context.js +21 -0
- package/dist/content/context.js.map +1 -0
- package/dist/content/cursor.d.ts +33 -0
- package/dist/content/cursor.js +104 -0
- package/dist/content/cursor.js.map +1 -0
- package/dist/content/index.d.ts +28 -0
- package/dist/content/index.js +29 -0
- package/dist/content/index.js.map +1 -0
- package/dist/content/locale.d.ts +30 -0
- package/dist/content/locale.js +26 -0
- package/dist/content/locale.js.map +1 -0
- package/dist/content/perspective.d.ts +29 -0
- package/dist/content/perspective.js +31 -0
- package/dist/content/perspective.js.map +1 -0
- package/dist/content/populate.d.ts +25 -0
- package/dist/content/populate.js +22 -0
- package/dist/content/populate.js.map +1 -0
- package/dist/content/query.d.ts +122 -0
- package/dist/content/query.js +257 -0
- package/dist/content/query.js.map +1 -0
- package/dist/content/raw.d.ts +13 -0
- package/dist/content/raw.js +14 -0
- package/dist/content/raw.js.map +1 -0
- package/dist/content/resolve.d.ts +97 -0
- package/dist/content/resolve.js +261 -0
- package/dist/content/resolve.js.map +1 -0
- package/dist/content/serialize.d.ts +30 -0
- package/dist/content/serialize.js +57 -0
- package/dist/content/serialize.js.map +1 -0
- package/dist/content/tags.d.ts +54 -0
- package/dist/content/tags.js +40 -0
- package/dist/content/tags.js.map +1 -0
- package/dist/data-binding/fixtures.d.ts +20 -0
- package/dist/data-binding/fixtures.js +47 -0
- package/dist/data-binding/fixtures.js.map +1 -0
- package/dist/data-binding/index.d.ts +14 -0
- package/dist/data-binding/index.js +15 -0
- package/dist/data-binding/index.js.map +1 -0
- package/dist/data-binding/issues.d.ts +45 -0
- package/dist/data-binding/issues.js +46 -0
- package/dist/data-binding/issues.js.map +1 -0
- package/dist/data-binding/resolve.d.ts +87 -0
- package/dist/data-binding/resolve.js +204 -0
- package/dist/data-binding/resolve.js.map +1 -0
- package/dist/data-binding/sample.d.ts +21 -0
- package/dist/data-binding/sample.js +23 -0
- package/dist/data-binding/sample.js.map +1 -0
- package/dist/data-binding/sources.d.ts +225 -0
- package/dist/data-binding/sources.js +154 -0
- package/dist/data-binding/sources.js.map +1 -0
- package/dist/data-binding/tokens.d.ts +62 -0
- package/dist/data-binding/tokens.js +150 -0
- package/dist/data-binding/tokens.js.map +1 -0
- package/dist/design-tokens/css.d.ts +34 -0
- package/dist/design-tokens/css.js +51 -0
- package/dist/design-tokens/css.js.map +1 -0
- package/dist/design-tokens/index.d.ts +10 -0
- package/dist/design-tokens/index.js +11 -0
- package/dist/design-tokens/index.js.map +1 -0
- package/dist/design-tokens/style-guide.d.ts +30 -0
- package/dist/design-tokens/style-guide.js +31 -0
- package/dist/design-tokens/style-guide.js.map +1 -0
- package/dist/design-tokens/tokens.d.ts +89 -0
- package/dist/design-tokens/tokens.js +112 -0
- package/dist/design-tokens/tokens.js.map +1 -0
- package/dist/export-sync/builder-source.d.ts +85 -0
- package/dist/export-sync/builder-source.js +124 -0
- package/dist/export-sync/builder-source.js.map +1 -0
- package/dist/export-sync/check.d.ts +61 -0
- package/dist/export-sync/check.js +126 -0
- package/dist/export-sync/check.js.map +1 -0
- package/dist/export-sync/cli.d.ts +89 -0
- package/dist/export-sync/cli.js +323 -0
- package/dist/export-sync/cli.js.map +1 -0
- package/dist/export-sync/core.d.ts +58 -0
- package/dist/export-sync/core.js +41 -0
- package/dist/export-sync/core.js.map +1 -0
- package/dist/export-sync/eject.d.ts +28 -0
- package/dist/export-sync/eject.js +21 -0
- package/dist/export-sync/eject.js.map +1 -0
- package/dist/export-sync/fixtures.d.ts +25 -0
- package/dist/export-sync/fixtures.js +87 -0
- package/dist/export-sync/fixtures.js.map +1 -0
- package/dist/export-sync/generate.d.ts +7 -0
- package/dist/export-sync/generate.js +505 -0
- package/dist/export-sync/generate.js.map +1 -0
- package/dist/export-sync/index.d.ts +37 -0
- package/dist/export-sync/index.js +39 -0
- package/dist/export-sync/index.js.map +1 -0
- package/dist/export-sync/init.d.ts +123 -0
- package/dist/export-sync/init.js +234 -0
- package/dist/export-sync/init.js.map +1 -0
- package/dist/export-sync/manifest-host.d.ts +48 -0
- package/dist/export-sync/manifest-host.js +73 -0
- package/dist/export-sync/manifest-host.js.map +1 -0
- package/dist/export-sync/node.d.ts +20 -0
- package/dist/export-sync/node.js +101 -0
- package/dist/export-sync/node.js.map +1 -0
- package/dist/export-sync/push.d.ts +76 -0
- package/dist/export-sync/push.js +197 -0
- package/dist/export-sync/push.js.map +1 -0
- package/dist/export-sync/registry-sync-client.d.ts +59 -0
- package/dist/export-sync/registry-sync-client.js +97 -0
- package/dist/export-sync/registry-sync-client.js.map +1 -0
- package/dist/export-sync/sync.d.ts +47 -0
- package/dist/export-sync/sync.js +47 -0
- package/dist/export-sync/sync.js.map +1 -0
- package/dist/export-sync/typegen.d.ts +40 -0
- package/dist/export-sync/typegen.js +45 -0
- package/dist/export-sync/typegen.js.map +1 -0
- package/dist/export-sync/validate.d.ts +19 -0
- package/dist/export-sync/validate.js +102 -0
- package/dist/export-sync/validate.js.map +1 -0
- package/dist/export-sync/watch.d.ts +66 -0
- package/dist/export-sync/watch.js +70 -0
- package/dist/export-sync/watch.js.map +1 -0
- package/dist/operations/assets.d.ts +198 -0
- package/dist/operations/assets.js +75 -0
- package/dist/operations/assets.js.map +1 -0
- package/dist/operations/authorization.d.ts +49 -0
- package/dist/operations/authorization.js +128 -0
- package/dist/operations/authorization.js.map +1 -0
- package/dist/operations/changesets.d.ts +160 -0
- package/dist/operations/changesets.js +442 -0
- package/dist/operations/changesets.js.map +1 -0
- package/dist/operations/client.d.ts +49 -0
- package/dist/operations/client.js +57 -0
- package/dist/operations/client.js.map +1 -0
- package/dist/operations/core.d.ts +238 -0
- package/dist/operations/core.js +269 -0
- package/dist/operations/core.js.map +1 -0
- package/dist/operations/documents.d.ts +432 -0
- package/dist/operations/documents.js +344 -0
- package/dist/operations/documents.js.map +1 -0
- package/dist/operations/graph.d.ts +138 -0
- package/dist/operations/graph.js +78 -0
- package/dist/operations/graph.js.map +1 -0
- package/dist/operations/index.d.ts +19 -0
- package/dist/operations/index.js +20 -0
- package/dist/operations/index.js.map +1 -0
- package/dist/operations/members.d.ts +87 -0
- package/dist/operations/members.js +56 -0
- package/dist/operations/members.js.map +1 -0
- package/dist/operations/publishing.d.ts +89 -0
- package/dist/operations/publishing.js +57 -0
- package/dist/operations/publishing.js.map +1 -0
- package/dist/operations/references.d.ts +222 -0
- package/dist/operations/references.js +177 -0
- package/dist/operations/references.js.map +1 -0
- package/dist/operations/schema.d.ts +413 -0
- package/dist/operations/schema.js +138 -0
- package/dist/operations/schema.js.map +1 -0
- package/dist/operations/tokens.d.ts +79 -0
- package/dist/operations/tokens.js +102 -0
- package/dist/operations/tokens.js.map +1 -0
- package/dist/persistence/adapter.d.ts +79 -0
- package/dist/persistence/adapter.js +55 -0
- package/dist/persistence/adapter.js.map +1 -0
- package/dist/persistence/assets.d.ts +120 -0
- package/dist/persistence/assets.js +141 -0
- package/dist/persistence/assets.js.map +1 -0
- package/dist/persistence/backend-validation.d.ts +43 -0
- package/dist/persistence/backend-validation.js +57 -0
- package/dist/persistence/backend-validation.js.map +1 -0
- package/dist/persistence/cli-tokens.d.ts +50 -0
- package/dist/persistence/cli-tokens.js +66 -0
- package/dist/persistence/cli-tokens.js.map +1 -0
- package/dist/persistence/cms.d.ts +148 -0
- package/dist/persistence/cms.js +232 -0
- package/dist/persistence/cms.js.map +1 -0
- package/dist/persistence/contract-scenarios.d.ts +73 -0
- package/dist/persistence/contract-scenarios.js +496 -0
- package/dist/persistence/contract-scenarios.js.map +1 -0
- package/dist/persistence/core.d.ts +96 -0
- package/dist/persistence/core.js +110 -0
- package/dist/persistence/core.js.map +1 -0
- package/dist/persistence/graph.d.ts +61 -0
- package/dist/persistence/graph.js +98 -0
- package/dist/persistence/graph.js.map +1 -0
- package/dist/persistence/index.d.ts +22 -0
- package/dist/persistence/index.js +23 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/persistence/members.d.ts +70 -0
- package/dist/persistence/members.js +0 -0
- package/dist/persistence/members.js.map +1 -0
- package/dist/persistence/publishing.d.ts +59 -0
- package/dist/persistence/publishing.js +95 -0
- package/dist/persistence/publishing.js.map +1 -0
- package/dist/persistence/reference-extraction.d.ts +44 -0
- package/dist/persistence/reference-extraction.js +204 -0
- package/dist/persistence/reference-extraction.js.map +1 -0
- package/dist/persistence/reference-indexing.d.ts +68 -0
- package/dist/persistence/reference-indexing.js +112 -0
- package/dist/persistence/reference-indexing.js.map +1 -0
- package/dist/persistence/references.d.ts +257 -0
- package/dist/persistence/references.js +0 -0
- package/dist/persistence/references.js.map +1 -0
- package/dist/persistence/seed.d.ts +55 -0
- package/dist/persistence/seed.js +102 -0
- package/dist/persistence/seed.js.map +1 -0
- package/dist/persistence/self-maintaining-adapter.d.ts +41 -0
- package/dist/persistence/self-maintaining-adapter.js +79 -0
- package/dist/persistence/self-maintaining-adapter.js.map +1 -0
- package/dist/plugins/asset-storage.d.ts +76 -0
- package/dist/plugins/asset-storage.js +104 -0
- package/dist/plugins/asset-storage.js.map +1 -0
- package/dist/plugins/component-package.d.ts +54 -0
- package/dist/plugins/component-package.js +92 -0
- package/dist/plugins/component-package.js.map +1 -0
- package/dist/plugins/data-sources.d.ts +78 -0
- package/dist/plugins/data-sources.js +99 -0
- package/dist/plugins/data-sources.js.map +1 -0
- package/dist/plugins/examples.d.ts +47 -0
- package/dist/plugins/examples.js +205 -0
- package/dist/plugins/examples.js.map +1 -0
- package/dist/plugins/export-targets.d.ts +47 -0
- package/dist/plugins/export-targets.js +78 -0
- package/dist/plugins/export-targets.js.map +1 -0
- package/dist/plugins/field-types.d.ts +86 -0
- package/dist/plugins/field-types.js +93 -0
- package/dist/plugins/field-types.js.map +1 -0
- package/dist/plugins/hooks.d.ts +60 -0
- package/dist/plugins/hooks.js +94 -0
- package/dist/plugins/hooks.js.map +1 -0
- package/dist/plugins/index.d.ts +27 -0
- package/dist/plugins/index.js +28 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/marketplace.d.ts +90 -0
- package/dist/plugins/marketplace.js +110 -0
- package/dist/plugins/marketplace.js.map +1 -0
- package/dist/plugins/plugin.d.ts +107 -0
- package/dist/plugins/plugin.js +122 -0
- package/dist/plugins/plugin.js.map +1 -0
- package/dist/plugins/templates.d.ts +66 -0
- package/dist/plugins/templates.js +74 -0
- package/dist/plugins/templates.js.map +1 -0
- package/dist/project-graph/binding.d.ts +68 -0
- package/dist/project-graph/binding.js +39 -0
- package/dist/project-graph/binding.js.map +1 -0
- package/dist/project-graph/container.d.ts +126 -0
- package/dist/project-graph/container.js +221 -0
- package/dist/project-graph/container.js.map +1 -0
- package/dist/project-graph/edit.d.ts +66 -0
- package/dist/project-graph/edit.js +201 -0
- package/dist/project-graph/edit.js.map +1 -0
- package/dist/project-graph/fixtures.d.ts +51 -0
- package/dist/project-graph/fixtures.js +224 -0
- package/dist/project-graph/fixtures.js.map +1 -0
- package/dist/project-graph/ids.d.ts +17 -0
- package/dist/project-graph/ids.js +19 -0
- package/dist/project-graph/ids.js.map +1 -0
- package/dist/project-graph/index.d.ts +12 -0
- package/dist/project-graph/index.js +13 -0
- package/dist/project-graph/index.js.map +1 -0
- package/dist/project-graph/issues.d.ts +61 -0
- package/dist/project-graph/issues.js +44 -0
- package/dist/project-graph/issues.js.map +1 -0
- package/dist/project-graph/json.d.ts +6 -0
- package/dist/project-graph/json.js +10 -0
- package/dist/project-graph/json.js.map +1 -0
- package/dist/project-graph/node.d.ts +48 -0
- package/dist/project-graph/node.js +42 -0
- package/dist/project-graph/node.js.map +1 -0
- package/dist/project-graph/normalize.d.ts +17 -0
- package/dist/project-graph/normalize.js +110 -0
- package/dist/project-graph/normalize.js.map +1 -0
- package/dist/project-graph/serialize.d.ts +36 -0
- package/dist/project-graph/serialize.js +51 -0
- package/dist/project-graph/serialize.js.map +1 -0
- package/dist/project-graph/structure.d.ts +40 -0
- package/dist/project-graph/structure.js +36 -0
- package/dist/project-graph/structure.js.map +1 -0
- package/dist/project-graph/validate.d.ts +84 -0
- package/dist/project-graph/validate.js +158 -0
- package/dist/project-graph/validate.js.map +1 -0
- package/dist/rich-text/adapter.d.ts +43 -0
- package/dist/rich-text/adapter.js +24 -0
- package/dist/rich-text/adapter.js.map +1 -0
- package/dist/rich-text/dom-editor.d.ts +101 -0
- package/dist/rich-text/dom-editor.js +482 -0
- package/dist/rich-text/dom-editor.js.map +1 -0
- package/dist/rich-text/embed.d.ts +70 -0
- package/dist/rich-text/embed.js +70 -0
- package/dist/rich-text/embed.js.map +1 -0
- package/dist/rich-text/fixtures.d.ts +25 -0
- package/dist/rich-text/fixtures.js +115 -0
- package/dist/rich-text/fixtures.js.map +1 -0
- package/dist/rich-text/html.d.ts +5 -0
- package/dist/rich-text/html.js +309 -0
- package/dist/rich-text/html.js.map +1 -0
- package/dist/rich-text/index.d.ts +19 -0
- package/dist/rich-text/index.js +20 -0
- package/dist/rich-text/index.js.map +1 -0
- package/dist/rich-text/markdown.d.ts +7 -0
- package/dist/rich-text/markdown.js +235 -0
- package/dist/rich-text/markdown.js.map +1 -0
- package/dist/rich-text/portable-text.d.ts +50 -0
- package/dist/rich-text/portable-text.js +223 -0
- package/dist/rich-text/portable-text.js.map +1 -0
- package/dist/rich-text/registry.d.ts +48 -0
- package/dist/rich-text/registry.js +16 -0
- package/dist/rich-text/registry.js.map +1 -0
- package/dist/rich-text/render.d.ts +69 -0
- package/dist/rich-text/render.js +205 -0
- package/dist/rich-text/render.js.map +1 -0
- package/dist/rich-text/schema.d.ts +86 -0
- package/dist/rich-text/schema.js +80 -0
- package/dist/rich-text/schema.js.map +1 -0
- package/dist/rich-text/test-support.d.ts +7 -0
- package/dist/rich-text/test-support.js +8 -0
- package/dist/rich-text/test-support.js.map +1 -0
- package/dist/runtime-renderer/client.d.ts +14 -0
- package/dist/runtime-renderer/client.js +15 -0
- package/dist/runtime-renderer/client.js.map +1 -0
- package/dist/runtime-renderer/condition.d.ts +8 -0
- package/dist/runtime-renderer/condition.js +48 -0
- package/dist/runtime-renderer/condition.js.map +1 -0
- package/dist/runtime-renderer/content-client.d.ts +62 -0
- package/dist/runtime-renderer/content-client.js +37 -0
- package/dist/runtime-renderer/content-client.js.map +1 -0
- package/dist/runtime-renderer/context.d.ts +185 -0
- package/dist/runtime-renderer/context.js +7 -0
- package/dist/runtime-renderer/context.js.map +1 -0
- package/dist/runtime-renderer/fallback.d.ts +39 -0
- package/dist/runtime-renderer/fallback.js +45 -0
- package/dist/runtime-renderer/fallback.js.map +1 -0
- package/dist/runtime-renderer/index.d.ts +13 -0
- package/dist/runtime-renderer/index.js +13 -0
- package/dist/runtime-renderer/index.js.map +1 -0
- package/dist/runtime-renderer/primitives.d.ts +85 -0
- package/dist/runtime-renderer/primitives.js +442 -0
- package/dist/runtime-renderer/primitives.js.map +1 -0
- package/dist/runtime-renderer/render.d.ts +138 -0
- package/dist/runtime-renderer/render.js +825 -0
- package/dist/runtime-renderer/render.js.map +1 -0
- package/dist/runtime-renderer/rich-text.d.ts +26 -0
- package/dist/runtime-renderer/rich-text.js +113 -0
- package/dist/runtime-renderer/rich-text.js.map +1 -0
- package/dist/starter-kits/index.d.ts +13 -0
- package/dist/starter-kits/index.js +14 -0
- package/dist/starter-kits/index.js.map +1 -0
- package/dist/starter-kits/instantiate.d.ts +29 -0
- package/dist/starter-kits/instantiate.js +24 -0
- package/dist/starter-kits/instantiate.js.map +1 -0
- package/dist/starter-kits/kit.d.ts +61 -0
- package/dist/starter-kits/kit.js +37 -0
- package/dist/starter-kits/kit.js.map +1 -0
- package/dist/starter-kits/kits.d.ts +7 -0
- package/dist/starter-kits/kits.js +201 -0
- package/dist/starter-kits/kits.js.map +1 -0
- package/dist/starter-kits/manifests.d.ts +7 -0
- package/dist/starter-kits/manifests.js +111 -0
- package/dist/starter-kits/manifests.js.map +1 -0
- package/dist/starter-kits/upgrade.d.ts +39 -0
- package/dist/starter-kits/upgrade.js +54 -0
- package/dist/starter-kits/upgrade.js.map +1 -0
- package/dist/starter-kits/validate.d.ts +16 -0
- package/dist/starter-kits/validate.js +77 -0
- package/dist/starter-kits/validate.js.map +1 -0
- package/dist/studio-core/context.d.ts +27 -0
- package/dist/studio-core/context.js +44 -0
- package/dist/studio-core/context.js.map +1 -0
- package/dist/studio-core/errors.d.ts +58 -0
- package/dist/studio-core/errors.js +74 -0
- package/dist/studio-core/errors.js.map +1 -0
- package/dist/studio-core/fixtures.d.ts +18 -0
- package/dist/studio-core/fixtures.js +83 -0
- package/dist/studio-core/fixtures.js.map +1 -0
- package/dist/studio-core/ids.d.ts +22 -0
- package/dist/studio-core/ids.js +33 -0
- package/dist/studio-core/ids.js.map +1 -0
- package/dist/studio-core/index.d.ts +11 -0
- package/dist/studio-core/index.js +12 -0
- package/dist/studio-core/index.js.map +1 -0
- package/dist/studio-core/issues.d.ts +50 -0
- package/dist/studio-core/issues.js +33 -0
- package/dist/studio-core/issues.js.map +1 -0
- package/dist/studio-core/metadata.d.ts +109 -0
- package/dist/studio-core/metadata.js +74 -0
- package/dist/studio-core/metadata.js.map +1 -0
- package/dist/studio-core/repository.d.ts +73 -0
- package/dist/studio-core/repository.js +202 -0
- package/dist/studio-core/repository.js.map +1 -0
- package/dist/studio-core/sections.d.ts +73 -0
- package/dist/studio-core/sections.js +68 -0
- package/dist/studio-core/sections.js.map +1 -0
- package/dist/studio-core/validate.d.ts +15 -0
- package/dist/studio-core/validate.js +119 -0
- package/dist/studio-core/validate.js.map +1 -0
- package/dist/studio-core/workspace-config.d.ts +587 -0
- package/dist/studio-core/workspace-config.js +434 -0
- package/dist/studio-core/workspace-config.js.map +1 -0
- package/package.json +104 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { backfillReferenceIndex, referenceSourceSchema, referenceTargetSchema, referenceVariantSchema, reindexAllDocumentReferences, reindexDocumentReferences, reindexGraphDraftReferences, reindexGraphPublishedReferences, } from '@elytracms/core/persistence';
|
|
3
|
+
import { projectIdSchema } from '@elytracms/core/studio-core';
|
|
4
|
+
import { bindOperation, defineCommand, defineQuery } from './core';
|
|
5
|
+
/**
|
|
6
|
+
* Reference-index operations (EC-155, vision AD-6/AD-7).
|
|
7
|
+
*
|
|
8
|
+
* Two halves, one file (self-contained by design):
|
|
9
|
+
* 1. The query API — `references.inbound` / `references.outbound` lookups with
|
|
10
|
+
* field/node-path granularity (the substrate for Milestone B deep links),
|
|
11
|
+
* plus the `references.backfill` command that rebuilds a project's index.
|
|
12
|
+
* 2. {@link attachReferenceIndex} — an event-bus subscriber that keeps the
|
|
13
|
+
* index maintained on write: document/graph/publishing command successes
|
|
14
|
+
* trigger a recompute of the affected sources (replace-all-for-source, so
|
|
15
|
+
* edits/deletes/unpublishes can never leave stale entries).
|
|
16
|
+
*/
|
|
17
|
+
// --- Input schemas ----------------------------------------------------------------
|
|
18
|
+
export const outboundReferencesInputSchema = z.object({
|
|
19
|
+
projectId: projectIdSchema,
|
|
20
|
+
/** The holding entity: a document (`collection:id`), page, or layout. */
|
|
21
|
+
source: referenceSourceSchema,
|
|
22
|
+
/** Restrict to one variant; omit for both (draft + published). */
|
|
23
|
+
variant: referenceVariantSchema.optional(),
|
|
24
|
+
});
|
|
25
|
+
export const inboundReferencesInputSchema = z.object({
|
|
26
|
+
projectId: projectIdSchema,
|
|
27
|
+
/** The referenced entity: a document (`collection:id`), component, or asset. */
|
|
28
|
+
target: referenceTargetSchema,
|
|
29
|
+
/** Restrict to one variant; omit for both (draft + published). */
|
|
30
|
+
variant: referenceVariantSchema.optional(),
|
|
31
|
+
});
|
|
32
|
+
export const backfillReferencesInputSchema = z.object({
|
|
33
|
+
projectId: projectIdSchema,
|
|
34
|
+
});
|
|
35
|
+
export const referenceBuildMarkerInputSchema = z.object({
|
|
36
|
+
projectId: projectIdSchema,
|
|
37
|
+
});
|
|
38
|
+
// --- Operation definitions ----------------------------------------------------------
|
|
39
|
+
export const referenceOperationDefinitions = {
|
|
40
|
+
outbound: defineQuery({
|
|
41
|
+
name: 'references.outbound',
|
|
42
|
+
domain: 'references',
|
|
43
|
+
description: 'What does this entity reference? Outbound entries with exact field/node paths.',
|
|
44
|
+
input: outboundReferencesInputSchema,
|
|
45
|
+
execute: (context, input) => context.adapter.references.outbound(input.projectId, input.source, input.variant !== undefined ? { variant: input.variant } : {}),
|
|
46
|
+
}),
|
|
47
|
+
inbound: defineQuery({
|
|
48
|
+
name: 'references.inbound',
|
|
49
|
+
domain: 'references',
|
|
50
|
+
description: 'What references this entity? Inbound entries (the "used by" / safe-unpublish direction).',
|
|
51
|
+
input: inboundReferencesInputSchema,
|
|
52
|
+
execute: (context, input) => context.adapter.references.inbound(input.projectId, input.target, input.variant !== undefined ? { variant: input.variant } : {}),
|
|
53
|
+
}),
|
|
54
|
+
backfill: defineCommand({
|
|
55
|
+
name: 'references.backfill',
|
|
56
|
+
domain: 'references',
|
|
57
|
+
description: 'Rebuild the complete reference index of a project from its current data (idempotent).',
|
|
58
|
+
input: backfillReferencesInputSchema,
|
|
59
|
+
execute: (context, input) => backfillReferenceIndex(context.adapter, input.projectId),
|
|
60
|
+
}),
|
|
61
|
+
buildMarker: defineQuery({
|
|
62
|
+
name: 'references.buildMarker',
|
|
63
|
+
domain: 'references',
|
|
64
|
+
description: 'The persisted "index fully built" marker, or null if never backfilled (EC-269 read-path gate).',
|
|
65
|
+
input: referenceBuildMarkerInputSchema,
|
|
66
|
+
execute: (context, input) => context.adapter.references.getBuildMarker(input.projectId),
|
|
67
|
+
}),
|
|
68
|
+
};
|
|
69
|
+
export function createReferenceOperations(runtime) {
|
|
70
|
+
return {
|
|
71
|
+
outbound: bindOperation(runtime, referenceOperationDefinitions.outbound),
|
|
72
|
+
inbound: bindOperation(runtime, referenceOperationDefinitions.inbound),
|
|
73
|
+
backfill: bindOperation(runtime, referenceOperationDefinitions.backfill),
|
|
74
|
+
buildMarker: bindOperation(runtime, referenceOperationDefinitions.buildMarker),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/** Structurally parse a (possibly truncated) deterministic input summary. */
|
|
78
|
+
function parseInputSummary(summary) {
|
|
79
|
+
try {
|
|
80
|
+
const parsed = JSON.parse(summary);
|
|
81
|
+
return typeof parsed === 'object' && parsed !== null && !Array.isArray(parsed)
|
|
82
|
+
? parsed
|
|
83
|
+
: undefined;
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Recover the projectId from an input summary even when the summary was
|
|
91
|
+
* truncated (summaries cap at 160 chars; `projectId` is the first key of every
|
|
92
|
+
* domain input schema, so it survives truncation).
|
|
93
|
+
*/
|
|
94
|
+
function projectIdOfSummary(summary) {
|
|
95
|
+
const parsed = parseInputSummary(summary);
|
|
96
|
+
if (parsed && typeof parsed.projectId === 'string' && parsed.projectId.length > 0) {
|
|
97
|
+
return parsed.projectId;
|
|
98
|
+
}
|
|
99
|
+
const match = /"projectId"\s*:\s*"([^"\\]+)"/.exec(summary);
|
|
100
|
+
return match?.[1];
|
|
101
|
+
}
|
|
102
|
+
function documentRefOf(value) {
|
|
103
|
+
if (typeof value !== 'object' || value === null)
|
|
104
|
+
return undefined;
|
|
105
|
+
const candidate = value;
|
|
106
|
+
return typeof candidate.collection === 'string' &&
|
|
107
|
+
candidate.collection.length > 0 &&
|
|
108
|
+
typeof candidate.id === 'string' &&
|
|
109
|
+
candidate.id.length > 0
|
|
110
|
+
? { collection: candidate.collection, id: candidate.id }
|
|
111
|
+
: undefined;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Subscribe the reference index to the EC-139 lifecycle event bus so it is
|
|
115
|
+
* maintained on every write:
|
|
116
|
+
*
|
|
117
|
+
* - `documents` command success → recompute that document's entries (or all
|
|
118
|
+
* documents when the summary was truncated past the document identity);
|
|
119
|
+
* deletes drop entries because the recompute of a missing document is empty.
|
|
120
|
+
* - `graph` command success → recompute the draft graph entries from the new
|
|
121
|
+
* latest revision.
|
|
122
|
+
* - `publishing` command success → recompute the published graph entries from
|
|
123
|
+
* the currently pinned revisions (unpublish included).
|
|
124
|
+
*
|
|
125
|
+
* Updates run on a serial queue for deterministic ordering; await
|
|
126
|
+
* {@link ReferenceIndexAttachment.flush} to observe a settled index.
|
|
127
|
+
*/
|
|
128
|
+
export function attachReferenceIndex(events, adapter, options = {}) {
|
|
129
|
+
let pending = Promise.resolve();
|
|
130
|
+
const schedule = (event, work) => {
|
|
131
|
+
pending = pending.then(work).catch((error) => {
|
|
132
|
+
options.onError?.(error, event);
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
const listener = (event) => {
|
|
136
|
+
if (event.status !== 'succeeded' || event.kind !== 'command')
|
|
137
|
+
return;
|
|
138
|
+
const projectId = projectIdOfSummary(event.inputSummary);
|
|
139
|
+
if (!projectId)
|
|
140
|
+
return;
|
|
141
|
+
switch (event.domain) {
|
|
142
|
+
case 'documents': {
|
|
143
|
+
const parsed = parseInputSummary(event.inputSummary);
|
|
144
|
+
const ref = documentRefOf(parsed?.document) ?? documentRefOf(parsed?.ref);
|
|
145
|
+
if (ref) {
|
|
146
|
+
schedule(event, () => reindexDocumentReferences(adapter, projectId, ref));
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
// Truncated summary (large upsert payload): recompute every document.
|
|
150
|
+
schedule(event, () => reindexAllDocumentReferences(adapter, projectId));
|
|
151
|
+
}
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
case 'graph':
|
|
155
|
+
schedule(event, () => reindexGraphDraftReferences(adapter, projectId));
|
|
156
|
+
return;
|
|
157
|
+
case 'publishing':
|
|
158
|
+
schedule(event, () => reindexGraphPublishedReferences(adapter, projectId));
|
|
159
|
+
return;
|
|
160
|
+
default:
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
const unsubscribe = events.subscribe(listener);
|
|
165
|
+
return {
|
|
166
|
+
detach: unsubscribe,
|
|
167
|
+
flush: async () => {
|
|
168
|
+
// Drain until no new work was queued while awaiting.
|
|
169
|
+
let current;
|
|
170
|
+
do {
|
|
171
|
+
current = pending;
|
|
172
|
+
await current;
|
|
173
|
+
} while (current !== pending);
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.js","sourceRoot":"","sources":["../../src/operations/references.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAGlE;;;;;;;;;;;GAWG;AAEH,qFAAqF;AAErF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,SAAS,EAAE,eAAe;IAC1B,yEAAyE;IACzE,MAAM,EAAE,qBAAqB;IAC7B,kEAAkE;IAClE,OAAO,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,eAAe;IAC1B,gFAAgF;IAChF,MAAM,EAAE,qBAAqB;IAC7B,kEAAkE;IAClE,OAAO,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,SAAS,EAAE,eAAe;CAC3B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,eAAe;CAC3B,CAAC,CAAA;AAEF,uFAAuF;AAEvF,MAAM,CAAC,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C"}
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { OperationsRuntime } from './core';
|
|
3
|
+
/**
|
|
4
|
+
* CMS schema operations: collections and fields (EC-139). The persistence
|
|
5
|
+
* boundary stores the schema as one record per project (`CmsRepository.saveSchema`),
|
|
6
|
+
* so collection- and field-level commands load, edit, and re-save it — keeping
|
|
7
|
+
* the canonical structural validation (duplicate ids, bad select options) in
|
|
8
|
+
* the repository.
|
|
9
|
+
*/
|
|
10
|
+
export declare const saveSchemaInputSchema: z.ZodObject<{
|
|
11
|
+
projectId: z.ZodString;
|
|
12
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
15
|
+
asset: "asset";
|
|
16
|
+
document: "document";
|
|
17
|
+
}>>;
|
|
18
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodType<import("@elytracms/core/cms-core").FieldDef, unknown, z.core.$ZodTypeInternals<import("@elytracms/core/cms-core").FieldDef, unknown>>>>;
|
|
19
|
+
form: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
label: z.ZodOptional<z.ZodString>;
|
|
21
|
+
labelSingular: z.ZodOptional<z.ZodString>;
|
|
22
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
localized: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
titleField: z.ZodOptional<z.ZodString>;
|
|
28
|
+
singleton: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const upsertCollectionInputSchema: z.ZodObject<{
|
|
32
|
+
projectId: z.ZodString;
|
|
33
|
+
collection: z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
36
|
+
asset: "asset";
|
|
37
|
+
document: "document";
|
|
38
|
+
}>>;
|
|
39
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodType<import("@elytracms/core/cms-core").FieldDef, unknown, z.core.$ZodTypeInternals<import("@elytracms/core/cms-core").FieldDef, unknown>>>>;
|
|
40
|
+
form: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
label: z.ZodOptional<z.ZodString>;
|
|
42
|
+
labelSingular: z.ZodOptional<z.ZodString>;
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
localized: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
titleField: z.ZodOptional<z.ZodString>;
|
|
49
|
+
singleton: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export declare const removeCollectionInputSchema: z.ZodObject<{
|
|
53
|
+
projectId: z.ZodString;
|
|
54
|
+
collectionId: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const upsertFieldInputSchema: z.ZodObject<{
|
|
57
|
+
projectId: z.ZodString;
|
|
58
|
+
collectionId: z.ZodString;
|
|
59
|
+
field: z.ZodType<import("@elytracms/core/cms-core").FieldDef, unknown, z.core.$ZodTypeInternals<import("@elytracms/core/cms-core").FieldDef, unknown>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const removeFieldInputSchema: z.ZodObject<{
|
|
62
|
+
projectId: z.ZodString;
|
|
63
|
+
collectionId: z.ZodString;
|
|
64
|
+
fieldName: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export declare const getSchemaInputSchema: z.ZodObject<{
|
|
67
|
+
projectId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const schemaOperationDefinitions: {
|
|
70
|
+
readonly save: import("./core").OperationDefinition<z.ZodObject<{
|
|
71
|
+
projectId: z.ZodString;
|
|
72
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
75
|
+
asset: "asset";
|
|
76
|
+
document: "document";
|
|
77
|
+
}>>;
|
|
78
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodType<import("@elytracms/core/cms-core").FieldDef, unknown, z.core.$ZodTypeInternals<import("@elytracms/core/cms-core").FieldDef, unknown>>>>;
|
|
79
|
+
form: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
label: z.ZodOptional<z.ZodString>;
|
|
81
|
+
labelSingular: z.ZodOptional<z.ZodString>;
|
|
82
|
+
description: z.ZodOptional<z.ZodString>;
|
|
83
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
localized: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
titleField: z.ZodOptional<z.ZodString>;
|
|
88
|
+
singleton: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
}, z.core.$strip>, {
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
projectId: string;
|
|
94
|
+
collections: {
|
|
95
|
+
id: string;
|
|
96
|
+
kind: "asset" | "document";
|
|
97
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
98
|
+
form?: {
|
|
99
|
+
label?: string | undefined;
|
|
100
|
+
labelSingular?: string | undefined;
|
|
101
|
+
description?: string | undefined;
|
|
102
|
+
groups?: string[] | undefined;
|
|
103
|
+
tabs?: string[] | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
localized?: boolean | undefined;
|
|
106
|
+
titleField?: string | undefined;
|
|
107
|
+
singleton?: boolean | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
110
|
+
readonly upsertCollection: import("./core").OperationDefinition<z.ZodObject<{
|
|
111
|
+
projectId: z.ZodString;
|
|
112
|
+
collection: z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
115
|
+
asset: "asset";
|
|
116
|
+
document: "document";
|
|
117
|
+
}>>;
|
|
118
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodType<import("@elytracms/core/cms-core").FieldDef, unknown, z.core.$ZodTypeInternals<import("@elytracms/core/cms-core").FieldDef, unknown>>>>;
|
|
119
|
+
form: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
label: z.ZodOptional<z.ZodString>;
|
|
121
|
+
labelSingular: z.ZodOptional<z.ZodString>;
|
|
122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
123
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
localized: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
titleField: z.ZodOptional<z.ZodString>;
|
|
128
|
+
singleton: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
}, z.core.$strip>, {
|
|
131
|
+
createdAt: string;
|
|
132
|
+
updatedAt: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
collections: {
|
|
135
|
+
id: string;
|
|
136
|
+
kind: "asset" | "document";
|
|
137
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
138
|
+
form?: {
|
|
139
|
+
label?: string | undefined;
|
|
140
|
+
labelSingular?: string | undefined;
|
|
141
|
+
description?: string | undefined;
|
|
142
|
+
groups?: string[] | undefined;
|
|
143
|
+
tabs?: string[] | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
localized?: boolean | undefined;
|
|
146
|
+
titleField?: string | undefined;
|
|
147
|
+
singleton?: boolean | undefined;
|
|
148
|
+
}[];
|
|
149
|
+
}>;
|
|
150
|
+
readonly removeCollection: import("./core").OperationDefinition<z.ZodObject<{
|
|
151
|
+
projectId: z.ZodString;
|
|
152
|
+
collectionId: z.ZodString;
|
|
153
|
+
}, z.core.$strip>, {
|
|
154
|
+
createdAt: string;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
projectId: string;
|
|
157
|
+
collections: {
|
|
158
|
+
id: string;
|
|
159
|
+
kind: "asset" | "document";
|
|
160
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
161
|
+
form?: {
|
|
162
|
+
label?: string | undefined;
|
|
163
|
+
labelSingular?: string | undefined;
|
|
164
|
+
description?: string | undefined;
|
|
165
|
+
groups?: string[] | undefined;
|
|
166
|
+
tabs?: string[] | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
localized?: boolean | undefined;
|
|
169
|
+
titleField?: string | undefined;
|
|
170
|
+
singleton?: boolean | undefined;
|
|
171
|
+
}[];
|
|
172
|
+
}>;
|
|
173
|
+
readonly upsertField: import("./core").OperationDefinition<z.ZodObject<{
|
|
174
|
+
projectId: z.ZodString;
|
|
175
|
+
collectionId: z.ZodString;
|
|
176
|
+
field: z.ZodType<import("@elytracms/core/cms-core").FieldDef, unknown, z.core.$ZodTypeInternals<import("@elytracms/core/cms-core").FieldDef, unknown>>;
|
|
177
|
+
}, z.core.$strip>, {
|
|
178
|
+
createdAt: string;
|
|
179
|
+
updatedAt: string;
|
|
180
|
+
projectId: string;
|
|
181
|
+
collections: {
|
|
182
|
+
id: string;
|
|
183
|
+
kind: "asset" | "document";
|
|
184
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
185
|
+
form?: {
|
|
186
|
+
label?: string | undefined;
|
|
187
|
+
labelSingular?: string | undefined;
|
|
188
|
+
description?: string | undefined;
|
|
189
|
+
groups?: string[] | undefined;
|
|
190
|
+
tabs?: string[] | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
localized?: boolean | undefined;
|
|
193
|
+
titleField?: string | undefined;
|
|
194
|
+
singleton?: boolean | undefined;
|
|
195
|
+
}[];
|
|
196
|
+
}>;
|
|
197
|
+
readonly removeField: import("./core").OperationDefinition<z.ZodObject<{
|
|
198
|
+
projectId: z.ZodString;
|
|
199
|
+
collectionId: z.ZodString;
|
|
200
|
+
fieldName: z.ZodString;
|
|
201
|
+
}, z.core.$strip>, {
|
|
202
|
+
createdAt: string;
|
|
203
|
+
updatedAt: string;
|
|
204
|
+
projectId: string;
|
|
205
|
+
collections: {
|
|
206
|
+
id: string;
|
|
207
|
+
kind: "asset" | "document";
|
|
208
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
209
|
+
form?: {
|
|
210
|
+
label?: string | undefined;
|
|
211
|
+
labelSingular?: string | undefined;
|
|
212
|
+
description?: string | undefined;
|
|
213
|
+
groups?: string[] | undefined;
|
|
214
|
+
tabs?: string[] | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
localized?: boolean | undefined;
|
|
217
|
+
titleField?: string | undefined;
|
|
218
|
+
singleton?: boolean | undefined;
|
|
219
|
+
}[];
|
|
220
|
+
}>;
|
|
221
|
+
readonly get: import("./core").OperationDefinition<z.ZodObject<{
|
|
222
|
+
projectId: z.ZodString;
|
|
223
|
+
}, z.core.$strip>, {
|
|
224
|
+
createdAt: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
projectId: string;
|
|
227
|
+
collections: {
|
|
228
|
+
id: string;
|
|
229
|
+
kind: "asset" | "document";
|
|
230
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
231
|
+
form?: {
|
|
232
|
+
label?: string | undefined;
|
|
233
|
+
labelSingular?: string | undefined;
|
|
234
|
+
description?: string | undefined;
|
|
235
|
+
groups?: string[] | undefined;
|
|
236
|
+
tabs?: string[] | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
localized?: boolean | undefined;
|
|
239
|
+
titleField?: string | undefined;
|
|
240
|
+
singleton?: boolean | undefined;
|
|
241
|
+
}[];
|
|
242
|
+
}>;
|
|
243
|
+
};
|
|
244
|
+
export declare function createSchemaOperations(runtime: OperationsRuntime): {
|
|
245
|
+
save: (input: {
|
|
246
|
+
projectId: string;
|
|
247
|
+
collections: {
|
|
248
|
+
id: string;
|
|
249
|
+
kind?: "asset" | "document" | undefined;
|
|
250
|
+
fields?: unknown[] | undefined;
|
|
251
|
+
form?: {
|
|
252
|
+
label?: string | undefined;
|
|
253
|
+
labelSingular?: string | undefined;
|
|
254
|
+
description?: string | undefined;
|
|
255
|
+
groups?: string[] | undefined;
|
|
256
|
+
tabs?: string[] | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
localized?: boolean | undefined;
|
|
259
|
+
titleField?: string | undefined;
|
|
260
|
+
singleton?: boolean | undefined;
|
|
261
|
+
}[];
|
|
262
|
+
}) => Promise<import("./core").OperationResult<{
|
|
263
|
+
createdAt: string;
|
|
264
|
+
updatedAt: string;
|
|
265
|
+
projectId: string;
|
|
266
|
+
collections: {
|
|
267
|
+
id: string;
|
|
268
|
+
kind: "asset" | "document";
|
|
269
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
270
|
+
form?: {
|
|
271
|
+
label?: string | undefined;
|
|
272
|
+
labelSingular?: string | undefined;
|
|
273
|
+
description?: string | undefined;
|
|
274
|
+
groups?: string[] | undefined;
|
|
275
|
+
tabs?: string[] | undefined;
|
|
276
|
+
} | undefined;
|
|
277
|
+
localized?: boolean | undefined;
|
|
278
|
+
titleField?: string | undefined;
|
|
279
|
+
singleton?: boolean | undefined;
|
|
280
|
+
}[];
|
|
281
|
+
}>>;
|
|
282
|
+
upsertCollection: (input: {
|
|
283
|
+
projectId: string;
|
|
284
|
+
collection: {
|
|
285
|
+
id: string;
|
|
286
|
+
kind?: "asset" | "document" | undefined;
|
|
287
|
+
fields?: unknown[] | undefined;
|
|
288
|
+
form?: {
|
|
289
|
+
label?: string | undefined;
|
|
290
|
+
labelSingular?: string | undefined;
|
|
291
|
+
description?: string | undefined;
|
|
292
|
+
groups?: string[] | undefined;
|
|
293
|
+
tabs?: string[] | undefined;
|
|
294
|
+
} | undefined;
|
|
295
|
+
localized?: boolean | undefined;
|
|
296
|
+
titleField?: string | undefined;
|
|
297
|
+
singleton?: boolean | undefined;
|
|
298
|
+
};
|
|
299
|
+
}) => Promise<import("./core").OperationResult<{
|
|
300
|
+
createdAt: string;
|
|
301
|
+
updatedAt: string;
|
|
302
|
+
projectId: string;
|
|
303
|
+
collections: {
|
|
304
|
+
id: string;
|
|
305
|
+
kind: "asset" | "document";
|
|
306
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
307
|
+
form?: {
|
|
308
|
+
label?: string | undefined;
|
|
309
|
+
labelSingular?: string | undefined;
|
|
310
|
+
description?: string | undefined;
|
|
311
|
+
groups?: string[] | undefined;
|
|
312
|
+
tabs?: string[] | undefined;
|
|
313
|
+
} | undefined;
|
|
314
|
+
localized?: boolean | undefined;
|
|
315
|
+
titleField?: string | undefined;
|
|
316
|
+
singleton?: boolean | undefined;
|
|
317
|
+
}[];
|
|
318
|
+
}>>;
|
|
319
|
+
removeCollection: (input: {
|
|
320
|
+
projectId: string;
|
|
321
|
+
collectionId: string;
|
|
322
|
+
}) => Promise<import("./core").OperationResult<{
|
|
323
|
+
createdAt: string;
|
|
324
|
+
updatedAt: string;
|
|
325
|
+
projectId: string;
|
|
326
|
+
collections: {
|
|
327
|
+
id: string;
|
|
328
|
+
kind: "asset" | "document";
|
|
329
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
330
|
+
form?: {
|
|
331
|
+
label?: string | undefined;
|
|
332
|
+
labelSingular?: string | undefined;
|
|
333
|
+
description?: string | undefined;
|
|
334
|
+
groups?: string[] | undefined;
|
|
335
|
+
tabs?: string[] | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
localized?: boolean | undefined;
|
|
338
|
+
titleField?: string | undefined;
|
|
339
|
+
singleton?: boolean | undefined;
|
|
340
|
+
}[];
|
|
341
|
+
}>>;
|
|
342
|
+
upsertField: (input: {
|
|
343
|
+
projectId: string;
|
|
344
|
+
collectionId: string;
|
|
345
|
+
field: unknown;
|
|
346
|
+
}) => Promise<import("./core").OperationResult<{
|
|
347
|
+
createdAt: string;
|
|
348
|
+
updatedAt: string;
|
|
349
|
+
projectId: string;
|
|
350
|
+
collections: {
|
|
351
|
+
id: string;
|
|
352
|
+
kind: "asset" | "document";
|
|
353
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
354
|
+
form?: {
|
|
355
|
+
label?: string | undefined;
|
|
356
|
+
labelSingular?: string | undefined;
|
|
357
|
+
description?: string | undefined;
|
|
358
|
+
groups?: string[] | undefined;
|
|
359
|
+
tabs?: string[] | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
localized?: boolean | undefined;
|
|
362
|
+
titleField?: string | undefined;
|
|
363
|
+
singleton?: boolean | undefined;
|
|
364
|
+
}[];
|
|
365
|
+
}>>;
|
|
366
|
+
removeField: (input: {
|
|
367
|
+
projectId: string;
|
|
368
|
+
collectionId: string;
|
|
369
|
+
fieldName: string;
|
|
370
|
+
}) => Promise<import("./core").OperationResult<{
|
|
371
|
+
createdAt: string;
|
|
372
|
+
updatedAt: string;
|
|
373
|
+
projectId: string;
|
|
374
|
+
collections: {
|
|
375
|
+
id: string;
|
|
376
|
+
kind: "asset" | "document";
|
|
377
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
378
|
+
form?: {
|
|
379
|
+
label?: string | undefined;
|
|
380
|
+
labelSingular?: string | undefined;
|
|
381
|
+
description?: string | undefined;
|
|
382
|
+
groups?: string[] | undefined;
|
|
383
|
+
tabs?: string[] | undefined;
|
|
384
|
+
} | undefined;
|
|
385
|
+
localized?: boolean | undefined;
|
|
386
|
+
titleField?: string | undefined;
|
|
387
|
+
singleton?: boolean | undefined;
|
|
388
|
+
}[];
|
|
389
|
+
}>>;
|
|
390
|
+
get: (input: {
|
|
391
|
+
projectId: string;
|
|
392
|
+
}) => Promise<import("./core").OperationResult<{
|
|
393
|
+
createdAt: string;
|
|
394
|
+
updatedAt: string;
|
|
395
|
+
projectId: string;
|
|
396
|
+
collections: {
|
|
397
|
+
id: string;
|
|
398
|
+
kind: "asset" | "document";
|
|
399
|
+
fields: import("@elytracms/core/cms-core").FieldDef[];
|
|
400
|
+
form?: {
|
|
401
|
+
label?: string | undefined;
|
|
402
|
+
labelSingular?: string | undefined;
|
|
403
|
+
description?: string | undefined;
|
|
404
|
+
groups?: string[] | undefined;
|
|
405
|
+
tabs?: string[] | undefined;
|
|
406
|
+
} | undefined;
|
|
407
|
+
localized?: boolean | undefined;
|
|
408
|
+
titleField?: string | undefined;
|
|
409
|
+
singleton?: boolean | undefined;
|
|
410
|
+
}[];
|
|
411
|
+
}>>;
|
|
412
|
+
};
|
|
413
|
+
export type SchemaOperations = ReturnType<typeof createSchemaOperations>;
|