@strapi/types 5.0.0-beta.0 → 5.0.0-beta.10
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/dist/core/api.d.ts +3 -0
- package/dist/core/api.d.ts.map +1 -0
- package/dist/{types/core → core}/commands/index.d.ts +1 -1
- package/dist/core/commands/index.d.ts.map +1 -0
- package/dist/core/config/admin.d.ts.map +1 -0
- package/dist/core/config/api.d.ts.map +1 -0
- package/dist/{types/core → core}/config/database.d.ts +2 -2
- package/dist/core/config/database.d.ts.map +1 -0
- package/dist/core/config/index.d.ts.map +1 -0
- package/dist/{types/core → core}/config/middlewares.d.ts +1 -1
- package/dist/core/config/middlewares.d.ts.map +1 -0
- package/dist/core/config/plugin.d.ts.map +1 -0
- package/dist/{types/core → core}/config/server.d.ts +0 -4
- package/dist/core/config/server.d.ts.map +1 -0
- package/dist/core/config/shared.d.ts.map +1 -0
- package/dist/core/container.d.ts.map +1 -0
- package/dist/{types/core/common → core}/controller.d.ts +1 -1
- package/dist/core/controller.d.ts.map +1 -0
- package/dist/{types → core}/core-api/controller.d.ts +16 -14
- package/dist/core/core-api/controller.d.ts.map +1 -0
- package/dist/core/core-api/index.d.ts.map +1 -0
- package/dist/{types → core}/core-api/router.d.ts +7 -6
- package/dist/core/core-api/router.d.ts.map +1 -0
- package/dist/{types → core}/core-api/service.d.ts +7 -6
- package/dist/core/core-api/service.d.ts.map +1 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/{types/core/common → core}/middleware.d.ts +3 -2
- package/dist/core/middleware.d.ts.map +1 -0
- package/dist/core/module.d.ts +26 -0
- package/dist/core/module.d.ts.map +1 -0
- package/dist/core/plugin.d.ts +6 -0
- package/dist/core/plugin.d.ts.map +1 -0
- package/dist/core/policy.d.ts +15 -0
- package/dist/core/policy.d.ts.map +1 -0
- package/dist/core/router.d.ts.map +1 -0
- package/dist/core/service.d.ts.map +1 -0
- package/dist/core/strapi.d.ts +143 -0
- package/dist/core/strapi.d.ts.map +1 -0
- package/dist/data/component.d.ts +21 -0
- package/dist/data/component.d.ts.map +1 -0
- package/dist/data/constants.d.ts +5 -0
- package/dist/data/constants.d.ts.map +1 -0
- package/dist/data/content-type.d.ts +26 -0
- package/dist/data/content-type.d.ts.map +1 -0
- package/dist/data/entity.d.ts +15 -0
- package/dist/data/entity.d.ts.map +1 -0
- package/dist/data/index.d.ts +5 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/index.d.ts +13 -152
- package/dist/index.d.ts.map +1 -1
- package/dist/internal/index.d.ts +13 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/{types/core → internal}/namespace.d.ts +6 -6
- package/dist/internal/namespace.d.ts.map +1 -0
- package/dist/internal/registry.d.ts +8 -0
- package/dist/internal/registry.d.ts.map +1 -0
- package/dist/{types/core → internal}/uid.d.ts +20 -13
- package/dist/internal/uid.d.ts.map +1 -0
- package/dist/modules/auth.d.ts +4 -4
- package/dist/modules/auth.d.ts.map +1 -1
- package/dist/modules/content-api.d.ts +5 -3
- package/dist/modules/content-api.d.ts.map +1 -1
- package/dist/modules/core-store.d.ts +3 -3
- package/dist/modules/core-store.d.ts.map +1 -1
- package/dist/modules/cron.d.ts +1 -1
- package/dist/modules/cron.d.ts.map +1 -1
- package/dist/modules/documents/component-extension.d.ts +22 -0
- package/dist/modules/documents/component-extension.d.ts.map +1 -0
- package/dist/modules/documents/document-engine.d.ts +1 -0
- package/dist/modules/documents/document-engine.d.ts.map +1 -0
- package/dist/modules/documents/draft-and-publish.d.ts +7 -7
- package/dist/modules/documents/draft-and-publish.d.ts.map +1 -1
- package/dist/modules/documents/index.d.ts +10 -4
- package/dist/modules/documents/index.d.ts.map +1 -1
- package/dist/modules/documents/middleware.d.ts +13 -8
- package/dist/modules/documents/middleware.d.ts.map +1 -1
- package/dist/modules/documents/params/attributes.d.ts +33 -30
- package/dist/modules/documents/params/attributes.d.ts.map +1 -1
- package/dist/modules/documents/params/data.d.ts +2 -2
- package/dist/modules/documents/params/data.d.ts.map +1 -1
- package/dist/modules/documents/params/document-engine.d.ts +27 -14
- package/dist/modules/documents/params/document-engine.d.ts.map +1 -1
- package/dist/modules/documents/params/fields.d.ts +7 -5
- package/dist/modules/documents/params/fields.d.ts.map +1 -1
- package/dist/modules/documents/params/filters/index.d.ts +11 -9
- package/dist/modules/documents/params/filters/index.d.ts.map +1 -1
- package/dist/modules/documents/params/index.d.ts +21 -8
- package/dist/modules/documents/params/index.d.ts.map +1 -1
- package/dist/modules/documents/params/locale.d.ts +4 -0
- package/dist/modules/documents/params/locale.d.ts.map +1 -0
- package/dist/modules/documents/params/pagination.d.ts +2 -2
- package/dist/modules/documents/params/pagination.d.ts.map +1 -1
- package/dist/modules/documents/params/populate.d.ts +18 -18
- package/dist/modules/documents/params/populate.d.ts.map +1 -1
- package/dist/modules/documents/params/sort.d.ts +10 -8
- package/dist/modules/documents/params/sort.d.ts.map +1 -1
- package/dist/modules/documents/plugin.d.ts +8 -5
- package/dist/modules/documents/plugin.d.ts.map +1 -1
- package/dist/modules/documents/result/document-engine.d.ts +34 -0
- package/dist/modules/documents/result/document-engine.d.ts.map +1 -0
- package/dist/modules/documents/result/index.d.ts +38 -35
- package/dist/modules/documents/result/index.d.ts.map +1 -1
- package/dist/modules/documents/service-instance.d.ts +41 -16
- package/dist/modules/documents/service-instance.d.ts.map +1 -1
- package/dist/modules/entity-service/index.d.ts +22 -22
- package/dist/modules/entity-service/index.d.ts.map +1 -1
- package/dist/modules/entity-service/params/attributes/id.d.ts +2 -2
- package/dist/modules/entity-service/params/attributes/id.d.ts.map +1 -1
- package/dist/modules/entity-service/params/attributes/index.d.ts +21 -19
- package/dist/modules/entity-service/params/attributes/index.d.ts.map +1 -1
- package/dist/modules/entity-service/params/attributes/literals.d.ts +1 -1
- package/dist/modules/entity-service/params/attributes/literals.d.ts.map +1 -1
- package/dist/modules/entity-service/params/attributes/relation.d.ts +7 -5
- package/dist/modules/entity-service/params/attributes/relation.d.ts.map +1 -1
- package/dist/modules/entity-service/params/attributes/utils.d.ts +8 -6
- package/dist/modules/entity-service/params/attributes/utils.d.ts.map +1 -1
- package/dist/modules/entity-service/params/data.d.ts +2 -2
- package/dist/modules/entity-service/params/data.d.ts.map +1 -1
- package/dist/modules/entity-service/params/fields.d.ts +7 -5
- package/dist/modules/entity-service/params/fields.d.ts.map +1 -1
- package/dist/modules/entity-service/params/filters/index.d.ts +17 -15
- package/dist/modules/entity-service/params/filters/index.d.ts.map +1 -1
- package/dist/modules/entity-service/params/index.d.ts +4 -3
- package/dist/modules/entity-service/params/index.d.ts.map +1 -1
- package/dist/modules/entity-service/params/pagination.d.ts +1 -2
- package/dist/modules/entity-service/params/pagination.d.ts.map +1 -1
- package/dist/modules/entity-service/params/populate.d.ts +19 -19
- package/dist/modules/entity-service/params/populate.d.ts.map +1 -1
- package/dist/modules/entity-service/params/sort.d.ts +11 -9
- package/dist/modules/entity-service/params/sort.d.ts.map +1 -1
- package/dist/modules/entity-service/plugin.d.ts +8 -5
- package/dist/modules/entity-service/plugin.d.ts.map +1 -1
- package/dist/modules/entity-service/result.d.ts +34 -45
- package/dist/modules/entity-service/result.d.ts.map +1 -1
- package/dist/modules/entity-validator.d.ts +5 -4
- package/dist/modules/entity-validator.d.ts.map +1 -1
- package/dist/modules/event-hub.d.ts +1 -0
- package/dist/modules/event-hub.d.ts.map +1 -1
- package/dist/modules/features.d.ts +0 -1
- package/dist/modules/features.d.ts.map +1 -1
- package/dist/modules/index.d.ts +20 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/permissions.d.ts +14 -0
- package/dist/modules/permissions.d.ts.map +1 -0
- package/dist/modules/sanitizers.d.ts +4 -5
- package/dist/modules/sanitizers.d.ts.map +1 -1
- package/dist/modules/server.d.ts +3 -3
- package/dist/modules/server.d.ts.map +1 -1
- package/dist/modules/validators.d.ts +4 -5
- package/dist/modules/validators.d.ts.map +1 -1
- package/dist/plugin/config/index.d.ts.map +1 -0
- package/dist/plugin/config/strapi-admin/index.d.ts.map +1 -0
- package/dist/plugin/config/strapi-server/config.d.ts.map +1 -0
- package/dist/{types/core/plugins → plugin}/config/strapi-server/content-types.d.ts +2 -2
- package/dist/plugin/config/strapi-server/content-types.d.ts.map +1 -0
- package/dist/plugin/config/strapi-server/controllers.d.ts +8 -0
- package/dist/plugin/config/strapi-server/controllers.d.ts.map +1 -0
- package/dist/plugin/config/strapi-server/index.d.ts.map +1 -0
- package/dist/{types/core/plugins → plugin}/config/strapi-server/lifecycle.d.ts +1 -1
- package/dist/plugin/config/strapi-server/lifecycle.d.ts.map +1 -0
- package/dist/plugin/config/strapi-server/routes.d.ts +11 -0
- package/dist/plugin/config/strapi-server/routes.d.ts.map +1 -0
- package/dist/plugin/index.d.ts +37 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/public/index.d.ts +6 -0
- package/dist/public/index.d.ts.map +1 -0
- package/dist/public/registries.d.ts +72 -0
- package/dist/public/registries.d.ts.map +1 -0
- package/dist/public/shared.d.ts +61 -0
- package/dist/public/shared.d.ts.map +1 -0
- package/dist/schema/attribute/base.d.ts +65 -0
- package/dist/schema/attribute/base.d.ts.map +1 -0
- package/dist/schema/attribute/common.d.ts +13 -0
- package/dist/schema/attribute/common.d.ts.map +1 -0
- package/dist/schema/attribute/constants.d.ts +12 -0
- package/dist/schema/attribute/constants.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/biginteger.d.ts +19 -0
- package/dist/schema/attribute/definitions/biginteger.d.ts.map +1 -0
- package/dist/{types/core/attributes → schema/attribute/definitions}/blocks.d.ts +21 -13
- package/dist/schema/attribute/definitions/blocks.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/boolean.d.ts +19 -0
- package/dist/schema/attribute/definitions/boolean.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/component.d.ts +25 -0
- package/dist/schema/attribute/definitions/component.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/date-time.d.ts +18 -0
- package/dist/schema/attribute/definitions/date-time.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/date.d.ts +18 -0
- package/dist/schema/attribute/definitions/date.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/decimal.d.ts +19 -0
- package/dist/schema/attribute/definitions/decimal.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/dynamic-zone.d.ts +25 -0
- package/dist/schema/attribute/definitions/dynamic-zone.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/email.d.ts +19 -0
- package/dist/schema/attribute/definitions/email.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/enumeration.d.ts +22 -0
- package/dist/schema/attribute/definitions/enumeration.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/float.d.ts +19 -0
- package/dist/schema/attribute/definitions/float.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/index.d.ts +23 -0
- package/dist/schema/attribute/definitions/index.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/integer.d.ts +19 -0
- package/dist/schema/attribute/definitions/integer.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/json.d.ts +17 -0
- package/dist/schema/attribute/definitions/json.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/media.d.ts +24 -0
- package/dist/schema/attribute/definitions/media.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/password.d.ts +18 -0
- package/dist/schema/attribute/definitions/password.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/relation.d.ts +168 -0
- package/dist/schema/attribute/definitions/relation.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/richtext.d.ts +18 -0
- package/dist/schema/attribute/definitions/richtext.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/string.d.ts +28 -0
- package/dist/schema/attribute/definitions/string.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/text.d.ts +23 -0
- package/dist/schema/attribute/definitions/text.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/time.d.ts +18 -0
- package/dist/schema/attribute/definitions/time.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/timestamp.d.ts +18 -0
- package/dist/schema/attribute/definitions/timestamp.d.ts.map +1 -0
- package/dist/{types/core/attributes → schema/attribute/definitions}/uid.d.ts +16 -2
- package/dist/schema/attribute/definitions/uid.d.ts.map +1 -0
- package/dist/schema/attribute/index.d.ts +7 -0
- package/dist/schema/attribute/index.d.ts.map +1 -0
- package/dist/schema/attribute/options.d.ts +221 -0
- package/dist/schema/attribute/options.d.ts.map +1 -0
- package/dist/schema/attribute/utils.d.ts +101 -0
- package/dist/schema/attribute/utils.d.ts.map +1 -0
- package/dist/schema/index.d.ts +144 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/struct/index.d.ts +3 -0
- package/dist/struct/index.d.ts.map +1 -0
- package/dist/struct/schema-definition.d.ts +10 -0
- package/dist/struct/schema-definition.d.ts.map +1 -0
- package/dist/struct/schema.d.ts +248 -0
- package/dist/struct/schema.d.ts.map +1 -0
- package/dist/uid/index.d.ts +168 -0
- package/dist/uid/index.d.ts.map +1 -0
- package/dist/utils/array.d.ts +80 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +67 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/expression.d.ts +490 -0
- package/dist/utils/expression.d.ts.map +1 -0
- package/dist/utils/function.d.ts +21 -0
- package/dist/utils/function.d.ts.map +1 -0
- package/dist/utils/guard.d.ts +90 -0
- package/dist/utils/guard.d.ts.map +1 -0
- package/dist/utils/index.d.ts +180 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/json.d.ts +119 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/object.d.ts +180 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/string.d.ts +154 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/tuple.d.ts +19 -0
- package/dist/utils/tuple.d.ts.map +1 -0
- package/package.json +19 -15
- package/dist/container.d.ts.map +0 -1
- package/dist/modules/documents/result/document-enigne.d.ts +0 -30
- package/dist/modules/documents/result/document-enigne.d.ts.map +0 -1
- package/dist/types/core/attributes/base.d.ts +0 -52
- package/dist/types/core/attributes/base.d.ts.map +0 -1
- package/dist/types/core/attributes/biginteger.d.ts +0 -5
- package/dist/types/core/attributes/biginteger.d.ts.map +0 -1
- package/dist/types/core/attributes/blocks.d.ts.map +0 -1
- package/dist/types/core/attributes/boolean.d.ts +0 -7
- package/dist/types/core/attributes/boolean.d.ts.map +0 -1
- package/dist/types/core/attributes/common.d.ts +0 -59
- package/dist/types/core/attributes/common.d.ts.map +0 -1
- package/dist/types/core/attributes/component.d.ts +0 -20
- package/dist/types/core/attributes/component.d.ts.map +0 -1
- package/dist/types/core/attributes/date-time.d.ts +0 -5
- package/dist/types/core/attributes/date-time.d.ts.map +0 -1
- package/dist/types/core/attributes/date.d.ts +0 -5
- package/dist/types/core/attributes/date.d.ts.map +0 -1
- package/dist/types/core/attributes/decimal.d.ts +0 -5
- package/dist/types/core/attributes/decimal.d.ts.map +0 -1
- package/dist/types/core/attributes/dynamic-zone.d.ts +0 -13
- package/dist/types/core/attributes/dynamic-zone.d.ts.map +0 -1
- package/dist/types/core/attributes/email.d.ts +0 -5
- package/dist/types/core/attributes/email.d.ts.map +0 -1
- package/dist/types/core/attributes/enumeration.d.ts +0 -10
- package/dist/types/core/attributes/enumeration.d.ts.map +0 -1
- package/dist/types/core/attributes/float.d.ts +0 -5
- package/dist/types/core/attributes/float.d.ts.map +0 -1
- package/dist/types/core/attributes/index.d.ts +0 -26
- package/dist/types/core/attributes/index.d.ts.map +0 -1
- package/dist/types/core/attributes/integer.d.ts +0 -5
- package/dist/types/core/attributes/integer.d.ts.map +0 -1
- package/dist/types/core/attributes/json.d.ts +0 -6
- package/dist/types/core/attributes/json.d.ts.map +0 -1
- package/dist/types/core/attributes/media.d.ts +0 -13
- package/dist/types/core/attributes/media.d.ts.map +0 -1
- package/dist/types/core/attributes/password.d.ts +0 -5
- package/dist/types/core/attributes/password.d.ts.map +0 -1
- package/dist/types/core/attributes/relation.d.ts +0 -85
- package/dist/types/core/attributes/relation.d.ts.map +0 -1
- package/dist/types/core/attributes/richtext.d.ts +0 -5
- package/dist/types/core/attributes/richtext.d.ts.map +0 -1
- package/dist/types/core/attributes/string.d.ts +0 -10
- package/dist/types/core/attributes/string.d.ts.map +0 -1
- package/dist/types/core/attributes/text.d.ts +0 -8
- package/dist/types/core/attributes/text.d.ts.map +0 -1
- package/dist/types/core/attributes/time.d.ts +0 -5
- package/dist/types/core/attributes/time.d.ts.map +0 -1
- package/dist/types/core/attributes/timestamp.d.ts +0 -5
- package/dist/types/core/attributes/timestamp.d.ts.map +0 -1
- package/dist/types/core/attributes/uid.d.ts.map +0 -1
- package/dist/types/core/attributes/utils.d.ts +0 -28
- package/dist/types/core/attributes/utils.d.ts.map +0 -1
- package/dist/types/core/commands/index.d.ts.map +0 -1
- package/dist/types/core/common/api.d.ts +0 -4
- package/dist/types/core/common/api.d.ts.map +0 -1
- package/dist/types/core/common/controller.d.ts.map +0 -1
- package/dist/types/core/common/index.d.ts +0 -15
- package/dist/types/core/common/index.d.ts.map +0 -1
- package/dist/types/core/common/middleware.d.ts.map +0 -1
- package/dist/types/core/common/module.d.ts +0 -25
- package/dist/types/core/common/module.d.ts.map +0 -1
- package/dist/types/core/common/plugin.d.ts +0 -6
- package/dist/types/core/common/plugin.d.ts.map +0 -1
- package/dist/types/core/common/policy.d.ts +0 -10
- package/dist/types/core/common/policy.d.ts.map +0 -1
- package/dist/types/core/common/router.d.ts.map +0 -1
- package/dist/types/core/common/schema.d.ts +0 -3
- package/dist/types/core/common/schema.d.ts.map +0 -1
- package/dist/types/core/common/service.d.ts.map +0 -1
- package/dist/types/core/common/uid.d.ts +0 -16
- package/dist/types/core/common/uid.d.ts.map +0 -1
- package/dist/types/core/config/admin.d.ts.map +0 -1
- package/dist/types/core/config/api.d.ts.map +0 -1
- package/dist/types/core/config/database.d.ts.map +0 -1
- package/dist/types/core/config/index.d.ts.map +0 -1
- package/dist/types/core/config/middlewares.d.ts.map +0 -1
- package/dist/types/core/config/plugin.d.ts.map +0 -1
- package/dist/types/core/config/server.d.ts.map +0 -1
- package/dist/types/core/config/shared.d.ts.map +0 -1
- package/dist/types/core/entity/index.d.ts +0 -2
- package/dist/types/core/entity/index.d.ts.map +0 -1
- package/dist/types/core/index.d.ts +0 -11
- package/dist/types/core/index.d.ts.map +0 -1
- package/dist/types/core/namespace.d.ts.map +0 -1
- package/dist/types/core/permissions/index.d.ts +0 -5
- package/dist/types/core/permissions/index.d.ts.map +0 -1
- package/dist/types/core/plugins/config/index.d.ts.map +0 -1
- package/dist/types/core/plugins/config/strapi-admin/index.d.ts.map +0 -1
- package/dist/types/core/plugins/config/strapi-server/config.d.ts.map +0 -1
- package/dist/types/core/plugins/config/strapi-server/content-types.d.ts.map +0 -1
- package/dist/types/core/plugins/config/strapi-server/controllers.d.ts +0 -8
- package/dist/types/core/plugins/config/strapi-server/controllers.d.ts.map +0 -1
- package/dist/types/core/plugins/config/strapi-server/index.d.ts.map +0 -1
- package/dist/types/core/plugins/config/strapi-server/lifecycle.d.ts.map +0 -1
- package/dist/types/core/plugins/config/strapi-server/routes.d.ts +0 -11
- package/dist/types/core/plugins/config/strapi-server/routes.d.ts.map +0 -1
- package/dist/types/core/plugins/index.d.ts +0 -33
- package/dist/types/core/plugins/index.d.ts.map +0 -1
- package/dist/types/core/registry.d.ts +0 -58
- package/dist/types/core/registry.d.ts.map +0 -1
- package/dist/types/core/schemas/index.d.ts +0 -134
- package/dist/types/core/schemas/index.d.ts.map +0 -1
- package/dist/types/core/strapi/index.d.ts +0 -26
- package/dist/types/core/strapi/index.d.ts.map +0 -1
- package/dist/types/core/uid.d.ts.map +0 -1
- package/dist/types/core-api/controller.d.ts.map +0 -1
- package/dist/types/core-api/index.d.ts.map +0 -1
- package/dist/types/core-api/router.d.ts.map +0 -1
- package/dist/types/core-api/service.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/shared/index.d.ts +0 -5
- package/dist/types/shared/index.d.ts.map +0 -1
- package/dist/types/shared/registries.d.ts +0 -38
- package/dist/types/shared/registries.d.ts.map +0 -1
- package/dist/types/utils/array.d.ts +0 -16
- package/dist/types/utils/array.d.ts.map +0 -1
- package/dist/types/utils/expression.d.ts +0 -44
- package/dist/types/utils/expression.d.ts.map +0 -1
- package/dist/types/utils/function.d.ts +0 -3
- package/dist/types/utils/function.d.ts.map +0 -1
- package/dist/types/utils/guard.d.ts +0 -20
- package/dist/types/utils/guard.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -27
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/json.d.ts +0 -7
- package/dist/types/utils/json.d.ts.map +0 -1
- package/dist/types/utils/object.d.ts +0 -69
- package/dist/types/utils/object.d.ts.map +0 -1
- package/dist/types/utils/string.d.ts +0 -40
- package/dist/types/utils/string.d.ts.map +0 -1
- package/dist/types/utils/tuple.d.ts +0 -9
- package/dist/types/utils/tuple.d.ts.map +0 -1
- /package/dist/{types/core → core}/config/admin.d.ts +0 -0
- /package/dist/{types/core → core}/config/api.d.ts +0 -0
- /package/dist/{types/core → core}/config/index.d.ts +0 -0
- /package/dist/{types/core → core}/config/plugin.d.ts +0 -0
- /package/dist/{types/core → core}/config/shared.d.ts +0 -0
- /package/dist/{container.d.ts → core/container.d.ts} +0 -0
- /package/dist/{types → core}/core-api/index.d.ts +0 -0
- /package/dist/{types/core/common → core}/router.d.ts +0 -0
- /package/dist/{types/core/common → core}/service.d.ts +0 -0
- /package/dist/{types/core/plugins → plugin}/config/index.d.ts +0 -0
- /package/dist/{types/core/plugins → plugin}/config/strapi-admin/index.d.ts +0 -0
- /package/dist/{types/core/plugins → plugin}/config/strapi-server/config.d.ts +0 -0
- /package/dist/{types/core/plugins → plugin}/config/strapi-server/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/types",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.10",
|
|
4
4
|
"description": "Shared typescript types for Strapi internal use",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi"
|
|
@@ -36,33 +36,37 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "pack-up build",
|
|
38
38
|
"clean": "run -T rimraf ./dist",
|
|
39
|
+
"doc:ts": "typedoc",
|
|
40
|
+
"doc:ts:watch": "typedoc --watch",
|
|
39
41
|
"lint": "run -T eslint .",
|
|
40
42
|
"test:ts": "run -T tsc --noEmit",
|
|
41
|
-
"test:unit": "run -T jest",
|
|
42
|
-
"test:unit:watch": "run -T jest --watch",
|
|
43
43
|
"watch": "pack-up watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@casl/ability": "6.5.0",
|
|
47
|
-
"@koa/cors": "
|
|
48
|
-
"@koa/router": "
|
|
49
|
-
"@strapi/database": "5.0.0-beta.
|
|
50
|
-
"@strapi/logger": "5.0.0-beta.
|
|
51
|
-
"@strapi/permissions": "5.0.0-beta.
|
|
52
|
-
"@strapi/utils": "5.0.0-beta.
|
|
47
|
+
"@koa/cors": "5.0.0",
|
|
48
|
+
"@koa/router": "12.0.1",
|
|
49
|
+
"@strapi/database": "5.0.0-beta.10",
|
|
50
|
+
"@strapi/logger": "5.0.0-beta.10",
|
|
51
|
+
"@strapi/permissions": "5.0.0-beta.10",
|
|
52
|
+
"@strapi/utils": "5.0.0-beta.10",
|
|
53
53
|
"commander": "8.3.0",
|
|
54
|
-
"koa": "2.
|
|
55
|
-
"node-schedule": "2.1.0"
|
|
54
|
+
"koa": "2.15.2",
|
|
55
|
+
"node-schedule": "2.1.0",
|
|
56
|
+
"typedoc": "0.25.10",
|
|
57
|
+
"typedoc-github-wiki-theme": "1.1.0",
|
|
58
|
+
"typedoc-plugin-markdown": "3.17.1"
|
|
56
59
|
},
|
|
57
60
|
"devDependencies": {
|
|
58
|
-
"@strapi/pack-up": "5.0.0
|
|
61
|
+
"@strapi/pack-up": "5.0.0",
|
|
59
62
|
"@strapi/ts-zen": "^0.2.0",
|
|
60
63
|
"@types/jest": "29.5.2",
|
|
61
64
|
"@types/koa": "2.13.4",
|
|
62
65
|
"@types/koa__router": "12.0.0",
|
|
63
66
|
"@types/node-schedule": "2.1.0",
|
|
64
|
-
"eslint-config-custom": "5.0.0-beta.
|
|
65
|
-
"
|
|
67
|
+
"eslint-config-custom": "5.0.0-beta.10",
|
|
68
|
+
"lodash": "4.17.21",
|
|
69
|
+
"tsconfig": "5.0.0-beta.10",
|
|
66
70
|
"typescript": "5.3.2",
|
|
67
71
|
"undici": "5.27.2"
|
|
68
72
|
},
|
|
@@ -70,5 +74,5 @@
|
|
|
70
74
|
"node": ">=18.0.0 <=20.x.x",
|
|
71
75
|
"npm": ">=6.0.0"
|
|
72
76
|
},
|
|
73
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "d4542f0dccfa2eecb55026dbd795042e7d0004ba"
|
|
74
78
|
}
|
package/dist/container.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,SAAS,CAAC;IAC1D,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC;CAC/C"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Common } from '../../..';
|
|
2
|
-
import { Result } from '.';
|
|
3
|
-
import * as Params from '../params/document-engine';
|
|
4
|
-
export type CountResult = {
|
|
5
|
-
count: number;
|
|
6
|
-
};
|
|
7
|
-
export type FindMany<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.FindMany<TContentTypeUID>> = Promise<Result<TContentTypeUID, TParams>[]>;
|
|
8
|
-
export type FindFirst<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.FindFirst<TContentTypeUID>> = Promise<Result<TContentTypeUID, TParams> | null>;
|
|
9
|
-
export type FindOne<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.FindFirst<TContentTypeUID>> = Promise<Result<TContentTypeUID, TParams> | null>;
|
|
10
|
-
export type Delete = Promise<{
|
|
11
|
-
deletedEntries: number;
|
|
12
|
-
}>;
|
|
13
|
-
export type DeleteMany = Promise<CountResult | null>;
|
|
14
|
-
export type Create<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.Create<TContentTypeUID>> = Promise<Result<TContentTypeUID, TParams>>;
|
|
15
|
-
export type Clone<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.Clone<TContentTypeUID>> = Promise<{
|
|
16
|
-
documentId: string;
|
|
17
|
-
versions: Result<TContentTypeUID, TParams>[];
|
|
18
|
-
} | null>;
|
|
19
|
-
export type Update<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.Update<TContentTypeUID>> = Promise<Result<TContentTypeUID, TParams> | null>;
|
|
20
|
-
export type Count = Promise<number>;
|
|
21
|
-
export type Publish<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.Publish<TContentTypeUID>> = Promise<{
|
|
22
|
-
versions: Result<TContentTypeUID, TParams>[];
|
|
23
|
-
}>;
|
|
24
|
-
export type Unpublish<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.Unpublish<TContentTypeUID>> = Promise<{
|
|
25
|
-
versions: Result<TContentTypeUID, TParams>[];
|
|
26
|
-
}>;
|
|
27
|
-
export type DiscardDraft<TContentTypeUID extends Common.UID.ContentType, TParams extends Params.DiscardDraft<TContentTypeUID>> = Promise<{
|
|
28
|
-
versions: Result<TContentTypeUID, TParams>[];
|
|
29
|
-
}>;
|
|
30
|
-
//# sourceMappingURL=document-enigne.d.ts.map
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;IACV,QAAQ,EAAE,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,EAAE,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List of all the Strapi attribute types
|
|
3
|
-
*/
|
|
4
|
-
export type Kind = 'string' | 'text' | 'richtext' | 'email' | 'password' | 'date' | 'time' | 'datetime' | 'timestamp' | 'integer' | 'biginteger' | 'float' | 'decimal' | 'uid' | 'enumeration' | 'boolean' | 'json' | 'media' | 'relation' | 'component' | 'dynamiczone' | 'blocks';
|
|
5
|
-
/**
|
|
6
|
-
* Most basic shape of a schema attribute
|
|
7
|
-
*/
|
|
8
|
-
export interface Attribute<TKind extends Kind = Kind> {
|
|
9
|
-
/**
|
|
10
|
-
* Type of the attribute
|
|
11
|
-
*/
|
|
12
|
-
type: TKind;
|
|
13
|
-
/**
|
|
14
|
-
* Options defined and used by the plugins
|
|
15
|
-
*/
|
|
16
|
-
pluginOptions?: object;
|
|
17
|
-
useJoinTable?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Creates a basic Attribute of type T
|
|
21
|
-
*/
|
|
22
|
-
export type OfType<T extends Kind> = Attribute<T>;
|
|
23
|
-
export interface RequiredOption {
|
|
24
|
-
required?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface PrivateOption {
|
|
27
|
-
private?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface UniqueOption {
|
|
30
|
-
unique?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface DefaultOption<T> {
|
|
33
|
-
default?: T | (() => T);
|
|
34
|
-
}
|
|
35
|
-
export interface ConfigurableOption {
|
|
36
|
-
configurable?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface MinMaxOption<T = number> {
|
|
39
|
-
min?: T;
|
|
40
|
-
max?: T;
|
|
41
|
-
}
|
|
42
|
-
export interface MinMaxLengthOption {
|
|
43
|
-
minLength?: number;
|
|
44
|
-
maxLength?: number;
|
|
45
|
-
}
|
|
46
|
-
export interface WritableOption {
|
|
47
|
-
writable?: boolean;
|
|
48
|
-
}
|
|
49
|
-
export interface VisibleOption {
|
|
50
|
-
visible?: boolean;
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/base.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,IAAI,GACZ,QAAQ,GACR,MAAM,GACN,UAAU,GACV,OAAO,GACP,UAAU,GACV,MAAM,GACN,MAAM,GACN,UAAU,GACV,WAAW,GACX,SAAS,GACT,YAAY,GACZ,OAAO,GACP,SAAS,GACT,KAAK,GACL,aAAa,GACb,SAAS,GACT,MAAM,GACN,OAAO,GACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,KAAK,SAAS,IAAI,GAAG,IAAI;IAClD;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IAEZ;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAIlD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM;IACtC,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,GAAG,CAAC,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type BigInteger = Attribute.OfType<'biginteger'> & Attribute.ConfigurableOption & Attribute.DefaultOption<BigIntegerValue> & Attribute.MinMaxOption<string> & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption & Attribute.UniqueOption;
|
|
3
|
-
export type BigIntegerValue = string;
|
|
4
|
-
export type GetBigIntegerValue<T extends Attribute.Attribute> = T extends BigInteger ? BigIntegerValue : never;
|
|
5
|
-
//# sourceMappingURL=biginteger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"biginteger.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/biginteger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,GAErD,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,GACxC,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC,GAC9B,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,YAAY,C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,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,WAAW,GAAG,QAAQ,EAAE,CAAC;AAErC,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC;AAGnG,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
type BooleanAttribute = Attribute.OfType<'boolean'> & Attribute.ConfigurableOption & Attribute.DefaultOption<BooleanValue> & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
3
|
-
export type BooleanValue = boolean;
|
|
4
|
-
export type GetBooleanValue<T extends Attribute.Attribute> = T extends BooleanAttribute ? BooleanValue : never;
|
|
5
|
-
export type Boolean = BooleanAttribute;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=boolean.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,KAAK,gBAAgB,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,GAEjD,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC,GACrC,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,gBAAgB,GACnF,YAAY,GACZ,KAAK,CAAC;AAEV,MAAM,MAAM,OAAO,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strapi custom scalar types
|
|
3
|
-
*/
|
|
4
|
-
import type { Attribute, Common } from '..';
|
|
5
|
-
/**
|
|
6
|
-
* Setters for the attributes options
|
|
7
|
-
*/
|
|
8
|
-
export type Required = {
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
export type NonRequired = {
|
|
12
|
-
required: false;
|
|
13
|
-
};
|
|
14
|
-
export type Private = {
|
|
15
|
-
private: true;
|
|
16
|
-
};
|
|
17
|
-
export type NonPrivate = {
|
|
18
|
-
private: false;
|
|
19
|
-
};
|
|
20
|
-
export type Unique = {
|
|
21
|
-
unique: true;
|
|
22
|
-
};
|
|
23
|
-
export type NonUnique = {
|
|
24
|
-
unique: false;
|
|
25
|
-
};
|
|
26
|
-
export type Configurable = {
|
|
27
|
-
configurable: true;
|
|
28
|
-
};
|
|
29
|
-
export type NonConfigurable = {
|
|
30
|
-
configurable: false;
|
|
31
|
-
};
|
|
32
|
-
export type Writable = {
|
|
33
|
-
writable: true;
|
|
34
|
-
};
|
|
35
|
-
export type NonWritable = {
|
|
36
|
-
writable: false;
|
|
37
|
-
};
|
|
38
|
-
export type Visible = {
|
|
39
|
-
visible: true;
|
|
40
|
-
};
|
|
41
|
-
export type NonVisible = {
|
|
42
|
-
visible: false;
|
|
43
|
-
};
|
|
44
|
-
export type CustomField<TKind extends string, TOptions extends object | undefined = undefined> = {
|
|
45
|
-
customField: TKind;
|
|
46
|
-
options?: TOptions;
|
|
47
|
-
};
|
|
48
|
-
export type SetMinMax<TConfig extends Attribute.MinMaxOption<TType>, TType = number> = TConfig;
|
|
49
|
-
export type SetMinMaxLength<TConfig extends Attribute.MinMaxLengthOption> = TConfig;
|
|
50
|
-
export type SetPluginOptions<TConfig extends object = object> = {
|
|
51
|
-
pluginOptions?: TConfig;
|
|
52
|
-
};
|
|
53
|
-
export type DefaultTo<T> = {
|
|
54
|
-
default: T;
|
|
55
|
-
};
|
|
56
|
-
export type Any = Attribute.BigInteger | Attribute.Boolean | Attribute.Blocks | Attribute.Component<Common.UID.Component, boolean> | Attribute.DateTime | Attribute.Date | Attribute.Decimal | Attribute.DynamicZone | Attribute.Email | Attribute.Enumeration<string[]> | Attribute.Float | Attribute.Integer | Attribute.JSON | Attribute.Media<Attribute.MediaKind | undefined, boolean> | Attribute.Password | Attribute.Relation | Attribute.RichText | Attribute.String | Attribute.Text | Attribute.Time | Attribute.Timestamp | Attribute.UID;
|
|
57
|
-
export type PopulatableKind = Extract<Attribute.Kind, 'relation' | 'component' | 'dynamiczone' | 'media'>;
|
|
58
|
-
export type NonPopulatableKind = Exclude<Attribute.Kind, 'relation' | 'component' | 'dynamiczone' | 'media'>;
|
|
59
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE5C;;GAEG;AAGH,MAAM,MAAM,QAAQ,GAAG;IAAE,QAAQ,EAAE,IAAI,CAAA;CAAE,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAA;CAAE,CAAC;AAG9C,MAAM,MAAM,OAAO,GAAG;IAAE,OAAO,EAAE,IAAI,CAAA;CAAE,CAAC;AACxC,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,EAAE,KAAK,CAAA;CAAE,CAAC;AAG5C,MAAM,MAAM,MAAM,GAAG;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE,CAAC;AACtC,MAAM,MAAM,SAAS,GAAG;I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AE,OAAO,CAAC,GAClD,SAAS,CAAC,QAAQ,GAClB,SAAS,CAAC,IAAI,GACd,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,WAAW,GACrB,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,GAC/B,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,IAAI,GACd,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,GACzD,SAAS,CAAC,QAAQ,GAClB,SAAS,CAAC,QAAQ,GAClB,SAAS,CAAC,QAAQ,GAClB,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,IAAI,GACd,SAAS,CAAC,IAAI,GACd,SAAS,CAAC,SAAS,GACnB,SAAS,CAAC,GAAG,CAAC;AAElB,MAAM,MAAM,eAAe,GAAG,OAAO,CACnC,SAAS,CAAC,IAAI,EACd,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CACnD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACtC,SAAS,CAAC,IAAI,EACd,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CACnD,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Attribute, Common } from '..';
|
|
2
|
-
import type { Utils } from '../..';
|
|
3
|
-
export interface ComponentProperties<TComponentUID extends Common.UID.Component, TRepeatable extends Utils.Expression.BooleanValue = Utils.Expression.BooleanValue> {
|
|
4
|
-
component: TComponentUID;
|
|
5
|
-
repeatable?: TRepeatable;
|
|
6
|
-
}
|
|
7
|
-
export type Component<TComponentUID extends Common.UID.Component = Common.UID.Component, TRepeatable extends Utils.Expression.BooleanValue = Utils.Expression.BooleanValue> = Attribute.OfType<'component'> & ComponentProperties<TComponentUID, TRepeatable> & Attribute.ConfigurableOption & Attribute.MinMaxOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
8
|
-
export type ComponentValue<TComponentUID extends Common.UID.Component, TRepeatable extends Utils.Expression.BooleanValue> = Attribute.GetValues<TComponentUID> extends infer TValues ? Utils.Expression.MatchFirst<[
|
|
9
|
-
[
|
|
10
|
-
Utils.Expression.IsTrue<TRepeatable>,
|
|
11
|
-
TValues[]
|
|
12
|
-
],
|
|
13
|
-
[
|
|
14
|
-
Utils.Expression.IsFalse<TRepeatable>,
|
|
15
|
-
TValues
|
|
16
|
-
]
|
|
17
|
-
], TValues[] | TValues> : never;
|
|
18
|
-
export type GetComponentValue<TAttribute extends Attribute.Attribute> = TAttribute extends Component<infer TComponentUID, infer TRepeatable> ? ComponentValue<TComponentUID, TRepeatable> : never;
|
|
19
|
-
export type GetComponentTarget<TAttribute extends Attribute.Attribute> = TAttribute extends Component<infer TComponentUID> ? TComponentUID : never;
|
|
20
|
-
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,WAAW,mBAAmB,CAClC,aAAa,SAAS,MAAM,CAAC,GAAG,CAAC,SAAS,EAC1C,WAAW,SAAS,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY;IAEjF,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,MAAM,SAAS,CACnB,aAAa,SAAS,MAAM,CAAC,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,EACjE,WAAW,SAAS,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,IAC/E,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,GAE/B,mBAAmB,CAAC,aAAa,EAAE,WAAW,CAAC,GAE/C,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,cAAc,CACxB,aAAa,SAAS,MAAM,CAAC,GAAG,CAAC,SAAS,EAC1C,WAAW,SAAS,KAAK,CAAC,UAAU,CAAC,YAAY,IAC/C,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,MAAM,OAAO,GACxD,KAAK,CAAC,UAAU,CAAC,UAAU,CACzB;IAEE;QAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE;KAAC;IAEjD;QAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO;KAAC;CACjD,EAED,OAAO,EAAE,GAAG,OAAO,CACpB,GACD,KAAK,CAAC;AAEV,MAAM,MAAM,iBAAiB,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAClE,UAAU,SAAS,SAAS,CAAC,MAAM,aAAa,EAAE,MAAM,WAAW,CAAC,GAChE,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC,GAC1C,KAAK,CAAC;AAEZ,MAAM,MAAM,kBAAkB,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IACnE,UAAU,SAAS,SAAS,CAAC,MAAM,aAAa,CAAC,GAAG,aAAa,GAAG,KAAK,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type DateTime = Attribute.OfType<'datetime'> & Attribute.ConfigurableOption & Attribute.DefaultOption<DateTimeValue> & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.UniqueOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
3
|
-
export type DateTimeValue = globalThis.Date | string;
|
|
4
|
-
export type GetDateTimeValue<T extends Attribute.Attribute> = T extends DateTime ? DateTimeValue : never;
|
|
5
|
-
//# sourceMappingURL=date-time.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-time.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/date-time.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,GAEjD,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,GACtC,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAG1B,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,QAAQ,GAC5E,aAAa,GACb,KAAK,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type Date = Attribute.OfType<'date'> & Attribute.ConfigurableOption & Attribute.DefaultOption<DateValue> & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.UniqueOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
3
|
-
export type DateValue = globalThis.Date | string;
|
|
4
|
-
export type GetDateValue<T extends Attribute.Attribute> = T extends Date ? DateValue : never;
|
|
5
|
-
//# sourceMappingURL=date.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAEzC,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,GAClC,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC;AAEjD,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type Decimal = Attribute.OfType<'decimal'> & Attribute.ConfigurableOption & Attribute.DefaultOption<DecimalValue> & Attribute.MinMaxOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption & Attribute.UniqueOption;
|
|
3
|
-
export type DecimalValue = number;
|
|
4
|
-
export type GetDecimalValue<T extends Attribute.Attribute> = T extends Decimal ? DecimalValue : never;
|
|
5
|
-
//# sourceMappingURL=decimal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decimal.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/decimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,GAE/C,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC,GACrC,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,YAAY,CAAC;AAEzB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,OAAO,GAC1E,YAAY,GACZ,KAAK,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Attribute, Common } from '..';
|
|
2
|
-
import type { Utils } from '../..';
|
|
3
|
-
export interface DynamicZoneProperties<TComponentsUID extends Common.UID.Component[]> {
|
|
4
|
-
components: TComponentsUID;
|
|
5
|
-
}
|
|
6
|
-
export type DynamicZone<TComponentsUID extends Common.UID.Component[] = Common.UID.Component[]> = Attribute.OfType<'dynamiczone'> & DynamicZoneProperties<TComponentsUID> & Attribute.ConfigurableOption & Attribute.MinMaxOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
7
|
-
type DynamicZoneValue<TComponentsUID extends Common.UID.Component[]> = Array<Utils.Array.Values<TComponentsUID> extends infer TComponentUID ? TComponentUID extends Common.UID.Component ? Attribute.GetValues<TComponentUID> & {
|
|
8
|
-
__component: TComponentUID;
|
|
9
|
-
} : never : never>;
|
|
10
|
-
export type GetDynamicZoneValue<TAttribute extends Attribute.Attribute> = TAttribute extends DynamicZone<infer TComponentsUID> ? DynamicZoneValue<TComponentsUID> : never;
|
|
11
|
-
export type GetDynamicZoneTargets<TAttribute extends Attribute.Attribute> = TAttribute extends DynamicZone<infer TComponentsUID> ? Utils.Array.Values<TComponentsUID> : never;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=dynamic-zone.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-zone.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/dynamic-zone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,C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';
|
|
2
|
-
export type Email = Attribute.OfType<'email'> & Attribute.ConfigurableOption & Attribute.DefaultOption<EmailValue> & Attribute.MinMaxLengthOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.UniqueOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
3
|
-
export type EmailValue = string;
|
|
4
|
-
export type GetEmailValue<T extends Attribute.Attribute> = T extends Email ? EmailValue : never;
|
|
5
|
-
//# sourceMappingURL=email.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,GAE3C,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,GACnC,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,KAAK,GAAG,UAAU,GAAG,KAAK,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
import type { Utils } from '../..';
|
|
3
|
-
export interface EnumerationProperties<TValues extends string[] = []> {
|
|
4
|
-
enum: TValues;
|
|
5
|
-
enumName?: string;
|
|
6
|
-
}
|
|
7
|
-
export type Enumeration<TValues extends string[] = []> = Attribute.OfType<'enumeration'> & EnumerationProperties<TValues> & Attribute.ConfigurableOption & Attribute.DefaultOption<TValues[number]> & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
8
|
-
export type EnumerationValue<TValues extends string[]> = Utils.Array.Values<TValues>;
|
|
9
|
-
export type GetEnumerationValue<TAttribute extends Attribute.Attribute> = TAttribute extends Enumeration<infer TValues> ? EnumerationValue<TValues> : never;
|
|
10
|
-
//# sourceMappingURL=enumeration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enumeration.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/enumeration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,WAAW,qBAAqB,CAAC,OAAO,SAAS,MAAM,EAAE,GAAG,EAAE;IAClE,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,CAAC,OAAO,SAAS,MAAM,EAAE,GAAG,EAAE,IAAI,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,GACtF,qBAAqB,CAAC,OAAO,CAAC,GAE9B,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GACxC,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,gBAAgB,CAAC,OAAO,SAAS,MAAM,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAErF,MAAM,MAAM,mBAAmB,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IACpE,UAAU,SAAS,WAAW,CAAC,MAAM,OAAO,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type Float = Attribute.OfType<'float'> & Attribute.ConfigurableOption & Attribute.DefaultOption<FloatValue> & Attribute.MinMaxOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption & Attribute.UniqueOption;
|
|
3
|
-
export type FloatValue = number;
|
|
4
|
-
export type GetFloatValue<T extends Attribute.Attribute> = T extends Float ? FloatValue : never;
|
|
5
|
-
//# sourceMappingURL=float.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"float.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/float.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,GAE3C,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,GACnC,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,YAAY,CAAC;AAEzB,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,KAAK,GAAG,UAAU,GAAG,KAAK,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * from './base';
|
|
2
|
-
export * from './biginteger';
|
|
3
|
-
export * from './boolean';
|
|
4
|
-
export * from './blocks';
|
|
5
|
-
export * from './component';
|
|
6
|
-
export * from './decimal';
|
|
7
|
-
export * from './dynamic-zone';
|
|
8
|
-
export * from './enumeration';
|
|
9
|
-
export * from './float';
|
|
10
|
-
export * from './integer';
|
|
11
|
-
export * from './json';
|
|
12
|
-
export * from './media';
|
|
13
|
-
export * from './password';
|
|
14
|
-
export * from './relation';
|
|
15
|
-
export * from './richtext';
|
|
16
|
-
export * from './string';
|
|
17
|
-
export * from './text';
|
|
18
|
-
export * from './uid';
|
|
19
|
-
export * from './email';
|
|
20
|
-
export * from './date';
|
|
21
|
-
export * from './date-time';
|
|
22
|
-
export * from './timestamp';
|
|
23
|
-
export * from './time';
|
|
24
|
-
export * from './common';
|
|
25
|
-
export * from './utils';
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AAEvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type Integer = Attribute.OfType<'integer'> & Attribute.ConfigurableOption & Attribute.DefaultOption<IntegerValue> & Attribute.MinMaxOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption & Attribute.UniqueOption;
|
|
3
|
-
export type IntegerValue = number;
|
|
4
|
-
export type GetIntegerValue<T extends Attribute.Attribute> = T extends Integer ? IntegerValue : never;
|
|
5
|
-
//# sourceMappingURL=integer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integer.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/integer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,GAE/C,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC,GACrC,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,YAAY,CAAC;AAEzB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,OAAO,GAC1E,YAAY,GACZ,KAAK,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type * as Utils from '../../utils';
|
|
2
|
-
import type { Attribute } from '..';
|
|
3
|
-
export type JsonValue = Utils.JSONValue;
|
|
4
|
-
export type JSON = Attribute.OfType<'json'> & Attribute.ConfigurableOption & Attribute.RequiredOption & Attribute.PrivateOption & Attribute.WritableOption & Attribute.VisibleOption & Attribute.DefaultOption<Utils.JSONPrimitive>;
|
|
5
|
-
export type GetJsonValue<T extends Attribute.Attribute> = T extends JSON ? JsonValue : never;
|
|
6
|
-
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;AAExC,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAEzC,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AAE/C,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
import type { Utils } from '../..';
|
|
3
|
-
export type MediaTarget = 'plugin::upload.file';
|
|
4
|
-
export type MediaKind = 'images' | 'videos' | 'files' | 'audios';
|
|
5
|
-
export interface MediaProperties<TKind extends MediaKind | undefined = undefined, TMultiple extends Utils.Expression.BooleanValue = Utils.Expression.False> {
|
|
6
|
-
allowedTypes?: TKind | TKind[];
|
|
7
|
-
multiple?: TMultiple;
|
|
8
|
-
}
|
|
9
|
-
export type Media<TKind extends MediaKind | undefined = undefined, TMultiple extends Utils.Expression.BooleanValue = Utils.Expression.False> = Attribute.OfType<'media'> & MediaProperties<TKind, TMultiple> & Attribute.ConfigurableOption & Attribute.RequiredOption & Attribute.PrivateOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
10
|
-
export type MediaValue<TMultiple extends Utils.Expression.BooleanValue = Utils.Expression.False> = Utils.Expression.If<TMultiple, any[], any>;
|
|
11
|
-
export type GetMediaValue<TAttribute extends Attribute.Attribute> = TAttribute extends Media<infer _TKind, infer TMultiple> ? MediaValue<TMultiple> : never;
|
|
12
|
-
export type GetMediaTarget<TAttribute extends Attribute.Attribute> = TAttribute extends Media ? MediaTarget : never;
|
|
13
|
-
//# sourceMappingURL=media.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/media.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAChD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEjE,MAAM,WAAW,eAAe,CAC9B,KAAK,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,EAC/C,SAAS,SAAS,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK;IAExE,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,MAAM,KAAK,CACf,KAAK,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,EAC/C,SAAS,SAAS,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,IACtE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,GAE3B,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,GAEjC,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAG1B,MAAM,MAAM,UAAU,CAAC,SAAS,SAAS,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,IAC7F,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;AAE7C,MAAM,MAAM,aAAa,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAAI,UAAU,SAAS,KAAK,CAG1F,MAAM,MAAM,EACZ,MAAM,SAAS,CAChB,GACG,UAAU,CAAC,SAAS,CAAC,GACrB,KAAK,CAAC;AAEV,MAAM,MAAM,cAAc,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAAI,UAAU,SAAS,KAAK,GACzF,WAAW,GACX,KAAK,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type Password = Attribute.OfType<'password'> & Attribute.ConfigurableOption & Attribute.DefaultOption<PasswordValue> & Attribute.MinMaxLengthOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
3
|
-
export type PasswordValue = string;
|
|
4
|
-
export type GetPasswordValue<T extends Attribute.Attribute> = T extends Password ? PasswordValue : never;
|
|
5
|
-
//# sourceMappingURL=password.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/password.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,GAEjD,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,GACtC,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,QAAQ,GAC5E,aAAa,GACb,KAAK,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import type { Attribute, Common } from '..';
|
|
2
|
-
import type { Utils } from '../..';
|
|
3
|
-
export type Relation<TRelationKind extends RelationKind.Any = RelationKind.Any, TTarget extends Common.UID.ContentType = Common.UID.ContentType> = Attribute.OfType<'relation'> & Utils.Guard.Never<RelationProperties<TRelationKind, TTarget>, AllRelationProperties<TTarget>> & Attribute.ConfigurableOption & Attribute.PrivateOption & Attribute.WritableOption & Attribute.VisibleOption & Attribute.RequiredOption;
|
|
4
|
-
export type RelationProperties<TRelationKind extends RelationKind.Any, TTarget extends Common.UID.ContentType> = Utils.Expression.MatchFirst<[
|
|
5
|
-
[
|
|
6
|
-
Utils.Expression.Extends<TRelationKind, RelationKind.BiDirectional>,
|
|
7
|
-
BiDirectionalProperties<Utils.Cast<TRelationKind, RelationKind.BiDirectional>, TTarget>
|
|
8
|
-
],
|
|
9
|
-
[
|
|
10
|
-
Utils.Expression.Extends<TRelationKind, RelationKind.XWay>,
|
|
11
|
-
XWayProperties<Utils.Cast<TRelationKind, RelationKind.XWay>, TTarget>
|
|
12
|
-
],
|
|
13
|
-
[
|
|
14
|
-
Utils.Expression.Extends<TRelationKind, RelationKind.MorphReference>,
|
|
15
|
-
MorphReferenceProperties<Utils.Cast<TRelationKind, RelationKind.MorphReference>, TTarget>
|
|
16
|
-
],
|
|
17
|
-
[
|
|
18
|
-
Utils.Expression.Extends<TRelationKind, RelationKind.MorphOwner>,
|
|
19
|
-
MorphOwnerProperties<Utils.Cast<TRelationKind, RelationKind.MorphOwner>>
|
|
20
|
-
]
|
|
21
|
-
]>;
|
|
22
|
-
export type AllRelationProperties<TTarget extends Common.UID.Schema> = BiDirectionalProperties<RelationKind.BiDirectional, TTarget> | XWayProperties<RelationKind.XWay, TTarget> | MorphReferenceProperties<RelationKind.MorphReference, TTarget> | MorphOwnerProperties<'morphToOne'> | MorphOwnerProperties<'morphToMany'>;
|
|
23
|
-
type BiDirectionalProperties<TRelationKind extends RelationKind.BiDirectional, TTarget extends Common.UID.Schema> = {
|
|
24
|
-
[TKind in RelationKind.BiDirectional]: {
|
|
25
|
-
relation: TKind;
|
|
26
|
-
target: TTarget;
|
|
27
|
-
} & Utils.XOR<{
|
|
28
|
-
inversedBy?: string;
|
|
29
|
-
}, {
|
|
30
|
-
mappedBy?: string;
|
|
31
|
-
}>;
|
|
32
|
-
}[TRelationKind];
|
|
33
|
-
type XWayProperties<TRelationKind extends RelationKind.XWay, TTarget extends Common.UID.Schema> = {
|
|
34
|
-
[TKind in RelationKind.XWay]: {
|
|
35
|
-
relation: TKind;
|
|
36
|
-
target: TTarget;
|
|
37
|
-
};
|
|
38
|
-
}[TRelationKind];
|
|
39
|
-
type MorphReferenceProperties<TRelationKind extends RelationKind.MorphReference, TTarget extends Common.UID.Schema> = {
|
|
40
|
-
[TKind in RelationKind.MorphReference]: {
|
|
41
|
-
relation: TKind;
|
|
42
|
-
target: TTarget;
|
|
43
|
-
morphBy?: Utils.Guard.Never<Attribute.GetKeysByType<TTarget, 'relation', {
|
|
44
|
-
relation: RelationKind.MorphOwner;
|
|
45
|
-
}>, string>;
|
|
46
|
-
};
|
|
47
|
-
}[TRelationKind];
|
|
48
|
-
type MorphOwnerProperties<TRelationKind extends RelationKind.MorphOwner> = {
|
|
49
|
-
[TKind in RelationKind.MorphOwner]: {
|
|
50
|
-
relation: TKind;
|
|
51
|
-
};
|
|
52
|
-
}[TRelationKind];
|
|
53
|
-
export type RelationsKeysFromTo<TTarget extends Common.UID.Schema, TOrigin extends Common.UID.Schema> = Utils.Guard.Never<keyof PickRelationsFromTo<TTarget, TOrigin>, string>;
|
|
54
|
-
export type PickRelationsFromTo<TTarget extends Common.UID.Schema, TOrigin extends Common.UID.Schema> = Attribute.GetByType<TTarget, 'relation', {
|
|
55
|
-
target: TOrigin;
|
|
56
|
-
}>;
|
|
57
|
-
export type RelationPluralityModifier<TRelationKind extends RelationKind.Any, TValue> = Utils.Expression.If<IsManyRelation<TRelationKind>, TValue[], TValue>;
|
|
58
|
-
export type IsManyRelation<TRelationKind extends RelationKind.Any> = Utils.Expression.Extends<TRelationKind, Utils.String.Suffix<string, 'Many'>>;
|
|
59
|
-
export type RelationValue<TRelationKind extends RelationKind.Any, TTarget extends Common.UID.Schema> = RelationPluralityModifier<TRelationKind, Attribute.GetValues<TTarget>>;
|
|
60
|
-
export type GetRelationValue<TAttribute extends Attribute.Attribute> = TAttribute extends Relation<infer TRelationKind, infer TTarget> ? RelationValue<TRelationKind, TTarget> : never;
|
|
61
|
-
export type GetRelationTarget<TAttribute extends Attribute.Attribute> = TAttribute extends Relation<infer _TRelationKind, infer TTarget> ? TTarget : never;
|
|
62
|
-
export declare namespace RelationKind {
|
|
63
|
-
type GetOppositePlurality<TPlurality extends RelationKind.Left | RelationKind.Right> = {
|
|
64
|
-
one: 'many';
|
|
65
|
-
One: 'Many';
|
|
66
|
-
many: 'one';
|
|
67
|
-
Many: 'One';
|
|
68
|
-
}[TPlurality];
|
|
69
|
-
export type Plurality = 'one' | 'many';
|
|
70
|
-
export type Left = Lowercase<RelationKind.Plurality>;
|
|
71
|
-
export type Right = Capitalize<RelationKind.Plurality>;
|
|
72
|
-
export type MorphOwner = `morphTo${RelationKind.Right}`;
|
|
73
|
-
export type MorphReference = `morph${RelationKind.Right}`;
|
|
74
|
-
export type Morph = RelationKind.MorphOwner | RelationKind.MorphReference;
|
|
75
|
-
export type XWay = `${RelationKind.Left}Way`;
|
|
76
|
-
export type BiDirectional = `${RelationKind.Left}To${RelationKind.Right}`;
|
|
77
|
-
export type UniDirectional = RelationKind.MorphReference | RelationKind.XWay;
|
|
78
|
-
export type Any = RelationKind.BiDirectional | RelationKind.Morph | RelationKind.XWay;
|
|
79
|
-
export type WithTarget = RelationKind.BiDirectional | RelationKind.XWay | RelationKind.MorphReference;
|
|
80
|
-
export type WithoutTarget = RelationKind.MorphOwner;
|
|
81
|
-
export type Reverse<TRelationKind extends RelationKind.Any> = TRelationKind extends `${infer TLeft extends RelationKind.Left}To${infer TRight extends RelationKind.Right}` ? Utils.Expression.If<Utils.Expression.Extends<Uppercase<TLeft>, Uppercase<TRight>>, TRelationKind, `${GetOppositePlurality<TLeft>}To${GetOppositePlurality<TRight>}`> : TRelationKind;
|
|
82
|
-
export {};
|
|
83
|
-
}
|
|
84
|
-
export {};
|
|
85
|
-
//# sourceMappingURL=relation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relation.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/relation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,MAAM,QAAQ,CAClB,aAAa,SAAS,YAAY,CAAC,GAAG,GAAG,YAAY,CAAC,GAAG,EACzD,OAAO,SAAS,MAAM,CAAC,GAAG,CAAC,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,WAAW,IAC7D,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,GAE9B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC,GAE7F,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,CAAC;AAE3B,MAAM,MAAM,kBAAkB,CAC5B,aAAa,SAAS,YAAY,CAAC,GAAG,EACtC,OAAO,SAAS,MAAM,CAAC,GAAG,CAAC,WAAW,IACpC,KAAK,CAAC,UAAU,CAAC,UAAU,CAC7B;IACE;QACE,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC,aAAa,CAAC;QACnE,uBAAuB,C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E,GACxG,KAAK,CAAC,UAAU,CAAC,EAAE,CACjB,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAC7D,aAAa,EACb,GAAG,oBAAoB,CAAC,KAAK,CAAC,KAAK,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAClE,GACD,aAAa,CAAC;;CACrB"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export type RichText = Attribute.OfType<'richtext'> & Attribute.ConfigurableOption & Attribute.DefaultOption<RichTextValue> & Attribute.MinMaxLengthOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
3
|
-
export type RichTextValue = string;
|
|
4
|
-
export type GetRichTextValue<T extends Attribute.Attribute> = T extends RichText ? RichTextValue : never;
|
|
5
|
-
//# sourceMappingURL=richtext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"richtext.d.ts","sourceRoot":"","sources":["../../../../src/types/core/attributes/richtext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,GAEjD,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,GACtC,SAAS,CAAC,kBAAkB,GAC5B,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,aAAa,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,QAAQ,GAC5E,aAAa,GACb,KAAK,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Attribute } from '..';
|
|
2
|
-
export interface StringProperties {
|
|
3
|
-
regex?: RegExp;
|
|
4
|
-
}
|
|
5
|
-
type StringAttribute = Attribute.OfType<'string'> & StringProperties & Attribute.ConfigurableOption & Attribute.DefaultOption<StringValue> & Attribute.MinMaxLengthOption & Attribute.PrivateOption & Attribute.UniqueOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
6
|
-
export type StringValue = string;
|
|
7
|
-
export type GetStringValue<T extends Attribute.Attribute> = T extends StringAttribute ? StringValue : never;
|
|
8
|
-
export type String = StringAttribute;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=string.d.ts.map
|