@webiny/api-headless-cms-ddb-es 5.17.4-beta.1 → 5.18.0-beta.2
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,54 +0,0 @@
|
|
|
1
|
-
import { CmsContentEntry, CmsContentEntryStorageOperations, CmsContentEntryStorageOperationsCreateArgs, CmsContentEntryStorageOperationsCreateRevisionFromArgs, CmsContentEntryStorageOperationsDeleteArgs, CmsContentEntryStorageOperationsDeleteRevisionArgs, CmsContentEntryStorageOperationsGetArgs, CmsContentEntryStorageOperationsListArgs, CmsContentEntryStorageOperationsListResponse, CmsContentEntryStorageOperationsPublishArgs, CmsContentEntryStorageOperationsRequestChangesArgs, CmsContentEntryStorageOperationsRequestReviewArgs, CmsContentEntryStorageOperationsUnpublishArgs, CmsContentEntryStorageOperationsUpdateArgs, CmsContentModel, CmsContext } from "@webiny/api-headless-cms/types";
|
|
2
|
-
export declare const TYPE_ENTRY = "cms.entry";
|
|
3
|
-
export declare const TYPE_ENTRY_LATEST: string;
|
|
4
|
-
export declare const TYPE_ENTRY_PUBLISHED: string;
|
|
5
|
-
interface ConstructorArgs {
|
|
6
|
-
context: CmsContext;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* This implementation is not a general driver to fetch from DDB/Elastic.
|
|
10
|
-
* Use some other implementation for general-use purpose.
|
|
11
|
-
*/
|
|
12
|
-
export default class CmsContentEntryDynamoElastic implements CmsContentEntryStorageOperations {
|
|
13
|
-
private readonly context;
|
|
14
|
-
private readonly _dataLoaders;
|
|
15
|
-
private _esClient;
|
|
16
|
-
private get esClient();
|
|
17
|
-
private get partitionKey();
|
|
18
|
-
constructor({ context }: ConstructorArgs);
|
|
19
|
-
create(model: CmsContentModel, args: CmsContentEntryStorageOperationsCreateArgs): Promise<CmsContentEntry>;
|
|
20
|
-
createRevisionFrom(model: CmsContentModel, args: CmsContentEntryStorageOperationsCreateRevisionFromArgs): Promise<import("@webiny/api-headless-cms/types").CmsStorageContentEntry>;
|
|
21
|
-
delete(model: CmsContentModel, args: CmsContentEntryStorageOperationsDeleteArgs): Promise<void>;
|
|
22
|
-
deleteRevision(model: CmsContentModel, args: CmsContentEntryStorageOperationsDeleteRevisionArgs): Promise<void>;
|
|
23
|
-
get(model: CmsContentModel, args: CmsContentEntryStorageOperationsGetArgs): Promise<CmsContentEntry | null>;
|
|
24
|
-
/**
|
|
25
|
-
* Implemented search via the Elasticsearch.
|
|
26
|
-
*/
|
|
27
|
-
list(model: CmsContentModel, args: CmsContentEntryStorageOperationsListArgs): Promise<CmsContentEntryStorageOperationsListResponse>;
|
|
28
|
-
update(model: CmsContentModel, args: CmsContentEntryStorageOperationsUpdateArgs): Promise<CmsContentEntry>;
|
|
29
|
-
publish(model: CmsContentModel, args: CmsContentEntryStorageOperationsPublishArgs): Promise<CmsContentEntry>;
|
|
30
|
-
unpublish(model: CmsContentModel, args: CmsContentEntryStorageOperationsUnpublishArgs): Promise<CmsContentEntry>;
|
|
31
|
-
requestChanges(model: CmsContentModel, args: CmsContentEntryStorageOperationsRequestChangesArgs): Promise<CmsContentEntry>;
|
|
32
|
-
requestReview(model: CmsContentModel, args: CmsContentEntryStorageOperationsRequestReviewArgs): Promise<CmsContentEntry>;
|
|
33
|
-
getAllRevisionsByIds(model: CmsContentModel, ids: readonly string[]): Promise<CmsContentEntry[]>;
|
|
34
|
-
getByIds(model: CmsContentModel, ids: readonly string[]): Promise<CmsContentEntry[]>;
|
|
35
|
-
getPublishedByIds(model: CmsContentModel, ids: readonly string[]): Promise<CmsContentEntry[]>;
|
|
36
|
-
getLatestByIds(model: CmsContentModel, ids: readonly string[]): Promise<CmsContentEntry[]>;
|
|
37
|
-
getRevisions(model: CmsContentModel, id: string): Promise<CmsContentEntry[]>;
|
|
38
|
-
getRevisionById(model: CmsContentModel, id: string): Promise<CmsContentEntry | null>;
|
|
39
|
-
getPublishedRevisionByEntryId(model: CmsContentModel, entryId: string): Promise<CmsContentEntry | null>;
|
|
40
|
-
getLatestRevisionByEntryId(model: CmsContentModel, entryId: string): Promise<CmsContentEntry | null>;
|
|
41
|
-
getPreviousRevision(model: CmsContentModel, entryId: string, version: number): Promise<CmsContentEntry | null>;
|
|
42
|
-
private getSingleDynamoDbItem;
|
|
43
|
-
getPartitionKey(id: string): string;
|
|
44
|
-
/**
|
|
45
|
-
* Gets a sort key in form of REV#version from:
|
|
46
|
-
* id#0003
|
|
47
|
-
* 0003
|
|
48
|
-
* 3
|
|
49
|
-
*/
|
|
50
|
-
getSortKeyRevision(version: string | number): string;
|
|
51
|
-
getSortKeyLatest(): string;
|
|
52
|
-
getSortKeyPublished(): string;
|
|
53
|
-
}
|
|
54
|
-
export {};
|