@webiny/api-headless-cms-ddb-es 0.0.0-unstable.e6f0dc8ca7 → 0.0.0-unstable.eb81deee7e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstractions/CmsDdbEsDataLoaders.d.ts +5 -0
- package/abstractions/CmsDdbEsDataLoaders.js +5 -0
- package/abstractions/CmsDdbEsDataLoaders.js.map +1 -0
- package/abstractions/CmsDdbEsEntriesEsEntity.d.ts +5 -0
- package/abstractions/CmsDdbEsEntriesEsEntity.js +5 -0
- package/abstractions/CmsDdbEsEntriesEsEntity.js.map +1 -0
- package/abstractions/CmsDdbEsEntryEntity.d.ts +5 -0
- package/abstractions/CmsDdbEsEntryEntity.js +5 -0
- package/abstractions/CmsDdbEsEntryEntity.js.map +1 -0
- package/abstractions/CmsDdbEsGroupEntity.d.ts +5 -0
- package/abstractions/CmsDdbEsGroupEntity.js +5 -0
- package/abstractions/CmsDdbEsGroupEntity.js.map +1 -0
- package/abstractions/CmsDdbEsModelEntity.d.ts +5 -0
- package/abstractions/CmsDdbEsModelEntity.js +5 -0
- package/abstractions/CmsDdbEsModelEntity.js.map +1 -0
- package/abstractions/CmsDdbEsOsTable.d.ts +5 -0
- package/abstractions/CmsDdbEsOsTable.js +5 -0
- package/abstractions/CmsDdbEsOsTable.js.map +1 -0
- package/abstractions/CmsDdbEsTable.d.ts +5 -0
- package/abstractions/CmsDdbEsTable.js +5 -0
- package/abstractions/CmsDdbEsTable.js.map +1 -0
- package/definitions/entry.js +7 -9
- package/definitions/entry.js.map +1 -1
- package/definitions/group.js +7 -9
- package/definitions/group.js.map +1 -1
- package/definitions/model.js +7 -9
- package/definitions/model.js.map +1 -1
- package/definitions/types.d.ts +4 -0
- package/definitions/types.js +0 -3
- package/feature.d.ts +9 -1
- package/feature.js +46 -179
- package/feature.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +2 -3
- package/operations/entry/DdbEsCreateEntry.d.ts +24 -0
- package/operations/entry/DdbEsCreateEntry.js +134 -0
- package/operations/entry/DdbEsCreateEntry.js.map +1 -0
- package/operations/entry/DdbEsCreateEntryRevisionFrom.d.ts +24 -0
- package/operations/entry/DdbEsCreateEntryRevisionFrom.js +139 -0
- package/operations/entry/DdbEsCreateEntryRevisionFrom.js.map +1 -0
- package/operations/entry/DdbEsDeleteEntry.d.ts +18 -0
- package/operations/entry/DdbEsDeleteEntry.js +79 -0
- package/operations/entry/DdbEsDeleteEntry.js.map +1 -0
- package/operations/entry/DdbEsDeleteEntryRevision.d.ts +24 -0
- package/operations/entry/DdbEsDeleteEntryRevision.js +136 -0
- package/operations/entry/DdbEsDeleteEntryRevision.js.map +1 -0
- package/operations/entry/DdbEsDeleteMultipleEntries.d.ts +18 -0
- package/operations/entry/DdbEsDeleteMultipleEntries.js +80 -0
- package/operations/entry/DdbEsDeleteMultipleEntries.js.map +1 -0
- package/operations/entry/DdbEsGetEntriesByIds.d.ts +14 -0
- package/operations/entry/DdbEsGetEntriesByIds.js +31 -0
- package/operations/entry/DdbEsGetEntriesByIds.js.map +1 -0
- package/operations/entry/DdbEsGetEntry.d.ts +14 -0
- package/operations/entry/DdbEsGetEntry.js +27 -0
- package/operations/entry/DdbEsGetEntry.js.map +1 -0
- package/operations/entry/DdbEsGetLatestEntriesByIds.d.ts +14 -0
- package/operations/entry/DdbEsGetLatestEntriesByIds.js +31 -0
- package/operations/entry/DdbEsGetLatestEntriesByIds.js.map +1 -0
- package/operations/entry/DdbEsGetLatestRevisionByEntryId.d.ts +14 -0
- package/operations/entry/DdbEsGetLatestRevisionByEntryId.js +34 -0
- package/operations/entry/DdbEsGetLatestRevisionByEntryId.js.map +1 -0
- package/operations/entry/DdbEsGetPreviousRevision.d.ts +14 -0
- package/operations/entry/DdbEsGetPreviousRevision.js +56 -0
- package/operations/entry/DdbEsGetPreviousRevision.js.map +1 -0
- package/operations/entry/DdbEsGetPublishedEntriesByIds.d.ts +14 -0
- package/operations/entry/DdbEsGetPublishedEntriesByIds.js +31 -0
- package/operations/entry/DdbEsGetPublishedEntriesByIds.js.map +1 -0
- package/operations/entry/DdbEsGetPublishedRevisionByEntryId.d.ts +14 -0
- package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js +34 -0
- package/operations/entry/DdbEsGetPublishedRevisionByEntryId.js.map +1 -0
- package/operations/entry/DdbEsGetRevisionById.d.ts +14 -0
- package/operations/entry/DdbEsGetRevisionById.js +34 -0
- package/operations/entry/DdbEsGetRevisionById.js.map +1 -0
- package/operations/entry/DdbEsGetRevisions.d.ts +14 -0
- package/operations/entry/DdbEsGetRevisions.js +33 -0
- package/operations/entry/DdbEsGetRevisions.js.map +1 -0
- package/operations/entry/DdbEsGetUniqueFieldValues.d.ts +18 -0
- package/operations/entry/DdbEsGetUniqueFieldValues.js +76 -0
- package/operations/entry/DdbEsGetUniqueFieldValues.js.map +1 -0
- package/operations/entry/DdbEsListEntries.d.ts +25 -0
- package/operations/entry/DdbEsListEntries.js +91 -0
- package/operations/entry/DdbEsListEntries.js.map +1 -0
- package/operations/entry/DdbEsMoveEntry.d.ts +20 -0
- package/operations/entry/DdbEsMoveEntry.js +113 -0
- package/operations/entry/DdbEsMoveEntry.js.map +1 -0
- package/operations/entry/DdbEsMoveToBin.d.ts +23 -0
- package/operations/entry/DdbEsMoveToBin.js +137 -0
- package/operations/entry/DdbEsMoveToBin.js.map +1 -0
- package/operations/entry/DdbEsPublishEntry.d.ts +24 -0
- package/operations/entry/DdbEsPublishEntry.js +231 -0
- package/operations/entry/DdbEsPublishEntry.js.map +1 -0
- package/operations/entry/DdbEsRestoreFromBin.d.ts +23 -0
- package/operations/entry/DdbEsRestoreFromBin.js +137 -0
- package/operations/entry/DdbEsRestoreFromBin.js.map +1 -0
- package/operations/entry/DdbEsUnpublishEntry.d.ts +24 -0
- package/operations/entry/DdbEsUnpublishEntry.js +127 -0
- package/operations/entry/DdbEsUnpublishEntry.js.map +1 -0
- package/operations/entry/DdbEsUpdateEntry.d.ts +24 -0
- package/operations/entry/DdbEsUpdateEntry.js +175 -0
- package/operations/entry/DdbEsUpdateEntry.js.map +1 -0
- package/operations/entry/dataLoader/DataLoaderCache.js +22 -26
- package/operations/entry/dataLoader/DataLoaderCache.js.map +1 -1
- package/operations/entry/dataLoader/constants.js +2 -1
- package/operations/entry/dataLoader/constants.js.map +1 -1
- package/operations/entry/dataLoader/createBatchScheduleFn.js +6 -15
- package/operations/entry/dataLoader/createBatchScheduleFn.js.map +1 -1
- package/operations/entry/dataLoader/getAllEntryRevisions.js +18 -29
- package/operations/entry/dataLoader/getAllEntryRevisions.js.map +1 -1
- package/operations/entry/dataLoader/getLatestRevisionByEntryId.js +27 -37
- package/operations/entry/dataLoader/getLatestRevisionByEntryId.js.map +1 -1
- package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js +27 -37
- package/operations/entry/dataLoader/getPublishedRevisionByEntryId.js.map +1 -1
- package/operations/entry/dataLoader/getRevisionById.js +32 -46
- package/operations/entry/dataLoader/getRevisionById.js.map +1 -1
- package/operations/entry/dataLoader/index.js +8 -9
- package/operations/entry/dataLoader/index.js.map +1 -1
- package/operations/entry/dataLoader/types.js +0 -3
- package/operations/entry/dataLoaders.d.ts +5 -5
- package/operations/entry/dataLoaders.js +89 -99
- package/operations/entry/dataLoaders.js.map +1 -1
- package/{features/CmsEntryOpenSearchIndex → operations/entry}/feature.d.ts +1 -1
- package/operations/entry/feature.js +53 -0
- package/operations/entry/feature.js.map +1 -0
- package/operations/entry/keys.js +43 -63
- package/operations/entry/keys.js.map +1 -1
- package/operations/entry/recordType.js +4 -9
- package/operations/entry/recordType.js.map +1 -1
- package/operations/entry/storageEntryUtils.d.ts +7 -0
- package/operations/entry/storageEntryUtils.js +14 -0
- package/operations/entry/storageEntryUtils.js.map +1 -0
- package/operations/entry/transformations/convertEntryKeys.js +21 -26
- package/operations/entry/transformations/convertEntryKeys.js.map +1 -1
- package/operations/entry/transformations/index.d.ts +2 -5
- package/operations/entry/transformations/index.js +85 -115
- package/operations/entry/transformations/index.js.map +1 -1
- package/operations/entry/transformations/modifyEntryValues.d.ts +3 -3
- package/operations/entry/transformations/modifyEntryValues.js +12 -17
- package/operations/entry/transformations/modifyEntryValues.js.map +1 -1
- package/operations/entry/transformations/transformEntryKeys.js +13 -16
- package/operations/entry/transformations/transformEntryKeys.js.map +1 -1
- package/operations/group/DdbEsCreateGroup.d.ts +12 -0
- package/operations/group/DdbEsCreateGroup.js +35 -0
- package/operations/group/DdbEsCreateGroup.js.map +1 -0
- package/operations/group/DdbEsDeleteGroup.d.ts +12 -0
- package/operations/group/DdbEsDeleteGroup.js +31 -0
- package/operations/group/DdbEsDeleteGroup.js.map +1 -0
- package/operations/group/DdbEsGetGroup.d.ts +12 -0
- package/operations/group/DdbEsGetGroup.js +31 -0
- package/operations/group/DdbEsGetGroup.js.map +1 -0
- package/operations/group/DdbEsListGroups.d.ts +14 -0
- package/operations/group/DdbEsListGroups.js +52 -0
- package/operations/group/DdbEsListGroups.js.map +1 -0
- package/operations/group/DdbEsUpdateGroup.d.ts +12 -0
- package/operations/group/DdbEsUpdateGroup.js +35 -0
- package/operations/group/DdbEsUpdateGroup.js.map +1 -0
- package/{features/CmsEntryOpenSearchFilter → operations/group}/feature.d.ts +1 -1
- package/operations/group/feature.js +19 -0
- package/operations/group/feature.js.map +1 -0
- package/operations/group/keys.d.ts +15 -0
- package/operations/group/keys.js +17 -0
- package/operations/group/keys.js.map +1 -0
- package/operations/model/DdbEsCreateModel.d.ts +16 -0
- package/operations/model/DdbEsCreateModel.js +56 -0
- package/operations/model/DdbEsCreateModel.js.map +1 -0
- package/operations/model/DdbEsDeleteModel.d.ts +12 -0
- package/operations/model/DdbEsDeleteModel.js +31 -0
- package/operations/model/DdbEsDeleteModel.js.map +1 -0
- package/operations/model/DdbEsGetModel.d.ts +12 -0
- package/operations/model/DdbEsGetModel.js +30 -0
- package/operations/model/DdbEsGetModel.js.map +1 -0
- package/operations/model/DdbEsListModels.d.ts +12 -0
- package/operations/model/DdbEsListModels.js +36 -0
- package/operations/model/DdbEsListModels.js.map +1 -0
- package/operations/model/DdbEsUpdateModel.d.ts +12 -0
- package/operations/model/DdbEsUpdateModel.js +36 -0
- package/operations/model/DdbEsUpdateModel.js.map +1 -0
- package/{features/CmsEntryOpenSearchFieldIndex → operations/model}/feature.d.ts +1 -1
- package/operations/model/feature.js +19 -0
- package/operations/model/feature.js.map +1 -0
- package/operations/model/keys.d.ts +15 -0
- package/operations/model/keys.js +17 -0
- package/operations/model/keys.js.map +1 -0
- package/package.json +33 -27
- package/requestFeature.d.ts +20 -0
- package/requestFeature.js +54 -0
- package/requestFeature.js.map +1 -0
- package/tasks/CreateElasticsearchIndexTask.d.ts +13 -0
- package/tasks/CreateElasticsearchIndexTask.js +40 -0
- package/tasks/CreateElasticsearchIndexTask.js.map +1 -0
- package/types.d.ts +11 -50
- package/types.js +7 -13
- package/types.js.map +1 -1
- package/configurations.d.ts +0 -19
- package/configurations.js +0 -39
- package/configurations.js.map +0 -1
- package/definitions/types.js.map +0 -1
- package/elasticsearch/createElasticsearchIndex.d.ts +0 -9
- package/elasticsearch/createElasticsearchIndex.js +0 -74
- package/elasticsearch/createElasticsearchIndex.js.map +0 -1
- package/elasticsearch/deleteElasticsearchIndex.d.ts +0 -8
- package/elasticsearch/deleteElasticsearchIndex.js +0 -31
- package/elasticsearch/deleteElasticsearchIndex.js.map +0 -1
- package/exports/api/cms/opensearch.d.ts +0 -9
- package/exports/api/cms/opensearch.js +0 -11
- package/exports/api/cms/opensearch.js.map +0 -1
- package/features/CmsEntryOpenSearchBodyModifier/abstractions.d.ts +0 -16
- package/features/CmsEntryOpenSearchBodyModifier/abstractions.js +0 -4
- package/features/CmsEntryOpenSearchBodyModifier/abstractions.js.map +0 -1
- package/features/CmsEntryOpenSearchBodyModifier/index.d.ts +0 -1
- package/features/CmsEntryOpenSearchBodyModifier/index.js +0 -3
- package/features/CmsEntryOpenSearchBodyModifier/index.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.d.ts +0 -13
- package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.js +0 -36
- package/features/CmsEntryOpenSearchFieldIndex/CmsEntryOpenSearchFieldIndexRegistry.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.d.ts +0 -35
- package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.js +0 -4
- package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.d.ts +0 -11
- package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.js +0 -4
- package/features/CmsEntryOpenSearchFieldIndex/abstractions/CmsEntryOpenSearchFieldIndexRegistry.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/constants.d.ts +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/constants.js +0 -3
- package/features/CmsEntryOpenSearchFieldIndex/constants.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/feature.js +0 -24
- package/features/CmsEntryOpenSearchFieldIndex/feature.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.d.ts +0 -11
- package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.js +0 -77
- package/features/CmsEntryOpenSearchFieldIndex/fields/DateTimeFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.d.ts +0 -10
- package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.js +0 -39
- package/features/CmsEntryOpenSearchFieldIndex/fields/DefaultFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.d.ts +0 -10
- package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.js +0 -22
- package/features/CmsEntryOpenSearchFieldIndex/fields/JsonFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.d.ts +0 -10
- package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.js +0 -25
- package/features/CmsEntryOpenSearchFieldIndex/fields/LongTextFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.d.ts +0 -11
- package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.js +0 -37
- package/features/CmsEntryOpenSearchFieldIndex/fields/NumberFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.d.ts +0 -10
- package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.js +0 -158
- package/features/CmsEntryOpenSearchFieldIndex/fields/ObjectFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.d.ts +0 -10
- package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.js +0 -22
- package/features/CmsEntryOpenSearchFieldIndex/fields/RichTextFieldIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchFieldIndex/index.d.ts +0 -3
- package/features/CmsEntryOpenSearchFieldIndex/index.js +0 -5
- package/features/CmsEntryOpenSearchFieldIndex/index.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.d.ts +0 -11
- package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.js +0 -38
- package/features/CmsEntryOpenSearchFilter/CmsEntryOpenSearchFilterRegistry.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.d.ts +0 -37
- package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.js +0 -4
- package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilter.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.d.ts +0 -9
- package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.js +0 -4
- package/features/CmsEntryOpenSearchFilter/abstractions/CmsEntryOpenSearchFilterRegistry.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/constants.d.ts +0 -1
- package/features/CmsEntryOpenSearchFilter/constants.js +0 -3
- package/features/CmsEntryOpenSearchFilter/constants.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/feature.js +0 -16
- package/features/CmsEntryOpenSearchFilter/feature.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.d.ts +0 -9
- package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.js +0 -23
- package/features/CmsEntryOpenSearchFilter/fields/DefaultFilter.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.d.ts +0 -9
- package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.js +0 -61
- package/features/CmsEntryOpenSearchFilter/fields/ObjectFilter.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/fields/RefFilter.d.ts +0 -9
- package/features/CmsEntryOpenSearchFilter/fields/RefFilter.js +0 -49
- package/features/CmsEntryOpenSearchFilter/fields/RefFilter.js.map +0 -1
- package/features/CmsEntryOpenSearchFilter/index.d.ts +0 -3
- package/features/CmsEntryOpenSearchFilter/index.js +0 -5
- package/features/CmsEntryOpenSearchFilter/index.js.map +0 -1
- package/features/CmsEntryOpenSearchFullTextSearch/abstractions.d.ts +0 -20
- package/features/CmsEntryOpenSearchFullTextSearch/abstractions.js +0 -4
- package/features/CmsEntryOpenSearchFullTextSearch/abstractions.js.map +0 -1
- package/features/CmsEntryOpenSearchFullTextSearch/index.d.ts +0 -1
- package/features/CmsEntryOpenSearchFullTextSearch/index.js +0 -3
- package/features/CmsEntryOpenSearchFullTextSearch/index.js.map +0 -1
- package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.d.ts +0 -11
- package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.js +0 -16
- package/features/CmsEntryOpenSearchIndex/BaseOpenSearchIndex.js.map +0 -1
- package/features/CmsEntryOpenSearchIndex/abstractions.d.ts +0 -14
- package/features/CmsEntryOpenSearchIndex/abstractions.js +0 -4
- package/features/CmsEntryOpenSearchIndex/abstractions.js.map +0 -1
- package/features/CmsEntryOpenSearchIndex/feature.js +0 -10
- package/features/CmsEntryOpenSearchIndex/feature.js.map +0 -1
- package/features/CmsEntryOpenSearchIndex/index.d.ts +0 -3
- package/features/CmsEntryOpenSearchIndex/index.js +0 -5
- package/features/CmsEntryOpenSearchIndex/index.js.map +0 -1
- package/features/CmsEntryOpenSearchQueryModifier/abstractions.d.ts +0 -16
- package/features/CmsEntryOpenSearchQueryModifier/abstractions.js +0 -4
- package/features/CmsEntryOpenSearchQueryModifier/abstractions.js.map +0 -1
- package/features/CmsEntryOpenSearchQueryModifier/index.d.ts +0 -1
- package/features/CmsEntryOpenSearchQueryModifier/index.js +0 -3
- package/features/CmsEntryOpenSearchQueryModifier/index.js.map +0 -1
- package/features/CmsEntryOpenSearchSortModifier/abstractions.d.ts +0 -15
- package/features/CmsEntryOpenSearchSortModifier/abstractions.js +0 -4
- package/features/CmsEntryOpenSearchSortModifier/abstractions.js.map +0 -1
- package/features/CmsEntryOpenSearchSortModifier/index.d.ts +0 -1
- package/features/CmsEntryOpenSearchSortModifier/index.js +0 -3
- package/features/CmsEntryOpenSearchSortModifier/index.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.d.ts +0 -12
- package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.js +0 -27
- package/features/CmsEntryOpenSearchValueSearch/CmsEntryOpenSearchValueSearchRegistry.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.d.ts +0 -22
- package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.js +0 -4
- package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.d.ts +0 -10
- package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.js +0 -4
- package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearchRegistry.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/feature.d.ts +0 -4
- package/features/CmsEntryOpenSearchValueSearch/feature.js +0 -16
- package/features/CmsEntryOpenSearchValueSearch/feature.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.d.ts +0 -10
- package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.js +0 -23
- package/features/CmsEntryOpenSearchValueSearch/fields/RefSearch.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.d.ts +0 -10
- package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.js +0 -55
- package/features/CmsEntryOpenSearchValueSearch/fields/SearchableJsonSearch.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.d.ts +0 -10
- package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.js +0 -24
- package/features/CmsEntryOpenSearchValueSearch/fields/TimeSearch.js.map +0 -1
- package/features/CmsEntryOpenSearchValueSearch/index.d.ts +0 -3
- package/features/CmsEntryOpenSearchValueSearch/index.js +0 -5
- package/features/CmsEntryOpenSearchValueSearch/index.js.map +0 -1
- package/features/CmsEntryOpenSearchValuesModifier/abstractions.d.ts +0 -23
- package/features/CmsEntryOpenSearchValuesModifier/abstractions.js +0 -4
- package/features/CmsEntryOpenSearchValuesModifier/abstractions.js.map +0 -1
- package/features/CmsEntryOpenSearchValuesModifier/index.d.ts +0 -1
- package/features/CmsEntryOpenSearchValuesModifier/index.js +0 -3
- package/features/CmsEntryOpenSearchValuesModifier/index.js.map +0 -1
- package/helpers/entryIndexHelpers.d.ts +0 -20
- package/helpers/entryIndexHelpers.js +0 -134
- package/helpers/entryIndexHelpers.js.map +0 -1
- package/helpers/fieldIdentifier.d.ts +0 -6
- package/helpers/fieldIdentifier.js +0 -35
- package/helpers/fieldIdentifier.js.map +0 -1
- package/helpers/index.d.ts +0 -2
- package/helpers/index.js +0 -4
- package/helpers/index.js.map +0 -1
- package/index.js.map +0 -1
- package/operations/entry/dataLoader/types.js.map +0 -1
- package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.d.ts +0 -18
- package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js +0 -27
- package/operations/entry/elasticsearch/assignMinimumShouldMatchToQuery.js.map +0 -1
- package/operations/entry/elasticsearch/body.d.ts +0 -29
- package/operations/entry/elasticsearch/body.js +0 -138
- package/operations/entry/elasticsearch/body.js.map +0 -1
- package/operations/entry/elasticsearch/fields/createSystemField.d.ts +0 -4
- package/operations/entry/elasticsearch/fields/createSystemField.js +0 -10
- package/operations/entry/elasticsearch/fields/createSystemField.js.map +0 -1
- package/operations/entry/elasticsearch/fields/live.d.ts +0 -2
- package/operations/entry/elasticsearch/fields/live.js +0 -45
- package/operations/entry/elasticsearch/fields/live.js.map +0 -1
- package/operations/entry/elasticsearch/fields/location.d.ts +0 -2
- package/operations/entry/elasticsearch/fields/location.js +0 -45
- package/operations/entry/elasticsearch/fields/location.js.map +0 -1
- package/operations/entry/elasticsearch/fields/state.d.ts +0 -2
- package/operations/entry/elasticsearch/fields/state.js +0 -93
- package/operations/entry/elasticsearch/fields/state.js.map +0 -1
- package/operations/entry/elasticsearch/fields.d.ts +0 -12
- package/operations/entry/elasticsearch/fields.js +0 -231
- package/operations/entry/elasticsearch/fields.js.map +0 -1
- package/operations/entry/elasticsearch/filtering/applyFiltering.d.ts +0 -9
- package/operations/entry/elasticsearch/filtering/applyFiltering.js +0 -52
- package/operations/entry/elasticsearch/filtering/applyFiltering.js.map +0 -1
- package/operations/entry/elasticsearch/filtering/exec.d.ts +0 -22
- package/operations/entry/elasticsearch/filtering/exec.js +0 -125
- package/operations/entry/elasticsearch/filtering/exec.js.map +0 -1
- package/operations/entry/elasticsearch/filtering/index.d.ts +0 -1
- package/operations/entry/elasticsearch/filtering/index.js +0 -3
- package/operations/entry/elasticsearch/filtering/index.js.map +0 -1
- package/operations/entry/elasticsearch/filtering/path.d.ts +0 -17
- package/operations/entry/elasticsearch/filtering/path.js +0 -36
- package/operations/entry/elasticsearch/filtering/path.js.map +0 -1
- package/operations/entry/elasticsearch/filtering/populated.d.ts +0 -2
- package/operations/entry/elasticsearch/filtering/populated.js +0 -18
- package/operations/entry/elasticsearch/filtering/populated.js.map +0 -1
- package/operations/entry/elasticsearch/filtering/values.d.ts +0 -2
- package/operations/entry/elasticsearch/filtering/values.js +0 -16
- package/operations/entry/elasticsearch/filtering/values.js.map +0 -1
- package/operations/entry/elasticsearch/fullTextSearch.d.ts +0 -13
- package/operations/entry/elasticsearch/fullTextSearch.js +0 -88
- package/operations/entry/elasticsearch/fullTextSearch.js.map +0 -1
- package/operations/entry/elasticsearch/fullTextSearchFields.d.ts +0 -8
- package/operations/entry/elasticsearch/fullTextSearchFields.js +0 -20
- package/operations/entry/elasticsearch/fullTextSearchFields.js.map +0 -1
- package/operations/entry/elasticsearch/initialQuery.d.ts +0 -17
- package/operations/entry/elasticsearch/initialQuery.js +0 -88
- package/operations/entry/elasticsearch/initialQuery.js.map +0 -1
- package/operations/entry/elasticsearch/keyword.d.ts +0 -2
- package/operations/entry/elasticsearch/keyword.js +0 -31
- package/operations/entry/elasticsearch/keyword.js.map +0 -1
- package/operations/entry/elasticsearch/plugins/operator.d.ts +0 -7
- package/operations/entry/elasticsearch/plugins/operator.js +0 -24
- package/operations/entry/elasticsearch/plugins/operator.js.map +0 -1
- package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.d.ts +0 -2
- package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js +0 -6
- package/operations/entry/elasticsearch/shouldIgnoreEsResponseError.js.map +0 -1
- package/operations/entry/elasticsearch/sort.d.ts +0 -12
- package/operations/entry/elasticsearch/sort.js +0 -103
- package/operations/entry/elasticsearch/sort.js.map +0 -1
- package/operations/entry/elasticsearch/transformValueForSearch.d.ts +0 -9
- package/operations/entry/elasticsearch/transformValueForSearch.js +0 -17
- package/operations/entry/elasticsearch/transformValueForSearch.js.map +0 -1
- package/operations/entry/elasticsearch/types.d.ts +0 -34
- package/operations/entry/elasticsearch/types.js +0 -3
- package/operations/entry/elasticsearch/types.js.map +0 -1
- package/operations/entry/index.d.ts +0 -32
- package/operations/entry/index.js +0 -1761
- package/operations/entry/index.js.map +0 -1
- package/operations/entry/transformations/transformEntryToIndex.d.ts +0 -12
- package/operations/entry/transformations/transformEntryToIndex.js +0 -26
- package/operations/entry/transformations/transformEntryToIndex.js.map +0 -1
- package/operations/group/index.d.ts +0 -9
- package/operations/group/index.js +0 -142
- package/operations/group/index.js.map +0 -1
- package/operations/model/index.d.ts +0 -8
- package/operations/model/index.js +0 -163
- package/operations/model/index.js.map +0 -1
- package/tasks/createIndexTaskPlugin.d.ts +0 -2
- package/tasks/createIndexTaskPlugin.js +0 -48
- package/tasks/createIndexTaskPlugin.js.map +0 -1
- package/values/NoValueContainer.d.ts +0 -5
- package/values/NoValueContainer.js +0 -13
- package/values/NoValueContainer.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createFeature","DefaultFilter","RefFilter","ObjectFilter","CmsEntryOpenSearchFilterRegistry","CmsEntryOpenSearchFilterFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { DefaultFilter } from \"./fields/DefaultFilter.js\";\nimport { RefFilter } from \"./fields/RefFilter.js\";\nimport { ObjectFilter } from \"./fields/ObjectFilter.js\";\nimport { CmsEntryOpenSearchFilterRegistry } from \"./CmsEntryOpenSearchFilterRegistry.js\";\n\nexport const CmsEntryOpenSearchFilterFeature = createFeature({\n name: \"Cms/Entry/OpenSearch/FilterFeature\",\n register: container => {\n container.register(DefaultFilter);\n container.register(RefFilter);\n container.register(ObjectFilter);\n container.register(CmsEntryOpenSearchFilterRegistry);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,aAAa;AACtB,SAASC,SAAS;AAClB,SAASC,YAAY;AACrB,SAASC,gCAAgC;AAEzC,OAAO,MAAMC,+BAA+B,GAAGL,aAAa,CAAC;EACzDM,IAAI,EAAE,oCAAoC;EAC1CC,QAAQ,EAAEC,SAAS,IAAI;IACnBA,SAAS,CAACD,QAAQ,CAACN,aAAa,CAAC;IACjCO,SAAS,CAACD,QAAQ,CAACL,SAAS,CAAC;IAC7BM,SAAS,CAACD,QAAQ,CAACJ,YAAY,CAAC;IAChCK,SAAS,CAACD,QAAQ,CAACH,gCAAgC,CAAC;EACxD;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
|
|
2
|
-
declare class DefaultFilterImpl implements CmsEntryOpenSearchFilter.Interface {
|
|
3
|
-
readonly fieldType: "*";
|
|
4
|
-
exec(params: CmsEntryOpenSearchFilter.ExecParams): void;
|
|
5
|
-
}
|
|
6
|
-
export declare const DefaultFilter: typeof DefaultFilterImpl & {
|
|
7
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchFilter.js").ICmsEntryOpenSearchFilter>;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import WebinyError from "@webiny/error";
|
|
2
|
-
import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
|
|
3
|
-
import { FILTER_DEFAULT } from "../constants.js";
|
|
4
|
-
class DefaultFilterImpl {
|
|
5
|
-
fieldType = FILTER_DEFAULT;
|
|
6
|
-
exec(params) {
|
|
7
|
-
const {
|
|
8
|
-
applyFiltering,
|
|
9
|
-
field
|
|
10
|
-
} = params;
|
|
11
|
-
if (!field.searchable) {
|
|
12
|
-
const identifier = [...field.parents.map(p => p.fieldId), field.field.fieldId].join(".");
|
|
13
|
-
throw new WebinyError(`Field "${identifier}" is not searchable.`);
|
|
14
|
-
}
|
|
15
|
-
applyFiltering(params);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export const DefaultFilter = CmsEntryOpenSearchFilter.createImplementation({
|
|
19
|
-
implementation: DefaultFilterImpl,
|
|
20
|
-
dependencies: []
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=DefaultFilter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["WebinyError","CmsEntryOpenSearchFilter","FILTER_DEFAULT","DefaultFilterImpl","fieldType","exec","params","applyFiltering","field","searchable","identifier","parents","map","p","fieldId","join","DefaultFilter","createImplementation","implementation","dependencies"],"sources":["DefaultFilter.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { CmsEntryOpenSearchFilter } from \"../abstractions/CmsEntryOpenSearchFilter.js\";\nimport { FILTER_DEFAULT } from \"../constants.js\";\n\nclass DefaultFilterImpl implements CmsEntryOpenSearchFilter.Interface {\n public readonly fieldType = FILTER_DEFAULT;\n\n public exec(params: CmsEntryOpenSearchFilter.ExecParams): void {\n const { applyFiltering, field } = params;\n if (!field.searchable) {\n const identifier = [...field.parents.map(p => p.fieldId), field.field.fieldId].join(\n \".\"\n );\n throw new WebinyError(`Field \"${identifier}\" is not searchable.`);\n }\n applyFiltering(params);\n }\n}\n\nexport const DefaultFilter = CmsEntryOpenSearchFilter.createImplementation({\n implementation: DefaultFilterImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AACvC,SAASC,wBAAwB;AACjC,SAASC,cAAc;AAEvB,MAAMC,iBAAiB,CAA+C;EAClDC,SAAS,GAAGF,cAAc;EAEnCG,IAAIA,CAACC,MAA2C,EAAQ;IAC3D,MAAM;MAAEC,cAAc;MAAEC;IAAM,CAAC,GAAGF,MAAM;IACxC,IAAI,CAACE,KAAK,CAACC,UAAU,EAAE;MACnB,MAAMC,UAAU,GAAG,CAAC,GAAGF,KAAK,CAACG,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,OAAO,CAAC,EAAEN,KAAK,CAACA,KAAK,CAACM,OAAO,CAAC,CAACC,IAAI,CAC/E,GACJ,CAAC;MACD,MAAM,IAAIf,WAAW,CAAC,UAAUU,UAAU,sBAAsB,CAAC;IACrE;IACAH,cAAc,CAACD,MAAM,CAAC;EAC1B;AACJ;AAEA,OAAO,MAAMU,aAAa,GAAGf,wBAAwB,CAACgB,oBAAoB,CAAC;EACvEC,cAAc,EAAEf,iBAAiB;EACjCgB,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
|
|
2
|
-
declare class ObjectFilterImpl implements CmsEntryOpenSearchFilter.Interface {
|
|
3
|
-
readonly fieldType = "object";
|
|
4
|
-
exec(params: CmsEntryOpenSearchFilter.ExecParams): void;
|
|
5
|
-
}
|
|
6
|
-
export declare const ObjectFilter: typeof ObjectFilterImpl & {
|
|
7
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchFilter.js").ICmsEntryOpenSearchFilter>;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import WebinyError from "@webiny/error";
|
|
2
|
-
import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
|
|
3
|
-
import { parseWhereKey } from "@webiny/api-opensearch";
|
|
4
|
-
class ObjectFilterImpl {
|
|
5
|
-
fieldType = "object";
|
|
6
|
-
exec(params) {
|
|
7
|
-
const {
|
|
8
|
-
applyFiltering,
|
|
9
|
-
value: where,
|
|
10
|
-
fields,
|
|
11
|
-
field: parentField,
|
|
12
|
-
getFilter,
|
|
13
|
-
query
|
|
14
|
-
} = params;
|
|
15
|
-
/**
|
|
16
|
-
* Because this is an object field, we must construct filters based on the value property.
|
|
17
|
-
* Value property is actually a where condition.
|
|
18
|
-
*/
|
|
19
|
-
for (const key in where) {
|
|
20
|
-
const value = where[key];
|
|
21
|
-
if (value === undefined) {
|
|
22
|
-
continue;
|
|
23
|
-
}
|
|
24
|
-
const {
|
|
25
|
-
field: whereFieldId,
|
|
26
|
-
operator
|
|
27
|
-
} = parseWhereKey(key);
|
|
28
|
-
const identifier = [...parentField.parents.map(p => p.fieldId), parentField.field.fieldId, whereFieldId].join(".");
|
|
29
|
-
const field = fields[identifier];
|
|
30
|
-
if (!field) {
|
|
31
|
-
throw new WebinyError(`There is no field "${identifier}".`, "OBJECT_FILTER_FIELD_ERROR", {
|
|
32
|
-
fields: Object.keys(fields)
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* We need to find the filter for the child field.
|
|
37
|
-
* This will throw error if no filter can be found.
|
|
38
|
-
*/
|
|
39
|
-
const filter = getFilter(field.type);
|
|
40
|
-
/**
|
|
41
|
-
* Basically this allows us to go into depth as much as we want with the object fields.
|
|
42
|
-
*/
|
|
43
|
-
filter.exec({
|
|
44
|
-
applyFiltering,
|
|
45
|
-
getFilter,
|
|
46
|
-
key,
|
|
47
|
-
value,
|
|
48
|
-
operator,
|
|
49
|
-
field,
|
|
50
|
-
fields,
|
|
51
|
-
query
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export const ObjectFilter = CmsEntryOpenSearchFilter.createImplementation({
|
|
57
|
-
implementation: ObjectFilterImpl,
|
|
58
|
-
dependencies: []
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
//# sourceMappingURL=ObjectFilter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["WebinyError","CmsEntryOpenSearchFilter","parseWhereKey","ObjectFilterImpl","fieldType","exec","params","applyFiltering","value","where","fields","field","parentField","getFilter","query","key","undefined","whereFieldId","operator","identifier","parents","map","p","fieldId","join","Object","keys","filter","type","ObjectFilter","createImplementation","implementation","dependencies"],"sources":["ObjectFilter.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { CmsEntryOpenSearchFilter } from \"../abstractions/CmsEntryOpenSearchFilter.js\";\nimport { parseWhereKey } from \"@webiny/api-opensearch\";\n\nclass ObjectFilterImpl implements CmsEntryOpenSearchFilter.Interface {\n public readonly fieldType = \"object\";\n\n public exec(params: CmsEntryOpenSearchFilter.ExecParams): void {\n const {\n applyFiltering,\n value: where,\n fields,\n field: parentField,\n getFilter,\n query\n } = params;\n /**\n * Because this is an object field, we must construct filters based on the value property.\n * Value property is actually a where condition.\n */\n for (const key in where) {\n const value = where[key];\n if (value === undefined) {\n continue;\n }\n const { field: whereFieldId, operator } = parseWhereKey(key);\n\n const identifier = [\n ...parentField.parents.map(p => p.fieldId),\n parentField.field.fieldId,\n whereFieldId\n ].join(\".\");\n const field = fields[identifier];\n if (!field) {\n throw new WebinyError(\n `There is no field \"${identifier}\".`,\n \"OBJECT_FILTER_FIELD_ERROR\",\n {\n fields: Object.keys(fields)\n }\n );\n }\n /**\n * We need to find the filter for the child field.\n * This will throw error if no filter can be found.\n */\n const filter = getFilter(field.type);\n /**\n * Basically this allows us to go into depth as much as we want with the object fields.\n */\n filter.exec({\n applyFiltering,\n getFilter,\n key,\n value,\n operator,\n field,\n fields,\n query\n });\n }\n }\n}\n\nexport const ObjectFilter = CmsEntryOpenSearchFilter.createImplementation({\n implementation: ObjectFilterImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AACvC,SAASC,wBAAwB;AACjC,SAASC,aAAa,QAAQ,wBAAwB;AAEtD,MAAMC,gBAAgB,CAA+C;EACjDC,SAAS,GAAG,QAAQ;EAE7BC,IAAIA,CAACC,MAA2C,EAAQ;IAC3D,MAAM;MACFC,cAAc;MACdC,KAAK,EAAEC,KAAK;MACZC,MAAM;MACNC,KAAK,EAAEC,WAAW;MAClBC,SAAS;MACTC;IACJ,CAAC,GAAGR,MAAM;IACV;AACR;AACA;AACA;IACQ,KAAK,MAAMS,GAAG,IAAIN,KAAK,EAAE;MACrB,MAAMD,KAAK,GAAGC,KAAK,CAACM,GAAG,CAAC;MACxB,IAAIP,KAAK,KAAKQ,SAAS,EAAE;QACrB;MACJ;MACA,MAAM;QAAEL,KAAK,EAAEM,YAAY;QAAEC;MAAS,CAAC,GAAGhB,aAAa,CAACa,GAAG,CAAC;MAE5D,MAAMI,UAAU,GAAG,CACf,GAAGP,WAAW,CAACQ,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,OAAO,CAAC,EAC1CX,WAAW,CAACD,KAAK,CAACY,OAAO,EACzBN,YAAY,CACf,CAACO,IAAI,CAAC,GAAG,CAAC;MACX,MAAMb,KAAK,GAAGD,MAAM,CAACS,UAAU,CAAC;MAChC,IAAI,CAACR,KAAK,EAAE;QACR,MAAM,IAAIX,WAAW,CACjB,sBAAsBmB,UAAU,IAAI,EACpC,2BAA2B,EAC3B;UACIT,MAAM,EAAEe,MAAM,CAACC,IAAI,CAAChB,MAAM;QAC9B,CACJ,CAAC;MACL;MACA;AACZ;AACA;AACA;MACY,MAAMiB,MAAM,GAAGd,SAAS,CAACF,KAAK,CAACiB,IAAI,CAAC;MACpC;AACZ;AACA;MACYD,MAAM,CAACtB,IAAI,CAAC;QACRE,cAAc;QACdM,SAAS;QACTE,GAAG;QACHP,KAAK;QACLU,QAAQ;QACRP,KAAK;QACLD,MAAM;QACNI;MACJ,CAAC,CAAC;IACN;EACJ;AACJ;AAEA,OAAO,MAAMe,YAAY,GAAG5B,wBAAwB,CAAC6B,oBAAoB,CAAC;EACtEC,cAAc,EAAE5B,gBAAgB;EAChC6B,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
|
|
2
|
-
declare class RefFilterImpl implements CmsEntryOpenSearchFilter.Interface {
|
|
3
|
-
readonly fieldType = "ref";
|
|
4
|
-
exec(params: CmsEntryOpenSearchFilter.ExecParams): void;
|
|
5
|
-
}
|
|
6
|
-
export declare const RefFilter: typeof RefFilterImpl & {
|
|
7
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchFilter.js").ICmsEntryOpenSearchFilter>;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import WebinyError from "@webiny/error";
|
|
2
|
-
import { CmsEntryOpenSearchFilter } from "../abstractions/CmsEntryOpenSearchFilter.js";
|
|
3
|
-
import { parseWhereKey } from "@webiny/api-opensearch";
|
|
4
|
-
class RefFilterImpl {
|
|
5
|
-
fieldType = "ref";
|
|
6
|
-
exec(params) {
|
|
7
|
-
const {
|
|
8
|
-
applyFiltering,
|
|
9
|
-
query,
|
|
10
|
-
field
|
|
11
|
-
} = params;
|
|
12
|
-
let values = params.value;
|
|
13
|
-
/**
|
|
14
|
-
* We must have an object when querying in the ref field.
|
|
15
|
-
*/
|
|
16
|
-
if (typeof values !== "object") {
|
|
17
|
-
throw new WebinyError(`When querying by ref field, value of the field must be an object.`, "OBJECT_REQUIRED", {
|
|
18
|
-
value: values
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (values === null || values === undefined) {
|
|
22
|
-
values = {
|
|
23
|
-
entryId: null
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
for (const key in values) {
|
|
27
|
-
const {
|
|
28
|
-
operator
|
|
29
|
-
} = parseWhereKey(key);
|
|
30
|
-
const value = values[key];
|
|
31
|
-
if (value === undefined) {
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
applyFiltering({
|
|
35
|
-
query,
|
|
36
|
-
field,
|
|
37
|
-
operator,
|
|
38
|
-
key,
|
|
39
|
-
value
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export const RefFilter = CmsEntryOpenSearchFilter.createImplementation({
|
|
45
|
-
implementation: RefFilterImpl,
|
|
46
|
-
dependencies: []
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
//# sourceMappingURL=RefFilter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["WebinyError","CmsEntryOpenSearchFilter","parseWhereKey","RefFilterImpl","fieldType","exec","params","applyFiltering","query","field","values","value","undefined","entryId","key","operator","RefFilter","createImplementation","implementation","dependencies"],"sources":["RefFilter.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { CmsEntryOpenSearchFilter } from \"../abstractions/CmsEntryOpenSearchFilter.js\";\nimport { parseWhereKey } from \"@webiny/api-opensearch\";\n\nclass RefFilterImpl implements CmsEntryOpenSearchFilter.Interface {\n public readonly fieldType = \"ref\";\n\n public exec(params: CmsEntryOpenSearchFilter.ExecParams): void {\n const { applyFiltering, query, field } = params;\n\n let values = params.value;\n /**\n * We must have an object when querying in the ref field.\n */\n if (typeof values !== \"object\") {\n throw new WebinyError(\n `When querying by ref field, value of the field must be an object.`,\n \"OBJECT_REQUIRED\",\n {\n value: values\n }\n );\n }\n\n if (values === null || values === undefined) {\n values = {\n entryId: null\n };\n }\n\n for (const key in values) {\n const { operator } = parseWhereKey(key);\n const value = values[key];\n if (value === undefined) {\n continue;\n }\n\n applyFiltering({\n query,\n field,\n operator,\n key,\n value\n });\n }\n }\n}\n\nexport const RefFilter = CmsEntryOpenSearchFilter.createImplementation({\n implementation: RefFilterImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AACvC,SAASC,wBAAwB;AACjC,SAASC,aAAa,QAAQ,wBAAwB;AAEtD,MAAMC,aAAa,CAA+C;EAC9CC,SAAS,GAAG,KAAK;EAE1BC,IAAIA,CAACC,MAA2C,EAAQ;IAC3D,MAAM;MAAEC,cAAc;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAGH,MAAM;IAE/C,IAAII,MAAM,GAAGJ,MAAM,CAACK,KAAK;IACzB;AACR;AACA;IACQ,IAAI,OAAOD,MAAM,KAAK,QAAQ,EAAE;MAC5B,MAAM,IAAIV,WAAW,CACjB,mEAAmE,EACnE,iBAAiB,EACjB;QACIW,KAAK,EAAED;MACX,CACJ,CAAC;IACL;IAEA,IAAIA,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKE,SAAS,EAAE;MACzCF,MAAM,GAAG;QACLG,OAAO,EAAE;MACb,CAAC;IACL;IAEA,KAAK,MAAMC,GAAG,IAAIJ,MAAM,EAAE;MACtB,MAAM;QAAEK;MAAS,CAAC,GAAGb,aAAa,CAACY,GAAG,CAAC;MACvC,MAAMH,KAAK,GAAGD,MAAM,CAACI,GAAG,CAAC;MACzB,IAAIH,KAAK,KAAKC,SAAS,EAAE;QACrB;MACJ;MAEAL,cAAc,CAAC;QACXC,KAAK;QACLC,KAAK;QACLM,QAAQ;QACRD,GAAG;QACHH;MACJ,CAAC,CAAC;IACN;EACJ;AACJ;AAEA,OAAO,MAAMK,SAAS,GAAGf,wBAAwB,CAACgB,oBAAoB,CAAC;EACnEC,cAAc,EAAEf,aAAa;EAC7BgB,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { CmsEntryOpenSearchFilter } from "./abstractions/CmsEntryOpenSearchFilter.js";
|
|
2
|
-
export { CmsEntryOpenSearchFilterRegistry } from "./abstractions/CmsEntryOpenSearchFilterRegistry.js";
|
|
3
|
-
export { CmsEntryOpenSearchFilterFeature } from "./feature.js";
|
|
4
|
-
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmsEntryOpenSearchFilter","CmsEntryOpenSearchFilterRegistry","CmsEntryOpenSearchFilterFeature"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchFilter } from \"./abstractions/CmsEntryOpenSearchFilter.js\";\nexport { CmsEntryOpenSearchFilterRegistry } from \"./abstractions/CmsEntryOpenSearchFilterRegistry.js\";\nexport { CmsEntryOpenSearchFilterFeature } from \"./feature.js\";\n"],"mappings":"AAAA,SAASA,wBAAwB;AACjC,SAASC,gCAAgC;AACzC,SAASC,+BAA+B","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
|
|
2
|
-
import type { OpenSearchBoolQueryConfig } from "@webiny/api-opensearch/types.js";
|
|
3
|
-
import type { ModelField, ModelFields } from "../../operations/entry/elasticsearch/types.js";
|
|
4
|
-
export interface ApplyFullTextSearchParams {
|
|
5
|
-
model: CmsModel;
|
|
6
|
-
query: OpenSearchBoolQueryConfig;
|
|
7
|
-
term: string;
|
|
8
|
-
fields: ModelFields;
|
|
9
|
-
createFieldPath: (field: ModelField) => string;
|
|
10
|
-
prepareTerm: (term: string) => string;
|
|
11
|
-
}
|
|
12
|
-
export interface ICmsEntryOpenSearchFullTextSearch {
|
|
13
|
-
readonly models?: string[];
|
|
14
|
-
apply(params: ApplyFullTextSearchParams): void;
|
|
15
|
-
}
|
|
16
|
-
export declare const CmsEntryOpenSearchFullTextSearch: import("@webiny/di").Abstraction<ICmsEntryOpenSearchFullTextSearch>;
|
|
17
|
-
export declare namespace CmsEntryOpenSearchFullTextSearch {
|
|
18
|
-
type Interface = ICmsEntryOpenSearchFullTextSearch;
|
|
19
|
-
type Params = ApplyFullTextSearchParams;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createAbstraction","CmsEntryOpenSearchFullTextSearch"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { OpenSearchBoolQueryConfig } from \"@webiny/api-opensearch/types.js\";\nimport type { ModelField, ModelFields } from \"~/operations/entry/elasticsearch/types.js\";\n\nexport interface ApplyFullTextSearchParams {\n model: CmsModel;\n query: OpenSearchBoolQueryConfig;\n term: string;\n fields: ModelFields;\n createFieldPath: (field: ModelField) => string;\n prepareTerm: (term: string) => string;\n}\n\nexport interface ICmsEntryOpenSearchFullTextSearch {\n readonly models?: string[];\n apply(params: ApplyFullTextSearchParams): void;\n}\n\nexport const CmsEntryOpenSearchFullTextSearch =\n createAbstraction<ICmsEntryOpenSearchFullTextSearch>(\"Cms/Entry/OpenSearch/FullTextSearch\");\n\nexport namespace CmsEntryOpenSearchFullTextSearch {\n export type Interface = ICmsEntryOpenSearchFullTextSearch;\n export type Params = ApplyFullTextSearchParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAmBvD,OAAO,MAAMC,gCAAgC,GACzCD,iBAAiB,CAAoC,qCAAqC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CmsEntryOpenSearchFullTextSearch } from "./abstractions.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmsEntryOpenSearchFullTextSearch"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchFullTextSearch } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,gCAAgC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CmsEntryOpenSearchIndex } from "./abstractions.js";
|
|
2
|
-
import type { OpenSearchIndexRequestBody } from "@webiny/api-opensearch/types.js";
|
|
3
|
-
declare class BaseOpenSearchIndexImpl implements CmsEntryOpenSearchIndex.Interface {
|
|
4
|
-
readonly body: OpenSearchIndexRequestBody;
|
|
5
|
-
constructor();
|
|
6
|
-
canUse(_: CmsEntryOpenSearchIndex.CanUseParams): boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const BaseOpenSearchIndex: typeof BaseOpenSearchIndexImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").ICmsEntryOpenSearchIndex>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getBaseConfiguration } from "@webiny/api-opensearch";
|
|
2
|
-
import { CmsEntryOpenSearchIndex } from "./abstractions.js";
|
|
3
|
-
class BaseOpenSearchIndexImpl {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.body = getBaseConfiguration();
|
|
6
|
-
}
|
|
7
|
-
canUse(_) {
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export const BaseOpenSearchIndex = CmsEntryOpenSearchIndex.createImplementation({
|
|
12
|
-
implementation: BaseOpenSearchIndexImpl,
|
|
13
|
-
dependencies: []
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=BaseOpenSearchIndex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getBaseConfiguration","CmsEntryOpenSearchIndex","BaseOpenSearchIndexImpl","constructor","body","canUse","_","BaseOpenSearchIndex","createImplementation","implementation","dependencies"],"sources":["BaseOpenSearchIndex.ts"],"sourcesContent":["import { getBaseConfiguration } from \"@webiny/api-opensearch\";\nimport { CmsEntryOpenSearchIndex } from \"./abstractions.js\";\nimport type { OpenSearchIndexRequestBody } from \"@webiny/api-opensearch/types.js\";\n\nclass BaseOpenSearchIndexImpl implements CmsEntryOpenSearchIndex.Interface {\n public readonly body: OpenSearchIndexRequestBody;\n\n public constructor() {\n this.body = getBaseConfiguration();\n }\n public canUse(_: CmsEntryOpenSearchIndex.CanUseParams): boolean {\n return true;\n }\n}\n\nexport const BaseOpenSearchIndex = CmsEntryOpenSearchIndex.createImplementation({\n implementation: BaseOpenSearchIndexImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,uBAAuB;AAGhC,MAAMC,uBAAuB,CAA8C;EAGhEC,WAAWA,CAAA,EAAG;IACjB,IAAI,CAACC,IAAI,GAAGJ,oBAAoB,CAAC,CAAC;EACtC;EACOK,MAAMA,CAACC,CAAuC,EAAW;IAC5D,OAAO,IAAI;EACf;AACJ;AAEA,OAAO,MAAMC,mBAAmB,GAAGN,uBAAuB,CAACO,oBAAoB,CAAC;EAC5EC,cAAc,EAAEP,uBAAuB;EACvCQ,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { OpenSearchIndexRequestBody } from "@webiny/api-opensearch/types.js";
|
|
2
|
-
import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
|
|
3
|
-
export interface ICmsEntryOpenSearchIndexCanUseParams {
|
|
4
|
-
model: Pick<CmsModel, "tenant" | "modelId" | "group">;
|
|
5
|
-
}
|
|
6
|
-
export interface ICmsEntryOpenSearchIndex {
|
|
7
|
-
readonly body: OpenSearchIndexRequestBody;
|
|
8
|
-
canUse(params: ICmsEntryOpenSearchIndexCanUseParams): boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const CmsEntryOpenSearchIndex: import("@webiny/di").Abstraction<ICmsEntryOpenSearchIndex>;
|
|
11
|
-
export declare namespace CmsEntryOpenSearchIndex {
|
|
12
|
-
type Interface = ICmsEntryOpenSearchIndex;
|
|
13
|
-
type CanUseParams = ICmsEntryOpenSearchIndexCanUseParams;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createAbstraction","CmsEntryOpenSearchIndex"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { OpenSearchIndexRequestBody } from \"@webiny/api-opensearch/types.js\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport interface ICmsEntryOpenSearchIndexCanUseParams {\n model: Pick<CmsModel, \"tenant\" | \"modelId\" | \"group\">;\n}\n\nexport interface ICmsEntryOpenSearchIndex {\n readonly body: OpenSearchIndexRequestBody;\n canUse(params: ICmsEntryOpenSearchIndexCanUseParams): boolean;\n}\n\nexport const CmsEntryOpenSearchIndex = createAbstraction<ICmsEntryOpenSearchIndex>(\n \"Cms/Entry/OpenSearch/Index\"\n);\n\nexport namespace CmsEntryOpenSearchIndex {\n export type Interface = ICmsEntryOpenSearchIndex;\n export type CanUseParams = ICmsEntryOpenSearchIndexCanUseParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAavD,OAAO,MAAMC,uBAAuB,GAAGD,iBAAiB,CACpD,4BACJ,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createFeature } from "@webiny/feature/api";
|
|
2
|
-
import { BaseOpenSearchIndex } from "./BaseOpenSearchIndex.js";
|
|
3
|
-
export const CmsEntryOpenSearchIndexFeature = createFeature({
|
|
4
|
-
name: "Cms/Entry/OpenSearch/IndexFeature",
|
|
5
|
-
register: container => {
|
|
6
|
-
container.register(BaseOpenSearchIndex);
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=feature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createFeature","BaseOpenSearchIndex","CmsEntryOpenSearchIndexFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { BaseOpenSearchIndex } from \"./BaseOpenSearchIndex.js\";\n\nexport const CmsEntryOpenSearchIndexFeature = createFeature({\n name: \"Cms/Entry/OpenSearch/IndexFeature\",\n register: container => {\n container.register(BaseOpenSearchIndex);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,mBAAmB;AAE5B,OAAO,MAAMC,8BAA8B,GAAGF,aAAa,CAAC;EACxDG,IAAI,EAAE,mCAAmC;EACzCC,QAAQ,EAAEC,SAAS,IAAI;IACnBA,SAAS,CAACD,QAAQ,CAACH,mBAAmB,CAAC;EAC3C;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmsEntryOpenSearchIndexFeature","CmsEntryOpenSearchIndex","BaseOpenSearchIndex"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchIndexFeature } from \"./feature.js\";\nexport { CmsEntryOpenSearchIndex } from \"./abstractions.js\";\nexport { BaseOpenSearchIndex } from \"./BaseOpenSearchIndex.js\";\n"],"mappings":"AAAA,SAASA,8BAA8B;AACvC,SAASC,uBAAuB;AAChC,SAASC,mBAAmB","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
|
|
2
|
-
import type { OpenSearchBoolQueryConfig } from "@webiny/api-opensearch/types.js";
|
|
3
|
-
export interface ModifyQueryParams {
|
|
4
|
-
query: OpenSearchBoolQueryConfig;
|
|
5
|
-
model: CmsModel;
|
|
6
|
-
where: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
export interface ICmsEntryOpenSearchQueryModifier {
|
|
9
|
-
readonly modelId?: string;
|
|
10
|
-
modifyQuery(params: ModifyQueryParams): void;
|
|
11
|
-
}
|
|
12
|
-
export declare const CmsEntryOpenSearchQueryModifier: import("@webiny/di").Abstraction<ICmsEntryOpenSearchQueryModifier>;
|
|
13
|
-
export declare namespace CmsEntryOpenSearchQueryModifier {
|
|
14
|
-
type Interface = ICmsEntryOpenSearchQueryModifier;
|
|
15
|
-
type Params = ModifyQueryParams;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createAbstraction","CmsEntryOpenSearchQueryModifier"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { OpenSearchBoolQueryConfig } from \"@webiny/api-opensearch/types.js\";\n\nexport interface ModifyQueryParams {\n query: OpenSearchBoolQueryConfig;\n model: CmsModel;\n where: Record<string, any>;\n}\n\nexport interface ICmsEntryOpenSearchQueryModifier {\n readonly modelId?: string;\n modifyQuery(params: ModifyQueryParams): void;\n}\n\nexport const CmsEntryOpenSearchQueryModifier = createAbstraction<ICmsEntryOpenSearchQueryModifier>(\n \"Cms/Entry/OpenSearch/QueryModifier\"\n);\n\nexport namespace CmsEntryOpenSearchQueryModifier {\n export type Interface = ICmsEntryOpenSearchQueryModifier;\n export type Params = ModifyQueryParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAevD,OAAO,MAAMC,+BAA+B,GAAGD,iBAAiB,CAC5D,oCACJ,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CmsEntryOpenSearchQueryModifier } from "./abstractions.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmsEntryOpenSearchQueryModifier"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchQueryModifier } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,+BAA+B","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
|
|
2
|
-
import type { Sort } from "@webiny/api-opensearch/types.js";
|
|
3
|
-
export interface ModifySortParams {
|
|
4
|
-
sort: Sort;
|
|
5
|
-
model: CmsModel;
|
|
6
|
-
}
|
|
7
|
-
export interface ICmsEntryOpenSearchSortModifier {
|
|
8
|
-
readonly modelId?: string;
|
|
9
|
-
modifySort(params: ModifySortParams): void;
|
|
10
|
-
}
|
|
11
|
-
export declare const CmsEntryOpenSearchSortModifier: import("@webiny/di").Abstraction<ICmsEntryOpenSearchSortModifier>;
|
|
12
|
-
export declare namespace CmsEntryOpenSearchSortModifier {
|
|
13
|
-
type Interface = ICmsEntryOpenSearchSortModifier;
|
|
14
|
-
type Params = ModifySortParams;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createAbstraction","CmsEntryOpenSearchSortModifier"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { Sort } from \"@webiny/api-opensearch/types.js\";\n\nexport interface ModifySortParams {\n sort: Sort;\n model: CmsModel;\n}\n\nexport interface ICmsEntryOpenSearchSortModifier {\n readonly modelId?: string;\n modifySort(params: ModifySortParams): void;\n}\n\nexport const CmsEntryOpenSearchSortModifier = createAbstraction<ICmsEntryOpenSearchSortModifier>(\n \"Cms/Entry/OpenSearch/SortModifier\"\n);\n\nexport namespace CmsEntryOpenSearchSortModifier {\n export type Interface = ICmsEntryOpenSearchSortModifier;\n export type Params = ModifySortParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAcvD,OAAO,MAAMC,8BAA8B,GAAGD,iBAAiB,CAC3D,mCACJ,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CmsEntryOpenSearchSortModifier } from "./abstractions.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmsEntryOpenSearchSortModifier"],"sources":["index.ts"],"sourcesContent":["export { CmsEntryOpenSearchSortModifier } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,8BAA8B","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CmsEntryOpenSearchValueSearchRegistry as Abstraction } from "./abstractions/CmsEntryOpenSearchValueSearchRegistry.js";
|
|
2
|
-
import { CmsEntryOpenSearchValueSearch } from "./abstractions/CmsEntryOpenSearchValueSearch.js";
|
|
3
|
-
declare class CmsEntryOpenSearchValueSearchRegistryImpl implements Abstraction.Interface {
|
|
4
|
-
private readonly searches;
|
|
5
|
-
constructor(searches: CmsEntryOpenSearchValueSearch.Interface[]);
|
|
6
|
-
get(type: string): Abstraction.SearchValue | undefined;
|
|
7
|
-
getAll(): Abstraction.SearchValue[];
|
|
8
|
-
}
|
|
9
|
-
export declare const CmsEntryOpenSearchValueSearchRegistry: typeof CmsEntryOpenSearchValueSearchRegistryImpl & {
|
|
10
|
-
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/CmsEntryOpenSearchValueSearchRegistry.js").ICmsEntryOpenSearchValueSearchRegistry>;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CmsEntryOpenSearchValueSearchRegistry as Abstraction } from "./abstractions/CmsEntryOpenSearchValueSearchRegistry.js";
|
|
2
|
-
import { CmsEntryOpenSearchValueSearch } from "./abstractions/CmsEntryOpenSearchValueSearch.js";
|
|
3
|
-
import { getBaseFieldType } from "@webiny/api-headless-cms/utils/getBaseFieldType.js";
|
|
4
|
-
class CmsEntryOpenSearchValueSearchRegistryImpl {
|
|
5
|
-
constructor(searches) {
|
|
6
|
-
this.searches = searches;
|
|
7
|
-
}
|
|
8
|
-
get(type) {
|
|
9
|
-
const fieldType = getBaseFieldType({
|
|
10
|
-
type
|
|
11
|
-
});
|
|
12
|
-
return this.searches.find(s => {
|
|
13
|
-
return s.fieldType === fieldType;
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
getAll() {
|
|
17
|
-
return this.searches;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export const CmsEntryOpenSearchValueSearchRegistry = Abstraction.createImplementation({
|
|
21
|
-
implementation: CmsEntryOpenSearchValueSearchRegistryImpl,
|
|
22
|
-
dependencies: [[CmsEntryOpenSearchValueSearch, {
|
|
23
|
-
multiple: true
|
|
24
|
-
}]]
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=CmsEntryOpenSearchValueSearchRegistry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmsEntryOpenSearchValueSearchRegistry","Abstraction","CmsEntryOpenSearchValueSearch","getBaseFieldType","CmsEntryOpenSearchValueSearchRegistryImpl","constructor","searches","get","type","fieldType","find","s","getAll","createImplementation","implementation","dependencies","multiple"],"sources":["CmsEntryOpenSearchValueSearchRegistry.ts"],"sourcesContent":["import { CmsEntryOpenSearchValueSearchRegistry as Abstraction } from \"./abstractions/CmsEntryOpenSearchValueSearchRegistry.js\";\nimport { CmsEntryOpenSearchValueSearch } from \"./abstractions/CmsEntryOpenSearchValueSearch.js\";\nimport { getBaseFieldType } from \"@webiny/api-headless-cms/utils/getBaseFieldType.js\";\n\nclass CmsEntryOpenSearchValueSearchRegistryImpl implements Abstraction.Interface {\n public constructor(private readonly searches: CmsEntryOpenSearchValueSearch.Interface[]) {}\n\n public get(type: string): Abstraction.SearchValue | undefined {\n const fieldType = getBaseFieldType({ type });\n return this.searches.find(s => {\n return s.fieldType === fieldType;\n });\n }\n\n public getAll(): Abstraction.SearchValue[] {\n return this.searches;\n }\n}\n\nexport const CmsEntryOpenSearchValueSearchRegistry = Abstraction.createImplementation({\n implementation: CmsEntryOpenSearchValueSearchRegistryImpl,\n dependencies: [[CmsEntryOpenSearchValueSearch, { multiple: true }]]\n});\n"],"mappings":"AAAA,SAASA,qCAAqC,IAAIC,WAAW;AAC7D,SAASC,6BAA6B;AACtC,SAASC,gBAAgB,QAAQ,oDAAoD;AAErF,MAAMC,yCAAyC,CAAkC;EACtEC,WAAWA,CAAkBC,QAAmD,EAAE;IAAA,KAArDA,QAAmD,GAAnDA,QAAmD;EAAG;EAEnFC,GAAGA,CAACC,IAAY,EAAuC;IAC1D,MAAMC,SAAS,GAAGN,gBAAgB,CAAC;MAAEK;IAAK,CAAC,CAAC;IAC5C,OAAO,IAAI,CAACF,QAAQ,CAACI,IAAI,CAACC,CAAC,IAAI;MAC3B,OAAOA,CAAC,CAACF,SAAS,KAAKA,SAAS;IACpC,CAAC,CAAC;EACN;EAEOG,MAAMA,CAAA,EAA8B;IACvC,OAAO,IAAI,CAACN,QAAQ;EACxB;AACJ;AAEA,OAAO,MAAMN,qCAAqC,GAAGC,WAAW,CAACY,oBAAoB,CAAC;EAClFC,cAAc,EAAEV,yCAAyC;EACzDW,YAAY,EAAE,CAAC,CAACb,6BAA6B,EAAE;IAAEc,QAAQ,EAAE;EAAK,CAAC,CAAC;AACtE,CAAC,CAAC","ignoreList":[]}
|
package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { CmsModelField } from "@webiny/api-headless-cms/types/index.js";
|
|
2
|
-
export interface CreatePathParams<T = any> {
|
|
3
|
-
field: CmsModelField;
|
|
4
|
-
key: string;
|
|
5
|
-
value: T;
|
|
6
|
-
originalValue: any;
|
|
7
|
-
}
|
|
8
|
-
export interface TransformParams<T = any> {
|
|
9
|
-
field: CmsModelField;
|
|
10
|
-
value: T;
|
|
11
|
-
}
|
|
12
|
-
export interface ICmsEntryOpenSearchValueSearch {
|
|
13
|
-
readonly fieldType: string;
|
|
14
|
-
transform(params: TransformParams): any;
|
|
15
|
-
createPath(params: CreatePathParams): string | null;
|
|
16
|
-
}
|
|
17
|
-
export declare const CmsEntryOpenSearchValueSearch: import("@webiny/di").Abstraction<ICmsEntryOpenSearchValueSearch>;
|
|
18
|
-
export declare namespace CmsEntryOpenSearchValueSearch {
|
|
19
|
-
type Interface = ICmsEntryOpenSearchValueSearch;
|
|
20
|
-
type CreatePath = CreatePathParams;
|
|
21
|
-
type Transform = TransformParams;
|
|
22
|
-
}
|
package/features/CmsEntryOpenSearchValueSearch/abstractions/CmsEntryOpenSearchValueSearch.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createAbstraction","CmsEntryOpenSearchValueSearch"],"sources":["CmsEntryOpenSearchValueSearch.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModelField } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport interface CreatePathParams<T = any> {\n field: CmsModelField;\n key: string;\n value: T;\n originalValue: any;\n}\n\nexport interface TransformParams<T = any> {\n field: CmsModelField;\n value: T;\n}\n\nexport interface ICmsEntryOpenSearchValueSearch {\n readonly fieldType: string;\n transform(params: TransformParams): any;\n createPath(params: CreatePathParams): string | null;\n}\n\nexport const CmsEntryOpenSearchValueSearch = createAbstraction<ICmsEntryOpenSearchValueSearch>(\n \"Cms/Entry/OpenSearch/ValueSearch\"\n);\n\nexport namespace CmsEntryOpenSearchValueSearch {\n export type Interface = ICmsEntryOpenSearchValueSearch;\n export type CreatePath = CreatePathParams;\n export type Transform = TransformParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAqBvD,OAAO,MAAMC,6BAA6B,GAAGD,iBAAiB,CAC1D,kCACJ,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CmsEntryOpenSearchValueSearch } from "./CmsEntryOpenSearchValueSearch.js";
|
|
2
|
-
export interface ICmsEntryOpenSearchValueSearchRegistry {
|
|
3
|
-
get(fieldType: string): CmsEntryOpenSearchValueSearch.Interface | undefined;
|
|
4
|
-
getAll(): CmsEntryOpenSearchValueSearch.Interface[];
|
|
5
|
-
}
|
|
6
|
-
export declare const CmsEntryOpenSearchValueSearchRegistry: import("@webiny/di").Abstraction<ICmsEntryOpenSearchValueSearchRegistry>;
|
|
7
|
-
export declare namespace CmsEntryOpenSearchValueSearchRegistry {
|
|
8
|
-
type Interface = ICmsEntryOpenSearchValueSearchRegistry;
|
|
9
|
-
type SearchValue = CmsEntryOpenSearchValueSearch.Interface;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createAbstraction","CmsEntryOpenSearchValueSearchRegistry"],"sources":["CmsEntryOpenSearchValueSearchRegistry.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsEntryOpenSearchValueSearch } from \"./CmsEntryOpenSearchValueSearch.js\";\n\nexport interface ICmsEntryOpenSearchValueSearchRegistry {\n get(fieldType: string): CmsEntryOpenSearchValueSearch.Interface | undefined;\n getAll(): CmsEntryOpenSearchValueSearch.Interface[];\n}\n\nexport const CmsEntryOpenSearchValueSearchRegistry =\n createAbstraction<ICmsEntryOpenSearchValueSearchRegistry>(\n \"Cms/Entry/OpenSearch/ValueSearchRegistry\"\n );\n\nexport namespace CmsEntryOpenSearchValueSearchRegistry {\n export type Interface = ICmsEntryOpenSearchValueSearchRegistry;\n export type SearchValue = CmsEntryOpenSearchValueSearch.Interface;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AAQvD,OAAO,MAAMC,qCAAqC,GAC9CD,iBAAiB,CACb,0CACJ,CAAC","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createFeature } from "@webiny/feature/api";
|
|
2
|
-
import { RefSearch } from "./fields/RefSearch.js";
|
|
3
|
-
import { SearchableJsonSearch } from "./fields/SearchableJsonSearch.js";
|
|
4
|
-
import { TimeSearch } from "./fields/TimeSearch.js";
|
|
5
|
-
import { CmsEntryOpenSearchValueSearchRegistry } from "./CmsEntryOpenSearchValueSearchRegistry.js";
|
|
6
|
-
export const CmsEntryOpenSearchValueSearchFeature = createFeature({
|
|
7
|
-
name: "Cms/Entry/OpenSearch/ValueSearchFeature",
|
|
8
|
-
register: container => {
|
|
9
|
-
container.register(RefSearch);
|
|
10
|
-
container.register(SearchableJsonSearch);
|
|
11
|
-
container.register(TimeSearch);
|
|
12
|
-
container.register(CmsEntryOpenSearchValueSearchRegistry);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=feature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createFeature","RefSearch","SearchableJsonSearch","TimeSearch","CmsEntryOpenSearchValueSearchRegistry","CmsEntryOpenSearchValueSearchFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { RefSearch } from \"./fields/RefSearch.js\";\nimport { SearchableJsonSearch } from \"./fields/SearchableJsonSearch.js\";\nimport { TimeSearch } from \"./fields/TimeSearch.js\";\nimport { CmsEntryOpenSearchValueSearchRegistry } from \"./CmsEntryOpenSearchValueSearchRegistry.js\";\n\nexport const CmsEntryOpenSearchValueSearchFeature = createFeature({\n name: \"Cms/Entry/OpenSearch/ValueSearchFeature\",\n register: container => {\n container.register(RefSearch);\n container.register(SearchableJsonSearch);\n container.register(TimeSearch);\n container.register(CmsEntryOpenSearchValueSearchRegistry);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,SAAS;AAClB,SAASC,oBAAoB;AAC7B,SAASC,UAAU;AACnB,SAASC,qCAAqC;AAE9C,OAAO,MAAMC,oCAAoC,GAAGL,aAAa,CAAC;EAC9DM,IAAI,EAAE,yCAAyC;EAC/CC,QAAQ,EAAEC,SAAS,IAAI;IACnBA,SAAS,CAACD,QAAQ,CAACN,SAAS,CAAC;IAC7BO,SAAS,CAACD,QAAQ,CAACL,oBAAoB,CAAC;IACxCM,SAAS,CAACD,QAAQ,CAACJ,UAAU,CAAC;IAC9BK,SAAS,CAACD,QAAQ,CAACH,qCAAqC,CAAC;EAC7D;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CmsEntryOpenSearchValueSearch } from "../abstractions/CmsEntryOpenSearchValueSearch.js";
|
|
2
|
-
declare class RefSearchImpl implements CmsEntryOpenSearchValueSearch.Interface {
|
|
3
|
-
readonly fieldType = "ref";
|
|
4
|
-
transform(params: CmsEntryOpenSearchValueSearch.Transform): any;
|
|
5
|
-
createPath(params: CmsEntryOpenSearchValueSearch.CreatePath): string | null;
|
|
6
|
-
}
|
|
7
|
-
export declare const RefSearch: typeof RefSearchImpl & {
|
|
8
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/CmsEntryOpenSearchValueSearch.js").ICmsEntryOpenSearchValueSearch>;
|
|
9
|
-
};
|
|
10
|
-
export {};
|