@webiny/api-headless-cms-ddb-es 0.0.0-mt-2 → 0.0.0-unstable.1145e7667f

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 (255) hide show
  1. package/configurations.d.ts +3 -3
  2. package/configurations.js +13 -10
  3. package/configurations.js.map +1 -0
  4. package/definitions/entry.d.ts +2 -2
  5. package/definitions/entry.js +9 -12
  6. package/definitions/entry.js.map +1 -0
  7. package/definitions/entryElasticsearch.d.ts +2 -2
  8. package/definitions/entryElasticsearch.js +3 -12
  9. package/definitions/entryElasticsearch.js.map +1 -0
  10. package/definitions/group.d.ts +2 -2
  11. package/definitions/group.js +3 -12
  12. package/definitions/group.js.map +1 -0
  13. package/definitions/model.d.ts +2 -2
  14. package/definitions/model.js +25 -12
  15. package/definitions/model.js.map +1 -0
  16. package/definitions/settings.d.ts +2 -2
  17. package/definitions/settings.js +3 -12
  18. package/definitions/settings.js.map +1 -0
  19. package/definitions/system.d.ts +2 -2
  20. package/definitions/system.js +3 -12
  21. package/definitions/system.js.map +1 -0
  22. package/definitions/table.d.ts +2 -2
  23. package/definitions/table.js +0 -3
  24. package/definitions/table.js.map +1 -0
  25. package/definitions/tableElasticsearch.d.ts +2 -2
  26. package/definitions/tableElasticsearch.js +0 -3
  27. package/definitions/tableElasticsearch.js.map +1 -0
  28. package/dynamoDb/index.d.ts +1 -1
  29. package/dynamoDb/index.js +4 -11
  30. package/dynamoDb/index.js.map +1 -0
  31. package/dynamoDb/storage/date.d.ts +3 -3
  32. package/dynamoDb/storage/date.js +74 -53
  33. package/dynamoDb/storage/date.js.map +1 -0
  34. package/dynamoDb/storage/longText.d.ts +7 -4
  35. package/dynamoDb/storage/longText.js +73 -63
  36. package/dynamoDb/storage/longText.js.map +1 -0
  37. package/dynamoDb/storage/richText.d.ts +2 -3
  38. package/dynamoDb/storage/richText.js +77 -77
  39. package/dynamoDb/storage/richText.js.map +1 -0
  40. package/elasticsearch/createElasticsearchIndex.d.ts +9 -0
  41. package/elasticsearch/createElasticsearchIndex.js +49 -0
  42. package/elasticsearch/createElasticsearchIndex.js.map +1 -0
  43. package/elasticsearch/deleteElasticsearchIndex.d.ts +8 -0
  44. package/elasticsearch/deleteElasticsearchIndex.js +36 -0
  45. package/elasticsearch/deleteElasticsearchIndex.js.map +1 -0
  46. package/elasticsearch/index.d.ts +1 -1
  47. package/elasticsearch/index.js +1 -6
  48. package/elasticsearch/index.js.map +1 -0
  49. package/elasticsearch/indexing/dateTimeIndexing.js +17 -20
  50. package/elasticsearch/indexing/dateTimeIndexing.js.map +1 -0
  51. package/elasticsearch/indexing/defaultFieldIndexing.js +15 -10
  52. package/elasticsearch/indexing/defaultFieldIndexing.js.map +1 -0
  53. package/elasticsearch/indexing/index.js +1 -10
  54. package/elasticsearch/indexing/index.js.map +1 -0
  55. package/elasticsearch/indexing/longTextIndexing.d.ts +4 -0
  56. package/elasticsearch/indexing/longTextIndexing.js +14 -10
  57. package/elasticsearch/indexing/longTextIndexing.js.map +1 -0
  58. package/elasticsearch/indexing/numberIndexing.js +0 -9
  59. package/elasticsearch/indexing/numberIndexing.js.map +1 -0
  60. package/elasticsearch/indexing/objectIndexing.d.ts +9 -0
  61. package/elasticsearch/indexing/objectIndexing.js +26 -30
  62. package/elasticsearch/indexing/objectIndexing.js.map +1 -0
  63. package/elasticsearch/indexing/richTextIndexing.js +0 -5
  64. package/elasticsearch/indexing/richTextIndexing.js.map +1 -0
  65. package/elasticsearch/indices/base.d.ts +2 -0
  66. package/elasticsearch/indices/base.js +12 -0
  67. package/elasticsearch/indices/base.js.map +1 -0
  68. package/elasticsearch/indices/index.d.ts +1 -0
  69. package/elasticsearch/indices/index.js +12 -0
  70. package/elasticsearch/indices/index.js.map +1 -0
  71. package/elasticsearch/indices/japanese.d.ts +2 -0
  72. package/elasticsearch/indices/japanese.js +13 -0
  73. package/elasticsearch/indices/japanese.js.map +1 -0
  74. package/elasticsearch/search/index.d.ts +2 -2
  75. package/elasticsearch/search/index.js +3 -9
  76. package/elasticsearch/search/index.js.map +1 -0
  77. package/elasticsearch/search/refSearch.d.ts +2 -3
  78. package/elasticsearch/search/refSearch.js +23 -18
  79. package/elasticsearch/search/refSearch.js.map +1 -0
  80. package/elasticsearch/search/timeSearch.d.ts +2 -3
  81. package/elasticsearch/search/timeSearch.js +18 -17
  82. package/elasticsearch/search/timeSearch.js.map +1 -0
  83. package/helpers/entryIndexHelpers.js +43 -57
  84. package/helpers/entryIndexHelpers.js.map +1 -0
  85. package/helpers/index.d.ts +0 -1
  86. package/helpers/index.js +0 -15
  87. package/helpers/index.js.map +1 -0
  88. package/index.d.ts +1 -0
  89. package/index.js +107 -63
  90. package/index.js.map +1 -0
  91. package/operations/entry/dataLoaders.d.ts +6 -2
  92. package/operations/entry/dataLoaders.js +27 -61
  93. package/operations/entry/dataLoaders.js.map +1 -0
  94. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.d.ts +18 -0
  95. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +32 -0
  96. package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js.map +1 -0
  97. package/operations/entry/elasticsearch/body.d.ts +13 -0
  98. package/operations/entry/elasticsearch/body.js +140 -0
  99. package/operations/entry/elasticsearch/body.js.map +1 -0
  100. package/operations/entry/elasticsearch/fields.d.ts +10 -0
  101. package/operations/entry/elasticsearch/fields.js +261 -0
  102. package/operations/entry/elasticsearch/fields.js.map +1 -0
  103. package/operations/entry/elasticsearch/filtering/applyFiltering.d.ts +8 -0
  104. package/operations/entry/elasticsearch/filtering/applyFiltering.js +57 -0
  105. package/operations/entry/elasticsearch/filtering/applyFiltering.js.map +1 -0
  106. package/operations/entry/elasticsearch/filtering/exec.d.ts +17 -0
  107. package/operations/entry/elasticsearch/filtering/exec.js +172 -0
  108. package/operations/entry/elasticsearch/filtering/exec.js.map +1 -0
  109. package/operations/entry/elasticsearch/filtering/index.d.ts +1 -0
  110. package/operations/entry/elasticsearch/filtering/index.js +16 -0
  111. package/operations/entry/elasticsearch/filtering/index.js.map +1 -0
  112. package/operations/entry/elasticsearch/filtering/path.d.ts +15 -0
  113. package/operations/entry/elasticsearch/filtering/path.js +44 -0
  114. package/operations/entry/elasticsearch/filtering/path.js.map +1 -0
  115. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.d.ts +2 -0
  116. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js +28 -0
  117. package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js.map +1 -0
  118. package/operations/entry/elasticsearch/filtering/plugins/index.d.ts +1 -0
  119. package/operations/entry/elasticsearch/filtering/plugins/index.js +13 -0
  120. package/operations/entry/elasticsearch/filtering/plugins/index.js.map +1 -0
  121. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.d.ts +2 -0
  122. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js +65 -0
  123. package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js.map +1 -0
  124. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.d.ts +2 -0
  125. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js +48 -0
  126. package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js.map +1 -0
  127. package/operations/entry/elasticsearch/filtering/populated.d.ts +2 -0
  128. package/operations/entry/elasticsearch/filtering/populated.js +23 -0
  129. package/operations/entry/elasticsearch/filtering/populated.js.map +1 -0
  130. package/operations/entry/elasticsearch/filtering/values.d.ts +2 -0
  131. package/operations/entry/elasticsearch/filtering/values.js +22 -0
  132. package/operations/entry/elasticsearch/filtering/values.js.map +1 -0
  133. package/operations/entry/elasticsearch/fullTextSearch.d.ts +12 -0
  134. package/operations/entry/elasticsearch/fullTextSearch.js +89 -0
  135. package/operations/entry/elasticsearch/fullTextSearch.js.map +1 -0
  136. package/operations/entry/elasticsearch/fullTextSearchFields.d.ts +8 -0
  137. package/operations/entry/elasticsearch/fullTextSearchFields.js +25 -0
  138. package/operations/entry/elasticsearch/fullTextSearchFields.js.map +1 -0
  139. package/operations/entry/elasticsearch/initialQuery.d.ts +17 -0
  140. package/operations/entry/elasticsearch/initialQuery.js +103 -0
  141. package/operations/entry/elasticsearch/initialQuery.js.map +1 -0
  142. package/operations/entry/elasticsearch/keyword.d.ts +2 -0
  143. package/operations/entry/elasticsearch/keyword.js +34 -0
  144. package/operations/entry/elasticsearch/keyword.js.map +1 -0
  145. package/operations/entry/elasticsearch/plugins/bodyModifier.d.ts +9 -0
  146. package/operations/entry/elasticsearch/plugins/bodyModifier.js +16 -0
  147. package/operations/entry/elasticsearch/plugins/bodyModifier.js.map +1 -0
  148. package/operations/entry/elasticsearch/plugins/operator.d.ts +8 -0
  149. package/operations/entry/elasticsearch/plugins/operator.js +37 -0
  150. package/operations/entry/elasticsearch/plugins/operator.js.map +1 -0
  151. package/operations/entry/elasticsearch/plugins/queryModifier.d.ts +9 -0
  152. package/operations/entry/elasticsearch/plugins/queryModifier.js +16 -0
  153. package/operations/entry/elasticsearch/plugins/queryModifier.js.map +1 -0
  154. package/operations/entry/elasticsearch/plugins/search.d.ts +7 -0
  155. package/{helpers/searchPluginsList.js → operations/entry/elasticsearch/plugins/search.js} +8 -10
  156. package/operations/entry/elasticsearch/plugins/search.js.map +1 -0
  157. package/operations/entry/elasticsearch/plugins/sortModifier.d.ts +9 -0
  158. package/operations/entry/elasticsearch/plugins/sortModifier.js +16 -0
  159. package/operations/entry/elasticsearch/plugins/sortModifier.js.map +1 -0
  160. package/operations/entry/elasticsearch/sort.d.ts +12 -0
  161. package/operations/entry/elasticsearch/sort.js +81 -0
  162. package/operations/entry/elasticsearch/sort.js.map +1 -0
  163. package/operations/entry/elasticsearch/transformValueForSearch.d.ts +16 -0
  164. package/operations/entry/elasticsearch/transformValueForSearch.js +30 -0
  165. package/operations/entry/elasticsearch/transformValueForSearch.js.map +1 -0
  166. package/operations/entry/elasticsearch/types.d.ts +41 -0
  167. package/operations/entry/elasticsearch/types.js +5 -0
  168. package/operations/entry/elasticsearch/types.js.map +1 -0
  169. package/operations/entry/index.d.ts +2 -4
  170. package/operations/entry/index.js +502 -496
  171. package/operations/entry/index.js.map +1 -0
  172. package/operations/entry/keys.js +0 -9
  173. package/operations/entry/keys.js.map +1 -0
  174. package/operations/entry/recordType.d.ts +3 -0
  175. package/operations/entry/recordType.js +18 -0
  176. package/operations/entry/recordType.js.map +1 -0
  177. package/operations/group/index.d.ts +2 -2
  178. package/operations/group/index.js +10 -47
  179. package/operations/group/index.js.map +1 -0
  180. package/operations/model/index.d.ts +2 -2
  181. package/operations/model/index.js +34 -68
  182. package/operations/model/index.js.map +1 -0
  183. package/operations/settings/index.d.ts +2 -2
  184. package/operations/settings/index.js +7 -37
  185. package/operations/settings/index.js.map +1 -0
  186. package/operations/system/index.d.ts +2 -2
  187. package/operations/system/index.js +5 -28
  188. package/operations/system/index.js.map +1 -0
  189. package/package.json +31 -29
  190. package/plugins/CmsElasticsearchModelFieldPlugin.d.ts +69 -0
  191. package/plugins/CmsElasticsearchModelFieldPlugin.js +48 -0
  192. package/plugins/CmsElasticsearchModelFieldPlugin.js.map +1 -0
  193. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.d.ts +7 -3
  194. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js +9 -11
  195. package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js.map +1 -0
  196. package/plugins/CmsEntryElasticsearchFieldPlugin.d.ts +3 -3
  197. package/plugins/CmsEntryElasticsearchFieldPlugin.js +3 -3
  198. package/plugins/CmsEntryElasticsearchFieldPlugin.js.map +1 -0
  199. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.d.ts +23 -0
  200. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js +28 -0
  201. package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js.map +1 -0
  202. package/plugins/CmsEntryElasticsearchIndexPlugin.d.ts +4 -0
  203. package/plugins/CmsEntryElasticsearchIndexPlugin.js +12 -0
  204. package/plugins/CmsEntryElasticsearchIndexPlugin.js.map +1 -0
  205. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.d.ts +31 -0
  206. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js +37 -0
  207. package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js.map +1 -0
  208. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.d.ts +4 -3
  209. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js +9 -11
  210. package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js.map +1 -0
  211. package/plugins/CmsEntryElasticsearchSortModifierPlugin.d.ts +4 -3
  212. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js +9 -11
  213. package/plugins/CmsEntryElasticsearchSortModifierPlugin.js.map +1 -0
  214. package/plugins/CmsEntryFilterPlugin.d.ts +49 -0
  215. package/plugins/CmsEntryFilterPlugin.js +24 -0
  216. package/plugins/CmsEntryFilterPlugin.js.map +1 -0
  217. package/plugins/index.d.ts +7 -0
  218. package/plugins/index.js +82 -0
  219. package/plugins/index.js.map +1 -0
  220. package/types.d.ts +8 -35
  221. package/types.js +0 -18
  222. package/types.js.map +1 -0
  223. package/helpers/createElasticsearchQueryBody.d.ts +0 -11
  224. package/helpers/createElasticsearchQueryBody.js +0 -375
  225. package/helpers/fields.d.ts +0 -77
  226. package/helpers/fields.js +0 -174
  227. package/helpers/operatorPluginsList.d.ts +0 -7
  228. package/helpers/operatorPluginsList.js +0 -30
  229. package/helpers/searchPluginsList.d.ts +0 -6
  230. package/helpers/transformValueForSearch.d.ts +0 -9
  231. package/helpers/transformValueForSearch.js +0 -26
  232. package/operations/entry/elasticsearchFields.d.ts +0 -2
  233. package/operations/entry/elasticsearchFields.js +0 -32
  234. package/operations/entry/fields.d.ts +0 -3
  235. package/operations/entry/fields.js +0 -60
  236. package/operations/system/createElasticsearchTemplate.d.ts +0 -5
  237. package/operations/system/createElasticsearchTemplate.js +0 -62
  238. package/upgrades/index.d.ts +0 -2
  239. package/upgrades/index.js +0 -16
  240. package/upgrades/utils.d.ts +0 -1
  241. package/upgrades/utils.js +0 -16
  242. package/upgrades/v5.0.0/cleanDatabaseRecord.d.ts +0 -6
  243. package/upgrades/v5.0.0/cleanDatabaseRecord.js +0 -16
  244. package/upgrades/v5.0.0/createOldVersionIndiceName.d.ts +0 -2
  245. package/upgrades/v5.0.0/createOldVersionIndiceName.js +0 -12
  246. package/upgrades/v5.0.0/entryValueFixer.d.ts +0 -4
  247. package/upgrades/v5.0.0/entryValueFixer.js +0 -124
  248. package/upgrades/v5.0.0/fieldFinder.d.ts +0 -6
  249. package/upgrades/v5.0.0/fieldFinder.js +0 -42
  250. package/upgrades/v5.0.0/helpers.d.ts +0 -4
  251. package/upgrades/v5.0.0/helpers.js +0 -57
  252. package/upgrades/v5.0.0/index.d.ts +0 -4
  253. package/upgrades/v5.0.0/index.js +0 -232
  254. package/upgrades/v5.8.0/index.d.ts +0 -4
  255. package/upgrades/v5.8.0/index.js +0 -426
