strapi-plugin-comments 2.3.1 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (525) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +21 -19
  3. package/dist/_chunks/en-D1Rj1A_i.js +195 -0
  4. package/{admin/src/translations/en.json → dist/_chunks/en-DZljqkLz.mjs} +17 -14
  5. package/dist/_chunks/fr-DbxNAr65.js +146 -0
  6. package/{admin/src/translations/fr.json → dist/_chunks/fr-oAh2cU0E.mjs} +15 -11
  7. package/dist/_chunks/index-B6Q4U8YQ.js +51665 -0
  8. package/dist/_chunks/index-BQERo8pN.mjs +8340 -0
  9. package/dist/_chunks/index-BVj8EXjI.js +8356 -0
  10. package/dist/_chunks/index-Bpbf7RON.mjs +51643 -0
  11. package/dist/_chunks/index-CTjupB9v.js +375 -0
  12. package/dist/_chunks/index-fAgatqD0.js +50888 -0
  13. package/dist/_chunks/index-fSb-gYwg.mjs +373 -0
  14. package/dist/_chunks/index-h-TB6Qu2.mjs +50873 -0
  15. package/{admin/src/translations/pl.json → dist/_chunks/pl-BUVUFx9r.mjs} +14 -11
  16. package/dist/_chunks/pl-CuTgrHph.js +195 -0
  17. package/dist/_chunks/pt-BR-2Z9CtgSm.js +145 -0
  18. package/{admin/src/translations/pt-BR.json → dist/_chunks/pt-BR-Bchhsf7B.mjs} +14 -11
  19. package/{admin/src/translations/ru.json → dist/_chunks/ru-BQ54P0xr.mjs} +17 -14
  20. package/dist/_chunks/ru-gtnRlbuP.js +195 -0
  21. package/{admin/src/translations/tr.json → dist/_chunks/tr-CkGcBRUv.mjs} +14 -11
  22. package/dist/_chunks/tr-Ucl3IKMX.js +193 -0
  23. package/{admin/src/translations/zh-Hans.json → dist/_chunks/zh-Hans-Buh0iPWA.mjs} +17 -14
  24. package/dist/_chunks/zh-Hans-Dhk3gIYb.js +195 -0
  25. package/dist/admin/index.js +4 -0
  26. package/dist/admin/index.mjs +5 -0
  27. package/dist/admin/src/api/client.d.ts +413 -0
  28. package/dist/admin/src/api/index.d.ts +1 -0
  29. package/dist/admin/src/api/schemas.d.ts +3463 -0
  30. package/dist/admin/src/components/ActionButton/index.d.ts +4 -0
  31. package/dist/admin/src/components/ApproveFlow/index.d.ts +7 -0
  32. package/dist/admin/src/components/CommentReportStatusBadge/index.d.ts +4 -0
  33. package/dist/admin/src/components/CommentRow/index.d.ts +7 -0
  34. package/dist/admin/src/components/CommentStatusBadge/index.d.ts +7 -0
  35. package/dist/admin/src/components/ConfirmationDialog/index.d.ts +14 -0
  36. package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemActions.d.ts +3 -0
  37. package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +4 -0
  38. package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +6 -0
  39. package/dist/admin/src/components/DiscussionThreadItem/props.d.ts +12 -0
  40. package/dist/admin/src/components/IconButtonGroup/index.d.ts +5 -0
  41. package/dist/admin/src/components/LoadingIndicatorOverlay/index.d.ts +1 -0
  42. package/dist/admin/src/components/ModeratorResponseModal/index.d.ts +9 -0
  43. package/dist/admin/src/components/PluginIcon/index.d.ts +7 -0
  44. package/dist/admin/src/components/RenderIf/index.d.ts +7 -0
  45. package/dist/admin/src/components/ReportReasonBadge/index.d.ts +3 -0
  46. package/dist/admin/src/components/ReportStatusBadge/index.d.ts +5 -0
  47. package/dist/admin/src/components/ReportsTableRow/BlockMenu.d.ts +8 -0
  48. package/dist/admin/src/components/ReportsTableRow/CommentReviewModal.d.ts +7 -0
  49. package/dist/admin/src/components/ReportsTableRow/ReportsActions.d.ts +7 -0
  50. package/dist/admin/src/components/ReportsTableRow/index.d.ts +9 -0
  51. package/dist/admin/src/components/ReviewFlow/ReportReviewTable.d.ts +13 -0
  52. package/dist/admin/src/components/ReviewFlow/index.d.ts +7 -0
  53. package/dist/admin/src/components/SideNav/index.d.ts +1 -0
  54. package/dist/admin/src/components/StatusBadge/index.d.ts +3 -0
  55. package/dist/admin/src/components/UserAvatar/AdminAvatar.d.ts +2 -0
  56. package/dist/admin/src/components/UserAvatar/index.d.ts +8 -0
  57. package/{admin → dist/admin}/src/components/Wysiwyg/Editor.d.ts +2 -14
  58. package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +12 -0
  59. package/{admin → dist/admin}/src/components/Wysiwyg/PreviewWysiwyg.d.ts +1 -2
  60. package/dist/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +6 -0
  61. package/{admin → dist/admin}/src/components/Wysiwyg/WysiwygNav.d.ts +4 -3
  62. package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +5 -0
  63. package/dist/admin/src/components/Wysiwyg/index.d.ts +13 -0
  64. package/{admin → dist/admin}/src/components/Wysiwyg/utils/continueList.d.ts +1 -4
  65. package/{admin → dist/admin}/src/components/Wysiwyg/utils/mdRenderer.d.ts +0 -1
  66. package/dist/admin/src/components/Wysiwyg/utils/urls.d.ts +2 -0
  67. package/{admin → dist/admin}/src/components/Wysiwyg/utils/utils.d.ts +0 -1
  68. package/{admin → dist/admin}/src/components/icons/comments.d.ts +1 -2
  69. package/dist/admin/src/components/icons/index.d.ts +2 -0
  70. package/dist/admin/src/components/icons/lock.d.ts +8 -0
  71. package/dist/admin/src/components/icons/review.d.ts +7 -0
  72. package/dist/admin/src/components/icons/strapiIcons.d.ts +1 -0
  73. package/dist/admin/src/components/icons/unlock.d.ts +8 -0
  74. package/dist/admin/src/contexts/UserContext.d.ts +23 -0
  75. package/dist/admin/src/hooks/useAPI.d.ts +430 -0
  76. package/dist/admin/src/hooks/useCommentMutations.d.ts +72 -0
  77. package/dist/admin/src/hooks/useCommentsAll.d.ts +59 -0
  78. package/dist/admin/src/hooks/useConfig.d.ts +28 -0
  79. package/dist/admin/src/hooks/useElementOnScreen.d.ts +2 -0
  80. package/dist/admin/src/hooks/usePermissions.d.ts +9 -0
  81. package/dist/admin/src/hooks/useReports.d.ts +60 -0
  82. package/dist/admin/src/hooks/useResizeObserver.d.ts +2 -0
  83. package/dist/admin/src/hooks/useUserContext.d.ts +21 -0
  84. package/dist/admin/src/index.d.ts +10 -0
  85. package/dist/admin/src/pages/App/index.d.ts +2 -0
  86. package/dist/admin/src/pages/Details/DetailsEntry.d.ts +11 -0
  87. package/dist/admin/src/pages/Details/DiscussionThread.d.ts +11 -0
  88. package/dist/admin/src/pages/Details/ModeratorResponse.d.ts +7 -0
  89. package/dist/admin/src/pages/Details/index.d.ts +5 -0
  90. package/dist/admin/src/pages/Discover/index.d.ts +5 -0
  91. package/dist/admin/src/pages/Reports/index.d.ts +5 -0
  92. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +70 -0
  93. package/dist/admin/src/pages/Settings/index.d.ts +2 -0
  94. package/{admin → dist/admin}/src/permissions.d.ts +0 -1
  95. package/{admin → dist/admin}/src/pluginId.d.ts +0 -1
  96. package/dist/admin/src/providers/CommonProviders/index.d.ts +4 -0
  97. package/dist/admin/src/store/settings.store.d.ts +7 -0
  98. package/dist/admin/src/translations/en.d.ts +194 -0
  99. package/dist/admin/src/translations/fr.d.ts +143 -0
  100. package/dist/admin/src/translations/index.d.ts +11 -0
  101. package/dist/admin/src/translations/pl.d.ts +193 -0
  102. package/dist/admin/src/translations/pt-BR.d.ts +143 -0
  103. package/dist/admin/src/translations/ru.d.ts +193 -0
  104. package/dist/admin/src/translations/tr.d.ts +191 -0
  105. package/dist/admin/src/translations/zh-Hans.d.ts +193 -0
  106. package/dist/admin/src/types/index.d.ts +5 -0
  107. package/dist/admin/src/utils/constants.d.ts +28 -0
  108. package/{admin → dist/admin}/src/utils/errors.d.ts +0 -1
  109. package/{admin → dist/admin}/src/utils/functions.d.ts +0 -1
  110. package/{admin → dist/admin}/src/utils/getApiUrl.d.ts +0 -1
  111. package/dist/admin/src/utils/getMessage.d.ts +2 -0
  112. package/{admin → dist/admin}/src/utils/getRelatedGroups.d.ts +0 -1
  113. package/{admin → dist/admin}/src/utils/getUrl.d.ts +0 -1
  114. package/dist/admin/src/utils/handleAPIError.d.ts +2 -0
  115. package/{admin → dist/admin}/src/utils/index.d.ts +0 -2
  116. package/{admin → dist/admin}/src/utils/parseRegExp.d.ts +0 -1
  117. package/dist/admin/src/utils/renderEntryTitle.d.ts +2 -0
  118. package/{admin → dist/admin}/src/utils/renderInitials.d.ts +0 -1
  119. package/dist/admin/src/utils/resolveCommentStatus.d.ts +7 -0
  120. package/dist/admin/src/utils/resolveCommentStatusColor.d.ts +3 -0
  121. package/dist/admin/src/utils/resolveReportStatus.d.ts +4 -0
  122. package/dist/admin/src/utils/resolveReportStatusColor.d.ts +3 -0
  123. package/dist/assets/configuration.png +0 -0
  124. package/dist/assets/logo.png +0 -0
  125. package/dist/assets/marketplace.png +0 -0
  126. package/dist/assets/preview.png +0 -0
  127. package/dist/server/index.js +8121 -0
  128. package/dist/server/index.mjs +8122 -0
  129. package/dist/server/src/@types-v5/controllers.d.ts +17 -0
  130. package/dist/server/src/@types-v5/index.d.ts +5 -0
  131. package/dist/server/src/@types-v5/repositories.d.ts +28 -0
  132. package/dist/server/src/@types-v5/routes.d.ts +18 -0
  133. package/{types/contentTypes.d.ts → dist/server/src/@types-v5/utils.d.ts} +23 -6
  134. package/dist/server/src/bootstrap.d.ts +3 -0
  135. package/dist/server/src/config/index.d.ts +101 -0
  136. package/dist/server/src/const/REGEX.d.ts +19 -0
  137. package/dist/server/src/const/REPORT_REASON.d.ts +5 -0
  138. package/dist/server/src/const/index.d.ts +3 -0
  139. package/dist/server/src/content-types/comments/index.d.ts +98 -0
  140. package/{content-types/comment.d.ts → dist/server/src/content-types/comments/schema.d.ts} +3 -1
  141. package/{content-types → dist/server/src/content-types}/index.d.ts +14 -8
  142. package/dist/server/src/content-types/report/index.d.ts +50 -0
  143. package/{content-types/report.d.ts → dist/server/src/content-types/report/schema.d.ts} +4 -3
  144. package/dist/server/src/controllers/admin.controller.d.ts +964 -0
  145. package/dist/server/src/controllers/client.controller.d.ts +839 -0
  146. package/dist/server/src/controllers/index.d.ts +2641 -0
  147. package/dist/server/src/controllers/settings.controller.d.ts +123 -0
  148. package/dist/server/src/controllers/utils/parsers.d.ts +1 -0
  149. package/dist/server/src/index.d.ts +9448 -0
  150. package/{permissions.d.ts → dist/server/src/permissions.d.ts} +2 -4
  151. package/{server → dist/server/src}/register/custom-fields/comments.d.ts +0 -1
  152. package/dist/server/src/register/custom-fields/index.d.ts +2 -0
  153. package/{server → dist/server/src}/register/index.d.ts +1 -2
  154. package/dist/server/src/repositories/comment.repository.d.ts +13 -0
  155. package/dist/server/src/repositories/index.d.ts +5 -0
  156. package/dist/server/src/repositories/report.comment.repository.d.ts +41 -0
  157. package/dist/server/src/repositories/store.repository.d.ts +106 -0
  158. package/dist/server/src/repositories/utils.d.ts +11 -0
  159. package/dist/server/src/routes/admin.routes.d.ts +3 -0
  160. package/dist/server/src/routes/client.routes.d.ts +3 -0
  161. package/dist/server/src/routes/index.d.ts +11 -0
  162. package/dist/server/src/services/admin/admin.service.d.ts +2570 -0
  163. package/dist/server/src/services/admin/utils.d.ts +72 -0
  164. package/dist/server/src/services/client.service.d.ts +2056 -0
  165. package/dist/server/src/services/common.service.d.ts +523 -0
  166. package/dist/server/src/services/index.d.ts +6606 -0
  167. package/dist/server/src/services/settings.service.d.ts +93 -0
  168. package/dist/server/src/services/utils/functions.d.ts +12 -0
  169. package/dist/server/src/utils/Either.d.ts +16 -0
  170. package/dist/server/src/utils/PluginError.d.ts +11 -0
  171. package/dist/server/src/utils/constants.d.ts +25 -0
  172. package/{server → dist/server/src}/utils/error.d.ts +0 -1
  173. package/dist/server/src/utils/getConfig.d.ts +3 -0
  174. package/dist/server/src/utils/getPluginService.d.ts +3 -0
  175. package/dist/server/src/utils/throwError.d.ts +3 -0
  176. package/dist/server/src/utils/tryCatch.d.ts +1 -0
  177. package/{server → dist/server/src}/utils/types.d.ts +3 -5
  178. package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +119 -0
  179. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +586 -0
  180. package/dist/server/src/validators/api/controllers/index.d.ts +3 -0
  181. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +18 -0
  182. package/dist/server/src/validators/api/index.d.ts +1 -0
  183. package/dist/server/src/validators/repositories/comment.schema.d.ts +62 -0
  184. package/dist/server/src/validators/repositories/comment.validator.d.ts +2944 -0
  185. package/dist/server/src/validators/repositories/index.d.ts +2 -0
  186. package/dist/server/src/validators/repositories/reports.validator.d.ts +1045 -0
  187. package/dist/server/src/validators/repositories/utils.d.ts +20 -0
  188. package/dist/server/src/validators/utils.d.ts +776 -0
  189. package/dist/style.css +84 -0
  190. package/package.json +81 -18
  191. package/admin/src/components/ActionButton/styles.d.ts +0 -2
  192. package/admin/src/components/ActionButton/styles.js +0 -15
  193. package/admin/src/components/AdminAvatar/index.d.ts +0 -4
  194. package/admin/src/components/AdminAvatar/index.js +0 -17
  195. package/admin/src/components/AdminAvatar/styles.d.ts +0 -3
  196. package/admin/src/components/AdminAvatar/styles.js +0 -25
  197. package/admin/src/components/Avatar/index.d.ts +0 -10
  198. package/admin/src/components/Avatar/index.js +0 -22
  199. package/admin/src/components/CommentReviewModal/index.d.ts +0 -10
  200. package/admin/src/components/CommentReviewModal/index.js +0 -19
  201. package/admin/src/components/ConfirmationDialog/index.d.ts +0 -27
  202. package/admin/src/components/ConfirmationDialog/index.js +0 -37
  203. package/admin/src/components/DiscussionStatus/index.d.ts +0 -9
  204. package/admin/src/components/DiscussionStatus/index.js +0 -24
  205. package/admin/src/components/DiscussionThread/index.d.ts +0 -21
  206. package/admin/src/components/DiscussionThread/index.js +0 -45
  207. package/admin/src/components/DiscussionThreadItem/index.d.ts +0 -3
  208. package/admin/src/components/DiscussionThreadItem/index.js +0 -51
  209. package/admin/src/components/DiscussionThreadItem/styles.d.ts +0 -5
  210. package/admin/src/components/DiscussionThreadItem/styles.js +0 -31
  211. package/admin/src/components/DiscussionThreadItemActions/index.d.ts +0 -22
  212. package/admin/src/components/DiscussionThreadItemActions/index.js +0 -222
  213. package/admin/src/components/DiscussionThreadItemActions/styles.d.ts +0 -2
  214. package/admin/src/components/DiscussionThreadItemActions/styles.js +0 -13
  215. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.d.ts +0 -19
  216. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/index.js +0 -67
  217. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.d.ts +0 -2
  218. package/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.js +0 -12
  219. package/admin/src/components/DiscussionThreadItemFooter/index.d.ts +0 -23
  220. package/admin/src/components/DiscussionThreadItemFooter/index.js +0 -40
  221. package/admin/src/components/DiscussionThreadItemFooter/styles.d.ts +0 -3
  222. package/admin/src/components/DiscussionThreadItemFooter/styles.js +0 -18
  223. package/admin/src/components/DiscussionThreadItemReviewAction/index.d.ts +0 -25
  224. package/admin/src/components/DiscussionThreadItemReviewAction/index.js +0 -174
  225. package/admin/src/components/FormSwitch/index.d.ts +0 -7
  226. package/admin/src/components/FormSwitch/index.js +0 -15
  227. package/admin/src/components/FormSwitch/styles.d.ts +0 -2
  228. package/admin/src/components/FormSwitch/styles.js +0 -14
  229. package/admin/src/components/Hint/index.d.ts +0 -14
  230. package/admin/src/components/Hint/index.js +0 -22
  231. package/admin/src/components/IconButton/styles.d.ts +0 -2
  232. package/admin/src/components/IconButton/styles.js +0 -21
  233. package/admin/src/components/Initializer/index.d.ts +0 -5
  234. package/admin/src/components/Initializer/index.js +0 -14
  235. package/admin/src/components/LoadingIndicatorOverlay/index.d.ts +0 -3
  236. package/admin/src/components/LoadingIndicatorOverlay/index.js +0 -12
  237. package/admin/src/components/LoadingIndicatorOverlay/styles.d.ts +0 -3
  238. package/admin/src/components/LoadingIndicatorOverlay/styles.js +0 -25
  239. package/admin/src/components/ModeratorResponse/index.d.ts +0 -8
  240. package/admin/src/components/ModeratorResponse/index.js +0 -106
  241. package/admin/src/components/ModeratorResponse/styles.d.ts +0 -2
  242. package/admin/src/components/ModeratorResponse/styles.js +0 -12
  243. package/admin/src/components/ModeratorResponseModal/ModeratorResponseModal.d.ts +0 -11
  244. package/admin/src/components/ModeratorResponseModal/ModeratorResponseModal.js +0 -95
  245. package/admin/src/components/Nav/index.d.ts +0 -7
  246. package/admin/src/components/Nav/index.js +0 -23
  247. package/admin/src/components/PluginIcon/index.d.ts +0 -3
  248. package/admin/src/components/PluginIcon/index.js +0 -6
  249. package/admin/src/components/PreviewWysiwyg/Wrapper.d.ts +0 -3
  250. package/admin/src/components/PreviewWysiwyg/Wrapper.js +0 -162
  251. package/admin/src/components/PreviewWysiwyg/index.d.ts +0 -7
  252. package/admin/src/components/PreviewWysiwyg/index.js +0 -39
  253. package/admin/src/components/PreviewWysiwyg/utils/mdRenderer.d.ts +0 -3
  254. package/admin/src/components/PreviewWysiwyg/utils/mdRenderer.js +0 -88
  255. package/admin/src/components/PreviewWysiwyg/utils/satinizeHtml.d.ts +0 -20
  256. package/admin/src/components/PreviewWysiwyg/utils/satinizeHtml.js +0 -18
  257. package/admin/src/components/ReportsActions/components/BlockMenu/index.d.ts +0 -15
  258. package/admin/src/components/ReportsActions/components/BlockMenu/index.js +0 -51
  259. package/admin/src/components/ReportsActions/index.d.ts +0 -11
  260. package/admin/src/components/ReportsActions/index.js +0 -31
  261. package/admin/src/components/ReportsReviewModal/index.d.ts +0 -26
  262. package/admin/src/components/ReportsReviewModal/index.js +0 -33
  263. package/admin/src/components/ReportsReviewTable/index.d.ts +0 -15
  264. package/admin/src/components/ReportsReviewTable/index.js +0 -141
  265. package/admin/src/components/StatusBadge/index.d.ts +0 -7
  266. package/admin/src/components/StatusBadge/index.js +0 -12
  267. package/admin/src/components/StatusBadge/styles.d.ts +0 -2
  268. package/admin/src/components/StatusBadge/styles.js +0 -23
  269. package/admin/src/components/TableFilters/index.d.ts +0 -19
  270. package/admin/src/components/TableFilters/index.js +0 -56
  271. package/admin/src/components/TablePagination/index.d.ts +0 -23
  272. package/admin/src/components/TablePagination/index.js +0 -33
  273. package/admin/src/components/Wysiwyg/Editor.js +0 -439
  274. package/admin/src/components/Wysiwyg/EditorLayout.d.ts +0 -13
  275. package/admin/src/components/Wysiwyg/EditorLayout.js +0 -85
  276. package/admin/src/components/Wysiwyg/Field.d.ts +0 -15
  277. package/admin/src/components/Wysiwyg/Field.js +0 -135
  278. package/admin/src/components/Wysiwyg/PreviewWysiwyg.js +0 -191
  279. package/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +0 -8
  280. package/admin/src/components/Wysiwyg/WysiwygFooter.js +0 -44
  281. package/admin/src/components/Wysiwyg/WysiwygNav.js +0 -114
  282. package/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +0 -7
  283. package/admin/src/components/Wysiwyg/WysiwygStyles.js +0 -54
  284. package/admin/src/components/Wysiwyg/utils/continueList.js +0 -83
  285. package/admin/src/components/Wysiwyg/utils/mdRenderer.js +0 -63
  286. package/admin/src/components/Wysiwyg/utils/utils.js +0 -250
  287. package/admin/src/components/icons/comments.js +0 -12
  288. package/admin/src/components/icons/index.d.ts +0 -3
  289. package/admin/src/components/icons/index.js +0 -29
  290. package/admin/src/components/icons/lock.d.ts +0 -7
  291. package/admin/src/components/icons/lock.js +0 -12
  292. package/admin/src/components/icons/review.d.ts +0 -7
  293. package/admin/src/components/icons/review.js +0 -12
  294. package/admin/src/components/icons/strapiIcons.d.ts +0 -26
  295. package/admin/src/components/icons/strapiIcons.js +0 -38
  296. package/admin/src/components/icons/unlock.d.ts +0 -7
  297. package/admin/src/components/icons/unlock.js +0 -12
  298. package/admin/src/custom-fields/comments/components/icon.d.ts +0 -2
  299. package/admin/src/custom-fields/comments/components/icon.js +0 -14
  300. package/admin/src/custom-fields/comments/components/index.d.ts +0 -3
  301. package/admin/src/custom-fields/comments/components/index.js +0 -19
  302. package/admin/src/custom-fields/comments/components/input/consts.d.ts +0 -3
  303. package/admin/src/custom-fields/comments/components/input/consts.js +0 -9
  304. package/admin/src/custom-fields/comments/components/input/index.d.ts +0 -3
  305. package/admin/src/custom-fields/comments/components/input/index.js +0 -5
  306. package/admin/src/custom-fields/comments/components/input/input.d.ts +0 -4
  307. package/admin/src/custom-fields/comments/components/input/input.js +0 -98
  308. package/admin/src/custom-fields/comments/components/input/types.d.ts +0 -10
  309. package/admin/src/custom-fields/comments/components/input/types.js +0 -3
  310. package/admin/src/custom-fields/comments/components/input/utils.d.ts +0 -26
  311. package/admin/src/custom-fields/comments/components/input/utils.js +0 -141
  312. package/admin/src/custom-fields/comments/index.d.ts +0 -3
  313. package/admin/src/custom-fields/comments/index.js +0 -53
  314. package/admin/src/custom-fields/index.d.ts +0 -3
  315. package/admin/src/custom-fields/index.js +0 -13
  316. package/admin/src/hooks/useConfig.d.ts +0 -8
  317. package/admin/src/hooks/useConfig.js +0 -41
  318. package/admin/src/hooks/useReportsActionsHandlers.d.ts +0 -19
  319. package/admin/src/hooks/useReportsActionsHandlers.js +0 -70
  320. package/admin/src/index.d.ts +0 -15
  321. package/admin/src/index.js +0 -97
  322. package/admin/src/pages/App/index.d.ts +0 -15
  323. package/admin/src/pages/App/index.js +0 -47
  324. package/admin/src/pages/App/reducer/actions.d.ts +0 -8
  325. package/admin/src/pages/App/reducer/actions.js +0 -12
  326. package/admin/src/pages/App/reducer/constants.d.ts +0 -4
  327. package/admin/src/pages/App/reducer/constants.js +0 -7
  328. package/admin/src/pages/App/reducer/index.d.ts +0 -9
  329. package/admin/src/pages/App/reducer/index.js +0 -28
  330. package/admin/src/pages/App/reducer/init.d.ts +0 -3
  331. package/admin/src/pages/App/reducer/init.js +0 -9
  332. package/admin/src/pages/App/reducer/selectors.d.ts +0 -10
  333. package/admin/src/pages/App/reducer/selectors.js +0 -18
  334. package/admin/src/pages/App/utils/api.d.ts +0 -2
  335. package/admin/src/pages/App/utils/api.js +0 -15
  336. package/admin/src/pages/ComingSoonPage/index.d.ts +0 -4
  337. package/admin/src/pages/ComingSoonPage/index.js +0 -43
  338. package/admin/src/pages/Details/components/DetailsEntity/index.d.ts +0 -19
  339. package/admin/src/pages/Details/components/DetailsEntity/index.js +0 -56
  340. package/admin/src/pages/Details/components/DetailsFilters/index.d.ts +0 -13
  341. package/admin/src/pages/Details/components/DetailsFilters/index.js +0 -28
  342. package/admin/src/pages/Details/components/DetailsFilters/styles.d.ts +0 -2
  343. package/admin/src/pages/Details/components/DetailsFilters/styles.js +0 -14
  344. package/admin/src/pages/Details/index.d.ts +0 -11
  345. package/admin/src/pages/Details/index.js +0 -100
  346. package/admin/src/pages/Discover/components/DiscoverTableRow/index.d.ts +0 -25
  347. package/admin/src/pages/Discover/components/DiscoverTableRow/index.js +0 -125
  348. package/admin/src/pages/Discover/components/DiscoverTableRow/styles.d.ts +0 -2
  349. package/admin/src/pages/Discover/components/DiscoverTableRow/styles.js +0 -14
  350. package/admin/src/pages/Discover/index.d.ts +0 -11
  351. package/admin/src/pages/Discover/index.js +0 -132
  352. package/admin/src/pages/Discover/utils/api.d.ts +0 -2
  353. package/admin/src/pages/Discover/utils/api.js +0 -16
  354. package/admin/src/pages/Discover/utils/filtersSchema.d.ts +0 -26
  355. package/admin/src/pages/Discover/utils/filtersSchema.js +0 -39
  356. package/admin/src/pages/NoAccessPage/index.d.ts +0 -3
  357. package/admin/src/pages/NoAccessPage/index.js +0 -31
  358. package/admin/src/pages/Reports/components/ReportsTableRow/index.d.ts +0 -15
  359. package/admin/src/pages/Reports/components/ReportsTableRow/index.js +0 -91
  360. package/admin/src/pages/Reports/components/ReportsTableRow/styles.d.ts +0 -2
  361. package/admin/src/pages/Reports/components/ReportsTableRow/styles.js +0 -14
  362. package/admin/src/pages/Reports/index.d.ts +0 -11
  363. package/admin/src/pages/Reports/index.js +0 -196
  364. package/admin/src/pages/Reports/utils/api.d.ts +0 -2
  365. package/admin/src/pages/Reports/utils/api.js +0 -16
  366. package/admin/src/pages/Reports/utils/filtersSchema.d.ts +0 -26
  367. package/admin/src/pages/Reports/utils/filtersSchema.js +0 -32
  368. package/admin/src/pages/Settings/components/RestartAlert/styles.d.ts +0 -2
  369. package/admin/src/pages/Settings/components/RestartAlert/styles.js +0 -14
  370. package/admin/src/pages/Settings/index.d.ts +0 -3
  371. package/admin/src/pages/Settings/index.js +0 -244
  372. package/admin/src/pages/Settings/utils/api.d.ts +0 -7
  373. package/admin/src/pages/Settings/utils/api.js +0 -65
  374. package/admin/src/pages/utils/api.d.ts +0 -23
  375. package/admin/src/pages/utils/api.js +0 -85
  376. package/admin/src/permissions.js +0 -32
  377. package/admin/src/pluginId.js +0 -29
  378. package/admin/src/reducers.d.ts +0 -7
  379. package/admin/src/reducers.js +0 -12
  380. package/admin/src/translations/index.d.ts +0 -8
  381. package/admin/src/translations/index.js +0 -23
  382. package/admin/src/utils/axiosInstance.d.ts +0 -3
  383. package/admin/src/utils/axiosInstance.js +0 -29
  384. package/admin/src/utils/constants.d.ts +0 -29
  385. package/admin/src/utils/constants.js +0 -28
  386. package/admin/src/utils/errors.js +0 -10
  387. package/admin/src/utils/functions.js +0 -10
  388. package/admin/src/utils/getApiUrl.js +0 -6
  389. package/admin/src/utils/getMessage.d.ts +0 -4
  390. package/admin/src/utils/getMessage.js +0 -20
  391. package/admin/src/utils/getRelatedGroups.js +0 -5
  392. package/admin/src/utils/getUrl.js +0 -6
  393. package/admin/src/utils/handleAPIError.d.ts +0 -4
  394. package/admin/src/utils/handleAPIError.js +0 -17
  395. package/admin/src/utils/index.js +0 -40
  396. package/admin/src/utils/parseRegExp.js +0 -11
  397. package/admin/src/utils/renderEntryTitle.d.ts +0 -4
  398. package/admin/src/utils/renderEntryTitle.js +0 -13
  399. package/admin/src/utils/renderInitials.js +0 -11
  400. package/admin/src/utils/resolveCommentStatus.d.ts +0 -10
  401. package/admin/src/utils/resolveCommentStatus.js +0 -26
  402. package/admin/src/utils/resolveCommentStatusColor.d.ts +0 -4
  403. package/admin/src/utils/resolveCommentStatusColor.js +0 -22
  404. package/admin/src/utils/resolveReportStatus.d.ts +0 -4
  405. package/admin/src/utils/resolveReportStatus.js +0 -23
  406. package/admin/src/utils/resolveReportStatusColor.d.ts +0 -4
  407. package/admin/src/utils/resolveReportStatusColor.js +0 -17
  408. package/content-types/comment.js +0 -96
  409. package/content-types/index.js +0 -23
  410. package/content-types/report.js +0 -49
  411. package/permissions.js +0 -18
  412. package/server/bootstrap.d.ts +0 -4
  413. package/server/bootstrap.js +0 -59
  414. package/server/config/index.d.ts +0 -4
  415. package/server/config/index.js +0 -20
  416. package/server/controllers/admin.d.ts +0 -4
  417. package/server/controllers/admin.js +0 -212
  418. package/server/controllers/client.d.ts +0 -4
  419. package/server/controllers/client.js +0 -143
  420. package/server/controllers/index.d.ts +0 -6
  421. package/server/controllers/index.js +0 -13
  422. package/server/controllers/utils/functions.d.ts +0 -7
  423. package/server/controllers/utils/functions.js +0 -24
  424. package/server/controllers/utils/parsers.d.ts +0 -11
  425. package/server/controllers/utils/parsers.js +0 -72
  426. package/server/destroy.d.ts +0 -3
  427. package/server/destroy.js +0 -4
  428. package/server/graphql/index.d.ts +0 -4
  429. package/server/graphql/index.js +0 -27
  430. package/server/graphql/mutations/createAbuseReport.d.ts +0 -11
  431. package/server/graphql/mutations/createAbuseReport.js +0 -23
  432. package/server/graphql/mutations/createComment.d.ts +0 -14
  433. package/server/graphql/mutations/createComment.js +0 -23
  434. package/server/graphql/mutations/index.d.ts +0 -4
  435. package/server/graphql/mutations/index.js +0 -26
  436. package/server/graphql/mutations/removeComment.d.ts +0 -11
  437. package/server/graphql/mutations/removeComment.js +0 -23
  438. package/server/graphql/mutations/updateComment.d.ts +0 -11
  439. package/server/graphql/mutations/updateComment.js +0 -23
  440. package/server/graphql/queries/findAllFlat.d.ts +0 -19
  441. package/server/graphql/queries/findAllFlat.js +0 -37
  442. package/server/graphql/queries/findAllInHierarchy.d.ts +0 -18
  443. package/server/graphql/queries/findAllInHierarchy.js +0 -33
  444. package/server/graphql/queries/findAllPerAuthor.d.ts +0 -21
  445. package/server/graphql/queries/findAllPerAuthor.js +0 -40
  446. package/server/graphql/queries/index.d.ts +0 -4
  447. package/server/graphql/queries/index.js +0 -24
  448. package/server/graphql/resolvers-config.d.ts +0 -23
  449. package/server/graphql/resolvers-config.js +0 -13
  450. package/server/graphql/types/comment-author-type.d.ts +0 -4
  451. package/server/graphql/types/comment-author-type.js +0 -8
  452. package/server/graphql/types/comment-author.d.ts +0 -4
  453. package/server/graphql/types/comment-author.js +0 -11
  454. package/server/graphql/types/comment-nested.d.ts +0 -4
  455. package/server/graphql/types/comment-nested.js +0 -18
  456. package/server/graphql/types/comment.d.ts +0 -4
  457. package/server/graphql/types/comment.js +0 -17
  458. package/server/graphql/types/create-comment-author.d.ts +0 -4
  459. package/server/graphql/types/create-comment-author.js +0 -11
  460. package/server/graphql/types/create-comment.d.ts +0 -4
  461. package/server/graphql/types/create-comment.js +0 -11
  462. package/server/graphql/types/create-report.d.ts +0 -4
  463. package/server/graphql/types/create-report.js +0 -11
  464. package/server/graphql/types/id.d.ts +0 -4
  465. package/server/graphql/types/id.js +0 -25
  466. package/server/graphql/types/identify-comment-author.d.ts +0 -4
  467. package/server/graphql/types/identify-comment-author.js +0 -8
  468. package/server/graphql/types/index.d.ts +0 -4
  469. package/server/graphql/types/index.js +0 -42
  470. package/server/graphql/types/remove-comment.d.ts +0 -4
  471. package/server/graphql/types/remove-comment.js +0 -10
  472. package/server/graphql/types/report-reason.d.ts +0 -4
  473. package/server/graphql/types/report-reason.js +0 -12
  474. package/server/graphql/types/report.d.ts +0 -4
  475. package/server/graphql/types/report.js +0 -13
  476. package/server/graphql/types/response-find-all-per-author.d.ts +0 -4
  477. package/server/graphql/types/response-find-all-per-author.js +0 -9
  478. package/server/graphql/types/response-find-all.d.ts +0 -4
  479. package/server/graphql/types/response-find-all.js +0 -9
  480. package/server/graphql/types/response-meta.d.ts +0 -4
  481. package/server/graphql/types/response-meta.js +0 -8
  482. package/server/graphql/types/response-pagination.d.ts +0 -4
  483. package/server/graphql/types/response-pagination.js +0 -13
  484. package/server/graphql/types/update-comment.d.ts +0 -4
  485. package/server/graphql/types/update-comment.js +0 -11
  486. package/server/index.d.ts +0 -26
  487. package/server/index.js +0 -25
  488. package/server/register/custom-fields/comments.js +0 -9
  489. package/server/register/custom-fields/index.d.ts +0 -3
  490. package/server/register/custom-fields/index.js +0 -14
  491. package/server/register/index.js +0 -8
  492. package/server/routes/admin.d.ts +0 -4
  493. package/server/routes/admin.js +0 -182
  494. package/server/routes/client.d.ts +0 -4
  495. package/server/routes/client.js +0 -118
  496. package/server/routes/index.d.ts +0 -11
  497. package/server/routes/index.js +0 -19
  498. package/server/services/admin.d.ts +0 -5
  499. package/server/services/admin.js +0 -506
  500. package/server/services/client.d.ts +0 -5
  501. package/server/services/client.js +0 -321
  502. package/server/services/common.d.ts +0 -5
  503. package/server/services/common.js +0 -296
  504. package/server/services/graphql.d.ts +0 -5
  505. package/server/services/graphql.js +0 -150
  506. package/server/services/index.d.ts +0 -8
  507. package/server/services/index.js +0 -16
  508. package/server/services/utils/functions.d.ts +0 -14
  509. package/server/services/utils/functions.js +0 -118
  510. package/server/services/utils/parsers.d.ts +0 -6
  511. package/server/services/utils/parsers.js +0 -63
  512. package/server/utils/constants.d.ts +0 -15
  513. package/server/utils/constants.js +0 -47
  514. package/server/utils/error.js +0 -29
  515. package/server/utils/functions.d.ts +0 -10
  516. package/server/utils/functions.js +0 -53
  517. package/server/utils/types.js +0 -3
  518. package/strapi-admin.d.ts +0 -3
  519. package/strapi-admin.js +0 -8
  520. package/strapi-server.d.ts +0 -186
  521. package/strapi-server.js +0 -46
  522. package/tsconfig.tsbuildinfo +0 -1
  523. package/types/contentTypes.js +0 -3
  524. package/types/utils.d.ts +0 -5
  525. package/types/utils.js +0 -9
