@webiny/api-headless-cms 0.0.0-unstable.7be00a75a9 → 0.0.0-unstable.7c2def32a7

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 (873) hide show
  1. package/HeadlessCmsEndpointConfig.d.ts +10 -0
  2. package/HeadlessCmsEndpointConfig.js +5 -0
  3. package/HeadlessCmsEndpointConfig.js.map +1 -0
  4. package/HeadlessCmsFeature.d.ts +10 -0
  5. package/HeadlessCmsFeature.js +168 -0
  6. package/HeadlessCmsFeature.js.map +1 -0
  7. package/createCmsRoute.d.ts +24 -0
  8. package/createCmsRoute.js +47 -0
  9. package/createCmsRoute.js.map +1 -0
  10. package/crud/contentEntry/entryDataValidation.d.ts +1 -1
  11. package/crud/contentEntry/entryDataValidation.js +43 -22
  12. package/crud/contentEntry/entryDataValidation.js.map +1 -1
  13. package/crud/contentEntry/references/validateEntries.d.ts +1 -1
  14. package/crud/contentEntry/references/validateEntries.js +17 -7
  15. package/crud/contentEntry/references/validateEntries.js.map +1 -1
  16. package/crud/contentModel/defaultFields.js +3 -2
  17. package/crud/contentModel/defaultFields.js.map +1 -1
  18. package/domain/contentModel/schemas.d.ts +10 -6
  19. package/domain/contentModel/schemas.js +6 -3
  20. package/domain/contentModel/schemas.js.map +1 -1
  21. package/domain/contentModel/validation/dateExpressions.d.ts +6 -0
  22. package/domain/contentModel/validation/dateExpressions.js +27 -0
  23. package/domain/contentModel/validation/dateExpressions.js.map +1 -0
  24. package/domain/contentModel/validation/modelFields.js +23 -15
  25. package/domain/contentModel/validation/modelFields.js.map +1 -1
  26. package/export/abstractions.d.ts +9 -0
  27. package/export/abstractions.js +6 -0
  28. package/export/abstractions.js.map +1 -0
  29. package/export/crud/exporting.js +8 -2
  30. package/export/crud/exporting.js.map +1 -1
  31. package/export/crud/importing.js +13 -4
  32. package/export/crud/importing.js.map +1 -1
  33. package/export/crud/imports/importGroups.js +23 -23
  34. package/export/crud/imports/importGroups.js.map +1 -1
  35. package/export/crud/imports/importModels.js +25 -22
  36. package/export/crud/imports/importModels.js.map +1 -1
  37. package/export/graphql/index.d.ts +2 -3
  38. package/export/graphql/index.js +6 -10
  39. package/export/graphql/index.js.map +1 -1
  40. package/exports/api/cms/entry.d.ts +2 -0
  41. package/exports/api/cms/entry.js +2 -0
  42. package/exports/api/cms/model.d.ts +4 -1
  43. package/exports/api/cms/model.js +2 -0
  44. package/exports/api/cms/storage.d.ts +0 -1
  45. package/exports/api/cms/storage.js +0 -1
  46. package/features/ai/DescribeContentModelTool.d.ts +60 -0
  47. package/features/ai/DescribeContentModelTool.js +69 -0
  48. package/features/ai/DescribeContentModelTool.js.map +1 -0
  49. package/features/ai/ListContentModelsTool.d.ts +46 -0
  50. package/features/ai/ListContentModelsTool.js +53 -0
  51. package/features/ai/ListContentModelsTool.js.map +1 -0
  52. package/features/ai/QueryEntriesTool.d.ts +80 -0
  53. package/features/ai/QueryEntriesTool.js +99 -0
  54. package/features/ai/QueryEntriesTool.js.map +1 -0
  55. package/features/ai/feature.d.ts +8 -0
  56. package/features/ai/feature.js +15 -0
  57. package/features/ai/feature.js.map +1 -0
  58. package/features/ai/index.d.ts +4 -0
  59. package/features/ai/index.js +4 -0
  60. package/features/contentEntry/ContentEntriesFeature.js +6 -0
  61. package/features/contentEntry/ContentEntriesFeature.js.map +1 -1
  62. package/features/contentEntry/CreateEntry/CreateEntryRepository.d.ts +9 -5
  63. package/features/contentEntry/CreateEntry/CreateEntryRepository.js +13 -9
  64. package/features/contentEntry/CreateEntry/CreateEntryRepository.js.map +1 -1
  65. package/features/contentEntry/CreateEntry/CreateEntryUseCase.d.ts +5 -3
  66. package/features/contentEntry/CreateEntry/CreateEntryUseCase.js +5 -7
  67. package/features/contentEntry/CreateEntry/CreateEntryUseCase.js.map +1 -1
  68. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.d.ts +9 -5
  69. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.js +13 -9
  70. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.js.map +1 -1
  71. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.d.ts +5 -5
  72. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.js +8 -17
  73. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.js.map +1 -1
  74. package/features/contentEntry/CreateEntryRevisionFrom/abstractions.d.ts +2 -0
  75. package/features/contentEntry/CreateEntryRevisionFrom/abstractions.js.map +1 -1
  76. package/features/contentEntry/DeleteEntry/DeleteEntryRepository.d.ts +9 -5
  77. package/features/contentEntry/DeleteEntry/DeleteEntryRepository.js +13 -9
  78. package/features/contentEntry/DeleteEntry/DeleteEntryRepository.js.map +1 -1
  79. package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.d.ts +5 -3
  80. package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.js +4 -5
  81. package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.js.map +1 -1
  82. package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.d.ts +8 -4
  83. package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.js +12 -9
  84. package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.js.map +1 -1
  85. package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.d.ts +5 -3
  86. package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.js +4 -5
  87. package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.js.map +1 -1
  88. package/features/contentEntry/DeleteEntry/decorators/ForceDeleteDecorator.d.ts +3 -3
  89. package/features/contentEntry/DeleteEntry/decorators/ForceDeleteDecorator.js +5 -5
  90. package/features/contentEntry/DeleteEntry/decorators/ForceDeleteDecorator.js.map +1 -1
  91. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.d.ts +8 -4
  92. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.js +14 -9
  93. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.js.map +1 -1
  94. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.d.ts +5 -3
  95. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.js +4 -5
  96. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.js.map +1 -1
  97. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.d.ts +9 -5
  98. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.js +12 -9
  99. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.js.map +1 -1
  100. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.d.ts +5 -3
  101. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.js +4 -5
  102. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.js.map +1 -1
  103. package/features/contentEntry/DuplicateEntry/DuplicateEntryUseCase.d.ts +17 -0
  104. package/features/contentEntry/DuplicateEntry/DuplicateEntryUseCase.js +83 -0
  105. package/features/contentEntry/DuplicateEntry/DuplicateEntryUseCase.js.map +1 -0
  106. package/features/contentEntry/DuplicateEntry/abstractions.d.ts +47 -0
  107. package/features/contentEntry/DuplicateEntry/abstractions.js +5 -0
  108. package/features/contentEntry/DuplicateEntry/abstractions.js.map +1 -0
  109. package/features/contentEntry/DuplicateEntry/events.d.ts +41 -0
  110. package/features/contentEntry/DuplicateEntry/events.js +32 -0
  111. package/features/contentEntry/DuplicateEntry/events.js.map +1 -0
  112. package/features/contentEntry/DuplicateEntry/feature.d.ts +4 -0
  113. package/features/contentEntry/DuplicateEntry/feature.js +11 -0
  114. package/features/contentEntry/DuplicateEntry/feature.js.map +1 -0
  115. package/features/contentEntry/DuplicateEntry/index.d.ts +2 -0
  116. package/features/contentEntry/DuplicateEntry/index.js +2 -0
  117. package/features/contentEntry/DuplicateEntry/prepareDuplicateValues.d.ts +7 -0
  118. package/features/contentEntry/DuplicateEntry/prepareDuplicateValues.js +12 -0
  119. package/features/contentEntry/DuplicateEntry/prepareDuplicateValues.js.map +1 -0
  120. package/features/contentEntry/EntryEventPublisher/EntryEventPublisher.d.ts +10 -0
  121. package/features/contentEntry/EntryEventPublisher/EntryEventPublisher.js +25 -0
  122. package/features/contentEntry/EntryEventPublisher/EntryEventPublisher.js.map +1 -0
  123. package/features/contentEntry/EntryEventPublisher/abstractions.d.ts +16 -0
  124. package/features/contentEntry/EntryEventPublisher/abstractions.js +5 -0
  125. package/features/contentEntry/EntryEventPublisher/abstractions.js.map +1 -0
  126. package/features/contentEntry/EntryEventPublisher/feature.d.ts +4 -0
  127. package/features/contentEntry/EntryEventPublisher/feature.js +11 -0
  128. package/features/contentEntry/EntryEventPublisher/feature.js.map +1 -0
  129. package/features/contentEntry/EntryEventPublisher/index.d.ts +2 -0
  130. package/features/contentEntry/EntryEventPublisher/index.js +2 -0
  131. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.d.ts +9 -7
  132. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.js +12 -16
  133. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.js.map +1 -1
  134. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsUseCase.d.ts +3 -1
  135. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsUseCase.js +2 -3
  136. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsUseCase.js.map +1 -1
  137. package/features/contentEntry/GetEntry/GetEntryUseCase.d.ts +3 -1
  138. package/features/contentEntry/GetEntry/GetEntryUseCase.js +2 -3
  139. package/features/contentEntry/GetEntry/GetEntryUseCase.js.map +1 -1
  140. package/features/contentEntry/GetEntryById/GetEntryByIdUseCase.d.ts +3 -1
  141. package/features/contentEntry/GetEntryById/GetEntryByIdUseCase.js +2 -3
  142. package/features/contentEntry/GetEntryById/GetEntryByIdUseCase.js.map +1 -1
  143. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.d.ts +9 -5
  144. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.js +12 -9
  145. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.js.map +1 -1
  146. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsUseCase.d.ts +3 -1
  147. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsUseCase.js +2 -3
  148. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsUseCase.js.map +1 -1
  149. package/features/contentEntry/GetLatestRevisionByEntryId/BaseUseCase.d.ts +3 -1
  150. package/features/contentEntry/GetLatestRevisionByEntryId/BaseUseCase.js +2 -3
  151. package/features/contentEntry/GetLatestRevisionByEntryId/BaseUseCase.js.map +1 -1
  152. package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.d.ts +9 -5
  153. package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.js +12 -9
  154. package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.js.map +1 -1
  155. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestDeletedRevisionByEntryIdUseCase.d.ts +3 -1
  156. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestDeletedRevisionByEntryIdUseCase.js +2 -3
  157. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestDeletedRevisionByEntryIdUseCase.js.map +1 -1
  158. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdIncludingDeletedUseCase.d.ts +3 -1
  159. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdIncludingDeletedUseCase.js +1 -3
  160. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdIncludingDeletedUseCase.js.map +1 -1
  161. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdUseCase.d.ts +3 -1
  162. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdUseCase.js +2 -3
  163. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdUseCase.js.map +1 -1
  164. package/features/contentEntry/GetPreviousRevisionByEntryId/BaseUseCase.d.ts +3 -1
  165. package/features/contentEntry/GetPreviousRevisionByEntryId/BaseUseCase.js +2 -3
  166. package/features/contentEntry/GetPreviousRevisionByEntryId/BaseUseCase.js.map +1 -1
  167. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.d.ts +9 -5
  168. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.js +12 -9
  169. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.js.map +1 -1
  170. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdUseCase.d.ts +3 -1
  171. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdUseCase.js +2 -3
  172. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdUseCase.js.map +1 -1
  173. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.d.ts +9 -5
  174. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.js +12 -9
  175. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.js.map +1 -1
  176. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsUseCase.d.ts +3 -1
  177. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsUseCase.js +2 -3
  178. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsUseCase.js.map +1 -1
  179. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.d.ts +9 -5
  180. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.js +12 -9
  181. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.js.map +1 -1
  182. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdUseCase.d.ts +3 -1
  183. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdUseCase.js +2 -3
  184. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdUseCase.js.map +1 -1
  185. package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.d.ts +9 -5
  186. package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.js +12 -9
  187. package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.js.map +1 -1
  188. package/features/contentEntry/GetRevisionById/GetRevisionByIdUseCase.d.ts +3 -1
  189. package/features/contentEntry/GetRevisionById/GetRevisionByIdUseCase.js +1 -3
  190. package/features/contentEntry/GetRevisionById/GetRevisionByIdUseCase.js.map +1 -1
  191. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.d.ts +9 -5
  192. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.js +12 -9
  193. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.js.map +1 -1
  194. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdUseCase.d.ts +3 -1
  195. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdUseCase.js +2 -3
  196. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdUseCase.js.map +1 -1
  197. package/features/contentEntry/GetSingletonEntry/GetSingletonEntryUseCase.js +1 -3
  198. package/features/contentEntry/GetSingletonEntry/GetSingletonEntryUseCase.js.map +1 -1
  199. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.d.ts +9 -5
  200. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.js +12 -9
  201. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.js.map +1 -1
  202. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.d.ts +6 -2
  203. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.js +8 -6
  204. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.js.map +1 -1
  205. package/features/contentEntry/ListEntries/ListDeletedEntriesUseCase.d.ts +3 -1
  206. package/features/contentEntry/ListEntries/ListDeletedEntriesUseCase.js +1 -3
  207. package/features/contentEntry/ListEntries/ListDeletedEntriesUseCase.js.map +1 -1
  208. package/features/contentEntry/ListEntries/ListEntriesRepository.d.ts +9 -5
  209. package/features/contentEntry/ListEntries/ListEntriesRepository.js +12 -9
  210. package/features/contentEntry/ListEntries/ListEntriesRepository.js.map +1 -1
  211. package/features/contentEntry/ListEntries/ListEntriesUseCase.d.ts +3 -1
  212. package/features/contentEntry/ListEntries/ListEntriesUseCase.js +2 -3
  213. package/features/contentEntry/ListEntries/ListEntriesUseCase.js.map +1 -1
  214. package/features/contentEntry/ListEntries/ListLatestEntriesUseCase.d.ts +3 -1
  215. package/features/contentEntry/ListEntries/ListLatestEntriesUseCase.js +1 -3
  216. package/features/contentEntry/ListEntries/ListLatestEntriesUseCase.js.map +1 -1
  217. package/features/contentEntry/ListEntries/ListPublishedEntriesUseCase.d.ts +3 -1
  218. package/features/contentEntry/ListEntries/ListPublishedEntriesUseCase.js +1 -3
  219. package/features/contentEntry/ListEntries/ListPublishedEntriesUseCase.js.map +1 -1
  220. package/features/contentEntry/MoveEntry/MoveEntryRepository.d.ts +9 -5
  221. package/features/contentEntry/MoveEntry/MoveEntryRepository.js +12 -9
  222. package/features/contentEntry/MoveEntry/MoveEntryRepository.js.map +1 -1
  223. package/features/contentEntry/MoveEntry/MoveEntryUseCase.d.ts +5 -3
  224. package/features/contentEntry/MoveEntry/MoveEntryUseCase.js +4 -5
  225. package/features/contentEntry/MoveEntry/MoveEntryUseCase.js.map +1 -1
  226. package/features/contentEntry/PublishEntry/PublishEntryRepository.d.ts +9 -5
  227. package/features/contentEntry/PublishEntry/PublishEntryRepository.js +13 -9
  228. package/features/contentEntry/PublishEntry/PublishEntryRepository.js.map +1 -1
  229. package/features/contentEntry/PublishEntry/PublishEntryUseCase.d.ts +7 -7
  230. package/features/contentEntry/PublishEntry/PublishEntryUseCase.js +13 -16
  231. package/features/contentEntry/PublishEntry/PublishEntryUseCase.js.map +1 -1
  232. package/features/contentEntry/PublishEntry/abstractions.d.ts +8 -1
  233. package/features/contentEntry/PublishEntry/abstractions.js.map +1 -1
  234. package/features/contentEntry/RepublishEntry/RepublishEntryRepository.d.ts +11 -5
  235. package/features/contentEntry/RepublishEntry/RepublishEntryRepository.js +17 -10
  236. package/features/contentEntry/RepublishEntry/RepublishEntryRepository.js.map +1 -1
  237. package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.d.ts +5 -3
  238. package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.js +7 -6
  239. package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.js.map +1 -1
  240. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.d.ts +9 -5
  241. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.js +13 -9
  242. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.js.map +1 -1
  243. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.d.ts +5 -3
  244. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.js +4 -5
  245. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.js.map +1 -1
  246. package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.d.ts +9 -5
  247. package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.js +13 -9
  248. package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.js.map +1 -1
  249. package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.d.ts +5 -3
  250. package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.js +7 -6
  251. package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.js.map +1 -1
  252. package/features/contentEntry/UpdateEntry/UpdateEntryRepository.d.ts +9 -5
  253. package/features/contentEntry/UpdateEntry/UpdateEntryRepository.js +13 -9
  254. package/features/contentEntry/UpdateEntry/UpdateEntryRepository.js.map +1 -1
  255. package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.d.ts +5 -3
  256. package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.js +7 -6
  257. package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.js.map +1 -1
  258. package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.d.ts +6 -9
  259. package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.js +7 -17
  260. package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.js.map +1 -1
  261. package/features/contentEntry/ValidateEntry/ValidateEntryUseCase.d.ts +3 -1
  262. package/features/contentEntry/ValidateEntry/ValidateEntryUseCase.js +2 -3
  263. package/features/contentEntry/ValidateEntry/ValidateEntryUseCase.js.map +1 -1
  264. package/features/contentEntry/ensureItemIds.d.ts +13 -0
  265. package/features/contentEntry/ensureItemIds.js +22 -0
  266. package/features/contentEntry/ensureItemIds.js.map +1 -0
  267. package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.d.ts +6 -2
  268. package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.js +10 -6
  269. package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.js.map +1 -1
  270. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.d.ts +10 -6
  271. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.js +49 -20
  272. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.js.map +1 -1
  273. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/abstractions.d.ts +17 -1
  274. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/abstractions.js.map +1 -1
  275. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.d.ts +8 -4
  276. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.js +23 -18
  277. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.js.map +1 -1
  278. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/abstractions.d.ts +15 -1
  279. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/abstractions.js.map +1 -1
  280. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.d.ts +8 -4
  281. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.js +18 -15
  282. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.js.map +1 -1
  283. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/abstractions.d.ts +13 -1
  284. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/abstractions.js.map +1 -1
  285. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.d.ts +9 -7
  286. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.js +18 -20
  287. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.js.map +1 -1
  288. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/abstractions.d.ts +14 -2
  289. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/abstractions.js.map +1 -1
  290. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.d.ts +10 -4
  291. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.js +74 -32
  292. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.js.map +1 -1
  293. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/abstractions.d.ts +15 -1
  294. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/abstractions.js.map +1 -1
  295. package/features/contentEntry/entryDataFactories/hasEntryContentChanged.d.ts +24 -0
  296. package/features/contentEntry/entryDataFactories/hasEntryContentChanged.js +13 -0
  297. package/features/contentEntry/entryDataFactories/hasEntryContentChanged.js.map +1 -0
  298. package/features/contentModel/ComponentMapGenerator/ComponentMapGenerator.d.ts +14 -0
  299. package/features/contentModel/ComponentMapGenerator/ComponentMapGenerator.js +32 -0
  300. package/features/contentModel/ComponentMapGenerator/ComponentMapGenerator.js.map +1 -0
  301. package/features/contentModel/ComponentMapGenerator/abstractions.d.ts +8 -0
  302. package/features/contentModel/ComponentMapGenerator/abstractions.js +5 -0
  303. package/features/contentModel/ComponentMapGenerator/abstractions.js.map +1 -0
  304. package/features/contentModel/ComponentMapGenerator/feature.d.ts +4 -0
  305. package/features/contentModel/ComponentMapGenerator/feature.js +11 -0
  306. package/features/contentModel/ComponentMapGenerator/feature.js.map +1 -0
  307. package/features/contentModel/ComponentMapGenerator/index.d.ts +2 -0
  308. package/features/contentModel/ComponentMapGenerator/index.js +2 -0
  309. package/features/contentModel/ContentModelFeature.js +6 -0
  310. package/features/contentModel/ContentModelFeature.js.map +1 -1
  311. package/features/contentModel/CreateModel/CreateModelRepository.d.ts +4 -3
  312. package/features/contentModel/CreateModel/CreateModelRepository.js +6 -5
  313. package/features/contentModel/CreateModel/CreateModelRepository.js.map +1 -1
  314. package/features/contentModel/CreateModelFrom/CreateModelFromRepository.d.ts +4 -3
  315. package/features/contentModel/CreateModelFrom/CreateModelFromRepository.js +6 -5
  316. package/features/contentModel/CreateModelFrom/CreateModelFromRepository.js.map +1 -1
  317. package/features/contentModel/DeleteModel/DeleteModelRepository.d.ts +6 -4
  318. package/features/contentModel/DeleteModel/DeleteModelRepository.js +10 -6
  319. package/features/contentModel/DeleteModel/DeleteModelRepository.js.map +1 -1
  320. package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.d.ts +9 -3
  321. package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.js +36 -18
  322. package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.js.map +1 -1
  323. package/features/contentModel/ModelToAstConverter/ModelToAstConverter.d.ts +1 -1
  324. package/features/contentModel/ModelToAstConverter/ModelToAstConverter.js.map +1 -1
  325. package/features/contentModel/ModelToAstConverter/abstractions.d.ts +1 -1
  326. package/features/contentModel/ModelToAstConverter/abstractions.js.map +1 -1
  327. package/features/contentModel/RefModelsGenerator/RefModelsGenerator.d.ts +19 -0
  328. package/features/contentModel/RefModelsGenerator/RefModelsGenerator.js +56 -0
  329. package/features/contentModel/RefModelsGenerator/RefModelsGenerator.js.map +1 -0
  330. package/features/contentModel/RefModelsGenerator/abstractions.d.ts +11 -0
  331. package/features/contentModel/RefModelsGenerator/abstractions.js +5 -0
  332. package/features/contentModel/RefModelsGenerator/abstractions.js.map +1 -0
  333. package/features/contentModel/RefModelsGenerator/feature.d.ts +4 -0
  334. package/features/contentModel/RefModelsGenerator/feature.js +11 -0
  335. package/features/contentModel/RefModelsGenerator/feature.js.map +1 -0
  336. package/features/contentModel/RefModelsGenerator/index.d.ts +2 -0
  337. package/features/contentModel/RefModelsGenerator/index.js +2 -0
  338. package/features/contentModel/UpdateModel/UpdateModelRepository.d.ts +9 -4
  339. package/features/contentModel/UpdateModel/UpdateModelRepository.js +17 -9
  340. package/features/contentModel/UpdateModel/UpdateModelRepository.js.map +1 -1
  341. package/features/contentModel/UpdateModel/UpdateModelUseCase.js +2 -2
  342. package/features/contentModel/UpdateModel/UpdateModelUseCase.js.map +1 -1
  343. package/features/contentModel/UpdateModel/abstractions.d.ts +1 -1
  344. package/features/contentModel/UpdateModel/abstractions.js.map +1 -1
  345. package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.d.ts +16 -0
  346. package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.js +54 -0
  347. package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.js.map +1 -0
  348. package/features/contentModel/ValuesSelectionGenerator/abstractions.d.ts +8 -0
  349. package/features/contentModel/ValuesSelectionGenerator/abstractions.js +5 -0
  350. package/features/contentModel/ValuesSelectionGenerator/abstractions.js.map +1 -0
  351. package/features/contentModel/ValuesSelectionGenerator/feature.d.ts +4 -0
  352. package/features/contentModel/ValuesSelectionGenerator/feature.js +11 -0
  353. package/features/contentModel/ValuesSelectionGenerator/feature.js.map +1 -0
  354. package/features/contentModel/ValuesSelectionGenerator/index.d.ts +1 -0
  355. package/features/contentModel/ValuesSelectionGenerator/index.js +1 -0
  356. package/features/contentModel/shared/ModelsFetcher.d.ts +9 -8
  357. package/features/contentModel/shared/ModelsFetcher.js +5 -5
  358. package/features/contentModel/shared/ModelsFetcher.js.map +1 -1
  359. package/features/contentModel/shared/PluginModelsProvider.d.ts +9 -5
  360. package/features/contentModel/shared/PluginModelsProvider.js +11 -15
  361. package/features/contentModel/shared/PluginModelsProvider.js.map +1 -1
  362. package/features/contentModel/shared/abstractions.d.ts +10 -0
  363. package/features/contentModel/shared/abstractions.js +2 -1
  364. package/features/contentModel/shared/abstractions.js.map +1 -1
  365. package/features/contentModelGroup/CreateGroup/CreateGroupRepository.d.ts +10 -4
  366. package/features/contentModelGroup/CreateGroup/CreateGroupRepository.js +18 -14
  367. package/features/contentModelGroup/CreateGroup/CreateGroupRepository.js.map +1 -1
  368. package/features/contentModelGroup/CreateGroup/CreateGroupUseCase.d.ts +3 -1
  369. package/features/contentModelGroup/CreateGroup/CreateGroupUseCase.js +2 -3
  370. package/features/contentModelGroup/CreateGroup/CreateGroupUseCase.js.map +1 -1
  371. package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.d.ts +11 -5
  372. package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.js +16 -10
  373. package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.js.map +1 -1
  374. package/features/contentModelGroup/DeleteGroup/DeleteGroupUseCase.d.ts +3 -1
  375. package/features/contentModelGroup/DeleteGroup/DeleteGroupUseCase.js +2 -3
  376. package/features/contentModelGroup/DeleteGroup/DeleteGroupUseCase.js.map +1 -1
  377. package/features/contentModelGroup/GetGroup/GetGroupRepository.d.ts +6 -4
  378. package/features/contentModelGroup/GetGroup/GetGroupRepository.js +9 -9
  379. package/features/contentModelGroup/GetGroup/GetGroupRepository.js.map +1 -1
  380. package/features/contentModelGroup/GetGroup/GetGroupUseCase.d.ts +3 -1
  381. package/features/contentModelGroup/GetGroup/GetGroupUseCase.js +2 -3
  382. package/features/contentModelGroup/GetGroup/GetGroupUseCase.js.map +1 -1
  383. package/features/contentModelGroup/ListGroups/ListGroupsRepository.d.ts +6 -4
  384. package/features/contentModelGroup/ListGroups/ListGroupsRepository.js +9 -9
  385. package/features/contentModelGroup/ListGroups/ListGroupsRepository.js.map +1 -1
  386. package/features/contentModelGroup/ListGroups/ListGroupsUseCase.d.ts +3 -1
  387. package/features/contentModelGroup/ListGroups/ListGroupsUseCase.js +2 -3
  388. package/features/contentModelGroup/ListGroups/ListGroupsUseCase.js.map +1 -1
  389. package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.d.ts +9 -5
  390. package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.js +13 -10
  391. package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.js.map +1 -1
  392. package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.d.ts +3 -1
  393. package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.js +4 -5
  394. package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.js.map +1 -1
  395. package/features/contentModelGroup/UpdateGroup/abstractions.d.ts +1 -1
  396. package/features/contentModelGroup/UpdateGroup/abstractions.js.map +1 -1
  397. package/features/contentModelGroup/shared/PluginGroupsProvider.d.ts +6 -4
  398. package/features/contentModelGroup/shared/PluginGroupsProvider.js +13 -11
  399. package/features/contentModelGroup/shared/PluginGroupsProvider.js.map +1 -1
  400. package/features/contentModelGroup/shared/abstractions.d.ts +10 -0
  401. package/features/contentModelGroup/shared/abstractions.js +2 -1
  402. package/features/contentModelGroup/shared/abstractions.js.map +1 -1
  403. package/features/graphql/feature.js +2 -0
  404. package/features/graphql/feature.js.map +1 -1
  405. package/features/graphql/fields/abstractions/CmsModelFieldToGraphQL.d.ts +2 -2
  406. package/features/graphql/fields/abstractions/CmsModelFieldToGraphQL.js.map +1 -1
  407. package/features/graphql/fields/base/AssetToGraphQL.d.ts +26 -0
  408. package/features/graphql/fields/base/AssetToGraphQL.js +153 -0
  409. package/features/graphql/fields/base/AssetToGraphQL.js.map +1 -0
  410. package/features/graphql/fields/base/DynamicZoneToGraphQL.js +12 -2
  411. package/features/graphql/fields/base/DynamicZoneToGraphQL.js.map +1 -1
  412. package/features/graphql/fields/base/ObjectToGraphQL.js +8 -5
  413. package/features/graphql/fields/base/ObjectToGraphQL.js.map +1 -1
  414. package/features/graphql/fields/base/RefToGraphQL.d.ts +1 -1
  415. package/features/graphql/fields/base/RefToGraphQL.js +25 -9
  416. package/features/graphql/fields/base/RefToGraphQL.js.map +1 -1
  417. package/features/graphql/fields/base/richText/richTextResolver.d.ts +1 -1
  418. package/features/graphql/fields/base/richText/richTextResolver.js.map +1 -1
  419. package/features/modelBuilder/abstractions.d.ts +13 -0
  420. package/features/modelBuilder/abstractions.js.map +1 -1
  421. package/features/modelBuilder/feature.js +3 -8
  422. package/features/modelBuilder/feature.js.map +1 -1
  423. package/features/modelBuilder/fields/AssetFieldType.d.ts +20 -0
  424. package/features/modelBuilder/fields/AssetFieldType.js +46 -0
  425. package/features/modelBuilder/fields/AssetFieldType.js.map +1 -0
  426. package/features/modelBuilder/fields/BaseFieldBuilder.d.ts +3 -1
  427. package/features/modelBuilder/fields/BaseFieldBuilder.js +4 -0
  428. package/features/modelBuilder/fields/BaseFieldBuilder.js.map +1 -1
  429. package/features/modelBuilder/fields/DataFieldBuilder.d.ts +71 -18
  430. package/features/modelBuilder/fields/DataFieldBuilder.js +11 -1
  431. package/features/modelBuilder/fields/DataFieldBuilder.js.map +1 -1
  432. package/features/modelBuilder/fields/DateTimeFieldType.js +27 -12
  433. package/features/modelBuilder/fields/DateTimeFieldType.js.map +1 -1
  434. package/features/modelBuilder/fields/DynamicZoneFieldType.d.ts +1 -0
  435. package/features/modelBuilder/fields/DynamicZoneFieldType.js +10 -9
  436. package/features/modelBuilder/fields/DynamicZoneFieldType.js.map +1 -1
  437. package/features/modelBuilder/fields/TextFieldType.d.ts +3 -1
  438. package/features/modelBuilder/fields/TextFieldType.js +1 -3
  439. package/features/modelBuilder/fields/TextFieldType.js.map +1 -1
  440. package/features/modelBuilder/fields/UiAlertFieldType.js +2 -1
  441. package/features/modelBuilder/fields/UiAlertFieldType.js.map +1 -1
  442. package/features/modelBuilder/fields/UiSeparatorFieldType.js +2 -1
  443. package/features/modelBuilder/fields/UiSeparatorFieldType.js.map +1 -1
  444. package/features/modelBuilder/fields/UiTabsFieldType.d.ts +2 -1
  445. package/features/modelBuilder/fields/UiTabsFieldType.js +6 -3
  446. package/features/modelBuilder/fields/UiTabsFieldType.js.map +1 -1
  447. package/features/modelBuilder/fields/fieldTypeValidator.d.ts +5 -3
  448. package/features/modelBuilder/fields/resolveAssetUrl.d.ts +35 -0
  449. package/features/modelBuilder/fields/resolveAssetUrl.js +26 -0
  450. package/features/modelBuilder/fields/resolveAssetUrl.js.map +1 -0
  451. package/features/modelBuilder/index.d.ts +1 -1
  452. package/features/modelBuilder/models/BaseModelBuilder.d.ts +3 -1
  453. package/features/modelBuilder/models/BaseModelBuilder.js +7 -0
  454. package/features/modelBuilder/models/BaseModelBuilder.js.map +1 -1
  455. package/features/modelBuilder/models/ModelBuilder.d.ts +8 -0
  456. package/features/modelBuilder/models/ModelBuilder.js +1 -0
  457. package/features/modelBuilder/models/ModelBuilder.js.map +1 -1
  458. package/features/modelBuilder/models/ModelsProvider.d.ts +1 -3
  459. package/features/modelBuilder/models/ModelsProvider.js +2 -7
  460. package/features/modelBuilder/models/ModelsProvider.js.map +1 -1
  461. package/features/modelBuilder/models/PrivateModelBuilder.d.ts +5 -0
  462. package/features/modelBuilder/models/PrivateModelBuilder.js +13 -1
  463. package/features/modelBuilder/models/PrivateModelBuilder.js.map +1 -1
  464. package/features/modelBuilder/models/PublicModelBuilder.js +2 -1
  465. package/features/modelBuilder/models/PublicModelBuilder.js.map +1 -1
  466. package/features/runtimeTenant/RuntimeTenant.d.ts +13 -0
  467. package/features/runtimeTenant/RuntimeTenant.js +22 -0
  468. package/features/runtimeTenant/RuntimeTenant.js.map +1 -0
  469. package/features/runtimeTenant/abstractions.d.ts +11 -0
  470. package/features/runtimeTenant/abstractions.js +5 -0
  471. package/features/runtimeTenant/abstractions.js.map +1 -0
  472. package/features/runtimeTenant/index.d.ts +2 -0
  473. package/features/runtimeTenant/index.js +2 -0
  474. package/features/shared/abstractions.d.ts +8 -16
  475. package/features/shared/abstractions.js +2 -3
  476. package/features/shared/abstractions.js.map +1 -1
  477. package/features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.d.ts +8 -0
  478. package/features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.js +5 -0
  479. package/features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.js.map +1 -0
  480. package/features/shared/storageOperations/entry/CreateEntryStorageOperation.d.ts +8 -0
  481. package/features/shared/storageOperations/entry/CreateEntryStorageOperation.js +5 -0
  482. package/features/shared/storageOperations/entry/CreateEntryStorageOperation.js.map +1 -0
  483. package/features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.d.ts +8 -0
  484. package/features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.js +5 -0
  485. package/features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.js.map +1 -0
  486. package/features/shared/storageOperations/entry/DeleteEntryStorageOperation.d.ts +8 -0
  487. package/features/shared/storageOperations/entry/DeleteEntryStorageOperation.js +5 -0
  488. package/features/shared/storageOperations/entry/DeleteEntryStorageOperation.js.map +1 -0
  489. package/features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.d.ts +8 -0
  490. package/features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.js +5 -0
  491. package/features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.js.map +1 -0
  492. package/features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.d.ts +8 -0
  493. package/features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.js +5 -0
  494. package/features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.js.map +1 -0
  495. package/features/shared/storageOperations/entry/GetEntryStorageOperation.d.ts +8 -0
  496. package/features/shared/storageOperations/entry/GetEntryStorageOperation.js +5 -0
  497. package/features/shared/storageOperations/entry/GetEntryStorageOperation.js.map +1 -0
  498. package/features/shared/storageOperations/entry/GetLatestEntriesByIdsStorageOperation.d.ts +8 -0
  499. package/features/shared/storageOperations/entry/GetLatestEntriesByIdsStorageOperation.js +5 -0
  500. package/features/shared/storageOperations/entry/GetLatestEntriesByIdsStorageOperation.js.map +1 -0
  501. package/features/shared/storageOperations/entry/GetLatestRevisionByEntryIdStorageOperation.d.ts +8 -0
  502. package/features/shared/storageOperations/entry/GetLatestRevisionByEntryIdStorageOperation.js +5 -0
  503. package/features/shared/storageOperations/entry/GetLatestRevisionByEntryIdStorageOperation.js.map +1 -0
  504. package/features/shared/storageOperations/entry/GetPreviousRevisionStorageOperation.d.ts +8 -0
  505. package/features/shared/storageOperations/entry/GetPreviousRevisionStorageOperation.js +5 -0
  506. package/features/shared/storageOperations/entry/GetPreviousRevisionStorageOperation.js.map +1 -0
  507. package/features/shared/storageOperations/entry/GetPublishedEntriesByIdsStorageOperation.d.ts +8 -0
  508. package/features/shared/storageOperations/entry/GetPublishedEntriesByIdsStorageOperation.js +5 -0
  509. package/features/shared/storageOperations/entry/GetPublishedEntriesByIdsStorageOperation.js.map +1 -0
  510. package/features/shared/storageOperations/entry/GetPublishedRevisionByEntryIdStorageOperation.d.ts +8 -0
  511. package/features/shared/storageOperations/entry/GetPublishedRevisionByEntryIdStorageOperation.js +5 -0
  512. package/features/shared/storageOperations/entry/GetPublishedRevisionByEntryIdStorageOperation.js.map +1 -0
  513. package/features/shared/storageOperations/entry/GetRevisionByIdStorageOperation.d.ts +8 -0
  514. package/features/shared/storageOperations/entry/GetRevisionByIdStorageOperation.js +5 -0
  515. package/features/shared/storageOperations/entry/GetRevisionByIdStorageOperation.js.map +1 -0
  516. package/features/shared/storageOperations/entry/GetRevisionsStorageOperation.d.ts +8 -0
  517. package/features/shared/storageOperations/entry/GetRevisionsStorageOperation.js +5 -0
  518. package/features/shared/storageOperations/entry/GetRevisionsStorageOperation.js.map +1 -0
  519. package/features/shared/storageOperations/entry/GetUniqueFieldValuesStorageOperation.d.ts +8 -0
  520. package/features/shared/storageOperations/entry/GetUniqueFieldValuesStorageOperation.js +5 -0
  521. package/features/shared/storageOperations/entry/GetUniqueFieldValuesStorageOperation.js.map +1 -0
  522. package/features/shared/storageOperations/entry/ListEntriesStorageOperation.d.ts +8 -0
  523. package/features/shared/storageOperations/entry/ListEntriesStorageOperation.js +5 -0
  524. package/features/shared/storageOperations/entry/ListEntriesStorageOperation.js.map +1 -0
  525. package/features/shared/storageOperations/entry/MoveEntryStorageOperation.d.ts +8 -0
  526. package/features/shared/storageOperations/entry/MoveEntryStorageOperation.js +5 -0
  527. package/features/shared/storageOperations/entry/MoveEntryStorageOperation.js.map +1 -0
  528. package/features/shared/storageOperations/entry/MoveToBinStorageOperation.d.ts +8 -0
  529. package/features/shared/storageOperations/entry/MoveToBinStorageOperation.js +5 -0
  530. package/features/shared/storageOperations/entry/MoveToBinStorageOperation.js.map +1 -0
  531. package/features/shared/storageOperations/entry/PublishEntryStorageOperation.d.ts +8 -0
  532. package/features/shared/storageOperations/entry/PublishEntryStorageOperation.js +5 -0
  533. package/features/shared/storageOperations/entry/PublishEntryStorageOperation.js.map +1 -0
  534. package/features/shared/storageOperations/entry/RestoreFromBinStorageOperation.d.ts +8 -0
  535. package/features/shared/storageOperations/entry/RestoreFromBinStorageOperation.js +5 -0
  536. package/features/shared/storageOperations/entry/RestoreFromBinStorageOperation.js.map +1 -0
  537. package/features/shared/storageOperations/entry/UnpublishEntryStorageOperation.d.ts +8 -0
  538. package/features/shared/storageOperations/entry/UnpublishEntryStorageOperation.js +5 -0
  539. package/features/shared/storageOperations/entry/UnpublishEntryStorageOperation.js.map +1 -0
  540. package/features/shared/storageOperations/entry/UpdateEntryStorageOperation.d.ts +8 -0
  541. package/features/shared/storageOperations/entry/UpdateEntryStorageOperation.js +5 -0
  542. package/features/shared/storageOperations/entry/UpdateEntryStorageOperation.js.map +1 -0
  543. package/features/shared/storageOperations/group/CreateGroupStorageOperation.d.ts +8 -0
  544. package/features/shared/storageOperations/group/CreateGroupStorageOperation.js +5 -0
  545. package/features/shared/storageOperations/group/CreateGroupStorageOperation.js.map +1 -0
  546. package/features/shared/storageOperations/group/DeleteGroupStorageOperation.d.ts +8 -0
  547. package/features/shared/storageOperations/group/DeleteGroupStorageOperation.js +5 -0
  548. package/features/shared/storageOperations/group/DeleteGroupStorageOperation.js.map +1 -0
  549. package/features/shared/storageOperations/group/GetGroupStorageOperation.d.ts +8 -0
  550. package/features/shared/storageOperations/group/GetGroupStorageOperation.js +5 -0
  551. package/features/shared/storageOperations/group/GetGroupStorageOperation.js.map +1 -0
  552. package/features/shared/storageOperations/group/ListGroupsStorageOperation.d.ts +8 -0
  553. package/features/shared/storageOperations/group/ListGroupsStorageOperation.js +5 -0
  554. package/features/shared/storageOperations/group/ListGroupsStorageOperation.js.map +1 -0
  555. package/features/shared/storageOperations/group/UpdateGroupStorageOperation.d.ts +8 -0
  556. package/features/shared/storageOperations/group/UpdateGroupStorageOperation.js +5 -0
  557. package/features/shared/storageOperations/group/UpdateGroupStorageOperation.js.map +1 -0
  558. package/features/shared/storageOperations/index.d.ts +32 -0
  559. package/features/shared/storageOperations/index.js +32 -0
  560. package/features/shared/storageOperations/model/CreateModelStorageOperation.d.ts +8 -0
  561. package/features/shared/storageOperations/model/CreateModelStorageOperation.js +5 -0
  562. package/features/shared/storageOperations/model/CreateModelStorageOperation.js.map +1 -0
  563. package/features/shared/storageOperations/model/DeleteModelStorageOperation.d.ts +8 -0
  564. package/features/shared/storageOperations/model/DeleteModelStorageOperation.js +5 -0
  565. package/features/shared/storageOperations/model/DeleteModelStorageOperation.js.map +1 -0
  566. package/features/shared/storageOperations/model/GetModelStorageOperation.d.ts +8 -0
  567. package/features/shared/storageOperations/model/GetModelStorageOperation.js +5 -0
  568. package/features/shared/storageOperations/model/GetModelStorageOperation.js.map +1 -0
  569. package/features/shared/storageOperations/model/ListModelsStorageOperation.d.ts +8 -0
  570. package/features/shared/storageOperations/model/ListModelsStorageOperation.js +5 -0
  571. package/features/shared/storageOperations/model/ListModelsStorageOperation.js.map +1 -0
  572. package/features/shared/storageOperations/model/UpdateModelStorageOperation.d.ts +8 -0
  573. package/features/shared/storageOperations/model/UpdateModelStorageOperation.js +5 -0
  574. package/features/shared/storageOperations/model/UpdateModelStorageOperation.js.map +1 -0
  575. package/features/sortMapper/SortMapper.js +2 -5
  576. package/features/sortMapper/SortMapper.js.map +1 -1
  577. package/features/storage/fields/ObjectStorageTransform.js +27 -7
  578. package/features/storage/fields/ObjectStorageTransform.js.map +1 -1
  579. package/features/validation/abstractions/CmsModelFieldValidator.d.ts +5 -0
  580. package/features/validation/abstractions/CmsModelFieldValidator.js.map +1 -1
  581. package/features/validation/validators/DateGteValidator.d.ts +2 -0
  582. package/features/validation/validators/DateGteValidator.js +12 -2
  583. package/features/validation/validators/DateGteValidator.js.map +1 -1
  584. package/features/validation/validators/DateLteValidator.d.ts +2 -0
  585. package/features/validation/validators/DateLteValidator.js +12 -2
  586. package/features/validation/validators/DateLteValidator.js.map +1 -1
  587. package/features/validation/validators/PatternValidator.js +1 -1
  588. package/features/validation/validators/PatternValidator.js.map +1 -1
  589. package/features/validation/validators/dateLimit.d.ts +9 -0
  590. package/features/validation/validators/dateLimit.js +18 -0
  591. package/features/validation/validators/dateLimit.js.map +1 -0
  592. package/features/whereMapper/WhereMapper.js +7 -5
  593. package/features/whereMapper/WhereMapper.js.map +1 -1
  594. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +15 -5
  595. package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js.map +1 -1
  596. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js +8 -2
  597. package/fieldConverters/CmsModelObjectFieldConverterPlugin.js.map +1 -1
  598. package/fieldConverters/abstractions.d.ts +14 -0
  599. package/fieldConverters/abstractions.js +13 -0
  600. package/fieldConverters/abstractions.js.map +1 -0
  601. package/fieldConverters/index.d.ts +1 -1
  602. package/graphql/CmsGraphQLSchemaFactory.d.ts +8 -0
  603. package/graphql/CmsGraphQLSchemaFactory.js +5 -0
  604. package/graphql/CmsGraphQLSchemaFactory.js.map +1 -0
  605. package/graphql/CmsSchemaExecutor.d.ts +10 -0
  606. package/graphql/CmsSchemaExecutor.js +5 -0
  607. package/graphql/CmsSchemaExecutor.js.map +1 -0
  608. package/graphql/buildSchemaPlugins.d.ts +2 -1
  609. package/graphql/buildSchemaPlugins.js +1 -3
  610. package/graphql/buildSchemaPlugins.js.map +1 -1
  611. package/graphql/checkEndpointAccess.js +5 -2
  612. package/graphql/checkEndpointAccess.js.map +1 -1
  613. package/graphql/createExecutableSchema.d.ts +1 -1
  614. package/graphql/createExecutableSchema.js +1 -1
  615. package/graphql/createExecutableSchema.js.map +1 -1
  616. package/graphql/generateSchema.d.ts +2 -1
  617. package/graphql/generateSchema.js +14 -5
  618. package/graphql/generateSchema.js.map +1 -1
  619. package/graphql/getSchema.js +7 -2
  620. package/graphql/getSchema.js.map +1 -1
  621. package/graphql/scalars/RevisionIdScalarPlugin.d.ts +1 -1
  622. package/graphql/scalars/RevisionIdScalarPlugin.js.map +1 -1
  623. package/graphql/schema/baseContentSchema.d.ts +1 -6
  624. package/graphql/schema/baseContentSchema.js +5 -8
  625. package/graphql/schema/baseContentSchema.js.map +1 -1
  626. package/graphql/schema/baseSchema.d.ts +2 -2
  627. package/graphql/schema/baseSchema.js +6 -41
  628. package/graphql/schema/baseSchema.js.map +1 -1
  629. package/graphql/schema/cms/CmsBaseErrorTypeFactory.d.ts +15 -0
  630. package/graphql/schema/cms/CmsBaseErrorTypeFactory.js +25 -0
  631. package/graphql/schema/cms/CmsBaseErrorTypeFactory.js.map +1 -0
  632. package/graphql/schema/cms/createEntryResolver.js +2 -2
  633. package/graphql/schema/cms/createEntryResolver.js.map +1 -1
  634. package/graphql/schema/cms/deleteEntryResolver.js +2 -2
  635. package/graphql/schema/cms/deleteEntryResolver.js.map +1 -1
  636. package/graphql/schema/cms/getEntryResolver.js +5 -4
  637. package/graphql/schema/cms/getEntryResolver.js.map +1 -1
  638. package/graphql/schema/cms/getModelResolver.d.ts +35 -0
  639. package/graphql/schema/cms/getModelResolver.js +49 -0
  640. package/graphql/schema/cms/getModelResolver.js.map +1 -0
  641. package/graphql/schema/cms/helpers/buildFieldsSelection.js +9 -2
  642. package/graphql/schema/cms/helpers/buildFieldsSelection.js.map +1 -1
  643. package/graphql/schema/cms/helpers/expandFieldWildcards.d.ts +2 -0
  644. package/graphql/schema/cms/helpers/expandFieldWildcards.js +13 -0
  645. package/graphql/schema/cms/helpers/expandFieldWildcards.js.map +1 -0
  646. package/graphql/schema/cms/helpers/getModel.d.ts +0 -3
  647. package/graphql/schema/cms/helpers/getModel.js +5 -3
  648. package/graphql/schema/cms/helpers/getModel.js.map +1 -1
  649. package/graphql/schema/cms/helpers/index.d.ts +1 -0
  650. package/graphql/schema/cms/helpers/index.js +1 -0
  651. package/graphql/schema/cms/helpers/transformWhereToNested.js +39 -17
  652. package/graphql/schema/cms/helpers/transformWhereToNested.js.map +1 -1
  653. package/graphql/schema/cms/helpers.d.ts +1 -0
  654. package/graphql/schema/cms/helpers.js +1 -0
  655. package/graphql/schema/cms/listEntriesResolver.js +5 -4
  656. package/graphql/schema/cms/listEntriesResolver.js.map +1 -1
  657. package/graphql/schema/cms/publishEntryResolver.js +2 -2
  658. package/graphql/schema/cms/publishEntryResolver.js.map +1 -1
  659. package/graphql/schema/cms/resolvers/createEntry.d.ts +3 -2
  660. package/graphql/schema/cms/resolvers/createEntry.js +5 -1
  661. package/graphql/schema/cms/resolvers/createEntry.js.map +1 -1
  662. package/graphql/schema/cms/resolvers/deleteEntryRevision.d.ts +3 -2
  663. package/graphql/schema/cms/resolvers/deleteEntryRevision.js +5 -1
  664. package/graphql/schema/cms/resolvers/deleteEntryRevision.js.map +1 -1
  665. package/graphql/schema/cms/resolvers/getEntry.d.ts +3 -2
  666. package/graphql/schema/cms/resolvers/getEntry.js +5 -1
  667. package/graphql/schema/cms/resolvers/getEntry.js.map +1 -1
  668. package/graphql/schema/cms/resolvers/getModel.d.ts +9 -0
  669. package/graphql/schema/cms/resolvers/getModel.js +22 -0
  670. package/graphql/schema/cms/resolvers/getModel.js.map +1 -0
  671. package/graphql/schema/cms/resolvers/index.d.ts +1 -0
  672. package/graphql/schema/cms/resolvers/index.js +1 -0
  673. package/graphql/schema/cms/resolvers/listEntries.d.ts +3 -2
  674. package/graphql/schema/cms/resolvers/listEntries.js +5 -1
  675. package/graphql/schema/cms/resolvers/listEntries.js.map +1 -1
  676. package/graphql/schema/cms/resolvers/mutationCms.d.ts +3 -2
  677. package/graphql/schema/cms/resolvers/mutationCms.js +5 -1
  678. package/graphql/schema/cms/resolvers/mutationCms.js.map +1 -1
  679. package/graphql/schema/cms/resolvers/publishEntryRevision.d.ts +3 -2
  680. package/graphql/schema/cms/resolvers/publishEntryRevision.js +5 -1
  681. package/graphql/schema/cms/resolvers/publishEntryRevision.js.map +1 -1
  682. package/graphql/schema/cms/resolvers/queryCms.d.ts +3 -2
  683. package/graphql/schema/cms/resolvers/queryCms.js +5 -1
  684. package/graphql/schema/cms/resolvers/queryCms.js.map +1 -1
  685. package/graphql/schema/cms/resolvers/unpublishEntryRevision.d.ts +3 -2
  686. package/graphql/schema/cms/resolvers/unpublishEntryRevision.js +5 -1
  687. package/graphql/schema/cms/resolvers/unpublishEntryRevision.js.map +1 -1
  688. package/graphql/schema/cms/resolvers/updateEntryRevision.d.ts +3 -2
  689. package/graphql/schema/cms/resolvers/updateEntryRevision.js +5 -1
  690. package/graphql/schema/cms/resolvers/updateEntryRevision.js.map +1 -1
  691. package/graphql/schema/cms/typeDefs/mutation.d.ts +3 -2
  692. package/graphql/schema/cms/typeDefs/mutation.js +5 -1
  693. package/graphql/schema/cms/typeDefs/mutation.js.map +1 -1
  694. package/graphql/schema/cms/typeDefs/query.d.ts +3 -2
  695. package/graphql/schema/cms/typeDefs/query.js +6 -1
  696. package/graphql/schema/cms/typeDefs/query.js.map +1 -1
  697. package/graphql/schema/cms/typeDefs/responses.d.ts +3 -2
  698. package/graphql/schema/cms/typeDefs/responses.js +10 -1
  699. package/graphql/schema/cms/typeDefs/responses.js.map +1 -1
  700. package/graphql/schema/cms/unpublishEntryResolver.js +2 -2
  701. package/graphql/schema/cms/unpublishEntryResolver.js.map +1 -1
  702. package/graphql/schema/cms/updateEntryResolver.js +2 -2
  703. package/graphql/schema/cms/updateEntryResolver.js.map +1 -1
  704. package/graphql/schema/contentEntries.js +60 -34
  705. package/graphql/schema/contentEntries.js.map +1 -1
  706. package/graphql/schema/contentModelGroups.js +39 -18
  707. package/graphql/schema/contentModelGroups.js.map +1 -1
  708. package/graphql/schema/contentModels.js +70 -16
  709. package/graphql/schema/contentModels.js.map +1 -1
  710. package/graphql/schema/createFieldResolvers.d.ts +1 -1
  711. package/graphql/schema/createFieldResolvers.js.map +1 -1
  712. package/graphql/schema/createManageResolvers.js +7 -3
  713. package/graphql/schema/createManageResolvers.js.map +1 -1
  714. package/graphql/schema/createManageSDL.js +2 -0
  715. package/graphql/schema/createManageSDL.js.map +1 -1
  716. package/graphql/schema/createSingularSDL.js +2 -0
  717. package/graphql/schema/createSingularSDL.js.map +1 -1
  718. package/graphql/schema/resolvers/manage/resolveCreate.js +5 -3
  719. package/graphql/schema/resolvers/manage/resolveCreate.js.map +1 -1
  720. package/graphql/schema/resolvers/manage/resolveCreateFrom.js +5 -3
  721. package/graphql/schema/resolvers/manage/resolveCreateFrom.js.map +1 -1
  722. package/graphql/schema/resolvers/manage/resolveDelete.js +9 -4
  723. package/graphql/schema/resolvers/manage/resolveDelete.js.map +1 -1
  724. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js +5 -3
  725. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js.map +1 -1
  726. package/graphql/schema/resolvers/manage/resolveDuplicate.d.ts +7 -0
  727. package/graphql/schema/resolvers/manage/resolveDuplicate.js +11 -0
  728. package/graphql/schema/resolvers/manage/resolveDuplicate.js.map +1 -0
  729. package/graphql/schema/resolvers/manage/resolveGet.js +11 -6
  730. package/graphql/schema/resolvers/manage/resolveGet.js.map +1 -1
  731. package/graphql/schema/resolvers/manage/resolveGetByIds.js +5 -3
  732. package/graphql/schema/resolvers/manage/resolveGetByIds.js.map +1 -1
  733. package/graphql/schema/resolvers/manage/resolveGetRevisions.js +5 -3
  734. package/graphql/schema/resolvers/manage/resolveGetRevisions.js.map +1 -1
  735. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js +5 -3
  736. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js.map +1 -1
  737. package/graphql/schema/resolvers/manage/resolveList.js +5 -3
  738. package/graphql/schema/resolvers/manage/resolveList.js.map +1 -1
  739. package/graphql/schema/resolvers/manage/resolveListDeleted.js +5 -3
  740. package/graphql/schema/resolvers/manage/resolveListDeleted.js.map +1 -1
  741. package/graphql/schema/resolvers/manage/resolveMove.js +4 -2
  742. package/graphql/schema/resolvers/manage/resolveMove.js.map +1 -1
  743. package/graphql/schema/resolvers/manage/resolvePublish.js +5 -3
  744. package/graphql/schema/resolvers/manage/resolvePublish.js.map +1 -1
  745. package/graphql/schema/resolvers/manage/resolveRepublish.js +5 -3
  746. package/graphql/schema/resolvers/manage/resolveRepublish.js.map +1 -1
  747. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js +5 -3
  748. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js.map +1 -1
  749. package/graphql/schema/resolvers/manage/resolveUnpublish.js +5 -3
  750. package/graphql/schema/resolvers/manage/resolveUnpublish.js.map +1 -1
  751. package/graphql/schema/resolvers/manage/resolveUpdate.js +5 -3
  752. package/graphql/schema/resolvers/manage/resolveUpdate.js.map +1 -1
  753. package/graphql/schema/resolvers/manage/resolveUpdateRevisionDescription.js +5 -3
  754. package/graphql/schema/resolvers/manage/resolveUpdateRevisionDescription.js.map +1 -1
  755. package/graphql/schema/resolvers/manage/resolveValidate.js +5 -3
  756. package/graphql/schema/resolvers/manage/resolveValidate.js.map +1 -1
  757. package/graphql/schema/resolvers/preview/resolveGet.js +6 -3
  758. package/graphql/schema/resolvers/preview/resolveGet.js.map +1 -1
  759. package/graphql/schema/resolvers/preview/resolveList.js +5 -3
  760. package/graphql/schema/resolvers/preview/resolveList.js.map +1 -1
  761. package/graphql/schema/resolvers/read/resolveGet.js +5 -2
  762. package/graphql/schema/resolvers/read/resolveGet.js.map +1 -1
  763. package/graphql/schema/resolvers/read/resolveList.js +5 -3
  764. package/graphql/schema/resolvers/read/resolveList.js.map +1 -1
  765. package/graphql/schema/resolvers/singular/resolveGet.js +1 -1
  766. package/graphql/schema/resolvers/singular/resolveGet.js.map +1 -1
  767. package/graphql/schema/resolvers/singular/resolveUpdate.js +1 -1
  768. package/graphql/schema/resolvers/singular/resolveUpdate.js.map +1 -1
  769. package/graphql/schema/schemaPlugins.d.ts +2 -1
  770. package/graphql/schema/schemaPlugins.js +2 -4
  771. package/graphql/schema/schemaPlugins.js.map +1 -1
  772. package/index.d.ts +7 -6
  773. package/index.js +4 -22
  774. package/legacy/abstractions.js.map +1 -1
  775. package/package.json +27 -33
  776. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.d.ts +2 -2
  777. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js +1 -1
  778. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js.map +1 -1
  779. package/plugins/CmsModelPlugin.js +2 -1
  780. package/plugins/CmsModelPlugin.js.map +1 -1
  781. package/plugins/index.d.ts +0 -1
  782. package/plugins/index.js +0 -1
  783. package/types/fields/dynamicZoneField.d.ts +3 -2
  784. package/types/index.d.ts +0 -1
  785. package/types/model.d.ts +6 -0
  786. package/types/modelField.d.ts +14 -1
  787. package/types/types.d.ts +11 -290
  788. package/types/types.js.map +1 -1
  789. package/utils/contentModelToJsonSchema/CmsModelToJsonSchemaConverter.d.ts +28 -0
  790. package/utils/contentModelToJsonSchema/CmsModelToJsonSchemaConverter.js +324 -0
  791. package/utils/contentModelToJsonSchema/CmsModelToJsonSchemaConverter.js.map +1 -0
  792. package/utils/contentModelToJsonSchema/index.d.ts +2 -0
  793. package/utils/contentModelToJsonSchema/index.js +1 -0
  794. package/utils/contentModelToJsonSchema/types.d.ts +24 -0
  795. package/utils/converters/ConverterCollection.d.ts +2 -2
  796. package/utils/converters/ConverterCollection.js +1 -3
  797. package/utils/converters/ConverterCollection.js.map +1 -1
  798. package/utils/converters/valueKeyFromStorageConverter.d.ts +2 -2
  799. package/utils/converters/valueKeyFromStorageConverter.js +2 -2
  800. package/utils/converters/valueKeyFromStorageConverter.js.map +1 -1
  801. package/utils/converters/valueKeyStorageConverter.js +4 -2
  802. package/utils/converters/valueKeyStorageConverter.js.map +1 -1
  803. package/utils/converters/valueKeyToStorageConverter.d.ts +2 -2
  804. package/utils/converters/valueKeyToStorageConverter.js +2 -2
  805. package/utils/converters/valueKeyToStorageConverter.js.map +1 -1
  806. package/utils/createModelField.js +2 -1
  807. package/utils/createModelField.js.map +1 -1
  808. package/utils/createModelSchemaKey.d.ts +8 -0
  809. package/utils/createModelSchemaKey.js +18 -0
  810. package/utils/createModelSchemaKey.js.map +1 -0
  811. package/utils/getSchemaFromFieldPlugins.d.ts +2 -2
  812. package/utils/getSchemaFromFieldPlugins.js.map +1 -1
  813. package/utils/index.d.ts +1 -0
  814. package/utils/index.js +1 -0
  815. package/utils/isHeadlessCmsReady.d.ts +1 -1
  816. package/utils/isHeadlessCmsReady.js +3 -2
  817. package/utils/isHeadlessCmsReady.js.map +1 -1
  818. package/abstractions/entryHooks/OnEntryBeforeCreate.d.ts +0 -8
  819. package/abstractions/entryHooks/OnEntryBeforeCreate.js +0 -5
  820. package/abstractions/entryHooks/OnEntryBeforeCreate.js.map +0 -1
  821. package/abstractions/entryHooks/index.d.ts +0 -1
  822. package/abstractions/entryHooks/index.js +0 -1
  823. package/abstractions/index.d.ts +0 -1
  824. package/abstractions/index.js +0 -1
  825. package/context.d.ts +0 -3
  826. package/context.js +0 -131
  827. package/context.js.map +0 -1
  828. package/crud/contentEntry.crud.d.ts +0 -6
  829. package/crud/contentEntry.crud.js +0 -334
  830. package/crud/contentEntry.crud.js.map +0 -1
  831. package/crud/contentModel.crud.d.ts +0 -5
  832. package/crud/contentModel.crud.js +0 -77
  833. package/crud/contentModel.crud.js.map +0 -1
  834. package/crud/contentModelGroup.crud.d.ts +0 -5
  835. package/crud/contentModelGroup.crud.js +0 -74
  836. package/crud/contentModelGroup.crud.js.map +0 -1
  837. package/extensions/entryHooks/OnEntryBeforeCreate.d.ts +0 -4
  838. package/extensions/entryHooks/OnEntryBeforeCreate.js +0 -21
  839. package/extensions/entryHooks/OnEntryBeforeCreate.js.map +0 -1
  840. package/extensions/entryHooks/index.d.ts +0 -1
  841. package/extensions/entryHooks/index.js +0 -1
  842. package/extensions/index.d.ts +0 -5
  843. package/extensions/index.js +0 -7
  844. package/extensions/index.js.map +0 -1
  845. package/graphql/graphQLHandlerFactory.d.ts +0 -5
  846. package/graphql/graphQLHandlerFactory.js +0 -22
  847. package/graphql/graphQLHandlerFactory.js.map +0 -1
  848. package/graphql/handleRequest.d.ts +0 -11
  849. package/graphql/handleRequest.js +0 -62
  850. package/graphql/handleRequest.js.map +0 -1
  851. package/graphql/index.d.ts +0 -4
  852. package/graphql/index.js +0 -11
  853. package/graphql/index.js.map +0 -1
  854. package/graphql/schema/cms/index.d.ts +0 -2
  855. package/graphql/schema/cms/index.js +0 -24
  856. package/graphql/schema/cms/index.js.map +0 -1
  857. package/index.js.map +0 -1
  858. package/parameters/context.d.ts +0 -2
  859. package/parameters/context.js +0 -7
  860. package/parameters/context.js.map +0 -1
  861. package/parameters/header.d.ts +0 -2
  862. package/parameters/header.js +0 -13
  863. package/parameters/header.js.map +0 -1
  864. package/parameters/index.d.ts +0 -3
  865. package/parameters/index.js +0 -3
  866. package/parameters/path.d.ts +0 -2
  867. package/parameters/path.js +0 -12
  868. package/parameters/path.js.map +0 -1
  869. package/plugins/CmsParametersPlugin.d.ts +0 -18
  870. package/plugins/CmsParametersPlugin.js +0 -16
  871. package/plugins/CmsParametersPlugin.js.map +0 -1
  872. package/types/context.d.ts +0 -110
  873. /package/{types/context.js → utils/contentModelToJsonSchema/types.js} +0 -0
