@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,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.langIfSection = void 0;
|
|
4
|
+
function langIfSection(lang, fieldType) {
|
|
5
|
+
const result = fieldType.storedOn === "section" ? lang : undefined;
|
|
6
|
+
if (fieldType.storedOn === "section" && result === undefined) {
|
|
7
|
+
throw new Error(`should have a 'lang' for storedOn 'section'`);
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
exports.langIfSection = langIfSection;
|
|
12
|
+
//# sourceMappingURL=_fields.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_fields.helpers.js","sourceRoot":"","sources":["../../../../src/modules/core/fields/_fields.helpers.ts"],"names":[],"mappings":";;;AAEA,SAAgB,aAAa,CAAC,IAAwB,EAAE,SAAsC;IAC5F,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,IAAI,SAAS,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QAC7D,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAND,sCAMC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class PaFieldVarcharEntity {
|
|
2
|
+
leafId: string;
|
|
3
|
+
field: string;
|
|
4
|
+
lang: string;
|
|
5
|
+
dataType: string;
|
|
6
|
+
val?: string;
|
|
7
|
+
idToString(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare class PaFieldTextEntity {
|
|
10
|
+
leafId: string;
|
|
11
|
+
field: string;
|
|
12
|
+
lang: string;
|
|
13
|
+
dataType: string;
|
|
14
|
+
val?: string;
|
|
15
|
+
excerpt?: string;
|
|
16
|
+
idToString(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PaFieldTextEntity = exports.PaFieldVarcharEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PaFieldVarcharEntity = class PaFieldVarcharEntity {
|
|
15
|
+
leafId;
|
|
16
|
+
field;
|
|
17
|
+
lang;
|
|
18
|
+
dataType;
|
|
19
|
+
val;
|
|
20
|
+
idToString() {
|
|
21
|
+
this.leafId = this.leafId?.toString();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.PaFieldVarcharEntity = PaFieldVarcharEntity;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "bigint", primary: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PaFieldVarcharEntity.prototype, "leafId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 250, primary: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PaFieldVarcharEntity.prototype, "field", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 2, primary: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PaFieldVarcharEntity.prototype, "lang", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], PaFieldVarcharEntity.prototype, "dataType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 5000, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PaFieldVarcharEntity.prototype, "val", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.AfterLoad)(),
|
|
47
|
+
__metadata("design:type", Function),
|
|
48
|
+
__metadata("design:paramtypes", []),
|
|
49
|
+
__metadata("design:returntype", void 0)
|
|
50
|
+
], PaFieldVarcharEntity.prototype, "idToString", null);
|
|
51
|
+
exports.PaFieldVarcharEntity = PaFieldVarcharEntity = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)("PaFieldVarchar")
|
|
53
|
+
], PaFieldVarcharEntity);
|
|
54
|
+
let PaFieldTextEntity = class PaFieldTextEntity {
|
|
55
|
+
leafId;
|
|
56
|
+
field;
|
|
57
|
+
lang;
|
|
58
|
+
dataType;
|
|
59
|
+
val;
|
|
60
|
+
excerpt;
|
|
61
|
+
idToString() {
|
|
62
|
+
this.leafId = this.leafId?.toString();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.PaFieldTextEntity = PaFieldTextEntity;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "bigint", primary: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], PaFieldTextEntity.prototype, "leafId", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 250, primary: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], PaFieldTextEntity.prototype, "field", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 2, primary: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], PaFieldTextEntity.prototype, "lang", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100 }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], PaFieldTextEntity.prototype, "dataType", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], PaFieldTextEntity.prototype, "val", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], PaFieldTextEntity.prototype, "excerpt", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.AfterLoad)(),
|
|
92
|
+
__metadata("design:type", Function),
|
|
93
|
+
__metadata("design:paramtypes", []),
|
|
94
|
+
__metadata("design:returntype", void 0)
|
|
95
|
+
], PaFieldTextEntity.prototype, "idToString", null);
|
|
96
|
+
exports.PaFieldTextEntity = PaFieldTextEntity = __decorate([
|
|
97
|
+
(0, typeorm_1.Entity)("PaFieldText")
|
|
98
|
+
], PaFieldTextEntity);
|
|
99
|
+
//# sourceMappingURL=fields.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.model.js","sourceRoot":"","sources":["../../../../src/modules/core/fields/fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,MAAM,CAAU;IAGhB,KAAK,CAAU;IAGf,IAAI,CAAU;IAGd,QAAQ,CAAU;IAGlB,GAAG,CAAU;IAGb,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AApBY,oDAAoB;AAE/B;IADC,IAAA,gBAAM,EAAC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AM,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;+CACxC;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mDACvB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxC;AAGjB;IADC,IAAA,mBAAS,GAAE;;;;mDAGX;4BAtBU,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,aAAa,CAAC;GACT,iBAAiB,CAuB7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.LeafJsonFieldModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const fields_resolver_1 = require("./fields.resolver");
|
|
12
|
+
let LeafJsonFieldModule = class LeafJsonFieldModule {
|
|
13
|
+
};
|
|
14
|
+
exports.LeafJsonFieldModule = LeafJsonFieldModule;
|
|
15
|
+
exports.LeafJsonFieldModule = LeafJsonFieldModule = __decorate([
|
|
16
|
+
(0, common_1.Module)({
|
|
17
|
+
providers: [fields_resolver_1.FieldResolver, fields_resolver_1.ExtendSectionWrapWithFieldValues, fields_resolver_1.ExtendPartWithFieldValuesResolver],
|
|
18
|
+
})
|
|
19
|
+
], LeafJsonFieldModule);
|
|
20
|
+
//# sourceMappingURL=fields.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.module.js","sourceRoot":"","sources":["../../../../src/modules/core/fields/fields.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAI2B;AAKpB,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAH/B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,+BAAa,EAAE,kDAAgC,EAAE,mDAAiC,CAAC;KAChG,CAAC;GACW,mBAAmB,CAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GraphqlContext } from "../../graphql.types";
|
|
2
|
+
import { PartObjectType } from "../part/part.schema";
|
|
3
|
+
import { SectionWrapObjectType } from "../section/section.schema";
|
|
4
|
+
export declare class FieldResolver {
|
|
5
|
+
setFieldValues({ fqdn }: GraphqlContext, leafId: string, lang: string | null, values: string): Promise<boolean>;
|
|
6
|
+
setSiteFieldValues({ fqdn }: GraphqlContext, lang: string | null, values: string): Promise<boolean>;
|
|
7
|
+
siteFieldValues({ fqdn }: GraphqlContext, lang: string | null, fieldNames: string[] | null, quillDeltaToHtml: boolean | null): Promise<string>;
|
|
8
|
+
}
|
|
9
|
+
export declare class ExtendSectionWrapWithFieldValues {
|
|
10
|
+
fieldValues({ fqdn }: GraphqlContext, { lang, leafId }: SectionWrapObjectType, fieldNames: string[] | null, quillDeltaToHtml: boolean | null): Promise<string>;
|
|
11
|
+
}
|
|
12
|
+
export declare class ExtendPartWithFieldValuesResolver {
|
|
13
|
+
fieldValues({ fqdn }: GraphqlContext, { lang, leafId }: PartObjectType, fieldNames: string[] | null, quillDeltaToHtml: boolean | null): Promise<string>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ExtendPartWithFieldValuesResolver = exports.ExtendSectionWrapWithFieldValues = exports.FieldResolver = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
18
|
+
const site_context_1 = require("../../../site-context/site-context");
|
|
19
|
+
const site_schema_helpers_1 = require("../../../site-schema/site-schema-helpers");
|
|
20
|
+
const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
|
|
21
|
+
const leaf_queries_1 = require("../leaf/leaf.queries");
|
|
22
|
+
const part_schema_1 = require("../part/part.schema");
|
|
23
|
+
const section_schema_1 = require("../section/section.schema");
|
|
24
|
+
const load_fields_queries_1 = require("./load-fields.queries");
|
|
25
|
+
const save_fields_queries_1 = require("./save-fields.queries");
|
|
26
|
+
let FieldResolver = class FieldResolver {
|
|
27
|
+
async setFieldValues({ fqdn }, leafId, lang, values) {
|
|
28
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
29
|
+
const leafType = await (0, leaf_queries_1.getLeafTypeOf)(siteContext, leafId);
|
|
30
|
+
await (0, save_fields_queries_1.saveFieldValues)(siteContext, {
|
|
31
|
+
leafType,
|
|
32
|
+
leafId,
|
|
33
|
+
lang: lang ?? undefined,
|
|
34
|
+
values: (0, save_fields_queries_1.parseFieldValues)(values),
|
|
35
|
+
});
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
async setSiteFieldValues({ fqdn }, lang, values) {
|
|
39
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
40
|
+
await (0, save_fields_queries_1.saveFieldValues)(siteContext, {
|
|
41
|
+
leafType: site_schema_helpers_1.siteLeafType,
|
|
42
|
+
leafId: siteContext.siteIds.siteLeafId,
|
|
43
|
+
lang: lang ?? undefined,
|
|
44
|
+
values: (0, save_fields_queries_1.parseFieldValues)(values),
|
|
45
|
+
});
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
async siteFieldValues({ fqdn }, lang, fieldNames, quillDeltaToHtml) {
|
|
49
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
50
|
+
const values = await (0, load_fields_queries_1.loadFieldValues)(siteContext, {
|
|
51
|
+
leafId: siteContext.siteIds.siteLeafId,
|
|
52
|
+
lang: lang ?? undefined,
|
|
53
|
+
fieldTypes: (0, load_fields_queries_1.getFieldTypesByNames)(siteContext, {
|
|
54
|
+
leafType: site_schema_helpers_1.siteLeafType,
|
|
55
|
+
fieldNames: fieldNames ?? undefined,
|
|
56
|
+
}),
|
|
57
|
+
quillDeltaToHtml: quillDeltaToHtml ?? undefined,
|
|
58
|
+
});
|
|
59
|
+
return JSON.stringify(values);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
exports.FieldResolver = FieldResolver;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, graphql_1.Mutation)(() => Boolean),
|
|
65
|
+
__param(0, (0, graphql_1.Context)()),
|
|
66
|
+
__param(1, (0, graphql_1.Args)("leafId", { type: () => graphql_1.ID })),
|
|
67
|
+
__param(2, (0, graphql_1.Args)("lang", { type: () => String, nullable: true })),
|
|
68
|
+
__param(3, (0, graphql_1.Args)("values", { type: () => String })),
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", [Object, String, Object, String]),
|
|
71
|
+
__metadata("design:returntype", Promise)
|
|
72
|
+
], FieldResolver.prototype, "setFieldValues", null);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, graphql_1.Mutation)(() => Boolean),
|
|
75
|
+
__param(0, (0, graphql_1.Context)()),
|
|
76
|
+
__param(1, (0, graphql_1.Args)("lang", { type: () => String, nullable: true })),
|
|
77
|
+
__param(2, (0, graphql_1.Args)("values", { type: () => String })),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", [Object, Object, String]),
|
|
80
|
+
__metadata("design:returntype", Promise)
|
|
81
|
+
], FieldResolver.prototype, "setSiteFieldValues", null);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, graphql_1.Query)(() => String),
|
|
84
|
+
__param(0, (0, graphql_1.Context)()),
|
|
85
|
+
__param(1, (0, graphql_1.Args)("lang", { type: () => String, nullable: true })),
|
|
86
|
+
__param(2, (0, graphql_1.Args)("fieldNames", { type: () => [String], nullable: true })),
|
|
87
|
+
__param(3, (0, graphql_1.Args)("quillDeltaToHtml", {
|
|
88
|
+
type: () => Boolean,
|
|
89
|
+
nullable: true,
|
|
90
|
+
})),
|
|
91
|
+
__metadata("design:type", Function),
|
|
92
|
+
__metadata("design:paramtypes", [Object, Object, Object, Object]),
|
|
93
|
+
__metadata("design:returntype", Promise)
|
|
94
|
+
], FieldResolver.prototype, "siteFieldValues", null);
|
|
95
|
+
exports.FieldResolver = FieldResolver = __decorate([
|
|
96
|
+
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
97
|
+
(0, graphql_1.Resolver)()
|
|
98
|
+
], FieldResolver);
|
|
99
|
+
let ExtendSectionWrapWithFieldValues = class ExtendSectionWrapWithFieldValues {
|
|
100
|
+
async fieldValues({ fqdn }, { lang, leafId }, fieldNames, quillDeltaToHtml) {
|
|
101
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
102
|
+
const leafType = await (0, leaf_queries_1.getLeafTypeOf)(siteContext, leafId);
|
|
103
|
+
const values = await (0, load_fields_queries_1.loadFieldValues)(siteContext, {
|
|
104
|
+
leafId,
|
|
105
|
+
lang,
|
|
106
|
+
fieldTypes: (0, load_fields_queries_1.getFieldTypesByNames)(siteContext, {
|
|
107
|
+
leafType,
|
|
108
|
+
fieldNames: fieldNames ?? undefined,
|
|
109
|
+
}),
|
|
110
|
+
quillDeltaToHtml: quillDeltaToHtml ?? undefined,
|
|
111
|
+
});
|
|
112
|
+
return JSON.stringify(values);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
exports.ExtendSectionWrapWithFieldValues = ExtendSectionWrapWithFieldValues;
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, graphql_1.ResolveField)(() => String),
|
|
118
|
+
__param(0, (0, graphql_1.Context)()),
|
|
119
|
+
__param(1, (0, graphql_1.Parent)()),
|
|
120
|
+
__param(2, (0, graphql_1.Args)("fieldNames", { type: () => [String], nullable: true })),
|
|
121
|
+
__param(3, (0, graphql_1.Args)("quillDeltaToHtml", {
|
|
122
|
+
type: () => Boolean,
|
|
123
|
+
nullable: true,
|
|
124
|
+
})),
|
|
125
|
+
__metadata("design:type", Function),
|
|
126
|
+
__metadata("design:paramtypes", [Object, section_schema_1.SectionWrapObjectType, Object, Object]),
|
|
127
|
+
__metadata("design:returntype", Promise)
|
|
128
|
+
], ExtendSectionWrapWithFieldValues.prototype, "fieldValues", null);
|
|
129
|
+
exports.ExtendSectionWrapWithFieldValues = ExtendSectionWrapWithFieldValues = __decorate([
|
|
130
|
+
(0, graphql_1.Resolver)(() => section_schema_1.SectionWrapObjectType)
|
|
131
|
+
], ExtendSectionWrapWithFieldValues);
|
|
132
|
+
let ExtendPartWithFieldValuesResolver = class ExtendPartWithFieldValuesResolver {
|
|
133
|
+
async fieldValues({ fqdn }, { lang, leafId }, fieldNames, quillDeltaToHtml) {
|
|
134
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
135
|
+
const leafType = await (0, leaf_queries_1.getLeafTypeOf)(siteContext, leafId);
|
|
136
|
+
const values = await (0, load_fields_queries_1.loadFieldValues)(siteContext, {
|
|
137
|
+
leafId,
|
|
138
|
+
lang,
|
|
139
|
+
fieldTypes: (0, load_fields_queries_1.getFieldTypesByNames)(siteContext, {
|
|
140
|
+
leafType,
|
|
141
|
+
fieldNames: fieldNames ?? undefined,
|
|
142
|
+
}),
|
|
143
|
+
quillDeltaToHtml: quillDeltaToHtml ?? undefined,
|
|
144
|
+
});
|
|
145
|
+
return JSON.stringify(values);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
exports.ExtendPartWithFieldValuesResolver = ExtendPartWithFieldValuesResolver;
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, graphql_1.ResolveField)(() => String),
|
|
151
|
+
__param(0, (0, graphql_1.Context)()),
|
|
152
|
+
__param(1, (0, graphql_1.Parent)()),
|
|
153
|
+
__param(2, (0, graphql_1.Args)("fieldNames", { type: () => [String], nullable: true })),
|
|
154
|
+
__param(3, (0, graphql_1.Args)("quillDeltaToHtml", {
|
|
155
|
+
type: () => Boolean,
|
|
156
|
+
nullable: true,
|
|
157
|
+
})),
|
|
158
|
+
__metadata("design:type", Function),
|
|
159
|
+
__metadata("design:paramtypes", [Object, part_schema_1.PartObjectType, Object, Object]),
|
|
160
|
+
__metadata("design:returntype", Promise)
|
|
161
|
+
], ExtendPartWithFieldValuesResolver.prototype, "fieldValues", null);
|
|
162
|
+
exports.ExtendPartWithFieldValuesResolver = ExtendPartWithFieldValuesResolver = __decorate([
|
|
163
|
+
(0, graphql_1.Resolver)(() => part_schema_1.PartObjectType)
|
|
164
|
+
], ExtendPartWithFieldValuesResolver);
|
|
165
|
+
//# sourceMappingURL=fields.resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/fields/fields.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CASyB;AACzB,qEAAoE;AACpE,kFAAwE;AAExE,2DAAsD;AACtD,uDAAqD;AACrD,qDAAqD;AACrD,8DAAkE;AAClE,+DAA8E;AAC9E,+DAA0E;AAInE,IAAM,aAAa,GAAnB,MAAM,aAAa;IAElB,AAAN,KAAK,CAAC,cAAc,CACP,EAAE,IAAI,EAAkB,EAEnC,MAAc,EAEd,IAAmB,EAEnB,MAAc;QAEd,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAa,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAC1D,MAAM,IAAA,qCAAe,EAAC,WAAW,EAAE;YACjC,QAAQ;YACR,MAAM;YACN,IAAI,EAAE,IAAI,IAAI,SAAS;YACvB,MAAM,EAAE,IAAA,sCAAgB,EAAC,MAAM,CAAC;SACjC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAGK,AAAN,KAAK,CAAC,kBAAkB,CACX,EAAE,IAAI,EAAkB,EAEnC,IAAmB,EAEnB,MAAc;QAEd,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,IAAA,qCAAe,EAAC,WAAW,EAAE;YACjC,QAAQ,EAAE,kCAAY;YACtB,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU;YACtC,I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MAAM;YACN,IAAI;YACJ,UAAU,EAAE,IAAA,0CAAoB,EAAC,WAAW,EAAE;gBAC5C,QAAQ;gBACR,UAAU,EAAE,UAAU,IAAI,SAAS;aACpC,CAAC;YACF,gBAAgB,EAAE,gBAAgB,IAAI,SAAS;SAChD,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF,CAAA;AA3BY,8EAAiC;AAEtC;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAExB,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,gBAAM,GAAE,CAAA;IAER,WAAA,IAAA,cAAI,EAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;IAE5D,WAAA,IAAA,cAAI,EAAC,kBAAkB,EAAE;QACxB,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC,CAAA;;6CANgB,4BAAc;;oEAqBjC;4CA1BU,iCAAiC;IAD7C,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,4BAAc,CAAC;GAClB,iCAAiC,CA2B7C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FieldType } from "@paroicms/anywhere-lib";
|
|
2
|
+
import { SiteContext } from "../../../site-context/site-context.types";
|
|
3
|
+
export interface FieldValues {
|
|
4
|
+
[fieldName: string]: unknown | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function getSiteFieldValue(siteContext: Pick<SiteContext, "mainCn" | "siteSchema" | "siteIds">, options: {
|
|
7
|
+
fieldName: string;
|
|
8
|
+
lang?: string;
|
|
9
|
+
}): Promise<unknown | undefined>;
|
|
10
|
+
export declare function getFieldTypesByNames(siteContext: Pick<SiteContext, "siteSchema">, options: {
|
|
11
|
+
leafType: string;
|
|
12
|
+
fieldNames?: string[];
|
|
13
|
+
ignoreUnknownFieldNames?: boolean;
|
|
14
|
+
}): FieldType[];
|
|
15
|
+
export declare function loadFieldValues(siteContext: Pick<SiteContext, "mainCn" | "siteSchema" | "siteIds">, { fieldTypes, leafId, lang, quillDeltaToHtml, }: {
|
|
16
|
+
fieldTypes: FieldType[];
|
|
17
|
+
leafId: string;
|
|
18
|
+
lang?: string;
|
|
19
|
+
quillDeltaToHtml?: boolean;
|
|
20
|
+
}): Promise<FieldValues>;
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadFieldValues = exports.getFieldTypesByNames = exports.getSiteFieldValue = void 0;
|
|
4
|
+
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
5
|
+
const anywhere_lib_1 = require("@paroicms/anywhere-lib");
|
|
6
|
+
const media_handles_helpers_1 = require("../../../common/media-handles.helpers");
|
|
7
|
+
const context_1 = require("../../../context");
|
|
8
|
+
const site_schema_helpers_1 = require("../../../site-schema/site-schema-helpers");
|
|
9
|
+
const _fields_helpers_1 = require("./_fields.helpers");
|
|
10
|
+
const quill_delta_1 = require("./quill-delta");
|
|
11
|
+
async function getSiteFieldValue(siteContext, options) {
|
|
12
|
+
const { fieldName, lang } = options;
|
|
13
|
+
const values = await loadFieldValues(siteContext, {
|
|
14
|
+
leafId: siteContext.siteIds.siteLeafId,
|
|
15
|
+
lang: lang ?? undefined,
|
|
16
|
+
fieldTypes: getFieldTypesByNames(siteContext, {
|
|
17
|
+
leafType: site_schema_helpers_1.siteLeafType,
|
|
18
|
+
fieldNames: [fieldName],
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
return values[fieldName];
|
|
22
|
+
}
|
|
23
|
+
exports.getSiteFieldValue = getSiteFieldValue;
|
|
24
|
+
function getFieldTypesByNames(siteContext, options) {
|
|
25
|
+
const { leafType, fieldNames, ignoreUnknownFieldNames } = options;
|
|
26
|
+
const fieldTypes = (0, anywhere_lib_1.getLeafSchema)(siteContext.siteSchema, leafType).fields ?? [];
|
|
27
|
+
if (!fieldNames)
|
|
28
|
+
return fieldTypes;
|
|
29
|
+
const names = new Set(fieldNames);
|
|
30
|
+
const result = fieldTypes.filter((item) => names.has(item.name));
|
|
31
|
+
if (names.size !== result.length && !ignoreUnknownFieldNames) {
|
|
32
|
+
throw new Error(`should have the field types of '${[...names].join(", ")}' for leafType '${leafType}'`);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
exports.getFieldTypesByNames = getFieldTypesByNames;
|
|
37
|
+
async function loadFieldValues(siteContext, { fieldTypes, leafId, lang, quillDeltaToHtml, }) {
|
|
38
|
+
const result = {};
|
|
39
|
+
if (fieldTypes.length === 0)
|
|
40
|
+
return result;
|
|
41
|
+
const leafVarcharFieldTypes = fieldTypes.filter((item) => item.storedAs === "varchar" && item.storedOn === "leaf");
|
|
42
|
+
const leafVarcharValues = await loadVarcharFieldValues(siteContext, {
|
|
43
|
+
fieldTypes: leafVarcharFieldTypes,
|
|
44
|
+
leafId,
|
|
45
|
+
});
|
|
46
|
+
const sectionVarcharFieldTypes = fieldTypes.filter((item) => item.storedAs === "varchar" && item.storedOn === "section");
|
|
47
|
+
if (lang === undefined && sectionVarcharFieldTypes.length !== 0) {
|
|
48
|
+
throw new Error(`missing lang for ${sectionVarcharFieldTypes.map((item) => item.name).join(", ")}`);
|
|
49
|
+
}
|
|
50
|
+
const sectionVarcharValues = await loadVarcharFieldValues(siteContext, {
|
|
51
|
+
fieldTypes: sectionVarcharFieldTypes,
|
|
52
|
+
leafId,
|
|
53
|
+
lang,
|
|
54
|
+
});
|
|
55
|
+
const leafTextFieldTypes = fieldTypes.filter((item) => item.storedAs === "text" && item.storedOn === "leaf");
|
|
56
|
+
const leafTextValues = await loadTextFieldValues(siteContext, {
|
|
57
|
+
fieldTypes: leafTextFieldTypes,
|
|
58
|
+
leafId,
|
|
59
|
+
quillDeltaToHtml,
|
|
60
|
+
});
|
|
61
|
+
const sectionTextFieldTypes = fieldTypes.filter((item) => item.storedAs === "text" && item.storedOn === "section");
|
|
62
|
+
if (lang === undefined && sectionTextFieldTypes.length !== 0) {
|
|
63
|
+
throw new Error(`missing lang for ${sectionTextFieldTypes.map((item) => item.name).join(", ")}`);
|
|
64
|
+
}
|
|
65
|
+
const sectionTextValues = await loadTextFieldValues(siteContext, {
|
|
66
|
+
fieldTypes: sectionTextFieldTypes,
|
|
67
|
+
leafId,
|
|
68
|
+
lang,
|
|
69
|
+
quillDeltaToHtml,
|
|
70
|
+
});
|
|
71
|
+
for (const fieldType of fieldTypes) {
|
|
72
|
+
const { name, storedAs, storedOn } = fieldType;
|
|
73
|
+
if (storedAs === "varchar") {
|
|
74
|
+
if (storedOn === "leaf") {
|
|
75
|
+
result[name] = leafVarcharValues.get(name);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
result[name] = sectionVarcharValues.get(name);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
else if (storedAs === "text") {
|
|
82
|
+
if (storedOn === "leaf") {
|
|
83
|
+
result[name] = leafTextValues.get(name);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
result[name] = sectionTextValues.get(name);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
else if (storedAs === "mediaHandle") {
|
|
90
|
+
result[name] = {
|
|
91
|
+
handle: (0, media_handles_helpers_1.getHandleOfField)(siteContext, {
|
|
92
|
+
fieldType,
|
|
93
|
+
leafId,
|
|
94
|
+
lang: (0, _fields_helpers_1.langIfSection)(lang, fieldType),
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
throw new Error(`invalid field storedAs '${fieldType.storedAs}'`);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
exports.loadFieldValues = loadFieldValues;
|
|
105
|
+
async function loadVarcharFieldValues(siteContext, options) {
|
|
106
|
+
const { leafId, lang, fieldTypes } = options;
|
|
107
|
+
const values = new Map();
|
|
108
|
+
if (fieldTypes.length === 0)
|
|
109
|
+
return values;
|
|
110
|
+
const typeMap = new Map(fieldTypes.map((item) => [item.name, item]));
|
|
111
|
+
const query = siteContext.mainCn
|
|
112
|
+
.createQueryBuilder()
|
|
113
|
+
.select("f.field", "field")
|
|
114
|
+
.addSelect("f.val", "val")
|
|
115
|
+
.addSelect("f.dataType", "dataType")
|
|
116
|
+
.from("PaFieldVarchar", "f")
|
|
117
|
+
.where("f.leafId = :leafId", { leafId })
|
|
118
|
+
.andWhere("f.field in (:...fieldNames)", {
|
|
119
|
+
fieldNames: [...typeMap.keys()],
|
|
120
|
+
})
|
|
121
|
+
.andWhere("f.lang = :lang", { lang: lang ?? context_1.dbAnyLang });
|
|
122
|
+
const rows = await query.getRawMany();
|
|
123
|
+
for (const row of rows) {
|
|
124
|
+
const fieldName = (0, data_formatters_lib_1.strVal)(row.field);
|
|
125
|
+
const dataType = (0, data_formatters_lib_1.strVal)(row.dataType);
|
|
126
|
+
const val = row.val;
|
|
127
|
+
const fieldType = typeMap.get(fieldName);
|
|
128
|
+
if (!fieldType)
|
|
129
|
+
throw new Error(`should have the field type of '${fieldName}'`);
|
|
130
|
+
if (dataType !== fieldType.dataType) {
|
|
131
|
+
throw new Error(`dataType mismatch for '${fieldName}', '${lang ? `${lang}:` : ""}${leafId}'`);
|
|
132
|
+
}
|
|
133
|
+
values.set(fieldName, formatVarcharFieldValue(val, fieldType));
|
|
134
|
+
}
|
|
135
|
+
return values;
|
|
136
|
+
}
|
|
137
|
+
function formatVarcharFieldValue(rawVal, fieldType) {
|
|
138
|
+
const strVal = (0, data_formatters_lib_1.strValOrUndef)(rawVal);
|
|
139
|
+
if (strVal === undefined)
|
|
140
|
+
return;
|
|
141
|
+
switch (fieldType.dataType) {
|
|
142
|
+
case "string":
|
|
143
|
+
return strVal;
|
|
144
|
+
case "number":
|
|
145
|
+
return Number(strVal);
|
|
146
|
+
case "boolean":
|
|
147
|
+
return strVal !== "0";
|
|
148
|
+
default:
|
|
149
|
+
throw new Error(`invalid dataType '${fieldType.dataType}'`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
async function loadTextFieldValues(siteContext, options) {
|
|
153
|
+
const { leafId, lang, fieldTypes, quillDeltaToHtml } = options;
|
|
154
|
+
const values = new Map();
|
|
155
|
+
if (fieldTypes.length === 0)
|
|
156
|
+
return values;
|
|
157
|
+
const typeMap = new Map(fieldTypes.map((item) => [item.name, item]));
|
|
158
|
+
const query = siteContext.mainCn
|
|
159
|
+
.createQueryBuilder()
|
|
160
|
+
.select("f.field", "field")
|
|
161
|
+
.addSelect("f.val", "val")
|
|
162
|
+
.addSelect("f.dataType", "dataType")
|
|
163
|
+
.from("PaFieldText", "f")
|
|
164
|
+
.where("f.leafId = :leafId", { leafId })
|
|
165
|
+
.andWhere("f.field in (:...fieldNames)", {
|
|
166
|
+
fieldNames: Array.from(typeMap.keys()),
|
|
167
|
+
})
|
|
168
|
+
.andWhere("f.lang = :lang", { lang: lang ?? context_1.dbAnyLang });
|
|
169
|
+
const rows = await query.getRawMany();
|
|
170
|
+
for (const row of rows) {
|
|
171
|
+
const fieldName = (0, data_formatters_lib_1.strVal)(row.field);
|
|
172
|
+
const dataType = (0, data_formatters_lib_1.strVal)(row.dataType);
|
|
173
|
+
const rawVal = row.val;
|
|
174
|
+
const fieldType = typeMap.get(fieldName);
|
|
175
|
+
if (!fieldType)
|
|
176
|
+
throw new Error(`should have the field type of '${fieldName}'`);
|
|
177
|
+
if (dataType !== fieldType.dataType) {
|
|
178
|
+
throw new Error(`dataType mismatch for '${fieldName}', '${lang ? `${lang}:` : ""}${leafId}'`);
|
|
179
|
+
}
|
|
180
|
+
const val = formatTextFieldValue(siteContext, rawVal, { fieldType, leafId });
|
|
181
|
+
if (quillDeltaToHtml && dataType === "quillDelta" && val !== undefined && "delta" in val) {
|
|
182
|
+
values.set(fieldName, val.delta ? (0, quill_delta_1.convertQuillDeltaToHtml)(val.delta) : undefined);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
values.set(fieldName, val);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (!quillDeltaToHtml) {
|
|
189
|
+
for (const fieldType of fieldTypes) {
|
|
190
|
+
if (values.has(fieldType.name) || !(0, anywhere_lib_1.isFTextFieldType)(fieldType) || !fieldType.withGallery) {
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
values.set(fieldType.name, {
|
|
194
|
+
galleryHandle: (0, media_handles_helpers_1.getHandleOfFieldOnLeaf)(siteContext, {
|
|
195
|
+
fieldType,
|
|
196
|
+
leafId,
|
|
197
|
+
}),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return values;
|
|
202
|
+
}
|
|
203
|
+
function formatTextFieldValue(siteContext, rawVal, options) {
|
|
204
|
+
const { fieldType, leafId } = options;
|
|
205
|
+
const strVal = (0, data_formatters_lib_1.strValOrUndef)(rawVal);
|
|
206
|
+
switch (fieldType.dataType) {
|
|
207
|
+
case "quillDelta":
|
|
208
|
+
return {
|
|
209
|
+
delta: strVal ? JSON.parse(strVal) : undefined,
|
|
210
|
+
galleryHandle: fieldType.withGallery
|
|
211
|
+
? (0, media_handles_helpers_1.getHandleOfFieldOnLeaf)(siteContext, {
|
|
212
|
+
fieldType,
|
|
213
|
+
leafId,
|
|
214
|
+
})
|
|
215
|
+
: undefined,
|
|
216
|
+
};
|
|
217
|
+
case "html":
|
|
218
|
+
return {
|
|
219
|
+
html: strVal,
|
|
220
|
+
galleryHandle: fieldType.withGallery
|
|
221
|
+
? (0, media_handles_helpers_1.getHandleOfFieldOnLeaf)(siteContext, {
|
|
222
|
+
fieldType,
|
|
223
|
+
leafId,
|
|
224
|
+
})
|
|
225
|
+
: undefined,
|
|
226
|
+
};
|
|
227
|
+
case "json":
|
|
228
|
+
return strVal ? JSON.parse(strVal) : undefined;
|
|
229
|
+
default:
|
|
230
|
+
throw new Error(`invalid dataType '${fieldType.dataType}'`);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=load-fields.queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-fields.queries.js","sourceRoot":"","sources":["../../../../src/modules/core/fields/load-fields.queries.ts"],"names":[],"mappings":";;;AAAA,oEAAmE;AACnE,yDAOgC;AAChC,iFAAiG;AACjG,8CAA6C;AAE7C,kFAAwE;AACxE,uDAAkD;AAClD,+CAAwD;AAMjD,KAAK,UAAU,iBAAiB,CACrC,WAAmE,EACnE,OAA6C;IAE7C,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,WAAW,EAAE;QAChD,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,UAAU;QACtC,IAAI,EAAE,IAAI,IAAI,SAAS;QACvB,UAAU,EAAE,oBAAoB,CAAC,WAAW,EAAE;YAC5C,QAAQ,EAAE,kCAAY;YACtB,UAAU,EAAE,CAAC,SAAS,CAAC;SACxB,CAAC;KACH,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;AAC3B,CAAC;AAdD,8CAcC;AAED,SAAgB,oBAAoB,CAClC,WAA4C,EAC5C,OAAuF;IAEvF,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAClE,MAAM,UAAU,GAAG,IAAA,4BAAa,EAAC,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,MAAM,IAAI,EAAE,CAAC;IAChF,IAAI,CAAC,UAAU;QAAE,OAAO,UAAU,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAA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