@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
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { Service, Controller, Policy, Middleware } from '../core';
|
|
2
|
+
import type { UID } from '../internal';
|
|
3
|
+
import type { ComponentSchema, ContentTypeSchema } from '../struct';
|
|
4
|
+
/**
|
|
5
|
+
* Aggregates and interfaces the schemas of various content types under unique identifiers.
|
|
6
|
+
*
|
|
7
|
+
* It allows mapping between unique identifiers of content types and their respective schemas.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* Example usage of ContentTypeSchemas:
|
|
11
|
+
* ```ts
|
|
12
|
+
* declare module '@strapi/types' {
|
|
13
|
+
* export module Public {
|
|
14
|
+
* export module Registries {
|
|
15
|
+
* export interface ContentTypesSchemas {
|
|
16
|
+
* 'api::foo.foo': { ... }
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export interface ContentTypeSchemas {
|
|
24
|
+
[TKey: UID.ContentType]: ContentTypeSchema;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Aggregates and interfaces the schemas of various components under unique identifiers.
|
|
28
|
+
*
|
|
29
|
+
* It allows mapping between unique identifiers of components and their respective schemas.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Example usage of ComponentSchemas:
|
|
33
|
+
* ```ts
|
|
34
|
+
* declare module '@strapi/types' {
|
|
35
|
+
* export module Public {
|
|
36
|
+
* export module Registries {
|
|
37
|
+
* export interface ComponentSchemas {
|
|
38
|
+
* 'default.foo': { ... }
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export interface ComponentSchemas {
|
|
46
|
+
[TKey: UID.Component]: ComponentSchema;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Shared service registry
|
|
50
|
+
*/
|
|
51
|
+
export interface Services {
|
|
52
|
+
[uid: UID.Service]: Service;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Shared controller registry
|
|
56
|
+
*/
|
|
57
|
+
export interface Controllers {
|
|
58
|
+
[uid: UID.Controller]: Controller;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Shared policy registry
|
|
62
|
+
*/
|
|
63
|
+
export interface Policies {
|
|
64
|
+
[uid: UID.Policy]: Policy;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Shared middleware registry
|
|
68
|
+
*/
|
|
69
|
+
export interface Middlewares {
|
|
70
|
+
[uid: UID.Middleware]: Middleware;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=registries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../src/public/registries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEpE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,kBAAkB;IACjC,CAAC,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,iBAAiB,CAAC;CAC5C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,GAAG,eAAe,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,GAAG,UAAU,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,GAAG,UAAU,CAAC;CACnC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `DocumentServicePluginParams` interface represents the various document-service's plugin parameters where the key is the parameter, and the value is the related type.
|
|
3
|
+
*
|
|
4
|
+
* Simply put: it enables the definition of document-service parameters from external plugins.
|
|
5
|
+
*
|
|
6
|
+
* For instance, consider each plugin requires various parameters for their execution, this interface can act as a contract to satisfy this requirement.
|
|
7
|
+
*
|
|
8
|
+
* Note: Currently, the `DocumentServicePluginParams` doesn't have any methods or properties, it's an empty interface. This stands as a placeholder which can be extended or implemented by the plugins as required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* Here's how `DocumentServicePluginParams` can be used to define parameters for a fictional plugin "Internationalization":
|
|
12
|
+
* ```typescript
|
|
13
|
+
* declare module '@strapi/types' {
|
|
14
|
+
* export module Shared {
|
|
15
|
+
* export interface DocumentServicePluginParams {
|
|
16
|
+
* 'locale': string;
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @remark This type needs to be reviewed since it's not augmented anywhere yet
|
|
23
|
+
*/
|
|
24
|
+
export interface DocumentServicePluginParams {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The `EntityServicePluginParams` interface represents the various entity-service's plugin parameters where the key is the parameter, and the value is the related type.
|
|
28
|
+
*
|
|
29
|
+
* Simply put: it enables the definition of entity-service parameters from external plugins.
|
|
30
|
+
*
|
|
31
|
+
* For instance, consider each plugin requires various parameters for their execution, this interface can act as a contract to satisfy this requirement.
|
|
32
|
+
*
|
|
33
|
+
* Note: Currently, the `EntityServicePluginParams` doesn't have any methods or properties, it's an empty interface. This stands as a placeholder which can be extended or implemented by the plugins as required.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* Here's how `EntityServicePluginParams` can be used to define parameters for a fictional plugin "Internationalization":
|
|
37
|
+
* ```typescript
|
|
38
|
+
* declare module '@strapi/types' {
|
|
39
|
+
* export module Shared {
|
|
40
|
+
* export interface EntityServicePluginParams {
|
|
41
|
+
* 'locale': string;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @remark This type needs to be reviewed since it's not augmented anywhere yet
|
|
48
|
+
*
|
|
49
|
+
* @deprecated The entity service is deprecated and will be removed in v6. Use the document service instead.
|
|
50
|
+
*/
|
|
51
|
+
export interface EntityServicePluginParams {
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @remark This type needs to be reviewed since it's not augmented anywhere yet
|
|
55
|
+
*
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
58
|
+
export interface PluginActivation {
|
|
59
|
+
[key: keyof any]: unknown;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/public/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,2BAA2B;CAAG;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,yBAAyB;CAAG;AAE7C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,OAAO,CAAC;CAC3B"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all possible attribute types in Strapi.
|
|
3
|
+
*
|
|
4
|
+
* These attribute types handle how data is stored and validated.
|
|
5
|
+
*
|
|
6
|
+
* Types range from primitive types like 'string', 'integer' and 'boolean' to more complex ones like 'media', 'relation', 'component', etc...
|
|
7
|
+
*
|
|
8
|
+
* @see Attribute
|
|
9
|
+
* @see PopulatableKind
|
|
10
|
+
* @see NonPopulatableKind
|
|
11
|
+
*/
|
|
12
|
+
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';
|
|
13
|
+
/**
|
|
14
|
+
* Most basic shape of a schema attribute
|
|
15
|
+
*
|
|
16
|
+
* @template TKind - The attribute type
|
|
17
|
+
*/
|
|
18
|
+
export interface Attribute<TKind extends Kind = Kind> {
|
|
19
|
+
/**
|
|
20
|
+
* Defines the type of the attribute.
|
|
21
|
+
*
|
|
22
|
+
* This refers to the {@link Kind} type where possible values range from simple primitives to more complex types.
|
|
23
|
+
*/
|
|
24
|
+
type: TKind;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies additional options used by plugins.
|
|
27
|
+
*
|
|
28
|
+
* This is an optional property that allows specifying extra configurations or settings, that
|
|
29
|
+
* would be leveraged while processing or working with the attribute.
|
|
30
|
+
*
|
|
31
|
+
* Being an object, it can accept key-value pairs to define or customize plugin behavior.
|
|
32
|
+
*/
|
|
33
|
+
pluginOptions?: object;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates if the attribute is searchable.
|
|
36
|
+
*
|
|
37
|
+
* This is an optional Boolean property to enable or disable the search functionality for the attribute.
|
|
38
|
+
*
|
|
39
|
+
* Meaning that, if it's set to 'true', the attribute would be considered while performing a search operation.
|
|
40
|
+
*/
|
|
41
|
+
searchable?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a basic Attribute of type T
|
|
45
|
+
*
|
|
46
|
+
* It simplifies the construction of granular data types enabling the specification of exact attribute types.
|
|
47
|
+
*
|
|
48
|
+
* @template T - A type parameter extending {@link Kind} which dictates the attribute's type.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import type { Schema } from '@strapi/types';
|
|
53
|
+
*
|
|
54
|
+
* // An attribute of type 'boolean'
|
|
55
|
+
* type BooleanAttribute = Schema.Attribute.OfType<'boolean'>;
|
|
56
|
+
*
|
|
57
|
+
* // 'boolean' attribute with additional options
|
|
58
|
+
* type ConfigurableBooleanAttribute = Intersect<[Schema.Attribute.OfType<'boolean'>, ConfigurableOption]>;
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @see Kind
|
|
62
|
+
* @see Attribute
|
|
63
|
+
*/
|
|
64
|
+
export type OfType<T extends Kind> = Attribute<T>;
|
|
65
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;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;;;;GAIG;AACH,MAAM,WAAW,SAAS,CAAC,KAAK,SAAS,IAAI,GAAG,IAAI;IAClD;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC;IAEZ;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as UID from '../../uid';
|
|
2
|
+
import type { Attribute } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents any kind of attribute.
|
|
5
|
+
*
|
|
6
|
+
* A polymorphic type capturing a categorized set of various Attribute types, set by the attribute specific `type` key.
|
|
7
|
+
*
|
|
8
|
+
* It provides abstraction for the multitude of attributes available for handling different kinds of data, each of which can have its own options and properties.
|
|
9
|
+
*
|
|
10
|
+
* These are typically consumed by modules that need a way to handle any type of attribute in a unified manner.
|
|
11
|
+
*/
|
|
12
|
+
export type AnyAttribute = Attribute.BigInteger | Attribute.Boolean | Attribute.Blocks | Attribute.Component<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;
|
|
13
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GACpB,SAAS,CAAC,UAAU,GACpB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,GAC3C,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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Attribute } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Union of every populatable attribute's types extracted from {@link AttributeByName.Kind}.
|
|
4
|
+
*
|
|
5
|
+
* Populatable attributes are those whose value needs to be populated in order to make it to the final value, such as `relation`, `dynamiczone`, `component` or `media`.
|
|
6
|
+
*/
|
|
7
|
+
export type PopulatableKind = Extract<Attribute.Kind, 'relation' | 'component' | 'dynamiczone' | 'media'>;
|
|
8
|
+
/**
|
|
9
|
+
* Union of every non-populatable attribute's types extracted from {@link AttributeByName.Kind}.
|
|
10
|
+
*/
|
|
11
|
+
export type NonPopulatableKind = Exclude<Attribute.Kind, 'relation' | 'component' | 'dynamiczone' | 'media'>;
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CACnC,SAAS,CAAC,IAAI,EACd,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACtC,SAAS,CAAC,IAAI,EACd,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CACnD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a big integer Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type BigInteger = Intersect<[
|
|
7
|
+
Attribute.OfType<'biginteger'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<BigIntegerValue>,
|
|
10
|
+
Attribute.MinMaxOption<string>,
|
|
11
|
+
Attribute.PrivateOption,
|
|
12
|
+
Attribute.RequiredOption,
|
|
13
|
+
Attribute.WritableOption,
|
|
14
|
+
Attribute.VisibleOption,
|
|
15
|
+
Attribute.UniqueOption
|
|
16
|
+
]>;
|
|
17
|
+
export type BigIntegerValue = string;
|
|
18
|
+
export type GetBigIntegerValue<T extends Attribute.Attribute> = T extends BigInteger ? BigIntegerValue : never;
|
|
19
|
+
//# sourceMappingURL=biginteger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"biginteger.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/biginteger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,CAChC;IACE,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC;IAE9B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC;IACxC,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC;IAC9B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,YAAY;CACvB,CACF,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,UAAU,GAChF,eAAe,GACf,KAAK,CAAC"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a block Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type Blocks = Intersect<[
|
|
7
|
+
Attribute.OfType<'blocks'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.PrivateOption,
|
|
10
|
+
Attribute.RequiredOption,
|
|
11
|
+
Attribute.WritableOption,
|
|
12
|
+
Attribute.VisibleOption
|
|
13
|
+
]>;
|
|
14
|
+
export type BlocksValue = RootNode[];
|
|
15
|
+
export type GetBlocksValue<T extends Attribute.Attribute> = T extends Blocks ? BlocksValue : never;
|
|
16
|
+
type RootNode = ParagraphBlockNode | QuoteBlockNode | CodeBlockNode | HeadingBlockNode | ListBlockNode | ImageBlockNode;
|
|
17
|
+
export type BlocksNode = RootNode | NonTextInlineNode;
|
|
18
|
+
export type BlocksInlineNode = NonTextInlineNode;
|
|
19
|
+
export type BlocksTextNode = TextInlineNode;
|
|
2
20
|
interface TextInlineNode {
|
|
3
21
|
type: 'text';
|
|
4
22
|
text: string;
|
|
@@ -34,6 +52,7 @@ interface QuoteBlockNode extends BaseNode {
|
|
|
34
52
|
}
|
|
35
53
|
interface CodeBlockNode extends BaseNode {
|
|
36
54
|
type: 'code';
|
|
55
|
+
language?: string;
|
|
37
56
|
children: DefaultInlineNode[];
|
|
38
57
|
}
|
|
39
58
|
interface HeadingBlockNode extends BaseNode {
|
|
@@ -49,22 +68,11 @@ export interface ListBlockNode extends BaseNode {
|
|
|
49
68
|
}
|
|
50
69
|
interface ImageBlockNode extends BaseNode {
|
|
51
70
|
type: 'image';
|
|
52
|
-
image: Attribute.
|
|
53
|
-
type: 'media';
|
|
54
|
-
allowedTypes: ['images'];
|
|
55
|
-
multiple: false;
|
|
56
|
-
}>;
|
|
71
|
+
image: Attribute.MediaValue<false>;
|
|
57
72
|
children: [{
|
|
58
73
|
type: 'text';
|
|
59
74
|
text: '';
|
|
60
75
|
}];
|
|
61
76
|
}
|
|
62
|
-
type RootNode = ParagraphBlockNode | QuoteBlockNode | CodeBlockNode | HeadingBlockNode | ListBlockNode | ImageBlockNode;
|
|
63
|
-
export type Blocks = Attribute.OfType<'blocks'> & Attribute.ConfigurableOption & Attribute.PrivateOption & Attribute.RequiredOption & Attribute.WritableOption & Attribute.VisibleOption;
|
|
64
|
-
export type BlocksValue = RootNode[];
|
|
65
|
-
export type GetBlocksValue<T extends Attribute.Attribute> = T extends Blocks ? BlocksValue : never;
|
|
66
|
-
export type BlocksNode = RootNode | NonTextInlineNode;
|
|
67
|
-
export type BlocksInlineNode = NonTextInlineNode;
|
|
68
|
-
export type BlocksTextNode = TextInlineNode;
|
|
69
77
|
export {};
|
|
70
78
|
//# sourceMappingURL=blocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,SAAS,CAC5B;IACE,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;IAE1B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,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,KAAK,QAAQ,GACT,kBAAkB,GAClB,cAAc,GACd,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,cAAc,CAAC;AAGnB,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAE5C,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,UAAU,kBAAmB,SAAQ,QAAQ;IAC3C,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,KAAK,UAAU,GAAG,cAAc,GAAG,cAAc,GAAG,kBAAkB,CAAC;AAEvE,KAAK,iBAAiB,GAAG,OAAO,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;AACjE,KAAK,iBAAiB,GAAG,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;AAE7D,UAAU,kBAAmB,SAAQ,QAAQ;IAC3C,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,UAAU,cAAe,SAAQ,QAAQ;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,UAAU,aAAc,SAAQ,QAAQ;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,UAAU,gBAAiB,SAAQ,QAAQ;IACzC,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,QAAQ,EAAE,CAAC,kBAAkB,GAAG,aAAa,CAAC,EAAE,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,cAAe,SAAQ,QAAQ;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,EAAE,CAAA;KAAE,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a boolean Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
type BooleanAttribute = Intersect<[
|
|
7
|
+
Attribute.OfType<'boolean'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<BooleanValue>,
|
|
10
|
+
Attribute.PrivateOption,
|
|
11
|
+
Attribute.RequiredOption,
|
|
12
|
+
Attribute.WritableOption,
|
|
13
|
+
Attribute.VisibleOption
|
|
14
|
+
]>;
|
|
15
|
+
export type BooleanValue = boolean;
|
|
16
|
+
export type GetBooleanValue<T extends Attribute.Attribute> = T extends BooleanAttribute ? BooleanValue : never;
|
|
17
|
+
export type Boolean = BooleanAttribute;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=boolean.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,KAAK,gBAAgB,GAAG,SAAS,CAC/B;IACE,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC;IAE3B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC;IACrC,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Data from '../../../data';
|
|
2
|
+
import type * as UID from '../../../uid';
|
|
3
|
+
import type { Constants, If, Intersect } from '../../../utils';
|
|
4
|
+
import type { Attribute } from '../..';
|
|
5
|
+
export interface ComponentProperties<TComponentUID extends UID.Component, TRepeatable extends Constants.BooleanValue = Constants.False> {
|
|
6
|
+
component: TComponentUID;
|
|
7
|
+
repeatable?: TRepeatable;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Represents a component Strapi attribute along with its options
|
|
11
|
+
*/
|
|
12
|
+
export type Component<TComponentUID extends UID.Component = UID.Component, TRepeatable extends Constants.BooleanValue = Constants.False> = Intersect<[
|
|
13
|
+
Attribute.OfType<'component'>,
|
|
14
|
+
ComponentProperties<TComponentUID, TRepeatable>,
|
|
15
|
+
Attribute.ConfigurableOption,
|
|
16
|
+
Attribute.MinMaxOption,
|
|
17
|
+
Attribute.PrivateOption,
|
|
18
|
+
Attribute.RequiredOption,
|
|
19
|
+
Attribute.WritableOption,
|
|
20
|
+
Attribute.VisibleOption
|
|
21
|
+
]>;
|
|
22
|
+
export type ComponentValue<TComponentUID extends UID.Component, TRepeatable extends Constants.BooleanValue> = Data.Component<TComponentUID> extends infer TComponentEntry ? If<TRepeatable, TComponentEntry[], TComponentEntry> : never;
|
|
23
|
+
export type GetComponentValue<TAttribute extends Attribute.Attribute> = TAttribute extends Component<infer TComponentUID, infer TRepeatable> ? ComponentValue<TComponentUID, TRepeatable> : never;
|
|
24
|
+
export type ComponentTarget<TAttribute extends Attribute.Attribute> = TAttribute extends Component<infer TComponentUID> ? TComponentUID : never;
|
|
25
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,mBAAmB,CAClC,aAAa,SAAS,GAAG,CAAC,SAAS,EACnC,WAAW,SAAS,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,KAAK;IAE5D,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,CACnB,aAAa,SAAS,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,EACnD,WAAW,SAAS,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,KAAK,IAC1D,SAAS,CACX;IACE,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC;IAE7B,mBAAmB,CAAC,aAAa,EAAE,WAAW,CAAC;IAE/C,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,MAAM,MAAM,cAAc,CACxB,aAAa,SAAS,GAAG,CAAC,SAAS,EACnC,WAAW,SAAS,SAAS,CAAC,YAAY,IAE1C,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,MAAM,eAAe,GACvD,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,EAAE,eAAe,CAAC,GACnD,KAAK,CAAC;AAEZ,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,eAAe,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAChE,UAAU,SAAS,SAAS,CAAC,MAAM,aAAa,CAAC,GAAG,aAAa,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a date-time Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type DateTime = Intersect<[
|
|
7
|
+
Attribute.OfType<'datetime'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<DateTimeValue>,
|
|
10
|
+
Attribute.PrivateOption,
|
|
11
|
+
Attribute.RequiredOption,
|
|
12
|
+
Attribute.UniqueOption,
|
|
13
|
+
Attribute.WritableOption,
|
|
14
|
+
Attribute.VisibleOption
|
|
15
|
+
]>;
|
|
16
|
+
export type DateTimeValue = globalThis.Date | string;
|
|
17
|
+
export type GetDateTimeValue<T extends Attribute.Attribute> = T extends DateTime ? DateTimeValue : never;
|
|
18
|
+
//# sourceMappingURL=date-time.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/date-time.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,CAC9B;IACE,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC;IAE5B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAGF,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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a date Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type Date = Intersect<[
|
|
7
|
+
Attribute.OfType<'date'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<DateValue>,
|
|
10
|
+
Attribute.PrivateOption,
|
|
11
|
+
Attribute.RequiredOption,
|
|
12
|
+
Attribute.UniqueOption,
|
|
13
|
+
Attribute.WritableOption,
|
|
14
|
+
Attribute.VisibleOption
|
|
15
|
+
]>;
|
|
16
|
+
export type DateValue = globalThis.Date | string;
|
|
17
|
+
export type GetDateValue<T extends Attribute.Attribute> = T extends Date ? DateValue : never;
|
|
18
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,SAAS,CAC1B;IACE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;IAExB,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC;IAClC,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a decimal Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type Decimal = Intersect<[
|
|
7
|
+
Attribute.OfType<'decimal'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<DecimalValue>,
|
|
10
|
+
Attribute.MinMaxOption,
|
|
11
|
+
Attribute.PrivateOption,
|
|
12
|
+
Attribute.RequiredOption,
|
|
13
|
+
Attribute.WritableOption,
|
|
14
|
+
Attribute.VisibleOption,
|
|
15
|
+
Attribute.UniqueOption
|
|
16
|
+
]>;
|
|
17
|
+
export type DecimalValue = number;
|
|
18
|
+
export type GetDecimalValue<T extends Attribute.Attribute> = T extends Decimal ? DecimalValue : never;
|
|
19
|
+
//# sourceMappingURL=decimal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decimal.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/decimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,SAAS,CAC7B;IACE,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC;IAE3B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC;IACrC,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,YAAY;CACvB,CACF,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Data from '../../../data';
|
|
2
|
+
import type * as UID from '../../../uid';
|
|
3
|
+
import type { Array, Intersect } from '../../../utils';
|
|
4
|
+
import type { Attribute } from '../..';
|
|
5
|
+
export interface DynamicZoneProperties<TComponentsUID extends UID.Component[]> {
|
|
6
|
+
components: TComponentsUID;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Represents a dynamic-zone Strapi attribute along with its options
|
|
10
|
+
*/
|
|
11
|
+
export type DynamicZone<TComponentsUID extends UID.Component[] = UID.Component[]> = Intersect<[
|
|
12
|
+
Attribute.OfType<'dynamiczone'>,
|
|
13
|
+
DynamicZoneProperties<TComponentsUID>,
|
|
14
|
+
Attribute.ConfigurableOption,
|
|
15
|
+
Attribute.MinMaxOption,
|
|
16
|
+
Attribute.RequiredOption,
|
|
17
|
+
Attribute.WritableOption,
|
|
18
|
+
Attribute.VisibleOption
|
|
19
|
+
]>;
|
|
20
|
+
export type DynamicZoneValue<TComponentsUID extends UID.Component[]> = Array<Array.Values<TComponentsUID> extends infer TComponentUID ? TComponentUID extends UID.Component ? Intersect<[Data.Component<TComponentUID>, {
|
|
21
|
+
__component: TComponentUID;
|
|
22
|
+
}]> : never : never>;
|
|
23
|
+
export type GetDynamicZoneValue<TAttribute extends Attribute.Attribute> = TAttribute extends DynamicZone<infer TComponentsUID> ? DynamicZoneValue<TComponentsUID> : never;
|
|
24
|
+
export type DynamicZoneTargets<TAttribute extends Attribute.Attribute> = TAttribute extends DynamicZone<infer TComponentsUID> ? Array.Values<TComponentsUID> : never;
|
|
25
|
+
//# sourceMappingURL=dynamic-zone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-zone.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/dynamic-zone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,qBAAqB,CAAC,cAAc,SAAS,GAAG,CAAC,SAAS,EAAE;IAC3E,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,cAAc,SAAS,GAAG,CAAC,SAAS,EAAE,GAAG,GAAG,CAAC,SAAS,EAAE,IAAI,SAAS,CAC3F;IACE,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC;IAE/B,qBAAqB,CAAC,cAAc,CAAC;IAErC,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,cAAc,SAAS,GAAG,CAAC,SAAS,EAAE,IAAI,KAAK,CAE1E,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,SAAS,MAAM,aAAa,GACpD,aAAa,SAAS,GAAG,CAAC,SAAS,GACjC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE;IAAE,WAAW,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC,GAC1E,KAAK,GACP,KAAK,CACV,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IACpE,UAAU,SAAS,WAAW,CAAC,MAAM,cAAc,CAAC,GAAG,gBAAgB,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC;AAElG,MAAM,MAAM,kBAAkB,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IACnE,UAAU,SAAS,WAAW,CAAC,MAAM,cAAc,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents an email Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type Email = Intersect<[
|
|
7
|
+
Attribute.OfType<'email'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<EmailValue>,
|
|
10
|
+
Attribute.MinMaxLengthOption,
|
|
11
|
+
Attribute.PrivateOption,
|
|
12
|
+
Attribute.RequiredOption,
|
|
13
|
+
Attribute.UniqueOption,
|
|
14
|
+
Attribute.WritableOption,
|
|
15
|
+
Attribute.VisibleOption
|
|
16
|
+
]>;
|
|
17
|
+
export type EmailValue = string;
|
|
18
|
+
export type GetEmailValue<T extends Attribute.Attribute> = T extends Email ? EmailValue : never;
|
|
19
|
+
//# sourceMappingURL=email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,SAAS,CAC3B;IACE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;IAEzB,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC;IACnC,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Array, Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export interface EnumerationProperties<TValues extends string[] = []> {
|
|
4
|
+
enum: TValues;
|
|
5
|
+
enumName?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Represents an enumeration Strapi attribute along with its options
|
|
9
|
+
*/
|
|
10
|
+
export type Enumeration<TValues extends string[] = []> = Intersect<[
|
|
11
|
+
Attribute.OfType<'enumeration'>,
|
|
12
|
+
EnumerationProperties<TValues>,
|
|
13
|
+
Attribute.ConfigurableOption,
|
|
14
|
+
Attribute.DefaultOption<TValues[number]>,
|
|
15
|
+
Attribute.PrivateOption,
|
|
16
|
+
Attribute.RequiredOption,
|
|
17
|
+
Attribute.WritableOption,
|
|
18
|
+
Attribute.VisibleOption
|
|
19
|
+
]>;
|
|
20
|
+
export type EnumerationValue<TValues extends string[]> = Array.Values<TValues>;
|
|
21
|
+
export type GetEnumerationValue<TAttribute extends Attribute.Attribute> = TAttribute extends Enumeration<infer TValues> ? EnumerationValue<TValues> : never;
|
|
22
|
+
//# sourceMappingURL=enumeration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enumeration.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/enumeration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,qBAAqB,CAAC,OAAO,SAAS,MAAM,EAAE,GAAG,EAAE;IAClE,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,OAAO,SAAS,MAAM,EAAE,GAAG,EAAE,IAAI,SAAS,CAChE;IACE,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC;IAE/B,qBAAqB,CAAC,OAAO,CAAC;IAE9B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,OAAO,SAAS,MAAM,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE/E,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a float Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type Float = Intersect<[
|
|
7
|
+
Attribute.OfType<'float'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<FloatValue>,
|
|
10
|
+
Attribute.MinMaxOption,
|
|
11
|
+
Attribute.PrivateOption,
|
|
12
|
+
Attribute.RequiredOption,
|
|
13
|
+
Attribute.WritableOption,
|
|
14
|
+
Attribute.VisibleOption,
|
|
15
|
+
Attribute.UniqueOption
|
|
16
|
+
]>;
|
|
17
|
+
export type FloatValue = number;
|
|
18
|
+
export type GetFloatValue<T extends Attribute.Attribute> = T extends Float ? FloatValue : never;
|
|
19
|
+
//# sourceMappingURL=float.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"float.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/float.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,SAAS,CAC3B;IACE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;IAEzB,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC;IACnC,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,YAAY;CACvB,CACF,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type * from './blocks';
|
|
2
|
+
export type * from './biginteger';
|
|
3
|
+
export type * from './boolean';
|
|
4
|
+
export type * from './component';
|
|
5
|
+
export type * from './date-time';
|
|
6
|
+
export type * from './date';
|
|
7
|
+
export type * from './decimal';
|
|
8
|
+
export type * from './dynamic-zone';
|
|
9
|
+
export type * from './email';
|
|
10
|
+
export type * from './enumeration';
|
|
11
|
+
export type * from './float';
|
|
12
|
+
export type * from './integer';
|
|
13
|
+
export type * from './json';
|
|
14
|
+
export type * from './media';
|
|
15
|
+
export type * from './password';
|
|
16
|
+
export type * from './relation';
|
|
17
|
+
export type * from './richtext';
|
|
18
|
+
export type * from './string';
|
|
19
|
+
export type * from './text';
|
|
20
|
+
export type * from './time';
|
|
21
|
+
export type * from './timestamp';
|
|
22
|
+
export type * from './uid';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,OAAO,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
/**
|
|
4
|
+
* Represents an integer Strapi attribute along with its options
|
|
5
|
+
*/
|
|
6
|
+
export type Integer = Intersect<[
|
|
7
|
+
Attribute.OfType<'integer'>,
|
|
8
|
+
Attribute.ConfigurableOption,
|
|
9
|
+
Attribute.DefaultOption<IntegerValue>,
|
|
10
|
+
Attribute.MinMaxOption,
|
|
11
|
+
Attribute.PrivateOption,
|
|
12
|
+
Attribute.RequiredOption,
|
|
13
|
+
Attribute.WritableOption,
|
|
14
|
+
Attribute.VisibleOption,
|
|
15
|
+
Attribute.UniqueOption
|
|
16
|
+
]>;
|
|
17
|
+
export type IntegerValue = number;
|
|
18
|
+
export type GetIntegerValue<T extends Attribute.Attribute> = T extends Integer ? IntegerValue : never;
|
|
19
|
+
//# sourceMappingURL=integer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integer.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/integer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,SAAS,CAC7B;IACE,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC;IAE3B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC;IACrC,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,YAAY;CACvB,CACF,CAAC;AAEF,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"}
|