@strapi/types 5.0.0-alpha.5 → 5.0.0-alpha.8
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 +156 -0
- package/dist/core/strapi.d.ts.map +1 -0
- package/dist/data/component.d.ts +12 -0
- package/dist/data/component.d.ts.map +1 -0
- package/dist/data/constants.d.ts +2 -0
- package/dist/data/constants.d.ts.map +1 -0
- package/dist/data/content-type.d.ts +17 -0
- package/dist/data/content-type.d.ts.map +1 -0
- package/dist/data/entity.d.ts +9 -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 +11 -150
- 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/document-engine.d.ts +2 -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 +2 -2
- package/dist/modules/documents/index.d.ts.map +1 -1
- package/dist/modules/documents/middleware.d.ts +2 -2
- 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 +14 -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 +5 -4
- package/dist/modules/documents/params/index.d.ts.map +1 -1
- 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 +19 -17
- 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 +30 -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 +6 -6
- 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 +6 -4
- 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 +20 -18
- 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/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 +34 -0
- package/dist/public/registries.d.ts.map +1 -0
- package/dist/public/shared.d.ts +8 -0
- package/dist/public/shared.d.ts.map +1 -0
- package/dist/{types/core/attributes → schema/attribute}/base.d.ts +4 -30
- package/dist/schema/attribute/base.d.ts.map +1 -0
- package/dist/schema/attribute/common.d.ts +4 -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 +16 -0
- package/dist/schema/attribute/definitions/biginteger.d.ts.map +1 -0
- package/dist/{types/core/attributes → schema/attribute/definitions}/blocks.d.ts +17 -13
- package/dist/schema/attribute/definitions/blocks.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/boolean.d.ts +16 -0
- package/dist/schema/attribute/definitions/boolean.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/component.d.ts +22 -0
- package/dist/schema/attribute/definitions/component.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/date-time.d.ts +15 -0
- package/dist/schema/attribute/definitions/date-time.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/date.d.ts +15 -0
- package/dist/schema/attribute/definitions/date.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/decimal.d.ts +16 -0
- package/dist/schema/attribute/definitions/decimal.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/dynamic-zone.d.ts +22 -0
- package/dist/schema/attribute/definitions/dynamic-zone.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/email.d.ts +16 -0
- package/dist/schema/attribute/definitions/email.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/enumeration.d.ts +19 -0
- package/dist/schema/attribute/definitions/enumeration.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/float.d.ts +16 -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 +16 -0
- package/dist/schema/attribute/definitions/integer.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/json.d.ts +14 -0
- package/dist/schema/attribute/definitions/json.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/media.d.ts +21 -0
- package/dist/schema/attribute/definitions/media.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/password.d.ts +15 -0
- package/dist/schema/attribute/definitions/password.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/relation.d.ts +165 -0
- package/dist/schema/attribute/definitions/relation.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/richtext.d.ts +15 -0
- package/dist/schema/attribute/definitions/richtext.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/string.d.ts +22 -0
- package/dist/schema/attribute/definitions/string.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/text.d.ts +20 -0
- package/dist/schema/attribute/definitions/text.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/time.d.ts +15 -0
- package/dist/schema/attribute/definitions/time.d.ts.map +1 -0
- package/dist/schema/attribute/definitions/timestamp.d.ts +15 -0
- package/dist/schema/attribute/definitions/timestamp.d.ts.map +1 -0
- package/dist/{types/core/attributes → schema/attribute/definitions}/uid.d.ts +13 -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 +81 -0
- package/dist/schema/attribute/options.d.ts.map +1 -0
- package/dist/schema/attribute/utils.d.ts +60 -0
- package/dist/schema/attribute/utils.d.ts.map +1 -0
- package/dist/schema/index.d.ts +71 -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/{types/core/schemas/index.d.ts → struct/schema.d.ts} +46 -36
- package/dist/struct/schema.d.ts.map +1 -0
- package/dist/uid/index.d.ts +43 -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 +14 -12
- 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.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.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,15 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Date = Intersect<[
|
|
4
|
+
Attribute.OfType<'date'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<DateValue>,
|
|
7
|
+
Attribute.PrivateOption,
|
|
8
|
+
Attribute.RequiredOption,
|
|
9
|
+
Attribute.UniqueOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption
|
|
12
|
+
]>;
|
|
13
|
+
export type DateValue = globalThis.Date | string;
|
|
14
|
+
export type GetDateValue<T extends Attribute.Attribute> = T extends Date ? DateValue : never;
|
|
15
|
+
//# 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,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,16 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Decimal = Intersect<[
|
|
4
|
+
Attribute.OfType<'decimal'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<DecimalValue>,
|
|
7
|
+
Attribute.MinMaxOption,
|
|
8
|
+
Attribute.PrivateOption,
|
|
9
|
+
Attribute.RequiredOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption,
|
|
12
|
+
Attribute.UniqueOption
|
|
13
|
+
]>;
|
|
14
|
+
export type DecimalValue = number;
|
|
15
|
+
export type GetDecimalValue<T extends Attribute.Attribute> = T extends Decimal ? DecimalValue : never;
|
|
16
|
+
//# 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,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,22 @@
|
|
|
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
|
+
export type DynamicZone<TComponentsUID extends UID.Component[] = UID.Component[]> = Intersect<[
|
|
9
|
+
Attribute.OfType<'dynamiczone'>,
|
|
10
|
+
DynamicZoneProperties<TComponentsUID>,
|
|
11
|
+
Attribute.ConfigurableOption,
|
|
12
|
+
Attribute.MinMaxOption,
|
|
13
|
+
Attribute.RequiredOption,
|
|
14
|
+
Attribute.WritableOption,
|
|
15
|
+
Attribute.VisibleOption
|
|
16
|
+
]>;
|
|
17
|
+
export type DynamicZoneValue<TComponentsUID extends UID.Component[]> = Array<Array.Values<TComponentsUID> extends infer TComponentUID ? TComponentUID extends UID.Component ? Intersect<[Data.Component<TComponentUID>, {
|
|
18
|
+
__component: TComponentUID;
|
|
19
|
+
}]> : never : never>;
|
|
20
|
+
export type GetDynamicZoneValue<TAttribute extends Attribute.Attribute> = TAttribute extends DynamicZone<infer TComponentsUID> ? DynamicZoneValue<TComponentsUID> : never;
|
|
21
|
+
export type DynamicZoneTargets<TAttribute extends Attribute.Attribute> = TAttribute extends DynamicZone<infer TComponentsUID> ? Array.Values<TComponentsUID> : never;
|
|
22
|
+
//# 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,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,16 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Email = Intersect<[
|
|
4
|
+
Attribute.OfType<'email'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<EmailValue>,
|
|
7
|
+
Attribute.MinMaxLengthOption,
|
|
8
|
+
Attribute.PrivateOption,
|
|
9
|
+
Attribute.RequiredOption,
|
|
10
|
+
Attribute.UniqueOption,
|
|
11
|
+
Attribute.WritableOption,
|
|
12
|
+
Attribute.VisibleOption
|
|
13
|
+
]>;
|
|
14
|
+
export type EmailValue = string;
|
|
15
|
+
export type GetEmailValue<T extends Attribute.Attribute> = T extends Email ? EmailValue : never;
|
|
16
|
+
//# 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,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,19 @@
|
|
|
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
|
+
export type Enumeration<TValues extends string[] = []> = Intersect<[
|
|
8
|
+
Attribute.OfType<'enumeration'>,
|
|
9
|
+
EnumerationProperties<TValues>,
|
|
10
|
+
Attribute.ConfigurableOption,
|
|
11
|
+
Attribute.DefaultOption<TValues[number]>,
|
|
12
|
+
Attribute.PrivateOption,
|
|
13
|
+
Attribute.RequiredOption,
|
|
14
|
+
Attribute.WritableOption,
|
|
15
|
+
Attribute.VisibleOption
|
|
16
|
+
]>;
|
|
17
|
+
export type EnumerationValue<TValues extends string[]> = Array.Values<TValues>;
|
|
18
|
+
export type GetEnumerationValue<TAttribute extends Attribute.Attribute> = TAttribute extends Enumeration<infer TValues> ? EnumerationValue<TValues> : never;
|
|
19
|
+
//# 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,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,16 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Float = Intersect<[
|
|
4
|
+
Attribute.OfType<'float'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<FloatValue>,
|
|
7
|
+
Attribute.MinMaxOption,
|
|
8
|
+
Attribute.PrivateOption,
|
|
9
|
+
Attribute.RequiredOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption,
|
|
12
|
+
Attribute.UniqueOption
|
|
13
|
+
]>;
|
|
14
|
+
export type FloatValue = number;
|
|
15
|
+
export type GetFloatValue<T extends Attribute.Attribute> = T extends Float ? FloatValue : never;
|
|
16
|
+
//# 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,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,16 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Integer = Intersect<[
|
|
4
|
+
Attribute.OfType<'integer'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<IntegerValue>,
|
|
7
|
+
Attribute.MinMaxOption,
|
|
8
|
+
Attribute.PrivateOption,
|
|
9
|
+
Attribute.RequiredOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption,
|
|
12
|
+
Attribute.UniqueOption
|
|
13
|
+
]>;
|
|
14
|
+
export type IntegerValue = number;
|
|
15
|
+
export type GetIntegerValue<T extends Attribute.Attribute> = T extends Integer ? IntegerValue : never;
|
|
16
|
+
//# 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,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,14 @@
|
|
|
1
|
+
import type { Intersect, JSONValue, JSONPrimitive } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type JSON = Intersect<[
|
|
4
|
+
Attribute.OfType<'json'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.RequiredOption,
|
|
7
|
+
Attribute.PrivateOption,
|
|
8
|
+
Attribute.WritableOption,
|
|
9
|
+
Attribute.VisibleOption,
|
|
10
|
+
Attribute.DefaultOption<JSONPrimitive>
|
|
11
|
+
]>;
|
|
12
|
+
export type JsonValue = JSONValue;
|
|
13
|
+
export type GetJsonValue<T extends Attribute.Attribute> = T extends JSON ? JsonValue : never;
|
|
14
|
+
//# sourceMappingURL=json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,IAAI,GAAG,SAAS,CAC1B;IACE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;IAExB,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;IAGvB,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC;CACvC,CACF,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC;AAElC,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Constants, If, Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type MediaTargetUID = 'plugin::upload.file';
|
|
4
|
+
export type MediaKind = 'images' | 'videos' | 'files' | 'audios';
|
|
5
|
+
export interface MediaProperties<TKind extends MediaKind | undefined = undefined, TMultiple extends Constants.BooleanValue = Constants.False> {
|
|
6
|
+
allowedTypes?: TKind | TKind[];
|
|
7
|
+
multiple?: TMultiple;
|
|
8
|
+
}
|
|
9
|
+
export type Media<TKind extends MediaKind | undefined = undefined, TMultiple extends Constants.BooleanValue = Constants.False> = Intersect<[
|
|
10
|
+
Attribute.OfType<'media'>,
|
|
11
|
+
MediaProperties<TKind, TMultiple>,
|
|
12
|
+
Attribute.ConfigurableOption,
|
|
13
|
+
Attribute.RequiredOption,
|
|
14
|
+
Attribute.PrivateOption,
|
|
15
|
+
Attribute.WritableOption,
|
|
16
|
+
Attribute.VisibleOption
|
|
17
|
+
]>;
|
|
18
|
+
export type MediaValue<TMultiple extends Constants.BooleanValue = Constants.False> = If<TMultiple, any[], any>;
|
|
19
|
+
export type GetMediaValue<TAttribute extends Attribute.Attribute> = TAttribute extends Media<infer _TKind, infer TMultiple> ? MediaValue<TMultiple> : never;
|
|
20
|
+
export type MediaTarget<TAttribute extends Attribute.Attribute> = TAttribute extends Media ? MediaTargetUID : never;
|
|
21
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/media.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACnD,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,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,KAAK;IAE1D,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,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,KAAK,IACxD,SAAS,CACX;IACE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;IAEzB,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC;IAEjC,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAGF,MAAM,MAAM,UAAU,CAAC,SAAS,SAAS,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,KAAK,IAAI,EAAE,CACrF,SAAS,EACT,GAAG,EAAE,EACL,GAAG,CACJ,CAAC;AAEF,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,WAAW,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAAI,UAAU,SAAS,KAAK,GACtF,cAAc,GACd,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Password = Intersect<[
|
|
4
|
+
Attribute.OfType<'password'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<PasswordValue>,
|
|
7
|
+
Attribute.MinMaxLengthOption,
|
|
8
|
+
Attribute.PrivateOption,
|
|
9
|
+
Attribute.RequiredOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption
|
|
12
|
+
]>;
|
|
13
|
+
export type PasswordValue = string;
|
|
14
|
+
export type GetPasswordValue<T extends Attribute.Attribute> = T extends Password ? PasswordValue : never;
|
|
15
|
+
//# sourceMappingURL=password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/password.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,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,kBAAkB;IAC5B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import type { AttributeNamesByType, Attribute } from '../..';
|
|
2
|
+
import type { ContentType } from '../../../data';
|
|
3
|
+
import type { Guard, String, Extends, If, Intersect } from '../../../utils';
|
|
4
|
+
import type * as UID from '../../../uid';
|
|
5
|
+
export type Relation<TRelationKind extends RelationKind.Any = RelationKind.Any, TTargetUID extends UID.ContentType = UID.ContentType> = RelationWithTarget<Extract<TRelationKind, RelationKind.WithTarget>, TTargetUID> | RelationWithoutTarget<Extract<TRelationKind, RelationKind.WithoutTarget>>;
|
|
6
|
+
export type RelationWithTarget<TRelationKind extends RelationKind.WithTarget = RelationKind.WithTarget, TTargetUID extends UID.ContentType = UID.ContentType> = {
|
|
7
|
+
oneToOne: OneToOne<TTargetUID>;
|
|
8
|
+
oneToMany: OneToMany<TTargetUID>;
|
|
9
|
+
manyToOne: ManyToOne<TTargetUID>;
|
|
10
|
+
manyToMany: ManyToMany<TTargetUID>;
|
|
11
|
+
oneWay: OneWay<TTargetUID>;
|
|
12
|
+
manyWay: ManyWay<TTargetUID>;
|
|
13
|
+
morphOne: MorphOne<TTargetUID>;
|
|
14
|
+
morphMany: MorphMany<TTargetUID>;
|
|
15
|
+
}[TRelationKind];
|
|
16
|
+
type RelationWithoutTarget<TRelationKind extends RelationKind.WithoutTarget = RelationKind.WithoutTarget> = {
|
|
17
|
+
morphToOne: MorphToOne;
|
|
18
|
+
morphToMany: MorphToMany;
|
|
19
|
+
}[TRelationKind];
|
|
20
|
+
export type Bidirectional<TRelationKind extends RelationKind.BiDirectional = RelationKind.BiDirectional, TTargetUID extends UID.ContentType = UID.ContentType> = Relation<TRelationKind, TTargetUID>;
|
|
21
|
+
export type XWay<TRelationKind extends RelationKind.XWay = RelationKind.XWay, TTargetUID extends UID.ContentType = UID.ContentType> = Relation<TRelationKind, TTargetUID>;
|
|
22
|
+
export type MorphReference<TRelationKind extends RelationKind.MorphReference = RelationKind.MorphReference, TTargetUID extends UID.ContentType = UID.ContentType> = Relation<TRelationKind, TTargetUID>;
|
|
23
|
+
export type MorphOwner<TRelationKind extends RelationKind.MorphOwner = RelationKind.MorphOwner> = Relation<TRelationKind>;
|
|
24
|
+
export type RelationOptions = Intersect<[
|
|
25
|
+
Attribute.ConfigurableOption,
|
|
26
|
+
Attribute.PrivateOption,
|
|
27
|
+
Attribute.WritableOption,
|
|
28
|
+
Attribute.VisibleOption,
|
|
29
|
+
Attribute.RequiredOption,
|
|
30
|
+
{
|
|
31
|
+
useJoinTable?: boolean;
|
|
32
|
+
}
|
|
33
|
+
]>;
|
|
34
|
+
export type CommonBidirectionalProperties<TTargetUID extends UID.ContentType = UID.ContentType> = {
|
|
35
|
+
target: TTargetUID;
|
|
36
|
+
inversedBy?: string;
|
|
37
|
+
mappedBy?: string;
|
|
38
|
+
};
|
|
39
|
+
export type OneToOne<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
40
|
+
Attribute.OfType<'relation'>,
|
|
41
|
+
CommonBidirectionalProperties<TTargetUID>,
|
|
42
|
+
RelationOptions,
|
|
43
|
+
{
|
|
44
|
+
relation: 'oneToOne';
|
|
45
|
+
}
|
|
46
|
+
]>;
|
|
47
|
+
export type OneToMany<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
48
|
+
Attribute.OfType<'relation'>,
|
|
49
|
+
CommonBidirectionalProperties<TTargetUID>,
|
|
50
|
+
RelationOptions,
|
|
51
|
+
{
|
|
52
|
+
relation: 'oneToMany';
|
|
53
|
+
}
|
|
54
|
+
]>;
|
|
55
|
+
export type ManyToOne<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
56
|
+
Attribute.OfType<'relation'>,
|
|
57
|
+
CommonBidirectionalProperties<TTargetUID>,
|
|
58
|
+
RelationOptions,
|
|
59
|
+
{
|
|
60
|
+
relation: 'manyToOne';
|
|
61
|
+
}
|
|
62
|
+
]>;
|
|
63
|
+
export type ManyToMany<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
64
|
+
Attribute.OfType<'relation'>,
|
|
65
|
+
CommonBidirectionalProperties<TTargetUID>,
|
|
66
|
+
RelationOptions,
|
|
67
|
+
{
|
|
68
|
+
relation: 'manyToMany';
|
|
69
|
+
}
|
|
70
|
+
]>;
|
|
71
|
+
export type XWayCommonProperties<TTargetUID extends UID.ContentType = UID.ContentType> = {
|
|
72
|
+
target: TTargetUID;
|
|
73
|
+
};
|
|
74
|
+
export type OneWay<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
75
|
+
Attribute.OfType<'relation'>,
|
|
76
|
+
XWayCommonProperties<TTargetUID>,
|
|
77
|
+
RelationOptions,
|
|
78
|
+
{
|
|
79
|
+
relation: 'oneWay';
|
|
80
|
+
}
|
|
81
|
+
]>;
|
|
82
|
+
export type ManyWay<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
83
|
+
Attribute.OfType<'relation'>,
|
|
84
|
+
XWayCommonProperties<TTargetUID>,
|
|
85
|
+
RelationOptions,
|
|
86
|
+
{
|
|
87
|
+
relation: 'manyWay';
|
|
88
|
+
}
|
|
89
|
+
]>;
|
|
90
|
+
export type MorphReferenceCommonProperties<TTargetUID extends UID.ContentType = UID.ContentType> = {
|
|
91
|
+
target: TTargetUID;
|
|
92
|
+
morphBy?: Guard.Never<AttributeNamesByType<TTargetUID, 'relation', {
|
|
93
|
+
relation: RelationKind.MorphOwner;
|
|
94
|
+
}>, string>;
|
|
95
|
+
};
|
|
96
|
+
export type MorphOne<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
97
|
+
Attribute.OfType<'relation'>,
|
|
98
|
+
MorphReferenceCommonProperties<TTargetUID>,
|
|
99
|
+
RelationOptions,
|
|
100
|
+
{
|
|
101
|
+
relation: 'morphOne';
|
|
102
|
+
}
|
|
103
|
+
]>;
|
|
104
|
+
export type MorphMany<TTargetUID extends UID.ContentType = UID.ContentType> = Intersect<[
|
|
105
|
+
Attribute.OfType<'relation'>,
|
|
106
|
+
MorphReferenceCommonProperties<TTargetUID>,
|
|
107
|
+
RelationOptions,
|
|
108
|
+
{
|
|
109
|
+
relation: 'morphMany';
|
|
110
|
+
}
|
|
111
|
+
]>;
|
|
112
|
+
export type MorphToOne = Intersect<[
|
|
113
|
+
Attribute.OfType<'relation'>,
|
|
114
|
+
RelationOptions,
|
|
115
|
+
{
|
|
116
|
+
relation: 'morphToOne';
|
|
117
|
+
}
|
|
118
|
+
]>;
|
|
119
|
+
export type MorphToMany = Intersect<[
|
|
120
|
+
Attribute.OfType<'relation'>,
|
|
121
|
+
RelationOptions,
|
|
122
|
+
{
|
|
123
|
+
relation: 'morphToMany';
|
|
124
|
+
}
|
|
125
|
+
]>;
|
|
126
|
+
export type RelationPluralityModifier<TRelationKind extends RelationKind.Any, TValue> = If<IsManyRelation<TRelationKind>, TValue[], TValue>;
|
|
127
|
+
export type IsManyRelation<TRelationKind extends RelationKind.Any> = String.EndsWith<TRelationKind, 'Many'>;
|
|
128
|
+
export type RelationTarget<TAttribute extends Attribute.Attribute> = TAttribute extends Relation<RelationKind.WithTarget, infer TTarget> ? TTarget : never;
|
|
129
|
+
export type RelationValue<TRelationKind extends RelationKind.Any, TTargetUID extends UID.ContentType = never> = {
|
|
130
|
+
oneToOne: ContentType<TTargetUID>;
|
|
131
|
+
oneToMany: ContentType<TTargetUID>[];
|
|
132
|
+
manyToOne: ContentType<TTargetUID>;
|
|
133
|
+
manyToMany: ContentType<TTargetUID>[];
|
|
134
|
+
oneWay: ContentType<TTargetUID>;
|
|
135
|
+
manyWay: ContentType<TTargetUID>[];
|
|
136
|
+
morphOne: ContentType<TTargetUID>;
|
|
137
|
+
morphMany: ContentType<TTargetUID>[];
|
|
138
|
+
morphToOne: ContentType;
|
|
139
|
+
morphToMany: ContentType[];
|
|
140
|
+
}[TRelationKind];
|
|
141
|
+
export type GetRelationValue<TAttribute extends Attribute.Attribute> = TAttribute extends Relation<RelationKind.WithoutTarget> ? RelationValue<TAttribute['relation']> : TAttribute extends Relation<RelationKind.WithTarget, UID.ContentType> ? RelationValue<TAttribute['relation'], TAttribute['target']> : never;
|
|
142
|
+
export declare namespace RelationKind {
|
|
143
|
+
type GetOppositePlurality<TPlurality extends RelationKind.Left | RelationKind.Right> = {
|
|
144
|
+
one: 'many';
|
|
145
|
+
One: 'Many';
|
|
146
|
+
many: 'one';
|
|
147
|
+
Many: 'One';
|
|
148
|
+
}[TPlurality];
|
|
149
|
+
export type Plurality = 'one' | 'many';
|
|
150
|
+
export type Left = Lowercase<RelationKind.Plurality>;
|
|
151
|
+
export type Right = Capitalize<RelationKind.Plurality>;
|
|
152
|
+
export type MorphOwner = `morphTo${RelationKind.Right}`;
|
|
153
|
+
export type MorphReference = `morph${RelationKind.Right}`;
|
|
154
|
+
export type Morph = RelationKind.MorphOwner | RelationKind.MorphReference;
|
|
155
|
+
export type XWay = `${RelationKind.Left}Way`;
|
|
156
|
+
export type BiDirectional = `${RelationKind.Left}To${RelationKind.Right}`;
|
|
157
|
+
export type UniDirectional = RelationKind.MorphReference | RelationKind.XWay;
|
|
158
|
+
export type Any = RelationKind.BiDirectional | RelationKind.Morph | RelationKind.XWay;
|
|
159
|
+
export type WithTarget = RelationKind.BiDirectional | RelationKind.XWay | RelationKind.MorphReference;
|
|
160
|
+
export type WithoutTarget = RelationKind.MorphOwner;
|
|
161
|
+
export type Reverse<TRelationKind extends RelationKind.Any> = TRelationKind extends `${infer TLeft extends RelationKind.Left}To${infer TRight extends RelationKind.Right}` ? If<Extends<Uppercase<TLeft>, Uppercase<TRight>>, TRelationKind, `${GetOppositePlurality<TLeft>}To${GetOppositePlurality<TRight>}`> : TRelationKind;
|
|
162
|
+
export {};
|
|
163
|
+
}
|
|
164
|
+
export {};
|
|
165
|
+
//# sourceMappingURL=relation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/relation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,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AAG,GAAG,YAAY,CAAC,aAAa,GAAG,YAAY,CAAC,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC;IAEtF,MAAM,MAAM,UAAU,GAClB,YAAY,CAAC,aAAa,GAC1B,YAAY,CAAC,IAAI,GACjB,YAAY,CAAC,cAAc,CAAC;IAEhC,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,UAAU,CAAC;IAEpD,MAAM,MAAM,OAAO,CAAC,aAAa,SAAS,YAAY,CAAC,GAAG,IACxD,aAAa,SAAS,GAAG,MAAM,KAAK,SAAS,YAAY,CAAC,IAAI,KAAK,MAAM,MAAM,SAAS,YAAY,CAAC,KAAK,EAAE,GACxG,EAAE,CACA,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAC5C,aAAa,EACb,GAAG,oBAAoB,CAAC,KAAK,CAAC,KAAK,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAClE,GACD,aAAa,CAAC;;CACrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type RichText = Intersect<[
|
|
4
|
+
Attribute.OfType<'richtext'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<RichTextValue>,
|
|
7
|
+
Attribute.MinMaxLengthOption,
|
|
8
|
+
Attribute.PrivateOption,
|
|
9
|
+
Attribute.RequiredOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption
|
|
12
|
+
]>;
|
|
13
|
+
export type RichTextValue = string;
|
|
14
|
+
export type GetRichTextValue<T extends Attribute.Attribute> = T extends RichText ? RichTextValue : never;
|
|
15
|
+
//# sourceMappingURL=richtext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"richtext.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/richtext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,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,kBAAkB;IAC5B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export interface StringProperties {
|
|
4
|
+
regex?: RegExp;
|
|
5
|
+
}
|
|
6
|
+
type StringAttribute = Intersect<[
|
|
7
|
+
Attribute.OfType<'string'>,
|
|
8
|
+
StringProperties,
|
|
9
|
+
Attribute.ConfigurableOption,
|
|
10
|
+
Attribute.DefaultOption<StringValue>,
|
|
11
|
+
Attribute.MinMaxLengthOption,
|
|
12
|
+
Attribute.PrivateOption,
|
|
13
|
+
Attribute.UniqueOption,
|
|
14
|
+
Attribute.RequiredOption,
|
|
15
|
+
Attribute.WritableOption,
|
|
16
|
+
Attribute.VisibleOption
|
|
17
|
+
]>;
|
|
18
|
+
export type StringValue = string;
|
|
19
|
+
export type GetStringValue<T extends Attribute.Attribute> = T extends StringAttribute ? StringValue : never;
|
|
20
|
+
export type String = StringAttribute;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,eAAe,GAAG,SAAS,CAC9B;IACE,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;IAE1B,gBAAgB;IAEhB,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,WAAW,CAAC;IACpC,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,eAAe,GACjF,WAAW,GACX,KAAK,CAAC;AAEV,MAAM,MAAM,MAAM,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export interface TextProperties {
|
|
4
|
+
regex?: RegExp;
|
|
5
|
+
}
|
|
6
|
+
export type Text = Intersect<[
|
|
7
|
+
Attribute.OfType<'text'>,
|
|
8
|
+
TextProperties,
|
|
9
|
+
Attribute.ConfigurableOption,
|
|
10
|
+
Attribute.DefaultOption<TextValue>,
|
|
11
|
+
Attribute.MinMaxLengthOption,
|
|
12
|
+
Attribute.PrivateOption,
|
|
13
|
+
Attribute.UniqueOption,
|
|
14
|
+
Attribute.RequiredOption,
|
|
15
|
+
Attribute.WritableOption,
|
|
16
|
+
Attribute.VisibleOption
|
|
17
|
+
]>;
|
|
18
|
+
export type TextValue = string;
|
|
19
|
+
export type GetTextValue<T extends Attribute.Attribute> = T extends Text ? TextValue : never;
|
|
20
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,IAAI,GAAG,SAAS,CAC1B;IACE,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;IAExB,cAAc;IAEd,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC;IAClC,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,YAAY;IACtB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,cAAc;IACxB,SAAS,CAAC,aAAa;CACxB,CACF,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Time = Intersect<[
|
|
4
|
+
Attribute.OfType<'time'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<TimeValue>,
|
|
7
|
+
Attribute.PrivateOption,
|
|
8
|
+
Attribute.RequiredOption,
|
|
9
|
+
Attribute.UniqueOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption
|
|
12
|
+
]>;
|
|
13
|
+
export type TimeValue = globalThis.Date | string;
|
|
14
|
+
export type GetTimeValue<T extends Attribute.Attribute> = T extends Time ? TimeValue : never;
|
|
15
|
+
//# sourceMappingURL=time.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/time.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,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,15 @@
|
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
3
|
+
export type Timestamp = Intersect<[
|
|
4
|
+
Attribute.OfType<'timestamp'>,
|
|
5
|
+
Attribute.ConfigurableOption,
|
|
6
|
+
Attribute.DefaultOption<TimestampValue>,
|
|
7
|
+
Attribute.PrivateOption,
|
|
8
|
+
Attribute.RequiredOption,
|
|
9
|
+
Attribute.UniqueOption,
|
|
10
|
+
Attribute.WritableOption,
|
|
11
|
+
Attribute.VisibleOption
|
|
12
|
+
]>;
|
|
13
|
+
export type TimestampValue = globalThis.Date | number | string;
|
|
14
|
+
export type GetTimestampValue<T extends Attribute.Attribute> = T extends Timestamp ? TimestampValue : never;
|
|
15
|
+
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/timestamp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,SAAS,GAAG,SAAS,CAC/B;IACE,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC;IAE7B,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,aAAa,CAAC,cAAc,CAAC;IACvC,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,cAAc,GAAG,UAAU,CAAC,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/D,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,SAAS,GAC9E,cAAc,GACd,KAAK,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Intersect } from '../../../utils';
|
|
2
|
+
import type { Attribute } from '../..';
|
|
2
3
|
export interface UIDOptions {
|
|
3
4
|
separator?: string;
|
|
4
5
|
lowercase?: boolean;
|
|
@@ -10,7 +11,17 @@ export interface UIDProperties<TTargetAttribute extends string = string, TOption
|
|
|
10
11
|
targetField?: TTargetAttribute;
|
|
11
12
|
options?: UIDOptions & TOptions;
|
|
12
13
|
}
|
|
13
|
-
export type UID<TTargetAttribute extends string = string, TOptions extends UIDOptions = UIDOptions> =
|
|
14
|
+
export type UID<TTargetAttribute extends string = string, TOptions extends UIDOptions = UIDOptions> = Intersect<[
|
|
15
|
+
Attribute.OfType<'uid'>,
|
|
16
|
+
UIDProperties<TTargetAttribute, TOptions>,
|
|
17
|
+
Attribute.ConfigurableOption,
|
|
18
|
+
Attribute.DefaultOption<UIDValue>,
|
|
19
|
+
Attribute.MinMaxLengthOption,
|
|
20
|
+
Attribute.PrivateOption,
|
|
21
|
+
Attribute.RequiredOption,
|
|
22
|
+
Attribute.WritableOption,
|
|
23
|
+
Attribute.VisibleOption
|
|
24
|
+
]>;
|
|
14
25
|
export type UIDValue = string;
|
|
15
26
|
export type GetUIDValue<TAttribute extends Attribute.Attribute> = TAttribute extends UID ? UIDValue : never;
|
|
16
27
|
//# sourceMappingURL=uid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../../../src/schema/attribute/definitions/uid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC7C,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,aAAa,CAC5B,gBAAgB,SAAS,MAAM,GAAG,MAAM,EACxC,QAAQ,SAAS,UAAU,GAAG,UAAU;IAExC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,OAAO,CAAC,EAAE,UAAU,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