@webiny/api-headless-cms-ddb-es 0.0.0-unstable.3c5210ad37 → 0.0.0-unstable.3fddf667ea

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 (409) hide show
  1. package/abstractions/CmsDdbEsDataLoaders.d.ts +5 -0
  2. package/abstractions/CmsDdbEsDataLoaders.js +5 -0
  3. package/abstractions/CmsDdbEsDataLoaders.js.map +1 -0
  4. package/abstractions/CmsDdbEsEntriesEsEntity.d.ts +5 -0
  5. package/abstractions/CmsDdbEsEntriesEsEntity.js +5 -0
  6. package/abstractions/CmsDdbEsEntriesEsEntity.js.map +1 -0
  7. package/abstractions/CmsDdbEsEntryEntity.d.ts +5 -0
  8. package/abstractions/CmsDdbEsEntryEntity.js +5 -0
  9. package/abstractions/CmsDdbEsEntryEntity.js.map +1 -0
  10. package/abstractions/CmsDdbEsGroupEntity.d.ts +5 -0
  11. package/abstractions/CmsDdbEsGroupEntity.js +5 -0
  12. package/abstractions/CmsDdbEsGroupEntity.js.map +1 -0
  13. package/abstractions/CmsDdbEsModelEntity.d.ts +5 -0
  14. package/abstractions/CmsDdbEsModelEntity.js +5 -0
  15. package/abstractions/CmsDdbEsModelEntity.js.map +1 -0
  16. package/abstractions/CmsDdbEsOsTable.d.ts +5 -0
  17. package/abstractions/CmsDdbEsOsTable.js +5 -0
  18. package/abstractions/CmsDdbEsOsTable.js.map +1 -0
  19. package/abstractions/CmsDdbEsTable.d.ts +5 -0
  20. package/abstractions/CmsDdbEsTable.js +5 -0
  21. package/abstractions/CmsDdbEsTable.js.map +1 -0
  22. package/debuggerNamespaces.d.ts +12 -0
  23. package/debuggerNamespaces.js +0 -0
  24. package/definitions/entry.js +7 -9
  25. package/definitions/entry.js.map +1 -1
  26. package/definitions/group.js +7 -9
  27. package/definitions/group.js.map +1 -1
  28. package/definitions/model.js +7 -9
  29. package/definitions/model.js.map +1 -1
  30. package/definitions/types.d.ts +7 -2
  31. package/definitions/types.js +0 -3
  32. package/feature.d.ts +10 -0
  33. package/feature.js +69 -0
  34. package/feature.js.map +1 -0
  35. package/index.d.ts +1 -3
  36. package/index.js +1 -190
  37. package/operations/entry/DdbEsCreateEntry.d.ts +24 -0
  38. package/operations/entry/DdbEsCreateEntry.js +134 -0
  39. package/operations/entry/DdbEsCreateEntry.js.map +1 -0
  40. package/operations/entry/DdbEsCreateEntryRevisionFrom.d.ts +24 -0
  41. package/operations/entry/DdbEsCreateEntryRevisionFrom.js +139 -0
  42. package/operations/entry/DdbEsCreateEntryRevisionFrom.js.map +1 -0
  43. package/operations/entry/DdbEsDeleteEntry.d.ts +18 -0
  44. package/operations/entry/DdbEsDeleteEntry.js +79 -0
  45. package/operations/entry/DdbEsDeleteEntry.js.map +1 -0
  46. package/operations/entry/DdbEsDeleteEntryRevision.d.ts +24 -0
  47. package/operations/entry/DdbEsDeleteEntryRevision.js +136 -0
  48. package/operations/entry/DdbEsDeleteEntryRevision.js.map +1 -0
  49. package/operations/entry/DdbEsDeleteMultipleEntries.d.ts +18 -0
  50. package/operations/entry/DdbEsDeleteMultipleEntries.js +78 -0
  51. package/operations/entry/DdbEsDeleteMultipleEntries.js.map +1 -0
  52. package/operations/entry/DdbEsGetEntriesByIds.d.ts +14 -0
  53. package/operations/entry/DdbEsGetEntriesByIds.js +31 -0
  54. package/operations/entry/DdbEsGetEntriesByIds.js.map +1 -0
  55. package/operations/entry/DdbEsGetEntry.d.ts +14 -0
  56. package/operations/entry/DdbEsGetEntry.js +27 -0
  57. package/operations/entry/DdbEsGetEntry.js.map +1 -0
  58. package/operations/entry/DdbEsGetLatestEntriesByIds.d.ts +14 -0
  59. package/operations/entry/DdbEsGetLatestEntriesByIds.js +31 -0
  60. package/operations/entry/DdbEsGetLatestEntriesByIds.js.map +1 -0
  61. package/operations/entry/DdbEsGetLatestRevisionByEntryId.d.ts +14 -0
  62. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js +34 -0
  63. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js.map +1 -0
  64. package/operations/entry/DdbEsGetPreviousRevision.d.ts +14 -0
  65. package/operations/entry/DdbEsGetPreviousRevision.js +56 -0
  66. package/operations/entry/DdbEsGetPreviousRevision.js.map +1 -0
  67. package/operations/entry/DdbEsGetPublishedEntriesByIds.d.ts +14 -0
  68. package/operations/entry/DdbEsGetPublishedEntriesByIds.js +31 -0
  69. package/operations/entry/DdbEsGetPublishedEntriesByIds.js.map +1 -0
  70. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.d.ts +14 -0
  71. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js +34 -0
  72. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js.map +1 -0
  73. package/operations/entry/DdbEsGetRevisionById.d.ts +14 -0
  74. package/operations/entry/DdbEsGetRevisionById.js +34 -0
  75. package/operations/entry/DdbEsGetRevisionById.js.map +1 -0
  76. package/operations/entry/DdbEsGetRevisions.d.ts +14 -0
  77. package/operations/entry/DdbEsGetRevisions.js +33 -0
  78. package/operations/entry/DdbEsGetRevisions.js.map +1 -0
  79. package/operations/entry/DdbEsGetUniqueFieldValues.d.ts +18 -0
  80. package/operations/entry/DdbEsGetUniqueFieldValues.js +77 -0
  81. package/operations/entry/DdbEsGetUniqueFieldValues.js.map +1 -0
  82. package/operations/entry/DdbEsListEntries.d.ts +28 -0
  83. package/operations/entry/DdbEsListEntries.js +110 -0
  84. package/operations/entry/DdbEsListEntries.js.map +1 -0
  85. package/operations/entry/DdbEsMoveEntry.d.ts +20 -0
  86. package/operations/entry/DdbEsMoveEntry.js +113 -0
  87. package/operations/entry/DdbEsMoveEntry.js.map +1 -0
  88. package/operations/entry/DdbEsMoveToBin.d.ts +23 -0
  89. package/operations/entry/DdbEsMoveToBin.js +137 -0
  90. package/operations/entry/DdbEsMoveToBin.js.map +1 -0
  91. package/operations/entry/DdbEsPublishEntry.d.ts +24 -0
  92. package/operations/entry/DdbEsPublishEntry.js +231 -0
  93. package/operations/entry/DdbEsPublishEntry.js.map +1 -0
  94. package/operations/entry/DdbEsRestoreFromBin.d.ts +23 -0
  95. package/operations/entry/DdbEsRestoreFromBin.js +137 -0
  96. package/operations/entry/DdbEsRestoreFromBin.js.map +1 -0
  97. package/operations/entry/DdbEsUnpublishEntry.d.ts +24 -0
  98. package/operations/entry/DdbEsUnpublishEntry.js +127 -0
  99. package/operations/entry/DdbEsUnpublishEntry.js.map +1 -0
  100. package/operations/entry/DdbEsUpdateEntry.d.ts +24 -0
  101. package/operations/entry/DdbEsUpdateEntry.js +175 -0
  102. package/operations/entry/DdbEsUpdateEntry.js.map +1 -0
  103. package/operations/entry/dataLoader/DataLoaderCache.d.ts +1 -0
  104. package/operations/entry/dataLoader/DataLoaderCache.js +22 -29
  105. package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -1
  106. package/operations/entry/dataLoader/constants.js +2 -1
  107. package/operations/entry/dataLoader/constants.js.map +1 -1
  108. package/operations/entry/dataLoader/createBatchScheduleFn.js +6 -15
  109. package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -1
  110. package/operations/entry/dataLoader/getAllEntryRevisions.js +18 -26
  111. package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -1
  112. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +28 -34
  113. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -1
  114. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +28 -34
  115. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -1
  116. package/operations/entry/dataLoader/getRevisionById.js +33 -43
  117. package/operations/entry/dataLoader/getRevisionById.js.map +1 -1
  118. package/operations/entry/dataLoader/index.js +8 -9
  119. package/operations/entry/dataLoader/index.js.map +1 -1
  120. package/operations/entry/dataLoader/types.d.ts +1 -0
  121. package/operations/entry/dataLoader/types.js +0 -3
  122. package/operations/entry/dataLoaders.d.ts +5 -5
  123. package/operations/entry/dataLoaders.js +89 -97
  124. package/operations/entry/dataLoaders.js.map +1 -1
  125. package/operations/entry/feature.d.ts +4 -0
  126. package/operations/entry/feature.js +55 -0
  127. package/operations/entry/feature.js.map +1 -0
  128. package/operations/entry/keys.js +43 -63
  129. package/operations/entry/keys.js.map +1 -1
  130. package/operations/entry/recordType.js +4 -9
  131. package/operations/entry/recordType.js.map +1 -1
  132. package/operations/entry/storageEntryUtils.d.ts +7 -0
  133. package/operations/entry/storageEntryUtils.js +14 -0
  134. package/operations/entry/storageEntryUtils.js.map +1 -0
  135. package/operations/entry/transformations/convertEntryKeys.js +21 -26
  136. package/operations/entry/transformations/convertEntryKeys.js.map +1 -1
  137. package/operations/entry/transformations/index.d.ts +6 -3
  138. package/operations/entry/transformations/index.js +85 -113
  139. package/operations/entry/transformations/index.js.map +1 -1
  140. package/operations/entry/transformations/modifyEntryValues.d.ts +5 -4
  141. package/operations/entry/transformations/modifyEntryValues.js +12 -17
  142. package/operations/entry/transformations/modifyEntryValues.js.map +1 -1
  143. package/operations/entry/transformations/transformEntryKeys.js +13 -16
  144. package/operations/entry/transformations/transformEntryKeys.js.map +1 -1
  145. package/operations/group/DdbEsCreateGroup.d.ts +12 -0
  146. package/operations/group/DdbEsCreateGroup.js +35 -0
  147. package/operations/group/DdbEsCreateGroup.js.map +1 -0
  148. package/operations/group/DdbEsDeleteGroup.d.ts +12 -0
  149. package/operations/group/DdbEsDeleteGroup.js +31 -0
  150. package/operations/group/DdbEsDeleteGroup.js.map +1 -0
  151. package/operations/group/DdbEsGetGroup.d.ts +12 -0
  152. package/operations/group/DdbEsGetGroup.js +31 -0
  153. package/operations/group/DdbEsGetGroup.js.map +1 -0
  154. package/operations/group/DdbEsListGroups.d.ts +14 -0
  155. package/operations/group/DdbEsListGroups.js +52 -0
  156. package/operations/group/DdbEsListGroups.js.map +1 -0
  157. package/operations/group/DdbEsUpdateGroup.d.ts +12 -0
  158. package/operations/group/DdbEsUpdateGroup.js +35 -0
  159. package/operations/group/DdbEsUpdateGroup.js.map +1 -0
  160. package/operations/group/feature.d.ts +4 -0
  161. package/operations/group/feature.js +19 -0
  162. package/operations/group/feature.js.map +1 -0
  163. package/operations/group/keys.d.ts +15 -0
  164. package/operations/group/keys.js +17 -0
  165. package/operations/group/keys.js.map +1 -0
  166. package/operations/model/DdbEsCreateModel.d.ts +16 -0
  167. package/operations/model/DdbEsCreateModel.js +56 -0
  168. package/operations/model/DdbEsCreateModel.js.map +1 -0
  169. package/operations/model/DdbEsDeleteModel.d.ts +12 -0
  170. package/operations/model/DdbEsDeleteModel.js +31 -0
  171. package/operations/model/DdbEsDeleteModel.js.map +1 -0
  172. package/operations/model/DdbEsGetModel.d.ts +12 -0
  173. package/operations/model/DdbEsGetModel.js +30 -0
  174. package/operations/model/DdbEsGetModel.js.map +1 -0
  175. package/operations/model/DdbEsListModels.d.ts +12 -0
  176. package/operations/model/DdbEsListModels.js +36 -0
  177. package/operations/model/DdbEsListModels.js.map +1 -0
  178. package/operations/model/DdbEsUpdateModel.d.ts +12 -0
  179. package/operations/model/DdbEsUpdateModel.js +36 -0
  180. package/operations/model/DdbEsUpdateModel.js.map +1 -0
  181. package/operations/model/feature.d.ts +4 -0
  182. package/operations/model/feature.js +19 -0
  183. package/operations/model/feature.js.map +1 -0
  184. package/operations/model/keys.d.ts +15 -0
  185. package/operations/model/keys.js +17 -0
  186. package/operations/model/keys.js.map +1 -0
  187. package/package.json +38 -29
  188. package/registry/CmsEntitiesDbRegistryDecorator.d.ts +27 -0
  189. package/registry/CmsEntitiesDbRegistryDecorator.js +46 -0
  190. package/registry/CmsEntitiesDbRegistryDecorator.js.map +1 -0
  191. package/tasks/CreateElasticsearchIndexTask.d.ts +15 -0
  192. package/tasks/CreateElasticsearchIndexTask.js +49 -0
  193. package/tasks/CreateElasticsearchIndexTask.js.map +1 -0
  194. package/types.d.ts +11 -155
  195. package/types.js +7 -36
  196. package/types.js.map +1 -1
  197. package/configurations.d.ts +0 -18
  198. package/configurations.js +0 -37
  199. package/configurations.js.map +0 -1
  200. package/definitions/types.js.map +0 -1
  201. package/dynamoDb/index.d.ts +0 -3
  202. package/dynamoDb/index.js +0 -8
  203. package/dynamoDb/index.js.map +0 -1
  204. package/dynamoDb/storage/longText.d.ts +0 -10
  205. package/dynamoDb/storage/longText.js +0 -88
  206. package/dynamoDb/storage/longText.js.map +0 -1
  207. package/dynamoDb/storage/richText.d.ts +0 -2
  208. package/dynamoDb/storage/richText.js +0 -51
  209. package/dynamoDb/storage/richText.js.map +0 -1
  210. package/elasticsearch/createElasticsearchIndex.d.ts +0 -9
  211. package/elasticsearch/createElasticsearchIndex.js +0 -32
  212. package/elasticsearch/createElasticsearchIndex.js.map +0 -1
  213. package/elasticsearch/deleteElasticsearchIndex.d.ts +0 -8
  214. package/elasticsearch/deleteElasticsearchIndex.js +0 -31
  215. package/elasticsearch/deleteElasticsearchIndex.js.map +0 -1
  216. package/elasticsearch/index.d.ts +0 -2
  217. package/elasticsearch/index.js +0 -5
  218. package/elasticsearch/index.js.map +0 -1
  219. package/elasticsearch/indexing/dateTimeIndexing.d.ts +0 -3
  220. package/elasticsearch/indexing/dateTimeIndexing.js +0 -81
  221. package/elasticsearch/indexing/dateTimeIndexing.js.map +0 -1
  222. package/elasticsearch/indexing/defaultFieldIndexing.d.ts +0 -3
  223. package/elasticsearch/indexing/defaultFieldIndexing.js +0 -47
  224. package/elasticsearch/indexing/defaultFieldIndexing.js.map +0 -1
  225. package/elasticsearch/indexing/index.d.ts +0 -2
  226. package/elasticsearch/indexing/index.js +0 -10
  227. package/elasticsearch/indexing/index.js.map +0 -1
  228. package/elasticsearch/indexing/jsonIndexing.d.ts +0 -2
  229. package/elasticsearch/indexing/jsonIndexing.js +0 -21
  230. package/elasticsearch/indexing/jsonIndexing.js.map +0 -1
  231. package/elasticsearch/indexing/longTextIndexing.d.ts +0 -7
  232. package/elasticsearch/indexing/longTextIndexing.js +0 -35
  233. package/elasticsearch/indexing/longTextIndexing.js.map +0 -1
  234. package/elasticsearch/indexing/numberIndexing.d.ts +0 -3
  235. package/elasticsearch/indexing/numberIndexing.js +0 -34
  236. package/elasticsearch/indexing/numberIndexing.js.map +0 -1
  237. package/elasticsearch/indexing/objectIndexing.d.ts +0 -12
  238. package/elasticsearch/indexing/objectIndexing.js +0 -194
  239. package/elasticsearch/indexing/objectIndexing.js.map +0 -1
  240. package/elasticsearch/indexing/richTextIndexing.d.ts +0 -3
  241. package/elasticsearch/indexing/richTextIndexing.js +0 -24
  242. package/elasticsearch/indexing/richTextIndexing.js.map +0 -1
  243. package/elasticsearch/indices/base.d.ts +0 -2
  244. package/elasticsearch/indices/base.js +0 -7
  245. package/elasticsearch/indices/base.js.map +0 -1
  246. package/elasticsearch/indices/index.d.ts +0 -1
  247. package/elasticsearch/indices/index.js +0 -6
  248. package/elasticsearch/indices/index.js.map +0 -1
  249. package/elasticsearch/search/index.d.ts +0 -3
  250. package/elasticsearch/search/index.js +0 -6
  251. package/elasticsearch/search/index.js.map +0 -1
  252. package/elasticsearch/search/refSearch.d.ts +0 -2
  253. package/elasticsearch/search/refSearch.js +0 -24
  254. package/elasticsearch/search/refSearch.js.map +0 -1
  255. package/elasticsearch/search/searchableJson.d.ts +0 -2
  256. package/elasticsearch/search/searchableJson.js +0 -53
  257. package/elasticsearch/search/searchableJson.js.map +0 -1
  258. package/elasticsearch/search/timeSearch.d.ts +0 -2
  259. package/elasticsearch/search/timeSearch.js +0 -20
  260. package/elasticsearch/search/timeSearch.js.map +0 -1
  261. package/helpers/entryIndexHelpers.d.ts +0 -18
  262. package/helpers/entryIndexHelpers.js +0 -196
  263. package/helpers/entryIndexHelpers.js.map +0 -1
  264. package/helpers/fieldIdentifier.d.ts +0 -6
  265. package/helpers/fieldIdentifier.js +0 -35
  266. package/helpers/fieldIdentifier.js.map +0 -1
  267. package/helpers/index.d.ts +0 -2
  268. package/helpers/index.js +0 -4
  269. package/helpers/index.js.map +0 -1
  270. package/index.js.map +0 -1
  271. package/operations/entry/dataLoader/types.js.map +0 -1
  272. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.d.ts +0 -18
  273. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +0 -27
  274. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js.map +0 -1
  275. package/operations/entry/elasticsearch/body.d.ts +0 -13
  276. package/operations/entry/elasticsearch/body.js +0 -135
  277. package/operations/entry/elasticsearch/body.js.map +0 -1
  278. package/operations/entry/elasticsearch/fields/createSystemField.d.ts +0 -4
  279. package/operations/entry/elasticsearch/fields/createSystemField.js +0 -10
  280. package/operations/entry/elasticsearch/fields/createSystemField.js.map +0 -1
  281. package/operations/entry/elasticsearch/fields/live.d.ts +0 -2
  282. package/operations/entry/elasticsearch/fields/live.js +0 -45
  283. package/operations/entry/elasticsearch/fields/live.js.map +0 -1
  284. package/operations/entry/elasticsearch/fields/location.d.ts +0 -2
  285. package/operations/entry/elasticsearch/fields/location.js +0 -45
  286. package/operations/entry/elasticsearch/fields/location.js.map +0 -1
  287. package/operations/entry/elasticsearch/fields/state.d.ts +0 -2
  288. package/operations/entry/elasticsearch/fields/state.js +0 -93
  289. package/operations/entry/elasticsearch/fields/state.js.map +0 -1
  290. package/operations/entry/elasticsearch/fields.d.ts +0 -10
  291. package/operations/entry/elasticsearch/fields.js +0 -274
  292. package/operations/entry/elasticsearch/fields.js.map +0 -1
  293. package/operations/entry/elasticsearch/filtering/applyFiltering.d.ts +0 -8
  294. package/operations/entry/elasticsearch/filtering/applyFiltering.js +0 -52
  295. package/operations/entry/elasticsearch/filtering/applyFiltering.js.map +0 -1
  296. package/operations/entry/elasticsearch/filtering/exec.d.ts +0 -18
  297. package/operations/entry/elasticsearch/filtering/exec.js +0 -178
  298. package/operations/entry/elasticsearch/filtering/exec.js.map +0 -1
  299. package/operations/entry/elasticsearch/filtering/index.d.ts +0 -1
  300. package/operations/entry/elasticsearch/filtering/index.js +0 -3
  301. package/operations/entry/elasticsearch/filtering/index.js.map +0 -1
  302. package/operations/entry/elasticsearch/filtering/path.d.ts +0 -16
  303. package/operations/entry/elasticsearch/filtering/path.js +0 -38
  304. package/operations/entry/elasticsearch/filtering/path.js.map +0 -1
  305. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.d.ts +0 -2
  306. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js +0 -22
  307. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js.map +0 -1
  308. package/operations/entry/elasticsearch/filtering/plugins/index.d.ts +0 -1
  309. package/operations/entry/elasticsearch/filtering/plugins/index.js +0 -8
  310. package/operations/entry/elasticsearch/filtering/plugins/index.js.map +0 -1
  311. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.d.ts +0 -2
  312. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js +0 -61
  313. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js.map +0 -1
  314. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.d.ts +0 -2
  315. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js +0 -49
  316. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js.map +0 -1
  317. package/operations/entry/elasticsearch/filtering/populated.d.ts +0 -2
  318. package/operations/entry/elasticsearch/filtering/populated.js +0 -18
  319. package/operations/entry/elasticsearch/filtering/populated.js.map +0 -1
  320. package/operations/entry/elasticsearch/filtering/values.d.ts +0 -2
  321. package/operations/entry/elasticsearch/filtering/values.js +0 -16
  322. package/operations/entry/elasticsearch/filtering/values.js.map +0 -1
  323. package/operations/entry/elasticsearch/fullTextSearch.d.ts +0 -13
  324. package/operations/entry/elasticsearch/fullTextSearch.js +0 -92
  325. package/operations/entry/elasticsearch/fullTextSearch.js.map +0 -1
  326. package/operations/entry/elasticsearch/fullTextSearchFields.d.ts +0 -8
  327. package/operations/entry/elasticsearch/fullTextSearchFields.js +0 -20
  328. package/operations/entry/elasticsearch/fullTextSearchFields.js.map +0 -1
  329. package/operations/entry/elasticsearch/initialQuery.d.ts +0 -17
  330. package/operations/entry/elasticsearch/initialQuery.js +0 -88
  331. package/operations/entry/elasticsearch/initialQuery.js.map +0 -1
  332. package/operations/entry/elasticsearch/keyword.d.ts +0 -2
  333. package/operations/entry/elasticsearch/keyword.js +0 -31
  334. package/operations/entry/elasticsearch/keyword.js.map +0 -1
  335. package/operations/entry/elasticsearch/plugins/bodyModifier.d.ts +0 -9
  336. package/operations/entry/elasticsearch/plugins/bodyModifier.js +0 -11
  337. package/operations/entry/elasticsearch/plugins/bodyModifier.js.map +0 -1
  338. package/operations/entry/elasticsearch/plugins/operator.d.ts +0 -7
  339. package/operations/entry/elasticsearch/plugins/operator.js +0 -24
  340. package/operations/entry/elasticsearch/plugins/operator.js.map +0 -1
  341. package/operations/entry/elasticsearch/plugins/queryModifier.d.ts +0 -9
  342. package/operations/entry/elasticsearch/plugins/queryModifier.js +0 -11
  343. package/operations/entry/elasticsearch/plugins/queryModifier.js.map +0 -1
  344. package/operations/entry/elasticsearch/plugins/search.d.ts +0 -7
  345. package/operations/entry/elasticsearch/plugins/search.js +0 -18
  346. package/operations/entry/elasticsearch/plugins/search.js.map +0 -1
  347. package/operations/entry/elasticsearch/plugins/sortModifier.d.ts +0 -9
  348. package/operations/entry/elasticsearch/plugins/sortModifier.js +0 -11
  349. package/operations/entry/elasticsearch/plugins/sortModifier.js.map +0 -1
  350. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.d.ts +0 -2
  351. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js +0 -6
  352. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js.map +0 -1
  353. package/operations/entry/elasticsearch/sort.d.ts +0 -12
  354. package/operations/entry/elasticsearch/sort.js +0 -107
  355. package/operations/entry/elasticsearch/sort.js.map +0 -1
  356. package/operations/entry/elasticsearch/transformValueForSearch.d.ts +0 -16
  357. package/operations/entry/elasticsearch/transformValueForSearch.js +0 -27
  358. package/operations/entry/elasticsearch/transformValueForSearch.js.map +0 -1
  359. package/operations/entry/elasticsearch/types.d.ts +0 -41
  360. package/operations/entry/elasticsearch/types.js +0 -3
  361. package/operations/entry/elasticsearch/types.js.map +0 -1
  362. package/operations/entry/index.d.ts +0 -12
  363. package/operations/entry/index.js +0 -1699
  364. package/operations/entry/index.js.map +0 -1
  365. package/operations/entry/transformations/transformEntryToIndex.d.ts +0 -10
  366. package/operations/entry/transformations/transformEntryToIndex.js +0 -24
  367. package/operations/entry/transformations/transformEntryToIndex.js.map +0 -1
  368. package/operations/group/index.d.ts +0 -9
  369. package/operations/group/index.js +0 -145
  370. package/operations/group/index.js.map +0 -1
  371. package/operations/model/index.d.ts +0 -8
  372. package/operations/model/index.js +0 -164
  373. package/operations/model/index.js.map +0 -1
  374. package/plugins/CmsElasticsearchModelFieldPlugin.d.ts +0 -69
  375. package/plugins/CmsElasticsearchModelFieldPlugin.js +0 -46
  376. package/plugins/CmsElasticsearchModelFieldPlugin.js.map +0 -1
  377. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.d.ts +0 -22
  378. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js +0 -13
  379. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js.map +0 -1
  380. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.d.ts +0 -24
  381. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js +0 -19
  382. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js.map +0 -1
  383. package/plugins/CmsEntryElasticsearchIndexPlugin.d.ts +0 -4
  384. package/plugins/CmsEntryElasticsearchIndexPlugin.js +0 -6
  385. package/plugins/CmsEntryElasticsearchIndexPlugin.js.map +0 -1
  386. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.d.ts +0 -32
  387. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js +0 -32
  388. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js.map +0 -1
  389. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.d.ts +0 -19
  390. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js +0 -13
  391. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js.map +0 -1
  392. package/plugins/CmsEntryElasticsearchSortModifierPlugin.d.ts +0 -19
  393. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js +0 -13
  394. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js.map +0 -1
  395. package/plugins/CmsEntryElasticsearchValuesModifier.d.ts +0 -33
  396. package/plugins/CmsEntryElasticsearchValuesModifier.js +0 -42
  397. package/plugins/CmsEntryElasticsearchValuesModifier.js.map +0 -1
  398. package/plugins/CmsEntryFilterPlugin.d.ts +0 -49
  399. package/plugins/CmsEntryFilterPlugin.js +0 -15
  400. package/plugins/CmsEntryFilterPlugin.js.map +0 -1
  401. package/plugins/index.d.ts +0 -8
  402. package/plugins/index.js +0 -10
  403. package/plugins/index.js.map +0 -1
  404. package/tasks/createIndexTaskPlugin.d.ts +0 -2
  405. package/tasks/createIndexTaskPlugin.js +0 -41
  406. package/tasks/createIndexTaskPlugin.js.map +0 -1
  407. package/values/NoValueContainer.d.ts +0 -5
  408. package/values/NoValueContainer.js +0 -13
  409. package/values/NoValueContainer.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ import type { IDataLoadersHandler } from "../types.js";
