@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,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultSitemetaKeys = void 0;
|
|
4
|
+
exports.defaultSitemetaKeys = [
|
|
5
|
+
"add_new_users",
|
|
6
|
+
"active_sitewide_plugins",
|
|
7
|
+
"admin_email",
|
|
8
|
+
"admin_user_id",
|
|
9
|
+
"allowedthemes",
|
|
10
|
+
"banned_email_domains",
|
|
11
|
+
"blog_upload_space",
|
|
12
|
+
"fileupload_maxk",
|
|
13
|
+
"first_comment",
|
|
14
|
+
"first_comment_author",
|
|
15
|
+
"first_comment_email",
|
|
16
|
+
"first_comment_url",
|
|
17
|
+
"first_page",
|
|
18
|
+
"first_post",
|
|
19
|
+
"illegal_names",
|
|
20
|
+
"initial_db_version",
|
|
21
|
+
"limited_email_domains",
|
|
22
|
+
"menu_items",
|
|
23
|
+
"ms_files_rewriting",
|
|
24
|
+
"new_admin_email",
|
|
25
|
+
"registration",
|
|
26
|
+
"registrationnotification",
|
|
27
|
+
"site_admins",
|
|
28
|
+
"site_name",
|
|
29
|
+
"siteurl",
|
|
30
|
+
"subdomain_install",
|
|
31
|
+
"upload_filetypes",
|
|
32
|
+
"upload_space_check_disabled",
|
|
33
|
+
"user_count",
|
|
34
|
+
"welcome_email",
|
|
35
|
+
"welcome_user_email",
|
|
36
|
+
"wpmu_upgrade_site",
|
|
37
|
+
"WPLANG",
|
|
38
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subdirectory-reserved-names.d.ts","sourceRoot":"","sources":["../../src/defaults/subdirectory-reserved-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,yBAAyB,UAWrC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subdirectoryReservedNames = void 0;
|
|
4
|
+
// get_subdirectory_reserved_names
|
|
5
|
+
exports.subdirectoryReservedNames = [
|
|
6
|
+
"page",
|
|
7
|
+
"comments",
|
|
8
|
+
"blog",
|
|
9
|
+
"files",
|
|
10
|
+
"feed",
|
|
11
|
+
"wp-admin",
|
|
12
|
+
"wp-content",
|
|
13
|
+
"wp-includes",
|
|
14
|
+
"wp-json",
|
|
15
|
+
"embed",
|
|
16
|
+
];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as types from "../types";
|
|
2
|
+
export declare const taxonomyNames: readonly ["category", "post_tag", "post_format", "link_category"];
|
|
3
|
+
export declare const taxonomyObjectTypes: readonly ["post", "link"];
|
|
4
|
+
export declare const taxonomies: Partial<types.TaxonomyRecord>;
|
|
5
|
+
//# sourceMappingURL=taxonomies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxonomies.d.ts","sourceRoot":"","sources":["../../src/defaults/taxonomies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,UAAU,CAAC;AACvC,eAAO,MAAM,aAAa,mEAKhB,CAAC;AACX,eAAO,MAAM,mBAAmB,2BAA4B,CAAC;AAI7D,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CA4CpD,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taxonomies = exports.taxonomyObjectTypes = exports.taxonomyNames = void 0;
|
|
4
|
+
exports.taxonomyNames = [
|
|
5
|
+
"category",
|
|
6
|
+
"post_tag",
|
|
7
|
+
"post_format",
|
|
8
|
+
"link_category",
|
|
9
|
+
];
|
|
10
|
+
exports.taxonomyObjectTypes = ["post", "link"];
|
|
11
|
+
// /wp-includes/taxonomy.php
|
|
12
|
+
// register_taxonomy
|
|
13
|
+
exports.taxonomies = {
|
|
14
|
+
category: {
|
|
15
|
+
objectType: "post",
|
|
16
|
+
hierarchical: true,
|
|
17
|
+
_builtin: true,
|
|
18
|
+
showUi: true,
|
|
19
|
+
capabilities: {
|
|
20
|
+
manage_terms: "manage_categories",
|
|
21
|
+
edit_terms: "edit_categories",
|
|
22
|
+
delete_terms: "delete_categories",
|
|
23
|
+
assign_terms: "assign_categories",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
post_tag: {
|
|
27
|
+
objectType: "post",
|
|
28
|
+
hierarchical: false,
|
|
29
|
+
_builtin: true,
|
|
30
|
+
showUi: true,
|
|
31
|
+
capabilities: {
|
|
32
|
+
manage_terms: "manage_post_tags",
|
|
33
|
+
edit_terms: "edit_post_tags",
|
|
34
|
+
delete_terms: "delete_post_tags",
|
|
35
|
+
assign_terms: "assign_post_tags",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
post_format: {
|
|
39
|
+
objectType: "post",
|
|
40
|
+
hierarchical: false,
|
|
41
|
+
_builtin: true,
|
|
42
|
+
showUi: false,
|
|
43
|
+
//capabilities: {},
|
|
44
|
+
},
|
|
45
|
+
link_category: {
|
|
46
|
+
objectType: "link",
|
|
47
|
+
hierarchical: false,
|
|
48
|
+
_builtin: true,
|
|
49
|
+
showUi: true,
|
|
50
|
+
capabilities: {
|
|
51
|
+
manage_terms: "manage_links",
|
|
52
|
+
edit_terms: "manage_links",
|
|
53
|
+
delete_terms: "manage_links",
|
|
54
|
+
assign_terms: "manage_links",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const timezone: readonly ["Europe/Andorra", "Asia/Dubai", "Asia/Kabul", "Europe/Tirane", "Asia/Yerevan", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Mawson", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "America/Argentina/Buenos_Aires", "America/Argentina/Cordoba", "America/Argentina/Salta", "America/Argentina/Jujuy", "America/Argentina/Tucuman", "America/Argentina/Catamarca", "America/Argentina/La_Rioja", "America/Argentina/San_Juan", "America/Argentina/Mendoza", "America/Argentina/San_Luis", "America/Argentina/Rio_Gallegos", "America/Argentina/Ushuaia", "Pacific/Pago_Pago", "Europe/Vienna", "Australia/Lord_Howe", "Antarctica/Macquarie", "Australia/Hobart", "Australia/Currie", "Australia/Melbourne", "Australia/Sydney", "Australia/Broken_Hill", "Australia/Brisbane", "Australia/Lindeman", "Australia/Adelaide", "Australia/Darwin", "Australia/Perth", "Australia/Eucla", "Asia/Baku", "America/Barbados", "Asia/Dhaka", "Europe/Brussels", "Europe/Sofia", "Atlantic/Bermuda", "Asia/Brunei", "America/La_Paz", "America/Noronha", "America/Belem", "America/Fortaleza", "America/Recife", "America/Araguaina", "America/Maceio", "America/Bahia", "America/Sao_Paulo", "America/Campo_Grande", "America/Cuiaba", "America/Santarem", "America/Porto_Velho", "America/Boa_Vista", "America/Manaus", "America/Eirunepe", "America/Rio_Branco", "America/Nassau", "Asia/Thimphu", "Europe/Minsk", "America/Belize", "America/St_Johns", "America/Halifax", "America/Glace_Bay", "America/Moncton", "America/Goose_Bay", "America/Blanc-Sablon", "America/Toronto", "America/Nipigon", "America/Thunder_Bay", "America/Iqaluit", "America/Pangnirtung", "America/Atikokan", "America/Winnipeg", "America/Rainy_River", "America/Resolute", "America/Rankin_Inlet", "America/Regina", "America/Swift_Current", "America/Edmonton", "America/Cambridge_Bay", "America/Yellowknife", "America/Inuvik", "America/Creston", "America/Dawson_Creek", "America/Fort_Nelson", "America/Vancouver", "America/Whitehorse", "America/Dawson", "Indian/Cocos", "Europe/Zurich", "Africa/Abidjan", "Pacific/Rarotonga", "America/Santiago", "America/Punta_Arenas", "Pacific/Easter", "Asia/Shanghai", "Asia/Urumqi", "America/Bogota", "America/Costa_Rica", "America/Havana", "Atlantic/Cape_Verde", "America/Curacao", "Indian/Christmas", "Asia/Nicosia", "Asia/Famagusta", "Europe/Prague", "Europe/Berlin", "Europe/Copenhagen", "America/Santo_Domingo", "Africa/Algiers", "America/Guayaquil", "Pacific/Galapagos", "Europe/Tallinn", "Africa/Cairo", "Africa/El_Aaiun", "Europe/Madrid", "Africa/Ceuta", "Atlantic/Canary", "Europe/Helsinki", "Pacific/Fiji", "Atlantic/Stanley", "Pacific/Chuuk", "Pacific/Pohnpei", "Pacific/Kosrae", "Atlantic/Faroe", "Europe/Paris", "Europe/London", "Asia/Tbilisi", "America/Cayenne", "Africa/Accra", "Europe/Gibraltar", "America/Godthab", "America/Danmarkshavn", "America/Scoresbysund", "America/Thule", "Europe/Athens", "Atlantic/South_Georgia", "America/Guatemala", "Pacific/Guam", "Africa/Bissau", "America/Guyana", "Asia/Hong_Kong", "America/Tegucigalpa", "America/Port-au-Prince", "Europe/Budapest", "Asia/Jakarta", "Asia/Pontianak", "Asia/Makassar", "Asia/Jayapura", "Europe/Dublin", "Asia/Jerusalem", "Asia/Kolkata", "Indian/Chagos", "Asia/Baghdad", "Asia/Tehran", "Atlantic/Reykjavik", "Europe/Rome", "America/Jamaica", "Asia/Amman", "Asia/Tokyo", "Africa/Nairobi", "Asia/Bishkek", "Pacific/Tarawa", "Pacific/Enderbury", "Pacific/Kiritimati", "Asia/Pyongyang", "Asia/Seoul", "Asia/Almaty", "Asia/Qyzylorda", "Asia/Qostanay", "Asia/Aqtobe", "Asia/Aqtau", "Asia/Atyrau", "Asia/Oral", "Asia/Beirut", "Asia/Colombo", "Africa/Monrovia", "Europe/Vilnius", "Europe/Luxembourg", "Europe/Riga", "Africa/Tripoli", "Africa/Casablanca", "Europe/Monaco", "Europe/Chisinau", "Pacific/Majuro", "Pacific/Kwajalein", "Asia/Yangon", "Asia/Ulaanbaatar", "Asia/Hovd", "Asia/Choibalsan", "Asia/Macau", "America/Martinique", "Europe/Malta", "Indian/Mauritius", "Indian/Maldives", "America/Mexico_City", "America/Cancun", "America/Merida", "America/Monterrey", "America/Matamoros", "America/Mazatlan", "America/Chihuahua", "America/Ojinaga", "America/Hermosillo", "America/Tijuana", "America/Bahia_Banderas", "Asia/Kuala_Lumpur", "Asia/Kuching", "Africa/Maputo", "Africa/Windhoek", "Pacific/Noumea", "Pacific/Norfolk", "Africa/Lagos", "America/Managua", "Europe/Amsterdam", "Europe/Oslo", "Asia/Kathmandu", "Pacific/Nauru", "Pacific/Niue", "Pacific/Auckland", "Pacific/Chatham", "America/Panama", "America/Lima", "Pacific/Tahiti", "Pacific/Marquesas", "Pacific/Gambier", "Pacific/Port_Moresby", "Pacific/Bougainville", "Asia/Manila", "Asia/Karachi", "Europe/Warsaw", "America/Miquelon", "Pacific/Pitcairn", "America/Puerto_Rico", "Asia/Gaza", "Asia/Hebron", "Europe/Lisbon", "Atlantic/Madeira", "Atlantic/Azores", "Pacific/Palau", "America/Asuncion", "Asia/Qatar", "Indian/Reunion", "Europe/Bucharest", "Europe/Belgrade", "Europe/Kaliningrad", "Europe/Moscow", "Europe/Simferopol", "Europe/Kirov", "Europe/Astrakhan", "Europe/Volgograd", "Europe/Saratov", "Europe/Ulyanovsk", "Europe/Samara", "Asia/Yekaterinburg", "Asia/Omsk", "Asia/Novosibirsk", "Asia/Barnaul", "Asia/Tomsk", "Asia/Novokuznetsk", "Asia/Krasnoyarsk", "Asia/Irkutsk", "Asia/Chita", "Asia/Yakutsk", "Asia/Khandyga", "Asia/Vladivostok", "Asia/Ust-Nera", "Asia/Magadan", "Asia/Sakhalin", "Asia/Srednekolymsk", "Asia/Kamchatka", "Asia/Anadyr", "Asia/Riyadh", "Pacific/Guadalcanal", "Indian/Mahe", "Africa/Khartoum", "Europe/Stockholm", "Asia/Singapore", "America/Paramaribo", "Africa/Juba", "Africa/Sao_Tome", "America/El_Salvador", "Asia/Damascus", "America/Grand_Turk", "Africa/Ndjamena", "Indian/Kerguelen", "Asia/Bangkok", "Asia/Dushanbe", "Pacific/Fakaofo", "Asia/Dili", "Asia/Ashgabat", "Africa/Tunis", "Pacific/Tongatapu", "Europe/Istanbul", "America/Port_of_Spain", "Pacific/Funafuti", "Asia/Taipei", "Europe/Kiev", "Europe/Uzhgorod", "Europe/Zaporozhye", "Pacific/Wake", "America/New_York", "America/Detroit", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Indiana/Indianapolis", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Vevay", "America/Chicago", "America/Indiana/Tell_City", "America/Indiana/Knox", "America/Menominee", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/North_Dakota/Beulah", "America/Denver", "America/Boise", "America/Phoenix", "America/Los_Angeles", "America/Anchorage", "America/Juneau", "America/Sitka", "America/Metlakatla", "America/Yakutat", "America/Nome", "America/Adak", "Pacific/Honolulu", "America/Montevideo", "Asia/Samarkand", "Asia/Tashkent", "America/Caracas", "Asia/Ho_Chi_Minh", "Pacific/Efate", "Pacific/Wallis", "Pacific/Apia", "Africa/Johannesburg"];
|
|
2
|
+
//# sourceMappingURL=timezone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone.d.ts","sourceRoot":"","sources":["../../src/defaults/timezone.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,+qNA6VX,CAAC"}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.timezone = void 0;
|
|
4
|
+
exports.timezone = [
|
|
5
|
+
"Europe/Andorra",
|
|
6
|
+
"Asia/Dubai",
|
|
7
|
+
"Asia/Kabul",
|
|
8
|
+
"Europe/Tirane",
|
|
9
|
+
"Asia/Yerevan",
|
|
10
|
+
"Antarctica/Casey",
|
|
11
|
+
"Antarctica/Davis",
|
|
12
|
+
"Antarctica/DumontDUrville", // https://bugs.chromium.org/p/chromium/issues/detail?id=928068
|
|
13
|
+
"Antarctica/Mawson",
|
|
14
|
+
"Antarctica/Palmer",
|
|
15
|
+
"Antarctica/Rothera",
|
|
16
|
+
"Antarctica/Syowa",
|
|
17
|
+
"Antarctica/Troll",
|
|
18
|
+
"Antarctica/Vostok",
|
|
19
|
+
"America/Argentina/Buenos_Aires",
|
|
20
|
+
"America/Argentina/Cordoba",
|
|
21
|
+
"America/Argentina/Salta",
|
|
22
|
+
"America/Argentina/Jujuy",
|
|
23
|
+
"America/Argentina/Tucuman",
|
|
24
|
+
"America/Argentina/Catamarca",
|
|
25
|
+
"America/Argentina/La_Rioja",
|
|
26
|
+
"America/Argentina/San_Juan",
|
|
27
|
+
"America/Argentina/Mendoza",
|
|
28
|
+
"America/Argentina/San_Luis",
|
|
29
|
+
"America/Argentina/Rio_Gallegos",
|
|
30
|
+
"America/Argentina/Ushuaia",
|
|
31
|
+
"Pacific/Pago_Pago",
|
|
32
|
+
"Europe/Vienna",
|
|
33
|
+
"Australia/Lord_Howe",
|
|
34
|
+
"Antarctica/Macquarie",
|
|
35
|
+
"Australia/Hobart",
|
|
36
|
+
"Australia/Currie",
|
|
37
|
+
"Australia/Melbourne",
|
|
38
|
+
"Australia/Sydney",
|
|
39
|
+
"Australia/Broken_Hill",
|
|
40
|
+
"Australia/Brisbane",
|
|
41
|
+
"Australia/Lindeman",
|
|
42
|
+
"Australia/Adelaide",
|
|
43
|
+
"Australia/Darwin",
|
|
44
|
+
"Australia/Perth",
|
|
45
|
+
"Australia/Eucla",
|
|
46
|
+
"Asia/Baku",
|
|
47
|
+
"America/Barbados",
|
|
48
|
+
"Asia/Dhaka",
|
|
49
|
+
"Europe/Brussels",
|
|
50
|
+
"Europe/Sofia",
|
|
51
|
+
"Atlantic/Bermuda",
|
|
52
|
+
"Asia/Brunei",
|
|
53
|
+
"America/La_Paz",
|
|
54
|
+
"America/Noronha",
|
|
55
|
+
"America/Belem",
|
|
56
|
+
"America/Fortaleza",
|
|
57
|
+
"America/Recife",
|
|
58
|
+
"America/Araguaina",
|
|
59
|
+
"America/Maceio",
|
|
60
|
+
"America/Bahia",
|
|
61
|
+
"America/Sao_Paulo",
|
|
62
|
+
"America/Campo_Grande",
|
|
63
|
+
"America/Cuiaba",
|
|
64
|
+
"America/Santarem",
|
|
65
|
+
"America/Porto_Velho",
|
|
66
|
+
"America/Boa_Vista",
|
|
67
|
+
"America/Manaus",
|
|
68
|
+
"America/Eirunepe",
|
|
69
|
+
"America/Rio_Branco",
|
|
70
|
+
"America/Nassau",
|
|
71
|
+
"Asia/Thimphu",
|
|
72
|
+
"Europe/Minsk",
|
|
73
|
+
"America/Belize",
|
|
74
|
+
"America/St_Johns",
|
|
75
|
+
"America/Halifax",
|
|
76
|
+
"America/Glace_Bay",
|
|
77
|
+
"America/Moncton",
|
|
78
|
+
"America/Goose_Bay",
|
|
79
|
+
"America/Blanc-Sablon",
|
|
80
|
+
"America/Toronto",
|
|
81
|
+
"America/Nipigon",
|
|
82
|
+
"America/Thunder_Bay",
|
|
83
|
+
"America/Iqaluit",
|
|
84
|
+
"America/Pangnirtung",
|
|
85
|
+
"America/Atikokan",
|
|
86
|
+
"America/Winnipeg",
|
|
87
|
+
"America/Rainy_River",
|
|
88
|
+
"America/Resolute",
|
|
89
|
+
"America/Rankin_Inlet",
|
|
90
|
+
"America/Regina",
|
|
91
|
+
"America/Swift_Current",
|
|
92
|
+
"America/Edmonton",
|
|
93
|
+
"America/Cambridge_Bay",
|
|
94
|
+
"America/Yellowknife",
|
|
95
|
+
"America/Inuvik",
|
|
96
|
+
"America/Creston",
|
|
97
|
+
"America/Dawson_Creek",
|
|
98
|
+
"America/Fort_Nelson",
|
|
99
|
+
"America/Vancouver",
|
|
100
|
+
"America/Whitehorse",
|
|
101
|
+
"America/Dawson",
|
|
102
|
+
"Indian/Cocos",
|
|
103
|
+
"Europe/Zurich",
|
|
104
|
+
"Africa/Abidjan",
|
|
105
|
+
"Pacific/Rarotonga",
|
|
106
|
+
"America/Santiago",
|
|
107
|
+
"America/Punta_Arenas",
|
|
108
|
+
"Pacific/Easter",
|
|
109
|
+
"Asia/Shanghai",
|
|
110
|
+
"Asia/Urumqi",
|
|
111
|
+
"America/Bogota",
|
|
112
|
+
"America/Costa_Rica",
|
|
113
|
+
"America/Havana",
|
|
114
|
+
"Atlantic/Cape_Verde",
|
|
115
|
+
"America/Curacao",
|
|
116
|
+
"Indian/Christmas",
|
|
117
|
+
"Asia/Nicosia",
|
|
118
|
+
"Asia/Famagusta",
|
|
119
|
+
"Europe/Prague",
|
|
120
|
+
"Europe/Berlin",
|
|
121
|
+
"Europe/Copenhagen",
|
|
122
|
+
"America/Santo_Domingo",
|
|
123
|
+
"Africa/Algiers",
|
|
124
|
+
"America/Guayaquil",
|
|
125
|
+
"Pacific/Galapagos",
|
|
126
|
+
"Europe/Tallinn",
|
|
127
|
+
"Africa/Cairo",
|
|
128
|
+
"Africa/El_Aaiun",
|
|
129
|
+
"Europe/Madrid",
|
|
130
|
+
"Africa/Ceuta",
|
|
131
|
+
"Atlantic/Canary",
|
|
132
|
+
"Europe/Helsinki",
|
|
133
|
+
"Pacific/Fiji",
|
|
134
|
+
"Atlantic/Stanley",
|
|
135
|
+
"Pacific/Chuuk",
|
|
136
|
+
"Pacific/Pohnpei",
|
|
137
|
+
"Pacific/Kosrae",
|
|
138
|
+
"Atlantic/Faroe",
|
|
139
|
+
"Europe/Paris",
|
|
140
|
+
"Europe/London",
|
|
141
|
+
"Asia/Tbilisi",
|
|
142
|
+
"America/Cayenne",
|
|
143
|
+
"Africa/Accra",
|
|
144
|
+
"Europe/Gibraltar",
|
|
145
|
+
"America/Godthab",
|
|
146
|
+
"America/Danmarkshavn",
|
|
147
|
+
"America/Scoresbysund",
|
|
148
|
+
"America/Thule",
|
|
149
|
+
"Europe/Athens",
|
|
150
|
+
"Atlantic/South_Georgia",
|
|
151
|
+
"America/Guatemala",
|
|
152
|
+
"Pacific/Guam",
|
|
153
|
+
"Africa/Bissau",
|
|
154
|
+
"America/Guyana",
|
|
155
|
+
"Asia/Hong_Kong",
|
|
156
|
+
"America/Tegucigalpa",
|
|
157
|
+
"America/Port-au-Prince",
|
|
158
|
+
"Europe/Budapest",
|
|
159
|
+
"Asia/Jakarta",
|
|
160
|
+
"Asia/Pontianak",
|
|
161
|
+
"Asia/Makassar",
|
|
162
|
+
"Asia/Jayapura",
|
|
163
|
+
"Europe/Dublin",
|
|
164
|
+
"Asia/Jerusalem",
|
|
165
|
+
"Asia/Kolkata",
|
|
166
|
+
"Indian/Chagos",
|
|
167
|
+
"Asia/Baghdad",
|
|
168
|
+
"Asia/Tehran",
|
|
169
|
+
"Atlantic/Reykjavik",
|
|
170
|
+
"Europe/Rome",
|
|
171
|
+
"America/Jamaica",
|
|
172
|
+
"Asia/Amman",
|
|
173
|
+
"Asia/Tokyo",
|
|
174
|
+
"Africa/Nairobi",
|
|
175
|
+
"Asia/Bishkek",
|
|
176
|
+
"Pacific/Tarawa",
|
|
177
|
+
"Pacific/Enderbury",
|
|
178
|
+
"Pacific/Kiritimati",
|
|
179
|
+
"Asia/Pyongyang",
|
|
180
|
+
"Asia/Seoul",
|
|
181
|
+
"Asia/Almaty",
|
|
182
|
+
"Asia/Qyzylorda",
|
|
183
|
+
"Asia/Qostanay", // https://bugs.chromium.org/p/chromium/issues/detail?id=928068
|
|
184
|
+
"Asia/Aqtobe",
|
|
185
|
+
"Asia/Aqtau",
|
|
186
|
+
"Asia/Atyrau",
|
|
187
|
+
"Asia/Oral",
|
|
188
|
+
"Asia/Beirut",
|
|
189
|
+
"Asia/Colombo",
|
|
190
|
+
"Africa/Monrovia",
|
|
191
|
+
"Europe/Vilnius",
|
|
192
|
+
"Europe/Luxembourg",
|
|
193
|
+
"Europe/Riga",
|
|
194
|
+
"Africa/Tripoli",
|
|
195
|
+
"Africa/Casablanca",
|
|
196
|
+
"Europe/Monaco",
|
|
197
|
+
"Europe/Chisinau",
|
|
198
|
+
"Pacific/Majuro",
|
|
199
|
+
"Pacific/Kwajalein",
|
|
200
|
+
"Asia/Yangon",
|
|
201
|
+
"Asia/Ulaanbaatar",
|
|
202
|
+
"Asia/Hovd",
|
|
203
|
+
"Asia/Choibalsan",
|
|
204
|
+
"Asia/Macau",
|
|
205
|
+
"America/Martinique",
|
|
206
|
+
"Europe/Malta",
|
|
207
|
+
"Indian/Mauritius",
|
|
208
|
+
"Indian/Maldives",
|
|
209
|
+
"America/Mexico_City",
|
|
210
|
+
"America/Cancun",
|
|
211
|
+
"America/Merida",
|
|
212
|
+
"America/Monterrey",
|
|
213
|
+
"America/Matamoros",
|
|
214
|
+
"America/Mazatlan",
|
|
215
|
+
"America/Chihuahua",
|
|
216
|
+
"America/Ojinaga",
|
|
217
|
+
"America/Hermosillo",
|
|
218
|
+
"America/Tijuana",
|
|
219
|
+
"America/Bahia_Banderas",
|
|
220
|
+
"Asia/Kuala_Lumpur",
|
|
221
|
+
"Asia/Kuching",
|
|
222
|
+
"Africa/Maputo",
|
|
223
|
+
"Africa/Windhoek",
|
|
224
|
+
"Pacific/Noumea",
|
|
225
|
+
"Pacific/Norfolk",
|
|
226
|
+
"Africa/Lagos",
|
|
227
|
+
"America/Managua",
|
|
228
|
+
"Europe/Amsterdam",
|
|
229
|
+
"Europe/Oslo",
|
|
230
|
+
"Asia/Kathmandu",
|
|
231
|
+
"Pacific/Nauru",
|
|
232
|
+
"Pacific/Niue",
|
|
233
|
+
"Pacific/Auckland",
|
|
234
|
+
"Pacific/Chatham",
|
|
235
|
+
"America/Panama",
|
|
236
|
+
"America/Lima",
|
|
237
|
+
"Pacific/Tahiti",
|
|
238
|
+
"Pacific/Marquesas",
|
|
239
|
+
"Pacific/Gambier",
|
|
240
|
+
"Pacific/Port_Moresby",
|
|
241
|
+
"Pacific/Bougainville",
|
|
242
|
+
"Asia/Manila",
|
|
243
|
+
"Asia/Karachi",
|
|
244
|
+
"Europe/Warsaw",
|
|
245
|
+
"America/Miquelon",
|
|
246
|
+
"Pacific/Pitcairn",
|
|
247
|
+
"America/Puerto_Rico",
|
|
248
|
+
"Asia/Gaza",
|
|
249
|
+
"Asia/Hebron",
|
|
250
|
+
"Europe/Lisbon",
|
|
251
|
+
"Atlantic/Madeira",
|
|
252
|
+
"Atlantic/Azores",
|
|
253
|
+
"Pacific/Palau",
|
|
254
|
+
"America/Asuncion",
|
|
255
|
+
"Asia/Qatar",
|
|
256
|
+
"Indian/Reunion",
|
|
257
|
+
"Europe/Bucharest",
|
|
258
|
+
"Europe/Belgrade",
|
|
259
|
+
"Europe/Kaliningrad",
|
|
260
|
+
"Europe/Moscow",
|
|
261
|
+
"Europe/Simferopol",
|
|
262
|
+
"Europe/Kirov",
|
|
263
|
+
"Europe/Astrakhan",
|
|
264
|
+
"Europe/Volgograd",
|
|
265
|
+
"Europe/Saratov",
|
|
266
|
+
"Europe/Ulyanovsk",
|
|
267
|
+
"Europe/Samara",
|
|
268
|
+
"Asia/Yekaterinburg",
|
|
269
|
+
"Asia/Omsk",
|
|
270
|
+
"Asia/Novosibirsk",
|
|
271
|
+
"Asia/Barnaul",
|
|
272
|
+
"Asia/Tomsk",
|
|
273
|
+
"Asia/Novokuznetsk",
|
|
274
|
+
"Asia/Krasnoyarsk",
|
|
275
|
+
"Asia/Irkutsk",
|
|
276
|
+
"Asia/Chita",
|
|
277
|
+
"Asia/Yakutsk",
|
|
278
|
+
"Asia/Khandyga",
|
|
279
|
+
"Asia/Vladivostok",
|
|
280
|
+
"Asia/Ust-Nera",
|
|
281
|
+
"Asia/Magadan",
|
|
282
|
+
"Asia/Sakhalin",
|
|
283
|
+
"Asia/Srednekolymsk",
|
|
284
|
+
"Asia/Kamchatka",
|
|
285
|
+
"Asia/Anadyr",
|
|
286
|
+
"Asia/Riyadh",
|
|
287
|
+
"Pacific/Guadalcanal",
|
|
288
|
+
"Indian/Mahe",
|
|
289
|
+
"Africa/Khartoum",
|
|
290
|
+
"Europe/Stockholm",
|
|
291
|
+
"Asia/Singapore",
|
|
292
|
+
"America/Paramaribo",
|
|
293
|
+
"Africa/Juba",
|
|
294
|
+
"Africa/Sao_Tome",
|
|
295
|
+
"America/El_Salvador",
|
|
296
|
+
"Asia/Damascus",
|
|
297
|
+
"America/Grand_Turk",
|
|
298
|
+
"Africa/Ndjamena",
|
|
299
|
+
"Indian/Kerguelen",
|
|
300
|
+
"Asia/Bangkok",
|
|
301
|
+
"Asia/Dushanbe",
|
|
302
|
+
"Pacific/Fakaofo",
|
|
303
|
+
"Asia/Dili",
|
|
304
|
+
"Asia/Ashgabat",
|
|
305
|
+
"Africa/Tunis",
|
|
306
|
+
"Pacific/Tongatapu",
|
|
307
|
+
"Europe/Istanbul",
|
|
308
|
+
"America/Port_of_Spain",
|
|
309
|
+
"Pacific/Funafuti",
|
|
310
|
+
"Asia/Taipei",
|
|
311
|
+
"Europe/Kiev",
|
|
312
|
+
"Europe/Uzhgorod",
|
|
313
|
+
"Europe/Zaporozhye",
|
|
314
|
+
"Pacific/Wake",
|
|
315
|
+
"America/New_York",
|
|
316
|
+
"America/Detroit",
|
|
317
|
+
"America/Kentucky/Louisville",
|
|
318
|
+
"America/Kentucky/Monticello",
|
|
319
|
+
"America/Indiana/Indianapolis",
|
|
320
|
+
"America/Indiana/Vincennes",
|
|
321
|
+
"America/Indiana/Winamac",
|
|
322
|
+
"America/Indiana/Marengo",
|
|
323
|
+
"America/Indiana/Petersburg",
|
|
324
|
+
"America/Indiana/Vevay",
|
|
325
|
+
"America/Chicago",
|
|
326
|
+
"America/Indiana/Tell_City",
|
|
327
|
+
"America/Indiana/Knox",
|
|
328
|
+
"America/Menominee",
|
|
329
|
+
"America/North_Dakota/Center",
|
|
330
|
+
"America/North_Dakota/New_Salem",
|
|
331
|
+
"America/North_Dakota/Beulah",
|
|
332
|
+
"America/Denver",
|
|
333
|
+
"America/Boise",
|
|
334
|
+
"America/Phoenix",
|
|
335
|
+
"America/Los_Angeles",
|
|
336
|
+
"America/Anchorage",
|
|
337
|
+
"America/Juneau",
|
|
338
|
+
"America/Sitka",
|
|
339
|
+
"America/Metlakatla",
|
|
340
|
+
"America/Yakutat",
|
|
341
|
+
"America/Nome",
|
|
342
|
+
"America/Adak",
|
|
343
|
+
"Pacific/Honolulu",
|
|
344
|
+
"America/Montevideo",
|
|
345
|
+
"Asia/Samarkand",
|
|
346
|
+
"Asia/Tashkent",
|
|
347
|
+
"America/Caracas",
|
|
348
|
+
"Asia/Ho_Chi_Minh",
|
|
349
|
+
"Pacific/Efate",
|
|
350
|
+
"Pacific/Wallis",
|
|
351
|
+
"Pacific/Apia",
|
|
352
|
+
"Africa/Johannesburg",
|
|
353
|
+
];
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rnaga/wp-node",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "rm -rf ./dist && tsc --project tsconfig.build.json && npm run copyfiles && cp package.json ./dist/",
|
|
7
|
+
"clean": "tsc --build --clean",
|
|
8
|
+
"copyfiles": "copyfiles -u 1 \"src/**/*.d.ts\" dist",
|
|
9
|
+
"release-old": "npm --no-git-tag-version version patch && cp ../../.npmrc ./dist/ && cp package.json ./dist/ && cd ./dist/ && npm publish",
|
|
10
|
+
"release": "../../scripts/release.sh"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"wordpress",
|
|
14
|
+
"typescript",
|
|
15
|
+
"node",
|
|
16
|
+
"database",
|
|
17
|
+
"mysql",
|
|
18
|
+
"mariadb"
|
|
19
|
+
],
|
|
20
|
+
"author": "Ryohei Nagatsuka",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/bcryptjs": "^2.4.6",
|
|
23
|
+
"@types/node": "^20.14.10",
|
|
24
|
+
"copyfiles": "^2.4.1",
|
|
25
|
+
"ts-node": "^10.9.1",
|
|
26
|
+
"typescript": "^5.5.3",
|
|
27
|
+
"wordpress-hash-node": "^1.0.0"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"bcryptjs": "^2.4.3",
|
|
31
|
+
"deep-object-diff": "^1.1.9",
|
|
32
|
+
"knex": "^3.1.0",
|
|
33
|
+
"moment-timezone": "^0.5.45",
|
|
34
|
+
"mysql2": "^3.6.1",
|
|
35
|
+
"php-serialize": "^5",
|
|
36
|
+
"reflect-metadata": "^0.1.13",
|
|
37
|
+
"zod": "^3.22.4"
|
|
38
|
+
},
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/rnaga/wp-node.git"
|
|
42
|
+
},
|
|
43
|
+
"optionalDependencies": {
|
|
44
|
+
"dotenv": "^16.4.5"
|
|
45
|
+
},
|
|
46
|
+
"type": "commonjs",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/rnaga/wp-node/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/rnaga/wp-node"
|
|
51
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Columns, TableNames } from "../types/database";
|
|
2
|
+
import { Tables } from "../core/tables";
|
|
3
|
+
export declare class Alias<T extends string = any> {
|
|
4
|
+
#private;
|
|
5
|
+
private tables;
|
|
6
|
+
static count: number;
|
|
7
|
+
constructor(tables: Tables);
|
|
8
|
+
cloneIndex(alias: Alias): void;
|
|
9
|
+
private guess;
|
|
10
|
+
get(key: T | TableNames): {
|
|
11
|
+
table: string;
|
|
12
|
+
key: string;
|
|
13
|
+
};
|
|
14
|
+
as(key: TableNames): string;
|
|
15
|
+
as(key: TableNames, alias: T): string;
|
|
16
|
+
as(key: T, alias: string): string;
|
|
17
|
+
as(key: T): string;
|
|
18
|
+
column<K extends TableNames>(key: K, col: Columns<K>): string;
|
|
19
|
+
column<K extends TableNames>(key: K, col: Columns<K>, alias: T): string;
|
|
20
|
+
column<K extends TableNames>(key: K, col: string): string;
|
|
21
|
+
column(key: T, col: string, alias: string): string;
|
|
22
|
+
column(key: T, col: string): string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=alias.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../src/query-builder/alias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,qBACa,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG;;IAG3B,OAAO,CAAC,MAAM;IAF1B,MAAM,CAAC,KAAK,SAAK;gBAEG,MAAM,EAAE,MAAM;IAOlC,UAAU,CAAC,KAAK,EAAE,KAAK;IAIvB,OAAO,CAAC,KAAK;IAOb,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,UAAU,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;IAQxD,EAAE,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM;IAC3B,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM;IACrC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IACjC,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,MAAM;IASlB,MAAM,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM;IAC7D,MAAM,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM;IACvE,MAAM,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IACzD,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAClD,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;CAQpC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var Alias_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Alias = void 0;
|
|
14
|
+
const constants_1 = require("../constants");
|
|
15
|
+
const tables_1 = require("../core/tables");
|
|
16
|
+
const component_1 = require("../decorators/component");
|
|
17
|
+
let Alias = class Alias {
|
|
18
|
+
static { Alias_1 = this; }
|
|
19
|
+
tables;
|
|
20
|
+
static count = 0;
|
|
21
|
+
#index;
|
|
22
|
+
constructor(tables) {
|
|
23
|
+
this.tables = tables;
|
|
24
|
+
this.#index = Alias_1.count++;
|
|
25
|
+
this.get = this.get.bind(this);
|
|
26
|
+
this.as = this.as.bind(this);
|
|
27
|
+
this.column = this.column.bind(this);
|
|
28
|
+
}
|
|
29
|
+
cloneIndex(alias) {
|
|
30
|
+
alias.#index = this.#index;
|
|
31
|
+
}
|
|
32
|
+
guess(table) {
|
|
33
|
+
if (constants_1.TABLE_NAMES.includes(table)) {
|
|
34
|
+
return this.tables.get(table);
|
|
35
|
+
}
|
|
36
|
+
return table;
|
|
37
|
+
}
|
|
38
|
+
get(key) {
|
|
39
|
+
const table = this.guess(key);
|
|
40
|
+
return {
|
|
41
|
+
table,
|
|
42
|
+
key: `${key}_${this.#index}`,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
as(key, alias) {
|
|
46
|
+
const { table, key: keyIndex } = this.get(key);
|
|
47
|
+
if (alias) {
|
|
48
|
+
return `${table} as ${keyIndex}_${alias}`;
|
|
49
|
+
}
|
|
50
|
+
return `${table} as ${keyIndex}`;
|
|
51
|
+
}
|
|
52
|
+
column(key, col, alias) {
|
|
53
|
+
const { key: keyIndex } = this.get(key);
|
|
54
|
+
if (alias) {
|
|
55
|
+
return `${keyIndex}_${alias}.${col}`;
|
|
56
|
+
}
|
|
57
|
+
return `${keyIndex}.${col}`;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.Alias = Alias;
|
|
61
|
+
exports.Alias = Alias = Alias_1 = __decorate([
|
|
62
|
+
(0, component_1.component)({ scope: constants_1.Scope.Transient }),
|
|
63
|
+
__metadata("design:paramtypes", [tables_1.Tables])
|
|
64
|
+
], Alias);
|