@@ -21,6 +21,13 @@ class BaseModelBuilder {
21
21
  this.config.tags = tags;
22
22
  return this;
23
23
  }
24
+ settings(settings) {
25
+ this.config.settings = {
26
+ ...this.config.settings || {},
27
+ ...settings
28
+ };
29
+ return this;
30
+ }
24
31
  fields(builder) {
25
32
  this.registry.existingFields = this.fieldBuildersMap;
26
33
  const fieldBuilders = builder(this.registry);
@@ -1 +1 @@
1
- {"version":3,"file":"features/modelBuilder/models/BaseModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/BaseModelBuilder.ts"],"sourcesContent":["import { BaseFieldBuilder } from \"~/features/modelBuilder/index.js\";\nimport { CmsModelPlugin } from \"~/plugins/CmsModelPlugin.js\";\nimport { FieldBuilderRegistry } from \"../abstractions.js\";\nimport type { CmsModelField, CmsModelLayoutCell } from \"~/types/index.js\";\n\n/**\n * Base class for all model builders, containing shared logic.\n * Concrete builders (PrivateModelBuilder, PublicModelBuilder) extend this.\n */\nexport abstract class BaseModelBuilder<TBuild = CmsModelPlugin> {\n protected config: {\n modelId?: string;\n name?: string;\n tags?: string[];\n } = {};\n\n protected isSingleEntry = false;\n protected fieldBuildersMap = new Map<string, BaseFieldBuilder<any>>();\n\n public constructor(protected registry: FieldBuilderRegistry.Interface) {}\n\n modelId(id: string): this {\n this.config.modelId = id;\n return this;\n }\n\n name(name: string): this {\n this.config.name = name;\n return this;\n }\n\n singleEntry(): this {\n this.isSingleEntry = true;\n return this;\n }\n\n tags(tags: string[]): this {\n this.config.tags = tags;\n return this;\n }\n\n fields(\n builder: (registry: FieldBuilderRegistry.Interface) => Record<string, BaseFieldBuilder<any>>\n ): this {\n // Pass existing fields to registry so it can return them when extending\n (this.registry as any).existingFields = this.fieldBuildersMap;\n\n const fieldBuilders = builder(this.registry);\n\n for (const [key, fieldBuilder] of Object.entries(fieldBuilders)) {\n // Set the fieldId from the object key\n fieldBuilder.fieldId(key);\n\n const existingBuilder = this.fieldBuildersMap.get(key);\n const isExtendMode = (fieldBuilder as any)._extendMode;\n\n if (isExtendMode && existingBuilder) {\n // Extension mode - validate type and merge operations\n if (existingBuilder.type !== fieldBuilder.type) {\n throw new Error(\n `Cannot extend field \"${key}\": type mismatch. Expected \"${existingBuilder.type}\", got \"${fieldBuilder.type}\".`\n );\n }\n // Merge operations from temporary new builder into existing builder\n this.mergeFieldOperations(key, existingBuilder, fieldBuilder);\n } else if (existingBuilder && !isExtendMode) {\n // Replacement mode - validate type\n if (existingBuilder.type !== fieldBuilder.type) {\n throw new Error(\n `Cannot redefine field \"${key}\": type mismatch. Expected \"${existingBuilder.type}\", got \"${fieldBuilder.type}\".`\n );\n }\n // Replace with new builder\n this.fieldBuildersMap.set(key, fieldBuilder);\n } else if (!existingBuilder && !isExtendMode) {\n // New field - store builder\n this.fieldBuildersMap.set(key, fieldBuilder);\n } else {\n // isExtendMode but no existingBuilder - this is an error\n throw new Error(\n `Cannot extend field \"${key}\": field does not exist. Use .extend() only for existing fields.`\n );\n }\n }\n\n return this;\n }\n\n /**\n * Merge field operations from extension builder into existing builder.\n * This handles the case where multiple fields of the same type exist,\n * and we need to transfer operations from the temporary new builder\n * to the existing builder.\n * @internal\n */\n private mergeFieldOperations(\n fieldId: string,\n existing: BaseFieldBuilder<any>,\n extension: BaseFieldBuilder<any>\n ): void {\n // For object fields, merge nested fields and layout operations\n if (existing.type === \"object\" && extension.type === \"object\") {\n const existingFieldMap = (existing as any).fieldBuildersMap;\n const extensionFieldMap = (extension as any).fieldBuildersMap;\n\n // Merge nested field builders\n if (extensionFieldMap) {\n for (const [nestedKey, nestedBuilder] of extensionFieldMap.entries()) {\n existingFieldMap.set(nestedKey, nestedBuilder);\n }\n }\n\n // Merge layout operations\n const existingLayoutBuilder = (existing as any).layoutBuilder;\n const extensionLayoutBuilder = (extension as any).layoutBuilder;\n\n if (extensionLayoutBuilder) {\n const snapshot = extensionLayoutBuilder.getSnapshot();\n\n // If extension called setLayout() with an array, apply it to existing\n // We detect this by checking if there's a layout but no modifiers\n if (snapshot.layout.length > 0 && snapshot.modifiers.length === 0) {\n existingLayoutBuilder.setLayout(snapshot.layout);\n }\n\n // Apply all modifiers from extension to existing\n for (const modifier of snapshot.modifiers) {\n existingLayoutBuilder.addModifier(modifier);\n }\n }\n }\n }\n\n protected buildFields(): {\n fields: CmsModelField[];\n layoutReplacements: Map<string, CmsModelLayoutCell>;\n } {\n const fields: CmsModelField[] = [];\n const layoutReplacements = new Map<string, CmsModelLayoutCell>();\n\n for (const [fieldId, builder] of this.fieldBuildersMap) {\n const result = builder.build();\n if (result.type === \"layout\") {\n layoutReplacements.set(fieldId, result.layoutCell);\n if (result.fields) {\n fields.push(...result.fields);\n }\n } else {\n fields.push(result.field);\n }\n }\n\n return { fields, layoutReplacements };\n }\n\n /**\n * Get tags with common defaults applied.\n * Always includes \"type:model\" and optionally \"singleEntry\".\n */\n protected getTags(): string[] {\n const tagsSet = new Set(this.config.tags || []);\n tagsSet.add(\"type:model\");\n if (this.isSingleEntry) {\n tagsSet.add(\"singleEntry\");\n }\n return Array.from(tagsSet);\n }\n\n /**\n * Build the final model configuration.\n * Must be implemented by concrete builders.\n */\n abstract build(): TBuild;\n}\n"],"names":["BaseModelBuilder","registry","Map","id","name","tags","builder","fieldBuilders","key","fieldBuilder","Object","existingBuilder","isExtendMode","Error","fieldId","existing","extension","existingFieldMap","extensionFieldMap","nestedKey","nestedBuilder","existingLayoutBuilder","extensionLayoutBuilder","snapshot","modifier","fields","layoutReplacements","result","tagsSet","Set","Array"],"mappings":"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"}
1
+ {"version":3,"file":"features/modelBuilder/models/BaseModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/BaseModelBuilder.ts"],"sourcesContent":["import { BaseFieldBuilder } from \"~/features/modelBuilder/index.js\";\nimport { CmsModelPlugin } from \"~/plugins/CmsModelPlugin.js\";\nimport { FieldBuilderRegistry, type IModelSettings } from \"../abstractions.js\";\nimport type { CmsModelField, CmsModelLayoutCell } from \"~/types/index.js\";\n\n/**\n * Base class for all model builders, containing shared logic.\n * Concrete builders (PrivateModelBuilder, PublicModelBuilder) extend this.\n */\nexport abstract class BaseModelBuilder<TBuild = CmsModelPlugin> {\n protected config: {\n modelId?: string;\n name?: string;\n tags?: string[];\n settings?: IModelSettings;\n } = {};\n\n protected isSingleEntry = false;\n protected fieldBuildersMap = new Map<string, BaseFieldBuilder<any>>();\n\n public constructor(protected registry: FieldBuilderRegistry.Interface) {}\n\n modelId(id: string): this {\n this.config.modelId = id;\n return this;\n }\n\n name(name: string): this {\n this.config.name = name;\n return this;\n }\n\n singleEntry(): this {\n this.isSingleEntry = true;\n return this;\n }\n\n tags(tags: string[]): this {\n this.config.tags = tags;\n return this;\n }\n\n settings(settings: Partial<IModelSettings>): this {\n this.config.settings = { ...(this.config.settings || {}), ...settings };\n return this;\n }\n\n fields(\n builder: (registry: FieldBuilderRegistry.Interface) => Record<string, BaseFieldBuilder<any>>\n ): this {\n // Pass existing fields to registry so it can return them when extending\n (this.registry as any).existingFields = this.fieldBuildersMap;\n\n const fieldBuilders = builder(this.registry);\n\n for (const [key, fieldBuilder] of Object.entries(fieldBuilders)) {\n // Set the fieldId from the object key\n fieldBuilder.fieldId(key);\n\n const existingBuilder = this.fieldBuildersMap.get(key);\n const isExtendMode = (fieldBuilder as any)._extendMode;\n\n if (isExtendMode && existingBuilder) {\n // Extension mode - validate type and merge operations\n if (existingBuilder.type !== fieldBuilder.type) {\n throw new Error(\n `Cannot extend field \"${key}\": type mismatch. Expected \"${existingBuilder.type}\", got \"${fieldBuilder.type}\".`\n );\n }\n // Merge operations from temporary new builder into existing builder\n this.mergeFieldOperations(key, existingBuilder, fieldBuilder);\n } else if (existingBuilder && !isExtendMode) {\n // Replacement mode - validate type\n if (existingBuilder.type !== fieldBuilder.type) {\n throw new Error(\n `Cannot redefine field \"${key}\": type mismatch. Expected \"${existingBuilder.type}\", got \"${fieldBuilder.type}\".`\n );\n }\n // Replace with new builder\n this.fieldBuildersMap.set(key, fieldBuilder);\n } else if (!existingBuilder && !isExtendMode) {\n // New field - store builder\n this.fieldBuildersMap.set(key, fieldBuilder);\n } else {\n // isExtendMode but no existingBuilder - this is an error\n throw new Error(\n `Cannot extend field \"${key}\": field does not exist. Use .extend() only for existing fields.`\n );\n }\n }\n\n return this;\n }\n\n /**\n * Merge field operations from extension builder into existing builder.\n * This handles the case where multiple fields of the same type exist,\n * and we need to transfer operations from the temporary new builder\n * to the existing builder.\n * @internal\n */\n private mergeFieldOperations(\n fieldId: string,\n existing: BaseFieldBuilder<any>,\n extension: BaseFieldBuilder<any>\n ): void {\n // For object fields, merge nested fields and layout operations\n if (existing.type === \"object\" && extension.type === \"object\") {\n const existingFieldMap = (existing as any).fieldBuildersMap;\n const extensionFieldMap = (extension as any).fieldBuildersMap;\n\n // Merge nested field builders\n if (extensionFieldMap) {\n for (const [nestedKey, nestedBuilder] of extensionFieldMap.entries()) {\n existingFieldMap.set(nestedKey, nestedBuilder);\n }\n }\n\n // Merge layout operations\n const existingLayoutBuilder = (existing as any).layoutBuilder;\n const extensionLayoutBuilder = (extension as any).layoutBuilder;\n\n if (extensionLayoutBuilder) {\n const snapshot = extensionLayoutBuilder.getSnapshot();\n\n // If extension called setLayout() with an array, apply it to existing\n // We detect this by checking if there's a layout but no modifiers\n if (snapshot.layout.length > 0 && snapshot.modifiers.length === 0) {\n existingLayoutBuilder.setLayout(snapshot.layout);\n }\n\n // Apply all modifiers from extension to existing\n for (const modifier of snapshot.modifiers) {\n existingLayoutBuilder.addModifier(modifier);\n }\n }\n }\n }\n\n protected buildFields(): {\n fields: CmsModelField[];\n layoutReplacements: Map<string, CmsModelLayoutCell>;\n } {\n const fields: CmsModelField[] = [];\n const layoutReplacements = new Map<string, CmsModelLayoutCell>();\n\n for (const [fieldId, builder] of this.fieldBuildersMap) {\n const result = builder.build();\n if (result.type === \"layout\") {\n layoutReplacements.set(fieldId, result.layoutCell);\n if (result.fields) {\n fields.push(...result.fields);\n }\n } else {\n fields.push(result.field);\n }\n }\n\n return { fields, layoutReplacements };\n }\n\n /**\n * Get tags with common defaults applied.\n * Always includes \"type:model\" and optionally \"singleEntry\".\n */\n protected getTags(): string[] {\n const tagsSet = new Set(this.config.tags || []);\n tagsSet.add(\"type:model\");\n if (this.isSingleEntry) {\n tagsSet.add(\"singleEntry\");\n }\n return Array.from(tagsSet);\n }\n\n /**\n * Build the final model configuration.\n * Must be implemented by concrete builders.\n */\n abstract build(): TBuild;\n}\n"],"names":["BaseModelBuilder","registry","Map","id","name","tags","settings","builder","fieldBuilders","key","fieldBuilder","Object","existingBuilder","isExtendMode","Error","fieldId","existing","extension","existingFieldMap","extensionFieldMap","nestedKey","nestedBuilder","existingLayoutBuilder","extensionLayoutBuilder","snapshot","modifier","fields","layoutReplacements","result","tagsSet","Set","Array"],"mappings":"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"}
@@ -4,6 +4,14 @@ import { PublicModelBuilder } from "./PublicModelBuilder.js";
4
4
  export interface IModelBuilderPrivateInput {
5
5
  modelId: string;
6
6
  name: string;
7
+ /**
8
+ * Publish entry lifecycle events (`Cms/Entry/*`) for this model. Defaults to `true`.
9
+ *
10
+ * Set to `false` when the model is used as a storage layer, and your own use cases publish
11
+ * app-specific events. No entry event handlers will run for this model: that includes
12
+ * `Before*` handlers (validation, data modification), audit logs, webhooks, etc.
13
+ */
14
+ lifecycleEvents?: boolean;
7
15
  }
