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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/abstractions/CmsDdbEsDataLoaders.d.ts +5 -0
  2. package/abstractions/CmsDdbEsDataLoaders.js +5 -0
  3. package/abstractions/CmsDdbEsDataLoaders.js.map +1 -0
  4. package/abstractions/CmsDdbEsEntriesEsEntity.d.ts +5 -0
  5. package/abstractions/CmsDdbEsEntriesEsEntity.js +5 -0
  6. package/abstractions/CmsDdbEsEntriesEsEntity.js.map +1 -0
  7. package/abstractions/CmsDdbEsEntryEntity.d.ts +5 -0
  8. package/abstractions/CmsDdbEsEntryEntity.js +5 -0
  9. package/abstractions/CmsDdbEsEntryEntity.js.map +1 -0
  10. package/abstractions/CmsDdbEsGroupEntity.d.ts +5 -0
  11. package/abstractions/CmsDdbEsGroupEntity.js +5 -0
  12. package/abstractions/CmsDdbEsGroupEntity.js.map +1 -0
  13. package/abstractions/CmsDdbEsModelEntity.d.ts +5 -0
  14. package/abstractions/CmsDdbEsModelEntity.js +5 -0
  15. package/abstractions/CmsDdbEsModelEntity.js.map +1 -0
  16. package/abstractions/CmsDdbEsOsTable.d.ts +5 -0
  17. package/abstractions/CmsDdbEsOsTable.js +5 -0
  18. package/abstractions/CmsDdbEsOsTable.js.map +1 -0
  19. package/abstractions/CmsDdbEsTable.d.ts +5 -0
  20. package/abstractions/CmsDdbEsTable.js +5 -0
  21. package/abstractions/CmsDdbEsTable.js.map +1 -0
  22. package/definitions/entry.js +7 -9
  23. package/definitions/entry.js.map +1 -1
  24. package/definitions/group.js +7 -9
  25. package/definitions/group.js.map +1 -1
  26. package/definitions/model.js +7 -9
  27. package/definitions/model.js.map +1 -1
  28. package/definitions/types.d.ts +4 -0
  29. package/definitions/types.js +0 -3
  30. package/feature.d.ts +9 -1
  31. package/feature.js +46 -179
  32. package/feature.js.map +1 -1
  33. package/index.d.ts +2 -1
  34. package/index.js +2 -3
  35. package/operations/entry/DdbEsCreateEntry.d.ts +24 -0
  36. package/operations/entry/DdbEsCreateEntry.js +134 -0
  37. package/operations/entry/DdbEsCreateEntry.js.map +1 -0
  38. package/operations/entry/DdbEsCreateEntryRevisionFrom.d.ts +24 -0
  39. package/operations/entry/DdbEsCreateEntryRevisionFrom.js +139 -0
  40. package/operations/entry/DdbEsCreateEntryRevisionFrom.js.map +1 -0
  41. package/operations/entry/DdbEsDeleteEntry.d.ts +18 -0
  42. package/operations/entry/DdbEsDeleteEntry.js +79 -0
  43. package/operations/entry/DdbEsDeleteEntry.js.map +1 -0
  44. package/operations/entry/DdbEsDeleteEntryRevision.d.ts +24 -0
  45. package/operations/entry/DdbEsDeleteEntryRevision.js +136 -0
  46. package/operations/entry/DdbEsDeleteEntryRevision.js.map +1 -0
  47. package/operations/entry/DdbEsDeleteMultipleEntries.d.ts +18 -0
  48. package/operations/entry/DdbEsDeleteMultipleEntries.js +80 -0
  49. package/operations/entry/DdbEsDeleteMultipleEntries.js.map +1 -0
  50. package/operations/entry/DdbEsGetEntriesByIds.d.ts +14 -0
  51. package/operations/entry/DdbEsGetEntriesByIds.js +31 -0
  52. package/operations/entry/DdbEsGetEntriesByIds.js.map +1 -0
  53. package/operations/entry/DdbEsGetEntry.d.ts +14 -0
  54. package/operations/entry/DdbEsGetEntry.js +27 -0
  55. package/operations/entry/DdbEsGetEntry.js.map +1 -0
  56. package/operations/entry/DdbEsGetLatestEntriesByIds.d.ts +14 -0
  57. package/operations/entry/DdbEsGetLatestEntriesByIds.js +31 -0
  58. package/operations/entry/DdbEsGetLatestEntriesByIds.js.map +1 -0
  59. package/operations/entry/DdbEsGetLatestRevisionByEntryId.d.ts +14 -0
  60. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js +34 -0
  61. package/operations/entry/DdbEsGetLatestRevisionByEntryId.js.map +1 -0
  62. package/operations/entry/DdbEsGetPreviousRevision.d.ts +14 -0
  63. package/operations/entry/DdbEsGetPreviousRevision.js +56 -0
  64. package/operations/entry/DdbEsGetPreviousRevision.js.map +1 -0
  65. package/operations/entry/DdbEsGetPublishedEntriesByIds.d.ts +14 -0
  66. package/operations/entry/DdbEsGetPublishedEntriesByIds.js +31 -0
  67. package/operations/entry/DdbEsGetPublishedEntriesByIds.js.map +1 -0
  68. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.d.ts +14 -0
  69. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js +34 -0
  70. package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js.map +1 -0
  71. package/operations/entry/DdbEsGetRevisionById.d.ts +14 -0
  72. package/operations/entry/DdbEsGetRevisionById.js +34 -0
  73. package/operations/entry/DdbEsGetRevisionById.js.map +1 -0
  74. package/operations/entry/DdbEsGetRevisions.d.ts +14 -0
  75. package/operations/entry/DdbEsGetRevisions.js +33 -0
  76. package/operations/entry/DdbEsGetRevisions.js.map +1 -0
  77. package/operations/entry/DdbEsGetUniqueFieldValues.d.ts +18 -0
  78. package/operations/entry/DdbEsGetUniqueFieldValues.js +76 -0
  79. package/operations/entry/DdbEsGetUniqueFieldValues.js.map +1 -0
  80. package/operations/entry/DdbEsListEntries.d.ts +25 -0
  81. package/operations/entry/DdbEsListEntries.js +91 -0
  82. package/operations/entry/DdbEsListEntries.js.map +1 -0
  83. package/operations/entry/DdbEsMoveEntry.d.ts +20 -0
  84. package/operations/entry/DdbEsMoveEntry.js +113 -0
  85. package/operations/entry/DdbEsMoveEntry.js.map +1 -0
  86. package/operations/entry/DdbEsMoveToBin.d.ts +23 -0
  87. package/operations/entry/DdbEsMoveToBin.js +137 -0
  88. package/operations/entry/DdbEsMoveToBin.js.map +1 -0
  89. package/operations/entry/DdbEsPublishEntry.d.ts +24 -0
  90. package/operations/entry/DdbEsPublishEntry.js +231 -0
  91. package/operations/entry/DdbEsPublishEntry.js.map +1 -0
  92. package/operations/entry/DdbEsRestoreFromBin.d.ts +23 -0
  93. package/operations/entry/DdbEsRestoreFromBin.js +137 -0
  94. package/operations/entry/DdbEsRestoreFromBin.js.map +1 -0
  95. package/operations/entry/DdbEsUnpublishEntry.d.ts +24 -0
  96. package/operations/entry/DdbEsUnpublishEntry.js +127 -0
  97. package/operations/entry/DdbEsUnpublishEntry.js.map +1 -0
  98. package/operations/entry/DdbEsUpdateEntry.d.ts +24 -0
  99. package/operations/entry/DdbEsUpdateEntry.js +175 -0
  100. package/operations/entry/DdbEsUpdateEntry.js.map +1 -0
  101. package/operations/entry/dataLoader/DataLoaderCache.js +22 -26
  102. package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -1
  103. package/operations/entry/dataLoader/constants.js +2 -1
  104. package/operations/entry/dataLoader/constants.js.map +1 -1
  105. package/operations/entry/dataLoader/createBatchScheduleFn.js +6 -15
  106. package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -1
  107. package/operations/entry/dataLoader/getAllEntryRevisions.js +18 -29
  108. package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -1
  109. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +27 -37
  110. package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -1
  111. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +27 -37
  112. package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -1
  113. package/operations/entry/dataLoader/getRevisionById.js +32 -46
  114. package/operations/entry/dataLoader/getRevisionById.js.map +1 -1
  115. package/operations/entry/dataLoader/index.js +8 -9
  116. package/operations/entry/dataLoader/index.js.map +1 -1
  117. package/operations/entry/dataLoader/types.js +0 -3
  118. package/operations/entry/dataLoaders.d.ts +5 -5
  119. package/operations/entry/dataLoaders.js +89 -99
  120. package/operations/entry/dataLoaders.js.map +1 -1
  121. package/{features/CmsEntryOpenSearchIndex → operations/entry}/feature.d.ts +1 -1
  122. package/operations/entry/feature.js +53 -0
  123. package/operations/entry/feature.js.map +1 -0
  124. package/operations/entry/keys.js +43 -63
  125. package/operations/entry/keys.js.map +1 -1
  126. package/operations/entry/recordType.js +4 -9
  127. package/operations/entry/recordType.js.map +1 -1
  128. package/operations/entry/storageEntryUtils.d.ts +7 -0
  129. package/operations/entry/storageEntryUtils.js +14 -0
  130. package/operations/entry/storageEntryUtils.js.map +1 -0
  131. package/operations/entry/transformations/convertEntryKeys.js +21 -26
  132. package/operations/entry/transformations/convertEntryKeys.js.map +1 -1
  133. package/operations/entry/transformations/index.d.ts +2 -5
  134. package/operations/entry/transformations/index.js +85 -115
  135. package/operations/entry/transformations/index.js.map +1 -1
  136. package/operations/entry/transformations/modifyEntryValues.d.ts +3 -3
  137. package/operations/entry/transformations/modifyEntryValues.js +12 -17
  138. package/operations/entry/transformations/modifyEntryValues.js.map +1 -1
  139. package/operations/entry/transformations/transformEntryKeys.js +13 -16
  140. package/operations/entry/transformations/transformEntryKeys.js.map +1 -1
  141. package/operations/group/DdbEsCreateGroup.d.ts +12 -0
  142. package/operations/group/DdbEsCreateGroup.js +35 -0
  143. package/operations/group/DdbEsCreateGroup.js.map +1 -0
  144. package/operations/group/DdbEsDeleteGroup.d.ts +12 -0
  145. package/operations/group/DdbEsDeleteGroup.js +31 -0
  146. package/operations/group/DdbEsDeleteGroup.js.map +1 -0
  147. package/operations/group/DdbEsGetGroup.d.ts +12 -0
  148. package/operations/group/DdbEsGetGroup.js +31 -0
  149. package/operations/group/DdbEsGetGroup.js.map +1 -0
  150. package/operations/group/DdbEsListGroups.d.ts +14 -0
  151. package/operations/group/DdbEsListGroups.js +52 -0
  152. package/operations/group/DdbEsListGroups.js.map +1 -0
  153. package/operations/group/DdbEsUpdateGroup.d.ts +12 -0
  154. package/operations/group/DdbEsUpdateGroup.js +35 -0
  155. package/operations/group/DdbEsUpdateGroup.js.map +1 -0
  156. package/{features/CmsEntryOpenSearchFilter → operations/group}/feature.d.ts +1 -1
  157. package/operations/group/feature.js +19 -0
  158. package/operations/group/feature.js.map +1 -0
  159. package/operations/group/keys.d.ts +15 -0
  160. package/operations/group/keys.js +17 -0
  161. package/operations/group/keys.js.map +1 -0
  162. package/operations/model/DdbEsCreateModel.d.ts +16 -0
  163. package/operations/model/DdbEsCreateModel.js +56 -0
  164. package/operations/model/DdbEsCreateModel.js.map +1 -0
  165. package/operations/model/DdbEsDeleteModel.d.ts +12 -0
  166. package/operations/model/DdbEsDeleteModel.js +31 -0
  167. package/operations/model/DdbEsDeleteModel.js.map +1 -0
  168. package/operations/model/DdbEsGetModel.d.ts +12 -0
  169. package/operations/model/DdbEsGetModel.js +30 -0
  170. package/operations/model/DdbEsGetModel.js.map +1 -0
  171. package/operations/model/DdbEsListModels.d.ts +12 -0
  172. package/operations/model/DdbEsListModels.js +36 -0
  173. package/operations/model/DdbEsListModels.js.map +1 -0
  174. package/operations/model/DdbEsUpdateModel.d.ts +12 -0
  175. package/operations/model/DdbEsUpdateModel.js +36 -0
  176. package/operations/model/DdbEsUpdateModel.js.map +1 -0
  177. package/{features/CmsEntryOpenSearchFieldIndex → operations/model}/feature.d.ts +1 -1
  178. package/operations/model/feature.js +19 -0
  179. package/operations/model/feature.js.map +1 -0
  180. package/operations/model/keys.d.ts +15 -0
  181. package/operations/model/keys.js +17 -0
  182. package/operations/model/keys.js.map +1 -0
  183. package/package.json +33 -27
  184. package/requestFeature.d.ts +20 -0
  185. package/requestFeature.js +54 -0
  186. package/requestFeature.js.map +1 -0
  187. package/tasks/CreateElasticsearchIndexTask.d.ts +13 -0
  188. package/tasks/CreateElasticsearchIndexTask.js +40 -0
  189. package/tasks/CreateElasticsearchIndexTask.js.map +1 -0
  190. package/types.d.ts +11 -50
  191. package/types.js +7 -13
  192. package/types.js.map +1 -1
  193. package/configurations.d.ts +0 -19
  194. package/configurations.js +0 -39
  195. package/configurations.js.map +0 -1
  196. package/definitions/types.js.map +0 -1
  197. package/elasticsearch/createElasticsearchIndex.d.ts +0 -9
  198. package/elasticsearch/createElasticsearchIndex.js +0 -74
  199. package/elasticsearch/createElasticsearchIndex.js.map +0 -1
  200. package/elasticsearch/deleteElasticsearchIndex.d.ts +0 -8
  201. package/elasticsearch/deleteElasticsearchIndex.js +0 -31
  202. package/elasticsearch/deleteElasticsearchIndex.js.map +0 -1
  203. package/exports/api/cms/opensearch.d.ts +0 -9
  204. package/exports/api/cms/opensearch.js +0 -11
  205. package/exports/api/cms/opensearch.js.map +0 -1
  206. package/features/CmsEntryOpenSearchBodyModifier/abstractions.d.ts +0 -16
  207. package/features/CmsEntryOpenSearchBodyModifier/abstractions.js +0 -4
  208. package/features/CmsEntryOpenSearchBodyModifier/abstractions.js.map +0 -1
  209. package/features/CmsEntryOpenSearchBodyModifier/index.d.ts +0 -1
  210. package/features/CmsEntryOpenSearchBodyModifier/index.js +0 -3
  211. package/features/CmsEntryOpenSearchBodyModifier/index.js.map +0 -1
  212. package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.d.ts +0 -13
  213. package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.js +0 -36
  214. package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.js.map +0 -1
  215. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.d.ts +0 -35
  216. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.js +0 -4
  217. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.js.map +0 -1
  218. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.d.ts +0 -11
  219. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.js +0 -4
  220. package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.js.map +0 -1
  221. package/features/CmsEntryOpenSearchFieldIndex/constants.d.ts +0 -1
  222. package/features/CmsEntryOpenSearchFieldIndex/constants.js +0 -3
  223. package/features/CmsEntryOpenSearchFieldIndex/constants.js.map +0 -1
  224. package/features/CmsEntryOpenSearchFieldIndex/feature.js +0 -24
  225. package/features/CmsEntryOpenSearchFieldIndex/feature.js.map +0 -1
  226. package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.d.ts +0 -11
  227. package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.js +0 -77
  228. package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.js.map +0 -1
  229. package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.d.ts +0 -10
  230. package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.js +0 -39
  231. package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.js.map +0 -1
  232. package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.d.ts +0 -10
  233. package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.js +0 -22
  234. package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.js.map +0 -1
  235. package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.d.ts +0 -10
  236. package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.js +0 -25
  237. package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.js.map +0 -1
  238. package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.d.ts +0 -11
  239. package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.js +0 -37
  240. package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.js.map +0 -1
  241. package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.d.ts +0 -10
  242. package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.js +0 -158
  243. package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.js.map +0 -1
  244. package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.d.ts +0 -10
  245. package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.js +0 -22
  246. package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.js.map +0 -1
  247. package/features/CmsEntryOpenSearchFieldIndex/index.d.ts +0 -3
  248. package/features/CmsEntryOpenSearchFieldIndex/index.js +0 -5
  249. package/features/CmsEntryOpenSearchFieldIndex/index.js.map +0 -1
  250. package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.d.ts +0 -11
  251. package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.js +0 -38
  252. package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.js.map +0 -1
  253. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.d.ts +0 -37
  254. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.js +0 -4
  255. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.js.map +0 -1
  256. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.d.ts +0 -9
  257. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.js +0 -4
  258. package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.js.map +0 -1
  259. package/features/CmsEntryOpenSearchFilter/constants.d.ts +0 -1
  260. package/features/CmsEntryOpenSearchFilter/constants.js +0 -3
  261. package/features/CmsEntryOpenSearchFilter/constants.js.map +0 -1
  262. package/features/CmsEntryOpenSearchFilter/feature.js +0 -16
  263. package/features/CmsEntryOpenSearchFilter/feature.js.map +0 -1
  264. package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.d.ts +0 -9
  265. package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.js +0 -23
  266. package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.js.map +0 -1
  267. package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.d.ts +0 -9
  268. package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.js +0 -61
  269. package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.js.map +0 -1
  270. package/features/CmsEntryOpenSearchFilter/fields/RefFilter.d.ts +0 -9
  271. package/features/CmsEntryOpenSearchFilter/fields/RefFilter.js +0 -49
  272. package/features/CmsEntryOpenSearchFilter/fields/RefFilter.js.map +0 -1
  273. package/features/CmsEntryOpenSearchFilter/index.d.ts +0 -3
  274. package/features/CmsEntryOpenSearchFilter/index.js +0 -5
  275. package/features/CmsEntryOpenSearchFilter/index.js.map +0 -1
  276. package/features/CmsEntryOpenSearchFullTextSearch/abstractions.d.ts +0 -20
  277. package/features/CmsEntryOpenSearchFullTextSearch/abstractions.js +0 -4
  278. package/features/CmsEntryOpenSearchFullTextSearch/abstractions.js.map +0 -1
  279. package/features/CmsEntryOpenSearchFullTextSearch/index.d.ts +0 -1
  280. package/features/CmsEntryOpenSearchFullTextSearch/index.js +0 -3
  281. package/features/CmsEntryOpenSearchFullTextSearch/index.js.map +0 -1
  282. package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.d.ts +0 -11
  283. package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.js +0 -16
  284. package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.js.map +0 -1
  285. package/features/CmsEntryOpenSearchIndex/abstractions.d.ts +0 -14
  286. package/features/CmsEntryOpenSearchIndex/abstractions.js +0 -4
  287. package/features/CmsEntryOpenSearchIndex/abstractions.js.map +0 -1
  288. package/features/CmsEntryOpenSearchIndex/feature.js +0 -10
  289. package/features/CmsEntryOpenSearchIndex/feature.js.map +0 -1
  290. package/features/CmsEntryOpenSearchIndex/index.d.ts +0 -3
  291. package/features/CmsEntryOpenSearchIndex/index.js +0 -5
  292. package/features/CmsEntryOpenSearchIndex/index.js.map +0 -1
  293. package/features/CmsEntryOpenSearchQueryModifier/abstractions.d.ts +0 -16
  294. package/features/CmsEntryOpenSearchQueryModifier/abstractions.js +0 -4
  295. package/features/CmsEntryOpenSearchQueryModifier/abstractions.js.map +0 -1
  296. package/features/CmsEntryOpenSearchQueryModifier/index.d.ts +0 -1
  297. package/features/CmsEntryOpenSearchQueryModifier/index.js +0 -3
  298. package/features/CmsEntryOpenSearchQueryModifier/index.js.map +0 -1
  299. package/features/CmsEntryOpenSearchSortModifier/abstractions.d.ts +0 -15
  300. package/features/CmsEntryOpenSearchSortModifier/abstractions.js +0 -4
  301. package/features/CmsEntryOpenSearchSortModifier/abstractions.js.map +0 -1
  302. package/features/CmsEntryOpenSearchSortModifier/index.d.ts +0 -1
  303. package/features/CmsEntryOpenSearchSortModifier/index.js +0 -3
  304. package/features/CmsEntryOpenSearchSortModifier/index.js.map +0 -1
  305. package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.d.ts +0 -12
  306. package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.js +0 -27
  307. package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.js.map +0 -1
  308. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.d.ts +0 -22
  309. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.js +0 -4
  310. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.js.map +0 -1
  311. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.d.ts +0 -10
  312. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.js +0 -4
  313. package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.js.map +0 -1
  314. package/features/CmsEntryOpenSearchValueSearch/feature.d.ts +0 -4
  315. package/features/CmsEntryOpenSearchValueSearch/feature.js +0 -16
  316. package/features/CmsEntryOpenSearchValueSearch/feature.js.map +0 -1
  317. package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.d.ts +0 -10
  318. package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.js +0 -23
  319. package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.js.map +0 -1
  320. package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.d.ts +0 -10
  321. package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.js +0 -55
  322. package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.js.map +0 -1
  323. package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.d.ts +0 -10
  324. package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.js +0 -24
  325. package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.js.map +0 -1
  326. package/features/CmsEntryOpenSearchValueSearch/index.d.ts +0 -3
  327. package/features/CmsEntryOpenSearchValueSearch/index.js +0 -5
  328. package/features/CmsEntryOpenSearchValueSearch/index.js.map +0 -1
  329. package/features/CmsEntryOpenSearchValuesModifier/abstractions.d.ts +0 -23
  330. package/features/CmsEntryOpenSearchValuesModifier/abstractions.js +0 -4
  331. package/features/CmsEntryOpenSearchValuesModifier/abstractions.js.map +0 -1
  332. package/features/CmsEntryOpenSearchValuesModifier/index.d.ts +0 -1
  333. package/features/CmsEntryOpenSearchValuesModifier/index.js +0 -3
  334. package/features/CmsEntryOpenSearchValuesModifier/index.js.map +0 -1
  335. package/helpers/entryIndexHelpers.d.ts +0 -20
  336. package/helpers/entryIndexHelpers.js +0 -134
  337. package/helpers/entryIndexHelpers.js.map +0 -1
  338. package/helpers/fieldIdentifier.d.ts +0 -6
  339. package/helpers/fieldIdentifier.js +0 -35
  340. package/helpers/fieldIdentifier.js.map +0 -1
  341. package/helpers/index.d.ts +0 -2
  342. package/helpers/index.js +0 -4
  343. package/helpers/index.js.map +0 -1
  344. package/index.js.map +0 -1
  345. package/operations/entry/dataLoader/types.js.map +0 -1
  346. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.d.ts +0 -18
  347. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +0 -27
  348. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js.map +0 -1
  349. package/operations/entry/elasticsearch/body.d.ts +0 -29
  350. package/operations/entry/elasticsearch/body.js +0 -138
  351. package/operations/entry/elasticsearch/body.js.map +0 -1
  352. package/operations/entry/elasticsearch/fields/createSystemField.d.ts +0 -4
  353. package/operations/entry/elasticsearch/fields/createSystemField.js +0 -10
  354. package/operations/entry/elasticsearch/fields/createSystemField.js.map +0 -1
  355. package/operations/entry/elasticsearch/fields/live.d.ts +0 -2
  356. package/operations/entry/elasticsearch/fields/live.js +0 -45
  357. package/operations/entry/elasticsearch/fields/live.js.map +0 -1
  358. package/operations/entry/elasticsearch/fields/location.d.ts +0 -2
  359. package/operations/entry/elasticsearch/fields/location.js +0 -45
  360. package/operations/entry/elasticsearch/fields/location.js.map +0 -1
  361. package/operations/entry/elasticsearch/fields/state.d.ts +0 -2
  362. package/operations/entry/elasticsearch/fields/state.js +0 -93
  363. package/operations/entry/elasticsearch/fields/state.js.map +0 -1
  364. package/operations/entry/elasticsearch/fields.d.ts +0 -12
  365. package/operations/entry/elasticsearch/fields.js +0 -231
  366. package/operations/entry/elasticsearch/fields.js.map +0 -1
  367. package/operations/entry/elasticsearch/filtering/applyFiltering.d.ts +0 -9
  368. package/operations/entry/elasticsearch/filtering/applyFiltering.js +0 -52
  369. package/operations/entry/elasticsearch/filtering/applyFiltering.js.map +0 -1
  370. package/operations/entry/elasticsearch/filtering/exec.d.ts +0 -22
  371. package/operations/entry/elasticsearch/filtering/exec.js +0 -125
  372. package/operations/entry/elasticsearch/filtering/exec.js.map +0 -1
  373. package/operations/entry/elasticsearch/filtering/index.d.ts +0 -1
  374. package/operations/entry/elasticsearch/filtering/index.js +0 -3
  375. package/operations/entry/elasticsearch/filtering/index.js.map +0 -1
  376. package/operations/entry/elasticsearch/filtering/path.d.ts +0 -17
  377. package/operations/entry/elasticsearch/filtering/path.js +0 -36
  378. package/operations/entry/elasticsearch/filtering/path.js.map +0 -1
  379. package/operations/entry/elasticsearch/filtering/populated.d.ts +0 -2
  380. package/operations/entry/elasticsearch/filtering/populated.js +0 -18
  381. package/operations/entry/elasticsearch/filtering/populated.js.map +0 -1
  382. package/operations/entry/elasticsearch/filtering/values.d.ts +0 -2
  383. package/operations/entry/elasticsearch/filtering/values.js +0 -16
  384. package/operations/entry/elasticsearch/filtering/values.js.map +0 -1
  385. package/operations/entry/elasticsearch/fullTextSearch.d.ts +0 -13
  386. package/operations/entry/elasticsearch/fullTextSearch.js +0 -88
  387. package/operations/entry/elasticsearch/fullTextSearch.js.map +0 -1
  388. package/operations/entry/elasticsearch/fullTextSearchFields.d.ts +0 -8
  389. package/operations/entry/elasticsearch/fullTextSearchFields.js +0 -20
  390. package/operations/entry/elasticsearch/fullTextSearchFields.js.map +0 -1
  391. package/operations/entry/elasticsearch/initialQuery.d.ts +0 -17
  392. package/operations/entry/elasticsearch/initialQuery.js +0 -88
  393. package/operations/entry/elasticsearch/initialQuery.js.map +0 -1
  394. package/operations/entry/elasticsearch/keyword.d.ts +0 -2
  395. package/operations/entry/elasticsearch/keyword.js +0 -31
  396. package/operations/entry/elasticsearch/keyword.js.map +0 -1
  397. package/operations/entry/elasticsearch/plugins/operator.d.ts +0 -7
  398. package/operations/entry/elasticsearch/plugins/operator.js +0 -24
  399. package/operations/entry/elasticsearch/plugins/operator.js.map +0 -1
  400. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.d.ts +0 -2
  401. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js +0 -6
  402. package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js.map +0 -1
  403. package/operations/entry/elasticsearch/sort.d.ts +0 -12
  404. package/operations/entry/elasticsearch/sort.js +0 -103
  405. package/operations/entry/elasticsearch/sort.js.map +0 -1
  406. package/operations/entry/elasticsearch/transformValueForSearch.d.ts +0 -9
  407. package/operations/entry/elasticsearch/transformValueForSearch.js +0 -17
  408. package/operations/entry/elasticsearch/transformValueForSearch.js.map +0 -1
  409. package/operations/entry/elasticsearch/types.d.ts +0 -34
  410. package/operations/entry/elasticsearch/types.js +0 -3
  411. package/operations/entry/elasticsearch/types.js.map +0 -1
  412. package/operations/entry/index.d.ts +0 -32
  413. package/operations/entry/index.js +0 -1761
  414. package/operations/entry/index.js.map +0 -1
  415. package/operations/entry/transformations/transformEntryToIndex.d.ts +0 -12
  416. package/operations/entry/transformations/transformEntryToIndex.js +0 -26
  417. package/operations/entry/transformations/transformEntryToIndex.js.map +0 -1
  418. package/operations/group/index.d.ts +0 -9
  419. package/operations/group/index.js +0 -142
  420. package/operations/group/index.js.map +0 -1
  421. package/operations/model/index.d.ts +0 -8
  422. package/operations/model/index.js +0 -163
  423. package/operations/model/index.js.map +0 -1
  424. package/tasks/createIndexTaskPlugin.d.ts +0 -2
  425. package/tasks/createIndexTaskPlugin.js +0 -48
  426. package/tasks/createIndexTaskPlugin.js.map +0 -1
  427. package/values/NoValueContainer.d.ts +0 -5
  428. package/values/NoValueContainer.js +0 -13
  429. package/values/NoValueContainer.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"names":["createFeature","DefaultFilter","RefFilter","ObjectFilter","CmsEntryOpenSearchFilterRegistry","CmsEntryOpenSearchFilterFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { DefaultFilter } from \"./fields/DefaultFilter.js\";\nimport { RefFilter } from \"./fields/RefFilter.js\";\nimport { ObjectFilter } from \"./fields/ObjectFilter.js\";\nimport { CmsEntryOpenSearchFilterRegistry } from \"./CmsEntryOpenSearchFilterRegistry.js\";\n\nexport const CmsEntryOpenSearchFilterFeature = createFeature({\n name: \"Cms/Entry/OpenSearch/FilterFeature\",\n register: container => {\n container.register(DefaultFilter);\n container.register(RefFilter);\n container.register(ObjectFilter);\n container.register(CmsEntryOpenSearchFilterRegistry);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,aAAa;AACtB,SAASC,SAAS;AAClB,SAASC,YAAY;AACrB,SAASC,gCAAgC;AAEzC,OAAO,MAAMC,+BAA+B,GAAGL,aAAa,CAAC;EACzDM,IAAI,EAAE,oCAAoC;EAC1CC,QAAQ,EAAEC,SAAS,IAAI;IACnBA,SAAS,CAACD,QAAQ,CAACN,aAAa,CAAC;IACjCO,SAAS,CAACD,QAAQ,CAACL,SAAS,CAAC;IAC7BM,SAAS,CAACD,QAAQ,CAACJ,YAAY,CAAC;IAChCK,SAAS,CAACD,QAAQ,CAACH,gCAAgC,CAAC;EACxD;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
2
- declare class DefaultFilterImpl implements CmsEntryOpenSearchFilter.Interface {
3
- readonly fieldType: "*";
4
- exec(params: CmsEntryOpenSearchFilter.ExecParams): void;
5
- }
6
- export declare const DefaultFilter: typeof DefaultFilterImpl & {
7
- __abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchFilter.js").ICmsEntryOpenSearchFilter>;
8
- };
9
- export {};
@@ -1,23 +0,0 @@
1
- import WebinyError from "@webiny/error";
2
- import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
3
- import { FILTER_DEFAULT } from "../constants.js";
4
- class DefaultFilterImpl {
5
- fieldType = FILTER_DEFAULT;
6
- exec(params) {
7
- const {
8
- applyFiltering,
9
- field
10
- } = params;
11
- if (!field.searchable) {
12
- const identifier = [...field.parents.map(p => p.fieldId), field.field.fieldId].join(".");
13
- throw new WebinyError(`Field "${identifier}" is not searchable.`);
14
- }
15
- applyFiltering(params);
16
- }
17
- }
18
- export const DefaultFilter = CmsEntryOpenSearchFilter.createImplementation({
19
- implementation: DefaultFilterImpl,
20
- dependencies: []
21
- });
22
-
23
- //# sourceMappingURL=DefaultFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["WebinyError","CmsEntryOpenSearchFilter","FILTER_DEFAULT","DefaultFilterImpl","fieldType","exec","params","applyFiltering","field","searchable","identifier","parents","map","p","fieldId","join","DefaultFilter","createImplementation","implementation","dependencies"],"sources":["DefaultFilter.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { CmsEntryOpenSearchFilter } from \"../abstractions/CmsEntryOpenSearchFilter.js\";\nimport { FILTER_DEFAULT } from \"../constants.js\";\n\nclass DefaultFilterImpl implements CmsEntryOpenSearchFilter.Interface {\n public readonly fieldType = FILTER_DEFAULT;\n\n public exec(params: CmsEntryOpenSearchFilter.ExecParams): void {\n const { applyFiltering, field } = params;\n if (!field.searchable) {\n const identifier = [...field.parents.map(p => p.fieldId), field.field.fieldId].join(\n \".\"\n );\n throw new WebinyError(`Field \"${identifier}\" is not searchable.`);\n }\n applyFiltering(params);\n }\n}\n\nexport const DefaultFilter = CmsEntryOpenSearchFilter.createImplementation({\n implementation: DefaultFilterImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AACvC,SAASC,wBAAwB;AACjC,SAASC,cAAc;AAEvB,MAAMC,iBAAiB,CAA+C;EAClDC,SAAS,GAAGF,cAAc;EAEnCG,IAAIA,CAACC,MAA2C,EAAQ;IAC3D,MAAM;MAAEC,cAAc;MAAEC;IAAM,CAAC,GAAGF,MAAM;IACxC,IAAI,CAACE,KAAK,CAACC,UAAU,EAAE;MACnB,MAAMC,UAAU,GAAG,CAAC,GAAGF,KAAK,CAACG,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,OAAO,CAAC,EAAEN,KAAK,CAACA,KAAK,CAACM,OAAO,CAAC,CAACC,IAAI,CAC/E,GACJ,CAAC;MACD,MAAM,IAAIf,WAAW,CAAC,UAAUU,UAAU,sBAAsB,CAAC;IACrE;IACAH,cAAc,CAACD,MAAM,CAAC;EAC1B;AACJ;AAEA,OAAO,MAAMU,aAAa,GAAGf,wBAAwB,CAACgB,oBAAoB,CAAC;EACvEC,cAAc,EAAEf,iBAAiB;EACjCgB,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
2
- declare class ObjectFilterImpl implements CmsEntryOpenSearchFilter.Interface {
3
- readonly fieldType = "object";
4
- exec(params: CmsEntryOpenSearchFilter.ExecParams): void;
5
- }
6
- export declare const ObjectFilter: typeof ObjectFilterImpl & {
7
- __abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchFilter.js").ICmsEntryOpenSearchFilter>;
8
- };
9
- export {};
@@ -1,61 +0,0 @@
1
- import WebinyError from "@webiny/error";
2
- import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
3
- import { parseWhereKey } from "@webiny/api-opensearch";
4
- class ObjectFilterImpl {
5
- fieldType = "object";
6
- exec(params) {
7
- const {
8
- applyFiltering,
9
- value: where,
10
- fields,
11
- field: parentField,
12
- getFilter,
13
- query
14
- } = params;
15
- /**
16
- * Because this is an object field, we must construct filters based on the value property.
17
- * Value property is actually a where condition.
18
- */
19
- for (const key in where) {
20
- const value = where[key];
21
- if (value === undefined) {
22
- continue;
23
- }
24
- const {
25
- field: whereFieldId,
26
- operator
27
- } = parseWhereKey(key);
28
- const identifier = [...parentField.parents.map(p => p.fieldId), parentField.field.fieldId, whereFieldId].join(".");
29
- const field = fields[identifier];
30
- if (!field) {
31
- throw new WebinyError(`There is no field "${identifier}".`, "OBJECT_FILTER_FIELD_ERROR", {
32
- fields: Object.keys(fields)
33
- });
34
- }
35
- /**
36
- * We need to find the filter for the child field.
37
- * This will throw error if no filter can be found.
38
- */
39
- const filter = getFilter(field.type);
40
- /**
41
- * Basically this allows us to go into depth as much as we want with the object fields.
42
- */
43
- filter.exec({
44
- applyFiltering,
45
- getFilter,
46
- key,
47
- value,
48
- operator,
49
- field,
50
- fields,
51
- query
52
- });
53
- }
54
- }
55
- }
56
- export const ObjectFilter = CmsEntryOpenSearchFilter.createImplementation({
57
- implementation: ObjectFilterImpl,
58
- dependencies: []
59
- });
60
-
61
- //# sourceMappingURL=ObjectFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["WebinyError","CmsEntryOpenSearchFilter","parseWhereKey","ObjectFilterImpl","fieldType","exec","params","applyFiltering","value","where","fields","field","parentField","getFilter","query","key","undefined","whereFieldId","operator","identifier","parents","map","p","fieldId","join","Object","keys","filter","type","ObjectFilter","createImplementation","implementation","dependencies"],"sources":["ObjectFilter.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { CmsEntryOpenSearchFilter } from \"../abstractions/CmsEntryOpenSearchFilter.js\";\nimport { parseWhereKey } from \"@webiny/api-opensearch\";\n\nclass ObjectFilterImpl implements CmsEntryOpenSearchFilter.Interface {\n public readonly fieldType = \"object\";\n\n public exec(params: CmsEntryOpenSearchFilter.ExecParams): void {\n const {\n applyFiltering,\n value: where,\n fields,\n field: parentField,\n getFilter,\n query\n } = params;\n /**\n * Because this is an object field, we must construct filters based on the value property.\n * Value property is actually a where condition.\n */\n for (const key in where) {\n const value = where[key];\n if (value === undefined) {\n continue;\n }\n const { field: whereFieldId, operator } = parseWhereKey(key);\n\n const identifier = [\n ...parentField.parents.map(p => p.fieldId),\n parentField.field.fieldId,\n whereFieldId\n ].join(\".\");\n const field = fields[identifier];\n if (!field) {\n throw new WebinyError(\n `There is no field \"${identifier}\".`,\n \"OBJECT_FILTER_FIELD_ERROR\",\n {\n fields: Object.keys(fields)\n }\n );\n }\n /**\n * We need to find the filter for the child field.\n * This will throw error if no filter can be found.\n */\n const filter = getFilter(field.type);\n /**\n * Basically this allows us to go into depth as much as we want with the object fields.\n */\n filter.exec({\n applyFiltering,\n getFilter,\n key,\n value,\n operator,\n field,\n fields,\n query\n });\n }\n }\n}\n\nexport const ObjectFilter = CmsEntryOpenSearchFilter.createImplementation({\n implementation: ObjectFilterImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AACvC,SAASC,wBAAwB;AACjC,SAASC,aAAa,QAAQ,wBAAwB;AAEtD,MAAMC,gBAAgB,CAA+C;EACjDC,SAAS,GAAG,QAAQ;EAE7BC,IAAIA,CAACC,MAA2C,EAAQ;IAC3D,MAAM;MACFC,cAAc;MACdC,KAAK,EAAEC,KAAK;MACZC,MAAM;MACNC,KAAK,EAAEC,WAAW;MAClBC,SAAS;MACTC;IACJ,CAAC,GAAGR,MAAM;IACV;AACR;AACA;AACA;IACQ,KAAK,MAAMS,GAAG,IAAIN,KAAK,EAAE;MACrB,MAAMD,KAAK,GAAGC,KAAK,CAACM,GAAG,CAAC;MACxB,IAAIP,KAAK,KAAKQ,SAAS,EAAE;QACrB;MACJ;MACA,MAAM;QAAEL,KAAK,EAAEM,YAAY;QAAEC;MAAS,CAAC,GAAGhB,aAAa,CAACa,GAAG,CAAC;MAE5D,MAAMI,UAAU,GAAG,CACf,GAAGP,WAAW,CAACQ,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,OAAO,CAAC,EAC1CX,WAAW,CAACD,KAAK,CAACY,OAAO,EACzBN,YAAY,CACf,CAACO,IAAI,CAAC,GAAG,CAAC;MACX,MAAMb,KAAK,GAAGD,MAAM,CAACS,UAAU,CAAC;MAChC,IAAI,CAACR,KAAK,EAAE;QACR,MAAM,IAAIX,WAAW,CACjB,sBAAsBmB,UAAU,IAAI,EACpC,2BAA2B,EAC3B;UACIT,MAAM,EAAEe,MAAM,CAACC,IAAI,CAAChB,MAAM;QAC9B,CACJ,CAAC;MACL;MACA;AACZ;AACA;AACA;MACY,MAAMiB,MAAM,GAAGd,SAAS,CAACF,KAAK,CAACiB,IAAI,CAAC;MACpC;AACZ;AACA;MACYD,MAAM,CAACtB,IAAI,CAAC;QACRE,cAAc;QACdM,SAAS;QACTE,GAAG;QACHP,KAAK;QACLU,QAAQ;QACRP,KAAK;QACLD,MAAM;QACNI;MACJ,CAAC,CAAC;IACN;EACJ;AACJ;AAEA,OAAO,MAAMe,YAAY,GAAG5B,wBAAwB,CAAC6B,oBAAoB,CAAC;EACtEC,cAAc,EAAE5B,gBAAgB;EAChC6B,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
2
- declare class RefFilterImpl implements CmsEntryOpenSearchFilter.Interface {
3
- readonly fieldType = "ref";
4
- exec(params: CmsEntryOpenSearchFilter.ExecParams): void;
5
- }
6
- export declare const RefFilter: typeof RefFilterImpl & {
7
- __abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchFilter.js").ICmsEntryOpenSearchFilter>;
8
- };
9
- export {};
@@ -1,49 +0,0 @@
1
- import WebinyError from "@webiny/error";
2
- import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
3
- import { parseWhereKey } from "@webiny/api-opensearch";
4
- class RefFilterImpl {
5
- fieldType = "ref";
6
- exec(params) {
7
- const {
8
- applyFiltering,
9
- query,
10
- field
11
- } = params;
12
- let values = params.value;
13
- /**
14
- * We must have an object when querying in the ref field.
15
- */
16
- if (typeof values !== "object") {
17
- throw new WebinyError(`When querying by ref field, value of the field must be an object.`, "OBJECT_REQUIRED", {
18
- value: values
19
- });
20
- }
21
- if (values === null || values === undefined) {
22
- values = {
23
- entryId: null
24
- };
25
- }
26
- for (const key in values) {
27
- const {
28
- operator
29
- } = parseWhereKey(key);
30
- const value = values[key];
31
- if (value === undefined) {
32
- continue;
33
- }
34
- applyFiltering({
35
- query,
36
- field,
37
- operator,
38
- key,
39
- value
40
- });
41
- }
42
- }
43
- }
44
- export const RefFilter = CmsEntryOpenSearchFilter.createImplementation({
45
- implementation: RefFilterImpl,
46
- dependencies: []
47
- });
48
-
49
- //# sourceMappingURL=RefFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["WebinyError","CmsEntryOpenSearchFilter","parseWhereKey","RefFilterImpl","fieldType","exec","params","applyFiltering","query","field","values","value","undefined","entryId","key","operator","RefFilter","createImplementation","implementation","dependencies"],"sources":["RefFilter.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { CmsEntryOpenSearchFilter } from \"../abstractions/CmsEntryOpenSearchFilter.js\";\nimport { parseWhereKey } from \"@webiny/api-opensearch\";\n\nclass RefFilterImpl implements CmsEntryOpenSearchFilter.Interface {\n public readonly fieldType = \"ref\";\n\n public exec(params: CmsEntryOpenSearchFilter.ExecParams): void {\n const { applyFiltering, query, field } = params;\n\n let values = params.value;\n /**\n * We must have an object when querying in the ref field.\n */\n if (typeof values !== \"object\") {\n throw new WebinyError(\n `When querying by ref field, value of the field must be an object.`,\n \"OBJECT_REQUIRED\",\n {\n value: values\n }\n );\n }\n\n if (values === null || values === undefined) {\n values = {\n entryId: null\n };\n }\n\n for (const key in values) {\n const { operator } = parseWhereKey(key);\n const value = values[key];\n if (value === undefined) {\n continue;\n }\n\n applyFiltering({\n query,\n field,\n operator,\n key,\n value\n });\n }\n }\n}\n\nexport const RefFilter = CmsEntryOpenSearchFilter.createImplementation({\n implementation: RefFilterImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AACvC,SAASC,wBAAwB;AACjC,SAASC,aAAa,QAAQ,wBAAwB;AAEtD,MAAMC,aAAa,CAA+C;EAC9CC,SAAS,GAAG,KAAK;EAE1BC,IAAIA,CAACC,MAA2C,EAAQ;IAC3D,MAAM;MAAEC,cAAc;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAGH,MAAM;IAE/C,IAAII,MAAM,GAAGJ,MAAM,CAACK,KAAK;IACzB;AACR;AACA;IACQ,IAAI,OAAOD,MAAM,KAAK,QAAQ,EAAE;MAC5B,MAAM,IAAIV,WAAW,CACjB,mEAAmE,EACnE,iBAAiB,EACjB;QACIW,KAAK,EAAED;MACX,CACJ,CAAC;IACL;IAEA,IAAIA,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKE,SAAS,EAAE;MACzCF,MAAM,GAAG;QACLG,OAAO,EAAE;MACb,CAAC;IACL;IAEA,KAAK,MAAMC,GAAG,IAAIJ,MAAM,EAAE;MACtB,MAAM;QAAEK;MAAS,CAAC,GAAGb,aAAa,CAACY,GAAG,CAAC;MACvC,MAAMH,KAAK,GAAGD,MAAM,CAACI,GAAG,CAAC;MACzB,IAAIH,KAAK,KAAKC,SAAS,EAAE;QACrB;MACJ;MAEAL,cAAc,CAAC;QACXC,KAAK;QACLC,KAAK;QACLM,QAAQ;QACRD,GAAG;QACHH;MACJ,CAAC,CAAC;IACN;EACJ;AACJ;AAEA,OAAO,MAAMK,SAAS,GAAGf,wBAAwB,CAACgB,oBAAoB,CAAC;EACnEC,cAAc,EAAEf,aAAa;EAC7BgB,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- export { CmsEntryOpenSearchFilter } from "./abstractions/CmsEntryOpenSearchFilter.js";
2
- export { CmsEntryOpenSearchFilterRegistry } from "./abstractions/CmsEntryOpenSearchFilterRegistry.js";
3
- export { CmsEntryOpenSearchFilterFeature } from "./feature.js";
@@ -1,5 +0,0 @@
1
- export { CmsEntryOpenSearchFilter } from "./abstractions/CmsEntryOpenSearchFilter.js";
2
- export { CmsEntryOpenSearchFilterRegistry } from "./abstractions/CmsEntryOpenSearchFilterRegistry.js";
3
- export { CmsEntryOpenSearchFilterFeature } from "./feature.js";
4
-
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CmsEntryOpenSearchFilter","CmsEntryOpenSearchFilterRegistry","CmsEntryOpenSearchFilterFeature"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchFilter } from \"./abstractions/CmsEntryOpenSearchFilter.js\";\nexport { CmsEntryOpenSearchFilterRegistry } from \"./abstractions/CmsEntryOpenSearchFilterRegistry.js\";\nexport { CmsEntryOpenSearchFilterFeature } from \"./feature.js\";\n"],"mappings":"AAAA,SAASA,wBAAwB;AACjC,SAASC,gCAAgC;AACzC,SAASC,+BAA+B","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
2
- import type { OpenSearchBoolQueryConfig } from "@webiny/api-opensearch/types.js";
3
- import type { ModelField, ModelFields } from "../../operations/entry/elasticsearch/types.js";
4
- export interface ApplyFullTextSearchParams {
5
- model: CmsModel;
6
- query: OpenSearchBoolQueryConfig;
7
- term: string;
8
- fields: ModelFields;
9
- createFieldPath: (field: ModelField) => string;
10
- prepareTerm: (term: string) => string;
11
- }
12
- export interface ICmsEntryOpenSearchFullTextSearch {
13
- readonly models?: string[];
14
- apply(params: ApplyFullTextSearchParams): void;
15
- }
16
- export declare const CmsEntryOpenSearchFullTextSearch: import("@webiny/di").Abstraction<ICmsEntryOpenSearchFullTextSearch>;
17
- export declare namespace CmsEntryOpenSearchFullTextSearch {
18
- type Interface = ICmsEntryOpenSearchFullTextSearch;
19
- type Params = ApplyFullTextSearchParams;
20
- }
@@ -1,4 +0,0 @@
1
- import { createAbstraction } from "@webiny/feature/api";
2
- export const CmsEntryOpenSearchFullTextSearch = createAbstraction("Cms/Entry/OpenSearch/FullTextSearch");
3
-
4
- //# sourceMappingURL=abstractions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createAbstraction","CmsEntryOpenSearchFullTextSearch"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { OpenSearchBoolQueryConfig } from \"@webiny/api-opensearch/types.js\";\nimport type { ModelField, ModelFields } from \"~/operations/entry/elasticsearch/types.js\";\n\nexport interface ApplyFullTextSearchParams {\n model: CmsModel;\n query: OpenSearchBoolQueryConfig;\n term: string;\n fields: ModelFields;\n createFieldPath: (field: ModelField) => string;\n prepareTerm: (term: string) => string;\n}\n\nexport interface ICmsEntryOpenSearchFullTextSearch {\n readonly models?: string[];\n apply(params: ApplyFullTextSearchParams): void;\n}\n\nexport const CmsEntryOpenSearchFullTextSearch =\n createAbstraction<ICmsEntryOpenSearchFullTextSearch>(\"Cms/Entry/OpenSearch/FullTextSearch\");\n\nexport namespace CmsEntryOpenSearchFullTextSearch {\n export type Interface = ICmsEntryOpenSearchFullTextSearch;\n export type Params = ApplyFullTextSearchParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAmBvD,OAAO,MAAMC,gCAAgC,GACzCD,iBAAiB,CAAoC,qCAAqC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- export { CmsEntryOpenSearchFullTextSearch } from "./abstractions.js";
@@ -1,3 +0,0 @@
1
- export { CmsEntryOpenSearchFullTextSearch } from "./abstractions.js";
2
-
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CmsEntryOpenSearchFullTextSearch"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchFullTextSearch } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,gCAAgC","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- import { CmsEntryOpenSearchIndex } from "./abstractions.js";
2
- import type { OpenSearchIndexRequestBody } from "@webiny/api-opensearch/types.js";
3
- declare class BaseOpenSearchIndexImpl implements CmsEntryOpenSearchIndex.Interface {
4
- readonly body: OpenSearchIndexRequestBody;
5
- constructor();
6
- canUse(_: CmsEntryOpenSearchIndex.CanUseParams): boolean;
7
- }
8
- export declare const BaseOpenSearchIndex: typeof BaseOpenSearchIndexImpl & {
9
- __abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").ICmsEntryOpenSearchIndex>;
10
- };
11
- export {};
@@ -1,16 +0,0 @@
1
- import { getBaseConfiguration } from "@webiny/api-opensearch";
2
- import { CmsEntryOpenSearchIndex } from "./abstractions.js";
3
- class BaseOpenSearchIndexImpl {
4
- constructor() {
5
- this.body = getBaseConfiguration();
6
- }
7
- canUse(_) {
8
- return true;
9
- }
10
- }
11
- export const BaseOpenSearchIndex = CmsEntryOpenSearchIndex.createImplementation({
12
- implementation: BaseOpenSearchIndexImpl,
13
- dependencies: []
14
- });
15
-
16
- //# sourceMappingURL=BaseOpenSearchIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getBaseConfiguration","CmsEntryOpenSearchIndex","BaseOpenSearchIndexImpl","constructor","body","canUse","_","BaseOpenSearchIndex","createImplementation","implementation","dependencies"],"sources":["BaseOpenSearchIndex.ts"],"sourcesContent":["import { getBaseConfiguration } from \"@webiny/api-opensearch\";\nimport { CmsEntryOpenSearchIndex } from \"./abstractions.js\";\nimport type { OpenSearchIndexRequestBody } from \"@webiny/api-opensearch/types.js\";\n\nclass BaseOpenSearchIndexImpl implements CmsEntryOpenSearchIndex.Interface {\n public readonly body: OpenSearchIndexRequestBody;\n\n public constructor() {\n this.body = getBaseConfiguration();\n }\n public canUse(_: CmsEntryOpenSearchIndex.CanUseParams): boolean {\n return true;\n }\n}\n\nexport const BaseOpenSearchIndex = CmsEntryOpenSearchIndex.createImplementation({\n implementation: BaseOpenSearchIndexImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,uBAAuB;AAGhC,MAAMC,uBAAuB,CAA8C;EAGhEC,WAAWA,CAAA,EAAG;IACjB,IAAI,CAACC,IAAI,GAAGJ,oBAAoB,CAAC,CAAC;EACtC;EACOK,MAAMA,CAACC,CAAuC,EAAW;IAC5D,OAAO,IAAI;EACf;AACJ;AAEA,OAAO,MAAMC,mBAAmB,GAAGN,uBAAuB,CAACO,oBAAoB,CAAC;EAC5EC,cAAc,EAAEP,uBAAuB;EACvCQ,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
@@ -1,14 +0,0 @@
1
- import type { OpenSearchIndexRequestBody } from "@webiny/api-opensearch/types.js";
2
- import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
3
- export interface ICmsEntryOpenSearchIndexCanUseParams {
4
- model: Pick<CmsModel, "tenant" | "modelId" | "group">;
5
- }
6
- export interface ICmsEntryOpenSearchIndex {
7
- readonly body: OpenSearchIndexRequestBody;
8
- canUse(params: ICmsEntryOpenSearchIndexCanUseParams): boolean;
9
- }
10
- export declare const CmsEntryOpenSearchIndex: import("@webiny/di").Abstraction<ICmsEntryOpenSearchIndex>;
11
- export declare namespace CmsEntryOpenSearchIndex {
12
- type Interface = ICmsEntryOpenSearchIndex;
13
- type CanUseParams = ICmsEntryOpenSearchIndexCanUseParams;
14
- }
@@ -1,4 +0,0 @@
1
- import { createAbstraction } from "@webiny/feature/api";
2
- export const CmsEntryOpenSearchIndex = createAbstraction("Cms/Entry/OpenSearch/Index");
3
-
4
- //# sourceMappingURL=abstractions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createAbstraction","CmsEntryOpenSearchIndex"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { OpenSearchIndexRequestBody } from \"@webiny/api-opensearch/types.js\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport interface ICmsEntryOpenSearchIndexCanUseParams {\n model: Pick<CmsModel, \"tenant\" | \"modelId\" | \"group\">;\n}\n\nexport interface ICmsEntryOpenSearchIndex {\n readonly body: OpenSearchIndexRequestBody;\n canUse(params: ICmsEntryOpenSearchIndexCanUseParams): boolean;\n}\n\nexport const CmsEntryOpenSearchIndex = createAbstraction<ICmsEntryOpenSearchIndex>(\n \"Cms/Entry/OpenSearch/Index\"\n);\n\nexport namespace CmsEntryOpenSearchIndex {\n export type Interface = ICmsEntryOpenSearchIndex;\n export type CanUseParams = ICmsEntryOpenSearchIndexCanUseParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAavD,OAAO,MAAMC,uBAAuB,GAAGD,iBAAiB,CACpD,4BACJ,CAAC","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import { createFeature } from "@webiny/feature/api";
2
- import { BaseOpenSearchIndex } from "./BaseOpenSearchIndex.js";
3
- export const CmsEntryOpenSearchIndexFeature = createFeature({
4
- name: "Cms/Entry/OpenSearch/IndexFeature",
5
- register: container => {
6
- container.register(BaseOpenSearchIndex);
7
- }
8
- });
9
-
10
- //# sourceMappingURL=feature.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createFeature","BaseOpenSearchIndex","CmsEntryOpenSearchIndexFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { BaseOpenSearchIndex } from \"./BaseOpenSearchIndex.js\";\n\nexport const CmsEntryOpenSearchIndexFeature = createFeature({\n name: \"Cms/Entry/OpenSearch/IndexFeature\",\n register: container => {\n container.register(BaseOpenSearchIndex);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,mBAAmB;AAE5B,OAAO,MAAMC,8BAA8B,GAAGF,aAAa,CAAC;EACxDG,IAAI,EAAE,mCAAmC;EACzCC,QAAQ,EAAEC,SAAS,IAAI;IACnBA,SAAS,CAACD,QAAQ,CAACH,mBAAmB,CAAC;EAC3C;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- export { CmsEntryOpenSearchIndexFeature } from "./feature.js";
2
- export { CmsEntryOpenSearchIndex } from "./abstractions.js";
3
- export { BaseOpenSearchIndex } from "./BaseOpenSearchIndex.js";
@@ -1,5 +0,0 @@
1
- export { CmsEntryOpenSearchIndexFeature } from "./feature.js";
2
- export { CmsEntryOpenSearchIndex } from "./abstractions.js";
3
- export { BaseOpenSearchIndex } from "./BaseOpenSearchIndex.js";
4
-
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CmsEntryOpenSearchIndexFeature","CmsEntryOpenSearchIndex","BaseOpenSearchIndex"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchIndexFeature } from \"./feature.js\";\nexport { CmsEntryOpenSearchIndex } from \"./abstractions.js\";\nexport { BaseOpenSearchIndex } from \"./BaseOpenSearchIndex.js\";\n"],"mappings":"AAAA,SAASA,8BAA8B;AACvC,SAASC,uBAAuB;AAChC,SAASC,mBAAmB","ignoreList":[]}
@@ -1,16 +0,0 @@
1
- import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
2
- import type { OpenSearchBoolQueryConfig } from "@webiny/api-opensearch/types.js";
3
- export interface ModifyQueryParams {
4
- query: OpenSearchBoolQueryConfig;
5
- model: CmsModel;
6
- where: Record<string, any>;
7
- }
8
- export interface ICmsEntryOpenSearchQueryModifier {
9
- readonly modelId?: string;
10
- modifyQuery(params: ModifyQueryParams): void;
11
- }
12
- export declare const CmsEntryOpenSearchQueryModifier: import("@webiny/di").Abstraction<ICmsEntryOpenSearchQueryModifier>;
13
- export declare namespace CmsEntryOpenSearchQueryModifier {
14
- type Interface = ICmsEntryOpenSearchQueryModifier;
15
- type Params = ModifyQueryParams;
16
- }
@@ -1,4 +0,0 @@
1
- import { createAbstraction } from "@webiny/feature/api";
2
- export const CmsEntryOpenSearchQueryModifier = createAbstraction("Cms/Entry/OpenSearch/QueryModifier");
3
-
4
- //# sourceMappingURL=abstractions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createAbstraction","CmsEntryOpenSearchQueryModifier"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { OpenSearchBoolQueryConfig } from \"@webiny/api-opensearch/types.js\";\n\nexport interface ModifyQueryParams {\n query: OpenSearchBoolQueryConfig;\n model: CmsModel;\n where: Record<string, any>;\n}\n\nexport interface ICmsEntryOpenSearchQueryModifier {\n readonly modelId?: string;\n modifyQuery(params: ModifyQueryParams): void;\n}\n\nexport const CmsEntryOpenSearchQueryModifier = createAbstraction<ICmsEntryOpenSearchQueryModifier>(\n \"Cms/Entry/OpenSearch/QueryModifier\"\n);\n\nexport namespace CmsEntryOpenSearchQueryModifier {\n export type Interface = ICmsEntryOpenSearchQueryModifier;\n export type Params = ModifyQueryParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAevD,OAAO,MAAMC,+BAA+B,GAAGD,iBAAiB,CAC5D,oCACJ,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- export { CmsEntryOpenSearchQueryModifier } from "./abstractions.js";
@@ -1,3 +0,0 @@
1
- export { CmsEntryOpenSearchQueryModifier } from "./abstractions.js";
2
-
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CmsEntryOpenSearchQueryModifier"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchQueryModifier } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,+BAA+B","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
2
- import type { Sort } from "@webiny/api-opensearch/types.js";
3
- export interface ModifySortParams {
4
- sort: Sort;
5
- model: CmsModel;
6
- }
7
- export interface ICmsEntryOpenSearchSortModifier {
8
- readonly modelId?: string;
9
- modifySort(params: ModifySortParams): void;
10
- }
11
- export declare const CmsEntryOpenSearchSortModifier: import("@webiny/di").Abstraction<ICmsEntryOpenSearchSortModifier>;
12
- export declare namespace CmsEntryOpenSearchSortModifier {
13
- type Interface = ICmsEntryOpenSearchSortModifier;
14
- type Params = ModifySortParams;
15
- }
@@ -1,4 +0,0 @@
1
- import { createAbstraction } from "@webiny/feature/api";
2
- export const CmsEntryOpenSearchSortModifier = createAbstraction("Cms/Entry/OpenSearch/SortModifier");
3
-
4
- //# sourceMappingURL=abstractions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createAbstraction","CmsEntryOpenSearchSortModifier"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { Sort } from \"@webiny/api-opensearch/types.js\";\n\nexport interface ModifySortParams {\n sort: Sort;\n model: CmsModel;\n}\n\nexport interface ICmsEntryOpenSearchSortModifier {\n readonly modelId?: string;\n modifySort(params: ModifySortParams): void;\n}\n\nexport const CmsEntryOpenSearchSortModifier = createAbstraction<ICmsEntryOpenSearchSortModifier>(\n \"Cms/Entry/OpenSearch/SortModifier\"\n);\n\nexport namespace CmsEntryOpenSearchSortModifier {\n export type Interface = ICmsEntryOpenSearchSortModifier;\n export type Params = ModifySortParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAcvD,OAAO,MAAMC,8BAA8B,GAAGD,iBAAiB,CAC3D,mCACJ,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- export { CmsEntryOpenSearchSortModifier } from "./abstractions.js";
@@ -1,3 +0,0 @@
1
- export { CmsEntryOpenSearchSortModifier } from "./abstractions.js";
2
-
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CmsEntryOpenSearchSortModifier"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchSortModifier } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,8BAA8B","ignoreList":[]}
@@ -1,12 +0,0 @@
1
- import { CmsEntryOpenSearchValueSearchRegistry as Abstraction } from "./abstractions/CmsEntryOpenSearchValueSearchRegistry.js";
2
- import { CmsEntryOpenSearchValueSearch } from "./abstractions/CmsEntryOpenSearchValueSearch.js";
3
- declare class CmsEntryOpenSearchValueSearchRegistryImpl implements Abstraction.Interface {
4
- private readonly searches;
5
- constructor(searches: CmsEntryOpenSearchValueSearch.Interface[]);
6
- get(type: string): Abstraction.SearchValue | undefined;
7
- getAll(): Abstraction.SearchValue[];
8
- }
9
- export declare const CmsEntryOpenSearchValueSearchRegistry: typeof CmsEntryOpenSearchValueSearchRegistryImpl & {
10
- __abstraction: import("@webiny/di").Abstraction<import("./abstractions/CmsEntryOpenSearchValueSearchRegistry.js").ICmsEntryOpenSearchValueSearchRegistry>;
11
- };
12
- export {};
@@ -1,27 +0,0 @@
1
- import { CmsEntryOpenSearchValueSearchRegistry as Abstraction } from "./abstractions/CmsEntryOpenSearchValueSearchRegistry.js";
2
- import { CmsEntryOpenSearchValueSearch } from "./abstractions/CmsEntryOpenSearchValueSearch.js";
3
- import { getBaseFieldType } from "@webiny/api-headless-cms/utils/getBaseFieldType.js";
4
- class CmsEntryOpenSearchValueSearchRegistryImpl {
5
- constructor(searches) {
6
- this.searches = searches;
7
- }
8
- get(type) {
9
- const fieldType = getBaseFieldType({
10
- type
11
- });
12
- return this.searches.find(s => {
13
- return s.fieldType === fieldType;
14
- });
15
- }
16
- getAll() {
17
- return this.searches;
18
- }
19
- }
20
- export const CmsEntryOpenSearchValueSearchRegistry = Abstraction.createImplementation({
21
- implementation: CmsEntryOpenSearchValueSearchRegistryImpl,
22
- dependencies: [[CmsEntryOpenSearchValueSearch, {
23
- multiple: true
24
- }]]
25
- });
26
-
27
- //# sourceMappingURL=CmsEntryOpenSearchValueSearchRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CmsEntryOpenSearchValueSearchRegistry","Abstraction","CmsEntryOpenSearchValueSearch","getBaseFieldType","CmsEntryOpenSearchValueSearchRegistryImpl","constructor","searches","get","type","fieldType","find","s","getAll","createImplementation","implementation","dependencies","multiple"],"sources":["CmsEntryOpenSearchValueSearchRegistry.ts"],"sourcesContent":["import { CmsEntryOpenSearchValueSearchRegistry as Abstraction } from \"./abstractions/CmsEntryOpenSearchValueSearchRegistry.js\";\nimport { CmsEntryOpenSearchValueSearch } from \"./abstractions/CmsEntryOpenSearchValueSearch.js\";\nimport { getBaseFieldType } from \"@webiny/api-headless-cms/utils/getBaseFieldType.js\";\n\nclass CmsEntryOpenSearchValueSearchRegistryImpl implements Abstraction.Interface {\n public constructor(private readonly searches: CmsEntryOpenSearchValueSearch.Interface[]) {}\n\n public get(type: string): Abstraction.SearchValue | undefined {\n const fieldType = getBaseFieldType({ type });\n return this.searches.find(s => {\n return s.fieldType === fieldType;\n });\n }\n\n public getAll(): Abstraction.SearchValue[] {\n return this.searches;\n }\n}\n\nexport const CmsEntryOpenSearchValueSearchRegistry = Abstraction.createImplementation({\n implementation: CmsEntryOpenSearchValueSearchRegistryImpl,\n dependencies: [[CmsEntryOpenSearchValueSearch, { multiple: true }]]\n});\n"],"mappings":"AAAA,SAASA,qCAAqC,IAAIC,WAAW;AAC7D,SAASC,6BAA6B;AACtC,SAASC,gBAAgB,QAAQ,oDAAoD;AAErF,MAAMC,yCAAyC,CAAkC;EACtEC,WAAWA,CAAkBC,QAAmD,EAAE;IAAA,KAArDA,QAAmD,GAAnDA,QAAmD;EAAG;EAEnFC,GAAGA,CAACC,IAAY,EAAuC;IAC1D,MAAMC,SAAS,GAAGN,gBAAgB,CAAC;MAAEK;IAAK,CAAC,CAAC;IAC5C,OAAO,IAAI,CAACF,QAAQ,CAACI,IAAI,CAACC,CAAC,IAAI;MAC3B,OAAOA,CAAC,CAACF,SAAS,KAAKA,SAAS;IACpC,CAAC,CAAC;EACN;EAEOG,MAAMA,CAAA,EAA8B;IACvC,OAAO,IAAI,CAACN,QAAQ;EACxB;AACJ;AAEA,OAAO,MAAMN,qCAAqC,GAAGC,WAAW,CAACY,oBAAoB,CAAC;EAClFC,cAAc,EAAEV,yCAAyC;EACzDW,YAAY,EAAE,CAAC,CAACb,6BAA6B,EAAE;IAAEc,QAAQ,EAAE;EAAK,CAAC,CAAC;AACtE,CAAC,CAAC","ignoreList":[]}
@@ -1,22 +0,0 @@
1
- import type { CmsModelField } from "@webiny/api-headless-cms/types/index.js";
2
- export interface CreatePathParams<T = any> {
3
- field: CmsModelField;
4
- key: string;
5
- value: T;
6
- originalValue: any;
7
- }
8
- export interface TransformParams<T = any> {
9
- field: CmsModelField;
10
- value: T;
11
- }
12
- export interface ICmsEntryOpenSearchValueSearch {
13
- readonly fieldType: string;
14
- transform(params: TransformParams): any;
15
- createPath(params: CreatePathParams): string | null;
16
- }
17
- export declare const CmsEntryOpenSearchValueSearch: import("@webiny/di").Abstraction<ICmsEntryOpenSearchValueSearch>;
18
- export declare namespace CmsEntryOpenSearchValueSearch {
19
- type Interface = ICmsEntryOpenSearchValueSearch;
20
- type CreatePath = CreatePathParams;
21
- type Transform = TransformParams;
22
- }
@@ -1,4 +0,0 @@
1
- import { createAbstraction } from "@webiny/feature/api";
2
- export const CmsEntryOpenSearchValueSearch = createAbstraction("Cms/Entry/OpenSearch/ValueSearch");
3
-
4
- //# sourceMappingURL=CmsEntryOpenSearchValueSearch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createAbstraction","CmsEntryOpenSearchValueSearch"],"sources":["CmsEntryOpenSearchValueSearch.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModelField } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport interface CreatePathParams<T = any> {\n field: CmsModelField;\n key: string;\n value: T;\n originalValue: any;\n}\n\nexport interface TransformParams<T = any> {\n field: CmsModelField;\n value: T;\n}\n\nexport interface ICmsEntryOpenSearchValueSearch {\n readonly fieldType: string;\n transform(params: TransformParams): any;\n createPath(params: CreatePathParams): string | null;\n}\n\nexport const CmsEntryOpenSearchValueSearch = createAbstraction<ICmsEntryOpenSearchValueSearch>(\n \"Cms/Entry/OpenSearch/ValueSearch\"\n);\n\nexport namespace CmsEntryOpenSearchValueSearch {\n export type Interface = ICmsEntryOpenSearchValueSearch;\n export type CreatePath = CreatePathParams;\n export type Transform = TransformParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAqBvD,OAAO,MAAMC,6BAA6B,GAAGD,iBAAiB,CAC1D,kCACJ,CAAC","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import type { CmsEntryOpenSearchValueSearch } from "./CmsEntryOpenSearchValueSearch.js";
2
- export interface ICmsEntryOpenSearchValueSearchRegistry {
3
- get(fieldType: string): CmsEntryOpenSearchValueSearch.Interface | undefined;
4
- getAll(): CmsEntryOpenSearchValueSearch.Interface[];
5
- }
6
- export declare const CmsEntryOpenSearchValueSearchRegistry: import("@webiny/di").Abstraction<ICmsEntryOpenSearchValueSearchRegistry>;
7
- export declare namespace CmsEntryOpenSearchValueSearchRegistry {
8
- type Interface = ICmsEntryOpenSearchValueSearchRegistry;
9
- type SearchValue = CmsEntryOpenSearchValueSearch.Interface;
10
- }
@@ -1,4 +0,0 @@
1
- import { createAbstraction } from "@webiny/feature/api";
2
- export const CmsEntryOpenSearchValueSearchRegistry = createAbstraction("Cms/Entry/OpenSearch/ValueSearchRegistry");
3
-
4
- //# sourceMappingURL=CmsEntryOpenSearchValueSearchRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createAbstraction","CmsEntryOpenSearchValueSearchRegistry"],"sources":["CmsEntryOpenSearchValueSearchRegistry.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsEntryOpenSearchValueSearch } from \"./CmsEntryOpenSearchValueSearch.js\";\n\nexport interface ICmsEntryOpenSearchValueSearchRegistry {\n get(fieldType: string): CmsEntryOpenSearchValueSearch.Interface | undefined;\n getAll(): CmsEntryOpenSearchValueSearch.Interface[];\n}\n\nexport const CmsEntryOpenSearchValueSearchRegistry =\n createAbstraction<ICmsEntryOpenSearchValueSearchRegistry>(\n \"Cms/Entry/OpenSearch/ValueSearchRegistry\"\n );\n\nexport namespace CmsEntryOpenSearchValueSearchRegistry {\n export type Interface = ICmsEntryOpenSearchValueSearchRegistry;\n export type SearchValue = CmsEntryOpenSearchValueSearch.Interface;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAQvD,OAAO,MAAMC,qCAAqC,GAC9CD,iBAAiB,CACb,0CACJ,CAAC","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- export declare const CmsEntryOpenSearchValueSearchFeature: {
2
- name: string;
3
- register(container: import("@webiny/di").Container): void;
4
- };
@@ -1,16 +0,0 @@
1
- import { createFeature } from "@webiny/feature/api";
2
- import { RefSearch } from "./fields/RefSearch.js";
3
- import { SearchableJsonSearch } from "./fields/SearchableJsonSearch.js";
4
- import { TimeSearch } from "./fields/TimeSearch.js";
5
- import { CmsEntryOpenSearchValueSearchRegistry } from "./CmsEntryOpenSearchValueSearchRegistry.js";
6
- export const CmsEntryOpenSearchValueSearchFeature = createFeature({
7
- name: "Cms/Entry/OpenSearch/ValueSearchFeature",
8
- register: container => {
9
- container.register(RefSearch);
10
- container.register(SearchableJsonSearch);
11
- container.register(TimeSearch);
12
- container.register(CmsEntryOpenSearchValueSearchRegistry);
13
- }
14
- });
15
-
16
- //# sourceMappingURL=feature.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["createFeature","RefSearch","SearchableJsonSearch","TimeSearch","CmsEntryOpenSearchValueSearchRegistry","CmsEntryOpenSearchValueSearchFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { RefSearch } from \"./fields/RefSearch.js\";\nimport { SearchableJsonSearch } from \"./fields/SearchableJsonSearch.js\";\nimport { TimeSearch } from \"./fields/TimeSearch.js\";\nimport { CmsEntryOpenSearchValueSearchRegistry } from \"./CmsEntryOpenSearchValueSearchRegistry.js\";\n\nexport const CmsEntryOpenSearchValueSearchFeature = createFeature({\n name: \"Cms/Entry/OpenSearch/ValueSearchFeature\",\n register: container => {\n container.register(RefSearch);\n container.register(SearchableJsonSearch);\n container.register(TimeSearch);\n container.register(CmsEntryOpenSearchValueSearchRegistry);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,SAAS;AAClB,SAASC,oBAAoB;AAC7B,SAASC,UAAU;AACnB,SAASC,qCAAqC;AAE9C,OAAO,MAAMC,oCAAoC,GAAGL,aAAa,CAAC;EAC9DM,IAAI,EAAE,yCAAyC;EAC/CC,QAAQ,EAAEC,SAAS,IAAI;IACnBA,SAAS,CAACD,QAAQ,CAACN,SAAS,CAAC;IAC7BO,SAAS,CAACD,QAAQ,CAACL,oBAAoB,CAAC;IACxCM,SAAS,CAACD,QAAQ,CAACJ,UAAU,CAAC;IAC9BK,SAAS,CAACD,QAAQ,CAACH,qCAAqC,CAAC;EAC7D;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import { CmsEntryOpenSearchValueSearch } from "../abstractions/CmsEntryOpenSearchValueSearch.js";
2
- declare class RefSearchImpl implements CmsEntryOpenSearchValueSearch.Interface {
3
- readonly fieldType = "ref";
4
- transform(params: CmsEntryOpenSearchValueSearch.Transform): any;
5
- createPath(params: CmsEntryOpenSearchValueSearch.CreatePath): string | null;
6
- }
7
- export declare const RefSearch: typeof RefSearchImpl & {
8
- __abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchValueSearch.js").ICmsEntryOpenSearchValueSearch>;
9
- };
10
- export {};