@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,281 @@
|
|
|
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 __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.rolesListParams = exports.rolesCountListParams = exports.revisionListParams = exports.siteInsert = exports.siteListParams = exports.blogInsert = exports.blogUpdate = exports.blogListParams = exports.settings = exports.commentListParams = exports.termListParams = exports.metaListParams = exports.userListParams = exports.postListParams = void 0;
|
|
37
|
+
const zod_1 = require("zod");
|
|
38
|
+
const trx = __importStar(require("./transactions"));
|
|
39
|
+
const helpers_1 = require("./helpers");
|
|
40
|
+
exports.postListParams = zod_1.z.object({
|
|
41
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
42
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
43
|
+
search: zod_1.z.string().trim().optional(),
|
|
44
|
+
after: zod_1.z.string().optional(), // Validate as ISO8601 date if needed
|
|
45
|
+
modified_after: zod_1.z.string().optional(), // Validate as ISO8601 date if needed
|
|
46
|
+
author: helpers_1.numberArr.optional(),
|
|
47
|
+
author_exclude: helpers_1.numberArr.optional(),
|
|
48
|
+
before: zod_1.z.string().optional(), // Validate as ISO8601 date if needed
|
|
49
|
+
modified_before: zod_1.z.string().optional(), // Validate as ISO8601 date if needed
|
|
50
|
+
exclude: helpers_1.numberArr.optional(),
|
|
51
|
+
include: helpers_1.numberArr.optional(),
|
|
52
|
+
offset: helpers_1.number.optional(),
|
|
53
|
+
order: zod_1.z.union([zod_1.z.literal("asc"), zod_1.z.literal("desc")]).default("desc"),
|
|
54
|
+
orderby: zod_1.z
|
|
55
|
+
.union([
|
|
56
|
+
zod_1.z.literal("post_author"),
|
|
57
|
+
zod_1.z.literal("post_date"),
|
|
58
|
+
zod_1.z.literal("ID"),
|
|
59
|
+
zod_1.z.literal("post_modified"),
|
|
60
|
+
zod_1.z.literal("post_parent"),
|
|
61
|
+
zod_1.z.literal("post_name"),
|
|
62
|
+
zod_1.z.literal("post_title"),
|
|
63
|
+
])
|
|
64
|
+
.default("post_date"),
|
|
65
|
+
slug: helpers_1.stringArr.optional(),
|
|
66
|
+
status: helpers_1.stringArr.optional(), // Define specific statuses if needed
|
|
67
|
+
status_exclude: zod_1.z.array(zod_1.z.string()).optional(),
|
|
68
|
+
tax_relation: zod_1.z.union([zod_1.z.literal("AND"), zod_1.z.literal("OR")]).optional(),
|
|
69
|
+
categories: helpers_1.numberArr.optional(),
|
|
70
|
+
categories_exclude: helpers_1.numberArr.optional(),
|
|
71
|
+
tags: helpers_1.numberArr.optional(),
|
|
72
|
+
tags_exclude: helpers_1.numberArr.optional(),
|
|
73
|
+
meta: zod_1.z.object({ key: zod_1.z.string(), value: zod_1.z.string() }).optional(),
|
|
74
|
+
exclude_meta: zod_1.z
|
|
75
|
+
.object({ key: zod_1.z.string(), value: zod_1.z.union([zod_1.z.string(), zod_1.z.undefined()]) })
|
|
76
|
+
.optional(),
|
|
77
|
+
sticky: helpers_1.boolean.optional(),
|
|
78
|
+
});
|
|
79
|
+
exports.userListParams = zod_1.z.object({
|
|
80
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
81
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
82
|
+
blog_id: helpers_1.number.optional(),
|
|
83
|
+
site_id: helpers_1.number.optional(),
|
|
84
|
+
search: zod_1.z.string().optional(),
|
|
85
|
+
exclude: helpers_1.numberArr.optional(),
|
|
86
|
+
exclude_anonymous: helpers_1.boolean.optional(),
|
|
87
|
+
include: helpers_1.numberArr.optional(),
|
|
88
|
+
include_unregistered_users: helpers_1.boolean.optional(),
|
|
89
|
+
superadmins: helpers_1.boolean.optional(),
|
|
90
|
+
offset: helpers_1.number.optional(),
|
|
91
|
+
order: zod_1.z.enum(["asc", "desc"]).default("asc"),
|
|
92
|
+
orderby: zod_1.z
|
|
93
|
+
.enum([
|
|
94
|
+
"ID",
|
|
95
|
+
"display_name",
|
|
96
|
+
"user_login",
|
|
97
|
+
"user_registered",
|
|
98
|
+
"user_email",
|
|
99
|
+
"user_url",
|
|
100
|
+
])
|
|
101
|
+
.default("display_name"),
|
|
102
|
+
slug: zod_1.z.array(zod_1.z.string()).optional(),
|
|
103
|
+
roles: zod_1.z
|
|
104
|
+
.union([zod_1.z.string().transform((v) => v.split(",")), zod_1.z.array(zod_1.z.string())])
|
|
105
|
+
.optional(),
|
|
106
|
+
has_published_posts: helpers_1.boolean.optional(),
|
|
107
|
+
});
|
|
108
|
+
exports.metaListParams = zod_1.z.object({
|
|
109
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
110
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
111
|
+
search: zod_1.z.string().optional(),
|
|
112
|
+
exclude: helpers_1.numberArr.optional(),
|
|
113
|
+
include: helpers_1.numberArr.optional(),
|
|
114
|
+
offset: helpers_1.number.optional(),
|
|
115
|
+
order: zod_1.z.enum(["asc", "desc"]).default("asc"),
|
|
116
|
+
orderby: zod_1.z.enum(["meta_id", "meta_key", "meta_value"]).default("meta_id"),
|
|
117
|
+
});
|
|
118
|
+
exports.termListParams = zod_1.z.object({
|
|
119
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
120
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
121
|
+
search: zod_1.z.string().optional(),
|
|
122
|
+
exclude: helpers_1.numberArr.optional(),
|
|
123
|
+
include: helpers_1.numberArr.optional(),
|
|
124
|
+
order: zod_1.z.enum(["asc", "desc"]).default("asc"),
|
|
125
|
+
orderby: zod_1.z
|
|
126
|
+
.enum([
|
|
127
|
+
"term_id",
|
|
128
|
+
"name",
|
|
129
|
+
"slug",
|
|
130
|
+
"term_group",
|
|
131
|
+
"term_order",
|
|
132
|
+
"description",
|
|
133
|
+
])
|
|
134
|
+
.default("name"),
|
|
135
|
+
hide_empty: helpers_1.boolean.optional(),
|
|
136
|
+
parent: helpers_1.number.optional(),
|
|
137
|
+
post: helpers_1.number.optional(),
|
|
138
|
+
slug: zod_1.z.array(zod_1.z.string()).optional(),
|
|
139
|
+
});
|
|
140
|
+
exports.commentListParams = zod_1.z.object({
|
|
141
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
142
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
143
|
+
search: zod_1.z.string().optional(),
|
|
144
|
+
after: zod_1.z.string().optional(), // assuming ISO8601 date as string
|
|
145
|
+
author: helpers_1.numberArr.optional(), // array of user IDs
|
|
146
|
+
author_exclude: helpers_1.numberArr.optional(), // array of user IDs
|
|
147
|
+
author_email: zod_1.z.string().optional(),
|
|
148
|
+
before: zod_1.z.string().optional(), // assuming ISO8601 date as string
|
|
149
|
+
exclude: helpers_1.numberArr.optional(), // array of IDs
|
|
150
|
+
include: helpers_1.numberArr.optional(), // array of IDs
|
|
151
|
+
offset: helpers_1.number.optional(),
|
|
152
|
+
order: zod_1.z.enum(["asc", "desc"]).default("desc"),
|
|
153
|
+
orderby: zod_1.z
|
|
154
|
+
.enum([
|
|
155
|
+
"comment_author",
|
|
156
|
+
"comment_date",
|
|
157
|
+
"comment_date_gmt",
|
|
158
|
+
"comment_ID",
|
|
159
|
+
"comment_post_ID",
|
|
160
|
+
"comment_parent",
|
|
161
|
+
"comment_type",
|
|
162
|
+
])
|
|
163
|
+
.default("comment_date_gmt"),
|
|
164
|
+
parent: helpers_1.numberArr.optional(), // array of parent IDs
|
|
165
|
+
parent_exclude: helpers_1.numberArr.optional(), // array of parent IDs
|
|
166
|
+
post: helpers_1.numberArr.optional(), // array of post IDs
|
|
167
|
+
status: zod_1.z.string().default("approve").optional(),
|
|
168
|
+
type: zod_1.z.string().default("comment").optional(),
|
|
169
|
+
password: zod_1.z.string().optional(),
|
|
170
|
+
});
|
|
171
|
+
exports.settings = zod_1.z.object({
|
|
172
|
+
title: zod_1.z.string().optional(),
|
|
173
|
+
description: zod_1.z.string().optional(),
|
|
174
|
+
url: zod_1.z.string().url().optional(),
|
|
175
|
+
home: zod_1.z.string().url().optional(),
|
|
176
|
+
email: zod_1.z.string().email().optional(),
|
|
177
|
+
timezone: zod_1.z.string().optional(),
|
|
178
|
+
date_format: zod_1.z.string().optional(),
|
|
179
|
+
time_format: zod_1.z.string().optional(),
|
|
180
|
+
start_of_week: helpers_1.number.optional(),
|
|
181
|
+
use_smilies: helpers_1.number.optional(),
|
|
182
|
+
default_category: helpers_1.number.optional(),
|
|
183
|
+
default_post_format: helpers_1.number.optional(),
|
|
184
|
+
posts_per_page: helpers_1.number.optional(),
|
|
185
|
+
show_on_front: zod_1.z.string().optional(),
|
|
186
|
+
page_on_front: helpers_1.number.optional(),
|
|
187
|
+
page_for_posts: helpers_1.number.optional(),
|
|
188
|
+
default_ping_status: zod_1.z.enum(["open", "closed"]).optional(),
|
|
189
|
+
default_comment_status: zod_1.z.enum(["open", "closed"]).optional(),
|
|
190
|
+
site_icon: helpers_1.number.optional(),
|
|
191
|
+
// comment_require_name_email: z.enum(["0", "1"]).optional(),
|
|
192
|
+
// comment_registration: z.enum(["0", "1"]).optional(),
|
|
193
|
+
// comment_previously_approved: z.enum(["0", "1"]).optional(),
|
|
194
|
+
// comment_moderation: z.enum(["0", "1"]).optional(),
|
|
195
|
+
// comment_max_links: number.optional(),
|
|
196
|
+
// comment_moderation_keys: z.string().optional(),
|
|
197
|
+
// comment_disallowed_keys: z.string().optional(),
|
|
198
|
+
});
|
|
199
|
+
exports.blogListParams = zod_1.z.object({
|
|
200
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
201
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
202
|
+
offset: helpers_1.number.optional(),
|
|
203
|
+
search: zod_1.z.string().optional(),
|
|
204
|
+
exclude: helpers_1.numberArr.optional(),
|
|
205
|
+
include: helpers_1.numberArr.optional(),
|
|
206
|
+
site_id: helpers_1.number.optional(),
|
|
207
|
+
site: helpers_1.numberArr.optional(), // array of user IDs
|
|
208
|
+
site_exclude: helpers_1.numberArr.optional(), // array of user IDs
|
|
209
|
+
domain: zod_1.z.string().max(200).trim().optional(),
|
|
210
|
+
path: zod_1.z.string().max(100).trim().optional(),
|
|
211
|
+
public: zod_1.z.number().max(1).nonnegative().optional(),
|
|
212
|
+
archived: zod_1.z.number().max(1).nonnegative().optional(),
|
|
213
|
+
mature: zod_1.z.number().max(1).nonnegative().optional(),
|
|
214
|
+
spam: zod_1.z.number().max(1).nonnegative().optional(),
|
|
215
|
+
deleted: zod_1.z.number().max(1).nonnegative().optional(),
|
|
216
|
+
lang_id: zod_1.z.number().int().nonnegative().optional(),
|
|
217
|
+
order: zod_1.z.enum(["asc", "desc"]).default("asc"),
|
|
218
|
+
orderby: zod_1.z
|
|
219
|
+
.enum(["blog_id", "domain", "path", "url", "registered", "last_updated"])
|
|
220
|
+
.default("blog_id"),
|
|
221
|
+
});
|
|
222
|
+
exports.blogUpdate = trx.blogUpsertBase.merge(zod_1.z.object({
|
|
223
|
+
blog_id: zod_1.z.number().int().nonnegative(),
|
|
224
|
+
}));
|
|
225
|
+
exports.blogInsert = zod_1.z.object({
|
|
226
|
+
user_id: zod_1.z.number().int().nonnegative().optional(),
|
|
227
|
+
title: zod_1.z.string().min(3),
|
|
228
|
+
domain: zod_1.z
|
|
229
|
+
.string()
|
|
230
|
+
.min(1)
|
|
231
|
+
.refine((v) => /^([a-zA-Z0-9-])+$/.test(v))
|
|
232
|
+
.transform((v) => v.toLowerCase()),
|
|
233
|
+
path: helpers_1.path,
|
|
234
|
+
});
|
|
235
|
+
exports.siteListParams = zod_1.z.object({
|
|
236
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
237
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
238
|
+
offset: zod_1.z.number().optional(),
|
|
239
|
+
search: zod_1.z.string().optional(),
|
|
240
|
+
exclude: helpers_1.numberArr.optional(),
|
|
241
|
+
include: helpers_1.numberArr.optional(),
|
|
242
|
+
domain_exclude: helpers_1.stringArr.optional(),
|
|
243
|
+
domain: helpers_1.stringArr.optional(),
|
|
244
|
+
path: zod_1.z.string().max(100).trim().optional(),
|
|
245
|
+
order: zod_1.z.enum(["asc", "desc"]).default("asc"),
|
|
246
|
+
orderby: zod_1.z.enum(["id", "domain", "path"]).default("id"),
|
|
247
|
+
});
|
|
248
|
+
exports.siteInsert = zod_1.z.object({
|
|
249
|
+
domain: zod_1.z
|
|
250
|
+
.string()
|
|
251
|
+
.regex(/^[a-z0-9\\.-]+$/)
|
|
252
|
+
.refine((value) => !/^[0-9]*$/.test(value)),
|
|
253
|
+
path: helpers_1.path,
|
|
254
|
+
site_name: zod_1.z.string(),
|
|
255
|
+
});
|
|
256
|
+
exports.revisionListParams = zod_1.z.object({
|
|
257
|
+
parent: helpers_1.number.optional(),
|
|
258
|
+
page: (0, helpers_1.numberWithDefault)(1),
|
|
259
|
+
per_page: (0, helpers_1.numberWithDefault)(10),
|
|
260
|
+
search: zod_1.z.string().optional(),
|
|
261
|
+
exclude: helpers_1.numberArr.optional(),
|
|
262
|
+
include: helpers_1.numberArr.optional(),
|
|
263
|
+
offset: helpers_1.number.optional(),
|
|
264
|
+
order: zod_1.z.enum(["asc", "desc"]).default("desc"),
|
|
265
|
+
orderby: zod_1.z
|
|
266
|
+
.union([
|
|
267
|
+
zod_1.z.literal("post_date"),
|
|
268
|
+
zod_1.z.literal("ID"),
|
|
269
|
+
zod_1.z.literal("post_modified"),
|
|
270
|
+
zod_1.z.literal("post_name"),
|
|
271
|
+
zod_1.z.literal("post_title"),
|
|
272
|
+
])
|
|
273
|
+
.default("post_date"),
|
|
274
|
+
});
|
|
275
|
+
exports.rolesCountListParams = zod_1.z.object({
|
|
276
|
+
site_id: helpers_1.number.optional(),
|
|
277
|
+
blog_id: helpers_1.number.optional(),
|
|
278
|
+
});
|
|
279
|
+
exports.rolesListParams = zod_1.z.object({
|
|
280
|
+
blog_ids: helpers_1.numberArr,
|
|
281
|
+
});
|