@@ -0,0 +1,69 @@
1
+ import { Plugin } from "@webiny/plugins";
2
+ import { CmsModelFieldType } from "@webiny/api-headless-cms/types";
3
+ /**
4
+ * A plugin which allows you to map a custom GraphQL field to an Elasticsearch field.
5
+ *
6
+ * This is useful when you want to create a custom field in the CMS GraphQL Schema, and you want to map it to an Elasticsearch field.
7
+ */
8
+ export interface CmsModelFieldPluginParams {
9
+ /**
10
+ * The type of the field.
11
+ * Can be something custom, like "my-field-type".
12
+ */
13
+ fieldType: CmsModelFieldType;
14
+ /**
15
+ * The ID of the field on the GraphQL side
16
+ */
17
+ fieldId: string;
18
+ /**
19
+ * The path to the field in the Elasticsearch document.
20
+ */
21
+ path: string;
22
+ /**
23
+ * If the field should be applied only to specific models.
24
+ * Or excluded from the specific models.
25
+ *
26
+ * The default is to apply to all models.
27
+ */
28
+ models?: {
29
+ include?: string[];
30
+ exclude?: string[];
31
+ };
32
+ /**
33
+ * The unmapped type of the field.
34
+ * In most cases, this will be undefined.
35
+ * When does it need to be set?
36
+ *
37
+ * When you are using a custom field type, other than the ones that are defined in the CMS.
38
+ * Let's say you create a field of type `my-field-type`, in which you want to store dates. By the default, it will, in most cases be set as string - if you did not specify the value transformer.
39
+ * If you want to be able to sort/filter properly by this field, you need to specify the unmapped type as "date".
40
+ */
41
+ unmappedType?: string;
42
+ /**
43
+ * Is this field searchable?
44
+ * If set to false, an error will be thrown when trying to search/filter by this field.
45
+ */
46
+ searchable?: boolean;
47
+ /**
48
+ * Is this field sortable?
49
+ * If set to false, an error will be thrown when trying to sort by this field.
50
+ */
51
+ sortable?: boolean;
52
+ /**
53
+ * If the .keyword should be applied when doing the filtering or sorting on the field.
54
+ */
55
+ keyword?: boolean;
56
+ }
57
+ export declare class CmsElasticsearchModelFieldPlugin extends Plugin {
58
+ static readonly type: string;
59
+ private readonly field;
60
+ get fieldType(): string;
61
+ get fieldId(): string;
62
+ get path(): string;
63
+ get unmappedType(): string | undefined;
64
+ get searchable(): boolean | undefined;
65
+ get sortable(): boolean | undefined;
66
+ get keyword(): boolean | undefined;
67
+ constructor(field: CmsModelFieldPluginParams);
68
+ canBeApplied(modelId: string): boolean;
69
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.CmsElasticsearchModelFieldPlugin = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _plugins = require("@webiny/plugins");
10
+ class CmsElasticsearchModelFieldPlugin extends _plugins.Plugin {
11
+ get fieldType() {
12
+ return this.field.fieldType;
13
+ }
14
+ get fieldId() {
15
+ return this.field.fieldId;
16
+ }
17
+ get path() {
18
+ return this.field.path;
19
+ }
20
+ get unmappedType() {
21
+ return this.field.unmappedType;
22
+ }
23
+ get searchable() {
24
+ return this.field.searchable;
25
+ }
26
+ get sortable() {
27
+ return this.field.sortable;
28
+ }
29
+ get keyword() {
30
+ return this.field.keyword;
31
+ }
32
+ constructor(field) {
33
+ super();
34
+ (0, _defineProperty2.default)(this, "field", void 0);
35
+ this.field = field;
36
+ }
37
+ canBeApplied(modelId) {
38
+ var _this$field$models, _this$field$models$in, _this$field$models2, _this$field$models2$e;
39
+ if ((_this$field$models = this.field.models) !== null && _this$field$models !== void 0 && (_this$field$models$in = _this$field$models.include) !== null && _this$field$models$in !== void 0 && _this$field$models$in.length) {
40
+ return this.field.models.include.includes(modelId);
41
+ } else if ((_this$field$models2 = this.field.models) !== null && _this$field$models2 !== void 0 && (_this$field$models2$e = _this$field$models2.exclude) !== null && _this$field$models2$e !== void 0 && _this$field$models2$e.length) {
42
+ return this.field.models.exclude.includes(modelId) === false;
43
+ }
44
+ return true;
45
+ }
46
+ }
47
+ exports.CmsElasticsearchModelFieldPlugin = CmsElasticsearchModelFieldPlugin;
48
+ (0, _defineProperty2.default)(CmsElasticsearchModelFieldPlugin, "type", "headlessCms.elasticsearch.model.field");
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsElasticsearchModelFieldPlugin","Plugin","fieldType","field","fieldId","path","unmappedType","searchable","sortable","keyword","constructor","canBeApplied","modelId","models","include","length","includes","exclude"],"sources":["CmsElasticsearchModelFieldPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { CmsModelFieldType } from \"@webiny/api-headless-cms/types\";\n\n/**\n * A plugin which allows you to map a custom GraphQL field to an Elasticsearch field.\n *\n * This is useful when you want to create a custom field in the CMS GraphQL Schema, and you want to map it to an Elasticsearch field.\n */\nexport interface CmsModelFieldPluginParams {\n /**\n * The type of the field.\n * Can be something custom, like \"my-field-type\".\n */\n fieldType: CmsModelFieldType;\n /**\n * The ID of the field on the GraphQL side\n */\n fieldId: string;\n /**\n * The path to the field in the Elasticsearch document.\n */\n path: string;\n /**\n * If the field should be applied only to specific models.\n * Or excluded from the specific models.\n *\n * The default is to apply to all models.\n */\n models?: {\n include?: string[];\n exclude?: string[];\n };\n /**\n * The unmapped type of the field.\n * In most cases, this will be undefined.\n * When does it need to be set?\n *\n * When you are using a custom field type, other than the ones that are defined in the CMS.\n * Let's say you create a field of type `my-field-type`, in which you want to store dates. By the default, it will, in most cases be set as string - if you did not specify the value transformer.\n * If you want to be able to sort/filter properly by this field, you need to specify the unmapped type as \"date\".\n */\n unmappedType?: string;\n /**\n * Is this field searchable?\n * If set to false, an error will be thrown when trying to search/filter by this field.\n */\n searchable?: boolean;\n /**\n * Is this field sortable?\n * If set to false, an error will be thrown when trying to sort by this field.\n */\n sortable?: boolean;\n /**\n * If the .keyword should be applied when doing the filtering or sorting on the field.\n */\n keyword?: boolean;\n}\n\nexport class CmsElasticsearchModelFieldPlugin extends Plugin {\n public static override readonly type: string = \"headlessCms.elasticsearch.model.field\";\n\n private readonly field: CmsModelFieldPluginParams;\n\n public get fieldType() {\n return this.field.fieldType;\n }\n public get fieldId() {\n return this.field.fieldId;\n }\n public get path() {\n return this.field.path;\n }\n\n public get unmappedType() {\n return this.field.unmappedType;\n }\n\n public get searchable() {\n return this.field.searchable;\n }\n\n public get sortable() {\n return this.field.sortable;\n }\n\n public get keyword() {\n return this.field.keyword;\n }\n\n public constructor(field: CmsModelFieldPluginParams) {\n super();\n this.field = field;\n }\n\n public canBeApplied(modelId: string): boolean {\n if (this.field.models?.include?.length) {\n return this.field.models.include.includes(modelId);\n } else if (this.field.models?.exclude?.length) {\n return this.field.models.exclude.includes(modelId) === false;\n }\n return true;\n }\n}\n"],"mappings":";;;;;;;;AAAA;AA0DO,MAAMA,gCAAgC,SAASC,eAAM,CAAC;EAKzD,IAAWC,SAAS,GAAG;IACnB,OAAO,IAAI,CAACC,KAAK,CAACD,SAAS;EAC/B;EACA,IAAWE,OAAO,GAAG;IACjB,OAAO,IAAI,CAACD,KAAK,CAACC,OAAO;EAC7B;EACA,IAAWC,IAAI,GAAG;IACd,OAAO,IAAI,CAACF,KAAK,CAACE,IAAI;EAC1B;EAEA,IAAWC,YAAY,GAAG;IACtB,OAAO,IAAI,CAACH,KAAK,CAACG,YAAY;EAClC;EAEA,IAAWC,UAAU,GAAG;IACpB,OAAO,IAAI,CAACJ,KAAK,CAACI,UAAU;EAChC;EAEA,IAAWC,QAAQ,GAAG;IAClB,OAAO,IAAI,CAACL,KAAK,CAACK,QAAQ;EAC9B;EAEA,IAAWC,OAAO,GAAG;IACjB,OAAO,IAAI,CAACN,KAAK,CAACM,OAAO;EAC7B;EAEOC,WAAW,CAACP,KAAgC,EAAE;IACjD,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;EAEOQ,YAAY,CAACC,OAAe,EAAW;IAAA;IAC1C,0BAAI,IAAI,CAACT,KAAK,CAACU,MAAM,wEAAjB,mBAAmBC,OAAO,kDAA1B,sBAA4BC,MAAM,EAAE;MACpC,OAAO,IAAI,CAACZ,KAAK,CAACU,MAAM,CAACC,OAAO,CAACE,QAAQ,CAACJ,OAAO,CAAC;IACtD,CAAC,MAAM,2BAAI,IAAI,CAACT,KAAK,CAACU,MAAM,yEAAjB,oBAAmBI,OAAO,kDAA1B,sBAA4BF,MAAM,EAAE;MAC3C,OAAO,IAAI,CAACZ,KAAK,CAACU,MAAM,CAACI,OAAO,CAACD,QAAQ,CAACJ,OAAO,CAAC,KAAK,KAAK;IAChE;IACA,OAAO,IAAI;EACf;AACJ;AAAC;AAAA,8BA5CYZ,gCAAgC,UACM,uCAAuC"}
@@ -1,9 +1,12 @@
1
- import { ElasticsearchBodyModifierPlugin, ModifyBodyCallable, ModifyBodyParams as BaseModifyBodyParams } from "@webiny/api-elasticsearch/plugins/definition/ElasticsearchBodyModifierPlugin";
1
+ import { ElasticsearchBodyModifierPlugin, ModifyBodyCallable, ModifyBodyParams as BaseModifyBodyParams } from "@webiny/api-elasticsearch";
2
2
  import { CmsModel } from "@webiny/api-headless-cms/types";
