@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.
Files changed (407) hide show
  1. package/dist/core/api.d.ts +3 -0
  2. package/dist/core/api.d.ts.map +1 -0
  3. package/dist/{types/core → core}/commands/index.d.ts +1 -1
  4. package/dist/core/commands/index.d.ts.map +1 -0
  5. package/dist/core/config/admin.d.ts.map +1 -0
  6. package/dist/core/config/api.d.ts.map +1 -0
  7. package/dist/{types/core → core}/config/database.d.ts +2 -2
  8. package/dist/core/config/database.d.ts.map +1 -0
  9. package/dist/core/config/index.d.ts.map +1 -0
  10. package/dist/{types/core → core}/config/middlewares.d.ts +1 -1
  11. package/dist/core/config/middlewares.d.ts.map +1 -0
  12. package/dist/core/config/plugin.d.ts.map +1 -0
  13. package/dist/{types/core → core}/config/server.d.ts +0 -4
  14. package/dist/core/config/server.d.ts.map +1 -0
  15. package/dist/core/config/shared.d.ts.map +1 -0
  16. package/dist/core/container.d.ts.map +1 -0
  17. package/dist/{types/core/common → core}/controller.d.ts +1 -1
  18. package/dist/core/controller.d.ts.map +1 -0
  19. package/dist/{types → core}/core-api/controller.d.ts +16 -14
  20. package/dist/core/core-api/controller.d.ts.map +1 -0
  21. package/dist/core/core-api/index.d.ts.map +1 -0
  22. package/dist/{types → core}/core-api/router.d.ts +7 -6
  23. package/dist/core/core-api/router.d.ts.map +1 -0
  24. package/dist/{types → core}/core-api/service.d.ts +7 -6
  25. package/dist/core/core-api/service.d.ts.map +1 -0
  26. package/dist/core/index.d.ts +14 -0
  27. package/dist/core/index.d.ts.map +1 -0
  28. package/dist/{types/core/common → core}/middleware.d.ts +3 -2
  29. package/dist/core/middleware.d.ts.map +1 -0
  30. package/dist/core/module.d.ts +26 -0
  31. package/dist/core/module.d.ts.map +1 -0
  32. package/dist/core/plugin.d.ts +6 -0
  33. package/dist/core/plugin.d.ts.map +1 -0
  34. package/dist/core/policy.d.ts +15 -0
  35. package/dist/core/policy.d.ts.map +1 -0
  36. package/dist/core/router.d.ts.map +1 -0
  37. package/dist/core/service.d.ts.map +1 -0
  38. package/dist/core/strapi.d.ts +143 -0
  39. package/dist/core/strapi.d.ts.map +1 -0
  40. package/dist/data/component.d.ts +21 -0
  41. package/dist/data/component.d.ts.map +1 -0
  42. package/dist/data/constants.d.ts +5 -0
  43. package/dist/data/constants.d.ts.map +1 -0
  44. package/dist/data/content-type.d.ts +26 -0
  45. package/dist/data/content-type.d.ts.map +1 -0
  46. package/dist/data/entity.d.ts +15 -0
  47. package/dist/data/entity.d.ts.map +1 -0
  48. package/dist/data/index.d.ts +5 -0
  49. package/dist/data/index.d.ts.map +1 -0
  50. package/dist/index.d.ts +13 -152
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/internal/index.d.ts +13 -0
  53. package/dist/internal/index.d.ts.map +1 -0
  54. package/dist/{types/core → internal}/namespace.d.ts +6 -6
  55. package/dist/internal/namespace.d.ts.map +1 -0
  56. package/dist/internal/registry.d.ts +8 -0
  57. package/dist/internal/registry.d.ts.map +1 -0
  58. package/dist/{types/core → internal}/uid.d.ts +20 -13
  59. package/dist/internal/uid.d.ts.map +1 -0
  60. package/dist/modules/auth.d.ts +4 -4
  61. package/dist/modules/auth.d.ts.map +1 -1
  62. package/dist/modules/content-api.d.ts +5 -3
  63. package/dist/modules/content-api.d.ts.map +1 -1
  64. package/dist/modules/core-store.d.ts +3 -3
  65. package/dist/modules/core-store.d.ts.map +1 -1
  66. package/dist/modules/cron.d.ts +1 -1
  67. package/dist/modules/cron.d.ts.map +1 -1
  68. package/dist/modules/documents/component-extension.d.ts +22 -0
  69. package/dist/modules/documents/component-extension.d.ts.map +1 -0
  70. package/dist/modules/documents/document-engine.d.ts +1 -0
  71. package/dist/modules/documents/document-engine.d.ts.map +1 -0
  72. package/dist/modules/documents/draft-and-publish.d.ts +7 -7
  73. package/dist/modules/documents/draft-and-publish.d.ts.map +1 -1
  74. package/dist/modules/documents/index.d.ts +10 -4
  75. package/dist/modules/documents/index.d.ts.map +1 -1
  76. package/dist/modules/documents/middleware.d.ts +13 -8
  77. package/dist/modules/documents/middleware.d.ts.map +1 -1
  78. package/dist/modules/documents/params/attributes.d.ts +33 -30
  79. package/dist/modules/documents/params/attributes.d.ts.map +1 -1
  80. package/dist/modules/documents/params/data.d.ts +2 -2
  81. package/dist/modules/documents/params/data.d.ts.map +1 -1
  82. package/dist/modules/documents/params/document-engine.d.ts +27 -14
  83. package/dist/modules/documents/params/document-engine.d.ts.map +1 -1
  84. package/dist/modules/documents/params/fields.d.ts +7 -5
  85. package/dist/modules/documents/params/fields.d.ts.map +1 -1
  86. package/dist/modules/documents/params/filters/index.d.ts +11 -9
  87. package/dist/modules/documents/params/filters/index.d.ts.map +1 -1
  88. package/dist/modules/documents/params/index.d.ts +21 -8
  89. package/dist/modules/documents/params/index.d.ts.map +1 -1
  90. package/dist/modules/documents/params/locale.d.ts +4 -0
  91. package/dist/modules/documents/params/locale.d.ts.map +1 -0
  92. package/dist/modules/documents/params/pagination.d.ts +2 -2
  93. package/dist/modules/documents/params/pagination.d.ts.map +1 -1
  94. package/dist/modules/documents/params/populate.d.ts +18 -18
  95. package/dist/modules/documents/params/populate.d.ts.map +1 -1
  96. package/dist/modules/documents/params/sort.d.ts +10 -8
  97. package/dist/modules/documents/params/sort.d.ts.map +1 -1
  98. package/dist/modules/documents/plugin.d.ts +8 -5
  99. package/dist/modules/documents/plugin.d.ts.map +1 -1
  100. package/dist/modules/documents/result/document-engine.d.ts +34 -0
  101. package/dist/modules/documents/result/document-engine.d.ts.map +1 -0
  102. package/dist/modules/documents/result/index.d.ts +38 -35
  103. package/dist/modules/documents/result/index.d.ts.map +1 -1
  104. package/dist/modules/documents/service-instance.d.ts +41 -16
  105. package/dist/modules/documents/service-instance.d.ts.map +1 -1
  106. package/dist/modules/entity-service/index.d.ts +22 -22
  107. package/dist/modules/entity-service/index.d.ts.map +1 -1
  108. package/dist/modules/entity-service/params/attributes/id.d.ts +2 -2
  109. package/dist/modules/entity-service/params/attributes/id.d.ts.map +1 -1
  110. package/dist/modules/entity-service/params/attributes/index.d.ts +21 -19
  111. package/dist/modules/entity-service/params/attributes/index.d.ts.map +1 -1
  112. package/dist/modules/entity-service/params/attributes/literals.d.ts +1 -1
  113. package/dist/modules/entity-service/params/attributes/literals.d.ts.map +1 -1
  114. package/dist/modules/entity-service/params/attributes/relation.d.ts +7 -5
  115. package/dist/modules/entity-service/params/attributes/relation.d.ts.map +1 -1
  116. package/dist/modules/entity-service/params/attributes/utils.d.ts +8 -6
  117. package/dist/modules/entity-service/params/attributes/utils.d.ts.map +1 -1
  118. package/dist/modules/entity-service/params/data.d.ts +2 -2
  119. package/dist/modules/entity-service/params/data.d.ts.map +1 -1
  120. package/dist/modules/entity-service/params/fields.d.ts +7 -5
  121. package/dist/modules/entity-service/params/fields.d.ts.map +1 -1
  122. package/dist/modules/entity-service/params/filters/index.d.ts +17 -15
  123. package/dist/modules/entity-service/params/filters/index.d.ts.map +1 -1
  124. package/dist/modules/entity-service/params/index.d.ts +4 -3
  125. package/dist/modules/entity-service/params/index.d.ts.map +1 -1
  126. package/dist/modules/entity-service/params/pagination.d.ts +1 -2
  127. package/dist/modules/entity-service/params/pagination.d.ts.map +1 -1
  128. package/dist/modules/entity-service/params/populate.d.ts +19 -19
  129. package/dist/modules/entity-service/params/populate.d.ts.map +1 -1
  130. package/dist/modules/entity-service/params/sort.d.ts +11 -9
  131. package/dist/modules/entity-service/params/sort.d.ts.map +1 -1
  132. package/dist/modules/entity-service/plugin.d.ts +8 -5
  133. package/dist/modules/entity-service/plugin.d.ts.map +1 -1
  134. package/dist/modules/entity-service/result.d.ts +34 -45
  135. package/dist/modules/entity-service/result.d.ts.map +1 -1
  136. package/dist/modules/entity-validator.d.ts +5 -4
  137. package/dist/modules/entity-validator.d.ts.map +1 -1
  138. package/dist/modules/event-hub.d.ts +1 -0
  139. package/dist/modules/event-hub.d.ts.map +1 -1
  140. package/dist/modules/features.d.ts +0 -1
  141. package/dist/modules/features.d.ts.map +1 -1
  142. package/dist/modules/index.d.ts +20 -0
  143. package/dist/modules/index.d.ts.map +1 -0
  144. package/dist/modules/permissions.d.ts +14 -0
  145. package/dist/modules/permissions.d.ts.map +1 -0
  146. package/dist/modules/sanitizers.d.ts +4 -5
  147. package/dist/modules/sanitizers.d.ts.map +1 -1
  148. package/dist/modules/server.d.ts +3 -3
  149. package/dist/modules/server.d.ts.map +1 -1
  150. package/dist/modules/validators.d.ts +4 -5
  151. package/dist/modules/validators.d.ts.map +1 -1
  152. package/dist/plugin/config/index.d.ts.map +1 -0
  153. package/dist/plugin/config/strapi-admin/index.d.ts.map +1 -0
  154. package/dist/plugin/config/strapi-server/config.d.ts.map +1 -0
  155. package/dist/{types/core/plugins → plugin}/config/strapi-server/content-types.d.ts +2 -2
  156. package/dist/plugin/config/strapi-server/content-types.d.ts.map +1 -0
  157. package/dist/plugin/config/strapi-server/controllers.d.ts +8 -0
  158. package/dist/plugin/config/strapi-server/controllers.d.ts.map +1 -0
  159. package/dist/plugin/config/strapi-server/index.d.ts.map +1 -0
  160. package/dist/{types/core/plugins → plugin}/config/strapi-server/lifecycle.d.ts +1 -1
  161. package/dist/plugin/config/strapi-server/lifecycle.d.ts.map +1 -0
  162. package/dist/plugin/config/strapi-server/routes.d.ts +11 -0
  163. package/dist/plugin/config/strapi-server/routes.d.ts.map +1 -0
  164. package/dist/plugin/index.d.ts +37 -0
  165. package/dist/plugin/index.d.ts.map +1 -0
  166. package/dist/public/index.d.ts +6 -0
  167. package/dist/public/index.d.ts.map +1 -0
  168. package/dist/public/registries.d.ts +72 -0
  169. package/dist/public/registries.d.ts.map +1 -0
  170. package/dist/public/shared.d.ts +61 -0
  171. package/dist/public/shared.d.ts.map +1 -0
  172. package/dist/schema/attribute/base.d.ts +65 -0
  173. package/dist/schema/attribute/base.d.ts.map +1 -0
  174. package/dist/schema/attribute/common.d.ts +13 -0
  175. package/dist/schema/attribute/common.d.ts.map +1 -0
  176. package/dist/schema/attribute/constants.d.ts +12 -0
  177. package/dist/schema/attribute/constants.d.ts.map +1 -0
  178. package/dist/schema/attribute/definitions/biginteger.d.ts +19 -0
  179. package/dist/schema/attribute/definitions/biginteger.d.ts.map +1 -0
  180. package/dist/{types/core/attributes → schema/attribute/definitions}/blocks.d.ts +21 -13
  181. package/dist/schema/attribute/definitions/blocks.d.ts.map +1 -0
  182. package/dist/schema/attribute/definitions/boolean.d.ts +19 -0
  183. package/dist/schema/attribute/definitions/boolean.d.ts.map +1 -0
  184. package/dist/schema/attribute/definitions/component.d.ts +25 -0
  185. package/dist/schema/attribute/definitions/component.d.ts.map +1 -0
  186. package/dist/schema/attribute/definitions/date-time.d.ts +18 -0
  187. package/dist/schema/attribute/definitions/date-time.d.ts.map +1 -0
  188. package/dist/schema/attribute/definitions/date.d.ts +18 -0
  189. package/dist/schema/attribute/definitions/date.d.ts.map +1 -0
  190. package/dist/schema/attribute/definitions/decimal.d.ts +19 -0
  191. package/dist/schema/attribute/definitions/decimal.d.ts.map +1 -0
  192. package/dist/schema/attribute/definitions/dynamic-zone.d.ts +25 -0
  193. package/dist/schema/attribute/definitions/dynamic-zone.d.ts.map +1 -0
  194. package/dist/schema/attribute/definitions/email.d.ts +19 -0
  195. package/dist/schema/attribute/definitions/email.d.ts.map +1 -0
  196. package/dist/schema/attribute/definitions/enumeration.d.ts +22 -0
  197. package/dist/schema/attribute/definitions/enumeration.d.ts.map +1 -0
  198. package/dist/schema/attribute/definitions/float.d.ts +19 -0
  199. package/dist/schema/attribute/definitions/float.d.ts.map +1 -0
  200. package/dist/schema/attribute/definitions/index.d.ts +23 -0
  201. package/dist/schema/attribute/definitions/index.d.ts.map +1 -0
  202. package/dist/schema/attribute/definitions/integer.d.ts +19 -0
  203. package/dist/schema/attribute/definitions/integer.d.ts.map +1 -0
  204. package/dist/schema/attribute/definitions/json.d.ts +17 -0
  205. package/dist/schema/attribute/definitions/json.d.ts.map +1 -0
  206. package/dist/schema/attribute/definitions/media.d.ts +24 -0
  207. package/dist/schema/attribute/definitions/media.d.ts.map +1 -0
  208. package/dist/schema/attribute/definitions/password.d.ts +18 -0
  209. package/dist/schema/attribute/definitions/password.d.ts.map +1 -0
  210. package/dist/schema/attribute/definitions/relation.d.ts +168 -0
  211. package/dist/schema/attribute/definitions/relation.d.ts.map +1 -0
  212. package/dist/schema/attribute/definitions/richtext.d.ts +18 -0
  213. package/dist/schema/attribute/definitions/richtext.d.ts.map +1 -0
  214. package/dist/schema/attribute/definitions/string.d.ts +28 -0
  215. package/dist/schema/attribute/definitions/string.d.ts.map +1 -0
  216. package/dist/schema/attribute/definitions/text.d.ts +23 -0
  217. package/dist/schema/attribute/definitions/text.d.ts.map +1 -0
  218. package/dist/schema/attribute/definitions/time.d.ts +18 -0
  219. package/dist/schema/attribute/definitions/time.d.ts.map +1 -0
  220. package/dist/schema/attribute/definitions/timestamp.d.ts +18 -0
  221. package/dist/schema/attribute/definitions/timestamp.d.ts.map +1 -0
  222. package/dist/{types/core/attributes → schema/attribute/definitions}/uid.d.ts +16 -2
  223. package/dist/schema/attribute/definitions/uid.d.ts.map +1 -0
  224. package/dist/schema/attribute/index.d.ts +7 -0
  225. package/dist/schema/attribute/index.d.ts.map +1 -0
  226. package/dist/schema/attribute/options.d.ts +221 -0
  227. package/dist/schema/attribute/options.d.ts.map +1 -0
  228. package/dist/schema/attribute/utils.d.ts +101 -0
  229. package/dist/schema/attribute/utils.d.ts.map +1 -0
  230. package/dist/schema/index.d.ts +144 -0
  231. package/dist/schema/index.d.ts.map +1 -0
  232. package/dist/struct/index.d.ts +3 -0
  233. package/dist/struct/index.d.ts.map +1 -0
  234. package/dist/struct/schema-definition.d.ts +10 -0
  235. package/dist/struct/schema-definition.d.ts.map +1 -0
  236. package/dist/struct/schema.d.ts +248 -0
  237. package/dist/struct/schema.d.ts.map +1 -0
  238. package/dist/uid/index.d.ts +168 -0
  239. package/dist/uid/index.d.ts.map +1 -0
  240. package/dist/utils/array.d.ts +80 -0
  241. package/dist/utils/array.d.ts.map +1 -0
  242. package/dist/utils/constants.d.ts +67 -0
  243. package/dist/utils/constants.d.ts.map +1 -0
  244. package/dist/utils/expression.d.ts +490 -0
  245. package/dist/utils/expression.d.ts.map +1 -0
  246. package/dist/utils/function.d.ts +21 -0
  247. package/dist/utils/function.d.ts.map +1 -0
  248. package/dist/utils/guard.d.ts +90 -0
  249. package/dist/utils/guard.d.ts.map +1 -0
  250. package/dist/utils/index.d.ts +180 -0
  251. package/dist/utils/index.d.ts.map +1 -0
  252. package/dist/utils/json.d.ts +119 -0
  253. package/dist/utils/json.d.ts.map +1 -0
  254. package/dist/utils/object.d.ts +180 -0
  255. package/dist/utils/object.d.ts.map +1 -0
  256. package/dist/utils/string.d.ts +154 -0
  257. package/dist/utils/string.d.ts.map +1 -0
  258. package/dist/utils/tuple.d.ts +19 -0
  259. package/dist/utils/tuple.d.ts.map +1 -0
  260. package/package.json +19 -15
  261. package/dist/container.d.ts.map +0 -1
  262. package/dist/modules/documents/result/document-enigne.d.ts +0 -30
  263. package/dist/modules/documents/result/document-enigne.d.ts.map +0 -1
  264. package/dist/types/core/attributes/base.d.ts +0 -52
  265. package/dist/types/core/attributes/base.d.ts.map +0 -1
  266. package/dist/types/core/attributes/biginteger.d.ts +0 -5
  267. package/dist/types/core/attributes/biginteger.d.ts.map +0 -1
  268. package/dist/types/core/attributes/blocks.d.ts.map +0 -1
  269. package/dist/types/core/attributes/boolean.d.ts +0 -7
  270. package/dist/types/core/attributes/boolean.d.ts.map +0 -1
  271. package/dist/types/core/attributes/common.d.ts +0 -59
  272. package/dist/types/core/attributes/common.d.ts.map +0 -1
  273. package/dist/types/core/attributes/component.d.ts +0 -20
  274. package/dist/types/core/attributes/component.d.ts.map +0 -1
  275. package/dist/types/core/attributes/date-time.d.ts +0 -5
  276. package/dist/types/core/attributes/date-time.d.ts.map +0 -1
  277. package/dist/types/core/attributes/date.d.ts +0 -5
  278. package/dist/types/core/attributes/date.d.ts.map +0 -1
  279. package/dist/types/core/attributes/decimal.d.ts +0 -5
  280. package/dist/types/core/attributes/decimal.d.ts.map +0 -1
  281. package/dist/types/core/attributes/dynamic-zone.d.ts +0 -13
  282. package/dist/types/core/attributes/dynamic-zone.d.ts.map +0 -1
  283. package/dist/types/core/attributes/email.d.ts +0 -5
  284. package/dist/types/core/attributes/email.d.ts.map +0 -1
  285. package/dist/types/core/attributes/enumeration.d.ts +0 -10
  286. package/dist/types/core/attributes/enumeration.d.ts.map +0 -1
  287. package/dist/types/core/attributes/float.d.ts +0 -5
  288. package/dist/types/core/attributes/float.d.ts.map +0 -1
  289. package/dist/types/core/attributes/index.d.ts +0 -26
  290. package/dist/types/core/attributes/index.d.ts.map +0 -1
  291. package/dist/types/core/attributes/integer.d.ts +0 -5
  292. package/dist/types/core/attributes/integer.d.ts.map +0 -1
  293. package/dist/types/core/attributes/json.d.ts +0 -6
  294. package/dist/types/core/attributes/json.d.ts.map +0 -1
  295. package/dist/types/core/attributes/media.d.ts +0 -13
  296. package/dist/types/core/attributes/media.d.ts.map +0 -1
  297. package/dist/types/core/attributes/password.d.ts +0 -5
  298. package/dist/types/core/attributes/password.d.ts.map +0 -1
  299. package/dist/types/core/attributes/relation.d.ts +0 -85
  300. package/dist/types/core/attributes/relation.d.ts.map +0 -1
  301. package/dist/types/core/attributes/richtext.d.ts +0 -5
  302. package/dist/types/core/attributes/richtext.d.ts.map +0 -1
  303. package/dist/types/core/attributes/string.d.ts +0 -10
  304. package/dist/types/core/attributes/string.d.ts.map +0 -1
  305. package/dist/types/core/attributes/text.d.ts +0 -8
  306. package/dist/types/core/attributes/text.d.ts.map +0 -1
  307. package/dist/types/core/attributes/time.d.ts +0 -5
  308. package/dist/types/core/attributes/time.d.ts.map +0 -1
  309. package/dist/types/core/attributes/timestamp.d.ts +0 -5
  310. package/dist/types/core/attributes/timestamp.d.ts.map +0 -1
  311. package/dist/types/core/attributes/uid.d.ts.map +0 -1
  312. package/dist/types/core/attributes/utils.d.ts +0 -28
  313. package/dist/types/core/attributes/utils.d.ts.map +0 -1
  314. package/dist/types/core/commands/index.d.ts.map +0 -1
  315. package/dist/types/core/common/api.d.ts +0 -4
  316. package/dist/types/core/common/api.d.ts.map +0 -1
  317. package/dist/types/core/common/controller.d.ts.map +0 -1
  318. package/dist/types/core/common/index.d.ts +0 -15
  319. package/dist/types/core/common/index.d.ts.map +0 -1
  320. package/dist/types/core/common/middleware.d.ts.map +0 -1
  321. package/dist/types/core/common/module.d.ts +0 -25
  322. package/dist/types/core/common/module.d.ts.map +0 -1
  323. package/dist/types/core/common/plugin.d.ts +0 -6
  324. package/dist/types/core/common/plugin.d.ts.map +0 -1
  325. package/dist/types/core/common/policy.d.ts +0 -10
  326. package/dist/types/core/common/policy.d.ts.map +0 -1
  327. package/dist/types/core/common/router.d.ts.map +0 -1
  328. package/dist/types/core/common/schema.d.ts +0 -3
  329. package/dist/types/core/common/schema.d.ts.map +0 -1
  330. package/dist/types/core/common/service.d.ts.map +0 -1
  331. package/dist/types/core/common/uid.d.ts +0 -16
  332. package/dist/types/core/common/uid.d.ts.map +0 -1
  333. package/dist/types/core/config/admin.d.ts.map +0 -1
  334. package/dist/types/core/config/api.d.ts.map +0 -1
  335. package/dist/types/core/config/database.d.ts.map +0 -1
  336. package/dist/types/core/config/index.d.ts.map +0 -1
  337. package/dist/types/core/config/middlewares.d.ts.map +0 -1
  338. package/dist/types/core/config/plugin.d.ts.map +0 -1
  339. package/dist/types/core/config/server.d.ts.map +0 -1
  340. package/dist/types/core/config/shared.d.ts.map +0 -1
  341. package/dist/types/core/entity/index.d.ts +0 -2
  342. package/dist/types/core/entity/index.d.ts.map +0 -1
  343. package/dist/types/core/index.d.ts +0 -11
  344. package/dist/types/core/index.d.ts.map +0 -1
  345. package/dist/types/core/namespace.d.ts.map +0 -1
  346. package/dist/types/core/permissions/index.d.ts +0 -5
  347. package/dist/types/core/permissions/index.d.ts.map +0 -1
  348. package/dist/types/core/plugins/config/index.d.ts.map +0 -1
  349. package/dist/types/core/plugins/config/strapi-admin/index.d.ts.map +0 -1
  350. package/dist/types/core/plugins/config/strapi-server/config.d.ts.map +0 -1
  351. package/dist/types/core/plugins/config/strapi-server/content-types.d.ts.map +0 -1
  352. package/dist/types/core/plugins/config/strapi-server/controllers.d.ts +0 -8
  353. package/dist/types/core/plugins/config/strapi-server/controllers.d.ts.map +0 -1
  354. package/dist/types/core/plugins/config/strapi-server/index.d.ts.map +0 -1
  355. package/dist/types/core/plugins/config/strapi-server/lifecycle.d.ts.map +0 -1
  356. package/dist/types/core/plugins/config/strapi-server/routes.d.ts +0 -11
  357. package/dist/types/core/plugins/config/strapi-server/routes.d.ts.map +0 -1
  358. package/dist/types/core/plugins/index.d.ts +0 -33
  359. package/dist/types/core/plugins/index.d.ts.map +0 -1
  360. package/dist/types/core/registry.d.ts +0 -58
  361. package/dist/types/core/registry.d.ts.map +0 -1
  362. package/dist/types/core/schemas/index.d.ts +0 -134
  363. package/dist/types/core/schemas/index.d.ts.map +0 -1
  364. package/dist/types/core/strapi/index.d.ts +0 -26
  365. package/dist/types/core/strapi/index.d.ts.map +0 -1
  366. package/dist/types/core/uid.d.ts.map +0 -1
  367. package/dist/types/core-api/controller.d.ts.map +0 -1
  368. package/dist/types/core-api/index.d.ts.map +0 -1
  369. package/dist/types/core-api/router.d.ts.map +0 -1
  370. package/dist/types/core-api/service.d.ts.map +0 -1
  371. package/dist/types/index.d.ts +0 -5
  372. package/dist/types/index.d.ts.map +0 -1
  373. package/dist/types/shared/index.d.ts +0 -5
  374. package/dist/types/shared/index.d.ts.map +0 -1
  375. package/dist/types/shared/registries.d.ts +0 -38
  376. package/dist/types/shared/registries.d.ts.map +0 -1
  377. package/dist/types/utils/array.d.ts +0 -16
  378. package/dist/types/utils/array.d.ts.map +0 -1
  379. package/dist/types/utils/expression.d.ts +0 -44
  380. package/dist/types/utils/expression.d.ts.map +0 -1
  381. package/dist/types/utils/function.d.ts +0 -3
  382. package/dist/types/utils/function.d.ts.map +0 -1
  383. package/dist/types/utils/guard.d.ts +0 -20
  384. package/dist/types/utils/guard.d.ts.map +0 -1
  385. package/dist/types/utils/index.d.ts +0 -27
  386. package/dist/types/utils/index.d.ts.map +0 -1
  387. package/dist/types/utils/json.d.ts +0 -7
  388. package/dist/types/utils/json.d.ts.map +0 -1
  389. package/dist/types/utils/object.d.ts +0 -69
  390. package/dist/types/utils/object.d.ts.map +0 -1
  391. package/dist/types/utils/string.d.ts +0 -40
  392. package/dist/types/utils/string.d.ts.map +0 -1
  393. package/dist/types/utils/tuple.d.ts +0 -9
  394. package/dist/types/utils/tuple.d.ts.map +0 -1
  395. /package/dist/{types/core → core}/config/admin.d.ts +0 -0
  396. /package/dist/{types/core → core}/config/api.d.ts +0 -0
  397. /package/dist/{types/core → core}/config/index.d.ts +0 -0
  398. /package/dist/{types/core → core}/config/plugin.d.ts +0 -0
  399. /package/dist/{types/core → core}/config/shared.d.ts +0 -0
  400. /package/dist/{container.d.ts → core/container.d.ts} +0 -0
  401. /package/dist/{types → core}/core-api/index.d.ts +0 -0
  402. /package/dist/{types/core/common → core}/router.d.ts +0 -0
  403. /package/dist/{types/core/common → core}/service.d.ts +0 -0
  404. /package/dist/{types/core/plugins → plugin}/config/index.d.ts +0 -0
  405. /package/dist/{types/core/plugins → plugin}/config/strapi-admin/index.d.ts +0 -0
  406. /package/dist/{types/core/plugins → plugin}/config/strapi-server/config.d.ts +0 -0
  407. /package/dist/{types/core/plugins → plugin}/config/strapi-server/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/options.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW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+ import type { Attribute } from '..';
