@webiny/api-headless-cms 5.40.0-beta.2 → 5.40.0-beta.4

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 (548) hide show
  1. package/constants.d.ts +11 -1
  2. package/constants.js +15 -9
  3. package/constants.js.map +1 -1
  4. package/context.js +47 -31
  5. package/context.js.map +1 -1
  6. package/crud/AccessControl/AccessControl.d.ts +3 -3
  7. package/crud/AccessControl/AccessControl.js.map +1 -1
  8. package/crud/contentEntry/abstractions/IDeleteEntry.d.ts +4 -0
  9. package/crud/contentEntry/abstractions/IDeleteEntry.js +7 -0
  10. package/crud/contentEntry/abstractions/IDeleteEntry.js.map +1 -0
  11. package/crud/contentEntry/abstractions/IDeleteEntryOperation.d.ts +4 -0
  12. package/crud/contentEntry/abstractions/IDeleteEntryOperation.js +7 -0
  13. package/crud/contentEntry/abstractions/IDeleteEntryOperation.js.map +1 -0
  14. package/crud/contentEntry/abstractions/IGetEntriesByIds.d.ts +4 -0
  15. package/crud/contentEntry/abstractions/IGetEntriesByIds.js +7 -0
  16. package/crud/contentEntry/abstractions/IGetEntriesByIds.js.map +1 -0
  17. package/crud/contentEntry/abstractions/IGetEntry.d.ts +4 -0
  18. package/crud/contentEntry/abstractions/IGetEntry.js +7 -0
  19. package/crud/contentEntry/abstractions/IGetEntry.js.map +1 -0
  20. package/crud/contentEntry/abstractions/IGetLatestEntriesByIds.d.ts +4 -0
  21. package/crud/contentEntry/abstractions/IGetLatestEntriesByIds.js +7 -0
  22. package/crud/contentEntry/abstractions/IGetLatestEntriesByIds.js.map +1 -0
  23. package/crud/contentEntry/abstractions/IGetLatestRevisionByEntryId.d.ts +4 -0
  24. package/crud/contentEntry/abstractions/IGetLatestRevisionByEntryId.js +7 -0
  25. package/crud/contentEntry/abstractions/IGetLatestRevisionByEntryId.js.map +1 -0
  26. package/crud/contentEntry/abstractions/IGetPreviousRevisionByEntryId.d.ts +4 -0
  27. package/crud/contentEntry/abstractions/IGetPreviousRevisionByEntryId.js +7 -0
  28. package/crud/contentEntry/abstractions/IGetPreviousRevisionByEntryId.js.map +1 -0
  29. package/crud/contentEntry/abstractions/IGetPublishedEntriesByIds.d.ts +4 -0
  30. package/crud/contentEntry/abstractions/IGetPublishedEntriesByIds.js +7 -0
  31. package/crud/contentEntry/abstractions/IGetPublishedEntriesByIds.js.map +1 -0
  32. package/crud/contentEntry/abstractions/IGetPublishedRevisionByEntryId.d.ts +4 -0
  33. package/crud/contentEntry/abstractions/IGetPublishedRevisionByEntryId.js +7 -0
  34. package/crud/contentEntry/abstractions/IGetPublishedRevisionByEntryId.js.map +1 -0
  35. package/crud/contentEntry/abstractions/IGetRevisionById.d.ts +4 -0
  36. package/crud/contentEntry/abstractions/IGetRevisionById.js +7 -0
  37. package/crud/contentEntry/abstractions/IGetRevisionById.js.map +1 -0
  38. package/crud/contentEntry/abstractions/IGetRevisionsByEntryId.d.ts +4 -0
  39. package/crud/contentEntry/abstractions/IGetRevisionsByEntryId.js +7 -0
  40. package/crud/contentEntry/abstractions/IGetRevisionsByEntryId.js.map +1 -0
  41. package/crud/contentEntry/abstractions/IListEntries.d.ts +4 -0
  42. package/crud/contentEntry/abstractions/IListEntries.js +7 -0
  43. package/crud/contentEntry/abstractions/IListEntries.js.map +1 -0
  44. package/crud/contentEntry/abstractions/IListEntriesOperation.d.ts +4 -0
  45. package/crud/contentEntry/abstractions/IListEntriesOperation.js +7 -0
  46. package/crud/contentEntry/abstractions/IListEntriesOperation.js.map +1 -0
  47. package/crud/contentEntry/abstractions/IMoveEntryToBinOperation.d.ts +4 -0
  48. package/crud/contentEntry/abstractions/IMoveEntryToBinOperation.js +7 -0
  49. package/crud/contentEntry/abstractions/IMoveEntryToBinOperation.js.map +1 -0
  50. package/crud/contentEntry/abstractions/IRestoreEntryFromBin.d.ts +4 -0
  51. package/crud/contentEntry/abstractions/IRestoreEntryFromBin.js +7 -0
  52. package/crud/contentEntry/abstractions/IRestoreEntryFromBin.js.map +1 -0
  53. package/crud/contentEntry/abstractions/IRestoreEntryFromBinOperation.d.ts +4 -0
  54. package/crud/contentEntry/abstractions/IRestoreEntryFromBinOperation.js +7 -0
  55. package/crud/contentEntry/abstractions/IRestoreEntryFromBinOperation.js.map +1 -0
  56. package/crud/contentEntry/abstractions/index.d.ts +16 -0
  57. package/crud/contentEntry/abstractions/index.js +183 -0
  58. package/crud/contentEntry/abstractions/index.js.map +1 -0
  59. package/crud/contentEntry/afterDelete.js.map +1 -1
  60. package/crud/contentEntry/beforeCreate.js.map +1 -1
  61. package/crud/contentEntry/beforeUpdate.js.map +1 -1
  62. package/crud/contentEntry/entryDataFactories/createEntryData.js +9 -1
  63. package/crud/contentEntry/entryDataFactories/createEntryData.js.map +1 -1
  64. package/crud/contentEntry/entryDataFactories/createEntryRevisionFromData.js.map +1 -1
  65. package/crud/contentEntry/entryDataFactories/createPublishEntryData.js.map +1 -1
  66. package/crud/contentEntry/entryDataFactories/createRepublishEntryData.js.map +1 -1
  67. package/crud/contentEntry/entryDataFactories/createUnpublishEntryData.js.map +1 -1
  68. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js +8 -0
  69. package/crud/contentEntry/entryDataFactories/createUpdateEntryData.js.map +1 -1
  70. package/crud/contentEntry/entryDataFactories/index.js.map +1 -1
  71. package/crud/contentEntry/entryDataFactories/mapAndCleanUpdatedInputData.js.map +1 -1
  72. package/crud/contentEntry/entryDataFactories/statuses.js +3 -6
  73. package/crud/contentEntry/entryDataFactories/statuses.js.map +1 -1
  74. package/crud/contentEntry/entryDataValidation.js.map +1 -1
  75. package/crud/contentEntry/markLockedFields.js.map +1 -1
  76. package/crud/contentEntry/referenceFieldsMapping.js +1 -1
  77. package/crud/contentEntry/referenceFieldsMapping.js.map +1 -1
  78. package/crud/contentEntry/searchableFields.js.map +1 -1
  79. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntry.d.ts +10 -0
  80. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntry.js +58 -0
  81. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntry.js.map +1 -0
  82. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperation.d.ts +7 -0
  83. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperation.js +17 -0
  84. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperation.js.map +1 -0
  85. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperationWithEvents.d.ts +9 -0
  86. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperationWithEvents.js +45 -0
  87. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntryOperationWithEvents.js.map +1 -0
  88. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntrySecure.d.ts +9 -0
  89. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntrySecure.js +22 -0
  90. package/crud/contentEntry/useCases/DeleteEntry/DeleteEntrySecure.js.map +1 -0
  91. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBin.d.ts +10 -0
  92. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBin.js +33 -0
  93. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBin.js.map +1 -0
  94. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperation.d.ts +7 -0
  95. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperation.js +17 -0
  96. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperation.js.map +1 -0
  97. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperationWithEvents.d.ts +9 -0
  98. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperationWithEvents.js +45 -0
  99. package/crud/contentEntry/useCases/DeleteEntry/MoveEntryToBinOperationWithEvents.js.map +1 -0
  100. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryDelete.d.ts +6 -0
  101. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryDelete.js +21 -0
  102. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryDelete.js.map +1 -0
  103. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryMoveToBin.d.ts +9 -0
  104. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryMoveToBin.js +62 -0
  105. package/crud/contentEntry/useCases/DeleteEntry/TransformEntryMoveToBin.js.map +1 -0
  106. package/crud/contentEntry/useCases/DeleteEntry/index.d.ts +28 -0
  107. package/crud/contentEntry/useCases/DeleteEntry/index.js +42 -0
  108. package/crud/contentEntry/useCases/DeleteEntry/index.js.map +1 -0
  109. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIds.d.ts +7 -0
  110. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIds.js +17 -0
  111. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIds.js.map +1 -0
  112. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsNotDeleted.d.ts +7 -0
  113. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsNotDeleted.js +18 -0
  114. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsNotDeleted.js.map +1 -0
  115. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsSecure.d.ts +9 -0
  116. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsSecure.js +28 -0
  117. package/crud/contentEntry/useCases/GetEntriesByIds/GetEntriesByIdsSecure.js.map +1 -0
  118. package/crud/contentEntry/useCases/GetEntriesByIds/index.d.ts +11 -0
  119. package/crud/contentEntry/useCases/GetEntriesByIds/index.js +20 -0
  120. package/crud/contentEntry/useCases/GetEntriesByIds/index.js.map +1 -0
  121. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIds.d.ts +7 -0
  122. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIds.js +17 -0
  123. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIds.js.map +1 -0
  124. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsNotDeleted.d.ts +7 -0
  125. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsNotDeleted.js +18 -0
  126. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsNotDeleted.js.map +1 -0
  127. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsSecure.d.ts +9 -0
  128. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsSecure.js +28 -0
  129. package/crud/contentEntry/useCases/GetLatestEntriesByIds/GetLatestEntriesByIdsSecure.js.map +1 -0
  130. package/crud/contentEntry/useCases/GetLatestEntriesByIds/index.d.ts +11 -0
  131. package/crud/contentEntry/useCases/GetLatestEntriesByIds/index.js +20 -0
  132. package/crud/contentEntry/useCases/GetLatestEntriesByIds/index.js.map +1 -0
  133. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryId.d.ts +7 -0
  134. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryId.js +17 -0
  135. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryId.js.map +1 -0
  136. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdDeleted.d.ts +7 -0
  137. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdDeleted.js +21 -0
  138. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdDeleted.js.map +1 -0
  139. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdNotDeleted.d.ts +7 -0
  140. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdNotDeleted.js +21 -0
  141. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdNotDeleted.js.map +1 -0
  142. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/index.d.ts +13 -0
  143. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/index.js +22 -0
  144. package/crud/contentEntry/useCases/GetLatestRevisionByEntryId/index.js.map +1 -0
  145. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryId.d.ts +7 -0
  146. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryId.js +17 -0
  147. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryId.js.map +1 -0
  148. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdNotDeleted.d.ts +7 -0
  149. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdNotDeleted.js +21 -0
  150. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdNotDeleted.js.map +1 -0
  151. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/index.d.ts +9 -0
  152. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/index.js +18 -0
  153. package/crud/contentEntry/useCases/GetPreviousRevisionByEntryId/index.js.map +1 -0
  154. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIds.d.ts +7 -0
  155. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIds.js +17 -0
  156. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIds.js.map +1 -0
  157. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsNotDeleted.d.ts +7 -0
  158. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsNotDeleted.js +18 -0
  159. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsNotDeleted.js.map +1 -0
  160. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsSecure.d.ts +9 -0
  161. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsSecure.js +28 -0
  162. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/GetPublishedEntriesByIdsSecure.js.map +1 -0
  163. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/index.d.ts +11 -0
  164. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/index.js +20 -0
  165. package/crud/contentEntry/useCases/GetPublishedEntriesByIds/index.js.map +1 -0
  166. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryId.d.ts +7 -0
  167. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryId.js +17 -0
  168. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryId.js.map +1 -0
  169. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdNotDeleted.d.ts +7 -0
  170. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdNotDeleted.js +21 -0
  171. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdNotDeleted.js.map +1 -0
  172. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/index.d.ts +9 -0
  173. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/index.js +18 -0
  174. package/crud/contentEntry/useCases/GetPublishedRevisionByEntryId/index.js.map +1 -0
  175. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionById.d.ts +7 -0
  176. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionById.js +17 -0
  177. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionById.js.map +1 -0
  178. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionByIdNotDeleted.d.ts +7 -0
  179. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionByIdNotDeleted.js +21 -0
  180. package/crud/contentEntry/useCases/GetRevisionById/GetRevisionByIdNotDeleted.js.map +1 -0
  181. package/crud/contentEntry/useCases/GetRevisionById/index.d.ts +9 -0
  182. package/crud/contentEntry/useCases/GetRevisionById/index.js +18 -0
  183. package/crud/contentEntry/useCases/GetRevisionById/index.js.map +1 -0
  184. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryId.d.ts +7 -0
  185. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryId.js +17 -0
  186. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryId.js.map +1 -0
  187. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryIdNotDeleted.d.ts +7 -0
  188. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryIdNotDeleted.js +18 -0
  189. package/crud/contentEntry/useCases/GetRevisionsByEntryId/GetRevisionsByEntryIdNotDeleted.js.map +1 -0
  190. package/crud/contentEntry/useCases/GetRevisionsByEntryId/index.d.ts +11 -0
  191. package/crud/contentEntry/useCases/GetRevisionsByEntryId/index.js +18 -0
  192. package/crud/contentEntry/useCases/GetRevisionsByEntryId/index.js.map +1 -0
  193. package/crud/contentEntry/useCases/ListEntries/GetEntry.d.ts +7 -0
  194. package/crud/contentEntry/useCases/ListEntries/GetEntry.js +29 -0
  195. package/crud/contentEntry/useCases/ListEntries/GetEntry.js.map +1 -0
  196. package/crud/contentEntry/useCases/ListEntries/GetEntrySecure.d.ts +11 -0
  197. package/crud/contentEntry/useCases/ListEntries/GetEntrySecure.js +38 -0
  198. package/crud/contentEntry/useCases/ListEntries/GetEntrySecure.js.map +1 -0
  199. package/crud/contentEntry/useCases/ListEntries/ListEntries.d.ts +7 -0
  200. package/crud/contentEntry/useCases/ListEntries/ListEntries.js +62 -0
  201. package/crud/contentEntry/useCases/ListEntries/ListEntries.js.map +1 -0
  202. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperation.d.ts +7 -0
  203. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperation.js +17 -0
  204. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperation.js.map +1 -0
  205. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationDeleted.d.ts +7 -0
  206. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationDeleted.js +24 -0
  207. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationDeleted.js.map +1 -0
  208. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationLatest.d.ts +7 -0
  209. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationLatest.js +25 -0
  210. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationLatest.js.map +1 -0
  211. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationNotDeleted.d.ts +7 -0
  212. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationNotDeleted.js +24 -0
  213. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationNotDeleted.js.map +1 -0
  214. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationPublished.d.ts +7 -0
  215. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationPublished.js +24 -0
  216. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationPublished.js.map +1 -0
  217. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithEvents.d.ts +9 -0
  218. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithEvents.js +22 -0
  219. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithEvents.js.map +1 -0
  220. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSearchableFields.d.ts +8 -0
  221. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSearchableFields.js +27 -0
  222. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSearchableFields.js.map +1 -0
  223. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSort.d.ts +8 -0
  224. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSort.js +26 -0
  225. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithSort.js.map +1 -0
  226. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithStatusCheck.d.ts +7 -0
  227. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithStatusCheck.js +36 -0
  228. package/crud/contentEntry/useCases/ListEntries/ListEntriesOperationWithStatusCheck.js.map +1 -0
  229. package/crud/contentEntry/useCases/ListEntries/ListEntriesSecure.d.ts +11 -0
  230. package/crud/contentEntry/useCases/ListEntries/ListEntriesSecure.js +41 -0
  231. package/crud/contentEntry/useCases/ListEntries/ListEntriesSecure.js.map +1 -0
  232. package/crud/contentEntry/useCases/ListEntries/index.d.ts +24 -0
  233. package/crud/contentEntry/useCases/ListEntries/index.js +61 -0
  234. package/crud/contentEntry/useCases/ListEntries/index.js.map +1 -0
  235. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBin.d.ts +10 -0
  236. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBin.js +37 -0
  237. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBin.js.map +1 -0
  238. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperation.d.ts +7 -0
  239. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperation.js +17 -0
  240. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperation.js.map +1 -0
  241. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperationWithEvents.d.ts +9 -0
  242. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperationWithEvents.js +42 -0
  243. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinOperationWithEvents.js.map +1 -0
  244. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinSecure.d.ts +9 -0
  245. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinSecure.js +22 -0
  246. package/crud/contentEntry/useCases/RestoreEntryFromBin/RestoreEntryFromBinSecure.js.map +1 -0
  247. package/crud/contentEntry/useCases/RestoreEntryFromBin/TransformEntryRestoreFromBin.d.ts +9 -0
  248. package/crud/contentEntry/useCases/RestoreEntryFromBin/TransformEntryRestoreFromBin.js +61 -0
  249. package/crud/contentEntry/useCases/RestoreEntryFromBin/TransformEntryRestoreFromBin.js.map +1 -0
  250. package/crud/contentEntry/useCases/RestoreEntryFromBin/index.d.ts +23 -0
  251. package/crud/contentEntry/useCases/RestoreEntryFromBin/index.js +24 -0
  252. package/crud/contentEntry/useCases/RestoreEntryFromBin/index.js.map +1 -0
  253. package/crud/contentEntry/useCases/index.d.ts +11 -0
  254. package/crud/contentEntry/useCases/index.js +128 -0
  255. package/crud/contentEntry/useCases/index.js.map +1 -0
  256. package/crud/contentEntry.crud.js +210 -269
  257. package/crud/contentEntry.crud.js.map +1 -1
  258. package/crud/contentModel/beforeCreate.js.map +1 -1
  259. package/crud/contentModel/beforeDelete.js.map +1 -1
  260. package/crud/contentModel/beforeUpdate.js.map +1 -1
  261. package/crud/contentModel/compatibility/modelApiName.js.map +1 -1
  262. package/crud/contentModel/contentModelManagerFactory.d.ts +1 -1
  263. package/crud/contentModel/contentModelManagerFactory.js.map +1 -1
  264. package/crud/contentModel/createFieldStorageId.js.map +1 -1
  265. package/crud/contentModel/defaultFields.js.map +1 -1
  266. package/crud/contentModel/ensureTypeTag.js.map +1 -1
  267. package/crud/contentModel/fields/descriptionField.js.map +1 -1
  268. package/crud/contentModel/fields/imageField.js.map +1 -1
  269. package/crud/contentModel/fields/titleField.js.map +1 -1
  270. package/crud/contentModel/listModelsFromDatabase.js.map +1 -1
  271. package/crud/contentModel/validate/endingAllowed.js.map +1 -1
  272. package/crud/contentModel/validate/isModelEndingAllowed.js +1 -2
  273. package/crud/contentModel/validate/isModelEndingAllowed.js.map +1 -1
  274. package/crud/contentModel/validate/modelId.js.map +1 -1
  275. package/crud/contentModel/validate/pluralApiName.js.map +1 -1
  276. package/crud/contentModel/validate/singularApiName.js.map +1 -1
  277. package/crud/contentModel/validateModel.js.map +1 -1
  278. package/crud/contentModel/validateModelFields.d.ts +1 -1
  279. package/crud/contentModel/validateModelFields.js.map +1 -1
  280. package/crud/contentModel/validateStorageId.d.ts +1 -0
  281. package/crud/contentModel/validateStorageId.js +29 -0
  282. package/crud/contentModel/validateStorageId.js.map +1 -0
  283. package/crud/contentModel/validation.d.ts +51 -30
  284. package/crud/contentModel/validation.js +3 -2
  285. package/crud/contentModel/validation.js.map +1 -1
  286. package/crud/contentModel.crud.js +6 -0
  287. package/crud/contentModel.crud.js.map +1 -1
  288. package/crud/contentModelGroup/beforeCreate.js.map +1 -1
  289. package/crud/contentModelGroup/beforeDelete.js.map +1 -1
  290. package/crud/contentModelGroup/beforeUpdate.js.map +1 -1
  291. package/crud/contentModelGroup/listGroupsFromDatabase.js.map +1 -1
  292. package/crud/contentModelGroup/validation.js.map +1 -1
  293. package/crud/contentModelGroup.crud.js.map +1 -1
  294. package/crud/system.crud.js.map +1 -1
  295. package/export/crud/exporting.js.map +1 -1
  296. package/export/crud/importing.js.map +1 -1
  297. package/export/crud/imports/importData.js.map +1 -1
  298. package/export/crud/imports/importGroups.js.map +1 -1
  299. package/export/crud/imports/importModels.js.map +1 -1
  300. package/export/crud/imports/validateGroups.js.map +1 -1
  301. package/export/crud/imports/validateInput.js.map +1 -1
  302. package/export/crud/imports/validateModels.js.map +1 -1
  303. package/export/crud/index.js.map +1 -1
  304. package/export/crud/sanitize.js.map +1 -1
  305. package/export/graphql/index.js +1 -1
  306. package/export/graphql/index.js.map +1 -1
  307. package/export/index.js.map +1 -1
  308. package/export/types.js +1 -2
  309. package/export/types.js.map +1 -1
  310. package/fieldConverters/CmsModelDefaultFieldConverterPlugin.js.map +1 -1
  311. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +4 -14
  312. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js.map +1 -1
  313. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js.map +1 -1
  314. package/fieldConverters/index.js.map +1 -1
  315. package/graphql/buildSchemaPlugins.d.ts +2 -2
  316. package/graphql/buildSchemaPlugins.js.map +1 -1
  317. package/graphql/checkEndpointAccess.js.map +1 -1
  318. package/graphql/createExecutableSchema.d.ts +2 -2
  319. package/graphql/createExecutableSchema.js.map +1 -1
  320. package/graphql/createRequestBody.js.map +1 -1
  321. package/graphql/formatErrorPayload.js.map +1 -1
  322. package/graphql/generateSchema.js.map +1 -1
  323. package/graphql/getSchema.js.map +1 -1
  324. package/graphql/graphQLHandlerFactory.js.map +1 -1
  325. package/graphql/handleRequest.js.map +1 -1
  326. package/graphql/index.js.map +1 -1
  327. package/graphql/schema/baseContentSchema.d.ts +2 -2
  328. package/graphql/schema/baseContentSchema.js +1 -7
  329. package/graphql/schema/baseContentSchema.js.map +1 -1
  330. package/graphql/schema/baseSchema.js +12 -5
  331. package/graphql/schema/baseSchema.js.map +1 -1
  332. package/graphql/schema/contentEntries.d.ts +2 -2
  333. package/graphql/schema/contentEntries.js +2 -2
  334. package/graphql/schema/contentEntries.js.map +1 -1
  335. package/graphql/schema/contentModelGroups.d.ts +2 -2
  336. package/graphql/schema/contentModelGroups.js +1 -1
  337. package/graphql/schema/contentModelGroups.js.map +1 -1
  338. package/graphql/schema/contentModels.d.ts +2 -2
  339. package/graphql/schema/contentModels.js +3 -1
  340. package/graphql/schema/contentModels.js.map +1 -1
  341. package/graphql/schema/createFieldResolvers.js.map +1 -1
  342. package/graphql/schema/createFieldTypePluginRecords.js.map +1 -1
  343. package/graphql/schema/createManageResolvers.js +8 -0
  344. package/graphql/schema/createManageResolvers.js.map +1 -1
  345. package/graphql/schema/createManageSDL.js +10 -0
  346. package/graphql/schema/createManageSDL.js.map +1 -1
  347. package/graphql/schema/createPreviewResolvers.js.map +1 -1
  348. package/graphql/schema/createReadResolvers.js.map +1 -1
  349. package/graphql/schema/createReadSDL.js.map +1 -1
  350. package/graphql/schema/resolvers/manage/resolveCreate.js.map +1 -1
  351. package/graphql/schema/resolvers/manage/resolveCreateFrom.js.map +1 -1
  352. package/graphql/schema/resolvers/manage/resolveDelete.js +2 -1
  353. package/graphql/schema/resolvers/manage/resolveDelete.js.map +1 -1
  354. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js.map +1 -1
  355. package/graphql/schema/resolvers/manage/resolveGet.js.map +1 -1
  356. package/graphql/schema/resolvers/manage/resolveGetByIds.js.map +1 -1
  357. package/graphql/schema/resolvers/manage/resolveGetRevisions.js.map +1 -1
  358. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js.map +1 -1
  359. package/graphql/schema/resolvers/manage/resolveList.js.map +1 -1
  360. package/graphql/schema/resolvers/manage/resolveListDeleted.d.ts +4 -0
  361. package/graphql/schema/resolvers/manage/resolveListDeleted.js +20 -0
  362. package/graphql/schema/resolvers/manage/resolveListDeleted.js.map +1 -0
  363. package/graphql/schema/resolvers/manage/resolveMove.js.map +1 -1
  364. package/graphql/schema/resolvers/manage/resolvePublish.js.map +1 -1
  365. package/graphql/schema/resolvers/manage/resolveRepublish.js.map +1 -1
  366. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.d.ts +7 -0
  367. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js +20 -0
  368. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js.map +1 -0
  369. package/graphql/schema/resolvers/manage/resolveUnpublish.js.map +1 -1
  370. package/graphql/schema/resolvers/manage/resolveUpdate.js.map +1 -1
  371. package/graphql/schema/resolvers/manage/resolveValidate.js.map +1 -1
  372. package/graphql/schema/resolvers/preview/resolveGet.js.map +1 -1
  373. package/graphql/schema/resolvers/preview/resolveList.js.map +1 -1
  374. package/graphql/schema/resolvers/read/resolveGet.js.map +1 -1
  375. package/graphql/schema/resolvers/read/resolveList.js.map +1 -1
  376. package/graphql/schema/schemaPlugins.d.ts +2 -2
  377. package/graphql/schema/schemaPlugins.js +2 -2
  378. package/graphql/schema/schemaPlugins.js.map +1 -1
  379. package/graphql/system.js.map +1 -1
  380. package/graphqlFields/boolean.js.map +1 -1
  381. package/graphqlFields/datetime.js.map +1 -1
  382. package/graphqlFields/dynamicZone/dynamicZoneField.js +27 -1
  383. package/graphqlFields/dynamicZone/dynamicZoneField.js.map +1 -1
  384. package/graphqlFields/dynamicZone/dynamicZoneStorage.js.map +1 -1
  385. package/graphqlFields/dynamicZone/index.js.map +1 -1
  386. package/graphqlFields/file.js.map +1 -1
  387. package/graphqlFields/helpers.js.map +1 -1
  388. package/graphqlFields/index.js.map +1 -1
  389. package/graphqlFields/json.js.map +1 -1
  390. package/graphqlFields/longText.js.map +1 -1
  391. package/graphqlFields/number.js.map +1 -1
  392. package/graphqlFields/object.d.ts +2 -2
  393. package/graphqlFields/object.js +14 -0
  394. package/graphqlFields/object.js.map +1 -1
  395. package/graphqlFields/ref.js.map +1 -1
  396. package/graphqlFields/richText/RichTextPluginsProcessor.js.map +1 -1
  397. package/graphqlFields/richText/richTextResolver.js.map +1 -1
  398. package/graphqlFields/richText.js.map +1 -1
  399. package/graphqlFields/text.js.map +1 -1
  400. package/htmlRenderer/LexicalRenderer.js.map +1 -1
  401. package/htmlRenderer/createLexicalHTMLRenderer.js.map +1 -1
  402. package/index.js.map +1 -1
  403. package/modelManager/DefaultCmsModelManager.d.ts +1 -0
  404. package/modelManager/DefaultCmsModelManager.js +3 -0
  405. package/modelManager/DefaultCmsModelManager.js.map +1 -1
  406. package/modelManager/index.js +1 -1
  407. package/modelManager/index.js.map +1 -1
  408. package/package.json +27 -27
  409. package/parameters/context.js.map +1 -1
  410. package/parameters/header.js.map +1 -1
  411. package/parameters/index.js.map +1 -1
  412. package/parameters/manual.js.map +1 -1
  413. package/parameters/path.js.map +1 -1
  414. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.d.ts +8 -0
  415. package/plugins/{CmsGraphQLSchemaPlugin.js → CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js} +5 -1
  416. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js.map +1 -0
  417. package/plugins/CmsGraphQLSchemaPlugin/index.d.ts +1 -0
  418. package/plugins/CmsGraphQLSchemaPlugin/index.js +18 -0
  419. package/plugins/CmsGraphQLSchemaPlugin/index.js.map +1 -0
  420. package/plugins/CmsGraphQLSchemaSorterPlugin.js.map +1 -1
  421. package/plugins/CmsGroupPlugin.d.ts +4 -0
  422. package/plugins/CmsGroupPlugin.js +9 -1
  423. package/plugins/CmsGroupPlugin.js.map +1 -1
  424. package/plugins/CmsModelFieldConverterPlugin.js.map +1 -1
  425. package/plugins/CmsModelPlugin.d.ts +10 -8
  426. package/plugins/CmsModelPlugin.js +29 -16
  427. package/plugins/CmsModelPlugin.js.map +1 -1
  428. package/plugins/CmsParametersPlugin.js.map +1 -1
  429. package/plugins/CmsRichTextRendererPlugin.js.map +1 -1
  430. package/plugins/StorageOperationsCmsModelPlugin.js.map +1 -1
  431. package/plugins/StorageTransformPlugin.js.map +1 -1
  432. package/plugins/index.js.map +1 -1
  433. package/storage/default.js.map +1 -1
  434. package/storage/index.js.map +1 -1
  435. package/storage/json.js.map +1 -1
  436. package/storage/object.js.map +1 -1
  437. package/types/context.d.ts +146 -0
  438. package/types/context.js +7 -0
  439. package/types/context.js.map +1 -0
  440. package/types/fields/dynamicZoneField.d.ts +23 -0
  441. package/types/fields/dynamicZoneField.js +7 -0
  442. package/types/fields/dynamicZoneField.js.map +1 -0
  443. package/types/fields/objectField.d.ts +13 -0
  444. package/types/fields/objectField.js +7 -0
  445. package/types/fields/objectField.js.map +1 -0
  446. package/types/identity.d.ts +19 -0
  447. package/types/identity.js +7 -0
  448. package/types/identity.js.map +1 -0
  449. package/types/index.d.ts +10 -0
  450. package/types/index.js +117 -0
  451. package/types/index.js.map +1 -0
  452. package/types/model.d.ts +199 -0
  453. package/types/model.js +7 -0
  454. package/types/model.js.map +1 -0
  455. package/types/modelAst.d.ts +39 -0
  456. package/types/modelAst.js +7 -0
  457. package/types/modelAst.js.map +1 -0
  458. package/types/modelField.d.ts +320 -0
  459. package/types/modelField.js +7 -0
  460. package/types/modelField.js.map +1 -0
  461. package/types/modelGroup.d.ts +77 -0
  462. package/types/modelGroup.js +7 -0
  463. package/types/modelGroup.js.map +1 -0
  464. package/types/plugins.d.ts +364 -0
  465. package/types/plugins.js +7 -0
  466. package/types/plugins.js.map +1 -0
  467. package/{types.d.ts → types/types.d.ts} +196 -1171
  468. package/{types.js → types/types.js} +18 -119
  469. package/types/types.js.map +1 -0
  470. package/utils/caching/Cache.js.map +1 -1
  471. package/utils/caching/CacheKey.js.map +1 -1
  472. package/utils/caching/index.js.map +1 -1
  473. package/utils/caching/types.js.map +1 -1
  474. package/utils/contentEntryTraverser/ContentEntryTraverser.d.ts +10 -0
  475. package/utils/contentEntryTraverser/ContentEntryTraverser.js +84 -0
  476. package/utils/contentEntryTraverser/ContentEntryTraverser.js.map +1 -0
  477. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.d.ts +6 -0
  478. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.js +23 -0
  479. package/utils/contentModelAst/CmsModelFieldToAstConverterFromPlugins.js.map +1 -0
  480. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.d.ts +7 -0
  481. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.js +22 -0
  482. package/utils/contentModelAst/CmsModelFieldToAstFromPlugin.js.map +1 -0
  483. package/utils/contentModelAst/CmsModelToAstConverter.d.ts +11 -0
  484. package/utils/contentModelAst/CmsModelToAstConverter.js +28 -0
  485. package/utils/contentModelAst/CmsModelToAstConverter.js.map +1 -0
  486. package/utils/contentModelAst/index.d.ts +3 -0
  487. package/utils/contentModelAst/index.js +40 -0
  488. package/utils/contentModelAst/index.js.map +1 -0
  489. package/utils/converters/Converter.js.map +1 -1
  490. package/utils/converters/ConverterCollection.js.map +1 -1
  491. package/utils/converters/valueKeyStorageConverter.js.map +1 -1
  492. package/utils/createModelField.d.ts +2 -0
  493. package/utils/createModelField.js +14 -4
  494. package/utils/createModelField.js.map +1 -1
  495. package/utils/createTypeFromFields.js.map +1 -1
  496. package/utils/createTypeName.js.map +1 -1
  497. package/utils/date.js.map +1 -1
  498. package/utils/entryStorage.js.map +1 -1
  499. package/utils/filterAsync.js.map +1 -1
  500. package/utils/getBaseFieldType.js.map +1 -1
  501. package/utils/getEntryDescription.js.map +1 -1
  502. package/utils/getEntryImage.js.map +1 -1
  503. package/utils/getEntryTitle.js.map +1 -1
  504. package/utils/getSchemaFromFieldPlugins.d.ts +4 -4
  505. package/utils/getSchemaFromFieldPlugins.js +2 -2
  506. package/utils/getSchemaFromFieldPlugins.js.map +1 -1
  507. package/utils/identity.js.map +1 -1
  508. package/utils/incrementEntryIdVersion.js.map +1 -1
  509. package/utils/index.js.map +1 -1
  510. package/utils/isHeadlessCmsReady.js.map +1 -1
  511. package/utils/renderFields.js.map +1 -1
  512. package/utils/renderGetFilterFields.js.map +1 -1
  513. package/utils/renderInputFields.js.map +1 -1
  514. package/utils/renderListFilterFields.js.map +1 -1
  515. package/utils/renderSortEnum.js.map +1 -1
  516. package/utils/toSlug.js.map +1 -1
  517. package/validators/dateGte.js.map +1 -1
  518. package/validators/dateLte.js.map +1 -1
  519. package/validators/gte.js.map +1 -1
  520. package/validators/in.js.map +1 -1
  521. package/validators/index.js.map +1 -1
  522. package/validators/lte.js.map +1 -1
  523. package/validators/maxLength.js.map +1 -1
  524. package/validators/minLength.js.map +1 -1
  525. package/validators/pattern.js.map +1 -1
  526. package/validators/patternPlugins/email.js.map +1 -1
  527. package/validators/patternPlugins/index.js.map +1 -1
  528. package/validators/patternPlugins/lowerCase.js.map +1 -1
  529. package/validators/patternPlugins/lowerCaseSpace.js.map +1 -1
  530. package/validators/patternPlugins/upperCase.js.map +1 -1
  531. package/validators/patternPlugins/upperCaseSpace.js.map +1 -1
  532. package/validators/patternPlugins/url.js.map +1 -1
  533. package/validators/required.js.map +1 -1
  534. package/validators/timeGte.js.map +1 -1
  535. package/validators/timeLte.js.map +1 -1
  536. package/validators/unique.js.map +1 -1
  537. package/plugins/CmsGraphQLSchemaPlugin.d.ts +0 -5
  538. package/plugins/CmsGraphQLSchemaPlugin.js.map +0 -1
  539. package/types.js.map +0 -1
  540. package/utils/permissions/EntriesPermissions.d.ts +0 -4
  541. package/utils/permissions/EntriesPermissions.js +0 -11
  542. package/utils/permissions/EntriesPermissions.js.map +0 -1
  543. package/utils/permissions/ModelGroupsPermissions.d.ts +0 -9
  544. package/utils/permissions/ModelGroupsPermissions.js +0 -50
  545. package/utils/permissions/ModelGroupsPermissions.js.map +0 -1
  546. package/utils/permissions/ModelsPermissions.d.ts +0 -22
  547. package/utils/permissions/ModelsPermissions.js +0 -90
  548. package/utils/permissions/ModelsPermissions.js.map +0 -1
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetEntriesByIdsNotDeleted = void 0;
7
+ class GetEntriesByIdsNotDeleted {
8
+ constructor(getEntriesByIds) {
9
+ this.getEntriesByIds = getEntriesByIds;
10
+ }
11
+ async execute(model, params) {
12
+ const entries = await this.getEntriesByIds.execute(model, params);
13
+ return entries.filter(entry => !entry.wbyDeleted);
14
+ }
15
+ }
16
+ exports.GetEntriesByIdsNotDeleted = GetEntriesByIdsNotDeleted;
17
+
18
+ //# sourceMappingURL=GetEntriesByIdsNotDeleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetEntriesByIdsNotDeleted","constructor","getEntriesByIds","execute","model","params","entries","filter","entry","wbyDeleted","exports"],"sources":["GetEntriesByIdsNotDeleted.ts"],"sourcesContent":["import { IGetEntriesByIds } from \"../../abstractions\";\nimport { CmsEntryStorageOperationsGetByIdsParams, CmsModel } from \"~/types\";\n\nexport class GetEntriesByIdsNotDeleted implements IGetEntriesByIds {\n private getEntriesByIds: IGetEntriesByIds;\n\n constructor(getEntriesByIds: IGetEntriesByIds) {\n this.getEntriesByIds = getEntriesByIds;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetByIdsParams) {\n const entries = await this.getEntriesByIds.execute(model, params);\n return entries.filter(entry => !entry.wbyDeleted);\n }\n}\n"],"mappings":";;;;;;AAGO,MAAMA,yBAAyB,CAA6B;EAG/DC,WAAWA,CAACC,eAAiC,EAAE;IAC3C,IAAI,CAACA,eAAe,GAAGA,eAAe;EAC1C;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAA+C,EAAE;IAC5E,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACJ,eAAe,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IACjE,OAAOC,OAAO,CAACC,MAAM,CAACC,KAAK,IAAI,CAACA,KAAK,CAACC,UAAU,CAAC;EACrD;AACJ;AAACC,OAAA,CAAAV,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import { AccessControl } from "../../../AccessControl/AccessControl";
2
+ import { IGetEntriesByIds } from "../../abstractions";
3
+ import { CmsEntryStorageOperationsGetByIdsParams, CmsModel } from "../../../../types";
4
+ export declare class GetEntriesByIdsSecure implements IGetEntriesByIds {
5
+ private accessControl;
6
+ private getEntriesByIds;
7
+ constructor(accessControl: AccessControl, getEntriesByIds: IGetEntriesByIds);
8
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetByIdsParams): Promise<import("../../../../types").CmsStorageEntry[]>;
9
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetEntriesByIdsSecure = void 0;
7
+ var _filterAsync = require("../../../../utils/filterAsync");
8
+ class GetEntriesByIdsSecure {
9
+ constructor(accessControl, getEntriesByIds) {
10
+ this.accessControl = accessControl;
11
+ this.getEntriesByIds = getEntriesByIds;
12
+ }
13
+ async execute(model, params) {
14
+ await this.accessControl.ensureCanAccessEntry({
15
+ model
16
+ });
17
+ const entries = await this.getEntriesByIds.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.GetEntriesByIdsSecure = GetEntriesByIdsSecure;
27
+
28
+ //# sourceMappingURL=GetEntriesByIdsSecure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_filterAsync","require","GetEntriesByIdsSecure","constructor","accessControl","getEntriesByIds","execute","model","params","ensureCanAccessEntry","entries","filterAsync","entry","canAccessEntry","exports"],"sources":["GetEntriesByIdsSecure.ts"],"sourcesContent":["import { AccessControl } from \"~/crud/AccessControl/AccessControl\";\nimport { filterAsync } from \"~/utils/filterAsync\";\nimport { IGetEntriesByIds } from \"../../abstractions\";\nimport { CmsEntryStorageOperationsGetByIdsParams, CmsModel } from \"~/types\";\n\nexport class GetEntriesByIdsSecure implements IGetEntriesByIds {\n private accessControl: AccessControl;\n private getEntriesByIds: IGetEntriesByIds;\n\n constructor(accessControl: AccessControl, getEntriesByIds: IGetEntriesByIds) {\n this.accessControl = accessControl;\n this.getEntriesByIds = getEntriesByIds;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetByIdsParams) {\n await this.accessControl.ensureCanAccessEntry({ model });\n\n const entries = await this.getEntriesByIds.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,qBAAqB,CAA6B;EAI3DC,WAAWA,CAACC,aAA4B,EAAEC,eAAiC,EAAE;IACzE,IAAI,CAACD,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACC,eAAe,GAAGA,eAAe;EAC1C;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAA+C,EAAE;IAC5E,MAAM,IAAI,CAACJ,aAAa,CAACK,oBAAoB,CAAC;MAAEF;IAAM,CAAC,CAAC;IAExD,MAAMG,OAAO,GAAG,MAAM,IAAI,CAACL,eAAe,CAACC,OAAO,CAACC,KAAK,EAAEC,MAAM,CAAC;IAEjE,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,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import { GetEntriesByIdsNotDeleted } from "./GetEntriesByIdsNotDeleted";
2
+ import { AccessControl } from "../../../AccessControl/AccessControl";
3
+ import { CmsEntryStorageOperations } from "../../../../types";
4
+ interface GetEntriesByIdsUseCasesParams {
5
+ operation: CmsEntryStorageOperations["getByIds"];
6
+ accessControl: AccessControl;
7
+ }
8
+ export declare const getEntriesByIdsUseCases: (params: GetEntriesByIdsUseCasesParams) => {
9
+ getEntriesByIdsUseCase: GetEntriesByIdsNotDeleted;
10
+ };
11
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getEntriesByIdsUseCases = void 0;
7
+ var _GetEntriesByIds = require("./GetEntriesByIds");
8
+ var _GetEntriesByIdsSecure = require("./GetEntriesByIdsSecure");
9
+ var _GetEntriesByIdsNotDeleted = require("./GetEntriesByIdsNotDeleted");
10
+ const getEntriesByIdsUseCases = params => {
11
+ const getEntriesByIds = new _GetEntriesByIds.GetEntriesByIds(params.operation);
12
+ const getEntriesByIdsSecure = new _GetEntriesByIdsSecure.GetEntriesByIdsSecure(params.accessControl, getEntriesByIds);
13
+ const getEntriesByIdsNotDeleted = new _GetEntriesByIdsNotDeleted.GetEntriesByIdsNotDeleted(getEntriesByIdsSecure);
14
+ return {
15
+ getEntriesByIdsUseCase: getEntriesByIdsNotDeleted
16
+ };
17
+ };
18
+ exports.getEntriesByIdsUseCases = getEntriesByIdsUseCases;
19
+
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_GetEntriesByIds","require","_GetEntriesByIdsSecure","_GetEntriesByIdsNotDeleted","getEntriesByIdsUseCases","params","getEntriesByIds","GetEntriesByIds","operation","getEntriesByIdsSecure","GetEntriesByIdsSecure","accessControl","getEntriesByIdsNotDeleted","GetEntriesByIdsNotDeleted","getEntriesByIdsUseCase","exports"],"sources":["index.ts"],"sourcesContent":["import { GetEntriesByIds } from \"./GetEntriesByIds\";\nimport { GetEntriesByIdsSecure } from \"./GetEntriesByIdsSecure\";\nimport { GetEntriesByIdsNotDeleted } from \"./GetEntriesByIdsNotDeleted\";\nimport { AccessControl } from \"~/crud/AccessControl/AccessControl\";\nimport { CmsEntryStorageOperations } from \"~/types\";\n\ninterface GetEntriesByIdsUseCasesParams {\n operation: CmsEntryStorageOperations[\"getByIds\"];\n accessControl: AccessControl;\n}\n\nexport const getEntriesByIdsUseCases = (params: GetEntriesByIdsUseCasesParams) => {\n const getEntriesByIds = new GetEntriesByIds(params.operation);\n const getEntriesByIdsSecure = new GetEntriesByIdsSecure(params.accessControl, getEntriesByIds);\n const getEntriesByIdsNotDeleted = new GetEntriesByIdsNotDeleted(getEntriesByIdsSecure);\n\n return {\n getEntriesByIdsUseCase: getEntriesByIdsNotDeleted\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AASO,MAAMG,uBAAuB,GAAIC,MAAqC,IAAK;EAC9E,MAAMC,eAAe,GAAG,IAAIC,gCAAe,CAACF,MAAM,CAACG,SAAS,CAAC;EAC7D,MAAMC,qBAAqB,GAAG,IAAIC,4CAAqB,CAACL,MAAM,CAACM,aAAa,EAAEL,eAAe,CAAC;EAC9F,MAAMM,yBAAyB,GAAG,IAAIC,oDAAyB,CAACJ,qBAAqB,CAAC;EAEtF,OAAO;IACHK,sBAAsB,EAAEF;EAC5B,CAAC;AACL,CAAC;AAACG,OAAA,CAAAX,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import { IGetLatestEntriesByIds } from "../../abstractions";
2
+ import { CmsEntryStorageOperations, CmsEntryStorageOperationsGetLatestByIdsParams, CmsModel } from "../../../../types";
3
+ export declare class GetLatestEntriesByIds implements IGetLatestEntriesByIds {
4
+ private operation;
5
+ constructor(operation: CmsEntryStorageOperations["getLatestByIds"]);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestByIdsParams): Promise<import("../../../../types").CmsStorageEntry[]>;
7
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetLatestEntriesByIds = void 0;
7
+ class GetLatestEntriesByIds {
8
+ constructor(operation) {
9
+ this.operation = operation;
10
+ }
11
+ async execute(model, params) {
12
+ return await this.operation(model, params);
13
+ }
14
+ }
15
+ exports.GetLatestEntriesByIds = GetLatestEntriesByIds;
16
+
17
+ //# sourceMappingURL=GetLatestEntriesByIds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetLatestEntriesByIds","constructor","operation","execute","model","params","exports"],"sources":["GetLatestEntriesByIds.ts"],"sourcesContent":["import { IGetLatestEntriesByIds } from \"../../abstractions\";\nimport {\n CmsEntryStorageOperations,\n CmsEntryStorageOperationsGetLatestByIdsParams,\n CmsModel\n} from \"~/types\";\n\nexport class GetLatestEntriesByIds implements IGetLatestEntriesByIds {\n private operation: CmsEntryStorageOperations[\"getLatestByIds\"];\n\n constructor(operation: CmsEntryStorageOperations[\"getLatestByIds\"]) {\n this.operation = operation;\n }\n\n async execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestByIdsParams) {\n return await this.operation(model, params);\n }\n}\n"],"mappings":";;;;;;AAOO,MAAMA,qBAAqB,CAAmC;EAGjEC,WAAWA,CAACC,SAAsD,EAAE;IAChE,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC9B;EAEA,MAAMC,OAAOA,CAACC,KAAe,EAAEC,MAAqD,EAAE;IAClF,OAAO,MAAM,IAAI,CAACH,SAAS,CAACE,KAAK,EAAEC,MAAM,CAAC;EAC9C;AACJ;AAACC,OAAA,CAAAN,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import { IGetLatestEntriesByIds } from "../../abstractions";
2
+ import { CmsEntryStorageOperationsGetLatestByIdsParams, CmsModel } from "../../../../types";
3
+ export declare class GetLatestEntriesByIdsNotDeleted implements IGetLatestEntriesByIds {
4
+ private getLatestEntriesByIds;
5
+ constructor(getLatestEntriesByIds: IGetLatestEntriesByIds);
6
+ execute(model: CmsModel, params: CmsEntryStorageOperationsGetLatestByIdsParams): Promise<import("../../../../types").CmsStorageEntry[]>;
7
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GetLatestEntriesByIdsNotDeleted = void 0;
7
+ class GetLatestEntriesByIdsNotDeleted {
8
+ constructor(getLatestEntriesByIds) {
9
+ this.getLatestEntriesByIds = getLatestEntriesByIds;
10
+ }
11
+ async execute(model, params) {
12
+ const entries = await this.getLatestEntriesByIds.execute(model, params);
13
+ return entries.filter(entry => !entry.wbyDeleted);
14
+ }
15
+ }
16
+ exports.GetLatestEntriesByIdsNotDeleted = GetLatestEntriesByIdsNotDeleted;
17
+
18
+ //# sourceMappingURL=GetLatestEntriesByIdsNotDeleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GetLatestEntriesByIdsNotDeleted","constructor","getLatestEntriesByIds","execute","model","params","entries","filter","entry","wbyDeleted","exports"],"sources":["GetLatestEntriesByIdsNotDeleted.ts"],"sourcesContent":["import { IGetLatestEntriesByIds } from \"../../abstractions\";\nimport { 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 { AccessControl } from "../../../AccessControl/AccessControl";
2
+ import { IGetLatestEntriesByIds } from "../../abstractions";
3
+ import { 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 { AccessControl } from \"~/crud/AccessControl/AccessControl\";\nimport { filterAsync } from \"~/utils/filterAsync\";\nimport { IGetLatestEntriesByIds } from \"../../abstractions\";\nimport { 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 { CmsEntryStorageOperations } from "../../../../types";
3
+ import { 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 { CmsEntryStorageOperations } from \"~/types\";\nimport { 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 { IGetLatestRevisionByEntryId } from "../../abstractions";
2
+ import { 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 { IGetLatestRevisionByEntryId } from \"../../abstractions\";\nimport {\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 { IGetLatestRevisionByEntryId } from "../../abstractions";
2
+ import { 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 { IGetLatestRevisionByEntryId } from \"../../abstractions\";\nimport { 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 { IGetLatestRevisionByEntryId } from "../../abstractions";
2
+ import { 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 { IGetLatestRevisionByEntryId } from \"../../abstractions\";\nimport { 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 { 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 { 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 { IGetPreviousRevisionByEntryId } from "../../abstractions";
2
+ import { 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 { IGetPreviousRevisionByEntryId } from \"../../abstractions\";\nimport {\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 { IGetPreviousRevisionByEntryId } from "../../abstractions";
2
+ import { 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 { IGetPreviousRevisionByEntryId } from \"../../abstractions\";\nimport { 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 { 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 { 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 { IGetPublishedEntriesByIds } from "../../abstractions";
2
+ import { 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 { IGetPublishedEntriesByIds } from \"../../abstractions\";\nimport {\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 { IGetPublishedEntriesByIds } from "../../abstractions";
2
+ import { 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 { IGetPublishedEntriesByIds } from \"../../abstractions\";\nimport { 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 { AccessControl } from "../../../AccessControl/AccessControl";
2
+ import { IGetPublishedEntriesByIds } from "../../abstractions";
3
+ import { 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
+ }