8
16
  export interface IModelBuilderPublicInput {
9
17
  name: string;
@@ -8,6 +8,7 @@ class ModelBuilder {
8
8
  const model = new PrivateModelBuilder(this.registry);
9
9
  model.modelId(input.modelId);
10
10
  model.name(input.name);
11
+ if (false === input.lifecycleEvents) model.disableLifecycleEvents();
11
12
  return model;
12
13
  }
13
14
  public(input) {
@@ -1 +1 @@
1
- {"version":3,"file":"features/modelBuilder/models/ModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/ModelBuilder.ts"],"sourcesContent":["import { FieldBuilderRegistry } from \"../abstractions.js\";\nimport { PrivateModelBuilder } from \"./PrivateModelBuilder.js\";\nimport { PublicModelBuilder } from \"./PublicModelBuilder.js\";\n\nexport interface IModelBuilderPrivateInput {\n modelId: string;\n name: string;\n}\n\nexport interface IModelBuilderPublicInput {\n name: string;\n modelId: string;\n group: string;\n singularApiName?: string;\n pluralApiName?: string;\n}\n\n/**\n * Entry point builder that allows selecting model type.\n * Call .private() or .public() to get the appropriate typed builder.\n */\nexport class ModelBuilder {\n public constructor(private registry: FieldBuilderRegistry.Interface) {}\n\n /**\n * Create a private model (internal models, no GraphQL API).\n */\n public private(input: IModelBuilderPrivateInput): PrivateModelBuilder {\n const model = new PrivateModelBuilder(this.registry);\n model.modelId(input.modelId);\n model.name(input.name);\n return model;\n }\n\n /**\n * Create a public model (with GraphQL API).\n */\n public public(input: IModelBuilderPublicInput): PublicModelBuilder {\n const model = new PublicModelBuilder(this.registry);\n model.name(input.name);\n model.modelId(input.modelId);\n model.group(input.group);\n if (input.singularApiName) {\n model.singularApiName(input.singularApiName);\n }\n if (input.pluralApiName) {\n model.pluralApiName(input.pluralApiName);\n }\n return model;\n }\n}\n"],"names":["ModelBuilder","registry","input","model","PrivateModelBuilder","PublicModelBuilder"],"mappings":";;AAqBO,MAAMA;IACT,YAA2BC,QAAwC,CAAE;aAA1CA,QAAQ,GAARA;IAA2C;IAK/D,QAAQC,KAAgC,EAAuB;QAClE,MAAMC,QAAQ,IAAIC,oBAAoB,IAAI,CAAC,QAAQ;QACnDD,MAAM,OAAO,CAACD,MAAM,OAAO;QAC3BC,MAAM,IAAI,CAACD,MAAM,IAAI;QACrB,OAAOC;IACX;IAKO,OAAOD,KAA+B,EAAsB;QAC/D,MAAMC,QAAQ,IAAIE,mBAAmB,IAAI,CAAC,QAAQ;QAClDF,MAAM,IAAI,CAACD,MAAM,IAAI;QACrBC,MAAM,OAAO,CAACD,MAAM,OAAO;QAC3BC,MAAM,KAAK,CAACD,MAAM,KAAK;QACvB,IAAIA,MAAM,eAAe,EACrBC,MAAM,eAAe,CAACD,MAAM,eAAe;QAE/C,IAAIA,MAAM,aAAa,EACnBC,MAAM,aAAa,CAACD,MAAM,aAAa;QAE3C,OAAOC;IACX;AACJ"}
1
+ {"version":3,"file":"features/modelBuilder/models/ModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/ModelBuilder.ts"],"sourcesContent":["import { FieldBuilderRegistry } from \"../abstractions.js\";\nimport { PrivateModelBuilder } from \"./PrivateModelBuilder.js\";\nimport { PublicModelBuilder } from \"./PublicModelBuilder.js\";\n\nexport interface IModelBuilderPrivateInput {\n modelId: string;\n name: string;\n /**\n * Publish entry lifecycle events (`Cms/Entry/*`) for this model. Defaults to `true`.\n *\n * Set to `false` when the model is used as a storage layer, and your own use cases publish\n * app-specific events. No entry event handlers will run for this model: that includes\n * `Before*` handlers (validation, data modification), audit logs, webhooks, etc.\n */\n lifecycleEvents?: boolean;\n}\n\nexport interface IModelBuilderPublicInput {\n name: string;\n modelId: string;\n group: string;\n singularApiName?: string;\n pluralApiName?: string;\n}\n\n/**\n * Entry point builder that allows selecting model type.\n * Call .private() or .public() to get the appropriate typed builder.\n */\nexport class ModelBuilder {\n public constructor(private registry: FieldBuilderRegistry.Interface) {}\n\n /**\n * Create a private model (internal models, no GraphQL API).\n */\n public private(input: IModelBuilderPrivateInput): PrivateModelBuilder {\n const model = new PrivateModelBuilder(this.registry);\n model.modelId(input.modelId);\n model.name(input.name);\n if (input.lifecycleEvents === false) {\n model.disableLifecycleEvents();\n }\n return model;\n }\n\n /**\n * Create a public model (with GraphQL API).\n */\n public public(input: IModelBuilderPublicInput): PublicModelBuilder {\n const model = new PublicModelBuilder(this.registry);\n model.name(input.name);\n model.modelId(input.modelId);\n model.group(input.group);\n if (input.singularApiName) {\n model.singularApiName(input.singularApiName);\n }\n if (input.pluralApiName) {\n model.pluralApiName(input.pluralApiName);\n }\n return model;\n }\n}\n"],"names":["ModelBuilder","registry","input","model","PrivateModelBuilder","PublicModelBuilder"],"mappings":";;AA6BO,MAAMA;IACT,YAA2BC,QAAwC,CAAE;aAA1CA,QAAQ,GAARA;IAA2C;IAK/D,QAAQC,KAAgC,EAAuB;QAClE,MAAMC,QAAQ,IAAIC,oBAAoB,IAAI,CAAC,QAAQ;QACnDD,MAAM,OAAO,CAACD,MAAM,OAAO;QAC3BC,MAAM,IAAI,CAACD,MAAM,IAAI;QACrB,IAAIA,AAA0B,UAA1BA,MAAM,eAAe,EACrBC,MAAM,sBAAsB;QAEhC,OAAOA;IACX;IAKO,OAAOD,KAA+B,EAAsB;QAC/D,MAAMC,QAAQ,IAAIE,mBAAmB,IAAI,CAAC,QAAQ;QAClDF,MAAM,IAAI,CAACD,MAAM,IAAI;QACrBC,MAAM,OAAO,CAACD,MAAM,OAAO;QAC3BC,MAAM,KAAK,CAACD,MAAM,KAAK;QACvB,IAAIA,MAAM,eAAe,EACrBC,MAAM,eAAe,CAACD,MAAM,eAAe;QAE/C,IAAIA,MAAM,aAAa,EACnBC,MAAM,aAAa,CAACD,MAAM,aAAa;QAE3C,OAAOC;IACX;AACJ"}
@@ -1,12 +1,10 @@
1
1
  import { ModelsProvider as ProviderAbstraction } from "./abstractions.js";