4
+ /**
5
+ * Determines if a given attribute type is of a specific kind.
6
+ *
7
+ * @template TAttribute - The attribute type to check.
8
+ * @template TKind - The kind of attribute to compare against.
9
+ */
10
+ export type IsOfType<TAttribute extends Attribute.Attribute, TKind extends Attribute.Kind> = TAttribute extends {
11
+ type: TKind;
12
+ } ? true : false;
13
+ /**
14
+ * Checks whether a given Attribute {@link TAttribute} is populatable.
15
+ *
16
+ * @template TAttribute - The attribute to check.
17
+ *
18
+ * @see {@link PopulatableKind} for more information about populatable attributes.
19
+ */
20
+ export type IsPopulatable<TAttribute extends Attribute.Attribute> = IsOfType<TAttribute, Attribute.PopulatableKind>;
21
+ /**
22
+ * Returns the type (as {@link Kind}) of a given attribute.
23
+ *
24
+ * @template TAttribute - Any attribute
25
+ */
26
+ export type TypeOf<TAttribute extends Attribute.Attribute> = TAttribute['type'];
27
+ /**
28
+ * Extract the target of an attribute.
29
+ *
30
+ * Returns never if the attribute don't have a target.
31
+ *
32
+ * Returns {@link UID.Schema} if a valid target is found
33
+ *
34
+ * @template TAttribute - The attribute to use
35
+ *
36
+ * @remark Targets can only be inferred from relation, component, and media attributes.
37
+ */
38
+ export type Target<TAttribute extends Attribute.Attribute> = Attribute.RelationTarget<TAttribute> | Attribute.ComponentTarget<TAttribute> | Attribute.MediaTarget<TAttribute>;
39
+ /**
40
+ * Extract the potential targets of a polymorphic attribute.
41
+ *
42
+ * Returns never if the attribute don't have any target.
43
+ *
44
+ * Returns {@link UID.Schema} if valid targets are found
45
+ *
46
+ * @template TAttribute - The attribute to use
47
+ *
48
+ * @remark Morph targets can only be inferred from dynamic-zone attributes.
49
+ */
50
+ export type MorphTargets<TAttribute extends Attribute.Attribute> = Attribute.DynamicZoneTargets<TAttribute>;
51
+ /**
52
+ * Checks whether an attribute has a valid target.
53
+ *
54
+ * @template TAttribute - The attribute to check
55
+ *
56
+ * @see Target
57
+ *
58
+ * @remark Targets can only be inferred from relation, component, and media attributes.
59
+ */
60
+ export type HasTarget<TAttribute extends Attribute.Attribute> = Target<TAttribute> extends infer TTarget ? And<IsNotNever<TTarget>, Extends<TTarget, UID.Schema>> : Constants.False;
61
+ /**
62
+ * Checks whether an attribute has valid targets.
63
+ *
64
+ * @template TAttribute - The attribute to check
65
+ *
66
+ * @see MorphTargets
67
+ *
68
+ * @remark Targets can only be inferred from dynamic-zone attributes.
69
+ */
70
+ export type HasMorphTargets<TAttribute extends Attribute.Attribute> = MorphTargets<TAttribute> extends infer TMaybeTargets ? And<IsNotNever<TMaybeTargets>, Extends<TMaybeTargets, UID.Schema>> : Constants.False;
71
+ /**
72
+ * Represents the actual value of a given attribute {@link TAttribute}.
73
+ *
74
+ * @template TAttribute - The attribute to extract the value from.
75
+ * @template TGuard - The fallback type to use if it's not possible to infer the correct type value.
76
+ */
77
+ export type Value<TAttribute extends Attribute.Attribute, TGuard = unknown> = Guard.Never<{
78
+ biginteger: Attribute.GetBigIntegerValue<TAttribute>;
79
+ boolean: Attribute.GetBooleanValue<TAttribute>;
80
+ blocks: Attribute.GetBlocksValue<TAttribute>;
81
+ decimal: Attribute.GetDecimalValue<TAttribute>;
82
+ enumeration: Attribute.GetEnumerationValue<TAttribute>;
83
+ email: Attribute.GetEmailValue<TAttribute>;
84
+ float: Attribute.GetFloatValue<TAttribute>;
85
+ integer: Attribute.GetIntegerValue<TAttribute>;
86
+ json: Attribute.GetJsonValue<TAttribute>;
87
+ password: Attribute.GetPasswordValue<TAttribute>;
88
+ richtext: Attribute.GetRichTextValue<TAttribute>;
89
+ string: Attribute.GetStringValue<TAttribute>;
90
+ text: Attribute.GetTextValue<TAttribute>;
91
+ uid: Attribute.GetUIDValue<TAttribute>;
92
+ date: Attribute.GetDateValue<TAttribute>;
93
+ datetime: Attribute.GetDateTimeValue<TAttribute>;
94
+ time: Attribute.GetTimeValue<TAttribute>;
95
+ timestamp: Attribute.GetTimestampValue<TAttribute>;
96
+ component: Attribute.GetComponentValue<TAttribute>;
97
+ dynamiczone: Attribute.GetDynamicZoneValue<TAttribute>;
98
+ media: Attribute.GetMediaValue<TAttribute>;
99
+ relation: Attribute.GetRelationValue<TAttribute>;
100
+ }[Attribute.TypeOf<TAttribute>], TGuard>;
101
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,CAClB,UAAU,SAAS,SAAS,CAAC,SAAS,EACtC,KAAK,SAAS,SAAS,CAAC,IAAI,IAC1B,UAAU,SAAS;IACrB,IAAI,EAAE,KAAK,CAAC;CACb,GACG,IAAI,GACJ,KAAK,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAAI,QAAQ,CAC1E,UAAU,EACV,SAAS,CAAC,eAAe,CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,MAAM,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;AAEhF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,MAAM,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IACrD,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,GACpC,SAAS,CAAC,eAAe,CAAC,UAAU,CAAC,GACrC,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAEtC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAC7D,SAAS,CAAC,kBAAkB,CAAC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,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACjD,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAC7C,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACzC,GAAG,EAAE,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACvC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACjD,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAEnD,SAAS,EAAE,SAAS,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACnD,WAAW,EAAE,SAAS,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACvD,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAC3C,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;CAClD,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,MAAM,CACP,CAAC"}
@@ -0,0 +1,144 @@
1
+ import type * as Public from '../public';
2
+ import type * as UID from '../uid';
3
+ import type { If, Object, Guard } from '../utils';
4
+ import type * as Attribute from './attribute';
5
+ export { Attribute };
6
+ /**
7
+ * Combines both content type and component schemas, effectively serving as a consolidated registry of all schemas.
8
+ *
9
+ * Enables mapping between a unique identifier and its corresponding schema.
10
+ *
11
+ @remark Schema definitions are pulled from the public registries
12
+ */
13
+ export type Schemas = Public.ContentTypeSchemas & Public.ComponentSchemas;
14
+ /**
15
+ * Content-type schema definitions.
16
+ *
17
+ * @remark Schema definitions are pulled from the public content-type registries
18
+ */
19
+ export type ContentTypes = Public.ContentTypeSchemas;
20
+ /**
21
+ * Component schema definitions.
22
+ *
23
+ * @remark Schema definitions are pulled from the public component registries
24
+ */
25
+ export type Components = Public.ComponentSchemas;
26
+ export type ContentType<TContentTypeUID extends UID.ContentType = UID.ContentType> = ContentTypes[TContentTypeUID];
27
+ export type Component<TComponentUID extends UID.Component = UID.Component> = Components[TComponentUID];
28
+ /**
29
+ * Returns the Schema data structure associated with the given UID
30
+ *
31
+ * @template TSchemaUID - The unique identifier for the schema.
32
+ *
33
+ * @see Schemas
34
+ */
35
+ export type Schema<TSchemaUID extends UID.Schema = UID.Schema> = Schemas[TSchemaUID];
36
+ /**
37
+ * Returns the `info` property for a given schema.
38
+ *
39
+ * @template TSchemaUID - The targeted schema UID.
40
+ *
41
+ * @see Schema
42
+ */
43
+ export type Info<TSchemaUID extends UID.Schema> = Schema<TSchemaUID>['info'];
44
+ /**
45
+ * Returns the `modelType` property for a given schema.
46
+ *
47
+ * @template TSchemaUID - The targeted schema UID.
48
+ *
49
+ * @see Schema
50
+ */
51
+ export type ModelType<TSchemaUID extends UID.Schema> = Schema<TSchemaUID>['modelType'];
52
+ /**
53
+ * Returns the attribute {@link TAttributeName} from {@link TSchemaUID}'s attributes.
54
+ *
55
+ * @template TSchemaUID - The Schema's UID used to look for attributes.
56
+ * @template TAttributeName - The name of the wanted attribute.
57
+ */
58
+ export type AttributeByName<TSchemaUID extends UID.Schema, TAttributeName extends AttributeNames<TSchemaUID>> = Attributes<TSchemaUID>[TAttributeName];
59
+ /**
60
+ * Represents the value of an attribute based on its name
61
+ *
62
+ * @template TSchemaUID - The Schema's UID used to look for attributes.
63
+ * @template TAttributeName - The name of the wanted attribute.
64
+ */
65
+ export type AttributeValueByName<TSchemaUID extends UID.Schema, TAttributeName extends AttributeNames<TSchemaUID>> = Attribute.Value<AttributeByName<TSchemaUID, TAttributeName>>;
66
+ /**
67
+ * Returns an object containing every attribute within {@link TSchemaUID}.
68
+ *
69
+ * @template TSchemaUID - The Schema's UID used to get its attributes
70
+ */
71
+ export type Attributes<TSchemaUID extends UID.Schema = UID.Schema> = {
72
+ [TUID in TSchemaUID]: Schema<TSchemaUID>['attributes'];
73
+ }[TSchemaUID];
74
+ /**
75
+ * Union type of every attribute name within {@link TSchemaUID}'s attributes
76
+ *
77
+ * @template TSchemaUID - The Schema's UID used to get the attributes names.
78
+ */
79
+ export type AttributeNames<TSchemaUID extends UID.Schema> = Extract<keyof Attributes<TSchemaUID>, string>;
80
+ /**
81
+ * Create an attribute record whose types matches the given ones.
82
+ *
83
+ * @template TSchemaUID - The Schema's UID used to get the attribute names.
84
+ * @template TKind - The kind of attribute we are searching for.
85
+ * @template TCondition - Optional. An additional condition to match additional attributes properties.
86
+ */
87
+ export type AttributesByType<TSchemaUID extends UID.Schema, TKind extends Attribute.Kind, TCondition = never> = Object.PickBy<Attributes<TSchemaUID>, Attribute.OfType<TKind> & Guard.Never<TCondition>>;
88
+ /**
89
+ * Returns a union of attribute names whose type matches the given ones.
90
+ *
91
+ * @template TSchemaUID - The Schema's UID used to get the attribute names.
92
+ * @template TKind - The kind of attribute we are searching for.
93
+ * @template TCondition - Optional. An additional condition to match additional attributes properties.
94
+ */
95
+ export type AttributeNamesByType<TSchemaUID extends UID.Schema, TKind extends Attribute.Kind, TCondition = never> = Object.KeysBy<Attributes<TSchemaUID>, Attribute.OfType<TKind> & Guard.Never<TCondition, unknown>, AttributeNames<TSchemaUID>>;
96
+ /**
97
+ * Provides the names of non-populatable attributes of a Schema.
98
+ *
99
+ * Non-populatable attributes are those which do not need to be populated to get their final value.
100
+ *
101
+ * @template TSchemaUID - The unique identifier of the schema.
102
+ */
103
+ export type NonPopulatableAttributeNames<TSchemaUID extends UID.Schema> = AttributeNamesByType<TSchemaUID, Attribute.NonPopulatableKind>;
104
+ /**
105
+ * Provides the names of populatable attributes of a Schema.
106
+ *
107
+ * Populatable attributes are those which need to be populated to get their final value, such as {@link Attribute.Relation}, {@link Attribute.DynamicZone}, {@link Attribute.Component} or {@link Attribute.Media}.
108
+ *
109
+ * @template TSchemaUID - The unique identifier of the schema.
110
+ */
111
+ export type PopulatableAttributeNames<TSchemaUID extends UID.Schema> = AttributeNamesByType<TSchemaUID, Attribute.PopulatableKind>;
112
+ /**
113
+ * Returns a list of attribute names which have associated targets.
114
+ *
115
+ * @remark `
116
+ AttributeNamesWithTarget` maps over the list of attribute for a given schema and filters those
117
+ * with targets (in other words, attribute names that have associated {@link Attribute.HasTarget} true).
118
+ *
119
+ * @returns a union of each attribute's name matching the condition.
120
+ *
121
+ * @template TSchemaUID - The unique identifier of the schema.
122
+ */
123
+ export type AttributeNamesWithTarget<TSchemaUID extends UID.Schema> = Extract<Object.Values<{
124
+ [TKey in AttributeNames<TSchemaUID>]: If<Attribute.HasTarget<AttributeByName<TSchemaUID, TKey>>, TKey>;
125
+ }>, AttributeNames<TSchemaUID>>;
126
+ /**
127
+ * Extracts the names of all required attributes from a given schema.
128
+ *
129
+ * @remark `RequiredAttributeNames` screens attributes based on the {@link Attribute.Required} property,
130
+ * determining mandatory attributes from the given schema.
131
+ *
132
+ * @template TSchemaUID - The identifier of the schema.
133
+ */
134
+ export type RequiredAttributeNames<TSchemaUID extends UID.Schema> = Object.KeysBy<Attributes<TSchemaUID>, Attribute.Required, AttributeNames<TSchemaUID>>;
135
+ /**
136
+ * Returns a union of every optional attribute name by excluding required attribute keys from the given Schema UID.
137
+ *
138
+ * @remark The `
139
+ OptionalAttributeNames` type utilises the {@link Object.KeysExcept} utility that takes a Schema's attributes and excludes the keys of required attributes.
140
+ *
141
+ * @template TSchemaUID - The unique identifier for the schema.
142
+ */
143
+ export type OptionalAttributeNames<TSchemaUID extends UID.Schema> = Object.KeysExcept<Attributes<TSchemaUID>, Attribute.Required, AttributeNames<TSchemaUID>>;
144
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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,CAAC,UAAU,EAAE,OAAO,CAAC,EAC1D,cAAc,CAAC,UAAU,CAAC,CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,4BAA4B,CAAC,UAAU,SAAS,GAAG,CAAC,MAAM,IAAI,oBAAoB,CAC5F,UAAU,EACV,SAAS,CAAC,kBAAkB,CAC7B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,CAAC,UAAU,SAAS,GAAG,CAAC,MAAM,IAAI,oBAAoB,CACzF,UAAU,EACV,SAAS,CAAC,eAAe,CAC1B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,CAAC,UAAU,SAAS,GAAG,CAAC,MAAM,IAAI,OAAO,CAC3E,MAAM,CAAC,MAAM,CAAC;KACX,IAAI,IAAI,cAAc,CAAC,UAAU,CAAC,GAAG,EAAE,CACtC,SAAS,CAAC,SAAS,CAAC,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,EACtD,IAAI,CACL;CACF,CAAC,EACF,cAAc,CAAC,UAAU,CAAC,CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,CAAC,UAAU,SAAS,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAC/E,UAAU,CAAC,UAAU,CAAC,EACtB,SAAS,CAAC,QAAQ,EAClB,cAAc,CAAC,UAAU,CAAC,CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,CAAC,UAAU,SAAS,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,UAAU,CACnF,UAAU,CAAC,UAAU,CAAC,EACtB,SAAS,CAAC,QAAQ,EAClB,cAAc,CAAC,UAAU,CAAC,CAC3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type * from './schema';
2
+ export type * from './schema-definition';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/struct/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,qBAAqB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Schema } from './schema';
2
+ /**
3
+ * Represents a generic Schema before being loaded by Strapi (e.g. app or user defined schemas)
4
+ *
5
+ * @internal
6
+ */
7
+ export type SchemaDefinition = Omit<Schema, 'uid' | 'attributes'> & {
8
+ attributes: Record<string, Record<string, unknown>>;
9
+ };
10
+ //# sourceMappingURL=schema-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-definition.d.ts","sourceRoot":"","sources":["../../src/struct/schema-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,GAAG,YAAY,CAAC,GAAG;IAClE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACrD,CAAC"}
@@ -0,0 +1,248 @@
1
+ import type { Attribute } from '../schema';
2
+ import type * as UID from '../uid';
3
+ export type ContentTypeKind = 'collectionType' | 'singleType';
4
+ export type ModelType = 'contentType' | 'component';
5
+ export type Schema = ContentTypeSchema | ComponentSchema;
6
+ /**
7
+ * A loaded instance of a Strapi Schema accessible to the server.
8
+ */
9
+ export interface BaseSchema {
10
+ /**
11
+ * The unique identifier of the Schema. This identifier is a combined type encompassing both ContentType and Component UID types.
12
+ *
13
+ * It is mainly used when dealing with either content types or components in a situation where the context is not specific.
14
+ */
15
+ uid: UID.Schema;
16
+ /**
17
+ * This is an identifier type that helps differentiate between a 'contentType' and 'component'.
18
+ * This distinction aids in communication where the ModelType needs to be specified explicitly.
19
+ */
20
+ modelType: ModelType;
21
+ /**
22
+ * Serves as the public name of the schema. Often utilized in referencing a specific schema (e.g. in the database).
23
+ */
24
+ modelName: string;
25
+ /**
26
+ * This global identifier acts as a unique reference to the schema across varying scopes and contexts.
27
+ */
28
+ globalId: string;
29
+ /**
30
+ * Contains options specific to plugins. It is an optional property and stores configurations that are read by the plugins associated with this Schema.
31
+ */
32
+ pluginOptions?: SchemaPluginOptions;
33
+ /**
34
+ * Encapsulates all core options related to Strapi features for a given Schema.
35
+ */
36
+ options?: SchemaOptions;
37
+ /**
38
+ * Optional property. Specifies the custom table name for the Schema if any.
39
+ */
40
+ collectionName?: string;
41
+ /**
42
+ * Contains information related to naming and display characteristics of the Schema.
43
+ */
44
+ info: SchemaInfo;
45
+ /**
46
+ * Houses a comprehensive collection of attributes for this Schema.
47
+ *
48
+ * Each attribute has a unique string key and corresponding value should be any Attribute type instance.
49
+ */
50
+ attributes: SchemaAttributes;
51
+ }
52
+ /**
53
+ * Comprises naming and display parameters to customize a Schema's representation.
54
+ */
55
+ export interface SchemaInfo {
56
+ /**
57
+ * Sets the default nomenclature for the Admin Panel. Acts as the label while identifying
58
+ * the schema or interacting with it within the admin panel. For example, used as a label
59
+ * for fields, table columns, and menu items.
60
+ */
61
+ displayName: string;
62
+ /**
63
+ * Delineates the purpose of the model, clarifying its intended usage or its function. This
64
+ * property is optional and is primarily meant for further documentation to provide better
65
+ * context and understanding of the schema.
66
+ */
67
+ description?: string;
68
+ /**
69
+ * Specifies the visual identifier - an icon, for the schema inside the admin panel. It eases
70
+ * recognition and improves navigation. The value should be any valid @strapi/icon name. This
71
+ * property is optional, and if omitted, a default icon might be used by the interface.
72
+ */
73
+ icon?: string;
74
+ }
75
+ /**
76
+ * `SchemaAttributes` is a mapping of attribute keys to their corresponding values.
77
+ *
78
+ * These keys and values define the structure and characteristics of a Strapi schema.
79
+ */
80
+ export type SchemaAttributes = Record<string, Attribute.AnyAttribute>;
81
+ /**
82
+ * Contains various options employed during runtime to tweak certain aspects of Strapi features.
83
+ *
84
+ * Each property under this interface can enable, disable or modify a specific feature or functionality associated with a schema.
85
+ */
86
+ export interface SchemaOptions {
87
+ /**
88
+ * Toggles the review workflow feature on or off.
89
+ *
90
+ * A review workflow is a process that describes the stages a document must go through from creation to publication.
91
+ *
92
+ * @remark This option is Enterprise Edition Exclusive.
93
+ */
94
+ reviewWorkflows?: boolean;
95
+ /**
96
+ * Determines if creator fields can be populated.
97
+ *
98
+ * When enabled, this feature will allow populating data about the admin user who created a specific document entry.
99
+ */
100
+ populateCreatorFields?: boolean;
101
+ /**
102
+ * May be used for providing specific notes or annotations of the schema.
103
+ */
104
+ comment?: string;
105
+ /**
106
+ * Can be utilized for setting a particular version of schema related to the review-workflow feature.
107
+ *
108
+ * @deprecated As of v5, this is deprecated and will likely be removed soon.
109
+ */
110
+ version?: string;
111
+ /**
112
+ * Used to enable or disable the draft and publish feature.
113
+ * This would decide whether the changes made to a document are published immediately or saved as a draft for later.
114
+ */
115
+ draftAndPublish?: boolean;
116
+ }
117
+ /**
118
+ * Provides a flexible configuration method for Strapi plugins.
119
+ *
120
+ * In Strapi, plugins extend the core functionality and enhance features of the application. Each plugin may require
121
+ * prerequisite settings or configurations for successful functioning. `SchemaPluginOptions` facilitates this by storing these configurations
122
+ * as key-value pairs where the key corresponds to the name of the plugin, and the value defines the respective settings of that plugin.
123
+ *
124
+ * @remark The keys/values of configurations are not explicitly defined and are manually defined in each schema definition.
125
+ *
126
+ * @example
127
+ * Using `SchemaPluginOptions` in the schema definition:
128
+ *
129
+ * ```typescript
130
+ * import type { Struct } from '@strapi/types';
131
+ *
132
+ * const strapiPluginOptions: Struct.SchemaPluginOptions = {
133
+ * 'plugin-foo': {
134
+ * prop1: string;
135
+ * prop2: boolean;
136
+ * },
137
+ * 'plugin-bar': {
138
+ * prop1: string;
139
+ * prop2: boolean;
140
+ * },
141
+ * };
142
+ *
143
+ * const articleSchema: Struct.BaseSchema = {
144
+ * uid: 'article',
145
+ * modelType: 'contentType',
146
+ * modelName: 'Article',
147
+ * globalId: 'Article',
148
+ * pluginOptions: strapiPluginOptions,
149
+ * // Other schema properties...
150
+ * };
151
+ * ```
152
+ *
153
+ */
154
+ export interface SchemaPluginOptions {
155
+ [key: string]: unknown;
156
+ }
157
+ /**
158
+ * Serves as a layout for a content type.
159
+ *
160
+ * Inherits and enhances various properties from the `BaseSchema`, the `ContentTypeSchema` is a unique derivative of the base schema that distinguishes itself with additional properties.
161
+ */
162
+ export interface ContentTypeSchema extends BaseSchema {
163
+ /**
164
+ * Forces the `modelType` to be a `contentType`.
165
+ *
166
+ * @remark Helpful to distinguish a {@link ContentTypeSchema} from a {@link ComponentSchema}
167
+ */
168
+ modelType: 'contentType';
169
+ /**
170
+ * Unique identifier associated with the content type. It acts as a reference to work with data structures that are specifically identified by the content type's UID.
171
+ */
172
+ uid: UID.ContentType;
173
+ /**
174
+ * Classifies the content type as 'collection-type' or 'single-type'.
175
+ */
176
+ kind: ContentTypeKind;
177
+ /**
178
+ * Brings together attributes related to naming and display characteristics like singular name and plural name of the content type. These names are typically used in user interfaces where these entries are displayed.
179
+ */
180
+ info: ContentTypeSchemaInfo;
181
+ /**
182
+ * Optional attribute to indicate the indexes to be created on the database for this content type.
183
+ *
184
+ * @internal
185
+ */
186
+ indexes?: unknown[];
187
+ }
188
+ /**
189
+ * Contains naming properties specific to a specific content type.
190
+ */
191
+ export interface ContentTypeSchemaInfo extends SchemaInfo {
192
+ /**
193
+ * Indicates how a single instance of the content type should be labeled.
194
+ */
195
+ singularName: string;
196
+ /**
197
+ * Provides a human-friendly label for referring to multiple instances of the content type.
198
+ */
199
+ pluralName: string;
200
+ }
201
+ /**
202
+ * Schema that represents a collection of content types' entry in the system.
203
+ */
204
+ export interface CollectionTypeSchema extends ContentTypeSchema {
205
+ /**
206
+ * Explicitly sets the kind of content type schema to 'collectionType'.
207
+ *
208
+ * This signifies that the content type is organized in a collection, handling multiple entries.
209
+ */
210
+ kind: 'collectionType';
211
+ }
212
+ /**
213
+ * Schema that represents a single of content type's entry in the system.
214
+ */
215
+ export interface SingleTypeSchema extends ContentTypeSchema {
216
+ /**
217
+ * Explicitly sets the kind of content type schema to 'singleType'.
218
+ *
219
+ * This signifies that the content type has a single entry.
220
+ */
221
+ kind: 'singleType';
222
+ }
223
+ /**
224
+ * Serves as a layout for a component type.
225
+ *
226
+ * Inherits and enhances various properties from the `BaseSchema`, the `ComponentSchema` is a unique derivative of the base schema that distinguishes itself with additional properties.
227
+ */
228
+ export interface ComponentSchema extends BaseSchema {
229
+ /**
230
+ * Forces the `modelType` to be a `component`.
231
+ *
232
+ * @remark Helpful to distinguish a {@link ComponentSchema} from a {@link ContentTypeSchema}
233
+ */
234
+ modelType: 'component';
235
+ /**
236
+ * A unique identifier for the component.
237
+ *
238
+ * It uses `UID.Component` type which encapsulates unique identifiers for any component defined in the public component registry.
239
+ */
240
+ uid: UID.Component;
241
+ /**
242
+ * A classification field for the component.
243
+ *
244
+ * This string type field is utilized to categorize components into different categories based on their function or feature.
245
+ */
246
+ category: string;
247
+ }
248
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/struct/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,KAAK,GAAG,MAAM,QAAQ,CAAC;AAEnC,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC;AAEpD,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,C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