@webiny/api-headless-cms 6.4.5 → 6.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (666) hide show
  1. package/HeadlessCmsContextualSchema.d.ts +16 -0
  2. package/HeadlessCmsContextualSchema.js +32 -0
  3. package/HeadlessCmsContextualSchema.js.map +1 -0
  4. package/HeadlessCmsEndpointConfig.d.ts +10 -0
  5. package/HeadlessCmsEndpointConfig.js +5 -0
  6. package/HeadlessCmsEndpointConfig.js.map +1 -0
  7. package/HeadlessCmsFeature.d.ts +10 -0
  8. package/HeadlessCmsFeature.js +192 -0
  9. package/HeadlessCmsFeature.js.map +1 -0
  10. package/createCmsRoute.d.ts +21 -0
  11. package/createCmsRoute.js +49 -0
  12. package/createCmsRoute.js.map +1 -0
  13. package/crud/contentEntry/entryDataValidation.d.ts +1 -1
  14. package/crud/contentEntry/entryDataValidation.js +2 -15
  15. package/crud/contentEntry/entryDataValidation.js.map +1 -1
  16. package/crud/contentEntry/references/validateEntries.d.ts +1 -1
  17. package/crud/contentEntry/references/validateEntries.js +17 -7
  18. package/crud/contentEntry/references/validateEntries.js.map +1 -1
  19. package/crud/contentEntry.crud.js +22 -20
  20. package/crud/contentEntry.crud.js.map +1 -1
  21. package/crud/contentModel.crud.js +8 -6
  22. package/crud/contentModel.crud.js.map +1 -1
  23. package/crud/contentModelGroup.crud.js +7 -5
  24. package/crud/contentModelGroup.crud.js.map +1 -1
  25. package/domain/contentModel/schemas.d.ts +6 -6
  26. package/domain/contentModel/schemas.js +1 -1
  27. package/domain/contentModel/schemas.js.map +1 -1
  28. package/domain/contentModel/validation/modelFields.js +21 -15
  29. package/domain/contentModel/validation/modelFields.js.map +1 -1
  30. package/export/abstractions.d.ts +9 -0
  31. package/export/abstractions.js +6 -0
  32. package/export/abstractions.js.map +1 -0
  33. package/export/crud/exporting.js +8 -2
  34. package/export/crud/exporting.js.map +1 -1
  35. package/export/crud/importing.js +13 -4
  36. package/export/crud/importing.js.map +1 -1
  37. package/export/crud/imports/importGroups.js +23 -23
  38. package/export/crud/imports/importGroups.js.map +1 -1
  39. package/export/crud/imports/importModels.js +25 -22
  40. package/export/crud/imports/importModels.js.map +1 -1
  41. package/export/graphql/index.d.ts +2 -3
  42. package/export/graphql/index.js +6 -10
  43. package/export/graphql/index.js.map +1 -1
  44. package/exports/api/cms/storage.d.ts +0 -1
  45. package/exports/api/cms/storage.js +0 -1
  46. package/features/contentEntry/CreateEntry/CreateEntryRepository.d.ts +6 -4
  47. package/features/contentEntry/CreateEntry/CreateEntryRepository.js +7 -8
  48. package/features/contentEntry/CreateEntry/CreateEntryRepository.js.map +1 -1
  49. package/features/contentEntry/CreateEntry/CreateEntryUseCase.d.ts +3 -1
  50. package/features/contentEntry/CreateEntry/CreateEntryUseCase.js +2 -3
  51. package/features/contentEntry/CreateEntry/CreateEntryUseCase.js.map +1 -1
  52. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.d.ts +6 -4
  53. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.js +7 -8
  54. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.js.map +1 -1
  55. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.d.ts +3 -1
  56. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.js +2 -3
  57. package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.js.map +1 -1
  58. package/features/contentEntry/DeleteEntry/DeleteEntryRepository.d.ts +6 -4
  59. package/features/contentEntry/DeleteEntry/DeleteEntryRepository.js +7 -8
  60. package/features/contentEntry/DeleteEntry/DeleteEntryRepository.js.map +1 -1
  61. package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.d.ts +3 -1
  62. package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.js +2 -3
  63. package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.js.map +1 -1
  64. package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.d.ts +6 -4
  65. package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.js +7 -8
  66. package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.js.map +1 -1
  67. package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.d.ts +3 -1
  68. package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.js +2 -3
  69. package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.js.map +1 -1
  70. package/features/contentEntry/DeleteEntry/decorators/ForceDeleteDecorator.d.ts +3 -3
  71. package/features/contentEntry/DeleteEntry/decorators/ForceDeleteDecorator.js +5 -5
  72. package/features/contentEntry/DeleteEntry/decorators/ForceDeleteDecorator.js.map +1 -1
  73. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.d.ts +6 -4
  74. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.js +7 -8
  75. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.js.map +1 -1
  76. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.d.ts +3 -1
  77. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.js +2 -3
  78. package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.js.map +1 -1
  79. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.d.ts +6 -4
  80. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.js +7 -8
  81. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.js.map +1 -1
  82. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.d.ts +3 -1
  83. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.js +2 -3
  84. package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.js.map +1 -1
  85. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.d.ts +6 -4
  86. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.js +7 -8
  87. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.js.map +1 -1
  88. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsUseCase.d.ts +3 -1
  89. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsUseCase.js +2 -3
  90. package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsUseCase.js.map +1 -1
  91. package/features/contentEntry/GetEntry/GetEntryUseCase.d.ts +3 -1
  92. package/features/contentEntry/GetEntry/GetEntryUseCase.js +2 -3
  93. package/features/contentEntry/GetEntry/GetEntryUseCase.js.map +1 -1
  94. package/features/contentEntry/GetEntryById/GetEntryByIdUseCase.d.ts +3 -1
  95. package/features/contentEntry/GetEntryById/GetEntryByIdUseCase.js +2 -3
  96. package/features/contentEntry/GetEntryById/GetEntryByIdUseCase.js.map +1 -1
  97. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.d.ts +6 -4
  98. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.js +7 -8
  99. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.js.map +1 -1
  100. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsUseCase.d.ts +3 -1
  101. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsUseCase.js +2 -3
  102. package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsUseCase.js.map +1 -1
  103. package/features/contentEntry/GetLatestRevisionByEntryId/BaseUseCase.d.ts +3 -1
  104. package/features/contentEntry/GetLatestRevisionByEntryId/BaseUseCase.js +2 -3
  105. package/features/contentEntry/GetLatestRevisionByEntryId/BaseUseCase.js.map +1 -1
  106. package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.d.ts +6 -4
  107. package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.js +7 -8
  108. package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.js.map +1 -1
  109. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestDeletedRevisionByEntryIdUseCase.d.ts +3 -1
  110. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestDeletedRevisionByEntryIdUseCase.js +2 -3
  111. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestDeletedRevisionByEntryIdUseCase.js.map +1 -1
  112. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdIncludingDeletedUseCase.d.ts +3 -1
  113. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdIncludingDeletedUseCase.js +1 -3
  114. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdIncludingDeletedUseCase.js.map +1 -1
  115. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdUseCase.d.ts +3 -1
  116. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdUseCase.js +2 -3
  117. package/features/contentEntry/GetLatestRevisionByEntryId/variations/GetLatestRevisionByEntryIdUseCase.js.map +1 -1
  118. package/features/contentEntry/GetPreviousRevisionByEntryId/BaseUseCase.d.ts +3 -1
  119. package/features/contentEntry/GetPreviousRevisionByEntryId/BaseUseCase.js +2 -3
  120. package/features/contentEntry/GetPreviousRevisionByEntryId/BaseUseCase.js.map +1 -1
  121. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.d.ts +6 -4
  122. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.js +7 -8
  123. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.js.map +1 -1
  124. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdUseCase.d.ts +3 -1
  125. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdUseCase.js +2 -3
  126. package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdUseCase.js.map +1 -1
  127. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.d.ts +6 -4
  128. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.js +7 -8
  129. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.js.map +1 -1
  130. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsUseCase.d.ts +3 -1
  131. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsUseCase.js +2 -3
  132. package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsUseCase.js.map +1 -1
  133. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.d.ts +6 -4
  134. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.js +7 -8
  135. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.js.map +1 -1
  136. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdUseCase.d.ts +3 -1
  137. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdUseCase.js +2 -3
  138. package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdUseCase.js.map +1 -1
  139. package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.d.ts +6 -4
  140. package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.js +7 -8
  141. package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.js.map +1 -1
  142. package/features/contentEntry/GetRevisionById/GetRevisionByIdUseCase.d.ts +3 -1
  143. package/features/contentEntry/GetRevisionById/GetRevisionByIdUseCase.js +1 -3
  144. package/features/contentEntry/GetRevisionById/GetRevisionByIdUseCase.js.map +1 -1
  145. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.d.ts +6 -4
  146. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.js +7 -8
  147. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.js.map +1 -1
  148. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdUseCase.d.ts +3 -1
  149. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdUseCase.js +2 -3
  150. package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdUseCase.js.map +1 -1
  151. package/features/contentEntry/GetSingletonEntry/GetSingletonEntryUseCase.js +1 -3
  152. package/features/contentEntry/GetSingletonEntry/GetSingletonEntryUseCase.js.map +1 -1
  153. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.d.ts +6 -4
  154. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.js +7 -8
  155. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.js.map +1 -1
  156. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.d.ts +6 -2
  157. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.js +8 -6
  158. package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.js.map +1 -1
  159. package/features/contentEntry/ListEntries/ListDeletedEntriesUseCase.d.ts +3 -1
  160. package/features/contentEntry/ListEntries/ListDeletedEntriesUseCase.js +1 -3
  161. package/features/contentEntry/ListEntries/ListDeletedEntriesUseCase.js.map +1 -1
  162. package/features/contentEntry/ListEntries/ListEntriesRepository.d.ts +6 -4
  163. package/features/contentEntry/ListEntries/ListEntriesRepository.js +7 -8
  164. package/features/contentEntry/ListEntries/ListEntriesRepository.js.map +1 -1
  165. package/features/contentEntry/ListEntries/ListEntriesUseCase.d.ts +3 -1
  166. package/features/contentEntry/ListEntries/ListEntriesUseCase.js +2 -3
  167. package/features/contentEntry/ListEntries/ListEntriesUseCase.js.map +1 -1
  168. package/features/contentEntry/ListEntries/ListLatestEntriesUseCase.d.ts +3 -1
  169. package/features/contentEntry/ListEntries/ListLatestEntriesUseCase.js +1 -3
  170. package/features/contentEntry/ListEntries/ListLatestEntriesUseCase.js.map +1 -1
  171. package/features/contentEntry/ListEntries/ListPublishedEntriesUseCase.d.ts +3 -1
  172. package/features/contentEntry/ListEntries/ListPublishedEntriesUseCase.js +1 -3
  173. package/features/contentEntry/ListEntries/ListPublishedEntriesUseCase.js.map +1 -1
  174. package/features/contentEntry/MoveEntry/MoveEntryRepository.d.ts +6 -4
  175. package/features/contentEntry/MoveEntry/MoveEntryRepository.js +7 -8
  176. package/features/contentEntry/MoveEntry/MoveEntryRepository.js.map +1 -1
  177. package/features/contentEntry/MoveEntry/MoveEntryUseCase.d.ts +3 -1
  178. package/features/contentEntry/MoveEntry/MoveEntryUseCase.js +2 -3
  179. package/features/contentEntry/MoveEntry/MoveEntryUseCase.js.map +1 -1
  180. package/features/contentEntry/PublishEntry/PublishEntryRepository.d.ts +6 -4
  181. package/features/contentEntry/PublishEntry/PublishEntryRepository.js +7 -8
  182. package/features/contentEntry/PublishEntry/PublishEntryRepository.js.map +1 -1
  183. package/features/contentEntry/PublishEntry/PublishEntryUseCase.d.ts +3 -1
  184. package/features/contentEntry/PublishEntry/PublishEntryUseCase.js +2 -3
  185. package/features/contentEntry/PublishEntry/PublishEntryUseCase.js.map +1 -1
  186. package/features/contentEntry/RepublishEntry/RepublishEntryRepository.d.ts +8 -4
  187. package/features/contentEntry/RepublishEntry/RepublishEntryRepository.js +11 -9
  188. package/features/contentEntry/RepublishEntry/RepublishEntryRepository.js.map +1 -1
  189. package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.d.ts +3 -1
  190. package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.js +2 -3
  191. package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.js.map +1 -1
  192. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.d.ts +6 -4
  193. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.js +7 -8
  194. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.js.map +1 -1
  195. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.d.ts +3 -1
  196. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.js +2 -3
  197. package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.js.map +1 -1
  198. package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.d.ts +6 -4
  199. package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.js +7 -8
  200. package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.js.map +1 -1
  201. package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.d.ts +3 -1
  202. package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.js +2 -3
  203. package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.js.map +1 -1
  204. package/features/contentEntry/UpdateEntry/UpdateEntryRepository.d.ts +6 -4
  205. package/features/contentEntry/UpdateEntry/UpdateEntryRepository.js +7 -8
  206. package/features/contentEntry/UpdateEntry/UpdateEntryRepository.js.map +1 -1
  207. package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.d.ts +3 -1
  208. package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.js +2 -3
  209. package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.js.map +1 -1
  210. package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.d.ts +3 -1
  211. package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.js +2 -3
  212. package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.js.map +1 -1
  213. package/features/contentEntry/ValidateEntry/ValidateEntryUseCase.d.ts +3 -1
  214. package/features/contentEntry/ValidateEntry/ValidateEntryUseCase.js +2 -3
  215. package/features/contentEntry/ValidateEntry/ValidateEntryUseCase.js.map +1 -1
  216. package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.d.ts +3 -1
  217. package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.js +2 -4
  218. package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.js.map +1 -1
  219. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.d.ts +4 -4
  220. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.js +4 -8
  221. package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.js.map +1 -1
  222. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.d.ts +3 -1
  223. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.js +1 -3
  224. package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.js.map +1 -1
  225. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.d.ts +3 -1
  226. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.js +1 -3
  227. package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.js.map +1 -1
  228. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.d.ts +3 -1
  229. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.js +1 -3
  230. package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.js.map +1 -1
  231. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.d.ts +3 -1
  232. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.js +2 -4
  233. package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.js.map +1 -1
  234. package/features/contentModel/ContentModelFeature.js +2 -0
  235. package/features/contentModel/ContentModelFeature.js.map +1 -1
  236. package/features/contentModel/CreateModel/CreateModelRepository.d.ts +4 -3
  237. package/features/contentModel/CreateModel/CreateModelRepository.js +6 -5
  238. package/features/contentModel/CreateModel/CreateModelRepository.js.map +1 -1
  239. package/features/contentModel/CreateModelFrom/CreateModelFromRepository.d.ts +4 -3
  240. package/features/contentModel/CreateModelFrom/CreateModelFromRepository.js +6 -5
  241. package/features/contentModel/CreateModelFrom/CreateModelFromRepository.js.map +1 -1
  242. package/features/contentModel/DeleteModel/DeleteModelRepository.d.ts +3 -3
  243. package/features/contentModel/DeleteModel/DeleteModelRepository.js +5 -5
  244. package/features/contentModel/DeleteModel/DeleteModelRepository.js.map +1 -1
  245. package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.d.ts +1 -0
  246. package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.js +11 -8
  247. package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.js.map +1 -1
  248. package/features/contentModel/UpdateModel/UpdateModelRepository.d.ts +6 -3
  249. package/features/contentModel/UpdateModel/UpdateModelRepository.js +11 -7
  250. package/features/contentModel/UpdateModel/UpdateModelRepository.js.map +1 -1
  251. package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.d.ts +16 -0
  252. package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.js +51 -0
  253. package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.js.map +1 -0
  254. package/features/contentModel/ValuesSelectionGenerator/abstractions.d.ts +8 -0
  255. package/features/contentModel/ValuesSelectionGenerator/abstractions.js +5 -0
  256. package/features/contentModel/ValuesSelectionGenerator/abstractions.js.map +1 -0
  257. package/features/contentModel/ValuesSelectionGenerator/feature.d.ts +4 -0
  258. package/features/contentModel/ValuesSelectionGenerator/feature.js +11 -0
  259. package/features/contentModel/ValuesSelectionGenerator/feature.js.map +1 -0
  260. package/features/contentModel/ValuesSelectionGenerator/index.d.ts +1 -0
  261. package/features/contentModel/ValuesSelectionGenerator/index.js +1 -0
  262. package/features/contentModel/shared/ModelsFetcher.d.ts +3 -3
  263. package/features/contentModel/shared/ModelsFetcher.js +5 -5
  264. package/features/contentModel/shared/ModelsFetcher.js.map +1 -1
  265. package/features/contentModel/shared/PluginModelsProvider.d.ts +5 -4
  266. package/features/contentModel/shared/PluginModelsProvider.js +11 -8
  267. package/features/contentModel/shared/PluginModelsProvider.js.map +1 -1
  268. package/features/contentModel/shared/abstractions.d.ts +10 -0
  269. package/features/contentModel/shared/abstractions.js +2 -1
  270. package/features/contentModel/shared/abstractions.js.map +1 -1
  271. package/features/contentModelGroup/CreateGroup/CreateGroupRepository.d.ts +8 -4
  272. package/features/contentModelGroup/CreateGroup/CreateGroupRepository.js +13 -11
  273. package/features/contentModelGroup/CreateGroup/CreateGroupRepository.js.map +1 -1
  274. package/features/contentModelGroup/CreateGroup/CreateGroupUseCase.d.ts +3 -1
  275. package/features/contentModelGroup/CreateGroup/CreateGroupUseCase.js +2 -3
  276. package/features/contentModelGroup/CreateGroup/CreateGroupUseCase.js.map +1 -1
  277. package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.d.ts +8 -4
  278. package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.js +11 -9
  279. package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.js.map +1 -1
  280. package/features/contentModelGroup/DeleteGroup/DeleteGroupUseCase.d.ts +3 -1
  281. package/features/contentModelGroup/DeleteGroup/DeleteGroupUseCase.js +2 -3
  282. package/features/contentModelGroup/DeleteGroup/DeleteGroupUseCase.js.map +1 -1
  283. package/features/contentModelGroup/GetGroup/GetGroupRepository.d.ts +6 -4
  284. package/features/contentModelGroup/GetGroup/GetGroupRepository.js +9 -9
  285. package/features/contentModelGroup/GetGroup/GetGroupRepository.js.map +1 -1
  286. package/features/contentModelGroup/GetGroup/GetGroupUseCase.d.ts +3 -1
  287. package/features/contentModelGroup/GetGroup/GetGroupUseCase.js +2 -3
  288. package/features/contentModelGroup/GetGroup/GetGroupUseCase.js.map +1 -1
  289. package/features/contentModelGroup/ListGroups/ListGroupsRepository.d.ts +6 -4
  290. package/features/contentModelGroup/ListGroups/ListGroupsRepository.js +9 -9
  291. package/features/contentModelGroup/ListGroups/ListGroupsRepository.js.map +1 -1
  292. package/features/contentModelGroup/ListGroups/ListGroupsUseCase.d.ts +3 -1
  293. package/features/contentModelGroup/ListGroups/ListGroupsUseCase.js +2 -3
  294. package/features/contentModelGroup/ListGroups/ListGroupsUseCase.js.map +1 -1
  295. package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.d.ts +6 -4
  296. package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.js +7 -8
  297. package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.js.map +1 -1
  298. package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.d.ts +3 -1
  299. package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.js +2 -3
  300. package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.js.map +1 -1
  301. package/features/contentModelGroup/shared/PluginGroupsProvider.d.ts +6 -4
  302. package/features/contentModelGroup/shared/PluginGroupsProvider.js +13 -11
  303. package/features/contentModelGroup/shared/PluginGroupsProvider.js.map +1 -1
  304. package/features/contentModelGroup/shared/abstractions.d.ts +10 -0
  305. package/features/contentModelGroup/shared/abstractions.js +2 -1
  306. package/features/contentModelGroup/shared/abstractions.js.map +1 -1
  307. package/features/graphql/fields/abstractions/CmsModelFieldToGraphQL.d.ts +2 -2
  308. package/features/graphql/fields/abstractions/CmsModelFieldToGraphQL.js.map +1 -1
  309. package/features/graphql/fields/base/DynamicZoneToGraphQL.js.map +1 -1
  310. package/features/graphql/fields/base/RefToGraphQL.d.ts +1 -1
  311. package/features/graphql/fields/base/RefToGraphQL.js +3 -1
  312. package/features/graphql/fields/base/RefToGraphQL.js.map +1 -1
  313. package/features/graphql/fields/base/richText/richTextResolver.d.ts +1 -1
  314. package/features/graphql/fields/base/richText/richTextResolver.js.map +1 -1
  315. package/features/modelBuilder/fields/BaseFieldBuilder.d.ts +1 -3
  316. package/features/modelBuilder/fields/BaseFieldBuilder.js +0 -4
  317. package/features/modelBuilder/fields/BaseFieldBuilder.js.map +1 -1
  318. package/features/modelBuilder/fields/DataFieldBuilder.d.ts +12 -18
  319. package/features/modelBuilder/fields/DataFieldBuilder.js +1 -2
  320. package/features/modelBuilder/fields/DataFieldBuilder.js.map +1 -1
  321. package/features/modelBuilder/fields/DynamicZoneFieldType.js +3 -8
  322. package/features/modelBuilder/fields/DynamicZoneFieldType.js.map +1 -1
  323. package/features/modelBuilder/fields/TextFieldType.d.ts +3 -1
  324. package/features/modelBuilder/fields/TextFieldType.js +1 -3
  325. package/features/modelBuilder/fields/TextFieldType.js.map +1 -1
  326. package/features/modelBuilder/fields/UiAlertFieldType.js +1 -2
  327. package/features/modelBuilder/fields/UiAlertFieldType.js.map +1 -1
  328. package/features/modelBuilder/fields/UiSeparatorFieldType.js +1 -2
  329. package/features/modelBuilder/fields/UiSeparatorFieldType.js.map +1 -1
  330. package/features/modelBuilder/fields/UiTabsFieldType.d.ts +1 -2
  331. package/features/modelBuilder/fields/UiTabsFieldType.js +3 -6
  332. package/features/modelBuilder/fields/UiTabsFieldType.js.map +1 -1
  333. package/features/shared/abstractions.d.ts +11 -15
  334. package/features/shared/abstractions.js +3 -3
  335. package/features/shared/abstractions.js.map +1 -1
  336. package/features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.d.ts +8 -0
  337. package/features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.js +5 -0
  338. package/features/shared/storageOperations/entry/CreateEntryRevisionFromStorageOperation.js.map +1 -0
  339. package/features/shared/storageOperations/entry/CreateEntryStorageOperation.d.ts +8 -0
  340. package/features/shared/storageOperations/entry/CreateEntryStorageOperation.js +5 -0
  341. package/features/shared/storageOperations/entry/CreateEntryStorageOperation.js.map +1 -0
  342. package/features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.d.ts +8 -0
  343. package/features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.js +5 -0
  344. package/features/shared/storageOperations/entry/DeleteEntryRevisionStorageOperation.js.map +1 -0
  345. package/features/shared/storageOperations/entry/DeleteEntryStorageOperation.d.ts +8 -0
  346. package/features/shared/storageOperations/entry/DeleteEntryStorageOperation.js +5 -0
  347. package/features/shared/storageOperations/entry/DeleteEntryStorageOperation.js.map +1 -0
  348. package/features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.d.ts +8 -0
  349. package/features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.js +5 -0
  350. package/features/shared/storageOperations/entry/DeleteMultipleEntriesStorageOperation.js.map +1 -0
  351. package/features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.d.ts +8 -0
  352. package/features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.js +5 -0
  353. package/features/shared/storageOperations/entry/GetEntriesByIdsStorageOperation.js.map +1 -0
  354. package/features/shared/storageOperations/entry/GetEntryStorageOperation.d.ts +8 -0
  355. package/features/shared/storageOperations/entry/GetEntryStorageOperation.js +5 -0
  356. package/features/shared/storageOperations/entry/GetEntryStorageOperation.js.map +1 -0
  357. package/features/shared/storageOperations/entry/GetLatestEntriesByIdsStorageOperation.d.ts +8 -0
  358. package/features/shared/storageOperations/entry/GetLatestEntriesByIdsStorageOperation.js +5 -0
  359. package/features/shared/storageOperations/entry/GetLatestEntriesByIdsStorageOperation.js.map +1 -0
  360. package/features/shared/storageOperations/entry/GetLatestRevisionByEntryIdStorageOperation.d.ts +8 -0
  361. package/features/shared/storageOperations/entry/GetLatestRevisionByEntryIdStorageOperation.js +5 -0
  362. package/features/shared/storageOperations/entry/GetLatestRevisionByEntryIdStorageOperation.js.map +1 -0
  363. package/features/shared/storageOperations/entry/GetPreviousRevisionStorageOperation.d.ts +8 -0
  364. package/features/shared/storageOperations/entry/GetPreviousRevisionStorageOperation.js +5 -0
  365. package/features/shared/storageOperations/entry/GetPreviousRevisionStorageOperation.js.map +1 -0
  366. package/features/shared/storageOperations/entry/GetPublishedEntriesByIdsStorageOperation.d.ts +8 -0
  367. package/features/shared/storageOperations/entry/GetPublishedEntriesByIdsStorageOperation.js +5 -0
  368. package/features/shared/storageOperations/entry/GetPublishedEntriesByIdsStorageOperation.js.map +1 -0
  369. package/features/shared/storageOperations/entry/GetPublishedRevisionByEntryIdStorageOperation.d.ts +8 -0
  370. package/features/shared/storageOperations/entry/GetPublishedRevisionByEntryIdStorageOperation.js +5 -0
  371. package/features/shared/storageOperations/entry/GetPublishedRevisionByEntryIdStorageOperation.js.map +1 -0
  372. package/features/shared/storageOperations/entry/GetRevisionByIdStorageOperation.d.ts +8 -0
  373. package/features/shared/storageOperations/entry/GetRevisionByIdStorageOperation.js +5 -0
  374. package/features/shared/storageOperations/entry/GetRevisionByIdStorageOperation.js.map +1 -0
  375. package/features/shared/storageOperations/entry/GetRevisionsStorageOperation.d.ts +8 -0
  376. package/features/shared/storageOperations/entry/GetRevisionsStorageOperation.js +5 -0
  377. package/features/shared/storageOperations/entry/GetRevisionsStorageOperation.js.map +1 -0
  378. package/features/shared/storageOperations/entry/GetUniqueFieldValuesStorageOperation.d.ts +8 -0
  379. package/features/shared/storageOperations/entry/GetUniqueFieldValuesStorageOperation.js +5 -0
  380. package/features/shared/storageOperations/entry/GetUniqueFieldValuesStorageOperation.js.map +1 -0
  381. package/features/shared/storageOperations/entry/ListEntriesStorageOperation.d.ts +8 -0
  382. package/features/shared/storageOperations/entry/ListEntriesStorageOperation.js +5 -0
  383. package/features/shared/storageOperations/entry/ListEntriesStorageOperation.js.map +1 -0
  384. package/features/shared/storageOperations/entry/MoveEntryStorageOperation.d.ts +8 -0
  385. package/features/shared/storageOperations/entry/MoveEntryStorageOperation.js +5 -0
  386. package/features/shared/storageOperations/entry/MoveEntryStorageOperation.js.map +1 -0
  387. package/features/shared/storageOperations/entry/MoveToBinStorageOperation.d.ts +8 -0
  388. package/features/shared/storageOperations/entry/MoveToBinStorageOperation.js +5 -0
  389. package/features/shared/storageOperations/entry/MoveToBinStorageOperation.js.map +1 -0
  390. package/features/shared/storageOperations/entry/PublishEntryStorageOperation.d.ts +8 -0
  391. package/features/shared/storageOperations/entry/PublishEntryStorageOperation.js +5 -0
  392. package/features/shared/storageOperations/entry/PublishEntryStorageOperation.js.map +1 -0
  393. package/features/shared/storageOperations/entry/RestoreFromBinStorageOperation.d.ts +8 -0
  394. package/features/shared/storageOperations/entry/RestoreFromBinStorageOperation.js +5 -0
  395. package/features/shared/storageOperations/entry/RestoreFromBinStorageOperation.js.map +1 -0
  396. package/features/shared/storageOperations/entry/UnpublishEntryStorageOperation.d.ts +8 -0
  397. package/features/shared/storageOperations/entry/UnpublishEntryStorageOperation.js +5 -0
  398. package/features/shared/storageOperations/entry/UnpublishEntryStorageOperation.js.map +1 -0
  399. package/features/shared/storageOperations/entry/UpdateEntryStorageOperation.d.ts +8 -0
  400. package/features/shared/storageOperations/entry/UpdateEntryStorageOperation.js +5 -0
  401. package/features/shared/storageOperations/entry/UpdateEntryStorageOperation.js.map +1 -0
  402. package/features/shared/storageOperations/group/CreateGroupStorageOperation.d.ts +8 -0
  403. package/features/shared/storageOperations/group/CreateGroupStorageOperation.js +5 -0
  404. package/features/shared/storageOperations/group/CreateGroupStorageOperation.js.map +1 -0
  405. package/features/shared/storageOperations/group/DeleteGroupStorageOperation.d.ts +8 -0
  406. package/features/shared/storageOperations/group/DeleteGroupStorageOperation.js +5 -0
  407. package/features/shared/storageOperations/group/DeleteGroupStorageOperation.js.map +1 -0
  408. package/features/shared/storageOperations/group/GetGroupStorageOperation.d.ts +8 -0
  409. package/features/shared/storageOperations/group/GetGroupStorageOperation.js +5 -0
  410. package/features/shared/storageOperations/group/GetGroupStorageOperation.js.map +1 -0
  411. package/features/shared/storageOperations/group/ListGroupsStorageOperation.d.ts +8 -0
  412. package/features/shared/storageOperations/group/ListGroupsStorageOperation.js +5 -0
  413. package/features/shared/storageOperations/group/ListGroupsStorageOperation.js.map +1 -0
  414. package/features/shared/storageOperations/group/UpdateGroupStorageOperation.d.ts +8 -0
  415. package/features/shared/storageOperations/group/UpdateGroupStorageOperation.js +5 -0
  416. package/features/shared/storageOperations/group/UpdateGroupStorageOperation.js.map +1 -0
  417. package/features/shared/storageOperations/index.d.ts +32 -0
  418. package/features/shared/storageOperations/index.js +32 -0
  419. package/features/shared/storageOperations/model/CreateModelStorageOperation.d.ts +8 -0
  420. package/features/shared/storageOperations/model/CreateModelStorageOperation.js +5 -0
  421. package/features/shared/storageOperations/model/CreateModelStorageOperation.js.map +1 -0
  422. package/features/shared/storageOperations/model/DeleteModelStorageOperation.d.ts +8 -0
  423. package/features/shared/storageOperations/model/DeleteModelStorageOperation.js +5 -0
  424. package/features/shared/storageOperations/model/DeleteModelStorageOperation.js.map +1 -0
  425. package/features/shared/storageOperations/model/GetModelStorageOperation.d.ts +8 -0
  426. package/features/shared/storageOperations/model/GetModelStorageOperation.js +5 -0
  427. package/features/shared/storageOperations/model/GetModelStorageOperation.js.map +1 -0
  428. package/features/shared/storageOperations/model/ListModelsStorageOperation.d.ts +8 -0
  429. package/features/shared/storageOperations/model/ListModelsStorageOperation.js +5 -0
  430. package/features/shared/storageOperations/model/ListModelsStorageOperation.js.map +1 -0
  431. package/features/shared/storageOperations/model/UpdateModelStorageOperation.d.ts +8 -0
  432. package/features/shared/storageOperations/model/UpdateModelStorageOperation.js +5 -0
  433. package/features/shared/storageOperations/model/UpdateModelStorageOperation.js.map +1 -0
  434. package/fieldConverters/abstractions.d.ts +14 -0
  435. package/fieldConverters/abstractions.js +13 -0
  436. package/fieldConverters/abstractions.js.map +1 -0
  437. package/fieldConverters/index.d.ts +1 -1
  438. package/graphql/CmsGraphQLSchemaFactory.d.ts +8 -0
  439. package/graphql/CmsGraphQLSchemaFactory.js +5 -0
  440. package/graphql/CmsGraphQLSchemaFactory.js.map +1 -0
  441. package/graphql/CmsSchemaExecutor.d.ts +10 -0
  442. package/graphql/CmsSchemaExecutor.js +5 -0
  443. package/graphql/CmsSchemaExecutor.js.map +1 -0
  444. package/graphql/buildSchemaPlugins.d.ts +2 -1
  445. package/graphql/buildSchemaPlugins.js +1 -3
  446. package/graphql/buildSchemaPlugins.js.map +1 -1
  447. package/graphql/checkEndpointAccess.js +5 -2
  448. package/graphql/checkEndpointAccess.js.map +1 -1
  449. package/graphql/createExecutableSchema.d.ts +1 -1
  450. package/graphql/createExecutableSchema.js +1 -1
  451. package/graphql/createExecutableSchema.js.map +1 -1
  452. package/graphql/generateSchema.d.ts +2 -1
  453. package/graphql/generateSchema.js +14 -5
  454. package/graphql/generateSchema.js.map +1 -1
  455. package/graphql/getSchema.js +7 -2
  456. package/graphql/getSchema.js.map +1 -1
  457. package/graphql/scalars/RevisionIdScalarPlugin.d.ts +1 -1
  458. package/graphql/scalars/RevisionIdScalarPlugin.js.map +1 -1
  459. package/graphql/schema/baseContentSchema.d.ts +1 -6
  460. package/graphql/schema/baseContentSchema.js +5 -8
  461. package/graphql/schema/baseContentSchema.js.map +1 -1
  462. package/graphql/schema/baseSchema.d.ts +2 -2
  463. package/graphql/schema/baseSchema.js +6 -41
  464. package/graphql/schema/baseSchema.js.map +1 -1
  465. package/graphql/schema/cms/CmsBaseErrorTypeFactory.d.ts +14 -0
  466. package/graphql/schema/cms/CmsBaseErrorTypeFactory.js +21 -0
  467. package/graphql/schema/cms/CmsBaseErrorTypeFactory.js.map +1 -0
  468. package/graphql/schema/cms/createEntryResolver.js +2 -2
  469. package/graphql/schema/cms/createEntryResolver.js.map +1 -1
  470. package/graphql/schema/cms/deleteEntryResolver.js +2 -2
  471. package/graphql/schema/cms/deleteEntryResolver.js.map +1 -1
  472. package/graphql/schema/cms/getEntryResolver.js +2 -2
  473. package/graphql/schema/cms/getEntryResolver.js.map +1 -1
  474. package/graphql/schema/cms/helpers/getModel.d.ts +0 -3
  475. package/graphql/schema/cms/helpers/getModel.js +5 -3
  476. package/graphql/schema/cms/helpers/getModel.js.map +1 -1
  477. package/graphql/schema/cms/helpers/transformWhereToNested.js +17 -39
  478. package/graphql/schema/cms/helpers/transformWhereToNested.js.map +1 -1
  479. package/graphql/schema/cms/listEntriesResolver.js +2 -2
  480. package/graphql/schema/cms/listEntriesResolver.js.map +1 -1
  481. package/graphql/schema/cms/publishEntryResolver.js +2 -2
  482. package/graphql/schema/cms/publishEntryResolver.js.map +1 -1
  483. package/graphql/schema/cms/resolvers/createEntry.d.ts +2 -2
  484. package/graphql/schema/cms/resolvers/createEntry.js +1 -1
  485. package/graphql/schema/cms/resolvers/createEntry.js.map +1 -1
  486. package/graphql/schema/cms/resolvers/deleteEntryRevision.d.ts +2 -2
  487. package/graphql/schema/cms/resolvers/deleteEntryRevision.js +1 -1
  488. package/graphql/schema/cms/resolvers/deleteEntryRevision.js.map +1 -1
  489. package/graphql/schema/cms/resolvers/getEntry.d.ts +2 -2
  490. package/graphql/schema/cms/resolvers/getEntry.js +1 -1
  491. package/graphql/schema/cms/resolvers/getEntry.js.map +1 -1
  492. package/graphql/schema/cms/resolvers/listEntries.d.ts +2 -2
  493. package/graphql/schema/cms/resolvers/listEntries.js +1 -1
  494. package/graphql/schema/cms/resolvers/listEntries.js.map +1 -1
  495. package/graphql/schema/cms/resolvers/mutationCms.d.ts +2 -2
  496. package/graphql/schema/cms/resolvers/mutationCms.js +1 -1
  497. package/graphql/schema/cms/resolvers/mutationCms.js.map +1 -1
  498. package/graphql/schema/cms/resolvers/publishEntryRevision.d.ts +2 -2
  499. package/graphql/schema/cms/resolvers/publishEntryRevision.js +1 -1
  500. package/graphql/schema/cms/resolvers/publishEntryRevision.js.map +1 -1
  501. package/graphql/schema/cms/resolvers/queryCms.d.ts +2 -2
  502. package/graphql/schema/cms/resolvers/queryCms.js +1 -1
  503. package/graphql/schema/cms/resolvers/queryCms.js.map +1 -1
  504. package/graphql/schema/cms/resolvers/unpublishEntryRevision.d.ts +2 -2
  505. package/graphql/schema/cms/resolvers/unpublishEntryRevision.js +1 -1
  506. package/graphql/schema/cms/resolvers/unpublishEntryRevision.js.map +1 -1
  507. package/graphql/schema/cms/resolvers/updateEntryRevision.d.ts +2 -2
  508. package/graphql/schema/cms/resolvers/updateEntryRevision.js +1 -1
  509. package/graphql/schema/cms/resolvers/updateEntryRevision.js.map +1 -1
  510. package/graphql/schema/cms/typeDefs/mutation.d.ts +2 -2
  511. package/graphql/schema/cms/typeDefs/mutation.js +1 -1
  512. package/graphql/schema/cms/typeDefs/mutation.js.map +1 -1
  513. package/graphql/schema/cms/typeDefs/query.d.ts +2 -2
  514. package/graphql/schema/cms/typeDefs/query.js +1 -1
  515. package/graphql/schema/cms/typeDefs/query.js.map +1 -1
  516. package/graphql/schema/cms/typeDefs/responses.d.ts +2 -2
  517. package/graphql/schema/cms/typeDefs/responses.js +1 -1
  518. package/graphql/schema/cms/typeDefs/responses.js.map +1 -1
  519. package/graphql/schema/cms/unpublishEntryResolver.js +2 -2
  520. package/graphql/schema/cms/unpublishEntryResolver.js.map +1 -1
  521. package/graphql/schema/cms/updateEntryResolver.js +2 -2
  522. package/graphql/schema/cms/updateEntryResolver.js.map +1 -1
  523. package/graphql/schema/contentEntries.js +43 -32
  524. package/graphql/schema/contentEntries.js.map +1 -1
  525. package/graphql/schema/contentModelGroups.js +39 -18
  526. package/graphql/schema/contentModelGroups.js.map +1 -1
  527. package/graphql/schema/contentModels.js +37 -16
  528. package/graphql/schema/contentModels.js.map +1 -1
  529. package/graphql/schema/createFieldResolvers.d.ts +1 -1
  530. package/graphql/schema/createFieldResolvers.js.map +1 -1
  531. package/graphql/schema/createManageResolvers.js +4 -2
  532. package/graphql/schema/createManageResolvers.js.map +1 -1
  533. package/graphql/schema/resolvers/manage/resolveCreate.js +5 -3
  534. package/graphql/schema/resolvers/manage/resolveCreate.js.map +1 -1
  535. package/graphql/schema/resolvers/manage/resolveCreateFrom.js +5 -3
  536. package/graphql/schema/resolvers/manage/resolveCreateFrom.js.map +1 -1
  537. package/graphql/schema/resolvers/manage/resolveDelete.js +9 -4
  538. package/graphql/schema/resolvers/manage/resolveDelete.js.map +1 -1
  539. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js +5 -3
  540. package/graphql/schema/resolvers/manage/resolveDeleteMultiple.js.map +1 -1
  541. package/graphql/schema/resolvers/manage/resolveGet.js +11 -6
  542. package/graphql/schema/resolvers/manage/resolveGet.js.map +1 -1
  543. package/graphql/schema/resolvers/manage/resolveGetByIds.js +5 -3
  544. package/graphql/schema/resolvers/manage/resolveGetByIds.js.map +1 -1
  545. package/graphql/schema/resolvers/manage/resolveGetRevisions.js +5 -3
  546. package/graphql/schema/resolvers/manage/resolveGetRevisions.js.map +1 -1
  547. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js +5 -3
  548. package/graphql/schema/resolvers/manage/resolveGetUniqueFieldValues.js.map +1 -1
  549. package/graphql/schema/resolvers/manage/resolveList.js +5 -3
  550. package/graphql/schema/resolvers/manage/resolveList.js.map +1 -1
  551. package/graphql/schema/resolvers/manage/resolveListDeleted.js +5 -3
  552. package/graphql/schema/resolvers/manage/resolveListDeleted.js.map +1 -1
  553. package/graphql/schema/resolvers/manage/resolveMove.js +4 -2
  554. package/graphql/schema/resolvers/manage/resolveMove.js.map +1 -1
  555. package/graphql/schema/resolvers/manage/resolvePublish.js +5 -3
  556. package/graphql/schema/resolvers/manage/resolvePublish.js.map +1 -1
  557. package/graphql/schema/resolvers/manage/resolveRepublish.js +5 -3
  558. package/graphql/schema/resolvers/manage/resolveRepublish.js.map +1 -1
  559. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js +5 -3
  560. package/graphql/schema/resolvers/manage/resolveRestoreFromBin.js.map +1 -1
  561. package/graphql/schema/resolvers/manage/resolveUnpublish.js +5 -3
  562. package/graphql/schema/resolvers/manage/resolveUnpublish.js.map +1 -1
  563. package/graphql/schema/resolvers/manage/resolveUpdate.js +5 -3
  564. package/graphql/schema/resolvers/manage/resolveUpdate.js.map +1 -1
  565. package/graphql/schema/resolvers/manage/resolveUpdateRevisionDescription.js +5 -3
  566. package/graphql/schema/resolvers/manage/resolveUpdateRevisionDescription.js.map +1 -1
  567. package/graphql/schema/resolvers/manage/resolveValidate.js +5 -3
  568. package/graphql/schema/resolvers/manage/resolveValidate.js.map +1 -1
  569. package/graphql/schema/resolvers/preview/resolveGet.js +6 -3
  570. package/graphql/schema/resolvers/preview/resolveGet.js.map +1 -1
  571. package/graphql/schema/resolvers/preview/resolveList.js +5 -3
  572. package/graphql/schema/resolvers/preview/resolveList.js.map +1 -1
  573. package/graphql/schema/resolvers/read/resolveGet.js +5 -2
  574. package/graphql/schema/resolvers/read/resolveGet.js.map +1 -1
  575. package/graphql/schema/resolvers/read/resolveList.js +5 -3
  576. package/graphql/schema/resolvers/read/resolveList.js.map +1 -1
  577. package/graphql/schema/resolvers/singular/resolveGet.js +1 -1
  578. package/graphql/schema/resolvers/singular/resolveGet.js.map +1 -1
  579. package/graphql/schema/resolvers/singular/resolveUpdate.js +1 -1
  580. package/graphql/schema/resolvers/singular/resolveUpdate.js.map +1 -1
  581. package/graphql/schema/schemaPlugins.d.ts +2 -1
  582. package/graphql/schema/schemaPlugins.js +2 -4
  583. package/graphql/schema/schemaPlugins.js.map +1 -1
  584. package/index.d.ts +7 -6
  585. package/index.js +4 -22
  586. package/legacy/abstractions.js.map +1 -1
  587. package/package.json +22 -27
  588. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.d.ts +2 -2
  589. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js +1 -1
  590. package/plugins/CmsGraphQLSchemaPlugin/CmsGraphQLSchemaPlugin.js.map +1 -1
  591. package/plugins/index.d.ts +0 -1
  592. package/plugins/index.js +0 -1
  593. package/types/fields/dynamicZoneField.d.ts +2 -2
  594. package/types/modelField.d.ts +1 -1
  595. package/types/types.d.ts +10 -183
  596. package/types/types.js.map +1 -1
  597. package/utils/contentModelToJsonSchema/CmsModelToJsonSchemaConverter.d.ts +28 -0
  598. package/utils/contentModelToJsonSchema/CmsModelToJsonSchemaConverter.js +324 -0
  599. package/utils/contentModelToJsonSchema/CmsModelToJsonSchemaConverter.js.map +1 -0
  600. package/utils/contentModelToJsonSchema/index.d.ts +2 -0
  601. package/utils/contentModelToJsonSchema/index.js +1 -0
  602. package/utils/contentModelToJsonSchema/types.d.ts +24 -0
  603. package/utils/contentModelToJsonSchema/types.js +0 -0
  604. package/utils/converters/ConverterCollection.d.ts +2 -2
  605. package/utils/converters/ConverterCollection.js +1 -3
  606. package/utils/converters/ConverterCollection.js.map +1 -1
  607. package/utils/converters/valueKeyFromStorageConverter.d.ts +2 -2
  608. package/utils/converters/valueKeyFromStorageConverter.js +2 -2
  609. package/utils/converters/valueKeyFromStorageConverter.js.map +1 -1
  610. package/utils/converters/valueKeyStorageConverter.js +4 -2
  611. package/utils/converters/valueKeyStorageConverter.js.map +1 -1
  612. package/utils/converters/valueKeyToStorageConverter.d.ts +2 -2
  613. package/utils/converters/valueKeyToStorageConverter.js +2 -2
  614. package/utils/converters/valueKeyToStorageConverter.js.map +1 -1
  615. package/utils/getSchemaFromFieldPlugins.d.ts +2 -2
  616. package/utils/getSchemaFromFieldPlugins.js.map +1 -1
  617. package/utils/index.d.ts +1 -0
  618. package/utils/index.js +1 -0
  619. package/utils/isHeadlessCmsReady.d.ts +1 -1
  620. package/utils/isHeadlessCmsReady.js +3 -2
  621. package/utils/isHeadlessCmsReady.js.map +1 -1
  622. package/abstractions/entryHooks/OnEntryBeforeCreate.d.ts +0 -8
  623. package/abstractions/entryHooks/OnEntryBeforeCreate.js +0 -5
  624. package/abstractions/entryHooks/OnEntryBeforeCreate.js.map +0 -1
  625. package/abstractions/entryHooks/index.d.ts +0 -1
  626. package/abstractions/entryHooks/index.js +0 -1
  627. package/abstractions/index.d.ts +0 -1
  628. package/abstractions/index.js +0 -1
  629. package/context.d.ts +0 -3
  630. package/context.js +0 -131
  631. package/context.js.map +0 -1
  632. package/extensions/entryHooks/OnEntryBeforeCreate.d.ts +0 -4
  633. package/extensions/entryHooks/OnEntryBeforeCreate.js +0 -21
  634. package/extensions/entryHooks/OnEntryBeforeCreate.js.map +0 -1
  635. package/extensions/entryHooks/index.d.ts +0 -1
  636. package/extensions/entryHooks/index.js +0 -1
  637. package/extensions/index.d.ts +0 -5
  638. package/extensions/index.js +0 -7
  639. package/extensions/index.js.map +0 -1
  640. package/graphql/graphQLHandlerFactory.d.ts +0 -5
  641. package/graphql/graphQLHandlerFactory.js +0 -22
  642. package/graphql/graphQLHandlerFactory.js.map +0 -1
  643. package/graphql/handleRequest.d.ts +0 -11
  644. package/graphql/handleRequest.js +0 -62
  645. package/graphql/handleRequest.js.map +0 -1
  646. package/graphql/index.d.ts +0 -4
  647. package/graphql/index.js +0 -11
  648. package/graphql/index.js.map +0 -1
  649. package/graphql/schema/cms/index.d.ts +0 -2
  650. package/graphql/schema/cms/index.js +0 -24
  651. package/graphql/schema/cms/index.js.map +0 -1
  652. package/index.js.map +0 -1
  653. package/parameters/context.d.ts +0 -2
  654. package/parameters/context.js +0 -7
  655. package/parameters/context.js.map +0 -1
  656. package/parameters/header.d.ts +0 -2
  657. package/parameters/header.js +0 -13
  658. package/parameters/header.js.map +0 -1
  659. package/parameters/index.d.ts +0 -3
  660. package/parameters/index.js +0 -3
  661. package/parameters/path.d.ts +0 -2
  662. package/parameters/path.js +0 -12
  663. package/parameters/path.js.map +0 -1
  664. package/plugins/CmsParametersPlugin.d.ts +0 -18
  665. package/plugins/CmsParametersPlugin.js +0 -16
  666. package/plugins/CmsParametersPlugin.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ import type { CmsGroupStorageOperationsCreateParams } from "../../../../types/index.js";
