@webiny/api-headless-cms-ddb-es 0.0.0-unstable.e622468070 → 0.0.0-unstable.e9333b3f0b

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 (395) 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 +9 -3
  29. package/definitions/types.js +0 -3
  30. package/feature.d.ts +9 -0
  31. package/feature.js +55 -0
  32. package/feature.js.map +1 -0
  33. package/index.d.ts +2 -3
  34. package/index.js +2 -190
  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.d.ts +1 -0
  102. package/operations/entry/dataLoader/DataLoaderCache.js +22 -29
  103. package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -1
  104. package/operations/entry/dataLoader/constants.js +2 -1
  105. package/operations/entry/dataLoader/constants.js.map +1 -1
  106. package/operations/entry/dataLoader/createBatchScheduleFn.js +6 -15
  107. package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -1
  108. package/operations/entry/dataLoader/getAllEntryRevisions.js +18 -26
  109. package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -1
  110. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +28 -34
  111. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -1
  112. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +28 -34
  113. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -1
  114. package/operations/entry/dataLoader/getRevisionById.js +33 -43
  115. package/operations/entry/dataLoader/getRevisionById.js.map +1 -1
  116. package/operations/entry/dataLoader/index.js +8 -9
  117. package/operations/entry/dataLoader/index.js.map +1 -1
  118. package/operations/entry/dataLoader/types.d.ts +1 -0
  119. package/operations/entry/dataLoader/types.js +0 -3
  120. package/operations/entry/dataLoaders.d.ts +5 -5
  121. package/operations/entry/dataLoaders.js +89 -97
  122. package/operations/entry/dataLoaders.js.map +1 -1
  123. package/operations/entry/feature.d.ts +4 -0
  124. package/operations/entry/feature.js +53 -0
  125. package/operations/entry/feature.js.map +1 -0
  126. package/operations/entry/keys.js +43 -63
  127. package/operations/entry/keys.js.map +1 -1
  128. package/operations/entry/recordType.js +4 -9
  129. package/operations/entry/recordType.js.map +1 -1
  130. package/operations/entry/storageEntryUtils.d.ts +7 -0
  131. package/operations/entry/storageEntryUtils.js +14 -0
  132. package/operations/entry/storageEntryUtils.js.map +1 -0
  133. package/operations/entry/transformations/convertEntryKeys.js +21 -26
  134. package/operations/entry/transformations/convertEntryKeys.js.map +1 -1
  135. package/operations/entry/transformations/index.d.ts +6 -3
  136. package/operations/entry/transformations/index.js +85 -113
  137. package/operations/entry/transformations/index.js.map +1 -1
  138. package/operations/entry/transformations/modifyEntryValues.d.ts +7 -5
  139. package/operations/entry/transformations/modifyEntryValues.js +12 -17
  140. package/operations/entry/transformations/modifyEntryValues.js.map +1 -1
  141. package/operations/entry/transformations/transformEntryKeys.js +13 -16
  142. package/operations/entry/transformations/transformEntryKeys.js.map +1 -1
  143. package/operations/group/DdbEsCreateGroup.d.ts +12 -0
  144. package/operations/group/DdbEsCreateGroup.js +35 -0
  145. package/operations/group/DdbEsCreateGroup.js.map +1 -0
  146. package/operations/group/DdbEsDeleteGroup.d.ts +12 -0
  147. package/operations/group/DdbEsDeleteGroup.js +31 -0
  148. package/operations/group/DdbEsDeleteGroup.js.map +1 -0
  149. package/operations/group/DdbEsGetGroup.d.ts +12 -0
  150. package/operations/group/DdbEsGetGroup.js +31 -0
  151. package/operations/group/DdbEsGetGroup.js.map +1 -0
  152. package/operations/group/DdbEsListGroups.d.ts +14 -0
  153. package/operations/group/DdbEsListGroups.js +52 -0
  154. package/operations/group/DdbEsListGroups.js.map +1 -0
  155. package/operations/group/DdbEsUpdateGroup.d.ts +12 -0
  156. package/operations/group/DdbEsUpdateGroup.js +35 -0
  157. package/operations/group/DdbEsUpdateGroup.js.map +1 -0
  158. package/operations/group/feature.d.ts +4 -0
  159. package/operations/group/feature.js +19 -0
  160. package/operations/group/feature.js.map +1 -0
  161. package/operations/group/keys.d.ts +15 -0
  162. package/operations/group/keys.js +17 -0
  163. package/operations/group/keys.js.map +1 -0
  164. package/operations/model/DdbEsCreateModel.d.ts +16 -0
  165. package/operations/model/DdbEsCreateModel.js +56 -0
  166. package/operations/model/DdbEsCreateModel.js.map +1 -0
  167. package/operations/model/DdbEsDeleteModel.d.ts +12 -0
  168. package/operations/model/DdbEsDeleteModel.js +31 -0
  169. package/operations/model/DdbEsDeleteModel.js.map +1 -0
  170. package/operations/model/DdbEsGetModel.d.ts +12 -0
  171. package/operations/model/DdbEsGetModel.js +30 -0
  172. package/operations/model/DdbEsGetModel.js.map +1 -0
  173. package/operations/model/DdbEsListModels.d.ts +12 -0
  174. package/operations/model/DdbEsListModels.js +36 -0
  175. package/operations/model/DdbEsListModels.js.map +1 -0
  176. package/operations/model/DdbEsUpdateModel.d.ts +12 -0
  177. package/operations/model/DdbEsUpdateModel.js +36 -0
  178. package/operations/model/DdbEsUpdateModel.js.map +1 -0
  179. package/operations/model/feature.d.ts +4 -0
  180. package/operations/model/feature.js +19 -0
  181. package/operations/model/feature.js.map +1 -0
  182. package/operations/model/keys.d.ts +15 -0
  183. package/operations/model/keys.js +17 -0
  184. package/operations/model/keys.js.map +1 -0
  185. package/package.json +39 -30
  186. package/requestFeature.d.ts +20 -0
  187. package/requestFeature.js +54 -0
  188. package/requestFeature.js.map +1 -0
  189. package/tasks/CreateElasticsearchIndexTask.d.ts +13 -0
  190. package/tasks/CreateElasticsearchIndexTask.js +40 -0
  191. package/tasks/CreateElasticsearchIndexTask.js.map +1 -0
  192. package/types.d.ts +11 -155
  193. package/types.js +7 -36
  194. package/types.js.map +1 -1
  195. package/configurations.d.ts +0 -18
  196. package/configurations.js +0 -37
  197. package/configurations.js.map +0 -1
  198. package/definitions/types.js.map +0 -1
  199. package/dynamoDb/index.d.ts +0 -3
  200. package/dynamoDb/index.js +0 -8
  201. package/dynamoDb/index.js.map +0 -1
  202. package/dynamoDb/storage/longText.d.ts +0 -10
  203. package/dynamoDb/storage/longText.js +0 -88
  204. package/dynamoDb/storage/longText.js.map +0 -1
  205. package/dynamoDb/storage/richText.d.ts +0 -2
  206. package/dynamoDb/storage/richText.js +0 -51
  207. package/dynamoDb/storage/richText.js.map +0 -1
  208. package/elasticsearch/createElasticsearchIndex.d.ts +0 -9
  209. package/elasticsearch/createElasticsearchIndex.js +0 -32
  210. package/elasticsearch/createElasticsearchIndex.js.map +0 -1
  211. package/elasticsearch/deleteElasticsearchIndex.d.ts +0 -8
  212. package/elasticsearch/deleteElasticsearchIndex.js +0 -31
  213. package/elasticsearch/deleteElasticsearchIndex.js.map +0 -1
  214. package/elasticsearch/index.d.ts +0 -2
  215. package/elasticsearch/index.js +0 -5
  216. package/elasticsearch/index.js.map +0 -1
  217. package/elasticsearch/indexing/dateTimeIndexing.d.ts +0 -3
  218. package/elasticsearch/indexing/dateTimeIndexing.js +0 -81
  219. package/elasticsearch/indexing/dateTimeIndexing.js.map +0 -1
  220. package/elasticsearch/indexing/defaultFieldIndexing.d.ts +0 -3
  221. package/elasticsearch/indexing/defaultFieldIndexing.js +0 -47
  222. package/elasticsearch/indexing/defaultFieldIndexing.js.map +0 -1
  223. package/elasticsearch/indexing/index.d.ts +0 -2
  224. package/elasticsearch/indexing/index.js +0 -10
  225. package/elasticsearch/indexing/index.js.map +0 -1
  226. package/elasticsearch/indexing/jsonIndexing.d.ts +0 -2
  227. package/elasticsearch/indexing/jsonIndexing.js +0 -21
  228. package/elasticsearch/indexing/jsonIndexing.js.map +0 -1
  229. package/elasticsearch/indexing/longTextIndexing.d.ts +0 -7
  230. package/elasticsearch/indexing/longTextIndexing.js +0 -35
  231. package/elasticsearch/indexing/longTextIndexing.js.map +0 -1
  232. package/elasticsearch/indexing/numberIndexing.d.ts +0 -3
  233. package/elasticsearch/indexing/numberIndexing.js +0 -34
  234. package/elasticsearch/indexing/numberIndexing.js.map +0 -1
  235. package/elasticsearch/indexing/objectIndexing.d.ts +0 -12
  236. package/elasticsearch/indexing/objectIndexing.js +0 -194
  237. package/elasticsearch/indexing/objectIndexing.js.map +0 -1
  238. package/elasticsearch/indexing/richTextIndexing.d.ts +0 -3
  239. package/elasticsearch/indexing/richTextIndexing.js +0 -24
  240. package/elasticsearch/indexing/richTextIndexing.js.map +0 -1
  241. package/elasticsearch/indices/base.d.ts +0 -2
  242. package/elasticsearch/indices/base.js +0 -7
  243. package/elasticsearch/indices/base.js.map +0 -1
  244. package/elasticsearch/indices/index.d.ts +0 -1
  245. package/elasticsearch/indices/index.js +0 -6
  246. package/elasticsearch/indices/index.js.map +0 -1
  247. package/elasticsearch/search/index.d.ts +0 -3
  248. package/elasticsearch/search/index.js +0 -6
  249. package/elasticsearch/search/index.js.map +0 -1
  250. package/elasticsearch/search/refSearch.d.ts +0 -2
  251. package/elasticsearch/search/refSearch.js +0 -24
  252. package/elasticsearch/search/refSearch.js.map +0 -1
  253. package/elasticsearch/search/searchableJson.d.ts +0 -2
  254. package/elasticsearch/search/searchableJson.js +0 -53
  255. package/elasticsearch/search/searchableJson.js.map +0 -1
  256. package/elasticsearch/search/timeSearch.d.ts +0 -2
  257. package/elasticsearch/search/timeSearch.js +0 -20
  258. package/elasticsearch/search/timeSearch.js.map +0 -1
  259. package/helpers/entryIndexHelpers.d.ts +0 -18
  260. package/helpers/entryIndexHelpers.js +0 -196
  261. package/helpers/entryIndexHelpers.js.map +0 -1
  262. package/helpers/fieldIdentifier.d.ts +0 -6
  263. package/helpers/fieldIdentifier.js +0 -35
  264. package/helpers/fieldIdentifier.js.map +0 -1
  265. package/helpers/index.d.ts +0 -2
  266. package/helpers/index.js +0 -4
  267. package/helpers/index.js.map +0 -1
  268. package/index.js.map +0 -1
  269. package/operations/entry/dataLoader/types.js.map +0 -1
  270. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.d.ts +0 -18
  271. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +0 -27
  272. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js.map +0 -1
  273. package/operations/entry/elasticsearch/body.d.ts +0 -13
  274. package/operations/entry/elasticsearch/body.js +0 -135
  275. package/operations/entry/elasticsearch/body.js.map +0 -1
  276. package/operations/entry/elasticsearch/fields.d.ts +0 -10
  277. package/operations/entry/elasticsearch/fields.js +0 -401
  278. package/operations/entry/elasticsearch/fields.js.map +0 -1
  279. package/operations/entry/elasticsearch/filtering/applyFiltering.d.ts +0 -8
  280. package/operations/entry/elasticsearch/filtering/applyFiltering.js +0 -52
  281. package/operations/entry/elasticsearch/filtering/applyFiltering.js.map +0 -1
  282. package/operations/entry/elasticsearch/filtering/exec.d.ts +0 -18
  283. package/operations/entry/elasticsearch/filtering/exec.js +0 -178
  284. package/operations/entry/elasticsearch/filtering/exec.js.map +0 -1
  285. package/operations/entry/elasticsearch/filtering/index.d.ts +0 -1
  286. package/operations/entry/elasticsearch/filtering/index.js +0 -3
  287. package/operations/entry/elasticsearch/filtering/index.js.map +0 -1
  288. package/operations/entry/elasticsearch/filtering/path.d.ts +0 -16
  289. package/operations/entry/elasticsearch/filtering/path.js +0 -38
  290. package/operations/entry/elasticsearch/filtering/path.js.map +0 -1
  291. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.d.ts +0 -2
  292. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js +0 -22
  293. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js.map +0 -1
  294. package/operations/entry/elasticsearch/filtering/plugins/index.d.ts +0 -1
  295. package/operations/entry/elasticsearch/filtering/plugins/index.js +0 -8
  296. package/operations/entry/elasticsearch/filtering/plugins/index.js.map +0 -1
  297. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.d.ts +0 -2
  298. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js +0 -61
  299. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js.map +0 -1
  300. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.d.ts +0 -2
  301. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js +0 -49
  302. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js.map +0 -1
  303. package/operations/entry/elasticsearch/filtering/populated.d.ts +0 -2
  304. package/operations/entry/elasticsearch/filtering/populated.js +0 -18
  305. package/operations/entry/elasticsearch/filtering/populated.js.map +0 -1
  306. package/operations/entry/elasticsearch/filtering/values.d.ts +0 -2
  307. package/operations/entry/elasticsearch/filtering/values.js +0 -16
  308. package/operations/entry/elasticsearch/filtering/values.js.map +0 -1
  309. package/operations/entry/elasticsearch/fullTextSearch.d.ts +0 -12
  310. package/operations/entry/elasticsearch/fullTextSearch.js +0 -85
  311. package/operations/entry/elasticsearch/fullTextSearch.js.map +0 -1
  312. package/operations/entry/elasticsearch/fullTextSearchFields.d.ts +0 -8
  313. package/operations/entry/elasticsearch/fullTextSearchFields.js +0 -20
  314. package/operations/entry/elasticsearch/fullTextSearchFields.js.map +0 -1
  315. package/operations/entry/elasticsearch/initialQuery.d.ts +0 -17
  316. package/operations/entry/elasticsearch/initialQuery.js +0 -88
  317. package/operations/entry/elasticsearch/initialQuery.js.map +0 -1
  318. package/operations/entry/elasticsearch/keyword.d.ts +0 -2
  319. package/operations/entry/elasticsearch/keyword.js +0 -31
  320. package/operations/entry/elasticsearch/keyword.js.map +0 -1
  321. package/operations/entry/elasticsearch/plugins/bodyModifier.d.ts +0 -9
  322. package/operations/entry/elasticsearch/plugins/bodyModifier.js +0 -11
  323. package/operations/entry/elasticsearch/plugins/bodyModifier.js.map +0 -1
  324. package/operations/entry/elasticsearch/plugins/operator.d.ts +0 -7
  325. package/operations/entry/elasticsearch/plugins/operator.js +0 -24
  326. package/operations/entry/elasticsearch/plugins/operator.js.map +0 -1
  327. package/operations/entry/elasticsearch/plugins/queryModifier.d.ts +0 -9
  328. package/operations/entry/elasticsearch/plugins/queryModifier.js +0 -11
  329. package/operations/entry/elasticsearch/plugins/queryModifier.js.map +0 -1
  330. package/operations/entry/elasticsearch/plugins/search.d.ts +0 -7
  331. package/operations/entry/elasticsearch/plugins/search.js +0 -18
  332. package/operations/entry/elasticsearch/plugins/search.js.map +0 -1
  333. package/operations/entry/elasticsearch/plugins/sortModifier.d.ts +0 -9
  334. package/operations/entry/elasticsearch/plugins/sortModifier.js +0 -11
  335. package/operations/entry/elasticsearch/plugins/sortModifier.js.map +0 -1
  336. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.d.ts +0 -2
  337. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js +0 -6
  338. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js.map +0 -1
  339. package/operations/entry/elasticsearch/sort.d.ts +0 -12
  340. package/operations/entry/elasticsearch/sort.js +0 -107
  341. package/operations/entry/elasticsearch/sort.js.map +0 -1
  342. package/operations/entry/elasticsearch/transformValueForSearch.d.ts +0 -16
  343. package/operations/entry/elasticsearch/transformValueForSearch.js +0 -27
  344. package/operations/entry/elasticsearch/transformValueForSearch.js.map +0 -1
  345. package/operations/entry/elasticsearch/types.d.ts +0 -41
  346. package/operations/entry/elasticsearch/types.js +0 -3
  347. package/operations/entry/elasticsearch/types.js.map +0 -1
  348. package/operations/entry/index.d.ts +0 -12
  349. package/operations/entry/index.js +0 -1699
  350. package/operations/entry/index.js.map +0 -1
  351. package/operations/entry/transformations/transformEntryToIndex.d.ts +0 -10
  352. package/operations/entry/transformations/transformEntryToIndex.js +0 -24
  353. package/operations/entry/transformations/transformEntryToIndex.js.map +0 -1
  354. package/operations/group/index.d.ts +0 -9
  355. package/operations/group/index.js +0 -145
  356. package/operations/group/index.js.map +0 -1
  357. package/operations/model/index.d.ts +0 -8
  358. package/operations/model/index.js +0 -164
  359. package/operations/model/index.js.map +0 -1
  360. package/plugins/CmsElasticsearchModelFieldPlugin.d.ts +0 -69
  361. package/plugins/CmsElasticsearchModelFieldPlugin.js +0 -46
  362. package/plugins/CmsElasticsearchModelFieldPlugin.js.map +0 -1
  363. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.d.ts +0 -22
  364. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js +0 -13
  365. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js.map +0 -1
  366. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.d.ts +0 -23
  367. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js +0 -19
  368. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js.map +0 -1
  369. package/plugins/CmsEntryElasticsearchIndexPlugin.d.ts +0 -4
  370. package/plugins/CmsEntryElasticsearchIndexPlugin.js +0 -6
  371. package/plugins/CmsEntryElasticsearchIndexPlugin.js.map +0 -1
  372. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.d.ts +0 -32
  373. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js +0 -32
  374. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js.map +0 -1
  375. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.d.ts +0 -19
  376. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js +0 -13
  377. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js.map +0 -1
  378. package/plugins/CmsEntryElasticsearchSortModifierPlugin.d.ts +0 -19
  379. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js +0 -13
  380. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js.map +0 -1
  381. package/plugins/CmsEntryElasticsearchValuesModifier.d.ts +0 -33
  382. package/plugins/CmsEntryElasticsearchValuesModifier.js +0 -42
  383. package/plugins/CmsEntryElasticsearchValuesModifier.js.map +0 -1
  384. package/plugins/CmsEntryFilterPlugin.d.ts +0 -49
  385. package/plugins/CmsEntryFilterPlugin.js +0 -15
  386. package/plugins/CmsEntryFilterPlugin.js.map +0 -1
  387. package/plugins/index.d.ts +0 -8
  388. package/plugins/index.js +0 -10
  389. package/plugins/index.js.map +0 -1
  390. package/tasks/createIndexTaskPlugin.d.ts +0 -2
  391. package/tasks/createIndexTaskPlugin.js +0 -41
  392. package/tasks/createIndexTaskPlugin.js.map +0 -1
  393. package/values/NoValueContainer.d.ts +0 -5
  394. package/values/NoValueContainer.js +0 -13
  395. 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 { 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, ICmsEntryLocation, IEntryState } 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;
@@ -51,9 +51,15 @@ export interface IEntryEntityAttributesData {
51
51
  binOriginalFolderId?: string;
52
52
  values: GenericRecord;
53
53
  meta?: GenericRecord;
54
- state?: IEntryState;
54
+ system?: ICmsEntrySystem;
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;
55
61
  }
56
62
  export type IEntryEntityAttributes = IStandardEntityAttributes<IEntryEntityAttributesData>;
57
- export type IModelEntity = IEntity<IStandardEntityAttributes<CmsModel>>;
63
+ export type IModelEntity = IEntity<IStandardEntityAttributes<StorageCmsModel>>;
58
64
  export type IGroupEntity = IEntity<IStandardEntityAttributes<CmsGroup>>;
59
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,9 @@
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 ADDED
@@ -0,0 +1,55 @@
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
+ 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);
51
+ }
52
+ });
53
+ export { HeadlessCmsDdbEsFeature };
54
+
55
+ //# 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\";\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,3 +1,2 @@
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";
2
+ export { HeadlessCmsDdbEsRequestFeature } from "./requestFeature.js";
package/index.js CHANGED
@@ -1,190 +1,2 @@
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";
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 {};