2
- import { AccessControl } from "../../../features/shared/abstractions.js";
3
2
  import { ModelFactory } from "../abstractions.js";
4
3
  import { FieldBuilderRegistry } from "../abstractions.js";
5
4
  import type { CmsModel } from "../../../types/index.js";
6
5
  export declare class ModelsProvider implements ProviderAbstraction.Interface {
7
6
  private getModels;
8
7
  private fieldsRegistry;
9
- private accessControl;
10
- constructor(getModels: () => ModelFactory.Interface[], fieldsRegistry: FieldBuilderRegistry.Interface, accessControl: AccessControl.Interface | undefined);
8
+ constructor(getModels: () => ModelFactory.Interface[], fieldsRegistry: FieldBuilderRegistry.Interface);
11
9
  list(tenant: string): Promise<CmsModel[]>;
12
10
  }
@@ -1,10 +1,8 @@
1
- import { filterAsync } from "../../../utils/filterAsync.js";
2
1
  import { ModelBuilder } from "./ModelBuilder.js";
3
2
  class ModelsProvider {
4
- constructor(getModels, fieldsRegistry, accessControl){
3
+ constructor(getModels, fieldsRegistry){
5
4
  this.getModels = getModels;
6
5
  this.fieldsRegistry = fieldsRegistry;
7
- this.accessControl = accessControl;
8
6
  }
9
7
  async list(tenant) {
10
8
  const modelImpls = this.getModels();
@@ -20,10 +18,7 @@ class ModelsProvider {
20
18
  });
21
19
  }
22
20
  }
