@webiny/api-headless-cms-ddb-es 0.0.0-unstable.61c048f412 → 0.0.0-unstable.676006d08e

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 (404) hide show
  1. package/abstractions/CmsDdbEsDataLoaders.d.ts +5 -0
  2. package/abstractions/CmsDdbEsDataLoaders.js +5 -0
  3. package/abstractions/CmsDdbEsDataLoaders.js.map +1 -0
  4. package/abstractions/CmsDdbEsEntriesEsEntity.d.ts +5 -0
  5. package/abstractions/CmsDdbEsEntriesEsEntity.js +5 -0
  6. package/abstractions/CmsDdbEsEntriesEsEntity.js.map +1 -0
  7. package/abstractions/CmsDdbEsEntryEntity.d.ts +5 -0
  8. package/abstractions/CmsDdbEsEntryEntity.js +5 -0
  9. package/abstractions/CmsDdbEsEntryEntity.js.map +1 -0
  10. package/abstractions/CmsDdbEsGroupEntity.d.ts +5 -0
  11. package/abstractions/CmsDdbEsGroupEntity.js +5 -0
  12. package/abstractions/CmsDdbEsGroupEntity.js.map +1 -0
  13. package/abstractions/CmsDdbEsModelEntity.d.ts +5 -0
  14. package/abstractions/CmsDdbEsModelEntity.js +5 -0
  15. package/abstractions/CmsDdbEsModelEntity.js.map +1 -0
  16. package/abstractions/CmsDdbEsOsTable.d.ts +5 -0
  17. package/abstractions/CmsDdbEsOsTable.js +5 -0
  18. package/abstractions/CmsDdbEsOsTable.js.map +1 -0
  19. package/abstractions/CmsDdbEsTable.d.ts +5 -0
  20. package/abstractions/CmsDdbEsTable.js +5 -0
  21. package/abstractions/CmsDdbEsTable.js.map +1 -0
  22. package/debuggerNamespaces.d.ts +12 -0
  23. package/debuggerNamespaces.js +0 -0
  24. package/definitions/entry.js +7 -9
  25. package/definitions/entry.js.map +1 -1
  26. package/definitions/group.js +7 -9
  27. package/definitions/group.js.map +1 -1
  28. package/definitions/model.js +7 -9
  29. package/definitions/model.js.map +1 -1
  30. package/definitions/types.d.ts +9 -3
  31. package/definitions/types.js +0 -3
  32. package/feature.d.ts +10 -0
  33. package/feature.js +13 -0
  34. package/feature.js.map +1 -0
  35. package/index.d.ts +3 -3
  36. package/index.js +3 -190
  37. package/operations/entry/DdbEsCreateEntry.d.ts +26 -0
  38. package/operations/entry/DdbEsCreateEntry.js +144 -0
  39. package/operations/entry/DdbEsCreateEntry.js.map +1 -0
  40. package/operations/entry/DdbEsCreateEntryRevisionFrom.d.ts +26 -0
  41. package/operations/entry/DdbEsCreateEntryRevisionFrom.js +152 -0
  42. package/operations/entry/DdbEsCreateEntryRevisionFrom.js.map +1 -0
  43. package/operations/entry/DdbEsDeleteEntry.d.ts +18 -0
  44. package/operations/entry/DdbEsDeleteEntry.js +79 -0
  45. package/operations/entry/DdbEsDeleteEntry.js.map +1 -0
  46. package/operations/entry/DdbEsDeleteEntryRevision.d.ts +26 -0
  47. package/operations/entry/DdbEsDeleteEntryRevision.js +152 -0
  48. package/operations/entry/DdbEsDeleteEntryRevision.js.map +1 -0
  49. package/operations/entry/DdbEsDeleteMultipleEntries.d.ts +20 -0
  50. package/operations/entry/DdbEsDeleteMultipleEntries.js +85 -0
  51. package/operations/entry/DdbEsDeleteMultipleEntries.js.map +1 -0
  52. package/operations/entry/DdbEsGetEntriesByIds.d.ts +16 -0
  53. package/operations/entry/DdbEsGetEntriesByIds.js +38 -0
  54. package/operations/entry/DdbEsGetEntriesByIds.js.map +1 -0
  55. package/operations/entry/DdbEsGetEntry.d.ts +16 -0
  56. package/operations/entry/DdbEsGetEntry.js +31 -0
  57. package/operations/entry/DdbEsGetEntry.js.map +1 -0
  58. package/operations/entry/DdbEsGetLatestEntriesByIds.d.ts +16 -0
  59. package/operations/entry/DdbEsGetLatestEntriesByIds.js +38 -0
  60. package/operations/entry/DdbEsGetLatestEntriesByIds.js.map +1 -0
  61. package/operations/entry/DdbEsGetLatestRevisionByEntryId.d.ts +16 -0
  62. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js +41 -0
  63. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js.map +1 -0
  64. package/operations/entry/DdbEsGetPreviousRevision.d.ts +16 -0
  65. package/operations/entry/DdbEsGetPreviousRevision.js +59 -0
  66. package/operations/entry/DdbEsGetPreviousRevision.js.map +1 -0
  67. package/operations/entry/DdbEsGetPublishedEntriesByIds.d.ts +16 -0
  68. package/operations/entry/DdbEsGetPublishedEntriesByIds.js +38 -0
  69. package/operations/entry/DdbEsGetPublishedEntriesByIds.js.map +1 -0
  70. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.d.ts +16 -0
  71. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js +41 -0
  72. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js.map +1 -0
  73. package/operations/entry/DdbEsGetRevisionById.d.ts +16 -0
  74. package/operations/entry/DdbEsGetRevisionById.js +41 -0
  75. package/operations/entry/DdbEsGetRevisionById.js.map +1 -0
  76. package/operations/entry/DdbEsGetRevisions.d.ts +16 -0
  77. package/operations/entry/DdbEsGetRevisions.js +40 -0
  78. package/operations/entry/DdbEsGetRevisions.js.map +1 -0
  79. package/operations/entry/DdbEsGetUniqueFieldValues.d.ts +20 -0
  80. package/operations/entry/DdbEsGetUniqueFieldValues.js +81 -0
  81. package/operations/entry/DdbEsGetUniqueFieldValues.js.map +1 -0
  82. package/operations/entry/DdbEsListEntries.d.ts +30 -0
  83. package/operations/entry/DdbEsListEntries.js +114 -0
  84. package/operations/entry/DdbEsListEntries.js.map +1 -0
  85. package/operations/entry/DdbEsMoveEntry.d.ts +20 -0
  86. package/operations/entry/DdbEsMoveEntry.js +113 -0
  87. package/operations/entry/DdbEsMoveEntry.js.map +1 -0
  88. package/operations/entry/DdbEsMoveToBin.d.ts +25 -0
  89. package/operations/entry/DdbEsMoveToBin.js +141 -0
  90. package/operations/entry/DdbEsMoveToBin.js.map +1 -0
  91. package/operations/entry/DdbEsPublishEntry.d.ts +26 -0
  92. package/operations/entry/DdbEsPublishEntry.js +247 -0
  93. package/operations/entry/DdbEsPublishEntry.js.map +1 -0
  94. package/operations/entry/DdbEsRestoreFromBin.d.ts +25 -0
  95. package/operations/entry/DdbEsRestoreFromBin.js +141 -0
  96. package/operations/entry/DdbEsRestoreFromBin.js.map +1 -0
  97. package/operations/entry/DdbEsUnpublishEntry.d.ts +26 -0
  98. package/operations/entry/DdbEsUnpublishEntry.js +140 -0
  99. package/operations/entry/DdbEsUnpublishEntry.js.map +1 -0
  100. package/operations/entry/DdbEsUpdateEntry.d.ts +26 -0
  101. package/operations/entry/DdbEsUpdateEntry.js +191 -0
  102. package/operations/entry/DdbEsUpdateEntry.js.map +1 -0
  103. package/operations/entry/dataLoader/DataLoaderCache.d.ts +1 -0
  104. package/operations/entry/dataLoader/DataLoaderCache.js +22 -29
  105. package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -1
  106. package/operations/entry/dataLoader/constants.js +2 -1
  107. package/operations/entry/dataLoader/constants.js.map +1 -1
  108. package/operations/entry/dataLoader/createBatchScheduleFn.js +6 -15
  109. package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -1
  110. package/operations/entry/dataLoader/getAllEntryRevisions.js +18 -26
  111. package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -1
  112. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +28 -34
  113. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -1
  114. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +28 -34
  115. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -1
  116. package/operations/entry/dataLoader/getRevisionById.js +33 -43
  117. package/operations/entry/dataLoader/getRevisionById.js.map +1 -1
  118. package/operations/entry/dataLoader/index.js +8 -9
  119. package/operations/entry/dataLoader/index.js.map +1 -1
  120. package/operations/entry/dataLoader/types.d.ts +1 -0
  121. package/operations/entry/dataLoader/types.js +0 -3
  122. package/operations/entry/dataLoaders.d.ts +5 -5
  123. package/operations/entry/dataLoaders.js +89 -97
  124. package/operations/entry/dataLoaders.js.map +1 -1
  125. package/operations/entry/feature.d.ts +4 -0
  126. package/operations/entry/feature.js +55 -0
  127. package/operations/entry/feature.js.map +1 -0
  128. package/operations/entry/keys.d.ts +7 -6
  129. package/operations/entry/keys.js +43 -63
  130. package/operations/entry/keys.js.map +1 -1
  131. package/operations/entry/recordType.js +4 -9
  132. package/operations/entry/recordType.js.map +1 -1
  133. package/operations/entry/storageEntryUtils.d.ts +7 -0
  134. package/operations/entry/storageEntryUtils.js +14 -0
  135. package/operations/entry/storageEntryUtils.js.map +1 -0
  136. package/operations/entry/transformations/convertEntryKeys.js +21 -26
  137. package/operations/entry/transformations/convertEntryKeys.js.map +1 -1
  138. package/operations/entry/transformations/index.d.ts +6 -3
  139. package/operations/entry/transformations/index.js +85 -113
  140. package/operations/entry/transformations/index.js.map +1 -1
  141. package/operations/entry/transformations/modifyEntryValues.d.ts +7 -5
  142. package/operations/entry/transformations/modifyEntryValues.js +12 -17
  143. package/operations/entry/transformations/modifyEntryValues.js.map +1 -1
  144. package/operations/entry/transformations/transformEntryKeys.js +13 -16
  145. package/operations/entry/transformations/transformEntryKeys.js.map +1 -1
  146. package/operations/group/DdbEsCreateGroup.d.ts +14 -0
  147. package/operations/group/DdbEsCreateGroup.js +45 -0
  148. package/operations/group/DdbEsCreateGroup.js.map +1 -0
  149. package/operations/group/DdbEsDeleteGroup.d.ts +14 -0
  150. package/operations/group/DdbEsDeleteGroup.js +38 -0
  151. package/operations/group/DdbEsDeleteGroup.js.map +1 -0
  152. package/operations/group/DdbEsGetGroup.d.ts +14 -0
  153. package/operations/group/DdbEsGetGroup.js +38 -0
  154. package/operations/group/DdbEsGetGroup.js.map +1 -0
  155. package/operations/group/DdbEsListGroups.d.ts +16 -0
  156. package/operations/group/DdbEsListGroups.js +58 -0
  157. package/operations/group/DdbEsListGroups.js.map +1 -0
  158. package/operations/group/DdbEsUpdateGroup.d.ts +14 -0
  159. package/operations/group/DdbEsUpdateGroup.js +45 -0
  160. package/operations/group/DdbEsUpdateGroup.js.map +1 -0
  161. package/operations/group/feature.d.ts +4 -0
  162. package/operations/group/feature.js +19 -0
  163. package/operations/group/feature.js.map +1 -0
  164. package/operations/group/keys.d.ts +15 -0
  165. package/operations/group/keys.js +17 -0
  166. package/operations/group/keys.js.map +1 -0
  167. package/operations/model/DdbEsCreateModel.d.ts +18 -0
  168. package/operations/model/DdbEsCreateModel.js +66 -0
  169. package/operations/model/DdbEsCreateModel.js.map +1 -0
  170. package/operations/model/DdbEsDeleteModel.d.ts +14 -0
  171. package/operations/model/DdbEsDeleteModel.js +38 -0
  172. package/operations/model/DdbEsDeleteModel.js.map +1 -0
  173. package/operations/model/DdbEsGetModel.d.ts +14 -0
  174. package/operations/model/DdbEsGetModel.js +37 -0
  175. package/operations/model/DdbEsGetModel.js.map +1 -0
  176. package/operations/model/DdbEsListModels.d.ts +14 -0
  177. package/operations/model/DdbEsListModels.js +41 -0
  178. package/operations/model/DdbEsListModels.js.map +1 -0
  179. package/operations/model/DdbEsUpdateModel.d.ts +14 -0
  180. package/operations/model/DdbEsUpdateModel.js +46 -0
  181. package/operations/model/DdbEsUpdateModel.js.map +1 -0
  182. package/operations/model/feature.d.ts +4 -0
  183. package/operations/model/feature.js +19 -0
  184. package/operations/model/feature.js.map +1 -0
  185. package/operations/model/keys.d.ts +15 -0
  186. package/operations/model/keys.js +17 -0
  187. package/operations/model/keys.js.map +1 -0
  188. package/package.json +39 -30
  189. package/registry/CmsEntitiesDbRegistryDecorator.d.ts +27 -0
  190. package/registry/CmsEntitiesDbRegistryDecorator.js +46 -0
  191. package/registry/CmsEntitiesDbRegistryDecorator.js.map +1 -0
  192. package/storageFeature.d.ts +12 -0
  193. package/storageFeature.js +25 -0
  194. package/storageFeature.js.map +1 -0
  195. package/tablesFeature.d.ts +8 -0
  196. package/tablesFeature.js +53 -0
  197. package/tablesFeature.js.map +1 -0
  198. package/tasks/CreateElasticsearchIndexTask.d.ts +15 -0
  199. package/tasks/CreateElasticsearchIndexTask.js +49 -0
  200. package/tasks/CreateElasticsearchIndexTask.js.map +1 -0
  201. package/types.d.ts +11 -155
  202. package/types.js +7 -36
  203. package/types.js.map +1 -1
  204. package/configurations.d.ts +0 -18
  205. package/configurations.js +0 -37
  206. package/configurations.js.map +0 -1
  207. package/definitions/types.js.map +0 -1
  208. package/dynamoDb/index.d.ts +0 -3
  209. package/dynamoDb/index.js +0 -8
  210. package/dynamoDb/index.js.map +0 -1
  211. package/dynamoDb/storage/longText.d.ts +0 -10
  212. package/dynamoDb/storage/longText.js +0 -88
  213. package/dynamoDb/storage/longText.js.map +0 -1
  214. package/dynamoDb/storage/richText.d.ts +0 -2
  215. package/dynamoDb/storage/richText.js +0 -51
  216. package/dynamoDb/storage/richText.js.map +0 -1
  217. package/elasticsearch/createElasticsearchIndex.d.ts +0 -9
  218. package/elasticsearch/createElasticsearchIndex.js +0 -32
  219. package/elasticsearch/createElasticsearchIndex.js.map +0 -1
  220. package/elasticsearch/deleteElasticsearchIndex.d.ts +0 -8
  221. package/elasticsearch/deleteElasticsearchIndex.js +0 -31
  222. package/elasticsearch/deleteElasticsearchIndex.js.map +0 -1
  223. package/elasticsearch/index.d.ts +0 -2
  224. package/elasticsearch/index.js +0 -5
  225. package/elasticsearch/index.js.map +0 -1
  226. package/elasticsearch/indexing/dateTimeIndexing.d.ts +0 -3
  227. package/elasticsearch/indexing/dateTimeIndexing.js +0 -81
  228. package/elasticsearch/indexing/dateTimeIndexing.js.map +0 -1
  229. package/elasticsearch/indexing/defaultFieldIndexing.d.ts +0 -3
  230. package/elasticsearch/indexing/defaultFieldIndexing.js +0 -47
  231. package/elasticsearch/indexing/defaultFieldIndexing.js.map +0 -1
  232. package/elasticsearch/indexing/index.d.ts +0 -2
  233. package/elasticsearch/indexing/index.js +0 -10
  234. package/elasticsearch/indexing/index.js.map +0 -1
  235. package/elasticsearch/indexing/jsonIndexing.d.ts +0 -2
  236. package/elasticsearch/indexing/jsonIndexing.js +0 -21
  237. package/elasticsearch/indexing/jsonIndexing.js.map +0 -1
  238. package/elasticsearch/indexing/longTextIndexing.d.ts +0 -7
  239. package/elasticsearch/indexing/longTextIndexing.js +0 -35
  240. package/elasticsearch/indexing/longTextIndexing.js.map +0 -1
  241. package/elasticsearch/indexing/numberIndexing.d.ts +0 -3
  242. package/elasticsearch/indexing/numberIndexing.js +0 -34
  243. package/elasticsearch/indexing/numberIndexing.js.map +0 -1
  244. package/elasticsearch/indexing/objectIndexing.d.ts +0 -12
  245. package/elasticsearch/indexing/objectIndexing.js +0 -194
  246. package/elasticsearch/indexing/objectIndexing.js.map +0 -1
  247. package/elasticsearch/indexing/richTextIndexing.d.ts +0 -3
  248. package/elasticsearch/indexing/richTextIndexing.js +0 -24
  249. package/elasticsearch/indexing/richTextIndexing.js.map +0 -1
  250. package/elasticsearch/indices/base.d.ts +0 -2
  251. package/elasticsearch/indices/base.js +0 -7
  252. package/elasticsearch/indices/base.js.map +0 -1
  253. package/elasticsearch/indices/index.d.ts +0 -1
  254. package/elasticsearch/indices/index.js +0 -6
  255. package/elasticsearch/indices/index.js.map +0 -1
  256. package/elasticsearch/search/index.d.ts +0 -3
  257. package/elasticsearch/search/index.js +0 -6
  258. package/elasticsearch/search/index.js.map +0 -1
  259. package/elasticsearch/search/refSearch.d.ts +0 -2
  260. package/elasticsearch/search/refSearch.js +0 -24
  261. package/elasticsearch/search/refSearch.js.map +0 -1
  262. package/elasticsearch/search/searchableJson.d.ts +0 -2
  263. package/elasticsearch/search/searchableJson.js +0 -53
  264. package/elasticsearch/search/searchableJson.js.map +0 -1
  265. package/elasticsearch/search/timeSearch.d.ts +0 -2
  266. package/elasticsearch/search/timeSearch.js +0 -20
  267. package/elasticsearch/search/timeSearch.js.map +0 -1
  268. package/helpers/entryIndexHelpers.d.ts +0 -18
  269. package/helpers/entryIndexHelpers.js +0 -196
  270. package/helpers/entryIndexHelpers.js.map +0 -1
  271. package/helpers/fieldIdentifier.d.ts +0 -6
  272. package/helpers/fieldIdentifier.js +0 -35
  273. package/helpers/fieldIdentifier.js.map +0 -1
  274. package/helpers/index.d.ts +0 -2
  275. package/helpers/index.js +0 -4
  276. package/helpers/index.js.map +0 -1
  277. package/index.js.map +0 -1
  278. package/operations/entry/dataLoader/types.js.map +0 -1
  279. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.d.ts +0 -18
  280. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +0 -27
  281. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js.map +0 -1
  282. package/operations/entry/elasticsearch/body.d.ts +0 -13
  283. package/operations/entry/elasticsearch/body.js +0 -135
  284. package/operations/entry/elasticsearch/body.js.map +0 -1
  285. package/operations/entry/elasticsearch/fields.d.ts +0 -10
  286. package/operations/entry/elasticsearch/fields.js +0 -401
  287. package/operations/entry/elasticsearch/fields.js.map +0 -1
  288. package/operations/entry/elasticsearch/filtering/applyFiltering.d.ts +0 -8
  289. package/operations/entry/elasticsearch/filtering/applyFiltering.js +0 -52
  290. package/operations/entry/elasticsearch/filtering/applyFiltering.js.map +0 -1
  291. package/operations/entry/elasticsearch/filtering/exec.d.ts +0 -18
  292. package/operations/entry/elasticsearch/filtering/exec.js +0 -178
  293. package/operations/entry/elasticsearch/filtering/exec.js.map +0 -1
  294. package/operations/entry/elasticsearch/filtering/index.d.ts +0 -1
  295. package/operations/entry/elasticsearch/filtering/index.js +0 -3
  296. package/operations/entry/elasticsearch/filtering/index.js.map +0 -1
  297. package/operations/entry/elasticsearch/filtering/path.d.ts +0 -16
  298. package/operations/entry/elasticsearch/filtering/path.js +0 -38
  299. package/operations/entry/elasticsearch/filtering/path.js.map +0 -1
  300. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.d.ts +0 -2
  301. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js +0 -22
  302. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js.map +0 -1
  303. package/operations/entry/elasticsearch/filtering/plugins/index.d.ts +0 -1
  304. package/operations/entry/elasticsearch/filtering/plugins/index.js +0 -8
  305. package/operations/entry/elasticsearch/filtering/plugins/index.js.map +0 -1
  306. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.d.ts +0 -2
  307. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js +0 -61
  308. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js.map +0 -1
  309. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.d.ts +0 -2
  310. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js +0 -49
  311. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js.map +0 -1
  312. package/operations/entry/elasticsearch/filtering/populated.d.ts +0 -2
  313. package/operations/entry/elasticsearch/filtering/populated.js +0 -18
  314. package/operations/entry/elasticsearch/filtering/populated.js.map +0 -1
  315. package/operations/entry/elasticsearch/filtering/values.d.ts +0 -2
  316. package/operations/entry/elasticsearch/filtering/values.js +0 -16
  317. package/operations/entry/elasticsearch/filtering/values.js.map +0 -1
  318. package/operations/entry/elasticsearch/fullTextSearch.d.ts +0 -12
  319. package/operations/entry/elasticsearch/fullTextSearch.js +0 -85
  320. package/operations/entry/elasticsearch/fullTextSearch.js.map +0 -1
  321. package/operations/entry/elasticsearch/fullTextSearchFields.d.ts +0 -8
  322. package/operations/entry/elasticsearch/fullTextSearchFields.js +0 -20
  323. package/operations/entry/elasticsearch/fullTextSearchFields.js.map +0 -1
  324. package/operations/entry/elasticsearch/initialQuery.d.ts +0 -17
  325. package/operations/entry/elasticsearch/initialQuery.js +0 -88
  326. package/operations/entry/elasticsearch/initialQuery.js.map +0 -1
  327. package/operations/entry/elasticsearch/keyword.d.ts +0 -2
  328. package/operations/entry/elasticsearch/keyword.js +0 -31
  329. package/operations/entry/elasticsearch/keyword.js.map +0 -1
  330. package/operations/entry/elasticsearch/plugins/bodyModifier.d.ts +0 -9
  331. package/operations/entry/elasticsearch/plugins/bodyModifier.js +0 -11
  332. package/operations/entry/elasticsearch/plugins/bodyModifier.js.map +0 -1
  333. package/operations/entry/elasticsearch/plugins/operator.d.ts +0 -7
  334. package/operations/entry/elasticsearch/plugins/operator.js +0 -24
  335. package/operations/entry/elasticsearch/plugins/operator.js.map +0 -1
  336. package/operations/entry/elasticsearch/plugins/queryModifier.d.ts +0 -9
  337. package/operations/entry/elasticsearch/plugins/queryModifier.js +0 -11
  338. package/operations/entry/elasticsearch/plugins/queryModifier.js.map +0 -1
  339. package/operations/entry/elasticsearch/plugins/search.d.ts +0 -7
  340. package/operations/entry/elasticsearch/plugins/search.js +0 -18
  341. package/operations/entry/elasticsearch/plugins/search.js.map +0 -1
  342. package/operations/entry/elasticsearch/plugins/sortModifier.d.ts +0 -9
  343. package/operations/entry/elasticsearch/plugins/sortModifier.js +0 -11
  344. package/operations/entry/elasticsearch/plugins/sortModifier.js.map +0 -1
  345. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.d.ts +0 -2
  346. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js +0 -6
  347. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js.map +0 -1
  348. package/operations/entry/elasticsearch/sort.d.ts +0 -12
  349. package/operations/entry/elasticsearch/sort.js +0 -107
  350. package/operations/entry/elasticsearch/sort.js.map +0 -1
  351. package/operations/entry/elasticsearch/transformValueForSearch.d.ts +0 -16
  352. package/operations/entry/elasticsearch/transformValueForSearch.js +0 -27
  353. package/operations/entry/elasticsearch/transformValueForSearch.js.map +0 -1
  354. package/operations/entry/elasticsearch/types.d.ts +0 -41
  355. package/operations/entry/elasticsearch/types.js +0 -3
  356. package/operations/entry/elasticsearch/types.js.map +0 -1
  357. package/operations/entry/index.d.ts +0 -12
  358. package/operations/entry/index.js +0 -1699
  359. package/operations/entry/index.js.map +0 -1
  360. package/operations/entry/transformations/transformEntryToIndex.d.ts +0 -10
  361. package/operations/entry/transformations/transformEntryToIndex.js +0 -24
  362. package/operations/entry/transformations/transformEntryToIndex.js.map +0 -1
  363. package/operations/group/index.d.ts +0 -9
  364. package/operations/group/index.js +0 -145
  365. package/operations/group/index.js.map +0 -1
  366. package/operations/model/index.d.ts +0 -8
  367. package/operations/model/index.js +0 -164
  368. package/operations/model/index.js.map +0 -1
  369. package/plugins/CmsElasticsearchModelFieldPlugin.d.ts +0 -69
  370. package/plugins/CmsElasticsearchModelFieldPlugin.js +0 -46
  371. package/plugins/CmsElasticsearchModelFieldPlugin.js.map +0 -1
  372. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.d.ts +0 -22
  373. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js +0 -13
  374. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js.map +0 -1
  375. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.d.ts +0 -23
  376. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js +0 -19
  377. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js.map +0 -1
  378. package/plugins/CmsEntryElasticsearchIndexPlugin.d.ts +0 -4
  379. package/plugins/CmsEntryElasticsearchIndexPlugin.js +0 -6
  380. package/plugins/CmsEntryElasticsearchIndexPlugin.js.map +0 -1
  381. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.d.ts +0 -32
  382. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js +0 -32
  383. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js.map +0 -1
  384. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.d.ts +0 -19
  385. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js +0 -13
  386. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js.map +0 -1
  387. package/plugins/CmsEntryElasticsearchSortModifierPlugin.d.ts +0 -19
  388. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js +0 -13
  389. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js.map +0 -1
  390. package/plugins/CmsEntryElasticsearchValuesModifier.d.ts +0 -33
  391. package/plugins/CmsEntryElasticsearchValuesModifier.js +0 -42
  392. package/plugins/CmsEntryElasticsearchValuesModifier.js.map +0 -1
  393. package/plugins/CmsEntryFilterPlugin.d.ts +0 -49
  394. package/plugins/CmsEntryFilterPlugin.js +0 -15
  395. package/plugins/CmsEntryFilterPlugin.js.map +0 -1
  396. package/plugins/index.d.ts +0 -8
  397. package/plugins/index.js +0 -10
  398. package/plugins/index.js.map +0 -1
  399. package/tasks/createIndexTaskPlugin.d.ts +0 -2
  400. package/tasks/createIndexTaskPlugin.js +0 -41
  401. package/tasks/createIndexTaskPlugin.js.map +0 -1
  402. package/values/NoValueContainer.d.ts +0 -5
  403. package/values/NoValueContainer.js +0 -13
  404. package/values/NoValueContainer.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ import type { IDataLoadersHandler } from "../types.js";
