@webiny/api-headless-cms 6.6.0-alpha.1 → 6.6.0-alpha.10
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/HeadlessCmsFeature.js +13 -37
- package/HeadlessCmsFeature.js.map +1 -1
- package/createCmsRoute.d.ts +3 -5
- package/createCmsRoute.js +26 -14
- package/createCmsRoute.js.map +1 -1
- package/crud/contentEntry/entryDataValidation.js +17 -11
- package/crud/contentEntry/entryDataValidation.js.map +1 -1
- package/crud/contentModel/validate/endingAllowed.js +1 -1
- package/crud/contentModel/validate/endingAllowed.js.map +1 -1
- package/crud/contentModel/validate/pluralApiName.js +1 -1
- package/crud/contentModel/validate/pluralApiName.js.map +1 -1
- package/crud/contentModel/validate/singularApiName.js +1 -1
- package/crud/contentModel/validate/singularApiName.js.map +1 -1
- package/crud/contentModel/validation.js +2 -2
- package/crud/contentModel/validation.js.map +1 -1
- package/domain/contentModel/schemas.d.ts +2 -0
- package/domain/contentModel/schemas.js +1 -0
- package/domain/contentModel/schemas.js.map +1 -1
- package/domain/contentModel/validation/dateExpressions.d.ts +6 -0
- package/domain/contentModel/validation/dateExpressions.js +27 -0
- package/domain/contentModel/validation/dateExpressions.js.map +1 -0
- package/domain/contentModel/validation/endingAllowed.js +1 -1
- package/domain/contentModel/validation/endingAllowed.js.map +1 -1
- package/domain/contentModel/validation/modelFields.js +4 -2
- package/domain/contentModel/validation/modelFields.js.map +1 -1
- package/domain/contentModel/validation/pluralApiName.js +1 -1
- package/domain/contentModel/validation/pluralApiName.js.map +1 -1
- package/domain/contentModel/validation/singularApiName.js +1 -1
- package/domain/contentModel/validation/singularApiName.js.map +1 -1
- package/export/crud/exporting.js +2 -2
- package/export/crud/exporting.js.map +1 -1
- package/export/crud/imports/importGroups.js +1 -2
- package/export/crud/imports/importGroups.js.map +1 -1
- package/export/crud/imports/validateModels.js +1 -1
- package/export/crud/imports/validateModels.js.map +1 -1
- package/exports/api/cms/entry.d.ts +5 -0
- package/exports/api/cms/entry.js +5 -0
- package/features/ai/DescribeContentModelTool.d.ts +11 -6
- package/features/ai/DescribeContentModelTool.js +21 -12
- package/features/ai/DescribeContentModelTool.js.map +1 -1
- package/features/ai/ListContentModelsTool.d.ts +11 -6
- package/features/ai/ListContentModelsTool.js +21 -12
- package/features/ai/ListContentModelsTool.js.map +1 -1
- package/features/ai/QueryEntriesTool.d.ts +14 -9
- package/features/ai/QueryEntriesTool.js +20 -11
- package/features/ai/QueryEntriesTool.js.map +1 -1
- package/features/ai/feature.d.ts +2 -2
- package/features/ai/feature.js.map +1 -1
- package/features/contentEntry/ContentEntriesFeature.js +8 -0
- package/features/contentEntry/ContentEntriesFeature.js.map +1 -1
- package/features/contentEntry/CreateEntry/CreateEntryRepository.d.ts +4 -2
- package/features/contentEntry/CreateEntry/CreateEntryRepository.js +8 -3
- package/features/contentEntry/CreateEntry/CreateEntryRepository.js.map +1 -1
- package/features/contentEntry/CreateEntry/CreateEntryUseCase.d.ts +2 -2
- package/features/contentEntry/CreateEntry/CreateEntryUseCase.js +3 -4
- package/features/contentEntry/CreateEntry/CreateEntryUseCase.js.map +1 -1
- package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.d.ts +4 -2
- package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.js +8 -3
- package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromRepository.js.map +1 -1
- package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.d.ts +2 -4
- package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.js +6 -14
- package/features/contentEntry/CreateEntryRevisionFrom/CreateEntryRevisionFromUseCase.js.map +1 -1
- package/features/contentEntry/CreateEntryRevisionFrom/abstractions.d.ts +2 -0
- package/features/contentEntry/CreateEntryRevisionFrom/abstractions.js.map +1 -1
- package/features/contentEntry/DeleteEntry/DeleteEntryRepository.d.ts +4 -2
- package/features/contentEntry/DeleteEntry/DeleteEntryRepository.js +8 -3
- package/features/contentEntry/DeleteEntry/DeleteEntryRepository.js.map +1 -1
- package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.d.ts +2 -2
- package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.js +2 -2
- package/features/contentEntry/DeleteEntry/DeleteEntryUseCase.js.map +1 -1
- package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.d.ts +3 -1
- package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.js +7 -3
- package/features/contentEntry/DeleteEntry/MoveEntryToBinRepository.js.map +1 -1
- package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.d.ts +2 -2
- package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.js +2 -2
- package/features/contentEntry/DeleteEntry/MoveEntryToBinUseCase.js.map +1 -1
- package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.d.ts +3 -1
- package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.js +9 -3
- package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionRepository.js.map +1 -1
- package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.d.ts +2 -2
- package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.js +2 -2
- package/features/contentEntry/DeleteEntryRevision/DeleteEntryRevisionUseCase.js.map +1 -1
- package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.d.ts +4 -2
- package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.js +7 -3
- package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesRepository.js.map +1 -1
- package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.d.ts +2 -2
- package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.js +11 -10
- package/features/contentEntry/DeleteMultipleEntries/DeleteMultipleEntriesUseCase.js.map +1 -1
- package/features/contentEntry/DuplicateEntry/DuplicateEntryUseCase.d.ts +17 -0
- package/features/contentEntry/DuplicateEntry/DuplicateEntryUseCase.js +83 -0
- package/features/contentEntry/DuplicateEntry/DuplicateEntryUseCase.js.map +1 -0
- package/features/contentEntry/DuplicateEntry/abstractions.d.ts +47 -0
- package/features/contentEntry/DuplicateEntry/abstractions.js +5 -0
- package/features/contentEntry/DuplicateEntry/abstractions.js.map +1 -0
- package/features/contentEntry/DuplicateEntry/events.d.ts +41 -0
- package/features/contentEntry/DuplicateEntry/events.js +32 -0
- package/features/contentEntry/DuplicateEntry/events.js.map +1 -0
- package/features/contentEntry/DuplicateEntry/feature.d.ts +4 -0
- package/features/contentEntry/DuplicateEntry/feature.js +11 -0
- package/features/contentEntry/DuplicateEntry/feature.js.map +1 -0
- package/features/contentEntry/DuplicateEntry/index.d.ts +2 -0
- package/features/contentEntry/DuplicateEntry/index.js +2 -0
- package/features/contentEntry/DuplicateEntry/prepareDuplicateValues.d.ts +7 -0
- package/features/contentEntry/DuplicateEntry/prepareDuplicateValues.js +12 -0
- package/features/contentEntry/DuplicateEntry/prepareDuplicateValues.js.map +1 -0
- package/features/contentEntry/EntryEventPublisher/EntryEventPublisher.d.ts +10 -0
- package/features/contentEntry/EntryEventPublisher/EntryEventPublisher.js +25 -0
- package/features/contentEntry/EntryEventPublisher/EntryEventPublisher.js.map +1 -0
- package/features/contentEntry/EntryEventPublisher/abstractions.d.ts +16 -0
- package/features/contentEntry/EntryEventPublisher/abstractions.js +5 -0
- package/features/contentEntry/EntryEventPublisher/abstractions.js.map +1 -0
- package/features/contentEntry/EntryEventPublisher/feature.d.ts +4 -0
- package/features/contentEntry/EntryEventPublisher/feature.js +11 -0
- package/features/contentEntry/EntryEventPublisher/feature.js.map +1 -0
- package/features/contentEntry/EntryEventPublisher/index.d.ts +2 -0
- package/features/contentEntry/EntryEventPublisher/index.js +2 -0
- package/features/contentEntry/EntrySystemField/abstractions.d.ts +14 -0
- package/features/contentEntry/EntrySystemField/abstractions.js +5 -0
- package/features/contentEntry/EntrySystemField/abstractions.js.map +1 -0
- package/features/contentEntry/EntrySystemField/index.d.ts +1 -0
- package/features/contentEntry/EntrySystemField/index.js +1 -0
- package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.d.ts +4 -4
- package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.js +8 -11
- package/features/contentEntry/GetEntriesByIds/GetEntriesByIdsRepository.js.map +1 -1
- package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.d.ts +4 -2
- package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.js +7 -3
- package/features/contentEntry/GetLatestEntriesByIds/GetLatestEntriesByIdsRepository.js.map +1 -1
- package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.d.ts +4 -2
- package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.js +7 -3
- package/features/contentEntry/GetLatestRevisionByEntryId/GetLatestRevisionByEntryIdRepository.js.map +1 -1
- package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.d.ts +4 -2
- package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.js +7 -3
- package/features/contentEntry/GetPreviousRevisionByEntryId/GetPreviousRevisionByEntryIdRepository.js.map +1 -1
- package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.d.ts +4 -2
- package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.js +7 -3
- package/features/contentEntry/GetPublishedEntriesByIds/GetPublishedEntriesByIdsRepository.js.map +1 -1
- package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.d.ts +4 -2
- package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.js +7 -3
- package/features/contentEntry/GetPublishedRevisionByEntryId/GetPublishedRevisionByEntryIdRepository.js.map +1 -1
- package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.d.ts +4 -2
- package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.js +7 -3
- package/features/contentEntry/GetRevisionById/GetRevisionByIdRepository.js.map +1 -1
- package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.d.ts +4 -2
- package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.js +7 -3
- package/features/contentEntry/GetRevisionsByEntryId/GetRevisionsByEntryIdRepository.js.map +1 -1
- package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.d.ts +4 -2
- package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.js +7 -3
- package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesRepository.js.map +1 -1
- package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.js +3 -0
- package/features/contentEntry/GetUniqueFieldValues/GetUniqueFieldValuesUseCase.js.map +1 -1
- package/features/contentEntry/ListEntries/ListEntriesRepository.d.ts +4 -2
- package/features/contentEntry/ListEntries/ListEntriesRepository.js +7 -3
- package/features/contentEntry/ListEntries/ListEntriesRepository.js.map +1 -1
- package/features/contentEntry/MoveEntry/MoveEntryRepository.d.ts +4 -2
- package/features/contentEntry/MoveEntry/MoveEntryRepository.js +7 -3
- package/features/contentEntry/MoveEntry/MoveEntryRepository.js.map +1 -1
- package/features/contentEntry/MoveEntry/MoveEntryUseCase.d.ts +2 -2
- package/features/contentEntry/MoveEntry/MoveEntryUseCase.js +11 -4
- package/features/contentEntry/MoveEntry/MoveEntryUseCase.js.map +1 -1
- package/features/contentEntry/PublishEntry/PublishEntryRepository.d.ts +4 -2
- package/features/contentEntry/PublishEntry/PublishEntryRepository.js +8 -3
- package/features/contentEntry/PublishEntry/PublishEntryRepository.js.map +1 -1
- package/features/contentEntry/PublishEntry/PublishEntryUseCase.d.ts +4 -6
- package/features/contentEntry/PublishEntry/PublishEntryUseCase.js +11 -13
- package/features/contentEntry/PublishEntry/PublishEntryUseCase.js.map +1 -1
- package/features/contentEntry/PublishEntry/abstractions.d.ts +8 -1
- package/features/contentEntry/PublishEntry/abstractions.js.map +1 -1
- package/features/contentEntry/RepublishEntry/RepublishEntryRepository.d.ts +4 -2
- package/features/contentEntry/RepublishEntry/RepublishEntryRepository.js +8 -3
- package/features/contentEntry/RepublishEntry/RepublishEntryRepository.js.map +1 -1
- package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.d.ts +2 -2
- package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.js +5 -3
- package/features/contentEntry/RepublishEntry/RepublishEntryUseCase.js.map +1 -1
- package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.d.ts +4 -2
- package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.js +8 -3
- package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinRepository.js.map +1 -1
- package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.d.ts +2 -2
- package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.js +2 -2
- package/features/contentEntry/RestoreEntryFromBin/RestoreEntryFromBinUseCase.js.map +1 -1
- package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.d.ts +4 -2
- package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.js +8 -3
- package/features/contentEntry/UnpublishEntry/UnpublishEntryRepository.js.map +1 -1
- package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.d.ts +2 -2
- package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.js +5 -3
- package/features/contentEntry/UnpublishEntry/UnpublishEntryUseCase.js.map +1 -1
- package/features/contentEntry/UpdateEntry/UpdateEntryRepository.d.ts +4 -2
- package/features/contentEntry/UpdateEntry/UpdateEntryRepository.js +8 -3
- package/features/contentEntry/UpdateEntry/UpdateEntryRepository.js.map +1 -1
- package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.d.ts +2 -2
- package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.js +5 -3
- package/features/contentEntry/UpdateEntry/UpdateEntryUseCase.js.map +1 -1
- package/features/contentEntry/UpdateEntrySystem/UpdateEntrySystemUseCase.d.ts +19 -0
- package/features/contentEntry/UpdateEntrySystem/UpdateEntrySystemUseCase.js +70 -0
- package/features/contentEntry/UpdateEntrySystem/UpdateEntrySystemUseCase.js.map +1 -0
- package/features/contentEntry/UpdateEntrySystem/abstractions.d.ts +24 -0
- package/features/contentEntry/UpdateEntrySystem/abstractions.js +5 -0
- package/features/contentEntry/UpdateEntrySystem/abstractions.js.map +1 -0
- package/features/contentEntry/UpdateEntrySystem/events.d.ts +29 -0
- package/features/contentEntry/UpdateEntrySystem/events.js +23 -0
- package/features/contentEntry/UpdateEntrySystem/events.js.map +1 -0
- package/features/contentEntry/UpdateEntrySystem/feature.d.ts +4 -0
- package/features/contentEntry/UpdateEntrySystem/feature.js +11 -0
- package/features/contentEntry/UpdateEntrySystem/feature.js.map +1 -0
- package/features/contentEntry/UpdateEntrySystem/index.d.ts +2 -0
- package/features/contentEntry/UpdateEntrySystem/index.js +2 -0
- package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.d.ts +2 -2
- package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.js +2 -2
- package/features/contentEntry/UpdateRevisionDescription/UpdateRevisionDescriptionUseCase.js.map +1 -1
- package/features/contentEntry/ensureItemIds.d.ts +13 -0
- package/features/contentEntry/ensureItemIds.js +22 -0
- package/features/contentEntry/ensureItemIds.js.map +1 -0
- package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.d.ts +3 -1
- package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.js +8 -2
- package/features/contentEntry/entryDataFactories/CreateEntryDataFactory/CreateEntryDataFactory.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.d.ts +7 -3
- package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.js +46 -13
- package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/CreateEntryRevisionFromDataFactory.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/abstractions.d.ts +17 -1
- package/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/abstractions.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.d.ts +5 -3
- package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.js +22 -15
- package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/CreatePublishEntryDataFactory.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/abstractions.d.ts +15 -1
- package/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/abstractions.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.d.ts +5 -3
- package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.js +17 -12
- package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/CreateRepublishEntryDataFactory.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/abstractions.d.ts +13 -1
- package/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/abstractions.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.d.ts +6 -6
- package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.js +17 -17
- package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/CreateUnpublishEntryDataFactory.js.map +1 -1
- package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/abstractions.d.ts +14 -2
- package/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/abstractions.js.map +1 -1
- package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.d.ts +7 -3
- package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.js +72 -28
- package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/UpdateEntryDataFactory.js.map +1 -1
- package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/abstractions.d.ts +15 -1
- package/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/abstractions.js.map +1 -1
- package/features/contentEntry/entryDataFactories/expiresAt.js +2 -2
- package/features/contentEntry/entryDataFactories/expiresAt.js.map +1 -1
- package/features/contentEntry/entryDataFactories/hasEntryContentChanged.d.ts +24 -0
- package/features/contentEntry/entryDataFactories/hasEntryContentChanged.js +13 -0
- package/features/contentEntry/entryDataFactories/hasEntryContentChanged.js.map +1 -0
- package/features/contentModel/CreateModel/CreateModelRepository.js +1 -2
- package/features/contentModel/CreateModel/CreateModelRepository.js.map +1 -1
- package/features/contentModel/CreateModelFrom/CreateModelFromRepository.js +1 -2
- package/features/contentModel/CreateModelFrom/CreateModelFromRepository.js.map +1 -1
- package/features/contentModel/DeleteModel/DeleteModelRepository.d.ts +4 -2
- package/features/contentModel/DeleteModel/DeleteModelRepository.js +7 -3
- package/features/contentModel/DeleteModel/DeleteModelRepository.js.map +1 -1
- package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.d.ts +9 -4
- package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.js +36 -21
- package/features/contentModel/DeleteModel/DeleteModelWithEntryCleanup.js.map +1 -1
- package/features/contentModel/ModelToAstConverter/ModelToAstConverter.d.ts +1 -1
- package/features/contentModel/ModelToAstConverter/ModelToAstConverter.js.map +1 -1
- package/features/contentModel/ModelToAstConverter/abstractions.d.ts +1 -1
- package/features/contentModel/ModelToAstConverter/abstractions.js.map +1 -1
- package/features/contentModel/UpdateModel/UpdateModelRepository.d.ts +4 -2
- package/features/contentModel/UpdateModel/UpdateModelRepository.js +8 -4
- package/features/contentModel/UpdateModel/UpdateModelRepository.js.map +1 -1
- package/features/contentModel/UpdateModel/UpdateModelUseCase.js +2 -2
- package/features/contentModel/UpdateModel/UpdateModelUseCase.js.map +1 -1
- package/features/contentModel/UpdateModel/abstractions.d.ts +1 -1
- package/features/contentModel/UpdateModel/abstractions.js.map +1 -1
- package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.js +4 -3
- package/features/contentModel/ValuesSelectionGenerator/ValuesSelectionGenerator.js.map +1 -1
- package/features/contentModel/shared/ModelsFetcher.d.ts +6 -5
- package/features/contentModel/shared/ModelsFetcher.js.map +1 -1
- package/features/contentModel/shared/PluginModelsProvider.d.ts +6 -3
- package/features/contentModel/shared/PluginModelsProvider.js +2 -9
- package/features/contentModel/shared/PluginModelsProvider.js.map +1 -1
- package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.d.ts +4 -2
- package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.js +7 -3
- package/features/contentModelGroup/DeleteGroup/DeleteGroupRepository.js.map +1 -1
- package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.d.ts +4 -2
- package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.js +8 -4
- package/features/contentModelGroup/UpdateGroup/UpdateGroupRepository.js.map +1 -1
- package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.js +2 -2
- package/features/contentModelGroup/UpdateGroup/UpdateGroupUseCase.js.map +1 -1
- package/features/contentModelGroup/UpdateGroup/abstractions.d.ts +1 -1
- package/features/contentModelGroup/UpdateGroup/abstractions.js.map +1 -1
- package/features/graphql/fields/base/AssetToGraphQL.js +7 -2
- package/features/graphql/fields/base/AssetToGraphQL.js.map +1 -1
- package/features/graphql/fields/base/DynamicZoneToGraphQL.js +7 -1
- package/features/graphql/fields/base/DynamicZoneToGraphQL.js.map +1 -1
- package/features/graphql/fields/base/ObjectToGraphQL.js +6 -3
- package/features/graphql/fields/base/ObjectToGraphQL.js.map +1 -1
- package/features/graphql/fields/base/RefToGraphQL.js +24 -10
- package/features/graphql/fields/base/RefToGraphQL.js.map +1 -1
- package/features/modelBuilder/abstractions.d.ts +5 -2
- package/features/modelBuilder/abstractions.js.map +1 -1
- package/features/modelBuilder/feature.js +1 -8
- package/features/modelBuilder/feature.js.map +1 -1
- package/features/modelBuilder/fields/DataFieldBuilder.d.ts +17 -0
- package/features/modelBuilder/fields/DataFieldBuilder.js +6 -0
- package/features/modelBuilder/fields/DataFieldBuilder.js.map +1 -1
- package/features/modelBuilder/fields/DateTimeFieldType.js +27 -12
- package/features/modelBuilder/fields/DateTimeFieldType.js.map +1 -1
- package/features/modelBuilder/fields/fieldTypeValidator.d.ts +5 -3
- package/features/modelBuilder/models/ModelBuilder.d.ts +8 -0
- package/features/modelBuilder/models/ModelBuilder.js +1 -0
- package/features/modelBuilder/models/ModelBuilder.js.map +1 -1
- package/features/modelBuilder/models/ModelsProvider.d.ts +1 -3
- package/features/modelBuilder/models/ModelsProvider.js +2 -7
- package/features/modelBuilder/models/ModelsProvider.js.map +1 -1
- package/features/modelBuilder/models/PrivateModelBuilder.d.ts +5 -0
- package/features/modelBuilder/models/PrivateModelBuilder.js +12 -1
- package/features/modelBuilder/models/PrivateModelBuilder.js.map +1 -1
- package/features/modelStorageSync/ModelStorageSyncTask.d.ts +31 -0
- package/features/modelStorageSync/ModelStorageSyncTask.js +66 -0
- package/features/modelStorageSync/ModelStorageSyncTask.js.map +1 -0
- package/features/modelStorageSync/SyncStorageOnModelUpdate.d.ts +23 -0
- package/features/modelStorageSync/SyncStorageOnModelUpdate.js +51 -0
- package/features/modelStorageSync/SyncStorageOnModelUpdate.js.map +1 -0
- package/features/modelStorageSync/abstractions.d.ts +34 -0
- package/features/modelStorageSync/abstractions.js +6 -0
- package/features/modelStorageSync/abstractions.js.map +1 -0
- package/features/modelStorageSync/feature.d.ts +8 -0
- package/features/modelStorageSync/feature.js +13 -0
- package/features/modelStorageSync/feature.js.map +1 -0
- package/features/modelStorageSync/index.d.ts +2 -0
- package/features/modelStorageSync/index.js +2 -0
- package/features/runtimeTenant/RuntimeTenant.d.ts +13 -0
- package/features/runtimeTenant/RuntimeTenant.js +22 -0
- package/features/runtimeTenant/RuntimeTenant.js.map +1 -0
- package/features/runtimeTenant/abstractions.d.ts +11 -0
- package/features/runtimeTenant/abstractions.js +5 -0
- package/features/runtimeTenant/abstractions.js.map +1 -0
- package/features/runtimeTenant/index.d.ts +2 -0
- package/features/runtimeTenant/index.js +2 -0
- package/features/shared/abstractions.d.ts +1 -5
- package/features/shared/abstractions.js +1 -2
- package/features/shared/abstractions.js.map +1 -1
- package/features/storage/fields/CompressedTextStorageTransform.js +1 -1
- package/features/storage/fields/CompressedTextStorageTransform.js.map +1 -1
- package/features/storage/fields/DateStorageTransform.js +3 -4
- package/features/storage/fields/DateStorageTransform.js.map +1 -1
- package/features/storage/fields/DynamicZoneStorageTransform.js +2 -2
- package/features/storage/fields/DynamicZoneStorageTransform.js.map +1 -1
- package/features/storage/fields/JsonStorageTransform.js +1 -1
- package/features/storage/fields/JsonStorageTransform.js.map +1 -1
- package/features/storage/fields/LongTextStorageTransform.js +1 -1
- package/features/storage/fields/LongTextStorageTransform.js.map +1 -1
- package/features/storage/fields/ObjectStorageTransform.js +27 -7
- package/features/storage/fields/ObjectStorageTransform.js.map +1 -1
- package/features/storage/fields/RichTextStorageTransform.js +1 -1
- package/features/storage/fields/RichTextStorageTransform.js.map +1 -1
- package/features/validation/abstractions/CmsModelFieldValidator.d.ts +5 -0
- package/features/validation/abstractions/CmsModelFieldValidator.js.map +1 -1
- package/features/validation/validators/DateGteValidator.d.ts +2 -0
- package/features/validation/validators/DateGteValidator.js +12 -2
- package/features/validation/validators/DateGteValidator.js.map +1 -1
- package/features/validation/validators/DateLteValidator.d.ts +2 -0
- package/features/validation/validators/DateLteValidator.js +12 -2
- package/features/validation/validators/DateLteValidator.js.map +1 -1
- package/features/validation/validators/PatternValidator.js +1 -1
- package/features/validation/validators/PatternValidator.js.map +1 -1
- package/features/validation/validators/dateLimit.d.ts +9 -0
- package/features/validation/validators/dateLimit.js +18 -0
- package/features/validation/validators/dateLimit.js.map +1 -0
- package/features/whereMapper/WhereMapper.js +3 -5
- package/features/whereMapper/WhereMapper.js.map +1 -1
- package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js +15 -5
- package/fieldConverters/CmsModelDynamicZoneFieldConverterPlugin.js.map +1 -1
- package/fieldConverters/CmsModelObjectFieldConverterPlugin.js +8 -2
- package/fieldConverters/CmsModelObjectFieldConverterPlugin.js.map +1 -1
- package/graphql/checkEndpointAccess.d.ts +7 -2
- package/graphql/checkEndpointAccess.js +2 -4
- package/graphql/checkEndpointAccess.js.map +1 -1
- package/graphql/getSchema/generateCacheKey.js +1 -1
- package/graphql/getSchema/generateCacheKey.js.map +1 -1
- package/graphql/scalars/RevisionId.js +1 -1
- package/graphql/scalars/RevisionId.js.map +1 -1
- package/graphql/schema/cms/CmsBaseErrorTypeFactory.d.ts +1 -0
- package/graphql/schema/cms/CmsBaseErrorTypeFactory.js +4 -0
- package/graphql/schema/cms/CmsBaseErrorTypeFactory.js.map +1 -1
- package/graphql/schema/cms/resolvers/createEntry.d.ts +1 -0
- package/graphql/schema/cms/resolvers/createEntry.js +4 -0
- package/graphql/schema/cms/resolvers/createEntry.js.map +1 -1
- package/graphql/schema/cms/resolvers/deleteEntryRevision.d.ts +1 -0
- package/graphql/schema/cms/resolvers/deleteEntryRevision.js +4 -0
- package/graphql/schema/cms/resolvers/deleteEntryRevision.js.map +1 -1
- package/graphql/schema/cms/resolvers/getEntry.d.ts +1 -0
- package/graphql/schema/cms/resolvers/getEntry.js +4 -0
- package/graphql/schema/cms/resolvers/getEntry.js.map +1 -1
- package/graphql/schema/cms/resolvers/getModel.d.ts +1 -0
- package/graphql/schema/cms/resolvers/getModel.js +4 -0
- package/graphql/schema/cms/resolvers/getModel.js.map +1 -1
- package/graphql/schema/cms/resolvers/listEntries.d.ts +1 -0
- package/graphql/schema/cms/resolvers/listEntries.js +4 -0
- package/graphql/schema/cms/resolvers/listEntries.js.map +1 -1
- package/graphql/schema/cms/resolvers/mutationCms.d.ts +1 -0
- package/graphql/schema/cms/resolvers/mutationCms.js +4 -0
- package/graphql/schema/cms/resolvers/mutationCms.js.map +1 -1
- package/graphql/schema/cms/resolvers/publishEntryRevision.d.ts +1 -0
- package/graphql/schema/cms/resolvers/publishEntryRevision.js +4 -0
- package/graphql/schema/cms/resolvers/publishEntryRevision.js.map +1 -1
- package/graphql/schema/cms/resolvers/queryCms.d.ts +1 -0
- package/graphql/schema/cms/resolvers/queryCms.js +4 -0
- package/graphql/schema/cms/resolvers/queryCms.js.map +1 -1
- package/graphql/schema/cms/resolvers/unpublishEntryRevision.d.ts +1 -0
- package/graphql/schema/cms/resolvers/unpublishEntryRevision.js +4 -0
- package/graphql/schema/cms/resolvers/unpublishEntryRevision.js.map +1 -1
- package/graphql/schema/cms/resolvers/updateEntryRevision.d.ts +1 -0
- package/graphql/schema/cms/resolvers/updateEntryRevision.js +4 -0
- package/graphql/schema/cms/resolvers/updateEntryRevision.js.map +1 -1
- package/graphql/schema/cms/typeDefs/mutation.d.ts +1 -0
- package/graphql/schema/cms/typeDefs/mutation.js +4 -0
- package/graphql/schema/cms/typeDefs/mutation.js.map +1 -1
- package/graphql/schema/cms/typeDefs/query.d.ts +1 -0
- package/graphql/schema/cms/typeDefs/query.js +4 -0
- package/graphql/schema/cms/typeDefs/query.js.map +1 -1
- package/graphql/schema/cms/typeDefs/responses.d.ts +1 -0
- package/graphql/schema/cms/typeDefs/responses.js +4 -0
- package/graphql/schema/cms/typeDefs/responses.js.map +1 -1
- package/graphql/schema/contentEntries.js +19 -4
- package/graphql/schema/contentEntries.js.map +1 -1
- package/graphql/schema/contentModels.js +2 -0
- package/graphql/schema/contentModels.js.map +1 -1
- package/graphql/schema/createFieldResolvers.js +1 -1
- package/graphql/schema/createFieldResolvers.js.map +1 -1
- package/graphql/schema/createManageResolvers.js +3 -1
- package/graphql/schema/createManageResolvers.js.map +1 -1
- package/graphql/schema/createManageSDL.js +2 -0
- package/graphql/schema/createManageSDL.js.map +1 -1
- package/graphql/schema/resolvers/manage/resolveDuplicate.d.ts +7 -0
- package/graphql/schema/resolvers/manage/resolveDuplicate.js +11 -0
- package/graphql/schema/resolvers/manage/resolveDuplicate.js.map +1 -0
- package/package.json +24 -24
- package/plugins/CmsModelPlugin.js +9 -10
- package/plugins/CmsModelPlugin.js.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/modelField.d.ts +11 -0
- package/types/types.d.ts +14 -109
- package/types/types.js.map +1 -1
- package/utils/caching/Cache.js +1 -1
- package/utils/caching/Cache.js.map +1 -1
- package/utils/createModelField.js +2 -1
- package/utils/createModelField.js.map +1 -1
- package/utils/createModelSchemaKey.d.ts +8 -0
- package/utils/createModelSchemaKey.js +18 -0
- package/utils/createModelSchemaKey.js.map +1 -0
- package/utils/date.js +1 -1
- package/utils/date.js.map +1 -1
- package/utils/entryStorage.js +1 -1
- package/utils/entryStorage.js.map +1 -1
- package/utils/renderFields.js +1 -1
- package/utils/renderFields.js.map +1 -1
- package/HeadlessCmsContextualSchema.d.ts +0 -16
- package/HeadlessCmsContextualSchema.js +0 -32
- package/HeadlessCmsContextualSchema.js.map +0 -1
- package/crud/contentEntry.crud.d.ts +0 -6
- package/crud/contentEntry.crud.js +0 -336
- package/crud/contentEntry.crud.js.map +0 -1
- package/crud/contentModel.crud.d.ts +0 -5
- package/crud/contentModel.crud.js +0 -79
- package/crud/contentModel.crud.js.map +0 -1
- package/crud/contentModelGroup.crud.d.ts +0 -5
- package/crud/contentModelGroup.crud.js +0 -76
- package/crud/contentModelGroup.crud.js.map +0 -1
- package/types/context.d.ts +0 -110
- package/types/context.js +0 -0
|
@@ -43,6 +43,9 @@ class CmsModelObjectFieldConverterPlugin extends CmsModelFieldConverterPlugin {
|
|
|
43
43
|
processChildFieldsToStorage(params) {
|
|
44
44
|
const { fields, value, converterCollection } = params;
|
|
45
45
|
if (null == value) return;
|
|
46
|
+
const initial = value._id ? {
|
|
47
|
+
_id: value._id
|
|
48
|
+
} : {};
|
|
46
49
|
return fields.reduce((output, field)=>{
|
|
47
50
|
if (void 0 === value[field.fieldId]) return output;
|
|
48
51
|
const converter = converterCollection.getConverter(field.type);
|
|
@@ -55,7 +58,7 @@ class CmsModelObjectFieldConverterPlugin extends CmsModelFieldConverterPlugin {
|
|
|
55
58
|
...output,
|
|
56
59
|
...newValue
|
|
57
60
|
};
|
|
58
|
-
},
|
|
61
|
+
}, initial);
|
|
59
62
|
}
|
|
60
63
|
convertFromStorage(params) {
|
|
61
64
|
const { field, value, converterCollection } = params;
|
|
@@ -94,6 +97,9 @@ class CmsModelObjectFieldConverterPlugin extends CmsModelFieldConverterPlugin {
|
|
|
94
97
|
processChildFieldsFromStorage(params) {
|
|
95
98
|
const { fields, value, converterCollection } = params;
|
|
96
99
|
if (null == value) return;
|
|
100
|
+
const initial = value._id ? {
|
|
101
|
+
_id: value._id
|
|
102
|
+
} : {};
|
|
97
103
|
return fields.reduce((output, field)=>{
|
|
98
104
|
if (void 0 === value[field.storageId]) return output;
|
|
99
105
|
const converter = converterCollection.getConverter(field.type);
|
|
@@ -107,7 +113,7 @@ class CmsModelObjectFieldConverterPlugin extends CmsModelFieldConverterPlugin {
|
|
|
107
113
|
...output,
|
|
108
114
|
...newValue
|
|
109
115
|
};
|
|
110
|
-
},
|
|
116
|
+
}, initial);
|
|
111
117
|
}
|
|
112
118
|
constructor(...args){
|
|
113
119
|
super(...args), this.name = "cms.field.converter.object";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldConverters/CmsModelObjectFieldConverterPlugin.js","sources":["../../src/fieldConverters/CmsModelObjectFieldConverterPlugin.ts"],"sourcesContent":["import type { ConvertParams } from \"~/plugins/CmsModelFieldConverterPlugin.js\";\nimport { CmsModelFieldConverterPlugin } from \"~/plugins/CmsModelFieldConverterPlugin.js\";\nimport type { CmsEntryValues, CmsModelFieldWithParent } from \"~/types/index.js\";\nimport type { ConverterCollection } from \"~/utils/converters/ConverterCollection.js\";\nimport type { GenericRecord } from \"@webiny/api/types.js\";\n\ninterface ProcessChildFieldsParams {\n fields: CmsModelFieldWithParent[];\n value?: GenericRecord<string> | null;\n converterCollection: ConverterCollection;\n}\n\ninterface GetChildFieldsParams {\n field?: CmsModelFieldWithParent | null;\n}\n\nexport class CmsModelObjectFieldConverterPlugin extends CmsModelFieldConverterPlugin {\n public override name = \"cms.field.converter.object\";\n\n public override getFieldType(): string {\n return \"object\";\n }\n\n private getChildFields({ field }: GetChildFieldsParams): CmsModelFieldWithParent[] {\n return field?.settings?.fields || [];\n }\n\n public override convertToStorage(params: ConvertParams): CmsEntryValues {\n const { field, value, converterCollection } = params;\n\n const childFields = this.getChildFields({\n field\n });\n if (childFields.length === 0) {\n return {};\n }\n\n if (field.list) {\n if (Array.isArray(value) === false) {\n return {\n [field.storageId]: null\n };\n }\n return {\n [field.storageId]: value.map((itemValue: GenericRecord) => {\n return this.processChildFieldsToStorage({\n fields: childFields.map(child => {\n return {\n ...child,\n parent: field\n };\n }),\n value: itemValue,\n converterCollection\n });\n })\n };\n }\n\n const values = this.processChildFieldsToStorage({\n fields: childFields.map(child => {\n return {\n ...child,\n parent: field\n };\n }),\n value,\n converterCollection\n });\n if (values === undefined) {\n return {};\n }\n\n return {\n [field.storageId]: values\n };\n }\n\n private processChildFieldsToStorage(\n params: ProcessChildFieldsParams\n ): CmsEntryValues | undefined {\n const { fields, value, converterCollection } = params;\n\n if (value === undefined || value === null) {\n return undefined;\n }\n\n return fields.reduce<CmsEntryValues>((output, field) => {\n if (value[field.fieldId] === undefined) {\n return output;\n }\n const converter = converterCollection.getConverter(field.type);\n\n const newValue = converter.convertToStorage({\n field,\n value: value[field.fieldId],\n parent: field.parent\n });\n\n return {\n ...output,\n ...newValue\n };\n },
|
|
1
|
+
{"version":3,"file":"fieldConverters/CmsModelObjectFieldConverterPlugin.js","sources":["../../src/fieldConverters/CmsModelObjectFieldConverterPlugin.ts"],"sourcesContent":["import type { ConvertParams } from \"~/plugins/CmsModelFieldConverterPlugin.js\";\nimport { CmsModelFieldConverterPlugin } from \"~/plugins/CmsModelFieldConverterPlugin.js\";\nimport type { CmsEntryValues, CmsModelFieldWithParent } from \"~/types/index.js\";\nimport type { ConverterCollection } from \"~/utils/converters/ConverterCollection.js\";\nimport type { GenericRecord } from \"@webiny/api/types.js\";\n\ninterface ProcessChildFieldsParams {\n fields: CmsModelFieldWithParent[];\n value?: GenericRecord<string> | null;\n converterCollection: ConverterCollection;\n}\n\ninterface GetChildFieldsParams {\n field?: CmsModelFieldWithParent | null;\n}\n\nexport class CmsModelObjectFieldConverterPlugin extends CmsModelFieldConverterPlugin {\n public override name = \"cms.field.converter.object\";\n\n public override getFieldType(): string {\n return \"object\";\n }\n\n private getChildFields({ field }: GetChildFieldsParams): CmsModelFieldWithParent[] {\n return field?.settings?.fields || [];\n }\n\n public override convertToStorage(params: ConvertParams): CmsEntryValues {\n const { field, value, converterCollection } = params;\n\n const childFields = this.getChildFields({\n field\n });\n if (childFields.length === 0) {\n return {};\n }\n\n if (field.list) {\n if (Array.isArray(value) === false) {\n return {\n [field.storageId]: null\n };\n }\n return {\n [field.storageId]: value.map((itemValue: GenericRecord) => {\n return this.processChildFieldsToStorage({\n fields: childFields.map(child => {\n return {\n ...child,\n parent: field\n };\n }),\n value: itemValue,\n converterCollection\n });\n })\n };\n }\n\n const values = this.processChildFieldsToStorage({\n fields: childFields.map(child => {\n return {\n ...child,\n parent: field\n };\n }),\n value,\n converterCollection\n });\n if (values === undefined) {\n return {};\n }\n\n return {\n [field.storageId]: values\n };\n }\n\n private processChildFieldsToStorage(\n params: ProcessChildFieldsParams\n ): CmsEntryValues | undefined {\n const { fields, value, converterCollection } = params;\n\n if (value === undefined || value === null) {\n return undefined;\n }\n\n const initial: CmsEntryValues = value._id ? { _id: value._id } : {};\n\n return fields.reduce<CmsEntryValues>((output, field) => {\n if (value[field.fieldId] === undefined) {\n return output;\n }\n const converter = converterCollection.getConverter(field.type);\n\n const newValue = converter.convertToStorage({\n field,\n value: value[field.fieldId],\n parent: field.parent\n });\n\n return {\n ...output,\n ...newValue\n };\n }, initial);\n }\n\n public override convertFromStorage(params: ConvertParams): CmsEntryValues {\n const { field, value, converterCollection } = params;\n\n const childFields = this.getChildFields({\n field\n });\n if (childFields.length === 0) {\n return {};\n }\n\n if (field.list) {\n if (Array.isArray(value) === false) {\n return {\n [field.fieldId]: null\n };\n }\n return {\n [field.fieldId]: value.map((itemValue: GenericRecord) => {\n return this.processChildFieldsFromStorage({\n fields: childFields.map(child => {\n return {\n ...child,\n parent: field\n };\n }),\n value: itemValue,\n converterCollection\n });\n })\n };\n }\n\n const values = this.processChildFieldsFromStorage({\n fields: childFields.map(child => {\n return {\n ...child,\n parent: field\n };\n }),\n value,\n converterCollection\n });\n\n if (values === undefined) {\n return {};\n }\n\n return {\n [field.fieldId]: values\n };\n }\n\n private processChildFieldsFromStorage(\n params: ProcessChildFieldsParams\n ): CmsEntryValues | undefined {\n const { fields, value, converterCollection } = params;\n\n if (value === undefined || value === null) {\n return undefined;\n }\n\n const initial: CmsEntryValues = value._id ? { _id: value._id } : {};\n\n return fields.reduce<CmsEntryValues>((output, field) => {\n if (value[field.storageId] === undefined) {\n return output;\n }\n\n const converter = converterCollection.getConverter(field.type);\n\n const newValue = converter.convertFromStorage({\n field,\n value: value[field.storageId],\n parent: field.parent\n });\n if (!newValue) {\n return output;\n }\n\n return {\n ...output,\n ...newValue\n };\n }, initial);\n }\n}\n"],"names":["CmsModelObjectFieldConverterPlugin","CmsModelFieldConverterPlugin","field","params","value","converterCollection","childFields","Array","itemValue","child","values","undefined","fields","initial","output","converter","newValue"],"mappings":";AAgBO,MAAMA,2CAA2CC;IAGpC,eAAuB;QACnC,OAAO;IACX;IAEQ,eAAe,EAAEC,KAAK,EAAwB,EAA6B;QAC/E,OAAOA,OAAO,UAAU,UAAU,EAAE;IACxC;IAEgB,iBAAiBC,MAAqB,EAAkB;QACpE,MAAM,EAAED,KAAK,EAAEE,KAAK,EAAEC,mBAAmB,EAAE,GAAGF;QAE9C,MAAMG,cAAc,IAAI,CAAC,cAAc,CAAC;YACpCJ;QACJ;QACA,IAAII,AAAuB,MAAvBA,YAAY,MAAM,EAClB,OAAO,CAAC;QAGZ,IAAIJ,MAAM,IAAI,EAAE;YACZ,IAAIK,AAAyB,UAAzBA,MAAM,OAAO,CAACH,QACd,OAAO;gBACH,CAACF,MAAM,SAAS,CAAC,EAAE;YACvB;YAEJ,OAAO;gBACH,CAACA,MAAM,SAAS,CAAC,EAAEE,MAAM,GAAG,CAAC,CAACI,YACnB,IAAI,CAAC,2BAA2B,CAAC;wBACpC,QAAQF,YAAY,GAAG,CAACG,CAAAA,QACb;gCACH,GAAGA,KAAK;gCACR,QAAQP;4BACZ;wBAEJ,OAAOM;wBACPH;oBACJ;YAER;QACJ;QAEA,MAAMK,SAAS,IAAI,CAAC,2BAA2B,CAAC;YAC5C,QAAQJ,YAAY,GAAG,CAACG,CAAAA,QACb;oBACH,GAAGA,KAAK;oBACR,QAAQP;gBACZ;YAEJE;YACAC;QACJ;QACA,IAAIK,AAAWC,WAAXD,QACA,OAAO,CAAC;QAGZ,OAAO;YACH,CAACR,MAAM,SAAS,CAAC,EAAEQ;QACvB;IACJ;IAEQ,4BACJP,MAAgC,EACN;QAC1B,MAAM,EAAES,MAAM,EAAER,KAAK,EAAEC,mBAAmB,EAAE,GAAGF;QAE/C,IAAIC,QAAAA,OACA;QAGJ,MAAMS,UAA0BT,MAAM,GAAG,GAAG;YAAE,KAAKA,MAAM,GAAG;QAAC,IAAI,CAAC;QAElE,OAAOQ,OAAO,MAAM,CAAiB,CAACE,QAAQZ;YAC1C,IAAIE,AAAyBO,WAAzBP,KAAK,CAACF,MAAM,OAAO,CAAC,EACpB,OAAOY;YAEX,MAAMC,YAAYV,oBAAoB,YAAY,CAACH,MAAM,IAAI;YAE7D,MAAMc,WAAWD,UAAU,gBAAgB,CAAC;gBACxCb;gBACA,OAAOE,KAAK,CAACF,MAAM,OAAO,CAAC;gBAC3B,QAAQA,MAAM,MAAM;YACxB;YAEA,OAAO;gBACH,GAAGY,MAAM;gBACT,GAAGE,QAAQ;YACf;QACJ,GAAGH;IACP;IAEgB,mBAAmBV,MAAqB,EAAkB;QACtE,MAAM,EAAED,KAAK,EAAEE,KAAK,EAAEC,mBAAmB,EAAE,GAAGF;QAE9C,MAAMG,cAAc,IAAI,CAAC,cAAc,CAAC;YACpCJ;QACJ;QACA,IAAII,AAAuB,MAAvBA,YAAY,MAAM,EAClB,OAAO,CAAC;QAGZ,IAAIJ,MAAM,IAAI,EAAE;YACZ,IAAIK,AAAyB,UAAzBA,MAAM,OAAO,CAACH,QACd,OAAO;gBACH,CAACF,MAAM,OAAO,CAAC,EAAE;YACrB;YAEJ,OAAO;gBACH,CAACA,MAAM,OAAO,CAAC,EAAEE,MAAM,GAAG,CAAC,CAACI,YACjB,IAAI,CAAC,6BAA6B,CAAC;wBACtC,QAAQF,YAAY,GAAG,CAACG,CAAAA,QACb;gCACH,GAAGA,KAAK;gCACR,QAAQP;4BACZ;wBAEJ,OAAOM;wBACPH;oBACJ;YAER;QACJ;QAEA,MAAMK,SAAS,IAAI,CAAC,6BAA6B,CAAC;YAC9C,QAAQJ,YAAY,GAAG,CAACG,CAAAA,QACb;oBACH,GAAGA,KAAK;oBACR,QAAQP;gBACZ;YAEJE;YACAC;QACJ;QAEA,IAAIK,AAAWC,WAAXD,QACA,OAAO,CAAC;QAGZ,OAAO;YACH,CAACR,MAAM,OAAO,CAAC,EAAEQ;QACrB;IACJ;IAEQ,8BACJP,MAAgC,EACN;QAC1B,MAAM,EAAES,MAAM,EAAER,KAAK,EAAEC,mBAAmB,EAAE,GAAGF;QAE/C,IAAIC,QAAAA,OACA;QAGJ,MAAMS,UAA0BT,MAAM,GAAG,GAAG;YAAE,KAAKA,MAAM,GAAG;QAAC,IAAI,CAAC;QAElE,OAAOQ,OAAO,MAAM,CAAiB,CAACE,QAAQZ;YAC1C,IAAIE,AAA2BO,WAA3BP,KAAK,CAACF,MAAM,SAAS,CAAC,EACtB,OAAOY;YAGX,MAAMC,YAAYV,oBAAoB,YAAY,CAACH,MAAM,IAAI;YAE7D,MAAMc,WAAWD,UAAU,kBAAkB,CAAC;gBAC1Cb;gBACA,OAAOE,KAAK,CAACF,MAAM,SAAS,CAAC;gBAC7B,QAAQA,MAAM,MAAM;YACxB;YACA,IAAI,CAACc,UACD,OAAOF;YAGX,OAAO;gBACH,GAAGA,MAAM;gBACT,GAAGE,QAAQ;YACf;QACJ,GAAGH;IACP;;QAhLG,qBACa,IAAI,GAAG;;AAgL3B"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Container } from "@webiny/di";
|
|
2
|
+
import type { ApiEndpoint } from "../types/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Throws unless the current identity may use the given CMS endpoint (the `cms.endpoint.<type>`
|
|
5
|
+
* permission).
|
|
6
|
+
*/
|
|
7
|
+
export declare const checkEndpointAccess: (container: Container, endpointType: ApiEndpoint) => Promise<void>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { IdentityContext } from "@webiny/api-core/features/security/IdentityContext/abstractions.js";
|
|
2
2
|
import { NotAuthorizedError } from "../utils/errors.js";
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpointType = context.container.resolve(HeadlessCmsEndpointConfig).type;
|
|
6
|
-
const permission = await context.container.resolve(IdentityContext).getPermission(`cms.endpoint.${endpointType}`);
|
|
3
|
+
const checkEndpointAccess = async (container, endpointType)=>{
|
|
4
|
+
const permission = await container.resolve(IdentityContext).getPermission(`cms.endpoint.${endpointType}`);
|
|
7
5
|
if (!permission) throw new NotAuthorizedError(`Not allowed to access "${endpointType}" endpoint.`);
|
|
8
6
|
};
|
|
9
7
|
export { checkEndpointAccess };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/checkEndpointAccess.js","sources":["../../src/graphql/checkEndpointAccess.ts"],"sourcesContent":["import { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/abstractions.js\";\nimport type {
|
|
1
|
+
{"version":3,"file":"graphql/checkEndpointAccess.js","sources":["../../src/graphql/checkEndpointAccess.ts"],"sourcesContent":["import type { Container } from \"@webiny/di\";\nimport { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/abstractions.js\";\nimport type { ApiEndpoint } from \"~/types/index.js\";\nimport { NotAuthorizedError } from \"~/utils/errors.js\";\n\n/**\n * Throws unless the current identity may use the given CMS endpoint (the `cms.endpoint.<type>`\n * permission).\n */\nexport const checkEndpointAccess = async (\n container: Container,\n endpointType: ApiEndpoint\n): Promise<void> => {\n const permission = await container\n .resolve(IdentityContext)\n .getPermission(`cms.endpoint.${endpointType}`);\n if (!permission) {\n throw new NotAuthorizedError(`Not allowed to access \"${endpointType}\" endpoint.`);\n }\n};\n"],"names":["checkEndpointAccess","container","endpointType","permission","IdentityContext","NotAuthorizedError"],"mappings":";;AASO,MAAMA,sBAAsB,OAC/BC,WACAC;IAEA,MAAMC,aAAa,MAAMF,UACpB,OAAO,CAACG,iBACR,aAAa,CAAC,CAAC,aAAa,EAAEF,cAAc;IACjD,IAAI,CAACC,YACD,MAAM,IAAIE,mBAAmB,CAAC,uBAAuB,EAAEH,aAAa,WAAW,CAAC;AAExF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import crypto_0 from "crypto";
|
|
2
2
|
const getSavedOn = (input)=>{
|
|
3
3
|
if (!input) return "unknown";
|
|
4
|
-
if (input instanceof Date) return input.toISOString();
|
|
4
|
+
else if (input instanceof Date) return input.toISOString();
|
|
5
5
|
try {
|
|
6
6
|
const savedOn = new Date(input);
|
|
7
7
|
return savedOn.toISOString();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/getSchema/generateCacheKey.js","sources":["../../../src/graphql/getSchema/generateCacheKey.ts"],"sourcesContent":["import type { CmsModel } from \"~/types/index.js\";\nimport crypto from \"crypto\";\n\ninterface GenerateCacheKeyParams {\n models: Pick<CmsModel, \"modelId\" | \"singularApiName\" | \"pluralApiName\" | \"savedOn\">[];\n}\n\nconst getSavedOn = (input: Date | string | undefined | null): string => {\n if (!input) {\n return \"unknown\";\n } else if (input instanceof Date) {\n return input.toISOString();\n }\n try {\n const savedOn = new Date(input);\n return savedOn.toISOString();\n } catch {\n return \"unknown\";\n }\n};\n/**\n * Method generates cache key based on last model change time.\n * Or sets \"unknown\" - possible when no models in database.\n */\nexport const generateCacheKey = async (params: GenerateCacheKeyParams): Promise<string> => {\n const { models } = params;\n\n const keys: string[] = [];\n for (const model of models) {\n const value = getSavedOn(model.savedOn);\n\n keys.push(model.modelId, model.singularApiName, model.pluralApiName, value);\n }\n const key = keys.join(\"#\");\n\n const hash = crypto.createHash(\"sha512\");\n hash.update(key);\n return hash.digest(\"hex\");\n};\n"],"names":["getSavedOn","input","Date","savedOn","generateCacheKey","params","models","keys","model","value","key","hash","crypto"],"mappings":";AAOA,MAAMA,aAAa,CAACC;IAChB,IAAI,CAACA,OACD,OAAO;
|
|
1
|
+
{"version":3,"file":"graphql/getSchema/generateCacheKey.js","sources":["../../../src/graphql/getSchema/generateCacheKey.ts"],"sourcesContent":["import type { CmsModel } from \"~/types/index.js\";\nimport crypto from \"crypto\";\n\ninterface GenerateCacheKeyParams {\n models: Pick<CmsModel, \"modelId\" | \"singularApiName\" | \"pluralApiName\" | \"savedOn\">[];\n}\n\nconst getSavedOn = (input: Date | string | undefined | null): string => {\n if (!input) {\n return \"unknown\";\n } else if (input instanceof Date) {\n return input.toISOString();\n }\n try {\n const savedOn = new Date(input);\n return savedOn.toISOString();\n } catch {\n return \"unknown\";\n }\n};\n/**\n * Method generates cache key based on last model change time.\n * Or sets \"unknown\" - possible when no models in database.\n */\nexport const generateCacheKey = async (params: GenerateCacheKeyParams): Promise<string> => {\n const { models } = params;\n\n const keys: string[] = [];\n for (const model of models) {\n const value = getSavedOn(model.savedOn);\n\n keys.push(model.modelId, model.singularApiName, model.pluralApiName, value);\n }\n const key = keys.join(\"#\");\n\n const hash = crypto.createHash(\"sha512\");\n hash.update(key);\n return hash.digest(\"hex\");\n};\n"],"names":["getSavedOn","input","Date","savedOn","generateCacheKey","params","models","keys","model","value","key","hash","crypto"],"mappings":";AAOA,MAAMA,aAAa,CAACC;IAChB,IAAI,CAACA,OACD,OAAO;SACJ,IAAIA,iBAAiBC,MACxB,OAAOD,MAAM,WAAW;IAE5B,IAAI;QACA,MAAME,UAAU,IAAID,KAAKD;QACzB,OAAOE,QAAQ,WAAW;IAC9B,EAAE,OAAM;QACJ,OAAO;IACX;AACJ;AAKO,MAAMC,mBAAmB,OAAOC;IACnC,MAAM,EAAEC,MAAM,EAAE,GAAGD;IAEnB,MAAME,OAAiB,EAAE;IACzB,KAAK,MAAMC,SAASF,OAAQ;QACxB,MAAMG,QAAQT,WAAWQ,MAAM,OAAO;QAEtCD,KAAK,IAAI,CAACC,MAAM,OAAO,EAAEA,MAAM,eAAe,EAAEA,MAAM,aAAa,EAAEC;IACzE;IACA,MAAMC,MAAMH,KAAK,IAAI,CAAC;IAEtB,MAAMI,OAAOC,SAAAA,UAAiB,CAAC;IAC/BD,KAAK,MAAM,CAACD;IACZ,OAAOC,KAAK,MAAM,CAAC;AACvB"}
|
|
@@ -5,7 +5,7 @@ const RevisionIdScalar = new GraphQLScalarType({
|
|
|
5
5
|
description: "A Headless CMS Reference field input type.",
|
|
6
6
|
parseValue: (value)=>{
|
|
7
7
|
if (!value) return null;
|
|
8
|
-
if ("string" != typeof value) throw new Error("RevisionId value must be a string!");
|
|
8
|
+
else if ("string" != typeof value) throw new Error("RevisionId value must be a string!");
|
|
9
9
|
const result = parseIdentifier(value);
|
|
10
10
|
if (!result.version) throw new Error('RevisionId value must be a valid Revision ID property! Example: "abcdef#0001"');
|
|
11
11
|
return value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/scalars/RevisionId.js","sources":["../../../src/graphql/scalars/RevisionId.ts"],"sourcesContent":["import { GraphQLScalarType } from \"graphql\";\nimport { parseIdentifier } from \"@webiny/utils\";\n\nexport const RevisionIdScalar = new GraphQLScalarType({\n name: \"RevisionId\",\n description: \"A Headless CMS Reference field input type.\",\n parseValue: value => {\n if (!value) {\n return null;\n } else if (typeof value !== \"string\") {\n throw new Error(\"RevisionId value must be a string!\");\n }\n\n const result = parseIdentifier(value);\n if (!result.version) {\n throw new Error(\n `RevisionId value must be a valid Revision ID property! Example: \"abcdef#0001\"`\n );\n }\n return value;\n }\n});\n"],"names":["RevisionIdScalar","GraphQLScalarType","value","Error","result","parseIdentifier"],"mappings":";;AAGO,MAAMA,mBAAmB,IAAIC,kBAAkB;IAClD,MAAM;IACN,aAAa;IACb,YAAYC,CAAAA;QACR,IAAI,CAACA,OACD,OAAO;
|
|
1
|
+
{"version":3,"file":"graphql/scalars/RevisionId.js","sources":["../../../src/graphql/scalars/RevisionId.ts"],"sourcesContent":["import { GraphQLScalarType } from \"graphql\";\nimport { parseIdentifier } from \"@webiny/utils\";\n\nexport const RevisionIdScalar = new GraphQLScalarType({\n name: \"RevisionId\",\n description: \"A Headless CMS Reference field input type.\",\n parseValue: value => {\n if (!value) {\n return null;\n } else if (typeof value !== \"string\") {\n throw new Error(\"RevisionId value must be a string!\");\n }\n\n const result = parseIdentifier(value);\n if (!result.version) {\n throw new Error(\n `RevisionId value must be a valid Revision ID property! Example: \"abcdef#0001\"`\n );\n }\n return value;\n }\n});\n"],"names":["RevisionIdScalar","GraphQLScalarType","value","Error","result","parseIdentifier"],"mappings":";;AAGO,MAAMA,mBAAmB,IAAIC,kBAAkB;IAClD,MAAM;IACN,aAAa;IACb,YAAYC,CAAAA;QACR,IAAI,CAACA,OACD,OAAO;aACJ,IAAI,AAAiB,YAAjB,OAAOA,OACd,MAAM,IAAIC,MAAM;QAGpB,MAAMC,SAASC,gBAAgBH;QAC/B,IAAI,CAACE,OAAO,OAAO,EACf,MAAM,IAAID,MACN;QAGR,OAAOD;IACX;AACJ"}
|
|
@@ -6,6 +6,7 @@ import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractio
|
|
|
6
6
|
* handles the duplicate gracefully.
|
|
7
7
|
*/
|
|
8
8
|
declare class CmsBaseErrorTypeDefs implements CoreGraphQLSchemaFactory.Interface {
|
|
9
|
+
getSchemaKey: () => string;
|
|
9
10
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
10
11
|
}
|
|
11
12
|
export declare const CmsBaseErrorTypeFactory: typeof CmsBaseErrorTypeDefs & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
class CmsBaseErrorTypeDefs {
|
|
3
4
|
async execute(builder) {
|
|
4
5
|
builder.addTypeDefs(`
|
|
@@ -11,6 +12,9 @@ class CmsBaseErrorTypeDefs {
|
|
|
11
12
|
`);
|
|
12
13
|
return builder;
|
|
13
14
|
}
|
|
15
|
+
constructor(){
|
|
16
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/CmsBaseErrorTypeDefs");
|
|
17
|
+
}
|
|
14
18
|
}
|
|
15
19
|
const CmsBaseErrorTypeFactory = CoreGraphQLSchemaFactory.createImplementation({
|
|
16
20
|
implementation: CmsBaseErrorTypeDefs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/CmsBaseErrorTypeFactory.js","sources":["../../../../src/graphql/schema/cms/CmsBaseErrorTypeFactory.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\n\n/**\n * Defines the CmsError type in the static schema so that CmsResponseTypeDefsImpl\n * (which references CmsError) can be safely included at schema construction time.\n * CmsError is also defined in the dynamic schema via createBaseSchema() — mergeSchemas\n * handles the duplicate gracefully.\n */\nclass CmsBaseErrorTypeDefs implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addTypeDefs(/* GraphQL */ `\n type CmsError {\n message: String!\n code: String\n data: JSON\n stack: String\n }\n `);\n return builder;\n }\n}\n\nexport const CmsBaseErrorTypeFactory = CoreGraphQLSchemaFactory.createImplementation({\n implementation: CmsBaseErrorTypeDefs,\n dependencies: []\n});\n"],"names":["CmsBaseErrorTypeDefs","builder","CmsBaseErrorTypeFactory","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/CmsBaseErrorTypeFactory.js","sources":["../../../../src/graphql/schema/cms/CmsBaseErrorTypeFactory.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\n\n/**\n * Defines the CmsError type in the static schema so that CmsResponseTypeDefsImpl\n * (which references CmsError) can be safely included at schema construction time.\n * CmsError is also defined in the dynamic schema via createBaseSchema() — mergeSchemas\n * handles the duplicate gracefully.\n */\nclass CmsBaseErrorTypeDefs implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/CmsBaseErrorTypeDefs\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addTypeDefs(/* GraphQL */ `\n type CmsError {\n message: String!\n code: String\n data: JSON\n stack: String\n }\n `);\n return builder;\n }\n}\n\nexport const CmsBaseErrorTypeFactory = CoreGraphQLSchemaFactory.createImplementation({\n implementation: CmsBaseErrorTypeDefs,\n dependencies: []\n});\n"],"names":["CmsBaseErrorTypeDefs","builder","staticSchemaKey","CmsBaseErrorTypeFactory","CoreGraphQLSchemaFactory"],"mappings":";;AASA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAe,CAAC;;;;;;;QAOnC,CAAC;QACD,OAAOA;IACX;;aAdO,YAAY,GAAGC,gBAAgB;;AAe1C;AAEO,MAAMC,0BAA0BC,yBAAyB,oBAAoB,CAAC;IACjF,gBAAgBJ;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class CreateEntryResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const CreateEntryResolverImpl: typeof CreateEntryResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createCreateEntryResolver } from "../createEntryResolver.js";
|
|
3
4
|
class CreateEntryResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class CreateEntryResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/CreateEntryResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const CreateEntryResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: CreateEntryResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/createEntry.js","sources":["../../../../../src/graphql/schema/cms/resolvers/createEntry.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createCreateEntryResolver } from \"../createEntryResolver.js\";\n\nclass CreateEntryResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.createEntry\",\n resolver: createCreateEntryResolver\n });\n\n return builder;\n }\n}\n\nexport const CreateEntryResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: CreateEntryResolver,\n dependencies: []\n});\n"],"names":["CreateEntryResolver","builder","createCreateEntryResolver","CreateEntryResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/createEntry.js","sources":["../../../../../src/graphql/schema/cms/resolvers/createEntry.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createCreateEntryResolver } from \"../createEntryResolver.js\";\n\nclass CreateEntryResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/CreateEntryResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.createEntry\",\n resolver: createCreateEntryResolver\n });\n\n return builder;\n }\n}\n\nexport const CreateEntryResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: CreateEntryResolver,\n dependencies: []\n});\n"],"names":["CreateEntryResolver","builder","createCreateEntryResolver","staticSchemaKey","CreateEntryResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,0BAA0BC,yBAAyB,oBAAoB,CAAC;IACjF,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class DeleteEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const DeleteEntryRevisionResolverImpl: typeof DeleteEntryRevisionResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createDeleteEntryRevisionResolver } from "../deleteEntryResolver.js";
|
|
3
4
|
class DeleteEntryRevisionResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class DeleteEntryRevisionResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/DeleteEntryRevisionResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const DeleteEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: DeleteEntryRevisionResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/deleteEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/deleteEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createDeleteEntryRevisionResolver } from \"../deleteEntryResolver.js\";\n\nclass DeleteEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.deleteEntryRevision\",\n resolver: createDeleteEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const DeleteEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: DeleteEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["DeleteEntryRevisionResolver","builder","createDeleteEntryRevisionResolver","DeleteEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/deleteEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/deleteEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createDeleteEntryRevisionResolver } from \"../deleteEntryResolver.js\";\n\nclass DeleteEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/DeleteEntryRevisionResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.deleteEntryRevision\",\n resolver: createDeleteEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const DeleteEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: DeleteEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["DeleteEntryRevisionResolver","builder","createDeleteEntryRevisionResolver","staticSchemaKey","DeleteEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,kCAAkCC,yBAAyB,oBAAoB,CAAC;IACzF,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class GetEntryResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const GetEntryResolverImpl: typeof GetEntryResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createGetEntryResolver } from "../getEntryResolver.js";
|
|
3
4
|
class GetEntryResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class GetEntryResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/GetEntryResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const GetEntryResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: GetEntryResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/getEntry.js","sources":["../../../../../src/graphql/schema/cms/resolvers/getEntry.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createGetEntryResolver } from \"../getEntryResolver.js\";\n\nclass GetEntryResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsQuery.getEntry\",\n resolver: createGetEntryResolver\n });\n\n return builder;\n }\n}\n\nexport const GetEntryResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: GetEntryResolver,\n dependencies: []\n});\n"],"names":["GetEntryResolver","builder","createGetEntryResolver","GetEntryResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/getEntry.js","sources":["../../../../../src/graphql/schema/cms/resolvers/getEntry.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createGetEntryResolver } from \"../getEntryResolver.js\";\n\nclass GetEntryResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/GetEntryResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsQuery.getEntry\",\n resolver: createGetEntryResolver\n });\n\n return builder;\n }\n}\n\nexport const GetEntryResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: GetEntryResolver,\n dependencies: []\n});\n"],"names":["GetEntryResolver","builder","createGetEntryResolver","staticSchemaKey","GetEntryResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,uBAAuBC,yBAAyB,oBAAoB,CAAC;IAC9E,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class GetModelResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const GetModelResolverImpl: typeof GetModelResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createGetModelResolver } from "../getModelResolver.js";
|
|
3
4
|
class GetModelResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class GetModelResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/GetModelResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const GetModelResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: GetModelResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/getModel.js","sources":["../../../../../src/graphql/schema/cms/resolvers/getModel.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createGetModelResolver } from \"../getModelResolver.js\";\n\nclass GetModelResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsQuery.getModel\",\n resolver: createGetModelResolver\n });\n\n return builder;\n }\n}\n\nexport const GetModelResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: GetModelResolver,\n dependencies: []\n});\n"],"names":["GetModelResolver","builder","createGetModelResolver","GetModelResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/getModel.js","sources":["../../../../../src/graphql/schema/cms/resolvers/getModel.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createGetModelResolver } from \"../getModelResolver.js\";\n\nclass GetModelResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/GetModelResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsQuery.getModel\",\n resolver: createGetModelResolver\n });\n\n return builder;\n }\n}\n\nexport const GetModelResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: GetModelResolver,\n dependencies: []\n});\n"],"names":["GetModelResolver","builder","createGetModelResolver","staticSchemaKey","GetModelResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,uBAAuBC,yBAAyB,oBAAoB,CAAC;IAC9E,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class ListEntriesResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const ListEntriesResolverImpl: typeof ListEntriesResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createListEntriesResolver } from "../listEntriesResolver.js";
|
|
3
4
|
class ListEntriesResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class ListEntriesResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/ListEntriesResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const ListEntriesResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: ListEntriesResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/listEntries.js","sources":["../../../../../src/graphql/schema/cms/resolvers/listEntries.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createListEntriesResolver } from \"../listEntriesResolver.js\";\n\nclass ListEntriesResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsQuery.listEntries\",\n resolver: createListEntriesResolver\n });\n\n return builder;\n }\n}\n\nexport const ListEntriesResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: ListEntriesResolver,\n dependencies: []\n});\n"],"names":["ListEntriesResolver","builder","createListEntriesResolver","ListEntriesResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/listEntries.js","sources":["../../../../../src/graphql/schema/cms/resolvers/listEntries.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createListEntriesResolver } from \"../listEntriesResolver.js\";\n\nclass ListEntriesResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/ListEntriesResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsQuery.listEntries\",\n resolver: createListEntriesResolver\n });\n\n return builder;\n }\n}\n\nexport const ListEntriesResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: ListEntriesResolver,\n dependencies: []\n});\n"],"names":["ListEntriesResolver","builder","createListEntriesResolver","staticSchemaKey","ListEntriesResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,0BAA0BC,yBAAyB,oBAAoB,CAAC;IACjF,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class MutationCmsResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const MutationCmsResolverImpl: typeof MutationCmsResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
class MutationCmsResolver {
|
|
3
4
|
async execute(builder) {
|
|
4
5
|
builder.addResolver({
|
|
@@ -9,6 +10,9 @@ class MutationCmsResolver {
|
|
|
9
10
|
});
|
|
10
11
|
return builder;
|
|
11
12
|
}
|
|
13
|
+
constructor(){
|
|
14
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/MutationCmsResolver");
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
const MutationCmsResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
14
18
|
implementation: MutationCmsResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/mutationCms.js","sources":["../../../../../src/graphql/schema/cms/resolvers/mutationCms.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\n\nclass MutationCmsResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"Mutation.cms\",\n resolver() {\n /**\n * Returns an empty object to serve as the namespace for CMS mutations.\n * Individual mutation fields (createEntry, updateEntry, etc.) are resolved\n * by their own dedicated resolvers registered under the CmsMutation type.\n * This pattern provides a clean GraphQL API structure: mutation { cms { createEntry(...) } }\n */\n return () => ({});\n }\n });\n\n return builder;\n }\n}\n\nexport const MutationCmsResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: MutationCmsResolver,\n dependencies: []\n});\n"],"names":["MutationCmsResolver","builder","MutationCmsResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/mutationCms.js","sources":["../../../../../src/graphql/schema/cms/resolvers/mutationCms.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\n\nclass MutationCmsResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/MutationCmsResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"Mutation.cms\",\n resolver() {\n /**\n * Returns an empty object to serve as the namespace for CMS mutations.\n * Individual mutation fields (createEntry, updateEntry, etc.) are resolved\n * by their own dedicated resolvers registered under the CmsMutation type.\n * This pattern provides a clean GraphQL API structure: mutation { cms { createEntry(...) } }\n */\n return () => ({});\n }\n });\n\n return builder;\n }\n}\n\nexport const MutationCmsResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: MutationCmsResolver,\n dependencies: []\n});\n"],"names":["MutationCmsResolver","builder","staticSchemaKey","MutationCmsResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;AAGA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN;gBAOI,OAAO,IAAO,EAAC;YACnB;QACJ;QAEA,OAAOA;IACX;;aAnBO,YAAY,GAAGC,gBAAgB;;AAoB1C;AAEO,MAAMC,0BAA0BC,yBAAyB,oBAAoB,CAAC;IACjF,gBAAgBJ;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class PublishEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const PublishEntryRevisionResolverImpl: typeof PublishEntryRevisionResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createPublishEntryRevisionResolver } from "../publishEntryResolver.js";
|
|
3
4
|
class PublishEntryRevisionResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class PublishEntryRevisionResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/PublishEntryRevisionResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const PublishEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: PublishEntryRevisionResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/publishEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/publishEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createPublishEntryRevisionResolver } from \"../publishEntryResolver.js\";\n\nclass PublishEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.publishEntryRevision\",\n resolver: createPublishEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const PublishEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: PublishEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["PublishEntryRevisionResolver","builder","createPublishEntryRevisionResolver","PublishEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/publishEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/publishEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createPublishEntryRevisionResolver } from \"../publishEntryResolver.js\";\n\nclass PublishEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/PublishEntryRevisionResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.publishEntryRevision\",\n resolver: createPublishEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const PublishEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: PublishEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["PublishEntryRevisionResolver","builder","createPublishEntryRevisionResolver","staticSchemaKey","PublishEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,mCAAmCC,yBAAyB,oBAAoB,CAAC;IAC1F,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class QueryCmsResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const QueryCmsResolverImpl: typeof QueryCmsResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
class QueryCmsResolver {
|
|
3
4
|
async execute(builder) {
|
|
4
5
|
builder.addResolver({
|
|
@@ -9,6 +10,9 @@ class QueryCmsResolver {
|
|
|
9
10
|
});
|
|
10
11
|
return builder;
|
|
11
12
|
}
|
|
13
|
+
constructor(){
|
|
14
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/QueryCmsResolver");
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
const QueryCmsResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
14
18
|
implementation: QueryCmsResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/queryCms.js","sources":["../../../../../src/graphql/schema/cms/resolvers/queryCms.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\n\nclass QueryCmsResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"Query.cms\",\n resolver() {\n /**\n * Returns an empty object that serves as a namespace for CMS queries.\n * Actual query operations (getEntry, getEntryById, listEntries, etc.) are resolved\n * by dedicated resolvers registered under the CmsQuery type.\n */\n return () => ({});\n }\n });\n\n return builder;\n }\n}\n\nexport const QueryCmsResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: QueryCmsResolver,\n dependencies: []\n});\n"],"names":["QueryCmsResolver","builder","QueryCmsResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/queryCms.js","sources":["../../../../../src/graphql/schema/cms/resolvers/queryCms.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\n\nclass QueryCmsResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/QueryCmsResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"Query.cms\",\n resolver() {\n /**\n * Returns an empty object that serves as a namespace for CMS queries.\n * Actual query operations (getEntry, getEntryById, listEntries, etc.) are resolved\n * by dedicated resolvers registered under the CmsQuery type.\n */\n return () => ({});\n }\n });\n\n return builder;\n }\n}\n\nexport const QueryCmsResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: QueryCmsResolver,\n dependencies: []\n});\n"],"names":["QueryCmsResolver","builder","staticSchemaKey","QueryCmsResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;AAGA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN;gBAMI,OAAO,IAAO,EAAC;YACnB;QACJ;QAEA,OAAOA;IACX;;aAlBO,YAAY,GAAGC,gBAAgB;;AAmB1C;AAEO,MAAMC,uBAAuBC,yBAAyB,oBAAoB,CAAC;IAC9E,gBAAgBJ;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class UnpublishEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const UnpublishEntryRevisionResolverImpl: typeof UnpublishEntryRevisionResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createUnpublishEntryRevisionResolver } from "../unpublishEntryResolver.js";
|
|
3
4
|
class UnpublishEntryRevisionResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class UnpublishEntryRevisionResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/UnpublishEntryRevisionResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const UnpublishEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: UnpublishEntryRevisionResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/unpublishEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/unpublishEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createUnpublishEntryRevisionResolver } from \"../unpublishEntryResolver.js\";\n\nclass UnpublishEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.unpublishEntryRevision\",\n resolver: createUnpublishEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const UnpublishEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: UnpublishEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["UnpublishEntryRevisionResolver","builder","createUnpublishEntryRevisionResolver","UnpublishEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/unpublishEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/unpublishEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createUnpublishEntryRevisionResolver } from \"../unpublishEntryResolver.js\";\n\nclass UnpublishEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/UnpublishEntryRevisionResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.unpublishEntryRevision\",\n resolver: createUnpublishEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const UnpublishEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: UnpublishEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["UnpublishEntryRevisionResolver","builder","createUnpublishEntryRevisionResolver","staticSchemaKey","UnpublishEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,qCAAqCC,yBAAyB,oBAAoB,CAAC;IAC5F,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class UpdateEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const UpdateEntryRevisionResolverImpl: typeof UpdateEntryRevisionResolver & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
import { createUpdateEntryRevisionResolver } from "../updateEntryResolver.js";
|
|
3
4
|
class UpdateEntryRevisionResolver {
|
|
4
5
|
async execute(builder) {
|
|
@@ -8,6 +9,9 @@ class UpdateEntryRevisionResolver {
|
|
|
8
9
|
});
|
|
9
10
|
return builder;
|
|
10
11
|
}
|
|
12
|
+
constructor(){
|
|
13
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/UpdateEntryRevisionResolver");
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
const UpdateEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
13
17
|
implementation: UpdateEntryRevisionResolver,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql/schema/cms/resolvers/updateEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/updateEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { createUpdateEntryRevisionResolver } from \"../updateEntryResolver.js\";\n\nclass UpdateEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.updateEntryRevision\",\n resolver: createUpdateEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const UpdateEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: UpdateEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["UpdateEntryRevisionResolver","builder","createUpdateEntryRevisionResolver","UpdateEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql/schema/cms/resolvers/updateEntryRevision.js","sources":["../../../../../src/graphql/schema/cms/resolvers/updateEntryRevision.ts"],"sourcesContent":["import { CoreGraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.core.js\";\nimport { staticSchemaKey } from \"@webiny/api-graphql/graphql/staticSchemaKey.js\";\nimport { createUpdateEntryRevisionResolver } from \"../updateEntryResolver.js\";\n\nclass UpdateEntryRevisionResolver implements CoreGraphQLSchemaFactory.Interface {\n public getSchemaKey = staticSchemaKey(\"api-headless-cms/UpdateEntryRevisionResolver\");\n\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addResolver({\n path: \"CmsMutation.updateEntryRevision\",\n resolver: createUpdateEntryRevisionResolver\n });\n\n return builder;\n }\n}\n\nexport const UpdateEntryRevisionResolverImpl = CoreGraphQLSchemaFactory.createImplementation({\n implementation: UpdateEntryRevisionResolver,\n dependencies: []\n});\n"],"names":["UpdateEntryRevisionResolver","builder","createUpdateEntryRevisionResolver","staticSchemaKey","UpdateEntryRevisionResolverImpl","CoreGraphQLSchemaFactory"],"mappings":";;;AAIA,MAAMA;IAGF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,UAAUC;QACd;QAEA,OAAOD;IACX;;aAXO,YAAY,GAAGE,gBAAgB;;AAY1C;AAEO,MAAMC,kCAAkCC,yBAAyB,oBAAoB,CAAC;IACzF,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
2
|
declare class CmsMutationTypeDefs implements CoreGraphQLSchemaFactory.Interface {
|
|
3
|
+
getSchemaKey: () => string;
|
|
3
4
|
execute(builder: CoreGraphQLSchemaFactory.SchemaBuilder): CoreGraphQLSchemaFactory.Return;
|
|
4
5
|
}
|
|
5
6
|
export declare const CmsMutationTypeDefsImpl: typeof CmsMutationTypeDefs & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.core.js";
|
|
2
|
+
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
|
|
2
3
|
class CmsMutationTypeDefs {
|
|
3
4
|
async execute(builder) {
|
|
4
5
|
builder.addTypeDefs(`
|
|
@@ -33,6 +34,9 @@ class CmsMutationTypeDefs {
|
|
|
33
34
|
`);
|
|
34
35
|
return builder;
|
|
35
36
|
}
|
|
37
|
+
constructor(){
|
|
38
|
+
this.getSchemaKey = staticSchemaKey("api-headless-cms/CmsMutationTypeDefs");
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
41
|
const CmsMutationTypeDefsImpl = CoreGraphQLSchemaFactory.createImplementation({
|
|
38
42
|
implementation: CmsMutationTypeDefs,
|