@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,22 @@
|
|
|
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.MediaModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const media_upload_controller_1 = require("./media-upload.controller");
|
|
12
|
+
const media_resolver_1 = require("./media.resolver");
|
|
13
|
+
let MediaModule = class MediaModule {
|
|
14
|
+
};
|
|
15
|
+
exports.MediaModule = MediaModule;
|
|
16
|
+
exports.MediaModule = MediaModule = __decorate([
|
|
17
|
+
(0, common_1.Module)({
|
|
18
|
+
providers: [media_resolver_1.MediaResolver],
|
|
19
|
+
controllers: [media_upload_controller_1.UploadMediaController],
|
|
20
|
+
})
|
|
21
|
+
], MediaModule);
|
|
22
|
+
//# sourceMappingURL=media.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.module.js","sourceRoot":"","sources":["../../../../src/modules/core/media/media.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uEAAkE;AAClE,qDAAiD;AAM1C,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IAJvB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,8BAAa,CAAC;QAC1B,WAAW,EAAE,CAAC,+CAAqB,CAAC;KACrC,CAAC;GACW,WAAW,CAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Image, Media } from "@paroicms/server-database-media-storage";
|
|
2
|
+
import { GraphqlContext } from "../../graphql.types";
|
|
3
|
+
import { ReorderMediasInput, ResizeImageInput, ResizingImage, ThumbImagePropertiesObjectType } from "./media.schema";
|
|
4
|
+
export declare class MediaResolver {
|
|
5
|
+
medias({ fqdn }: GraphqlContext, galleryHandle: string): Promise<(Media | Image)[]>;
|
|
6
|
+
media({ fqdn }: GraphqlContext, handle: string): Promise<Media | Image | undefined>;
|
|
7
|
+
deleteMediaFromGallery({ fqdn }: GraphqlContext, uid: string, galleryHandle: string): Promise<string>;
|
|
8
|
+
deleteMedia({ fqdn }: GraphqlContext, handle: string): Promise<string>;
|
|
9
|
+
updateAttachedData({ fqdn }: GraphqlContext, mediaUid: string, values: string): Promise<void>;
|
|
10
|
+
reorderMedias({ fqdn }: GraphqlContext, input: ReorderMediasInput): Promise<(Media | Image)[]>;
|
|
11
|
+
url({ fqdn }: GraphqlContext, media: Media | Image): Promise<string>;
|
|
12
|
+
thumbImage({ fqdn }: GraphqlContext, media: Media | Image): Promise<ThumbImagePropertiesObjectType | undefined>;
|
|
13
|
+
resizeImage({ fqdn }: GraphqlContext, { variantName, uid }: ResizeImageInput): Promise<ResizingImage>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
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.MediaResolver = void 0;
|
|
16
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const server_image_cache_engine_1 = require("@paroicms/server-image-cache-engine");
|
|
19
|
+
const media_handles_helpers_1 = require("../../../common/media-handles.helpers");
|
|
20
|
+
const text_cache_1 = require("../../../common/text-cache");
|
|
21
|
+
const context_1 = require("../../../context");
|
|
22
|
+
const site_context_1 = require("../../../site-context/site-context");
|
|
23
|
+
const media_1 = require("./media");
|
|
24
|
+
const media_schema_1 = require("./media.schema");
|
|
25
|
+
let MediaResolver = class MediaResolver {
|
|
26
|
+
async medias({ fqdn }, galleryHandle) {
|
|
27
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
28
|
+
return await siteContext.mediaStorage.getMedias({ handle: galleryHandle });
|
|
29
|
+
}
|
|
30
|
+
async media({ fqdn }, handle) {
|
|
31
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
32
|
+
return await siteContext.mediaStorage.getMedia({ handle });
|
|
33
|
+
}
|
|
34
|
+
async deleteMediaFromGallery({ fqdn }, uid, galleryHandle) {
|
|
35
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
36
|
+
const deletedUids = await siteContext.mediaStorage.deleteMedia({ uid, handle: galleryHandle });
|
|
37
|
+
await siteContext.imageCache.invalidate({ imageUids: deletedUids });
|
|
38
|
+
const leafId = (0, media_handles_helpers_1.extractLeafIdFromHandle)(galleryHandle);
|
|
39
|
+
if (leafId !== undefined)
|
|
40
|
+
await (0, text_cache_1.invalidateMultipleDocumentsInCache)(siteContext, { leafId });
|
|
41
|
+
return galleryHandle;
|
|
42
|
+
}
|
|
43
|
+
async deleteMedia({ fqdn }, handle) {
|
|
44
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
45
|
+
const deletedUids = await siteContext.mediaStorage.deleteMedia({ handle });
|
|
46
|
+
await siteContext.imageCache.invalidate({ imageUids: deletedUids });
|
|
47
|
+
const leafId = (0, media_handles_helpers_1.extractLeafIdFromHandle)(handle);
|
|
48
|
+
if (leafId !== undefined)
|
|
49
|
+
await (0, text_cache_1.invalidateMultipleDocumentsInCache)(siteContext, { leafId });
|
|
50
|
+
return handle;
|
|
51
|
+
}
|
|
52
|
+
async updateAttachedData({ fqdn }, mediaUid, values) {
|
|
53
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
54
|
+
return await siteContext.mediaStorage.updateAttachedData({ mediaUid, values });
|
|
55
|
+
}
|
|
56
|
+
async reorderMedias({ fqdn }, input) {
|
|
57
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
58
|
+
const medias = await siteContext.mediaStorage.reorderMedias({
|
|
59
|
+
handle: input.galleryHandle,
|
|
60
|
+
mediaUids: input.mediaUids,
|
|
61
|
+
});
|
|
62
|
+
const leafId = (0, media_handles_helpers_1.extractLeafIdFromHandle)(input.galleryHandle);
|
|
63
|
+
if (leafId !== undefined)
|
|
64
|
+
await (0, text_cache_1.invalidateMultipleDocumentsInCache)(siteContext, { leafId });
|
|
65
|
+
return medias;
|
|
66
|
+
}
|
|
67
|
+
async url({ fqdn }, media) {
|
|
68
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
69
|
+
return (0, media_1.makeMediaUrl)(siteContext, media, { absoluteUrl: true });
|
|
70
|
+
}
|
|
71
|
+
async thumbImage({ fqdn }, media) {
|
|
72
|
+
if (media.kind !== "image")
|
|
73
|
+
return;
|
|
74
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
75
|
+
const resized = (0, media_1.registerImageVariant)(siteContext, {
|
|
76
|
+
autoCrop: false,
|
|
77
|
+
imageRef: {
|
|
78
|
+
imageUid: media.uid,
|
|
79
|
+
mediaType: media.mediaType,
|
|
80
|
+
width: media.width,
|
|
81
|
+
height: media.height,
|
|
82
|
+
},
|
|
83
|
+
variantName: context_1.thumbVariantName,
|
|
84
|
+
absoluteUrl: true,
|
|
85
|
+
dependsOnCacheKey: "bo",
|
|
86
|
+
});
|
|
87
|
+
return {
|
|
88
|
+
url: resized.url,
|
|
89
|
+
width: resized.width,
|
|
90
|
+
height: resized.height,
|
|
91
|
+
mediaType: resized.mediaType,
|
|
92
|
+
originalWidth: media.width,
|
|
93
|
+
originalHeight: media.height,
|
|
94
|
+
originalLossless: media.lossless,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
async resizeImage({ fqdn }, { variantName, uid }) {
|
|
98
|
+
if (!(0, server_image_cache_engine_1.isVariantName)(variantName)) {
|
|
99
|
+
throw new common_1.BadRequestException(`invalid variant name '${variantName}'`);
|
|
100
|
+
}
|
|
101
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
102
|
+
const media = await siteContext.mediaStorage.getMedia({ uid });
|
|
103
|
+
if (!media)
|
|
104
|
+
throw new common_1.NotFoundException(`missing image '${uid}'`);
|
|
105
|
+
if (media.kind !== "image")
|
|
106
|
+
throw new common_1.BadRequestException(`media '${uid}' is not an image`);
|
|
107
|
+
return (0, media_1.registerImageVariant)(siteContext, {
|
|
108
|
+
variantName,
|
|
109
|
+
autoCrop: true,
|
|
110
|
+
imageRef: {
|
|
111
|
+
height: media.height,
|
|
112
|
+
imageUid: media.uid,
|
|
113
|
+
mediaType: media.mediaType,
|
|
114
|
+
width: media.width,
|
|
115
|
+
},
|
|
116
|
+
absoluteUrl: true,
|
|
117
|
+
dependsOnCacheKey: "themeConf.fTextImages",
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
exports.MediaResolver = MediaResolver;
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, graphql_1.Query)(() => [media_schema_1.MediaObjectType]),
|
|
124
|
+
__param(0, (0, graphql_1.Context)()),
|
|
125
|
+
__param(1, (0, graphql_1.Args)("galleryHandle", { type: () => graphql_1.ID })),
|
|
126
|
+
__metadata("design:type", Function),
|
|
127
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
128
|
+
__metadata("design:returntype", Promise)
|
|
129
|
+
], MediaResolver.prototype, "medias", null);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, graphql_1.Query)(() => media_schema_1.MediaObjectType, { nullable: true }),
|
|
132
|
+
__param(0, (0, graphql_1.Context)()),
|
|
133
|
+
__param(1, (0, graphql_1.Args)("handle", { type: () => graphql_1.ID })),
|
|
134
|
+
__metadata("design:type", Function),
|
|
135
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
136
|
+
__metadata("design:returntype", Promise)
|
|
137
|
+
], MediaResolver.prototype, "media", null);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, graphql_1.Mutation)(() => String),
|
|
140
|
+
__param(0, (0, graphql_1.Context)()),
|
|
141
|
+
__param(1, (0, graphql_1.Args)("uid", { type: () => graphql_1.ID })),
|
|
142
|
+
__param(2, (0, graphql_1.Args)("galleryHandle", { type: () => graphql_1.ID })),
|
|
143
|
+
__metadata("design:type", Function),
|
|
144
|
+
__metadata("design:paramtypes", [Object, String, String]),
|
|
145
|
+
__metadata("design:returntype", Promise)
|
|
146
|
+
], MediaResolver.prototype, "deleteMediaFromGallery", null);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, graphql_1.Mutation)(() => String),
|
|
149
|
+
__param(0, (0, graphql_1.Context)()),
|
|
150
|
+
__param(1, (0, graphql_1.Args)("handle", { type: () => graphql_1.ID })),
|
|
151
|
+
__metadata("design:type", Function),
|
|
152
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
153
|
+
__metadata("design:returntype", Promise)
|
|
154
|
+
], MediaResolver.prototype, "deleteMedia", null);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, graphql_1.Mutation)(() => media_schema_1.MediaObjectType),
|
|
157
|
+
__param(0, (0, graphql_1.Context)()),
|
|
158
|
+
__param(1, (0, graphql_1.Args)("mediaUid", { type: () => graphql_1.ID })),
|
|
159
|
+
__param(2, (0, graphql_1.Args)("values", { type: () => String })),
|
|
160
|
+
__metadata("design:type", Function),
|
|
161
|
+
__metadata("design:paramtypes", [Object, String, String]),
|
|
162
|
+
__metadata("design:returntype", Promise)
|
|
163
|
+
], MediaResolver.prototype, "updateAttachedData", null);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, graphql_1.Mutation)(() => [media_schema_1.MediaObjectType]),
|
|
166
|
+
__param(0, (0, graphql_1.Context)()),
|
|
167
|
+
__param(1, (0, graphql_1.Args)("input")),
|
|
168
|
+
__metadata("design:type", Function),
|
|
169
|
+
__metadata("design:paramtypes", [Object, media_schema_1.ReorderMediasInput]),
|
|
170
|
+
__metadata("design:returntype", Promise)
|
|
171
|
+
], MediaResolver.prototype, "reorderMedias", null);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, graphql_1.ResolveField)(() => String),
|
|
174
|
+
__param(0, (0, graphql_1.Context)()),
|
|
175
|
+
__param(1, (0, graphql_1.Parent)()),
|
|
176
|
+
__metadata("design:type", Function),
|
|
177
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
178
|
+
__metadata("design:returntype", Promise)
|
|
179
|
+
], MediaResolver.prototype, "url", null);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, graphql_1.ResolveField)(() => media_schema_1.ThumbImagePropertiesObjectType, { nullable: true }),
|
|
182
|
+
__param(0, (0, graphql_1.Context)()),
|
|
183
|
+
__param(1, (0, graphql_1.Parent)()),
|
|
184
|
+
__metadata("design:type", Function),
|
|
185
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
186
|
+
__metadata("design:returntype", Promise)
|
|
187
|
+
], MediaResolver.prototype, "thumbImage", null);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, graphql_1.Mutation)(() => media_schema_1.ResizingImage),
|
|
190
|
+
__param(0, (0, graphql_1.Context)()),
|
|
191
|
+
__param(1, (0, graphql_1.Args)("input")),
|
|
192
|
+
__metadata("design:type", Function),
|
|
193
|
+
__metadata("design:paramtypes", [Object, media_schema_1.ResizeImageInput]),
|
|
194
|
+
__metadata("design:returntype", Promise)
|
|
195
|
+
], MediaResolver.prototype, "resizeImage", null);
|
|
196
|
+
exports.MediaResolver = MediaResolver = __decorate([
|
|
197
|
+
(0, graphql_1.Resolver)(() => media_schema_1.MediaObjectType)
|
|
198
|
+
], MediaResolver);
|
|
199
|
+
//# sourceMappingURL=media.resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/media/media.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CASyB;AAEzB,2CAAwE;AAExE,mFAAoE;AACpE,iFAAgF;AAChF,2DAAgF;AAChF,8CAAoD;AACpD,qEAAoE;AAEpE,mCAA6D;AAC7D,iDAMwB;AAGjB,IAAM,aAAa,GAAnB,MAAM,aAAa;IAElB,AAAN,KAAK,CAAC,MAAM,CACC,EAAE,IAAI,EAAkB,EACQ,aAAqB;QAEhE,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,MAAM,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;IAC7E,CAAC;IAGK,AAAN,KAAK,CAAC,KAAK,CACE,EAAE,IAAI,EAAkB,EACC,MAAc;QAElD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7D,CAAC;IAGK,AAAN,KAAK,CAAC,sBAAsB,CACf,EAAE,IAAI,EAAkB,EAEnC,GAAW,EA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
}
|
|
9
|
+
export declare class ThumbImagePropertiesObjectType {
|
|
10
|
+
url: string;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
mediaType: string;
|
|
14
|
+
originalWidth: number;
|
|
15
|
+
originalHeight: number;
|
|
16
|
+
originalLossless?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare class ReorderMediasInput {
|
|
19
|
+
galleryHandle: string;
|
|
20
|
+
mediaUids: string[];
|
|
21
|
+
}
|
|
22
|
+
export declare class ResizeImageInput {
|
|
23
|
+
uid: string;
|
|
24
|
+
variantName: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class ResizingImage {
|
|
27
|
+
height: number;
|
|
28
|
+
width: number;
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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.ResizingImage = exports.ResizeImageInput = exports.ReorderMediasInput = exports.ThumbImagePropertiesObjectType = exports.MediaObjectType = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
let MediaObjectType = class MediaObjectType {
|
|
15
|
+
uid;
|
|
16
|
+
mediaType;
|
|
17
|
+
weightB;
|
|
18
|
+
modifiedTs;
|
|
19
|
+
originalName;
|
|
20
|
+
attachedData;
|
|
21
|
+
};
|
|
22
|
+
exports.MediaObjectType = MediaObjectType;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], MediaObjectType.prototype, "uid", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, graphql_1.Field)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], MediaObjectType.prototype, "mediaType", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], MediaObjectType.prototype, "weightB", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, graphql_1.Field)(() => Date),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], MediaObjectType.prototype, "modifiedTs", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], MediaObjectType.prototype, "originalName", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], MediaObjectType.prototype, "attachedData", void 0);
|
|
47
|
+
exports.MediaObjectType = MediaObjectType = __decorate([
|
|
48
|
+
(0, graphql_1.ObjectType)("Media")
|
|
49
|
+
], MediaObjectType);
|
|
50
|
+
let ThumbImagePropertiesObjectType = class ThumbImagePropertiesObjectType {
|
|
51
|
+
url;
|
|
52
|
+
width;
|
|
53
|
+
height;
|
|
54
|
+
mediaType;
|
|
55
|
+
originalWidth;
|
|
56
|
+
originalHeight;
|
|
57
|
+
originalLossless;
|
|
58
|
+
};
|
|
59
|
+
exports.ThumbImagePropertiesObjectType = ThumbImagePropertiesObjectType;
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)(() => String),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ThumbImagePropertiesObjectType.prototype, "url", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], ThumbImagePropertiesObjectType.prototype, "width", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], ThumbImagePropertiesObjectType.prototype, "height", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, graphql_1.Field)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], ThumbImagePropertiesObjectType.prototype, "mediaType", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], ThumbImagePropertiesObjectType.prototype, "originalWidth", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], ThumbImagePropertiesObjectType.prototype, "originalHeight", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, graphql_1.Field)(() => Boolean, { nullable: true }),
|
|
86
|
+
__metadata("design:type", Boolean)
|
|
87
|
+
], ThumbImagePropertiesObjectType.prototype, "originalLossless", void 0);
|
|
88
|
+
exports.ThumbImagePropertiesObjectType = ThumbImagePropertiesObjectType = __decorate([
|
|
89
|
+
(0, graphql_1.ObjectType)("ThumbImageProperties")
|
|
90
|
+
], ThumbImagePropertiesObjectType);
|
|
91
|
+
let ReorderMediasInput = class ReorderMediasInput {
|
|
92
|
+
galleryHandle;
|
|
93
|
+
mediaUids;
|
|
94
|
+
};
|
|
95
|
+
exports.ReorderMediasInput = ReorderMediasInput;
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], ReorderMediasInput.prototype, "galleryHandle", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, graphql_1.Field)(() => [graphql_1.ID]),
|
|
102
|
+
__metadata("design:type", Array)
|
|
103
|
+
], ReorderMediasInput.prototype, "mediaUids", void 0);
|
|
104
|
+
exports.ReorderMediasInput = ReorderMediasInput = __decorate([
|
|
105
|
+
(0, graphql_1.InputType)()
|
|
106
|
+
], ReorderMediasInput);
|
|
107
|
+
let ResizeImageInput = class ResizeImageInput {
|
|
108
|
+
uid;
|
|
109
|
+
variantName;
|
|
110
|
+
};
|
|
111
|
+
exports.ResizeImageInput = ResizeImageInput;
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], ResizeImageInput.prototype, "uid", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, graphql_1.Field)(() => String),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], ResizeImageInput.prototype, "variantName", void 0);
|
|
120
|
+
exports.ResizeImageInput = ResizeImageInput = __decorate([
|
|
121
|
+
(0, graphql_1.InputType)()
|
|
122
|
+
], ResizeImageInput);
|
|
123
|
+
let ResizingImage = class ResizingImage {
|
|
124
|
+
height;
|
|
125
|
+
width;
|
|
126
|
+
url;
|
|
127
|
+
};
|
|
128
|
+
exports.ResizingImage = ResizingImage;
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
131
|
+
__metadata("design:type", Number)
|
|
132
|
+
], ResizingImage.prototype, "height", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], ResizingImage.prototype, "width", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, graphql_1.Field)(() => String),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], ResizingImage.prototype, "url", void 0);
|
|
141
|
+
exports.ResizingImage = ResizingImage = __decorate([
|
|
142
|
+
(0, graphql_1.ObjectType)()
|
|
143
|
+
], ResizingImage);
|
|
144
|
+
//# sourceMappingURL=media.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/media/media.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwE;AAGjE,IAAM,eAAe,GAArB,MAAM,eAAe;IAE1B,GAAG,CAAU;IAGb,SAAS,CAAU;IAGnB,OAAO,CAAU;IAGjB,UAAU,CAAQ;IAGlB,YAAY,CAAU;IAGtB,YAAY,CAAU;CACvB,CAAA;AAlBY,0CAAe;AAE1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;4CACH;AAGb;IADC,IAAA,eAAK,GAAE;;kDACW;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;gDACA;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;mDAAC;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;0BAjBX,eAAe;IAD3B,IAAA,oBAAU,EAAC,OAAO,CAAC;GACP,eAAe,CAkB3B;AAGM,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAEzC,GAAG,CAAU;IAGb,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,SAAS,CAA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S,GAAE;GACC,gBAAgB,CAM5B;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;IAExB,MAAM,CAAU;IAGhB,KAAK,CAAU;IAGf,GAAG,CAAU;CACd,CAAA;AATY,sCAAa;AAExB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;6CACD;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;4CACF;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACP;wBARF,aAAa;IADzB,IAAA,oBAAU,GAAE;GACA,aAAa,CASzB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.PaPartEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PaPartEntity = class PaPartEntity {
|
|
15
|
+
leafId;
|
|
16
|
+
lang;
|
|
17
|
+
title;
|
|
18
|
+
idToString() {
|
|
19
|
+
this.leafId = this.leafId?.toString();
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.PaPartEntity = PaPartEntity;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ primary: true, type: "bigint" }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PaPartEntity.prototype, "leafId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ primary: true, type: "varchar" }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], PaPartEntity.prototype, "lang", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], PaPartEntity.prototype, "title", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.AfterLoad)(),
|
|
37
|
+
__metadata("design:type", Function),
|
|
38
|
+
__metadata("design:paramtypes", []),
|
|
39
|
+
__metadata("design:returntype", void 0)
|
|
40
|
+
], PaPartEntity.prototype, "idToString", null);
|
|
41
|
+
exports.PaPartEntity = PaPartEntity = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)("PaPart")
|
|
43
|
+
], PaPartEntity);
|
|
44
|
+
//# sourceMappingURL=part.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"part.model.js","sourceRoot":"","sources":["../../../../src/modules/core/part/part.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEvB,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AAdY,oCAAY;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;4CAC1B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CAC7B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC7B;AAGf;IADC,IAAA,mBAAS,GAAE;;;;8CAGX;uBAbU,YAAY;IADxB,IAAA,gBAAM,EAAC,QAAQ,CAAC;GACJ,YAAY,CAcxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.PartModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const part_resolver_1 = require("./part.resolver");
|
|
12
|
+
const part_resolver_extend_1 = require("./part.resolver.extend");
|
|
13
|
+
let PartModule = class PartModule {
|
|
14
|
+
};
|
|
15
|
+
exports.PartModule = PartModule;
|
|
16
|
+
exports.PartModule = PartModule = __decorate([
|
|
17
|
+
(0, common_1.Module)({
|
|
18
|
+
providers: [part_resolver_1.PartResolver, part_resolver_extend_1.ExtendSectionWrapWithPartResolver, part_resolver_1.PartPlaceholderResolver],
|
|
19
|
+
})
|
|
20
|
+
], PartModule);
|
|
21
|
+
//# sourceMappingURL=part.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"part.module.js","sourceRoot":"","sources":["../../../../src/modules/core/part/part.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,mDAAwE;AACxE,iEAA2E;AAKpE,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAHtB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,4BAAY,EAAE,wDAAiC,EAAE,uCAAuB,CAAC;KACtF,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ParsedSectionId } from "@paroicms/anywhere-lib";
|
|
2
|
+
import { SiteContext } from "../../../site-context/site-context.types";
|
|
3
|
+
import { PartObjectType, PartPlaceholderObjectType } from "./part.schema";
|
|
4
|
+
export declare function createPartOnLeaf(siteContext: SiteContext, sectionId: ParsedSectionId): Promise<ParsedSectionId>;
|
|
5
|
+
export declare function createLeafWithPart(siteContext: SiteContext, { parentSectionId, listName, leafType, }: {
|
|
6
|
+
parentSectionId: ParsedSectionId;
|
|
7
|
+
listName: string;
|
|
8
|
+
leafType: string;
|
|
9
|
+
}): Promise<ParsedSectionId>;
|
|
10
|
+
export interface Part {
|
|
11
|
+
leafType: string;
|
|
12
|
+
leafId: string;
|
|
13
|
+
lang: string;
|
|
14
|
+
sectionId: string;
|
|
15
|
+
featuredImageHandle: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function loadPart(siteContext: Pick<SiteContext, "mainCn">, sectionId: ParsedSectionId): Promise<Part>;
|
|
18
|
+
export declare function deletePart(siteContext: SiteContext, sectionId: ParsedSectionId): Promise<void>;
|
|
19
|
+
export declare function partsOf({ mainCn }: SiteContext, { listNames, parentId, }: {
|
|
20
|
+
parentId: ParsedSectionId;
|
|
21
|
+
listNames: string[];
|
|
22
|
+
}): Promise<(PartPlaceholderObjectType | PartObjectType)[]>;
|