@webiny/api-headless-cms 0.0.0-unstable.2af142b57e → 0.0.0-unstable.3bc8100a7f

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 (975) 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 +1 -1
  5. package/context.js +122 -52
  6. package/context.js.map +1 -1
  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 +6 -2
  65. package/crud/contentEntry/afterDelete.js +18 -2
  66. package/crud/contentEntry/afterDelete.js.map +1 -1
  67. package/crud/contentEntry/beforeCreate.d.ts +2 -2
  68. package/crud/contentEntry/beforeCreate.js +3 -1
  69. package/crud/contentEntry/beforeCreate.js.map +1 -1
  70. package/crud/contentEntry/beforeUpdate.d.ts +2 -2
  71. package/crud/contentEntry/beforeUpdate.js +3 -1
  72. package/crud/contentEntry/beforeUpdate.js.map +1 -1
  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 +5 -3
  101. package/crud/contentEntry/entryDataValidation.js +223 -45
  102. package/crud/contentEntry/entryDataValidation.js.map +1 -1
  103. package/crud/contentEntry/markLockedFields.d.ts +1 -1
  104. package/crud/contentEntry/markLockedFields.js +20 -10
  105. package/crud/contentEntry/markLockedFields.js.map +1 -1
  106. package/crud/contentEntry/referenceFieldsMapping.d.ts +7 -1
  107. package/crud/contentEntry/referenceFieldsMapping.js +143 -91
  108. package/crud/contentEntry/referenceFieldsMapping.js.map +1 -1
  109. package/crud/contentEntry/searchableFields.d.ts +2 -2
  110. package/crud/contentEntry/searchableFields.js +5 -4
  111. package/crud/contentEntry/searchableFields.js.map +1 -1
  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 +7 -0
  143. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIds.js +17 -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 +11 -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 +7 -0
  155. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIds.js +17 -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 +11 -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 +7 -0
  167. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryId.js +17 -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 +13 -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 +7 -0
  179. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryId.js +17 -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 +9 -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 +7 -0
  188. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIds.js +17 -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 +11 -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 +7 -0
  200. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryId.js +17 -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 +9 -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 +7 -0
  209. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionById.js +17 -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 +9 -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 +7 -0
  218. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryId.js +17 -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 +11 -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 +7 -0
  236. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperation.js +17 -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 +24 -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 +7 -0
  272. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperation.js +17 -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 +23 -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 +9 -7
  290. package/crud/contentEntry.crud.js +1045 -998
  291. package/crud/contentEntry.crud.js.map +1 -1
  292. package/crud/contentModel/beforeCreate.d.ts +2 -2
  293. package/crud/contentModel/beforeCreate.js +50 -85
  294. package/crud/contentModel/beforeCreate.js.map +1 -1
  295. package/crud/contentModel/beforeDelete.d.ts +3 -5
  296. package/crud/contentModel/beforeDelete.js +52 -20
  297. package/crud/contentModel/beforeDelete.js.map +1 -1
  298. package/crud/contentModel/beforeUpdate.d.ts +2 -2
  299. package/crud/contentModel/beforeUpdate.js +31 -6
  300. package/crud/contentModel/beforeUpdate.js.map +1 -1
  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 -2
  305. package/crud/contentModel/contentModelManagerFactory.js +3 -1
  306. package/crud/contentModel/contentModelManagerFactory.js.map +1 -1
  307. package/crud/contentModel/createFieldStorageId.d.ts +1 -1
  308. package/crud/contentModel/createFieldStorageId.js +3 -1
  309. package/crud/contentModel/createFieldStorageId.js.map +1 -1
  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 +2 -1
  347. package/crud/contentModel/validateModel.js +3 -1
  348. package/crud/contentModel/validateModel.js.map +1 -1
  349. package/crud/contentModel/validateModelFields.d.ts +2 -1
  350. package/crud/contentModel/validateModelFields.js +27 -64
  351. package/crud/contentModel/validateModelFields.js.map +1 -1
  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 +611 -195
  356. package/crud/contentModel/validation.js +130 -22
  357. package/crud/contentModel/validation.js.map +1 -1
  358. package/crud/contentModel.crud.d.ts +6 -4
  359. package/crud/contentModel.crud.js +480 -415
  360. package/crud/contentModel.crud.js.map +1 -1
  361. package/crud/contentModelGroup/beforeCreate.d.ts +3 -3
  362. package/crud/contentModelGroup/beforeCreate.js +15 -1
  363. package/crud/contentModelGroup/beforeCreate.js.map +1 -1
  364. package/crud/contentModelGroup/beforeDelete.d.ts +3 -3
  365. package/crud/contentModelGroup/beforeDelete.js +3 -1
  366. package/crud/contentModelGroup/beforeDelete.js.map +1 -1
  367. package/crud/contentModelGroup/beforeUpdate.d.ts +3 -3
  368. package/crud/contentModelGroup/beforeUpdate.js +3 -1
  369. package/crud/contentModelGroup/beforeUpdate.js.map +1 -1
  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 +10 -7
  374. package/crud/contentModelGroup/validation.js +5 -2
  375. package/crud/contentModelGroup/validation.js.map +1 -1
  376. package/crud/contentModelGroup.crud.d.ts +6 -4
  377. package/crud/contentModelGroup.crud.js +261 -228
  378. package/crud/contentModelGroup.crud.js.map +1 -1
  379. package/crud/system.crud.d.ts +4 -4
  380. package/crud/system.crud.js +18 -71
  381. package/crud/system.crud.js.map +1 -1
  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 +5 -3
  422. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js +4 -7
  423. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js.map +1 -1
  424. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.d.ts +3 -2
  425. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +28 -73
  426. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js.map +1 -1
  427. package/fieldConverters/CmsModelObjectFieldConverterPlugin.d.ts +3 -2
  428. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js +49 -40
  429. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js.map +1 -1
  430. package/fieldConverters/index.d.ts +3 -0
  431. package/fieldConverters/index.js +7 -1
  432. package/fieldConverters/index.js.map +1 -1
  433. package/graphql/buildSchemaPlugins.d.ts +3 -3
  434. package/graphql/buildSchemaPlugins.js +7 -1
  435. package/graphql/buildSchemaPlugins.js.map +1 -1
  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 +2 -3
  440. package/graphql/createExecutableSchema.js +17 -8
  441. package/graphql/createExecutableSchema.js.map +1 -1
  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 +2 -2
  449. package/graphql/generateSchema.js +9 -2
  450. package/graphql/generateSchema.js.map +1 -1
  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 +2 -2
  461. package/graphql/graphQLHandlerFactory.js +9 -146
  462. package/graphql/graphQLHandlerFactory.js.map +1 -1
  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 -3
  467. package/graphql/index.js +4 -2
  468. package/graphql/index.js.map +1 -1
  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 +3 -3
  476. package/graphql/schema/baseContentSchema.js +10 -21
  477. package/graphql/schema/baseContentSchema.js.map +1 -1
  478. package/graphql/schema/baseSchema.d.ts +2 -3
  479. package/graphql/schema/baseSchema.js +103 -3
  480. package/graphql/schema/baseSchema.js.map +1 -1
  481. package/graphql/schema/contentEntries.d.ts +3 -3
  482. package/graphql/schema/contentEntries.js +135 -61
  483. package/graphql/schema/contentEntries.js.map +1 -1
  484. package/graphql/schema/contentModelGroups.d.ts +3 -3
  485. package/graphql/schema/contentModelGroups.js +13 -10
  486. package/graphql/schema/contentModelGroups.js.map +1 -1
  487. package/graphql/schema/contentModels.d.ts +4 -5
  488. package/graphql/schema/contentModels.js +54 -19
  489. package/graphql/schema/contentModels.js.map +1 -1
  490. package/graphql/schema/createFieldResolvers.d.ts +2 -2
  491. package/graphql/schema/createFieldResolvers.js +18 -24
  492. package/graphql/schema/createFieldResolvers.js.map +1 -1
  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 +1 -2
  497. package/graphql/schema/createManageResolvers.js +63 -55
  498. package/graphql/schema/createManageResolvers.js.map +1 -1
  499. package/graphql/schema/createManageSDL.d.ts +3 -2
  500. package/graphql/schema/createManageSDL.js +125 -69
  501. package/graphql/schema/createManageSDL.js.map +1 -1
  502. package/graphql/schema/createPreviewResolvers.d.ts +1 -2
  503. package/graphql/schema/createPreviewResolvers.js +14 -20
  504. package/graphql/schema/createPreviewResolvers.js.map +1 -1
  505. package/graphql/schema/createReadResolvers.d.ts +1 -2
  506. package/graphql/schema/createReadResolvers.js +15 -21
  507. package/graphql/schema/createReadResolvers.js.map +1 -1
  508. package/graphql/schema/createReadSDL.d.ts +3 -2
  509. package/graphql/schema/createReadSDL.js +50 -38
  510. package/graphql/schema/createReadSDL.js.map +1 -1
  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 +3 -2
  521. package/graphql/schema/resolvers/manage/resolveCreate.js +4 -2
  522. package/graphql/schema/resolvers/manage/resolveCreate.js.map +1 -1
  523. package/graphql/schema/resolvers/manage/resolveCreateFrom.d.ts +3 -2
  524. package/graphql/schema/resolvers/manage/resolveCreateFrom.js +4 -2
  525. package/graphql/schema/resolvers/manage/resolveCreateFrom.js.map +1 -1
  526. package/graphql/schema/resolvers/manage/resolveDelete.d.ts +3 -2
  527. package/graphql/schema/resolvers/manage/resolveDelete.js +17 -4
  528. package/graphql/schema/resolvers/manage/resolveDelete.js.map +1 -1
  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 +2 -2
  533. package/graphql/schema/resolvers/manage/resolveGet.js +12 -5
  534. package/graphql/schema/resolvers/manage/resolveGet.js.map +1 -1
  535. package/graphql/schema/resolvers/manage/resolveGetByIds.d.ts +2 -2
  536. package/graphql/schema/resolvers/manage/resolveGetByIds.js +3 -1
  537. package/graphql/schema/resolvers/manage/resolveGetByIds.js.map +1 -1
  538. package/graphql/schema/resolvers/manage/resolveGetRevisions.d.ts +2 -2
  539. package/graphql/schema/resolvers/manage/resolveGetRevisions.js +3 -1
  540. package/graphql/schema/resolvers/manage/resolveGetRevisions.js.map +1 -1
  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 +2 -2
  545. package/graphql/schema/resolvers/manage/resolveList.js +3 -1
  546. package/graphql/schema/resolvers/manage/resolveList.js.map +1 -1
  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 +2 -2
  554. package/graphql/schema/resolvers/manage/resolvePublish.js +3 -1
  555. package/graphql/schema/resolvers/manage/resolvePublish.js.map +1 -1
  556. package/graphql/schema/resolvers/manage/resolveRepublish.d.ts +2 -2
  557. package/graphql/schema/resolvers/manage/resolveRepublish.js +3 -1
  558. package/graphql/schema/resolvers/manage/resolveRepublish.js.map +1 -1
  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 +2 -2
  563. package/graphql/schema/resolvers/manage/resolveUnpublish.js +3 -1
  564. package/graphql/schema/resolvers/manage/resolveUnpublish.js.map +1 -1
  565. package/graphql/schema/resolvers/manage/resolveUpdate.d.ts +3 -2
  566. package/graphql/schema/resolvers/manage/resolveUpdate.js +4 -2
  567. package/graphql/schema/resolvers/manage/resolveUpdate.js.map +1 -1
  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 +2 -2
  572. package/graphql/schema/resolvers/preview/resolveGet.js +6 -5
  573. package/graphql/schema/resolvers/preview/resolveGet.js.map +1 -1
  574. package/graphql/schema/resolvers/preview/resolveList.d.ts +2 -2
  575. package/graphql/schema/resolvers/preview/resolveList.js +3 -1
  576. package/graphql/schema/resolvers/preview/resolveList.js.map +1 -1
  577. package/graphql/schema/resolvers/read/resolveGet.d.ts +2 -2
  578. package/graphql/schema/resolvers/read/resolveGet.js +6 -5
  579. package/graphql/schema/resolvers/read/resolveGet.js.map +1 -1
  580. package/graphql/schema/resolvers/read/resolveList.d.ts +2 -2
  581. package/graphql/schema/resolvers/read/resolveList.js +3 -1
  582. package/graphql/schema/resolvers/read/resolveList.js.map +1 -1
  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 +3 -3
  590. package/graphql/schema/schemaPlugins.js +39 -25
  591. package/graphql/schema/schemaPlugins.js.map +1 -1
  592. package/graphql/system.d.ts +3 -6
  593. package/graphql/system.js +6 -29
  594. package/graphql/system.js.map +1 -1
  595. package/graphqlFields/boolean.d.ts +1 -1
  596. package/graphqlFields/boolean.js +3 -1
  597. package/graphqlFields/boolean.js.map +1 -1
  598. package/graphqlFields/datetime.d.ts +1 -1
  599. package/graphqlFields/datetime.js +5 -5
  600. package/graphqlFields/datetime.js.map +1 -1
  601. package/graphqlFields/dynamicZone/dynamicZoneField.d.ts +1 -1
  602. package/graphqlFields/dynamicZone/dynamicZoneField.js +142 -30
  603. package/graphqlFields/dynamicZone/dynamicZoneField.js.map +1 -1
  604. package/graphqlFields/dynamicZone/index.d.ts +0 -1
  605. package/graphqlFields/dynamicZone/index.js +2 -7
  606. package/graphqlFields/dynamicZone/index.js.map +1 -1
  607. package/graphqlFields/file.d.ts +1 -1
  608. package/graphqlFields/file.js +3 -1
  609. package/graphqlFields/file.js.map +1 -1
  610. package/graphqlFields/helpers.d.ts +1 -2
  611. package/graphqlFields/helpers.js +6 -18
  612. package/graphqlFields/helpers.js.map +1 -1
  613. package/graphqlFields/index.d.ts +1 -1
  614. package/graphqlFields/index.js +6 -2
  615. package/graphqlFields/index.js.map +1 -1
  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 +1 -1
  620. package/graphqlFields/longText.js +14 -3
  621. package/graphqlFields/longText.js.map +1 -1
  622. package/graphqlFields/number.d.ts +1 -1
  623. package/graphqlFields/number.js +4 -1
  624. package/graphqlFields/number.js.map +1 -1
  625. package/graphqlFields/object.d.ts +2 -2
  626. package/graphqlFields/object.js +47 -34
  627. package/graphqlFields/object.js.map +1 -1
  628. package/graphqlFields/ref.d.ts +1 -1
  629. package/graphqlFields/ref.js +69 -29
  630. package/graphqlFields/ref.js.map +1 -1
  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 +1 -1
  638. package/graphqlFields/richText.js +11 -3
  639. package/graphqlFields/richText.js.map +1 -1
  640. package/graphqlFields/searchableJson.d.ts +2 -0
  641. package/graphqlFields/searchableJson.js +55 -0
  642. package/graphqlFields/searchableJson.js.map +1 -0
  643. package/graphqlFields/text.d.ts +1 -1
  644. package/graphqlFields/text.js +5 -1
  645. package/graphqlFields/text.js.map +1 -1
  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 +15 -6
  653. package/index.js +106 -8
  654. package/index.js.map +1 -1
  655. package/modelManager/DefaultCmsModelManager.d.ts +11 -10
  656. package/modelManager/DefaultCmsModelManager.js +19 -18
  657. package/modelManager/DefaultCmsModelManager.js.map +1 -1
  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 +2 -1
  662. package/modelManager/index.js +19 -2
  663. package/modelManager/index.js.map +1 -1
  664. package/package.json +40 -45
  665. package/parameters/context.js +4 -2
  666. package/parameters/context.js.map +1 -1
  667. package/parameters/header.js +7 -6
  668. package/parameters/header.js.map +1 -1
  669. package/parameters/index.js +3 -1
  670. package/parameters/index.js.map +1 -1
  671. package/parameters/manual.d.ts +2 -1
  672. package/parameters/manual.js +9 -4
  673. package/parameters/manual.js.map +1 -1
  674. package/parameters/path.js +4 -3
  675. package/parameters/path.js.map +1 -1
  676. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.d.ts +9 -0
  677. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js +17 -0
  678. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js.map +1 -0
  679. package/plugins/CmsGraphQLSchemaPlugin/index.d.ts +1 -0
  680. package/plugins/CmsGraphQLSchemaPlugin/index.js +18 -0
  681. package/plugins/CmsGraphQLSchemaPlugin/index.js.map +1 -0
  682. package/plugins/CmsGraphQLSchemaSorterPlugin.d.ts +1 -1
  683. package/plugins/CmsGraphQLSchemaSorterPlugin.js +4 -5
  684. package/plugins/CmsGraphQLSchemaSorterPlugin.js.map +1 -1
  685. package/plugins/CmsGroupPlugin.d.ts +15 -4
  686. package/plugins/CmsGroupPlugin.js +25 -7
  687. package/plugins/CmsGroupPlugin.js.map +1 -1
  688. package/plugins/CmsModelFieldConverterPlugin.d.ts +5 -2
  689. package/plugins/CmsModelFieldConverterPlugin.js +9 -4
  690. package/plugins/CmsModelFieldConverterPlugin.js.map +1 -1
  691. package/plugins/CmsModelPlugin.d.ts +47 -7
  692. package/plugins/CmsModelPlugin.js +169 -32
  693. package/plugins/CmsModelPlugin.js.map +1 -1
  694. package/plugins/CmsParametersPlugin.d.ts +3 -3
  695. package/plugins/CmsParametersPlugin.js +7 -4
  696. package/plugins/CmsParametersPlugin.js.map +1 -1
  697. package/plugins/CmsRichTextRendererPlugin.d.ts +24 -0
  698. package/plugins/CmsRichTextRendererPlugin.js +28 -0
  699. package/plugins/CmsRichTextRendererPlugin.js.map +1 -0
  700. package/plugins/StorageOperationsCmsModelPlugin.d.ts +23 -0
  701. package/plugins/StorageOperationsCmsModelPlugin.js +41 -0
  702. package/plugins/StorageOperationsCmsModelPlugin.js.map +1 -0
  703. package/plugins/StorageTransformPlugin.d.ts +7 -3
  704. package/plugins/StorageTransformPlugin.js +12 -5
  705. package/plugins/StorageTransformPlugin.js.map +1 -1
  706. package/plugins/index.d.ts +2 -0
  707. package/plugins/index.js +25 -1
  708. package/plugins/index.js.map +1 -1
  709. package/storage/date.d.ts +3 -0
  710. package/storage/date.js +119 -0
  711. package/storage/date.js.map +1 -0
  712. package/storage/default.js +3 -1
  713. package/storage/default.js.map +1 -1
  714. package/storage/dynamicZone.d.ts +2 -0
  715. package/storage/dynamicZone.js +157 -0
  716. package/storage/dynamicZone.js.map +1 -0
  717. package/storage/index.d.ts +1 -0
  718. package/storage/index.js +21 -0
  719. package/storage/index.js.map +1 -0
  720. package/storage/json.d.ts +2 -0
  721. package/storage/json.js +56 -0
  722. package/storage/json.js.map +1 -0
  723. package/storage/object.js +24 -20
  724. package/storage/object.js.map +1 -1
  725. package/types/context.d.ts +146 -0
  726. package/types/context.js +7 -0
  727. package/types/context.js.map +1 -0
  728. package/types/fields/dynamicZoneField.d.ts +23 -0
  729. package/types/fields/dynamicZoneField.js +7 -0
  730. package/types/fields/dynamicZoneField.js.map +1 -0
  731. package/types/fields/objectField.d.ts +13 -0
  732. package/types/fields/objectField.js +7 -0
  733. package/types/fields/objectField.js.map +1 -0
  734. package/types/identity.d.ts +19 -0
  735. package/types/identity.js +7 -0
  736. package/types/identity.js.map +1 -0
  737. package/types/index.d.ts +10 -0
  738. package/types/index.js +117 -0
  739. package/types/index.js.map +1 -0
  740. package/types/model.d.ts +199 -0
  741. package/types/model.js +7 -0
  742. package/types/model.js.map +1 -0
  743. package/types/modelAst.d.ts +39 -0
  744. package/types/modelAst.js +7 -0
  745. package/types/modelAst.js.map +1 -0
  746. package/types/modelField.d.ts +330 -0
  747. package/types/modelField.js +7 -0
  748. package/types/modelField.js.map +1 -0
  749. package/types/modelGroup.d.ts +77 -0
  750. package/types/modelGroup.js +7 -0
  751. package/types/modelGroup.js.map +1 -0
  752. package/types/plugins.d.ts +365 -0
  753. package/types/plugins.js +7 -0
  754. package/types/plugins.js.map +1 -0
  755. package/types/types.d.ts +1897 -0
  756. package/{types.js → types/types.js} +33 -134
  757. package/types/types.js.map +1 -0
  758. package/utils/RichTextRenderer.d.ts +10 -0
  759. package/utils/RichTextRenderer.js +33 -0
  760. package/utils/RichTextRenderer.js.map +1 -0
  761. package/utils/caching/Cache.d.ts +5 -0
  762. package/utils/caching/Cache.js +48 -0
  763. package/utils/caching/Cache.js.map +1 -0
  764. package/utils/caching/CacheKey.d.ts +3 -0
  765. package/utils/caching/CacheKey.js +28 -0
  766. package/utils/caching/CacheKey.js.map +1 -0
  767. package/utils/caching/index.d.ts +2 -0
  768. package/utils/caching/index.js +29 -0
  769. package/utils/caching/index.js.map +1 -0
  770. package/utils/caching/types.d.ts +13 -0
  771. package/utils/caching/types.js +14 -0
  772. package/utils/caching/types.js.map +1 -0
  773. package/utils/contentEntryTraverser/ContentEntryTraverser.d.ts +13 -0
  774. package/utils/contentEntryTraverser/ContentEntryTraverser.js +97 -0
  775. package/utils/contentEntryTraverser/ContentEntryTraverser.js.map +1 -0
  776. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.d.ts +6 -0
  777. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.js +23 -0
  778. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.js.map +1 -0
  779. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.d.ts +7 -0
  780. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.js +22 -0
  781. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.js.map +1 -0
  782. package/utils/contentModelAst/CmsModelToAstConverter.d.ts +11 -0
  783. package/utils/contentModelAst/CmsModelToAstConverter.js +28 -0
  784. package/utils/contentModelAst/CmsModelToAstConverter.js.map +1 -0
  785. package/utils/contentModelAst/index.d.ts +3 -0
  786. package/utils/contentModelAst/index.js +40 -0
  787. package/utils/contentModelAst/index.js.map +1 -0
  788. package/utils/converters/Converter.d.ts +3 -3
  789. package/utils/converters/Converter.js +4 -5
  790. package/utils/converters/Converter.js.map +1 -1
  791. package/utils/converters/ConverterCollection.d.ts +2 -2
  792. package/utils/converters/ConverterCollection.js +13 -7
  793. package/utils/converters/ConverterCollection.js.map +1 -1
  794. package/utils/converters/valueKeyStorageConverter.d.ts +4 -8
  795. package/utils/converters/valueKeyStorageConverter.js +34 -21
  796. package/utils/converters/valueKeyStorageConverter.js.map +1 -1
  797. package/utils/createModelField.d.ts +7 -0
  798. package/utils/createModelField.js +51 -0
  799. package/utils/createModelField.js.map +1 -0
  800. package/utils/createTypeFromFields.d.ts +2 -1
  801. package/utils/createTypeFromFields.js +14 -7
  802. package/utils/createTypeFromFields.js.map +1 -1
  803. package/utils/createTypeName.d.ts +0 -2
  804. package/utils/createTypeName.js +3 -9
  805. package/utils/createTypeName.js.map +1 -1
  806. package/utils/date.d.ts +10 -0
  807. package/utils/date.js +36 -0
  808. package/utils/date.js.map +1 -0
  809. package/utils/entryStorage.d.ts +9 -4
  810. package/utils/entryStorage.js +8 -5
  811. package/utils/entryStorage.js.map +1 -1
  812. package/utils/filterAsync.js +9 -8
  813. package/utils/filterAsync.js.map +1 -1
  814. package/utils/getBaseFieldType.d.ts +2 -4
  815. package/utils/getBaseFieldType.js +3 -1
  816. package/utils/getBaseFieldType.js.map +1 -1
  817. package/utils/getEntryDescription.d.ts +2 -0
  818. package/utils/getEntryDescription.js +19 -0
  819. package/utils/getEntryDescription.js.map +1 -0
  820. package/utils/getEntryImage.d.ts +2 -0
  821. package/utils/getEntryImage.js +19 -0
  822. package/utils/getEntryImage.js.map +1 -0
  823. package/utils/getEntryTitle.d.ts +2 -2
  824. package/utils/getEntryTitle.js +3 -1
  825. package/utils/getEntryTitle.js.map +1 -1
  826. package/utils/getSchemaFromFieldPlugins.d.ts +14 -3
  827. package/utils/getSchemaFromFieldPlugins.js +25 -6
  828. package/utils/getSchemaFromFieldPlugins.js.map +1 -1
  829. package/utils/identity.d.ts +2 -0
  830. package/utils/identity.js +20 -0
  831. package/utils/identity.js.map +1 -0
  832. package/utils/incrementEntryIdVersion.d.ts +5 -0
  833. package/utils/incrementEntryIdVersion.js +31 -0
  834. package/utils/incrementEntryIdVersion.js.map +1 -0
  835. package/utils/index.d.ts +2 -0
  836. package/utils/index.js +29 -0
  837. package/utils/index.js.map +1 -0
  838. package/utils/isHeadlessCmsReady.d.ts +2 -0
  839. package/utils/isHeadlessCmsReady.js +23 -0
  840. package/utils/isHeadlessCmsReady.js.map +1 -0
  841. package/utils/modelFieldTraverser/ModelFieldTraverser.d.ts +16 -0
  842. package/utils/modelFieldTraverser/ModelFieldTraverser.js +41 -0
  843. package/utils/modelFieldTraverser/ModelFieldTraverser.js.map +1 -0
  844. package/utils/modelFieldTraverser/index.d.ts +1 -0
  845. package/utils/modelFieldTraverser/index.js +18 -0
  846. package/utils/modelFieldTraverser/index.js.map +1 -0
  847. package/utils/renderFields.d.ts +5 -3
  848. package/utils/renderFields.js +15 -3
  849. package/utils/renderFields.js.map +1 -1
  850. package/utils/renderGetFilterFields.d.ts +2 -2
  851. package/utils/renderGetFilterFields.js +9 -21
  852. package/utils/renderGetFilterFields.js.map +1 -1
  853. package/utils/renderInputFields.d.ts +5 -3
  854. package/utils/renderInputFields.js +20 -6
  855. package/utils/renderInputFields.js.map +1 -1
  856. package/utils/renderListFilterFields.d.ts +3 -1
  857. package/utils/renderListFilterFields.js +25 -22
  858. package/utils/renderListFilterFields.js.map +1 -1
  859. package/utils/renderSortEnum.d.ts +4 -3
  860. package/utils/renderSortEnum.js +10 -3
  861. package/utils/renderSortEnum.js.map +1 -1
  862. package/utils/toSlug.js +3 -1
  863. package/utils/toSlug.js.map +1 -1
  864. package/validators/dateGte.d.ts +1 -1
  865. package/validators/dateGte.js +3 -1
  866. package/validators/dateGte.js.map +1 -1
  867. package/validators/dateLte.d.ts +1 -1
  868. package/validators/dateLte.js +3 -1
  869. package/validators/dateLte.js.map +1 -1
  870. package/validators/gte.d.ts +1 -1
  871. package/validators/gte.js +4 -3
  872. package/validators/gte.js.map +1 -1
  873. package/validators/in.d.ts +1 -1
  874. package/validators/in.js +4 -3
  875. package/validators/in.js.map +1 -1
  876. package/validators/index.js +4 -3
  877. package/validators/index.js.map +1 -1
  878. package/validators/lte.d.ts +1 -1
  879. package/validators/lte.js +4 -3
  880. package/validators/lte.js.map +1 -1
  881. package/validators/maxLength.d.ts +1 -1
  882. package/validators/maxLength.js +4 -3
  883. package/validators/maxLength.js.map +1 -1
  884. package/validators/minLength.d.ts +1 -1
  885. package/validators/minLength.js +4 -3
  886. package/validators/minLength.js.map +1 -1
  887. package/validators/pattern.d.ts +1 -1
  888. package/validators/pattern.js +5 -3
  889. package/validators/pattern.js.map +1 -1
  890. package/validators/patternPlugins/email.d.ts +1 -1
  891. package/validators/patternPlugins/email.js +4 -2
  892. package/validators/patternPlugins/email.js.map +1 -1
  893. package/validators/patternPlugins/index.d.ts +1 -1
  894. package/validators/patternPlugins/index.js +3 -1
  895. package/validators/patternPlugins/index.js.map +1 -1
  896. package/validators/patternPlugins/lowerCase.d.ts +1 -1
  897. package/validators/patternPlugins/lowerCase.js +3 -1
  898. package/validators/patternPlugins/lowerCase.js.map +1 -1
  899. package/validators/patternPlugins/lowerCaseSpace.d.ts +1 -1
  900. package/validators/patternPlugins/lowerCaseSpace.js +3 -1
  901. package/validators/patternPlugins/lowerCaseSpace.js.map +1 -1
  902. package/validators/patternPlugins/upperCase.d.ts +1 -1
  903. package/validators/patternPlugins/upperCase.js +3 -1
  904. package/validators/patternPlugins/upperCase.js.map +1 -1
  905. package/validators/patternPlugins/upperCaseSpace.d.ts +1 -1
  906. package/validators/patternPlugins/upperCaseSpace.js +3 -1
  907. package/validators/patternPlugins/upperCaseSpace.js.map +1 -1
  908. package/validators/patternPlugins/url.d.ts +1 -1
  909. package/validators/patternPlugins/url.js +3 -1
  910. package/validators/patternPlugins/url.js.map +1 -1
  911. package/validators/required.d.ts +1 -1
  912. package/validators/required.js +3 -1
  913. package/validators/required.js.map +1 -1
  914. package/validators/timeGte.d.ts +1 -1
  915. package/validators/timeGte.js +4 -3
  916. package/validators/timeGte.js.map +1 -1
  917. package/validators/timeLte.d.ts +1 -1
  918. package/validators/timeLte.js +4 -3
  919. package/validators/timeLte.js.map +1 -1
  920. package/validators/unique.d.ts +1 -1
  921. package/validators/unique.js +4 -2
  922. package/validators/unique.js.map +1 -1
  923. package/crud/contentModel/afterCreate.d.ts +0 -8
  924. package/crud/contentModel/afterCreate.js +0 -16
  925. package/crud/contentModel/afterCreate.js.map +0 -1
  926. package/crud/contentModel/afterCreateFrom.d.ts +0 -8
  927. package/crud/contentModel/afterCreateFrom.js +0 -16
  928. package/crud/contentModel/afterCreateFrom.js.map +0 -1
  929. package/crud/contentModel/afterDelete.d.ts +0 -8
  930. package/crud/contentModel/afterDelete.js +0 -16
  931. package/crud/contentModel/afterDelete.js.map +0 -1
  932. package/crud/contentModel/afterUpdate.d.ts +0 -8
  933. package/crud/contentModel/afterUpdate.js +0 -16
  934. package/crud/contentModel/afterUpdate.js.map +0 -1
  935. package/crud/contentModel/systemFields.d.ts +0 -1
  936. package/crud/contentModel/systemFields.js +0 -8
  937. package/crud/contentModel/systemFields.js.map +0 -1
  938. package/crud/contentModel/validateLayout.d.ts +0 -2
  939. package/crud/contentModel/validateLayout.js +0 -28
  940. package/crud/contentModel/validateLayout.js.map +0 -1
  941. package/crud/settings.crud.d.ts +0 -10
  942. package/crud/settings.crud.js +0 -71
  943. package/crud/settings.crud.js.map +0 -1
  944. package/graphql/schema/resolvers/commonFieldResolvers.d.ts +0 -6
  945. package/graphql/schema/resolvers/commonFieldResolvers.js +0 -12
  946. package/graphql/schema/resolvers/commonFieldResolvers.js.map +0 -1
  947. package/graphqlFields/dynamicZone/dynamicZoneStorage.d.ts +0 -3
  948. package/graphqlFields/dynamicZone/dynamicZoneStorage.js +0 -63
  949. package/graphqlFields/dynamicZone/dynamicZoneStorage.js.map +0 -1
  950. package/plugins/CmsGraphQLSchemaPlugin.d.ts +0 -5
  951. package/plugins/CmsGraphQLSchemaPlugin.js +0 -12
  952. package/plugins/CmsGraphQLSchemaPlugin.js.map +0 -1
  953. package/types.d.ts +0 -2641
  954. package/types.js.map +0 -1
  955. package/upgrades/5.33.0/index.d.ts +0 -3
  956. package/upgrades/5.33.0/index.js +0 -159
  957. package/upgrades/5.33.0/index.js.map +0 -1
  958. package/upgrades/index.d.ts +0 -1
  959. package/upgrades/index.js +0 -9
  960. package/upgrades/index.js.map +0 -1
  961. package/utils/access.d.ts +0 -8
  962. package/utils/access.js +0 -76
  963. package/utils/access.js.map +0 -1
  964. package/utils/ownership.d.ts +0 -8
  965. package/utils/ownership.js +0 -33
  966. package/utils/ownership.js.map +0 -1
  967. package/utils/permissions.d.ts +0 -7
  968. package/utils/permissions.js +0 -91
  969. package/utils/permissions.js.map +0 -1
  970. package/utils/pluralizedTypeName.d.ts +0 -1
  971. package/utils/pluralizedTypeName.js +0 -20
  972. package/utils/pluralizedTypeName.js.map +0 -1
  973. package/validators/dynamicZone.d.ts +0 -2
  974. package/validators/dynamicZone.js +0 -20
  975. package/validators/dynamicZone.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetLatestEntriesByIdsNotDeleted","constructor","getLatestEntriesByIds","execute","model","params","entries","filter","entry","wbyDeleted","exports"],"sources":["GetLatestEntriesByIdsNotDeleted.ts"],"sourcesContent":["import type { IGetLatestEntriesByIds } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetLatestByIdsParams, CmsModel } from \"~/types\";\n\nexport class GetLatestEntriesByIdsNotDeleted implements IGetLatestEntriesByIds {\n private getLatestEntriesByIds: IGetLatestEntriesByIds;\n\n constructor(getLatestEntriesByIds: IGetLatestEntriesByIds) {\n this.getLatestEntriesByIds = getLatestEntriesByIds;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestByIdsParams) {\n const entries = await this.getLatestEntriesByIds.execute(model, params);\n return entries.filter(entry => !entry.wbyDeleted);\n }\n}\n"],"mappings":";;;;;;AAGO,MAAMA,+BAA+B,CAAmC;EAG3EC,WAAWA,CAACC,qBAA6C,EAAE;IACvD,IAAI,CAACA,qBAAqB,GAAGA,qBAAqB;EACtD;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAqD,EAAE;IAClF,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACJ,qBAAqB,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IACvE,OAAOC,OAAO,CAACC,MAAM,CAACC,KAAK,IAAI,CAACA,KAAK,CAACC,UAAU,CAAC;EACrD;AACJ;AAACC,OAAA,CAAAV,+BAAA,GAAAA,+BAAA","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import type { AccessControl } from "../../../AccessControl/AccessControl";