23
- if (!this.accessControl) return allModels;
24
- return filterAsync(allModels, (model)=>this.accessControl.canAccessModel({
25
- model
26
- }));
21
+ return allModels;
27
22
  }
28
23
  }
29
24
  export { ModelsProvider };
@@ -1 +1 @@
1
- {"version":3,"file":"features/modelBuilder/models/ModelsProvider.js","sources":["../../../../src/features/modelBuilder/models/ModelsProvider.ts"],"sourcesContent":["import { ModelsProvider as ProviderAbstraction } from \"./abstractions.js\";\nimport { AccessControl } from \"~/features/shared/abstractions.js\";\nimport { ModelFactory } from \"../abstractions.js\";\nimport { FieldBuilderRegistry } from \"../abstractions.js\";\nimport type { CmsModel } from \"~/types/index.js\";\nimport { filterAsync } from \"~/utils/filterAsync.js\";\nimport { ModelBuilder } from \"./ModelBuilder.js\";\n\nexport class ModelsProvider implements ProviderAbstraction.Interface {\n public constructor(\n private getModels: () => ModelFactory.Interface[],\n private fieldsRegistry: FieldBuilderRegistry.Interface,\n private accessControl: AccessControl.Interface | undefined\n ) {}\n\n async list(tenant: string): Promise<CmsModel[]> {\n const modelImpls = this.getModels();\n const allModels: CmsModel[] = [];\n\n for (const modelImpl of modelImpls) {\n // Entry builder that determines model type\n const entryBuilder = new ModelBuilder(this.fieldsRegistry);\n\n // Get typed builders (array of private or public builders)\n const typedBuilders = await modelImpl.execute(entryBuilder);\n\n // Process each builder in the array\n for (const typedBuilder of typedBuilders) {\n const modelPlugin = typedBuilder.build();\n\n allModels.push({\n ...modelPlugin.contentModel,\n tenant\n });\n }\n }\n\n if (!this.accessControl) {\n return allModels;\n }\n // Apply access control filtering\n return filterAsync(allModels, model => {\n return this.accessControl!.canAccessModel({ model });\n });\n }\n}\n"],"names":["ModelsProvider","getModels","fieldsRegistry","accessControl","tenant","modelImpls","allModels","modelImpl","entryBuilder","ModelBuilder","typedBuilders","typedBuilder","modelPlugin","filterAsync","model"],"mappings":";;AAQO,MAAMA;IACT,YACYC,SAAyC,EACzCC,cAA8C,EAC9CC,aAAkD,CAC5D;aAHUF,SAAS,GAATA;aACAC,cAAc,GAAdA;aACAC,aAAa,GAAbA;IACT;IAEH,MAAM,KAAKC,MAAc,EAAuB;QAC5C,MAAMC,aAAa,IAAI,CAAC,SAAS;QACjC,MAAMC,YAAwB,EAAE;QAEhC,KAAK,MAAMC,aAAaF,WAAY;YAEhC,MAAMG,eAAe,IAAIC,aAAa,IAAI,CAAC,cAAc;YAGzD,MAAMC,gBAAgB,MAAMH,UAAU,OAAO,CAACC;YAG9C,KAAK,MAAMG,gBAAgBD,cAAe;gBACtC,MAAME,cAAcD,aAAa,KAAK;gBAEtCL,UAAU,IAAI,CAAC;oBACX,GAAGM,YAAY,YAAY;oBAC3BR;gBACJ;YACJ;QACJ;QAEA,IAAI,CAAC,IAAI,CAAC,aAAa,EACnB,OAAOE;QAGX,OAAOO,YAAYP,WAAWQ,CAAAA,QACnB,IAAI,CAAC,aAAa,CAAE,cAAc,CAAC;gBAAEA;YAAM;IAE1D;AACJ"}
1
+ {"version":3,"file":"features/modelBuilder/models/ModelsProvider.js","sources":["../../../../src/features/modelBuilder/models/ModelsProvider.ts"],"sourcesContent":["import { ModelsProvider as ProviderAbstraction } from \"./abstractions.js\";\nimport { ModelFactory } from \"../abstractions.js\";\nimport { FieldBuilderRegistry } from \"../abstractions.js\";\nimport type { CmsModel } from \"~/types/index.js\";\nimport { ModelBuilder } from \"./ModelBuilder.js\";\n\nexport class ModelsProvider implements ProviderAbstraction.Interface {\n public constructor(\n private getModels: () => ModelFactory.Interface[],\n private fieldsRegistry: FieldBuilderRegistry.Interface\n ) {}\n\n async list(tenant: string): Promise<CmsModel[]> {\n const modelImpls = this.getModels();\n const allModels: CmsModel[] = [];\n\n for (const modelImpl of modelImpls) {\n // Entry builder that determines model type\n const entryBuilder = new ModelBuilder(this.fieldsRegistry);\n\n // Get typed builders (array of private or public builders)\n const typedBuilders = await modelImpl.execute(entryBuilder);\n\n // Process each builder in the array\n for (const typedBuilder of typedBuilders) {\n const modelPlugin = typedBuilder.build();\n\n allModels.push({\n ...modelPlugin.contentModel,\n tenant\n });\n }\n }\n\n // No access control here: see PluginModelsProvider for why the model list is not filtered.\n return allModels;\n }\n}\n"],"names":["ModelsProvider","getModels","fieldsRegistry","tenant","modelImpls","allModels","modelImpl","entryBuilder","ModelBuilder","typedBuilders","typedBuilder","modelPlugin"],"mappings":";AAMO,MAAMA;IACT,YACYC,SAAyC,EACzCC,cAA8C,CACxD;aAFUD,SAAS,GAATA;aACAC,cAAc,GAAdA;IACT;IAEH,MAAM,KAAKC,MAAc,EAAuB;QAC5C,MAAMC,aAAa,IAAI,CAAC,SAAS;QACjC,MAAMC,YAAwB,EAAE;QAEhC,KAAK,MAAMC,aAAaF,WAAY;YAEhC,MAAMG,eAAe,IAAIC,aAAa,IAAI,CAAC,cAAc;YAGzD,MAAMC,gBAAgB,MAAMH,UAAU,OAAO,CAACC;YAG9C,KAAK,MAAMG,gBAAgBD,cAAe;gBACtC,MAAME,cAAcD,aAAa,KAAK;gBAEtCL,UAAU,IAAI,CAAC;oBACX,GAAGM,YAAY,YAAY;oBAC3BR;gBACJ;YACJ;QACJ;QAGA,OAAOE;IACX;AACJ"}
@@ -1,4 +1,9 @@
1
1
  import { BaseModelBuilder } from "./BaseModelBuilder.js";