@@ -0,0 +1,776 @@
1
+ import { z, ZodArray, ZodObject } from 'zod';
2
+ import PluginError from '../utils/PluginError';
3
+ export declare const equalValidators: z.ZodUnion<[z.ZodObject<{
4
+ $eq: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ $eq?: string;
7
+ }, {
8
+ $eq?: string;
9
+ }>, z.ZodObject<{
10
+ $eqi: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ $eqi?: string;
13
+ }, {
14
+ $eqi?: string;
15
+ }>]>;
16
+ export declare const notEqualValidators: z.ZodUnion<[z.ZodObject<{
17
+ $ne: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ $ne?: string;
20
+ }, {
21
+ $ne?: string;
22
+ }>, z.ZodObject<{
23
+ $nei: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ $nei?: string;
26
+ }, {
27
+ $nei?: string;
28
+ }>]>;
29
+ export declare const grantThenValidators: z.ZodUnion<[z.ZodObject<{
30
+ $gt: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ $gt?: string;
33
+ }, {
34
+ $gt?: string;
35
+ }>, z.ZodObject<{
36
+ $gte: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ $gte?: string;
39
+ }, {
40
+ $gte?: string;
41
+ }>]>;
42
+ export declare const lessThenValidators: z.ZodUnion<[z.ZodObject<{
43
+ $lt: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ $lt?: string;
46
+ }, {
47
+ $lt?: string;
48
+ }>, z.ZodObject<{
49
+ $lte: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ $lte?: string;
52
+ }, {
53
+ $lte?: string;
54
+ }>]>;
55
+ export declare const startWithValidators: z.ZodUnion<[z.ZodObject<{
56
+ $startsWith: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ $startsWith?: string;
59
+ }, {
60
+ $startsWith?: string;
61
+ }>, z.ZodObject<{
62
+ $startsWithi: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ $startsWithi?: string;
65
+ }, {
66
+ $startsWithi?: string;
67
+ }>]>;
68
+ export declare const endWithValidators: z.ZodUnion<[z.ZodObject<{
69
+ $endsWith: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ $endsWith?: string;
72
+ }, {
73
+ $endsWith?: string;
74
+ }>, z.ZodObject<{
75
+ $endsWithi: z.ZodString;
76
+ }, "strip", z.ZodTypeAny, {
77
+ $endsWithi?: string;
78
+ }, {
79
+ $endsWithi?: string;
80
+ }>]>;
81
+ export declare const containsValidators: z.ZodUnion<[z.ZodObject<{
82
+ $contains: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ $contains?: string;
85
+ }, {
86
+ $contains?: string;
87
+ }>, z.ZodObject<{
88
+ $containsi: z.ZodString;
89
+ }, "strip", z.ZodTypeAny, {
90
+ $containsi?: string;
91
+ }, {
92
+ $containsi?: string;
93
+ }>]>;
94
+ export declare const notContainsValidators: z.ZodUnion<[z.ZodObject<{
95
+ $notContains: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ $notContains?: string;
98
+ }, {
99
+ $notContains?: string;
100
+ }>, z.ZodObject<{
101
+ $notContainsi: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ $notContainsi?: string;
104
+ }, {
105
+ $notContainsi?: string;
106
+ }>]>;
107
+ export declare const stringToNumberValidator: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
108
+ export declare const stringToBooleanValidator: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodBoolean]>, boolean, string | boolean>, z.ZodBoolean>;
109
+ export declare const qOperatorValidator: z.ZodObject<{
110
+ _q: z.ZodOptional<z.ZodString>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ _q?: string;
113
+ }, {
114
+ _q?: string;
115
+ }>;
116
+ export declare const orderByValidator: z.ZodString;
117
+ export declare const filtersValidator: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodUnion<[z.ZodObject<{
118
+ $eq: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ $eq?: string;
121
+ }, {
122
+ $eq?: string;
123
+ }>, z.ZodObject<{
124
+ $eqi: z.ZodString;
125
+ }, "strip", z.ZodTypeAny, {
126
+ $eqi?: string;
127
+ }, {
128
+ $eqi?: string;
129
+ }>]>, z.ZodUnion<[z.ZodObject<{
130
+ $ne: z.ZodString;
131
+ }, "strip", z.ZodTypeAny, {
132
+ $ne?: string;
133
+ }, {
134
+ $ne?: string;
135
+ }>, z.ZodObject<{
136
+ $nei: z.ZodString;
137
+ }, "strip", z.ZodTypeAny, {
138
+ $nei?: string;
139
+ }, {
140
+ $nei?: string;
141
+ }>]>, z.ZodUnion<[z.ZodObject<{
142
+ $gt: z.ZodString;
143
+ }, "strip", z.ZodTypeAny, {
144
+ $gt?: string;
145
+ }, {
146
+ $gt?: string;
147
+ }>, z.ZodObject<{
148
+ $gte: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ $gte?: string;
151
+ }, {
152
+ $gte?: string;
153
+ }>]>, z.ZodUnion<[z.ZodObject<{
154
+ $lt: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ $lt?: string;
157
+ }, {
158
+ $lt?: string;
159
+ }>, z.ZodObject<{
160
+ $lte: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ $lte?: string;
163
+ }, {
164
+ $lte?: string;
165
+ }>]>, z.ZodUnion<[z.ZodObject<{
166
+ $startsWith: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ $startsWith?: string;
169
+ }, {
170
+ $startsWith?: string;
171
+ }>, z.ZodObject<{
172
+ $startsWithi: z.ZodString;
173
+ }, "strip", z.ZodTypeAny, {
174
+ $startsWithi?: string;
175
+ }, {
176
+ $startsWithi?: string;
177
+ }>]>, z.ZodUnion<[z.ZodObject<{
178
+ $endsWith: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ $endsWith?: string;
181
+ }, {
182
+ $endsWith?: string;
183
+ }>, z.ZodObject<{
184
+ $endsWithi: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ $endsWithi?: string;
187
+ }, {
188
+ $endsWithi?: string;
189
+ }>]>, z.ZodUnion<[z.ZodObject<{
190
+ $contains: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ $contains?: string;
193
+ }, {
194
+ $contains?: string;
195
+ }>, z.ZodObject<{
196
+ $containsi: z.ZodString;
197
+ }, "strip", z.ZodTypeAny, {
198
+ $containsi?: string;
199
+ }, {
200
+ $containsi?: string;
201
+ }>]>, z.ZodUnion<[z.ZodObject<{
202
+ $notContains: z.ZodString;
203
+ }, "strip", z.ZodTypeAny, {
204
+ $notContains?: string;
205
+ }, {
206
+ $notContains?: string;
207
+ }>, z.ZodObject<{
208
+ $notContainsi: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ $notContainsi?: string;
211
+ }, {
212
+ $notContainsi?: string;
213
+ }>]>, z.ZodObject<{
214
+ $notNull: z.ZodBoolean;
215
+ }, "strip", z.ZodTypeAny, {
216
+ $notNull?: boolean;
217
+ }, {
218
+ $notNull?: boolean;
219
+ }>]>;
220
+ export declare const getFiltersOperators: <T extends Record<string, boolean>>(dictionary: T) => z.ZodObject<{ [key in keyof T]: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodUnion<[z.ZodObject<{
221
+ $eq: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ $eq?: string;
224
+ }, {
225
+ $eq?: string;
226
+ }>, z.ZodObject<{
227
+ $eqi: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ $eqi?: string;
230
+ }, {
231
+ $eqi?: string;
232
+ }>]>, z.ZodUnion<[z.ZodObject<{
233
+ $ne: z.ZodString;
234
+ }, "strip", z.ZodTypeAny, {
235
+ $ne?: string;
236
+ }, {
237
+ $ne?: string;
238
+ }>, z.ZodObject<{
239
+ $nei: z.ZodString;
240
+ }, "strip", z.ZodTypeAny, {
241
+ $nei?: string;
242
+ }, {
243
+ $nei?: string;
244
+ }>]>, z.ZodUnion<[z.ZodObject<{
245
+ $gt: z.ZodString;
246
+ }, "strip", z.ZodTypeAny, {
247
+ $gt?: string;
248
+ }, {
249
+ $gt?: string;
250
+ }>, z.ZodObject<{
251
+ $gte: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ $gte?: string;
254
+ }, {
255
+ $gte?: string;
256
+ }>]>, z.ZodUnion<[z.ZodObject<{
257
+ $lt: z.ZodString;
258
+ }, "strip", z.ZodTypeAny, {
259
+ $lt?: string;
260
+ }, {
261
+ $lt?: string;
262
+ }>, z.ZodObject<{
263
+ $lte: z.ZodString;
264
+ }, "strip", z.ZodTypeAny, {
265
+ $lte?: string;
266
+ }, {
267
+ $lte?: string;
268
+ }>]>, z.ZodUnion<[z.ZodObject<{
269
+ $startsWith: z.ZodString;
270
+ }, "strip", z.ZodTypeAny, {
271
+ $startsWith?: string;
272
+ }, {
273
+ $startsWith?: string;
274
+ }>, z.ZodObject<{
275
+ $startsWithi: z.ZodString;
276
+ }, "strip", z.ZodTypeAny, {
277
+ $startsWithi?: string;
278
+ }, {
279
+ $startsWithi?: string;
280
+ }>]>, z.ZodUnion<[z.ZodObject<{
281
+ $endsWith: z.ZodString;
282
+ }, "strip", z.ZodTypeAny, {
283
+ $endsWith?: string;
284
+ }, {
285
+ $endsWith?: string;
286
+ }>, z.ZodObject<{
287
+ $endsWithi: z.ZodString;
288
+ }, "strip", z.ZodTypeAny, {
289
+ $endsWithi?: string;
290
+ }, {
291
+ $endsWithi?: string;
292
+ }>]>, z.ZodUnion<[z.ZodObject<{
293
+ $contains: z.ZodString;
294
+ }, "strip", z.ZodTypeAny, {
295
+ $contains?: string;
296
+ }, {
297
+ $contains?: string;
298
+ }>, z.ZodObject<{
299
+ $containsi: z.ZodString;
300
+ }, "strip", z.ZodTypeAny, {
301
+ $containsi?: string;
302
+ }, {
303
+ $containsi?: string;
304
+ }>]>, z.ZodUnion<[z.ZodObject<{
305
+ $notContains: z.ZodString;
306
+ }, "strip", z.ZodTypeAny, {
307
+ $notContains?: string;
308
+ }, {
309
+ $notContains?: string;
310
+ }>, z.ZodObject<{
311
+ $notContainsi: z.ZodString;
312
+ }, "strip", z.ZodTypeAny, {
313
+ $notContainsi?: string;
314
+ }, {
315
+ $notContainsi?: string;
316
+ }>]>, z.ZodObject<{
317
+ $notNull: z.ZodBoolean;
318
+ }, "strip", z.ZodTypeAny, {
319
+ $notNull?: boolean;
320
+ }, {
321
+ $notNull?: boolean;
322
+ }>]>; }, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{ [key in keyof T]: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodUnion<[z.ZodObject<{
323
+ $eq: z.ZodString;
324
+ }, "strip", z.ZodTypeAny, {
325
+ $eq?: string;
326
+ }, {
327
+ $eq?: string;
328
+ }>, z.ZodObject<{
329
+ $eqi: z.ZodString;
330
+ }, "strip", z.ZodTypeAny, {
331
+ $eqi?: string;
332
+ }, {
333
+ $eqi?: string;
334
+ }>]>, z.ZodUnion<[z.ZodObject<{
335
+ $ne: z.ZodString;
336
+ }, "strip", z.ZodTypeAny, {
337
+ $ne?: string;
338
+ }, {
339
+ $ne?: string;
340
+ }>, z.ZodObject<{
341
+ $nei: z.ZodString;
342
+ }, "strip", z.ZodTypeAny, {
343
+ $nei?: string;
344
+ }, {
345
+ $nei?: string;
346
+ }>]>, z.ZodUnion<[z.ZodObject<{
347
+ $gt: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ $gt?: string;
350
+ }, {
351
+ $gt?: string;
352
+ }>, z.ZodObject<{
353
+ $gte: z.ZodString;
354
+ }, "strip", z.ZodTypeAny, {
355
+ $gte?: string;
356
+ }, {
357
+ $gte?: string;
358
+ }>]>, z.ZodUnion<[z.ZodObject<{
359
+ $lt: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ $lt?: string;
362
+ }, {
363
+ $lt?: string;
364
+ }>, z.ZodObject<{
365
+ $lte: z.ZodString;
366
+ }, "strip", z.ZodTypeAny, {
367
+ $lte?: string;
368
+ }, {
369
+ $lte?: string;
370
+ }>]>, z.ZodUnion<[z.ZodObject<{
371
+ $startsWith: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ $startsWith?: string;
374
+ }, {
375
+ $startsWith?: string;
376
+ }>, z.ZodObject<{
377
+ $startsWithi: z.ZodString;
378
+ }, "strip", z.ZodTypeAny, {
379
+ $startsWithi?: string;
380
+ }, {
381
+ $startsWithi?: string;
382
+ }>]>, z.ZodUnion<[z.ZodObject<{
383
+ $endsWith: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ $endsWith?: string;
386
+ }, {
387
+ $endsWith?: string;
388
+ }>, z.ZodObject<{
389
+ $endsWithi: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ $endsWithi?: string;
392
+ }, {
393
+ $endsWithi?: string;
394
+ }>]>, z.ZodUnion<[z.ZodObject<{
395
+ $contains: z.ZodString;
396
+ }, "strip", z.ZodTypeAny, {
397
+ $contains?: string;
398
+ }, {
399
+ $contains?: string;
400
+ }>, z.ZodObject<{
401
+ $containsi: z.ZodString;
402
+ }, "strip", z.ZodTypeAny, {
403
+ $containsi?: string;
404
+ }, {
405
+ $containsi?: string;
406
+ }>]>, z.ZodUnion<[z.ZodObject<{
407
+ $notContains: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ $notContains?: string;
410
+ }, {
411
+ $notContains?: string;
412
+ }>, z.ZodObject<{
413
+ $notContainsi: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ $notContainsi?: string;
416
+ }, {
417
+ $notContainsi?: string;
418
+ }>]>, z.ZodObject<{
419
+ $notNull: z.ZodBoolean;
420
+ }, "strip", z.ZodTypeAny, {
421
+ $notNull?: boolean;
422
+ }, {
423
+ $notNull?: boolean;
424
+ }>]>; }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{ [key in keyof T]: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodUnion<[z.ZodObject<{
425
+ $eq: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ $eq?: string;
428
+ }, {
429
+ $eq?: string;
430
+ }>, z.ZodObject<{
431
+ $eqi: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ $eqi?: string;
434
+ }, {
435
+ $eqi?: string;
436
+ }>]>, z.ZodUnion<[z.ZodObject<{
437
+ $ne: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ $ne?: string;
440
+ }, {
441
+ $ne?: string;
442
+ }>, z.ZodObject<{
443
+ $nei: z.ZodString;
444
+ }, "strip", z.ZodTypeAny, {
445
+ $nei?: string;
446
+ }, {
447
+ $nei?: string;
448
+ }>]>, z.ZodUnion<[z.ZodObject<{
449
+ $gt: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ $gt?: string;
452
+ }, {
453
+ $gt?: string;
454
+ }>, z.ZodObject<{
455
+ $gte: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ $gte?: string;
458
+ }, {
459
+ $gte?: string;
460
+ }>]>, z.ZodUnion<[z.ZodObject<{
461
+ $lt: z.ZodString;
462
+ }, "strip", z.ZodTypeAny, {
463
+ $lt?: string;
464
+ }, {
465
+ $lt?: string;
466
+ }>, z.ZodObject<{
467
+ $lte: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ $lte?: string;
470
+ }, {
471
+ $lte?: string;
472
+ }>]>, z.ZodUnion<[z.ZodObject<{
473
+ $startsWith: z.ZodString;
474
+ }, "strip", z.ZodTypeAny, {
475
+ $startsWith?: string;
476
+ }, {
477
+ $startsWith?: string;
478
+ }>, z.ZodObject<{
479
+ $startsWithi: z.ZodString;
480
+ }, "strip", z.ZodTypeAny, {
481
+ $startsWithi?: string;
482
+ }, {
483
+ $startsWithi?: string;
484
+ }>]>, z.ZodUnion<[z.ZodObject<{
485
+ $endsWith: z.ZodString;
486
+ }, "strip", z.ZodTypeAny, {
487
+ $endsWith?: string;
488
+ }, {
489
+ $endsWith?: string;
490
+ }>, z.ZodObject<{
491
+ $endsWithi: z.ZodString;
492
+ }, "strip", z.ZodTypeAny, {
493
+ $endsWithi?: string;
494
+ }, {
495
+ $endsWithi?: string;
496
+ }>]>, z.ZodUnion<[z.ZodObject<{
497
+ $contains: z.ZodString;
498
+ }, "strip", z.ZodTypeAny, {
499
+ $contains?: string;
500
+ }, {
501
+ $contains?: string;
502
+ }>, z.ZodObject<{
503
+ $containsi: z.ZodString;
504
+ }, "strip", z.ZodTypeAny, {
505
+ $containsi?: string;
506
+ }, {
507
+ $containsi?: string;
508
+ }>]>, z.ZodUnion<[z.ZodObject<{
509
+ $notContains: z.ZodString;
510
+ }, "strip", z.ZodTypeAny, {
511
+ $notContains?: string;
512
+ }, {
513
+ $notContains?: string;
514
+ }>, z.ZodObject<{
515
+ $notContainsi: z.ZodString;
516
+ }, "strip", z.ZodTypeAny, {
517
+ $notContainsi?: string;
518
+ }, {
519
+ $notContainsi?: string;
520
+ }>]>, z.ZodObject<{
521
+ $notNull: z.ZodBoolean;
522
+ }, "strip", z.ZodTypeAny, {
523
+ $notNull?: boolean;
524
+ }, {
525
+ $notNull?: boolean;
526
+ }>]>; }>, any>[k]; } : never, z.baseObjectInputType<{ [key in keyof T]: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodUnion<[z.ZodObject<{
527
+ $eq: z.ZodString;
528
+ }, "strip", z.ZodTypeAny, {
529
+ $eq?: string;
530
+ }, {
531
+ $eq?: string;
532
+ }>, z.ZodObject<{
533
+ $eqi: z.ZodString;
534
+ }, "strip", z.ZodTypeAny, {
535
+ $eqi?: string;
536
+ }, {
537
+ $eqi?: string;
538
+ }>]>, z.ZodUnion<[z.ZodObject<{
539
+ $ne: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ $ne?: string;
542
+ }, {
543
+ $ne?: string;
544
+ }>, z.ZodObject<{
545
+ $nei: z.ZodString;
546
+ }, "strip", z.ZodTypeAny, {
547
+ $nei?: string;
548
+ }, {
549
+ $nei?: string;
550
+ }>]>, z.ZodUnion<[z.ZodObject<{
551
+ $gt: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ $gt?: string;
554
+ }, {
555
+ $gt?: string;
556
+ }>, z.ZodObject<{
557
+ $gte: z.ZodString;
558
+ }, "strip", z.ZodTypeAny, {
559
+ $gte?: string;
560
+ }, {
561
+ $gte?: string;
562
+ }>]>, z.ZodUnion<[z.ZodObject<{
563
+ $lt: z.ZodString;
564
+ }, "strip", z.ZodTypeAny, {
565
+ $lt?: string;
566
+ }, {
567
+ $lt?: string;
568
+ }>, z.ZodObject<{
569
+ $lte: z.ZodString;
570
+ }, "strip", z.ZodTypeAny, {
571
+ $lte?: string;
572
+ }, {
573
+ $lte?: string;
574
+ }>]>, z.ZodUnion<[z.ZodObject<{
575
+ $startsWith: z.ZodString;
576
+ }, "strip", z.ZodTypeAny, {
577
+ $startsWith?: string;
578
+ }, {
579
+ $startsWith?: string;
580
+ }>, z.ZodObject<{
581
+ $startsWithi: z.ZodString;
582
+ }, "strip", z.ZodTypeAny, {
583
+ $startsWithi?: string;
584
+ }, {
585
+ $startsWithi?: string;
586
+ }>]>, z.ZodUnion<[z.ZodObject<{
587
+ $endsWith: z.ZodString;
588
+ }, "strip", z.ZodTypeAny, {
589
+ $endsWith?: string;
590
+ }, {
591
+ $endsWith?: string;
592
+ }>, z.ZodObject<{
593
+ $endsWithi: z.ZodString;
594
+ }, "strip", z.ZodTypeAny, {
595
+ $endsWithi?: string;
596
+ }, {
597
+ $endsWithi?: string;
598
+ }>]>, z.ZodUnion<[z.ZodObject<{
599
+ $contains: z.ZodString;
600
+ }, "strip", z.ZodTypeAny, {
601
+ $contains?: string;
602
+ }, {
603
+ $contains?: string;
604
+ }>, z.ZodObject<{
605
+ $containsi: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ $containsi?: string;
608
+ }, {
609
+ $containsi?: string;
610
+ }>]>, z.ZodUnion<[z.ZodObject<{
611
+ $notContains: z.ZodString;
612
+ }, "strip", z.ZodTypeAny, {
613
+ $notContains?: string;
614
+ }, {
615
+ $notContains?: string;
616
+ }>, z.ZodObject<{
617
+ $notContainsi: z.ZodString;
618
+ }, "strip", z.ZodTypeAny, {
619
+ $notContainsi?: string;
620
+ }, {
621
+ $notContainsi?: string;
622
+ }>]>, z.ZodObject<{
623
+ $notNull: z.ZodBoolean;
624
+ }, "strip", z.ZodTypeAny, {
625
+ $notNull?: boolean;
626
+ }, {
627
+ $notNull?: boolean;
628
+ }>]>; }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{ [key in keyof T]: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodUnion<[z.ZodObject<{
629
+ $eq: z.ZodString;
630
+ }, "strip", z.ZodTypeAny, {
631
+ $eq?: string;
632
+ }, {
633
+ $eq?: string;
634
+ }>, z.ZodObject<{
635
+ $eqi: z.ZodString;
636
+ }, "strip", z.ZodTypeAny, {
637
+ $eqi?: string;
638
+ }, {
639
+ $eqi?: string;
640
+ }>]>, z.ZodUnion<[z.ZodObject<{
641
+ $ne: z.ZodString;
642
+ }, "strip", z.ZodTypeAny, {
643
+ $ne?: string;
644
+ }, {
645
+ $ne?: string;
646
+ }>, z.ZodObject<{
647
+ $nei: z.ZodString;
648
+ }, "strip", z.ZodTypeAny, {
649
+ $nei?: string;
650
+ }, {
651
+ $nei?: string;
652
+ }>]>, z.ZodUnion<[z.ZodObject<{
653
+ $gt: z.ZodString;
654
+ }, "strip", z.ZodTypeAny, {
655
+ $gt?: string;
656
+ }, {
657
+ $gt?: string;
658
+ }>, z.ZodObject<{
659
+ $gte: z.ZodString;
660
+ }, "strip", z.ZodTypeAny, {
661
+ $gte?: string;
662
+ }, {
663
+ $gte?: string;
664
+ }>]>, z.ZodUnion<[z.ZodObject<{
665
+ $lt: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ $lt?: string;
668
+ }, {
669
+ $lt?: string;
670
+ }>, z.ZodObject<{
671
+ $lte: z.ZodString;
672
+ }, "strip", z.ZodTypeAny, {
673
+ $lte?: string;
674
+ }, {
675
+ $lte?: string;
676
+ }>]>, z.ZodUnion<[z.ZodObject<{
677
+ $startsWith: z.ZodString;
678
+ }, "strip", z.ZodTypeAny, {
679
+ $startsWith?: string;
680
+ }, {
681
+ $startsWith?: string;
682
+ }>, z.ZodObject<{
683
+ $startsWithi: z.ZodString;
684
+ }, "strip", z.ZodTypeAny, {
685
+ $startsWithi?: string;
686
+ }, {
687
+ $startsWithi?: string;
688
+ }>]>, z.ZodUnion<[z.ZodObject<{
689
+ $endsWith: z.ZodString;
690
+ }, "strip", z.ZodTypeAny, {
691
+ $endsWith?: string;
692
+ }, {
693
+ $endsWith?: string;
694
+ }>, z.ZodObject<{
695
+ $endsWithi: z.ZodString;
696
+ }, "strip", z.ZodTypeAny, {
697
+ $endsWithi?: string;
698
+ }, {
699
+ $endsWithi?: string;
700
+ }>]>, z.ZodUnion<[z.ZodObject<{
701
+ $contains: z.ZodString;
702
+ }, "strip", z.ZodTypeAny, {
703
+ $contains?: string;
704
+ }, {
705
+ $contains?: string;
706
+ }>, z.ZodObject<{
707
+ $containsi: z.ZodString;
708
+ }, "strip", z.ZodTypeAny, {
709
+ $containsi?: string;
710
+ }, {
711
+ $containsi?: string;
712
+ }>]>, z.ZodUnion<[z.ZodObject<{
713
+ $notContains: z.ZodString;
714
+ }, "strip", z.ZodTypeAny, {
715
+ $notContains?: string;
716
+ }, {
717
+ $notContains?: string;
718
+ }>, z.ZodObject<{
719
+ $notContainsi: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ $notContainsi?: string;
722
+ }, {
723
+ $notContainsi?: string;
724
+ }>]>, z.ZodObject<{
725
+ $notNull: z.ZodBoolean;
726
+ }, "strip", z.ZodTypeAny, {
727
+ $notNull?: boolean;
728
+ }, {
729
+ $notNull?: boolean;
730
+ }>]>; }>[k_1]; } : never>;
731
+ export declare const AVAILABLE_OPERATORS: {
732
+ readonly single: "single";
733
+ readonly array: "array";
734
+ };
735
+ type Result<T extends Record<string, keyof typeof AVAILABLE_OPERATORS>> = ZodObject<{
736
+ [key in keyof T]: T[key] extends typeof AVAILABLE_OPERATORS.single ? typeof stringToNumberValidator : ZodArray<typeof stringToNumberValidator>;
737
+ }>;
738
+ export declare const getStringToNumberValidator: <T extends Record<string, "array" | "single">>(dictionary: T) => Result<T>;
739
+ export declare const queryPaginationSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
740
+ pageSize: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
741
+ page: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
742
+ }, {
743
+ _q: z.ZodOptional<z.ZodString>;
744
+ }>, {
745
+ orderBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
746
+ }>, "strip", z.ZodTypeAny, {
747
+ page?: number;
748
+ pageSize?: number;
749
+ _q?: string;
750
+ orderBy?: string;
751
+ }, {
752
+ page?: string | number;
753
+ pageSize?: string | number;
754
+ _q?: string;
755
+ orderBy?: string;
756
+ }>;
757
+ export declare const validate: <I, O>(result: z.SafeParseReturnType<I, O>) => import("../utils/Either").Left<PluginError> | import("../utils/Either").Right<O>;
758
+ export declare const getRelationValidator: (enabledCollections: string[]) => z.ZodEffects<z.ZodString, `{${string}::${string}.${number}}`, string>;
759
+ export declare const externalAuthorSchema: z.ZodObject<{
760
+ id: z.ZodNumber;
761
+ name: z.ZodOptional<z.ZodString>;
762
+ email: z.ZodOptional<z.ZodString>;
763
+ avatar: z.ZodOptional<z.ZodString>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ name?: string;
766
+ id?: number;
767
+ email?: string;
768
+ avatar?: string;
769
+ }, {
770
+ name?: string;
771
+ id?: number;
772
+ email?: string;
773
+ avatar?: string;
774
+ }>;
775
+ export declare const primitiveUnion: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
776
+ export {};