2
+ import type { IGetLatestEntriesByIds } from "../../abstractions";
3
+ import type { CmsEntryStorageOperationsGetLatestByIdsParams, CmsModel } from "../../../../types";
4
+ export declare class GetLatestEntriesByIdsSecure implements IGetLatestEntriesByIds {
5
+ private accessControl;
6
+ private getLatestEntriesByIds;
7
+ constructor(accessControl: AccessControl, getLatestEntriesByIds: IGetLatestEntriesByIds);
8
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestByIdsParams): Promise<import("../../../../types").CmsStorageEntry[]>;
9
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetLatestEntriesByIdsSecure = void 0;
7
+ var _filterAsync = require("../../../../utils/filterAsync");
8
+ class GetLatestEntriesByIdsSecure {
9
+ constructor(accessControl, getLatestEntriesByIds) {
10
+ this.accessControl = accessControl;
11
+ this.getLatestEntriesByIds = getLatestEntriesByIds;
12
+ }
13
+ async execute(model, params) {
14
+ await this.accessControl.ensureCanAccessEntry({
15
+ model
16
+ });
17
+ const entries = await this.getLatestEntriesByIds.execute(model, params);
18
+ return (0, _filterAsync.filterAsync)(entries, async entry => {
19
+ return this.accessControl.canAccessEntry({
20
+ model,
21
+ entry
22
+ });
23
+ });
24
+ }
25
+ }
26
+ exports.GetLatestEntriesByIdsSecure = GetLatestEntriesByIdsSecure;
27
+
28
+ //# sourceMappingURL=GetLatestEntriesByIdsSecure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_filterAsync","require","GetLatestEntriesByIdsSecure","constructor","accessControl","getLatestEntriesByIds","execute","model","params","ensureCanAccessEntry","entries","filterAsync","entry","canAccessEntry","exports"],"sources":["GetLatestEntriesByIdsSecure.ts"],"sourcesContent":["import type { AccessControl } from \"~/crud/AccessControl/AccessControl\";\nimport { filterAsync } from \"~/utils/filterAsync\";\nimport type { IGetLatestEntriesByIds } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetLatestByIdsParams, CmsModel } from \"~/types\";\n\nexport class GetLatestEntriesByIdsSecure implements IGetLatestEntriesByIds {\n private accessControl: AccessControl;\n private getLatestEntriesByIds: IGetLatestEntriesByIds;\n\n constructor(accessControl: AccessControl, getLatestEntriesByIds: IGetLatestEntriesByIds) {\n this.accessControl = accessControl;\n this.getLatestEntriesByIds = getLatestEntriesByIds;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestByIdsParams) {\n await this.accessControl.ensureCanAccessEntry({ model });\n\n const entries = await this.getLatestEntriesByIds.execute(model, params);\n\n return filterAsync(entries, async entry => {\n return this.accessControl.canAccessEntry({ model, entry });\n });\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAIO,MAAMC,2BAA2B,CAAmC;EAIvEC,WAAWA,CAACC,aAA4B,EAAEC,qBAA6C,EAAE;IACrF,IAAI,CAACD,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACC,qBAAqB,GAAGA,qBAAqB;EACtD;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAqD,EAAE;IAClF,MAAM,IAAI,CAACJ,aAAa,CAACK,oBAAoB,CAAC;MAAEF;IAAM,CAAC,CAAC;IAExD,MAAMG,OAAO,GAAG,MAAM,IAAI,CAACL,qBAAqB,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAEvE,OAAO,IAAAG,wBAAW,EAACD,OAAO,EAAE,MAAME,KAAK,IAAI;MACvC,OAAO,IAAI,CAACR,aAAa,CAACS,cAAc,CAAC;QAAEN,KAAK;QAAEK;MAAM,CAAC,CAAC;IAC9D,CAAC,CAAC;EACN;AACJ;AAACE,OAAA,CAAAZ,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import { GetLatestEntriesByIdsNotDeleted } from "./GetLatestEntriesByIdsNotDeleted";
2
+ import type { CmsEntryStorageOperations } from "../../../../types";
3
+ import type { AccessControl } from "../../../AccessControl/AccessControl";
4
+ interface GetLatestEntriesByIdsUseCasesParams {
5
+ operation: CmsEntryStorageOperations["getLatestByIds"];
6
+ accessControl: AccessControl;
7
+ }
8
+ export declare const getLatestEntriesByIdsUseCases: (params: GetLatestEntriesByIdsUseCasesParams) => {
9
+ getLatestEntriesByIdsUseCase: GetLatestEntriesByIdsNotDeleted;
10
+ };
11
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getLatestEntriesByIdsUseCases = void 0;
7
+ var _GetLatestEntriesByIds = require("./GetLatestEntriesByIds");
8
+ var _GetLatestEntriesByIdsNotDeleted = require("./GetLatestEntriesByIdsNotDeleted");
9
+ var _GetLatestEntriesByIdsSecure = require("./GetLatestEntriesByIdsSecure");
10
+ const getLatestEntriesByIdsUseCases = params => {
11
+ const getLatestEntriesByIds = new _GetLatestEntriesByIds.GetLatestEntriesByIds(params.operation);
12
+ const getLatestEntriesByIdsSecure = new _GetLatestEntriesByIdsSecure.GetLatestEntriesByIdsSecure(params.accessControl, getLatestEntriesByIds);
13
+ const getLatestEntriesByIdsNotDeleted = new _GetLatestEntriesByIdsNotDeleted.GetLatestEntriesByIdsNotDeleted(getLatestEntriesByIdsSecure);
14
+ return {
15
+ getLatestEntriesByIdsUseCase: getLatestEntriesByIdsNotDeleted
16
+ };
17
+ };
18
+ exports.getLatestEntriesByIdsUseCases = getLatestEntriesByIdsUseCases;
19
+
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_GetLatestEntriesByIds","require","_GetLatestEntriesByIdsNotDeleted","_GetLatestEntriesByIdsSecure","getLatestEntriesByIdsUseCases","params","getLatestEntriesByIds","GetLatestEntriesByIds","operation","getLatestEntriesByIdsSecure","GetLatestEntriesByIdsSecure","accessControl","getLatestEntriesByIdsNotDeleted","GetLatestEntriesByIdsNotDeleted","getLatestEntriesByIdsUseCase","exports"],"sources":["index.ts"],"sourcesContent":["import { GetLatestEntriesByIds } from \"./GetLatestEntriesByIds\";\nimport { GetLatestEntriesByIdsNotDeleted } from \"./GetLatestEntriesByIdsNotDeleted\";\nimport { GetLatestEntriesByIdsSecure } from \"./GetLatestEntriesByIdsSecure\";\nimport type { CmsEntryStorageOperations } from \"~/types\";\nimport type { AccessControl } from \"~/crud/AccessControl/AccessControl\";\n\ninterface GetLatestEntriesByIdsUseCasesParams {\n operation: CmsEntryStorageOperations[\"getLatestByIds\"];\n accessControl: AccessControl;\n}\n\nexport const getLatestEntriesByIdsUseCases = (params: GetLatestEntriesByIdsUseCasesParams) => {\n const getLatestEntriesByIds = new GetLatestEntriesByIds(params.operation);\n const getLatestEntriesByIdsSecure = new GetLatestEntriesByIdsSecure(\n params.accessControl,\n getLatestEntriesByIds\n );\n const getLatestEntriesByIdsNotDeleted = new GetLatestEntriesByIdsNotDeleted(\n getLatestEntriesByIdsSecure\n );\n\n return {\n getLatestEntriesByIdsUseCase: getLatestEntriesByIdsNotDeleted\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAD,OAAA;AACA,IAAAE,4BAAA,GAAAF,OAAA;AASO,MAAMG,6BAA6B,GAAIC,MAA2C,IAAK;EAC1F,MAAMC,qBAAqB,GAAG,IAAIC,4CAAqB,CAACF,MAAM,CAACG,SAAS,CAAC;EACzE,MAAMC,2BAA2B,GAAG,IAAIC,wDAA2B,CAC/DL,MAAM,CAACM,aAAa,EACpBL,qBACJ,CAAC;EACD,MAAMM,+BAA+B,GAAG,IAAIC,gEAA+B,CACvEJ,2BACJ,CAAC;EAED,OAAO;IACHK,4BAA4B,EAAEF;EAClC,CAAC;AACL,CAAC;AAACG,OAAA,CAAAX,6BAAA,GAAAA,6BAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetLatestRevisionByEntryId } from "../../abstractions";
2
+ import type { CmsEntryStorageOperations, CmsEntryStorageOperationsGetLatestRevisionParams, CmsModel } from "../../../../types";
3
+ export declare class GetLatestRevisionByEntryId implements IGetLatestRevisionByEntryId {
4
+ private operation;
5
+ constructor(operation: CmsEntryStorageOperations["getLatestRevisionByEntryId"]);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestRevisionParams): Promise<import("../../../../types").CmsStorageEntry | null>;
7
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetLatestRevisionByEntryId = void 0;
7
+ class GetLatestRevisionByEntryId {
8
+ constructor(operation) {
9
+ this.operation = operation;
10
+ }
11
+ async execute(model, params) {
12
+ return await this.operation(model, params);
13
+ }
14
+ }
15
+ exports.GetLatestRevisionByEntryId = GetLatestRevisionByEntryId;
16
+
17
+ //# sourceMappingURL=GetLatestRevisionByEntryId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetLatestRevisionByEntryId","constructor","operation","execute","model","params","exports"],"sources":["GetLatestRevisionByEntryId.ts"],"sourcesContent":["import type { IGetLatestRevisionByEntryId } from \"../../abstractions\";\nimport type {\n CmsEntryStorageOperations,\n CmsEntryStorageOperationsGetLatestRevisionParams,\n CmsModel\n} from \"~/types\";\n\nexport class GetLatestRevisionByEntryId implements IGetLatestRevisionByEntryId {\n private operation: CmsEntryStorageOperations[\"getLatestRevisionByEntryId\"];\n\n constructor(operation: CmsEntryStorageOperations[\"getLatestRevisionByEntryId\"]) {\n this.operation = operation;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestRevisionParams) {\n return await this.operation(model, params);\n }\n}\n"],"mappings":";;;;;;AAOO,MAAMA,0BAA0B,CAAwC;EAG3EC,WAAWA,CAACC,SAAkE,EAAE;IAC5E,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC9B;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAwD,EAAE;IACrF,OAAO,MAAM,IAAI,CAACH,SAAS,CAACE,KAAK,EAAEC,MAAM,CAAC;EAC9C;AACJ;AAACC,OAAA,CAAAN,0BAAA,GAAAA,0BAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetLatestRevisionByEntryId } from "../../abstractions";
2
+ import type { CmsEntryStorageOperationsGetLatestRevisionParams, CmsModel } from "../../../../types";
3
+ export declare class GetLatestRevisionByEntryIdDeleted implements IGetLatestRevisionByEntryId {
4
+ private getLatestRevisionByEntryId;
5
+ constructor(getLatestRevisionByEntryId: IGetLatestRevisionByEntryId);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestRevisionParams): Promise<import("../../../../types").CmsStorageEntry | null>;
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetLatestRevisionByEntryIdDeleted = void 0;
7
+ class GetLatestRevisionByEntryIdDeleted {
8
+ constructor(getLatestRevisionByEntryId) {
9
+ this.getLatestRevisionByEntryId = getLatestRevisionByEntryId;
10
+ }
11
+ async execute(model, params) {
12
+ const entry = await this.getLatestRevisionByEntryId.execute(model, params);
13
+ if (!entry || !entry.wbyDeleted) {
14
+ return null;
15
+ }
16
+ return entry;
17
+ }
18
+ }
19
+ exports.GetLatestRevisionByEntryIdDeleted = GetLatestRevisionByEntryIdDeleted;
20
+
21
+ //# sourceMappingURL=GetLatestRevisionByEntryIdDeleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetLatestRevisionByEntryIdDeleted","constructor","getLatestRevisionByEntryId","execute","model","params","entry","wbyDeleted","exports"],"sources":["GetLatestRevisionByEntryIdDeleted.ts"],"sourcesContent":["import type { IGetLatestRevisionByEntryId } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetLatestRevisionParams, CmsModel } from \"~/types\";\n\nexport class GetLatestRevisionByEntryIdDeleted implements IGetLatestRevisionByEntryId {\n private getLatestRevisionByEntryId: IGetLatestRevisionByEntryId;\n\n constructor(getLatestRevisionByEntryId: IGetLatestRevisionByEntryId) {\n this.getLatestRevisionByEntryId = getLatestRevisionByEntryId;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestRevisionParams) {\n const entry = await this.getLatestRevisionByEntryId.execute(model, params);\n\n if (!entry || !entry.wbyDeleted) {\n return null;\n }\n\n return entry;\n }\n}\n"],"mappings":";;;;;;AAGO,MAAMA,iCAAiC,CAAwC;EAGlFC,WAAWA,CAACC,0BAAuD,EAAE;IACjE,IAAI,CAACA,0BAA0B,GAAGA,0BAA0B;EAChE;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAwD,EAAE;IACrF,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACJ,0BAA0B,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAE1E,IAAI,CAACC,KAAK,IAAI,CAACA,KAAK,CAACC,UAAU,EAAE;MAC7B,OAAO,IAAI;IACf;IAEA,OAAOD,KAAK;EAChB;AACJ;AAACE,OAAA,CAAAR,iCAAA,GAAAA,iCAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetLatestRevisionByEntryId } from "../../abstractions";
2
+ import type { CmsEntryStorageOperationsGetLatestRevisionParams, CmsModel } from "../../../../types";
3
+ export declare class GetLatestRevisionByEntryIdNotDeleted implements IGetLatestRevisionByEntryId {
4
+ private getLatestRevisionByEntryId;
5
+ constructor(getLatestRevisionByEntryId: IGetLatestRevisionByEntryId);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestRevisionParams): Promise<import("../../../../types").CmsStorageEntry | null>;
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetLatestRevisionByEntryIdNotDeleted = void 0;
7
+ class GetLatestRevisionByEntryIdNotDeleted {
8
+ constructor(getLatestRevisionByEntryId) {
9
+ this.getLatestRevisionByEntryId = getLatestRevisionByEntryId;
10
+ }
11
+ async execute(model, params) {
12
+ const entry = await this.getLatestRevisionByEntryId.execute(model, params);
13
+ if (!entry || entry.wbyDeleted) {
14
+ return null;
15
+ }
16
+ return entry;
17
+ }
18
+ }
19
+ exports.GetLatestRevisionByEntryIdNotDeleted = GetLatestRevisionByEntryIdNotDeleted;
20
+
21
+ //# sourceMappingURL=GetLatestRevisionByEntryIdNotDeleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetLatestRevisionByEntryIdNotDeleted","constructor","getLatestRevisionByEntryId","execute","model","params","entry","wbyDeleted","exports"],"sources":["GetLatestRevisionByEntryIdNotDeleted.ts"],"sourcesContent":["import type { IGetLatestRevisionByEntryId } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetLatestRevisionParams, CmsModel } from \"~/types\";\n\nexport class GetLatestRevisionByEntryIdNotDeleted implements IGetLatestRevisionByEntryId {\n private getLatestRevisionByEntryId: IGetLatestRevisionByEntryId;\n\n constructor(getLatestRevisionByEntryId: IGetLatestRevisionByEntryId) {\n this.getLatestRevisionByEntryId = getLatestRevisionByEntryId;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestRevisionParams) {\n const entry = await this.getLatestRevisionByEntryId.execute(model, params);\n\n if (!entry || entry.wbyDeleted) {\n return null;\n }\n\n return entry;\n }\n}\n"],"mappings":";;;;;;AAGO,MAAMA,oCAAoC,CAAwC;EAGrFC,WAAWA,CAACC,0BAAuD,EAAE;IACjE,IAAI,CAACA,0BAA0B,GAAGA,0BAA0B;EAChE;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAwD,EAAE;IACrF,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACJ,0BAA0B,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAE1E,IAAI,CAACC,KAAK,IAAIA,KAAK,CAACC,UAAU,EAAE;MAC5B,OAAO,IAAI;IACf;IAEA,OAAOD,KAAK;EAChB;AACJ;AAACE,OAAA,CAAAR,oCAAA,GAAAA,oCAAA","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ import { GetLatestRevisionByEntryId } from "./GetLatestRevisionByEntryId";
2
+ import { GetLatestRevisionByEntryIdDeleted } from "./GetLatestRevisionByEntryIdDeleted";
3
+ import { GetLatestRevisionByEntryIdNotDeleted } from "./GetLatestRevisionByEntryIdNotDeleted";
4
+ import type { CmsEntryStorageOperations } from "../../../../types";
5
+ interface GetLatestRevisionByEntryIdUseCasesParams {
6
+ operation: CmsEntryStorageOperations["getLatestRevisionByEntryId"];
7
+ }
8
+ export declare const getLatestRevisionByEntryIdUseCases: (params: GetLatestRevisionByEntryIdUseCasesParams) => {
9
+ getLatestRevisionByEntryIdUseCase: GetLatestRevisionByEntryIdNotDeleted;
10
+ getLatestRevisionByEntryIdWithDeletedUseCase: GetLatestRevisionByEntryId;
11
+ getLatestRevisionByEntryIdDeletedUseCase: GetLatestRevisionByEntryIdDeleted;
12
+ };
13
+ export {};
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getLatestRevisionByEntryIdUseCases = void 0;
7
+ var _GetLatestRevisionByEntryId = require("./GetLatestRevisionByEntryId");
8
+ var _GetLatestRevisionByEntryIdDeleted = require("./GetLatestRevisionByEntryIdDeleted");
9
+ var _GetLatestRevisionByEntryIdNotDeleted = require("./GetLatestRevisionByEntryIdNotDeleted");
10
+ const getLatestRevisionByEntryIdUseCases = params => {
11
+ const getLatestRevisionByEntryId = new _GetLatestRevisionByEntryId.GetLatestRevisionByEntryId(params.operation);
12
+ const getLatestRevisionByEntryIdNotDeleted = new _GetLatestRevisionByEntryIdNotDeleted.GetLatestRevisionByEntryIdNotDeleted(getLatestRevisionByEntryId);
13
+ const getLatestRevisionByEntryIdDeleted = new _GetLatestRevisionByEntryIdDeleted.GetLatestRevisionByEntryIdDeleted(getLatestRevisionByEntryId);
14
+ return {
15
+ getLatestRevisionByEntryIdUseCase: getLatestRevisionByEntryIdNotDeleted,
16
+ getLatestRevisionByEntryIdWithDeletedUseCase: getLatestRevisionByEntryId,
17
+ getLatestRevisionByEntryIdDeletedUseCase: getLatestRevisionByEntryIdDeleted
18
+ };
19
+ };
20
+ exports.getLatestRevisionByEntryIdUseCases = getLatestRevisionByEntryIdUseCases;
21
+
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_GetLatestRevisionByEntryId","require","_GetLatestRevisionByEntryIdDeleted","_GetLatestRevisionByEntryIdNotDeleted","getLatestRevisionByEntryIdUseCases","params","getLatestRevisionByEntryId","GetLatestRevisionByEntryId","operation","getLatestRevisionByEntryIdNotDeleted","GetLatestRevisionByEntryIdNotDeleted","getLatestRevisionByEntryIdDeleted","GetLatestRevisionByEntryIdDeleted","getLatestRevisionByEntryIdUseCase","getLatestRevisionByEntryIdWithDeletedUseCase","getLatestRevisionByEntryIdDeletedUseCase","exports"],"sources":["index.ts"],"sourcesContent":["import { GetLatestRevisionByEntryId } from \"./GetLatestRevisionByEntryId\";\nimport { GetLatestRevisionByEntryIdDeleted } from \"./GetLatestRevisionByEntryIdDeleted\";\nimport { GetLatestRevisionByEntryIdNotDeleted } from \"./GetLatestRevisionByEntryIdNotDeleted\";\nimport type { CmsEntryStorageOperations } from \"~/types\";\n\ninterface GetLatestRevisionByEntryIdUseCasesParams {\n operation: CmsEntryStorageOperations[\"getLatestRevisionByEntryId\"];\n}\n\nexport const getLatestRevisionByEntryIdUseCases = (\n params: GetLatestRevisionByEntryIdUseCasesParams\n) => {\n const getLatestRevisionByEntryId = new GetLatestRevisionByEntryId(params.operation);\n const getLatestRevisionByEntryIdNotDeleted = new GetLatestRevisionByEntryIdNotDeleted(\n getLatestRevisionByEntryId\n );\n const getLatestRevisionByEntryIdDeleted = new GetLatestRevisionByEntryIdDeleted(\n getLatestRevisionByEntryId\n );\n\n return {\n getLatestRevisionByEntryIdUseCase: getLatestRevisionByEntryIdNotDeleted,\n getLatestRevisionByEntryIdWithDeletedUseCase: getLatestRevisionByEntryId,\n getLatestRevisionByEntryIdDeletedUseCase: getLatestRevisionByEntryIdDeleted\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,2BAAA,GAAAC,OAAA;AACA,IAAAC,kCAAA,GAAAD,OAAA;AACA,IAAAE,qCAAA,GAAAF,OAAA;AAOO,MAAMG,kCAAkC,GAC3CC,MAAgD,IAC/C;EACD,MAAMC,0BAA0B,GAAG,IAAIC,sDAA0B,CAACF,MAAM,CAACG,SAAS,CAAC;EACnF,MAAMC,oCAAoC,GAAG,IAAIC,0EAAoC,CACjFJ,0BACJ,CAAC;EACD,MAAMK,iCAAiC,GAAG,IAAIC,oEAAiC,CAC3EN,0BACJ,CAAC;EAED,OAAO;IACHO,iCAAiC,EAAEJ,oCAAoC;IACvEK,4CAA4C,EAAER,0BAA0B;IACxES,wCAAwC,EAAEJ;EAC9C,CAAC;AACL,CAAC;AAACK,OAAA,CAAAZ,kCAAA,GAAAA,kCAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetPreviousRevisionByEntryId } from "../../abstractions";
2
+ import type { CmsEntryStorageOperations, CmsEntryStorageOperationsGetPreviousRevisionParams, CmsModel } from "../../../../types";
3
+ export declare class GetPreviousRevisionByEntryId implements IGetPreviousRevisionByEntryId {
4
+ private operation;
5
+ constructor(operation: CmsEntryStorageOperations["getPreviousRevision"]);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetPreviousRevisionParams): Promise<import("../../../../types").CmsStorageEntry | null>;
7
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetPreviousRevisionByEntryId = void 0;
7
+ class GetPreviousRevisionByEntryId {
8
+ constructor(operation) {
9
+ this.operation = operation;
10
+ }
11
+ async execute(model, params) {
12
+ return await this.operation(model, params);
13
+ }
14
+ }
15
+ exports.GetPreviousRevisionByEntryId = GetPreviousRevisionByEntryId;
16
+
17
+ //# sourceMappingURL=GetPreviousRevisionByEntryId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetPreviousRevisionByEntryId","constructor","operation","execute","model","params","exports"],"sources":["GetPreviousRevisionByEntryId.ts"],"sourcesContent":["import type { IGetPreviousRevisionByEntryId } from \"../../abstractions\";\nimport type {\n CmsEntryStorageOperations,\n CmsEntryStorageOperationsGetPreviousRevisionParams,\n CmsModel\n} from \"~/types\";\n\nexport class GetPreviousRevisionByEntryId implements IGetPreviousRevisionByEntryId {\n private operation: CmsEntryStorageOperations[\"getPreviousRevision\"];\n\n constructor(operation: CmsEntryStorageOperations[\"getPreviousRevision\"]) {\n this.operation = operation;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetPreviousRevisionParams) {\n return await this.operation(model, params);\n }\n}\n"],"mappings":";;;;;;AAOO,MAAMA,4BAA4B,CAA0C;EAG/EC,WAAWA,CAACC,SAA2D,EAAE;IACrE,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC9B;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAA0D,EAAE;IACvF,OAAO,MAAM,IAAI,CAACH,SAAS,CAACE,KAAK,EAAEC,MAAM,CAAC;EAC9C;AACJ;AAACC,OAAA,CAAAN,4BAAA,GAAAA,4BAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetPreviousRevisionByEntryId } from "../../abstractions";
2
+ import type { CmsEntryStorageOperationsGetPreviousRevisionParams, CmsModel } from "../../../../types";
3
+ export declare class GetPreviousRevisionByEntryIdNotDeleted implements IGetPreviousRevisionByEntryId {
4
+ private getPreviousRevisionByEntryId;
5
+ constructor(getPreviousRevisionByEntryId: IGetPreviousRevisionByEntryId);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetPreviousRevisionParams): Promise<import("../../../../types").CmsStorageEntry | null>;
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetPreviousRevisionByEntryIdNotDeleted = void 0;
7
+ class GetPreviousRevisionByEntryIdNotDeleted {
8
+ constructor(getPreviousRevisionByEntryId) {
9
+ this.getPreviousRevisionByEntryId = getPreviousRevisionByEntryId;
10
+ }
11
+ async execute(model, params) {
12
+ const entry = await this.getPreviousRevisionByEntryId.execute(model, params);
13
+ if (!entry || entry.wbyDeleted) {
14
+ return null;
15
+ }
16
+ return entry;
17
+ }
18
+ }
19
+ exports.GetPreviousRevisionByEntryIdNotDeleted = GetPreviousRevisionByEntryIdNotDeleted;
20
+
21
+ //# sourceMappingURL=GetPreviousRevisionByEntryIdNotDeleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetPreviousRevisionByEntryIdNotDeleted","constructor","getPreviousRevisionByEntryId","execute","model","params","entry","wbyDeleted","exports"],"sources":["GetPreviousRevisionByEntryIdNotDeleted.ts"],"sourcesContent":["import type { IGetPreviousRevisionByEntryId } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetPreviousRevisionParams, CmsModel } from \"~/types\";\n\nexport class GetPreviousRevisionByEntryIdNotDeleted implements IGetPreviousRevisionByEntryId {\n private getPreviousRevisionByEntryId: IGetPreviousRevisionByEntryId;\n\n constructor(getPreviousRevisionByEntryId: IGetPreviousRevisionByEntryId) {\n this.getPreviousRevisionByEntryId = getPreviousRevisionByEntryId;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetPreviousRevisionParams) {\n const entry = await this.getPreviousRevisionByEntryId.execute(model, params);\n\n if (!entry || entry.wbyDeleted) {\n return null;\n }\n\n return entry;\n }\n}\n"],"mappings":";;;;;;AAGO,MAAMA,sCAAsC,CAA0C;EAGzFC,WAAWA,CAACC,4BAA2D,EAAE;IACrE,IAAI,CAACA,4BAA4B,GAAGA,4BAA4B;EACpE;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAA0D,EAAE;IACvF,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACJ,4BAA4B,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAE5E,IAAI,CAACC,KAAK,IAAIA,KAAK,CAACC,UAAU,EAAE;MAC5B,OAAO,IAAI;IACf;IAEA,OAAOD,KAAK;EAChB;AACJ;AAACE,OAAA,CAAAR,sCAAA,GAAAA,sCAAA","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import { GetPreviousRevisionByEntryIdNotDeleted } from "./GetPreviousRevisionByEntryIdNotDeleted";
2
+ import type { CmsEntryStorageOperations } from "../../../../types";
3
+ interface GetPreviousRevisionByEntryIdUseCasesParams {
4
+ operation: CmsEntryStorageOperations["getPreviousRevision"];
5
+ }
6
+ export declare const getPreviousRevisionByEntryIdUseCases: (params: GetPreviousRevisionByEntryIdUseCasesParams) => {
7
+ getPreviousRevisionByEntryIdUseCase: GetPreviousRevisionByEntryIdNotDeleted;
8
+ };
9
+ export {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getPreviousRevisionByEntryIdUseCases = void 0;
7
+ var _GetPreviousRevisionByEntryId = require("./GetPreviousRevisionByEntryId");
8
+ var _GetPreviousRevisionByEntryIdNotDeleted = require("./GetPreviousRevisionByEntryIdNotDeleted");
9
+ const getPreviousRevisionByEntryIdUseCases = params => {
10
+ const getPreviousRevisionByEntryId = new _GetPreviousRevisionByEntryId.GetPreviousRevisionByEntryId(params.operation);
11
+ const getPreviousRevisionByEntryIdNotDeleted = new _GetPreviousRevisionByEntryIdNotDeleted.GetPreviousRevisionByEntryIdNotDeleted(getPreviousRevisionByEntryId);
12
+ return {
13
+ getPreviousRevisionByEntryIdUseCase: getPreviousRevisionByEntryIdNotDeleted
14
+ };
15
+ };
16
+ exports.getPreviousRevisionByEntryIdUseCases = getPreviousRevisionByEntryIdUseCases;
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_GetPreviousRevisionByEntryId","require","_GetPreviousRevisionByEntryIdNotDeleted","getPreviousRevisionByEntryIdUseCases","params","getPreviousRevisionByEntryId","GetPreviousRevisionByEntryId","operation","getPreviousRevisionByEntryIdNotDeleted","GetPreviousRevisionByEntryIdNotDeleted","getPreviousRevisionByEntryIdUseCase","exports"],"sources":["index.ts"],"sourcesContent":["import { GetPreviousRevisionByEntryId } from \"./GetPreviousRevisionByEntryId\";\nimport { GetPreviousRevisionByEntryIdNotDeleted } from \"./GetPreviousRevisionByEntryIdNotDeleted\";\nimport type { CmsEntryStorageOperations } from \"~/types\";\n\ninterface GetPreviousRevisionByEntryIdUseCasesParams {\n operation: CmsEntryStorageOperations[\"getPreviousRevision\"];\n}\n\nexport const getPreviousRevisionByEntryIdUseCases = (\n params: GetPreviousRevisionByEntryIdUseCasesParams\n) => {\n const getPreviousRevisionByEntryId = new GetPreviousRevisionByEntryId(params.operation);\n const getPreviousRevisionByEntryIdNotDeleted = new GetPreviousRevisionByEntryIdNotDeleted(\n getPreviousRevisionByEntryId\n );\n\n return {\n getPreviousRevisionByEntryIdUseCase: getPreviousRevisionByEntryIdNotDeleted\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,6BAAA,GAAAC,OAAA;AACA,IAAAC,uCAAA,GAAAD,OAAA;AAOO,MAAME,oCAAoC,GAC7CC,MAAkD,IACjD;EACD,MAAMC,4BAA4B,GAAG,IAAIC,0DAA4B,CAACF,MAAM,CAACG,SAAS,CAAC;EACvF,MAAMC,sCAAsC,GAAG,IAAIC,8EAAsC,CACrFJ,4BACJ,CAAC;EAED,OAAO;IACHK,mCAAmC,EAAEF;EACzC,CAAC;AACL,CAAC;AAACG,OAAA,CAAAR,oCAAA,GAAAA,oCAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetPublishedEntriesByIds } from "../../abstractions";
2
+ import type { CmsEntryStorageOperations, CmsEntryStorageOperationsGetPublishedByIdsParams, CmsModel } from "../../../../types";
3
+ export declare class GetPublishedEntriesByIds implements IGetPublishedEntriesByIds {
4
+ private operation;
5
+ constructor(operation: CmsEntryStorageOperations["getPublishedByIds"]);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedByIdsParams): Promise<import("../../../../types").CmsStorageEntry[]>;
7
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetPublishedEntriesByIds = void 0;
7
+ class GetPublishedEntriesByIds {
8
+ constructor(operation) {
9
+ this.operation = operation;
10
+ }
11
+ async execute(model, params) {
12
+ return await this.operation(model, params);
13
+ }
14
+ }
15
+ exports.GetPublishedEntriesByIds = GetPublishedEntriesByIds;
16
+
17
+ //# sourceMappingURL=GetPublishedEntriesByIds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetPublishedEntriesByIds","constructor","operation","execute","model","params","exports"],"sources":["GetPublishedEntriesByIds.ts"],"sourcesContent":["import type { IGetPublishedEntriesByIds } from \"../../abstractions\";\nimport type {\n CmsEntryStorageOperations,\n CmsEntryStorageOperationsGetPublishedByIdsParams,\n CmsModel\n} from \"~/types\";\n\nexport class GetPublishedEntriesByIds implements IGetPublishedEntriesByIds {\n private operation: CmsEntryStorageOperations[\"getPublishedByIds\"];\n\n constructor(operation: CmsEntryStorageOperations[\"getPublishedByIds\"]) {\n this.operation = operation;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedByIdsParams) {\n return await this.operation(model, params);\n }\n}\n"],"mappings":";;;;;;AAOO,MAAMA,wBAAwB,CAAsC;EAGvEC,WAAWA,CAACC,SAAyD,EAAE;IACnE,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC9B;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAwD,EAAE;IACrF,OAAO,MAAM,IAAI,CAACH,SAAS,CAACE,KAAK,EAAEC,MAAM,CAAC;EAC9C;AACJ;AAACC,OAAA,CAAAN,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetPublishedEntriesByIds } from "../../abstractions";
2
+ import type { CmsEntryStorageOperationsGetPublishedByIdsParams, CmsModel } from "../../../../types";
3
+ export declare class GetPublishedEntriesByIdsNotDeleted implements IGetPublishedEntriesByIds {
4
+ private getPublishedEntriesByIds;
5
+ constructor(getLatestEntriesByIds: IGetPublishedEntriesByIds);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedByIdsParams): Promise<import("../../../../types").CmsStorageEntry[]>;
7
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetPublishedEntriesByIdsNotDeleted = void 0;
7
+ class GetPublishedEntriesByIdsNotDeleted {
8
+ constructor(getLatestEntriesByIds) {
9
+ this.getPublishedEntriesByIds = getLatestEntriesByIds;
10
+ }
11
+ async execute(model, params) {
12
+ const entries = await this.getPublishedEntriesByIds.execute(model, params);
13
+ return entries.filter(entry => !entry.wbyDeleted);
14
+ }
15
+ }
16
+ exports.GetPublishedEntriesByIdsNotDeleted = GetPublishedEntriesByIdsNotDeleted;
17
+
18
+ //# sourceMappingURL=GetPublishedEntriesByIdsNotDeleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetPublishedEntriesByIdsNotDeleted","constructor","getLatestEntriesByIds","getPublishedEntriesByIds","execute","model","params","entries","filter","entry","wbyDeleted","exports"],"sources":["GetPublishedEntriesByIdsNotDeleted.ts"],"sourcesContent":["import type { IGetPublishedEntriesByIds } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetPublishedByIdsParams, CmsModel } from \"~/types\";\n\nexport class GetPublishedEntriesByIdsNotDeleted implements IGetPublishedEntriesByIds {\n private getPublishedEntriesByIds: IGetPublishedEntriesByIds;\n\n constructor(getLatestEntriesByIds: IGetPublishedEntriesByIds) {\n this.getPublishedEntriesByIds = getLatestEntriesByIds;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedByIdsParams) {\n const entries = await this.getPublishedEntriesByIds.execute(model, params);\n return entries.filter(entry => !entry.wbyDeleted);\n }\n}\n"],"mappings":";;;;;;AAGO,MAAMA,kCAAkC,CAAsC;EAGjFC,WAAWA,CAACC,qBAAgD,EAAE;IAC1D,IAAI,CAACC,wBAAwB,GAAGD,qBAAqB;EACzD;EAEA,MAAME,OAAOA,CAACC,KAAe,EAAEC,MAAwD,EAAE;IACrF,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACJ,wBAAwB,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAC1E,OAAOC,OAAO,CAACC,MAAM,CAACC,KAAK,IAAI,CAACA,KAAK,CAACC,UAAU,CAAC;EACrD;AACJ;AAACC,OAAA,CAAAX,kCAAA,GAAAA,kCAAA","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import type { AccessControl } from "../../../AccessControl/AccessControl";
2
+ import type { IGetPublishedEntriesByIds } from "../../abstractions";
3
+ import type { CmsEntryStorageOperationsGetPublishedByIdsParams, CmsModel } from "../../../../types";
4
+ export declare class GetPublishedEntriesByIdsSecure implements IGetPublishedEntriesByIds {
5
+ private accessControl;
6
+ private getPublishedEntriesByIds;
7
+ constructor(accessControl: AccessControl, getPublishedEntriesByIds: IGetPublishedEntriesByIds);
8
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedByIdsParams): Promise<import("../../../../types").CmsStorageEntry[]>;
9
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetPublishedEntriesByIdsSecure = void 0;
7
+ var _filterAsync = require("../../../../utils/filterAsync");
8
+ class GetPublishedEntriesByIdsSecure {
9
+ constructor(accessControl, getPublishedEntriesByIds) {
10
+ this.accessControl = accessControl;
11
+ this.getPublishedEntriesByIds = getPublishedEntriesByIds;
12
+ }
13
+ async execute(model, params) {
14
+ await this.accessControl.ensureCanAccessEntry({
15
+ model
16
+ });
17
+ const entries = await this.getPublishedEntriesByIds.execute(model, params);
18
+ return (0, _filterAsync.filterAsync)(entries, async entry => {
19
+ return this.accessControl.canAccessEntry({
20
+ model,
21
+ entry
22
+ });
23
+ });
24
+ }
25
+ }
26
+ exports.GetPublishedEntriesByIdsSecure = GetPublishedEntriesByIdsSecure;
27
+
28
+ //# sourceMappingURL=GetPublishedEntriesByIdsSecure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_filterAsync","require","GetPublishedEntriesByIdsSecure","constructor","accessControl","getPublishedEntriesByIds","execute","model","params","ensureCanAccessEntry","entries","filterAsync","entry","canAccessEntry","exports"],"sources":["GetPublishedEntriesByIdsSecure.ts"],"sourcesContent":["import type { AccessControl } from \"~/crud/AccessControl/AccessControl\";\nimport { filterAsync } from \"~/utils/filterAsync\";\nimport type { IGetPublishedEntriesByIds } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetPublishedByIdsParams, CmsModel } from \"~/types\";\n\nexport class GetPublishedEntriesByIdsSecure implements IGetPublishedEntriesByIds {\n private accessControl: AccessControl;\n private getPublishedEntriesByIds: IGetPublishedEntriesByIds;\n\n constructor(accessControl: AccessControl, getPublishedEntriesByIds: IGetPublishedEntriesByIds) {\n this.accessControl = accessControl;\n this.getPublishedEntriesByIds = getPublishedEntriesByIds;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedByIdsParams) {\n await this.accessControl.ensureCanAccessEntry({ model });\n\n const entries = await this.getPublishedEntriesByIds.execute(model, params);\n\n return filterAsync(entries, async entry => {\n return this.accessControl.canAccessEntry({ model, entry });\n });\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAIO,MAAMC,8BAA8B,CAAsC;EAI7EC,WAAWA,CAACC,aAA4B,EAAEC,wBAAmD,EAAE;IAC3F,IAAI,CAACD,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACC,wBAAwB,GAAGA,wBAAwB;EAC5D;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAwD,EAAE;IACrF,MAAM,IAAI,CAACJ,aAAa,CAACK,oBAAoB,CAAC;MAAEF;IAAM,CAAC,CAAC;IAExD,MAAMG,OAAO,GAAG,MAAM,IAAI,CAACL,wBAAwB,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAE1E,OAAO,IAAAG,wBAAW,EAACD,OAAO,EAAE,MAAME,KAAK,IAAI;MACvC,OAAO,IAAI,CAACR,aAAa,CAACS,cAAc,CAAC;QAAEN,KAAK;QAAEK;MAAM,CAAC,CAAC;IAC9D,CAAC,CAAC;EACN;AACJ;AAACE,OAAA,CAAAZ,8BAAA,GAAAA,8BAAA","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import { GetPublishedEntriesByIdsNotDeleted } from "./GetPublishedEntriesByIdsNotDeleted";
2
+ import type { CmsEntryStorageOperations } from "../../../../types";
3
+ import type { AccessControl } from "../../../AccessControl/AccessControl";
4
+ interface GetPublishedEntriesByIdsUseCasesParams {
5
+ operation: CmsEntryStorageOperations["getPublishedByIds"];
6
+ accessControl: AccessControl;
7
+ }
8
+ export declare const getPublishedEntriesByIdsUseCases: (params: GetPublishedEntriesByIdsUseCasesParams) => {
9
+ getPublishedEntriesByIdsUseCase: GetPublishedEntriesByIdsNotDeleted;
10
+ };
11
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getPublishedEntriesByIdsUseCases = void 0;
7
+ var _GetPublishedEntriesByIds = require("./GetPublishedEntriesByIds");
8
+ var _GetPublishedEntriesByIdsNotDeleted = require("./GetPublishedEntriesByIdsNotDeleted");
9
+ var _GetPublishedEntriesByIdsSecure = require("./GetPublishedEntriesByIdsSecure");
10
+ const getPublishedEntriesByIdsUseCases = params => {
11
+ const getPublishedEntriesByIds = new _GetPublishedEntriesByIds.GetPublishedEntriesByIds(params.operation);
12
+ const getPublishedEntriesByIdsSecure = new _GetPublishedEntriesByIdsSecure.GetPublishedEntriesByIdsSecure(params.accessControl, getPublishedEntriesByIds);
13
+ const getPublishedEntriesByIdsNotDeleted = new _GetPublishedEntriesByIdsNotDeleted.GetPublishedEntriesByIdsNotDeleted(getPublishedEntriesByIdsSecure);
14
+ return {
15
+ getPublishedEntriesByIdsUseCase: getPublishedEntriesByIdsNotDeleted
16
+ };
17
+ };
18
+ exports.getPublishedEntriesByIdsUseCases = getPublishedEntriesByIdsUseCases;
19
+
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_GetPublishedEntriesByIds","require","_GetPublishedEntriesByIdsNotDeleted","_GetPublishedEntriesByIdsSecure","getPublishedEntriesByIdsUseCases","params","getPublishedEntriesByIds","GetPublishedEntriesByIds","operation","getPublishedEntriesByIdsSecure","GetPublishedEntriesByIdsSecure","accessControl","getPublishedEntriesByIdsNotDeleted","GetPublishedEntriesByIdsNotDeleted","getPublishedEntriesByIdsUseCase","exports"],"sources":["index.ts"],"sourcesContent":["import { GetPublishedEntriesByIds } from \"./GetPublishedEntriesByIds\";\nimport { GetPublishedEntriesByIdsNotDeleted } from \"./GetPublishedEntriesByIdsNotDeleted\";\nimport { GetPublishedEntriesByIdsSecure } from \"./GetPublishedEntriesByIdsSecure\";\nimport type { CmsEntryStorageOperations } from \"~/types\";\nimport type { AccessControl } from \"~/crud/AccessControl/AccessControl\";\n\ninterface GetPublishedEntriesByIdsUseCasesParams {\n operation: CmsEntryStorageOperations[\"getPublishedByIds\"];\n accessControl: AccessControl;\n}\n\nexport const getPublishedEntriesByIdsUseCases = (\n params: GetPublishedEntriesByIdsUseCasesParams\n) => {\n const getPublishedEntriesByIds = new GetPublishedEntriesByIds(params.operation);\n const getPublishedEntriesByIdsSecure = new GetPublishedEntriesByIdsSecure(\n params.accessControl,\n getPublishedEntriesByIds\n );\n const getPublishedEntriesByIdsNotDeleted = new GetPublishedEntriesByIdsNotDeleted(\n getPublishedEntriesByIdsSecure\n );\n\n return {\n getPublishedEntriesByIdsUseCase: getPublishedEntriesByIdsNotDeleted\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,yBAAA,GAAAC,OAAA;AACA,IAAAC,mCAAA,GAAAD,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AASO,MAAMG,gCAAgC,GACzCC,MAA8C,IAC7C;EACD,MAAMC,wBAAwB,GAAG,IAAIC,kDAAwB,CAACF,MAAM,CAACG,SAAS,CAAC;EAC/E,MAAMC,8BAA8B,GAAG,IAAIC,8DAA8B,CACrEL,MAAM,CAACM,aAAa,EACpBL,wBACJ,CAAC;EACD,MAAMM,kCAAkC,GAAG,IAAIC,sEAAkC,CAC7EJ,8BACJ,CAAC;EAED,OAAO;IACHK,+BAA+B,EAAEF;EACrC,CAAC;AACL,CAAC;AAACG,OAAA,CAAAX,gCAAA,GAAAA,gCAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetPublishedRevisionByEntryId } from "../../abstractions";
2
+ import type { CmsEntryStorageOperations, CmsEntryStorageOperationsGetPublishedRevisionParams, CmsModel } from "../../../../types";
3
+ export declare class GetPublishedRevisionByEntryId implements IGetPublishedRevisionByEntryId {
4
+ private operation;
5
+ constructor(operation: CmsEntryStorageOperations["getPublishedRevisionByEntryId"]);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedRevisionParams): Promise<import("../../../../types").CmsStorageEntry | null>;
7
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetPublishedRevisionByEntryId = void 0;
7
+ class GetPublishedRevisionByEntryId {
8
+ constructor(operation) {
9
+ this.operation = operation;
10
+ }
11
+ async execute(model, params) {
12
+ return await this.operation(model, params);
13
+ }
14
+ }
15
+ exports.GetPublishedRevisionByEntryId = GetPublishedRevisionByEntryId;
16
+
17
+ //# sourceMappingURL=GetPublishedRevisionByEntryId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetPublishedRevisionByEntryId","constructor","operation","execute","model","params","exports"],"sources":["GetPublishedRevisionByEntryId.ts"],"sourcesContent":["import type { IGetPublishedRevisionByEntryId } from \"../../abstractions\";\nimport type {\n CmsEntryStorageOperations,\n CmsEntryStorageOperationsGetPublishedRevisionParams,\n CmsModel\n} from \"~/types\";\n\nexport class GetPublishedRevisionByEntryId implements IGetPublishedRevisionByEntryId {\n private operation: CmsEntryStorageOperations[\"getPublishedRevisionByEntryId\"];\n\n constructor(operation: CmsEntryStorageOperations[\"getPublishedRevisionByEntryId\"]) {\n this.operation = operation;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedRevisionParams) {\n return await this.operation(model, params);\n }\n}\n"],"mappings":";;;;;;AAOO,MAAMA,6BAA6B,CAA2C;EAGjFC,WAAWA,CAACC,SAAqE,EAAE;IAC/E,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC9B;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAA2D,EAAE;IACxF,OAAO,MAAM,IAAI,CAACH,SAAS,CAACE,KAAK,EAAEC,MAAM,CAAC;EAC9C;AACJ;AAACC,OAAA,CAAAN,6BAAA,GAAAA,6BAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { IGetPublishedRevisionByEntryId } from "../../abstractions";
2
+ import type { CmsEntryStorageOperationsGetPublishedRevisionParams, CmsModel } from "../../../../types";
3
+ export declare class GetPublishedRevisionByEntryIdNotDeleted implements IGetPublishedRevisionByEntryId {
4
+ private getPublishedRevisionByEntryId;
5
+ constructor(getPublishedRevisionByEntryId: IGetPublishedRevisionByEntryId);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedRevisionParams): Promise<import("../../../../types").CmsStorageEntry | null>;
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetPublishedRevisionByEntryIdNotDeleted = void 0;
7
+ class GetPublishedRevisionByEntryIdNotDeleted {
8
+ constructor(getPublishedRevisionByEntryId) {
9
+ this.getPublishedRevisionByEntryId = getPublishedRevisionByEntryId;
10
+ }
11
+ async execute(model, params) {
12
+ const entry = await this.getPublishedRevisionByEntryId.execute(model, params);
13
+ if (!entry || entry.wbyDeleted) {
14
+ return null;
15
+ }
16
+ return entry;
17
+ }
18
+ }
19
+ exports.GetPublishedRevisionByEntryIdNotDeleted = GetPublishedRevisionByEntryIdNotDeleted;
20
+
21
+ //# sourceMappingURL=GetPublishedRevisionByEntryIdNotDeleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetPublishedRevisionByEntryIdNotDeleted","constructor","getPublishedRevisionByEntryId","execute","model","params","entry","wbyDeleted","exports"],"sources":["GetPublishedRevisionByEntryIdNotDeleted.ts"],"sourcesContent":["import type { IGetPublishedRevisionByEntryId } from \"../../abstractions\";\nimport type { CmsEntryStorageOperationsGetPublishedRevisionParams, CmsModel } from \"~/types\";\n\nexport class GetPublishedRevisionByEntryIdNotDeleted implements IGetPublishedRevisionByEntryId {\n private getPublishedRevisionByEntryId: IGetPublishedRevisionByEntryId;\n\n constructor(getPublishedRevisionByEntryId: IGetPublishedRevisionByEntryId) {\n this.getPublishedRevisionByEntryId = getPublishedRevisionByEntryId;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetPublishedRevisionParams) {\n const entry = await this.getPublishedRevisionByEntryId.execute(model, params);\n\n if (!entry || entry.wbyDeleted) {\n return null;\n }\n\n return entry;\n }\n}\n"],"mappings":";;;;;;AAGO,MAAMA,uCAAuC,CAA2C;EAG3FC,WAAWA,CAACC,6BAA6D,EAAE;IACvE,IAAI,CAACA,6BAA6B,GAAGA,6BAA6B;EACtE;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAA2D,EAAE;IACxF,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACJ,6BAA6B,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAE7E,IAAI,CAACC,KAAK,IAAIA,KAAK,CAACC,UAAU,EAAE;MAC5B,OAAO,IAAI;IACf;IAEA,OAAOD,KAAK;EAChB;AACJ;AAACE,OAAA,CAAAR,uCAAA,GAAAA,uCAAA","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import { GetPublishedRevisionByEntryIdNotDeleted } from "./GetPublishedRevisionByEntryIdNotDeleted";
2
+ import type { CmsEntryStorageOperations } from "../../../../types";
3
+ interface GetPublishedRevisionByEntryIdUseCasesParams {
4
+ operation: CmsEntryStorageOperations["getPublishedRevisionByEntryId"];
5
+ }
6
+ export declare const getPublishedRevisionByEntryIdUseCases: (params: GetPublishedRevisionByEntryIdUseCasesParams) => {
7
+ getPublishedRevisionByEntryIdUseCase: GetPublishedRevisionByEntryIdNotDeleted;
8
+ };
9
+ export {};