2
2
  export declare class PrivateModelBuilder extends BaseModelBuilder {
3
+ private lifecycleEvents;
4
+ /**
5
+ * @internal Use `builder.private({ lifecycleEvents: false })` instead.
6
+ */
7
+ disableLifecycleEvents(): this;
3
8
  build(): import("~/plugins/CmsModelPlugin.js").CmsModelPlugin;
4
9
  }
@@ -1,20 +1,32 @@
1
1
  import { createPrivateModelPlugin } from "../../../plugins/CmsModelPlugin.js";
2
2
  import { BaseModelBuilder } from "./BaseModelBuilder.js";
3
3
  class PrivateModelBuilder extends BaseModelBuilder {
4
+ disableLifecycleEvents() {
5
+ this.lifecycleEvents = false;
6
+ return this;
7
+ }
4
8
  build() {
5
9
  if (!this.config.modelId) throw new Error("modelId is required");
6
10
  if (!this.config.name) throw new Error("name is required");
7
11
  if (0 === this.fieldBuildersMap.size) throw new Error("fields are required");
8
12
  const { fields } = this.buildFields();
13
+ const settings = {
14
+ ...this.config.settings || {}
15
+ };
16
+ if (!this.lifecycleEvents) settings.lifecycleEvents = false;
9
17
  return createPrivateModelPlugin({
10
18
  modelId: this.config.modelId,
11
19
  name: this.config.name,
12
20
  fields,
13
21
  authorization: false,
14
22
  noValidate: true,
15
- tags: this.getTags()
23
+ tags: this.getTags(),
24
+ settings
16
25
  });
17
26
  }
27
+ constructor(...args){
28
+ super(...args), this.lifecycleEvents = true;
29
+ }
18
30
  }
19
31
  export { PrivateModelBuilder };
20
32
 
@@ -1 +1 @@
1
- {"version":3,"file":"features/modelBuilder/models/PrivateModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/PrivateModelBuilder.ts"],"sourcesContent":["import { createPrivateModelPlugin } from \"~/plugins/CmsModelPlugin.js\";\nimport { BaseModelBuilder } from \"./BaseModelBuilder.js\";\n\nexport class PrivateModelBuilder extends BaseModelBuilder {\n public build() {\n if (!this.config.modelId) {\n throw new Error(\"modelId is required\");\n }\n if (!this.config.name) {\n throw new Error(\"name is required\");\n }\n if (this.fieldBuildersMap.size === 0) {\n throw new Error(\"fields are required\");\n }\n\n // Build all fields from field builders (layout replacements ignored for private models)\n const { fields } = this.buildFields();\n\n return createPrivateModelPlugin({\n modelId: this.config.modelId,\n name: this.config.name,\n fields,\n authorization: false,\n noValidate: true,\n tags: this.getTags()\n });\n }\n}\n"],"names":["PrivateModelBuilder","BaseModelBuilder","Error","fields","createPrivateModelPlugin"],"mappings":";;AAGO,MAAMA,4BAA4BC;IAC9B,QAAQ;QACX,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EACpB,MAAM,IAAIC,MAAM;QAEpB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EACjB,MAAM,IAAIA,MAAM;QAEpB,IAAI,AAA+B,MAA/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAC1B,MAAM,IAAIA,MAAM;QAIpB,MAAM,EAAEC,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW;QAEnC,OAAOC,yBAAyB;YAC5B,SAAS,IAAI,CAAC,MAAM,CAAC,OAAO;YAC5B,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI;YACtBD;YACA,eAAe;YACf,YAAY;YACZ,MAAM,IAAI,CAAC,OAAO;QACtB;IACJ;AACJ"}
1
+ {"version":3,"file":"features/modelBuilder/models/PrivateModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/PrivateModelBuilder.ts"],"sourcesContent":["import { createPrivateModelPlugin } from \"~/plugins/CmsModelPlugin.js\";\nimport { BaseModelBuilder } from \"./BaseModelBuilder.js\";\n\nexport class PrivateModelBuilder extends BaseModelBuilder {\n private lifecycleEvents = true;\n\n /**\n * @internal Use `builder.private({ lifecycleEvents: false })` instead.\n */\n public disableLifecycleEvents(): this {\n this.lifecycleEvents = false;\n return this;\n }\n\n public build() {\n if (!this.config.modelId) {\n throw new Error(\"modelId is required\");\n }\n if (!this.config.name) {\n throw new Error(\"name is required\");\n }\n if (this.fieldBuildersMap.size === 0) {\n throw new Error(\"fields are required\");\n }\n\n // Build all fields from field builders (layout replacements ignored for private models)\n const { fields } = this.buildFields();\n\n const settings = { ...(this.config.settings || {}) };\n if (!this.lifecycleEvents) {\n settings.lifecycleEvents = false;\n }\n\n return createPrivateModelPlugin({\n modelId: this.config.modelId,\n name: this.config.name,\n fields,\n authorization: false,\n noValidate: true,\n tags: this.getTags(),\n settings\n });\n }\n}\n"],"names":["PrivateModelBuilder","BaseModelBuilder","Error","fields","settings","createPrivateModelPlugin"],"mappings":";;AAGO,MAAMA,4BAA4BC;IAM9B,yBAA+B;QAClC,IAAI,CAAC,eAAe,GAAG;QACvB,OAAO,IAAI;IACf;IAEO,QAAQ;QACX,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EACpB,MAAM,IAAIC,MAAM;QAEpB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EACjB,MAAM,IAAIA,MAAM;QAEpB,IAAI,AAA+B,MAA/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAC1B,MAAM,IAAIA,MAAM;QAIpB,MAAM,EAAEC,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW;QAEnC,MAAMC,WAAW;YAAE,GAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC;QAAE;QACnD,IAAI,CAAC,IAAI,CAAC,eAAe,EACrBA,SAAS,eAAe,GAAG;QAG/B,OAAOC,yBAAyB;YAC5B,SAAS,IAAI,CAAC,MAAM,CAAC,OAAO;YAC5B,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI;YACtBF;YACA,eAAe;YACf,YAAY;YACZ,MAAM,IAAI,CAAC,OAAO;YAClBC;QACJ;IACJ;;QAvCG,qBACK,eAAe,GAAG;;AAuC9B"}
@@ -92,7 +92,8 @@ class PublicModelBuilder extends BaseModelBuilder {
92
92
  imageFieldId: this.publicConfig.imageFieldId,
93
93
  layout,
94
94
  fields,
95
- tags: this.getTags()
95
+ tags: this.getTags(),
96
+ settings: this.config.settings || {}
96
97
  }, {
97
98
  validateLayout: false
98
99
  });