2
+ export interface ICreateGroupStorageOperation {
3
+ execute(params: CmsGroupStorageOperationsCreateParams): Promise<void>;
4
+ }
5
+ export declare const CreateGroupStorageOperation: import("@webiny/di").Abstraction<ICreateGroupStorageOperation>;
6
+ export declare namespace CreateGroupStorageOperation {
7
+ type Interface = ICreateGroupStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CreateGroupStorageOperation = createAbstraction("Cms/Group/CreateGroupStorageOperation");
3
+ export { CreateGroupStorageOperation };
4
+
5
+ //# sourceMappingURL=CreateGroupStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/group/CreateGroupStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/group/CreateGroupStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsGroupStorageOperationsCreateParams } from \"~/types/index.js\";\n\nexport interface ICreateGroupStorageOperation {\n execute(params: CmsGroupStorageOperationsCreateParams): Promise<void>;\n}\n\nexport const CreateGroupStorageOperation = createAbstraction<ICreateGroupStorageOperation>(\n \"Cms/Group/CreateGroupStorageOperation\"\n);\n\nexport namespace CreateGroupStorageOperation {\n export type Interface = ICreateGroupStorageOperation;\n}\n"],"names":["CreateGroupStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsGroupStorageOperationsDeleteParams } from "../../../../types/index.js";
2
+ export interface IDeleteGroupStorageOperation {
3
+ execute(params: CmsGroupStorageOperationsDeleteParams): Promise<void>;
4
+ }
5
+ export declare const DeleteGroupStorageOperation: import("@webiny/di").Abstraction<IDeleteGroupStorageOperation>;
6
+ export declare namespace DeleteGroupStorageOperation {
7
+ type Interface = IDeleteGroupStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const DeleteGroupStorageOperation = createAbstraction("Cms/Group/DeleteGroupStorageOperation");
3
+ export { DeleteGroupStorageOperation };
4
+
5
+ //# sourceMappingURL=DeleteGroupStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/group/DeleteGroupStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/group/DeleteGroupStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsGroupStorageOperationsDeleteParams } from \"~/types/index.js\";\n\nexport interface IDeleteGroupStorageOperation {\n execute(params: CmsGroupStorageOperationsDeleteParams): Promise<void>;\n}\n\nexport const DeleteGroupStorageOperation = createAbstraction<IDeleteGroupStorageOperation>(\n \"Cms/Group/DeleteGroupStorageOperation\"\n);\n\nexport namespace DeleteGroupStorageOperation {\n export type Interface = IDeleteGroupStorageOperation;\n}\n"],"names":["DeleteGroupStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsGroup, CmsGroupStorageOperationsGetParams } from "../../../../types/index.js";
2
+ export interface IGetGroupStorageOperation {
3
+ execute(params: CmsGroupStorageOperationsGetParams): Promise<CmsGroup | null>;
4
+ }
5
+ export declare const GetGroupStorageOperation: import("@webiny/di").Abstraction<IGetGroupStorageOperation>;
6
+ export declare namespace GetGroupStorageOperation {
7
+ type Interface = IGetGroupStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const GetGroupStorageOperation = createAbstraction("Cms/Group/GetGroupStorageOperation");
3
+ export { GetGroupStorageOperation };
4
+
5
+ //# sourceMappingURL=GetGroupStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/group/GetGroupStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/group/GetGroupStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsGroup, CmsGroupStorageOperationsGetParams } from \"~/types/index.js\";\n\nexport interface IGetGroupStorageOperation {\n execute(params: CmsGroupStorageOperationsGetParams): Promise<CmsGroup | null>;\n}\n\nexport const GetGroupStorageOperation = createAbstraction<IGetGroupStorageOperation>(\n \"Cms/Group/GetGroupStorageOperation\"\n);\n\nexport namespace GetGroupStorageOperation {\n export type Interface = IGetGroupStorageOperation;\n}\n"],"names":["GetGroupStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,2BAA2BC,kBACpC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsGroup, CmsGroupStorageOperationsListParams } from "../../../../types/index.js";
2
+ export interface IListGroupsStorageOperation {
3
+ execute(params: CmsGroupStorageOperationsListParams): Promise<CmsGroup[]>;
4
+ }
5
+ export declare const ListGroupsStorageOperation: import("@webiny/di").Abstraction<IListGroupsStorageOperation>;
6
+ export declare namespace ListGroupsStorageOperation {
7
+ type Interface = IListGroupsStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const ListGroupsStorageOperation = createAbstraction("Cms/Group/ListGroupsStorageOperation");
3
+ export { ListGroupsStorageOperation };
4
+
5
+ //# sourceMappingURL=ListGroupsStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/group/ListGroupsStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/group/ListGroupsStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsGroup, CmsGroupStorageOperationsListParams } from \"~/types/index.js\";\n\nexport interface IListGroupsStorageOperation {\n execute(params: CmsGroupStorageOperationsListParams): Promise<CmsGroup[]>;\n}\n\nexport const ListGroupsStorageOperation = createAbstraction<IListGroupsStorageOperation>(\n \"Cms/Group/ListGroupsStorageOperation\"\n);\n\nexport namespace ListGroupsStorageOperation {\n export type Interface = IListGroupsStorageOperation;\n}\n"],"names":["ListGroupsStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,6BAA6BC,kBACtC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsGroupStorageOperationsUpdateParams } from "../../../../types/index.js";
2
+ export interface IUpdateGroupStorageOperation {
3
+ execute(params: CmsGroupStorageOperationsUpdateParams): Promise<void>;
4
+ }
5
+ export declare const UpdateGroupStorageOperation: import("@webiny/di").Abstraction<IUpdateGroupStorageOperation>;
6
+ export declare namespace UpdateGroupStorageOperation {
7
+ type Interface = IUpdateGroupStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const UpdateGroupStorageOperation = createAbstraction("Cms/Group/UpdateGroupStorageOperation");
3
+ export { UpdateGroupStorageOperation };
4
+
5
+ //# sourceMappingURL=UpdateGroupStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/group/UpdateGroupStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/group/UpdateGroupStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsGroupStorageOperationsUpdateParams } from \"~/types/index.js\";\n\nexport interface IUpdateGroupStorageOperation {\n execute(params: CmsGroupStorageOperationsUpdateParams): Promise<void>;\n}\n\nexport const UpdateGroupStorageOperation = createAbstraction<IUpdateGroupStorageOperation>(\n \"Cms/Group/UpdateGroupStorageOperation\"\n);\n\nexport namespace UpdateGroupStorageOperation {\n export type Interface = IUpdateGroupStorageOperation;\n}\n"],"names":["UpdateGroupStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,32 @@
1
+ export { GetGroupStorageOperation } from "./group/GetGroupStorageOperation.js";
2
+ export { ListGroupsStorageOperation } from "./group/ListGroupsStorageOperation.js";
3
+ export { CreateGroupStorageOperation } from "./group/CreateGroupStorageOperation.js";
4
+ export { UpdateGroupStorageOperation } from "./group/UpdateGroupStorageOperation.js";
5
+ export { DeleteGroupStorageOperation } from "./group/DeleteGroupStorageOperation.js";
6
+ export { GetModelStorageOperation } from "./model/GetModelStorageOperation.js";
7
+ export { ListModelsStorageOperation } from "./model/ListModelsStorageOperation.js";
8
+ export { CreateModelStorageOperation } from "./model/CreateModelStorageOperation.js";
9
+ export { UpdateModelStorageOperation } from "./model/UpdateModelStorageOperation.js";
10
+ export { DeleteModelStorageOperation } from "./model/DeleteModelStorageOperation.js";
11
+ export { CreateEntryStorageOperation } from "./entry/CreateEntryStorageOperation.js";
12
+ export { CreateEntryRevisionFromStorageOperation } from "./entry/CreateEntryRevisionFromStorageOperation.js";
13
+ export { UpdateEntryStorageOperation } from "./entry/UpdateEntryStorageOperation.js";
14
+ export { DeleteEntryStorageOperation } from "./entry/DeleteEntryStorageOperation.js";
15
+ export { DeleteEntryRevisionStorageOperation } from "./entry/DeleteEntryRevisionStorageOperation.js";
16
+ export { DeleteMultipleEntriesStorageOperation } from "./entry/DeleteMultipleEntriesStorageOperation.js";
17
+ export { MoveToBinStorageOperation } from "./entry/MoveToBinStorageOperation.js";
18
+ export { RestoreFromBinStorageOperation } from "./entry/RestoreFromBinStorageOperation.js";
19
+ export { PublishEntryStorageOperation } from "./entry/PublishEntryStorageOperation.js";
20
+ export { UnpublishEntryStorageOperation } from "./entry/UnpublishEntryStorageOperation.js";
21
+ export { MoveEntryStorageOperation } from "./entry/MoveEntryStorageOperation.js";
22
+ export { GetEntryStorageOperation } from "./entry/GetEntryStorageOperation.js";
23
+ export { ListEntriesStorageOperation } from "./entry/ListEntriesStorageOperation.js";
24
+ export { GetEntriesByIdsStorageOperation } from "./entry/GetEntriesByIdsStorageOperation.js";
25
+ export { GetLatestEntriesByIdsStorageOperation } from "./entry/GetLatestEntriesByIdsStorageOperation.js";
26
+ export { GetPublishedEntriesByIdsStorageOperation } from "./entry/GetPublishedEntriesByIdsStorageOperation.js";
27
+ export { GetRevisionsStorageOperation } from "./entry/GetRevisionsStorageOperation.js";
28
+ export { GetRevisionByIdStorageOperation } from "./entry/GetRevisionByIdStorageOperation.js";
29
+ export { GetPublishedRevisionByEntryIdStorageOperation } from "./entry/GetPublishedRevisionByEntryIdStorageOperation.js";
30
+ export { GetLatestRevisionByEntryIdStorageOperation } from "./entry/GetLatestRevisionByEntryIdStorageOperation.js";
31
+ export { GetPreviousRevisionStorageOperation } from "./entry/GetPreviousRevisionStorageOperation.js";
32
+ export { GetUniqueFieldValuesStorageOperation } from "./entry/GetUniqueFieldValuesStorageOperation.js";
@@ -0,0 +1,32 @@
1
+ export { GetGroupStorageOperation } from "./group/GetGroupStorageOperation.js";
2
+ export { ListGroupsStorageOperation } from "./group/ListGroupsStorageOperation.js";
3
+ export { CreateGroupStorageOperation } from "./group/CreateGroupStorageOperation.js";
4
+ export { UpdateGroupStorageOperation } from "./group/UpdateGroupStorageOperation.js";
5
+ export { DeleteGroupStorageOperation } from "./group/DeleteGroupStorageOperation.js";
6
+ export { GetModelStorageOperation } from "./model/GetModelStorageOperation.js";
7
+ export { ListModelsStorageOperation } from "./model/ListModelsStorageOperation.js";
8
+ export { CreateModelStorageOperation } from "./model/CreateModelStorageOperation.js";
9
+ export { UpdateModelStorageOperation } from "./model/UpdateModelStorageOperation.js";
10
+ export { DeleteModelStorageOperation } from "./model/DeleteModelStorageOperation.js";
11
+ export { CreateEntryStorageOperation } from "./entry/CreateEntryStorageOperation.js";
12
+ export { CreateEntryRevisionFromStorageOperation } from "./entry/CreateEntryRevisionFromStorageOperation.js";
13
+ export { UpdateEntryStorageOperation } from "./entry/UpdateEntryStorageOperation.js";
14
+ export { DeleteEntryStorageOperation } from "./entry/DeleteEntryStorageOperation.js";
15
+ export { DeleteEntryRevisionStorageOperation } from "./entry/DeleteEntryRevisionStorageOperation.js";
16
+ export { DeleteMultipleEntriesStorageOperation } from "./entry/DeleteMultipleEntriesStorageOperation.js";
17
+ export { MoveToBinStorageOperation } from "./entry/MoveToBinStorageOperation.js";
18
+ export { RestoreFromBinStorageOperation } from "./entry/RestoreFromBinStorageOperation.js";
19
+ export { PublishEntryStorageOperation } from "./entry/PublishEntryStorageOperation.js";
20
+ export { UnpublishEntryStorageOperation } from "./entry/UnpublishEntryStorageOperation.js";
21
+ export { MoveEntryStorageOperation } from "./entry/MoveEntryStorageOperation.js";
22
+ export { GetEntryStorageOperation } from "./entry/GetEntryStorageOperation.js";
23
+ export { ListEntriesStorageOperation } from "./entry/ListEntriesStorageOperation.js";
24
+ export { GetEntriesByIdsStorageOperation } from "./entry/GetEntriesByIdsStorageOperation.js";
25
+ export { GetLatestEntriesByIdsStorageOperation } from "./entry/GetLatestEntriesByIdsStorageOperation.js";
26
+ export { GetPublishedEntriesByIdsStorageOperation } from "./entry/GetPublishedEntriesByIdsStorageOperation.js";
27
+ export { GetRevisionsStorageOperation } from "./entry/GetRevisionsStorageOperation.js";
28
+ export { GetRevisionByIdStorageOperation } from "./entry/GetRevisionByIdStorageOperation.js";
29
+ export { GetPublishedRevisionByEntryIdStorageOperation } from "./entry/GetPublishedRevisionByEntryIdStorageOperation.js";
30
+ export { GetLatestRevisionByEntryIdStorageOperation } from "./entry/GetLatestRevisionByEntryIdStorageOperation.js";
31
+ export { GetPreviousRevisionStorageOperation } from "./entry/GetPreviousRevisionStorageOperation.js";
32
+ export { GetUniqueFieldValuesStorageOperation } from "./entry/GetUniqueFieldValuesStorageOperation.js";
@@ -0,0 +1,8 @@
1
+ import type { StorageCmsModel, CmsModelStorageOperationsCreateParams } from "../../../../types/index.js";
2
+ export interface ICreateModelStorageOperation {
3
+ execute(params: CmsModelStorageOperationsCreateParams): Promise<StorageCmsModel>;
4
+ }
5
+ export declare const CreateModelStorageOperation: import("@webiny/di").Abstraction<ICreateModelStorageOperation>;
6
+ export declare namespace CreateModelStorageOperation {
7
+ type Interface = ICreateModelStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CreateModelStorageOperation = createAbstraction("Cms/Model/CreateModelStorageOperation");
3
+ export { CreateModelStorageOperation };
4
+
5
+ //# sourceMappingURL=CreateModelStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/model/CreateModelStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/model/CreateModelStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { StorageCmsModel, CmsModelStorageOperationsCreateParams } from \"~/types/index.js\";\n\nexport interface ICreateModelStorageOperation {\n execute(params: CmsModelStorageOperationsCreateParams): Promise<StorageCmsModel>;\n}\n\nexport const CreateModelStorageOperation = createAbstraction<ICreateModelStorageOperation>(\n \"Cms/Model/CreateModelStorageOperation\"\n);\n\nexport namespace CreateModelStorageOperation {\n export type Interface = ICreateModelStorageOperation;\n}\n"],"names":["CreateModelStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,8 @@
1
+ import type { CmsModelStorageOperationsDeleteParams } from "../../../../types/index.js";
2
+ export interface IDeleteModelStorageOperation {
3
+ execute(params: CmsModelStorageOperationsDeleteParams): Promise<void>;
4
+ }
5
+ export declare const DeleteModelStorageOperation: import("@webiny/di").Abstraction<IDeleteModelStorageOperation>;
6
+ export declare namespace DeleteModelStorageOperation {
7
+ type Interface = IDeleteModelStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const DeleteModelStorageOperation = createAbstraction("Cms/Model/DeleteModelStorageOperation");
3
+ export { DeleteModelStorageOperation };
4
+
5
+ //# sourceMappingURL=DeleteModelStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/model/DeleteModelStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/model/DeleteModelStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModelStorageOperationsDeleteParams } from \"~/types/index.js\";\n\nexport interface IDeleteModelStorageOperation {\n execute(params: CmsModelStorageOperationsDeleteParams): Promise<void>;\n}\n\nexport const DeleteModelStorageOperation = createAbstraction<IDeleteModelStorageOperation>(\n \"Cms/Model/DeleteModelStorageOperation\"\n);\n\nexport namespace DeleteModelStorageOperation {\n export type Interface = IDeleteModelStorageOperation;\n}\n"],"names":["DeleteModelStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,8 @@
1
+ import type { StorageCmsModel, CmsModelStorageOperationsGetParams } from "../../../../types/index.js";
2
+ export interface IGetModelStorageOperation {
3
+ execute(params: CmsModelStorageOperationsGetParams): Promise<StorageCmsModel | null>;
4
+ }
5
+ export declare const GetModelStorageOperation: import("@webiny/di").Abstraction<IGetModelStorageOperation>;
6
+ export declare namespace GetModelStorageOperation {
7
+ type Interface = IGetModelStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const GetModelStorageOperation = createAbstraction("Cms/Model/GetModelStorageOperation");
3
+ export { GetModelStorageOperation };
4
+
5
+ //# sourceMappingURL=GetModelStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/model/GetModelStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/model/GetModelStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { StorageCmsModel, CmsModelStorageOperationsGetParams } from \"~/types/index.js\";\n\nexport interface IGetModelStorageOperation {\n execute(params: CmsModelStorageOperationsGetParams): Promise<StorageCmsModel | null>;\n}\n\nexport const GetModelStorageOperation = createAbstraction<IGetModelStorageOperation>(\n \"Cms/Model/GetModelStorageOperation\"\n);\n\nexport namespace GetModelStorageOperation {\n export type Interface = IGetModelStorageOperation;\n}\n"],"names":["GetModelStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,2BAA2BC,kBACpC"}
@@ -0,0 +1,8 @@
1
+ import type { StorageCmsModel, CmsModelStorageOperationsListParams } from "../../../../types/index.js";
2
+ export interface IListModelsStorageOperation {
3
+ execute(params: CmsModelStorageOperationsListParams): Promise<StorageCmsModel[]>;
4
+ }
5
+ export declare const ListModelsStorageOperation: import("@webiny/di").Abstraction<IListModelsStorageOperation>;
6
+ export declare namespace ListModelsStorageOperation {
7
+ type Interface = IListModelsStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const ListModelsStorageOperation = createAbstraction("Cms/Model/ListModelsStorageOperation");
3
+ export { ListModelsStorageOperation };
4
+
5
+ //# sourceMappingURL=ListModelsStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/model/ListModelsStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/model/ListModelsStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { StorageCmsModel, CmsModelStorageOperationsListParams } from \"~/types/index.js\";\n\nexport interface IListModelsStorageOperation {\n execute(params: CmsModelStorageOperationsListParams): Promise<StorageCmsModel[]>;\n}\n\nexport const ListModelsStorageOperation = createAbstraction<IListModelsStorageOperation>(\n \"Cms/Model/ListModelsStorageOperation\"\n);\n\nexport namespace ListModelsStorageOperation {\n export type Interface = IListModelsStorageOperation;\n}\n"],"names":["ListModelsStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,6BAA6BC,kBACtC"}
@@ -0,0 +1,8 @@
1
+ import type { StorageCmsModel, CmsModelStorageOperationsUpdateParams } from "../../../../types/index.js";
2
+ export interface IUpdateModelStorageOperation {
3
+ execute(params: CmsModelStorageOperationsUpdateParams): Promise<StorageCmsModel>;
4
+ }
5
+ export declare const UpdateModelStorageOperation: import("@webiny/di").Abstraction<IUpdateModelStorageOperation>;
6
+ export declare namespace UpdateModelStorageOperation {
7
+ type Interface = IUpdateModelStorageOperation;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const UpdateModelStorageOperation = createAbstraction("Cms/Model/UpdateModelStorageOperation");
3
+ export { UpdateModelStorageOperation };
4
+
5
+ //# sourceMappingURL=UpdateModelStorageOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/shared/storageOperations/model/UpdateModelStorageOperation.js","sources":["../../../../../src/features/shared/storageOperations/model/UpdateModelStorageOperation.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { StorageCmsModel, CmsModelStorageOperationsUpdateParams } from \"~/types/index.js\";\n\nexport interface IUpdateModelStorageOperation {\n execute(params: CmsModelStorageOperationsUpdateParams): Promise<StorageCmsModel>;\n}\n\nexport const UpdateModelStorageOperation = createAbstraction<IUpdateModelStorageOperation>(\n \"Cms/Model/UpdateModelStorageOperation\"\n);\n\nexport namespace UpdateModelStorageOperation {\n export type Interface = IUpdateModelStorageOperation;\n}\n"],"names":["UpdateModelStorageOperation","createAbstraction"],"mappings":";AAOO,MAAMA,8BAA8BC,kBACvC"}
@@ -0,0 +1,14 @@
1
+ import type { Container } from "@webiny/di";
2
+ import type { CmsModelFieldConverterPlugin } from "../plugins/CmsModelFieldConverterPlugin.js";
3
+ /**
4
+ * Multi-instance DI token for CMS field value converters (fieldId <-> storageId).
5
+ * Replaces reading CmsModelFieldConverterPlugin instances from the plugins container.
6
+ */
7
+ export declare const CmsFieldConverter: import("@webiny/di").Abstraction<CmsModelFieldConverterPlugin>;
8
+ export declare namespace CmsFieldConverter {
9
+ type Interface = CmsModelFieldConverterPlugin;
10
+ }
11
+ /**
12
+ * Registers the built-in field converters as CmsFieldConverter implementations.
13
+ */
14
+ export declare const registerFieldConverters: (container: Container) => void;
@@ -0,0 +1,13 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ import { CmsModelObjectFieldConverterPlugin } from "./CmsModelObjectFieldConverterPlugin.js";
3
+ import { CmsModelDefaultFieldConverterPlugin } from "./CmsModelDefaultFieldConverterPlugin.js";
4
+ import { CmsModelDynamicZoneFieldConverterPlugin } from "./CmsModelDynamicZoneFieldConverterPlugin.js";
5
+ const CmsFieldConverter = createAbstraction("CmsFieldConverter");
6
+ const registerFieldConverters = (container)=>{
7
+ container.registerInstance(CmsFieldConverter, new CmsModelObjectFieldConverterPlugin());
8
+ container.registerInstance(CmsFieldConverter, new CmsModelDynamicZoneFieldConverterPlugin());
9
+ container.registerInstance(CmsFieldConverter, new CmsModelDefaultFieldConverterPlugin());
10
+ };
11
+ export { CmsFieldConverter, registerFieldConverters };
12
+
13
+ //# sourceMappingURL=abstractions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldConverters/abstractions.js","sources":["../../src/fieldConverters/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { Container } from \"@webiny/di\";\nimport type { CmsModelFieldConverterPlugin } from \"~/plugins/CmsModelFieldConverterPlugin.js\";\nimport { CmsModelObjectFieldConverterPlugin } from \"~/fieldConverters/CmsModelObjectFieldConverterPlugin.js\";\nimport { CmsModelDefaultFieldConverterPlugin } from \"~/fieldConverters/CmsModelDefaultFieldConverterPlugin.js\";\nimport { CmsModelDynamicZoneFieldConverterPlugin } from \"~/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js\";\n\n/**\n * Multi-instance DI token for CMS field value converters (fieldId <-> storageId).\n * Replaces reading CmsModelFieldConverterPlugin instances from the plugins container.\n */\nexport const CmsFieldConverter =\n createAbstraction<CmsModelFieldConverterPlugin>(\"CmsFieldConverter\");\n\nexport namespace CmsFieldConverter {\n export type Interface = CmsModelFieldConverterPlugin;\n}\n\n/**\n * Registers the built-in field converters as CmsFieldConverter implementations.\n */\nexport const registerFieldConverters = (container: Container): void => {\n container.registerInstance(CmsFieldConverter, new CmsModelObjectFieldConverterPlugin());\n container.registerInstance(CmsFieldConverter, new CmsModelDynamicZoneFieldConverterPlugin());\n container.registerInstance(CmsFieldConverter, new CmsModelDefaultFieldConverterPlugin());\n};\n"],"names":["CmsFieldConverter","createAbstraction","registerFieldConverters","container","CmsModelObjectFieldConverterPlugin","CmsModelDynamicZoneFieldConverterPlugin","CmsModelDefaultFieldConverterPlugin"],"mappings":";;;;AAWO,MAAMA,oBACTC,kBAAgD;AAS7C,MAAMC,0BAA0B,CAACC;IACpCA,UAAU,gBAAgB,CAACH,mBAAmB,IAAII;IAClDD,UAAU,gBAAgB,CAACH,mBAAmB,IAAIK;IAClDF,UAAU,gBAAgB,CAACH,mBAAmB,IAAIM;AACtD"}
@@ -4,4 +4,4 @@
4
4
  import { CmsModelObjectFieldConverterPlugin } from "../fieldConverters/CmsModelObjectFieldConverterPlugin.js";
5
5
  import { CmsModelDefaultFieldConverterPlugin } from "../fieldConverters/CmsModelDefaultFieldConverterPlugin.js";
6
6
  import { CmsModelDynamicZoneFieldConverterPlugin } from "../fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js";
7
- export declare const createFieldConverters: () => (CmsModelObjectFieldConverterPlugin | CmsModelDefaultFieldConverterPlugin | CmsModelDynamicZoneFieldConverterPlugin)[];
7
+ export declare const createFieldConverters: () => (CmsModelDefaultFieldConverterPlugin | CmsModelDynamicZoneFieldConverterPlugin | CmsModelObjectFieldConverterPlugin)[];
@@ -0,0 +1,8 @@
1
+ import type { ICmsGraphQLSchemaPlugin } from "../plugins/index.js";
2
+ export interface ICmsGraphQLSchemaFactory {
3
+ execute(): ICmsGraphQLSchemaPlugin<any>[] | Promise<ICmsGraphQLSchemaPlugin<any>[]>;
4
+ }
5
+ export declare const CmsGraphQLSchemaFactory: import("@webiny/di").Abstraction<ICmsGraphQLSchemaFactory>;
6
+ export declare namespace CmsGraphQLSchemaFactory {
7
+ type Interface = ICmsGraphQLSchemaFactory;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsGraphQLSchemaFactory = createAbstraction("CmsGraphQLSchemaFactory");
3
+ export { CmsGraphQLSchemaFactory };
4
+
5
+ //# sourceMappingURL=CmsGraphQLSchemaFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql/CmsGraphQLSchemaFactory.js","sources":["../../src/graphql/CmsGraphQLSchemaFactory.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { ICmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\n\nexport interface ICmsGraphQLSchemaFactory {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n execute(): ICmsGraphQLSchemaPlugin<any>[] | Promise<ICmsGraphQLSchemaPlugin<any>[]>;\n}\n\nexport const CmsGraphQLSchemaFactory =\n createAbstraction<ICmsGraphQLSchemaFactory>(\"CmsGraphQLSchemaFactory\");\n\nexport namespace CmsGraphQLSchemaFactory {\n export type Interface = ICmsGraphQLSchemaFactory;\n}\n"],"names":["CmsGraphQLSchemaFactory","createAbstraction"],"mappings":";AAQO,MAAMA,0BACTC,kBAA4C"}
@@ -0,0 +1,10 @@
1
+ import type { ApiEndpoint } from "../types/index.js";
2
+ import type { GraphQLRequestBody } from "@webiny/api-graphql/types.js";
3
+ import type { ExecutionResult } from "graphql";
4
+ export interface ICmsSchemaExecutor {
5
+ execute(type: ApiEndpoint, body: GraphQLRequestBody | GraphQLRequestBody[]): Promise<ExecutionResult | ExecutionResult[]>;
6
+ }
7
+ export declare const CmsSchemaExecutor: import("@webiny/di").Abstraction<ICmsSchemaExecutor>;
8
+ export declare namespace CmsSchemaExecutor {
9
+ type Interface = ICmsSchemaExecutor;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsSchemaExecutor = createAbstraction("CmsSchemaExecutor");
3
+ export { CmsSchemaExecutor };
4
+
5
+ //# sourceMappingURL=CmsSchemaExecutor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql/CmsSchemaExecutor.js","sources":["../../src/graphql/CmsSchemaExecutor.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { ApiEndpoint } from \"~/types/index.js\";\nimport type { GraphQLRequestBody } from \"@webiny/api-graphql/types.js\";\nimport type { ExecutionResult } from \"graphql\";\n\nexport interface ICmsSchemaExecutor {\n execute(\n type: ApiEndpoint,\n body: GraphQLRequestBody | GraphQLRequestBody[]\n ): Promise<ExecutionResult | ExecutionResult[]>;\n}\n\nexport const CmsSchemaExecutor = createAbstraction<ICmsSchemaExecutor>(\"CmsSchemaExecutor\");\n\nexport namespace CmsSchemaExecutor {\n export type Interface = ICmsSchemaExecutor;\n}\n"],"names":["CmsSchemaExecutor","createAbstraction"],"mappings":";AAYO,MAAMA,oBAAoBC,kBAAsC"}
@@ -1,4 +1,4 @@
1
- import type { CmsContext, CmsModel } from "../types/index.js";
1
+ import type { ApiEndpoint, CmsContext, CmsModel } from "../types/index.js";
2
2
  import type { ICmsGraphQLSchemaPlugin } from "../plugins/index.js";
3
3
  /**
4
4
  * This factory is called whenever we need to generate graphql-schema plugins using the current context.
@@ -6,6 +6,7 @@ import type { ICmsGraphQLSchemaPlugin } from "../plugins/index.js";
6
6
  interface BuildSchemaPluginsParams {
7
7
  context: CmsContext;
8
8
  models: CmsModel[];
9
+ type: ApiEndpoint | null;
9
10
  }
10
11
  export declare const buildSchemaPlugins: (params: BuildSchemaPluginsParams) => Promise<ICmsGraphQLSchemaPlugin[]>;
11
12
  export {};
@@ -4,9 +4,7 @@ import { createGroupsSchema } from "./schema/contentModelGroups.js";
4
4
  import { createBaseContentSchema } from "./schema/baseContentSchema.js";
5
5
  import { generateSchemaPlugins } from "./schema/schemaPlugins.js";
6
6
  const buildSchemaPlugins = async (params)=>[
7
- createBaseContentSchema({
8
- context: params.context
9
- }),
7
+ createBaseContentSchema(),
10
8
  createModelsSchema({
11
9
  context: params.context
12
10
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"graphql/buildSchemaPlugins.js","sources":["../../src/graphql/buildSchemaPlugins.ts"],"sourcesContent":["import type { CmsContext, CmsModel } from \"~/types/index.js\";\nimport { createModelsSchema } from \"./schema/contentModels.js\";\nimport { createContentEntriesSchema } from \"./schema/contentEntries.js\";\nimport { createGroupsSchema } from \"./schema/contentModelGroups.js\";\nimport { createBaseContentSchema } from \"./schema/baseContentSchema.js\";\nimport { generateSchemaPlugins } from \"./schema/schemaPlugins.js\";\nimport type { ICmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\n\n/**\n * This factory is called whenever we need to generate graphql-schema plugins using the current context.\n */\ninterface BuildSchemaPluginsParams {\n context: CmsContext;\n models: CmsModel[];\n}\nexport const buildSchemaPlugins = async (\n params: BuildSchemaPluginsParams\n): Promise<ICmsGraphQLSchemaPlugin[]> => {\n return [\n // Base GQL types and scalars\n createBaseContentSchema({\n context: params.context\n }),\n createModelsSchema({\n context: params.context\n }),\n createContentEntriesSchema({\n context: params.context\n }),\n createGroupsSchema({\n context: params.context\n }),\n // Dynamic schema\n ...(await generateSchemaPlugins(params))\n ].filter(Boolean);\n};\n"],"names":["buildSchemaPlugins","params","createBaseContentSchema","createModelsSchema","createContentEntriesSchema","createGroupsSchema","generateSchemaPlugins","Boolean"],"mappings":";;;;;AAeO,MAAMA,qBAAqB,OAC9BC,SAEO;QAEHC,wBAAwB;YACpB,SAASD,OAAO,OAAO;QAC3B;QACAE,mBAAmB;YACf,SAASF,OAAO,OAAO;QAC3B;QACAG,2BAA2B;YACvB,SAASH,OAAO,OAAO;QAC3B;QACAI,mBAAmB;YACf,SAASJ,OAAO,OAAO;QAC3B;WAEI,MAAMK,sBAAsBL;KACnC,CAAC,MAAM,CAACM"}
1
+ {"version":3,"file":"graphql/buildSchemaPlugins.js","sources":["../../src/graphql/buildSchemaPlugins.ts"],"sourcesContent":["import type { ApiEndpoint, CmsContext, CmsModel } from \"~/types/index.js\";\nimport { createModelsSchema } from \"./schema/contentModels.js\";\nimport { createContentEntriesSchema } from \"./schema/contentEntries.js\";\nimport { createGroupsSchema } from \"./schema/contentModelGroups.js\";\nimport { createBaseContentSchema } from \"./schema/baseContentSchema.js\";\nimport { generateSchemaPlugins } from \"./schema/schemaPlugins.js\";\nimport type { ICmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\n\n/**\n * This factory is called whenever we need to generate graphql-schema plugins using the current context.\n */\ninterface BuildSchemaPluginsParams {\n context: CmsContext;\n models: CmsModel[];\n type: ApiEndpoint | null;\n}\nexport const buildSchemaPlugins = async (\n params: BuildSchemaPluginsParams\n): Promise<ICmsGraphQLSchemaPlugin[]> => {\n return [\n // Base GQL types and scalars\n createBaseContentSchema(),\n createModelsSchema({\n context: params.context\n }),\n createContentEntriesSchema({\n context: params.context\n }),\n createGroupsSchema({\n context: params.context\n }),\n // Dynamic schema\n ...(await generateSchemaPlugins(params))\n ].filter(Boolean);\n};\n"],"names":["buildSchemaPlugins","params","createBaseContentSchema","createModelsSchema","createContentEntriesSchema","createGroupsSchema","generateSchemaPlugins","Boolean"],"mappings":";;;;;AAgBO,MAAMA,qBAAqB,OAC9BC,SAEO;QAEHC;QACAC,mBAAmB;YACf,SAASF,OAAO,OAAO;QAC3B;QACAG,2BAA2B;YACvB,SAASH,OAAO,OAAO;QAC3B;QACAI,mBAAmB;YACf,SAASJ,OAAO,OAAO;QAC3B;WAEI,MAAMK,sBAAsBL;KACnC,CAAC,MAAM,CAACM"}
@@ -1,7 +1,10 @@
1
+ import { IdentityContext } from "@webiny/api-core/features/security/IdentityContext/abstractions.js";
1
2
  import { NotAuthorizedError } from "../utils/errors.js";
3
+ import { HeadlessCmsEndpointConfig } from "../HeadlessCmsEndpointConfig.js";
2
4
  const checkEndpointAccess = async (context)=>{
3
- const permission = await context.security.getPermission(`cms.endpoint.${context.cms.type}`);
4
- if (!permission) throw new NotAuthorizedError(`Not allowed to access "${context.cms.type}" endpoint.`);
5
+ const endpointType = context.container.resolve(HeadlessCmsEndpointConfig).type;
6
+ const permission = await context.container.resolve(IdentityContext).getPermission(`cms.endpoint.${endpointType}`);
7
+ if (!permission) throw new NotAuthorizedError(`Not allowed to access "${endpointType}" endpoint.`);
5
8
  };
6
9
  export { checkEndpointAccess };
7
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"graphql/checkEndpointAccess.js","sources":["../../src/graphql/checkEndpointAccess.ts"],"sourcesContent":["import type { CmsContext } from \"~/types/index.js\";\nimport { NotAuthorizedError } from \"~/utils/errors.js\";\n\nexport const checkEndpointAccess = async (context: CmsContext): Promise<void> => {\n const permission = await context.security.getPermission(`cms.endpoint.${context.cms.type}`);\n if (!permission) {\n throw new NotAuthorizedError(`Not allowed to access \"${context.cms.type}\" endpoint.`);\n }\n};\n"],"names":["checkEndpointAccess","context","permission","NotAuthorizedError"],"mappings":";AAGO,MAAMA,sBAAsB,OAAOC;IACtC,MAAMC,aAAa,MAAMD,QAAQ,QAAQ,CAAC,aAAa,CAAC,CAAC,aAAa,EAAEA,QAAQ,GAAG,CAAC,IAAI,EAAE;IAC1F,IAAI,CAACC,YACD,MAAM,IAAIC,mBAAmB,CAAC,uBAAuB,EAAEF,QAAQ,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;AAE5F"}
1
+ {"version":3,"file":"graphql/checkEndpointAccess.js","sources":["../../src/graphql/checkEndpointAccess.ts"],"sourcesContent":["import { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/abstractions.js\";\nimport type { CmsContext } from \"~/types/index.js\";\nimport { NotAuthorizedError } from \"~/utils/errors.js\";\nimport { HeadlessCmsEndpointConfig } from \"~/HeadlessCmsEndpointConfig.js\";\n\nexport const checkEndpointAccess = async (context: CmsContext): Promise<void> => {\n const endpointType = context.container.resolve(HeadlessCmsEndpointConfig).type;\n const permission = await context.container\n .resolve(IdentityContext)\n .getPermission(`cms.endpoint.${endpointType}`);\n if (!permission) {\n throw new NotAuthorizedError(`Not allowed to access \"${endpointType}\" endpoint.`);\n }\n};\n"],"names":["checkEndpointAccess","context","endpointType","HeadlessCmsEndpointConfig","permission","IdentityContext","NotAuthorizedError"],"mappings":";;;AAKO,MAAMA,sBAAsB,OAAOC;IACtC,MAAMC,eAAeD,QAAQ,SAAS,CAAC,OAAO,CAACE,2BAA2B,IAAI;IAC9E,MAAMC,aAAa,MAAMH,QAAQ,SAAS,CACrC,OAAO,CAACI,iBACR,aAAa,CAAC,CAAC,aAAa,EAAEH,cAAc;IACjD,IAAI,CAACE,YACD,MAAM,IAAIE,mBAAmB,CAAC,uBAAuB,EAAEJ,aAAa,WAAW,CAAC;AAExF"}
@@ -1,7 +1,7 @@
1
1
  import type { ICmsGraphQLSchemaPlugin } from "../plugins/index.js";
2
2
  import type { GraphQLSchema } from "graphql";
3
3
  interface Params {
4
- plugins: ICmsGraphQLSchemaPlugin[];
4
+ plugins: ICmsGraphQLSchemaPlugin<any>[];
5
5
  }
6
6
  export declare const assertFieldDescriptionsAreStrings: (schema: GraphQLSchema) => void;
7
7
  export declare const createExecutableSchema: (params: Params) => GraphQLSchema;
@@ -1,6 +1,6 @@
1
1
  import { makeExecutableSchema } from "@graphql-tools/schema";
2
2
  import { mergeResolvers } from "@graphql-tools/merge";
3
- import { ResolverDecoration } from "@webiny/handler-graphql";
3
+ import { ResolverDecoration } from "@webiny/api-graphql";
4
4
  const assertFieldDescriptionsAreStrings = (schema)=>{
5
5
  const typeMap = schema.getTypeMap();
6
6
  for (const type of Object.values(typeMap)){
@@ -1 +1 @@
1
- {"version":3,"file":"graphql/createExecutableSchema.js","sources":["../../src/graphql/createExecutableSchema.ts"],"sourcesContent":["import { makeExecutableSchema } from \"@graphql-tools/schema\";\nimport { mergeResolvers } from \"@graphql-tools/merge\";\nimport { ResolverDecoration } from \"@webiny/handler-graphql\";\nimport type { Resolvers, TypeDefs } from \"@webiny/handler-graphql/types.js\";\nimport type { ICmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\nimport type { GraphQLField, GraphQLSchema } from \"graphql\";\n\ninterface Params {\n plugins: ICmsGraphQLSchemaPlugin[];\n}\n\nexport const assertFieldDescriptionsAreStrings = (schema: GraphQLSchema): void => {\n const typeMap = schema.getTypeMap();\n\n for (const type of Object.values(typeMap)) {\n if (typeof (type as any).getFields !== \"function\") {\n continue;\n }\n\n const fields = (type as any).getFields() as Record<string, GraphQLField<any, any>>;\n for (const field of Object.values(fields)) {\n const desc = (field as any).description;\n if (desc !== null && desc !== undefined && typeof desc !== \"string\") {\n const message = `Invalid description type on ${type.name}.${field.name}: ${typeof desc}`;\n console.log(message);\n throw new Error(message);\n }\n }\n }\n};\n\nexport const createExecutableSchema = (params: Params) => {\n const { plugins } = params;\n\n const typeDefs: TypeDefs[] = [];\n const resolvers: Resolvers<any>[] = [];\n\n const resolverDecoration = new ResolverDecoration();\n\n // Get schema definitions from plugins\n for (const plugin of plugins) {\n const schema = plugin.schema;\n if (schema.typeDefs) {\n typeDefs.push(schema.typeDefs);\n }\n if (schema.resolvers) {\n resolvers.push(schema.resolvers);\n }\n if (schema.resolverDecorators) {\n resolverDecoration.addDecorators(schema.resolverDecorators);\n }\n }\n\n const executableSchema = makeExecutableSchema({\n typeDefs,\n resolvers: resolverDecoration.decorateResolvers(mergeResolvers(resolvers))\n });\n assertFieldDescriptionsAreStrings(executableSchema);\n\n return executableSchema;\n};\n"],"names":["assertFieldDescriptionsAreStrings","schema","typeMap","type","Object","fields","field","desc","message","console","Error","createExecutableSchema","params","plugins","typeDefs","resolvers","resolverDecoration","ResolverDecoration","plugin","executableSchema","makeExecutableSchema","mergeResolvers"],"mappings":";;;AAWO,MAAMA,oCAAoC,CAACC;IAC9C,MAAMC,UAAUD,OAAO,UAAU;IAEjC,KAAK,MAAME,QAAQC,OAAO,MAAM,CAACF,SAAU;QACvC,IAAI,AAAmC,cAAnC,OAAQC,KAAa,SAAS,EAC9B;QAGJ,MAAME,SAAUF,KAAa,SAAS;QACtC,KAAK,MAAMG,SAASF,OAAO,MAAM,CAACC,QAAS;YACvC,MAAME,OAAQD,MAAc,WAAW;YACvC,IAAIC,QAAAA,QAAuC,AAAgB,YAAhB,OAAOA,MAAmB;gBACjE,MAAMC,UAAU,CAAC,4BAA4B,EAAEL,KAAK,IAAI,CAAC,CAAC,EAAEG,MAAM,IAAI,CAAC,EAAE,EAAE,OAAOC,MAAM;gBACxFE,QAAQ,GAAG,CAACD;gBACZ,MAAM,IAAIE,MAAMF;YACpB;QACJ;IACJ;AACJ;AAEO,MAAMG,yBAAyB,CAACC;IACnC,MAAM,EAAEC,OAAO,EAAE,GAAGD;IAEpB,MAAME,WAAuB,EAAE;IAC/B,MAAMC,YAA8B,EAAE;IAEtC,MAAMC,qBAAqB,IAAIC;IAG/B,KAAK,MAAMC,UAAUL,QAAS;QAC1B,MAAMZ,SAASiB,OAAO,MAAM;QAC5B,IAAIjB,OAAO,QAAQ,EACfa,SAAS,IAAI,CAACb,OAAO,QAAQ;QAEjC,IAAIA,OAAO,SAAS,EAChBc,UAAU,IAAI,CAACd,OAAO,SAAS;QAEnC,IAAIA,OAAO,kBAAkB,EACzBe,mBAAmB,aAAa,CAACf,OAAO,kBAAkB;IAElE;IAEA,MAAMkB,mBAAmBC,qBAAqB;QAC1CN;QACA,WAAWE,mBAAmB,iBAAiB,CAACK,eAAeN;IACnE;IACAf,kCAAkCmB;IAElC,OAAOA;AACX"}
1
+ {"version":3,"file":"graphql/createExecutableSchema.js","sources":["../../src/graphql/createExecutableSchema.ts"],"sourcesContent":["import { makeExecutableSchema } from \"@graphql-tools/schema\";\nimport { mergeResolvers } from \"@graphql-tools/merge\";\nimport { ResolverDecoration } from \"@webiny/api-graphql\";\nimport type { Resolvers, TypeDefs } from \"@webiny/api-graphql/types.js\";\nimport type { ICmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\nimport type { GraphQLField, GraphQLSchema } from \"graphql\";\n\ninterface Params {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n plugins: ICmsGraphQLSchemaPlugin<any>[];\n}\n\nexport const assertFieldDescriptionsAreStrings = (schema: GraphQLSchema): void => {\n const typeMap = schema.getTypeMap();\n\n for (const type of Object.values(typeMap)) {\n if (typeof (type as any).getFields !== \"function\") {\n continue;\n }\n\n const fields = (type as any).getFields() as Record<string, GraphQLField<any, any>>;\n for (const field of Object.values(fields)) {\n const desc = (field as any).description;\n if (desc !== null && desc !== undefined && typeof desc !== \"string\") {\n const message = `Invalid description type on ${type.name}.${field.name}: ${typeof desc}`;\n console.log(message);\n throw new Error(message);\n }\n }\n }\n};\n\nexport const createExecutableSchema = (params: Params) => {\n const { plugins } = params;\n\n const typeDefs: TypeDefs[] = [];\n const resolvers: Resolvers<any>[] = [];\n\n const resolverDecoration = new ResolverDecoration();\n\n // Get schema definitions from plugins\n for (const plugin of plugins) {\n const schema = plugin.schema;\n if (schema.typeDefs) {\n typeDefs.push(schema.typeDefs);\n }\n if (schema.resolvers) {\n resolvers.push(schema.resolvers);\n }\n if (schema.resolverDecorators) {\n resolverDecoration.addDecorators(schema.resolverDecorators);\n }\n }\n\n const executableSchema = makeExecutableSchema({\n typeDefs,\n resolvers: resolverDecoration.decorateResolvers(mergeResolvers(resolvers))\n });\n assertFieldDescriptionsAreStrings(executableSchema);\n\n return executableSchema;\n};\n"],"names":["assertFieldDescriptionsAreStrings","schema","typeMap","type","Object","fields","field","desc","message","console","Error","createExecutableSchema","params","plugins","typeDefs","resolvers","resolverDecoration","ResolverDecoration","plugin","executableSchema","makeExecutableSchema","mergeResolvers"],"mappings":";;;AAYO,MAAMA,oCAAoC,CAACC;IAC9C,MAAMC,UAAUD,OAAO,UAAU;IAEjC,KAAK,MAAME,QAAQC,OAAO,MAAM,CAACF,SAAU;QACvC,IAAI,AAAmC,cAAnC,OAAQC,KAAa,SAAS,EAC9B;QAGJ,MAAME,SAAUF,KAAa,SAAS;QACtC,KAAK,MAAMG,SAASF,OAAO,MAAM,CAACC,QAAS;YACvC,MAAME,OAAQD,MAAc,WAAW;YACvC,IAAIC,QAAAA,QAAuC,AAAgB,YAAhB,OAAOA,MAAmB;gBACjE,MAAMC,UAAU,CAAC,4BAA4B,EAAEL,KAAK,IAAI,CAAC,CAAC,EAAEG,MAAM,IAAI,CAAC,EAAE,EAAE,OAAOC,MAAM;gBACxFE,QAAQ,GAAG,CAACD;gBACZ,MAAM,IAAIE,MAAMF;YACpB;QACJ;IACJ;AACJ;AAEO,MAAMG,yBAAyB,CAACC;IACnC,MAAM,EAAEC,OAAO,EAAE,GAAGD;IAEpB,MAAME,WAAuB,EAAE;IAC/B,MAAMC,YAA8B,EAAE;IAEtC,MAAMC,qBAAqB,IAAIC;IAG/B,KAAK,MAAMC,UAAUL,QAAS;QAC1B,MAAMZ,SAASiB,OAAO,MAAM;QAC5B,IAAIjB,OAAO,QAAQ,EACfa,SAAS,IAAI,CAACb,OAAO,QAAQ;QAEjC,IAAIA,OAAO,SAAS,EAChBc,UAAU,IAAI,CAACd,OAAO,SAAS;QAEnC,IAAIA,OAAO,kBAAkB,EACzBe,mBAAmB,aAAa,CAACf,OAAO,kBAAkB;IAElE;IAEA,MAAMkB,mBAAmBC,qBAAqB;QAC1CN;QACA,WAAWE,mBAAmB,iBAAiB,CAACK,eAAeN;IACnE;IACAf,kCAAkCmB;IAElC,OAAOA;AACX"}
@@ -1,8 +1,9 @@
1
- import type { CmsContext, CmsModel } from "../types/index.js";
1
+ import type { ApiEndpoint, CmsContext, CmsModel } from "../types/index.js";
2
2
  import type { GraphQLSchema } from "graphql/type/index.js";
3
3
  interface GenerateSchemaParams {
4
4
  context: CmsContext;
5
5
  models: CmsModel[];
6
+ type: ApiEndpoint | null;
6
7
  }
7
8
  export declare const generateSchema: (params: GenerateSchemaParams) => Promise<GraphQLSchema>;
8
9
  export {};
@@ -1,20 +1,29 @@
1
1
  import { buildSchemaPlugins } from "./buildSchemaPlugins.js";
2
2
  import { createExecutableSchema } from "./createExecutableSchema.js";
3
- import { CmsGraphQLSchemaPlugin } from "../plugins/index.js";
3
+ import { CmsGraphQLSchemaFactory } from "./CmsGraphQLSchemaFactory.js";
4
4
  const generateSchema = async (params)=>{
5
- const { context, models } = params;
5
+ const { context, models, type } = params;
6
6
  let generatedSchemaPlugins = [];
7
7
  try {
8
8
  generatedSchemaPlugins = await buildSchemaPlugins({
9
9
  context,
10
- models
10
+ models,
11
+ type
11
12
  });
12
13
  } catch (ex) {
13
14
  console.log("Error while building schema plugins.");
14
15
  throw ex;
15
16
  }
16
- context.plugins.register(generatedSchemaPlugins);
17
- const schemaPlugins = context.plugins.byType(CmsGraphQLSchemaPlugin.type).filter((pl)=>{
17
+ const staticFactories = context.container.resolveAll(CmsGraphQLSchemaFactory);
18
+ const staticPlugins = [];
19
+ for (const factory of staticFactories){
20
+ const plugins = await factory.execute();
21
+ staticPlugins.push(...plugins);
22
+ }
23
+ const schemaPlugins = [
24
+ ...staticPlugins,
25
+ ...generatedSchemaPlugins
26
+ ].filter((pl)=>{
18
27
  if ("function" == typeof pl.isApplicable) return pl.isApplicable(context);
19
28
  return true;
20
29
  });
@@ -1 +1 @@
1
- {"version":3,"file":"graphql/generateSchema.js","sources":["../../src/graphql/generateSchema.ts"],"sourcesContent":["import type { CmsContext, CmsModel } from \"~/types/index.js\";\nimport { buildSchemaPlugins } from \"./buildSchemaPlugins.js\";\nimport { createExecutableSchema } from \"./createExecutableSchema.js\";\nimport type { GraphQLSchema } from \"graphql/type/index.js\";\nimport type { ICmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\nimport { CmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\n\ninterface GenerateSchemaParams {\n context: CmsContext;\n models: CmsModel[];\n}\nexport const generateSchema = async (params: GenerateSchemaParams): Promise<GraphQLSchema> => {\n const { context, models } = params;\n\n let generatedSchemaPlugins: ICmsGraphQLSchemaPlugin[] = [];\n try {\n generatedSchemaPlugins = await buildSchemaPlugins({ context, models });\n } catch (ex) {\n console.log(`Error while building schema plugins.`);\n throw ex;\n }\n\n context.plugins.register(generatedSchemaPlugins);\n\n const schemaPlugins = context.plugins\n .byType<ICmsGraphQLSchemaPlugin>(CmsGraphQLSchemaPlugin.type)\n .filter(pl => {\n if (typeof pl.isApplicable === \"function\") {\n return pl.isApplicable(context);\n }\n return true;\n });\n\n return createExecutableSchema({\n plugins: schemaPlugins\n });\n};\n"],"names":["generateSchema","params","context","models","generatedSchemaPlugins","buildSchemaPlugins","ex","console","schemaPlugins","CmsGraphQLSchemaPlugin","pl","createExecutableSchema"],"mappings":";;;AAWO,MAAMA,iBAAiB,OAAOC;IACjC,MAAM,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGF;IAE5B,IAAIG,yBAAoD,EAAE;IAC1D,IAAI;QACAA,yBAAyB,MAAMC,mBAAmB;YAAEH;YAASC;QAAO;IACxE,EAAE,OAAOG,IAAI;QACTC,QAAQ,GAAG,CAAC;QACZ,MAAMD;IACV;IAEAJ,QAAQ,OAAO,CAAC,QAAQ,CAACE;IAEzB,MAAMI,gBAAgBN,QAAQ,OAAO,CAChC,MAAM,CAA0BO,uBAAuB,IAAI,EAC3D,MAAM,CAACC,CAAAA;QACJ,IAAI,AAA2B,cAA3B,OAAOA,GAAG,YAAY,EACtB,OAAOA,GAAG,YAAY,CAACR;QAE3B,OAAO;IACX;IAEJ,OAAOS,uBAAuB;QAC1B,SAASH;IACb;AACJ"}
1
+ {"version":3,"file":"graphql/generateSchema.js","sources":["../../src/graphql/generateSchema.ts"],"sourcesContent":["import type { ApiEndpoint, CmsContext, CmsModel } from \"~/types/index.js\";\nimport { buildSchemaPlugins } from \"./buildSchemaPlugins.js\";\nimport { createExecutableSchema } from \"./createExecutableSchema.js\";\nimport type { GraphQLSchema } from \"graphql/type/index.js\";\nimport type { ICmsGraphQLSchemaPlugin } from \"~/plugins/index.js\";\nimport { CmsGraphQLSchemaFactory } from \"./CmsGraphQLSchemaFactory.js\";\n\ninterface GenerateSchemaParams {\n context: CmsContext;\n models: CmsModel[];\n type: ApiEndpoint | null;\n}\nexport const generateSchema = async (params: GenerateSchemaParams): Promise<GraphQLSchema> => {\n const { context, models, type } = params;\n\n let generatedSchemaPlugins: ICmsGraphQLSchemaPlugin[] = [];\n try {\n generatedSchemaPlugins = await buildSchemaPlugins({ context, models, type });\n } catch (ex) {\n console.log(`Error while building schema plugins.`);\n throw ex;\n }\n\n const staticFactories = context.container.resolveAll(CmsGraphQLSchemaFactory);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const staticPlugins: ICmsGraphQLSchemaPlugin<any>[] = [];\n for (const factory of staticFactories) {\n const plugins = await factory.execute();\n staticPlugins.push(...plugins);\n }\n\n const schemaPlugins = [...staticPlugins, ...generatedSchemaPlugins].filter(pl => {\n if (typeof pl.isApplicable === \"function\") {\n return pl.isApplicable(context);\n }\n return true;\n });\n\n return createExecutableSchema({ plugins: schemaPlugins });\n};\n"],"names":["generateSchema","params","context","models","type","generatedSchemaPlugins","buildSchemaPlugins","ex","console","staticFactories","CmsGraphQLSchemaFactory","staticPlugins","factory","plugins","schemaPlugins","pl","createExecutableSchema"],"mappings":";;;AAYO,MAAMA,iBAAiB,OAAOC;IACjC,MAAM,EAAEC,OAAO,EAAEC,MAAM,EAAEC,IAAI,EAAE,GAAGH;IAElC,IAAII,yBAAoD,EAAE;IAC1D,IAAI;QACAA,yBAAyB,MAAMC,mBAAmB;YAAEJ;YAASC;YAAQC;QAAK;IAC9E,EAAE,OAAOG,IAAI;QACTC,QAAQ,GAAG,CAAC;QACZ,MAAMD;IACV;IAEA,MAAME,kBAAkBP,QAAQ,SAAS,CAAC,UAAU,CAACQ;IAErD,MAAMC,gBAAgD,EAAE;IACxD,KAAK,MAAMC,WAAWH,gBAAiB;QACnC,MAAMI,UAAU,MAAMD,QAAQ,OAAO;QACrCD,cAAc,IAAI,IAAIE;IAC1B;IAEA,MAAMC,gBAAgB;WAAIH;WAAkBN;KAAuB,CAAC,MAAM,CAACU,CAAAA;QACvE,IAAI,AAA2B,cAA3B,OAAOA,GAAG,YAAY,EACtB,OAAOA,GAAG,YAAY,CAACb;QAE3B,OAAO;IACX;IAEA,OAAOc,uBAAuB;QAAE,SAASF;IAAc;AAC3D"}
@@ -1,15 +1,20 @@
1
1
  import { codeFrameColumns } from "@babel/code-frame";
2
2
  import error from "@webiny/error";
3
+ import { IdentityContext } from "@webiny/api-core/features/security/IdentityContext/abstractions.js";
3
4
  import { generateSchema } from "./generateSchema.js";
4
5
  import { generateCacheId } from "./getSchema/generateCacheId.js";
5
6
  import { generateCacheKey } from "./getSchema/generateCacheKey.js";
7
+ import { ListModelsUseCase } from "../features/contentModel/ListModels/index.js";
8
+ import { HeadlessCmsEndpointConfig } from "../HeadlessCmsEndpointConfig.js";
6
9
  const schemaList = new Map();
7
10
  const getSchema = async (params)=>{
8
11
  const { context } = params;
9
- const models = await context.security.withoutAuthorization(async ()=>await context.cms.listModels({
12
+ const modelsResult = await context.container.resolve(IdentityContext).withoutAuthorization(async ()=>context.container.resolve(ListModelsUseCase).execute({
10
13
  includePrivate: false,
11
14
  includePlugins: true
12
15
  }));
16
+ if (modelsResult.isFail()) throw modelsResult.error;
17
+ const models = modelsResult.value;
13
18
  const cacheId = generateCacheId(params);
14
19
  const cacheKey = await generateCacheKey({
15
20
  ...params,
@@ -33,7 +38,7 @@ const getSchema = async (params)=>{
33
38
  code: err.code || "INVALID_GRAPHQL_SCHEMA_LOCATIONS",
34
39
  data: {
35
40
  ...err.data || {},
36
- endpoint: context.cms.type
41
+ endpoint: context.container.resolve(HeadlessCmsEndpointConfig).type
37
42
  }
38
43
  });
39
44
  const [location] = err.locations;