@webiny/api-headless-cms-ddb-es 5.37.8 → 5.38.0-beta.0
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.
- package/configurations.js +3 -1
- package/definitions/entry.js +3 -1
- package/definitions/entryElasticsearch.js +3 -1
- package/definitions/group.js +3 -1
- package/definitions/model.js +3 -1
- package/definitions/system.js +3 -1
- package/definitions/table.js +3 -1
- package/definitions/tableElasticsearch.js +3 -1
- package/dynamoDb/index.js +3 -1
- package/dynamoDb/storage/date.js +3 -1
- package/dynamoDb/storage/longText.js +3 -1
- package/dynamoDb/storage/richText.js +3 -1
- package/elasticsearch/createElasticsearchIndex.d.ts +1 -1
- package/elasticsearch/createElasticsearchIndex.js +19 -29
- package/elasticsearch/createElasticsearchIndex.js.map +1 -1
- package/elasticsearch/deleteElasticsearchIndex.d.ts +1 -1
- package/elasticsearch/deleteElasticsearchIndex.js +6 -4
- package/elasticsearch/deleteElasticsearchIndex.js.map +1 -1
- package/elasticsearch/index.js +3 -1
- package/elasticsearch/indexing/dateTimeIndexing.js +3 -1
- package/elasticsearch/indexing/defaultFieldIndexing.js +3 -1
- package/elasticsearch/indexing/index.js +3 -1
- package/elasticsearch/indexing/longTextIndexing.js +3 -1
- package/elasticsearch/indexing/numberIndexing.js +3 -1
- package/elasticsearch/indexing/objectIndexing.js +3 -1
- package/elasticsearch/indexing/richTextIndexing.js +3 -1
- package/elasticsearch/indices/base.js +3 -1
- package/elasticsearch/indices/index.js +3 -1
- package/elasticsearch/indices/japanese.js +3 -1
- package/elasticsearch/search/index.js +3 -1
- package/elasticsearch/search/refSearch.js +3 -1
- package/elasticsearch/search/timeSearch.js +3 -1
- package/helpers/entryIndexHelpers.js +3 -1
- package/helpers/fieldIdentifier.js +3 -1
- package/helpers/index.js +3 -1
- package/index.js +14 -16
- package/index.js.map +1 -1
- package/operations/entry/dataLoader/DataLoaderCache.js +3 -1
- package/operations/entry/dataLoader/constants.js +3 -1
- package/operations/entry/dataLoader/createBatchScheduleFn.js +3 -1
- package/operations/entry/dataLoader/getAllEntryRevisions.js +3 -1
- package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +3 -1
- package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +3 -1
- package/operations/entry/dataLoader/getRevisionById.js +3 -1
- package/operations/entry/dataLoader/index.js +3 -1
- package/operations/entry/dataLoader/types.js +3 -1
- package/operations/entry/dataLoaders.js +3 -1
- package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +3 -1
- package/operations/entry/elasticsearch/body.js +3 -1
- package/operations/entry/elasticsearch/fields.js +3 -1
- package/operations/entry/elasticsearch/filtering/applyFiltering.js +3 -1
- package/operations/entry/elasticsearch/filtering/exec.js +3 -1
- package/operations/entry/elasticsearch/filtering/index.js +3 -1
- package/operations/entry/elasticsearch/filtering/path.js +3 -1
- package/operations/entry/elasticsearch/filtering/plugins/defaultFilterPlugin.js +3 -1
- package/operations/entry/elasticsearch/filtering/plugins/index.js +3 -1
- package/operations/entry/elasticsearch/filtering/plugins/objectFilterPlugin.js +3 -1
- package/operations/entry/elasticsearch/filtering/plugins/refFilterPlugin.js +3 -1
- package/operations/entry/elasticsearch/filtering/populated.js +3 -1
- package/operations/entry/elasticsearch/filtering/values.js +3 -1
- package/operations/entry/elasticsearch/fullTextSearch.js +3 -1
- package/operations/entry/elasticsearch/fullTextSearchFields.js +3 -1
- package/operations/entry/elasticsearch/initialQuery.js +3 -1
- package/operations/entry/elasticsearch/keyword.js +3 -1
- package/operations/entry/elasticsearch/plugins/bodyModifier.js +3 -1
- package/operations/entry/elasticsearch/plugins/operator.js +3 -1
- package/operations/entry/elasticsearch/plugins/queryModifier.js +3 -1
- package/operations/entry/elasticsearch/plugins/search.js +3 -1
- package/operations/entry/elasticsearch/plugins/sortModifier.js +3 -1
- package/operations/entry/elasticsearch/sort.js +3 -1
- package/operations/entry/elasticsearch/transformValueForSearch.js +3 -1
- package/operations/entry/elasticsearch/types.js +3 -1
- package/operations/entry/index.d.ts +0 -3
- package/operations/entry/index.js +80 -176
- package/operations/entry/index.js.map +1 -1
- package/operations/entry/keys.js +3 -1
- package/operations/entry/recordType.js +3 -1
- package/operations/entry/transformations/convertEntryKeys.d.ts +8 -0
- package/operations/entry/transformations/convertEntryKeys.js +38 -0
- package/operations/entry/transformations/convertEntryKeys.js.map +1 -0
- package/operations/entry/transformations/index.d.ts +29 -0
- package/operations/entry/transformations/index.js +126 -0
- package/operations/entry/transformations/index.js.map +1 -0
- package/operations/entry/transformations/modifyEntryValues.d.ts +32 -0
- package/operations/entry/transformations/modifyEntryValues.js +29 -0
- package/operations/entry/transformations/modifyEntryValues.js.map +1 -0
- package/operations/entry/transformations/transformEntryKeys.d.ts +11 -0
- package/operations/entry/transformations/transformEntryKeys.js +27 -0
- package/operations/entry/transformations/transformEntryKeys.js.map +1 -0
- package/operations/entry/transformations/transformEntryToIndex.d.ts +10 -0
- package/operations/entry/transformations/transformEntryToIndex.js +33 -0
- package/operations/entry/transformations/transformEntryToIndex.js.map +1 -0
- package/operations/group/index.js +5 -3
- package/operations/group/index.js.map +1 -1
- package/operations/model/index.js +3 -1
- package/operations/system/index.js +3 -1
- package/operations/system/indexes.d.ts +10 -0
- package/operations/system/indexes.js +42 -0
- package/operations/system/indexes.js.map +1 -0
- package/package.json +19 -18
- package/plugins/CmsElasticsearchModelFieldPlugin.js +3 -1
- package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js +3 -1
- package/plugins/CmsEntryElasticsearchFullTextSearchPlugin.js +3 -1
- package/plugins/CmsEntryElasticsearchIndexPlugin.js +3 -1
- package/plugins/CmsEntryElasticsearchQueryBuilderValueSearchPlugin.js +3 -1
- package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js +3 -1
- package/plugins/CmsEntryElasticsearchSortModifierPlugin.js +3 -1
- package/plugins/CmsEntryElasticsearchValuesModifier.d.ts +33 -0
- package/plugins/CmsEntryElasticsearchValuesModifier.js +54 -0
- package/plugins/CmsEntryElasticsearchValuesModifier.js.map +1 -0
- package/plugins/CmsEntryFilterPlugin.js +3 -1
- package/plugins/index.d.ts +1 -0
- package/plugins/index.js +14 -1
- package/plugins/index.js.map +1 -1
- package/types.d.ts +1 -2
- package/types.js +3 -2
- package/types.js.map +1 -1
- package/definitions/settings.d.ts +0 -8
- package/definitions/settings.js +0 -53
- package/definitions/settings.js.map +0 -1
- package/operations/settings/index.d.ts +0 -6
- package/operations/settings/index.js +0 -111
- package/operations/settings/index.js.map +0 -1
|
@@ -20,4 +20,6 @@ const createBatchScheduleFn = () => {
|
|
|
20
20
|
setTimeout(callback, _constants.CMS_ENTRY_BATCH_SCHEDULE_WAIT);
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
exports.createBatchScheduleFn = createBatchScheduleFn;
|
|
23
|
+
exports.createBatchScheduleFn = createBatchScheduleFn;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=createBatchScheduleFn.js.map
|
|
@@ -40,4 +40,6 @@ const createGetAllEntryRevisions = params => {
|
|
|
40
40
|
batchScheduleFn: (0, _createBatchScheduleFn.createBatchScheduleFn)()
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
exports.createGetAllEntryRevisions = createGetAllEntryRevisions;
|
|
43
|
+
exports.createGetAllEntryRevisions = createGetAllEntryRevisions;
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=getAllEntryRevisions.js.map
|
|
@@ -50,4 +50,6 @@ const createGetLatestRevisionByEntryId = params => {
|
|
|
50
50
|
batchScheduleFn: (0, _createBatchScheduleFn.createBatchScheduleFn)()
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
exports.createGetLatestRevisionByEntryId = createGetLatestRevisionByEntryId;
|
|
53
|
+
exports.createGetLatestRevisionByEntryId = createGetLatestRevisionByEntryId;
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=getLatestRevisionByEntryId.js.map
|
|
@@ -50,4 +50,6 @@ const createGetPublishedRevisionByEntryId = params => {
|
|
|
50
50
|
batchScheduleFn: (0, _createBatchScheduleFn.createBatchScheduleFn)()
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
exports.createGetPublishedRevisionByEntryId = createGetPublishedRevisionByEntryId;
|
|
53
|
+
exports.createGetPublishedRevisionByEntryId = createGetPublishedRevisionByEntryId;
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=getPublishedRevisionByEntryId.js.map
|
|
@@ -60,4 +60,6 @@ const createGetRevisionById = params => {
|
|
|
60
60
|
batchScheduleFn: (0, _createBatchScheduleFn.createBatchScheduleFn)()
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
-
exports.createGetRevisionById = createGetRevisionById;
|
|
63
|
+
exports.createGetRevisionById = createGetRevisionById;
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=getRevisionById.js.map
|
|
@@ -112,4 +112,6 @@ class DataLoadersHandler {
|
|
|
112
112
|
this.cache.clearAll(params === null || params === void 0 ? void 0 : params.model);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
exports.DataLoadersHandler = DataLoadersHandler;
|
|
115
|
+
exports.DataLoadersHandler = DataLoadersHandler;
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=dataLoaders.js.map
|
|
@@ -29,4 +29,6 @@ const assignMinimumShouldMatchToQuery = ({
|
|
|
29
29
|
}
|
|
30
30
|
query.minimum_should_match = value > 0 ? value : 1;
|
|
31
31
|
};
|
|
32
|
-
exports.assignMinimumShouldMatchToQuery = assignMinimumShouldMatchToQuery;
|
|
32
|
+
exports.assignMinimumShouldMatchToQuery = assignMinimumShouldMatchToQuery;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=assignMinimumShouldMatchToQuery.js.map
|
|
@@ -25,4 +25,6 @@ const createDefaultFilterPlugin = () => {
|
|
|
25
25
|
plugin.name = `${plugin.type}.default.all`;
|
|
26
26
|
return plugin;
|
|
27
27
|
};
|
|
28
|
-
exports.createDefaultFilterPlugin = createDefaultFilterPlugin;
|
|
28
|
+
exports.createDefaultFilterPlugin = createDefaultFilterPlugin;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=defaultFilterPlugin.js.map
|
|
@@ -10,4 +10,6 @@ var _refFilterPlugin = require("./refFilterPlugin");
|
|
|
10
10
|
const createFilterPlugins = () => {
|
|
11
11
|
return [(0, _defaultFilterPlugin.createDefaultFilterPlugin)(), (0, _objectFilterPlugin.createObjectFilterPlugin)(), (0, _refFilterPlugin.createRefFilterPlugin)()];
|
|
12
12
|
};
|
|
13
|
-
exports.createFilterPlugins = createFilterPlugins;
|
|
13
|
+
exports.createFilterPlugins = createFilterPlugins;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -64,4 +64,6 @@ const createObjectFilterPlugin = () => {
|
|
|
64
64
|
plugin.name = `${plugin.type}.default.object`;
|
|
65
65
|
return plugin;
|
|
66
66
|
};
|
|
67
|
-
exports.createObjectFilterPlugin = createObjectFilterPlugin;
|
|
67
|
+
exports.createObjectFilterPlugin = createObjectFilterPlugin;
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=objectFilterPlugin.js.map
|
|
@@ -22,4 +22,6 @@ const createFullTextSearchFields = params => {
|
|
|
22
22
|
return collection;
|
|
23
23
|
}, []);
|
|
24
24
|
};
|
|
25
|
-
exports.createFullTextSearchFields = createFullTextSearchFields;
|
|
25
|
+
exports.createFullTextSearchFields = createFullTextSearchFields;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=fullTextSearchFields.js.map
|
|
@@ -13,4 +13,6 @@ const createBodyModifierPluginList = ({
|
|
|
13
13
|
return !pl.modelId || pl.modelId === model.modelId;
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
exports.createBodyModifierPluginList = createBodyModifierPluginList;
|
|
16
|
+
exports.createBodyModifierPluginList = createBodyModifierPluginList;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=bodyModifier.js.map
|
|
@@ -13,4 +13,6 @@ const createQueryModifierPluginList = ({
|
|
|
13
13
|
return !pl.modelId || pl.modelId === model.modelId;
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
exports.createQueryModifierPluginList = createQueryModifierPluginList;
|
|
16
|
+
exports.createQueryModifierPluginList = createQueryModifierPluginList;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=queryModifier.js.map
|
|
@@ -13,4 +13,6 @@ const createSortModifierPluginList = ({
|
|
|
13
13
|
return !pl.modelId || pl.modelId === model.modelId;
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
exports.createSortModifierPluginList = createSortModifierPluginList;
|
|
16
|
+
exports.createSortModifierPluginList = createSortModifierPluginList;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=sortModifier.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { CmsEntry } from "@webiny/api-headless-cms/types";
|
|
2
1
|
import { Entity } from "dynamodb-toolbox";
|
|
3
2
|
import { Client } from "@elastic/elasticsearch";
|
|
4
3
|
import { PluginsContainer } from "@webiny/plugins";
|
|
5
4
|
import { CmsEntryStorageOperations } from "../../types";
|
|
6
|
-
export declare const getESLatestEntryData: (plugins: PluginsContainer, entry: CmsEntry) => Promise<Record<string, any>>;
|
|
7
|
-
export declare const getESPublishedEntryData: (plugins: PluginsContainer, entry: CmsEntry) => Promise<Record<string, any>>;
|
|
8
5
|
export interface CreateEntriesStorageOperationsParams {
|
|
9
6
|
entity: Entity<any>;
|
|
10
7
|
esEntity: Entity<any>;
|