@webiny/api-headless-cms 5.17.4 → 5.18.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/contextSetup.js +1 -2
- package/content/graphQLHandlerFactory.d.ts +1 -2
- package/content/graphQLHandlerFactory.js +12 -4
- package/content/plugins/CmsGroupPlugin.d.ts +11 -0
- package/content/plugins/{ContentModelGroupPlugin.js → CmsGroupPlugin.js} +4 -5
- package/content/plugins/CmsModelPlugin.d.ts +11 -0
- package/content/plugins/{ContentModelPlugin.js → CmsModelPlugin.js} +4 -5
- package/content/plugins/buildSchemaPlugins.js +1 -2
- package/content/plugins/crud/contentEntry/beforeCreate.d.ts +7 -0
- package/content/plugins/crud/contentEntry/beforeCreate.js +28 -0
- package/content/plugins/crud/contentEntry/beforeUpdate.d.ts +7 -0
- package/content/plugins/crud/contentEntry/beforeUpdate.js +28 -0
- package/content/plugins/crud/contentEntry/entryDataValidation.d.ts +2 -2
- package/content/plugins/crud/contentEntry/entryDataValidation.js +1 -2
- package/content/plugins/crud/contentEntry/markLockedFields.d.ts +3 -3
- package/content/plugins/crud/contentEntry/markLockedFields.js +10 -7
- package/content/plugins/crud/contentEntry.crud.d.ts +12 -4
- package/content/plugins/crud/contentEntry.crud.js +807 -757
- package/content/plugins/crud/contentModel/afterCreate.d.ts +7 -0
- package/content/plugins/crud/contentModel/afterCreate.js +18 -0
- package/content/plugins/crud/contentModel/afterDelete.d.ts +7 -0
- package/content/plugins/crud/contentModel/afterDelete.js +18 -0
- package/content/plugins/crud/contentModel/afterUpdate.d.ts +7 -0
- package/content/plugins/crud/contentModel/afterUpdate.js +18 -0
- package/content/plugins/crud/contentModel/beforeCreate.d.ts +9 -0
- package/content/plugins/crud/contentModel/beforeCreate.js +146 -0
- package/content/plugins/crud/contentModel/beforeDelete.d.ts +9 -0
- package/content/plugins/crud/contentModel/beforeDelete.js +56 -0
- package/content/plugins/crud/contentModel/beforeUpdate.d.ts +9 -0
- package/content/plugins/crud/contentModel/beforeUpdate.js +128 -0
- package/content/plugins/crud/contentModel/contentModelManagerFactory.d.ts +2 -2
- package/content/plugins/crud/contentModel/contentModelManagerFactory.js +2 -3
- package/content/plugins/crud/contentModel/createFieldModels.d.ts +2 -2
- package/content/plugins/crud/contentModel/createFieldModels.js +2 -3
- package/content/plugins/crud/contentModel/idValidation.js +1 -2
- package/content/plugins/crud/contentModel/models.js +1 -2
- package/content/plugins/crud/contentModel/validateLayout.d.ts +2 -2
- package/content/plugins/crud/contentModel/validateLayout.js +1 -2
- package/content/plugins/crud/contentModel.crud.d.ts +12 -4
- package/content/plugins/crud/contentModel.crud.js +351 -279
- package/content/plugins/crud/contentModelGroup/beforeCreate.d.ts +9 -0
- package/content/plugins/crud/contentModelGroup/beforeCreate.js +66 -0
- package/content/plugins/crud/contentModelGroup/beforeDelete.d.ts +9 -0
- package/content/plugins/crud/contentModelGroup/beforeDelete.js +48 -0
- package/content/plugins/crud/contentModelGroup/beforeUpdate.d.ts +8 -0
- package/content/plugins/crud/contentModelGroup/beforeUpdate.js +28 -0
- package/content/plugins/crud/contentModelGroup.crud.d.ts +12 -4
- package/content/plugins/crud/contentModelGroup.crud.js +259 -219
- package/content/plugins/crud/index.d.ts +6 -0
- package/content/plugins/crud/index.js +96 -0
- package/content/plugins/graphqlFields/boolean.js +1 -2
- package/content/plugins/graphqlFields/datetime.js +1 -2
- package/content/plugins/graphqlFields/file.js +1 -2
- package/content/plugins/graphqlFields/index.js +1 -2
- package/content/plugins/graphqlFields/longText.js +1 -2
- package/content/plugins/graphqlFields/number.js +1 -2
- package/content/plugins/graphqlFields/object.js +1 -2
- package/content/plugins/graphqlFields/ref.js +22 -11
- package/content/plugins/graphqlFields/richText.js +1 -2
- package/content/plugins/graphqlFields/text.js +1 -2
- package/content/plugins/internalSecurity/InternalAuthenticationPlugin.js +2 -3
- package/content/plugins/internalSecurity/InternalAuthorizationPlugin.js +1 -2
- package/content/plugins/modelManager/DefaultCmsModelManager.d.ts +15 -0
- package/content/plugins/modelManager/DefaultCmsModelManager.js +62 -0
- package/content/plugins/modelManager/index.d.ts +2 -2
- package/content/plugins/modelManager/index.js +3 -4
- package/content/plugins/schema/baseSchema.js +1 -2
- package/content/plugins/schema/contentEntries.js +9 -10
- package/content/plugins/schema/contentModelGroups.js +13 -14
- package/content/plugins/schema/contentModels.js +9 -10
- package/content/plugins/schema/createFieldResolvers.d.ts +2 -2
- package/content/plugins/schema/createFieldResolvers.js +14 -20
- package/content/plugins/schema/createManageResolvers.d.ts +3 -3
- package/content/plugins/schema/createManageResolvers.js +6 -10
- package/content/plugins/schema/createManageSDL.d.ts +2 -2
- package/content/plugins/schema/createManageSDL.js +5 -6
- package/content/plugins/schema/createPreviewResolvers.d.ts +3 -3
- package/content/plugins/schema/createPreviewResolvers.js +5 -6
- package/content/plugins/schema/createReadResolvers.d.ts +3 -3
- package/content/plugins/schema/createReadResolvers.js +5 -6
- package/content/plugins/schema/createReadSDL.d.ts +2 -2
- package/content/plugins/schema/createReadSDL.js +3 -4
- package/content/plugins/schema/resolvers/commonFieldResolvers.d.ts +4 -4
- package/content/plugins/schema/resolvers/commonFieldResolvers.js +1 -2
- package/content/plugins/schema/resolvers/manage/resolveCreate.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveCreate.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveCreateFrom.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveCreateFrom.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveDelete.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveDelete.js +4 -5
- package/content/plugins/schema/resolvers/manage/resolveGet.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveGet.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveGetByIds.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveGetByIds.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveGetRevisions.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveGetRevisions.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveList.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveList.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolvePublish.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolvePublish.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveRequestChanges.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveRequestChanges.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveRequestReview.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveRequestReview.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveUnpublish.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveUnpublish.js +3 -4
- package/content/plugins/schema/resolvers/manage/resolveUpdate.d.ts +1 -1
- package/content/plugins/schema/resolvers/manage/resolveUpdate.js +3 -4
- package/content/plugins/schema/resolvers/preview/resolveGet.d.ts +1 -1
- package/content/plugins/schema/resolvers/preview/resolveGet.js +3 -4
- package/content/plugins/schema/resolvers/preview/resolveList.d.ts +1 -1
- package/content/plugins/schema/resolvers/preview/resolveList.js +3 -4
- package/content/plugins/schema/resolvers/read/resolveGet.d.ts +1 -1
- package/content/plugins/schema/resolvers/read/resolveGet.js +3 -4
- package/content/plugins/schema/resolvers/read/resolveList.d.ts +1 -1
- package/content/plugins/schema/resolvers/read/resolveList.js +3 -4
- package/content/plugins/schema/schemaPlugins.js +4 -3
- package/content/plugins/storage/StorageTransformPlugin.d.ts +30 -0
- package/content/plugins/storage/StorageTransformPlugin.js +36 -0
- package/content/plugins/storage/default.d.ts +2 -2
- package/content/plugins/storage/default.js +12 -12
- package/content/plugins/storage/object.d.ts +2 -2
- package/content/plugins/storage/object.js +28 -29
- package/content/plugins/utils/createTypeName.js +1 -2
- package/content/plugins/utils/entryStorage.d.ts +5 -5
- package/content/plugins/utils/entryStorage.js +21 -14
- package/content/plugins/utils/getEntryTitle.d.ts +2 -2
- package/content/plugins/utils/getEntryTitle.js +1 -2
- package/content/plugins/utils/getSchemaFromFieldPlugins.d.ts +2 -2
- package/content/plugins/utils/getSchemaFromFieldPlugins.js +1 -2
- package/content/plugins/utils/pluralizedTypeName.js +1 -2
- package/content/plugins/utils/renderFields.d.ts +2 -2
- package/content/plugins/utils/renderFields.js +1 -2
- package/content/plugins/utils/renderGetFilterFields.d.ts +2 -2
- package/content/plugins/utils/renderGetFilterFields.js +1 -2
- package/content/plugins/utils/renderInputFields.d.ts +2 -2
- package/content/plugins/utils/renderInputFields.js +1 -2
- package/content/plugins/utils/renderListFilterFields.d.ts +2 -2
- package/content/plugins/utils/renderListFilterFields.js +1 -2
- package/content/plugins/utils/renderSortEnum.d.ts +2 -2
- package/content/plugins/utils/renderSortEnum.js +1 -2
- package/content/plugins/validators/dateGte.js +1 -2
- package/content/plugins/validators/dateLte.js +1 -2
- package/content/plugins/validators/gte.js +1 -2
- package/content/plugins/validators/in.js +1 -2
- package/content/plugins/validators/index.js +1 -2
- package/content/plugins/validators/lte.js +1 -2
- package/content/plugins/validators/maxLength.js +1 -2
- package/content/plugins/validators/minLength.js +1 -2
- package/content/plugins/validators/pattern.js +1 -2
- package/content/plugins/validators/patternPlugins/email.js +1 -2
- package/content/plugins/validators/patternPlugins/index.js +1 -2
- package/content/plugins/validators/patternPlugins/lowerCase.js +1 -2
- package/content/plugins/validators/patternPlugins/upperCase.js +1 -2
- package/content/plugins/validators/patternPlugins/url.js +1 -2
- package/content/plugins/validators/required.js +1 -2
- package/content/plugins/validators/timeGte.js +1 -2
- package/content/plugins/validators/timeLte.js +1 -2
- package/index.d.ts +12 -0
- package/index.js +66 -0
- package/migrateCMSPermissions.d.ts +2 -2
- package/migrateCMSPermissions.js +1 -2
- package/package.json +23 -21
- package/plugins/context.js +1 -2
- package/plugins/crud/index.d.ts +6 -2
- package/plugins/crud/index.js +69 -6
- package/plugins/crud/settings.crud.d.ts +10 -4
- package/plugins/crud/settings.crud.js +64 -77
- package/plugins/crud/system.crud.d.ts +10 -4
- package/plugins/crud/system.crud.js +139 -126
- package/plugins/graphql/system.js +5 -6
- package/plugins/graphql.d.ts +1 -2
- package/plugins/graphql.js +49 -50
- package/plugins/upgrades/index.js +1 -2
- package/plugins/upgrades/v5.5.0/helpers.js +1 -2
- package/plugins/upgrades/v5.5.0/index.js +3 -4
- package/transformers.js +1 -2
- package/types.d.ts +742 -1232
- package/types.js +104 -254
- package/utils.d.ts +4 -11
- package/utils.js +2 -49
- package/content/contextSetup.js.map +0 -1
- package/content/graphQLHandlerFactory.js.map +0 -1
- package/content/index.d.ts +0 -5
- package/content/index.js +0 -37
- package/content/index.js.map +0 -1
- package/content/plugins/ContentModelGroupPlugin.d.ts +0 -7
- package/content/plugins/ContentModelGroupPlugin.js.map +0 -1
- package/content/plugins/ContentModelPlugin.d.ts +0 -7
- package/content/plugins/ContentModelPlugin.js.map +0 -1
- package/content/plugins/buildSchemaPlugins.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterCreate.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterCreate.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterCreate.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterCreateRevisionFrom.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterCreateRevisionFrom.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterCreateRevisionFrom.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterDelete.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterDelete.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterDelete.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterDeleteRevision.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterDeleteRevision.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterDeleteRevision.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterPublish.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterPublish.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterPublish.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterRequestChanges.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterRequestChanges.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterRequestChanges.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterRequestReview.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterRequestReview.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterRequestReview.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterUnpublish.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterUnpublish.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterUnpublish.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/afterUpdate.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/afterUpdate.hook.js +0 -15
- package/content/plugins/crud/contentEntry/afterUpdate.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeCreate.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeCreate.hook.js +0 -18
- package/content/plugins/crud/contentEntry/beforeCreate.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeCreateRevisionFrom.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeCreateRevisionFrom.hook.js +0 -15
- package/content/plugins/crud/contentEntry/beforeCreateRevisionFrom.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeDelete.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeDelete.hook.js +0 -15
- package/content/plugins/crud/contentEntry/beforeDelete.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeDeleteRevision.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeDeleteRevision.hook.js +0 -15
- package/content/plugins/crud/contentEntry/beforeDeleteRevision.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforePublish.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforePublish.hook.js +0 -15
- package/content/plugins/crud/contentEntry/beforePublish.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeRequestChanges.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeRequestChanges.hook.js +0 -15
- package/content/plugins/crud/contentEntry/beforeRequestChanges.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeRequestReview.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeRequestReview.hook.js +0 -15
- package/content/plugins/crud/contentEntry/beforeRequestReview.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeUnpublish.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeUnpublish.hook.js +0 -15
- package/content/plugins/crud/contentEntry/beforeUnpublish.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/beforeUpdate.hook.d.ts +0 -2
- package/content/plugins/crud/contentEntry/beforeUpdate.hook.js +0 -18
- package/content/plugins/crud/contentEntry/beforeUpdate.hook.js.map +0 -1
- package/content/plugins/crud/contentEntry/entryDataValidation.js.map +0 -1
- package/content/plugins/crud/contentEntry/hooks.d.ts +0 -18
- package/content/plugins/crud/contentEntry/hooks.js +0 -240
- package/content/plugins/crud/contentEntry/hooks.js.map +0 -1
- package/content/plugins/crud/contentEntry/markLockedFields.js.map +0 -1
- package/content/plugins/crud/contentEntry/runContentEntryLifecycleHooks.d.ts +0 -4
- package/content/plugins/crud/contentEntry/runContentEntryLifecycleHooks.js +0 -24
- package/content/plugins/crud/contentEntry/runContentEntryLifecycleHooks.js.map +0 -1
- package/content/plugins/crud/contentEntry.crud.js.map +0 -1
- package/content/plugins/crud/contentModel/afterCreate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModel/afterCreate.hook.js +0 -24
- package/content/plugins/crud/contentModel/afterCreate.hook.js.map +0 -1
- package/content/plugins/crud/contentModel/afterDelete.hook.d.ts +0 -7
- package/content/plugins/crud/contentModel/afterDelete.hook.js +0 -24
- package/content/plugins/crud/contentModel/afterDelete.hook.js.map +0 -1
- package/content/plugins/crud/contentModel/afterUpdate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModel/afterUpdate.hook.js +0 -24
- package/content/plugins/crud/contentModel/afterUpdate.hook.js.map +0 -1
- package/content/plugins/crud/contentModel/beforeCreate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModel/beforeCreate.hook.js +0 -137
- package/content/plugins/crud/contentModel/beforeCreate.hook.js.map +0 -1
- package/content/plugins/crud/contentModel/beforeDelete.hook.d.ts +0 -7
- package/content/plugins/crud/contentModel/beforeDelete.hook.js +0 -58
- package/content/plugins/crud/contentModel/beforeDelete.hook.js.map +0 -1
- package/content/plugins/crud/contentModel/beforeUpdate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModel/beforeUpdate.hook.js +0 -141
- package/content/plugins/crud/contentModel/beforeUpdate.hook.js.map +0 -1
- package/content/plugins/crud/contentModel/contentModelManagerFactory.js.map +0 -1
- package/content/plugins/crud/contentModel/createFieldModels.js.map +0 -1
- package/content/plugins/crud/contentModel/hooks.d.ts +0 -6
- package/content/plugins/crud/contentModel/hooks.js +0 -84
- package/content/plugins/crud/contentModel/hooks.js.map +0 -1
- package/content/plugins/crud/contentModel/idValidation.js.map +0 -1
- package/content/plugins/crud/contentModel/models.js.map +0 -1
- package/content/plugins/crud/contentModel/runContentModelLifecycleHooks.d.ts +0 -2
- package/content/plugins/crud/contentModel/runContentModelLifecycleHooks.js +0 -24
- package/content/plugins/crud/contentModel/runContentModelLifecycleHooks.js.map +0 -1
- package/content/plugins/crud/contentModel/validateLayout.js.map +0 -1
- package/content/plugins/crud/contentModel.crud.js.map +0 -1
- package/content/plugins/crud/contentModelGroup/afterCreate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModelGroup/afterCreate.hook.js +0 -24
- package/content/plugins/crud/contentModelGroup/afterCreate.hook.js.map +0 -1
- package/content/plugins/crud/contentModelGroup/afterDelete.hook.d.ts +0 -8
- package/content/plugins/crud/contentModelGroup/afterDelete.hook.js +0 -22
- package/content/plugins/crud/contentModelGroup/afterDelete.hook.js.map +0 -1
- package/content/plugins/crud/contentModelGroup/afterUpdate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModelGroup/afterUpdate.hook.js +0 -26
- package/content/plugins/crud/contentModelGroup/afterUpdate.hook.js.map +0 -1
- package/content/plugins/crud/contentModelGroup/beforeCreate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModelGroup/beforeCreate.hook.js +0 -87
- package/content/plugins/crud/contentModelGroup/beforeCreate.hook.js.map +0 -1
- package/content/plugins/crud/contentModelGroup/beforeDelete.hook.d.ts +0 -7
- package/content/plugins/crud/contentModelGroup/beforeDelete.hook.js +0 -46
- package/content/plugins/crud/contentModelGroup/beforeDelete.hook.js.map +0 -1
- package/content/plugins/crud/contentModelGroup/beforeUpdate.hook.d.ts +0 -7
- package/content/plugins/crud/contentModelGroup/beforeUpdate.hook.js +0 -35
- package/content/plugins/crud/contentModelGroup/beforeUpdate.hook.js.map +0 -1
- package/content/plugins/crud/contentModelGroup.crud.js.map +0 -1
- package/content/plugins/graphqlFields/boolean.js.map +0 -1
- package/content/plugins/graphqlFields/datetime.js.map +0 -1
- package/content/plugins/graphqlFields/file.js.map +0 -1
- package/content/plugins/graphqlFields/index.js.map +0 -1
- package/content/plugins/graphqlFields/longText.js.map +0 -1
- package/content/plugins/graphqlFields/number.js.map +0 -1
- package/content/plugins/graphqlFields/object.js.map +0 -1
- package/content/plugins/graphqlFields/ref.js.map +0 -1
- package/content/plugins/graphqlFields/richText.js.map +0 -1
- package/content/plugins/graphqlFields/text.js.map +0 -1
- package/content/plugins/internalSecurity/InternalAuthenticationPlugin.js.map +0 -1
- package/content/plugins/internalSecurity/InternalAuthorizationPlugin.js.map +0 -1
- package/content/plugins/modelManager/DefaultContentModelManager.d.ts +0 -15
- package/content/plugins/modelManager/DefaultContentModelManager.js +0 -63
- package/content/plugins/modelManager/DefaultContentModelManager.js.map +0 -1
- package/content/plugins/modelManager/index.js.map +0 -1
- package/content/plugins/schema/baseSchema.js.map +0 -1
- package/content/plugins/schema/contentEntries.js.map +0 -1
- package/content/plugins/schema/contentModelGroups.js.map +0 -1
- package/content/plugins/schema/contentModels.js.map +0 -1
- package/content/plugins/schema/createFieldResolvers.js.map +0 -1
- package/content/plugins/schema/createManageResolvers.js.map +0 -1
- package/content/plugins/schema/createManageSDL.js.map +0 -1
- package/content/plugins/schema/createPreviewResolvers.js.map +0 -1
- package/content/plugins/schema/createReadResolvers.js.map +0 -1
- package/content/plugins/schema/createReadSDL.js.map +0 -1
- package/content/plugins/schema/resolvers/commonFieldResolvers.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveCreate.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveCreateFrom.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveDelete.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveGet.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveGetByIds.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveGetRevisions.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveList.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolvePublish.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveRequestChanges.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveRequestReview.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveUnpublish.js.map +0 -1
- package/content/plugins/schema/resolvers/manage/resolveUpdate.js.map +0 -1
- package/content/plugins/schema/resolvers/preview/resolveGet.js.map +0 -1
- package/content/plugins/schema/resolvers/preview/resolveList.js.map +0 -1
- package/content/plugins/schema/resolvers/read/resolveGet.js.map +0 -1
- package/content/plugins/schema/resolvers/read/resolveList.js.map +0 -1
- package/content/plugins/schema/schemaPlugins.js.map +0 -1
- package/content/plugins/storage/default.js.map +0 -1
- package/content/plugins/storage/object.js.map +0 -1
- package/content/plugins/utils/createTypeName.js.map +0 -1
- package/content/plugins/utils/entryStorage.js.map +0 -1
- package/content/plugins/utils/getEntryTitle.js.map +0 -1
- package/content/plugins/utils/getSchemaFromFieldPlugins.js.map +0 -1
- package/content/plugins/utils/pluralizedTypeName.js.map +0 -1
- package/content/plugins/utils/renderFields.js.map +0 -1
- package/content/plugins/utils/renderGetFilterFields.js.map +0 -1
- package/content/plugins/utils/renderInputFields.js.map +0 -1
- package/content/plugins/utils/renderListFilterFields.js.map +0 -1
- package/content/plugins/utils/renderSortEnum.js.map +0 -1
- package/content/plugins/validators/dateGte.js.map +0 -1
- package/content/plugins/validators/dateLte.js.map +0 -1
- package/content/plugins/validators/gte.js.map +0 -1
- package/content/plugins/validators/in.js.map +0 -1
- package/content/plugins/validators/index.js.map +0 -1
- package/content/plugins/validators/lte.js.map +0 -1
- package/content/plugins/validators/maxLength.js.map +0 -1
- package/content/plugins/validators/minLength.js.map +0 -1
- package/content/plugins/validators/pattern.js.map +0 -1
- package/content/plugins/validators/patternPlugins/email.js.map +0 -1
- package/content/plugins/validators/patternPlugins/index.js.map +0 -1
- package/content/plugins/validators/patternPlugins/lowerCase.js.map +0 -1
- package/content/plugins/validators/patternPlugins/upperCase.js.map +0 -1
- package/content/plugins/validators/patternPlugins/url.js.map +0 -1
- package/content/plugins/validators/required.js.map +0 -1
- package/content/plugins/validators/timeGte.js.map +0 -1
- package/content/plugins/validators/timeLte.js.map +0 -1
- package/migrateCMSPermissions.js.map +0 -1
- package/plugins/InstallationPlugin.d.ts +0 -19
- package/plugins/InstallationPlugin.js +0 -39
- package/plugins/InstallationPlugin.js.map +0 -1
- package/plugins/context.js.map +0 -1
- package/plugins/crud/index.js.map +0 -1
- package/plugins/crud/settings.crud.js.map +0 -1
- package/plugins/crud/system.crud.js.map +0 -1
- package/plugins/graphql/system.js.map +0 -1
- package/plugins/graphql.js.map +0 -1
- package/plugins/index.d.ts +0 -2
- package/plugins/index.js +0 -25
- package/plugins/index.js.map +0 -1
- package/plugins/upgrades/index.js.map +0 -1
- package/plugins/upgrades/v5.5.0/helpers.js.map +0 -1
- package/plugins/upgrades/v5.5.0/index.js.map +0 -1
- package/transformers.js.map +0 -1
- package/types.js.map +0 -1
- package/utils.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/content/graphQLHandlerFactory.ts"],"names":["DEFAULT_HEADERS","respond","http","result","response","body","JSON","stringify","statusCode","headers","schemaList","Map","generateCacheKey","args","context","locale","type","lastModelChange","cms","settings","getContentModelLastChange","code","toISOString","join","generateSchema","plugins","register","typeDefs","resolvers","schemaPlugins","byType","GraphQLSchemaPlugin","pl","push","schema","getSchema","tenantId","tenancy","getCurrentTenant","id","cacheKey","has","set","key","cache","get","checkEndpointAccess","permission","security","getPermission","NotAuthorizedError","data","reason","graphQLHandlerFactory","options","debug","name","handle","next","request","path","parameters","method","ex","NotAuthorizedResponse","getLocale","parse"],"mappings":"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","sourcesContent":["import { boolean } from \"boolean\";\nimport { GraphQLSchema } from \"graphql\";\nimport { makeExecutableSchema } from \"@graphql-tools/schema\";\nimport { CmsContext } from \"../types\";\nimport { I18NLocale } from \"@webiny/api-i18n/types\";\nimport { NotAuthorizedError, NotAuthorizedResponse } from \"@webiny/api-security\";\nimport { PluginCollection } from \"@webiny/plugins/types\";\nimport debugPlugins from \"@webiny/handler-graphql/debugPlugins\";\nimport processRequestBody from \"@webiny/handler-graphql/processRequestBody\";\nimport buildSchemaPlugins from \"./plugins/buildSchemaPlugins\";\nimport { GraphQLSchemaPlugin } from \"@webiny/handler-graphql/plugins\";\n\ninterface CreateGraphQLHandlerOptions {\n debug?: boolean;\n}\ninterface SchemaCache {\n key: string;\n schema: GraphQLSchema;\n}\ninterface Args {\n context: CmsContext;\n type: string;\n locale: I18NLocale;\n}\ninterface ParsedBody {\n query: string;\n variables: any;\n operationName: string;\n}\n\nconst DEFAULT_HEADERS = {\n \"Access-Control-Allow-Origin\": \"*\",\n \"Access-Control-Allow-Headers\": \"*\",\n \"Access-Control-Allow-Methods\": \"OPTIONS,POST\",\n \"Content-Type\": \"application/json\"\n};\n\nconst respond = (http, result: unknown) => {\n return http.response({\n body: JSON.stringify(result),\n statusCode: 200,\n headers: DEFAULT_HEADERS\n });\n};\nconst schemaList = new Map<string, SchemaCache>();\n\nconst generateCacheKey = async (args: Args): Promise<string> => {\n const { context, locale, type } = args;\n const lastModelChange = await context.cms.settings.getContentModelLastChange();\n return [locale.code, type, lastModelChange.toISOString()].join(\"#\");\n};\n\nconst generateSchema = async (args: Args): Promise<GraphQLSchema> => {\n const { context } = args;\n\n context.plugins.register(await buildSchemaPlugins(context));\n\n const typeDefs = [];\n const resolvers = [];\n\n // Get schema definitions from plugins\n const schemaPlugins = context.plugins.byType<GraphQLSchemaPlugin>(GraphQLSchemaPlugin.type);\n for (const pl of schemaPlugins) {\n typeDefs.push(pl.schema.typeDefs);\n resolvers.push(pl.schema.resolvers);\n }\n\n return makeExecutableSchema({\n typeDefs,\n resolvers\n });\n};\n\n// gets an existing schema or rewrites existing one or creates a completely new one\n// depending on the schemaId created from type and locale parameters\nconst getSchema = async (args: Args): Promise<GraphQLSchema> => {\n const { context, type, locale } = args;\n const tenantId = context.tenancy.getCurrentTenant().id;\n const id = `${tenantId}#${type}#${locale.code}`;\n\n const cacheKey = await generateCacheKey(args);\n if (!schemaList.has(id)) {\n const schema = await generateSchema(args);\n\n schemaList.set(id, {\n key: cacheKey,\n schema\n });\n return schema;\n }\n const cache = schemaList.get(id);\n if (cache.key === cacheKey) {\n return cache.schema;\n }\n const schema = await generateSchema(args);\n schemaList.set(id, {\n key: cacheKey,\n schema\n });\n return schema;\n};\n\nconst checkEndpointAccess = async (context: CmsContext): Promise<void> => {\n const permission = await context.security.getPermission(`cms.endpoint.${context.cms.type}`);\n if (!permission) {\n throw new NotAuthorizedError({\n data: {\n reason: `Not allowed to access \"${context.cms.type}\" endpoint.`\n }\n });\n }\n};\n\nexport const graphQLHandlerFactory = (\n options: CreateGraphQLHandlerOptions = {}\n): PluginCollection => {\n const debug = boolean(options.debug);\n\n return [\n ...(debug ? debugPlugins() : []),\n {\n type: \"handler\",\n name: \"handler-graphql-content-model\",\n async handle(context: CmsContext, next) {\n const { http } = context;\n\n if (!http || !http.request || !http.request.path || !http.request.path.parameters) {\n return next();\n }\n\n if (http.request.method === \"OPTIONS\") {\n return http.response({\n statusCode: 204,\n headers: DEFAULT_HEADERS\n });\n }\n\n if (http.request.method !== \"POST\") {\n return next();\n }\n\n try {\n await checkEndpointAccess(context);\n } catch (ex) {\n return respond(http, new NotAuthorizedResponse(ex));\n }\n\n const schema = await getSchema({\n context,\n locale: context.cms.getLocale(),\n type: context.cms.type\n });\n\n const body: ParsedBody | ParsedBody[] = JSON.parse(http.request.body);\n\n const result = await processRequestBody(body, schema, context);\n return respond(http, result);\n }\n }\n ];\n};\n"],"file":"graphQLHandlerFactory.js"}
|
package/content/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
interface CmsContentPluginsIndexArgs {
|
|
2
|
-
debug?: boolean;
|
|
3
|
-
}
|
|
4
|
-
declare const _default: (options?: CmsContentPluginsIndexArgs) => (import("@webiny/plugins/types").PluginCollection | import("../types").ContentModelManagerPlugin | import("../types").CmsModelFieldToStoragePlugin<Record<string, any>, Record<string, any>> | import("@webiny/handler/plugins/ContextPlugin").ContextPlugin<import("../types").CmsContext> | import("@webiny/handler/types").ContextPlugin<import("../types").CmsContext, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> | (import("@webiny/handler/plugins/ContextPlugin").ContextPlugin<import("../types").CmsContext> | import("@webiny/handler/types").ContextPlugin<import("../types").CmsContext, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, import("@webiny/handler/types").Context<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>)[])[];
|
|
5
|
-
export default _default;
|
package/content/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _contentModelGroup = _interopRequireDefault(require("./plugins/crud/contentModelGroup.crud"));
|
|
11
|
-
|
|
12
|
-
var _contentModel = _interopRequireDefault(require("./plugins/crud/contentModel.crud"));
|
|
13
|
-
|
|
14
|
-
var _contentEntry = _interopRequireDefault(require("./plugins/crud/contentEntry.crud"));
|
|
15
|
-
|
|
16
|
-
var _crud = _interopRequireDefault(require("../plugins/crud"));
|
|
17
|
-
|
|
18
|
-
var _graphQLHandlerFactory = require("./graphQLHandlerFactory");
|
|
19
|
-
|
|
20
|
-
var _contextSetup = _interopRequireDefault(require("./contextSetup"));
|
|
21
|
-
|
|
22
|
-
var _modelManager = _interopRequireDefault(require("./plugins/modelManager"));
|
|
23
|
-
|
|
24
|
-
var _graphqlFields = _interopRequireDefault(require("./plugins/graphqlFields"));
|
|
25
|
-
|
|
26
|
-
var _default2 = _interopRequireDefault(require("./plugins/storage/default"));
|
|
27
|
-
|
|
28
|
-
var _object = _interopRequireDefault(require("./plugins/storage/object"));
|
|
29
|
-
|
|
30
|
-
var _validators = _interopRequireDefault(require("./plugins/validators"));
|
|
31
|
-
|
|
32
|
-
var _default = (options = {}) => [(0, _contextSetup.default)(), (0, _modelManager.default)(), (0, _crud.default)(), (0, _contentModelGroup.default)(), (0, _contentModel.default)(), (0, _contentEntry.default)(), (0, _graphQLHandlerFactory.graphQLHandlerFactory)(options), (0, _graphqlFields.default)(), (0, _validators.default)(), (0, _default2.default)(), (0, _object.default)() // new InternalAuthenticationPlugin("read-api-key"),
|
|
33
|
-
// new InternalAuthorizationPlugin("read-api-key")
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
exports.default = _default;
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
package/content/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/content/index.ts"],"names":["options"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;eAQe,CAACA,OAAmC,GAAG,EAAvC,KAA8C,CACzD,4BADyD,EAEzD,4BAFyD,EAGzD,oBAHyD,EAIzD,iCAJyD,EAKzD,4BALyD,EAMzD,4BANyD,EAOzD,kDAAsBA,OAAtB,CAPyD,EAQzD,6BARyD,EASzD,0BATyD,EAUzD,wBAVyD,EAWzD,sBAXyD,CAYzD;AACA;AAbyD,C","sourcesContent":["import contentModelGroupCrud from \"./plugins/crud/contentModelGroup.crud\";\nimport contentModelCrud from \"./plugins/crud/contentModel.crud\";\nimport contentEntry from \"./plugins/crud/contentEntry.crud\";\nimport pluginsCrudSetup from \"../plugins/crud\";\nimport { graphQLHandlerFactory } from \"./graphQLHandlerFactory\";\nimport contextSetup from \"./contextSetup\";\nimport modelManager from \"./plugins/modelManager\";\nimport fieldTypePlugins from \"./plugins/graphqlFields\";\nimport defaultStoragePlugin from \"./plugins/storage/default\";\nimport objectStoragePlugin from \"./plugins/storage/object\";\nimport validatorsPlugins from \"./plugins/validators\";\n// import { InternalAuthenticationPlugin } from \"./plugins/internalSecurity/InternalAuthenticationPlugin\";\n// import { InternalAuthorizationPlugin } from \"./plugins/internalSecurity/InternalAuthorizationPlugin\";\n\ninterface CmsContentPluginsIndexArgs {\n debug?: boolean;\n}\n\nexport default (options: CmsContentPluginsIndexArgs = {}) => [\n contextSetup(),\n modelManager(),\n pluginsCrudSetup(),\n contentModelGroupCrud(),\n contentModelCrud(),\n contentEntry(),\n graphQLHandlerFactory(options),\n fieldTypePlugins(),\n validatorsPlugins(),\n defaultStoragePlugin(),\n objectStoragePlugin()\n // new InternalAuthenticationPlugin(\"read-api-key\"),\n // new InternalAuthorizationPlugin(\"read-api-key\")\n];\n"],"file":"index.js"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Plugin } from "@webiny/plugins";
|
|
2
|
-
import { CmsContentModelGroup } from "../../types";
|
|
3
|
-
export declare class ContentModelGroupPlugin extends Plugin {
|
|
4
|
-
static readonly type = "cms-content-model-group";
|
|
5
|
-
contentModelGroup: CmsContentModelGroup;
|
|
6
|
-
constructor(contentModelGroup: CmsContentModelGroup);
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/content/plugins/ContentModelGroupPlugin.ts"],"names":["ContentModelGroupPlugin","Plugin","constructor","contentModelGroup"],"mappings":";;;;;;;;;;;AAAA;;AAGO,MAAMA,uBAAN,SAAsCC,eAAtC,CAA6C;AAIhDC,EAAAA,WAAW,CAACC,iBAAD,EAA0C;AACjD;AADiD;AAEjD,SAAKA,iBAAL,GAAyBA,iBAAzB;AACH;;AAP+C;;;8BAAvCH,uB,UACqB,yB","sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { CmsContentModelGroup } from \"../../types\";\n\nexport class ContentModelGroupPlugin extends Plugin {\n public static readonly type = \"cms-content-model-group\";\n contentModelGroup: CmsContentModelGroup;\n\n constructor(contentModelGroup: CmsContentModelGroup) {\n super();\n this.contentModelGroup = contentModelGroup;\n }\n}\n"],"file":"ContentModelGroupPlugin.js"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Plugin } from "@webiny/plugins";
|
|
2
|
-
import { CmsContentModel } from "../../types";
|
|
3
|
-
export declare class ContentModelPlugin extends Plugin {
|
|
4
|
-
static readonly type = "cms-content-model";
|
|
5
|
-
contentModel: CmsContentModel;
|
|
6
|
-
constructor(contentModel: CmsContentModel);
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/content/plugins/ContentModelPlugin.ts"],"names":["ContentModelPlugin","Plugin","constructor","contentModel"],"mappings":";;;;;;;;;;;AAAA;;AAGO,MAAMA,kBAAN,SAAiCC,eAAjC,CAAwC;AAI3CC,EAAAA,WAAW,CAACC,YAAD,EAAgC;AACvC;AADuC;AAEvC,SAAKA,YAAL,GAAoBA,YAApB;AACH;;AAP0C;;;8BAAlCH,kB,UACqB,mB","sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { CmsContentModel } from \"../../types\";\n\nexport class ContentModelPlugin extends Plugin {\n public static readonly type = \"cms-content-model\";\n contentModel: CmsContentModel;\n\n constructor(contentModel: CmsContentModel) {\n super();\n this.contentModel = contentModel;\n }\n}\n"],"file":"ContentModelPlugin.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/content/plugins/buildSchemaPlugins.ts"],"names":["context","filter","Boolean"],"mappings":";;;;;;;;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;AACA;AACA;eACe,MAAOA,OAAP,IAA2E;AACtF,SAAO,CACH;AACA,2BAAWA,OAAX,CAFG,EAGH,4BAAcA,OAAd,CAHG,EAIH,6BAAeA,OAAf,CAJG,EAKH,iCAAmBA,OAAnB,CALG,EAMH;AACA,MAAI,MAAM,0CAAsBA,OAAtB,CAAV,CAPG,EAQLC,MARK,CAQEC,OARF,CAAP;AASH,C","sourcesContent":["import { GraphQLSchemaPlugin } from \"@webiny/handler-graphql/plugins/GraphQLSchemaPlugin\";\nimport { CmsContext } from \"~/types\";\nimport contentModels from \"./schema/contentModels\";\nimport contentEntries from \"./schema/contentEntries\";\nimport contentModelGroups from \"./schema/contentModelGroups\";\nimport baseSchema from \"./schema/baseSchema\";\nimport { generateSchemaPlugins } from \"./schema/schemaPlugins\";\n\n/**\n * This factory is called whenever we need to generate graphql-schema plugins using the current context.\n */\nexport default async (context: CmsContext): Promise<GraphQLSchemaPlugin<CmsContext>[]> => {\n return [\n // Base GQL types and scalars\n baseSchema(context),\n contentModels(context),\n contentEntries(context),\n contentModelGroups(context),\n // Dynamic schema\n ...(await generateSchemaPlugins(context))\n ].filter(Boolean);\n};\n"],"file":"buildSchemaPlugins.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterCreateHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterCreateHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterCreate", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterCreateHook = afterCreateHook;
|
|
15
|
-
//# sourceMappingURL=afterCreate.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterCreate.hook.ts"],"names":["afterCreateHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,eAAe,GAAG,MAAOC,IAAP,IAAmE;AAC9F,QAAM,kEAA8B,aAA9B,EAA6CA,IAA7C,CAAN;AACH,CAFM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryAfterCreateHookArgs } from \"../../../../types\";\n\nexport const afterCreateHook = async (args: CmsContentEntryAfterCreateHookArgs): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterCreate\", args);\n};\n"],"file":"afterCreate.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterCreateRevisionFromHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterCreateRevisionFromHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterCreateRevisionFrom", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterCreateRevisionFromHook = afterCreateRevisionFromHook;
|
|
15
|
-
//# sourceMappingURL=afterCreateRevisionFrom.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterCreateRevisionFrom.hook.ts"],"names":["afterCreateRevisionFromHook","args"],"mappings":";;;;;;;AACA;;AAEO,MAAMA,2BAA2B,GAAG,MACvCC,IADuC,IAEvB;AAChB,QAAM,kEAA8B,yBAA9B,EAAyDA,IAAzD,CAAN;AACH,CAJM","sourcesContent":["import { CmsContentEntryAfterCreateFromRevisionHookArgs } from \"../../../../types\";\nimport { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\n\nexport const afterCreateRevisionFromHook = async (\n args: CmsContentEntryAfterCreateFromRevisionHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterCreateRevisionFrom\", args);\n};\n"],"file":"afterCreateRevisionFrom.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterDeleteHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterDeleteHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterDelete", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterDeleteHook = afterDeleteHook;
|
|
15
|
-
//# sourceMappingURL=afterDelete.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterDelete.hook.ts"],"names":["afterDeleteHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,eAAe,GAAG,MAAOC,IAAP,IAAmE;AAC9F,QAAM,kEAA8B,aAA9B,EAA6CA,IAA7C,CAAN;AACH,CAFM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryAfterDeleteHookArgs } from \"../../../../types\";\n\nexport const afterDeleteHook = async (args: CmsContentEntryAfterDeleteHookArgs): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterDelete\", args);\n};\n"],"file":"afterDelete.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterDeleteRevisionHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterDeleteRevisionHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterDeleteRevision", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterDeleteRevisionHook = afterDeleteRevisionHook;
|
|
15
|
-
//# sourceMappingURL=afterDeleteRevision.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterDeleteRevision.hook.ts"],"names":["afterDeleteRevisionHook","args"],"mappings":";;;;;;;AACA;;AAEO,MAAMA,uBAAuB,GAAG,MACnCC,IADmC,IAEnB;AAChB,QAAM,kEAA8B,qBAA9B,EAAqDA,IAArD,CAAN;AACH,CAJM","sourcesContent":["import { CmsContentEntryAfterDeleteRevisionHookArgs } from \"../../../../types\";\nimport { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\n\nexport const afterDeleteRevisionHook = async (\n args: CmsContentEntryAfterDeleteRevisionHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterDeleteRevision\", args);\n};\n"],"file":"afterDeleteRevision.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterPublishHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterPublishHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterPublish", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterPublishHook = afterPublishHook;
|
|
15
|
-
//# sourceMappingURL=afterPublish.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterPublish.hook.ts"],"names":["afterPublishHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,gBAAgB,GAAG,MAC5BC,IAD4B,IAEZ;AAChB,QAAM,kEAA8B,cAA9B,EAA8CA,IAA9C,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryAfterPublishHookArgs } from \"../../../../types\";\n\nexport const afterPublishHook = async (\n args: CmsContentEntryAfterPublishHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterPublish\", args);\n};\n"],"file":"afterPublish.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterRequestChangesHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterRequestChangesHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterRequestChanges", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterRequestChangesHook = afterRequestChangesHook;
|
|
15
|
-
//# sourceMappingURL=afterRequestChanges.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterRequestChanges.hook.ts"],"names":["afterRequestChangesHook","args"],"mappings":";;;;;;;AACA;;AAEO,MAAMA,uBAAuB,GAAG,MACnCC,IADmC,IAEnB;AAChB,QAAM,kEAA8B,qBAA9B,EAAqDA,IAArD,CAAN;AACH,CAJM","sourcesContent":["import { CmsContentEntryAfterRequestChangesHookArgs } from \"../../../../types\";\nimport { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\n\nexport const afterRequestChangesHook = async (\n args: CmsContentEntryAfterRequestChangesHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterRequestChanges\", args);\n};\n"],"file":"afterRequestChanges.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterRequestReviewHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterRequestReviewHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterRequestReview", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterRequestReviewHook = afterRequestReviewHook;
|
|
15
|
-
//# sourceMappingURL=afterRequestReview.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterRequestReview.hook.ts"],"names":["afterRequestReviewHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,sBAAsB,GAAG,MAClCC,IADkC,IAElB;AAChB,QAAM,kEAA8B,oBAA9B,EAAoDA,IAApD,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryAfterRequestReviewHookArgs } from \"../../../../types\";\n\nexport const afterRequestReviewHook = async (\n args: CmsContentEntryAfterRequestReviewHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterRequestReview\", args);\n};\n"],"file":"afterRequestReview.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterUnpublishHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterUnpublishHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterUnpublish", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterUnpublishHook = afterUnpublishHook;
|
|
15
|
-
//# sourceMappingURL=afterUnpublish.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterUnpublish.hook.ts"],"names":["afterUnpublishHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,kBAAkB,GAAG,MAC9BC,IAD8B,IAEd;AAChB,QAAM,kEAA8B,gBAA9B,EAAgDA,IAAhD,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryAfterUnpublishHookArgs } from \"../../../../types\";\n\nexport const afterUnpublishHook = async (\n args: CmsContentEntryAfterUnpublishHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterUnpublish\", args);\n};\n"],"file":"afterUnpublish.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.afterUpdateHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const afterUpdateHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("afterUpdate", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.afterUpdateHook = afterUpdateHook;
|
|
15
|
-
//# sourceMappingURL=afterUpdate.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/afterUpdate.hook.ts"],"names":["afterUpdateHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,eAAe,GAAG,MAAOC,IAAP,IAAmE;AAC9F,QAAM,kEAA8B,aAA9B,EAA6CA,IAA7C,CAAN;AACH,CAFM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryAfterUpdateHookArgs } from \"../../../../types\";\n\nexport const afterUpdateHook = async (args: CmsContentEntryAfterUpdateHookArgs): Promise<void> => {\n await runContentEntryLifecycleHooks(\"afterUpdate\", args);\n};\n"],"file":"afterUpdate.hook.js"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeCreateHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _markLockedFields = require("./markLockedFields");
|
|
9
|
-
|
|
10
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
11
|
-
|
|
12
|
-
const beforeCreateHook = async args => {
|
|
13
|
-
await (0, _markLockedFields.markLockedFields)(args);
|
|
14
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeCreate", args);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.beforeCreateHook = beforeCreateHook;
|
|
18
|
-
//# sourceMappingURL=beforeCreate.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeCreate.hook.ts"],"names":["beforeCreateHook","args"],"mappings":";;;;;;;AACA;;AACA;;AAEO,MAAMA,gBAAgB,GAAG,MAC5BC,IAD4B,IAEZ;AAChB,QAAM,wCAAiBA,IAAjB,CAAN;AACA,QAAM,kEAA8B,cAA9B,EAA8CA,IAA9C,CAAN;AACH,CALM","sourcesContent":["import { CmsContentEntryBeforeCreateHookArgs } from \"../../../../types\";\nimport { markLockedFields } from \"./markLockedFields\";\nimport { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\n\nexport const beforeCreateHook = async (\n args: CmsContentEntryBeforeCreateHookArgs\n): Promise<void> => {\n await markLockedFields(args);\n await runContentEntryLifecycleHooks(\"beforeCreate\", args);\n};\n"],"file":"beforeCreate.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeCreateRevisionFromHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const beforeCreateRevisionFromHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeCreateRevisionFrom", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.beforeCreateRevisionFromHook = beforeCreateRevisionFromHook;
|
|
15
|
-
//# sourceMappingURL=beforeCreateRevisionFrom.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeCreateRevisionFrom.hook.ts"],"names":["beforeCreateRevisionFromHook","args"],"mappings":";;;;;;;AACA;;AAEO,MAAMA,4BAA4B,GAAG,MACxCC,IADwC,IAExB;AAChB,QAAM,kEAA8B,0BAA9B,EAA0DA,IAA1D,CAAN;AACH,CAJM","sourcesContent":["import { CmsContentEntryBeforeCreateFromRevisionHookArgs } from \"../../../../types\";\nimport { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\n\nexport const beforeCreateRevisionFromHook = async (\n args: CmsContentEntryBeforeCreateFromRevisionHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"beforeCreateRevisionFrom\", args);\n};\n"],"file":"beforeCreateRevisionFrom.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeDeleteHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const beforeDeleteHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeDelete", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.beforeDeleteHook = beforeDeleteHook;
|
|
15
|
-
//# sourceMappingURL=beforeDelete.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeDelete.hook.ts"],"names":["beforeDeleteHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,gBAAgB,GAAG,MAC5BC,IAD4B,IAEZ;AAChB,QAAM,kEAA8B,cAA9B,EAA8CA,IAA9C,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryBeforeDeleteHookArgs } from \"../../../../types\";\n\nexport const beforeDeleteHook = async (\n args: CmsContentEntryBeforeDeleteHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"beforeDelete\", args);\n};\n"],"file":"beforeDelete.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeDeleteRevisionHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const beforeDeleteRevisionHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeDeleteRevision", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.beforeDeleteRevisionHook = beforeDeleteRevisionHook;
|
|
15
|
-
//# sourceMappingURL=beforeDeleteRevision.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeDeleteRevision.hook.ts"],"names":["beforeDeleteRevisionHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,wBAAwB,GAAG,MACpCC,IADoC,IAEpB;AAChB,QAAM,kEAA8B,sBAA9B,EAAsDA,IAAtD,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryBeforeDeleteRevisionHookArgs } from \"../../../../types\";\n\nexport const beforeDeleteRevisionHook = async (\n args: CmsContentEntryBeforeDeleteRevisionHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"beforeDeleteRevision\", args);\n};\n"],"file":"beforeDeleteRevision.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforePublishHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const beforePublishHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforePublish", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.beforePublishHook = beforePublishHook;
|
|
15
|
-
//# sourceMappingURL=beforePublish.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforePublish.hook.ts"],"names":["beforePublishHook","args"],"mappings":";;;;;;;AAAA;;AAEO,MAAMA,iBAAiB,GAAG,MAC7BC,IAD6B,IAEb;AAChB,QAAM,kEAA8B,eAA9B,EAA+CA,IAA/C,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryBeforePublishHookArgs } from \"../../../../types\";\nexport const beforePublishHook = async (\n args: CmsContentEntryBeforePublishHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"beforePublish\", args);\n};\n"],"file":"beforePublish.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeRequestChangesHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const beforeRequestChangesHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeRequestChanges", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.beforeRequestChangesHook = beforeRequestChangesHook;
|
|
15
|
-
//# sourceMappingURL=beforeRequestChanges.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeRequestChanges.hook.ts"],"names":["beforeRequestChangesHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,wBAAwB,GAAG,MACpCC,IADoC,IAEpB;AAChB,QAAM,kEAA8B,sBAA9B,EAAsDA,IAAtD,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryBeforeRequestChangesHookArgs } from \"../../../../types\";\n\nexport const beforeRequestChangesHook = async (\n args: CmsContentEntryBeforeRequestChangesHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"beforeRequestChanges\", args);\n};\n"],"file":"beforeRequestChanges.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeRequestReviewHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const beforeRequestReviewHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeRequestReview", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.beforeRequestReviewHook = beforeRequestReviewHook;
|
|
15
|
-
//# sourceMappingURL=beforeRequestReview.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeRequestReview.hook.ts"],"names":["beforeRequestReviewHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,uBAAuB,GAAG,MACnCC,IADmC,IAEnB;AAChB,QAAM,kEAA8B,qBAA9B,EAAqDA,IAArD,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryBeforeRequestReviewHookArgs } from \"../../../../types\";\n\nexport const beforeRequestReviewHook = async (\n args: CmsContentEntryBeforeRequestReviewHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"beforeRequestReview\", args);\n};\n"],"file":"beforeRequestReview.hook.js"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeUnpublishHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
9
|
-
|
|
10
|
-
const beforeUnpublishHook = async args => {
|
|
11
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeUnpublish", args);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.beforeUnpublishHook = beforeUnpublishHook;
|
|
15
|
-
//# sourceMappingURL=beforeUnpublish.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeUnpublish.hook.ts"],"names":["beforeUnpublishHook","args"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,mBAAmB,GAAG,MAC/BC,IAD+B,IAEf;AAChB,QAAM,kEAA8B,iBAA9B,EAAiDA,IAAjD,CAAN;AACH,CAJM","sourcesContent":["import { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryBeforeUnpublishHookArgs } from \"../../../../types\";\n\nexport const beforeUnpublishHook = async (\n args: CmsContentEntryBeforeUnpublishHookArgs\n): Promise<void> => {\n await runContentEntryLifecycleHooks(\"beforeUnpublish\", args);\n};\n"],"file":"beforeUnpublish.hook.js"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.beforeUpdateHook = void 0;
|
|
7
|
-
|
|
8
|
-
var _markLockedFields = require("./markLockedFields");
|
|
9
|
-
|
|
10
|
-
var _runContentEntryLifecycleHooks = require("./runContentEntryLifecycleHooks");
|
|
11
|
-
|
|
12
|
-
const beforeUpdateHook = async args => {
|
|
13
|
-
await (0, _markLockedFields.markLockedFields)(args);
|
|
14
|
-
await (0, _runContentEntryLifecycleHooks.runContentEntryLifecycleHooks)("beforeUpdate", args);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.beforeUpdateHook = beforeUpdateHook;
|
|
18
|
-
//# sourceMappingURL=beforeUpdate.hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/content/plugins/crud/contentEntry/beforeUpdate.hook.ts"],"names":["beforeUpdateHook","args"],"mappings":";;;;;;;AAAA;;AACA;;AAGO,MAAMA,gBAAgB,GAAG,MAC5BC,IAD4B,IAEZ;AAChB,QAAM,wCAAiBA,IAAjB,CAAN;AACA,QAAM,kEAA8B,cAA9B,EAA8CA,IAA9C,CAAN;AACH,CALM","sourcesContent":["import { markLockedFields } from \"./markLockedFields\";\nimport { runContentEntryLifecycleHooks } from \"./runContentEntryLifecycleHooks\";\nimport { CmsContentEntryBeforeUpdateHookArgs } from \"../../../../types\";\n\nexport const beforeUpdateHook = async (\n args: CmsContentEntryBeforeUpdateHookArgs\n): Promise<void> => {\n await markLockedFields(args);\n await runContentEntryLifecycleHooks(\"beforeUpdate\", args);\n};\n"],"file":"beforeUpdate.hook.js"}
|