@webiny/api-headless-cms-ddb-es 0.0.0-unstable.e6f0dc8ca7 → 0.0.0-unstable.eb81deee7e

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 (429) 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/definitions/entry.js +7 -9
  23. package/definitions/entry.js.map +1 -1
  24. package/definitions/group.js +7 -9
  25. package/definitions/group.js.map +1 -1
  26. package/definitions/model.js +7 -9
  27. package/definitions/model.js.map +1 -1
  28. package/definitions/types.d.ts +4 -0
  29. package/definitions/types.js +0 -3
  30. package/feature.d.ts +9 -1
  31. package/feature.js +46 -179
  32. package/feature.js.map +1 -1
  33. package/index.d.ts +2 -1
  34. package/index.js +2 -3
  35. package/operations/entry/DdbEsCreateEntry.d.ts +24 -0
  36. package/operations/entry/DdbEsCreateEntry.js +134 -0
  37. package/operations/entry/DdbEsCreateEntry.js.map +1 -0
  38. package/operations/entry/DdbEsCreateEntryRevisionFrom.d.ts +24 -0
  39. package/operations/entry/DdbEsCreateEntryRevisionFrom.js +139 -0
  40. package/operations/entry/DdbEsCreateEntryRevisionFrom.js.map +1 -0
  41. package/operations/entry/DdbEsDeleteEntry.d.ts +18 -0
  42. package/operations/entry/DdbEsDeleteEntry.js +79 -0
  43. package/operations/entry/DdbEsDeleteEntry.js.map +1 -0
  44. package/operations/entry/DdbEsDeleteEntryRevision.d.ts +24 -0
  45. package/operations/entry/DdbEsDeleteEntryRevision.js +136 -0
  46. package/operations/entry/DdbEsDeleteEntryRevision.js.map +1 -0
  47. package/operations/entry/DdbEsDeleteMultipleEntries.d.ts +18 -0
  48. package/operations/entry/DdbEsDeleteMultipleEntries.js +80 -0
  49. package/operations/entry/DdbEsDeleteMultipleEntries.js.map +1 -0
  50. package/operations/entry/DdbEsGetEntriesByIds.d.ts +14 -0
  51. package/operations/entry/DdbEsGetEntriesByIds.js +31 -0
  52. package/operations/entry/DdbEsGetEntriesByIds.js.map +1 -0
  53. package/operations/entry/DdbEsGetEntry.d.ts +14 -0
  54. package/operations/entry/DdbEsGetEntry.js +27 -0
  55. package/operations/entry/DdbEsGetEntry.js.map +1 -0
  56. package/operations/entry/DdbEsGetLatestEntriesByIds.d.ts +14 -0
  57. package/operations/entry/DdbEsGetLatestEntriesByIds.js +31 -0
  58. package/operations/entry/DdbEsGetLatestEntriesByIds.js.map +1 -0
  59. package/operations/entry/DdbEsGetLatestRevisionByEntryId.d.ts +14 -0
  60. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js +34 -0
  61. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js.map +1 -0
  62. package/operations/entry/DdbEsGetPreviousRevision.d.ts +14 -0
  63. package/operations/entry/DdbEsGetPreviousRevision.js +56 -0
  64. package/operations/entry/DdbEsGetPreviousRevision.js.map +1 -0
  65. package/operations/entry/DdbEsGetPublishedEntriesByIds.d.ts +14 -0
  66. package/operations/entry/DdbEsGetPublishedEntriesByIds.js +31 -0
  67. package/operations/entry/DdbEsGetPublishedEntriesByIds.js.map +1 -0
  68. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.d.ts +14 -0
  69. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js +34 -0
  70. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js.map +1 -0
  71. package/operations/entry/DdbEsGetRevisionById.d.ts +14 -0
  72. package/operations/entry/DdbEsGetRevisionById.js +34 -0
  73. package/operations/entry/DdbEsGetRevisionById.js.map +1 -0
  74. package/operations/entry/DdbEsGetRevisions.d.ts +14 -0
  75. package/operations/entry/DdbEsGetRevisions.js +33 -0
  76. package/operations/entry/DdbEsGetRevisions.js.map +1 -0
  77. package/operations/entry/DdbEsGetUniqueFieldValues.d.ts +18 -0
  78. package/operations/entry/DdbEsGetUniqueFieldValues.js +76 -0
  79. package/operations/entry/DdbEsGetUniqueFieldValues.js.map +1 -0
  80. package/operations/entry/DdbEsListEntries.d.ts +25 -0
  81. package/operations/entry/DdbEsListEntries.js +91 -0
  82. package/operations/entry/DdbEsListEntries.js.map +1 -0
  83. package/operations/entry/DdbEsMoveEntry.d.ts +20 -0
  84. package/operations/entry/DdbEsMoveEntry.js +113 -0
  85. package/operations/entry/DdbEsMoveEntry.js.map +1 -0
  86. package/operations/entry/DdbEsMoveToBin.d.ts +23 -0
  87. package/operations/entry/DdbEsMoveToBin.js +137 -0
  88. package/operations/entry/DdbEsMoveToBin.js.map +1 -0
  89. package/operations/entry/DdbEsPublishEntry.d.ts +24 -0
  90. package/operations/entry/DdbEsPublishEntry.js +231 -0
  91. package/operations/entry/DdbEsPublishEntry.js.map +1 -0
  92. package/operations/entry/DdbEsRestoreFromBin.d.ts +23 -0
  93. package/operations/entry/DdbEsRestoreFromBin.js +137 -0
  94. package/operations/entry/DdbEsRestoreFromBin.js.map +1 -0
  95. package/operations/entry/DdbEsUnpublishEntry.d.ts +24 -0
  96. package/operations/entry/DdbEsUnpublishEntry.js +127 -0
  97. package/operations/entry/DdbEsUnpublishEntry.js.map +1 -0
  98. package/operations/entry/DdbEsUpdateEntry.d.ts +24 -0
  99. package/operations/entry/DdbEsUpdateEntry.js +175 -0
  100. package/operations/entry/DdbEsUpdateEntry.js.map +1 -0
  101. package/operations/entry/dataLoader/DataLoaderCache.js +22 -26
  102. package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -1
  103. package/operations/entry/dataLoader/constants.js +2 -1
  104. package/operations/entry/dataLoader/constants.js.map +1 -1
  105. package/operations/entry/dataLoader/createBatchScheduleFn.js +6 -15
  106. package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -1
  107. package/operations/entry/dataLoader/getAllEntryRevisions.js +18 -29
  108. package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -1
  109. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +27 -37
  110. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -1
  111. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +27 -37
  112. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -1
  113. package/operations/entry/dataLoader/getRevisionById.js +32 -46
  114. package/operations/entry/dataLoader/getRevisionById.js.map +1 -1
  115. package/operations/entry/dataLoader/index.js +8 -9
  116. package/operations/entry/dataLoader/index.js.map +1 -1
  117. package/operations/entry/dataLoader/types.js +0 -3
  118. package/operations/entry/dataLoaders.d.ts +5 -5
  119. package/operations/entry/dataLoaders.js +89 -99
  120. package/operations/entry/dataLoaders.js.map +1 -1
  121. package/{features/CmsEntryOpenSearchIndex → operations/entry}/feature.d.ts +1 -1
  122. package/operations/entry/feature.js +53 -0
  123. package/operations/entry/feature.js.map +1 -0
  124. package/operations/entry/keys.js +43 -63
  125. package/operations/entry/keys.js.map +1 -1
  126. package/operations/entry/recordType.js +4 -9
  127. package/operations/entry/recordType.js.map +1 -1
  128. package/operations/entry/storageEntryUtils.d.ts +7 -0
  129. package/operations/entry/storageEntryUtils.js +14 -0
  130. package/operations/entry/storageEntryUtils.js.map +1 -0
  131. package/operations/entry/transformations/convertEntryKeys.js +21 -26
  132. package/operations/entry/transformations/convertEntryKeys.js.map +1 -1
  133. package/operations/entry/transformations/index.d.ts +2 -5
  134. package/operations/entry/transformations/index.js +85 -115
  135. package/operations/entry/transformations/index.js.map +1 -1
  136. package/operations/entry/transformations/modifyEntryValues.d.ts +3 -3
  137. package/operations/entry/transformations/modifyEntryValues.js +12 -17
  138. package/operations/entry/transformations/modifyEntryValues.js.map +1 -1
  139. package/operations/entry/transformations/transformEntryKeys.js +13 -16
  140. package/operations/entry/transformations/transformEntryKeys.js.map +1 -1
  141. package/operations/group/DdbEsCreateGroup.d.ts +12 -0
  142. package/operations/group/DdbEsCreateGroup.js +35 -0
  143. package/operations/group/DdbEsCreateGroup.js.map +1 -0
  144. package/operations/group/DdbEsDeleteGroup.d.ts +12 -0
  145. package/operations/group/DdbEsDeleteGroup.js +31 -0
  146. package/operations/group/DdbEsDeleteGroup.js.map +1 -0
  147. package/operations/group/DdbEsGetGroup.d.ts +12 -0
  148. package/operations/group/DdbEsGetGroup.js +31 -0
  149. package/operations/group/DdbEsGetGroup.js.map +1 -0
  150. package/operations/group/DdbEsListGroups.d.ts +14 -0
  151. package/operations/group/DdbEsListGroups.js +52 -0
  152. package/operations/group/DdbEsListGroups.js.map +1 -0
  153. package/operations/group/DdbEsUpdateGroup.d.ts +12 -0
  154. package/operations/group/DdbEsUpdateGroup.js +35 -0
  155. package/operations/group/DdbEsUpdateGroup.js.map +1 -0
  156. package/{features/CmsEntryOpenSearchFilter → operations/group}/feature.d.ts +1 -1
  157. package/operations/group/feature.js +19 -0
  158. package/operations/group/feature.js.map +1 -0
  159. package/operations/group/keys.d.ts +15 -0
  160. package/operations/group/keys.js +17 -0
  161. package/operations/group/keys.js.map +1 -0
  162. package/operations/model/DdbEsCreateModel.d.ts +16 -0
  163. package/operations/model/DdbEsCreateModel.js +56 -0
  164. package/operations/model/DdbEsCreateModel.js.map +1 -0
  165. package/operations/model/DdbEsDeleteModel.d.ts +12 -0
  166. package/operations/model/DdbEsDeleteModel.js +31 -0
  167. package/operations/model/DdbEsDeleteModel.js.map +1 -0
  168. package/operations/model/DdbEsGetModel.d.ts +12 -0
  169. package/operations/model/DdbEsGetModel.js +30 -0
  170. package/operations/model/DdbEsGetModel.js.map +1 -0
  171. package/operations/model/DdbEsListModels.d.ts +12 -0
  172. package/operations/model/DdbEsListModels.js +36 -0
  173. package/operations/model/DdbEsListModels.js.map +1 -0
  174. package/operations/model/DdbEsUpdateModel.d.ts +12 -0
  175. package/operations/model/DdbEsUpdateModel.js +36 -0
  176. package/operations/model/DdbEsUpdateModel.js.map +1 -0
  177. package/{features/CmsEntryOpenSearchFieldIndex → operations/model}/feature.d.ts +1 -1
  178. package/operations/model/feature.js +19 -0
  179. package/operations/model/feature.js.map +1 -0
  180. package/operations/model/keys.d.ts +15 -0
  181. package/operations/model/keys.js +17 -0
  182. package/operations/model/keys.js.map +1 -0
  183. package/package.json +33 -27
  184. package/requestFeature.d.ts +20 -0
  185. package/requestFeature.js +54 -0
  186. package/requestFeature.js.map +1 -0
  187. package/tasks/CreateElasticsearchIndexTask.d.ts +13 -0
  188. package/tasks/CreateElasticsearchIndexTask.js +40 -0
  189. package/tasks/CreateElasticsearchIndexTask.js.map +1 -0
  190. package/types.d.ts +11 -50
  191. package/types.js +7 -13
  192. package/types.js.map +1 -1
  193. package/configurations.d.ts +0 -19
  194. package/configurations.js +0 -39
  195. package/configurations.js.map +0 -1
  196. package/definitions/types.js.map +0 -1
  197. package/elasticsearch/createElasticsearchIndex.d.ts +0 -9
  198. package/elasticsearch/createElasticsearchIndex.js +0 -74
  199. package/elasticsearch/createElasticsearchIndex.js.map +0 -1
  200. package/elasticsearch/deleteElasticsearchIndex.d.ts +0 -8
  201. package/elasticsearch/deleteElasticsearchIndex.js +0 -31
  202. package/elasticsearch/deleteElasticsearchIndex.js.map +0 -1
  203. package/exports/api/cms/opensearch.d.ts +0 -9
  204. package/exports/api/cms/opensearch.js +0 -11
  205. package/exports/api/cms/opensearch.js.map +0 -1
  206. package/features/CmsEntryOpenSearchBodyModifier/abstractions.d.ts +0 -16
  207. package/features/CmsEntryOpenSearchBodyModifier/abstractions.js +0 -4
  208. package/features/CmsEntryOpenSearchBodyModifier/abstractions.js.map +0 -1
  209. package/features/CmsEntryOpenSearchBodyModifier/index.d.ts +0 -1
  210. package/features/CmsEntryOpenSearchBodyModifier/index.js +0 -3
  211. package/features/CmsEntryOpenSearchBodyModifier/index.js.map +0 -1
  212. package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.d.ts +0 -13
  213. package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.js +0 -36
  214. package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.js.map +0 -1
  215. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.d.ts +0 -35
  216. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.js +0 -4
  217. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.js.map +0 -1
  218. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.d.ts +0 -11
  219. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.js +0 -4
  220. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.js.map +0 -1
  221. package/features/CmsEntryOpenSearchFieldIndex/constants.d.ts +0 -1
  222. package/features/CmsEntryOpenSearchFieldIndex/constants.js +0 -3
  223. package/features/CmsEntryOpenSearchFieldIndex/constants.js.map +0 -1
  224. package/features/CmsEntryOpenSearchFieldIndex/feature.js +0 -24
  225. package/features/CmsEntryOpenSearchFieldIndex/feature.js.map +0 -1
  226. package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.d.ts +0 -11
  227. package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.js +0 -77
  228. package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.js.map +0 -1
  229. package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.d.ts +0 -10
  230. package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.js +0 -39
  231. package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.js.map +0 -1
  232. package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.d.ts +0 -10
  233. package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.js +0 -22
  234. package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.js.map +0 -1
  235. package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.d.ts +0 -10
  236. package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.js +0 -25
  237. package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.js.map +0 -1
  238. package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.d.ts +0 -11
  239. package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.js +0 -37
  240. package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.js.map +0 -1
  241. package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.d.ts +0 -10
  242. package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.js +0 -158
  243. package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.js.map +0 -1
  244. package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.d.ts +0 -10
  245. package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.js +0 -22
  246. package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.js.map +0 -1
  247. package/features/CmsEntryOpenSearchFieldIndex/index.d.ts +0 -3
  248. package/features/CmsEntryOpenSearchFieldIndex/index.js +0 -5
  249. package/features/CmsEntryOpenSearchFieldIndex/index.js.map +0 -1
  250. package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.d.ts +0 -11
  251. package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.js +0 -38
  252. package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.js.map +0 -1
  253. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.d.ts +0 -37
  254. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.js +0 -4
  255. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.js.map +0 -1
  256. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.d.ts +0 -9
  257. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.js +0 -4
  258. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.js.map +0 -1
  259. package/features/CmsEntryOpenSearchFilter/constants.d.ts +0 -1
  260. package/features/CmsEntryOpenSearchFilter/constants.js +0 -3
  261. package/features/CmsEntryOpenSearchFilter/constants.js.map +0 -1
  262. package/features/CmsEntryOpenSearchFilter/feature.js +0 -16
  263. package/features/CmsEntryOpenSearchFilter/feature.js.map +0 -1
  264. package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.d.ts +0 -9
  265. package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.js +0 -23
  266. package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.js.map +0 -1
  267. package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.d.ts +0 -9
  268. package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.js +0 -61
  269. package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.js.map +0 -1
  270. package/features/CmsEntryOpenSearchFilter/fields/RefFilter.d.ts +0 -9
  271. package/features/CmsEntryOpenSearchFilter/fields/RefFilter.js +0 -49
  272. package/features/CmsEntryOpenSearchFilter/fields/RefFilter.js.map +0 -1
  273. package/features/CmsEntryOpenSearchFilter/index.d.ts +0 -3
  274. package/features/CmsEntryOpenSearchFilter/index.js +0 -5
  275. package/features/CmsEntryOpenSearchFilter/index.js.map +0 -1
  276. package/features/CmsEntryOpenSearchFullTextSearch/abstractions.d.ts +0 -20
  277. package/features/CmsEntryOpenSearchFullTextSearch/abstractions.js +0 -4
  278. package/features/CmsEntryOpenSearchFullTextSearch/abstractions.js.map +0 -1
  279. package/features/CmsEntryOpenSearchFullTextSearch/index.d.ts +0 -1
  280. package/features/CmsEntryOpenSearchFullTextSearch/index.js +0 -3
  281. package/features/CmsEntryOpenSearchFullTextSearch/index.js.map +0 -1
  282. package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.d.ts +0 -11
  283. package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.js +0 -16
  284. package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.js.map +0 -1
  285. package/features/CmsEntryOpenSearchIndex/abstractions.d.ts +0 -14
  286. package/features/CmsEntryOpenSearchIndex/abstractions.js +0 -4
  287. package/features/CmsEntryOpenSearchIndex/abstractions.js.map +0 -1
  288. package/features/CmsEntryOpenSearchIndex/feature.js +0 -10
  289. package/features/CmsEntryOpenSearchIndex/feature.js.map +0 -1
  290. package/features/CmsEntryOpenSearchIndex/index.d.ts +0 -3
  291. package/features/CmsEntryOpenSearchIndex/index.js +0 -5
  292. package/features/CmsEntryOpenSearchIndex/index.js.map +0 -1
  293. package/features/CmsEntryOpenSearchQueryModifier/abstractions.d.ts +0 -16
  294. package/features/CmsEntryOpenSearchQueryModifier/abstractions.js +0 -4
  295. package/features/CmsEntryOpenSearchQueryModifier/abstractions.js.map +0 -1
  296. package/features/CmsEntryOpenSearchQueryModifier/index.d.ts +0 -1
  297. package/features/CmsEntryOpenSearchQueryModifier/index.js +0 -3
  298. package/features/CmsEntryOpenSearchQueryModifier/index.js.map +0 -1
  299. package/features/CmsEntryOpenSearchSortModifier/abstractions.d.ts +0 -15
  300. package/features/CmsEntryOpenSearchSortModifier/abstractions.js +0 -4
  301. package/features/CmsEntryOpenSearchSortModifier/abstractions.js.map +0 -1
  302. package/features/CmsEntryOpenSearchSortModifier/index.d.ts +0 -1
  303. package/features/CmsEntryOpenSearchSortModifier/index.js +0 -3
  304. package/features/CmsEntryOpenSearchSortModifier/index.js.map +0 -1
  305. package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.d.ts +0 -12
  306. package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.js +0 -27
  307. package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.js.map +0 -1
  308. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.d.ts +0 -22
  309. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.js +0 -4
  310. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.js.map +0 -1
  311. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.d.ts +0 -10
  312. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.js +0 -4
  313. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.js.map +0 -1
  314. package/features/CmsEntryOpenSearchValueSearch/feature.d.ts +0 -4
  315. package/features/CmsEntryOpenSearchValueSearch/feature.js +0 -16
  316. package/features/CmsEntryOpenSearchValueSearch/feature.js.map +0 -1
  317. package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.d.ts +0 -10
  318. package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.js +0 -23
  319. package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.js.map +0 -1
  320. package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.d.ts +0 -10
  321. package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.js +0 -55
  322. package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.js.map +0 -1
  323. package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.d.ts +0 -10
  324. package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.js +0 -24
  325. package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.js.map +0 -1
  326. package/features/CmsEntryOpenSearchValueSearch/index.d.ts +0 -3
  327. package/features/CmsEntryOpenSearchValueSearch/index.js +0 -5
  328. package/features/CmsEntryOpenSearchValueSearch/index.js.map +0 -1
  329. package/features/CmsEntryOpenSearchValuesModifier/abstractions.d.ts +0 -23
  330. package/features/CmsEntryOpenSearchValuesModifier/abstractions.js +0 -4
  331. package/features/CmsEntryOpenSearchValuesModifier/abstractions.js.map +0 -1
  332. package/features/CmsEntryOpenSearchValuesModifier/index.d.ts +0 -1
  333. package/features/CmsEntryOpenSearchValuesModifier/index.js +0 -3
  334. package/features/CmsEntryOpenSearchValuesModifier/index.js.map +0 -1
  335. package/helpers/entryIndexHelpers.d.ts +0 -20
  336. package/helpers/entryIndexHelpers.js +0 -134
  337. package/helpers/entryIndexHelpers.js.map +0 -1
  338. package/helpers/fieldIdentifier.d.ts +0 -6
  339. package/helpers/fieldIdentifier.js +0 -35
  340. package/helpers/fieldIdentifier.js.map +0 -1
  341. package/helpers/index.d.ts +0 -2
  342. package/helpers/index.js +0 -4
  343. package/helpers/index.js.map +0 -1
  344. package/index.js.map +0 -1
  345. package/operations/entry/dataLoader/types.js.map +0 -1
  346. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.d.ts +0 -18
  347. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +0 -27
  348. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js.map +0 -1
  349. package/operations/entry/elasticsearch/body.d.ts +0 -29
  350. package/operations/entry/elasticsearch/body.js +0 -138
  351. package/operations/entry/elasticsearch/body.js.map +0 -1
  352. package/operations/entry/elasticsearch/fields/createSystemField.d.ts +0 -4
  353. package/operations/entry/elasticsearch/fields/createSystemField.js +0 -10
  354. package/operations/entry/elasticsearch/fields/createSystemField.js.map +0 -1
  355. package/operations/entry/elasticsearch/fields/live.d.ts +0 -2
  356. package/operations/entry/elasticsearch/fields/live.js +0 -45
  357. package/operations/entry/elasticsearch/fields/live.js.map +0 -1
  358. package/operations/entry/elasticsearch/fields/location.d.ts +0 -2
  359. package/operations/entry/elasticsearch/fields/location.js +0 -45
  360. package/operations/entry/elasticsearch/fields/location.js.map +0 -1
  361. package/operations/entry/elasticsearch/fields/state.d.ts +0 -2
  362. package/operations/entry/elasticsearch/fields/state.js +0 -93
  363. package/operations/entry/elasticsearch/fields/state.js.map +0 -1
  364. package/operations/entry/elasticsearch/fields.d.ts +0 -12
  365. package/operations/entry/elasticsearch/fields.js +0 -231
  366. package/operations/entry/elasticsearch/fields.js.map +0 -1
  367. package/operations/entry/elasticsearch/filtering/applyFiltering.d.ts +0 -9
  368. package/operations/entry/elasticsearch/filtering/applyFiltering.js +0 -52
  369. package/operations/entry/elasticsearch/filtering/applyFiltering.js.map +0 -1
  370. package/operations/entry/elasticsearch/filtering/exec.d.ts +0 -22
  371. package/operations/entry/elasticsearch/filtering/exec.js +0 -125
  372. package/operations/entry/elasticsearch/filtering/exec.js.map +0 -1
  373. package/operations/entry/elasticsearch/filtering/index.d.ts +0 -1
  374. package/operations/entry/elasticsearch/filtering/index.js +0 -3
  375. package/operations/entry/elasticsearch/filtering/index.js.map +0 -1
  376. package/operations/entry/elasticsearch/filtering/path.d.ts +0 -17
  377. package/operations/entry/elasticsearch/filtering/path.js +0 -36
  378. package/operations/entry/elasticsearch/filtering/path.js.map +0 -1
  379. package/operations/entry/elasticsearch/filtering/populated.d.ts +0 -2
  380. package/operations/entry/elasticsearch/filtering/populated.js +0 -18
  381. package/operations/entry/elasticsearch/filtering/populated.js.map +0 -1
  382. package/operations/entry/elasticsearch/filtering/values.d.ts +0 -2
  383. package/operations/entry/elasticsearch/filtering/values.js +0 -16
  384. package/operations/entry/elasticsearch/filtering/values.js.map +0 -1
  385. package/operations/entry/elasticsearch/fullTextSearch.d.ts +0 -13
  386. package/operations/entry/elasticsearch/fullTextSearch.js +0 -88
  387. package/operations/entry/elasticsearch/fullTextSearch.js.map +0 -1
  388. package/operations/entry/elasticsearch/fullTextSearchFields.d.ts +0 -8
  389. package/operations/entry/elasticsearch/fullTextSearchFields.js +0 -20
  390. package/operations/entry/elasticsearch/fullTextSearchFields.js.map +0 -1
  391. package/operations/entry/elasticsearch/initialQuery.d.ts +0 -17
  392. package/operations/entry/elasticsearch/initialQuery.js +0 -88
  393. package/operations/entry/elasticsearch/initialQuery.js.map +0 -1
  394. package/operations/entry/elasticsearch/keyword.d.ts +0 -2
  395. package/operations/entry/elasticsearch/keyword.js +0 -31
  396. package/operations/entry/elasticsearch/keyword.js.map +0 -1
  397. package/operations/entry/elasticsearch/plugins/operator.d.ts +0 -7
  398. package/operations/entry/elasticsearch/plugins/operator.js +0 -24
  399. package/operations/entry/elasticsearch/plugins/operator.js.map +0 -1
  400. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.d.ts +0 -2
  401. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js +0 -6
  402. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js.map +0 -1
  403. package/operations/entry/elasticsearch/sort.d.ts +0 -12
  404. package/operations/entry/elasticsearch/sort.js +0 -103
  405. package/operations/entry/elasticsearch/sort.js.map +0 -1
  406. package/operations/entry/elasticsearch/transformValueForSearch.d.ts +0 -9
  407. package/operations/entry/elasticsearch/transformValueForSearch.js +0 -17
  408. package/operations/entry/elasticsearch/transformValueForSearch.js.map +0 -1
  409. package/operations/entry/elasticsearch/types.d.ts +0 -34
  410. package/operations/entry/elasticsearch/types.js +0 -3
  411. package/operations/entry/elasticsearch/types.js.map +0 -1
  412. package/operations/entry/index.d.ts +0 -32
  413. package/operations/entry/index.js +0 -1761
  414. package/operations/entry/index.js.map +0 -1
  415. package/operations/entry/transformations/transformEntryToIndex.d.ts +0 -12
  416. package/operations/entry/transformations/transformEntryToIndex.js +0 -26
  417. package/operations/entry/transformations/transformEntryToIndex.js.map +0 -1
  418. package/operations/group/index.d.ts +0 -9
  419. package/operations/group/index.js +0 -142
  420. package/operations/group/index.js.map +0 -1
  421. package/operations/model/index.d.ts +0 -8
  422. package/operations/model/index.js +0 -163
  423. package/operations/model/index.js.map +0 -1
  424. package/tasks/createIndexTaskPlugin.d.ts +0 -2
  425. package/tasks/createIndexTaskPlugin.js +0 -48
  426. package/tasks/createIndexTaskPlugin.js.map +0 -1
  427. package/values/NoValueContainer.d.ts +0 -5
  428. package/values/NoValueContainer.js +0 -13
  429. 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"}