2
+ export declare const CmsDdbEsDataLoaders: import("@webiny/di").Abstraction<IDataLoadersHandler>;
3
+ export declare namespace CmsDdbEsDataLoaders {
4
+ type Interface = IDataLoadersHandler;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsDataLoaders = createAbstraction("Cms/DdbEs/DataLoaders");
3
+ export { CmsDdbEsDataLoaders };
4
+
5
+ //# sourceMappingURL=CmsDdbEsDataLoaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsDataLoaders.js","sources":["../../src/abstractions/CmsDdbEsDataLoaders.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IDataLoadersHandler } from \"~/types.js\";\n\nexport const CmsDdbEsDataLoaders = createAbstraction<IDataLoadersHandler>(\"Cms/DdbEs/DataLoaders\");\n\nexport namespace CmsDdbEsDataLoaders {\n export type Interface = IDataLoadersHandler;\n}\n"],"names":["CmsDdbEsDataLoaders","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAuC"}
@@ -0,0 +1,5 @@
1
+ import type { IOpenSearchEntity } from "@webiny/api-opensearch-aws";
2
+ export declare const CmsDdbEsEntriesEsEntity: import("@webiny/di").Abstraction<IOpenSearchEntity>;
3
+ export declare namespace CmsDdbEsEntriesEsEntity {
4
+ type Interface = IOpenSearchEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsEntriesEsEntity = createAbstraction("Cms/DdbEs/EntriesEsEntity");
3
+ export { CmsDdbEsEntriesEsEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsEntriesEsEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsEntriesEsEntity.js","sources":["../../src/abstractions/CmsDdbEsEntriesEsEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IOpenSearchEntity } from \"@webiny/api-opensearch-aws\";\n\nexport const CmsDdbEsEntriesEsEntity = createAbstraction<IOpenSearchEntity>(\n \"Cms/DdbEs/EntriesEsEntity\"\n);\n\nexport namespace CmsDdbEsEntriesEsEntity {\n export type Interface = IOpenSearchEntity;\n}\n"],"names":["CmsDdbEsEntriesEsEntity","createAbstraction"],"mappings":";AAGO,MAAMA,0BAA0BC,kBACnC"}
@@ -0,0 +1,5 @@
1
+ import type { IEntryEntity } from "../definitions/types.js";
2
+ export declare const CmsDdbEsEntryEntity: import("@webiny/di").Abstraction<IEntryEntity>;
3
+ export declare namespace CmsDdbEsEntryEntity {
4
+ type Interface = IEntryEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsEntryEntity = createAbstraction("Cms/DdbEs/EntryEntity");
3
+ export { CmsDdbEsEntryEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsEntryEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsEntryEntity.js","sources":["../../src/abstractions/CmsDdbEsEntryEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IEntryEntity } from \"~/definitions/types.js\";\n\nexport const CmsDdbEsEntryEntity = createAbstraction<IEntryEntity>(\"Cms/DdbEs/EntryEntity\");\n\nexport namespace CmsDdbEsEntryEntity {\n export type Interface = IEntryEntity;\n}\n"],"names":["CmsDdbEsEntryEntity","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAgC"}
@@ -0,0 +1,5 @@
1
+ import type { IGroupEntity } from "../definitions/types.js";
2
+ export declare const CmsDdbEsGroupEntity: import("@webiny/di").Abstraction<IGroupEntity>;
3
+ export declare namespace CmsDdbEsGroupEntity {
4
+ type Interface = IGroupEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsGroupEntity = createAbstraction("Cms/DdbEs/GroupEntity");
3
+ export { CmsDdbEsGroupEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsGroupEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsGroupEntity.js","sources":["../../src/abstractions/CmsDdbEsGroupEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IGroupEntity } from \"~/definitions/types.js\";\n\nexport const CmsDdbEsGroupEntity = createAbstraction<IGroupEntity>(\"Cms/DdbEs/GroupEntity\");\n\nexport namespace CmsDdbEsGroupEntity {\n export type Interface = IGroupEntity;\n}\n"],"names":["CmsDdbEsGroupEntity","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAgC"}
@@ -0,0 +1,5 @@
1
+ import type { IModelEntity } from "../definitions/types.js";
2
+ export declare const CmsDdbEsModelEntity: import("@webiny/di").Abstraction<IModelEntity>;
3
+ export declare namespace CmsDdbEsModelEntity {
4
+ type Interface = IModelEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsModelEntity = createAbstraction("Cms/DdbEs/ModelEntity");
3
+ export { CmsDdbEsModelEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsModelEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsModelEntity.js","sources":["../../src/abstractions/CmsDdbEsModelEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IModelEntity } from \"~/definitions/types.js\";\n\nexport const CmsDdbEsModelEntity = createAbstraction<IModelEntity>(\"Cms/DdbEs/ModelEntity\");\n\nexport namespace CmsDdbEsModelEntity {\n export type Interface = IModelEntity;\n}\n"],"names":["CmsDdbEsModelEntity","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAgC"}
@@ -0,0 +1,5 @@
1
+ import type { ITable } from "@webiny/db-dynamodb";
2
+ export declare const CmsDdbEsOsTable: import("@webiny/di").Abstraction<ITable<string, string, string>>;
3
+ export declare namespace CmsDdbEsOsTable {
4
+ type Interface = ITable;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsOsTable = createAbstraction("Cms/DdbEs/OsTable");
3
+ export { CmsDdbEsOsTable };
4
+
5
+ //# sourceMappingURL=CmsDdbEsOsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsOsTable.js","sources":["../../src/abstractions/CmsDdbEsOsTable.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { ITable } from \"@webiny/db-dynamodb\";\n\nexport const CmsDdbEsOsTable = createAbstraction<ITable>(\"Cms/DdbEs/OsTable\");\n\nexport namespace CmsDdbEsOsTable {\n export type Interface = ITable;\n}\n"],"names":["CmsDdbEsOsTable","createAbstraction"],"mappings":";AAGO,MAAMA,kBAAkBC,kBAA0B"}
@@ -0,0 +1,5 @@
1
+ import type { ITable } from "@webiny/db-dynamodb";
2
+ export declare const CmsDdbEsTable: import("@webiny/di").Abstraction<ITable<string, string, string>>;
3
+ export declare namespace CmsDdbEsTable {
4
+ type Interface = ITable;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsTable = createAbstraction("Cms/DdbEs/Table");
3
+ export { CmsDdbEsTable };
4
+
5
+ //# sourceMappingURL=CmsDdbEsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsTable.js","sources":["../../src/abstractions/CmsDdbEsTable.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { ITable } from \"@webiny/db-dynamodb\";\n\nexport const CmsDdbEsTable = createAbstraction<ITable>(\"Cms/DdbEs/Table\");\n\nexport namespace CmsDdbEsTable {\n export type Interface = ITable;\n}\n"],"names":["CmsDdbEsTable","createAbstraction"],"mappings":";AAGO,MAAMA,gBAAgBC,kBAA0B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Claims the `cms.` debug namespace prefix.
3
+ *
4
+ * The module specifier has to be exactly this one: augmenting a relative path would silently do
5
+ * nothing.
6
+ */
7
+ declare module "@webiny/api-core/features/debugger/abstractions.js" {
8
+ interface DebugNamespaces {
9
+ cms: `cms.${string}`;
10
+ }
11
+ }
12
+ export {};
File without changes
@@ -1,13 +1,11 @@
1
1
  import { createStandardEntity } from "@webiny/db-dynamodb";
2
- export const createEntryEntity = params => {
3
- const {
4
- table,
5
- entityName
6
- } = params;
7
- return createStandardEntity({
8
- name: entityName,
9
- table: table.table
10
- });
2
+ const createEntryEntity = (params)=>{
3
+ const { table, entityName } = params;
4
+ return createStandardEntity({
5
+ name: entityName,
6
+ table: table.table
7
+ });
11
8
  };
9
+ export { createEntryEntity };
12
10
 
13
11
  //# sourceMappingURL=entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createStandardEntity","createEntryEntity","params","table","entityName","name"],"sources":["entry.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IEntryEntity, IEntryEntityAttributesData } from \"~/definitions/types.js\";\n\nexport interface CreateEntryEntityParams {\n table: ITable;\n entityName: string;\n}\nexport const createEntryEntity = (params: CreateEntryEntityParams): IEntryEntity => {\n const { table, entityName } = params;\n return createStandardEntity<IEntryEntityAttributesData>({\n name: entityName,\n table: table.table\n });\n};\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAqB,qBAAqB;AAOvE,OAAO,MAAMC,iBAAiB,GAAIC,MAA+B,IAAmB;EAChF,MAAM;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGF,MAAM;EACpC,OAAOF,oBAAoB,CAA6B;IACpDK,IAAI,EAAED,UAAU;IAChBD,KAAK,EAAEA,KAAK,CAACA;EACjB,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"definitions/entry.js","sources":["../../src/definitions/entry.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IEntryEntity, IEntryEntityAttributesData } from \"~/definitions/types.js\";\n\nexport interface CreateEntryEntityParams {\n table: ITable;\n entityName: string;\n}\nexport const createEntryEntity = (params: CreateEntryEntityParams): IEntryEntity => {\n const { table, entityName } = params;\n return createStandardEntity<IEntryEntityAttributesData>({\n name: entityName,\n table: table.table\n });\n};\n"],"names":["createEntryEntity","params","table","entityName","createStandardEntity"],"mappings":";AAOO,MAAMA,oBAAoB,CAACC;IAC9B,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAE,GAAGF;IAC9B,OAAOG,qBAAiD;QACpD,MAAMD;QACN,OAAOD,MAAM,KAAK;IACtB;AACJ"}
@@ -1,13 +1,11 @@
1
1
  import { createStandardEntity } from "@webiny/db-dynamodb";
2
- export const createGroupEntity = params => {
3
- const {
4
- table,
5
- entityName
6
- } = params;
7
- return createStandardEntity({
8
- table: table.table,
9
- name: entityName
10
- });
2
+ const createGroupEntity = (params)=>{
3
+ const { table, entityName } = params;
4
+ return createStandardEntity({
5
+ table: table.table,
6
+ name: entityName
7
+ });
11
8
  };
9
+ export { createGroupEntity };
12
10
 
13
11
  //# sourceMappingURL=group.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createStandardEntity","createGroupEntity","params","table","entityName","name"],"sources":["group.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IGroupEntity } from \"~/definitions/types.js\";\nimport type { CmsGroup } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\nexport const createGroupEntity = (params: Params): IGroupEntity => {\n const { table, entityName } = params;\n return createStandardEntity<CmsGroup>({\n table: table.table,\n name: entityName\n });\n};\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAqB,qBAAqB;AAQvE,OAAO,MAAMC,iBAAiB,GAAIC,MAAc,IAAmB;EAC/D,MAAM;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGF,MAAM;EACpC,OAAOF,oBAAoB,CAAW;IAClCG,KAAK,EAAEA,KAAK,CAACA,KAAK;IAClBE,IAAI,EAAED;EACV,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"definitions/group.js","sources":["../../src/definitions/group.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IGroupEntity } from \"~/definitions/types.js\";\nimport type { CmsGroup } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\nexport const createGroupEntity = (params: Params): IGroupEntity => {\n const { table, entityName } = params;\n return createStandardEntity<CmsGroup>({\n table: table.table,\n name: entityName\n });\n};\n"],"names":["createGroupEntity","params","table","entityName","createStandardEntity"],"mappings":";AAQO,MAAMA,oBAAoB,CAACC;IAC9B,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAE,GAAGF;IAC9B,OAAOG,qBAA+B;QAClC,OAAOF,MAAM,KAAK;QAClB,MAAMC;IACV;AACJ"}
@@ -1,13 +1,11 @@
1
1
  import { createStandardEntity } from "@webiny/db-dynamodb";
2
- export const createModelEntity = params => {
3
- const {
4
- table,
5
- entityName
6
- } = params;
7
- return createStandardEntity({
8
- table: table.table,
9
- name: entityName
10
- });
2
+ const createModelEntity = (params)=>{
3
+ const { table, entityName } = params;
4
+ return createStandardEntity({
5
+ table: table.table,
6
+ name: entityName
7
+ });
11
8
  };
9
+ export { createModelEntity };
12
10
 
13
11
  //# sourceMappingURL=model.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createStandardEntity","createModelEntity","params","table","entityName","name"],"sources":["model.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IModelEntity } from \"~/definitions/types.js\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\n\nexport const createModelEntity = (params: Params): IModelEntity => {\n const { table, entityName } = params;\n return createStandardEntity<CmsModel>({\n table: table.table,\n name: entityName\n });\n};\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAqB,qBAAqB;AASvE,OAAO,MAAMC,iBAAiB,GAAIC,MAAc,IAAmB;EAC/D,MAAM;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGF,MAAM;EACpC,OAAOF,oBAAoB,CAAW;IAClCG,KAAK,EAAEA,KAAK,CAACA,KAAK;IAClBE,IAAI,EAAED;EACV,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"definitions/model.js","sources":["../../src/definitions/model.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IModelEntity } from \"~/definitions/types.js\";\nimport type { StorageCmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\n\nexport const createModelEntity = (params: Params): IModelEntity => {\n const { table, entityName } = params;\n return createStandardEntity<StorageCmsModel>({\n table: table.table,\n name: entityName\n });\n};\n"],"names":["createModelEntity","params","table","entityName","createStandardEntity"],"mappings":";AASO,MAAMA,oBAAoB,CAACC;IAC9B,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAE,GAAGF;IAC9B,OAAOG,qBAAsC;QACzC,OAAOF,MAAM,KAAK;QAClB,MAAMC;IACV;AACJ"}
@@ -1,6 +1,6 @@
1
1
  import type { IEntity, IStandardEntityAttributes } from "@webiny/db-dynamodb";
2
2
  import type { GenericRecord } from "@webiny/api/types.js";
3
- import type { CmsEntryStatus, CmsGroup, CmsIdentity, CmsModel, ICmsEntryLive, ICmsEntryLocation, ICmsEntrySystem } from "@webiny/api-headless-cms/types/index.js";
3
+ import type { CmsEntryStatus, CmsGroup, CmsIdentity, ICmsEntryLive, ICmsEntryLocation, ICmsEntrySystem, StorageCmsModel } from "@webiny/api-headless-cms/types/index.js";
4
4
  export interface IEntryEntityAttributesData {
5
5
  tenant: string;
6
6
  entryId: string;
@@ -53,8 +53,13 @@ export interface IEntryEntityAttributesData {
53
53
  meta?: GenericRecord;
54
54
  system?: ICmsEntrySystem;
55
55
  live: ICmsEntryLive | null;
56
+ revisionDescription: string | undefined;
57
+ /**
58
+ * A timestamp of when the entry should be automatically deleted from the database.
59
+ */
60
+ expiresAt: number | null;
56
61
  }
57
62
  export type IEntryEntityAttributes = IStandardEntityAttributes<IEntryEntityAttributesData>;
58
- export type IModelEntity = IEntity<IStandardEntityAttributes<CmsModel>>;
63
+ export type IModelEntity = IEntity<IStandardEntityAttributes<StorageCmsModel>>;
59
64
  export type IGroupEntity = IEntity<IStandardEntityAttributes<CmsGroup>>;
60
65
  export type IEntryEntity = IEntity<IEntryEntityAttributes>;
@@ -1,3 +0,0 @@
1
- export {};
2
-
3
- //# sourceMappingURL=types.js.map
package/feature.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * DynamoDB+OpenSearch CMS storage. Register it once, in the root container. Tables and entities are
3
+ * built once per process; the storage operations are transient, and per-request state (the entry
4
+ * DataLoaders, the filter registries, the OpenSearch field indexes and model index cache) is
5
+ * container scoped, so each request (child) container gets its own.
6
+ */
7
+ export declare const HeadlessCmsDdbEsFeature: {
8
+ name: string;
9
+ register(container: import("@webiny/di").Container): void;
10
+ };
package/feature.js ADDED
@@ -0,0 +1,69 @@
1
+ import { DynamoDBClient, createTable } from "@webiny/db-dynamodb";
2
+ import { ENTITIES } from "./types.js";
3
+ import { createFeature } from "@webiny/feature/api/index.js";
4
+ import { createGroupEntity } from "./definitions/group.js";
5
+ import { createModelEntity } from "./definitions/model.js";
6
+ import { createEntryEntity } from "./definitions/entry.js";
7
+ import { createOpenSearchEntity, createOpenSearchTable } from "@webiny/api-opensearch-aws";
8
+ import { FilterUtilFeature } from "@webiny/db-dynamodb/feature/FilterUtil/feature.js";
9
+ import { CmsDdbEsTable } from "./abstractions/CmsDdbEsTable.js";
10
+ import { CmsDdbEsOsTable } from "./abstractions/CmsDdbEsOsTable.js";
11
+ import { CmsDdbEsGroupEntity } from "./abstractions/CmsDdbEsGroupEntity.js";
12
+ import { CmsDdbEsModelEntity } from "./abstractions/CmsDdbEsModelEntity.js";
13
+ import { CmsDdbEsEntryEntity } from "./abstractions/CmsDdbEsEntryEntity.js";
14
+ import { CmsDdbEsEntriesEsEntity } from "./abstractions/CmsDdbEsEntriesEsEntity.js";
15
+ import { CmsEntryOpenSearchUtilsFeature } from "@webiny/api-headless-cms-utils-os";
16
+ import { FilterRegistriesFeature } from "@webiny/api-headless-cms-storage";
17
+ import { CreateElasticsearchIndexTask } from "./tasks/CreateElasticsearchIndexTask.js";
18
+ import { CmsEntitiesDbRegistryDecorator } from "./registry/CmsEntitiesDbRegistryDecorator.js";
19
+ import { DdbEsGroupStorageOpsFeature } from "./operations/group/feature.js";
20
+ import { DdbEsModelStorageOpsFeature } from "./operations/model/feature.js";
21
+ import { DdbEsEntryStorageOpsFeature } from "./operations/entry/feature.js";
22
+ const HeadlessCmsDdbEsFeature = createFeature({
23
+ name: "cms.storageOperations.openSearch",
24
+ register: (container)=>{
25
+ FilterUtilFeature.register(container);
26
+ const db = container.resolve(DynamoDBClient);
27
+ const documentClient = db.client;
28
+ const tableInstance = createTable({
29
+ name: process.env.DB_TABLE,
30
+ documentClient
31
+ });
32
+ const tableElasticsearchInstance = createOpenSearchTable({
33
+ name: process.env.DB_TABLE_OPENSEARCH,
34
+ documentClient
35
+ });
36
+ const groupEntity = createGroupEntity({
37
+ entityName: ENTITIES.GROUPS,
38
+ table: tableInstance
39
+ });
40
+ const modelEntity = createModelEntity({
41
+ entityName: ENTITIES.MODELS,
42
+ table: tableInstance
43
+ });
44
+ const entryEntity = createEntryEntity({
45
+ entityName: ENTITIES.ENTRIES,
46
+ table: tableInstance
47
+ });
48
+ const entriesEsEntity = createOpenSearchEntity({
49
+ entityName: ENTITIES.ENTRIES_ES,
50
+ table: tableElasticsearchInstance
51
+ });
52
+ container.registerInstance(CmsDdbEsTable, tableInstance);
53
+ container.registerInstance(CmsDdbEsOsTable, tableElasticsearchInstance);
54
+ container.registerInstance(CmsDdbEsGroupEntity, groupEntity);
55
+ container.registerInstance(CmsDdbEsModelEntity, modelEntity);
56
+ container.registerInstance(CmsDdbEsEntryEntity, entryEntity);
57
+ container.registerInstance(CmsDdbEsEntriesEsEntity, entriesEsEntity);
58
+ CmsEntryOpenSearchUtilsFeature.register(container);
59
+ FilterRegistriesFeature.register(container);
60
+ container.register(CreateElasticsearchIndexTask);
61
+ container.registerDecorator(CmsEntitiesDbRegistryDecorator);
62
+ DdbEsGroupStorageOpsFeature.register(container);
63
+ DdbEsModelStorageOpsFeature.register(container);
64
+ DdbEsEntryStorageOpsFeature.register(container);
65
+ }
66
+ });
67
+ export { HeadlessCmsDdbEsFeature };
68
+
69
+ //# sourceMappingURL=feature.js.map
package/feature.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sources":["../src/feature.ts"],"sourcesContent":["import { createTable, DynamoDBClient } from \"@webiny/db-dynamodb\";\nimport { ENTITIES } from \"~/types.js\";\nimport { createFeature } from \"@webiny/feature/api/index.js\";\nimport { createGroupEntity } from \"~/definitions/group.js\";\nimport { createModelEntity } from \"~/definitions/model.js\";\nimport { createEntryEntity } from \"~/definitions/entry.js\";\nimport { createOpenSearchEntity, createOpenSearchTable } from \"@webiny/api-opensearch-aws\";\nimport { FilterUtilFeature } from \"@webiny/db-dynamodb/feature/FilterUtil/feature.js\";\nimport { CmsDdbEsTable } from \"~/abstractions/CmsDdbEsTable.js\";\nimport { CmsDdbEsOsTable } from \"~/abstractions/CmsDdbEsOsTable.js\";\nimport { CmsDdbEsGroupEntity } from \"~/abstractions/CmsDdbEsGroupEntity.js\";\nimport { CmsDdbEsModelEntity } from \"~/abstractions/CmsDdbEsModelEntity.js\";\nimport { CmsDdbEsEntryEntity } from \"~/abstractions/CmsDdbEsEntryEntity.js\";\nimport { CmsDdbEsEntriesEsEntity } from \"~/abstractions/CmsDdbEsEntriesEsEntity.js\";\nimport { CmsEntryOpenSearchUtilsFeature } from \"@webiny/api-headless-cms-utils-os\";\nimport { FilterRegistriesFeature } from \"@webiny/api-headless-cms-storage\";\nimport { CreateElasticsearchIndexTask } from \"~/tasks/CreateElasticsearchIndexTask.js\";\nimport { CmsEntitiesDbRegistryDecorator } from \"~/registry/CmsEntitiesDbRegistryDecorator.js\";\nimport { DdbEsGroupStorageOpsFeature } from \"~/operations/group/feature.js\";\nimport { DdbEsModelStorageOpsFeature } from \"~/operations/model/feature.js\";\nimport { DdbEsEntryStorageOpsFeature } from \"~/operations/entry/feature.js\";\n\n/**\n * DynamoDB+OpenSearch CMS storage. Register it once, in the root container. Tables and entities are\n * built once per process; the storage operations are transient, and per-request state (the entry\n * DataLoaders, the filter registries, the OpenSearch field indexes and model index cache) is\n * container scoped, so each request (child) container gets its own.\n */\nexport const HeadlessCmsDdbEsFeature = createFeature({\n name: \"cms.storageOperations.openSearch\",\n register: container => {\n FilterUtilFeature.register(container);\n\n const db = container.resolve(DynamoDBClient);\n const documentClient = db.client;\n\n const tableInstance = createTable({\n name: process.env.DB_TABLE as string,\n documentClient\n });\n const tableElasticsearchInstance = createOpenSearchTable({\n name: process.env.DB_TABLE_OPENSEARCH as string,\n documentClient\n });\n\n const groupEntity = createGroupEntity({\n entityName: ENTITIES.GROUPS,\n table: tableInstance\n });\n const modelEntity = createModelEntity({\n entityName: ENTITIES.MODELS,\n table: tableInstance\n });\n const entryEntity = createEntryEntity({\n entityName: ENTITIES.ENTRIES,\n table: tableInstance\n });\n const entriesEsEntity = createOpenSearchEntity({\n entityName: ENTITIES.ENTRIES_ES,\n table: tableElasticsearchInstance\n });\n\n // Register infrastructure instances (app-scoped)\n container.registerInstance(CmsDdbEsTable, tableInstance);\n container.registerInstance(CmsDdbEsOsTable, tableElasticsearchInstance);\n container.registerInstance(CmsDdbEsGroupEntity, groupEntity);\n container.registerInstance(CmsDdbEsModelEntity, modelEntity);\n container.registerInstance(CmsDdbEsEntryEntity, entryEntity);\n container.registerInstance(CmsDdbEsEntriesEsEntity, entriesEsEntity);\n\n CmsEntryOpenSearchUtilsFeature.register(container);\n FilterRegistriesFeature.register(container);\n\n container.register(CreateElasticsearchIndexTask);\n\n // Adds the CMS entities to every request's DbRegistry, for the DDB to OpenSearch sync.\n container.registerDecorator(CmsEntitiesDbRegistryDecorator);\n\n DdbEsGroupStorageOpsFeature.register(container);\n DdbEsModelStorageOpsFeature.register(container);\n DdbEsEntryStorageOpsFeature.register(container);\n }\n});\n"],"names":["HeadlessCmsDdbEsFeature","createFeature","container","FilterUtilFeature","db","DynamoDBClient","documentClient","tableInstance","createTable","process","tableElasticsearchInstance","createOpenSearchTable","groupEntity","createGroupEntity","ENTITIES","modelEntity","createModelEntity","entryEntity","createEntryEntity","entriesEsEntity","createOpenSearchEntity","CmsDdbEsTable","CmsDdbEsOsTable","CmsDdbEsGroupEntity","CmsDdbEsModelEntity","CmsDdbEsEntryEntity","CmsDdbEsEntriesEsEntity","CmsEntryOpenSearchUtilsFeature","FilterRegistriesFeature","CreateElasticsearchIndexTask","CmsEntitiesDbRegistryDecorator","DdbEsGroupStorageOpsFeature","DdbEsModelStorageOpsFeature","DdbEsEntryStorageOpsFeature"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BO,MAAMA,0BAA0BC,cAAc;IACjD,MAAM;IACN,UAAUC,CAAAA;QACNC,kBAAkB,QAAQ,CAACD;QAE3B,MAAME,KAAKF,UAAU,OAAO,CAACG;QAC7B,MAAMC,iBAAiBF,GAAG,MAAM;QAEhC,MAAMG,gBAAgBC,YAAY;YAC9B,MAAMC,QAAQ,GAAG,CAAC,QAAQ;YAC1BH;QACJ;QACA,MAAMI,6BAA6BC,sBAAsB;YACrD,MAAMF,QAAQ,GAAG,CAAC,mBAAmB;YACrCH;QACJ;QAEA,MAAMM,cAAcC,kBAAkB;YAClC,YAAYC,SAAS,MAAM;YAC3B,OAAOP;QACX;QACA,MAAMQ,cAAcC,kBAAkB;YAClC,YAAYF,SAAS,MAAM;YAC3B,OAAOP;QACX;QACA,MAAMU,cAAcC,kBAAkB;YAClC,YAAYJ,SAAS,OAAO;YAC5B,OAAOP;QACX;QACA,MAAMY,kBAAkBC,uBAAuB;YAC3C,YAAYN,SAAS,UAAU;YAC/B,OAAOJ;QACX;QAGAR,UAAU,gBAAgB,CAACmB,eAAed;QAC1CL,UAAU,gBAAgB,CAACoB,iBAAiBZ;QAC5CR,UAAU,gBAAgB,CAACqB,qBAAqBX;QAChDV,UAAU,gBAAgB,CAACsB,qBAAqBT;QAChDb,UAAU,gBAAgB,CAACuB,qBAAqBR;QAChDf,UAAU,gBAAgB,CAACwB,yBAAyBP;QAEpDQ,+BAA+B,QAAQ,CAACzB;QACxC0B,wBAAwB,QAAQ,CAAC1B;QAEjCA,UAAU,QAAQ,CAAC2B;QAGnB3B,UAAU,iBAAiB,CAAC4B;QAE5BC,4BAA4B,QAAQ,CAAC7B;QACrC8B,4BAA4B,QAAQ,CAAC9B;QACrC+B,4BAA4B,QAAQ,CAAC/B;IACzC;AACJ"}
package/index.d.ts CHANGED
@@ -1,3 +1 @@
1
- import type { StorageOperationsFactory } from "./types.js";
2
- export * from "./plugins/index.js";
3
- export declare const createStorageOperations: StorageOperationsFactory;
1
+ export { HeadlessCmsDdbEsFeature } from "./feature.js";
package/index.js CHANGED
@@ -1,190 +1 @@
1
- import dynamoDbValueFilters from "@webiny/db-dynamodb/plugins/filters/index.js";
2
- import elasticsearchPlugins from "./elasticsearch/index.js";
3
- import dynamoDbPlugins from "./dynamoDb/index.js";
4
- import { createModelsStorageOperations } from "./operations/model/index.js";
5
- import { createEntriesStorageOperations } from "./operations/entry/index.js";
6
- import { ENTITIES } from "./types.js";
7
- import { createGroupEntity } from "./definitions/group.js";
8
- import { createModelEntity } from "./definitions/model.js";
9
- import { createEntryEntity } from "./definitions/entry.js";
10
- import { createElasticsearchIndex } from "./elasticsearch/createElasticsearchIndex.js";
11
- import { PluginsContainer } from "@webiny/plugins";
12
- import { createGroupsStorageOperations } from "./operations/group/index.js";
13
- import { createElasticsearchEntity, createElasticsearchTable, ElasticsearchQueryBuilderOperatorPlugin } from "@webiny/api-elasticsearch";
14
- import { elasticsearchIndexPlugins } from "./elasticsearch/indices/index.js";
15
- import { deleteElasticsearchIndex } from "./elasticsearch/deleteElasticsearchIndex.js";
16
- import { CmsElasticsearchModelFieldPlugin, CmsEntryElasticsearchBodyModifierPlugin, CmsEntryElasticsearchFullTextSearchPlugin, CmsEntryElasticsearchIndexPlugin, CmsEntryElasticsearchQueryBuilderValueSearchPlugin, CmsEntryElasticsearchQueryModifierPlugin, CmsEntryElasticsearchSortModifierPlugin, CmsEntryElasticsearchValuesModifier } from "./plugins/index.js";
17
- import { createFilterPlugins } from "./operations/entry/elasticsearch/filtering/plugins/index.js";
18
- import { CmsEntryFilterPlugin } from "./plugins/CmsEntryFilterPlugin.js";
19
- import { StorageOperationsCmsModelPlugin, StorageTransformPlugin } from "@webiny/api-headless-cms";
20
- import { createCreateIndexTask } from "./tasks/createIndexTaskPlugin.js";
21
- import { CompressorPlugin } from "@webiny/api";
22
- import { ModelAfterCreateEventHandler } from "@webiny/api-headless-cms/features/contentModel/CreateModel/index.js";
23
- import { ModelAfterCreateFromEventHandler } from "@webiny/api-headless-cms/features/contentModel/CreateModelFrom/events.js";
24
- import { ModelAfterDeleteEventHandler } from "@webiny/api-headless-cms/features/contentModel/DeleteModel/events.js";
25
- import { createTable } from "@webiny/db-dynamodb";
26
- export * from "./plugins/index.js";
27
- export const createStorageOperations = params => {
28
- const {
29
- table,
30
- esTable,
31
- documentClient,
32
- elasticsearch,
33
- plugins: userPlugins
34
- } = params;
35
- const tableInstance = createTable({
36
- name: table || process.env.DB_TABLE,
37
- documentClient
38
- });
39
- const tableElasticsearchInstance = createElasticsearchTable({
40
- name: esTable,
41
- documentClient
42
- });
43
- const entities = {
44
- groups: createGroupEntity({
45
- entityName: ENTITIES.GROUPS,
46
- table: tableInstance
47
- }),
48
- models: createModelEntity({
49
- entityName: ENTITIES.MODELS,
50
- table: tableInstance
51
- }),
52
- entries: createEntryEntity({
53
- entityName: ENTITIES.ENTRIES,
54
- table: tableInstance
55
- }),
56
- entriesEs: createElasticsearchEntity({
57
- entityName: ENTITIES.ENTRIES_ES,
58
- table: tableElasticsearchInstance
59
- })
60
- };
61
- const plugins = new PluginsContainer([
62
- /**
63
- * DynamoDB filter plugins for the where conditions.
64
- */
65
- dynamoDbValueFilters(),
66
- /**
67
- * Field plugins for DynamoDB.
68
- */
69
- dynamoDbPlugins(),
70
- /**
71
- * Field plugins for Elasticsearch.
72
- */
73
- elasticsearchPlugins(),
74
- /**
75
- * Built-in Elasticsearch index templates.
76
- */
77
- elasticsearchIndexPlugins(),
78
- /**
79
- * Filter plugins used to apply filtering from where conditions to Elasticsearch query.
80
- */
81
- createFilterPlugins(),
82
- /**
83
- * User defined custom plugins.
84
- * They are at the end because we can then override existing plugins.
85
- */
86
- ...(userPlugins || [])]);
87
- const entries = createEntriesStorageOperations({
88
- entity: entities.entries,
89
- esEntity: entities.entriesEs,
90
- plugins,
91
- elasticsearch
92
- });
93
- return {
94
- name: "dynamodb:elasticsearch",
95
- beforeInit: async context => {
96
- context.db.registry.register({
97
- item: entities.entries,
98
- app: "cms",
99
- tags: ["regular", entities.entries.name]
100
- });
101
- context.db.registry.register({
102
- item: entities.entriesEs,
103
- app: "cms",
104
- tags: ["es", entities.entriesEs.name]
105
- });
106
- /**
107
- * Attach the elasticsearch into context if it is not already attached.
108
- */
109
- if (!context.elasticsearch) {
110
- context.elasticsearch = elasticsearch;
111
- }
112
-
113
- /**
114
- * This registers the task implementation
115
- */
116
- createCreateIndexTask(context);
117
-
118
- /**
119
- * Pass the plugins to the parent context.
120
- */
121
- context.plugins.register([dynamoDbPlugins(), elasticsearchIndexPlugins()]);
122
- /**
123
- * We need to fetch all the plugin types in the list from the main container.
124
- * This way we do not need to register plugins in the storage plugins contains.
125
- */
126
- const types = [ElasticsearchQueryBuilderOperatorPlugin.type,
127
- // Headless CMS
128
- "cms-model-field-to-graphql", CmsEntryFilterPlugin.type, CmsEntryElasticsearchBodyModifierPlugin.type, CmsEntryElasticsearchFullTextSearchPlugin.type, CmsEntryElasticsearchIndexPlugin.type, CmsEntryElasticsearchQueryBuilderValueSearchPlugin.type, CmsEntryElasticsearchQueryModifierPlugin.type, CmsEntryElasticsearchSortModifierPlugin.type, CmsElasticsearchModelFieldPlugin.type, StorageOperationsCmsModelPlugin.type, StorageTransformPlugin.type, CmsEntryElasticsearchValuesModifier.type, CompressorPlugin.type];
129
- for (const type of types) {
130
- plugins.mergeByType(context.plugins, type);
131
- }
132
- entries.dataLoaders.clearAll();
133
- },
134
- init: async context => {
135
- /**
136
- * TODO @pavel
137
- * Moved operations to AFTER create/from because at in before the model does not have modelId - to create the index.
138
- */
139
- context.container.registerFactory(ModelAfterCreateEventHandler, () => ({
140
- async handle(event) {
141
- const {
142
- model
143
- } = event.payload;
144
- await createElasticsearchIndex({
145
- client: elasticsearch,
146
- model,
147
- plugins
148
- });
149
- }
150
- }));
151
- context.container.registerFactory(ModelAfterCreateFromEventHandler, () => ({
152
- async handle(event) {
153
- const {
154
- model
155
- } = event.payload;
156
- await createElasticsearchIndex({
157
- client: elasticsearch,
158
- model,
159
- plugins
160
- });
161
- }
162
- }));
163
- context.container.registerFactory(ModelAfterDeleteEventHandler, () => ({
164
- async handle(event) {
165
- const {
166
- model
167
- } = event.payload;
168
- await deleteElasticsearchIndex({
169
- client: elasticsearch,
170
- model
171
- });
172
- }
173
- }));
174
- },
175
- getEntities: () => entities,
176
- getTable: () => tableInstance,
177
- getEsTable: () => tableElasticsearchInstance,
178
- groups: createGroupsStorageOperations({
179
- entity: entities.groups,
180
- plugins
181
- }),
182
- models: createModelsStorageOperations({
183
- entity: entities.models,
184
- elasticsearch
185
- }),
186
- entries
187
- };
188
- };
189
-
190
- //# sourceMappingURL=index.js.map
1
+ export { HeadlessCmsDdbEsFeature } from "./feature.js";
@@ -0,0 +1,24 @@
1
+ import type { CmsModel, CmsEntryValues, CmsEntryStorageOperationsCreateParams } from "@webiny/api-headless-cms/types/index.js";
2
+ import { CreateEntryStorageOperation } from "@webiny/api-headless-cms/features/shared/storageOperations/entry/CreateEntryStorageOperation.js";
3
+ import { CmsDdbEsEntryEntity } from "../../abstractions/CmsDdbEsEntryEntity.js";
4
+ import { CmsDdbEsEntriesEsEntity } from "../../abstractions/CmsDdbEsEntriesEsEntity.js";
5
+ import { CmsDdbEsDataLoaders } from "../../abstractions/CmsDdbEsDataLoaders.js";
6
+ import { CmsStorageModelProvider } from "@webiny/api-headless-cms/features/shared/abstractions.js";
7
+ import { CmsEntryOpenSearchFieldIndexRegistry, CmsEntryOpenSearchValuesModifier, CmsModelOpenSearchIndexProvider } from "@webiny/api-headless-cms-utils-os/exports/api/cms/opensearch.js";
8
+ import { CompressionHandler } from "@webiny/utils/exports/api.js";
9
+ declare class DdbEsCreateEntryImpl implements CreateEntryStorageOperation.Interface {
10
+ private entity;
11
+ private esEntity;
12
+ private dataLoaders;
13
+ private storageModelProvider;
14
+ private fieldIndexRegistry;
15
+ private compressionHandler;
16
+ private indexProvider;
17
+ private valuesModifiers;
18
+ constructor(entity: CmsDdbEsEntryEntity.Interface, esEntity: CmsDdbEsEntriesEsEntity.Interface, dataLoaders: CmsDdbEsDataLoaders.Interface, storageModelProvider: CmsStorageModelProvider.Interface, fieldIndexRegistry: CmsEntryOpenSearchFieldIndexRegistry.Interface, compressionHandler: CompressionHandler.Interface, indexProvider: CmsModelOpenSearchIndexProvider.Interface, valuesModifiers: CmsEntryOpenSearchValuesModifier.Interface[]);
19
+ execute<T extends CmsEntryValues = CmsEntryValues>(initialModel: CmsModel, params: CmsEntryStorageOperationsCreateParams<T>): Promise<import("@webiny/api-headless-cms/types/types.js").CmsStorageEntry<T>>;
20
+ }
21
+ export declare const DdbEsCreateEntry: typeof DdbEsCreateEntryImpl & {
22
+ __abstraction: import("@webiny/di").Abstraction<import("@webiny/api-headless-cms/features/shared/storageOperations/entry/CreateEntryStorageOperation.js").ICreateEntryStorageOperation>;
23
+ };
24
+ export {};