@paroicms/server 0.146.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 +3 -0
- package/ddl/main.ddl.sql +84 -0
- package/dist/backup/site/archiver.helper.d.ts +12 -0
- package/dist/backup/site/archiver.helper.js +46 -0
- package/dist/backup/site/archiver.helper.js.map +1 -0
- package/dist/backup/site/backup.d.ts +5 -0
- package/dist/backup/site/backup.js +118 -0
- package/dist/backup/site/backup.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +5 -0
- package/dist/cli.js.map +1 -0
- package/dist/common/child-ordering-query.d.ts +13 -0
- package/dist/common/child-ordering-query.js +107 -0
- package/dist/common/child-ordering-query.js.map +1 -0
- package/dist/common/data-format.d.ts +19 -0
- package/dist/common/data-format.js +86 -0
- package/dist/common/data-format.js.map +1 -0
- package/dist/common/mail/html-helpers.d.ts +7 -0
- package/dist/common/mail/html-helpers.js +46 -0
- package/dist/common/mail/html-helpers.js.map +1 -0
- package/dist/common/mail/sendMail.helpers.d.ts +14 -0
- package/dist/common/mail/sendMail.helpers.js +51 -0
- package/dist/common/mail/sendMail.helpers.js.map +1 -0
- package/dist/common/media-handles.helpers.d.ts +19 -0
- package/dist/common/media-handles.helpers.js +52 -0
- package/dist/common/media-handles.helpers.js.map +1 -0
- package/dist/common/serve-html-or.d.ts +16 -0
- package/dist/common/serve-html-or.js +72 -0
- package/dist/common/serve-html-or.js.map +1 -0
- package/dist/common/text-cache.d.ts +57 -0
- package/dist/common/text-cache.js +87 -0
- package/dist/common/text-cache.js.map +1 -0
- package/dist/common/tracker-report.d.ts +2 -0
- package/dist/common/tracker-report.js +27 -0
- package/dist/common/tracker-report.js.map +1 -0
- package/dist/context.d.ts +29 -0
- package/dist/context.js +60 -0
- package/dist/context.js.map +1 -0
- package/dist/express/http-helpers.d.ts +16 -0
- package/dist/express/http-helpers.js +44 -0
- package/dist/express/http-helpers.js.map +1 -0
- package/dist/express/static-middlewares.d.ts +3 -0
- package/dist/express/static-middlewares.js +114 -0
- package/dist/express/static-middlewares.js.map +1 -0
- package/dist/helpers/configuration.helpers.d.ts +2 -0
- package/dist/helpers/configuration.helpers.js +8 -0
- package/dist/helpers/configuration.helpers.js.map +1 -0
- package/dist/helpers/excerpt.helpers.d.ts +2 -0
- package/dist/helpers/excerpt.helpers.js +31 -0
- package/dist/helpers/excerpt.helpers.js.map +1 -0
- package/dist/helpers/excerpt.helpers.spec.d.ts +1 -0
- package/dist/helpers/excerpt.helpers.spec.js +133 -0
- package/dist/helpers/excerpt.helpers.spec.js.map +1 -0
- package/dist/helpers/jwt-secret.helpers.d.ts +2 -0
- package/dist/helpers/jwt-secret.helpers.js +30 -0
- package/dist/helpers/jwt-secret.helpers.js.map +1 -0
- package/dist/helpers/label-translator.helper.d.ts +9 -0
- package/dist/helpers/label-translator.helper.js +14 -0
- package/dist/helpers/label-translator.helper.js.map +1 -0
- package/dist/helpers/passwordEncrypt-helper.d.ts +2 -0
- package/dist/helpers/passwordEncrypt-helper.js +37 -0
- package/dist/helpers/passwordEncrypt-helper.js.map +1 -0
- package/dist/helpers/relative-id-helper.d.ts +10 -0
- package/dist/helpers/relative-id-helper.js +37 -0
- package/dist/helpers/relative-id-helper.js.map +1 -0
- package/dist/helpers/search-text-helper.d.ts +7 -0
- package/dist/helpers/search-text-helper.js +27 -0
- package/dist/helpers/search-text-helper.js.map +1 -0
- package/dist/helpers/simple-i18n.d.ts +14 -0
- package/dist/helpers/simple-i18n.js +82 -0
- package/dist/helpers/simple-i18n.js.map +1 -0
- package/dist/helpers/special-account.helpers.d.ts +9 -0
- package/dist/helpers/special-account.helpers.js +43 -0
- package/dist/helpers/special-account.helpers.js.map +1 -0
- package/dist/helpers/url.helpers.d.ts +2 -0
- package/dist/helpers/url.helpers.js +12 -0
- package/dist/helpers/url.helpers.js.map +1 -0
- package/dist/helpers/utils-helper.d.ts +4 -0
- package/dist/helpers/utils-helper.js +32 -0
- package/dist/helpers/utils-helper.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +67 -0
- package/dist/index.js.map +1 -0
- package/dist/maintenance/maintenance-task.d.ts +4 -0
- package/dist/maintenance/maintenance-task.js +27 -0
- package/dist/maintenance/maintenance-task.js.map +1 -0
- package/dist/maintenance/shutdown.d.ts +7 -0
- package/dist/maintenance/shutdown.js +51 -0
- package/dist/maintenance/shutdown.js.map +1 -0
- package/dist/modules/app.controller.d.ts +5 -0
- package/dist/modules/app.controller.js +89 -0
- package/dist/modules/app.controller.js.map +1 -0
- package/dist/modules/app.module.d.ts +2 -0
- package/dist/modules/app.module.js +48 -0
- package/dist/modules/app.module.js.map +1 -0
- package/dist/modules/core/account/account.model.d.ts +18 -0
- package/dist/modules/core/account/account.model.js +59 -0
- package/dist/modules/core/account/account.model.js.map +1 -0
- package/dist/modules/core/account/account.module.d.ts +2 -0
- package/dist/modules/core/account/account.module.js +20 -0
- package/dist/modules/core/account/account.module.js.map +1 -0
- package/dist/modules/core/account/account.queries.d.ts +18 -0
- package/dist/modules/core/account/account.queries.js +150 -0
- package/dist/modules/core/account/account.queries.js.map +1 -0
- package/dist/modules/core/account/account.resolver.d.ts +11 -0
- package/dist/modules/core/account/account.resolver.js +107 -0
- package/dist/modules/core/account/account.resolver.js.map +1 -0
- package/dist/modules/core/account/account.schema.d.ts +24 -0
- package/dist/modules/core/account/account.schema.js +114 -0
- package/dist/modules/core/account/account.schema.js.map +1 -0
- package/dist/modules/core/account-auth/account-auth.controller.d.ts +5 -0
- package/dist/modules/core/account-auth/account-auth.controller.js +46 -0
- package/dist/modules/core/account-auth/account-auth.controller.js.map +1 -0
- package/dist/modules/core/account-auth/account-auth.module.d.ts +2 -0
- package/dist/modules/core/account-auth/account-auth.module.js +24 -0
- package/dist/modules/core/account-auth/account-auth.module.js.map +1 -0
- package/dist/modules/core/account-auth/account-auth.service.d.ts +5 -0
- package/dist/modules/core/account-auth/account-auth.service.js +41 -0
- package/dist/modules/core/account-auth/account-auth.service.js.map +1 -0
- package/dist/modules/core/account-auth/account-auth.strategy.d.ts +10 -0
- package/dist/modules/core/account-auth/account-auth.strategy.js +49 -0
- package/dist/modules/core/account-auth/account-auth.strategy.js.map +1 -0
- package/dist/modules/core/auth/auth.module.d.ts +2 -0
- package/dist/modules/core/auth/auth.module.js +35 -0
- package/dist/modules/core/auth/auth.module.js.map +1 -0
- package/dist/modules/core/auth/auth.service.d.ts +11 -0
- package/dist/modules/core/auth/auth.service.js +164 -0
- package/dist/modules/core/auth/auth.service.js.map +1 -0
- package/dist/modules/core/auth/auth.types.d.ts +27 -0
- package/dist/modules/core/auth/auth.types.js +3 -0
- package/dist/modules/core/auth/auth.types.js.map +1 -0
- package/dist/modules/core/auth/jwt.auth.guard.d.ts +6 -0
- package/dist/modules/core/auth/jwt.auth.guard.js +23 -0
- package/dist/modules/core/auth/jwt.auth.guard.js.map +1 -0
- package/dist/modules/core/auth/jwt.strategy.d.ts +10 -0
- package/dist/modules/core/auth/jwt.strategy.js +35 -0
- package/dist/modules/core/auth/jwt.strategy.js.map +1 -0
- package/dist/modules/core/backup/backup.controller.d.ts +7 -0
- package/dist/modules/core/backup/backup.controller.js +61 -0
- package/dist/modules/core/backup/backup.controller.js.map +1 -0
- package/dist/modules/core/backup/backup.module.d.ts +2 -0
- package/dist/modules/core/backup/backup.module.js +22 -0
- package/dist/modules/core/backup/backup.module.js.map +1 -0
- package/dist/modules/core/backup/backup.resolver.d.ts +8 -0
- package/dist/modules/core/backup/backup.resolver.js +54 -0
- package/dist/modules/core/backup/backup.resolver.js.map +1 -0
- package/dist/modules/core/backup/backup.shema.d.ts +4 -0
- package/dist/modules/core/backup/backup.shema.js +30 -0
- package/dist/modules/core/backup/backup.shema.js.map +1 -0
- package/dist/modules/core/core.module.d.ts +2 -0
- package/dist/modules/core/core.module.js +50 -0
- package/dist/modules/core/core.module.js.map +1 -0
- package/dist/modules/core/document/document.helper.d.ts +2 -0
- package/dist/modules/core/document/document.helper.js +10 -0
- package/dist/modules/core/document/document.helper.js.map +1 -0
- package/dist/modules/core/document/document.model.d.ts +9 -0
- package/dist/modules/core/document/document.model.js +59 -0
- package/dist/modules/core/document/document.model.js.map +1 -0
- package/dist/modules/core/document/document.module.d.ts +2 -0
- package/dist/modules/core/document/document.module.js +25 -0
- package/dist/modules/core/document/document.module.js.map +1 -0
- package/dist/modules/core/document/document.resolver.d.ts +12 -0
- package/dist/modules/core/document/document.resolver.extend.d.ts +10 -0
- package/dist/modules/core/document/document.resolver.extend.js +69 -0
- package/dist/modules/core/document/document.resolver.extend.js.map +1 -0
- package/dist/modules/core/document/document.resolver.js +154 -0
- package/dist/modules/core/document/document.resolver.js.map +1 -0
- package/dist/modules/core/document/document.schema.d.ts +39 -0
- package/dist/modules/core/document/document.schema.js +181 -0
- package/dist/modules/core/document/document.schema.js.map +1 -0
- package/dist/modules/core/document/load-documents.queries.d.ts +17 -0
- package/dist/modules/core/document/load-documents.queries.js +119 -0
- package/dist/modules/core/document/load-documents.queries.js.map +1 -0
- package/dist/modules/core/document/save-documents.queries.d.ts +18 -0
- package/dist/modules/core/document/save-documents.queries.js +199 -0
- package/dist/modules/core/document/save-documents.queries.js.map +1 -0
- package/dist/modules/core/document/search-document-item.resolver.d.ts +7 -0
- package/dist/modules/core/document/search-document-item.resolver.js +58 -0
- package/dist/modules/core/document/search-document-item.resolver.js.map +1 -0
- package/dist/modules/core/fields/_fields.helpers.d.ts +2 -0
- package/dist/modules/core/fields/_fields.helpers.js +12 -0
- package/dist/modules/core/fields/_fields.helpers.js.map +1 -0
- package/dist/modules/core/fields/fields.model.d.ts +17 -0
- package/dist/modules/core/fields/fields.model.js +99 -0
- package/dist/modules/core/fields/fields.model.js.map +1 -0
- package/dist/modules/core/fields/fields.module.d.ts +2 -0
- package/dist/modules/core/fields/fields.module.js +20 -0
- package/dist/modules/core/fields/fields.module.js.map +1 -0
- package/dist/modules/core/fields/fields.resolver.d.ts +14 -0
- package/dist/modules/core/fields/fields.resolver.js +165 -0
- package/dist/modules/core/fields/fields.resolver.js.map +1 -0
- package/dist/modules/core/fields/load-fields.queries.d.ts +20 -0
- package/dist/modules/core/fields/load-fields.queries.js +233 -0
- package/dist/modules/core/fields/load-fields.queries.js.map +1 -0
- package/dist/modules/core/fields/quill-delta.d.ts +1 -0
- package/dist/modules/core/fields/quill-delta.js +40 -0
- package/dist/modules/core/fields/quill-delta.js.map +1 -0
- package/dist/modules/core/fields/save-fields.queries.d.ts +9 -0
- package/dist/modules/core/fields/save-fields.queries.js +135 -0
- package/dist/modules/core/fields/save-fields.queries.js.map +1 -0
- package/dist/modules/core/leaf/leaf.model.d.ts +9 -0
- package/dist/modules/core/leaf/leaf.model.js +61 -0
- package/dist/modules/core/leaf/leaf.model.js.map +1 -0
- package/dist/modules/core/leaf/leaf.module.d.ts +2 -0
- package/dist/modules/core/leaf/leaf.module.js +21 -0
- package/dist/modules/core/leaf/leaf.module.js.map +1 -0
- package/dist/modules/core/leaf/leaf.queries.d.ts +21 -0
- package/dist/modules/core/leaf/leaf.queries.js +143 -0
- package/dist/modules/core/leaf/leaf.queries.js.map +1 -0
- package/dist/modules/core/leaf/leaf.resolver.d.ts +9 -0
- package/dist/modules/core/leaf/leaf.resolver.extend.d.ts +6 -0
- package/dist/modules/core/leaf/leaf.resolver.extend.js +42 -0
- package/dist/modules/core/leaf/leaf.resolver.extend.js.map +1 -0
- package/dist/modules/core/leaf/leaf.resolver.js +84 -0
- package/dist/modules/core/leaf/leaf.resolver.js.map +1 -0
- package/dist/modules/core/leaf/leaf.schema.d.ts +7 -0
- package/dist/modules/core/leaf/leaf.schema.js +45 -0
- package/dist/modules/core/leaf/leaf.schema.js.map +1 -0
- package/dist/modules/core/leaf-item/leaf-item.model.d.ts +6 -0
- package/dist/modules/core/leaf-item/leaf-item.model.js +44 -0
- package/dist/modules/core/leaf-item/leaf-item.model.js.map +1 -0
- package/dist/modules/core/leaf-item/leaf-item.queries.d.ts +9 -0
- package/dist/modules/core/leaf-item/leaf-item.queries.js +120 -0
- package/dist/modules/core/leaf-item/leaf-item.queries.js.map +1 -0
- package/dist/modules/core/login/login.controller.d.ts +8 -0
- package/dist/modules/core/login/login.controller.js +54 -0
- package/dist/modules/core/login/login.controller.js.map +1 -0
- package/dist/modules/core/login/login.module.d.ts +2 -0
- package/dist/modules/core/login/login.module.js +22 -0
- package/dist/modules/core/login/login.module.js.map +1 -0
- package/dist/modules/core/media/media-upload.controller.d.ts +21 -0
- package/dist/modules/core/media/media-upload.controller.js +160 -0
- package/dist/modules/core/media/media-upload.controller.js.map +1 -0
- package/dist/modules/core/media/media.d.ts +22 -0
- package/dist/modules/core/media/media.js +53 -0
- package/dist/modules/core/media/media.js.map +1 -0
- package/dist/modules/core/media/media.module.d.ts +2 -0
- package/dist/modules/core/media/media.module.js +22 -0
- package/dist/modules/core/media/media.module.js.map +1 -0
- package/dist/modules/core/media/media.resolver.d.ts +14 -0
- package/dist/modules/core/media/media.resolver.js +199 -0
- package/dist/modules/core/media/media.resolver.js.map +1 -0
- package/dist/modules/core/media/media.schema.d.ts +30 -0
- package/dist/modules/core/media/media.schema.js +144 -0
- package/dist/modules/core/media/media.schema.js.map +1 -0
- package/dist/modules/core/part/part.model.d.ts +6 -0
- package/dist/modules/core/part/part.model.js +44 -0
- package/dist/modules/core/part/part.model.js.map +1 -0
- package/dist/modules/core/part/part.module.d.ts +2 -0
- package/dist/modules/core/part/part.module.js +21 -0
- package/dist/modules/core/part/part.module.js.map +1 -0
- package/dist/modules/core/part/part.queries.d.ts +22 -0
- package/dist/modules/core/part/part.queries.js +167 -0
- package/dist/modules/core/part/part.queries.js.map +1 -0
- package/dist/modules/core/part/part.resolver.d.ts +14 -0
- package/dist/modules/core/part/part.resolver.extend.d.ts +5 -0
- package/dist/modules/core/part/part.resolver.extend.js +49 -0
- package/dist/modules/core/part/part.resolver.extend.js.map +1 -0
- package/dist/modules/core/part/part.resolver.js +135 -0
- package/dist/modules/core/part/part.resolver.js.map +1 -0
- package/dist/modules/core/part/part.schema.d.ts +12 -0
- package/dist/modules/core/part/part.schema.js +66 -0
- package/dist/modules/core/part/part.schema.js.map +1 -0
- package/dist/modules/core/section/section-wrap.resolver.d.ts +11 -0
- package/dist/modules/core/section/section-wrap.resolver.js +168 -0
- package/dist/modules/core/section/section-wrap.resolver.js.map +1 -0
- package/dist/modules/core/section/section.model.d.ts +6 -0
- package/dist/modules/core/section/section.model.js +44 -0
- package/dist/modules/core/section/section.model.js.map +1 -0
- package/dist/modules/core/section/section.module.d.ts +2 -0
- package/dist/modules/core/section/section.module.js +21 -0
- package/dist/modules/core/section/section.module.js.map +1 -0
- package/dist/modules/core/section/section.queries.d.ts +51 -0
- package/dist/modules/core/section/section.queries.js +228 -0
- package/dist/modules/core/section/section.queries.js.map +1 -0
- package/dist/modules/core/section/section.resolver.d.ts +7 -0
- package/dist/modules/core/section/section.resolver.js +78 -0
- package/dist/modules/core/section/section.resolver.js.map +1 -0
- package/dist/modules/core/section/section.schema.d.ts +27 -0
- package/dist/modules/core/section/section.schema.js +129 -0
- package/dist/modules/core/section/section.schema.js.map +1 -0
- package/dist/modules/core/site-fields/site-fields.model.d.ts +4 -0
- package/dist/modules/core/site-fields/site-fields.model.js +30 -0
- package/dist/modules/core/site-fields/site-fields.model.js.map +1 -0
- package/dist/modules/core/site-fields/site-fields.module.d.ts +2 -0
- package/dist/modules/core/site-fields/site-fields.module.js +20 -0
- package/dist/modules/core/site-fields/site-fields.module.js.map +1 -0
- package/dist/modules/core/site-fields/site-fields.queries.d.ts +9 -0
- package/dist/modules/core/site-fields/site-fields.queries.js +123 -0
- package/dist/modules/core/site-fields/site-fields.queries.js.map +1 -0
- package/dist/modules/core/site-fields/site-fields.resolver.d.ts +5 -0
- package/dist/modules/core/site-fields/site-fields.resolver.js +56 -0
- package/dist/modules/core/site-fields/site-fields.resolver.js.map +1 -0
- package/dist/modules/core/site-info/site-info.module.d.ts +2 -0
- package/dist/modules/core/site-info/site-info.module.js +20 -0
- package/dist/modules/core/site-info/site-info.module.js.map +1 -0
- package/dist/modules/core/site-info/site-info.resolver.d.ts +5 -0
- package/dist/modules/core/site-info/site-info.resolver.js +44 -0
- package/dist/modules/core/site-info/site-info.resolver.js.map +1 -0
- package/dist/modules/core/site-info/site-info.schema.d.ts +6 -0
- package/dist/modules/core/site-info/site-info.schema.js +36 -0
- package/dist/modules/core/site-info/site-info.schema.js.map +1 -0
- package/dist/modules/core/site-schema/site-schema.module.d.ts +2 -0
- package/dist/modules/core/site-schema/site-schema.module.js +20 -0
- package/dist/modules/core/site-schema/site-schema.module.js.map +1 -0
- package/dist/modules/core/site-schema/site-schema.resolver.d.ts +4 -0
- package/dist/modules/core/site-schema/site-schema.resolver.js +35 -0
- package/dist/modules/core/site-schema/site-schema.resolver.js.map +1 -0
- package/dist/modules/core/term-flag/term-flag.model.d.ts +6 -0
- package/dist/modules/core/term-flag/term-flag.model.js +45 -0
- package/dist/modules/core/term-flag/term-flag.model.js.map +1 -0
- package/dist/modules/core/term-flag/term-flag.module.d.ts +2 -0
- package/dist/modules/core/term-flag/term-flag.module.js +20 -0
- package/dist/modules/core/term-flag/term-flag.module.js.map +1 -0
- package/dist/modules/core/term-flag/term-flag.queries.d.ts +7 -0
- package/dist/modules/core/term-flag/term-flag.queries.js +44 -0
- package/dist/modules/core/term-flag/term-flag.queries.js.map +1 -0
- package/dist/modules/core/term-flag/term-flag.resolver.d.ts +5 -0
- package/dist/modules/core/term-flag/term-flag.resolver.js +47 -0
- package/dist/modules/core/term-flag/term-flag.resolver.js.map +1 -0
- package/dist/modules/core/term-flag/term-flag.schema.d.ts +9 -0
- package/dist/modules/core/term-flag/term-flag.schema.js +51 -0
- package/dist/modules/core/term-flag/term-flag.schema.js.map +1 -0
- package/dist/modules/core/term-flag/term-flag.service.d.ts +9 -0
- package/dist/modules/core/term-flag/term-flag.service.js +50 -0
- package/dist/modules/core/term-flag/term-flag.service.js.map +1 -0
- package/dist/modules/core/unprotected/unprotected.module.d.ts +2 -0
- package/dist/modules/core/unprotected/unprotected.module.js +20 -0
- package/dist/modules/core/unprotected/unprotected.module.js.map +1 -0
- package/dist/modules/core/unprotected/unprotected.resolver.d.ts +8 -0
- package/dist/modules/core/unprotected/unprotected.resolver.js +106 -0
- package/dist/modules/core/unprotected/unprotected.resolver.js.map +1 -0
- package/dist/modules/core/unprotected/unprotected.schema.d.ts +19 -0
- package/dist/modules/core/unprotected/unprotected.schema.js +93 -0
- package/dist/modules/core/unprotected/unprotected.schema.js.map +1 -0
- package/dist/modules/graphql.types.d.ts +6 -0
- package/dist/modules/graphql.types.js +3 -0
- package/dist/modules/graphql.types.js.map +1 -0
- package/dist/modules/private-api.module.d.ts +2 -0
- package/dist/modules/private-api.module.js +50 -0
- package/dist/modules/private-api.module.js.map +1 -0
- package/dist/modules/public-api/class-validator-options.d.ts +7 -0
- package/dist/modules/public-api/class-validator-options.js +11 -0
- package/dist/modules/public-api/class-validator-options.js.map +1 -0
- package/dist/modules/public-api/mail/contact-form-mail.d.ts +8 -0
- package/dist/modules/public-api/mail/contact-form-mail.js +96 -0
- package/dist/modules/public-api/mail/contact-form-mail.js.map +1 -0
- package/dist/modules/public-api/mail/mail.dto.d.ts +8 -0
- package/dist/modules/public-api/mail/mail.dto.js +56 -0
- package/dist/modules/public-api/mail/mail.dto.js.map +1 -0
- package/dist/modules/public-api/partials/partials-params.dto.d.ts +6 -0
- package/dist/modules/public-api/partials/partials-params.dto.js +45 -0
- package/dist/modules/public-api/partials/partials-params.dto.js.map +1 -0
- package/dist/modules/public-api/password-reset/password-reset.controller.d.ts +11 -0
- package/dist/modules/public-api/password-reset/password-reset.controller.js +59 -0
- package/dist/modules/public-api/password-reset/password-reset.controller.js.map +1 -0
- package/dist/modules/public-api/password-reset/password-reset.dto.d.ts +9 -0
- package/dist/modules/public-api/password-reset/password-reset.dto.js +55 -0
- package/dist/modules/public-api/password-reset/password-reset.dto.js.map +1 -0
- package/dist/modules/public-api/password-reset/password-reset.module.d.ts +2 -0
- package/dist/modules/public-api/password-reset/password-reset.module.js +22 -0
- package/dist/modules/public-api/password-reset/password-reset.module.js.map +1 -0
- package/dist/modules/public-api/password-reset/password-reset.service.d.ts +14 -0
- package/dist/modules/public-api/password-reset/password-reset.service.js +56 -0
- package/dist/modules/public-api/password-reset/password-reset.service.js.map +1 -0
- package/dist/modules/public-api/public-api-controller.d.ts +32 -0
- package/dist/modules/public-api/public-api-controller.js +198 -0
- package/dist/modules/public-api/public-api-controller.js.map +1 -0
- package/dist/modules/public-api/public-api.module.d.ts +2 -0
- package/dist/modules/public-api/public-api.module.js +22 -0
- package/dist/modules/public-api/public-api.module.js.map +1 -0
- package/dist/modules/public-api/search-text/search-text.dto.d.ts +7 -0
- package/dist/modules/public-api/search-text/search-text.dto.js +50 -0
- package/dist/modules/public-api/search-text/search-text.dto.js.map +1 -0
- package/dist/modules/public-api/search-text/search-text.queries.d.ts +14 -0
- package/dist/modules/public-api/search-text/search-text.queries.js +58 -0
- package/dist/modules/public-api/search-text/search-text.queries.js.map +1 -0
- package/dist/modules/public-site/app-exception-filter.d.ts +4 -0
- package/dist/modules/public-site/app-exception-filter.js +41 -0
- package/dist/modules/public-site/app-exception-filter.js.map +1 -0
- package/dist/modules/public-site/google-auth.controller.d.ts +10 -0
- package/dist/modules/public-site/google-auth.controller.js +127 -0
- package/dist/modules/public-site/google-auth.controller.js.map +1 -0
- package/dist/modules/public-site/helpers/format-date.helper.d.ts +3 -0
- package/dist/modules/public-site/helpers/format-date.helper.js +35 -0
- package/dist/modules/public-site/helpers/format-date.helper.js.map +1 -0
- package/dist/modules/public-site/helpers/format-date.helper.spec.d.ts +1 -0
- package/dist/modules/public-site/helpers/format-date.helper.spec.js +37 -0
- package/dist/modules/public-site/helpers/format-date.helper.spec.js.map +1 -0
- package/dist/modules/public-site/helpers/medias.helpers.d.ts +3 -0
- package/dist/modules/public-site/helpers/medias.helpers.js +16 -0
- package/dist/modules/public-site/helpers/medias.helpers.js.map +1 -0
- package/dist/modules/public-site/helpers/obfuscate.helper.d.ts +2 -0
- package/dist/modules/public-site/helpers/obfuscate.helper.js +27 -0
- package/dist/modules/public-site/helpers/obfuscate.helper.js.map +1 -0
- package/dist/modules/public-site/helpers/public-field-values.d.ts +10 -0
- package/dist/modules/public-site/helpers/public-field-values.js +76 -0
- package/dist/modules/public-site/helpers/public-field-values.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/format-date.d.ts +2 -0
- package/dist/modules/public-site/liquidjs-filters/format-date.js +14 -0
- package/dist/modules/public-site/liquidjs-filters/format-date.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/format-number.d.ts +2 -0
- package/dist/modules/public-site/liquidjs-filters/format-number.js +18 -0
- package/dist/modules/public-site/liquidjs-filters/format-number.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/info-filter.d.ts +2 -0
- package/dist/modules/public-site/liquidjs-filters/info-filter.js +144 -0
- package/dist/modules/public-site/liquidjs-filters/info-filter.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.d.ts +2 -0
- package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js +38 -0
- package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.d.ts +3 -0
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js +21 -0
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/make-excerpt.d.ts +2 -0
- package/dist/modules/public-site/liquidjs-filters/make-excerpt.js +10 -0
- package/dist/modules/public-site/liquidjs-filters/make-excerpt.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/obfuscate.d.ts +3 -0
- package/dist/modules/public-site/liquidjs-filters/obfuscate.js +15 -0
- package/dist/modules/public-site/liquidjs-filters/obfuscate.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.d.ts +4 -0
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js +39 -0
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/translate-filter.1.d.ts +3 -0
- package/dist/modules/public-site/liquidjs-filters/translate-filter.1.js +12 -0
- package/dist/modules/public-site/liquidjs-filters/translate-filter.1.js.map +1 -0
- package/dist/modules/public-site/liquidjs-filters/translate-filter.d.ts +3 -0
- package/dist/modules/public-site/liquidjs-filters/translate-filter.js +12 -0
- package/dist/modules/public-site/liquidjs-filters/translate-filter.js.map +1 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/collection.d.ts +1 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/collection.js +18 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/collection.js.map +1 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/forloop-drop.d.ts +15 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/forloop-drop.js +40 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/forloop-drop.js.map +1 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/render.d.ts +13 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/render.js +108 -0
- package/dist/modules/public-site/liquidjs-rendering/render-clone/render.js.map +1 -0
- package/dist/modules/public-site/liquidjs-rendering/render-liquidjs.d.ts +6 -0
- package/dist/modules/public-site/liquidjs-rendering/render-liquidjs.js +40 -0
- package/dist/modules/public-site/liquidjs-rendering/render-liquidjs.js.map +1 -0
- package/dist/modules/public-site/liquidjs-rendering/rendering-context.d.ts +27 -0
- package/dist/modules/public-site/liquidjs-rendering/rendering-context.js +46 -0
- package/dist/modules/public-site/liquidjs-rendering/rendering-context.js.map +1 -0
- package/dist/modules/public-site/liquidjs-tags/get-breadcrumb-liquidjs-tag.d.ts +13 -0
- package/dist/modules/public-site/liquidjs-tags/get-breadcrumb-liquidjs-tag.js +49 -0
- package/dist/modules/public-site/liquidjs-tags/get-breadcrumb-liquidjs-tag.js.map +1 -0
- package/dist/modules/public-site/liquidjs-tags/get-page-tag.d.ts +13 -0
- package/dist/modules/public-site/liquidjs-tags/get-page-tag.js +68 -0
- package/dist/modules/public-site/liquidjs-tags/get-page-tag.js.map +1 -0
- package/dist/modules/public-site/liquidjs-tags/get-pages-tag.d.ts +13 -0
- package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js +94 -0
- package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js.map +1 -0
- package/dist/modules/public-site/liquidjs-tags/get-siblings-liquidjs-tag.d.ts +13 -0
- package/dist/modules/public-site/liquidjs-tags/get-siblings-liquidjs-tag.js +61 -0
- package/dist/modules/public-site/liquidjs-tags/get-siblings-liquidjs-tag.js.map +1 -0
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.d.ts +13 -0
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js +53 -0
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js.map +1 -0
- package/dist/modules/public-site/media-serve/_media-serve-helpers.d.ts +11 -0
- package/dist/modules/public-site/media-serve/_media-serve-helpers.js +26 -0
- package/dist/modules/public-site/media-serve/_media-serve-helpers.js.map +1 -0
- package/dist/modules/public-site/media-serve/media-serve.controller.d.ts +4 -0
- package/dist/modules/public-site/media-serve/media-serve.controller.js +140 -0
- package/dist/modules/public-site/media-serve/media-serve.controller.js.map +1 -0
- package/dist/modules/public-site/media-serve/media-serve.module.d.ts +2 -0
- package/dist/modules/public-site/media-serve/media-serve.module.js +20 -0
- package/dist/modules/public-site/media-serve/media-serve.module.js.map +1 -0
- package/dist/modules/public-site/oauth2-client.controller.d.ts +10 -0
- package/dist/modules/public-site/oauth2-client.controller.js +144 -0
- package/dist/modules/public-site/oauth2-client.controller.js.map +1 -0
- package/dist/modules/public-site/public-route/make-url.d.ts +11 -0
- package/dist/modules/public-site/public-route/make-url.js +150 -0
- package/dist/modules/public-site/public-route/make-url.js.map +1 -0
- package/dist/modules/public-site/public-route/public-route-parser.d.ts +16 -0
- package/dist/modules/public-site/public-route/public-route-parser.js +154 -0
- package/dist/modules/public-site/public-route/public-route-parser.js.map +1 -0
- package/dist/modules/public-site/public-route/raw-document-payload.d.ts +8 -0
- package/dist/modules/public-site/public-route/raw-document-payload.js +86 -0
- package/dist/modules/public-site/public-route/raw-document-payload.js.map +1 -0
- package/dist/modules/public-site/public-site.controller.d.ts +7 -0
- package/dist/modules/public-site/public-site.controller.js +58 -0
- package/dist/modules/public-site/public-site.controller.js.map +1 -0
- package/dist/modules/public-site/public-site.middleware.d.ts +5 -0
- package/dist/modules/public-site/public-site.middleware.js +67 -0
- package/dist/modules/public-site/public-site.middleware.js.map +1 -0
- package/dist/modules/public-site/public-site.module.d.ts +4 -0
- package/dist/modules/public-site/public-site.module.js +27 -0
- package/dist/modules/public-site/public-site.module.js.map +1 -0
- package/dist/modules/public-site/serve-document/serve-document.d.ts +20 -0
- package/dist/modules/public-site/serve-document/serve-document.js +60 -0
- package/dist/modules/public-site/serve-document/serve-document.js.map +1 -0
- package/dist/modules/security/app-throttler-guard.d.ts +8 -0
- package/dist/modules/security/app-throttler-guard.js +18 -0
- package/dist/modules/security/app-throttler-guard.js.map +1 -0
- package/dist/modules/security/complexity-plugin.d.ts +8 -0
- package/dist/modules/security/complexity-plugin.js +46 -0
- package/dist/modules/security/complexity-plugin.js.map +1 -0
- package/dist/modules/security/gqlThrottlerGuard.d.ts +8 -0
- package/dist/modules/security/gqlThrottlerGuard.js +24 -0
- package/dist/modules/security/gqlThrottlerGuard.js.map +1 -0
- package/dist/nest-custom-logger.d.ts +8 -0
- package/dist/nest-custom-logger.js +23 -0
- package/dist/nest-custom-logger.js.map +1 -0
- package/dist/public-payload/breadcrumb.queries.d.ts +5 -0
- package/dist/public-payload/breadcrumb.queries.js +26 -0
- package/dist/public-payload/breadcrumb.queries.js.map +1 -0
- package/dist/public-payload/create-page-drop.d.ts +11 -0
- package/dist/public-payload/create-page-drop.js +160 -0
- package/dist/public-payload/create-page-drop.js.map +1 -0
- package/dist/public-payload/create-page-part-drop.d.ts +7 -0
- package/dist/public-payload/create-page-part-drop.js +39 -0
- package/dist/public-payload/create-page-part-drop.js.map +1 -0
- package/dist/public-payload/create-page-payload-drop.d.ts +10 -0
- package/dist/public-payload/create-page-payload-drop.js +143 -0
- package/dist/public-payload/create-page-payload-drop.js.map +1 -0
- package/dist/public-payload/excerpt.queries.d.ts +10 -0
- package/dist/public-payload/excerpt.queries.js +38 -0
- package/dist/public-payload/excerpt.queries.js.map +1 -0
- package/dist/public-payload/field-values.d.ts +9 -0
- package/dist/public-payload/field-values.js +99 -0
- package/dist/public-payload/field-values.js.map +1 -0
- package/dist/public-payload/get-siblings.queries.d.ts +5 -0
- package/dist/public-payload/get-siblings.queries.js +117 -0
- package/dist/public-payload/get-siblings.queries.js.map +1 -0
- package/dist/public-payload/liquidjs-drop.d.ts +31 -0
- package/dist/public-payload/liquidjs-drop.js +45 -0
- package/dist/public-payload/liquidjs-drop.js.map +1 -0
- package/dist/public-payload/load-default-image.d.ts +8 -0
- package/dist/public-payload/load-default-image.js +52 -0
- package/dist/public-payload/load-default-image.js.map +1 -0
- package/dist/public-payload/make-basic-payload.d.ts +6 -0
- package/dist/public-payload/make-basic-payload.js +19 -0
- package/dist/public-payload/make-basic-payload.js.map +1 -0
- package/dist/public-payload/make-image-available.d.ts +26 -0
- package/dist/public-payload/make-image-available.js +38 -0
- package/dist/public-payload/make-image-available.js.map +1 -0
- package/dist/public-payload/page-values.queries.d.ts +27 -0
- package/dist/public-payload/page-values.queries.js +110 -0
- package/dist/public-payload/page-values.queries.js.map +1 -0
- package/dist/public-payload/parts.queries.d.ts +6 -0
- package/dist/public-payload/parts.queries.js +123 -0
- package/dist/public-payload/parts.queries.js.map +1 -0
- package/dist/public-payload/public-payload.types.d.ts +130 -0
- package/dist/public-payload/public-payload.types.js +3 -0
- package/dist/public-payload/public-payload.types.js.map +1 -0
- package/dist/public-payload/site-payload.d.ts +4 -0
- package/dist/public-payload/site-payload.js +43 -0
- package/dist/public-payload/site-payload.js.map +1 -0
- package/dist/public-payload/taxonomies.queries.d.ts +13 -0
- package/dist/public-payload/taxonomies.queries.js +45 -0
- package/dist/public-payload/taxonomies.queries.js.map +1 -0
- package/dist/public-payload/translations.queries.d.ts +7 -0
- package/dist/public-payload/translations.queries.js +62 -0
- package/dist/public-payload/translations.queries.js.map +1 -0
- package/dist/public.types.d.ts +5 -0
- package/dist/public.types.js +3 -0
- package/dist/public.types.js.map +1 -0
- package/dist/share/pino-app-log.d.ts +26 -0
- package/dist/share/pino-app-log.js +138 -0
- package/dist/share/pino-app-log.js.map +1 -0
- package/dist/share/read-configuration.d.ts +7 -0
- package/dist/share/read-configuration.js +31 -0
- package/dist/share/read-configuration.js.map +1 -0
- package/dist/site-backup/archiver.helper.d.ts +12 -0
- package/dist/site-backup/archiver.helper.js +43 -0
- package/dist/site-backup/archiver.helper.js.map +1 -0
- package/dist/site-backup/backup-tasks.d.ts +11 -0
- package/dist/site-backup/backup-tasks.js +98 -0
- package/dist/site-backup/backup-tasks.js.map +1 -0
- package/dist/site-backup/backup.d.ts +11 -0
- package/dist/site-backup/backup.helper.d.ts +3 -0
- package/dist/site-backup/backup.helper.js +13 -0
- package/dist/site-backup/backup.helper.js.map +1 -0
- package/dist/site-backup/backup.js +34 -0
- package/dist/site-backup/backup.js.map +1 -0
- package/dist/site-backup/default-data/default-config.d.ts +1 -0
- package/dist/site-backup/default-data/default-config.js +50 -0
- package/dist/site-backup/default-data/default-config.js.map +1 -0
- package/dist/site-backup/default-data/default-readme.d.ts +1 -0
- package/dist/site-backup/default-data/default-readme.js +8 -0
- package/dist/site-backup/default-data/default-readme.js.map +1 -0
- package/dist/site-context/db-init/db-init.d.ts +11 -0
- package/dist/site-context/db-init/db-init.js +37 -0
- package/dist/site-context/db-init/db-init.js.map +1 -0
- package/dist/site-context/db-init/ddl-migration.d.ts +13 -0
- package/dist/site-context/db-init/ddl-migration.js +26 -0
- package/dist/site-context/db-init/ddl-migration.js.map +1 -0
- package/dist/site-context/db-init/init-routing-points.d.ts +4 -0
- package/dist/site-context/db-init/init-routing-points.js +147 -0
- package/dist/site-context/db-init/init-routing-points.js.map +1 -0
- package/dist/site-context/site-conf.d.ts +17 -0
- package/dist/site-context/site-conf.js +103 -0
- package/dist/site-context/site-conf.js.map +1 -0
- package/dist/site-context/site-context.d.ts +11 -0
- package/dist/site-context/site-context.js +234 -0
- package/dist/site-context/site-context.js.map +1 -0
- package/dist/site-context/site-context.types.d.ts +46 -0
- package/dist/site-context/site-context.types.js +3 -0
- package/dist/site-context/site-context.types.js.map +1 -0
- package/dist/site-context/theme-conf-reader.d.ts +4 -0
- package/dist/site-context/theme-conf-reader.js +33 -0
- package/dist/site-context/theme-conf-reader.js.map +1 -0
- package/dist/site-context/theme-conf-types.d.ts +4 -0
- package/dist/site-context/theme-conf-types.js +3 -0
- package/dist/site-context/theme-conf-types.js.map +1 -0
- package/dist/site-schema/common-schema-reader.d.ts +6 -0
- package/dist/site-schema/common-schema-reader.js +29 -0
- package/dist/site-schema/common-schema-reader.js.map +1 -0
- package/dist/site-schema/merged-schema-lib.d.ts +30 -0
- package/dist/site-schema/merged-schema-lib.js +118 -0
- package/dist/site-schema/merged-schema-lib.js.map +1 -0
- package/dist/site-schema/read-locales.d.ts +24 -0
- package/dist/site-schema/read-locales.js +171 -0
- package/dist/site-schema/read-locales.js.map +1 -0
- package/dist/site-schema/site-schema-factory.d.ts +2 -0
- package/dist/site-schema/site-schema-factory.js +382 -0
- package/dist/site-schema/site-schema-factory.js.map +1 -0
- package/dist/site-schema/site-schema-helpers.d.ts +5 -0
- package/dist/site-schema/site-schema-helpers.js +27 -0
- package/dist/site-schema/site-schema-helpers.js.map +1 -0
- package/dist/site-schema/site-schema-lib-reader.d.ts +14 -0
- package/dist/site-schema/site-schema-lib-reader.js +48 -0
- package/dist/site-schema/site-schema-lib-reader.js.map +1 -0
- package/dist/start.d.ts +1 -0
- package/dist/start.js +5 -0
- package/dist/start.js.map +1 -0
- package/dist/types.to.json +1 -0
- package/locales/en.json +18 -0
- package/locales/fr.json +18 -0
- package/package.json +99 -0
- package/schema.gql +293 -0
- package/site-schema-lib/common-schema.json +36 -0
- package/site-schema-lib/common-schema.l10n.en.json +10 -0
- package/site-schema-lib/common-schema.l10n.fr.json +10 -0
- package/site-schema-lib/fields.site-schema.json +79 -0
- package/site-schema-lib/fields.site-schema.l10n.en.json +26 -0
- package/site-schema-lib/fields.site-schema.l10n.fr.json +26 -0
- package/site-schema-lib/gallery-page.site-schema.json +19 -0
- package/site-schema-lib/gallery-page.site-schema.l10n.en.json +11 -0
- package/site-schema-lib/gallery-page.site-schema.l10n.fr.json +11 -0
- package/site-schema-lib/lowcost.site-schema.json +84 -0
- package/site-schema-lib/lowcost.site-schema.l10n.en.json +30 -0
- package/site-schema-lib/lowcost.site-schema.l10n.fr.json +30 -0
- package/site-schema-lib/media-policies.site-schema.json +26 -0
- package/site-schema-lib/portfolio.site-schema.json +28 -0
- package/site-schema-lib/portfolio.site-schema.l10n.en.json +16 -0
- package/site-schema-lib/portfolio.site-schema.l10n.fr.json +16 -0
- package/site-schema-lib/post.site-schema.json +48 -0
- package/site-schema-lib/post.site-schema.l10n.en.json +28 -0
- package/site-schema-lib/post.site-schema.l10n.fr.json +27 -0
- package/site-schema-lib/simple-pages.site-schema.json +19 -0
- package/site-schema-lib/simple-pages.site-schema.l10n.en.json +11 -0
- package/site-schema-lib/simple-pages.site-schema.l10n.fr.json +11 -0
- package/site-schema-lib/special-page.site-schema.json +42 -0
- package/site-schema-lib/special-page.site-schema.l10n.en.json +16 -0
- package/site-schema-lib/special-page.site-schema.l10n.fr.json +16 -0
- package/site-schema-lib/tour.site-schema.json +70 -0
- package/site-schema-lib/tour.site-schema.l10n.en.json +37 -0
- package/site-schema-lib/tour.site-schema.l10n.fr.json +37 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadSiteSchema = void 0;
|
|
4
|
+
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
5
|
+
const promises_1 = require("fs/promises");
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
const context_1 = require("../context");
|
|
8
|
+
const utils_helper_1 = require("../helpers/utils-helper");
|
|
9
|
+
const merged_schema_lib_1 = require("./merged-schema-lib");
|
|
10
|
+
const read_locales_1 = require("./read-locales");
|
|
11
|
+
const site_schema_helpers_1 = require("./site-schema-helpers");
|
|
12
|
+
const authorizedClassicRoute = new Set([":relativeId-:slug", ":yyyy/:mm/:dd/:relativeId-:slug"]);
|
|
13
|
+
const invalidFieldNames = ["featuredImage", "boFavicon"];
|
|
14
|
+
async function loadSiteSchema(siteDir) {
|
|
15
|
+
const jsonData = await readJsonOfSiteSchema((0, path_1.join)(siteDir, "site-schema.json"));
|
|
16
|
+
const lib = (0, merged_schema_lib_1.prepareLib)(jsonData.useModules, (0, context_1.getSiteSchemaLib)(), jsonData.langs);
|
|
17
|
+
const l10n = (0, read_locales_1.createEmptySchemaLocales)(jsonData.langs);
|
|
18
|
+
(0, read_locales_1.importPartOfL10n)({
|
|
19
|
+
from: lib.common.l10n,
|
|
20
|
+
fromPath: ["site", "fields"],
|
|
21
|
+
to: l10n,
|
|
22
|
+
toPath: ["site", "fields"],
|
|
23
|
+
ifDuplicate: "overwrite",
|
|
24
|
+
});
|
|
25
|
+
const imageQualityPolicy = lib.module.imageQualityPolicy ?? jsonData.imageQualityPolicy;
|
|
26
|
+
if (!imageQualityPolicy)
|
|
27
|
+
throw new Error("missing 'imageQualityPolicy' in site-schema");
|
|
28
|
+
const jsonSiteFields = jsonData.site?.fields ?? lib.module.site?.fields;
|
|
29
|
+
const siteFields = jsonSiteFields === undefined
|
|
30
|
+
? []
|
|
31
|
+
: jsonSiteFields.map((item) => typeof item === "string" ? importSiteField(item, l10n, lib) : item);
|
|
32
|
+
checkFieldNames(siteFields, { common: lib.common, type: "site" });
|
|
33
|
+
const newSchema = {
|
|
34
|
+
langs: jsonData.langs,
|
|
35
|
+
langLabels: makeLangLabels(jsonData.langs, context_1.langLabels),
|
|
36
|
+
site: {
|
|
37
|
+
kind: "site",
|
|
38
|
+
leafType: site_schema_helpers_1.siteLeafType,
|
|
39
|
+
withData: true,
|
|
40
|
+
fields: [...lib.common.site.fields, ...siteFields],
|
|
41
|
+
},
|
|
42
|
+
documentTypes: {
|
|
43
|
+
home: undefined,
|
|
44
|
+
},
|
|
45
|
+
partTypes: {},
|
|
46
|
+
mediaPolicies: {
|
|
47
|
+
default: undefined,
|
|
48
|
+
},
|
|
49
|
+
imageQualityPolicy,
|
|
50
|
+
l10n,
|
|
51
|
+
};
|
|
52
|
+
importMediaPolicy(newSchema, lib, "default", { ensureImagePolicy: true });
|
|
53
|
+
appendDocumentTypesToSiteSchema(jsonData, newSchema, lib);
|
|
54
|
+
await (0, read_locales_1.completeSchemaLocales)(siteDir, l10n);
|
|
55
|
+
checkRoutingPointDocumentTypes(newSchema);
|
|
56
|
+
return newSchema;
|
|
57
|
+
}
|
|
58
|
+
exports.loadSiteSchema = loadSiteSchema;
|
|
59
|
+
function appendDocumentTypesToSiteSchema(jsonData, newSchema, lib) {
|
|
60
|
+
for (const item of jsonData.documentTypes ?? ["home"]) {
|
|
61
|
+
if (typeof item === "string") {
|
|
62
|
+
importDocumentType(newSchema, lib, item);
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
(0, site_schema_helpers_1.checkLeafType)(item.leafType);
|
|
66
|
+
if (newSchema.documentTypes[item.leafType]) {
|
|
67
|
+
throw new Error(`Duplicated document type '${item.leafType}'`);
|
|
68
|
+
}
|
|
69
|
+
newSchema.documentTypes[item.leafType] = toDocumentSchema({
|
|
70
|
+
newSchema,
|
|
71
|
+
jsonData: item,
|
|
72
|
+
langs: newSchema.langs,
|
|
73
|
+
lib,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
for (const item of jsonData.partTypes ?? []) {
|
|
77
|
+
(0, site_schema_helpers_1.checkLeafType)(item.leafType);
|
|
78
|
+
if (newSchema.partTypes[item.leafType]) {
|
|
79
|
+
throw new Error(`Duplicated document part type '${item.leafType}'`);
|
|
80
|
+
}
|
|
81
|
+
newSchema.partTypes[item.leafType] = toPartType(item, newSchema.l10n, lib);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function toDocumentSchema({ newSchema, jsonData, langs, lib, }) {
|
|
85
|
+
const from = jsonData.from ? getDocumentType(jsonData.from, lib) : undefined;
|
|
86
|
+
let isRoutingPoint = isRoutingPointRoute(jsonData.route);
|
|
87
|
+
if (from) {
|
|
88
|
+
const isFromRP = isRoutingPointRoute(from.route);
|
|
89
|
+
if (jsonData.route) {
|
|
90
|
+
if (isRoutingPoint !== isFromRP) {
|
|
91
|
+
throw new Error(`document type '${jsonData.leafType}' cannot extends '${from.leafType}'`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
isRoutingPoint = isFromRP;
|
|
96
|
+
}
|
|
97
|
+
(0, read_locales_1.importPartOfL10n)({
|
|
98
|
+
from: lib.l10n,
|
|
99
|
+
fromPath: ["documentTypes", from.leafType],
|
|
100
|
+
to: newSchema.l10n,
|
|
101
|
+
toPath: ["documentTypes", jsonData.leafType],
|
|
102
|
+
});
|
|
103
|
+
importDocumentTypeDependencies(newSchema, lib, from);
|
|
104
|
+
}
|
|
105
|
+
const merged = from ? { ...from, ...jsonData } : jsonData;
|
|
106
|
+
const jsonFields = merged.fields;
|
|
107
|
+
const fields = jsonFields === undefined
|
|
108
|
+
? undefined
|
|
109
|
+
: jsonFields.map((item) => typeof item === "string"
|
|
110
|
+
? importSectionField({
|
|
111
|
+
fieldName: item,
|
|
112
|
+
fillL10n: newSchema.l10n,
|
|
113
|
+
fillL10nPath: ["documentTypes", jsonData.leafType, "fields"],
|
|
114
|
+
lib,
|
|
115
|
+
})
|
|
116
|
+
: item);
|
|
117
|
+
if (fields)
|
|
118
|
+
checkFieldNames(fields, { common: lib.common, type: "document" });
|
|
119
|
+
if (isRoutingPoint)
|
|
120
|
+
return toRoutingPointDocumentSchema(merged, langs, fields);
|
|
121
|
+
return toClassicDocumentSchema(merged, fields);
|
|
122
|
+
}
|
|
123
|
+
function importDocumentTypeDependencies(newSchema, lib, jsonData) {
|
|
124
|
+
for (const listType of jsonData.partLists ?? []) {
|
|
125
|
+
for (const leafType of listType.partLeafTypes) {
|
|
126
|
+
importPartType(newSchema, lib, leafType, { skipDuplicate: true });
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
for (const taxonomy of jsonData.useTaxonomies ?? []) {
|
|
130
|
+
importDocumentType(newSchema, lib, taxonomy.leafType, { skipDuplicate: true });
|
|
131
|
+
}
|
|
132
|
+
for (const childLeafType of jsonData.children ?? []) {
|
|
133
|
+
importDocumentType(newSchema, lib, childLeafType, { skipDuplicate: true });
|
|
134
|
+
}
|
|
135
|
+
if (jsonData.mediaPolicy) {
|
|
136
|
+
importMediaPolicy(newSchema, lib, jsonData.mediaPolicy, { skipDuplicate: true });
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function toRoutingPointDocumentSchema(jsonData, langs, fields) {
|
|
140
|
+
const dashedName = (0, utils_helper_1.pascalCaseToDashed)(jsonData.leafType);
|
|
141
|
+
return {
|
|
142
|
+
kind: "routingPoint",
|
|
143
|
+
leafType: jsonData.leafType,
|
|
144
|
+
boDirName: dashedName,
|
|
145
|
+
urlPaths: toUrlPaths(jsonData.route, langs),
|
|
146
|
+
withData: jsonData.withData ?? false,
|
|
147
|
+
fields,
|
|
148
|
+
mediaPolicy: jsonData.mediaPolicy,
|
|
149
|
+
partLists: jsonData.partLists,
|
|
150
|
+
children: jsonData.children,
|
|
151
|
+
childOrdering: (0, site_schema_helpers_1.parseChildOrdering)(jsonData.childOrdering),
|
|
152
|
+
childLimit: jsonData.childLimit,
|
|
153
|
+
useTaxonomies: jsonData.useTaxonomies,
|
|
154
|
+
templateNames: [dashedName],
|
|
155
|
+
ogType: jsonData.ogType,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function toUrlPaths(route, langs, defaultUrlPaths) {
|
|
159
|
+
if (!route)
|
|
160
|
+
return;
|
|
161
|
+
const urlPaths = {};
|
|
162
|
+
if (typeof route === "string") {
|
|
163
|
+
for (const lang of langs) {
|
|
164
|
+
urlPaths[lang] = route;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
const defaultLang = langs[0];
|
|
169
|
+
if (!defaultLang)
|
|
170
|
+
throw new Error("missing langs in site-schema");
|
|
171
|
+
for (const lang of langs) {
|
|
172
|
+
const val = route[lang] ?? defaultUrlPaths?.[lang] ?? route[defaultLang];
|
|
173
|
+
if (!val)
|
|
174
|
+
throw new Error("missing lang");
|
|
175
|
+
if (val.includes(":"))
|
|
176
|
+
throw new Error("route should not contain ':'");
|
|
177
|
+
urlPaths[lang] = val;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return urlPaths;
|
|
181
|
+
}
|
|
182
|
+
function toClassicDocumentSchema(jsonData, fields) {
|
|
183
|
+
if (jsonData.route &&
|
|
184
|
+
(typeof jsonData.route !== "string" || !authorizedClassicRoute.has(jsonData.route))) {
|
|
185
|
+
throw new Error(`invalid route '${jsonData.route}'`);
|
|
186
|
+
}
|
|
187
|
+
const dashedName = (0, utils_helper_1.pascalCaseToDashed)(jsonData.leafType);
|
|
188
|
+
if (!jsonData.route) {
|
|
189
|
+
throw new Error(`missing route in '${jsonData.leafType}'`);
|
|
190
|
+
}
|
|
191
|
+
if (!jsonData.withData) {
|
|
192
|
+
throw new Error(`classic document '${jsonData.leafType}' must have 'data.document' to true`);
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
kind: "classic",
|
|
196
|
+
leafType: jsonData.leafType,
|
|
197
|
+
boDirName: dashedName,
|
|
198
|
+
route: jsonData.route,
|
|
199
|
+
withData: true,
|
|
200
|
+
fields,
|
|
201
|
+
mediaPolicy: jsonData.mediaPolicy,
|
|
202
|
+
partLists: jsonData.partLists,
|
|
203
|
+
children: jsonData.children,
|
|
204
|
+
childOrdering: (0, site_schema_helpers_1.parseChildOrdering)(jsonData.childOrdering),
|
|
205
|
+
childLimit: jsonData.childLimit,
|
|
206
|
+
useTaxonomies: jsonData.useTaxonomies,
|
|
207
|
+
autoPublish: jsonData.autoPublish,
|
|
208
|
+
relativeIdGenerator: formatRelativeIdGeneratorSchema(jsonData.relativeIdGenerator, {
|
|
209
|
+
varName: "relativeIdGenerator",
|
|
210
|
+
}),
|
|
211
|
+
templateNames: [dashedName],
|
|
212
|
+
ogType: jsonData.ogType,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function isRoutingPointRoute(route) {
|
|
216
|
+
return (route === undefined ||
|
|
217
|
+
typeof route === "object" ||
|
|
218
|
+
(typeof route === "string" && !route.includes(":")));
|
|
219
|
+
}
|
|
220
|
+
function formatRelativeIdGeneratorSchema(val, formatOptions) {
|
|
221
|
+
if (!val)
|
|
222
|
+
return;
|
|
223
|
+
if (val.length === 0) {
|
|
224
|
+
throw new Error(`invalid empty value for '${formatOptions.varName}'`);
|
|
225
|
+
}
|
|
226
|
+
val[0] = (0, data_formatters_lib_1.strVal)(val[0], { varName: `${formatOptions.varName}[0]` });
|
|
227
|
+
return val;
|
|
228
|
+
}
|
|
229
|
+
function checkRoutingPointDocumentTypes(newSchema) {
|
|
230
|
+
for (const documentType of Object.values(newSchema.documentTypes)) {
|
|
231
|
+
if (documentType.kind !== "routingPoint" || documentType.leafType === "home")
|
|
232
|
+
continue;
|
|
233
|
+
if (!documentType.urlPaths) {
|
|
234
|
+
throw new Error(`Missing route for non-home document type '${documentType.leafType}'`);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
function toPartType(jsonData, l10n, lib) {
|
|
239
|
+
const jsonFields = jsonData.fields;
|
|
240
|
+
const fields = jsonFields === undefined
|
|
241
|
+
? undefined
|
|
242
|
+
: jsonFields.map((item) => typeof item === "string"
|
|
243
|
+
? importSectionField({
|
|
244
|
+
fieldName: item,
|
|
245
|
+
fillL10n: l10n,
|
|
246
|
+
fillL10nPath: ["partTypes", jsonData.leafType, "fields"],
|
|
247
|
+
lib,
|
|
248
|
+
})
|
|
249
|
+
: item);
|
|
250
|
+
if (fields)
|
|
251
|
+
checkFieldNames(fields, { common: lib.common, type: "part" });
|
|
252
|
+
return {
|
|
253
|
+
kind: "part",
|
|
254
|
+
leafType: jsonData.leafType,
|
|
255
|
+
withData: jsonData.withData,
|
|
256
|
+
fields,
|
|
257
|
+
mediaPolicy: jsonData.mediaPolicy,
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
function importDocumentType(newSchema, lib, leafType, options = {}) {
|
|
261
|
+
if (newSchema.documentTypes[leafType]) {
|
|
262
|
+
if (options.skipDuplicate)
|
|
263
|
+
return;
|
|
264
|
+
throw new Error(`Duplicate document type '${leafType}'`);
|
|
265
|
+
}
|
|
266
|
+
const jsonData = lib.module.documentTypes[leafType];
|
|
267
|
+
if (!jsonData)
|
|
268
|
+
throw new Error(`Unknown document type '${leafType}'`);
|
|
269
|
+
(0, read_locales_1.importPartOfL10n)({ from: lib.l10n, fromPath: ["documentTypes", leafType], to: newSchema.l10n });
|
|
270
|
+
newSchema.documentTypes[leafType] = toDocumentSchema({
|
|
271
|
+
newSchema,
|
|
272
|
+
jsonData,
|
|
273
|
+
lib,
|
|
274
|
+
langs: newSchema.langs,
|
|
275
|
+
});
|
|
276
|
+
importDocumentTypeDependencies(newSchema, lib, jsonData);
|
|
277
|
+
}
|
|
278
|
+
function importPartType(newSchema, lib, leafType, options = {}) {
|
|
279
|
+
if (newSchema.partTypes[leafType]) {
|
|
280
|
+
if (options.skipDuplicate)
|
|
281
|
+
return;
|
|
282
|
+
throw new Error(`Duplicate section type '${leafType}'`);
|
|
283
|
+
}
|
|
284
|
+
const jsonData = lib.module.partTypes[leafType];
|
|
285
|
+
if (!jsonData)
|
|
286
|
+
throw new Error(`Unknown section type '${leafType}'`);
|
|
287
|
+
(0, read_locales_1.importPartOfL10n)({
|
|
288
|
+
from: lib.l10n,
|
|
289
|
+
fromPath: ["partTypes", leafType],
|
|
290
|
+
to: newSchema.l10n,
|
|
291
|
+
});
|
|
292
|
+
newSchema.partTypes[leafType] = toPartType(jsonData, newSchema.l10n, lib);
|
|
293
|
+
if (jsonData.mediaPolicy) {
|
|
294
|
+
importMediaPolicy(newSchema, lib, jsonData.mediaPolicy, { skipDuplicate: true });
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function importMediaPolicy(newSchema, lib, policyName, options = {}) {
|
|
298
|
+
if (newSchema.mediaPolicies[policyName]) {
|
|
299
|
+
if (options.skipDuplicate)
|
|
300
|
+
return;
|
|
301
|
+
throw new Error(`Duplicate media policy '${policyName}'`);
|
|
302
|
+
}
|
|
303
|
+
const jsonData = lib.module.mediaPolicies[policyName];
|
|
304
|
+
if (!jsonData)
|
|
305
|
+
throw new Error(`Unknown media policy '${policyName}'`);
|
|
306
|
+
if (options.ensureImagePolicy && !jsonData.image) {
|
|
307
|
+
throw new Error(`missing 'image' in media policy '${policyName}'`);
|
|
308
|
+
}
|
|
309
|
+
(0, read_locales_1.importPartOfL10n)({
|
|
310
|
+
from: lib.l10n,
|
|
311
|
+
fromPath: ["mediaPolicies", policyName],
|
|
312
|
+
to: newSchema.l10n,
|
|
313
|
+
});
|
|
314
|
+
newSchema.mediaPolicies[policyName] = jsonData;
|
|
315
|
+
}
|
|
316
|
+
async function readJsonOfSiteSchema(file) {
|
|
317
|
+
const json = await (0, promises_1.readFile)(file, {
|
|
318
|
+
encoding: "utf8",
|
|
319
|
+
});
|
|
320
|
+
const data = JSON.parse(json);
|
|
321
|
+
const result = context_1.typeValidator.validate("JsonOfSiteSchema", data);
|
|
322
|
+
if (!result.valid) {
|
|
323
|
+
throw new Error(`invalid site-schema '${file}': ${result.error ?? "(missing message)"}`);
|
|
324
|
+
}
|
|
325
|
+
return data;
|
|
326
|
+
}
|
|
327
|
+
function importSiteField(fieldName, fillL10n, lib) {
|
|
328
|
+
const field = lib.module.siteFieldLib[fieldName];
|
|
329
|
+
if (!field)
|
|
330
|
+
throw new Error(`unknown site-field '${fieldName}'`);
|
|
331
|
+
(0, read_locales_1.importPartOfL10n)({
|
|
332
|
+
from: lib.l10n,
|
|
333
|
+
fromPath: ["siteFieldLib", fieldName],
|
|
334
|
+
to: fillL10n,
|
|
335
|
+
toPath: ["site", "fields", fieldName],
|
|
336
|
+
});
|
|
337
|
+
return field;
|
|
338
|
+
}
|
|
339
|
+
function importSectionField({ fieldName, fillL10n, fillL10nPath, lib, }) {
|
|
340
|
+
const field = lib.module.sectionFieldLib[fieldName];
|
|
341
|
+
if (!field)
|
|
342
|
+
throw new Error(`unknown section-field '${fieldName}'`);
|
|
343
|
+
(0, read_locales_1.importPartOfL10n)({
|
|
344
|
+
from: lib.l10n,
|
|
345
|
+
fromPath: ["sectionFieldLib", fieldName],
|
|
346
|
+
to: fillL10n,
|
|
347
|
+
toPath: [...fillL10nPath, fieldName],
|
|
348
|
+
});
|
|
349
|
+
return field;
|
|
350
|
+
}
|
|
351
|
+
function makeLangLabels(langs, langLabelsLib) {
|
|
352
|
+
const newLabels = {};
|
|
353
|
+
for (const lang of langs) {
|
|
354
|
+
if (!langLabelsLib[lang])
|
|
355
|
+
throw new Error(`Invalid lang '${lang}'`);
|
|
356
|
+
newLabels[lang] = langLabelsLib[lang];
|
|
357
|
+
}
|
|
358
|
+
return newLabels;
|
|
359
|
+
}
|
|
360
|
+
function getDocumentType(leafType, lib) {
|
|
361
|
+
const jsonData = lib.module.documentTypes[leafType];
|
|
362
|
+
if (!jsonData)
|
|
363
|
+
throw new Error(`unknown document type '${leafType}'`);
|
|
364
|
+
return jsonData;
|
|
365
|
+
}
|
|
366
|
+
function checkFieldNames(fields, { common, type }) {
|
|
367
|
+
const names = fields.map((item) => item.name);
|
|
368
|
+
const set = new Set(names);
|
|
369
|
+
if (set.size !== fields.length)
|
|
370
|
+
throw new Error(`duplicated fields: ${names.join(", ")}`);
|
|
371
|
+
const invalidNames = type === "site"
|
|
372
|
+
? common.site.fields.map((item) => item.name)
|
|
373
|
+
: type === "document"
|
|
374
|
+
? ["title"]
|
|
375
|
+
: [];
|
|
376
|
+
invalidNames.push(...invalidFieldNames);
|
|
377
|
+
for (const invalidName of invalidNames) {
|
|
378
|
+
if (set.has(invalidName))
|
|
379
|
+
throw new Error(`invalid field name "${invalidName}"`);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
//# sourceMappingURL=site-schema-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-schema-factory.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-factory.ts"],"names":[],"mappings":";;;AAAA,oEAAoD;AAWpD,0CAAuC;AACvC,+BAA4B;AAC5B,wCAAyE;AACzE,0DAA6D;AAS7D,2DAAkE;AAClE,iDAAmG;AACnG,+DAAwF;AAExF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,mBAAmB,EAAE,iCAAiC,CAAC,CAAC,CAAC;AACjG,MAAM,iBAAiB,GAAG,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;AAElD,KAAK,UAAU,cAAc,CAAC,OAAe;IAClD,MAAM,QAAQ,GAAG,MAAM,oBAAoB,CAAC,IAAA,WAAI,EAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAE/E,MAAM,GAAG,GAAG,IAAA,8BAAU,EAAC,QAAQ,CAAC,UAAU,EAAE,IAAA,0BAAgB,GAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChF,MAAM,IAAI,GAAG,IAAA,uCAAwB,EAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,IAAA,+BAAgB,EAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI;QACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;QAC5B,EAAE,EAAE,IAAI;QACR,MAAM,E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AG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1F,MAAM,YAAY,GAChB,IAAI,KAAK,MAAM;QACb,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7C,CAAC,CAAC,IAAI,KAAK,UAAU;YACnB,CAAC,CAAC,CAAC,OAAO,CAAC;YACX,CAAC,CAAC,EAAE,CAAC;IACX,YAAY,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC;IACxC,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,WAAW,GAAG,CAAC,CAAC;IACnF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChildOrdering } from "@paroicms/anywhere-lib";
|
|
2
|
+
import { JsonOfChildOrdering } from "../typeonly/site-schema-json-types";
|
|
3
|
+
export declare const siteLeafType = "_site";
|
|
4
|
+
export declare function parseChildOrdering(val: JsonOfChildOrdering | undefined): ChildOrdering | undefined;
|
|
5
|
+
export declare function checkLeafType(leafType: string): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkLeafType = exports.parseChildOrdering = exports.siteLeafType = void 0;
|
|
4
|
+
exports.siteLeafType = "_site";
|
|
5
|
+
function parseChildOrdering(val) {
|
|
6
|
+
if (!val)
|
|
7
|
+
return;
|
|
8
|
+
if (val === "manual")
|
|
9
|
+
return "manual";
|
|
10
|
+
const childOrdering = [];
|
|
11
|
+
const arr = typeof val === "string" ? val.split(/\s*,\s*/) : val;
|
|
12
|
+
for (const item of arr) {
|
|
13
|
+
const [fieldName, direction] = item.split(/\s+/);
|
|
14
|
+
if ((direction !== "asc" && direction !== "desc") || !/^[a-zA-Z]+$/.test(fieldName)) {
|
|
15
|
+
throw new Error(`invalid child ordering '${item}'`);
|
|
16
|
+
}
|
|
17
|
+
childOrdering.push([fieldName, direction]);
|
|
18
|
+
}
|
|
19
|
+
return childOrdering;
|
|
20
|
+
}
|
|
21
|
+
exports.parseChildOrdering = parseChildOrdering;
|
|
22
|
+
function checkLeafType(leafType) {
|
|
23
|
+
if (leafType === exports.siteLeafType)
|
|
24
|
+
throw new Error(`Invalid leafType '${leafType}'`);
|
|
25
|
+
}
|
|
26
|
+
exports.checkLeafType = checkLeafType;
|
|
27
|
+
//# sourceMappingURL=site-schema-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-schema-helpers.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-helpers.ts"],"names":[],"mappings":";;;AAGa,QAAA,YAAY,GAAG,OAAO,CAAC;AAEpC,SAAgB,kBAAkB,CAChC,GAAoC;IAEpC,IAAI,CAAC,GAAG;QAAE,OAAO;IACjB,IAAI,GAAG,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAEtC,MAAM,aAAa,GAA+B,EAAE,CAAC;IACrD,MAAM,GAAG,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACjE,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;QACvB,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,KAAK,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACpF,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,GAAG,CAAC,CAAC;QACtD,CAAC;QACD,aAAa,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAjBD,gDAiBC;AAED,SAAgB,aAAa,CAAC,QAAgB;IAC5C,IAAI,QAAQ,KAAK,oBAAY;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,QAAQ,GAAG,CAAC,CAAC;AACnF,CAAC;AAFD,sCAEC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JsonOfSiteSchemaModule } from "../typeonly/site-schema-json-types";
|
|
2
|
+
import { CommonSchema } from "./common-schema-reader";
|
|
3
|
+
import { GroupedLabelLocales } from "./read-locales";
|
|
4
|
+
export declare const siteSchemaDirName = "site-schema-lib";
|
|
5
|
+
export interface SiteSchemaLibrary {
|
|
6
|
+
common: CommonSchema;
|
|
7
|
+
modules: {
|
|
8
|
+
[moduleName: string]: {
|
|
9
|
+
module: JsonOfSiteSchemaModule;
|
|
10
|
+
l10n: GroupedLabelLocales;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function readSiteSchemaLibraries(): Promise<SiteSchemaLibrary>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readSiteSchemaLibraries = exports.siteSchemaDirName = void 0;
|
|
4
|
+
const promises_1 = require("node:fs/promises");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const context_1 = require("../context");
|
|
7
|
+
const common_schema_reader_1 = require("./common-schema-reader");
|
|
8
|
+
const read_locales_1 = require("./read-locales");
|
|
9
|
+
const site_schema_helpers_1 = require("./site-schema-helpers");
|
|
10
|
+
exports.siteSchemaDirName = "site-schema-lib";
|
|
11
|
+
const siteSchemaSuffix = ".site-schema.json";
|
|
12
|
+
async function readSiteSchemaLibraries() {
|
|
13
|
+
const dir = (0, node_path_1.join)(context_1.packageDir, exports.siteSchemaDirName);
|
|
14
|
+
const siteSchemaLib = {
|
|
15
|
+
common: await (0, common_schema_reader_1.readCommonSchema)(dir),
|
|
16
|
+
modules: {},
|
|
17
|
+
};
|
|
18
|
+
const fileNames = await (0, promises_1.readdir)(dir);
|
|
19
|
+
for (const fileName of fileNames) {
|
|
20
|
+
if (!fileName.endsWith(siteSchemaSuffix))
|
|
21
|
+
continue;
|
|
22
|
+
const moduleName = fileName.substring(0, fileName.length - siteSchemaSuffix.length);
|
|
23
|
+
const module = await readJsonOfSiteSchemaModule({ fileName, dir });
|
|
24
|
+
const l10n = (0, read_locales_1.createEmptyGroupedLabelLocales)(module.langs);
|
|
25
|
+
await (0, read_locales_1.appendToSchemaLocales)({ dir, baseFileName: `${moduleName}.site-schema.l10n` }, l10n);
|
|
26
|
+
siteSchemaLib.modules[moduleName] = {
|
|
27
|
+
module,
|
|
28
|
+
l10n,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return siteSchemaLib;
|
|
32
|
+
}
|
|
33
|
+
exports.readSiteSchemaLibraries = readSiteSchemaLibraries;
|
|
34
|
+
async function readJsonOfSiteSchemaModule({ dir, fileName }) {
|
|
35
|
+
const json = await (0, promises_1.readFile)((0, node_path_1.join)(dir, fileName), {
|
|
36
|
+
encoding: "utf8",
|
|
37
|
+
});
|
|
38
|
+
const data = JSON.parse(json);
|
|
39
|
+
const result = context_1.typeValidator.validate("JsonOfSiteSchemaModule", data);
|
|
40
|
+
if (!result.valid) {
|
|
41
|
+
throw new Error(`invalid site-schema module file '${fileName}': ${result.error ?? "(missing message)"}`);
|
|
42
|
+
}
|
|
43
|
+
const module = data;
|
|
44
|
+
module.documentTypes?.forEach((item) => (0, site_schema_helpers_1.checkLeafType)(item.leafType));
|
|
45
|
+
module.partTypes?.forEach((item) => (0, site_schema_helpers_1.checkLeafType)(item.leafType));
|
|
46
|
+
return module;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=site-schema-lib-reader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-schema-lib-reader.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-lib-reader.ts"],"names":[],"mappings":";;;AAAA,+CAAqD;AACrD,yCAAiC;AACjC,wCAAuD;AAEvD,iEAAwE;AACxE,iDAIwB;AACxB,+DAAsD;AAEzC,QAAA,iBAAiB,GAAG,iBAAiB,CAAC;AACnD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AAYtC,KAAK,UAAU,uBAAuB;IAC3C,MAAM,GAAG,GAAG,IAAA,gBAAI,EAAC,oBAAU,EAAE,yBAAiB,CAAC,CAAC;IAEhD,MAAM,aAAa,GAAsB;QACvC,MAAM,EAAE,MAAM,IAAA,uCAAgB,EAAC,GAAG,CAAC;QACnC,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,MAAM,SAAS,GAAG,MAAM,IAAA,kBAAO,EAAC,GAAG,CAAC,CAAC;IACrC,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAAE,SAAS;QACnD,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACpF,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QACnE,MAAM,IAAI,GAAG,IAAA,6CAA8B,EAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1D,M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start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":";;AAAA,wBAA0B;AAE1B,KAAK,IAAA,QAAK,GAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"./configuration-types":{"namedTypes":[{"name":"Configuration","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SingleSiteConfiguration"},{"kind":"localRef","refName":"MultiSiteConfiguration"}]},{"name":"ConfigurationBase","exported":true,"kind":"interface","properties":[{"name":"thisServer","type":{"kind":"localRef","refName":"ThisServerConf"}},{"name":"log","type":{"kind":"localRef","refName":"LogConf"}},{"name":"allowRobots","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"immutableAssets","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"cacheTimeToIdle","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"literal","literal":"disabled"},{"kind":"literal","literal":"infinite"}]},"docComment":"For example: `\"14d\"`."},{"name":"clearCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"clearImageCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"devTools","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"googleAuth","type":{"kind":"localRef","refName":"GoogleAuth"}},{"name":"awsSesMail","type":{"kind":"localRef","refName":"AwsSesMailConf"}},{"name":"googleRecaptcha","type":{"kind":"localRef","refName":"GoogleRecaptchaConf"}},{"name":"imageProcessor","type":{"kind":"localRef","refName":"ImageProcessorConf"}},{"name":"devAccount","type":{"kind":"localRef","refName":"DevAccount"},"optional":true},{"name":"platformAdminAccounts","type":{"kind":"array","itemType":{"kind":"localRef","refName":"PlatformAdminAccount"}},"optional":true}]},{"name":"SingleSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"singleSite","type":{"kind":"localRef","refName":"SingleSiteConf"}}]}]},{"name":"MultiSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"platformDataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitePacks","type":{"kind":"array","itemType":{"kind":"localRef","refName":"SitePackConf"}}}]}]},{"name":"ThisServerConf","exported":true,"kind":"interface","properties":[{"name":"hostName","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"}},{"name":"publicPort","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"number"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"boPublicPort","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"number"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"https","type":{"kind":"name","group":"primitive","refName":"boolean"}}]},{"name":"LogConf","exported":true,"kind":"interface","properties":[{"name":"level","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]}},{"name":"file","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."},{"name":"prettyPrint","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"SingleSiteConf","exported":true,"kind":"interface","properties":[{"name":"siteDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"SitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"FqdnSitePackConf"},{"kind":"localRef","refName":"SubDomainSitePackConf"}]},{"name":"SitePackConfBase","exported":true,"kind":"interface","properties":[{"name":"packName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitesDir","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"FqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"GoogleAuth","exported":true,"kind":"interface","properties":[{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"clientId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientSecret","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"AwsSesMailConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"accessKeyId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretAccessKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"region","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"GoogleRecaptchaConf","exported":true,"kind":"interface","properties":[{"name":"siteKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretKey","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"ImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"oneSharpAtATime","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"DevAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"password","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"PlatformAdminAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},"./l10n-types":{"namedTypes":[{"name":"JsonOfLanguageSchemaLocales","exported":true,"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},"optional":true},{"name":"documentTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"partTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},{"name":"JsonOfLabelLocales","exported":true,"kind":"interface","indexSignature":{"keyName":"key","keyType":"string","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"localRef","refName":"JsonOfLabelLocales"}]}}}]},"./site-schema-json-types":{"namedTypes":[{"name":"JsonOfCommonSchema","exported":true,"kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}}}]}}]},{"name":"JsonOfSiteSchemaBase","exported":true,"kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}},{"name":"useModules","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true},{"name":"site","type":{"kind":"localRef","refName":"JsonOfSiteDataSchema"},"optional":true},{"name":"partTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartSchema"}},"optional":true},{"name":"mediaPolicies","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfMediaPolicy"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"imageQualityPolicy","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfImageCompressionQualityPolicy"}},"optional":true}]},{"name":"JsonOfSiteDataSchema","exported":true,"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true}]},{"name":"JsonOfSiteSchema","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfDocumentType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"If missing, then `[\"home\"]` is taken by default."}]}]},{"name":"JsonOfSiteSchemaModule","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfModuleDocumentType"}},"optional":true}]}]},{"name":"JsonOfModuleDocumentType","exported":true,"kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"route","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"interface","indexSignature":{"keyName":"lang","keyType":"string","type":{"kind":"name","group":"primitive","refName":"string"}}}]},"optional":true},{"name":"relativeIdGenerator","type":{"kind":"array","itemType":{"kind":"name","group":"ts","refName":"any"}},"optional":true},{"name":"children","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true},{"name":"childOrdering","type":{"kind":"localRef","refName":"JsonOfChildOrdering"},"optional":true},{"name":"childLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"partLists","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartListSchema"}},"optional":true},{"name":"useTaxonomies","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfUseTaxonomy"}},"optional":true},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"ogType","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"autoPublish","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"JsonOfChildOrdering","exported":true,"kind":"composite","op":"union","types":[{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},{"kind":"literal","literal":"manual"},{"kind":"name","group":"primitive","refName":"string"}]},{"name":"JsonOfDocumentType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfModuleDocumentType"},{"kind":"interface","properties":[{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfPartListSchema","exported":true,"kind":"interface","properties":[{"name":"listName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"orderBy","type":{"kind":"literal","literal":"manual"}},{"name":"partLeafTypes","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}},{"name":"partLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfPartSchema","exported":true,"kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]},{"name":"JsonOfUseTaxonomy","exported":true,"kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"relation","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]}},{"name":"withLeadTerm","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"optional":true}]},{"name":"JsonOfFieldType","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfVarcharFieldType"},{"kind":"localRef","refName":"JsonOfTextFieldType"},{"kind":"localRef","refName":"JsonOfLeafMediaFieldType"},{"kind":"localRef","refName":"JsonOfLeafGalleryFieldType"}]},{"name":"JsonOfFieldTypeBase","exported":true,"kind":"interface","properties":[{"name":"storedOn","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"leaf"},{"kind":"literal","literal":"section"}]}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"JsonOfVarcharFieldType","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfStringVarcharFieldType"},{"kind":"localRef","refName":"JsonOfNumberVarcharFieldType"},{"kind":"localRef","refName":"JsonOfBooleanVarcharFieldType"}]},{"name":"JsonOfStringVarcharFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"string"}}]}]},{"name":"JsonOfNumberVarcharFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"number"}},{"name":"currency","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfBooleanVarcharFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"boolean"}}]}]},{"name":"JsonOfTextFieldType","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFTextFieldType"},{"kind":"localRef","refName":"JsonOfJsonFieldType"}]},{"name":"JsonOfFTextFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"quillDelta"},{"kind":"literal","literal":"html"}]}},{"name":"useAsExcerpt","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"withGallery","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"backOffice","type":{"kind":"localRef","refName":"JsonOfFTextFieldBackOffice"},"optional":true}]}]},{"name":"JsonOfJsonFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"literal","literal":"json"}}]}]},{"name":"JsonOfFTextFieldBackOffice","exported":true,"kind":"interface","properties":[{"name":"editorRows","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"gallery"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfGalleryFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]}]},{"name":"JsonOfMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"media"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfMediaFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]}]},{"name":"JsonOfMediaPolicy","exported":true,"kind":"interface","properties":[{"name":"policyName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"mediaLimitPerDocument","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"mediaLimitPerPart","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"attachedDocument","type":{"kind":"localRef","refName":"JsonOfAttachedDocumentPolicy"},"optional":true},{"name":"image","type":{"kind":"localRef","refName":"JsonOfImagePolicy"},"optional":true}]},{"name":"JsonOfAttachedDocumentPolicy","exported":true,"kind":"interface","properties":[{"name":"siteWeightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfImagePolicy","exported":true,"kind":"interface","properties":[{"name":"weightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfImageCompressionQualityPolicy","exported":true,"kind":"interface","properties":[{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"quality","type":{"kind":"name","group":"primitive","refName":"number"}}]}]},"./theme-json-types":{"namedTypes":[{"name":"JsonOfThemeConf","exported":true,"kind":"interface","properties":[{"name":"fTextImages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}}]}]}}
|