@webiny/api-headless-cms 0.0.0-mt-2 → 0.0.0-unstable.06b2ede40f

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 (1157) hide show
  1. package/constants.d.ts +44 -0
  2. package/constants.js +70 -0
  3. package/constants.js.map +1 -0
  4. package/context.d.ts +6 -0
  5. package/context.js +164 -0
  6. package/context.js.map +1 -0
  7. package/crud/AccessControl/AccessControl.d.ts +98 -0
  8. package/crud/AccessControl/AccessControl.js +542 -0
  9. package/crud/AccessControl/AccessControl.js.map +1 -0
  10. package/crud/AccessControl/README.md +47 -0
  11. package/crud/AccessControl/groups-own.png +0 -0
  12. package/crud/AccessControl/models-own.png +0 -0
  13. package/crud/contentEntry/abstractions/IDeleteEntry.d.ts +4 -0
  14. package/crud/contentEntry/abstractions/IDeleteEntry.js +7 -0
  15. package/crud/contentEntry/abstractions/IDeleteEntry.js.map +1 -0
  16. package/crud/contentEntry/abstractions/IDeleteEntryOperation.d.ts +4 -0
  17. package/crud/contentEntry/abstractions/IDeleteEntryOperation.js +7 -0
  18. package/crud/contentEntry/abstractions/IDeleteEntryOperation.js.map +1 -0
  19. package/crud/contentEntry/abstractions/IGetEntriesByIds.d.ts +4 -0
  20. package/crud/contentEntry/abstractions/IGetEntriesByIds.js +7 -0
  21. package/crud/contentEntry/abstractions/IGetEntriesByIds.js.map +1 -0
  22. package/crud/contentEntry/abstractions/IGetEntry.d.ts +4 -0
  23. package/crud/contentEntry/abstractions/IGetEntry.js +7 -0
  24. package/crud/contentEntry/abstractions/IGetEntry.js.map +1 -0
  25. package/crud/contentEntry/abstractions/IGetLatestEntriesByIds.d.ts +4 -0
  26. package/crud/contentEntry/abstractions/IGetLatestEntriesByIds.js +7 -0
  27. package/crud/contentEntry/abstractions/IGetLatestEntriesByIds.js.map +1 -0
  28. package/crud/contentEntry/abstractions/IGetLatestRevisionByEntryId.d.ts +4 -0
  29. package/crud/contentEntry/abstractions/IGetLatestRevisionByEntryId.js +7 -0
  30. package/crud/contentEntry/abstractions/IGetLatestRevisionByEntryId.js.map +1 -0
  31. package/crud/contentEntry/abstractions/IGetPreviousRevisionByEntryId.d.ts +4 -0
  32. package/crud/contentEntry/abstractions/IGetPreviousRevisionByEntryId.js +7 -0
  33. package/crud/contentEntry/abstractions/IGetPreviousRevisionByEntryId.js.map +1 -0
  34. package/crud/contentEntry/abstractions/IGetPublishedEntriesByIds.d.ts +4 -0
  35. package/crud/contentEntry/abstractions/IGetPublishedEntriesByIds.js +7 -0
  36. package/crud/contentEntry/abstractions/IGetPublishedEntriesByIds.js.map +1 -0
  37. package/crud/contentEntry/abstractions/IGetPublishedRevisionByEntryId.d.ts +4 -0
  38. package/crud/contentEntry/abstractions/IGetPublishedRevisionByEntryId.js +7 -0
  39. package/crud/contentEntry/abstractions/IGetPublishedRevisionByEntryId.js.map +1 -0
  40. package/crud/contentEntry/abstractions/IGetRevisionById.d.ts +4 -0
  41. package/crud/contentEntry/abstractions/IGetRevisionById.js +7 -0
  42. package/crud/contentEntry/abstractions/IGetRevisionById.js.map +1 -0
  43. package/crud/contentEntry/abstractions/IGetRevisionsByEntryId.d.ts +4 -0
  44. package/crud/contentEntry/abstractions/IGetRevisionsByEntryId.js +7 -0
  45. package/crud/contentEntry/abstractions/IGetRevisionsByEntryId.js.map +1 -0
  46. package/crud/contentEntry/abstractions/IListEntries.d.ts +4 -0
  47. package/crud/contentEntry/abstractions/IListEntries.js +7 -0
  48. package/crud/contentEntry/abstractions/IListEntries.js.map +1 -0
  49. package/crud/contentEntry/abstractions/IListEntriesOperation.d.ts +4 -0
  50. package/crud/contentEntry/abstractions/IListEntriesOperation.js +7 -0
  51. package/crud/contentEntry/abstractions/IListEntriesOperation.js.map +1 -0
  52. package/crud/contentEntry/abstractions/IMoveEntryToBinOperation.d.ts +4 -0
  53. package/crud/contentEntry/abstractions/IMoveEntryToBinOperation.js +7 -0
  54. package/crud/contentEntry/abstractions/IMoveEntryToBinOperation.js.map +1 -0
  55. package/crud/contentEntry/abstractions/IRestoreEntryFromBin.d.ts +4 -0
  56. package/crud/contentEntry/abstractions/IRestoreEntryFromBin.js +7 -0
  57. package/crud/contentEntry/abstractions/IRestoreEntryFromBin.js.map +1 -0
  58. package/crud/contentEntry/abstractions/IRestoreEntryFromBinOperation.d.ts +4 -0
  59. package/crud/contentEntry/abstractions/IRestoreEntryFromBinOperation.js +7 -0
  60. package/crud/contentEntry/abstractions/IRestoreEntryFromBinOperation.js.map +1 -0
  61. package/crud/contentEntry/abstractions/index.d.ts +16 -0
  62. package/crud/contentEntry/abstractions/index.js +183 -0
  63. package/crud/contentEntry/abstractions/index.js.map +1 -0
  64. package/crud/contentEntry/afterDelete.d.ts +12 -0
  65. package/crud/contentEntry/afterDelete.js +52 -0
  66. package/crud/contentEntry/afterDelete.js.map +1 -0
  67. package/crud/contentEntry/beforeCreate.d.ts +8 -0
  68. package/crud/contentEntry/beforeCreate.js +27 -0
  69. package/crud/contentEntry/beforeCreate.js.map +1 -0
  70. package/crud/contentEntry/beforeUpdate.d.ts +8 -0
  71. package/crud/contentEntry/beforeUpdate.js +27 -0
  72. package/crud/contentEntry/beforeUpdate.js.map +1 -0
  73. package/crud/contentEntry/entryDataFactories/createEntryData.d.ts +20 -0
  74. package/crud/contentEntry/entryDataFactories/createEntryData.js +254 -0
  75. package/crud/contentEntry/entryDataFactories/createEntryData.js.map +1 -0
  76. package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.d.ts +23 -0
  77. package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.js +157 -0
  78. package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.js.map +1 -0
  79. package/crud/contentEntry/entryDataFactories/createPublishEntryData.d.ts +13 -0
  80. package/crud/contentEntry/entryDataFactories/createPublishEntryData.js +63 -0
  81. package/crud/contentEntry/entryDataFactories/createPublishEntryData.js.map +1 -0
  82. package/crud/contentEntry/entryDataFactories/createRepublishEntryData.d.ts +12 -0
  83. package/crud/contentEntry/entryDataFactories/createRepublishEntryData.js +59 -0
  84. package/crud/contentEntry/entryDataFactories/createRepublishEntryData.js.map +1 -0
  85. package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.d.ts +12 -0
  86. package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.js +40 -0
  87. package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.js.map +1 -0
  88. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.d.ts +20 -0
  89. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js +130 -0
  90. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js.map +1 -0
  91. package/crud/contentEntry/entryDataFactories/index.d.ts +8 -0
  92. package/crud/contentEntry/entryDataFactories/index.js +95 -0
  93. package/crud/contentEntry/entryDataFactories/index.js.map +1 -0
  94. package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.d.ts +5 -0
  95. package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.js +36 -0
  96. package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.js.map +1 -0
  97. package/crud/contentEntry/entryDataFactories/statuses.d.ts +4 -0
  98. package/crud/contentEntry/entryDataFactories/statuses.js +12 -0
  99. package/crud/contentEntry/entryDataFactories/statuses.js.map +1 -0
  100. package/crud/contentEntry/entryDataValidation.d.ts +12 -0
  101. package/crud/contentEntry/entryDataValidation.js +339 -0
  102. package/crud/contentEntry/entryDataValidation.js.map +1 -0
  103. package/crud/contentEntry/markLockedFields.d.ts +13 -0
  104. package/crud/contentEntry/markLockedFields.js +110 -0
  105. package/crud/contentEntry/markLockedFields.js.map +1 -0
  106. package/crud/contentEntry/referenceFieldsMapping.d.ts +19 -0
  107. package/crud/contentEntry/referenceFieldsMapping.js +288 -0
  108. package/crud/contentEntry/referenceFieldsMapping.js.map +1 -0
  109. package/crud/contentEntry/searchableFields.d.ts +9 -0
  110. package/crud/contentEntry/searchableFields.js +73 -0
  111. package/crud/contentEntry/searchableFields.js.map +1 -0
  112. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntry.d.ts +10 -0
  113. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntry.js +58 -0
  114. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntry.js.map +1 -0
  115. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperation.d.ts +7 -0
  116. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperation.js +17 -0
  117. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperation.js.map +1 -0
  118. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperationWithEvents.d.ts +9 -0
  119. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperationWithEvents.js +45 -0
  120. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperationWithEvents.js.map +1 -0
  121. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntrySecure.d.ts +9 -0
  122. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntrySecure.js +22 -0
  123. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntrySecure.js.map +1 -0
  124. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBin.d.ts +10 -0
  125. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBin.js +33 -0
  126. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBin.js.map +1 -0
  127. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperation.d.ts +7 -0
  128. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperation.js +17 -0
  129. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperation.js.map +1 -0
  130. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperationWithEvents.d.ts +9 -0
  131. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperationWithEvents.js +45 -0
  132. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperationWithEvents.js.map +1 -0
  133. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryDelete.d.ts +6 -0
  134. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryDelete.js +21 -0
  135. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryDelete.js.map +1 -0
  136. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryMoveToBin.d.ts +9 -0
  137. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryMoveToBin.js +54 -0
  138. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryMoveToBin.js.map +1 -0
  139. package/crud/contentEntry/useCases/DeleteEntry/index.d.ts +28 -0
  140. package/crud/contentEntry/useCases/DeleteEntry/index.js +42 -0
  141. package/crud/contentEntry/useCases/DeleteEntry/index.js.map +1 -0
  142. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIds.d.ts +9 -0
  143. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIds.js +21 -0
  144. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIds.js.map +1 -0
  145. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsNotDeleted.d.ts +7 -0
  146. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsNotDeleted.js +18 -0
  147. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsNotDeleted.js.map +1 -0
  148. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsSecure.d.ts +9 -0
  149. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsSecure.js +28 -0
  150. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsSecure.js.map +1 -0
  151. package/crud/contentEntry/useCases/GetEntriesByIds/index.d.ts +13 -0
  152. package/crud/contentEntry/useCases/GetEntriesByIds/index.js +20 -0
  153. package/crud/contentEntry/useCases/GetEntriesByIds/index.js.map +1 -0
  154. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIds.d.ts +9 -0
  155. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIds.js +21 -0
  156. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIds.js.map +1 -0
  157. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsNotDeleted.d.ts +7 -0
  158. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsNotDeleted.js +18 -0
  159. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsNotDeleted.js.map +1 -0
  160. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsSecure.d.ts +9 -0
  161. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsSecure.js +28 -0
  162. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsSecure.js.map +1 -0
  163. package/crud/contentEntry/useCases/GetLatestEntriesByIds/index.d.ts +13 -0
  164. package/crud/contentEntry/useCases/GetLatestEntriesByIds/index.js +20 -0
  165. package/crud/contentEntry/useCases/GetLatestEntriesByIds/index.js.map +1 -0
  166. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryId.d.ts +9 -0
  167. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryId.js +22 -0
  168. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryId.js.map +1 -0
  169. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdDeleted.d.ts +7 -0
  170. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdDeleted.js +21 -0
  171. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdDeleted.js.map +1 -0
  172. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdNotDeleted.d.ts +7 -0
  173. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdNotDeleted.js +21 -0
  174. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdNotDeleted.js.map +1 -0
  175. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/index.d.ts +15 -0
  176. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/index.js +22 -0
  177. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/index.js.map +1 -0
  178. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryId.d.ts +9 -0
  179. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryId.js +22 -0
  180. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryId.js.map +1 -0
  181. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdNotDeleted.d.ts +7 -0
  182. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdNotDeleted.js +21 -0
  183. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdNotDeleted.js.map +1 -0
  184. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/index.d.ts +11 -0
  185. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/index.js +18 -0
  186. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/index.js.map +1 -0
  187. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIds.d.ts +9 -0
  188. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIds.js +21 -0
  189. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIds.js.map +1 -0
  190. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsNotDeleted.d.ts +7 -0
  191. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsNotDeleted.js +18 -0
  192. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsNotDeleted.js.map +1 -0
  193. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsSecure.d.ts +9 -0
  194. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsSecure.js +28 -0
  195. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsSecure.js.map +1 -0
  196. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/index.d.ts +13 -0
  197. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/index.js +20 -0
  198. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/index.js.map +1 -0
  199. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryId.d.ts +9 -0
  200. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryId.js +22 -0
  201. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryId.js.map +1 -0
  202. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdNotDeleted.d.ts +7 -0
  203. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdNotDeleted.js +21 -0
  204. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdNotDeleted.js.map +1 -0
  205. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/index.d.ts +11 -0
  206. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/index.js +18 -0
  207. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/index.js.map +1 -0
  208. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionById.d.ts +9 -0
  209. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionById.js +22 -0
  210. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionById.js.map +1 -0
  211. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionByIdNotDeleted.d.ts +7 -0
  212. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionByIdNotDeleted.js +21 -0
  213. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionByIdNotDeleted.js.map +1 -0
  214. package/crud/contentEntry/useCases/GetRevisionById/index.d.ts +11 -0
  215. package/crud/contentEntry/useCases/GetRevisionById/index.js +18 -0
  216. package/crud/contentEntry/useCases/GetRevisionById/index.js.map +1 -0
  217. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryId.d.ts +9 -0
  218. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryId.js +21 -0
  219. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryId.js.map +1 -0
  220. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryIdNotDeleted.d.ts +7 -0
  221. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryIdNotDeleted.js +18 -0
  222. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryIdNotDeleted.js.map +1 -0
  223. package/crud/contentEntry/useCases/GetRevisionsByEntryId/index.d.ts +13 -0
  224. package/crud/contentEntry/useCases/GetRevisionsByEntryId/index.js +18 -0
  225. package/crud/contentEntry/useCases/GetRevisionsByEntryId/index.js.map +1 -0
  226. package/crud/contentEntry/useCases/ListEntries/GetEntry.d.ts +7 -0
  227. package/crud/contentEntry/useCases/ListEntries/GetEntry.js +29 -0
  228. package/crud/contentEntry/useCases/ListEntries/GetEntry.js.map +1 -0
  229. package/crud/contentEntry/useCases/ListEntries/GetEntrySecure.d.ts +11 -0
  230. package/crud/contentEntry/useCases/ListEntries/GetEntrySecure.js +38 -0
  231. package/crud/contentEntry/useCases/ListEntries/GetEntrySecure.js.map +1 -0
  232. package/crud/contentEntry/useCases/ListEntries/ListEntries.d.ts +7 -0
  233. package/crud/contentEntry/useCases/ListEntries/ListEntries.js +62 -0
  234. package/crud/contentEntry/useCases/ListEntries/ListEntries.js.map +1 -0
  235. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperation.d.ts +14 -0
  236. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperation.js +24 -0
  237. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperation.js.map +1 -0
  238. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationDeleted.d.ts +7 -0
  239. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationDeleted.js +24 -0
  240. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationDeleted.js.map +1 -0
  241. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationLatest.d.ts +7 -0
  242. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationLatest.js +25 -0
  243. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationLatest.js.map +1 -0
  244. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationNotDeleted.d.ts +7 -0
  245. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationNotDeleted.js +24 -0
  246. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationNotDeleted.js.map +1 -0
  247. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationPublished.d.ts +7 -0
  248. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationPublished.js +24 -0
  249. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationPublished.js.map +1 -0
  250. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithEvents.d.ts +9 -0
  251. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithEvents.js +22 -0
  252. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithEvents.js.map +1 -0
  253. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSearchableFields.d.ts +8 -0
  254. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSearchableFields.js +27 -0
  255. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSearchableFields.js.map +1 -0
  256. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSort.d.ts +8 -0
  257. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSort.js +26 -0
  258. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSort.js.map +1 -0
  259. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithStatusCheck.d.ts +7 -0
  260. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithStatusCheck.js +36 -0
  261. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithStatusCheck.js.map +1 -0
  262. package/crud/contentEntry/useCases/ListEntries/ListEntriesSecure.d.ts +11 -0
  263. package/crud/contentEntry/useCases/ListEntries/ListEntriesSecure.js +41 -0
  264. package/crud/contentEntry/useCases/ListEntries/ListEntriesSecure.js.map +1 -0
  265. package/crud/contentEntry/useCases/ListEntries/index.d.ts +26 -0
  266. package/crud/contentEntry/useCases/ListEntries/index.js +61 -0
  267. package/crud/contentEntry/useCases/ListEntries/index.js.map +1 -0
  268. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBin.d.ts +10 -0
  269. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBin.js +37 -0
  270. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBin.js.map +1 -0
  271. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperation.d.ts +9 -0
  272. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperation.js +19 -0
  273. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperation.js.map +1 -0
  274. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperationWithEvents.d.ts +9 -0
  275. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperationWithEvents.js +42 -0
  276. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperationWithEvents.js.map +1 -0
  277. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinSecure.d.ts +9 -0
  278. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinSecure.js +22 -0
  279. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinSecure.js.map +1 -0
  280. package/crud/contentEntry/useCases/RestoreEntryFromBin/TransformEntryRestoreFromBin.d.ts +9 -0
  281. package/crud/contentEntry/useCases/RestoreEntryFromBin/TransformEntryRestoreFromBin.js +53 -0
  282. package/crud/contentEntry/useCases/RestoreEntryFromBin/TransformEntryRestoreFromBin.js.map +1 -0
  283. package/crud/contentEntry/useCases/RestoreEntryFromBin/index.d.ts +25 -0
  284. package/crud/contentEntry/useCases/RestoreEntryFromBin/index.js +24 -0
  285. package/crud/contentEntry/useCases/RestoreEntryFromBin/index.js.map +1 -0
  286. package/crud/contentEntry/useCases/index.d.ts +11 -0
  287. package/crud/contentEntry/useCases/index.js +128 -0
  288. package/crud/contentEntry/useCases/index.js.map +1 -0
  289. package/crud/contentEntry.crud.d.ts +15 -0
  290. package/crud/contentEntry.crud.js +1253 -0
  291. package/crud/contentEntry.crud.js.map +1 -0
  292. package/crud/contentModel/beforeCreate.d.ts +14 -0
  293. package/crud/contentModel/beforeCreate.js +130 -0
  294. package/crud/contentModel/beforeCreate.js.map +1 -0
  295. package/crud/contentModel/beforeDelete.d.ts +8 -0
  296. package/crud/contentModel/beforeDelete.js +82 -0
  297. package/crud/contentModel/beforeDelete.js.map +1 -0
  298. package/crud/contentModel/beforeUpdate.d.ts +8 -0
  299. package/crud/contentModel/beforeUpdate.js +57 -0
  300. package/crud/contentModel/beforeUpdate.js.map +1 -0
  301. package/crud/contentModel/compatibility/modelApiName.d.ts +3 -0
  302. package/crud/contentModel/compatibility/modelApiName.js +26 -0
  303. package/crud/contentModel/compatibility/modelApiName.js.map +1 -0
  304. package/crud/contentModel/contentModelManagerFactory.d.ts +2 -0
  305. package/crud/contentModel/contentModelManagerFactory.js +24 -0
  306. package/crud/contentModel/contentModelManagerFactory.js.map +1 -0
  307. package/crud/contentModel/createFieldStorageId.d.ts +2 -0
  308. package/crud/contentModel/createFieldStorageId.js +19 -0
  309. package/crud/contentModel/createFieldStorageId.js.map +1 -0
  310. package/crud/contentModel/defaultFields.d.ts +5 -0
  311. package/crud/contentModel/defaultFields.js +60 -0
  312. package/crud/contentModel/defaultFields.js.map +1 -0
  313. package/crud/contentModel/ensureTypeTag.d.ts +5 -0
  314. package/crud/contentModel/ensureTypeTag.js +21 -0
  315. package/crud/contentModel/ensureTypeTag.js.map +1 -0
  316. package/crud/contentModel/fields/descriptionField.d.ts +6 -0
  317. package/crud/contentModel/fields/descriptionField.js +30 -0
  318. package/crud/contentModel/fields/descriptionField.js.map +1 -0
  319. package/crud/contentModel/fields/getApplicableFieldById.d.ts +2 -0
  320. package/crud/contentModel/fields/getApplicableFieldById.js +15 -0
  321. package/crud/contentModel/fields/getApplicableFieldById.js.map +1 -0
  322. package/crud/contentModel/fields/imageField.d.ts +2 -0
  323. package/crud/contentModel/fields/imageField.js +25 -0
  324. package/crud/contentModel/fields/imageField.js.map +1 -0
  325. package/crud/contentModel/fields/titleField.d.ts +6 -0
  326. package/crud/contentModel/fields/titleField.js +31 -0
  327. package/crud/contentModel/fields/titleField.js.map +1 -0
  328. package/crud/contentModel/listModelsFromDatabase.d.ts +10 -0
  329. package/crud/contentModel/listModelsFromDatabase.js +38 -0
  330. package/crud/contentModel/listModelsFromDatabase.js.map +1 -0
  331. package/crud/contentModel/validate/endingAllowed.d.ts +6 -0
  332. package/crud/contentModel/validate/endingAllowed.js +28 -0
  333. package/crud/contentModel/validate/endingAllowed.js.map +1 -0
  334. package/crud/contentModel/validate/isModelEndingAllowed.d.ts +6 -0
  335. package/crud/contentModel/validate/isModelEndingAllowed.js +25 -0
  336. package/crud/contentModel/validate/isModelEndingAllowed.js.map +1 -0
  337. package/crud/contentModel/validate/modelId.d.ts +11 -0
  338. package/crud/contentModel/validate/modelId.js +38 -0
  339. package/crud/contentModel/validate/modelId.js.map +1 -0
  340. package/crud/contentModel/validate/pluralApiName.d.ts +7 -0
  341. package/crud/contentModel/validate/pluralApiName.js +26 -0
  342. package/crud/contentModel/validate/pluralApiName.js.map +1 -0
  343. package/crud/contentModel/validate/singularApiName.d.ts +7 -0
  344. package/crud/contentModel/validate/singularApiName.js +26 -0
  345. package/crud/contentModel/validate/singularApiName.js.map +1 -0
  346. package/crud/contentModel/validateModel.d.ts +9 -0
  347. package/crud/contentModel/validateModel.js +29 -0
  348. package/crud/contentModel/validateModel.js.map +1 -0
  349. package/crud/contentModel/validateModelFields.d.ts +9 -0
  350. package/crud/contentModel/validateModelFields.js +343 -0
  351. package/crud/contentModel/validateModelFields.js.map +1 -0
  352. package/crud/contentModel/validateStorageId.d.ts +1 -0
  353. package/crud/contentModel/validateStorageId.js +19 -0
  354. package/crud/contentModel/validateStorageId.js.map +1 -0
  355. package/crud/contentModel/validation.d.ts +893 -0
  356. package/crud/contentModel/validation.js +205 -0
  357. package/crud/contentModel/validation.js.map +1 -0
  358. package/crud/contentModel.crud.d.ts +14 -0
  359. package/crud/contentModel.crud.js +620 -0
  360. package/crud/contentModel.crud.js.map +1 -0
  361. package/crud/contentModelGroup/beforeCreate.d.ts +10 -0
  362. package/crud/contentModelGroup/beforeCreate.js +68 -0
  363. package/crud/contentModelGroup/beforeCreate.js.map +1 -0
  364. package/crud/contentModelGroup/beforeDelete.d.ts +10 -0
  365. package/crud/contentModelGroup/beforeDelete.js +42 -0
  366. package/crud/contentModelGroup/beforeDelete.js.map +1 -0
  367. package/crud/contentModelGroup/beforeUpdate.d.ts +9 -0
  368. package/crud/contentModelGroup/beforeUpdate.js +25 -0
  369. package/crud/contentModelGroup/beforeUpdate.js.map +1 -0
  370. package/crud/contentModelGroup/listGroupsFromDatabase.d.ts +8 -0
  371. package/crud/contentModelGroup/listGroupsFromDatabase.js +22 -0
  372. package/crud/contentModelGroup/listGroupsFromDatabase.js.map +1 -0
  373. package/crud/contentModelGroup/validation.d.ts +33 -0
  374. package/crud/contentModelGroup/validation.js +37 -0
  375. package/crud/contentModelGroup/validation.js.map +1 -0
  376. package/crud/contentModelGroup.crud.d.ts +14 -0
  377. package/crud/contentModelGroup.crud.js +357 -0
  378. package/crud/contentModelGroup.crud.js.map +1 -0
  379. package/crud/system.crud.d.ts +13 -0
  380. package/crud/system.crud.js +133 -0
  381. package/crud/system.crud.js.map +1 -0
  382. package/export/crud/exporting.d.ts +3 -0
  383. package/export/crud/exporting.js +49 -0
  384. package/export/crud/exporting.js.map +1 -0
  385. package/export/crud/importing.d.ts +3 -0
  386. package/export/crud/importing.js +79 -0
  387. package/export/crud/importing.js.map +1 -0
  388. package/export/crud/imports/importData.d.ts +14 -0
  389. package/export/crud/imports/importData.js +52 -0
  390. package/export/crud/imports/importData.js.map +1 -0
  391. package/export/crud/imports/importGroups.d.ts +8 -0
  392. package/export/crud/imports/importGroups.js +104 -0
  393. package/export/crud/imports/importGroups.js.map +1 -0
  394. package/export/crud/imports/importModels.d.ts +8 -0
  395. package/export/crud/imports/importModels.js +136 -0
  396. package/export/crud/imports/importModels.js.map +1 -0
  397. package/export/crud/imports/validateGroups.d.ts +8 -0
  398. package/export/crud/imports/validateGroups.js +112 -0
  399. package/export/crud/imports/validateGroups.js.map +1 -0
  400. package/export/crud/imports/validateInput.d.ts +19 -0
  401. package/export/crud/imports/validateInput.js +55 -0
  402. package/export/crud/imports/validateInput.js.map +1 -0
  403. package/export/crud/imports/validateModels.d.ts +12 -0
  404. package/export/crud/imports/validateModels.js +203 -0
  405. package/export/crud/imports/validateModels.js.map +1 -0
  406. package/export/crud/index.d.ts +4 -0
  407. package/export/crud/index.js +15 -0
  408. package/export/crud/index.js.map +1 -0
  409. package/export/crud/sanitize.d.ts +4 -0
  410. package/export/crud/sanitize.js +36 -0
  411. package/export/crud/sanitize.js.map +1 -0
  412. package/export/graphql/index.d.ts +3 -0
  413. package/export/graphql/index.js +188 -0
  414. package/export/graphql/index.js.map +1 -0
  415. package/export/index.d.ts +2 -0
  416. package/export/index.js +29 -0
  417. package/export/index.js.map +1 -0
  418. package/export/types.d.ts +113 -0
  419. package/export/types.js +21 -0
  420. package/export/types.js.map +1 -0
  421. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.d.ts +9 -0
  422. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js +50 -0
  423. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js.map +1 -0
  424. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.d.ts +12 -0
  425. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +158 -0
  426. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js.map +1 -0
  427. package/fieldConverters/CmsModelObjectFieldConverterPlugin.d.ts +12 -0
  428. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js +260 -0
  429. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js.map +1 -0
  430. package/fieldConverters/index.d.ts +7 -0
  431. package/fieldConverters/index.js +19 -0
  432. package/fieldConverters/index.js.map +1 -0
  433. package/graphql/buildSchemaPlugins.d.ts +11 -0
  434. package/graphql/buildSchemaPlugins.js +25 -0
  435. package/graphql/buildSchemaPlugins.js.map +1 -0
  436. package/graphql/checkEndpointAccess.d.ts +2 -0
  437. package/graphql/checkEndpointAccess.js +20 -0
  438. package/graphql/checkEndpointAccess.js.map +1 -0
  439. package/graphql/createExecutableSchema.d.ts +6 -0
  440. package/graphql/createExecutableSchema.js +38 -0
  441. package/graphql/createExecutableSchema.js.map +1 -0
  442. package/graphql/createRequestBody.d.ts +2 -0
  443. package/graphql/createRequestBody.js +16 -0
  444. package/graphql/createRequestBody.js.map +1 -0
  445. package/graphql/formatErrorPayload.d.ts +1 -0
  446. package/graphql/formatErrorPayload.js +27 -0
  447. package/graphql/formatErrorPayload.js.map +1 -0
  448. package/graphql/generateSchema.d.ts +8 -0
  449. package/graphql/generateSchema.js +38 -0
  450. package/graphql/generateSchema.js.map +1 -0
  451. package/graphql/getSchema/generateCacheId.d.ts +10 -0
  452. package/graphql/getSchema/generateCacheId.js +17 -0
  453. package/graphql/getSchema/generateCacheId.js.map +1 -0
  454. package/graphql/getSchema/generateCacheKey.d.ts +10 -0
  455. package/graphql/getSchema/generateCacheKey.js +34 -0
  456. package/graphql/getSchema/generateCacheKey.js.map +1 -0
  457. package/graphql/getSchema.d.ts +16 -0
  458. package/graphql/getSchema.js +81 -0
  459. package/graphql/getSchema.js.map +1 -0
  460. package/graphql/graphQLHandlerFactory.d.ts +5 -0
  461. package/graphql/graphQLHandlerFactory.js +37 -0
  462. package/graphql/graphQLHandlerFactory.js.map +1 -0
  463. package/graphql/handleRequest.d.ts +11 -0
  464. package/graphql/handleRequest.js +86 -0
  465. package/graphql/handleRequest.js.map +1 -0
  466. package/graphql/index.d.ts +4 -0
  467. package/graphql/index.js +15 -0
  468. package/graphql/index.js.map +1 -0
  469. package/graphql/scalars/RevisionId.d.ts +2 -0
  470. package/graphql/scalars/RevisionId.js +26 -0
  471. package/graphql/scalars/RevisionId.js.map +1 -0
  472. package/graphql/scalars/RevisionIdScalarPlugin.d.ts +2 -0
  473. package/graphql/scalars/RevisionIdScalarPlugin.js +18 -0
  474. package/graphql/scalars/RevisionIdScalarPlugin.js.map +1 -0
  475. package/graphql/schema/baseContentSchema.d.ts +7 -0
  476. package/graphql/schema/baseContentSchema.js +61 -0
  477. package/graphql/schema/baseContentSchema.js.map +1 -0
  478. package/graphql/schema/baseSchema.d.ts +2 -0
  479. package/graphql/schema/baseSchema.js +153 -0
  480. package/graphql/schema/baseSchema.js.map +1 -0
  481. package/graphql/schema/contentEntries.d.ts +7 -0
  482. package/graphql/schema/contentEntries.js +399 -0
  483. package/graphql/schema/contentEntries.js.map +1 -0
  484. package/graphql/schema/contentModelGroups.d.ts +7 -0
  485. package/graphql/schema/contentModelGroups.js +162 -0
  486. package/graphql/schema/contentModelGroups.js.map +1 -0
  487. package/graphql/schema/contentModels.d.ts +6 -0
  488. package/graphql/schema/contentModels.js +333 -0
  489. package/graphql/schema/contentModels.js.map +1 -0
  490. package/graphql/schema/createFieldResolvers.d.ts +20 -0
  491. package/graphql/schema/createFieldResolvers.js +104 -0
  492. package/graphql/schema/createFieldResolvers.js.map +1 -0
  493. package/graphql/schema/createFieldTypePluginRecords.d.ts +3 -0
  494. package/graphql/schema/createFieldTypePluginRecords.js +15 -0
  495. package/graphql/schema/createFieldTypePluginRecords.js.map +1 -0
  496. package/graphql/schema/createManageResolvers.d.ts +11 -0
  497. package/graphql/schema/createManageResolvers.js +119 -0
  498. package/graphql/schema/createManageResolvers.js.map +1 -0
  499. package/graphql/schema/createManageSDL.d.ts +13 -0
  500. package/graphql/schema/createManageSDL.js +207 -0
  501. package/graphql/schema/createManageSDL.js.map +1 -0
  502. package/graphql/schema/createPreviewResolvers.d.ts +11 -0
  503. package/graphql/schema/createPreviewResolvers.js +42 -0
  504. package/graphql/schema/createPreviewResolvers.js.map +1 -0
  505. package/graphql/schema/createReadResolvers.d.ts +11 -0
  506. package/graphql/schema/createReadResolvers.js +47 -0
  507. package/graphql/schema/createReadResolvers.js.map +1 -0
  508. package/graphql/schema/createReadSDL.d.ts +13 -0
  509. package/graphql/schema/createReadSDL.js +110 -0
  510. package/graphql/schema/createReadSDL.js.map +1 -0
  511. package/graphql/schema/createSingularResolvers.d.ts +12 -0
  512. package/graphql/schema/createSingularResolvers.js +56 -0
  513. package/graphql/schema/createSingularResolvers.js.map +1 -0
  514. package/graphql/schema/createSingularSDL.d.ts +12 -0
  515. package/graphql/schema/createSingularSDL.js +95 -0
  516. package/graphql/schema/createSingularSDL.js.map +1 -0
  517. package/graphql/schema/resolvers/manage/normalizeGraphQlInput.d.ts +7 -0
  518. package/graphql/schema/resolvers/manage/normalizeGraphQlInput.js +59 -0
  519. package/graphql/schema/resolvers/manage/normalizeGraphQlInput.js.map +1 -0
  520. package/graphql/schema/resolvers/manage/resolveCreate.d.ts +8 -0
  521. package/graphql/schema/resolvers/manage/resolveCreate.js +20 -0
  522. package/graphql/schema/resolvers/manage/resolveCreate.js.map +1 -0
  523. package/graphql/schema/resolvers/manage/resolveCreateFrom.d.ts +9 -0
  524. package/graphql/schema/resolvers/manage/resolveCreateFrom.js +20 -0
  525. package/graphql/schema/resolvers/manage/resolveCreateFrom.js.map +1 -0
  526. package/graphql/schema/resolvers/manage/resolveDelete.d.ts +8 -0
  527. package/graphql/schema/resolvers/manage/resolveDelete.js +39 -0
  528. package/graphql/schema/resolvers/manage/resolveDelete.js.map +1 -0
  529. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.d.ts +7 -0
  530. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js +22 -0
  531. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js.map +1 -0
  532. package/graphql/schema/resolvers/manage/resolveGet.d.ts +7 -0
  533. package/graphql/schema/resolvers/manage/resolveGet.js +70 -0
  534. package/graphql/schema/resolvers/manage/resolveGet.js.map +1 -0
  535. package/graphql/schema/resolvers/manage/resolveGetByIds.d.ts +7 -0
  536. package/graphql/schema/resolvers/manage/resolveGetByIds.js +20 -0
  537. package/graphql/schema/resolvers/manage/resolveGetByIds.js.map +1 -0
  538. package/graphql/schema/resolvers/manage/resolveGetRevisions.d.ts +7 -0
  539. package/graphql/schema/resolvers/manage/resolveGetRevisions.js +20 -0
  540. package/graphql/schema/resolvers/manage/resolveGetRevisions.js.map +1 -0
  541. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.d.ts +4 -0
  542. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js +20 -0
  543. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js.map +1 -0
  544. package/graphql/schema/resolvers/manage/resolveList.d.ts +4 -0
  545. package/graphql/schema/resolvers/manage/resolveList.js +20 -0
  546. package/graphql/schema/resolvers/manage/resolveList.js.map +1 -0
  547. package/graphql/schema/resolvers/manage/resolveListDeleted.d.ts +4 -0
  548. package/graphql/schema/resolvers/manage/resolveListDeleted.js +20 -0
  549. package/graphql/schema/resolvers/manage/resolveListDeleted.js.map +1 -0
  550. package/graphql/schema/resolvers/manage/resolveMove.d.ts +8 -0
  551. package/graphql/schema/resolvers/manage/resolveMove.js +27 -0
  552. package/graphql/schema/resolvers/manage/resolveMove.js.map +1 -0
  553. package/graphql/schema/resolvers/manage/resolvePublish.d.ts +7 -0
  554. package/graphql/schema/resolvers/manage/resolvePublish.js +20 -0
  555. package/graphql/schema/resolvers/manage/resolvePublish.js.map +1 -0
  556. package/graphql/schema/resolvers/manage/resolveRepublish.d.ts +7 -0
  557. package/graphql/schema/resolvers/manage/resolveRepublish.js +20 -0
  558. package/graphql/schema/resolvers/manage/resolveRepublish.js.map +1 -0
  559. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.d.ts +7 -0
  560. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js +20 -0
  561. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js.map +1 -0
  562. package/graphql/schema/resolvers/manage/resolveUnpublish.d.ts +7 -0
  563. package/graphql/schema/resolvers/manage/resolveUnpublish.js +20 -0
  564. package/graphql/schema/resolvers/manage/resolveUnpublish.js.map +1 -0
  565. package/graphql/schema/resolvers/manage/resolveUpdate.d.ts +9 -0
  566. package/graphql/schema/resolvers/manage/resolveUpdate.js +20 -0
  567. package/graphql/schema/resolvers/manage/resolveUpdate.js.map +1 -0
  568. package/graphql/schema/resolvers/manage/resolveValidate.d.ts +8 -0
  569. package/graphql/schema/resolvers/manage/resolveValidate.js +20 -0
  570. package/graphql/schema/resolvers/manage/resolveValidate.js.map +1 -0
  571. package/graphql/schema/resolvers/preview/resolveGet.d.ts +4 -0
  572. package/graphql/schema/resolvers/preview/resolveGet.js +27 -0
  573. package/graphql/schema/resolvers/preview/resolveGet.js.map +1 -0
  574. package/graphql/schema/resolvers/preview/resolveList.d.ts +4 -0
  575. package/graphql/schema/resolvers/preview/resolveList.js +20 -0
  576. package/graphql/schema/resolvers/preview/resolveList.js.map +1 -0
  577. package/graphql/schema/resolvers/read/resolveGet.d.ts +4 -0
  578. package/graphql/schema/resolvers/read/resolveGet.js +27 -0
  579. package/graphql/schema/resolvers/read/resolveGet.js.map +1 -0
  580. package/graphql/schema/resolvers/read/resolveList.d.ts +4 -0
  581. package/graphql/schema/resolvers/read/resolveList.js +20 -0
  582. package/graphql/schema/resolvers/read/resolveList.js.map +1 -0
  583. package/graphql/schema/resolvers/singular/resolveGet.d.ts +7 -0
  584. package/graphql/schema/resolvers/singular/resolveGet.js +21 -0
  585. package/graphql/schema/resolvers/singular/resolveGet.js.map +1 -0
  586. package/graphql/schema/resolvers/singular/resolveUpdate.d.ts +8 -0
  587. package/graphql/schema/resolvers/singular/resolveUpdate.js +21 -0
  588. package/graphql/schema/resolvers/singular/resolveUpdate.js.map +1 -0
  589. package/graphql/schema/schemaPlugins.d.ts +8 -0
  590. package/graphql/schema/schemaPlugins.js +123 -0
  591. package/graphql/schema/schemaPlugins.js.map +1 -0
  592. package/graphql/system.d.ts +3 -0
  593. package/graphql/system.js +80 -0
  594. package/graphql/system.js.map +1 -0
  595. package/graphqlFields/boolean.d.ts +2 -0
  596. package/graphqlFields/boolean.js +59 -0
  597. package/graphqlFields/boolean.js.map +1 -0
  598. package/graphqlFields/datetime.d.ts +2 -0
  599. package/graphqlFields/datetime.js +78 -0
  600. package/graphqlFields/datetime.js.map +1 -0
  601. package/graphqlFields/dynamicZone/dynamicZoneField.d.ts +2 -0
  602. package/graphqlFields/dynamicZone/dynamicZoneField.js +320 -0
  603. package/graphqlFields/dynamicZone/dynamicZoneField.js.map +1 -0
  604. package/graphqlFields/dynamicZone/index.d.ts +1 -0
  605. package/graphqlFields/dynamicZone/index.js +14 -0
  606. package/graphqlFields/dynamicZone/index.js.map +1 -0
  607. package/graphqlFields/file.d.ts +2 -0
  608. package/graphqlFields/file.js +44 -0
  609. package/graphqlFields/file.js.map +1 -0
  610. package/graphqlFields/helpers.d.ts +5 -0
  611. package/graphqlFields/helpers.js +27 -0
  612. package/graphqlFields/helpers.js.map +1 -0
  613. package/graphqlFields/index.d.ts +2 -0
  614. package/graphqlFields/index.js +22 -0
  615. package/graphqlFields/index.js.map +1 -0
  616. package/graphqlFields/json.d.ts +2 -0
  617. package/graphqlFields/json.js +49 -0
  618. package/graphqlFields/json.js.map +1 -0
  619. package/graphqlFields/longText.d.ts +2 -0
  620. package/graphqlFields/longText.js +64 -0
  621. package/graphqlFields/longText.js.map +1 -0
  622. package/graphqlFields/number.d.ts +2 -0
  623. package/graphqlFields/number.js +70 -0
  624. package/graphqlFields/number.js.map +1 -0
  625. package/graphqlFields/object.d.ts +2 -0
  626. package/graphqlFields/object.js +252 -0
  627. package/graphqlFields/object.js.map +1 -0
  628. package/graphqlFields/ref.d.ts +2 -0
  629. package/graphqlFields/ref.js +267 -0
  630. package/graphqlFields/ref.js.map +1 -0
  631. package/graphqlFields/richText/RichTextPluginsProcessor.d.ts +6 -0
  632. package/graphqlFields/richText/RichTextPluginsProcessor.js +34 -0
  633. package/graphqlFields/richText/RichTextPluginsProcessor.js.map +1 -0
  634. package/graphqlFields/richText/richTextResolver.d.ts +7 -0
  635. package/graphqlFields/richText/richTextResolver.js +24 -0
  636. package/graphqlFields/richText/richTextResolver.js.map +1 -0
  637. package/graphqlFields/richText.d.ts +2 -0
  638. package/graphqlFields/richText.js +55 -0
  639. package/graphqlFields/richText.js.map +1 -0
  640. package/graphqlFields/searchableJson.d.ts +2 -0
  641. package/graphqlFields/searchableJson.js +60 -0
  642. package/graphqlFields/searchableJson.js.map +1 -0
  643. package/graphqlFields/text.d.ts +2 -0
  644. package/graphqlFields/text.js +66 -0
  645. package/graphqlFields/text.js.map +1 -0
  646. package/htmlRenderer/LexicalRenderer.d.ts +5 -0
  647. package/htmlRenderer/LexicalRenderer.js +28 -0
  648. package/htmlRenderer/LexicalRenderer.js.map +1 -0
  649. package/htmlRenderer/createLexicalHTMLRenderer.d.ts +2 -0
  650. package/htmlRenderer/createLexicalHTMLRenderer.js +31 -0
  651. package/htmlRenderer/createLexicalHTMLRenderer.js.map +1 -0
  652. package/index.d.ts +19 -12
  653. package/index.js +172 -54
  654. package/index.js.map +1 -0
  655. package/modelManager/DefaultCmsModelManager.d.ts +15 -0
  656. package/modelManager/DefaultCmsModelManager.js +49 -0
  657. package/modelManager/DefaultCmsModelManager.js.map +1 -0
  658. package/modelManager/SingletonModelManager.d.ts +12 -0
  659. package/modelManager/SingletonModelManager.js +48 -0
  660. package/modelManager/SingletonModelManager.js.map +1 -0
  661. package/modelManager/index.d.ts +3 -0
  662. package/modelManager/index.js +33 -0
  663. package/modelManager/index.js.map +1 -0
  664. package/package.json +42 -47
  665. package/parameters/context.d.ts +2 -0
  666. package/parameters/context.js +20 -0
  667. package/parameters/context.js.map +1 -0
  668. package/parameters/header.d.ts +2 -0
  669. package/parameters/header.js +45 -0
  670. package/parameters/header.js.map +1 -0
  671. package/parameters/index.d.ts +4 -0
  672. package/parameters/index.js +51 -0
  673. package/parameters/index.js.map +1 -0
  674. package/parameters/manual.d.ts +7 -0
  675. package/parameters/manual.js +42 -0
  676. package/parameters/manual.js.map +1 -0
  677. package/parameters/path.d.ts +2 -0
  678. package/parameters/path.js +41 -0
  679. package/parameters/path.js.map +1 -0
  680. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.d.ts +9 -0
  681. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js +17 -0
  682. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js.map +1 -0
  683. package/plugins/CmsGraphQLSchemaPlugin/index.d.ts +1 -0
  684. package/plugins/CmsGraphQLSchemaPlugin/index.js +18 -0
  685. package/plugins/CmsGraphQLSchemaPlugin/index.js.map +1 -0
  686. package/plugins/CmsGraphQLSchemaSorterPlugin.d.ts +20 -0
  687. package/plugins/CmsGraphQLSchemaSorterPlugin.js +27 -0
  688. package/plugins/CmsGraphQLSchemaSorterPlugin.js.map +1 -0
  689. package/plugins/CmsGroupPlugin.d.ts +24 -0
  690. package/plugins/CmsGroupPlugin.js +40 -0
  691. package/plugins/CmsGroupPlugin.js.map +1 -0
  692. package/plugins/CmsModelFieldConverterPlugin.d.ts +17 -0
  693. package/plugins/CmsModelFieldConverterPlugin.js +17 -0
  694. package/plugins/CmsModelFieldConverterPlugin.js.map +1 -0
  695. package/plugins/CmsModelPlugin.d.ts +85 -0
  696. package/plugins/CmsModelPlugin.js +295 -0
  697. package/plugins/CmsModelPlugin.js.map +1 -0
  698. package/plugins/CmsParametersPlugin.d.ts +20 -0
  699. package/plugins/CmsParametersPlugin.js +24 -0
  700. package/plugins/CmsParametersPlugin.js.map +1 -0
  701. package/plugins/CmsRichTextRendererPlugin.d.ts +24 -0
  702. package/plugins/CmsRichTextRendererPlugin.js +28 -0
  703. package/plugins/CmsRichTextRendererPlugin.js.map +1 -0
  704. package/plugins/StorageOperationsCmsModelPlugin.d.ts +23 -0
  705. package/plugins/StorageOperationsCmsModelPlugin.js +41 -0
  706. package/plugins/StorageOperationsCmsModelPlugin.js.map +1 -0
  707. package/plugins/StorageTransformPlugin.d.ts +35 -0
  708. package/plugins/StorageTransformPlugin.js +35 -0
  709. package/plugins/StorageTransformPlugin.js.map +1 -0
  710. package/plugins/index.d.ts +9 -0
  711. package/plugins/index.js +106 -0
  712. package/plugins/index.js.map +1 -0
  713. package/storage/date.d.ts +3 -0
  714. package/storage/date.js +119 -0
  715. package/storage/date.js.map +1 -0
  716. package/storage/default.d.ts +2 -0
  717. package/storage/default.js +26 -0
  718. package/storage/default.js.map +1 -0
  719. package/storage/dynamicZone.d.ts +2 -0
  720. package/storage/dynamicZone.js +157 -0
  721. package/storage/dynamicZone.js.map +1 -0
  722. package/storage/index.d.ts +1 -0
  723. package/storage/index.js +21 -0
  724. package/storage/index.js.map +1 -0
  725. package/storage/json.d.ts +2 -0
  726. package/storage/json.js +56 -0
  727. package/storage/json.js.map +1 -0
  728. package/storage/object.d.ts +2 -0
  729. package/storage/object.js +112 -0
  730. package/storage/object.js.map +1 -0
  731. package/types/context.d.ts +146 -0
  732. package/types/context.js +7 -0
  733. package/types/context.js.map +1 -0
  734. package/types/fields/dynamicZoneField.d.ts +23 -0
  735. package/types/fields/dynamicZoneField.js +7 -0
  736. package/types/fields/dynamicZoneField.js.map +1 -0
  737. package/types/fields/objectField.d.ts +13 -0
  738. package/types/fields/objectField.js +7 -0
  739. package/types/fields/objectField.js.map +1 -0
  740. package/types/identity.d.ts +19 -0
  741. package/types/identity.js +7 -0
  742. package/types/identity.js.map +1 -0
  743. package/types/index.d.ts +10 -0
  744. package/types/index.js +117 -0
  745. package/types/index.js.map +1 -0
  746. package/types/model.d.ts +199 -0
  747. package/types/model.js +7 -0
  748. package/types/model.js.map +1 -0
  749. package/types/modelAst.d.ts +39 -0
  750. package/types/modelAst.js +7 -0
  751. package/types/modelAst.js.map +1 -0
  752. package/types/modelField.d.ts +330 -0
  753. package/types/modelField.js +7 -0
  754. package/types/modelField.js.map +1 -0
  755. package/types/modelGroup.d.ts +77 -0
  756. package/types/modelGroup.js +7 -0
  757. package/types/modelGroup.js.map +1 -0
  758. package/types/plugins.d.ts +365 -0
  759. package/types/plugins.js +7 -0
  760. package/types/plugins.js.map +1 -0
  761. package/types/types.d.ts +1897 -0
  762. package/types/types.js +308 -0
  763. package/types/types.js.map +1 -0
  764. package/utils/RichTextRenderer.d.ts +10 -0
  765. package/utils/RichTextRenderer.js +33 -0
  766. package/utils/RichTextRenderer.js.map +1 -0
  767. package/utils/caching/Cache.d.ts +5 -0
  768. package/utils/caching/Cache.js +48 -0
  769. package/utils/caching/Cache.js.map +1 -0
  770. package/utils/caching/CacheKey.d.ts +3 -0
  771. package/utils/caching/CacheKey.js +28 -0
  772. package/utils/caching/CacheKey.js.map +1 -0
  773. package/utils/caching/index.d.ts +2 -0
  774. package/utils/caching/index.js +29 -0
  775. package/utils/caching/index.js.map +1 -0
  776. package/utils/caching/types.d.ts +13 -0
  777. package/utils/caching/types.js +14 -0
  778. package/utils/caching/types.js.map +1 -0
  779. package/utils/contentEntryTraverser/ContentEntryTraverser.d.ts +13 -0
  780. package/utils/contentEntryTraverser/ContentEntryTraverser.js +97 -0
  781. package/utils/contentEntryTraverser/ContentEntryTraverser.js.map +1 -0
  782. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.d.ts +6 -0
  783. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.js +23 -0
  784. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.js.map +1 -0
  785. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.d.ts +7 -0
  786. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.js +22 -0
  787. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.js.map +1 -0
  788. package/utils/contentModelAst/CmsModelToAstConverter.d.ts +11 -0
  789. package/utils/contentModelAst/CmsModelToAstConverter.js +28 -0
  790. package/utils/contentModelAst/CmsModelToAstConverter.js.map +1 -0
  791. package/utils/contentModelAst/index.d.ts +3 -0
  792. package/utils/contentModelAst/index.js +40 -0
  793. package/utils/contentModelAst/index.js.map +1 -0
  794. package/utils/converters/Converter.d.ts +27 -0
  795. package/utils/converters/Converter.js +57 -0
  796. package/utils/converters/Converter.js.map +1 -0
  797. package/utils/converters/ConverterCollection.d.ts +31 -0
  798. package/utils/converters/ConverterCollection.js +125 -0
  799. package/utils/converters/ConverterCollection.js.map +1 -0
  800. package/utils/converters/valueKeyStorageConverter.d.ts +14 -0
  801. package/utils/converters/valueKeyStorageConverter.js +135 -0
  802. package/utils/converters/valueKeyStorageConverter.js.map +1 -0
  803. package/utils/createModelField.d.ts +7 -0
  804. package/utils/createModelField.js +51 -0
  805. package/utils/createModelField.js.map +1 -0
  806. package/utils/createTypeFromFields.d.ts +16 -0
  807. package/utils/createTypeFromFields.js +71 -0
  808. package/utils/createTypeFromFields.js.map +1 -0
  809. package/utils/createTypeName.d.ts +1 -0
  810. package/utils/createTypeName.js +15 -0
  811. package/utils/createTypeName.js.map +1 -0
  812. package/utils/date.d.ts +10 -0
  813. package/utils/date.js +36 -0
  814. package/utils/date.js.map +1 -0
  815. package/utils/entryStorage.d.ts +29 -0
  816. package/utils/entryStorage.js +140 -0
  817. package/utils/entryStorage.js.map +1 -0
  818. package/utils/filterAsync.d.ts +1 -0
  819. package/utils/filterAsync.js +19 -0
  820. package/utils/filterAsync.js.map +1 -0
  821. package/utils/getBaseFieldType.d.ts +2 -0
  822. package/utils/getBaseFieldType.js +12 -0
  823. package/utils/getBaseFieldType.js.map +1 -0
  824. package/utils/getEntryDescription.d.ts +2 -0
  825. package/utils/getEntryDescription.js +19 -0
  826. package/utils/getEntryDescription.js.map +1 -0
  827. package/utils/getEntryImage.d.ts +2 -0
  828. package/utils/getEntryImage.js +19 -0
  829. package/utils/getEntryImage.js.map +1 -0
  830. package/utils/getEntryTitle.d.ts +2 -0
  831. package/utils/getEntryTitle.js +36 -0
  832. package/utils/getEntryTitle.js.map +1 -0
  833. package/utils/getSchemaFromFieldPlugins.d.ts +20 -0
  834. package/utils/getSchemaFromFieldPlugins.js +58 -0
  835. package/utils/getSchemaFromFieldPlugins.js.map +1 -0
  836. package/utils/identity.d.ts +2 -0
  837. package/utils/identity.js +20 -0
  838. package/utils/identity.js.map +1 -0
  839. package/utils/incrementEntryIdVersion.d.ts +5 -0
  840. package/utils/incrementEntryIdVersion.js +31 -0
  841. package/utils/incrementEntryIdVersion.js.map +1 -0
  842. package/utils/index.d.ts +2 -0
  843. package/utils/index.js +29 -0
  844. package/utils/index.js.map +1 -0
  845. package/utils/isHeadlessCmsReady.d.ts +2 -0
  846. package/utils/isHeadlessCmsReady.js +23 -0
  847. package/utils/isHeadlessCmsReady.js.map +1 -0
  848. package/utils/modelFieldTraverser/ModelFieldTraverser.d.ts +16 -0
  849. package/utils/modelFieldTraverser/ModelFieldTraverser.js +41 -0
  850. package/utils/modelFieldTraverser/ModelFieldTraverser.js.map +1 -0
  851. package/utils/modelFieldTraverser/index.d.ts +1 -0
  852. package/utils/modelFieldTraverser/index.js +18 -0
  853. package/utils/modelFieldTraverser/index.js.map +1 -0
  854. package/utils/renderFields.d.ts +17 -0
  855. package/utils/renderFields.js +58 -0
  856. package/utils/renderFields.js.map +1 -0
  857. package/utils/renderGetFilterFields.d.ts +10 -0
  858. package/utils/renderGetFilterFields.js +36 -0
  859. package/utils/renderGetFilterFields.js.map +1 -0
  860. package/utils/renderInputFields.d.ts +16 -0
  861. package/utils/renderInputFields.js +60 -0
  862. package/utils/renderInputFields.js.map +1 -0
  863. package/utils/renderListFilterFields.d.ts +13 -0
  864. package/utils/renderListFilterFields.js +56 -0
  865. package/utils/renderListFilterFields.js.map +1 -0
  866. package/utils/renderSortEnum.d.ts +13 -0
  867. package/utils/renderSortEnum.js +49 -0
  868. package/utils/renderSortEnum.js.map +1 -0
  869. package/utils/toSlug.d.ts +1 -0
  870. package/utils/toSlug.js +18 -0
  871. package/utils/toSlug.js.map +1 -0
  872. package/validators/dateGte.d.ts +2 -0
  873. package/validators/dateGte.js +32 -0
  874. package/validators/dateGte.js.map +1 -0
  875. package/validators/dateLte.d.ts +2 -0
  876. package/validators/dateLte.js +32 -0
  877. package/validators/dateLte.js.map +1 -0
  878. package/validators/gte.d.ts +2 -0
  879. package/validators/gte.js +29 -0
  880. package/validators/gte.js.map +1 -0
  881. package/validators/in.d.ts +2 -0
  882. package/validators/in.js +29 -0
  883. package/validators/in.js.map +1 -0
  884. package/validators/index.d.ts +1 -0
  885. package/validators/index.js +23 -0
  886. package/validators/index.js.map +1 -0
  887. package/validators/lte.d.ts +2 -0
  888. package/validators/lte.js +29 -0
  889. package/validators/lte.js.map +1 -0
  890. package/validators/maxLength.d.ts +2 -0
  891. package/validators/maxLength.js +29 -0
  892. package/validators/maxLength.js.map +1 -0
  893. package/validators/minLength.d.ts +2 -0
  894. package/validators/minLength.js +29 -0
  895. package/validators/minLength.js.map +1 -0
  896. package/validators/pattern.d.ts +2 -0
  897. package/validators/pattern.js +43 -0
  898. package/validators/pattern.js.map +1 -0
  899. package/validators/patternPlugins/email.d.ts +2 -0
  900. package/validators/patternPlugins/email.js +20 -0
  901. package/validators/patternPlugins/email.js.map +1 -0
  902. package/validators/patternPlugins/index.d.ts +2 -0
  903. package/validators/patternPlugins/index.js +18 -0
  904. package/validators/patternPlugins/index.js.map +1 -0
  905. package/validators/patternPlugins/lowerCase.d.ts +2 -0
  906. package/validators/patternPlugins/lowerCase.js +20 -0
  907. package/validators/patternPlugins/lowerCase.js.map +1 -0
  908. package/validators/patternPlugins/lowerCaseSpace.d.ts +2 -0
  909. package/validators/patternPlugins/lowerCaseSpace.js +20 -0
  910. package/validators/patternPlugins/lowerCaseSpace.js.map +1 -0
  911. package/validators/patternPlugins/upperCase.d.ts +2 -0
  912. package/validators/patternPlugins/upperCase.js +20 -0
  913. package/validators/patternPlugins/upperCase.js.map +1 -0
  914. package/validators/patternPlugins/upperCaseSpace.d.ts +2 -0
  915. package/validators/patternPlugins/upperCaseSpace.js +20 -0
  916. package/validators/patternPlugins/upperCaseSpace.js.map +1 -0
  917. package/validators/patternPlugins/url.d.ts +2 -0
  918. package/validators/patternPlugins/url.js +20 -0
  919. package/validators/patternPlugins/url.js.map +1 -0
  920. package/validators/required.d.ts +2 -0
  921. package/validators/required.js +24 -0
  922. package/validators/required.js.map +1 -0
  923. package/validators/timeGte.d.ts +2 -0
  924. package/validators/timeGte.js +27 -0
  925. package/validators/timeGte.js.map +1 -0
  926. package/validators/timeLte.d.ts +2 -0
  927. package/validators/timeLte.js +27 -0
  928. package/validators/timeLte.js.map +1 -0
  929. package/validators/unique.d.ts +6 -0
  930. package/validators/unique.js +58 -0
  931. package/validators/unique.js.map +1 -0
  932. package/content/contextSetup.d.ts +0 -4
  933. package/content/contextSetup.js +0 -65
  934. package/content/graphQLHandlerFactory.d.ts +0 -5
  935. package/content/graphQLHandlerFactory.js +0 -173
  936. package/content/plugins/CmsGroupPlugin.d.ts +0 -11
  937. package/content/plugins/CmsGroupPlugin.js +0 -24
  938. package/content/plugins/CmsModelPlugin.d.ts +0 -11
  939. package/content/plugins/CmsModelPlugin.js +0 -24
  940. package/content/plugins/buildSchemaPlugins.d.ts +0 -7
  941. package/content/plugins/buildSchemaPlugins.js +0 -29
  942. package/content/plugins/crud/contentEntry/afterDelete.d.ts +0 -7
  943. package/content/plugins/crud/contentEntry/afterDelete.js +0 -41
  944. package/content/plugins/crud/contentEntry/beforeCreate.d.ts +0 -7
  945. package/content/plugins/crud/contentEntry/beforeCreate.js +0 -28
  946. package/content/plugins/crud/contentEntry/beforeUpdate.d.ts +0 -7
  947. package/content/plugins/crud/contentEntry/beforeUpdate.js +0 -28
  948. package/content/plugins/crud/contentEntry/entryDataValidation.d.ts +0 -4
  949. package/content/plugins/crud/contentEntry/entryDataValidation.js +0 -188
  950. package/content/plugins/crud/contentEntry/markLockedFields.d.ts +0 -12
  951. package/content/plugins/crud/contentEntry/markLockedFields.js +0 -117
  952. package/content/plugins/crud/contentEntry.crud.d.ts +0 -17
  953. package/content/plugins/crud/contentEntry.crud.js +0 -931
  954. package/content/plugins/crud/contentModel/afterCreate.d.ts +0 -7
  955. package/content/plugins/crud/contentModel/afterCreate.js +0 -18
  956. package/content/plugins/crud/contentModel/afterDelete.d.ts +0 -7
  957. package/content/plugins/crud/contentModel/afterDelete.js +0 -18
  958. package/content/plugins/crud/contentModel/afterUpdate.d.ts +0 -7
  959. package/content/plugins/crud/contentModel/afterUpdate.js +0 -18
  960. package/content/plugins/crud/contentModel/beforeCreate.d.ts +0 -9
  961. package/content/plugins/crud/contentModel/beforeCreate.js +0 -146
  962. package/content/plugins/crud/contentModel/beforeDelete.d.ts +0 -9
  963. package/content/plugins/crud/contentModel/beforeDelete.js +0 -56
  964. package/content/plugins/crud/contentModel/beforeUpdate.d.ts +0 -9
  965. package/content/plugins/crud/contentModel/beforeUpdate.js +0 -128
  966. package/content/plugins/crud/contentModel/contentModelManagerFactory.d.ts +0 -2
  967. package/content/plugins/crud/contentModel/contentModelManagerFactory.js +0 -29
  968. package/content/plugins/crud/contentModel/createFieldModels.d.ts +0 -2
  969. package/content/plugins/crud/contentModel/createFieldModels.js +0 -22
  970. package/content/plugins/crud/contentModel/idValidation.d.ts +0 -2
  971. package/content/plugins/crud/contentModel/idValidation.js +0 -22
  972. package/content/plugins/crud/contentModel/models.d.ts +0 -3
  973. package/content/plugins/crud/contentModel/models.js +0 -141
  974. package/content/plugins/crud/contentModel/validateLayout.d.ts +0 -2
  975. package/content/plugins/crud/contentModel/validateLayout.js +0 -38
  976. package/content/plugins/crud/contentModel.crud.d.ts +0 -12
  977. package/content/plugins/crud/contentModel.crud.js +0 -425
  978. package/content/plugins/crud/contentModelGroup/beforeCreate.d.ts +0 -9
  979. package/content/plugins/crud/contentModelGroup/beforeCreate.js +0 -66
  980. package/content/plugins/crud/contentModelGroup/beforeDelete.d.ts +0 -9
  981. package/content/plugins/crud/contentModelGroup/beforeDelete.js +0 -48
  982. package/content/plugins/crud/contentModelGroup/beforeUpdate.d.ts +0 -8
  983. package/content/plugins/crud/contentModelGroup/beforeUpdate.js +0 -28
  984. package/content/plugins/crud/contentModelGroup.crud.d.ts +0 -12
  985. package/content/plugins/crud/contentModelGroup.crud.js +0 -351
  986. package/content/plugins/crud/index.d.ts +0 -6
  987. package/content/plugins/crud/index.js +0 -100
  988. package/content/plugins/graphqlFields/boolean.d.ts +0 -3
  989. package/content/plugins/graphqlFields/boolean.js +0 -69
  990. package/content/plugins/graphqlFields/datetime.d.ts +0 -3
  991. package/content/plugins/graphqlFields/datetime.js +0 -83
  992. package/content/plugins/graphqlFields/file.d.ts +0 -3
  993. package/content/plugins/graphqlFields/file.js +0 -49
  994. package/content/plugins/graphqlFields/index.d.ts +0 -2
  995. package/content/plugins/graphqlFields/index.js +0 -30
  996. package/content/plugins/graphqlFields/longText.d.ts +0 -3
  997. package/content/plugins/graphqlFields/longText.js +0 -62
  998. package/content/plugins/graphqlFields/number.d.ts +0 -3
  999. package/content/plugins/graphqlFields/number.js +0 -75
  1000. package/content/plugins/graphqlFields/object.d.ts +0 -3
  1001. package/content/plugins/graphqlFields/object.js +0 -180
  1002. package/content/plugins/graphqlFields/ref.d.ts +0 -3
  1003. package/content/plugins/graphqlFields/ref.js +0 -205
  1004. package/content/plugins/graphqlFields/richText.d.ts +0 -3
  1005. package/content/plugins/graphqlFields/richText.js +0 -55
  1006. package/content/plugins/graphqlFields/text.d.ts +0 -3
  1007. package/content/plugins/graphqlFields/text.js +0 -72
  1008. package/content/plugins/internalSecurity/InternalAuthenticationPlugin.d.ts +0 -8
  1009. package/content/plugins/internalSecurity/InternalAuthenticationPlugin.js +0 -54
  1010. package/content/plugins/internalSecurity/InternalAuthorizationPlugin.d.ts +0 -7
  1011. package/content/plugins/internalSecurity/InternalAuthorizationPlugin.js +0 -35
  1012. package/content/plugins/modelManager/DefaultCmsModelManager.d.ts +0 -15
  1013. package/content/plugins/modelManager/DefaultCmsModelManager.js +0 -62
  1014. package/content/plugins/modelManager/index.d.ts +0 -3
  1015. package/content/plugins/modelManager/index.js +0 -20
  1016. package/content/plugins/schema/baseSchema.d.ts +0 -4
  1017. package/content/plugins/schema/baseSchema.js +0 -98
  1018. package/content/plugins/schema/contentEntries.d.ts +0 -4
  1019. package/content/plugins/schema/contentEntries.js +0 -166
  1020. package/content/plugins/schema/contentModelGroups.d.ts +0 -4
  1021. package/content/plugins/schema/contentModelGroups.js +0 -153
  1022. package/content/plugins/schema/contentModels.d.ts +0 -4
  1023. package/content/plugins/schema/contentModels.js +0 -225
  1024. package/content/plugins/schema/createFieldResolvers.d.ts +0 -19
  1025. package/content/plugins/schema/createFieldResolvers.js +0 -92
  1026. package/content/plugins/schema/createManageResolvers.d.ts +0 -11
  1027. package/content/plugins/schema/createManageResolvers.js +0 -135
  1028. package/content/plugins/schema/createManageSDL.d.ts +0 -9
  1029. package/content/plugins/schema/createManageSDL.js +0 -153
  1030. package/content/plugins/schema/createPreviewResolvers.d.ts +0 -10
  1031. package/content/plugins/schema/createPreviewResolvers.js +0 -55
  1032. package/content/plugins/schema/createReadResolvers.d.ts +0 -10
  1033. package/content/plugins/schema/createReadResolvers.js +0 -55
  1034. package/content/plugins/schema/createReadSDL.d.ts +0 -9
  1035. package/content/plugins/schema/createReadSDL.js +0 -96
  1036. package/content/plugins/schema/resolvers/commonFieldResolvers.d.ts +0 -6
  1037. package/content/plugins/schema/resolvers/commonFieldResolvers.js +0 -14
  1038. package/content/plugins/schema/resolvers/manage/resolveCreate.d.ts +0 -6
  1039. package/content/plugins/schema/resolvers/manage/resolveCreate.js +0 -23
  1040. package/content/plugins/schema/resolvers/manage/resolveCreateFrom.d.ts +0 -7
  1041. package/content/plugins/schema/resolvers/manage/resolveCreateFrom.js +0 -23
  1042. package/content/plugins/schema/resolvers/manage/resolveDelete.d.ts +0 -2
  1043. package/content/plugins/schema/resolvers/manage/resolveDelete.js +0 -30
  1044. package/content/plugins/schema/resolvers/manage/resolveGet.d.ts +0 -2
  1045. package/content/plugins/schema/resolvers/manage/resolveGet.js +0 -21
  1046. package/content/plugins/schema/resolvers/manage/resolveGetByIds.d.ts +0 -2
  1047. package/content/plugins/schema/resolvers/manage/resolveGetByIds.js +0 -23
  1048. package/content/plugins/schema/resolvers/manage/resolveGetRevisions.d.ts +0 -2
  1049. package/content/plugins/schema/resolvers/manage/resolveGetRevisions.js +0 -23
  1050. package/content/plugins/schema/resolvers/manage/resolveList.d.ts +0 -2
  1051. package/content/plugins/schema/resolvers/manage/resolveList.js +0 -23
  1052. package/content/plugins/schema/resolvers/manage/resolvePublish.d.ts +0 -2
  1053. package/content/plugins/schema/resolvers/manage/resolvePublish.js +0 -21
  1054. package/content/plugins/schema/resolvers/manage/resolveRequestChanges.d.ts +0 -6
  1055. package/content/plugins/schema/resolvers/manage/resolveRequestChanges.js +0 -23
  1056. package/content/plugins/schema/resolvers/manage/resolveRequestReview.d.ts +0 -6
  1057. package/content/plugins/schema/resolvers/manage/resolveRequestReview.js +0 -23
  1058. package/content/plugins/schema/resolvers/manage/resolveUnpublish.d.ts +0 -2
  1059. package/content/plugins/schema/resolvers/manage/resolveUnpublish.js +0 -21
  1060. package/content/plugins/schema/resolvers/manage/resolveUpdate.d.ts +0 -7
  1061. package/content/plugins/schema/resolvers/manage/resolveUpdate.js +0 -23
  1062. package/content/plugins/schema/resolvers/preview/resolveGet.d.ts +0 -2
  1063. package/content/plugins/schema/resolvers/preview/resolveGet.js +0 -38
  1064. package/content/plugins/schema/resolvers/preview/resolveList.d.ts +0 -2
  1065. package/content/plugins/schema/resolvers/preview/resolveList.js +0 -23
  1066. package/content/plugins/schema/resolvers/read/resolveGet.d.ts +0 -2
  1067. package/content/plugins/schema/resolvers/read/resolveGet.js +0 -38
  1068. package/content/plugins/schema/resolvers/read/resolveList.d.ts +0 -2
  1069. package/content/plugins/schema/resolvers/read/resolveList.js +0 -23
  1070. package/content/plugins/schema/schemaPlugins.d.ts +0 -3
  1071. package/content/plugins/schema/schemaPlugins.js +0 -92
  1072. package/content/plugins/storage/StorageTransformPlugin.d.ts +0 -30
  1073. package/content/plugins/storage/StorageTransformPlugin.js +0 -36
  1074. package/content/plugins/storage/default.d.ts +0 -3
  1075. package/content/plugins/storage/default.js +0 -28
  1076. package/content/plugins/storage/object.d.ts +0 -3
  1077. package/content/plugins/storage/object.js +0 -119
  1078. package/content/plugins/utils/createTypeName.d.ts +0 -3
  1079. package/content/plugins/utils/createTypeName.js +0 -28
  1080. package/content/plugins/utils/entryStorage.d.ts +0 -17
  1081. package/content/plugins/utils/entryStorage.js +0 -125
  1082. package/content/plugins/utils/getEntryTitle.d.ts +0 -2
  1083. package/content/plugins/utils/getEntryTitle.js +0 -42
  1084. package/content/plugins/utils/getSchemaFromFieldPlugins.d.ts +0 -11
  1085. package/content/plugins/utils/getSchemaFromFieldPlugins.js +0 -30
  1086. package/content/plugins/utils/pluralizedTypeName.d.ts +0 -1
  1087. package/content/plugins/utils/pluralizedTypeName.js +0 -26
  1088. package/content/plugins/utils/renderFields.d.ts +0 -16
  1089. package/content/plugins/utils/renderFields.js +0 -51
  1090. package/content/plugins/utils/renderGetFilterFields.d.ts +0 -9
  1091. package/content/plugins/utils/renderGetFilterFields.js +0 -41
  1092. package/content/plugins/utils/renderInputFields.d.ts +0 -14
  1093. package/content/plugins/utils/renderInputFields.js +0 -53
  1094. package/content/plugins/utils/renderListFilterFields.d.ts +0 -10
  1095. package/content/plugins/utils/renderListFilterFields.js +0 -39
  1096. package/content/plugins/utils/renderSortEnum.d.ts +0 -9
  1097. package/content/plugins/utils/renderSortEnum.js +0 -32
  1098. package/content/plugins/validators/dateGte.d.ts +0 -3
  1099. package/content/plugins/validators/dateGte.js +0 -37
  1100. package/content/plugins/validators/dateLte.d.ts +0 -3
  1101. package/content/plugins/validators/dateLte.js +0 -37
  1102. package/content/plugins/validators/gte.d.ts +0 -3
  1103. package/content/plugins/validators/gte.js +0 -32
  1104. package/content/plugins/validators/in.d.ts +0 -3
  1105. package/content/plugins/validators/in.js +0 -32
  1106. package/content/plugins/validators/index.d.ts +0 -2
  1107. package/content/plugins/validators/index.js +0 -36
  1108. package/content/plugins/validators/lte.d.ts +0 -3
  1109. package/content/plugins/validators/lte.js +0 -32
  1110. package/content/plugins/validators/maxLength.d.ts +0 -3
  1111. package/content/plugins/validators/maxLength.js +0 -32
  1112. package/content/plugins/validators/minLength.d.ts +0 -3
  1113. package/content/plugins/validators/minLength.js +0 -32
  1114. package/content/plugins/validators/pattern.d.ts +0 -3
  1115. package/content/plugins/validators/pattern.js +0 -47
  1116. package/content/plugins/validators/patternPlugins/email.d.ts +0 -3
  1117. package/content/plugins/validators/patternPlugins/email.js +0 -17
  1118. package/content/plugins/validators/patternPlugins/index.d.ts +0 -2
  1119. package/content/plugins/validators/patternPlugins/index.js +0 -19
  1120. package/content/plugins/validators/patternPlugins/lowerCase.d.ts +0 -3
  1121. package/content/plugins/validators/patternPlugins/lowerCase.js +0 -17
  1122. package/content/plugins/validators/patternPlugins/upperCase.d.ts +0 -3
  1123. package/content/plugins/validators/patternPlugins/upperCase.js +0 -17
  1124. package/content/plugins/validators/patternPlugins/url.d.ts +0 -3
  1125. package/content/plugins/validators/patternPlugins/url.js +0 -17
  1126. package/content/plugins/validators/required.d.ts +0 -3
  1127. package/content/plugins/validators/required.js +0 -25
  1128. package/content/plugins/validators/timeGte.d.ts +0 -3
  1129. package/content/plugins/validators/timeGte.js +0 -32
  1130. package/content/plugins/validators/timeLte.d.ts +0 -3
  1131. package/content/plugins/validators/timeLte.js +0 -32
  1132. package/migrateCMSPermissions.d.ts +0 -17
  1133. package/migrateCMSPermissions.js +0 -193
  1134. package/plugins/context.d.ts +0 -4
  1135. package/plugins/context.js +0 -34
  1136. package/plugins/crud/index.d.ts +0 -6
  1137. package/plugins/crud/index.js +0 -100
  1138. package/plugins/crud/settings.crud.d.ts +0 -10
  1139. package/plugins/crud/settings.crud.js +0 -93
  1140. package/plugins/crud/system.crud.d.ts +0 -10
  1141. package/plugins/crud/system.crud.js +0 -182
  1142. package/plugins/graphql/system.d.ts +0 -17
  1143. package/plugins/graphql/system.js +0 -72
  1144. package/plugins/graphql.d.ts +0 -2
  1145. package/plugins/graphql.js +0 -79
  1146. package/plugins/upgrades/index.d.ts +0 -2
  1147. package/plugins/upgrades/index.js +0 -14
  1148. package/plugins/upgrades/v5.5.0/helpers.d.ts +0 -6
  1149. package/plugins/upgrades/v5.5.0/helpers.js +0 -10
  1150. package/plugins/upgrades/v5.5.0/index.d.ts +0 -4
  1151. package/plugins/upgrades/v5.5.0/index.js +0 -129
  1152. package/transformers.d.ts +0 -2
  1153. package/transformers.js +0 -25
  1154. package/types.d.ts +0 -2149
  1155. package/types.js +0 -366
  1156. package/utils.d.ts +0 -25
  1157. package/utils.js +0 -251
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderInputFields = exports.renderInputField = void 0;
7
+ var _getBaseFieldType = require("./getBaseFieldType");
8
+ const renderInputFields = ({
9
+ models,
10
+ model,
11
+ fields,
12
+ fieldTypePlugins
13
+ }) => {
14
+ return fields.reduce((result, field) => {
15
+ const input = renderInputField({
16
+ models,
17
+ model,
18
+ field,
19
+ fieldTypePlugins
20
+ });
21
+ if (!input) {
22
+ return result;
23
+ }
24
+ result.push(input);
25
+ return result;
26
+ }, []);
27
+ };
28
+ exports.renderInputFields = renderInputFields;
29
+ const renderInputField = ({
30
+ models,
31
+ model,
32
+ field,
33
+ fieldTypePlugins
34
+ }) => {
35
+ // Every time a client updates content model's fields, we check the type of each field. If a field plugin
36
+ // for a particular "field.type" doesn't exist on the backend yet, we throw an error. But still, we also
37
+ // want to be careful when accessing the field plugin here too. It is still possible to have a content model
38
+ // that contains a field, for which we don't have a plugin registered on the backend. For example, user
39
+ // could've just removed the plugin from the backend.
40
+ const plugin = fieldTypePlugins[(0, _getBaseFieldType.getBaseFieldType)(field)];
41
+ if (!plugin) {
42
+ // Let's not render the field if it does not exist in the field plugins.
43
+ return null;
44
+ }
45
+ const def = plugin.manage.createInputField({
46
+ models,
47
+ model,
48
+ field,
49
+ fieldTypePlugins
50
+ });
51
+ if (typeof def === "string") {
52
+ return {
53
+ fields: def
54
+ };
55
+ }
56
+ return def;
57
+ };
58
+ exports.renderInputField = renderInputField;
59
+
60
+ //# sourceMappingURL=renderInputFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_getBaseFieldType","require","renderInputFields","models","model","fields","fieldTypePlugins","reduce","result","field","input","renderInputField","push","exports","plugin","getBaseFieldType","def","manage","createInputField"],"sources":["renderInputFields.ts"],"sourcesContent":["import type {\n CmsFieldTypePlugins,\n CmsModel,\n CmsModelField,\n CmsModelFieldDefinition\n} from \"~/types\";\nimport { getBaseFieldType } from \"~/utils/getBaseFieldType\";\n\ninterface RenderInputFieldsParams {\n models: CmsModel[];\n model: CmsModel;\n fields: CmsModelField[];\n fieldTypePlugins: CmsFieldTypePlugins;\n}\n\ninterface RenderInputFieldParams extends Omit<RenderInputFieldsParams, \"fields\"> {\n field: CmsModelField;\n}\n\ninterface RenderInputFields {\n (params: RenderInputFieldsParams): CmsModelFieldDefinition[];\n}\n\nexport const renderInputFields: RenderInputFields = ({\n models,\n model,\n fields,\n fieldTypePlugins\n}): CmsModelFieldDefinition[] => {\n return fields.reduce<CmsModelFieldDefinition[]>((result, field) => {\n const input = renderInputField({ models, model, field, fieldTypePlugins });\n if (!input) {\n return result;\n }\n result.push(input);\n return result;\n }, []);\n};\n\nexport const renderInputField = ({\n models,\n model,\n field,\n fieldTypePlugins\n}: RenderInputFieldParams): CmsModelFieldDefinition | null => {\n // Every time a client updates content model's fields, we check the type of each field. If a field plugin\n // for a particular \"field.type\" doesn't exist on the backend yet, we throw an error. But still, we also\n // want to be careful when accessing the field plugin here too. It is still possible to have a content model\n // that contains a field, for which we don't have a plugin registered on the backend. For example, user\n // could've just removed the plugin from the backend.\n const plugin = fieldTypePlugins[getBaseFieldType(field)];\n\n if (!plugin) {\n // Let's not render the field if it does not exist in the field plugins.\n return null;\n }\n\n const def = plugin.manage.createInputField({\n models,\n model,\n field,\n fieldTypePlugins\n });\n if (typeof def === \"string\") {\n return {\n fields: def\n };\n }\n\n return def;\n};\n"],"mappings":";;;;;;AAMA,IAAAA,iBAAA,GAAAC,OAAA;AAiBO,MAAMC,iBAAoC,GAAGA,CAAC;EACjDC,MAAM;EACNC,KAAK;EACLC,MAAM;EACNC;AACJ,CAAC,KAAgC;EAC7B,OAAOD,MAAM,CAACE,MAAM,CAA4B,CAACC,MAAM,EAAEC,KAAK,KAAK;IAC/D,MAAMC,KAAK,GAAGC,gBAAgB,CAAC;MAAER,MAAM;MAAEC,KAAK;MAAEK,KAAK;MAAEH;IAAiB,CAAC,CAAC;IAC1E,IAAI,CAACI,KAAK,EAAE;MACR,OAAOF,MAAM;IACjB;IACAA,MAAM,CAACI,IAAI,CAACF,KAAK,CAAC;IAClB,OAAOF,MAAM;EACjB,CAAC,EAAE,EAAE,CAAC;AACV,CAAC;AAACK,OAAA,CAAAX,iBAAA,GAAAA,iBAAA;AAEK,MAAMS,gBAAgB,GAAGA,CAAC;EAC7BR,MAAM;EACNC,KAAK;EACLK,KAAK;EACLH;AACoB,CAAC,KAAqC;EAC1D;EACA;EACA;EACA;EACA;EACA,MAAMQ,MAAM,GAAGR,gBAAgB,CAAC,IAAAS,kCAAgB,EAACN,KAAK,CAAC,CAAC;EAExD,IAAI,CAACK,MAAM,EAAE;IACT;IACA,OAAO,IAAI;EACf;EAEA,MAAME,GAAG,GAAGF,MAAM,CAACG,MAAM,CAACC,gBAAgB,CAAC;IACvCf,MAAM;IACNC,KAAK;IACLK,KAAK;IACLH;EACJ,CAAC,CAAC;EACF,IAAI,OAAOU,GAAG,KAAK,QAAQ,EAAE;IACzB,OAAO;MACHX,MAAM,EAAEW;IACZ,CAAC;EACL;EAEA,OAAOA,GAAG;AACd,CAAC;AAACH,OAAA,CAAAF,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ import type { ApiEndpoint, CmsFieldTypePlugins, CmsModel, CmsModelField } from "../types";
2
+ interface RenderListFilterFieldsParams {
3
+ model: CmsModel;
4
+ fields: CmsModelField[];
5
+ type: ApiEndpoint;
6
+ fieldTypePlugins: CmsFieldTypePlugins;
7
+ excludeFields?: string[];
8
+ }
9
+ interface RenderListFilterFields {
10
+ (params: RenderListFilterFieldsParams): string;
11
+ }
12
+ export declare const renderListFilterFields: RenderListFilterFields;
13
+ export {};
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderListFilterFields = void 0;
7
+ var _getBaseFieldType = require("./getBaseFieldType");
8
+ var _constants = require("../constants");
9
+ const renderListFilterFields = params => {
10
+ const {
11
+ model,
12
+ fields,
13
+ type,
14
+ fieldTypePlugins,
15
+ excludeFields = []
16
+ } = params;
17
+ const result = ["id: ID", "id_not: ID", "id_in: [ID!]", "id_not_in: [ID!]", "entryId: String", "entryId_not: String", "entryId_in: [String!]", "entryId_not_in: [String!]", ..._constants.ENTRY_META_FIELDS.map(field => {
18
+ if ((0, _constants.isDateTimeEntryMetaField)(field)) {
19
+ return [`${field}: DateTime`, `${field}_gt: DateTime`, `${field}_gte: DateTime`, `${field}_lt: DateTime`, `${field}_lte: DateTime`, `${field}_between: [DateTime!]`, `${field}_not_between: [DateTime!]`];
20
+ }
21
+ return [`${field}: ID`, `${field}_not: ID`, `${field}_in: [ID!]`, `${field}_not_in: [ID!]`];
22
+ }).flat()];
23
+
24
+ /**
25
+ * We can find different statuses only in the manage API endpoint.
26
+ */
27
+ if (type === "manage") {
28
+ result.push("status: String", "status_not: String", "status_in: [String!]", "status_not_in: [String!]");
29
+ }
30
+ const finalFields = result.filter(field => {
31
+ return !excludeFields.some(excl => {
32
+ return field.startsWith(`${excl}_`) || field.startsWith(`${excl}: `);
33
+ });
34
+ });
35
+ for (const field of fields) {
36
+ // Every time a client updates content model's fields, we check the type of each field. If a field plugin
37
+ // for a particular "field.type" doesn't exist on the backend yet, we throw an error. But still, we also
38
+ // want to be careful when accessing the field plugin here too. It is still possible to have a content model
39
+ // that contains a field, for which we don't have a plugin registered on the backend. For example, user
40
+ // could've just removed the plugin from the backend.
41
+ const baseType = (0, _getBaseFieldType.getBaseFieldType)(field);
42
+ const createListFilters = fieldTypePlugins[baseType]?.[type]?.createListFilters;
43
+ if (typeof createListFilters !== "function") {
44
+ continue;
45
+ }
46
+ finalFields.push(createListFilters({
47
+ model,
48
+ field,
49
+ plugins: fieldTypePlugins
50
+ }));
51
+ }
52
+ return finalFields.filter(Boolean).join("\n");
53
+ };
54
+ exports.renderListFilterFields = renderListFilterFields;
55
+
56
+ //# sourceMappingURL=renderListFilterFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_getBaseFieldType","require","_constants","renderListFilterFields","params","model","fields","type","fieldTypePlugins","excludeFields","result","ENTRY_META_FIELDS","map","field","isDateTimeEntryMetaField","flat","push","finalFields","filter","some","excl","startsWith","baseType","getBaseFieldType","createListFilters","plugins","Boolean","join","exports"],"sources":["renderListFilterFields.ts"],"sourcesContent":["import type {\n ApiEndpoint,\n CmsFieldTypePlugins,\n CmsModel,\n CmsModelField,\n CmsModelFieldToGraphQLPlugin\n} from \"~/types\";\nimport { getBaseFieldType } from \"~/utils/getBaseFieldType\";\nimport { ENTRY_META_FIELDS, isDateTimeEntryMetaField } from \"~/constants\";\n\ninterface RenderListFilterFieldsParams {\n model: CmsModel;\n fields: CmsModelField[];\n type: ApiEndpoint;\n fieldTypePlugins: CmsFieldTypePlugins;\n excludeFields?: string[];\n}\n\ninterface RenderListFilterFields {\n (params: RenderListFilterFieldsParams): string;\n}\n\ntype CreateListFiltersType =\n | CmsModelFieldToGraphQLPlugin[\"read\"][\"createListFilters\"]\n | CmsModelFieldToGraphQLPlugin[\"manage\"][\"createListFilters\"];\n\nexport const renderListFilterFields: RenderListFilterFields = (params): string => {\n const { model, fields, type, fieldTypePlugins, excludeFields = [] } = params;\n const result: string[] = [\n \"id: ID\",\n \"id_not: ID\",\n \"id_in: [ID!]\",\n \"id_not_in: [ID!]\",\n \"entryId: String\",\n \"entryId_not: String\",\n \"entryId_in: [String!]\",\n \"entryId_not_in: [String!]\",\n\n ...ENTRY_META_FIELDS.map(field => {\n if (isDateTimeEntryMetaField(field)) {\n return [\n `${field}: DateTime`,\n `${field}_gt: DateTime`,\n `${field}_gte: DateTime`,\n `${field}_lt: DateTime`,\n `${field}_lte: DateTime`,\n `${field}_between: [DateTime!]`,\n `${field}_not_between: [DateTime!]`\n ];\n }\n\n return [\n `${field}: ID`,\n `${field}_not: ID`,\n `${field}_in: [ID!]`,\n `${field}_not_in: [ID!]`\n ];\n }).flat()\n ];\n\n /**\n * We can find different statuses only in the manage API endpoint.\n */\n if (type === \"manage\") {\n result.push(\n \"status: String\",\n \"status_not: String\",\n \"status_in: [String!]\",\n \"status_not_in: [String!]\"\n );\n }\n\n const finalFields = result.filter(field => {\n return !excludeFields.some(excl => {\n return field.startsWith(`${excl}_`) || field.startsWith(`${excl}: `);\n });\n });\n\n for (const field of fields) {\n // Every time a client updates content model's fields, we check the type of each field. If a field plugin\n // for a particular \"field.type\" doesn't exist on the backend yet, we throw an error. But still, we also\n // want to be careful when accessing the field plugin here too. It is still possible to have a content model\n // that contains a field, for which we don't have a plugin registered on the backend. For example, user\n // could've just removed the plugin from the backend.\n const baseType = getBaseFieldType(field);\n const createListFilters: CreateListFiltersType | undefined =\n fieldTypePlugins[baseType]?.[type]?.createListFilters;\n if (typeof createListFilters !== \"function\") {\n continue;\n }\n finalFields.push(createListFilters({ model, field, plugins: fieldTypePlugins }));\n }\n\n return finalFields.filter(Boolean).join(\"\\n\");\n};\n"],"mappings":";;;;;;AAOA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAkBO,MAAME,sBAA8C,GAAIC,MAAM,IAAa;EAC9E,MAAM;IAAEC,KAAK;IAAEC,MAAM;IAAEC,IAAI;IAAEC,gBAAgB;IAAEC,aAAa,GAAG;EAAG,CAAC,GAAGL,MAAM;EAC5E,MAAMM,MAAgB,GAAG,CACrB,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAE3B,GAAGC,4BAAiB,CAACC,GAAG,CAACC,KAAK,IAAI;IAC9B,IAAI,IAAAC,mCAAwB,EAACD,KAAK,CAAC,EAAE;MACjC,OAAO,CACH,GAAGA,KAAK,YAAY,EACpB,GAAGA,KAAK,eAAe,EACvB,GAAGA,KAAK,gBAAgB,EACxB,GAAGA,KAAK,eAAe,EACvB,GAAGA,KAAK,gBAAgB,EACxB,GAAGA,KAAK,uBAAuB,EAC/B,GAAGA,KAAK,2BAA2B,CACtC;IACL;IAEA,OAAO,CACH,GAAGA,KAAK,MAAM,EACd,GAAGA,KAAK,UAAU,EAClB,GAAGA,KAAK,YAAY,EACpB,GAAGA,KAAK,gBAAgB,CAC3B;EACL,CAAC,CAAC,CAACE,IAAI,CAAC,CAAC,CACZ;;EAED;AACJ;AACA;EACI,IAAIR,IAAI,KAAK,QAAQ,EAAE;IACnBG,MAAM,CAACM,IAAI,CACP,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,0BACJ,CAAC;EACL;EAEA,MAAMC,WAAW,GAAGP,MAAM,CAACQ,MAAM,CAACL,KAAK,IAAI;IACvC,OAAO,CAACJ,aAAa,CAACU,IAAI,CAACC,IAAI,IAAI;MAC/B,OAAOP,KAAK,CAACQ,UAAU,CAAC,GAAGD,IAAI,GAAG,CAAC,IAAIP,KAAK,CAACQ,UAAU,CAAC,GAAGD,IAAI,IAAI,CAAC;IACxE,CAAC,CAAC;EACN,CAAC,CAAC;EAEF,KAAK,MAAMP,KAAK,IAAIP,MAAM,EAAE;IACxB;IACA;IACA;IACA;IACA;IACA,MAAMgB,QAAQ,GAAG,IAAAC,kCAAgB,EAACV,KAAK,CAAC;IACxC,MAAMW,iBAAoD,GACtDhB,gBAAgB,CAACc,QAAQ,CAAC,GAAGf,IAAI,CAAC,EAAEiB,iBAAiB;IACzD,IAAI,OAAOA,iBAAiB,KAAK,UAAU,EAAE;MACzC;IACJ;IACAP,WAAW,CAACD,IAAI,CAACQ,iBAAiB,CAAC;MAAEnB,KAAK;MAAEQ,KAAK;MAAEY,OAAO,EAAEjB;IAAiB,CAAC,CAAC,CAAC;EACpF;EAEA,OAAOS,WAAW,CAACC,MAAM,CAACQ,OAAO,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;AACjD,CAAC;AAACC,OAAA,CAAAzB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ import type { CmsFieldTypePlugins, CmsModel, CmsModelField } from "../types";
2
+ import type { CmsGraphQLSchemaSorterPlugin } from "../plugins/CmsGraphQLSchemaSorterPlugin";
3
+ interface RenderSortEnumParams {
4
+ model: CmsModel;
5
+ fields: CmsModelField[];
6
+ fieldTypePlugins: CmsFieldTypePlugins;
7
+ sorterPlugins?: CmsGraphQLSchemaSorterPlugin[];
8
+ }
9
+ interface RenderSortEnum {
10
+ (params: RenderSortEnumParams): string;
11
+ }
12
+ export declare const renderSortEnum: RenderSortEnum;
13
+ export {};
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderSortEnum = void 0;
7
+ var _getBaseFieldType = require("./getBaseFieldType");
8
+ var _constants = require("../constants");
9
+ const renderSortEnum = ({
10
+ model,
11
+ fields,
12
+ fieldTypePlugins,
13
+ sorterPlugins
14
+ }) => {
15
+ let sorters = [`id_ASC`, `id_DESC`, ..._constants.ENTRY_META_FIELDS.filter(_constants.isDateTimeEntryMetaField).map(field => [`${field}_ASC`, `${field}_DESC`]).flat()];
16
+ for (const field of fields) {
17
+ const plugin = fieldTypePlugins[(0, _getBaseFieldType.getBaseFieldType)(field)];
18
+ if (!plugin) {
19
+ continue;
20
+ } else if (plugin.createSorters) {
21
+ const result = plugin.createSorters({
22
+ model,
23
+ field,
24
+ sorters
25
+ });
26
+ if (result) {
27
+ sorters = result;
28
+ continue;
29
+ }
30
+ }
31
+ if (!plugin.isSortable) {
32
+ continue;
33
+ }
34
+ sorters.push(`${field.fieldId}_ASC`);
35
+ sorters.push(`${field.fieldId}_DESC`);
36
+ }
37
+ if (!sorterPlugins) {
38
+ return sorters.join("\n");
39
+ }
40
+ return sorterPlugins.reduce((result, plugin) => {
41
+ return plugin.createSorter({
42
+ model,
43
+ sorters: result
44
+ });
45
+ }, sorters).join("\n");
46
+ };
47
+ exports.renderSortEnum = renderSortEnum;
48
+
49
+ //# sourceMappingURL=renderSortEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_getBaseFieldType","require","_constants","renderSortEnum","model","fields","fieldTypePlugins","sorterPlugins","sorters","ENTRY_META_FIELDS","filter","isDateTimeEntryMetaField","map","field","flat","plugin","getBaseFieldType","createSorters","result","isSortable","push","fieldId","join","reduce","createSorter","exports"],"sources":["renderSortEnum.ts"],"sourcesContent":["import type { CmsFieldTypePlugins, CmsModel, CmsModelField } from \"~/types\";\nimport { getBaseFieldType } from \"~/utils/getBaseFieldType\";\nimport type { CmsGraphQLSchemaSorterPlugin } from \"~/plugins/CmsGraphQLSchemaSorterPlugin\";\nimport { ENTRY_META_FIELDS, isDateTimeEntryMetaField } from \"~/constants\";\n\ninterface RenderSortEnumParams {\n model: CmsModel;\n fields: CmsModelField[];\n fieldTypePlugins: CmsFieldTypePlugins;\n sorterPlugins?: CmsGraphQLSchemaSorterPlugin[];\n}\n\ninterface RenderSortEnum {\n (params: RenderSortEnumParams): string;\n}\n\nexport const renderSortEnum: RenderSortEnum = ({\n model,\n fields,\n fieldTypePlugins,\n sorterPlugins\n}): string => {\n let sorters: string[] = [\n `id_ASC`,\n `id_DESC`,\n\n ...ENTRY_META_FIELDS.filter(isDateTimeEntryMetaField)\n .map(field => [`${field}_ASC`, `${field}_DESC`])\n .flat()\n ];\n\n for (const field of fields) {\n const plugin = fieldTypePlugins[getBaseFieldType(field)];\n if (!plugin) {\n continue;\n } else if (plugin.createSorters) {\n const result = plugin.createSorters({\n model,\n field,\n sorters\n });\n if (result) {\n sorters = result;\n continue;\n }\n }\n if (!plugin.isSortable) {\n continue;\n }\n sorters.push(`${field.fieldId}_ASC`);\n sorters.push(`${field.fieldId}_DESC`);\n }\n if (!sorterPlugins) {\n return sorters.join(\"\\n\");\n }\n\n return sorterPlugins\n .reduce((result, plugin) => {\n return plugin.createSorter({\n model,\n sorters: result\n });\n }, sorters)\n .join(\"\\n\");\n};\n"],"mappings":";;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAaO,MAAME,cAA8B,GAAGA,CAAC;EAC3CC,KAAK;EACLC,MAAM;EACNC,gBAAgB;EAChBC;AACJ,CAAC,KAAa;EACV,IAAIC,OAAiB,GAAG,CACpB,QAAQ,EACR,SAAS,EAET,GAAGC,4BAAiB,CAACC,MAAM,CAACC,mCAAwB,CAAC,CAChDC,GAAG,CAACC,KAAK,IAAI,CAAC,GAAGA,KAAK,MAAM,EAAE,GAAGA,KAAK,OAAO,CAAC,CAAC,CAC/CC,IAAI,CAAC,CAAC,CACd;EAED,KAAK,MAAMD,KAAK,IAAIR,MAAM,EAAE;IACxB,MAAMU,MAAM,GAAGT,gBAAgB,CAAC,IAAAU,kCAAgB,EAACH,KAAK,CAAC,CAAC;IACxD,IAAI,CAACE,MAAM,EAAE;MACT;IACJ,CAAC,MAAM,IAAIA,MAAM,CAACE,aAAa,EAAE;MAC7B,MAAMC,MAAM,GAAGH,MAAM,CAACE,aAAa,CAAC;QAChCb,KAAK;QACLS,KAAK;QACLL;MACJ,CAAC,CAAC;MACF,IAAIU,MAAM,EAAE;QACRV,OAAO,GAAGU,MAAM;QAChB;MACJ;IACJ;IACA,IAAI,CAACH,MAAM,CAACI,UAAU,EAAE;MACpB;IACJ;IACAX,OAAO,CAACY,IAAI,CAAC,GAAGP,KAAK,CAACQ,OAAO,MAAM,CAAC;IACpCb,OAAO,CAACY,IAAI,CAAC,GAAGP,KAAK,CAACQ,OAAO,OAAO,CAAC;EACzC;EACA,IAAI,CAACd,aAAa,EAAE;IAChB,OAAOC,OAAO,CAACc,IAAI,CAAC,IAAI,CAAC;EAC7B;EAEA,OAAOf,aAAa,CACfgB,MAAM,CAAC,CAACL,MAAM,EAAEH,MAAM,KAAK;IACxB,OAAOA,MAAM,CAACS,YAAY,CAAC;MACvBpB,KAAK;MACLI,OAAO,EAAEU;IACb,CAAC,CAAC;EACN,CAAC,EAAEV,OAAO,CAAC,CACVc,IAAI,CAAC,IAAI,CAAC;AACnB,CAAC;AAACG,OAAA,CAAAtB,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export declare const toSlug: (text: string) => string;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.toSlug = void 0;
8
+ var _slugify = _interopRequireDefault(require("slugify"));
9
+ const toSlug = text => {
10
+ return (0, _slugify.default)(text, {
11
+ replacement: "-",
12
+ lower: true,
13
+ remove: /[*#\?<>_\{\}\[\]+~.()'"!:;@]/g
14
+ });
15
+ };
16
+ exports.toSlug = toSlug;
17
+
18
+ //# sourceMappingURL=toSlug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_slugify","_interopRequireDefault","require","toSlug","text","slugify","replacement","lower","remove","exports"],"sources":["toSlug.ts"],"sourcesContent":["import slugify from \"slugify\";\n\nexport const toSlug = (text: string): string => {\n return slugify(text, {\n replacement: \"-\",\n lower: true,\n remove: /[*#\\?<>_\\{\\}\\[\\]+~.()'\"!:;@]/g\n });\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEO,MAAMC,MAAM,GAAIC,IAAY,IAAa;EAC5C,OAAO,IAAAC,gBAAO,EAACD,IAAI,EAAE;IACjBE,WAAW,EAAE,GAAG;IAChBC,KAAK,EAAE,IAAI;IACXC,MAAM,EAAE;EACZ,CAAC,CAAC;AACN,CAAC;AAACC,OAAA,CAAAN,MAAA,GAAAA,MAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createDateGteValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createDateGteValidator = void 0;
7
+ var _validation = require("@webiny/validation");
8
+ const createDateGteValidator = () => ({
9
+ type: "cms-model-field-validator",
10
+ name: "cms-model-field-validator-date-gte",
11
+ validator: {
12
+ name: "dateGte",
13
+ async validate({
14
+ value,
15
+ validator
16
+ }) {
17
+ const {
18
+ value: gteValue,
19
+ type
20
+ } = validator.settings || {};
21
+ if (typeof gteValue === "undefined") {
22
+ return true;
23
+ } else if (type === "time") {
24
+ return _validation.validation.validate(value, `timeGte:${gteValue}`).then(v => v === true).catch(() => false);
25
+ }
26
+ return _validation.validation.validate(value, `dateGte:${gteValue}`).then(v => v === true).catch(() => false);
27
+ }
28
+ }
29
+ });
30
+ exports.createDateGteValidator = createDateGteValidator;
31
+
32
+ //# sourceMappingURL=dateGte.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_validation","require","createDateGteValidator","type","name","validator","validate","value","gteValue","settings","validation","then","v","catch","exports"],"sources":["dateGte.ts"],"sourcesContent":["import { validation } from \"@webiny/validation\";\nimport type { CmsModelFieldValidatorPlugin } from \"~/types\";\n\nexport const createDateGteValidator = (): CmsModelFieldValidatorPlugin => ({\n type: \"cms-model-field-validator\",\n name: \"cms-model-field-validator-date-gte\",\n validator: {\n name: \"dateGte\",\n async validate({ value, validator }) {\n const { value: gteValue, type } = validator.settings || {};\n if (typeof gteValue === \"undefined\") {\n return true;\n } else if (type === \"time\") {\n return validation\n .validate(value, `timeGte:${gteValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n return validation\n .validate(value, `dateGte:${gteValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n }\n});\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGO,MAAMC,sBAAsB,GAAGA,CAAA,MAAqC;EACvEC,IAAI,EAAE,2BAA2B;EACjCC,IAAI,EAAE,oCAAoC;EAC1CC,SAAS,EAAE;IACPD,IAAI,EAAE,SAAS;IACf,MAAME,QAAQA,CAAC;MAAEC,KAAK;MAAEF;IAAU,CAAC,EAAE;MACjC,MAAM;QAAEE,KAAK,EAAEC,QAAQ;QAAEL;MAAK,CAAC,GAAGE,SAAS,CAACI,QAAQ,IAAI,CAAC,CAAC;MAC1D,IAAI,OAAOD,QAAQ,KAAK,WAAW,EAAE;QACjC,OAAO,IAAI;MACf,CAAC,MAAM,IAAIL,IAAI,KAAK,MAAM,EAAE;QACxB,OAAOO,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,WAAWC,QAAQ,EAAE,CAAC,CACtCG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;MAC3B;MACA,OAAOH,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,WAAWC,QAAQ,EAAE,CAAC,CACtCG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;IAC3B;EACJ;AACJ,CAAC,CAAC;AAACC,OAAA,CAAAZ,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createDateLteValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createDateLteValidator = void 0;
7
+ var _validation = require("@webiny/validation");
8
+ const createDateLteValidator = () => ({
9
+ type: "cms-model-field-validator",
10
+ name: "cms-model-field-validator-date-lte",
11
+ validator: {
12
+ name: "dateLte",
13
+ async validate({
14
+ value,
15
+ validator
16
+ }) {
17
+ const {
18
+ value: lteValue,
19
+ type
20
+ } = validator.settings || {};
21
+ if (typeof lteValue === "undefined") {
22
+ return true;
23
+ } else if (type === "time") {
24
+ return _validation.validation.validate(value, `timeLte:${lteValue}`).then(v => v === true).catch(() => false);
25
+ }
26
+ return _validation.validation.validate(value, `dateLte:${lteValue}`).then(v => v === true).catch(() => false);
27
+ }
28
+ }
29
+ });
30
+ exports.createDateLteValidator = createDateLteValidator;
31
+
32
+ //# sourceMappingURL=dateLte.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_validation","require","createDateLteValidator","type","name","validator","validate","value","lteValue","settings","validation","then","v","catch","exports"],"sources":["dateLte.ts"],"sourcesContent":["import { validation } from \"@webiny/validation\";\nimport type { CmsModelFieldValidatorPlugin } from \"~/types\";\n\nexport const createDateLteValidator = (): CmsModelFieldValidatorPlugin => ({\n type: \"cms-model-field-validator\",\n name: \"cms-model-field-validator-date-lte\",\n validator: {\n name: \"dateLte\",\n async validate({ value, validator }) {\n const { value: lteValue, type } = validator.settings || {};\n if (typeof lteValue === \"undefined\") {\n return true;\n } else if (type === \"time\") {\n return validation\n .validate(value, `timeLte:${lteValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n return validation\n .validate(value, `dateLte:${lteValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n }\n});\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGO,MAAMC,sBAAsB,GAAGA,CAAA,MAAqC;EACvEC,IAAI,EAAE,2BAA2B;EACjCC,IAAI,EAAE,oCAAoC;EAC1CC,SAAS,EAAE;IACPD,IAAI,EAAE,SAAS;IACf,MAAME,QAAQA,CAAC;MAAEC,KAAK;MAAEF;IAAU,CAAC,EAAE;MACjC,MAAM;QAAEE,KAAK,EAAEC,QAAQ;QAAEL;MAAK,CAAC,GAAGE,SAAS,CAACI,QAAQ,IAAI,CAAC,CAAC;MAC1D,IAAI,OAAOD,QAAQ,KAAK,WAAW,EAAE;QACjC,OAAO,IAAI;MACf,CAAC,MAAM,IAAIL,IAAI,KAAK,MAAM,EAAE;QACxB,OAAOO,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,WAAWC,QAAQ,EAAE,CAAC,CACtCG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;MAC3B;MACA,OAAOH,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,WAAWC,QAAQ,EAAE,CAAC,CACtCG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;IAC3B;EACJ;AACJ,CAAC,CAAC;AAACC,OAAA,CAAAZ,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createGteValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createGteValidator = void 0;
7
+ var _validation = require("@webiny/validation");
8
+ const createGteValidator = () => {
9
+ return {
10
+ type: "cms-model-field-validator",
11
+ name: "cms-model-field-validator-gte",
12
+ validator: {
13
+ name: "gte",
14
+ validate({
15
+ value,
16
+ validator
17
+ }) {
18
+ const gteValue = validator.settings?.value;
19
+ if (typeof gteValue !== "undefined") {
20
+ return _validation.validation.validate(value, `gte:${gteValue}`).then(v => v === true).catch(() => false);
21
+ }
22
+ return Promise.resolve(true);
23
+ }
24
+ }
25
+ };
26
+ };
27
+ exports.createGteValidator = createGteValidator;
28
+
29
+ //# sourceMappingURL=gte.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_validation","require","createGteValidator","type","name","validator","validate","value","gteValue","settings","validation","then","v","catch","Promise","resolve","exports"],"sources":["gte.ts"],"sourcesContent":["import { validation } from \"@webiny/validation\";\nimport type { CmsModelFieldValidatorPlugin } from \"~/types\";\n\nexport const createGteValidator = (): CmsModelFieldValidatorPlugin => {\n return {\n type: \"cms-model-field-validator\",\n name: \"cms-model-field-validator-gte\",\n validator: {\n name: \"gte\",\n validate({ value, validator }) {\n const gteValue = validator.settings?.value;\n if (typeof gteValue !== \"undefined\") {\n return validation\n .validate(value, `gte:${gteValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n return Promise.resolve(true);\n }\n }\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGO,MAAMC,kBAAkB,GAAGA,CAAA,KAAoC;EAClE,OAAO;IACHC,IAAI,EAAE,2BAA2B;IACjCC,IAAI,EAAE,+BAA+B;IACrCC,SAAS,EAAE;MACPD,IAAI,EAAE,KAAK;MACXE,QAAQA,CAAC;QAAEC,KAAK;QAAEF;MAAU,CAAC,EAAE;QAC3B,MAAMG,QAAQ,GAAGH,SAAS,CAACI,QAAQ,EAAEF,KAAK;QAC1C,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;UACjC,OAAOE,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,OAAOC,QAAQ,EAAE,CAAC,CAClCG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC3B;QACA,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;MAChC;IACJ;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAd,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createInValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createInValidator = void 0;
7
+ var _validation = require("@webiny/validation");
8
+ const createInValidator = () => {
9
+ return {
10
+ type: "cms-model-field-validator",
11
+ name: "cms-model-field-validator-in",
12
+ validator: {
13
+ name: "in",
14
+ validate({
15
+ value,
16
+ validator
17
+ }) {
18
+ const values = validator.settings?.values;
19
+ if (Array.isArray(values)) {
20
+ return _validation.validation.validate(value, `in:${values.join(":")}`).then(v => v === true).catch(() => false);
21
+ }
22
+ return Promise.resolve(true);
23
+ }
24
+ }
25
+ };
26
+ };
27
+ exports.createInValidator = createInValidator;
28
+
29
+ //# sourceMappingURL=in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_validation","require","createInValidator","type","name","validator","validate","value","values","settings","Array","isArray","validation","join","then","v","catch","Promise","resolve","exports"],"sources":["in.ts"],"sourcesContent":["import { validation } from \"@webiny/validation\";\nimport type { CmsModelFieldValidatorPlugin } from \"~/types\";\n\nexport const createInValidator = (): CmsModelFieldValidatorPlugin => {\n return {\n type: \"cms-model-field-validator\",\n name: \"cms-model-field-validator-in\",\n validator: {\n name: \"in\",\n validate({ value, validator }) {\n const values = validator.settings?.values;\n if (Array.isArray(values)) {\n return validation\n .validate(value, `in:${values.join(\":\")}`)\n .then(v => v === true)\n .catch(() => false);\n }\n\n return Promise.resolve(true);\n }\n }\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGO,MAAMC,iBAAiB,GAAGA,CAAA,KAAoC;EACjE,OAAO;IACHC,IAAI,EAAE,2BAA2B;IACjCC,IAAI,EAAE,8BAA8B;IACpCC,SAAS,EAAE;MACPD,IAAI,EAAE,IAAI;MACVE,QAAQA,CAAC;QAAEC,KAAK;QAAEF;MAAU,CAAC,EAAE;QAC3B,MAAMG,MAAM,GAAGH,SAAS,CAACI,QAAQ,EAAED,MAAM;QACzC,IAAIE,KAAK,CAACC,OAAO,CAACH,MAAM,CAAC,EAAE;UACvB,OAAOI,sBAAU,CACZN,QAAQ,CAACC,KAAK,EAAE,MAAMC,MAAM,CAACK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CACzCC,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC3B;QAEA,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;MAChC;IACJ;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAjB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export declare const createValidators: () => (import("../types").CmsModelFieldValidatorPlugin | import("../types").CmsModelFieldPatternValidatorPlugin[])[];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createValidators = void 0;
7
+ var _gte = require("./gte");
8
+ var _in = require("./in");
9
+ var _lte = require("./lte");
10
+ var _maxLength = require("./maxLength");
11
+ var _minLength = require("./minLength");
12
+ var _pattern = require("./pattern");
13
+ var _required = require("./required");
14
+ var _patternPlugins = require("./patternPlugins");
15
+ var _dateLte = require("./dateLte");
16
+ var _dateGte = require("./dateGte");
17
+ var _timeLte = require("./timeLte");
18
+ var _timeGte = require("./timeGte");
19
+ var _unique = require("./unique");
20
+ const createValidators = () => [(0, _gte.createGteValidator)(), (0, _in.createInValidator)(), (0, _lte.createLteValidator)(), (0, _maxLength.createMaxLengthValidator)(), (0, _minLength.createMinLengthValidator)(), (0, _pattern.createPatternValidator)(), (0, _required.createRequiredValidator)(), (0, _patternPlugins.createPatternValidatorPlugins)(), (0, _dateLte.createDateLteValidator)(), (0, _dateGte.createDateGteValidator)(), (0, _timeLte.createTimeLteValidator)(), (0, _timeGte.createTimeGteValidator)(), (0, _unique.createUniqueValidator)()];
21
+ exports.createValidators = createValidators;
22
+
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_gte","require","_in","_lte","_maxLength","_minLength","_pattern","_required","_patternPlugins","_dateLte","_dateGte","_timeLte","_timeGte","_unique","createValidators","createGteValidator","createInValidator","createLteValidator","createMaxLengthValidator","createMinLengthValidator","createPatternValidator","createRequiredValidator","createPatternValidatorPlugins","createDateLteValidator","createDateGteValidator","createTimeLteValidator","createTimeGteValidator","createUniqueValidator","exports"],"sources":["index.ts"],"sourcesContent":["import { createGteValidator } from \"./gte\";\nimport { createInValidator } from \"./in\";\nimport { createLteValidator } from \"./lte\";\nimport { createMaxLengthValidator } from \"./maxLength\";\nimport { createMinLengthValidator } from \"./minLength\";\nimport { createPatternValidator } from \"./pattern\";\nimport { createRequiredValidator } from \"./required\";\nimport { createPatternValidatorPlugins } from \"./patternPlugins\";\nimport { createDateLteValidator } from \"./dateLte\";\nimport { createDateGteValidator } from \"./dateGte\";\nimport { createTimeLteValidator } from \"./timeLte\";\nimport { createTimeGteValidator } from \"./timeGte\";\nimport { createUniqueValidator } from \"./unique\";\n\nexport const createValidators = () => [\n createGteValidator(),\n createInValidator(),\n createLteValidator(),\n createMaxLengthValidator(),\n createMinLengthValidator(),\n createPatternValidator(),\n createRequiredValidator(),\n createPatternValidatorPlugins(),\n createDateLteValidator(),\n createDateGteValidator(),\n createTimeLteValidator(),\n createTimeGteValidator(),\n createUniqueValidator()\n];\n"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,QAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AAEO,MAAMa,gBAAgB,GAAGA,CAAA,KAAM,CAClC,IAAAC,uBAAkB,EAAC,CAAC,EACpB,IAAAC,qBAAiB,EAAC,CAAC,EACnB,IAAAC,uBAAkB,EAAC,CAAC,EACpB,IAAAC,mCAAwB,EAAC,CAAC,EAC1B,IAAAC,mCAAwB,EAAC,CAAC,EAC1B,IAAAC,+BAAsB,EAAC,CAAC,EACxB,IAAAC,iCAAuB,EAAC,CAAC,EACzB,IAAAC,6CAA6B,EAAC,CAAC,EAC/B,IAAAC,+BAAsB,EAAC,CAAC,EACxB,IAAAC,+BAAsB,EAAC,CAAC,EACxB,IAAAC,+BAAsB,EAAC,CAAC,EACxB,IAAAC,+BAAsB,EAAC,CAAC,EACxB,IAAAC,6BAAqB,EAAC,CAAC,CAC1B;AAACC,OAAA,CAAAd,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createLteValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createLteValidator = void 0;
7
+ var _validation = require("@webiny/validation");
8
+ const createLteValidator = () => {
9
+ return {
10
+ type: "cms-model-field-validator",
11
+ name: "cms-model-field-validator-lte",
12
+ validator: {
13
+ name: "lte",
14
+ validate({
15
+ value,
16
+ validator
17
+ }) {
18
+ const lteValue = validator.settings?.value;
19
+ if (typeof lteValue !== "undefined") {
20
+ return _validation.validation.validate(value, `lte:${lteValue}`).then(v => v === true).catch(() => false);
21
+ }
22
+ return Promise.resolve(true);
23
+ }
24
+ }
25
+ };
26
+ };
27
+ exports.createLteValidator = createLteValidator;
28
+
29
+ //# sourceMappingURL=lte.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_validation","require","createLteValidator","type","name","validator","validate","value","lteValue","settings","validation","then","v","catch","Promise","resolve","exports"],"sources":["lte.ts"],"sourcesContent":["import { validation } from \"@webiny/validation\";\nimport type { CmsModelFieldValidatorPlugin } from \"~/types\";\n\nexport const createLteValidator = (): CmsModelFieldValidatorPlugin => {\n return {\n type: \"cms-model-field-validator\",\n name: \"cms-model-field-validator-lte\",\n validator: {\n name: \"lte\",\n validate({ value, validator }) {\n const lteValue = validator.settings?.value;\n if (typeof lteValue !== \"undefined\") {\n return validation\n .validate(value, `lte:${lteValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n return Promise.resolve(true);\n }\n }\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGO,MAAMC,kBAAkB,GAAGA,CAAA,KAAoC;EAClE,OAAO;IACHC,IAAI,EAAE,2BAA2B;IACjCC,IAAI,EAAE,+BAA+B;IACrCC,SAAS,EAAE;MACPD,IAAI,EAAE,KAAK;MACXE,QAAQA,CAAC;QAAEC,KAAK;QAAEF;MAAU,CAAC,EAAE;QAC3B,MAAMG,QAAQ,GAAGH,SAAS,CAACI,QAAQ,EAAEF,KAAK;QAC1C,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;UACjC,OAAOE,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,OAAOC,QAAQ,EAAE,CAAC,CAClCG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC3B;QACA,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;MAChC;IACJ;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAd,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createMaxLengthValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createMaxLengthValidator = void 0;
7
+ var _validation = require("@webiny/validation");
8
+ const createMaxLengthValidator = () => {
9
+ return {
10
+ type: "cms-model-field-validator",
11
+ name: "cms-model-field-validator-max-length",
12
+ validator: {
13
+ name: "maxLength",
14
+ validate({
15
+ value,
16
+ validator
17
+ }) {
18
+ const maxLengthValue = validator.settings?.value;
19
+ if (typeof maxLengthValue !== "undefined") {
20
+ return _validation.validation.validate(value, `maxLength:${maxLengthValue}`).then(v => v === true).catch(() => false);
21
+ }
22
+ return Promise.resolve(true);
23
+ }
24
+ }
25
+ };
26
+ };
27
+ exports.createMaxLengthValidator = createMaxLengthValidator;
28
+
29
+ //# sourceMappingURL=maxLength.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_validation","require","createMaxLengthValidator","type","name","validator","validate","value","maxLengthValue","settings","validation","then","v","catch","Promise","resolve","exports"],"sources":["maxLength.ts"],"sourcesContent":["import { validation } from \"@webiny/validation\";\nimport type { CmsModelFieldValidatorPlugin } from \"~/types\";\n\nexport const createMaxLengthValidator = (): CmsModelFieldValidatorPlugin => {\n return {\n type: \"cms-model-field-validator\",\n name: \"cms-model-field-validator-max-length\",\n validator: {\n name: \"maxLength\",\n validate({ value, validator }) {\n const maxLengthValue = validator.settings?.value;\n if (typeof maxLengthValue !== \"undefined\") {\n return validation\n .validate(value, `maxLength:${maxLengthValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n\n return Promise.resolve(true);\n }\n }\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGO,MAAMC,wBAAwB,GAAGA,CAAA,KAAoC;EACxE,OAAO;IACHC,IAAI,EAAE,2BAA2B;IACjCC,IAAI,EAAE,sCAAsC;IAC5CC,SAAS,EAAE;MACPD,IAAI,EAAE,WAAW;MACjBE,QAAQA,CAAC;QAAEC,KAAK;QAAEF;MAAU,CAAC,EAAE;QAC3B,MAAMG,cAAc,GAAGH,SAAS,CAACI,QAAQ,EAAEF,KAAK;QAChD,IAAI,OAAOC,cAAc,KAAK,WAAW,EAAE;UACvC,OAAOE,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,aAAaC,cAAc,EAAE,CAAC,CAC9CG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC3B;QAEA,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;MAChC;IACJ;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAd,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createMinLengthValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createMinLengthValidator = void 0;
7
+ var _validation = require("@webiny/validation");
8
+ const createMinLengthValidator = () => {
9
+ return {
10
+ type: "cms-model-field-validator",
11
+ name: "cms-model-field-validator-min-length",
12
+ validator: {
13
+ name: "minLength",
14
+ validate({
15
+ value,
16
+ validator
17
+ }) {
18
+ const minLengthValue = validator.settings?.value;
19
+ if (typeof minLengthValue !== "undefined") {
20
+ return _validation.validation.validate(value, `minLength:${minLengthValue}`).then(v => v === true).catch(() => false);
21
+ }
22
+ return Promise.resolve(true);
23
+ }
24
+ }
25
+ };
26
+ };
27
+ exports.createMinLengthValidator = createMinLengthValidator;
28
+
29
+ //# sourceMappingURL=minLength.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_validation","require","createMinLengthValidator","type","name","validator","validate","value","minLengthValue","settings","validation","then","v","catch","Promise","resolve","exports"],"sources":["minLength.ts"],"sourcesContent":["import { validation } from \"@webiny/validation\";\nimport type { CmsModelFieldValidatorPlugin } from \"~/types\";\n\nexport const createMinLengthValidator = (): CmsModelFieldValidatorPlugin => {\n return {\n type: \"cms-model-field-validator\",\n name: \"cms-model-field-validator-min-length\",\n validator: {\n name: \"minLength\",\n validate({ value, validator }) {\n const minLengthValue = validator.settings?.value;\n if (typeof minLengthValue !== \"undefined\") {\n return validation\n .validate(value, `minLength:${minLengthValue}`)\n .then(v => v === true)\n .catch(() => false);\n }\n\n return Promise.resolve(true);\n }\n }\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAGO,MAAMC,wBAAwB,GAAGA,CAAA,KAAoC;EACxE,OAAO;IACHC,IAAI,EAAE,2BAA2B;IACjCC,IAAI,EAAE,sCAAsC;IAC5CC,SAAS,EAAE;MACPD,IAAI,EAAE,WAAW;MACjBE,QAAQA,CAAC;QAAEC,KAAK;QAAEF;MAAU,CAAC,EAAE;QAC3B,MAAMG,cAAc,GAAGH,SAAS,CAACI,QAAQ,EAAEF,KAAK;QAChD,IAAI,OAAOC,cAAc,KAAK,WAAW,EAAE;UACvC,OAAOE,sBAAU,CACZJ,QAAQ,CAACC,KAAK,EAAE,aAAaC,cAAc,EAAE,CAAC,CAC9CG,IAAI,CAACC,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CACrBC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC3B;QAEA,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;MAChC;IACJ;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAAd,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { CmsModelFieldValidatorPlugin } from "../types";
2
+ export declare const createPatternValidator: () => CmsModelFieldValidatorPlugin;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createPatternValidator = void 0;
7
+ const createPatternValidator = () => {
8
+ return {
9
+ type: "cms-model-field-validator",
10
+ name: "cms-model-field-validator-pattern",
11
+ validator: {
12
+ name: "pattern",
13
+ async validate({
14
+ value,
15
+ validator,
16
+ context
17
+ }) {
18
+ if (!value) {
19
+ return true;
20
+ }
21
+ const {
22
+ settings
23
+ } = validator;
24
+ let pattern;
25
+ if (settings?.preset === "custom") {
26
+ pattern = settings;
27
+ } else {
28
+ const patternPlugin = context.plugins.byType("cms-model-field-validator-pattern").find(item => item.pattern.name === settings?.preset);
29
+ if (patternPlugin) {
30
+ pattern = patternPlugin.pattern;
31
+ }
32
+ }
33
+ if (!pattern) {
34
+ return true;
35
+ }
36
+ return new RegExp(pattern.regex, pattern.flags).test(value);
37
+ }
38
+ }
39
+ };
40
+ };
41
+ exports.createPatternValidator = createPatternValidator;
42
+
43
+ //# sourceMappingURL=pattern.js.map