@@ -1 +1 @@
1
- {"version":3,"file":"features/modelBuilder/models/PublicModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/PublicModelBuilder.ts"],"sourcesContent":["import upperFirst from \"lodash/upperFirst.js\";\nimport camelCase from \"lodash/camelCase.js\";\nimport pluralize from \"pluralize\";\nimport { createModelPlugin } from \"~/plugins/CmsModelPlugin.js\";\nimport { BaseModelBuilder } from \"./BaseModelBuilder.js\";\nimport type { CmsIcon, CmsModelField } from \"~/types/index.js\";\nimport { LayoutBuilder } from \"../LayoutBuilder.js\";\n\nconst createApiName = (name: string) => {\n return upperFirst(camelCase(name));\n};\n\nconst createPluralApiName = (name: string) => {\n return pluralize(createApiName(name));\n};\n\nclass Icon {\n static from(icon: string | CmsIcon): CmsIcon {\n if (typeof icon === \"string\") {\n return {\n type: \"icon\",\n name: icon\n };\n }\n\n return icon;\n }\n}\n\nexport class PublicModelBuilder extends BaseModelBuilder {\n private publicConfig: {\n singularApiName?: string;\n pluralApiName?: string;\n group?: string;\n icon?: CmsIcon;\n description?: string;\n titleFieldId?: string;\n descriptionFieldId?: string;\n imageFieldId?: string;\n } = {};\n private layoutBuilder: LayoutBuilder;\n\n singularApiName(name: string): this {\n this.publicConfig.singularApiName = name;\n return this;\n }\n\n pluralApiName(name: string): this {\n this.publicConfig.pluralApiName = name;\n return this;\n }\n\n group(slug: string): this {\n this.publicConfig.group = slug;\n return this;\n }\n\n icon(icon: string | CmsIcon): this {\n this.publicConfig.icon = Icon.from(icon);\n return this;\n }\n\n description(description: string): this {\n this.publicConfig.description = description;\n return this;\n }\n\n titleFieldId(fieldId: string): this {\n this.publicConfig.titleFieldId = fieldId;\n return this;\n }\n\n descriptionFieldId(fieldId: string): this {\n this.publicConfig.descriptionFieldId = fieldId;\n return this;\n }\n\n imageFieldId(fieldId: string): this {\n this.publicConfig.imageFieldId = fieldId;\n return this;\n }\n /**\n * It just creates problems if we import the FieldBuilderRegistry.\n * TODO: figure out\n */\n constructor(registry: any) {\n super(registry);\n this.layoutBuilder = new LayoutBuilder();\n }\n\n layout(layoutOrBuilder: string[][] | ((builder: LayoutBuilder) => void)): this {\n if (Array.isArray(layoutOrBuilder)) {\n // Replace layout with array\n this.layoutBuilder.setLayout(layoutOrBuilder);\n } else {\n // Queue the modifier callback\n this.layoutBuilder.addModifier(layoutOrBuilder);\n }\n return this;\n }\n\n build() {\n if (!this.config.modelId) {\n throw new Error(\"modelId is required\");\n }\n if (!this.config.name) {\n throw new Error(\"name is required\");\n }\n if (this.fieldBuildersMap.size === 0) {\n this.fields(builder => ({\n alert: builder\n .uiAlert()\n .label(\n \"No fields defined in the code content model. Please ensure you have the fields property correctly defined.\"\n ),\n emptyPlaceholder: builder.text().label(\"Empty\").renderer(\"hidden\")\n }));\n this.titleFieldId(\"emptyPlaceholder\");\n this.layoutBuilder.setLayout([[\"alert\"], [\"emptyPlaceholder\"]]);\n }\n if (!this.publicConfig.group) {\n throw new Error(\"group is required\");\n }\n\n // Build all fields from field builders, separating data and layout results\n const { fields, layoutReplacements } = this.buildFields();\n\n // Build and apply layout replacements (tabs → rich descriptors)\n const rawLayout = this.layoutBuilder.build();\n const layout = rawLayout.map(row => row.map(cell => layoutReplacements.get(cell) ?? cell));\n\n return createModelPlugin(\n {\n modelId: this.config.modelId,\n name: this.config.name,\n singularApiName:\n this.publicConfig.singularApiName || createApiName(this.config.name),\n pluralApiName:\n this.publicConfig.pluralApiName || createPluralApiName(this.config.name),\n group: this.publicConfig.group,\n icon: this.publicConfig.icon ?? null,\n description: this.publicConfig.description || null,\n titleFieldId:\n this.publicConfig.titleFieldId ?? this.findFirstFieldId(fields, \"text\"),\n descriptionFieldId: this.publicConfig.descriptionFieldId,\n imageFieldId: this.publicConfig.imageFieldId,\n layout,\n fields,\n tags: this.getTags()\n },\n { validateLayout: false }\n );\n }\n\n private findFirstFieldId(fields: CmsModelField[], type: string): string {\n for (const field of fields) {\n if (field.type === type) {\n return field.fieldId;\n }\n }\n return fields.find(field => field.type === \"text\")?.fieldId || \"\";\n }\n}\n"],"names":["createApiName","name","upperFirst","camelCase","createPluralApiName","pluralize","Icon","icon","PublicModelBuilder","BaseModelBuilder","slug","description","fieldId","registry","LayoutBuilder","layoutOrBuilder","Array","Error","builder","fields","layoutReplacements","rawLayout","layout","row","cell","createModelPlugin","type","field"],"mappings":"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"}
1
+ {"version":3,"file":"features/modelBuilder/models/PublicModelBuilder.js","sources":["../../../../src/features/modelBuilder/models/PublicModelBuilder.ts"],"sourcesContent":["import upperFirst from \"lodash/upperFirst.js\";\nimport camelCase from \"lodash/camelCase.js\";\nimport pluralize from \"pluralize\";\nimport { createModelPlugin } from \"~/plugins/CmsModelPlugin.js\";\nimport { BaseModelBuilder } from \"./BaseModelBuilder.js\";\nimport type { CmsIcon, CmsModelField } from \"~/types/index.js\";\nimport { LayoutBuilder } from \"../LayoutBuilder.js\";\n\nconst createApiName = (name: string) => {\n return upperFirst(camelCase(name));\n};\n\nconst createPluralApiName = (name: string) => {\n return pluralize(createApiName(name));\n};\n\nclass Icon {\n static from(icon: string | CmsIcon): CmsIcon {\n if (typeof icon === \"string\") {\n return {\n type: \"icon\",\n name: icon\n };\n }\n\n return icon;\n }\n}\n\nexport class PublicModelBuilder extends BaseModelBuilder {\n private publicConfig: {\n singularApiName?: string;\n pluralApiName?: string;\n group?: string;\n icon?: CmsIcon;\n description?: string;\n titleFieldId?: string;\n descriptionFieldId?: string;\n imageFieldId?: string;\n } = {};\n private layoutBuilder: LayoutBuilder;\n\n singularApiName(name: string): this {\n this.publicConfig.singularApiName = name;\n return this;\n }\n\n pluralApiName(name: string): this {\n this.publicConfig.pluralApiName = name;\n return this;\n }\n\n group(slug: string): this {\n this.publicConfig.group = slug;\n return this;\n }\n\n icon(icon: string | CmsIcon): this {\n this.publicConfig.icon = Icon.from(icon);\n return this;\n }\n\n description(description: string): this {\n this.publicConfig.description = description;\n return this;\n }\n\n titleFieldId(fieldId: string): this {\n this.publicConfig.titleFieldId = fieldId;\n return this;\n }\n\n descriptionFieldId(fieldId: string): this {\n this.publicConfig.descriptionFieldId = fieldId;\n return this;\n }\n\n imageFieldId(fieldId: string): this {\n this.publicConfig.imageFieldId = fieldId;\n return this;\n }\n /**\n * It just creates problems if we import the FieldBuilderRegistry.\n * TODO: figure out\n */\n constructor(registry: any) {\n super(registry);\n this.layoutBuilder = new LayoutBuilder();\n }\n\n layout(layoutOrBuilder: string[][] | ((builder: LayoutBuilder) => void)): this {\n if (Array.isArray(layoutOrBuilder)) {\n // Replace layout with array\n this.layoutBuilder.setLayout(layoutOrBuilder);\n } else {\n // Queue the modifier callback\n this.layoutBuilder.addModifier(layoutOrBuilder);\n }\n return this;\n }\n\n build() {\n if (!this.config.modelId) {\n throw new Error(\"modelId is required\");\n }\n if (!this.config.name) {\n throw new Error(\"name is required\");\n }\n if (this.fieldBuildersMap.size === 0) {\n this.fields(builder => ({\n alert: builder\n .uiAlert()\n .label(\n \"No fields defined in the code content model. Please ensure you have the fields property correctly defined.\"\n ),\n emptyPlaceholder: builder.text().label(\"Empty\").renderer(\"hidden\")\n }));\n this.titleFieldId(\"emptyPlaceholder\");\n this.layoutBuilder.setLayout([[\"alert\"], [\"emptyPlaceholder\"]]);\n }\n if (!this.publicConfig.group) {\n throw new Error(\"group is required\");\n }\n\n // Build all fields from field builders, separating data and layout results\n const { fields, layoutReplacements } = this.buildFields();\n\n // Build and apply layout replacements (tabs → rich descriptors)\n const rawLayout = this.layoutBuilder.build();\n const layout = rawLayout.map(row => row.map(cell => layoutReplacements.get(cell) ?? cell));\n\n return createModelPlugin(\n {\n modelId: this.config.modelId,\n name: this.config.name,\n singularApiName:\n this.publicConfig.singularApiName || createApiName(this.config.name),\n pluralApiName:\n this.publicConfig.pluralApiName || createPluralApiName(this.config.name),\n group: this.publicConfig.group,\n icon: this.publicConfig.icon ?? null,\n description: this.publicConfig.description || null,\n titleFieldId:\n this.publicConfig.titleFieldId ?? this.findFirstFieldId(fields, \"text\"),\n descriptionFieldId: this.publicConfig.descriptionFieldId,\n imageFieldId: this.publicConfig.imageFieldId,\n layout,\n fields,\n tags: this.getTags(),\n settings: this.config.settings || {}\n },\n { validateLayout: false }\n );\n }\n\n private findFirstFieldId(fields: CmsModelField[], type: string): string {\n for (const field of fields) {\n if (field.type === type) {\n return field.fieldId;\n }\n }\n return fields.find(field => field.type === \"text\")?.fieldId || \"\";\n }\n}\n"],"names":["createApiName","name","upperFirst","camelCase","createPluralApiName","pluralize","Icon","icon","PublicModelBuilder","BaseModelBuilder","slug","description","fieldId","registry","LayoutBuilder","layoutOrBuilder","Array","Error","builder","fields","layoutReplacements","rawLayout","layout","row","cell","createModelPlugin","type","field"],"mappings":"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"}
@@ -0,0 +1,13 @@
1
+ import { RuntimeTenant as Abstraction } from "./abstractions.js";
2
+ import { TenantContext } from "@webiny/api-core/exports/api/tenancy.js";
3
+ declare class RuntimeTenantImpl implements Abstraction.Interface {
4
+ private tenantContext;
5
+ constructor(tenantContext: TenantContext.Interface);
6
+ assign<T extends {
7
+ tenant: string;
8
+ }>(obj: T): T;
9
+ }
10
+ export declare const RuntimeTenant: typeof RuntimeTenantImpl & {
11
+ __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IRuntimeTenant>;
12
+ };
13
+ export {};
@@ -0,0 +1,22 @@
1
+ import { RuntimeTenant } from "./abstractions.js";
2
+ import { TenantContext } from "@webiny/api-core/exports/api/tenancy.js";
3
+ class RuntimeTenantImpl {
4
+ constructor(tenantContext){
5
+ this.tenantContext = tenantContext;
6
+ }
7
+ assign(obj) {
8
+ return structuredClone({
9
+ ...obj,
10
+ tenant: this.tenantContext.getTenant().id
11
+ });
12
+ }
13
+ }
14
+ const RuntimeTenant_RuntimeTenant = RuntimeTenant.createImplementation({
15
+ implementation: RuntimeTenantImpl,
16
+ dependencies: [
17
+ TenantContext
18
+ ]
19
+ });
20
+ export { RuntimeTenant_RuntimeTenant as RuntimeTenant };
21
+
22
+ //# sourceMappingURL=RuntimeTenant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/runtimeTenant/RuntimeTenant.js","sources":["../../../src/features/runtimeTenant/RuntimeTenant.ts"],"sourcesContent":["import { RuntimeTenant as Abstraction } from \"./abstractions.js\";\nimport { TenantContext } from \"@webiny/api-core/exports/api/tenancy.js\";\n\nclass RuntimeTenantImpl implements Abstraction.Interface {\n public constructor(private tenantContext: TenantContext.Interface) {}\n\n public assign<T extends { tenant: string }>(obj: T): T {\n return structuredClone({ ...obj, tenant: this.tenantContext.getTenant().id });\n }\n}\n\nexport const RuntimeTenant = Abstraction.createImplementation({\n implementation: RuntimeTenantImpl,\n dependencies: [TenantContext]\n});\n"],"names":["RuntimeTenantImpl","tenantContext","obj","structuredClone","RuntimeTenant","Abstraction","TenantContext"],"mappings":";;AAGA,MAAMA;IACF,YAA2BC,aAAsC,CAAE;aAAxCA,aAAa,GAAbA;IAAyC;IAE7D,OAAqCC,GAAM,EAAK;QACnD,OAAOC,gBAAgB;YAAE,GAAGD,GAAG;YAAE,QAAQ,IAAI,CAAC,aAAa,CAAC,SAAS,GAAG,EAAE;QAAC;IAC/E;AACJ;AAEO,MAAME,8BAAgBC,cAAAA,oBAAgC,CAAC;IAC1D,gBAAgBL;IAChB,cAAc;QAACM;KAAc;AACjC"}
@@ -0,0 +1,11 @@
1
+ interface HasTenant {
2
+ tenant: string;
3
+ }
4
+ export interface IRuntimeTenant {
5
+ assign<T extends HasTenant>(obj: T): T;
6
+ }
7
+ export declare const RuntimeTenant: import("@webiny/di").Abstraction<IRuntimeTenant>;
8
+ export declare namespace RuntimeTenant {
9
+ type Interface = IRuntimeTenant;
10
+ }
11
+ export {};
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const RuntimeTenant = createAbstraction("Cms/RuntimeTenant");
3
+ export { RuntimeTenant };
4
+
5
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/runtimeTenant/abstractions.js","sources":["../../../src/features/runtimeTenant/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\n\ninterface HasTenant {\n tenant: string;\n}\n\nexport interface IRuntimeTenant {\n assign<T extends HasTenant>(obj: T): T;\n}\n\nexport const RuntimeTenant = createAbstraction<IRuntimeTenant>(\"Cms/RuntimeTenant\");\n\nexport namespace RuntimeTenant {\n export type Interface = IRuntimeTenant;\n}\n"],"names":["RuntimeTenant","createAbstraction"],"mappings":";AAUO,MAAMA,gBAAgBC,kBAAkC"}
@@ -0,0 +1,2 @@
1
+ export { RuntimeTenant } from "./abstractions.js";
2
+ export { RuntimeTenant as RuntimeTenantImplementation } from "./RuntimeTenant.js";
@@ -0,0 +1,2 @@
1
+ export { RuntimeTenant } from "./abstractions.js";
2
+ export { RuntimeTenant as RuntimeTenantImplementation } from "./RuntimeTenant.js";
@@ -1,20 +1,12 @@
1
- import type { CmsContext as CmsCtx, HeadlessCmsStorageOperations as StorageOps } from "../../types/types.js";
1
+ import type { CmsContext as CmsCtx, CmsEntryValues, StorageOperationsCmsModel } from "../../types/types.js";
2
+ import type { CmsModel } from "../../types/model.js";
2
3
  import type { AccessControl as AccessControlClass } from "../../crud/AccessControl/AccessControl.js";