@@ -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 { 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"],"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,CAAkB;IACzCG,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"}
@@ -54,6 +54,10 @@ export interface IEntryEntityAttributesData {
54
54
  system?: ICmsEntrySystem;
55
55
  live: ICmsEntryLive | null;
56
56
  revisionDescription: string | undefined;
57
+ /**
58
+ * A timestamp of when the entry should be automatically deleted from the database.
59
+ */
60
+ expiresAt: number | null;
57
61
  }
58
62
  export type IEntryEntityAttributes = IStandardEntityAttributes<IEntryEntityAttributesData>;
59
63
  export type IModelEntity = IEntity<IStandardEntityAttributes<StorageCmsModel>>;
@@ -1,3 +0,0 @@
1
- export {};
2
-
3
- //# sourceMappingURL=types.js.map
package/feature.d.ts CHANGED
@@ -1 +1,9 @@
1
- export declare const registerCmsOpenSearchStorageOperations: () => import("@webiny/handler").RegisterExtensionPlugin<import("@webiny/handler/types.js").Context>[];
1
+ /**
2
+ * Root half of the DynamoDB+OpenSearch CMS storage: the table and entity definitions, built once per
3
+ * process. The storage operations and OpenSearch extension points are per request, in
4
+ * `HeadlessCmsDdbEsRequestFeature`.
5
+ */
6
+ export declare const HeadlessCmsDdbEsFeature: {
7
+ name: string;
8
+ register(container: import("@webiny/di").Container): void;
9
+ };
package/feature.js CHANGED
@@ -1,188 +1,55 @@
1
- import { createTable, registerExtension as registerDynamoDbExtension } from "@webiny/db-dynamodb";
2
- import { StorageOperationsFactory as StorageOperationsFactoryAbstraction } from "@webiny/api-headless-cms/exports/api/cms/storage.js";
1
+ import { DynamoDBClient, createTable } from "@webiny/db-dynamodb";
3
2
  import { ENTITIES } from "./types.js";
4
- import { createRegisterExtensionPlugin } from "@webiny/handler";
5
3
  import { createFeature } from "@webiny/feature/api/index.js";
6
- import { CmsEntryOpenSearchValueSearchFeature, CmsEntryOpenSearchValueSearchRegistry } from "./features/CmsEntryOpenSearchValueSearch/index.js";
7
- import { CmsEntryOpenSearchIndex, CmsEntryOpenSearchIndexFeature } from "./features/CmsEntryOpenSearchIndex/index.js";
8
- import { createModelsStorageOperations } from "./operations/model/index.js";
9
- import { createEntriesStorageOperations } from "./operations/entry/index.js";
10
4
  import { createGroupEntity } from "./definitions/group.js";
11
5
  import { createModelEntity } from "./definitions/model.js";
12
6
  import { createEntryEntity } from "./definitions/entry.js";
13
- import { createElasticsearchIndex } from "./elasticsearch/createElasticsearchIndex.js";
14
- import { createGroupsStorageOperations } from "./operations/group/index.js";
15
- import { createOpenSearchEntity, createOpenSearchTable } from "@webiny/api-opensearch";
16
- import { deleteElasticsearchIndex } from "./elasticsearch/deleteElasticsearchIndex.js";
17
- import { createCreateIndexTask } from "./tasks/createIndexTaskPlugin.js";
18
- import { ModelAfterCreateEventHandler } from "@webiny/api-headless-cms/features/contentModel/CreateModel/index.js";
19
- import { ModelAfterCreateFromEventHandler } from "@webiny/api-headless-cms/features/contentModel/CreateModelFrom/events.js";
20
- import { ModelAfterDeleteEventHandler } from "@webiny/api-headless-cms/features/contentModel/DeleteModel/events.js";
21
- import { CmsModelFieldToGraphQLRegistry } from "@webiny/api-headless-cms/exports/api/cms/graphql.js";
22
- import { CompressionHandler } from "@webiny/utils/exports/api.js";
23
- import { CmsEntryOpenSearchBodyModifier } from "./features/CmsEntryOpenSearchBodyModifier/index.js";
24
- import { CmsEntryOpenSearchSortModifier } from "./features/CmsEntryOpenSearchSortModifier/index.js";
25
- import { CmsEntryOpenSearchQueryModifier } from "./features/CmsEntryOpenSearchQueryModifier/index.js";
26
- import { CmsEntryOpenSearchFullTextSearch } from "./features/CmsEntryOpenSearchFullTextSearch/index.js";
27
- import { CmsEntryOpenSearchValuesModifier } from "./features/CmsEntryOpenSearchValuesModifier/index.js";
28
- import { CmsEntryOpenSearchFieldIndexFeature, CmsEntryOpenSearchFieldIndexRegistry } from "./features/CmsEntryOpenSearchFieldIndex/index.js";
29
- import { CmsEntryOpenSearchFilterFeature, CmsEntryOpenSearchFilterRegistry } from "./features/CmsEntryOpenSearchFilter/index.js";
30
- const createOpenSearchStorageOperations = params => {
31
- const {
32
- table,
33
- esTable,
34
- documentClient,
35
- elasticsearch,
36
- plugins,
37
- container
38
- } = params;
39
- const tableInstance = createTable({
40
- name: table || process.env.DB_TABLE,
41
- documentClient
42
- });
43
- const tableElasticsearchInstance = createOpenSearchTable({
44
- name: esTable,
45
- documentClient
46
- });
47
- const entities = {
48
- groups: createGroupEntity({
49
- entityName: ENTITIES.GROUPS,
50
- table: tableInstance
51
- }),
52
- models: createModelEntity({
53
- entityName: ENTITIES.MODELS,
54
- table: tableInstance
55
- }),
56
- entries: createEntryEntity({
57
- entityName: ENTITIES.ENTRIES,
58
- table: tableInstance
59
- }),
60
- entriesEs: createOpenSearchEntity({
61
- entityName: ENTITIES.ENTRIES_ES,
62
- table: tableElasticsearchInstance
63
- })
64
- };
65
- const fieldRegistry = container.resolve(CmsModelFieldToGraphQLRegistry);
66
- const fieldIndexRegistry = container.resolve(CmsEntryOpenSearchFieldIndexRegistry);
67
- const compressionHandler = container.resolve(CompressionHandler);
68
- const bodyModifiers = container.resolveAll(CmsEntryOpenSearchBodyModifier);
69
- const sortModifiers = container.resolveAll(CmsEntryOpenSearchSortModifier);
70
- const queryModifiers = container.resolveAll(CmsEntryOpenSearchQueryModifier);
71
- const valueSearchRegistry = container.resolve(CmsEntryOpenSearchValueSearchRegistry);
72
- const fullTextSearches = container.resolveAll(CmsEntryOpenSearchFullTextSearch);
73
- const valuesModifiers = container.resolveAll(CmsEntryOpenSearchValuesModifier);
74
- const filterRegistry = container.resolve(CmsEntryOpenSearchFilterRegistry);
75
- container.registerFactory(ModelAfterCreateEventHandler, () => ({
76
- async handle(event) {
77
- const {
78
- model
79
- } = event.payload;
80
- await createElasticsearchIndex({
81
- client: elasticsearch,
82
- model,
83
- indexConfigs: container.resolveAll(CmsEntryOpenSearchIndex)
84
- });
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
+ const HeadlessCmsDdbEsFeature = createFeature({
16
+ name: "cms.storageOperations.openSearch",
17
+ register: (container)=>{
18
+ FilterUtilFeature.register(container);
19
+ const db = container.resolve(DynamoDBClient);
20
+ const documentClient = db.client;
21
+ const tableInstance = createTable({
22
+ name: process.env.DB_TABLE,
23
+ documentClient
24
+ });
25
+ const tableElasticsearchInstance = createOpenSearchTable({
26
+ name: process.env.DB_TABLE_OPENSEARCH,
27
+ documentClient
28
+ });
29
+ const groupEntity = createGroupEntity({
30
+ entityName: ENTITIES.GROUPS,
31
+ table: tableInstance
32
+ });
33
+ const modelEntity = createModelEntity({
34
+ entityName: ENTITIES.MODELS,
35
+ table: tableInstance
36
+ });
37
+ const entryEntity = createEntryEntity({
38
+ entityName: ENTITIES.ENTRIES,
39
+ table: tableInstance
40
+ });
41
+ const entriesEsEntity = createOpenSearchEntity({
42
+ entityName: ENTITIES.ENTRIES_ES,
43
+ table: tableElasticsearchInstance
44
+ });
45
+ container.registerInstance(CmsDdbEsTable, tableInstance);
46
+ container.registerInstance(CmsDdbEsOsTable, tableElasticsearchInstance);
47
+ container.registerInstance(CmsDdbEsGroupEntity, groupEntity);
48
+ container.registerInstance(CmsDdbEsModelEntity, modelEntity);
49
+ container.registerInstance(CmsDdbEsEntryEntity, entryEntity);
50
+ container.registerInstance(CmsDdbEsEntriesEsEntity, entriesEsEntity);
85
51
  }
86
- }));
87
- container.registerFactory(ModelAfterCreateFromEventHandler, () => ({
88
- async handle(event) {
89
- const {
90
- model
91
- } = event.payload;
92
- await createElasticsearchIndex({
93
- client: elasticsearch,
94
- model,
95
- indexConfigs: container.resolveAll(CmsEntryOpenSearchIndex)
96
- });
97
- }
98
- }));
99
- container.registerFactory(ModelAfterDeleteEventHandler, () => ({
100
- async handle(event) {
101
- const {
102
- model
103
- } = event.payload;
104
- await deleteElasticsearchIndex({
105
- client: elasticsearch,
106
- model
107
- });
108
- }
109
- }));
110
- const entries = createEntriesStorageOperations({
111
- entity: entities.entries,
112
- esEntity: entities.entriesEs,
113
- plugins,
114
- elasticsearch,
115
- fieldRegistry,
116
- fieldIndexRegistry,
117
- compressionHandler,
118
- bodyModifiers,
119
- sortModifiers,
120
- queryModifiers,
121
- valueSearchRegistry,
122
- fullTextSearches,
123
- valuesModifiers,
124
- filterRegistry
125
- });
126
- return {
127
- name: "dynamodb:opensearch",
128
- beforeInit: async context => {
129
- context.db.registry.register({
130
- item: entities.entries,
131
- app: "cms",
132
- tags: ["regular", entities.entries.name]
133
- });
134
- context.db.registry.register({
135
- item: entities.entriesEs,
136
- app: "cms",
137
- tags: ["es", entities.entriesEs.name]
138
- });
139
- // TODO we know that context is ok, but types are missing elasticsearch/opensearch
140
- // @ts-expect-error
141
- createCreateIndexTask(context);
142
- entries.dataLoaders.clearAll();
143
- },
144
- getEntities: () => entities,
145
- getTable: () => tableInstance,
146
- getEsTable: () => tableElasticsearchInstance,
147
- groups: createGroupsStorageOperations({
148
- entity: entities.groups,
149
- container
150
- }),
151
- models: createModelsStorageOperations({
152
- entity: entities.models,
153
- elasticsearch
154
- }),
155
- entries
156
- };
157
- };
158
- class OpenSearchStorageOperationsFactoryImpl {
159
- async create(context) {
160
- return createOpenSearchStorageOperations({
161
- documentClient: context.db.driver.getClient(),
162
- elasticsearch: context.opensearch,
163
- plugins: context.plugins,
164
- container: context.container
165
- });
166
- }
167
- }
168
- const OpenSearchStorageOperationsFactory = StorageOperationsFactoryAbstraction.createImplementation({
169
- implementation: OpenSearchStorageOperationsFactoryImpl,
170
- dependencies: []
171
- });
172
- const storageOperationsFeature = createFeature({
173
- name: "cms.storageOperations.openSearch",
174
- register: container => {
175
- CmsEntryOpenSearchFieldIndexFeature.register(container);
176
- CmsEntryOpenSearchFilterFeature.register(container);
177
- CmsEntryOpenSearchIndexFeature.register(container);
178
- CmsEntryOpenSearchValueSearchFeature.register(container);
179
- container.register(OpenSearchStorageOperationsFactory).inSingletonScope();
180
- }
181
52
  });
182
- export const registerCmsOpenSearchStorageOperations = () => {
183
- return [registerDynamoDbExtension(), createRegisterExtensionPlugin(context => {
184
- return storageOperationsFeature.register(context.container);
185
- })];
186
- };
53
+ export { HeadlessCmsDdbEsFeature };
187
54
 
188
55
  //# sourceMappingURL=feature.js.map
package/feature.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["createTable","registerExtension","registerDynamoDbExtension","StorageOperationsFactory","StorageOperationsFactoryAbstraction","ENTITIES","createRegisterExtensionPlugin","createFeature","CmsEntryOpenSearchValueSearchFeature","CmsEntryOpenSearchValueSearchRegistry","CmsEntryOpenSearchIndex","CmsEntryOpenSearchIndexFeature","createModelsStorageOperations","createEntriesStorageOperations","createGroupEntity","createModelEntity","createEntryEntity","createElasticsearchIndex","createGroupsStorageOperations","createOpenSearchEntity","createOpenSearchTable","deleteElasticsearchIndex","createCreateIndexTask","ModelAfterCreateEventHandler","ModelAfterCreateFromEventHandler","ModelAfterDeleteEventHandler","CmsModelFieldToGraphQLRegistry","CompressionHandler","CmsEntryOpenSearchBodyModifier","CmsEntryOpenSearchSortModifier","CmsEntryOpenSearchQueryModifier","CmsEntryOpenSearchFullTextSearch","CmsEntryOpenSearchValuesModifier","CmsEntryOpenSearchFieldIndexFeature","CmsEntryOpenSearchFieldIndexRegistry","CmsEntryOpenSearchFilterFeature","CmsEntryOpenSearchFilterRegistry","createOpenSearchStorageOperations","params","table","esTable","documentClient","elasticsearch","plugins","container","tableInstance","name","process","env","DB_TABLE","tableElasticsearchInstance","entities","groups","entityName","GROUPS","models","MODELS","entries","ENTRIES","entriesEs","ENTRIES_ES","fieldRegistry","resolve","fieldIndexRegistry","compressionHandler","bodyModifiers","resolveAll","sortModifiers","queryModifiers","valueSearchRegistry","fullTextSearches","valuesModifiers","filterRegistry","registerFactory","handle","event","model","payload","client","indexConfigs","entity","esEntity","beforeInit","context","db","registry","register","item","app","tags","dataLoaders","clearAll","getEntities","getTable","getEsTable","OpenSearchStorageOperationsFactoryImpl","create","driver","getClient","opensearch","OpenSearchStorageOperationsFactory","createImplementation","implementation","dependencies","storageOperationsFeature","inSingletonScope","registerCmsOpenSearchStorageOperations"],"sources":["feature.ts"],"sourcesContent":["import { createTable, registerExtension as registerDynamoDbExtension } from \"@webiny/db-dynamodb\";\nimport { StorageOperationsFactory as StorageOperationsFactoryAbstraction } from \"@webiny/api-headless-cms/exports/api/cms/storage.js\";\nimport type { CmsContext, StorageOperationsFactory as IStorageOperationsFactory } from \"~/types.js\";\nimport { ENTITIES } from \"~/types.js\";\nimport type { DynamoDBDocument } from \"@webiny/aws-sdk/client-dynamodb/index.js\";\nimport { createRegisterExtensionPlugin } from \"@webiny/handler\";\nimport { createFeature } from \"@webiny/feature/api/index.js\";\nimport {\n CmsEntryOpenSearchValueSearchFeature,\n CmsEntryOpenSearchValueSearchRegistry\n} from \"~/features/CmsEntryOpenSearchValueSearch/index.js\";\nimport {\n CmsEntryOpenSearchIndex,\n CmsEntryOpenSearchIndexFeature\n} from \"~/features/CmsEntryOpenSearchIndex/index.js\";\nimport { createModelsStorageOperations } from \"./operations/model/index.js\";\nimport { createEntriesStorageOperations } from \"./operations/entry/index.js\";\nimport { createGroupEntity } from \"~/definitions/group.js\";\nimport { createModelEntity } from \"~/definitions/model.js\";\nimport { createEntryEntity } from \"~/definitions/entry.js\";\nimport { createElasticsearchIndex } from \"~/elasticsearch/createElasticsearchIndex.js\";\nimport { createGroupsStorageOperations } from \"~/operations/group/index.js\";\nimport { createOpenSearchEntity, createOpenSearchTable } from \"@webiny/api-opensearch\";\nimport { deleteElasticsearchIndex } from \"./elasticsearch/deleteElasticsearchIndex.js\";\nimport { createCreateIndexTask } from \"~/tasks/createIndexTaskPlugin.js\";\nimport { ModelAfterCreateEventHandler } from \"@webiny/api-headless-cms/features/contentModel/CreateModel/index.js\";\nimport { ModelAfterCreateFromEventHandler } from \"@webiny/api-headless-cms/features/contentModel/CreateModelFrom/events.js\";\nimport { ModelAfterDeleteEventHandler } from \"@webiny/api-headless-cms/features/contentModel/DeleteModel/events.js\";\nimport { CmsModelFieldToGraphQLRegistry } from \"@webiny/api-headless-cms/exports/api/cms/graphql.js\";\nimport { CompressionHandler } from \"@webiny/utils/exports/api.js\";\nimport { CmsEntryOpenSearchBodyModifier } from \"~/features/CmsEntryOpenSearchBodyModifier/index.js\";\nimport { CmsEntryOpenSearchSortModifier } from \"~/features/CmsEntryOpenSearchSortModifier/index.js\";\nimport { CmsEntryOpenSearchQueryModifier } from \"~/features/CmsEntryOpenSearchQueryModifier/index.js\";\nimport { CmsEntryOpenSearchFullTextSearch } from \"~/features/CmsEntryOpenSearchFullTextSearch/index.js\";\nimport { CmsEntryOpenSearchValuesModifier } from \"~/features/CmsEntryOpenSearchValuesModifier/index.js\";\nimport {\n CmsEntryOpenSearchFieldIndexFeature,\n CmsEntryOpenSearchFieldIndexRegistry\n} from \"~/features/CmsEntryOpenSearchFieldIndex/index.js\";\nimport {\n CmsEntryOpenSearchFilterFeature,\n CmsEntryOpenSearchFilterRegistry\n} from \"~/features/CmsEntryOpenSearchFilter/index.js\";\n\nconst createOpenSearchStorageOperations: IStorageOperationsFactory = params => {\n const { table, esTable, documentClient, elasticsearch, plugins, container } = params;\n\n const tableInstance = createTable({\n name: table || (process.env.DB_TABLE as string),\n documentClient\n });\n const tableElasticsearchInstance = createOpenSearchTable({\n name: esTable,\n documentClient\n });\n\n const entities = {\n groups: createGroupEntity({\n entityName: ENTITIES.GROUPS,\n table: tableInstance\n }),\n models: createModelEntity({\n entityName: ENTITIES.MODELS,\n table: tableInstance\n }),\n entries: createEntryEntity({\n entityName: ENTITIES.ENTRIES,\n table: tableInstance\n }),\n entriesEs: createOpenSearchEntity({\n entityName: ENTITIES.ENTRIES_ES,\n table: tableElasticsearchInstance\n })\n };\n\n const fieldRegistry = container.resolve(CmsModelFieldToGraphQLRegistry);\n const fieldIndexRegistry = container.resolve(CmsEntryOpenSearchFieldIndexRegistry);\n const compressionHandler = container.resolve(CompressionHandler);\n const bodyModifiers = container.resolveAll(CmsEntryOpenSearchBodyModifier);\n const sortModifiers = container.resolveAll(CmsEntryOpenSearchSortModifier);\n const queryModifiers = container.resolveAll(CmsEntryOpenSearchQueryModifier);\n const valueSearchRegistry = container.resolve(CmsEntryOpenSearchValueSearchRegistry);\n const fullTextSearches = container.resolveAll(CmsEntryOpenSearchFullTextSearch);\n const valuesModifiers = container.resolveAll(CmsEntryOpenSearchValuesModifier);\n const filterRegistry = container.resolve(CmsEntryOpenSearchFilterRegistry);\n\n container.registerFactory(ModelAfterCreateEventHandler, () => ({\n async handle(event) {\n const { model } = event.payload;\n await createElasticsearchIndex({\n client: elasticsearch,\n model,\n indexConfigs: container.resolveAll(CmsEntryOpenSearchIndex)\n });\n }\n }));\n\n container.registerFactory(ModelAfterCreateFromEventHandler, () => ({\n async handle(event) {\n const { model } = event.payload;\n await createElasticsearchIndex({\n client: elasticsearch,\n model,\n indexConfigs: container.resolveAll(CmsEntryOpenSearchIndex)\n });\n }\n }));\n\n container.registerFactory(ModelAfterDeleteEventHandler, () => ({\n async handle(event) {\n const { model } = event.payload;\n await deleteElasticsearchIndex({\n client: elasticsearch,\n model\n });\n }\n }));\n\n const entries = createEntriesStorageOperations({\n entity: entities.entries,\n esEntity: entities.entriesEs,\n plugins,\n elasticsearch,\n fieldRegistry,\n fieldIndexRegistry,\n compressionHandler,\n bodyModifiers,\n sortModifiers,\n queryModifiers,\n valueSearchRegistry,\n fullTextSearches,\n valuesModifiers,\n filterRegistry\n });\n\n return {\n name: \"dynamodb:opensearch\",\n beforeInit: async context => {\n context.db.registry.register({\n item: entities.entries,\n app: \"cms\",\n tags: [\"regular\", entities.entries.name]\n });\n context.db.registry.register({\n item: entities.entriesEs,\n app: \"cms\",\n tags: [\"es\", entities.entriesEs.name]\n });\n // TODO we know that context is ok, but types are missing elasticsearch/opensearch\n // @ts-expect-error\n createCreateIndexTask(context);\n\n entries.dataLoaders.clearAll();\n },\n getEntities: () => entities,\n getTable: () => tableInstance,\n getEsTable: () => tableElasticsearchInstance,\n groups: createGroupsStorageOperations({\n entity: entities.groups,\n container\n }),\n models: createModelsStorageOperations({\n entity: entities.models,\n elasticsearch\n }),\n entries\n };\n};\n\nclass OpenSearchStorageOperationsFactoryImpl\n implements StorageOperationsFactoryAbstraction.Interface\n{\n public async create(context: CmsContext) {\n return createOpenSearchStorageOperations({\n documentClient: context.db.driver.getClient() as DynamoDBDocument,\n elasticsearch: context.opensearch,\n plugins: context.plugins,\n container: context.container\n });\n }\n}\n\nconst OpenSearchStorageOperationsFactory = StorageOperationsFactoryAbstraction.createImplementation(\n {\n implementation: OpenSearchStorageOperationsFactoryImpl,\n dependencies: []\n }\n);\n\nconst storageOperationsFeature = createFeature({\n name: \"cms.storageOperations.openSearch\",\n register: container => {\n CmsEntryOpenSearchFieldIndexFeature.register(container);\n CmsEntryOpenSearchFilterFeature.register(container);\n CmsEntryOpenSearchIndexFeature.register(container);\n CmsEntryOpenSearchValueSearchFeature.register(container);\n container.register(OpenSearchStorageOperationsFactory).inSingletonScope();\n }\n});\n\nexport const registerCmsOpenSearchStorageOperations = () => {\n return [\n registerDynamoDbExtension(),\n createRegisterExtensionPlugin(context => {\n return storageOperationsFeature.register(context.container);\n })\n ];\n};\n"],"mappings":"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","ignoreList":[]}
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\";\n\n/**\n * Root half of the DynamoDB+OpenSearch CMS storage: the table and entity definitions, built once per\n * process. The storage operations and OpenSearch extension points are per request, in\n * `HeadlessCmsDdbEsRequestFeature`.\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});\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"],"mappings":";;;;;;;;;;;;;;AAoBO,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;IACxD;AACJ"}
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { registerCmsOpenSearchStorageOperations } from "./feature.js";
1
+ export { HeadlessCmsDdbEsFeature } from "./feature.js";
2
+ export { HeadlessCmsDdbEsRequestFeature } from "./requestFeature.js";
package/index.js CHANGED
@@ -1,3 +1,2 @@
1
- export { registerCmsOpenSearchStorageOperations } from "./feature.js";
2
-
3
- //# sourceMappingURL=index.js.map
1
+ export { HeadlessCmsDdbEsFeature } from "./feature.js";
2
+ export { HeadlessCmsDdbEsRequestFeature } from "./requestFeature.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 {};