3
3
  export interface ModifyBodyParams extends BaseModifyBodyParams {
4
4
  model: CmsModel;
5
+ where: {
6
+ [key: string]: any;
7
+ };
5
8
  }
6
- export interface Config {
9
+ export interface CmsEntryElasticsearchBodyModifierPluginConfig {
7
10
  modifyBody: ModifyBodyCallable<ModifyBodyParams>;
8
11
  /**
9
12
  * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.
@@ -13,5 +16,6 @@ export interface Config {
13
16
  export declare class CmsEntryElasticsearchBodyModifierPlugin extends ElasticsearchBodyModifierPlugin<ModifyBodyParams> {
14
17
  static readonly type: string;
15
18
  readonly modelId?: string;
16
- constructor(config: Config);
19
+ constructor(config: CmsEntryElasticsearchBodyModifierPluginConfig);
17
20
  }
21
+ export declare const createCmsEntryElasticsearchBodyModifierPlugin: (config: CmsEntryElasticsearchBodyModifierPluginConfig) => CmsEntryElasticsearchBodyModifierPlugin;
@@ -1,24 +1,22 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.CmsEntryElasticsearchBodyModifierPlugin = void 0;
9
-
7
+ exports.createCmsEntryElasticsearchBodyModifierPlugin = exports.CmsEntryElasticsearchBodyModifierPlugin = void 0;
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _ElasticsearchBodyModifierPlugin = require("@webiny/api-elasticsearch/plugins/definition/ElasticsearchBodyModifierPlugin");
13
-
14
- class CmsEntryElasticsearchBodyModifierPlugin extends _ElasticsearchBodyModifierPlugin.ElasticsearchBodyModifierPlugin {
9
+ var _apiElasticsearch = require("@webiny/api-elasticsearch");
10
+ class CmsEntryElasticsearchBodyModifierPlugin extends _apiElasticsearch.ElasticsearchBodyModifierPlugin {
15
11
  constructor(config) {
16
12
  super(config.modifyBody);
17
13
  (0, _defineProperty2.default)(this, "modelId", void 0);
18
14
  this.modelId = config.modelId;
19
15
  }
20
-
21
16
  }
22
-
23
17
  exports.CmsEntryElasticsearchBodyModifierPlugin = CmsEntryElasticsearchBodyModifierPlugin;
24
- (0, _defineProperty2.default)(CmsEntryElasticsearchBodyModifierPlugin, "type", "cms.elasticsearch.modifier.body.entry");
18
+ (0, _defineProperty2.default)(CmsEntryElasticsearchBodyModifierPlugin, "type", "cms.elasticsearch.modifier.body.entry");
19
+ const createCmsEntryElasticsearchBodyModifierPlugin = config => {
20
+ return new CmsEntryElasticsearchBodyModifierPlugin(config);
21
+ };
22
+ exports.createCmsEntryElasticsearchBodyModifierPlugin = createCmsEntryElasticsearchBodyModifierPlugin;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryElasticsearchBodyModifierPlugin","ElasticsearchBodyModifierPlugin","constructor","config","modifyBody","modelId","createCmsEntryElasticsearchBodyModifierPlugin"],"sources":["CmsEntryElasticsearchBodyModifierPlugin.ts"],"sourcesContent":["import {\n ElasticsearchBodyModifierPlugin,\n ModifyBodyCallable,\n ModifyBodyParams as BaseModifyBodyParams\n} from \"@webiny/api-elasticsearch\";\nimport { CmsModel } from \"@webiny/api-headless-cms/types\";\n\nexport interface ModifyBodyParams extends BaseModifyBodyParams {\n model: CmsModel;\n where: {\n [key: string]: any;\n };\n}\n\nexport interface CmsEntryElasticsearchBodyModifierPluginConfig {\n modifyBody: ModifyBodyCallable<ModifyBodyParams>;\n /**\n * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.\n */\n modelId?: string;\n}\n\nexport class CmsEntryElasticsearchBodyModifierPlugin extends ElasticsearchBodyModifierPlugin<ModifyBodyParams> {\n public static override readonly type: string = \"cms.elasticsearch.modifier.body.entry\";\n\n public readonly modelId?: string;\n\n public constructor(config: CmsEntryElasticsearchBodyModifierPluginConfig) {\n super(config.modifyBody);\n\n this.modelId = config.modelId;\n }\n}\n\nexport const createCmsEntryElasticsearchBodyModifierPlugin = (\n config: CmsEntryElasticsearchBodyModifierPluginConfig\n) => {\n return new CmsEntryElasticsearchBodyModifierPlugin(config);\n};\n"],"mappings":";;;;;;;;AAAA;AAsBO,MAAMA,uCAAuC,SAASC,iDAA+B,CAAmB;EAKpGC,WAAW,CAACC,MAAqD,EAAE;IACtE,KAAK,CAACA,MAAM,CAACC,UAAU,CAAC;IAAC;IAEzB,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;EACjC;AACJ;AAAC;AAAA,8BAVYL,uCAAuC,UACD,uCAAuC;AAWnF,MAAMM,6CAA6C,GACtDH,MAAqD,IACpD;EACD,OAAO,IAAIH,uCAAuC,CAACG,MAAM,CAAC;AAC9D,CAAC;AAAC"}
@@ -1,5 +1,5 @@
1
- import { ElasticsearchFieldPlugin, Params as BaseParams } from "@webiny/api-elasticsearch/plugins/definition/ElasticsearchFieldPlugin";
2
- export interface Params extends BaseParams {
1
+ import { ElasticsearchFieldPlugin, ElasticsearchFieldPluginParams as ElasticsearchFieldPluginParamsBaseParams } from "@webiny/api-elasticsearch";
2
+ export interface CmsEntryElasticsearchFieldPluginParams extends ElasticsearchFieldPluginParamsBaseParams {
3
3
  /**
4
4
  * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.
5
5
  */
@@ -8,5 +8,5 @@ export interface Params extends BaseParams {
8
8
  export declare class CmsEntryElasticsearchFieldPlugin extends ElasticsearchFieldPlugin {
9
9
  static readonly type: string;
10
10
  readonly modelId?: string;
11
- constructor(params: Params);
11
+ constructor(params: CmsEntryElasticsearchFieldPluginParams);
12
12
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -9,9 +9,9 @@ exports.CmsEntryElasticsearchFieldPlugin = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
12
- var _ElasticsearchFieldPlugin = require("@webiny/api-elasticsearch/plugins/definition/ElasticsearchFieldPlugin");
12
+ var _apiElasticsearch = require("@webiny/api-elasticsearch");
13
13
 
14
- class CmsEntryElasticsearchFieldPlugin extends _ElasticsearchFieldPlugin.ElasticsearchFieldPlugin {
14
+ class CmsEntryElasticsearchFieldPlugin extends _apiElasticsearch.ElasticsearchFieldPlugin {
15
15
  constructor(params) {
16
16
  super(params);
17
17
  (0, _defineProperty2.default)(this, "modelId", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryElasticsearchFieldPlugin","ElasticsearchFieldPlugin","constructor","params","modelId"],"sources":["CmsEntryElasticsearchFieldPlugin.ts"],"sourcesContent":["import {\n ElasticsearchFieldPlugin,\n ElasticsearchFieldPluginParams as ElasticsearchFieldPluginParamsBaseParams\n} from \"@webiny/api-elasticsearch\";\n\nexport interface CmsEntryElasticsearchFieldPluginParams\n extends ElasticsearchFieldPluginParamsBaseParams {\n /**\n * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.\n */\n modelId?: string;\n}\nexport class CmsEntryElasticsearchFieldPlugin extends ElasticsearchFieldPlugin {\n public static override readonly type: string = \"elasticsearch.fieldDefinition.cms.entry\";\n\n public readonly modelId?: string;\n\n public constructor(params: CmsEntryElasticsearchFieldPluginParams) {\n super(params);\n\n this.modelId = params.modelId;\n }\n}\n"],"mappings":";;;;;;;;;;;AAAA;;AAYO,MAAMA,gCAAN,SAA+CC,0CAA/C,CAAwE;EAKpEC,WAAW,CAACC,MAAD,EAAiD;IAC/D,MAAMA,MAAN;IAD+D;IAG/D,KAAKC,OAAL,GAAeD,MAAM,CAACC,OAAtB;EACH;;AAT0E;;;8BAAlEJ,gC,UACsC,yC"}
@@ -0,0 +1,23 @@
1
+ import { Plugin } from "@webiny/plugins";
2
+ import { ElasticsearchBoolQueryConfig } from "@webiny/api-elasticsearch/types";
3
+ import { CmsModel, CmsModelField } from "@webiny/api-headless-cms/types";
4
+ export interface CmsEntryElasticsearchFullTextSearchPluginCbParams {
5
+ model: CmsModel;
6
+ query: ElasticsearchBoolQueryConfig;
7
+ term: string;
8
+ fields: CmsModelField[];
9
+ createFieldPath: (field: CmsModelField) => string;
10
+ prepareTerm: (term: string) => string;
11
+ }
12
+ export interface CmsEntryElasticsearchFullTextSearchPluginParams {
13
+ models?: string[];
14
+ apply: (params: CmsEntryElasticsearchFullTextSearchPluginCbParams) => void;
15
+ }
16
+ export declare class CmsEntryElasticsearchFullTextSearchPlugin extends Plugin {
17
+ static readonly type: string;
18
+ private readonly params;
19
+ get models(): string[] | undefined;
20
+ constructor(params: CmsEntryElasticsearchFullTextSearchPluginParams);
21
+ apply(params: CmsEntryElasticsearchFullTextSearchPluginCbParams): void;
22
+ }
23
+ export declare const createCmsEntryElasticsearchFullTextSearchPlugin: (params: CmsEntryElasticsearchFullTextSearchPluginParams) => CmsEntryElasticsearchFullTextSearchPlugin;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.createCmsEntryElasticsearchFullTextSearchPlugin = exports.CmsEntryElasticsearchFullTextSearchPlugin = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _plugins = require("@webiny/plugins");
10
+ class CmsEntryElasticsearchFullTextSearchPlugin extends _plugins.Plugin {
11
+ get models() {
12
+ return this.params.models;
13
+ }
14
+ constructor(params) {
15
+ super();
16
+ (0, _defineProperty2.default)(this, "params", void 0);
17
+ this.params = params;
18
+ }
19
+ apply(params) {
20
+ return this.params.apply(params);
21
+ }
22
+ }
23
+ exports.CmsEntryElasticsearchFullTextSearchPlugin = CmsEntryElasticsearchFullTextSearchPlugin;
24
+ (0, _defineProperty2.default)(CmsEntryElasticsearchFullTextSearchPlugin, "type", "headless-cms.elasticsearch.entry.fullTextSearch");
25
+ const createCmsEntryElasticsearchFullTextSearchPlugin = params => {
26
+ return new CmsEntryElasticsearchFullTextSearchPlugin(params);
27
+ };
28
+ exports.createCmsEntryElasticsearchFullTextSearchPlugin = createCmsEntryElasticsearchFullTextSearchPlugin;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryElasticsearchFullTextSearchPlugin","Plugin","models","params","constructor","apply","createCmsEntryElasticsearchFullTextSearchPlugin"],"sources":["CmsEntryElasticsearchFullTextSearchPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { ElasticsearchBoolQueryConfig } from \"@webiny/api-elasticsearch/types\";\nimport { CmsModel, CmsModelField } from \"@webiny/api-headless-cms/types\";\n\nexport interface CmsEntryElasticsearchFullTextSearchPluginCbParams {\n model: CmsModel;\n query: ElasticsearchBoolQueryConfig;\n term: string;\n fields: CmsModelField[];\n createFieldPath: (field: CmsModelField) => string;\n prepareTerm: (term: string) => string;\n}\nexport interface CmsEntryElasticsearchFullTextSearchPluginParams {\n models?: string[];\n apply: (params: CmsEntryElasticsearchFullTextSearchPluginCbParams) => void;\n}\nexport class CmsEntryElasticsearchFullTextSearchPlugin extends Plugin {\n public static override readonly type: string =\n \"headless-cms.elasticsearch.entry.fullTextSearch\";\n\n private readonly params: CmsEntryElasticsearchFullTextSearchPluginParams;\n\n public get models() {\n return this.params.models;\n }\n\n public constructor(params: CmsEntryElasticsearchFullTextSearchPluginParams) {\n super();\n this.params = params;\n }\n\n public apply(params: CmsEntryElasticsearchFullTextSearchPluginCbParams): void {\n return this.params.apply(params);\n }\n}\n\nexport const createCmsEntryElasticsearchFullTextSearchPlugin = (\n params: CmsEntryElasticsearchFullTextSearchPluginParams\n) => {\n return new CmsEntryElasticsearchFullTextSearchPlugin(params);\n};\n"],"mappings":";;;;;;;;AAAA;AAgBO,MAAMA,yCAAyC,SAASC,eAAM,CAAC;EAMlE,IAAWC,MAAM,GAAG;IAChB,OAAO,IAAI,CAACC,MAAM,CAACD,MAAM;EAC7B;EAEOE,WAAW,CAACD,MAAuD,EAAE;IACxE,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;EAEOE,KAAK,CAACF,MAAyD,EAAQ;IAC1E,OAAO,IAAI,CAACA,MAAM,CAACE,KAAK,CAACF,MAAM,CAAC;EACpC;AACJ;AAAC;AAAA,8BAlBYH,yCAAyC,UAE9C,iDAAiD;AAkBlD,MAAMM,+CAA+C,GACxDH,MAAuD,IACtD;EACD,OAAO,IAAIH,yCAAyC,CAACG,MAAM,CAAC;AAChE,CAAC;AAAC"}
@@ -0,0 +1,4 @@
1
+ import { ElasticsearchIndexPlugin } from "@webiny/api-elasticsearch";
2
+ export declare class CmsEntryElasticsearchIndexPlugin extends ElasticsearchIndexPlugin {
3
+ static readonly type: string;
4
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.CmsEntryElasticsearchIndexPlugin = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _apiElasticsearch = require("@webiny/api-elasticsearch");
10
+ class CmsEntryElasticsearchIndexPlugin extends _apiElasticsearch.ElasticsearchIndexPlugin {}
11
+ exports.CmsEntryElasticsearchIndexPlugin = CmsEntryElasticsearchIndexPlugin;
12
+ (0, _defineProperty2.default)(CmsEntryElasticsearchIndexPlugin, "type", "cms.entry.elasticsearch.index");
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryElasticsearchIndexPlugin","ElasticsearchIndexPlugin"],"sources":["CmsEntryElasticsearchIndexPlugin.ts"],"sourcesContent":["import { ElasticsearchIndexPlugin } from \"@webiny/api-elasticsearch\";\n\nexport class CmsEntryElasticsearchIndexPlugin extends ElasticsearchIndexPlugin {\n public static override readonly type: string = \"cms.entry.elasticsearch.index\";\n}\n"],"mappings":";;;;;;;;AAAA;AAEO,MAAMA,gCAAgC,SAASC,0CAAwB,CAAC;AAE9E;AAAA,8BAFYD,gCAAgC,UACM,+BAA+B"}
@@ -0,0 +1,31 @@
1
+ import { Plugin } from "@webiny/plugins/Plugin";
2
+ import { CmsModelField } from "@webiny/api-headless-cms/types";
3
+ export interface CreatePathCallableParams<T = any> {
4
+ field: CmsModelField;
5
+ key: string;
6
+ value: T;
7
+ }
8
+ export interface CreatePathCallable<T = any> {
9
+ (params: CreatePathCallableParams<T>): string;
10
+ }
11
+ export interface TransformCallableParams<T = any> {
12
+ field: CmsModelField;
13
+ value: T;
14
+ }
15
+ export interface TransformCallable<T = any> {
16
+ (params: TransformCallableParams<T>): string;
17
+ }
18
+ export interface CmsEntryElasticsearchQueryBuilderValueSearchPluginParams {
19
+ fieldType: string;
20
+ path?: string | CreatePathCallable;
21
+ transform: TransformCallable;
22
+ }
23
+ export declare class CmsEntryElasticsearchQueryBuilderValueSearchPlugin extends Plugin {
24
+ static readonly type: string;
25
+ private readonly config;
26
+ get fieldType(): string;
27
+ constructor(params: CmsEntryElasticsearchQueryBuilderValueSearchPluginParams);
28
+ transform(params: TransformCallableParams): any;
29
+ createPath(params: CreatePathCallableParams): string | null;
30
+ }
31
+ export declare const createCmsEntryElasticsearchQueryBuilderValueSearchPlugin: (params: CmsEntryElasticsearchQueryBuilderValueSearchPluginParams) => CmsEntryElasticsearchQueryBuilderValueSearchPlugin;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.createCmsEntryElasticsearchQueryBuilderValueSearchPlugin = exports.CmsEntryElasticsearchQueryBuilderValueSearchPlugin = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _Plugin = require("@webiny/plugins/Plugin");
10
+ class CmsEntryElasticsearchQueryBuilderValueSearchPlugin extends _Plugin.Plugin {
11
+ get fieldType() {
12
+ return this.config.fieldType;
13
+ }
14
+ constructor(params) {
15
+ super();
16
+ (0, _defineProperty2.default)(this, "config", void 0);
17
+ this.config = params;
18
+ this.name = `${this.constructor.type}-${this.config.fieldType}`;
19
+ }
20
+ transform(params) {
21
+ return this.config.transform(params);
22
+ }
23
+ createPath(params) {
24
+ if (typeof this.config.path === "function") {
25
+ return this.config.path(params);
26
+ } else if (typeof this.config.path === "string") {
27
+ return this.config.path;
28
+ }
29
+ return null;
30
+ }
31
+ }
32
+ exports.CmsEntryElasticsearchQueryBuilderValueSearchPlugin = CmsEntryElasticsearchQueryBuilderValueSearchPlugin;
33
+ (0, _defineProperty2.default)(CmsEntryElasticsearchQueryBuilderValueSearchPlugin, "type", "cms-elastic-search-query-builder-value-search");
34
+ const createCmsEntryElasticsearchQueryBuilderValueSearchPlugin = params => {
35
+ return new CmsEntryElasticsearchQueryBuilderValueSearchPlugin(params);
36
+ };
37
+ exports.createCmsEntryElasticsearchQueryBuilderValueSearchPlugin = createCmsEntryElasticsearchQueryBuilderValueSearchPlugin;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryElasticsearchQueryBuilderValueSearchPlugin","Plugin","fieldType","config","constructor","params","name","type","transform","createPath","path","createCmsEntryElasticsearchQueryBuilderValueSearchPlugin"],"sources":["CmsEntryElasticsearchQueryBuilderValueSearchPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins/Plugin\";\nimport { CmsModelField } from \"@webiny/api-headless-cms/types\";\n\nexport interface CreatePathCallableParams<T = any> {\n field: CmsModelField;\n key: string;\n value: T;\n}\n\nexport interface CreatePathCallable<T = any> {\n (params: CreatePathCallableParams<T>): string;\n}\n\nexport interface TransformCallableParams<T = any> {\n field: CmsModelField;\n value: T;\n}\nexport interface TransformCallable<T = any> {\n (params: TransformCallableParams<T>): string;\n}\n\nexport interface CmsEntryElasticsearchQueryBuilderValueSearchPluginParams {\n fieldType: string;\n path?: string | CreatePathCallable;\n transform: TransformCallable;\n}\nexport class CmsEntryElasticsearchQueryBuilderValueSearchPlugin extends Plugin {\n public static override readonly type: string = \"cms-elastic-search-query-builder-value-search\";\n\n private readonly config: CmsEntryElasticsearchQueryBuilderValueSearchPluginParams;\n\n public get fieldType(): string {\n return this.config.fieldType;\n }\n\n public constructor(params: CmsEntryElasticsearchQueryBuilderValueSearchPluginParams) {\n super();\n\n this.config = params;\n this.name = `${(this.constructor as any).type}-${this.config.fieldType}`;\n }\n\n public transform(params: TransformCallableParams): any {\n return this.config.transform(params);\n }\n\n public createPath(params: CreatePathCallableParams): string | null {\n if (typeof this.config.path === \"function\") {\n return this.config.path(params);\n } else if (typeof this.config.path === \"string\") {\n return this.config.path;\n }\n return null;\n }\n}\n\nexport const createCmsEntryElasticsearchQueryBuilderValueSearchPlugin = (\n params: CmsEntryElasticsearchQueryBuilderValueSearchPluginParams\n) => {\n return new CmsEntryElasticsearchQueryBuilderValueSearchPlugin(params);\n};\n"],"mappings":";;;;;;;;AAAA;AA0BO,MAAMA,kDAAkD,SAASC,cAAM,CAAC;EAK3E,IAAWC,SAAS,GAAW;IAC3B,OAAO,IAAI,CAACC,MAAM,CAACD,SAAS;EAChC;EAEOE,WAAW,CAACC,MAAgE,EAAE;IACjF,KAAK,EAAE;IAAC;IAER,IAAI,CAACF,MAAM,GAAGE,MAAM;IACpB,IAAI,CAACC,IAAI,GAAI,GAAG,IAAI,CAACF,WAAW,CAASG,IAAK,IAAG,IAAI,CAACJ,MAAM,CAACD,SAAU,EAAC;EAC5E;EAEOM,SAAS,CAACH,MAA+B,EAAO;IACnD,OAAO,IAAI,CAACF,MAAM,CAACK,SAAS,CAACH,MAAM,CAAC;EACxC;EAEOI,UAAU,CAACJ,MAAgC,EAAiB;IAC/D,IAAI,OAAO,IAAI,CAACF,MAAM,CAACO,IAAI,KAAK,UAAU,EAAE;MACxC,OAAO,IAAI,CAACP,MAAM,CAACO,IAAI,CAACL,MAAM,CAAC;IACnC,CAAC,MAAM,IAAI,OAAO,IAAI,CAACF,MAAM,CAACO,IAAI,KAAK,QAAQ,EAAE;MAC7C,OAAO,IAAI,CAACP,MAAM,CAACO,IAAI;IAC3B;IACA,OAAO,IAAI;EACf;AACJ;AAAC;AAAA,8BA5BYV,kDAAkD,UACZ,+CAA+C;AA6B3F,MAAMW,wDAAwD,GACjEN,MAAgE,IAC/D;EACD,OAAO,IAAIL,kDAAkD,CAACK,MAAM,CAAC;AACzE,CAAC;AAAC"}
@@ -1,9 +1,9 @@
1
- import { ElasticsearchQueryModifierPlugin, ModifyQueryCallable, ModifyQueryParams as BaseModifyQueryParams } from "@webiny/api-elasticsearch/plugins/definition/ElasticsearchQueryModifierPlugin";
1
+ import { ElasticsearchQueryModifierPlugin, ModifyQueryCallable, ModifyQueryParams as BaseModifyQueryParams } from "@webiny/api-elasticsearch";
2
2
  import { CmsModel } from "@webiny/api-headless-cms/types";
3
3
  export interface ModifyQueryParams extends BaseModifyQueryParams {
4
4
  model: CmsModel;
5
5
  }
6
- export interface Config {
6
+ export interface CmsEntryElasticsearchQueryModifierPluginConfig {
7
7
  modifyQuery: ModifyQueryCallable<ModifyQueryParams>;
8
8
  /**
9
9
  * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.
@@ -13,5 +13,6 @@ export interface Config {
13
13
  export declare class CmsEntryElasticsearchQueryModifierPlugin extends ElasticsearchQueryModifierPlugin<ModifyQueryParams> {
14
14
  static readonly type: string;
15
15
  readonly modelId?: string;
16
- constructor(config: Config);
16
+ constructor(config: CmsEntryElasticsearchQueryModifierPluginConfig);
17
17
  }
18
+ export declare const createCmsEntryElasticsearchQueryModifierPlugin: (config: CmsEntryElasticsearchQueryModifierPluginConfig) => CmsEntryElasticsearchQueryModifierPlugin;
@@ -1,24 +1,22 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.CmsEntryElasticsearchQueryModifierPlugin = void 0;
9
-
7
+ exports.createCmsEntryElasticsearchQueryModifierPlugin = exports.CmsEntryElasticsearchQueryModifierPlugin = void 0;
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _ElasticsearchQueryModifierPlugin = require("@webiny/api-elasticsearch/plugins/definition/ElasticsearchQueryModifierPlugin");
13
-
14
- class CmsEntryElasticsearchQueryModifierPlugin extends _ElasticsearchQueryModifierPlugin.ElasticsearchQueryModifierPlugin {
9
+ var _apiElasticsearch = require("@webiny/api-elasticsearch");
10
+ class CmsEntryElasticsearchQueryModifierPlugin extends _apiElasticsearch.ElasticsearchQueryModifierPlugin {
15
11
  constructor(config) {
16
12
  super(config.modifyQuery);
17
13
  (0, _defineProperty2.default)(this, "modelId", void 0);
18
14
  this.modelId = config.modelId;
19
15
  }
20
-
21
16
  }
22
-
23
17
  exports.CmsEntryElasticsearchQueryModifierPlugin = CmsEntryElasticsearchQueryModifierPlugin;
24
- (0, _defineProperty2.default)(CmsEntryElasticsearchQueryModifierPlugin, "type", "cms.elasticsearch.modifier.query.entry");
18
+ (0, _defineProperty2.default)(CmsEntryElasticsearchQueryModifierPlugin, "type", "cms.elasticsearch.modifier.query.entry");
19
+ const createCmsEntryElasticsearchQueryModifierPlugin = config => {
20
+ return new CmsEntryElasticsearchQueryModifierPlugin(config);
21
+ };
22
+ exports.createCmsEntryElasticsearchQueryModifierPlugin = createCmsEntryElasticsearchQueryModifierPlugin;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryElasticsearchQueryModifierPlugin","ElasticsearchQueryModifierPlugin","constructor","config","modifyQuery","modelId","createCmsEntryElasticsearchQueryModifierPlugin"],"sources":["CmsEntryElasticsearchQueryModifierPlugin.ts"],"sourcesContent":["import {\n ElasticsearchQueryModifierPlugin,\n ModifyQueryCallable,\n ModifyQueryParams as BaseModifyQueryParams\n} from \"@webiny/api-elasticsearch\";\nimport { CmsModel } from \"@webiny/api-headless-cms/types\";\n\nexport interface ModifyQueryParams extends BaseModifyQueryParams {\n model: CmsModel;\n}\n\nexport interface CmsEntryElasticsearchQueryModifierPluginConfig {\n modifyQuery: ModifyQueryCallable<ModifyQueryParams>;\n /**\n * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.\n */\n modelId?: string;\n}\n\nexport class CmsEntryElasticsearchQueryModifierPlugin extends ElasticsearchQueryModifierPlugin<ModifyQueryParams> {\n public static override readonly type: string = \"cms.elasticsearch.modifier.query.entry\";\n\n public readonly modelId?: string;\n\n public constructor(config: CmsEntryElasticsearchQueryModifierPluginConfig) {\n super(config.modifyQuery);\n\n this.modelId = config.modelId;\n }\n}\n\nexport const createCmsEntryElasticsearchQueryModifierPlugin = (\n config: CmsEntryElasticsearchQueryModifierPluginConfig\n) => {\n return new CmsEntryElasticsearchQueryModifierPlugin(config);\n};\n"],"mappings":";;;;;;;;AAAA;AAmBO,MAAMA,wCAAwC,SAASC,kDAAgC,CAAoB;EAKvGC,WAAW,CAACC,MAAsD,EAAE;IACvE,KAAK,CAACA,MAAM,CAACC,WAAW,CAAC;IAAC;IAE1B,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;EACjC;AACJ;AAAC;AAAA,8BAVYL,wCAAwC,UACF,wCAAwC;AAWpF,MAAMM,8CAA8C,GACvDH,MAAsD,IACrD;EACD,OAAO,IAAIH,wCAAwC,CAACG,MAAM,CAAC;AAC/D,CAAC;AAAC"}
@@ -1,9 +1,9 @@
1
- import { ElasticsearchSortModifierPlugin, ModifySortCallable, ModifySortParams as BaseModifySortParams } from "@webiny/api-elasticsearch/plugins/definition/ElasticsearchSortModifierPlugin";
1
+ import { ElasticsearchSortModifierPlugin, ModifySortCallable, ModifySortParams as BaseModifySortParams } from "@webiny/api-elasticsearch";
2
2
  import { CmsModel } from "@webiny/api-headless-cms/types";
3
3
  export interface ModifySortParams extends BaseModifySortParams {
4
4
  model: CmsModel;
5
5
  }
6
- export interface Config {
6
+ export interface CmsEntryElasticsearchSortModifierPluginConfig {
7
7
  modifySort: ModifySortCallable<ModifySortParams>;
8
8
  /**
9
9
  * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.
@@ -13,5 +13,6 @@ export interface Config {
13
13
  export declare class CmsEntryElasticsearchSortModifierPlugin extends ElasticsearchSortModifierPlugin<ModifySortParams> {
14
14
  static readonly type: string;
15
15
  readonly modelId?: string;
16
- constructor(config: Config);
16
+ constructor(config: CmsEntryElasticsearchSortModifierPluginConfig);
17
17
  }
18
+ export declare const createCmsEntryElasticsearchSortModifierPlugin: (config: CmsEntryElasticsearchSortModifierPluginConfig) => CmsEntryElasticsearchSortModifierPlugin;
@@ -1,24 +1,22 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.CmsEntryElasticsearchSortModifierPlugin = void 0;
9
-
7
+ exports.createCmsEntryElasticsearchSortModifierPlugin = exports.CmsEntryElasticsearchSortModifierPlugin = void 0;
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _ElasticsearchSortModifierPlugin = require("@webiny/api-elasticsearch/plugins/definition/ElasticsearchSortModifierPlugin");
13
-
14
- class CmsEntryElasticsearchSortModifierPlugin extends _ElasticsearchSortModifierPlugin.ElasticsearchSortModifierPlugin {
9
+ var _apiElasticsearch = require("@webiny/api-elasticsearch");
10
+ class CmsEntryElasticsearchSortModifierPlugin extends _apiElasticsearch.ElasticsearchSortModifierPlugin {
15
11
  constructor(config) {
16
12
  super(config.modifySort);
17
13
  (0, _defineProperty2.default)(this, "modelId", void 0);
18
14
  this.modelId = config.modelId;
19
15
  }
20
-
21
16
  }
22
-
23
17
  exports.CmsEntryElasticsearchSortModifierPlugin = CmsEntryElasticsearchSortModifierPlugin;
24
- (0, _defineProperty2.default)(CmsEntryElasticsearchSortModifierPlugin, "type", "cms.elasticsearch.modifier.sort.entry");
18
+ (0, _defineProperty2.default)(CmsEntryElasticsearchSortModifierPlugin, "type", "cms.elasticsearch.modifier.sort.entry");
19
+ const createCmsEntryElasticsearchSortModifierPlugin = config => {
20
+ return new CmsEntryElasticsearchSortModifierPlugin(config);
21
+ };
22
+ exports.createCmsEntryElasticsearchSortModifierPlugin = createCmsEntryElasticsearchSortModifierPlugin;
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryElasticsearchSortModifierPlugin","ElasticsearchSortModifierPlugin","constructor","config","modifySort","modelId","createCmsEntryElasticsearchSortModifierPlugin"],"sources":["CmsEntryElasticsearchSortModifierPlugin.ts"],"sourcesContent":["import {\n ElasticsearchSortModifierPlugin,\n ModifySortCallable,\n ModifySortParams as BaseModifySortParams\n} from \"@webiny/api-elasticsearch\";\nimport { CmsModel } from \"@webiny/api-headless-cms/types\";\n\nexport interface ModifySortParams extends BaseModifySortParams {\n model: CmsModel;\n}\n\nexport interface CmsEntryElasticsearchSortModifierPluginConfig {\n modifySort: ModifySortCallable<ModifySortParams>;\n /**\n * If modelId is not passed, there is no filtering of plugins by it when plugin is applied during the runtime.\n */\n modelId?: string;\n}\n\nexport class CmsEntryElasticsearchSortModifierPlugin extends ElasticsearchSortModifierPlugin<ModifySortParams> {\n public static override readonly type: string = \"cms.elasticsearch.modifier.sort.entry\";\n\n public readonly modelId?: string;\n\n public constructor(config: CmsEntryElasticsearchSortModifierPluginConfig) {\n super(config.modifySort);\n this.modelId = config.modelId;\n }\n}\n\nexport const createCmsEntryElasticsearchSortModifierPlugin = (\n config: CmsEntryElasticsearchSortModifierPluginConfig\n) => {\n return new CmsEntryElasticsearchSortModifierPlugin(config);\n};\n"],"mappings":";;;;;;;;AAAA;AAmBO,MAAMA,uCAAuC,SAASC,iDAA+B,CAAmB;EAKpGC,WAAW,CAACC,MAAqD,EAAE;IACtE,KAAK,CAACA,MAAM,CAACC,UAAU,CAAC;IAAC;IACzB,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;EACjC;AACJ;AAAC;AAAA,8BATYL,uCAAuC,UACD,uCAAuC;AAUnF,MAAMM,6CAA6C,GACtDH,MAAqD,IACpD;EACD,OAAO,IAAIH,uCAAuC,CAACG,MAAM,CAAC;AAC9D,CAAC;AAAC"}
@@ -0,0 +1,49 @@
1
+ import { Plugin } from "@webiny/plugins";
2
+ import { ValueFilterPlugin } from "@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin";
3
+ import { ModelField, ModelFields } from "../operations/entry/elasticsearch/types";
4
+ import { ElasticsearchBoolQueryConfig } from "@webiny/api-elasticsearch/types";
5
+ interface CmsEntryFilterPluginConfig {
6
+ fieldType: string;
7
+ exec: (params: ExecParams) => void;
8
+ }
9
+ interface ApplyParams {
10
+ key: string;
11
+ value: any;
12
+ query: ElasticsearchBoolQueryConfig;
13
+ operator: string;
14
+ field: ModelField;
15
+ }
16
+ export interface ApplyFilteringCb {
17
+ (params: ApplyParams): void;
18
+ }
19
+ export interface GetFilterPluginCb {
20
+ (type: string): CmsEntryFilterPlugin;
21
+ }
22
+ interface ExecParams {
23
+ applyFiltering: ApplyFilteringCb;
24
+ getFilterPlugin: GetFilterPluginCb;
25
+ key: string;
26
+ value: any;
27
+ operator: string;
28
+ field: ModelField;
29
+ fields: ModelFields;
30
+ query: ElasticsearchBoolQueryConfig;
31
+ }
32
+ export interface CmsEntryFilterPluginCreateResponse {
33
+ field: ModelField;
34
+ path: string;
35
+ fieldPathId: string;
36
+ plugin: ValueFilterPlugin;
37
+ negate: boolean;
38
+ compareValue: any;
39
+ transformValue: <I = any, O = any>(value: I) => O;
40
+ }
41
+ export declare class CmsEntryFilterPlugin extends Plugin {
42
+ static readonly type: string;
43
+ static readonly ALL: string;
44
+ private readonly config;
45
+ readonly fieldType: string;
46
+ constructor(config: CmsEntryFilterPluginConfig);
47
+ exec(params: ExecParams): void;
48
+ }
49
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.CmsEntryFilterPlugin = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _plugins = require("@webiny/plugins");
10
+ class CmsEntryFilterPlugin extends _plugins.Plugin {
11
+ constructor(config) {
12
+ super();
13
+ (0, _defineProperty2.default)(this, "config", void 0);
14
+ (0, _defineProperty2.default)(this, "fieldType", void 0);
15
+ this.config = config;
16
+ this.fieldType = this.config.fieldType;
17
+ }
18
+ exec(params) {
19
+ return this.config.exec(params);
20
+ }
21
+ }
22
+ exports.CmsEntryFilterPlugin = CmsEntryFilterPlugin;
23
+ (0, _defineProperty2.default)(CmsEntryFilterPlugin, "type", "cms.elasticsearch.entry.filter");
24
+ (0, _defineProperty2.default)(CmsEntryFilterPlugin, "ALL", "*");
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CmsEntryFilterPlugin","Plugin","constructor","config","fieldType","exec","params"],"sources":["CmsEntryFilterPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { ValueFilterPlugin } from \"@webiny/db-dynamodb/plugins/definitions/ValueFilterPlugin\";\nimport { ModelField, ModelFields } from \"~/operations/entry/elasticsearch/types\";\nimport { ElasticsearchBoolQueryConfig } from \"@webiny/api-elasticsearch/types\";\n\ninterface CmsEntryFilterPluginConfig {\n fieldType: string;\n exec: (params: ExecParams) => void;\n}\ninterface ApplyParams {\n key: string;\n value: any;\n query: ElasticsearchBoolQueryConfig;\n operator: string;\n field: ModelField;\n}\nexport interface ApplyFilteringCb {\n (params: ApplyParams): void;\n}\n\nexport interface GetFilterPluginCb {\n (type: string): CmsEntryFilterPlugin;\n}\n\ninterface ExecParams {\n applyFiltering: ApplyFilteringCb;\n getFilterPlugin: GetFilterPluginCb;\n key: string;\n value: any;\n operator: string;\n field: ModelField;\n fields: ModelFields;\n query: ElasticsearchBoolQueryConfig;\n}\n\nexport interface CmsEntryFilterPluginCreateResponse {\n field: ModelField;\n path: string;\n fieldPathId: string;\n plugin: ValueFilterPlugin;\n negate: boolean;\n compareValue: any;\n transformValue: <I = any, O = any>(value: I) => O;\n}\n\nexport class CmsEntryFilterPlugin extends Plugin {\n public static override readonly type: string = \"cms.elasticsearch.entry.filter\";\n public static readonly ALL: string = \"*\";\n\n private readonly config: CmsEntryFilterPluginConfig;\n public readonly fieldType: string;\n\n public constructor(config: CmsEntryFilterPluginConfig) {\n super();\n this.config = config;\n this.fieldType = this.config.fieldType;\n }\n\n public exec(params: ExecParams) {\n return this.config.exec(params);\n }\n}\n"],"mappings":";;;;;;;;AAAA;AA6CO,MAAMA,oBAAoB,SAASC,eAAM,CAAC;EAOtCC,WAAW,CAACC,MAAkC,EAAE;IACnD,KAAK,EAAE;IAAC;IAAA;IACR,IAAI,CAACA,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,SAAS,GAAG,IAAI,CAACD,MAAM,CAACC,SAAS;EAC1C;EAEOC,IAAI,CAACC,MAAkB,EAAE;IAC5B,OAAO,IAAI,CAACH,MAAM,CAACE,IAAI,CAACC,MAAM,CAAC;EACnC;AACJ;AAAC;AAAA,8BAhBYN,oBAAoB,UACkB,gCAAgC;AAAA,8BADtEA,oBAAoB,SAEQ,GAAG"}
@@ -0,0 +1,7 @@
1
+ export * from "./CmsEntryElasticsearchBodyModifierPlugin";
2
+ export * from "./CmsEntryElasticsearchIndexPlugin";
3
+ export * from "./CmsEntryElasticsearchQueryBuilderValueSearchPlugin";
4
+ export * from "./CmsEntryElasticsearchQueryModifierPlugin";
5
+ export * from "./CmsEntryElasticsearchSortModifierPlugin";
6
+ export * from "./CmsEntryElasticsearchFullTextSearchPlugin";
7
+ export * from "./CmsElasticsearchModelFieldPlugin";