3
- /**
4
- * StorageOperations abstraction for legacy storage operations.
5
- * The legacy implementation will be registered using container.registerInstance.
6
- */
7
- export declare const StorageOperations: import("@webiny/di").Abstraction<StorageOps<CmsCtx>>;
8
- export declare namespace StorageOperations {
9
- type Interface = StorageOps;
10
- }
11
- export interface IHeadlessCmsStorageOperationsFactory<T> {
12
- create(context: T): Promise<StorageOps>;
4
+ export interface ICmsStorageModelProvider {
5
+ getModel<T extends CmsEntryValues = CmsEntryValues>(model: CmsModel): StorageOperationsCmsModel<T>;
13
6
  }
14
- export declare const StorageOperationsFactory: import("@webiny/di").Abstraction<IHeadlessCmsStorageOperationsFactory<any>>;
15
- export declare namespace StorageOperationsFactory {
16
- type Interface<T extends CmsCtx = CmsCtx> = IHeadlessCmsStorageOperationsFactory<T>;
17
- type Result = StorageOps;
7
+ export declare const CmsStorageModelProvider: import("@webiny/di").Abstraction<ICmsStorageModelProvider>;
8
+ export declare namespace CmsStorageModelProvider {
9
+ type Interface = ICmsStorageModelProvider;
18
10
  }
19
11
  /**
20
12
  * AccessControl abstraction for legacy access control.
@@ -28,7 +20,7 @@ export declare namespace AccessControl {
28
20
  * CmsContext abstraction for legacy CMS context.
29
21
  * The legacy implementation will be registered using container.registerInstance.
30
22
  */
31
- export declare const CmsContext: import("@webiny/di").Abstraction<CmsCtx>;
23
+ export declare const CmsContext: import("@webiny/di").Abstraction<import("@webiny/api/types").Context>;
32
24
  export declare namespace CmsContext {
33
25
  type Interface = CmsCtx;
34
26
  }
@@ -1,8 +1,7 @@
1
1
  import { createAbstraction } from "@webiny/feature/api";
2
- const StorageOperations = createAbstraction("StorageOperations");
3
- const StorageOperationsFactory = createAbstraction("Cms/StorageOperationsFactory");
2
+ const CmsStorageModelProvider = createAbstraction("CmsStorageModelProvider");
4
3
  const AccessControl = createAbstraction("AccessControl");
5
4
  const CmsContext = createAbstraction("CmsContext");
6
- export { AccessControl, CmsContext, StorageOperations, StorageOperationsFactory };
5
+ export { AccessControl, CmsContext, CmsStorageModelProvider };
7
6
 
8
7
  //# sourceMappingURL=abstractions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"features/shared/abstractions.js","sources":["../../../src/features/shared/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type {\n CmsContext as CmsCtx,\n HeadlessCmsStorageOperations as StorageOps\n} from \"~/types/types.js\";\nimport type { AccessControl as AccessControlClass } from \"~/crud/AccessControl/AccessControl.js\";\n\n/**\n * StorageOperations abstraction for legacy storage operations.\n * The legacy implementation will be registered using container.registerInstance.\n */\nexport const StorageOperations = createAbstraction<StorageOps>(\"StorageOperations\");\n\nexport namespace StorageOperations {\n export type Interface = StorageOps;\n}\n\nexport interface IHeadlessCmsStorageOperationsFactory<T> {\n create(context: T): Promise<StorageOps>;\n}\n\nexport const StorageOperationsFactory = createAbstraction<\n IHeadlessCmsStorageOperationsFactory<any>\n>(\"Cms/StorageOperationsFactory\");\n\nexport namespace StorageOperationsFactory {\n export type Interface<T extends CmsCtx = CmsCtx> = IHeadlessCmsStorageOperationsFactory<T>;\n export type Result = StorageOps;\n}\n\n/**\n * AccessControl abstraction for legacy access control.\n * The legacy implementation will be registered using container.registerInstance.\n */\nexport const AccessControl = createAbstraction<AccessControlClass>(\"AccessControl\");\n\nexport namespace AccessControl {\n export type Interface = AccessControlClass;\n}\n\n/**\n * CmsContext abstraction for legacy CMS context.\n * The legacy implementation will be registered using container.registerInstance.\n */\nexport const CmsContext = createAbstraction<CmsCtx>(\"CmsContext\");\n\nexport namespace CmsContext {\n export type Interface = CmsCtx;\n}\n\nexport interface IAccessControl {\n canAccessModel(params: { model: any }): Promise<boolean>;\n canAccessGroup(params: { group: any }): Promise<boolean>;\n}\n"],"names":["StorageOperations","createAbstraction","StorageOperationsFactory","AccessControl","CmsContext"],"mappings":";AAWO,MAAMA,oBAAoBC,kBAA8B;AAUxD,MAAMC,2BAA2BD,kBAEtC;AAWK,MAAME,gBAAgBF,kBAAsC;AAU5D,MAAMG,aAAaH,kBAA0B"}
1
+ {"version":3,"file":"features/shared/abstractions.js","sources":["../../../src/features/shared/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type {\n CmsContext as CmsCtx,\n CmsEntryValues,\n StorageOperationsCmsModel\n} from \"~/types/types.js\";\nimport type { CmsModel } from \"~/types/model.js\";\nimport type { AccessControl as AccessControlClass } from \"~/crud/AccessControl/AccessControl.js\";\n\nexport interface ICmsStorageModelProvider {\n getModel<T extends CmsEntryValues = CmsEntryValues>(\n model: CmsModel\n ): StorageOperationsCmsModel<T>;\n}\n\nexport const CmsStorageModelProvider =\n createAbstraction<ICmsStorageModelProvider>(\"CmsStorageModelProvider\");\n\nexport namespace CmsStorageModelProvider {\n export type Interface = ICmsStorageModelProvider;\n}\n\n/**\n * AccessControl abstraction for legacy access control.\n * The legacy implementation will be registered using container.registerInstance.\n */\nexport const AccessControl = createAbstraction<AccessControlClass>(\"AccessControl\");\n\nexport namespace AccessControl {\n export type Interface = AccessControlClass;\n}\n\n/**\n * CmsContext abstraction for legacy CMS context.\n * The legacy implementation will be registered using container.registerInstance.\n */\nexport const CmsContext = createAbstraction<CmsCtx>(\"CmsContext\");\n\nexport namespace CmsContext {\n export type Interface = CmsCtx;\n}\n\nexport interface IAccessControl {\n canAccessModel(params: { model: any }): Promise<boolean>;\n canAccessGroup(params: { group: any }): Promise<boolean>;\n}\n"],"names":["CmsStorageModelProvider","createAbstraction","AccessControl","CmsContext"],"mappings":";AAeO,MAAMA,0BACTC,kBAA4C;AAUzC,MAAMC,gBAAgBD,kBAAsC;AAU5D,MAAME,aAAaF,kBAA0B"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntry, CmsEntryValues, CmsEntryStorageOperationsCreateRevisionFromParams } from "../../../../types/index.js";
2
+ export interface ICreateEntryRevisionFromStorageOperation {
3
+ execute<T extends CmsEntryValues = CmsEntryValues>(model: CmsModel, params: CmsEntryStorageOperationsCreateRevisionFromParams<T>): Promise<CmsEntry<T>>;
4
+ }
5
+ export declare const CreateEntryRevisionFromStorageOperation: import("@webiny/di").Abstraction<ICreateEntryRevisionFromStorageOperation>;
6
+ export declare namespace CreateEntryRevisionFromStorageOperation {
7
+ type Interface = ICreateEntryRevisionFromStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CreateEntryRevisionFromStorageOperation = createAbstraction("Cms/Entry/CreateEntryRevisionFromStorageOperation");
3
+ export { CreateEntryRevisionFromStorageOperation };
4
+
5
+ //# sourceMappingURL=CreateEntryRevisionFromStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type {\n CmsModel,\n CmsEntry,\n CmsEntryValues,\n CmsEntryStorageOperationsCreateRevisionFromParams\n} from \"~/types/index.js\";\n\nexport interface ICreateEntryRevisionFromStorageOperation {\n execute<T extends CmsEntryValues = CmsEntryValues>(\n model: CmsModel,\n params: CmsEntryStorageOperationsCreateRevisionFromParams<T>\n ): Promise<CmsEntry<T>>;\n}\n\nexport const CreateEntryRevisionFromStorageOperation =\n createAbstraction<ICreateEntryRevisionFromStorageOperation>(\n \"Cms/Entry/CreateEntryRevisionFromStorageOperation\"\n );\n\nexport namespace CreateEntryRevisionFromStorageOperation {\n export type Interface = ICreateEntryRevisionFromStorageOperation;\n}\n"],"names":["CreateEntryRevisionFromStorageOperation","createAbstraction"],"mappings":";AAeO,MAAMA,0CACTC,kBACI"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntry, CmsEntryValues, CmsEntryStorageOperationsCreateParams } from "../../../../types/index.js";
2
+ export interface ICreateEntryStorageOperation {
3
+ execute<T extends CmsEntryValues = CmsEntryValues>(model: CmsModel, params: CmsEntryStorageOperationsCreateParams<T>): Promise<CmsEntry<T>>;
4
+ }
5
+ export declare const CreateEntryStorageOperation: import("@webiny/di").Abstraction<ICreateEntryStorageOperation>;
6
+ export declare namespace CreateEntryStorageOperation {
7
+ type Interface = ICreateEntryStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CreateEntryStorageOperation = createAbstraction("Cms/Entry/CreateEntryStorageOperation");
3
+ export { CreateEntryStorageOperation };
4
+
5
+ //# sourceMappingURL=CreateEntryStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/entry/CreateEntryStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/entry/CreateEntryStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type {\n CmsModel,\n CmsEntry,\n CmsEntryValues,\n CmsEntryStorageOperationsCreateParams\n} from \"~/types/index.js\";\n\nexport interface ICreateEntryStorageOperation {\n execute<T extends CmsEntryValues = CmsEntryValues>(\n model: CmsModel,\n params: CmsEntryStorageOperationsCreateParams<T>\n ): Promise<CmsEntry<T>>;\n}\n\nexport const CreateEntryStorageOperation = createAbstraction<ICreateEntryStorageOperation>(\n \"Cms/Entry/CreateEntryStorageOperation\"\n);\n\nexport namespace CreateEntryStorageOperation {\n export type Interface = ICreateEntryStorageOperation;\n}\n"],"names":["CreateEntryStorageOperation","createAbstraction"],"mappings":";AAeO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntryValues, CmsEntryStorageOperationsDeleteRevisionParams } from "../../../../types/index.js";
2
+ export interface IDeleteEntryRevisionStorageOperation {
3
+ execute<T extends CmsEntryValues = CmsEntryValues>(model: CmsModel, params: CmsEntryStorageOperationsDeleteRevisionParams<T>): Promise<void>;
4
+ }
5
+ export declare const DeleteEntryRevisionStorageOperation: import("@webiny/di").Abstraction<IDeleteEntryRevisionStorageOperation>;
6
+ export declare namespace DeleteEntryRevisionStorageOperation {
7
+ type Interface = IDeleteEntryRevisionStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const DeleteEntryRevisionStorageOperation = createAbstraction("Cms/Entry/DeleteEntryRevisionStorageOperation");
3
+ export { DeleteEntryRevisionStorageOperation };
4
+
5
+ //# sourceMappingURL=DeleteEntryRevisionStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type {\n CmsModel,\n CmsEntryValues,\n CmsEntryStorageOperationsDeleteRevisionParams\n} from \"~/types/index.js\";\n\nexport interface IDeleteEntryRevisionStorageOperation {\n execute<T extends CmsEntryValues = CmsEntryValues>(\n model: CmsModel,\n params: CmsEntryStorageOperationsDeleteRevisionParams<T>\n ): Promise<void>;\n}\n\nexport const DeleteEntryRevisionStorageOperation =\n createAbstraction<IDeleteEntryRevisionStorageOperation>(\n \"Cms/Entry/DeleteEntryRevisionStorageOperation\"\n );\n\nexport namespace DeleteEntryRevisionStorageOperation {\n export type Interface = IDeleteEntryRevisionStorageOperation;\n}\n"],"names":["DeleteEntryRevisionStorageOperation","createAbstraction"],"mappings":";AAcO,MAAMA,sCACTC,kBACI"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntryStorageOperationsDeleteParams } from "../../../../types/index.js";
2
+ export interface IDeleteEntryStorageOperation {
3
+ execute(model: CmsModel, params: CmsEntryStorageOperationsDeleteParams): Promise<void>;
4
+ }
5
+ export declare const DeleteEntryStorageOperation: import("@webiny/di").Abstraction<IDeleteEntryStorageOperation>;
6
+ export declare namespace DeleteEntryStorageOperation {
7
+ type Interface = IDeleteEntryStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const DeleteEntryStorageOperation = createAbstraction("Cms/Entry/DeleteEntryStorageOperation");
3
+ export { DeleteEntryStorageOperation };
4
+
5
+ //# sourceMappingURL=DeleteEntryStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/entry/DeleteEntryStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/entry/DeleteEntryStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel, CmsEntryStorageOperationsDeleteParams } from \"~/types/index.js\";\n\nexport interface IDeleteEntryStorageOperation {\n execute(model: CmsModel, params: CmsEntryStorageOperationsDeleteParams): Promise<void>;\n}\n\nexport const DeleteEntryStorageOperation = createAbstraction<IDeleteEntryStorageOperation>(\n \"Cms/Entry/DeleteEntryStorageOperation\"\n);\n\nexport namespace DeleteEntryStorageOperation {\n export type Interface = IDeleteEntryStorageOperation;\n}\n"],"names":["DeleteEntryStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntryStorageOperationsDeleteEntriesParams } from "../../../../types/index.js";
2
+ export interface IDeleteMultipleEntriesStorageOperation {
3
+ execute(model: CmsModel, params: CmsEntryStorageOperationsDeleteEntriesParams): Promise<void>;
4
+ }
5
+ export declare const DeleteMultipleEntriesStorageOperation: import("@webiny/di").Abstraction<IDeleteMultipleEntriesStorageOperation>;
6
+ export declare namespace DeleteMultipleEntriesStorageOperation {
7
+ type Interface = IDeleteMultipleEntriesStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const DeleteMultipleEntriesStorageOperation = createAbstraction("Cms/Entry/DeleteMultipleEntriesStorageOperation");
3
+ export { DeleteMultipleEntriesStorageOperation };
4
+
5
+ //# sourceMappingURL=DeleteMultipleEntriesStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel, CmsEntryStorageOperationsDeleteEntriesParams } from \"~/types/index.js\";\n\nexport interface IDeleteMultipleEntriesStorageOperation {\n execute(model: CmsModel, params: CmsEntryStorageOperationsDeleteEntriesParams): Promise<void>;\n}\n\nexport const DeleteMultipleEntriesStorageOperation =\n createAbstraction<IDeleteMultipleEntriesStorageOperation>(\n \"Cms/Entry/DeleteMultipleEntriesStorageOperation\"\n );\n\nexport namespace DeleteMultipleEntriesStorageOperation {\n export type Interface = IDeleteMultipleEntriesStorageOperation;\n}\n"],"names":["DeleteMultipleEntriesStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,wCACTC,kBACI"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntry, CmsEntryValues, CmsEntryStorageOperationsGetByIdsParams } from "../../../../types/index.js";
2
+ export interface IGetEntriesByIdsStorageOperation {
3
+ execute<T extends CmsEntryValues = CmsEntryValues>(model: CmsModel, params: CmsEntryStorageOperationsGetByIdsParams): Promise<CmsEntry<T>[]>;
4
+ }
5
+ export declare const GetEntriesByIdsStorageOperation: import("@webiny/di").Abstraction<IGetEntriesByIdsStorageOperation>;
6
+ export declare namespace GetEntriesByIdsStorageOperation {
7
+ type Interface = IGetEntriesByIdsStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const GetEntriesByIdsStorageOperation = createAbstraction("Cms/Entry/GetEntriesByIdsStorageOperation");
3
+ export { GetEntriesByIdsStorageOperation };
4
+
5
+ //# sourceMappingURL=GetEntriesByIdsStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type {\n CmsModel,\n CmsEntry,\n CmsEntryValues,\n CmsEntryStorageOperationsGetByIdsParams\n} from \"~/types/index.js\";\n\nexport interface IGetEntriesByIdsStorageOperation {\n execute<T extends CmsEntryValues = CmsEntryValues>(\n model: CmsModel,\n params: CmsEntryStorageOperationsGetByIdsParams\n ): Promise<CmsEntry<T>[]>;\n}\n\nexport const GetEntriesByIdsStorageOperation = createAbstraction<IGetEntriesByIdsStorageOperation>(\n \"Cms/Entry/GetEntriesByIdsStorageOperation\"\n);\n\nexport namespace GetEntriesByIdsStorageOperation {\n export type Interface = IGetEntriesByIdsStorageOperation;\n}\n"],"names":["GetEntriesByIdsStorageOperation","createAbstraction"],"mappings":";AAeO,MAAMA,kCAAkCC,kBAC3C"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntry, CmsEntryValues, CmsEntryStorageOperationsGetParams } from "../../../../types/index.js";
2
+ export interface IGetEntryStorageOperation {
3
+ execute<T extends CmsEntryValues = CmsEntryValues>(model: CmsModel, params: CmsEntryStorageOperationsGetParams): Promise<CmsEntry<T> | null>;
4
+ }
5
+ export declare const GetEntryStorageOperation: import("@webiny/di").Abstraction<IGetEntryStorageOperation>;
6
+ export declare namespace GetEntryStorageOperation {
7
+ type Interface = IGetEntryStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const GetEntryStorageOperation = createAbstraction("Cms/Entry/GetEntryStorageOperation");
3
+ export { GetEntryStorageOperation };
4
+
5
+ //# sourceMappingURL=GetEntryStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/entry/GetEntryStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/entry/GetEntryStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type {\n CmsModel,\n CmsEntry,\n CmsEntryValues,\n CmsEntryStorageOperationsGetParams\n} from \"~/types/index.js\";\n\nexport interface IGetEntryStorageOperation {\n execute<T extends CmsEntryValues = CmsEntryValues>(\n model: CmsModel,\n params: CmsEntryStorageOperationsGetParams\n ): Promise<CmsEntry<T> | null>;\n}\n\nexport const GetEntryStorageOperation = createAbstraction<IGetEntryStorageOperation>(\n \"Cms/Entry/GetEntryStorageOperation\"\n);\n\nexport namespace GetEntryStorageOperation {\n export type Interface = IGetEntryStorageOperation;\n}\n"],"names":["GetEntryStorageOperation","createAbstraction"],"mappings":";AAeO,MAAMA,2BAA2BC,kBACpC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModel, CmsEntry, CmsEntryValues, CmsEntryStorageOperationsGetLatestByIdsParams } from "../../../../types/index.js";
2
+ export interface IGetLatestEntriesByIdsStorageOperation {
3
+ execute<T extends CmsEntryValues = CmsEntryValues>(model: CmsModel, params: CmsEntryStorageOperationsGetLatestByIdsParams): Promise<CmsEntry<T>[]>;
4
+ }
5
+ export declare const GetLatestEntriesByIdsStorageOperation: import("@webiny/di").Abstraction<IGetLatestEntriesByIdsStorageOperation>;
6
+ export declare namespace GetLatestEntriesByIdsStorageOperation {
7
+ type Interface = IGetLatestEntriesByIdsStorageOperation;
8
+ }