@paroicms/server 0.150.0 → 0.151.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 +10 -7
- package/package.json +17 -8
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -5
- package/dist/cli.js.map +0 -1
- package/dist/common/child-ordering-query.d.ts +0 -13
- package/dist/common/child-ordering-query.js +0 -107
- package/dist/common/child-ordering-query.js.map +0 -1
- package/dist/common/data-format.d.ts +0 -19
- package/dist/common/data-format.js +0 -86
- package/dist/common/data-format.js.map +0 -1
- package/dist/common/mail/html-helpers.d.ts +0 -7
- package/dist/common/mail/html-helpers.js +0 -46
- package/dist/common/mail/html-helpers.js.map +0 -1
- package/dist/common/mail/sendMail.helpers.d.ts +0 -14
- package/dist/common/mail/sendMail.helpers.js +0 -51
- package/dist/common/mail/sendMail.helpers.js.map +0 -1
- package/dist/common/media-handles.helpers.d.ts +0 -19
- package/dist/common/media-handles.helpers.js +0 -52
- package/dist/common/media-handles.helpers.js.map +0 -1
- package/dist/common/serve-html-or.d.ts +0 -16
- package/dist/common/serve-html-or.js +0 -72
- package/dist/common/serve-html-or.js.map +0 -1
- package/dist/common/text-cache.d.ts +0 -57
- package/dist/common/text-cache.js +0 -87
- package/dist/common/text-cache.js.map +0 -1
- package/dist/common/tracker-report.d.ts +0 -2
- package/dist/common/tracker-report.js +0 -27
- package/dist/common/tracker-report.js.map +0 -1
- package/dist/context.d.ts +0 -29
- package/dist/context.js +0 -60
- package/dist/context.js.map +0 -1
- package/dist/express/http-helpers.d.ts +0 -16
- package/dist/express/http-helpers.js +0 -44
- package/dist/express/http-helpers.js.map +0 -1
- package/dist/express/static-middlewares.d.ts +0 -3
- package/dist/express/static-middlewares.js +0 -114
- package/dist/express/static-middlewares.js.map +0 -1
- package/dist/helpers/configuration.helpers.d.ts +0 -2
- package/dist/helpers/configuration.helpers.js +0 -8
- package/dist/helpers/configuration.helpers.js.map +0 -1
- package/dist/helpers/excerpt.helpers.d.ts +0 -2
- package/dist/helpers/excerpt.helpers.js +0 -31
- package/dist/helpers/excerpt.helpers.js.map +0 -1
- package/dist/helpers/jwt-secret.helpers.d.ts +0 -2
- package/dist/helpers/jwt-secret.helpers.js +0 -30
- package/dist/helpers/jwt-secret.helpers.js.map +0 -1
- package/dist/helpers/label-translator.helper.d.ts +0 -9
- package/dist/helpers/label-translator.helper.js +0 -14
- package/dist/helpers/label-translator.helper.js.map +0 -1
- package/dist/helpers/passwordEncrypt-helper.d.ts +0 -2
- package/dist/helpers/passwordEncrypt-helper.js +0 -37
- package/dist/helpers/passwordEncrypt-helper.js.map +0 -1
- package/dist/helpers/relative-id-helper.d.ts +0 -10
- package/dist/helpers/relative-id-helper.js +0 -37
- package/dist/helpers/relative-id-helper.js.map +0 -1
- package/dist/helpers/simple-i18n.d.ts +0 -14
- package/dist/helpers/simple-i18n.js +0 -82
- package/dist/helpers/simple-i18n.js.map +0 -1
- package/dist/helpers/special-account.helpers.d.ts +0 -9
- package/dist/helpers/special-account.helpers.js +0 -43
- package/dist/helpers/special-account.helpers.js.map +0 -1
- package/dist/helpers/url.helpers.d.ts +0 -2
- package/dist/helpers/url.helpers.js +0 -12
- package/dist/helpers/url.helpers.js.map +0 -1
- package/dist/helpers/utils-helper.d.ts +0 -4
- package/dist/helpers/utils-helper.js +0 -32
- package/dist/helpers/utils-helper.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -69
- package/dist/index.js.map +0 -1
- package/dist/liquidjs-tools/liquidjs-drop.d.ts +0 -31
- package/dist/liquidjs-tools/liquidjs-drop.js +0 -45
- package/dist/liquidjs-tools/liquidjs-drop.js.map +0 -1
- package/dist/liquidjs-tools/liquidjs-filter.d.ts +0 -10
- package/dist/liquidjs-tools/liquidjs-filter.js +0 -23
- package/dist/liquidjs-tools/liquidjs-filter.js.map +0 -1
- package/dist/liquidjs-tools/liquidjs-rendering/render-liquidjs.d.ts +0 -6
- package/dist/liquidjs-tools/liquidjs-rendering/render-liquidjs.js +0 -40
- package/dist/liquidjs-tools/liquidjs-rendering/render-liquidjs.js.map +0 -1
- package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.d.ts +0 -25
- package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js +0 -35
- package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js.map +0 -1
- package/dist/liquidjs-tools/liquidjs-utils.d.ts +0 -5
- package/dist/liquidjs-tools/liquidjs-utils.js +0 -22
- package/dist/liquidjs-tools/liquidjs-utils.js.map +0 -1
- package/dist/liquidjs-tools/render-clone/collection.d.ts +0 -1
- package/dist/liquidjs-tools/render-clone/collection.js +0 -18
- package/dist/liquidjs-tools/render-clone/collection.js.map +0 -1
- package/dist/liquidjs-tools/render-clone/forloop-drop.d.ts +0 -15
- package/dist/liquidjs-tools/render-clone/forloop-drop.js +0 -40
- package/dist/liquidjs-tools/render-clone/forloop-drop.js.map +0 -1
- package/dist/liquidjs-tools/render-clone/render.d.ts +0 -13
- package/dist/liquidjs-tools/render-clone/render.js +0 -108
- package/dist/liquidjs-tools/render-clone/render.js.map +0 -1
- package/dist/maintenance/maintenance-task.d.ts +0 -4
- package/dist/maintenance/maintenance-task.js +0 -27
- package/dist/maintenance/maintenance-task.js.map +0 -1
- package/dist/maintenance/shutdown.d.ts +0 -7
- package/dist/maintenance/shutdown.js +0 -51
- package/dist/maintenance/shutdown.js.map +0 -1
- package/dist/modules/app.controller.d.ts +0 -5
- package/dist/modules/app.controller.js +0 -89
- package/dist/modules/app.controller.js.map +0 -1
- package/dist/modules/app.module.d.ts +0 -2
- package/dist/modules/app.module.js +0 -48
- package/dist/modules/app.module.js.map +0 -1
- package/dist/modules/core/account/account.model.d.ts +0 -18
- package/dist/modules/core/account/account.model.js +0 -59
- package/dist/modules/core/account/account.model.js.map +0 -1
- package/dist/modules/core/account/account.module.d.ts +0 -2
- package/dist/modules/core/account/account.module.js +0 -20
- package/dist/modules/core/account/account.module.js.map +0 -1
- package/dist/modules/core/account/account.queries.d.ts +0 -18
- package/dist/modules/core/account/account.queries.js +0 -150
- package/dist/modules/core/account/account.queries.js.map +0 -1
- package/dist/modules/core/account/account.resolver.d.ts +0 -11
- package/dist/modules/core/account/account.resolver.js +0 -107
- package/dist/modules/core/account/account.resolver.js.map +0 -1
- package/dist/modules/core/account/account.schema.d.ts +0 -24
- package/dist/modules/core/account/account.schema.js +0 -114
- package/dist/modules/core/account/account.schema.js.map +0 -1
- package/dist/modules/core/account-auth/account-auth.module.d.ts +0 -2
- package/dist/modules/core/account-auth/account-auth.module.js +0 -24
- package/dist/modules/core/account-auth/account-auth.module.js.map +0 -1
- package/dist/modules/core/account-auth/account-auth.service.d.ts +0 -5
- package/dist/modules/core/account-auth/account-auth.service.js +0 -41
- package/dist/modules/core/account-auth/account-auth.service.js.map +0 -1
- package/dist/modules/core/account-auth/account-auth.strategy.d.ts +0 -10
- package/dist/modules/core/account-auth/account-auth.strategy.js +0 -49
- package/dist/modules/core/account-auth/account-auth.strategy.js.map +0 -1
- package/dist/modules/core/auth/auth.module.d.ts +0 -2
- package/dist/modules/core/auth/auth.module.js +0 -35
- package/dist/modules/core/auth/auth.module.js.map +0 -1
- package/dist/modules/core/auth/auth.service.d.ts +0 -11
- package/dist/modules/core/auth/auth.service.js +0 -164
- package/dist/modules/core/auth/auth.service.js.map +0 -1
- package/dist/modules/core/auth/auth.types.d.ts +0 -27
- package/dist/modules/core/auth/auth.types.js +0 -3
- package/dist/modules/core/auth/auth.types.js.map +0 -1
- package/dist/modules/core/auth/jwt.auth.guard.d.ts +0 -6
- package/dist/modules/core/auth/jwt.auth.guard.js +0 -23
- package/dist/modules/core/auth/jwt.auth.guard.js.map +0 -1
- package/dist/modules/core/auth/jwt.strategy.d.ts +0 -10
- package/dist/modules/core/auth/jwt.strategy.js +0 -35
- package/dist/modules/core/auth/jwt.strategy.js.map +0 -1
- package/dist/modules/core/backup/backup.controller.d.ts +0 -7
- package/dist/modules/core/backup/backup.controller.js +0 -61
- package/dist/modules/core/backup/backup.controller.js.map +0 -1
- package/dist/modules/core/backup/backup.module.d.ts +0 -2
- package/dist/modules/core/backup/backup.module.js +0 -22
- package/dist/modules/core/backup/backup.module.js.map +0 -1
- package/dist/modules/core/backup/backup.resolver.d.ts +0 -8
- package/dist/modules/core/backup/backup.resolver.js +0 -54
- package/dist/modules/core/backup/backup.resolver.js.map +0 -1
- package/dist/modules/core/backup/backup.shema.d.ts +0 -4
- package/dist/modules/core/backup/backup.shema.js +0 -30
- package/dist/modules/core/backup/backup.shema.js.map +0 -1
- package/dist/modules/core/core.module.d.ts +0 -2
- package/dist/modules/core/core.module.js +0 -50
- package/dist/modules/core/core.module.js.map +0 -1
- package/dist/modules/core/document/document.helper.d.ts +0 -2
- package/dist/modules/core/document/document.helper.js +0 -10
- package/dist/modules/core/document/document.helper.js.map +0 -1
- package/dist/modules/core/document/document.model.d.ts +0 -9
- package/dist/modules/core/document/document.model.js +0 -59
- package/dist/modules/core/document/document.model.js.map +0 -1
- package/dist/modules/core/document/document.module.d.ts +0 -2
- package/dist/modules/core/document/document.module.js +0 -25
- package/dist/modules/core/document/document.module.js.map +0 -1
- package/dist/modules/core/document/document.resolver.d.ts +0 -12
- package/dist/modules/core/document/document.resolver.extend.d.ts +0 -10
- package/dist/modules/core/document/document.resolver.extend.js +0 -69
- package/dist/modules/core/document/document.resolver.extend.js.map +0 -1
- package/dist/modules/core/document/document.resolver.js +0 -154
- package/dist/modules/core/document/document.resolver.js.map +0 -1
- package/dist/modules/core/document/document.schema.d.ts +0 -39
- package/dist/modules/core/document/document.schema.js +0 -181
- package/dist/modules/core/document/document.schema.js.map +0 -1
- package/dist/modules/core/document/load-documents.queries.d.ts +0 -17
- package/dist/modules/core/document/load-documents.queries.js +0 -119
- package/dist/modules/core/document/load-documents.queries.js.map +0 -1
- package/dist/modules/core/document/save-documents.queries.d.ts +0 -18
- package/dist/modules/core/document/save-documents.queries.js +0 -199
- package/dist/modules/core/document/save-documents.queries.js.map +0 -1
- package/dist/modules/core/fields/_fields.helpers.d.ts +0 -2
- package/dist/modules/core/fields/_fields.helpers.js +0 -12
- package/dist/modules/core/fields/_fields.helpers.js.map +0 -1
- package/dist/modules/core/fields/fields.model.d.ts +0 -17
- package/dist/modules/core/fields/fields.model.js +0 -99
- package/dist/modules/core/fields/fields.model.js.map +0 -1
- package/dist/modules/core/fields/fields.module.d.ts +0 -2
- package/dist/modules/core/fields/fields.module.js +0 -20
- package/dist/modules/core/fields/fields.module.js.map +0 -1
- package/dist/modules/core/fields/fields.resolver.d.ts +0 -14
- package/dist/modules/core/fields/fields.resolver.js +0 -165
- package/dist/modules/core/fields/fields.resolver.js.map +0 -1
- package/dist/modules/core/fields/load-fields.queries.d.ts +0 -20
- package/dist/modules/core/fields/load-fields.queries.js +0 -233
- package/dist/modules/core/fields/load-fields.queries.js.map +0 -1
- package/dist/modules/core/fields/quill-delta.d.ts +0 -1
- package/dist/modules/core/fields/quill-delta.js +0 -40
- package/dist/modules/core/fields/quill-delta.js.map +0 -1
- package/dist/modules/core/fields/save-fields.queries.d.ts +0 -9
- package/dist/modules/core/fields/save-fields.queries.js +0 -135
- package/dist/modules/core/fields/save-fields.queries.js.map +0 -1
- package/dist/modules/core/leaf/leaf.model.d.ts +0 -9
- package/dist/modules/core/leaf/leaf.model.js +0 -61
- package/dist/modules/core/leaf/leaf.model.js.map +0 -1
- package/dist/modules/core/leaf/leaf.module.d.ts +0 -2
- package/dist/modules/core/leaf/leaf.module.js +0 -21
- package/dist/modules/core/leaf/leaf.module.js.map +0 -1
- package/dist/modules/core/leaf/leaf.queries.d.ts +0 -21
- package/dist/modules/core/leaf/leaf.queries.js +0 -159
- package/dist/modules/core/leaf/leaf.queries.js.map +0 -1
- package/dist/modules/core/leaf/leaf.resolver.d.ts +0 -9
- package/dist/modules/core/leaf/leaf.resolver.extend.d.ts +0 -6
- package/dist/modules/core/leaf/leaf.resolver.extend.js +0 -42
- package/dist/modules/core/leaf/leaf.resolver.extend.js.map +0 -1
- package/dist/modules/core/leaf/leaf.resolver.js +0 -84
- package/dist/modules/core/leaf/leaf.resolver.js.map +0 -1
- package/dist/modules/core/leaf/leaf.schema.d.ts +0 -7
- package/dist/modules/core/leaf/leaf.schema.js +0 -45
- package/dist/modules/core/leaf/leaf.schema.js.map +0 -1
- package/dist/modules/core/leaf-item/leaf-item.model.d.ts +0 -6
- package/dist/modules/core/leaf-item/leaf-item.model.js +0 -44
- package/dist/modules/core/leaf-item/leaf-item.model.js.map +0 -1
- package/dist/modules/core/leaf-item/leaf-item.queries.d.ts +0 -9
- package/dist/modules/core/leaf-item/leaf-item.queries.js +0 -120
- package/dist/modules/core/leaf-item/leaf-item.queries.js.map +0 -1
- package/dist/modules/core/login/login.controller.d.ts +0 -8
- package/dist/modules/core/login/login.controller.js +0 -54
- package/dist/modules/core/login/login.controller.js.map +0 -1
- package/dist/modules/core/login/login.module.d.ts +0 -2
- package/dist/modules/core/login/login.module.js +0 -22
- package/dist/modules/core/login/login.module.js.map +0 -1
- package/dist/modules/core/media/media-upload.controller.d.ts +0 -21
- package/dist/modules/core/media/media-upload.controller.js +0 -160
- package/dist/modules/core/media/media-upload.controller.js.map +0 -1
- package/dist/modules/core/media/media.d.ts +0 -22
- package/dist/modules/core/media/media.js +0 -53
- package/dist/modules/core/media/media.js.map +0 -1
- package/dist/modules/core/media/media.module.d.ts +0 -2
- package/dist/modules/core/media/media.module.js +0 -22
- package/dist/modules/core/media/media.module.js.map +0 -1
- package/dist/modules/core/media/media.resolver.d.ts +0 -14
- package/dist/modules/core/media/media.resolver.js +0 -199
- package/dist/modules/core/media/media.resolver.js.map +0 -1
- package/dist/modules/core/media/media.schema.d.ts +0 -30
- package/dist/modules/core/media/media.schema.js +0 -144
- package/dist/modules/core/media/media.schema.js.map +0 -1
- package/dist/modules/core/part/part.module.d.ts +0 -2
- package/dist/modules/core/part/part.module.js +0 -21
- package/dist/modules/core/part/part.module.js.map +0 -1
- package/dist/modules/core/part/part.queries.d.ts +0 -22
- package/dist/modules/core/part/part.queries.js +0 -167
- package/dist/modules/core/part/part.queries.js.map +0 -1
- package/dist/modules/core/part/part.resolver.d.ts +0 -14
- package/dist/modules/core/part/part.resolver.extend.d.ts +0 -5
- package/dist/modules/core/part/part.resolver.extend.js +0 -49
- package/dist/modules/core/part/part.resolver.extend.js.map +0 -1
- package/dist/modules/core/part/part.resolver.js +0 -135
- package/dist/modules/core/part/part.resolver.js.map +0 -1
- package/dist/modules/core/part/part.schema.d.ts +0 -12
- package/dist/modules/core/part/part.schema.js +0 -66
- package/dist/modules/core/part/part.schema.js.map +0 -1
- package/dist/modules/core/section/section-wrap.resolver.d.ts +0 -11
- package/dist/modules/core/section/section-wrap.resolver.js +0 -168
- package/dist/modules/core/section/section-wrap.resolver.js.map +0 -1
- package/dist/modules/core/section/section.model.d.ts +0 -6
- package/dist/modules/core/section/section.model.js +0 -44
- package/dist/modules/core/section/section.model.js.map +0 -1
- package/dist/modules/core/section/section.module.d.ts +0 -2
- package/dist/modules/core/section/section.module.js +0 -21
- package/dist/modules/core/section/section.module.js.map +0 -1
- package/dist/modules/core/section/section.queries.d.ts +0 -51
- package/dist/modules/core/section/section.queries.js +0 -228
- package/dist/modules/core/section/section.queries.js.map +0 -1
- package/dist/modules/core/section/section.resolver.d.ts +0 -7
- package/dist/modules/core/section/section.resolver.js +0 -78
- package/dist/modules/core/section/section.resolver.js.map +0 -1
- package/dist/modules/core/section/section.schema.d.ts +0 -27
- package/dist/modules/core/section/section.schema.js +0 -129
- package/dist/modules/core/section/section.schema.js.map +0 -1
- package/dist/modules/core/site-info/site-info.module.d.ts +0 -2
- package/dist/modules/core/site-info/site-info.module.js +0 -20
- package/dist/modules/core/site-info/site-info.module.js.map +0 -1
- package/dist/modules/core/site-info/site-info.resolver.d.ts +0 -5
- package/dist/modules/core/site-info/site-info.resolver.js +0 -44
- package/dist/modules/core/site-info/site-info.resolver.js.map +0 -1
- package/dist/modules/core/site-info/site-info.schema.d.ts +0 -6
- package/dist/modules/core/site-info/site-info.schema.js +0 -36
- package/dist/modules/core/site-info/site-info.schema.js.map +0 -1
- package/dist/modules/core/site-schema/site-schema.module.d.ts +0 -2
- package/dist/modules/core/site-schema/site-schema.module.js +0 -20
- package/dist/modules/core/site-schema/site-schema.module.js.map +0 -1
- package/dist/modules/core/site-schema/site-schema.resolver.d.ts +0 -4
- package/dist/modules/core/site-schema/site-schema.resolver.js +0 -35
- package/dist/modules/core/site-schema/site-schema.resolver.js.map +0 -1
- package/dist/modules/core/term-flag/term-flag.model.d.ts +0 -6
- package/dist/modules/core/term-flag/term-flag.model.js +0 -45
- package/dist/modules/core/term-flag/term-flag.model.js.map +0 -1
- package/dist/modules/core/term-flag/term-flag.module.d.ts +0 -2
- package/dist/modules/core/term-flag/term-flag.module.js +0 -20
- package/dist/modules/core/term-flag/term-flag.module.js.map +0 -1
- package/dist/modules/core/term-flag/term-flag.queries.d.ts +0 -7
- package/dist/modules/core/term-flag/term-flag.queries.js +0 -44
- package/dist/modules/core/term-flag/term-flag.queries.js.map +0 -1
- package/dist/modules/core/term-flag/term-flag.resolver.d.ts +0 -5
- package/dist/modules/core/term-flag/term-flag.resolver.js +0 -47
- package/dist/modules/core/term-flag/term-flag.resolver.js.map +0 -1
- package/dist/modules/core/term-flag/term-flag.schema.d.ts +0 -9
- package/dist/modules/core/term-flag/term-flag.schema.js +0 -51
- package/dist/modules/core/term-flag/term-flag.schema.js.map +0 -1
- package/dist/modules/core/unprotected/unprotected.module.d.ts +0 -2
- package/dist/modules/core/unprotected/unprotected.module.js +0 -20
- package/dist/modules/core/unprotected/unprotected.module.js.map +0 -1
- package/dist/modules/core/unprotected/unprotected.resolver.d.ts +0 -8
- package/dist/modules/core/unprotected/unprotected.resolver.js +0 -106
- package/dist/modules/core/unprotected/unprotected.resolver.js.map +0 -1
- package/dist/modules/core/unprotected/unprotected.schema.d.ts +0 -19
- package/dist/modules/core/unprotected/unprotected.schema.js +0 -93
- package/dist/modules/core/unprotected/unprotected.schema.js.map +0 -1
- package/dist/modules/graphql.types.d.ts +0 -6
- package/dist/modules/graphql.types.js +0 -3
- package/dist/modules/graphql.types.js.map +0 -1
- package/dist/modules/private-api.module.d.ts +0 -2
- package/dist/modules/private-api.module.js +0 -50
- package/dist/modules/private-api.module.js.map +0 -1
- package/dist/modules/public-api/class-validator-options.d.ts +0 -7
- package/dist/modules/public-api/class-validator-options.js +0 -11
- package/dist/modules/public-api/class-validator-options.js.map +0 -1
- package/dist/modules/public-api/mail/contact-form-mail.d.ts +0 -8
- package/dist/modules/public-api/mail/contact-form-mail.js +0 -96
- package/dist/modules/public-api/mail/contact-form-mail.js.map +0 -1
- package/dist/modules/public-api/mail/mail.dto.d.ts +0 -8
- package/dist/modules/public-api/mail/mail.dto.js +0 -56
- package/dist/modules/public-api/mail/mail.dto.js.map +0 -1
- package/dist/modules/public-api/partials/partials-params.dto.d.ts +0 -6
- package/dist/modules/public-api/partials/partials-params.dto.js +0 -45
- package/dist/modules/public-api/partials/partials-params.dto.js.map +0 -1
- package/dist/modules/public-api/password-reset/password-reset.controller.d.ts +0 -11
- package/dist/modules/public-api/password-reset/password-reset.controller.js +0 -59
- package/dist/modules/public-api/password-reset/password-reset.controller.js.map +0 -1
- package/dist/modules/public-api/password-reset/password-reset.dto.d.ts +0 -9
- package/dist/modules/public-api/password-reset/password-reset.dto.js +0 -55
- package/dist/modules/public-api/password-reset/password-reset.dto.js.map +0 -1
- package/dist/modules/public-api/password-reset/password-reset.module.d.ts +0 -2
- package/dist/modules/public-api/password-reset/password-reset.module.js +0 -22
- package/dist/modules/public-api/password-reset/password-reset.module.js.map +0 -1
- package/dist/modules/public-api/password-reset/password-reset.service.d.ts +0 -14
- package/dist/modules/public-api/password-reset/password-reset.service.js +0 -56
- package/dist/modules/public-api/password-reset/password-reset.service.js.map +0 -1
- package/dist/modules/public-api/public-api-controller.d.ts +0 -32
- package/dist/modules/public-api/public-api-controller.js +0 -198
- package/dist/modules/public-api/public-api-controller.js.map +0 -1
- package/dist/modules/public-api/public-api.module.d.ts +0 -2
- package/dist/modules/public-api/public-api.module.js +0 -22
- package/dist/modules/public-api/public-api.module.js.map +0 -1
- package/dist/modules/public-api/search-text/search-text.dto.d.ts +0 -7
- package/dist/modules/public-api/search-text/search-text.dto.js +0 -50
- package/dist/modules/public-api/search-text/search-text.dto.js.map +0 -1
- package/dist/modules/public-api/search-text/search-text.queries.d.ts +0 -14
- package/dist/modules/public-api/search-text/search-text.queries.js +0 -58
- package/dist/modules/public-api/search-text/search-text.queries.js.map +0 -1
- package/dist/modules/public-site/app-exception-filter.d.ts +0 -4
- package/dist/modules/public-site/app-exception-filter.js +0 -41
- package/dist/modules/public-site/app-exception-filter.js.map +0 -1
- package/dist/modules/public-site/helpers/format-date.helper.d.ts +0 -4
- package/dist/modules/public-site/helpers/format-date.helper.js +0 -35
- package/dist/modules/public-site/helpers/format-date.helper.js.map +0 -1
- package/dist/modules/public-site/helpers/medias.helpers.d.ts +0 -3
- package/dist/modules/public-site/helpers/medias.helpers.js +0 -16
- package/dist/modules/public-site/helpers/medias.helpers.js.map +0 -1
- package/dist/modules/public-site/helpers/obfuscate.helper.d.ts +0 -2
- package/dist/modules/public-site/helpers/obfuscate.helper.js +0 -27
- package/dist/modules/public-site/helpers/obfuscate.helper.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/format-date.d.ts +0 -7
- package/dist/modules/public-site/liquidjs-filters/format-date.js +0 -15
- package/dist/modules/public-site/liquidjs-filters/format-date.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/format-number.d.ts +0 -6
- package/dist/modules/public-site/liquidjs-filters/format-number.js +0 -17
- package/dist/modules/public-site/liquidjs-filters/format-number.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/info-filter.d.ts +0 -1
- package/dist/modules/public-site/liquidjs-filters/info-filter.js +0 -144
- package/dist/modules/public-site/liquidjs-filters/info-filter.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.d.ts +0 -1
- package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js +0 -40
- package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.d.ts +0 -6
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js +0 -25
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/make-excerpt.d.ts +0 -3
- package/dist/modules/public-site/liquidjs-filters/make-excerpt.js +0 -10
- package/dist/modules/public-site/liquidjs-filters/make-excerpt.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/obfuscate.d.ts +0 -2
- package/dist/modules/public-site/liquidjs-filters/obfuscate.js +0 -18
- package/dist/modules/public-site/liquidjs-filters/obfuscate.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.d.ts +0 -6
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js +0 -41
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js.map +0 -1
- package/dist/modules/public-site/liquidjs-filters/translate-filter.d.ts +0 -7
- package/dist/modules/public-site/liquidjs-filters/translate-filter.js +0 -23
- package/dist/modules/public-site/liquidjs-filters/translate-filter.js.map +0 -1
- package/dist/modules/public-site/liquidjs-tags/get-page-tag.d.ts +0 -13
- package/dist/modules/public-site/liquidjs-tags/get-page-tag.js +0 -69
- package/dist/modules/public-site/liquidjs-tags/get-page-tag.js.map +0 -1
- package/dist/modules/public-site/liquidjs-tags/get-pages-tag.d.ts +0 -13
- package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js +0 -95
- package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js.map +0 -1
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.d.ts +0 -13
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js +0 -54
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js.map +0 -1
- package/dist/modules/public-site/media-serve/_media-serve-helpers.d.ts +0 -11
- package/dist/modules/public-site/media-serve/_media-serve-helpers.js +0 -26
- package/dist/modules/public-site/media-serve/_media-serve-helpers.js.map +0 -1
- package/dist/modules/public-site/media-serve/media-serve.controller.d.ts +0 -4
- package/dist/modules/public-site/media-serve/media-serve.controller.js +0 -140
- package/dist/modules/public-site/media-serve/media-serve.controller.js.map +0 -1
- package/dist/modules/public-site/media-serve/media-serve.module.d.ts +0 -2
- package/dist/modules/public-site/media-serve/media-serve.module.js +0 -20
- package/dist/modules/public-site/media-serve/media-serve.module.js.map +0 -1
- package/dist/modules/public-site/oauth2-client.controller.d.ts +0 -10
- package/dist/modules/public-site/oauth2-client.controller.js +0 -144
- package/dist/modules/public-site/oauth2-client.controller.js.map +0 -1
- package/dist/modules/public-site/public-route/make-url.d.ts +0 -11
- package/dist/modules/public-site/public-route/make-url.js +0 -150
- package/dist/modules/public-site/public-route/make-url.js.map +0 -1
- package/dist/modules/public-site/public-route/public-route-parser.d.ts +0 -16
- package/dist/modules/public-site/public-route/public-route-parser.js +0 -154
- package/dist/modules/public-site/public-route/public-route-parser.js.map +0 -1
- package/dist/modules/public-site/public-route/raw-document-payload.d.ts +0 -8
- package/dist/modules/public-site/public-route/raw-document-payload.js +0 -86
- package/dist/modules/public-site/public-route/raw-document-payload.js.map +0 -1
- package/dist/modules/public-site/public-site.controller.d.ts +0 -7
- package/dist/modules/public-site/public-site.controller.js +0 -58
- package/dist/modules/public-site/public-site.controller.js.map +0 -1
- package/dist/modules/public-site/public-site.middleware.d.ts +0 -5
- package/dist/modules/public-site/public-site.middleware.js +0 -67
- package/dist/modules/public-site/public-site.middleware.js.map +0 -1
- package/dist/modules/public-site/public-site.module.d.ts +0 -4
- package/dist/modules/public-site/public-site.module.js +0 -27
- package/dist/modules/public-site/public-site.module.js.map +0 -1
- package/dist/modules/public-site/serve-document/serve-document.d.ts +0 -20
- package/dist/modules/public-site/serve-document/serve-document.js +0 -60
- package/dist/modules/public-site/serve-document/serve-document.js.map +0 -1
- package/dist/modules/security/app-throttler-guard.d.ts +0 -8
- package/dist/modules/security/app-throttler-guard.js +0 -18
- package/dist/modules/security/app-throttler-guard.js.map +0 -1
- package/dist/modules/security/complexity-plugin.d.ts +0 -8
- package/dist/modules/security/complexity-plugin.js +0 -46
- package/dist/modules/security/complexity-plugin.js.map +0 -1
- package/dist/nest-custom-logger.d.ts +0 -8
- package/dist/nest-custom-logger.js +0 -23
- package/dist/nest-custom-logger.js.map +0 -1
- package/dist/public-payload/breadcrumb.queries.d.ts +0 -5
- package/dist/public-payload/breadcrumb.queries.js +0 -26
- package/dist/public-payload/breadcrumb.queries.js.map +0 -1
- package/dist/public-payload/create-page-drop.d.ts +0 -11
- package/dist/public-payload/create-page-drop.js +0 -160
- package/dist/public-payload/create-page-drop.js.map +0 -1
- package/dist/public-payload/create-page-part-drop.d.ts +0 -7
- package/dist/public-payload/create-page-part-drop.js +0 -39
- package/dist/public-payload/create-page-part-drop.js.map +0 -1
- package/dist/public-payload/excerpt.queries.d.ts +0 -10
- package/dist/public-payload/excerpt.queries.js +0 -38
- package/dist/public-payload/excerpt.queries.js.map +0 -1
- package/dist/public-payload/field-values.d.ts +0 -9
- package/dist/public-payload/field-values.js +0 -99
- package/dist/public-payload/field-values.js.map +0 -1
- package/dist/public-payload/get-siblings.queries.d.ts +0 -5
- package/dist/public-payload/get-siblings.queries.js +0 -117
- package/dist/public-payload/get-siblings.queries.js.map +0 -1
- package/dist/public-payload/load-default-image.d.ts +0 -8
- package/dist/public-payload/load-default-image.js +0 -52
- package/dist/public-payload/load-default-image.js.map +0 -1
- package/dist/public-payload/make-basic-payload.d.ts +0 -6
- package/dist/public-payload/make-basic-payload.js +0 -19
- package/dist/public-payload/make-basic-payload.js.map +0 -1
- package/dist/public-payload/make-image-available.d.ts +0 -26
- package/dist/public-payload/make-image-available.js +0 -38
- package/dist/public-payload/make-image-available.js.map +0 -1
- package/dist/public-payload/page-values.queries.d.ts +0 -27
- package/dist/public-payload/page-values.queries.js +0 -110
- package/dist/public-payload/page-values.queries.js.map +0 -1
- package/dist/public-payload/parts.queries.d.ts +0 -6
- package/dist/public-payload/parts.queries.js +0 -123
- package/dist/public-payload/parts.queries.js.map +0 -1
- package/dist/public-payload/public-payload.types.d.ts +0 -130
- package/dist/public-payload/public-payload.types.js +0 -3
- package/dist/public-payload/public-payload.types.js.map +0 -1
- package/dist/public-payload/site-payload.d.ts +0 -4
- package/dist/public-payload/site-payload.js +0 -43
- package/dist/public-payload/site-payload.js.map +0 -1
- package/dist/public-payload/taxonomies.queries.d.ts +0 -13
- package/dist/public-payload/taxonomies.queries.js +0 -45
- package/dist/public-payload/taxonomies.queries.js.map +0 -1
- package/dist/public-payload/translations.queries.d.ts +0 -7
- package/dist/public-payload/translations.queries.js +0 -62
- package/dist/public-payload/translations.queries.js.map +0 -1
- package/dist/public.types.d.ts +0 -5
- package/dist/public.types.js +0 -3
- package/dist/public.types.js.map +0 -1
- package/dist/share/pino-app-log.d.ts +0 -26
- package/dist/share/pino-app-log.js +0 -138
- package/dist/share/pino-app-log.js.map +0 -1
- package/dist/share/read-configuration.d.ts +0 -7
- package/dist/share/read-configuration.js +0 -31
- package/dist/share/read-configuration.js.map +0 -1
- package/dist/site-backup/archiver.helper.d.ts +0 -12
- package/dist/site-backup/archiver.helper.js +0 -43
- package/dist/site-backup/archiver.helper.js.map +0 -1
- package/dist/site-backup/backup-tasks.d.ts +0 -10
- package/dist/site-backup/backup-tasks.js +0 -50
- package/dist/site-backup/backup-tasks.js.map +0 -1
- package/dist/site-backup/backup.d.ts +0 -11
- package/dist/site-backup/backup.helper.d.ts +0 -3
- package/dist/site-backup/backup.helper.js +0 -13
- package/dist/site-backup/backup.helper.js.map +0 -1
- package/dist/site-backup/backup.js +0 -35
- package/dist/site-backup/backup.js.map +0 -1
- package/dist/site-context/create-site-context.d.ts +0 -3
- package/dist/site-context/create-site-context.js +0 -183
- package/dist/site-context/create-site-context.js.map +0 -1
- package/dist/site-context/db-init/db-init.d.ts +0 -11
- package/dist/site-context/db-init/db-init.js +0 -38
- package/dist/site-context/db-init/db-init.js.map +0 -1
- package/dist/site-context/db-init/ddl-migration.d.ts +0 -13
- package/dist/site-context/db-init/ddl-migration.js +0 -26
- package/dist/site-context/db-init/ddl-migration.js.map +0 -1
- package/dist/site-context/db-init/init-routing-points.d.ts +0 -5
- package/dist/site-context/db-init/init-routing-points.js +0 -149
- package/dist/site-context/db-init/init-routing-points.js.map +0 -1
- package/dist/site-context/site-conf.d.ts +0 -17
- package/dist/site-context/site-conf.js +0 -103
- package/dist/site-context/site-conf.js.map +0 -1
- package/dist/site-context/site-context.d.ts +0 -12
- package/dist/site-context/site-context.js +0 -87
- package/dist/site-context/site-context.js.map +0 -1
- package/dist/site-context/site-context.types.d.ts +0 -46
- package/dist/site-context/site-context.types.js +0 -3
- package/dist/site-context/site-context.types.js.map +0 -1
- package/dist/site-context/theme-conf-reader.d.ts +0 -4
- package/dist/site-context/theme-conf-reader.js +0 -33
- package/dist/site-context/theme-conf-reader.js.map +0 -1
- package/dist/site-context/theme-conf-types.d.ts +0 -4
- package/dist/site-context/theme-conf-types.js +0 -3
- package/dist/site-context/theme-conf-types.js.map +0 -1
- package/dist/site-schema/common-schema-reader.d.ts +0 -6
- package/dist/site-schema/common-schema-reader.js +0 -29
- package/dist/site-schema/common-schema-reader.js.map +0 -1
- package/dist/site-schema/merged-schema-lib.d.ts +0 -30
- package/dist/site-schema/merged-schema-lib.js +0 -118
- package/dist/site-schema/merged-schema-lib.js.map +0 -1
- package/dist/site-schema/read-locales.d.ts +0 -24
- package/dist/site-schema/read-locales.js +0 -171
- package/dist/site-schema/read-locales.js.map +0 -1
- package/dist/site-schema/site-schema-factory.d.ts +0 -2
- package/dist/site-schema/site-schema-factory.js +0 -385
- package/dist/site-schema/site-schema-factory.js.map +0 -1
- package/dist/site-schema/site-schema-helpers.d.ts +0 -5
- package/dist/site-schema/site-schema-helpers.js +0 -27
- package/dist/site-schema/site-schema-helpers.js.map +0 -1
- package/dist/site-schema/site-schema-lib-reader.d.ts +0 -14
- package/dist/site-schema/site-schema-lib-reader.js +0 -48
- package/dist/site-schema/site-schema-lib-reader.js.map +0 -1
- package/dist/start.d.ts +0 -1
- package/dist/start.js +0 -5
- package/dist/start.js.map +0 -1
- package/dist/types.to.json +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-auth.strategy.js","sourceRoot":"","sources":["../../../../src/modules/core/account-auth/account-auth.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAAoD;AACpD,qEAA4D;AAC5D,8CAAyE;AAEzE,iEAA4D;AAGrD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,IAAA,2BAAgB,EAAC,kCAAQ,EAAE,QAAQ,CAAC;IAC9C;IAA7B,YAA6B,kBAAsC;QACjE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,iBAAO,CAAC,UAAU,CAAC;QACtD,KAAK,CAAC;YACJ,QAAQ,EAAE,QAAQ;YAClB,YAAY;YACZ,WAAW,EAAE,GAAG,yBAAe,kBAAkB;YACjD,iBAAiB,EAAE,IAAI;YACvB,KAAK,EAAE,CAAC,OAAO,CAAC;SACjB,CAAC,CAAC;QARwB,uBAAkB,GAAlB,kBAAkB,CAAoB;IASnE,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,GAAQ,EACR,WAAmB,EACnB,YAAoB,EACpB,OAAuB,EACvB,IAAmE;QAEnE,IAAI,CAAC;YACH,IAAI,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;YACzD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;YACvE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACnB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,qBAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvB,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;CACF,CAAA;AA5BY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAEsC,yCAAkB;GADxD,mBAAmB,CA4B/B"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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.AuthModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const jwt_1 = require("@nestjs/jwt");
|
|
12
|
-
const passport_1 = require("@nestjs/passport");
|
|
13
|
-
const context_1 = require("../../../context");
|
|
14
|
-
const account_module_1 = require("../account/account.module");
|
|
15
|
-
const auth_service_1 = require("./auth.service");
|
|
16
|
-
const jwt_strategy_1 = require("./jwt.strategy");
|
|
17
|
-
let AuthModule = class AuthModule {
|
|
18
|
-
};
|
|
19
|
-
exports.AuthModule = AuthModule;
|
|
20
|
-
exports.AuthModule = AuthModule = __decorate([
|
|
21
|
-
(0, common_1.Module)({
|
|
22
|
-
providers: [auth_service_1.AuthService, jwt_strategy_1.JwtStrategy],
|
|
23
|
-
imports: [
|
|
24
|
-
account_module_1.AccountModule,
|
|
25
|
-
passport_1.PassportModule,
|
|
26
|
-
jwt_1.JwtModule.register({
|
|
27
|
-
global: true,
|
|
28
|
-
secret: context_1.jwtSecret,
|
|
29
|
-
signOptions: { expiresIn: context_1.jwtExpiresIn },
|
|
30
|
-
}),
|
|
31
|
-
],
|
|
32
|
-
exports: [auth_service_1.AuthService],
|
|
33
|
-
})
|
|
34
|
-
], AuthModule);
|
|
35
|
-
//# sourceMappingURL=auth.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../../src/modules/core/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qCAAwC;AACxC,+CAAkD;AAClD,8CAA2D;AAC3D,8DAA0D;AAC1D,iDAA6C;AAC7C,iDAA6C;AAetC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAbtB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,0BAAW,EAAE,0BAAW,CAAC;QACrC,OAAO,EAAE;YACP,8BAAa;YACb,yBAAc;YACd,eAAS,CAAC,QAAQ,CAAC;gBACjB,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,mBAAS;gBACjB,WAAW,EAAE,EAAE,SAAS,EAAE,sBAAY,EAAE;aACzC,CAAC;SACH;QACD,OAAO,EAAE,CAAC,0BAAW,CAAC;KACvB,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { JwtService } from "@nestjs/jwt";
|
|
2
|
-
import { SiteContext } from "../../../site-context/site-context.types";
|
|
3
|
-
import type { LoginFailed, LoginInput, LoginSuccess } from "./auth.types";
|
|
4
|
-
export declare class AuthService {
|
|
5
|
-
#private;
|
|
6
|
-
private jwtService;
|
|
7
|
-
constructor(jwtService: JwtService);
|
|
8
|
-
login(siteContext: SiteContext, user: LoginInput): Promise<LoginSuccess | LoginFailed>;
|
|
9
|
-
verifyToken(siteContext: SiteContext, token: string): Promise<LoginSuccess | LoginFailed>;
|
|
10
|
-
loginByPlatformToken(siteContext: SiteContext, token: string): Promise<LoginSuccess | LoginFailed>;
|
|
11
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
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.AuthService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const jwt_1 = require("@nestjs/jwt");
|
|
15
|
-
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
16
|
-
const data_format_1 = require("../../../common/data-format");
|
|
17
|
-
const context_1 = require("../../../context");
|
|
18
|
-
const passwordEncrypt_helper_1 = require("../../../helpers/passwordEncrypt-helper");
|
|
19
|
-
const special_account_helpers_1 = require("../../../helpers/special-account.helpers");
|
|
20
|
-
const account_queries_1 = require("../account/account.queries");
|
|
21
|
-
let AuthService = class AuthService {
|
|
22
|
-
jwtService;
|
|
23
|
-
constructor(jwtService) {
|
|
24
|
-
this.jwtService = jwtService;
|
|
25
|
-
}
|
|
26
|
-
async login(siteContext, user) {
|
|
27
|
-
const defaultLang = siteContext.siteSchema.defaultLang;
|
|
28
|
-
let account;
|
|
29
|
-
if (context_1.appConf.devAccount?.email === user.email) {
|
|
30
|
-
account = this.#validateDevAccount({
|
|
31
|
-
user,
|
|
32
|
-
devAccount: context_1.appConf.devAccount,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
account = await this.#validateUser(siteContext, user);
|
|
37
|
-
}
|
|
38
|
-
if (!account) {
|
|
39
|
-
return {
|
|
40
|
-
message: "Unauthorized",
|
|
41
|
-
statusCode: 401,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
const parsedPreferences = account.preferences
|
|
45
|
-
? (0, data_format_1.formatAccountPreferences)(account.preferences)
|
|
46
|
-
: undefined;
|
|
47
|
-
return {
|
|
48
|
-
id: account.id,
|
|
49
|
-
email: account.email,
|
|
50
|
-
lang: parsedPreferences?.lang ?? defaultLang,
|
|
51
|
-
name: account.name,
|
|
52
|
-
token: this.jwtService.sign({
|
|
53
|
-
email: account.email,
|
|
54
|
-
id: account.id,
|
|
55
|
-
}),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
async verifyToken(siteContext, token) {
|
|
59
|
-
try {
|
|
60
|
-
const payload = await this.jwtService.verifyAsync(token);
|
|
61
|
-
const defaultLang = siteContext.siteSchema.defaultLang;
|
|
62
|
-
let account;
|
|
63
|
-
const parsedPlatformAccountId = (0, special_account_helpers_1.parsePlatformAdminAccountId)(payload.id);
|
|
64
|
-
if ((0, special_account_helpers_1.isDevAccountId)(payload.id)) {
|
|
65
|
-
account = (0, special_account_helpers_1.getDevAccount)(payload.id);
|
|
66
|
-
}
|
|
67
|
-
else if (parsedPlatformAccountId) {
|
|
68
|
-
account = (0, special_account_helpers_1.getPlatformAdminAccount)(parsedPlatformAccountId);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
account = await (0, account_queries_1.findAccountByIdAndEmail)(siteContext, {
|
|
72
|
-
id: (0, data_formatters_lib_1.strVal)(payload.id),
|
|
73
|
-
email: (0, data_formatters_lib_1.strVal)(payload.email),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
const parsedPreferences = account.preferences
|
|
77
|
-
? (0, data_format_1.formatAccountPreferences)(account.preferences)
|
|
78
|
-
: undefined;
|
|
79
|
-
return {
|
|
80
|
-
email: account.email,
|
|
81
|
-
id: account.id,
|
|
82
|
-
lang: parsedPreferences?.lang ?? defaultLang,
|
|
83
|
-
name: account.name,
|
|
84
|
-
token,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
siteContext.siteLog.error(error);
|
|
89
|
-
return {
|
|
90
|
-
statusCode: 401,
|
|
91
|
-
message: "Invalid account",
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
async loginByPlatformToken(siteContext, token) {
|
|
96
|
-
try {
|
|
97
|
-
const payload = await this.jwtService.verifyAsync(token, {
|
|
98
|
-
secret: context_1.platformJwtSecret,
|
|
99
|
-
});
|
|
100
|
-
if (!payload?.email) {
|
|
101
|
-
throw new common_1.BadRequestException("email not found in token payload");
|
|
102
|
-
}
|
|
103
|
-
const defaultLang = siteContext.siteSchema.defaultLang;
|
|
104
|
-
let account;
|
|
105
|
-
const platAdmAccountIndex = (context_1.appConf.platformAdminAccounts ?? []).findIndex((account) => account.email === payload.email);
|
|
106
|
-
if (platAdmAccountIndex !== -1) {
|
|
107
|
-
account = (0, special_account_helpers_1.getPlatformAdminAccount)({ index: platAdmAccountIndex });
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
const foundAccount = await (0, account_queries_1.findAccountByEmail)(siteContext, payload.email);
|
|
111
|
-
if (!foundAccount) {
|
|
112
|
-
throw new common_1.NotFoundException();
|
|
113
|
-
}
|
|
114
|
-
account = foundAccount;
|
|
115
|
-
}
|
|
116
|
-
const parsedPreferences = account.preferences
|
|
117
|
-
? (0, data_format_1.formatAccountPreferences)(account.preferences)
|
|
118
|
-
: undefined;
|
|
119
|
-
return {
|
|
120
|
-
id: account.id,
|
|
121
|
-
email: payload.email,
|
|
122
|
-
lang: parsedPreferences?.lang ?? defaultLang,
|
|
123
|
-
name: account.name,
|
|
124
|
-
token: this.jwtService.sign({
|
|
125
|
-
email: payload.email,
|
|
126
|
-
id: account.id,
|
|
127
|
-
}),
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
catch (error) {
|
|
131
|
-
siteContext.siteLog.error(error);
|
|
132
|
-
return {
|
|
133
|
-
statusCode: 401,
|
|
134
|
-
message: "Invalid account",
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
async #validateUser(siteContext, { email, password }) {
|
|
139
|
-
const user = await (0, account_queries_1.findAccountByEmail)(siteContext, email);
|
|
140
|
-
let samePassword = false;
|
|
141
|
-
if (user?.passwordHash) {
|
|
142
|
-
samePassword = await (0, passwordEncrypt_helper_1.comparePassword)(password, user.passwordHash);
|
|
143
|
-
}
|
|
144
|
-
const canPass = user?.passwordHash && samePassword;
|
|
145
|
-
if (!canPass)
|
|
146
|
-
return;
|
|
147
|
-
return user;
|
|
148
|
-
}
|
|
149
|
-
#validateDevAccount({ user, devAccount, }) {
|
|
150
|
-
if (user.email !== devAccount.email || user.password !== devAccount.password)
|
|
151
|
-
return;
|
|
152
|
-
const { password, ...others } = devAccount;
|
|
153
|
-
return {
|
|
154
|
-
...others,
|
|
155
|
-
id: special_account_helpers_1.devAccountId,
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
exports.AuthService = AuthService;
|
|
160
|
-
exports.AuthService = AuthService = __decorate([
|
|
161
|
-
(0, common_1.Injectable)(),
|
|
162
|
-
__metadata("design:paramtypes", [jwt_1.JwtService])
|
|
163
|
-
], AuthService);
|
|
164
|
-
//# sourceMappingURL=auth.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/modules/core/auth/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoF;AACpF,qCAAyC;AACzC,oEAAoD;AACpD,6DA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CAAC;IACJ,CAAC;CACF,CAAA;AA1JY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAEqB,gBAAU;GAD/B,WAAW,CA0JvB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export type LoginAction = SignInLoginAction | VerifyLoginAction;
|
|
2
|
-
export interface SignInLoginAction {
|
|
3
|
-
action: "signIn";
|
|
4
|
-
email: string;
|
|
5
|
-
password: string;
|
|
6
|
-
}
|
|
7
|
-
export interface VerifyLoginAction {
|
|
8
|
-
action: "verify" | "loginWithPlatformToken";
|
|
9
|
-
token: string;
|
|
10
|
-
}
|
|
11
|
-
export interface LoginInput {
|
|
12
|
-
email: string;
|
|
13
|
-
password: string;
|
|
14
|
-
}
|
|
15
|
-
export interface OAuthSuccess {
|
|
16
|
-
email: string;
|
|
17
|
-
}
|
|
18
|
-
export interface LoginSuccess extends OAuthSuccess {
|
|
19
|
-
id: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
lang: string;
|
|
22
|
-
token: string;
|
|
23
|
-
}
|
|
24
|
-
export interface LoginFailed {
|
|
25
|
-
statusCode: 401;
|
|
26
|
-
message: string;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../../../src/modules/core/auth/auth.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ExecutionContext } from "@nestjs/common";
|
|
2
|
-
declare const JwtAuthGuard_base: import("@nestjs/passport").Type<import("@nestjs/passport").IAuthGuard>;
|
|
3
|
-
export declare class JwtAuthGuard extends JwtAuthGuard_base {
|
|
4
|
-
getRequest(context: ExecutionContext): any;
|
|
5
|
-
}
|
|
6
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
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.JwtAuthGuard = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
12
|
-
const passport_1 = require("@nestjs/passport");
|
|
13
|
-
let JwtAuthGuard = class JwtAuthGuard extends (0, passport_1.AuthGuard)("jwt") {
|
|
14
|
-
getRequest(context) {
|
|
15
|
-
const ctx = graphql_1.GqlExecutionContext.create(context);
|
|
16
|
-
return ctx.getContext().req;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
exports.JwtAuthGuard = JwtAuthGuard;
|
|
20
|
-
exports.JwtAuthGuard = JwtAuthGuard = __decorate([
|
|
21
|
-
(0, common_1.Injectable)()
|
|
22
|
-
], JwtAuthGuard);
|
|
23
|
-
//# sourceMappingURL=jwt.auth.guard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.auth.guard.js","sourceRoot":"","sources":["../../../../src/modules/core/auth/jwt.auth.guard.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA8D;AAC9D,6CAAsD;AACtD,+CAA6C;AAGtC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,IAAA,oBAAS,EAAC,KAAK,CAAC;IAChD,UAAU,CAAC,OAAyB;QAClC,MAAM,GAAG,GAAG,6BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAChD,OAAO,GAAG,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC;IAC9B,CAAC;CACF,CAAA;AALY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;GACA,YAAY,CAKxB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Strategy } from "passport-jwt";
|
|
2
|
-
declare const JwtStrategy_base: new (...args: any[]) => Strategy;
|
|
3
|
-
export declare class JwtStrategy extends JwtStrategy_base {
|
|
4
|
-
constructor();
|
|
5
|
-
validate(payload: any): {
|
|
6
|
-
userId: any;
|
|
7
|
-
email: any;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
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.JwtStrategy = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const passport_1 = require("@nestjs/passport");
|
|
15
|
-
const passport_jwt_1 = require("passport-jwt");
|
|
16
|
-
const context_1 = require("../../../context");
|
|
17
|
-
let JwtStrategy = class JwtStrategy extends (0, passport_1.PassportStrategy)(passport_jwt_1.Strategy) {
|
|
18
|
-
constructor() {
|
|
19
|
-
super({
|
|
20
|
-
jwtFromRequest: passport_jwt_1.ExtractJwt.fromAuthHeaderAsBearerToken(),
|
|
21
|
-
ignoreExpiration: false,
|
|
22
|
-
secretOrKey: context_1.jwtSecret,
|
|
23
|
-
logging: true,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
validate(payload) {
|
|
27
|
-
return { userId: payload.sub, email: payload.email };
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.JwtStrategy = JwtStrategy;
|
|
31
|
-
exports.JwtStrategy = JwtStrategy = __decorate([
|
|
32
|
-
(0, common_1.Injectable)(),
|
|
33
|
-
__metadata("design:paramtypes", [])
|
|
34
|
-
], JwtStrategy);
|
|
35
|
-
//# sourceMappingURL=jwt.strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.strategy.js","sourceRoot":"","sources":["../../../../src/modules/core/auth/jwt.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAAoD;AACpD,+CAAoD;AACpD,8CAA6C;AAGtC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,IAAA,2BAAgB,EAAC,uBAAQ,CAAC;IACzD;QACE,KAAK,CAAC;YACJ,cAAc,EAAE,yBAAU,CAAC,2BAA2B,EAAE;YACxD,gBAAgB,EAAE,KAAK;YACvB,WAAW,EAAE,mBAAS;YACtB,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,OAAY;QACnB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;IACvD,CAAC;CACF,CAAA;AAbY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;;GACA,WAAW,CAavB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { JwtService } from "@nestjs/jwt";
|
|
2
|
-
import { Request, Response } from "express";
|
|
3
|
-
export declare class BackupController {
|
|
4
|
-
private readonly jwtService;
|
|
5
|
-
constructor(jwtService: JwtService);
|
|
6
|
-
downloadBackup(backupName: string, req: Request, res: Response, token: string): Promise<Response<any, Record<string, any>>>;
|
|
7
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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.BackupController = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const jwt_1 = require("@nestjs/jwt");
|
|
18
|
-
const stream_1 = require("stream");
|
|
19
|
-
const backup_1 = require("../../../site-backup/backup");
|
|
20
|
-
const backup_helper_1 = require("../../../site-backup/backup.helper");
|
|
21
|
-
const site_context_1 = require("../../../site-context/site-context");
|
|
22
|
-
let BackupController = class BackupController {
|
|
23
|
-
jwtService;
|
|
24
|
-
constructor(jwtService) {
|
|
25
|
-
this.jwtService = jwtService;
|
|
26
|
-
}
|
|
27
|
-
async downloadBackup(backupName, req, res, token) {
|
|
28
|
-
if (!token)
|
|
29
|
-
throw new Error("missing user token");
|
|
30
|
-
const { backupFile } = await this.jwtService.verifyAsync(token, { ignoreExpiration: false });
|
|
31
|
-
if (!(0, backup_helper_1.checkBackupFileName)({ fqdn: req.hostname }, backupName)) {
|
|
32
|
-
throw new common_1.NotFoundException("invalid payload");
|
|
33
|
-
}
|
|
34
|
-
if (backupFile !== backupName) {
|
|
35
|
-
throw new common_1.BadRequestException("invalid token provided");
|
|
36
|
-
}
|
|
37
|
-
const siteContext = await (0, site_context_1.getSiteContext)(req.hostname);
|
|
38
|
-
const { fileStream, fileWeight } = await (0, backup_1.getBackup)(siteContext, backupName);
|
|
39
|
-
res.setHeader("Content-Transfer-Encoding", "Binary");
|
|
40
|
-
res.setHeader("Content-Length", fileWeight);
|
|
41
|
-
res.setHeader("Content-disposition", `attachment; filename=${backupName}`);
|
|
42
|
-
return stream_1.Readable.from(fileStream).pipe(res);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.BackupController = BackupController;
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, common_1.Get)(":backupName"),
|
|
48
|
-
(0, common_1.HttpCode)(200),
|
|
49
|
-
__param(0, (0, common_1.Param)("backupName")),
|
|
50
|
-
__param(1, (0, common_1.Req)()),
|
|
51
|
-
__param(2, (0, common_1.Res)()),
|
|
52
|
-
__param(3, (0, common_1.Query)("t")),
|
|
53
|
-
__metadata("design:type", Function),
|
|
54
|
-
__metadata("design:paramtypes", [String, Object, Object, String]),
|
|
55
|
-
__metadata("design:returntype", Promise)
|
|
56
|
-
], BackupController.prototype, "downloadBackup", null);
|
|
57
|
-
exports.BackupController = BackupController = __decorate([
|
|
58
|
-
(0, common_1.Controller)("adm/api/v1/backup"),
|
|
59
|
-
__metadata("design:paramtypes", [jwt_1.JwtService])
|
|
60
|
-
], BackupController);
|
|
61
|
-
//# sourceMappingURL=backup.controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backup.controller.js","sourceRoot":"","sources":["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OAAO,iBAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;CACF,CAAA;AAhCY,4CAAgB;AAKrB;IAFL,IAAA,YAAG,EAAC,aAAa,CAAC;IAClB,IAAA,iBAAQ,EAAC,GAAG,CAAC;IAEX,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,EAAC,GAAG,CAAC,CAAA;;;;sDAsBZ;2BA/BU,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,mBAAmB,CAAC;qCAEW,gBAAU;GADxC,gBAAgB,CAgC5B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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.BackupModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const backup_controller_1 = require("./backup.controller");
|
|
12
|
-
const backup_resolver_1 = require("./backup.resolver");
|
|
13
|
-
let BackupModule = class BackupModule {
|
|
14
|
-
};
|
|
15
|
-
exports.BackupModule = BackupModule;
|
|
16
|
-
exports.BackupModule = BackupModule = __decorate([
|
|
17
|
-
(0, common_1.Module)({
|
|
18
|
-
providers: [backup_resolver_1.BackupResolver],
|
|
19
|
-
controllers: [backup_controller_1.BackupController],
|
|
20
|
-
})
|
|
21
|
-
], BackupModule);
|
|
22
|
-
//# sourceMappingURL=backup.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backup.module.js","sourceRoot":"","sources":["../../../../src/modules/core/backup/backup.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2DAAuD;AACvD,uDAAmD;AAM5C,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAJxB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAc,CAAC;QAC3B,WAAW,EAAE,CAAC,oCAAgB,CAAC;KAChC,CAAC;GACW,YAAY,CAAG"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JwtService } from "@nestjs/jwt";
|
|
2
|
-
import { GraphqlContext } from "../../graphql.types";
|
|
3
|
-
import { BackupInfoObjectType } from "./backup.shema";
|
|
4
|
-
export declare class BackupResolver {
|
|
5
|
-
private jwtService;
|
|
6
|
-
constructor(jwtService: JwtService);
|
|
7
|
-
initializeBackup({ fqdn, req }: GraphqlContext): Promise<BackupInfoObjectType>;
|
|
8
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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.BackupResolver = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
18
|
-
const jwt_1 = require("@nestjs/jwt");
|
|
19
|
-
const backup_1 = require("../../../site-backup/backup");
|
|
20
|
-
const site_context_1 = require("../../../site-context/site-context");
|
|
21
|
-
const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
|
|
22
|
-
const backup_shema_1 = require("./backup.shema");
|
|
23
|
-
let BackupResolver = class BackupResolver {
|
|
24
|
-
jwtService;
|
|
25
|
-
constructor(jwtService) {
|
|
26
|
-
this.jwtService = jwtService;
|
|
27
|
-
}
|
|
28
|
-
async initializeBackup({ fqdn, req }) {
|
|
29
|
-
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
30
|
-
const { zipFileWeight, zipFileName } = await (0, backup_1.initNewBackup)(siteContext);
|
|
31
|
-
const accessToken = this.jwtService.sign({
|
|
32
|
-
backupFile: zipFileName,
|
|
33
|
-
}, { expiresIn: "30m" });
|
|
34
|
-
const downloadUrl = `/adm/api/v1/backup/${zipFileName}/?t=${accessToken}`;
|
|
35
|
-
return {
|
|
36
|
-
downloadUrl,
|
|
37
|
-
fileWeight: zipFileWeight,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.BackupResolver = BackupResolver;
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, graphql_1.Mutation)(() => backup_shema_1.BackupInfoObjectType),
|
|
44
|
-
__param(0, (0, graphql_1.Context)()),
|
|
45
|
-
__metadata("design:type", Function),
|
|
46
|
-
__metadata("design:paramtypes", [Object]),
|
|
47
|
-
__metadata("design:returntype", Promise)
|
|
48
|
-
], BackupResolver.prototype, "initializeBackup", null);
|
|
49
|
-
exports.BackupResolver = BackupResolver = __decorate([
|
|
50
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
51
|
-
(0, graphql_1.Resolver)(() => backup_shema_1.BackupInfoObjectType),
|
|
52
|
-
__metadata("design:paramtypes", [jwt_1.JwtService])
|
|
53
|
-
], BackupResolver);
|
|
54
|
-
//# sourceMappingURL=backup.resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backup.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/backup/backup.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAA8D;AAC9D,qCAAyC;AACzC,wDAA4D;AAC5D,qEAAoE;AAEpE,2DAAsD;AACtD,iDAAsD;AAI/C,IAAM,cAAc,GAApB,MAAM,cAAc;IACL;IAApB,YAAoB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAGxC,AAAN,KAAK,CAAC,gBAAgB,CAAY,EAAE,IAAI,EAAE,GAAG,EAAkB;QAC7D,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,MAAM,IAAA,sBAAa,EAAC,WAAW,CAAC,CAAC;QACxE,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CACtC;YACE,UAAU,EAAE,WAAW;SACxB,EACD,EAAE,SAAS,EAAE,KAAK,EAAE,CACrB,CAAC;QACF,MAAM,WAAW,GAAG,sBAAsB,WAAW,OAAO,WAAW,EAAE,CAAC;QAE1E,OAAO;YACL,WAAW;YACX,UAAU,EAAE,aAAa;SAC1B,CAAC;IACJ,CAAC;CACF,CAAA;AApBY,wCAAc;AAInB;IADL,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,mCAAoB,CAAC;IACb,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;sDAehC;yBAnBU,cAAc;IAF1B,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,mCAAoB,CAAC;qCAEH,gBAAU;GAD/B,cAAc,CAoB1B"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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.BackupInfoObjectType = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
let BackupInfoObjectType = class BackupInfoObjectType {
|
|
15
|
-
fileWeight;
|
|
16
|
-
downloadUrl;
|
|
17
|
-
};
|
|
18
|
-
exports.BackupInfoObjectType = BackupInfoObjectType;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
21
|
-
__metadata("design:type", Number)
|
|
22
|
-
], BackupInfoObjectType.prototype, "fileWeight", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, graphql_1.Field)(() => String),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], BackupInfoObjectType.prototype, "downloadUrl", void 0);
|
|
27
|
-
exports.BackupInfoObjectType = BackupInfoObjectType = __decorate([
|
|
28
|
-
(0, graphql_1.ObjectType)("BackupInfo")
|
|
29
|
-
], BackupInfoObjectType);
|
|
30
|
-
//# sourceMappingURL=backup.shema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backup.shema.js","sourceRoot":"","sources":["../../../../src/modules/core/backup/backup.shema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AAGlD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,UAAU,CAAU;IAGpB,WAAW,CAAU;CACtB,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;wDACG;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yDACC;+BALV,oBAAoB;IADhC,IAAA,oBAAU,EAAC,YAAY,CAAC;GACZ,oBAAoB,CAMhC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
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.CoreModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const account_auth_module_1 = require("./account-auth/account-auth.module");
|
|
12
|
-
const account_module_1 = require("./account/account.module");
|
|
13
|
-
const auth_module_1 = require("./auth/auth.module");
|
|
14
|
-
const backup_module_1 = require("./backup/backup.module");
|
|
15
|
-
const document_module_1 = require("./document/document.module");
|
|
16
|
-
const fields_module_1 = require("./fields/fields.module");
|
|
17
|
-
const leaf_module_1 = require("./leaf/leaf.module");
|
|
18
|
-
const login_module_1 = require("./login/login.module");
|
|
19
|
-
const media_module_1 = require("./media/media.module");
|
|
20
|
-
const part_module_1 = require("./part/part.module");
|
|
21
|
-
const section_module_1 = require("./section/section.module");
|
|
22
|
-
const site_info_module_1 = require("./site-info/site-info.module");
|
|
23
|
-
const site_schema_module_1 = require("./site-schema/site-schema.module");
|
|
24
|
-
const term_flag_module_1 = require("./term-flag/term-flag.module");
|
|
25
|
-
const unprotected_module_1 = require("./unprotected/unprotected.module");
|
|
26
|
-
let CoreModule = class CoreModule {
|
|
27
|
-
};
|
|
28
|
-
exports.CoreModule = CoreModule;
|
|
29
|
-
exports.CoreModule = CoreModule = __decorate([
|
|
30
|
-
(0, common_1.Module)({
|
|
31
|
-
imports: [
|
|
32
|
-
unprotected_module_1.UnprotectedModule,
|
|
33
|
-
site_info_module_1.SiteInfoModule,
|
|
34
|
-
section_module_1.SectionModule,
|
|
35
|
-
document_module_1.DocumentModule,
|
|
36
|
-
leaf_module_1.LeafModule,
|
|
37
|
-
account_module_1.AccountModule,
|
|
38
|
-
account_auth_module_1.AccountAuthModule,
|
|
39
|
-
auth_module_1.AuthModule,
|
|
40
|
-
login_module_1.LoginModule,
|
|
41
|
-
fields_module_1.LeafJsonFieldModule,
|
|
42
|
-
site_schema_module_1.SiteSchemaModule,
|
|
43
|
-
term_flag_module_1.TermFlagModule,
|
|
44
|
-
part_module_1.PartModule,
|
|
45
|
-
media_module_1.MediaModule,
|
|
46
|
-
backup_module_1.BackupModule,
|
|
47
|
-
],
|
|
48
|
-
})
|
|
49
|
-
], CoreModule);
|
|
50
|
-
//# sourceMappingURL=core.module.js.map
|