@webiny/api-headless-cms-ddb-es 5.17.4 → 5.18.0-beta.3
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.d.ts +5 -17
- package/configurations.js +9 -38
- package/definitions/entry.d.ts +6 -11
- package/definitions/entry.js +17 -14
- package/definitions/entryElasticsearch.d.ts +8 -0
- package/definitions/entryElasticsearch.js +46 -0
- package/definitions/group.d.ts +8 -0
- package/definitions/group.js +74 -0
- package/definitions/model.d.ts +7 -6
- package/definitions/model.js +45 -20
- package/definitions/settings.d.ts +8 -0
- package/definitions/settings.js +62 -0
- package/definitions/system.d.ts +8 -0
- package/definitions/system.js +50 -0
- package/definitions/table.d.ts +7 -3
- package/definitions/table.js +12 -29
- package/definitions/tableElasticsearch.d.ts +7 -3
- package/definitions/tableElasticsearch.js +12 -29
- package/dynamoDb/index.d.ts +1 -1
- package/dynamoDb/index.js +4 -3
- package/dynamoDb/storage/date.d.ts +2 -2
- package/dynamoDb/storage/date.js +17 -17
- package/dynamoDb/storage/longText.d.ts +7 -0
- package/dynamoDb/storage/longText.js +83 -0
- package/dynamoDb/storage/richText.d.ts +2 -2
- package/dynamoDb/storage/richText.js +69 -67
- package/elasticsearch/index.d.ts +1 -1
- package/elasticsearch/index.js +1 -2
- package/elasticsearch/indexing/dateTimeIndexing.js +1 -2
- package/elasticsearch/indexing/defaultFieldIndexing.js +1 -2
- package/elasticsearch/indexing/index.js +4 -3
- package/elasticsearch/indexing/longTextIndexing.d.ts +3 -0
- package/elasticsearch/indexing/longTextIndexing.js +36 -0
- package/elasticsearch/indexing/numberIndexing.js +1 -2
- package/elasticsearch/indexing/objectIndexing.js +32 -27
- package/elasticsearch/indexing/richTextIndexing.js +1 -2
- package/elasticsearch/search/index.js +1 -2
- package/elasticsearch/search/refSearch.js +1 -2
- package/elasticsearch/search/timeSearch.js +1 -2
- package/helpers/createElasticsearchQueryBody.d.ts +5 -4
- package/helpers/createElasticsearchQueryBody.js +89 -44
- package/helpers/entryIndexHelpers.d.ts +14 -12
- package/helpers/entryIndexHelpers.js +63 -58
- package/helpers/fields.d.ts +11 -10
- package/helpers/fields.js +4 -5
- package/helpers/index.js +1 -2
- package/helpers/operatorPluginsList.d.ts +2 -2
- package/helpers/operatorPluginsList.js +3 -4
- package/helpers/searchPluginsList.d.ts +2 -2
- package/helpers/searchPluginsList.js +3 -4
- package/helpers/transformValueForSearch.d.ts +4 -5
- package/helpers/transformValueForSearch.js +3 -6
- package/index.d.ts +2 -2
- package/index.js +154 -12
- package/operations/entry/dataLoaders.d.ts +38 -14
- package/operations/entry/dataLoaders.js +193 -125
- package/operations/entry/elasticsearchFields.d.ts +2 -0
- package/operations/entry/elasticsearchFields.js +32 -0
- package/operations/entry/fields.d.ts +2 -2
- package/operations/entry/fields.js +1 -2
- package/operations/entry/index.d.ts +13 -3
- package/operations/entry/index.js +1148 -15
- package/operations/entry/keys.d.ts +12 -0
- package/operations/entry/keys.js +40 -0
- package/operations/group/index.d.ts +8 -0
- package/operations/group/index.js +202 -0
- package/operations/model/index.d.ts +8 -3
- package/operations/model/index.js +196 -17
- package/operations/settings/index.d.ts +6 -3
- package/operations/settings/index.js +132 -16
- package/operations/system/createElasticsearchTemplate.d.ts +5 -0
- package/operations/system/createElasticsearchTemplate.js +62 -0
- package/operations/system/index.d.ts +6 -3
- package/operations/system/index.js +93 -17
- package/package.json +15 -14
- package/plugins/CmsEntryElasticsearchBodyModifierPlugin.d.ts +17 -0
- package/plugins/CmsEntryElasticsearchBodyModifierPlugin.js +24 -0
- package/plugins/CmsEntryElasticsearchFieldPlugin.d.ts +9 -1
- package/plugins/CmsEntryElasticsearchFieldPlugin.js +9 -3
- package/plugins/CmsEntryElasticsearchQueryModifierPlugin.d.ts +17 -0
- package/plugins/CmsEntryElasticsearchQueryModifierPlugin.js +24 -0
- package/plugins/CmsEntryElasticsearchSortModifierPlugin.d.ts +17 -0
- package/plugins/CmsEntryElasticsearchSortModifierPlugin.js +24 -0
- package/types.d.ts +61 -80
- package/types.js +55 -1
- package/upgrades/index.js +1 -2
- package/upgrades/utils.js +1 -2
- package/upgrades/v5.0.0/cleanDatabaseRecord.d.ts +2 -2
- package/upgrades/v5.0.0/cleanDatabaseRecord.js +1 -2
- package/upgrades/v5.0.0/createOldVersionIndiceName.js +1 -2
- package/upgrades/v5.0.0/entryValueFixer.d.ts +3 -3
- package/upgrades/v5.0.0/entryValueFixer.js +3 -4
- package/upgrades/v5.0.0/fieldFinder.d.ts +4 -4
- package/upgrades/v5.0.0/fieldFinder.js +1 -2
- package/upgrades/v5.0.0/helpers.js +1 -2
- package/upgrades/v5.0.0/index.js +1 -2
- package/upgrades/v5.8.0/index.js +3 -3
- package/configurations.js.map +0 -1
- package/definitions/elasticsearchEntry.d.ts +0 -13
- package/definitions/elasticsearchEntry.js +0 -43
- package/definitions/elasticsearchEntry.js.map +0 -1
- package/definitions/entry.js.map +0 -1
- package/definitions/index.d.ts +0 -17
- package/definitions/index.js +0 -28
- package/definitions/index.js.map +0 -1
- package/definitions/model.js.map +0 -1
- package/definitions/table.js.map +0 -1
- package/definitions/tableElasticsearch.js.map +0 -1
- package/dynamoDb/index.js.map +0 -1
- package/dynamoDb/storage/date.js.map +0 -1
- package/dynamoDb/storage/richText.js.map +0 -1
- package/elasticsearch/index.js.map +0 -1
- package/elasticsearch/indexing/dateTimeIndexing.js.map +0 -1
- package/elasticsearch/indexing/defaultFieldIndexing.js.map +0 -1
- package/elasticsearch/indexing/index.js.map +0 -1
- package/elasticsearch/indexing/numberIndexing.js.map +0 -1
- package/elasticsearch/indexing/objectIndexing.js.map +0 -1
- package/elasticsearch/indexing/richTextIndexing.js.map +0 -1
- package/elasticsearch/search/index.js.map +0 -1
- package/elasticsearch/search/refSearch.js.map +0 -1
- package/elasticsearch/search/timeSearch.js.map +0 -1
- package/helpers/createElasticsearchQueryBody.js.map +0 -1
- package/helpers/entryIndexHelpers.js.map +0 -1
- package/helpers/fields.js.map +0 -1
- package/helpers/index.js.map +0 -1
- package/helpers/operatorPluginsList.js.map +0 -1
- package/helpers/searchPluginsList.js.map +0 -1
- package/helpers/transformValueForSearch.js.map +0 -1
- package/index.js.map +0 -1
- package/operations/entry/CmsContentEntryDynamoElastic.d.ts +0 -54
- package/operations/entry/CmsContentEntryDynamoElastic.js +0 -1128
- package/operations/entry/CmsContentEntryDynamoElastic.js.map +0 -1
- package/operations/entry/dataLoaders.js.map +0 -1
- package/operations/entry/fields.js.map +0 -1
- package/operations/entry/index.js.map +0 -1
- package/operations/model/CmsContentModelDynamoElastic.d.ts +0 -18
- package/operations/model/CmsContentModelDynamoElastic.js +0 -180
- package/operations/model/CmsContentModelDynamoElastic.js.map +0 -1
- package/operations/model/index.js.map +0 -1
- package/operations/modelGroup/CmsContentModelGroupDynamoElastic.d.ts +0 -40
- package/operations/modelGroup/CmsContentModelGroupDynamoElastic.js +0 -193
- package/operations/modelGroup/CmsContentModelGroupDynamoElastic.js.map +0 -1
- package/operations/modelGroup/index.d.ts +0 -3
- package/operations/modelGroup/index.js +0 -26
- package/operations/modelGroup/index.js.map +0 -1
- package/operations/settings/CmsSettingsDynamoElastic.d.ts +0 -14
- package/operations/settings/CmsSettingsDynamoElastic.js +0 -127
- package/operations/settings/CmsSettingsDynamoElastic.js.map +0 -1
- package/operations/settings/index.js.map +0 -1
- package/operations/system/CmsSystemDynamoElastic.d.ts +0 -14
- package/operations/system/CmsSystemDynamoElastic.js +0 -101
- package/operations/system/CmsSystemDynamoElastic.js.map +0 -1
- package/operations/system/CmsSystemInstallationPlugin.d.ts +0 -11
- package/operations/system/CmsSystemInstallationPlugin.js +0 -78
- package/operations/system/CmsSystemInstallationPlugin.js.map +0 -1
- package/operations/system/index.js.map +0 -1
- package/plugins/CmsEntryElasticsearchFieldPlugin.js.map +0 -1
- package/types.js.map +0 -1
- package/upgrades/index.js.map +0 -1
- package/upgrades/utils.js.map +0 -1
- package/upgrades/v5.0.0/cleanDatabaseRecord.js.map +0 -1
- package/upgrades/v5.0.0/createOldVersionIndiceName.js.map +0 -1
- package/upgrades/v5.0.0/entryValueFixer.js.map +0 -1
- package/upgrades/v5.0.0/fieldFinder.js.map +0 -1
- package/upgrades/v5.0.0/helpers.js.map +0 -1
- package/upgrades/v5.0.0/index.js.map +0 -1
- package/upgrades/v5.8.0/index.js.map +0 -1
- package/utils.d.ts +0 -3
- package/utils.js +0 -42
- package/utils.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElasticsearchQueryBuilderValueSearchPlugin } from "../types";
|
|
2
|
-
import {
|
|
2
|
+
import { PluginsContainer } from "@webiny/plugins";
|
|
3
3
|
export interface ElasticsearchQuerySearchValuePlugins {
|
|
4
4
|
[fieldType: string]: ElasticsearchQueryBuilderValueSearchPlugin;
|
|
5
5
|
}
|
|
6
|
-
export declare const searchPluginsList: (
|
|
6
|
+
export declare const searchPluginsList: (plugins: PluginsContainer) => ElasticsearchQuerySearchValuePlugins;
|
|
@@ -9,8 +9,8 @@ exports.searchPluginsList = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _error = _interopRequireDefault(require("@webiny/error"));
|
|
11
11
|
|
|
12
|
-
const searchPluginsList =
|
|
13
|
-
return
|
|
12
|
+
const searchPluginsList = plugins => {
|
|
13
|
+
return plugins.byType("cms-elastic-search-query-builder-value-search").reduce((plugins, plugin) => {
|
|
14
14
|
if (plugins[plugin.fieldType]) {
|
|
15
15
|
throw new _error.default("There is a ElasticsearchQueryBuilderValueSearchPlugin defined for the field type.", "PLUGIN_ALREADY_EXISTS", {
|
|
16
16
|
fieldType: plugin.fieldType,
|
|
@@ -23,5 +23,4 @@ const searchPluginsList = context => {
|
|
|
23
23
|
}, {});
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
exports.searchPluginsList = searchPluginsList;
|
|
27
|
-
//# sourceMappingURL=searchPluginsList.js.map
|
|
26
|
+
exports.searchPluginsList = searchPluginsList;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ElasticsearchQuerySearchValuePlugins } from "./searchPluginsList";
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { CmsModelField } from "@webiny/api-headless-cms/types";
|
|
3
|
+
interface Params {
|
|
4
4
|
plugins: ElasticsearchQuerySearchValuePlugins;
|
|
5
|
-
field:
|
|
5
|
+
field: CmsModelField;
|
|
6
6
|
value: any;
|
|
7
|
-
context: CmsContext;
|
|
8
7
|
}
|
|
9
|
-
export declare const transformValueForSearch: (args:
|
|
8
|
+
export declare const transformValueForSearch: (args: Params) => any;
|
|
10
9
|
export {};
|
|
@@ -9,8 +9,7 @@ const transformValueForSearch = args => {
|
|
|
9
9
|
const {
|
|
10
10
|
field,
|
|
11
11
|
plugins,
|
|
12
|
-
value
|
|
13
|
-
context
|
|
12
|
+
value
|
|
14
13
|
} = args;
|
|
15
14
|
const plugin = plugins[field.type];
|
|
16
15
|
|
|
@@ -20,10 +19,8 @@ const transformValueForSearch = args => {
|
|
|
20
19
|
|
|
21
20
|
return plugin.transform({
|
|
22
21
|
field,
|
|
23
|
-
value
|
|
24
|
-
context
|
|
22
|
+
value
|
|
25
23
|
});
|
|
26
24
|
};
|
|
27
25
|
|
|
28
|
-
exports.transformValueForSearch = transformValueForSearch;
|
|
29
|
-
//# sourceMappingURL=transformValueForSearch.js.map
|
|
26
|
+
exports.transformValueForSearch = transformValueForSearch;
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { StorageOperationsFactory } from "./types";
|
|
2
|
+
export declare const createStorageOperations: StorageOperationsFactory;
|
package/index.js
CHANGED
|
@@ -5,25 +5,167 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.createStorageOperations = void 0;
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _filters = _interopRequireDefault(require("@webiny/db-dynamodb/plugins/filters"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _elasticsearch = _interopRequireDefault(require("./elasticsearch"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _dynamoDb = _interopRequireDefault(require("./dynamoDb"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _settings = require("./operations/settings");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _system = require("./operations/system");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _model = require("./operations/model");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _entry = require("./operations/entry");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _types = require("./types");
|
|
25
|
+
|
|
26
|
+
var _table = require("./definitions/table");
|
|
27
|
+
|
|
28
|
+
var _tableElasticsearch = require("./definitions/tableElasticsearch");
|
|
29
|
+
|
|
30
|
+
var _group = require("./definitions/group");
|
|
31
|
+
|
|
32
|
+
var _model2 = require("./definitions/model");
|
|
33
|
+
|
|
34
|
+
var _entry2 = require("./definitions/entry");
|
|
35
|
+
|
|
36
|
+
var _entryElasticsearch = require("./definitions/entryElasticsearch");
|
|
37
|
+
|
|
38
|
+
var _system2 = require("./definitions/system");
|
|
39
|
+
|
|
40
|
+
var _settings2 = require("./definitions/settings");
|
|
41
|
+
|
|
42
|
+
var _createElasticsearchTemplate = require("./operations/system/createElasticsearchTemplate");
|
|
43
|
+
|
|
44
|
+
var _plugins = require("@webiny/plugins");
|
|
45
|
+
|
|
46
|
+
var _group2 = require("./operations/group");
|
|
47
|
+
|
|
48
|
+
var _operators = require("@webiny/api-elasticsearch/operators");
|
|
49
|
+
|
|
50
|
+
var _elasticsearchFields = require("./operations/entry/elasticsearchFields");
|
|
25
51
|
|
|
26
|
-
|
|
52
|
+
const createStorageOperations = params => {
|
|
53
|
+
const {
|
|
54
|
+
attributes = {},
|
|
55
|
+
table,
|
|
56
|
+
esTable,
|
|
57
|
+
documentClient,
|
|
58
|
+
elasticsearch,
|
|
59
|
+
plugins: customPlugins,
|
|
60
|
+
modelFieldToGraphQLPlugins
|
|
61
|
+
} = params;
|
|
62
|
+
const tableInstance = (0, _table.createTable)({
|
|
63
|
+
table,
|
|
64
|
+
documentClient
|
|
65
|
+
});
|
|
66
|
+
const tableElasticsearchInstance = (0, _tableElasticsearch.createElasticsearchTable)({
|
|
67
|
+
table: esTable,
|
|
68
|
+
documentClient
|
|
69
|
+
});
|
|
70
|
+
const entities = {
|
|
71
|
+
settings: (0, _settings2.createSettingsEntity)({
|
|
72
|
+
entityName: _types.ENTITIES.SETTINGS,
|
|
73
|
+
table: tableInstance,
|
|
74
|
+
attributes: attributes[_types.ENTITIES.SETTINGS]
|
|
75
|
+
}),
|
|
76
|
+
system: (0, _system2.createSystemEntity)({
|
|
77
|
+
entityName: _types.ENTITIES.SYSTEM,
|
|
78
|
+
table: tableInstance,
|
|
79
|
+
attributes: attributes[_types.ENTITIES.SYSTEM]
|
|
80
|
+
}),
|
|
81
|
+
groups: (0, _group.createGroupEntity)({
|
|
82
|
+
entityName: _types.ENTITIES.GROUPS,
|
|
83
|
+
table: tableInstance,
|
|
84
|
+
attributes: attributes[_types.ENTITIES.GROUPS]
|
|
85
|
+
}),
|
|
86
|
+
models: (0, _model2.createModelEntity)({
|
|
87
|
+
entityName: _types.ENTITIES.MODELS,
|
|
88
|
+
table: tableInstance,
|
|
89
|
+
attributes: attributes[_types.ENTITIES.MODELS]
|
|
90
|
+
}),
|
|
91
|
+
entries: (0, _entry2.createEntryEntity)({
|
|
92
|
+
entityName: _types.ENTITIES.ENTRIES,
|
|
93
|
+
table: tableInstance,
|
|
94
|
+
attributes: attributes[_types.ENTITIES.ENTRIES]
|
|
95
|
+
}),
|
|
96
|
+
entriesEs: (0, _entryElasticsearch.createEntryElasticsearchEntity)({
|
|
97
|
+
entityName: _types.ENTITIES.ENTRIES_ES,
|
|
98
|
+
table: tableElasticsearchInstance,
|
|
99
|
+
attributes: attributes[_types.ENTITIES.ENTRIES_ES]
|
|
100
|
+
})
|
|
101
|
+
};
|
|
102
|
+
const plugins = new _plugins.PluginsContainer([
|
|
103
|
+
/**
|
|
104
|
+
* User defined custom plugins.
|
|
105
|
+
*/
|
|
106
|
+
...(customPlugins || []),
|
|
107
|
+
/**
|
|
108
|
+
* Plugins of type CmsModelFieldToGraphQLPlugin.
|
|
109
|
+
*/
|
|
110
|
+
modelFieldToGraphQLPlugins,
|
|
111
|
+
/**
|
|
112
|
+
* Elasticsearch field definitions for the entry record.
|
|
113
|
+
*/
|
|
114
|
+
_elasticsearchFields.elasticsearchFields,
|
|
115
|
+
/**
|
|
116
|
+
* DynamoDB filter plugins for the where conditions.
|
|
117
|
+
*/
|
|
118
|
+
(0, _filters.default)(),
|
|
119
|
+
/**
|
|
120
|
+
* Elasticsearch operators.
|
|
121
|
+
*/
|
|
122
|
+
(0, _operators.getElasticsearchOperators)(),
|
|
123
|
+
/**
|
|
124
|
+
* Field plugins for DynamoDB.
|
|
125
|
+
*/
|
|
126
|
+
(0, _dynamoDb.default)(),
|
|
127
|
+
/**
|
|
128
|
+
* Field plugins for Elasticsearch.
|
|
129
|
+
*/
|
|
130
|
+
(0, _elasticsearch.default)()]);
|
|
131
|
+
return {
|
|
132
|
+
init: async cms => {
|
|
133
|
+
cms.onBeforeSystemInstall.subscribe(async () => {
|
|
134
|
+
await (0, _createElasticsearchTemplate.createElasticsearchTemplate)({
|
|
135
|
+
elasticsearch
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
},
|
|
139
|
+
plugins: [
|
|
140
|
+
/**
|
|
141
|
+
* Field plugins for DynamoDB.
|
|
142
|
+
* We must pass them to the base application.
|
|
143
|
+
*/
|
|
144
|
+
(0, _dynamoDb.default)()],
|
|
145
|
+
getEntities: () => entities,
|
|
146
|
+
getTable: () => tableInstance,
|
|
147
|
+
getEsTable: () => tableElasticsearchInstance,
|
|
148
|
+
system: (0, _system.createSystemStorageOperations)({
|
|
149
|
+
entity: entities.system
|
|
150
|
+
}),
|
|
151
|
+
settings: (0, _settings.createSettingsStorageOperations)({
|
|
152
|
+
entity: entities.settings
|
|
153
|
+
}),
|
|
154
|
+
groups: (0, _group2.createGroupsStorageOperations)({
|
|
155
|
+
entity: entities.groups,
|
|
156
|
+
plugins
|
|
157
|
+
}),
|
|
158
|
+
models: (0, _model.createModelsStorageOperations)({
|
|
159
|
+
entity: entities.models,
|
|
160
|
+
elasticsearch
|
|
161
|
+
}),
|
|
162
|
+
entries: (0, _entry.createEntriesStorageOperations)({
|
|
163
|
+
entity: entities.entries,
|
|
164
|
+
esEntity: entities.entriesEs,
|
|
165
|
+
plugins,
|
|
166
|
+
elasticsearch
|
|
167
|
+
})
|
|
168
|
+
};
|
|
169
|
+
};
|
|
27
170
|
|
|
28
|
-
exports.
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
171
|
+
exports.createStorageOperations = createStorageOperations;
|
|
@@ -1,23 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { CmsEntry, CmsModel } from "@webiny/api-headless-cms/types";
|
|
2
|
+
import { Entity } from "dynamodb-toolbox";
|
|
3
|
+
export interface GetAllEntryRevisionsParams {
|
|
4
|
+
ids: readonly string[];
|
|
5
|
+
model: CmsModel;
|
|
6
|
+
}
|
|
7
|
+
export interface GetRevisionByIdParams {
|
|
8
|
+
ids: readonly string[];
|
|
9
|
+
model: CmsModel;
|
|
10
|
+
}
|
|
11
|
+
export interface GetPublishedRevisionByEntryIdParams {
|
|
12
|
+
ids: readonly string[];
|
|
13
|
+
model: CmsModel;
|
|
14
|
+
}
|
|
15
|
+
export interface GetLatestRevisionByEntryIdParams {
|
|
16
|
+
ids: readonly string[];
|
|
17
|
+
model: CmsModel;
|
|
18
|
+
}
|
|
19
|
+
interface ClearLoaderParams {
|
|
20
|
+
model: CmsModel;
|
|
21
|
+
entry?: CmsEntry;
|
|
22
|
+
}
|
|
23
|
+
export interface Params {
|
|
24
|
+
entity: Entity<any>;
|
|
25
|
+
}
|
|
3
26
|
export declare class DataLoadersHandler {
|
|
4
|
-
private readonly
|
|
5
|
-
private readonly
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
clearLatestRevisionByEntryId(model: CmsContentModel, entry?: CmsContentEntry): void;
|
|
27
|
+
private readonly loaders;
|
|
28
|
+
private readonly entity;
|
|
29
|
+
constructor(params: any);
|
|
30
|
+
getAllEntryRevisions(params: GetAllEntryRevisionsParams): Promise<CmsEntry[]>;
|
|
31
|
+
clearAllEntryRevisions(params: ClearLoaderParams): void;
|
|
32
|
+
getRevisionById(params: GetRevisionByIdParams): Promise<CmsEntry[]>;
|
|
33
|
+
clearRevisionById(params: ClearLoaderParams): void;
|
|
34
|
+
getPublishedRevisionByEntryId(params: GetPublishedRevisionByEntryIdParams): Promise<CmsEntry[]>;
|
|
35
|
+
clearPublishedRevisionByEntryId(params: ClearLoaderParams): void;
|
|
36
|
+
getLatestRevisionByEntryId(params: GetLatestRevisionByEntryIdParams): Promise<CmsEntry[]>;
|
|
37
|
+
clearLatestRevisionByEntryId(params: ClearLoaderParams): void;
|
|
16
38
|
private getLoader;
|
|
17
39
|
private loadMany;
|
|
40
|
+
clearAll(params: Omit<ClearLoaderParams, "entry">): void;
|
|
18
41
|
/**
|
|
19
42
|
* Helper to clear the cache for certain data loader.
|
|
20
43
|
* If entry is passed then clear target key only.
|
|
21
44
|
*/
|
|
22
45
|
private clear;
|
|
23
46
|
}
|
|
47
|
+
export {};
|