2
+ export declare const CmsDdbEsDataLoaders: import("@webiny/di").Abstraction<IDataLoadersHandler>;
3
+ export declare namespace CmsDdbEsDataLoaders {
4
+ type Interface = IDataLoadersHandler;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsDataLoaders = createAbstraction("Cms/DdbEs/DataLoaders");
3
+ export { CmsDdbEsDataLoaders };
4
+
5
+ //# sourceMappingURL=CmsDdbEsDataLoaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsDataLoaders.js","sources":["../../src/abstractions/CmsDdbEsDataLoaders.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IDataLoadersHandler } from \"~/types.js\";\n\nexport const CmsDdbEsDataLoaders = createAbstraction<IDataLoadersHandler>(\"Cms/DdbEs/DataLoaders\");\n\nexport namespace CmsDdbEsDataLoaders {\n export type Interface = IDataLoadersHandler;\n}\n"],"names":["CmsDdbEsDataLoaders","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAuC"}
@@ -0,0 +1,5 @@
1
+ import type { IOpenSearchEntity } from "@webiny/api-opensearch-aws";
2
+ export declare const CmsDdbEsEntriesEsEntity: import("@webiny/di").Abstraction<IOpenSearchEntity>;
3
+ export declare namespace CmsDdbEsEntriesEsEntity {
4
+ type Interface = IOpenSearchEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsEntriesEsEntity = createAbstraction("Cms/DdbEs/EntriesEsEntity");
3
+ export { CmsDdbEsEntriesEsEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsEntriesEsEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsEntriesEsEntity.js","sources":["../../src/abstractions/CmsDdbEsEntriesEsEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IOpenSearchEntity } from \"@webiny/api-opensearch-aws\";\n\nexport const CmsDdbEsEntriesEsEntity = createAbstraction<IOpenSearchEntity>(\n \"Cms/DdbEs/EntriesEsEntity\"\n);\n\nexport namespace CmsDdbEsEntriesEsEntity {\n export type Interface = IOpenSearchEntity;\n}\n"],"names":["CmsDdbEsEntriesEsEntity","createAbstraction"],"mappings":";AAGO,MAAMA,0BAA0BC,kBACnC"}
@@ -0,0 +1,5 @@
1
+ import type { IEntryEntity } from "../definitions/types.js";
2
+ export declare const CmsDdbEsEntryEntity: import("@webiny/di").Abstraction<IEntryEntity>;
3
+ export declare namespace CmsDdbEsEntryEntity {
4
+ type Interface = IEntryEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsEntryEntity = createAbstraction("Cms/DdbEs/EntryEntity");
3
+ export { CmsDdbEsEntryEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsEntryEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsEntryEntity.js","sources":["../../src/abstractions/CmsDdbEsEntryEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IEntryEntity } from \"~/definitions/types.js\";\n\nexport const CmsDdbEsEntryEntity = createAbstraction<IEntryEntity>(\"Cms/DdbEs/EntryEntity\");\n\nexport namespace CmsDdbEsEntryEntity {\n export type Interface = IEntryEntity;\n}\n"],"names":["CmsDdbEsEntryEntity","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAgC"}
@@ -0,0 +1,5 @@
1
+ import type { IGroupEntity } from "../definitions/types.js";
2
+ export declare const CmsDdbEsGroupEntity: import("@webiny/di").Abstraction<IGroupEntity>;
3
+ export declare namespace CmsDdbEsGroupEntity {
4
+ type Interface = IGroupEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsGroupEntity = createAbstraction("Cms/DdbEs/GroupEntity");
3
+ export { CmsDdbEsGroupEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsGroupEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsGroupEntity.js","sources":["../../src/abstractions/CmsDdbEsGroupEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IGroupEntity } from \"~/definitions/types.js\";\n\nexport const CmsDdbEsGroupEntity = createAbstraction<IGroupEntity>(\"Cms/DdbEs/GroupEntity\");\n\nexport namespace CmsDdbEsGroupEntity {\n export type Interface = IGroupEntity;\n}\n"],"names":["CmsDdbEsGroupEntity","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAgC"}
@@ -0,0 +1,5 @@
1
+ import type { IModelEntity } from "../definitions/types.js";
2
+ export declare const CmsDdbEsModelEntity: import("@webiny/di").Abstraction<IModelEntity>;
3
+ export declare namespace CmsDdbEsModelEntity {
4
+ type Interface = IModelEntity;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsModelEntity = createAbstraction("Cms/DdbEs/ModelEntity");
3
+ export { CmsDdbEsModelEntity };
4
+
5
+ //# sourceMappingURL=CmsDdbEsModelEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsModelEntity.js","sources":["../../src/abstractions/CmsDdbEsModelEntity.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { IModelEntity } from \"~/definitions/types.js\";\n\nexport const CmsDdbEsModelEntity = createAbstraction<IModelEntity>(\"Cms/DdbEs/ModelEntity\");\n\nexport namespace CmsDdbEsModelEntity {\n export type Interface = IModelEntity;\n}\n"],"names":["CmsDdbEsModelEntity","createAbstraction"],"mappings":";AAGO,MAAMA,sBAAsBC,kBAAgC"}
@@ -0,0 +1,5 @@
1
+ import type { ITable } from "@webiny/db-dynamodb";
2
+ export declare const CmsDdbEsOsTable: import("@webiny/di").Abstraction<ITable<string, string, string>>;
3
+ export declare namespace CmsDdbEsOsTable {
4
+ type Interface = ITable;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsOsTable = createAbstraction("Cms/DdbEs/OsTable");
3
+ export { CmsDdbEsOsTable };
4
+
5
+ //# sourceMappingURL=CmsDdbEsOsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsOsTable.js","sources":["../../src/abstractions/CmsDdbEsOsTable.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { ITable } from \"@webiny/db-dynamodb\";\n\nexport const CmsDdbEsOsTable = createAbstraction<ITable>(\"Cms/DdbEs/OsTable\");\n\nexport namespace CmsDdbEsOsTable {\n export type Interface = ITable;\n}\n"],"names":["CmsDdbEsOsTable","createAbstraction"],"mappings":";AAGO,MAAMA,kBAAkBC,kBAA0B"}
@@ -0,0 +1,5 @@
1
+ import type { ITable } from "@webiny/db-dynamodb";
2
+ export declare const CmsDdbEsTable: import("@webiny/di").Abstraction<ITable<string, string, string>>;
3
+ export declare namespace CmsDdbEsTable {
4
+ type Interface = ITable;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { createAbstraction } from "@webiny/feature/api";
2
+ const CmsDdbEsTable = createAbstraction("Cms/DdbEs/Table");
3
+ export { CmsDdbEsTable };
4
+
5
+ //# sourceMappingURL=CmsDdbEsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstractions/CmsDdbEsTable.js","sources":["../../src/abstractions/CmsDdbEsTable.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { ITable } from \"@webiny/db-dynamodb\";\n\nexport const CmsDdbEsTable = createAbstraction<ITable>(\"Cms/DdbEs/Table\");\n\nexport namespace CmsDdbEsTable {\n export type Interface = ITable;\n}\n"],"names":["CmsDdbEsTable","createAbstraction"],"mappings":";AAGO,MAAMA,gBAAgBC,kBAA0B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Claims the `cms.` debug namespace prefix.
3
+ *
4
+ * The module specifier has to be exactly this one: augmenting a relative path would silently do
5
+ * nothing.
6
+ */
7
+ declare module "@webiny/api-core/features/debugger/abstractions.js" {
8
+ interface DebugNamespaces {
9
+ cms: `cms.${string}`;
10
+ }
11
+ }
12
+ export {};
File without changes
@@ -1,13 +1,11 @@
1
1
  import { createStandardEntity } from "@webiny/db-dynamodb";
2
- export const createEntryEntity = params => {
3
- const {
4
- table,
5
- entityName
6
- } = params;
7
- return createStandardEntity({
8
- name: entityName,
9
- table: table.table
10
- });
2
+ const createEntryEntity = (params)=>{
3
+ const { table, entityName } = params;
4
+ return createStandardEntity({
5
+ name: entityName,
6
+ table: table.table
7
+ });
11
8
  };
9
+ export { createEntryEntity };
12
10
 
13
11
  //# sourceMappingURL=entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createStandardEntity","createEntryEntity","params","table","entityName","name"],"sources":["entry.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IEntryEntity, IEntryEntityAttributesData } from \"~/definitions/types.js\";\n\nexport interface CreateEntryEntityParams {\n table: ITable;\n entityName: string;\n}\nexport const createEntryEntity = (params: CreateEntryEntityParams): IEntryEntity => {\n const { table, entityName } = params;\n return createStandardEntity<IEntryEntityAttributesData>({\n name: entityName,\n table: table.table\n });\n};\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAqB,qBAAqB;AAOvE,OAAO,MAAMC,iBAAiB,GAAIC,MAA+B,IAAmB;EAChF,MAAM;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGF,MAAM;EACpC,OAAOF,oBAAoB,CAA6B;IACpDK,IAAI,EAAED,UAAU;IAChBD,KAAK,EAAEA,KAAK,CAACA;EACjB,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"definitions/entry.js","sources":["../../src/definitions/entry.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IEntryEntity, IEntryEntityAttributesData } from \"~/definitions/types.js\";\n\nexport interface CreateEntryEntityParams {\n table: ITable;\n entityName: string;\n}\nexport const createEntryEntity = (params: CreateEntryEntityParams): IEntryEntity => {\n const { table, entityName } = params;\n return createStandardEntity<IEntryEntityAttributesData>({\n name: entityName,\n table: table.table\n });\n};\n"],"names":["createEntryEntity","params","table","entityName","createStandardEntity"],"mappings":";AAOO,MAAMA,oBAAoB,CAACC;IAC9B,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAE,GAAGF;IAC9B,OAAOG,qBAAiD;QACpD,MAAMD;QACN,OAAOD,MAAM,KAAK;IACtB;AACJ"}
@@ -1,13 +1,11 @@
1
1
  import { createStandardEntity } from "@webiny/db-dynamodb";
2
- export const createGroupEntity = params => {
3
- const {
4
- table,
5
- entityName
6
- } = params;
7
- return createStandardEntity({
8
- table: table.table,
9
- name: entityName
10
- });
2
+ const createGroupEntity = (params)=>{
3
+ const { table, entityName } = params;
4
+ return createStandardEntity({
5
+ table: table.table,
6
+ name: entityName
7
+ });
11
8
  };
9
+ export { createGroupEntity };
12
10
 
13
11
  //# sourceMappingURL=group.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createStandardEntity","createGroupEntity","params","table","entityName","name"],"sources":["group.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IGroupEntity } from \"~/definitions/types.js\";\nimport type { CmsGroup } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\nexport const createGroupEntity = (params: Params): IGroupEntity => {\n const { table, entityName } = params;\n return createStandardEntity<CmsGroup>({\n table: table.table,\n name: entityName\n });\n};\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAqB,qBAAqB;AAQvE,OAAO,MAAMC,iBAAiB,GAAIC,MAAc,IAAmB;EAC/D,MAAM;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGF,MAAM;EACpC,OAAOF,oBAAoB,CAAW;IAClCG,KAAK,EAAEA,KAAK,CAACA,KAAK;IAClBE,IAAI,EAAED;EACV,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"definitions/group.js","sources":["../../src/definitions/group.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IGroupEntity } from \"~/definitions/types.js\";\nimport type { CmsGroup } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\nexport const createGroupEntity = (params: Params): IGroupEntity => {\n const { table, entityName } = params;\n return createStandardEntity<CmsGroup>({\n table: table.table,\n name: entityName\n });\n};\n"],"names":["createGroupEntity","params","table","entityName","createStandardEntity"],"mappings":";AAQO,MAAMA,oBAAoB,CAACC;IAC9B,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAE,GAAGF;IAC9B,OAAOG,qBAA+B;QAClC,OAAOF,MAAM,KAAK;QAClB,MAAMC;IACV;AACJ"}
@@ -1,13 +1,11 @@
1
1
  import { createStandardEntity } from "@webiny/db-dynamodb";
2
- export const createModelEntity = params => {
3
- const {
4
- table,
5
- entityName
6
- } = params;
7
- return createStandardEntity({
8
- table: table.table,
9
- name: entityName
10
- });
2
+ const createModelEntity = (params)=>{
3
+ const { table, entityName } = params;
4
+ return createStandardEntity({
5
+ table: table.table,
6
+ name: entityName
7
+ });
11
8
  };
9
+ export { createModelEntity };
12
10
 
13
11
  //# sourceMappingURL=model.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createStandardEntity","createModelEntity","params","table","entityName","name"],"sources":["model.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IModelEntity } from \"~/definitions/types.js\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\n\nexport const createModelEntity = (params: Params): IModelEntity => {\n const { table, entityName } = params;\n return createStandardEntity<CmsModel>({\n table: table.table,\n name: entityName\n });\n};\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAqB,qBAAqB;AASvE,OAAO,MAAMC,iBAAiB,GAAIC,MAAc,IAAmB;EAC/D,MAAM;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGF,MAAM;EACpC,OAAOF,oBAAoB,CAAW;IAClCG,KAAK,EAAEA,KAAK,CAACA,KAAK;IAClBE,IAAI,EAAED;EACV,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"definitions/model.js","sources":["../../src/definitions/model.ts"],"sourcesContent":["import { createStandardEntity, type ITable } from \"@webiny/db-dynamodb\";\nimport type { IModelEntity } from \"~/definitions/types.js\";\nimport type { StorageCmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\ninterface Params {\n table: ITable;\n entityName: string;\n}\n\nexport const createModelEntity = (params: Params): IModelEntity => {\n const { table, entityName } = params;\n return createStandardEntity<StorageCmsModel>({\n table: table.table,\n name: entityName\n });\n};\n"],"names":["createModelEntity","params","table","entityName","createStandardEntity"],"mappings":";AASO,MAAMA,oBAAoB,CAACC;IAC9B,MAAM,EAAEC,KAAK,EAAEC,UAAU,EAAE,GAAGF;IAC9B,OAAOG,qBAAsC;QACzC,OAAOF,MAAM,KAAK;QAClB,MAAMC;IACV;AACJ"}
@@ -1,6 +1,6 @@
1
1
  import type { IEntity, IStandardEntityAttributes } from "@webiny/db-dynamodb";
2
2
  import type { GenericRecord } from "@webiny/api/types.js";
3
- import type { CmsEntryStatus, CmsGroup, CmsIdentity, CmsModel, 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,10 @@
1
+ /**
2
+ * DynamoDB+OpenSearch CMS storage in one container: the tables and entities, and the storage. A
3
+ * composition registers the two apart: the tables and entities once, in the root
4
+ * (`HeadlessCmsDdbEsTablesFeature`), and the storage in each tenant scope on this storage
5
+ * (`HeadlessCmsDdbEsStorageFeature`).
6
+ */
7
+ export declare const HeadlessCmsDdbEsFeature: {
8
+ name: string;
9
+ register(container: import("@webiny/di").Container): void;
10
+ };
package/feature.js ADDED
@@ -0,0 +1,13 @@
1
+ import { createFeature } from "@webiny/feature/api/index.js";
2
+ import { HeadlessCmsDdbEsTablesFeature } from "./tablesFeature.js";
3
+ import { HeadlessCmsDdbEsStorageFeature } from "./storageFeature.js";
4
+ const HeadlessCmsDdbEsFeature = createFeature({
5
+ name: "cms.storageOperations.openSearch",
6
+ register: (container)=>{
7
+ HeadlessCmsDdbEsTablesFeature.register(container);
8
+ HeadlessCmsDdbEsStorageFeature.register(container);
9
+ }
10
+ });
11
+ export { HeadlessCmsDdbEsFeature };
12
+
13
+ //# sourceMappingURL=feature.js.map
package/feature.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sources":["../src/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api/index.js\";\nimport { HeadlessCmsDdbEsTablesFeature } from \"./tablesFeature.js\";\nimport { HeadlessCmsDdbEsStorageFeature } from \"./storageFeature.js\";\n\n/**\n * DynamoDB+OpenSearch CMS storage in one container: the tables and entities, and the storage. A\n * composition registers the two apart: the tables and entities once, in the root\n * (`HeadlessCmsDdbEsTablesFeature`), and the storage in each tenant scope on this storage\n * (`HeadlessCmsDdbEsStorageFeature`).\n */\nexport const HeadlessCmsDdbEsFeature = createFeature({\n name: \"cms.storageOperations.openSearch\",\n register: container => {\n HeadlessCmsDdbEsTablesFeature.register(container);\n HeadlessCmsDdbEsStorageFeature.register(container);\n }\n});\n"],"names":["HeadlessCmsDdbEsFeature","createFeature","container","HeadlessCmsDdbEsTablesFeature","HeadlessCmsDdbEsStorageFeature"],"mappings":";;;AAUO,MAAMA,0BAA0BC,cAAc;IACjD,MAAM;IACN,UAAUC,CAAAA;QACNC,8BAA8B,QAAQ,CAACD;QACvCE,+BAA+B,QAAQ,CAACF;IAC5C;AACJ"}
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
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 { HeadlessCmsDdbEsTablesFeature } from "./tablesFeature.js";
3
+ export { HeadlessCmsDdbEsStorageFeature } from "./storageFeature.js";
package/index.js CHANGED
@@ -1,190 +1,3 @@
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 { HeadlessCmsDdbEsTablesFeature } from "./tablesFeature.js";
3
+ export { HeadlessCmsDdbEsStorageFeature } from "./storageFeature.js";
@@ -0,0 +1,26 @@
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
+ import { ScopeTenant } from "@webiny/api-core/features/tenancy/ScopeTenant/index.js";
10
+ declare class DdbEsCreateEntryImpl implements CreateEntryStorageOperation.Interface {
11
+ private entity;
12
+ private esEntity;
13
+ private dataLoaders;
14
+ private storageModelProvider;
15
+ private fieldIndexRegistry;
16
+ private compressionHandler;
17
+ private indexProvider;
18
+ private valuesModifiers;
19
+ private scopeTenant;
20
+ 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[], scopeTenant: ScopeTenant.Interface);
21
+ execute<T extends CmsEntryValues = CmsEntryValues>(initialModel: CmsModel, params: CmsEntryStorageOperationsCreateParams<T>): Promise<import("@webiny/api-headless-cms/types/types.js").CmsStorageEntry<T>>;
22
+ }
23
+ export declare const DdbEsCreateEntry: typeof DdbEsCreateEntryImpl & {
24
+ __abstraction: import("@webiny/di").Abstraction<import("@webiny/api-headless-cms/features/shared/storageOperations/entry/CreateEntryStorageOperation.js").ICreateEntryStorageOperation>;
25
+ };
26
+ export {};