@rnaga/wp-node 1.1.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/application.d.ts +76 -0
- package/application.d.ts.map +1 -0
- package/application.js +132 -0
- package/common/async-constructor.d.ts +2 -0
- package/common/async-constructor.d.ts.map +1 -0
- package/common/async-constructor.js +7 -0
- package/common/config/define-post-status.config.d.ts +4 -0
- package/common/config/define-post-status.config.d.ts.map +1 -0
- package/common/config/define-post-status.config.js +26 -0
- package/common/config/define-post-type.config.d.ts +4 -0
- package/common/config/define-post-type.config.d.ts.map +1 -0
- package/common/config/define-post-type.config.js +39 -0
- package/common/config/define-taxonomies.config.d.ts +4 -0
- package/common/config/define-taxonomies.config.d.ts.map +1 -0
- package/common/config/define-taxonomies.config.js +26 -0
- package/common/config/define-wp.config..d.ts +12 -0
- package/common/config/define-wp.config..d.ts.map +1 -0
- package/common/config/define-wp.config..js +110 -0
- package/common/config/index.d.ts +5 -0
- package/common/config/index.d.ts.map +1 -0
- package/common/config/index.js +20 -0
- package/common/date.d.ts +19 -0
- package/common/date.d.ts.map +1 -0
- package/common/date.js +116 -0
- package/common/define-hooks.d.ts +4 -0
- package/common/define-hooks.d.ts.map +1 -0
- package/common/define-hooks.js +16 -0
- package/common/diff.d.ts +3 -0
- package/common/diff.d.ts.map +1 -0
- package/common/diff.js +23 -0
- package/common/files.d.ts +14 -0
- package/common/files.d.ts.map +1 -0
- package/common/files.js +160 -0
- package/common/formatting.d.ts +47 -0
- package/common/formatting.d.ts.map +1 -0
- package/common/formatting.js +218 -0
- package/common/hierarchy.d.ts +21 -0
- package/common/hierarchy.d.ts.map +1 -0
- package/common/hierarchy.js +78 -0
- package/common/hooks-command.d.ts +7 -0
- package/common/hooks-command.d.ts.map +1 -0
- package/common/hooks-command.js +21 -0
- package/common/index.d.ts +11 -0
- package/common/index.d.ts.map +1 -0
- package/common/index.js +49 -0
- package/common/password.d.ts +4 -0
- package/common/password.d.ts.map +1 -0
- package/common/password.js +224 -0
- package/common/php-serialize.d.ts +3 -0
- package/common/php-serialize.d.ts.map +1 -0
- package/common/php-serialize.js +17 -0
- package/common/validating.d.ts +10 -0
- package/common/validating.d.ts.map +1 -0
- package/common/validating.js +65 -0
- package/config.d.ts +99 -0
- package/config.d.ts.map +1 -0
- package/config.js +76 -0
- package/constants/async-init.d.ts +2 -0
- package/constants/async-init.d.ts.map +1 -0
- package/constants/async-init.js +4 -0
- package/constants/component.d.ts +3 -0
- package/constants/component.d.ts.map +1 -0
- package/constants/component.js +5 -0
- package/constants/database.d.ts +2 -0
- package/constants/database.d.ts.map +1 -0
- package/constants/database.js +9 -0
- package/constants/default-database-tables.d.ts +7 -0
- package/constants/default-database-tables.d.ts.map +1 -0
- package/constants/default-database-tables.js +26 -0
- package/constants/index.d.ts +9 -0
- package/constants/index.d.ts.map +1 -0
- package/constants/index.js +24 -0
- package/constants/role-capabilities.d.ts +3 -0
- package/constants/role-capabilities.d.ts.map +1 -0
- package/constants/role-capabilities.js +67 -0
- package/constants/role-capability-actions.d.ts +2 -0
- package/constants/role-capability-actions.d.ts.map +1 -0
- package/constants/role-capability-actions.js +90 -0
- package/constants/role-names.d.ts +2 -0
- package/constants/role-names.d.ts.map +1 -0
- package/constants/role-names.js +12 -0
- package/constants/scope.d.ts +6 -0
- package/constants/scope.d.ts.map +1 -0
- package/constants/scope.js +9 -0
- package/core/async-init-reflect.d.ts +5 -0
- package/core/async-init-reflect.d.ts.map +1 -0
- package/core/async-init-reflect.js +18 -0
- package/core/blog.d.ts +20 -0
- package/core/blog.d.ts.map +1 -0
- package/core/blog.js +123 -0
- package/core/capabilities.d.ts +12 -0
- package/core/capabilities.d.ts.map +1 -0
- package/core/capabilities.js +625 -0
- package/core/comment.d.ts +111 -0
- package/core/comment.d.ts.map +1 -0
- package/core/comment.js +173 -0
- package/core/components.d.ts +13 -0
- package/core/components.d.ts.map +1 -0
- package/core/components.js +129 -0
- package/core/context.d.ts +38 -0
- package/core/context.d.ts.map +1 -0
- package/core/context.js +77 -0
- package/core/current.d.ts +33 -0
- package/core/current.d.ts.map +1 -0
- package/core/current.js +229 -0
- package/core/date-time.d.ts +18 -0
- package/core/date-time.d.ts.map +1 -0
- package/core/date-time.js +71 -0
- package/core/hooks/action.d.ts +16 -0
- package/core/hooks/action.d.ts.map +1 -0
- package/core/hooks/action.js +44 -0
- package/core/hooks/actions/init.d.ts +5 -0
- package/core/hooks/actions/init.d.ts.map +1 -0
- package/core/hooks/actions/init.js +28 -0
- package/core/hooks/default-hooks.d.ts +7 -0
- package/core/hooks/default-hooks.d.ts.map +1 -0
- package/core/hooks/default-hooks.js +19 -0
- package/core/hooks/filter.d.ts +12 -0
- package/core/hooks/filter.d.ts.map +1 -0
- package/core/hooks/filter.js +76 -0
- package/core/hooks/filters/capabilities.d.ts +16 -0
- package/core/hooks/filters/capabilities.d.ts.map +1 -0
- package/core/hooks/filters/capabilities.js +395 -0
- package/core/hooks/hooks-command.d.ts +9 -0
- package/core/hooks/hooks-command.d.ts.map +1 -0
- package/core/hooks/hooks-command.js +28 -0
- package/core/hooks/hooks-reflect.d.ts +42 -0
- package/core/hooks/hooks-reflect.d.ts.map +1 -0
- package/core/hooks/hooks-reflect.js +73 -0
- package/core/hooks/hooks.d.ts +61 -0
- package/core/hooks/hooks.d.ts.map +1 -0
- package/core/hooks/hooks.js +82 -0
- package/core/hooks/index.d.ts +4 -0
- package/core/hooks/index.d.ts.map +1 -0
- package/core/hooks/index.js +19 -0
- package/core/installer.d.ts +56 -0
- package/core/installer.d.ts.map +1 -0
- package/core/installer.js +395 -0
- package/core/logger.d.ts +22 -0
- package/core/logger.d.ts.map +1 -0
- package/core/logger.js +65 -0
- package/core/meta.d.ts +20 -0
- package/core/meta.d.ts.map +1 -0
- package/core/meta.js +123 -0
- package/core/options.d.ts +20 -0
- package/core/options.d.ts.map +1 -0
- package/core/options.js +148 -0
- package/core/post.d.ts +39 -0
- package/core/post.d.ts.map +1 -0
- package/core/post.js +164 -0
- package/core/query.d.ts +14 -0
- package/core/query.d.ts.map +1 -0
- package/core/query.js +39 -0
- package/core/role.d.ts +21 -0
- package/core/role.d.ts.map +1 -0
- package/core/role.js +71 -0
- package/core/roles.d.ts +16 -0
- package/core/roles.d.ts.map +1 -0
- package/core/roles.js +84 -0
- package/core/schema.d.ts +13 -0
- package/core/schema.d.ts.map +1 -0
- package/core/schema.js +83 -0
- package/core/site.d.ts +28 -0
- package/core/site.d.ts.map +1 -0
- package/core/site.js +105 -0
- package/core/tables.d.ts +18 -0
- package/core/tables.d.ts.map +1 -0
- package/core/tables.js +64 -0
- package/core/taxonomy.d.ts +23 -0
- package/core/taxonomy.d.ts.map +1 -0
- package/core/taxonomy.js +83 -0
- package/core/term.d.ts +104 -0
- package/core/term.d.ts.map +1 -0
- package/core/term.js +136 -0
- package/core/user.d.ts +32 -0
- package/core/user.d.ts.map +1 -0
- package/core/user.js +273 -0
- package/core/utils/blog.util.d.ts +14 -0
- package/core/utils/blog.util.d.ts.map +1 -0
- package/core/utils/blog.util.js +97 -0
- package/core/utils/comment.util.d.ts +23 -0
- package/core/utils/comment.util.d.ts.map +1 -0
- package/core/utils/comment.util.js +312 -0
- package/core/utils/crud.util.d.ts +40 -0
- package/core/utils/crud.util.d.ts.map +1 -0
- package/core/utils/crud.util.js +97 -0
- package/core/utils/date-time.util.d.ts +9 -0
- package/core/utils/date-time.util.d.ts.map +1 -0
- package/core/utils/date-time.util.js +29 -0
- package/core/utils/link.util.d.ts +23 -0
- package/core/utils/link.util.d.ts.map +1 -0
- package/core/utils/link.util.js +148 -0
- package/core/utils/meta.util.d.ts +13 -0
- package/core/utils/meta.util.d.ts.map +1 -0
- package/core/utils/meta.util.js +73 -0
- package/core/utils/post.util.d.ts +34 -0
- package/core/utils/post.util.d.ts.map +1 -0
- package/core/utils/post.util.js +272 -0
- package/core/utils/query.util.d.ts +36 -0
- package/core/utils/query.util.d.ts.map +1 -0
- package/core/utils/query.util.js +168 -0
- package/core/utils/revision.util.d.ts +67 -0
- package/core/utils/revision.util.d.ts.map +1 -0
- package/core/utils/revision.util.js +105 -0
- package/core/utils/roles.util.d.ts +30 -0
- package/core/utils/roles.util.d.ts.map +1 -0
- package/core/utils/roles.util.js +189 -0
- package/core/utils/signup.util.d.ts +33 -0
- package/core/utils/signup.util.d.ts.map +1 -0
- package/core/utils/signup.util.js +227 -0
- package/core/utils/site.util.d.ts +22 -0
- package/core/utils/site.util.d.ts.map +1 -0
- package/core/utils/site.util.js +122 -0
- package/core/utils/taxonomy.util.d.ts +19 -0
- package/core/utils/taxonomy.util.d.ts.map +1 -0
- package/core/utils/taxonomy.util.js +52 -0
- package/core/utils/term.util.d.ts +13 -0
- package/core/utils/term.util.d.ts.map +1 -0
- package/core/utils/term.util.js +113 -0
- package/core/utils/trx.util.d.ts +24 -0
- package/core/utils/trx.util.d.ts.map +1 -0
- package/core/utils/trx.util.js +86 -0
- package/core/utils/user-self-registration.util.d.ts +46 -0
- package/core/utils/user-self-registration.util.d.ts.map +1 -0
- package/core/utils/user-self-registration.util.js +171 -0
- package/core/utils/user.util.d.ts +153 -0
- package/core/utils/user.util.d.ts.map +1 -0
- package/core/utils/user.util.js +550 -0
- package/core/utils/utils.d.ts +36 -0
- package/core/utils/utils.d.ts.map +1 -0
- package/core/utils/utils.js +85 -0
- package/core/validator.d.ts +11 -0
- package/core/validator.d.ts.map +1 -0
- package/core/validator.js +40 -0
- package/core/vars.d.ts +19 -0
- package/core/vars.d.ts.map +1 -0
- package/core/vars.js +54 -0
- package/crud/blog.crud.d.ts +56 -0
- package/crud/blog.crud.d.ts.map +1 -0
- package/crud/blog.crud.js +301 -0
- package/crud/comment.crud.d.ts +104 -0
- package/crud/comment.crud.d.ts.map +1 -0
- package/crud/comment.crud.js +431 -0
- package/crud/crud.d.ts +63 -0
- package/crud/crud.d.ts.map +1 -0
- package/crud/crud.js +278 -0
- package/crud/error.d.ts +23 -0
- package/crud/error.d.ts.map +1 -0
- package/crud/error.js +51 -0
- package/crud/meta.crud.d.ts +69 -0
- package/crud/meta.crud.d.ts.map +1 -0
- package/crud/meta.crud.js +244 -0
- package/crud/options.crud.d.ts +37 -0
- package/crud/options.crud.d.ts.map +1 -0
- package/crud/options.crud.js +178 -0
- package/crud/post.crud.d.ts +225 -0
- package/crud/post.crud.d.ts.map +1 -0
- package/crud/post.crud.js +589 -0
- package/crud/revision.crud.d.ts +76 -0
- package/crud/revision.crud.d.ts.map +1 -0
- package/crud/revision.crud.js +155 -0
- package/crud/roles.crud.d.ts +50 -0
- package/crud/roles.crud.d.ts.map +1 -0
- package/crud/roles.crud.js +198 -0
- package/crud/settings.crud.d.ts +50 -0
- package/crud/settings.crud.d.ts.map +1 -0
- package/crud/settings.crud.js +153 -0
- package/crud/site.crud.d.ts +62 -0
- package/crud/site.crud.d.ts.map +1 -0
- package/crud/site.crud.js +241 -0
- package/crud/sitemeta.crud.d.ts +55 -0
- package/crud/sitemeta.crud.d.ts.map +1 -0
- package/crud/sitemeta.crud.js +97 -0
- package/crud/term.crud.d.ts +85 -0
- package/crud/term.crud.d.ts.map +1 -0
- package/crud/term.crud.js +285 -0
- package/crud/user-self-registration.crud.d.ts +57 -0
- package/crud/user-self-registration.crud.d.ts.map +1 -0
- package/crud/user-self-registration.crud.js +173 -0
- package/crud/user.crud.d.ts +147 -0
- package/crud/user.crud.d.ts.map +1 -0
- package/crud/user.crud.js +626 -0
- package/database.d.ts +18 -0
- package/database.d.ts.map +1 -0
- package/database.js +80 -0
- package/decorators/async-init.d.ts +2 -0
- package/decorators/async-init.d.ts.map +1 -0
- package/decorators/async-init.js +7 -0
- package/decorators/component.d.ts +12 -0
- package/decorators/component.d.ts.map +1 -0
- package/decorators/component.js +47 -0
- package/decorators/hooks.d.ts +5 -0
- package/decorators/hooks.d.ts.map +1 -0
- package/decorators/hooks.js +30 -0
- package/defaults/extensions.d.ts +4 -0
- package/defaults/extensions.d.ts.map +1 -0
- package/defaults/extensions.js +34 -0
- package/defaults/index.d.ts +11 -0
- package/defaults/index.d.ts.map +1 -0
- package/defaults/index.js +49 -0
- package/defaults/options.d.ts +6 -0
- package/defaults/options.d.ts.map +1 -0
- package/defaults/options.js +267 -0
- package/defaults/post-status.d.ts +10 -0
- package/defaults/post-status.d.ts.map +1 -0
- package/defaults/post-status.js +83 -0
- package/defaults/post-types.d.ts +4 -0
- package/defaults/post-types.d.ts.map +1 -0
- package/defaults/post-types.js +72 -0
- package/defaults/roles.d.ts +31 -0
- package/defaults/roles.d.ts.map +1 -0
- package/defaults/roles.js +213 -0
- package/defaults/seeder.d.ts +34 -0
- package/defaults/seeder.d.ts.map +1 -0
- package/defaults/seeder.js +201 -0
- package/defaults/sitemeta.d.ts +2 -0
- package/defaults/sitemeta.d.ts.map +1 -0
- package/defaults/sitemeta.js +38 -0
- package/defaults/subdirectory-reserved-names.d.ts +2 -0
- package/defaults/subdirectory-reserved-names.d.ts.map +1 -0
- package/defaults/subdirectory-reserved-names.js +16 -0
- package/defaults/taxonomies.d.ts +5 -0
- package/defaults/taxonomies.d.ts.map +1 -0
- package/defaults/taxonomies.js +57 -0
- package/defaults/timezone.d.ts +2 -0
- package/defaults/timezone.d.ts.map +1 -0
- package/defaults/timezone.js +353 -0
- package/package.json +51 -0
- package/query-builder/alias.d.ts +24 -0
- package/query-builder/alias.d.ts.map +1 -0
- package/query-builder/alias.js +64 -0
- package/query-builder/blogs.query.d.ts +22 -0
- package/query-builder/blogs.query.d.ts.map +1 -0
- package/query-builder/blogs.query.js +85 -0
- package/query-builder/comments.query.d.ts +35 -0
- package/query-builder/comments.query.d.ts.map +1 -0
- package/query-builder/comments.query.js +211 -0
- package/query-builder/common.query.d.ts +18 -0
- package/query-builder/common.query.d.ts.map +1 -0
- package/query-builder/common.query.js +58 -0
- package/query-builder/index.d.ts +12 -0
- package/query-builder/index.d.ts.map +1 -0
- package/query-builder/index.js +27 -0
- package/query-builder/meta.query.d.ts +45 -0
- package/query-builder/meta.query.d.ts.map +1 -0
- package/query-builder/meta.query.js +188 -0
- package/query-builder/options.query.d.ts +19 -0
- package/query-builder/options.query.d.ts.map +1 -0
- package/query-builder/options.query.js +57 -0
- package/query-builder/posts.query.d.ts +30 -0
- package/query-builder/posts.query.d.ts.map +1 -0
- package/query-builder/posts.query.js +208 -0
- package/query-builder/query-builder.d.ts +21 -0
- package/query-builder/query-builder.d.ts.map +1 -0
- package/query-builder/query-builder.js +70 -0
- package/query-builder/query-builders.d.ts +18 -0
- package/query-builder/query-builders.d.ts.map +1 -0
- package/query-builder/query-builders.js +64 -0
- package/query-builder/site.query.d.ts +22 -0
- package/query-builder/site.query.d.ts.map +1 -0
- package/query-builder/site.query.js +85 -0
- package/query-builder/terms.query.d.ts +47 -0
- package/query-builder/terms.query.d.ts.map +1 -0
- package/query-builder/terms.query.js +233 -0
- package/query-builder/users.query.d.ts +37 -0
- package/query-builder/users.query.d.ts.map +1 -0
- package/query-builder/users.query.js +188 -0
- package/schema-builder/proxy.d.ts +10 -0
- package/schema-builder/proxy.d.ts.map +1 -0
- package/schema-builder/proxy.js +19 -0
- package/schema-builder/schema-builder.d.ts +21 -0
- package/schema-builder/schema-builder.d.ts.map +1 -0
- package/schema-builder/schema-builder.js +207 -0
- package/schema-builder/schema.d.ts +20 -0
- package/schema-builder/schema.d.ts.map +1 -0
- package/schema-builder/schema.js +527 -0
- package/transactions/blog.trx.d.ts +37 -0
- package/transactions/blog.trx.d.ts.map +1 -0
- package/transactions/blog.trx.js +296 -0
- package/transactions/comment.trx.d.ts +22 -0
- package/transactions/comment.trx.d.ts.map +1 -0
- package/transactions/comment.trx.js +311 -0
- package/transactions/index.d.ts +15 -0
- package/transactions/index.d.ts.map +1 -0
- package/transactions/index.js +30 -0
- package/transactions/link.trx.d.ts +22 -0
- package/transactions/link.trx.d.ts.map +1 -0
- package/transactions/link.trx.js +208 -0
- package/transactions/meta.trx.d.ts +30 -0
- package/transactions/meta.trx.d.ts.map +1 -0
- package/transactions/meta.trx.js +197 -0
- package/transactions/options.trx.d.ts +31 -0
- package/transactions/options.trx.d.ts.map +1 -0
- package/transactions/options.trx.js +192 -0
- package/transactions/post.trx.d.ts +48 -0
- package/transactions/post.trx.d.ts.map +1 -0
- package/transactions/post.trx.js +906 -0
- package/transactions/registration-log.trx.d.ts +14 -0
- package/transactions/registration-log.trx.d.ts.map +1 -0
- package/transactions/registration-log.trx.js +103 -0
- package/transactions/revision.trx.d.ts +32 -0
- package/transactions/revision.trx.d.ts.map +1 -0
- package/transactions/revision.trx.js +278 -0
- package/transactions/roles.trx.d.ts +20 -0
- package/transactions/roles.trx.d.ts.map +1 -0
- package/transactions/roles.trx.js +144 -0
- package/transactions/seeder.trx.d.ts +43 -0
- package/transactions/seeder.trx.d.ts.map +1 -0
- package/transactions/seeder.trx.js +530 -0
- package/transactions/signup.trx.d.ts +53 -0
- package/transactions/signup.trx.d.ts.map +1 -0
- package/transactions/signup.trx.js +305 -0
- package/transactions/site.trx.d.ts +21 -0
- package/transactions/site.trx.d.ts.map +1 -0
- package/transactions/site.trx.js +167 -0
- package/transactions/term.trx.d.ts +51 -0
- package/transactions/term.trx.d.ts.map +1 -0
- package/transactions/term.trx.js +838 -0
- package/transactions/trx.d.ts +9 -0
- package/transactions/trx.d.ts.map +1 -0
- package/transactions/trx.js +20 -0
- package/transactions/user.trx.d.ts +45 -0
- package/transactions/user.trx.d.ts.map +1 -0
- package/transactions/user.trx.js +535 -0
- package/types/capabilities.d.ts +71 -0
- package/types/common.d.ts +16 -0
- package/types/component.d.ts +3 -0
- package/types/config.d.ts +33 -0
- package/types/crud.d.ts +230 -0
- package/types/database.d.ts +50 -0
- package/types/hooks/actions.d.ts +67 -0
- package/types/hooks/command.d.ts +17 -0
- package/types/hooks/filters.d.ts +86 -0
- package/types/hooks/index.d.ts +11 -0
- package/types/index.d.ts +18 -0
- package/types/logging.d.ts +1 -0
- package/types/meta.d.ts +9 -0
- package/types/options.d.ts +3 -0
- package/types/post.d.ts +54 -0
- package/types/query-builder.d.ts +11 -0
- package/types/role.d.ts +34 -0
- package/types/schema.d.ts +11 -0
- package/types/schema.d.ts.map +1 -0
- package/types/schema.js +2 -0
- package/types/taxonomy.d.ts +29 -0
- package/types/timezone.d.ts +3 -0
- package/types/transactions.d.ts +32 -0
- package/types/user.d.ts +12 -0
- package/types/validating.d.ts +9 -0
- package/types/validating.d.ts.map +1 -0
- package/types/validating.js +2 -0
- package/validators/config.d.ts +948 -0
- package/validators/config.d.ts.map +1 -0
- package/validators/config.js +149 -0
- package/validators/crud.d.ts +571 -0
- package/validators/crud.d.ts.map +1 -0
- package/validators/crud.js +281 -0
- package/validators/database.d.ts +958 -0
- package/validators/database.d.ts.map +1 -0
- package/validators/database.js +245 -0
- package/validators/date.d.ts +4 -0
- package/validators/date.d.ts.map +1 -0
- package/validators/date.js +15 -0
- package/validators/helpers.d.ts +16 -0
- package/validators/helpers.d.ts.map +1 -0
- package/validators/helpers.js +86 -0
- package/validators/index.d.ts +10 -0
- package/validators/index.d.ts.map +1 -0
- package/validators/index.js +48 -0
- package/validators/options.d.ts +303 -0
- package/validators/options.d.ts.map +1 -0
- package/validators/options.js +106 -0
- package/validators/post-status.d.ts +42 -0
- package/validators/post-status.d.ts.map +1 -0
- package/validators/post-status.js +18 -0
- package/validators/query.d.ts +534 -0
- package/validators/query.d.ts.map +1 -0
- package/validators/query.js +110 -0
- package/validators/roles.d.ts +22 -0
- package/validators/roles.d.ts.map +1 -0
- package/validators/roles.js +9 -0
- package/validators/sitemeta.d.ts +105 -0
- package/validators/sitemeta.d.ts.map +1 -0
- package/validators/sitemeta.js +39 -0
- package/validators/transactions/blog.d.ts +225 -0
- package/validators/transactions/blog.d.ts.map +1 -0
- package/validators/transactions/blog.js +63 -0
- package/validators/transactions/comment.d.ts +155 -0
- package/validators/transactions/comment.d.ts.map +1 -0
- package/validators/transactions/comment.js +68 -0
- package/validators/transactions/index.d.ts +11 -0
- package/validators/transactions/index.d.ts.map +1 -0
- package/validators/transactions/index.js +26 -0
- package/validators/transactions/link.d.ts +128 -0
- package/validators/transactions/link.d.ts.map +1 -0
- package/validators/transactions/link.js +60 -0
- package/validators/transactions/meta.d.ts +23 -0
- package/validators/transactions/meta.d.ts.map +1 -0
- package/validators/transactions/meta.js +18 -0
- package/validators/transactions/post.d.ts +234 -0
- package/validators/transactions/post.d.ts.map +1 -0
- package/validators/transactions/post.js +100 -0
- package/validators/transactions/roles.d.ts +18 -0
- package/validators/transactions/roles.d.ts.map +1 -0
- package/validators/transactions/roles.js +13 -0
- package/validators/transactions/signup.d.ts +35 -0
- package/validators/transactions/signup.d.ts.map +1 -0
- package/validators/transactions/signup.js +51 -0
- package/validators/transactions/site.d.ts +36 -0
- package/validators/transactions/site.d.ts.map +1 -0
- package/validators/transactions/site.js +49 -0
- package/validators/transactions/term.d.ts +57 -0
- package/validators/transactions/term.d.ts.map +1 -0
- package/validators/transactions/term.js +44 -0
- package/validators/transactions/user.d.ts +182 -0
- package/validators/transactions/user.d.ts.map +1 -0
- package/validators/transactions/user.js +104 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Blog } from "../core/blog";
|
|
2
|
+
import { Components } from "../core/components";
|
|
3
|
+
import { User } from "../core/user";
|
|
4
|
+
import Database from "../database";
|
|
5
|
+
import { Trx } from "./trx";
|
|
6
|
+
export declare class RegistrationLogTrx extends Trx {
|
|
7
|
+
private database;
|
|
8
|
+
private components;
|
|
9
|
+
constructor(database: Database, components: Components);
|
|
10
|
+
insert(blogOrId: Blog | number, userOrId: User | number, args: {
|
|
11
|
+
ip: string;
|
|
12
|
+
}): Promise<number | undefined>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=registration-log.trx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration-log.trx.d.ts","sourceRoot":"","sources":["../../src/transactions/registration-log.trx.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,QAAQ,MAAM,aAAa,CAAC;AAGnC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,qBACa,kBAAmB,SAAQ,GAAG;IAC7B,OAAO,CAAC,QAAQ;IAAY,OAAO,CAAC,UAAU;gBAAtC,QAAQ,EAAE,QAAQ,EAAU,UAAU,EAAE,UAAU;IAKhE,MAAM,CACV,QAAQ,EAAE,IAAI,GAAG,MAAM,EACvB,QAAQ,EAAE,IAAI,GAAG,MAAM,EACvB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;KACZ;CAsCJ"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.RegistrationLogTrx = void 0;
|
|
49
|
+
const formatting_1 = require("../common/formatting");
|
|
50
|
+
const blog_1 = require("../core/blog");
|
|
51
|
+
const components_1 = require("../core/components");
|
|
52
|
+
const user_1 = require("../core/user");
|
|
53
|
+
const user_util_1 = require("../core/utils/user.util");
|
|
54
|
+
const database_1 = __importDefault(require("../database"));
|
|
55
|
+
const component_1 = require("../decorators/component");
|
|
56
|
+
const val = __importStar(require("../validators"));
|
|
57
|
+
const trx_1 = require("./trx");
|
|
58
|
+
let RegistrationLogTrx = class RegistrationLogTrx extends trx_1.Trx {
|
|
59
|
+
database;
|
|
60
|
+
components;
|
|
61
|
+
constructor(database, components) {
|
|
62
|
+
super(components);
|
|
63
|
+
this.database = database;
|
|
64
|
+
this.components = components;
|
|
65
|
+
}
|
|
66
|
+
// wpmu_log_new_registrations
|
|
67
|
+
async insert(blogOrId, userOrId, args) {
|
|
68
|
+
const user = userOrId instanceof user_1.User
|
|
69
|
+
? userOrId
|
|
70
|
+
: await this.components.get(user_util_1.UserUtil).get(userOrId);
|
|
71
|
+
if (!user.props) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const blogId = blogOrId instanceof blog_1.Blog ? blogOrId.props?.blog_id : blogOrId;
|
|
75
|
+
const dataInsert = val.database.wpRegistrationLog.omit({ ID: true }).parse({
|
|
76
|
+
email: user.props.user_email,
|
|
77
|
+
IP: args.ip,
|
|
78
|
+
blog_id: blogId,
|
|
79
|
+
date_registered: formatting_1.formatting.dateMySQL(),
|
|
80
|
+
});
|
|
81
|
+
let id = 0;
|
|
82
|
+
const trx = await this.database.transaction;
|
|
83
|
+
try {
|
|
84
|
+
await trx
|
|
85
|
+
.insert(dataInsert)
|
|
86
|
+
.into(this.tables.get("registration_log"))
|
|
87
|
+
.then((v) => {
|
|
88
|
+
id = v[0];
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
catch (e) {
|
|
92
|
+
await trx.rollback();
|
|
93
|
+
throw new Error(`Failed to insert registration log - ${e}`);
|
|
94
|
+
}
|
|
95
|
+
await trx.commit();
|
|
96
|
+
return id;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
exports.RegistrationLogTrx = RegistrationLogTrx;
|
|
100
|
+
exports.RegistrationLogTrx = RegistrationLogTrx = __decorate([
|
|
101
|
+
(0, component_1.transactions)(),
|
|
102
|
+
__metadata("design:paramtypes", [database_1.default, components_1.Components])
|
|
103
|
+
], RegistrationLogTrx);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Config } from "../config";
|
|
2
|
+
import { Components } from "../core/components";
|
|
3
|
+
import { Post } from "../core/post";
|
|
4
|
+
import { PostUtil } from "../core/utils/post.util";
|
|
5
|
+
import { RevisionUtil } from "../core/utils/revision.util";
|
|
6
|
+
import { Vars } from "../core/vars";
|
|
7
|
+
import Database from "../database";
|
|
8
|
+
import * as types from "../types";
|
|
9
|
+
import { Trx } from "./trx";
|
|
10
|
+
export declare class RevisionTrx extends Trx {
|
|
11
|
+
private database;
|
|
12
|
+
private config;
|
|
13
|
+
private components;
|
|
14
|
+
private postUtil;
|
|
15
|
+
private revisionUtil;
|
|
16
|
+
private vars;
|
|
17
|
+
constructor(database: Database, config: Config, components: Components, postUtil: PostUtil, revisionUtil: RevisionUtil, vars: Vars);
|
|
18
|
+
upsert(post: types.Tables["posts"], options?: {
|
|
19
|
+
autoSave?: boolean;
|
|
20
|
+
meta?: Record<string, any>;
|
|
21
|
+
}): Promise<number>;
|
|
22
|
+
private syncMeta;
|
|
23
|
+
save(postId: number): Promise<number | undefined>;
|
|
24
|
+
restore(revisionOrId: Post | number, options?: {
|
|
25
|
+
fields?: (keyof typeof RevisionUtil.revisionFields)[];
|
|
26
|
+
}): Promise<number | false | Post>;
|
|
27
|
+
remove(postOrId: Post | number): Promise<false | Post | undefined>;
|
|
28
|
+
autosave(input: Partial<types.trx.PostUpsert>, options?: {
|
|
29
|
+
userId?: number;
|
|
30
|
+
}): Promise<number | undefined>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=revision.trx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revision.trx.d.ts","sourceRoot":"","sources":["../../src/transactions/revision.trx.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAI5B,qBACa,WAAY,SAAQ,GAAG;IAEhC,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,IAAI;gBALJ,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,IAAI;IAMd,MAAM,CACV,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAC3B,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC5B;YAmBW,QAAQ;IAoDhB,IAAI,CAAC,MAAM,EAAE,MAAM;IAsFnB,OAAO,CACX,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,CAAC,MAAM,OAAO,YAAY,CAAC,cAAc,CAAC,EAAE,CAAC;KACvD;IAmDG,MAAM,CAAC,QAAQ,EAAE,IAAI,GAAG,MAAM;IAe9B,QAAQ,CACZ,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,EACpC,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CAgEJ"}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.RevisionTrx = void 0;
|
|
49
|
+
const common_1 = require("../common");
|
|
50
|
+
const config_1 = require("../config");
|
|
51
|
+
const components_1 = require("../core/components");
|
|
52
|
+
const current_1 = require("../core/current");
|
|
53
|
+
const meta_util_1 = require("../core/utils/meta.util");
|
|
54
|
+
const post_util_1 = require("../core/utils/post.util");
|
|
55
|
+
const revision_util_1 = require("../core/utils/revision.util");
|
|
56
|
+
const vars_1 = require("../core/vars");
|
|
57
|
+
const database_1 = __importDefault(require("../database"));
|
|
58
|
+
const component_1 = require("../decorators/component");
|
|
59
|
+
const meta_trx_1 = require("./meta.trx");
|
|
60
|
+
const post_trx_1 = require("./post.trx");
|
|
61
|
+
const trx_1 = require("./trx");
|
|
62
|
+
const val = __importStar(require("../validators"));
|
|
63
|
+
const diff_1 = require("../common/diff");
|
|
64
|
+
let RevisionTrx = class RevisionTrx extends trx_1.Trx {
|
|
65
|
+
database;
|
|
66
|
+
config;
|
|
67
|
+
components;
|
|
68
|
+
postUtil;
|
|
69
|
+
revisionUtil;
|
|
70
|
+
vars;
|
|
71
|
+
constructor(database, config, components, postUtil, revisionUtil, vars) {
|
|
72
|
+
super(components);
|
|
73
|
+
this.database = database;
|
|
74
|
+
this.config = config;
|
|
75
|
+
this.components = components;
|
|
76
|
+
this.postUtil = postUtil;
|
|
77
|
+
this.revisionUtil = revisionUtil;
|
|
78
|
+
this.vars = vars;
|
|
79
|
+
}
|
|
80
|
+
// _wp_put_post_revision
|
|
81
|
+
async upsert(post, options) {
|
|
82
|
+
const { autoSave = false, meta = undefined } = options ?? {};
|
|
83
|
+
// start _wp_put_post_revision
|
|
84
|
+
const postInput = common_1.formatting.slash(this.revisionUtil.convertToData(post, autoSave));
|
|
85
|
+
const postTrx = this.components.get(post_trx_1.PostTrx);
|
|
86
|
+
const revisionId = await postTrx.upsert(postInput);
|
|
87
|
+
await this.syncMeta(post.ID, revisionId, { meta });
|
|
88
|
+
return revisionId;
|
|
89
|
+
}
|
|
90
|
+
// wp_save_revisioned_meta_fields
|
|
91
|
+
// wp_restore_post_revision_meta
|
|
92
|
+
async syncMeta(srcPostId, dstPostId, options) {
|
|
93
|
+
const { excludekeys = [] } = options ?? {};
|
|
94
|
+
const metaTrx = this.components.get(meta_trx_1.MetaTrx);
|
|
95
|
+
const metaUtil = this.components.get(meta_util_1.MetaUtil);
|
|
96
|
+
const postUtil = this.components.get(post_util_1.PostUtil);
|
|
97
|
+
const srcPost = await postUtil.get(srcPostId);
|
|
98
|
+
const srcMetas = { ...(await srcPost.meta.props()), ...options?.meta };
|
|
99
|
+
if (Object.keys(srcMetas).length === 0) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const syncedMetaKeys = [];
|
|
103
|
+
for (const [key, value] of Object.entries(srcMetas)) {
|
|
104
|
+
// Skip protected meta keys or excluded keys passed in options
|
|
105
|
+
if (metaUtil.isProtected(key, "post") || excludekeys.includes(key)) {
|
|
106
|
+
syncedMetaKeys.push(key);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
await metaTrx.upsert("post", dstPostId, key, value, {
|
|
110
|
+
serialize: typeof value === "object",
|
|
111
|
+
});
|
|
112
|
+
syncedMetaKeys.push(key);
|
|
113
|
+
}
|
|
114
|
+
// Remove meta keys that are not in the source post
|
|
115
|
+
const dstPost = await postUtil.get(dstPostId);
|
|
116
|
+
const dstMetas = await dstPost.meta.props();
|
|
117
|
+
for (const key in dstMetas) {
|
|
118
|
+
if (syncedMetaKeys.includes(key) || metaUtil.isProtected(key, "post")) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
await metaTrx.remove("post", {
|
|
122
|
+
objectId: dstPostId,
|
|
123
|
+
key,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
// wp_save_post_revision
|
|
128
|
+
async save(postId) {
|
|
129
|
+
if (this.vars.DOING_AUTOSAVE) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const post = await this.postUtil.get(postId);
|
|
133
|
+
if (!post.props) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const postType = this.postUtil.getTypeObject(post.props.post_type);
|
|
137
|
+
if (!postType?.supports.includes("revisions")) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if ("auto-draft" === post.props.post_type) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
/*
|
|
144
|
+
* Compare the proposed update with the last stored revision verifying that
|
|
145
|
+
* they are different, unless a plugin tells us to always save regardless.
|
|
146
|
+
* If no previous revisions, save one.
|
|
147
|
+
*/
|
|
148
|
+
let revisions = await this.revisionUtil.getList(postId);
|
|
149
|
+
if (revisions.length > 0) {
|
|
150
|
+
// Grab the latest revision, but not an autosave.
|
|
151
|
+
const latestRevision = revisions.filter((revision) => revision.post_name.includes(`${revision.post_parent}-revision`))[0] ?? {};
|
|
152
|
+
const fields = Object.keys(revision_util_1.RevisionUtil.revisionFields);
|
|
153
|
+
const hasChanged = fields.filter((column) => post.props &&
|
|
154
|
+
"string" === typeof post.props[column] &&
|
|
155
|
+
"string" === typeof latestRevision[column] &&
|
|
156
|
+
common_1.formatting.normalizeWhitespace(post.props[column]) !==
|
|
157
|
+
common_1.formatting.normalizeWhitespace(latestRevision[column])).length > 0;
|
|
158
|
+
if (!hasChanged) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// start _wp_put_post_revision
|
|
163
|
+
const resultPostId = await this.upsert(post.props);
|
|
164
|
+
/*
|
|
165
|
+
* If a limit for the number of revisions to keep has been set,
|
|
166
|
+
* delete the oldest ones.
|
|
167
|
+
*/
|
|
168
|
+
const WP_POST_REVISIONS = this.config.config.constants.WP_POST_REVISIONS;
|
|
169
|
+
if (WP_POST_REVISIONS < 0) {
|
|
170
|
+
return resultPostId;
|
|
171
|
+
}
|
|
172
|
+
revisions = await this.revisionUtil.getList(postId, (query) => {
|
|
173
|
+
const { column } = query.alias;
|
|
174
|
+
query.builder.clear("order").orderBy(column("posts", "ID"), "asc");
|
|
175
|
+
});
|
|
176
|
+
const deleteCount = revisions.length - WP_POST_REVISIONS;
|
|
177
|
+
if (deleteCount < 1) {
|
|
178
|
+
return resultPostId;
|
|
179
|
+
}
|
|
180
|
+
const sliceRevisions = revisions.slice(0, deleteCount);
|
|
181
|
+
for (const revision of sliceRevisions) {
|
|
182
|
+
if (revision.post_name.includes("autosave")) {
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
await this.remove(revision.ID);
|
|
186
|
+
}
|
|
187
|
+
return resultPostId;
|
|
188
|
+
}
|
|
189
|
+
// wp_restore_post_revision
|
|
190
|
+
async restore(revisionOrId, options) {
|
|
191
|
+
const fields = options?.fields ??
|
|
192
|
+
Object.keys(revision_util_1.RevisionUtil.revisionFields);
|
|
193
|
+
if (!fields) {
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
const post = typeof revisionOrId == "number"
|
|
197
|
+
? await this.postUtil.get(revisionOrId)
|
|
198
|
+
: revisionOrId;
|
|
199
|
+
if (!post.props || !post.props.post_parent) {
|
|
200
|
+
return post;
|
|
201
|
+
}
|
|
202
|
+
const parentId = post.props.post_parent;
|
|
203
|
+
const postUpsert = fields
|
|
204
|
+
.map((field) => ({
|
|
205
|
+
[field]: common_1.formatting.slash(post.props ? post.props[field] : undefined),
|
|
206
|
+
}))
|
|
207
|
+
.reduce((a, b) => ({ ...a, ...b }), {});
|
|
208
|
+
postUpsert.ID = parentId;
|
|
209
|
+
const postTrx = this.components.get(post_trx_1.PostTrx);
|
|
210
|
+
const postId = await postTrx.upsert(postUpsert);
|
|
211
|
+
const current = this.components.get(current_1.Current);
|
|
212
|
+
const metaTrx = this.components.get(meta_trx_1.MetaTrx);
|
|
213
|
+
await metaTrx.upsert("post", postId, "_edit_last", current.user?.props?.ID ?? 0);
|
|
214
|
+
await this.syncMeta(post.props.ID, postId);
|
|
215
|
+
return postId;
|
|
216
|
+
}
|
|
217
|
+
// wp_delete_post_revision
|
|
218
|
+
async remove(postOrId) {
|
|
219
|
+
const post = typeof postOrId == "number"
|
|
220
|
+
? await this.postUtil.get(postOrId)
|
|
221
|
+
: postOrId;
|
|
222
|
+
if (!post.props) {
|
|
223
|
+
return post;
|
|
224
|
+
}
|
|
225
|
+
const postTrx = this.components.get(post_trx_1.PostTrx);
|
|
226
|
+
return await postTrx.remove(post.props.ID);
|
|
227
|
+
}
|
|
228
|
+
// class-wp-rest-autosaves-controller.php create_post_autosave
|
|
229
|
+
async autosave(input, options) {
|
|
230
|
+
const current = this.components.get(current_1.Current);
|
|
231
|
+
const { userId = current.user?.props?.ID } = options ?? {};
|
|
232
|
+
if (!userId) {
|
|
233
|
+
// No user ID is provided. Skip autosave.
|
|
234
|
+
return undefined;
|
|
235
|
+
}
|
|
236
|
+
const data = val.database.wpPosts.parse(input);
|
|
237
|
+
const autosaveMeta = val.trx.postUpsert.shape.meta_input.parse(input.meta_input);
|
|
238
|
+
const autosavePost = this.revisionUtil.convertToData(data, true);
|
|
239
|
+
const post = await this.postUtil.get(data.ID);
|
|
240
|
+
const postId = post.props?.ID;
|
|
241
|
+
if (!postId) {
|
|
242
|
+
// Post not found. Skip autosave.
|
|
243
|
+
return undefined;
|
|
244
|
+
}
|
|
245
|
+
const oldAutosave = await this.revisionUtil.getAutosave(postId, userId);
|
|
246
|
+
const diffData = (0, diff_1.diffObject)(autosavePost, post.props);
|
|
247
|
+
const diffDataKeys = Object.keys(revision_util_1.RevisionUtil.revisionFields).filter((field) => diffData?.[field]);
|
|
248
|
+
const meta = await post.meta.props();
|
|
249
|
+
const diffMetaKeys = Object.keys((0, diff_1.diffObject)(autosaveMeta, meta));
|
|
250
|
+
if (diffDataKeys.length === 0 &&
|
|
251
|
+
diffMetaKeys.length === 0 &&
|
|
252
|
+
oldAutosave?.props) {
|
|
253
|
+
// No changes. Skip autosave.
|
|
254
|
+
return oldAutosave.props.ID;
|
|
255
|
+
}
|
|
256
|
+
// start _wp_put_post_revision
|
|
257
|
+
const postInput = common_1.formatting.slash(this.revisionUtil.convertToData(data, true));
|
|
258
|
+
postInput.post_author = userId;
|
|
259
|
+
// Store one autosave per author. If there is already an autosave, overwrite it.
|
|
260
|
+
if (oldAutosave?.props) {
|
|
261
|
+
postInput.ID = oldAutosave.props.ID;
|
|
262
|
+
}
|
|
263
|
+
const postTrx = this.components.get(post_trx_1.PostTrx);
|
|
264
|
+
const revisionId = await postTrx.upsert(postInput);
|
|
265
|
+
await this.syncMeta(postId, revisionId, { meta });
|
|
266
|
+
return revisionId;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
exports.RevisionTrx = RevisionTrx;
|
|
270
|
+
exports.RevisionTrx = RevisionTrx = __decorate([
|
|
271
|
+
(0, component_1.transactions)(),
|
|
272
|
+
__metadata("design:paramtypes", [database_1.default,
|
|
273
|
+
config_1.Config,
|
|
274
|
+
components_1.Components,
|
|
275
|
+
post_util_1.PostUtil,
|
|
276
|
+
revision_util_1.RevisionUtil,
|
|
277
|
+
vars_1.Vars])
|
|
278
|
+
], RevisionTrx);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Config } from "../config";
|
|
3
|
+
import { Components } from "../core/components";
|
|
4
|
+
import Database from "../database";
|
|
5
|
+
import * as val from "../validators";
|
|
6
|
+
import { Trx } from "./trx";
|
|
7
|
+
type DataUpsert = z.infer<typeof val.trx.rolesUpsert>;
|
|
8
|
+
export declare class RolesTrx extends Trx {
|
|
9
|
+
private database;
|
|
10
|
+
private components;
|
|
11
|
+
private config;
|
|
12
|
+
private static prohibitedRoles;
|
|
13
|
+
constructor(database: Database, components: Components, config: Config);
|
|
14
|
+
private sync;
|
|
15
|
+
private getUserRoles;
|
|
16
|
+
upsert(input: DataUpsert): Promise<boolean>;
|
|
17
|
+
remove(roleName: string): Promise<boolean>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=roles.trx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.trx.d.ts","sourceRoot":"","sources":["../../src/transactions/roles.trx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAI5B,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAEtD,qBACa,QAAS,SAAQ,GAAG;IAG7B,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,MAAM;IAJhB,OAAO,CAAC,MAAM,CAAC,eAAe,CAA+B;gBAEnD,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM;YAKV,IAAI;YAiBJ,YAAY;IAWpB,MAAM,CAAC,KAAK,EAAE,UAAU;IAiDxB,MAAM,CAAC,QAAQ,EAAE,MAAM;CAS9B"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
var RolesTrx_1;
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.RolesTrx = void 0;
|
|
50
|
+
const common_1 = require("../common");
|
|
51
|
+
const config_1 = require("../config");
|
|
52
|
+
const components_1 = require("../core/components");
|
|
53
|
+
const current_1 = require("../core/current");
|
|
54
|
+
const roles_util_1 = require("../core/utils/roles.util");
|
|
55
|
+
const database_1 = __importDefault(require("../database"));
|
|
56
|
+
const component_1 = require("../decorators/component");
|
|
57
|
+
const val = __importStar(require("../validators"));
|
|
58
|
+
const options_trx_1 = require("./options.trx");
|
|
59
|
+
const trx_1 = require("./trx");
|
|
60
|
+
let RolesTrx = class RolesTrx extends trx_1.Trx {
|
|
61
|
+
static { RolesTrx_1 = this; }
|
|
62
|
+
database;
|
|
63
|
+
components;
|
|
64
|
+
config;
|
|
65
|
+
static prohibitedRoles = ["superadmin", "anonymous"];
|
|
66
|
+
constructor(database, components, config) {
|
|
67
|
+
super(components);
|
|
68
|
+
this.database = database;
|
|
69
|
+
this.components = components;
|
|
70
|
+
this.config = config;
|
|
71
|
+
}
|
|
72
|
+
async sync(userRoles) {
|
|
73
|
+
const current = this.components.get(current_1.Current);
|
|
74
|
+
const optionsKey = `${current.tables.prefix}user_roles`;
|
|
75
|
+
const optionsTrx = this.components.get(options_trx_1.OptionsTrx);
|
|
76
|
+
// Reformat capabilities
|
|
77
|
+
const rolesUtil = this.components.get(roles_util_1.RolesUtil);
|
|
78
|
+
const reformattedRoles = rolesUtil.reformatInDB(userRoles);
|
|
79
|
+
const result = await optionsTrx.update(optionsKey, (0, common_1.phpSerialize)(reformattedRoles));
|
|
80
|
+
await current.setUserRoles();
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
async getUserRoles() {
|
|
84
|
+
const rolesUtil = this.components.get(roles_util_1.RolesUtil);
|
|
85
|
+
const current = this.components.get(current_1.Current);
|
|
86
|
+
const userRoles = await rolesUtil.get(current.blogId);
|
|
87
|
+
// Remove prohibited roles
|
|
88
|
+
return Object.entries(userRoles)
|
|
89
|
+
.filter(([roleName]) => !RolesTrx_1.prohibitedRoles.includes(roleName))
|
|
90
|
+
.reduce((a, b) => ({ ...a, [b[0]]: b[1] }), {});
|
|
91
|
+
}
|
|
92
|
+
async upsert(input) {
|
|
93
|
+
const parsedInput = val.trx.rolesUpsert.parse(input);
|
|
94
|
+
const userRoles = await this.getUserRoles();
|
|
95
|
+
let newUserRole;
|
|
96
|
+
const roleName = parsedInput.name ?? userRoles[parsedInput.role]?.name ?? parsedInput.role;
|
|
97
|
+
const capabilities = parsedInput.capabilities ??
|
|
98
|
+
userRoles[parsedInput.role]?.capabilities ??
|
|
99
|
+
[];
|
|
100
|
+
// Change role (key)
|
|
101
|
+
if (parsedInput.new_role) {
|
|
102
|
+
if (!userRoles[parsedInput.role]) {
|
|
103
|
+
throw new Error("Role not found");
|
|
104
|
+
}
|
|
105
|
+
if (userRoles[parsedInput.new_role]) {
|
|
106
|
+
throw new Error("Role already exists");
|
|
107
|
+
}
|
|
108
|
+
const roleBefore = {
|
|
109
|
+
name: roleName,
|
|
110
|
+
capabilities,
|
|
111
|
+
};
|
|
112
|
+
// Remove role
|
|
113
|
+
newUserRole = Object.entries(userRoles)
|
|
114
|
+
.filter(([v]) => parsedInput.role !== v)
|
|
115
|
+
.reduce((a, b) => ({ ...a, [b[0]]: b[1] }), {});
|
|
116
|
+
// Add role with new roleName
|
|
117
|
+
newUserRole[parsedInput.new_role] = roleBefore;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
newUserRole = {
|
|
121
|
+
...userRoles,
|
|
122
|
+
[parsedInput.role]: {
|
|
123
|
+
name: roleName,
|
|
124
|
+
capabilities,
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
return await this.sync(newUserRole);
|
|
129
|
+
}
|
|
130
|
+
async remove(roleName) {
|
|
131
|
+
const userRoles = await this.getUserRoles();
|
|
132
|
+
const newUserRole = Object.entries(userRoles)
|
|
133
|
+
.filter(([v]) => roleName !== v)
|
|
134
|
+
.reduce((a, b) => ({ ...a, [b[0]]: b[1] }), {});
|
|
135
|
+
return await this.sync(newUserRole);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
exports.RolesTrx = RolesTrx;
|
|
139
|
+
exports.RolesTrx = RolesTrx = RolesTrx_1 = __decorate([
|
|
140
|
+
(0, component_1.transactions)(),
|
|
141
|
+
__metadata("design:paramtypes", [database_1.default,
|
|
142
|
+
components_1.Components,
|
|
143
|
+
config_1.Config])
|
|
144
|
+
], RolesTrx);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Config } from "../config";
|
|
2
|
+
import { Components } from "../core/components";
|
|
3
|
+
import { Logger } from "../core/logger";
|
|
4
|
+
import { QueryUtil } from "../core/utils/query.util";
|
|
5
|
+
import Database from "../database";
|
|
6
|
+
import { MetaTrx } from "./meta.trx";
|
|
7
|
+
import { OptionsTrx } from "./options.trx";
|
|
8
|
+
import { PostTrx } from "./post.trx";
|
|
9
|
+
import { SiteTrx } from "./site.trx";
|
|
10
|
+
import { TermTrx } from "./term.trx";
|
|
11
|
+
import { Trx } from "./trx";
|
|
12
|
+
export declare class SeederTrx extends Trx {
|
|
13
|
+
private components;
|
|
14
|
+
private logger;
|
|
15
|
+
private database;
|
|
16
|
+
private config;
|
|
17
|
+
private optionsTrx;
|
|
18
|
+
private metaTrx;
|
|
19
|
+
private queryUtil;
|
|
20
|
+
private siteTrx;
|
|
21
|
+
private postTrx;
|
|
22
|
+
private termTrx;
|
|
23
|
+
constructor(components: Components, logger: Logger, database: Database, config: Config, optionsTrx: OptionsTrx, metaTrx: MetaTrx, queryUtil: QueryUtil, siteTrx: SiteTrx, postTrx: PostTrx, termTrx: TermTrx);
|
|
24
|
+
private currentDbVersion;
|
|
25
|
+
populateOptions(options: Record<string, any>): Promise<void>;
|
|
26
|
+
populateRoles(): Promise<number>;
|
|
27
|
+
private validMultisite;
|
|
28
|
+
populateSitemeta(siteId: number, meta?: {
|
|
29
|
+
admin_email: string;
|
|
30
|
+
subdomain_install: boolean;
|
|
31
|
+
} & Record<string, any>): Promise<void>;
|
|
32
|
+
populateSite(input: Partial<{
|
|
33
|
+
siteId?: number;
|
|
34
|
+
domain: string;
|
|
35
|
+
email: string;
|
|
36
|
+
siteName: string;
|
|
37
|
+
path: string;
|
|
38
|
+
}>, options?: {
|
|
39
|
+
subdomainInstall?: boolean;
|
|
40
|
+
}): Promise<boolean | undefined>;
|
|
41
|
+
populateContent(userId: number): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=seeder.trx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seeder.trx.d.ts","sourceRoot":"","sources":["../../src/transactions/seeder.trx.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,OAAO,QAAQ,MAAM,aAAa,CAAC;AAKnC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,qBACa,SAAU,SAAQ,GAAG;IAE9B,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBATP,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO;YAKZ,gBAAgB;IAMxB,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAyD5C,aAAa;YAoBL,cAAc;IAqBtB,gBAAgB,CACpB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,OAAO,CAAA;KAAE,GAAG,MAAM,CAChE,MAAM,EACN,GAAG,CAC2C;IAgI5C,YAAY,CAChB,KAAK,EAAE,OAAO,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,EACF,OAAO,CAAC,EAAE;QACR,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B;IA0GG,eAAe,CAAC,MAAM,EAAE,MAAM;CA0LrC"}
|