diff --git a/packages/api-admin-users-cognito-so-ddb/LICENSE b/packages/api-admin-users-cognito-so-ddb/LICENSE deleted file mode 100644 index f772d04d4db..00000000000 --- a/packages/api-admin-users-cognito-so-ddb/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Webiny - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/api-admin-users-cognito-so-ddb/README.md b/packages/api-admin-users-cognito-so-ddb/README.md deleted file mode 100644 index 82a33659a33..00000000000 --- a/packages/api-admin-users-cognito-so-ddb/README.md +++ /dev/null @@ -1 +0,0 @@ -This package was deprecated with the 5.38.0 release of Webiny. \ No newline at end of file diff --git a/packages/api-admin-users-cognito-so-ddb/index.js b/packages/api-admin-users-cognito-so-ddb/index.js deleted file mode 100644 index 60ef3a9c477..00000000000 --- a/packages/api-admin-users-cognito-so-ddb/index.js +++ /dev/null @@ -1 +0,0 @@ -export const dummyObject = {}; diff --git a/packages/api-admin-users-cognito-so-ddb/package.json b/packages/api-admin-users-cognito-so-ddb/package.json deleted file mode 100644 index 66467b69563..00000000000 --- a/packages/api-admin-users-cognito-so-ddb/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@webiny/api-admin-users-cognito-so-ddb", - "version": "0.0.0", - "main": "index.js", - "repository": { - "type": "git", - "url": "https://github.com/webiny/webiny-js.git" - }, - "license": "MIT", - "publishConfig": { - "access": "public", - "directory": "." - }, - "scripts": { - "build": "yarn webiny run build", - "watch": "yarn webiny run watch" - } -} diff --git a/packages/api-admin-users-cognito/LICENSE b/packages/api-admin-users-cognito/LICENSE deleted file mode 100644 index f772d04d4db..00000000000 --- a/packages/api-admin-users-cognito/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Webiny - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/api-admin-users-cognito/README.md b/packages/api-admin-users-cognito/README.md deleted file mode 100644 index 82a33659a33..00000000000 --- a/packages/api-admin-users-cognito/README.md +++ /dev/null @@ -1 +0,0 @@ -This package was deprecated with the 5.38.0 release of Webiny. \ No newline at end of file diff --git a/packages/api-admin-users-cognito/index.js b/packages/api-admin-users-cognito/index.js deleted file mode 100644 index 60ef3a9c477..00000000000 --- a/packages/api-admin-users-cognito/index.js +++ /dev/null @@ -1 +0,0 @@ -export const dummyObject = {}; diff --git a/packages/api-admin-users-cognito/package.json b/packages/api-admin-users-cognito/package.json deleted file mode 100644 index d76658cf7ef..00000000000 --- a/packages/api-admin-users-cognito/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@webiny/api-admin-users-cognito", - "version": "0.0.0", - "main": "index.js", - "repository": { - "type": "git", - "url": "https://github.com/webiny/webiny-js.git" - }, - "license": "MIT", - "publishConfig": { - "access": "public", - "directory": "." - } -} diff --git a/packages/api-headless-cms/src/context.ts b/packages/api-headless-cms/src/context.ts index a7cee1bce16..c448b4b40f9 100644 --- a/packages/api-headless-cms/src/context.ts +++ b/packages/api-headless-cms/src/context.ts @@ -9,9 +9,6 @@ import { createModelsCrud } from "~/crud/contentModel.crud"; import { createContentEntryCrud } from "~/crud/contentEntry.crud"; import { StorageOperationsCmsModelPlugin } from "~/plugins"; import { createCmsModelFieldConvertersAttachFactory } from "~/utils/converters/valueKeyStorageConverter"; -import { ModelsPermissions } from "~/utils/permissions/ModelsPermissions"; -import { ModelGroupsPermissions } from "./utils/permissions/ModelGroupsPermissions"; -import { EntriesPermissions } from "./utils/permissions/EntriesPermissions"; import { createExportCrud } from "~/export"; import { createImportCrud } from "~/export/crud/importing"; @@ -63,25 +60,6 @@ export const createContextPlugin = ({ storageOperations }: CrudParams) => { await context.benchmark.measure("headlessCms.createContext", async () => { await storageOperations.beforeInit(context); - const modelGroupsPermissions = new ModelGroupsPermissions({ - getIdentity: context.security.getIdentity, - getPermissions: () => context.security.getPermissions("cms.contentModelGroup"), - fullAccessPermissionName: "cms.*" - }); - - const modelsPermissions = new ModelsPermissions({ - getIdentity: context.security.getIdentity, - getPermissions: () => context.security.getPermissions("cms.contentModel"), - fullAccessPermissionName: "cms.*", - modelGroupsPermissions - }); - - const entriesPermissions = new EntriesPermissions({ - getIdentity: context.security.getIdentity, - getPermissions: () => context.security.getPermissions("cms.contentEntry"), - fullAccessPermissionName: "cms.*" - }); - const accessControl = new AccessControl({ getIdentity: context.security.getIdentity, getGroupsPermissions: () => @@ -103,14 +81,6 @@ export const createContextPlugin = ({ storageOperations }: CrudParams) => { PREVIEW: type === "preview", MANAGE: type === "manage", storageOperations, - - // TODO: remove with 5.40 release. - permissions: { - groups: modelGroupsPermissions, - models: modelsPermissions, - entries: entriesPermissions - }, - accessControl, ...createSystemCrud({ context, diff --git a/packages/api-headless-cms/src/types.ts b/packages/api-headless-cms/src/types.ts index 6e935436f2c..aeb0c19a738 100644 --- a/packages/api-headless-cms/src/types.ts +++ b/packages/api-headless-cms/src/types.ts @@ -12,18 +12,9 @@ import { Topic } from "@webiny/pubsub/types"; import { CmsModelConverterCallable } from "~/utils/converters/ConverterCollection"; import { HeadlessCmsExport, HeadlessCmsImport } from "~/export/types"; import { AccessControl } from "~/crud/AccessControl/AccessControl"; -import { ModelGroupsPermissions } from "~/utils/permissions/ModelGroupsPermissions"; -import { ModelsPermissions } from "~/utils/permissions/ModelsPermissions"; -import { EntriesPermissions } from "~/utils/permissions/EntriesPermissions"; export type ApiEndpoint = "manage" | "preview" | "read"; -interface HeadlessCmsPermissions { - groups: ModelGroupsPermissions; - models: ModelsPermissions; - entries: EntriesPermissions; -} - export interface HeadlessCms extends CmsSystemContext, CmsGroupContext, @@ -63,13 +54,6 @@ export interface HeadlessCms */ accessControl: AccessControl; - /** - * Permissions for groups, models and entries. - * @internal - * @deprecated Will be removed with the 5.40.0 release. Use `accessControl` instead. - */ - permissions: HeadlessCmsPermissions; - /** * Export operations. */ diff --git a/packages/api-headless-cms/src/utils/permissions/EntriesPermissions.ts b/packages/api-headless-cms/src/utils/permissions/EntriesPermissions.ts deleted file mode 100644 index 9adef9f6253..00000000000 --- a/packages/api-headless-cms/src/utils/permissions/EntriesPermissions.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { CmsEntryPermission } from "~/types"; -import { AppPermissions } from "@webiny/api-security"; - -export class EntriesPermissions extends AppPermissions {} diff --git a/packages/api-headless-cms/src/utils/permissions/ModelGroupsPermissions.ts b/packages/api-headless-cms/src/utils/permissions/ModelGroupsPermissions.ts deleted file mode 100644 index 8eb5c665b26..00000000000 --- a/packages/api-headless-cms/src/utils/permissions/ModelGroupsPermissions.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { AppPermissions, NotAuthorizedError } from "@webiny/api-security"; -import { CmsGroup, CmsGroupPermission } from "~/types"; - -export interface CanAccessGroupParams { - group: Pick; -} - -export class ModelGroupsPermissions extends AppPermissions { - async canAccessGroup({ group }: CanAccessGroupParams) { - if (await this.hasFullAccess()) { - return true; - } - - const permissions = await this.getPermissions(); - - const locale = group.locale; - - for (const permission of permissions) { - const { groups } = permission; - - // When no groups defined on permission it means user has access to everything. - if (!groups) { - return true; - } - - // when there is no locale in groups, it means that no access was given - // this happens when access control was set but no models or groups were added - if ( - Array.isArray(groups[locale]) === false || - groups[locale].includes(group.id) === false - ) { - continue; - } - return true; - } - - return false; - } - - async ensureCanAccessGroup(params: CanAccessGroupParams) { - const canAccessModel = await this.canAccessGroup(params); - if (canAccessModel) { - return; - } - - throw new NotAuthorizedError({ - data: { - reason: `Not allowed to access group "${params.group.id}".` - } - }); - } -} diff --git a/packages/api-headless-cms/src/utils/permissions/ModelsPermissions.ts b/packages/api-headless-cms/src/utils/permissions/ModelsPermissions.ts deleted file mode 100644 index 53a06368784..00000000000 --- a/packages/api-headless-cms/src/utils/permissions/ModelsPermissions.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { AppPermissions, AppPermissionsParams, NotAuthorizedError } from "@webiny/api-security"; -import { - CmsGroupPermission, - CmsModel as BaseCmsModel, - CmsModelGroup as BaseCmsModelGroup, - CmsModelPermission -} from "~/types"; -import { ModelGroupsPermissions } from "~/utils/permissions/ModelGroupsPermissions"; - -export interface ModelsPermissionsParams extends AppPermissionsParams { - modelGroupsPermissions: ModelGroupsPermissions; -} - -interface PickedCmsModel extends Pick { - group: Pick; -} - -export interface CanAccessModelParams { - model: PickedCmsModel; -} - -export interface EnsureModelAccessParams { - model: PickedCmsModel; -} - -export class ModelsPermissions extends AppPermissions { - private readonly modelGroupsPermissions: ModelGroupsPermissions; - - public constructor(params: ModelsPermissionsParams) { - super(params); - this.modelGroupsPermissions = params.modelGroupsPermissions; - } - - public async canAccessModel({ model }: CanAccessModelParams) { - if (await this.hasFullAccess()) { - return true; - } - - const modelGroupsPermissions = this.modelGroupsPermissions; - - // eslint-disable-next-line - const modelsPermissions = this; - - const canReadGroups = await modelGroupsPermissions.ensure({ rwd: "r" }, { throw: false }); - if (!canReadGroups) { - return false; - } - - const canReadModels = await modelsPermissions.ensure({ rwd: "r" }, { throw: false }); - if (!canReadModels) { - return false; - } - - const modelGroupsPermissionsList = await modelGroupsPermissions.getPermissions(); - const modelsPermissionsList = await this.getPermissions(); - - const locale = model.locale; - - for (let i = 0; i < modelGroupsPermissionsList.length; i++) { - const modelGroupPermission = modelGroupsPermissionsList[i]; - - const { groups } = modelGroupPermission; - - for (let j = 0; j < modelsPermissionsList.length; j++) { - const modelPermission = modelsPermissionsList[j]; - - const { models } = modelPermission; - // when no models or groups defined on permission - // it means user has access to everything - if (!models && !groups) { - return true; - } - - // Does the model belong to a group for which user has permission? - if (groups) { - if ( - Array.isArray(groups[locale]) === false || - groups[locale].includes(model.group.id) === false - ) { - continue; - } - } - - // Does the user have access to the specific model? - if (models) { - if ( - Array.isArray(models[locale]) === false || - models[locale].includes(model.modelId) === false - ) { - continue; - } - } - - return true; - } - } - - return false; - } - - public async ensureCanAccessModel(params: EnsureModelAccessParams) { - const canAccessModel = await this.canAccessModel(params); - if (canAccessModel) { - return; - } - - throw new NotAuthorizedError({ - data: { - reason: `Not allowed to access model "${params.model.modelId}".` - } - }); - } -} diff --git a/packages/api-i18n/src/graphql/crud/locales.crud.ts b/packages/api-i18n/src/graphql/crud/locales.crud.ts index 6ad1a6d0b27..80151de9ffc 100644 --- a/packages/api-i18n/src/graphql/crud/locales.crud.ts +++ b/packages/api-i18n/src/graphql/crud/locales.crud.ts @@ -53,18 +53,6 @@ export const createLocalesCrud = (params: CreateLocalesCrudParams): LocalesCRUD ); return { - /** - * Deprecated in 5.34.0 - */ - onBeforeCreate: onLocaleBeforeCreate, - onAfterCreate: onLocaleAfterCreate, - onBeforeUpdate: onLocaleBeforeUpdate, - onAfterUpdate: onLocaleAfterUpdate, - onBeforeDelete: onLocaleBeforeDelete, - onAfterDelete: onLocaleAfterDelete, - /** - * Introduced in 5.34.0 - */ onLocaleBeforeCreate, onLocaleAfterCreate, onLocaleBeforeUpdate, diff --git a/packages/api-i18n/src/graphql/crud/system.crud.ts b/packages/api-i18n/src/graphql/crud/system.crud.ts index 6ba79b1b12f..51a075a7ab8 100644 --- a/packages/api-i18n/src/graphql/crud/system.crud.ts +++ b/packages/api-i18n/src/graphql/crud/system.crud.ts @@ -31,14 +31,6 @@ export const createSystemCrud = (params: CreateSystemCrudParams): SystemCRUD => ); return { - /** - * Deprecated in 5.34.0 - */ - onBeforeInstall: onSystemBeforeInstall, - onAfterInstall: onSystemAfterInstall, - /** - * Introduced in 5.34.0 - */ onSystemBeforeInstall, onSystemAfterInstall, storageOperations, diff --git a/packages/api-i18n/src/types.ts b/packages/api-i18n/src/types.ts index f0bc31809ae..659782048cb 100644 --- a/packages/api-i18n/src/types.ts +++ b/packages/api-i18n/src/types.ts @@ -63,20 +63,6 @@ export interface SystemCRUD { * Run the install process for the i18n. */ installSystem(params: SystemInstallParams): Promise; - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - /** - * @deprecated - */ - onBeforeInstall: Topic; - /** - * @deprecated - */ - onAfterInstall: Topic; - /** - * Introduced in 5.34.0 - */ onSystemBeforeInstall: Topic; onSystemAfterInstall: Topic; } @@ -166,36 +152,6 @@ export interface OnLocaleAfterDeleteTopicParams { */ export interface LocalesCRUD { storageOperations: I18NLocalesStorageOperations; - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - /** - * @deprecated - */ - onBeforeCreate: Topic; - /** - * @deprecated - */ - onAfterCreate: Topic; - /** - * @deprecated - */ - onBeforeUpdate: Topic; - /** - * @deprecated - */ - onAfterUpdate: Topic; - /** - * @deprecated - */ - onBeforeDelete: Topic; - /** - * @deprecated - */ - onAfterDelete: Topic; - /** - * Introduced in 5.34.0 - */ onLocaleBeforeCreate: Topic; onLocaleAfterCreate: Topic; onLocaleBeforeUpdate: Topic; diff --git a/packages/api-page-builder/src/graphql/crud/categories.crud.ts b/packages/api-page-builder/src/graphql/crud/categories.crud.ts index 7f0edaf50a1..158335ce06e 100644 --- a/packages/api-page-builder/src/graphql/crud/categories.crud.ts +++ b/packages/api-page-builder/src/graphql/crud/categories.crud.ts @@ -63,18 +63,6 @@ export const createCategoriesCrud = (params: CreateCategoriesCrudParams): Catego ); return { - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed from 5.36.0 - */ - onBeforeCategoryCreate: onCategoryBeforeCreate, - onAfterCategoryCreate: onCategoryAfterCreate, - onBeforeCategoryUpdate: onCategoryBeforeUpdate, - onAfterCategoryUpdate: onCategoryAfterUpdate, - onBeforeCategoryDelete: onCategoryBeforeDelete, - onAfterCategoryDelete: onCategoryAfterDelete, - /** - * Introduced in 5.34.0 - */ onCategoryBeforeCreate, onCategoryAfterCreate, onCategoryBeforeUpdate, diff --git a/packages/api-page-builder/src/graphql/crud/menus.crud.ts b/packages/api-page-builder/src/graphql/crud/menus.crud.ts index 40764ac181b..8bdb7804c9a 100644 --- a/packages/api-page-builder/src/graphql/crud/menus.crud.ts +++ b/packages/api-page-builder/src/graphql/crud/menus.crud.ts @@ -58,18 +58,6 @@ export const createMenuCrud = (params: CreateMenuCrudParams): MenusCrud => { ); return { - /** - * Deprecated in 5.34.0 - will be removed in 5.36.0 - */ - onBeforeMenuCreate: onMenuBeforeCreate, - onAfterMenuCreate: onMenuAfterCreate, - onBeforeMenuUpdate: onMenuBeforeUpdate, - onAfterMenuUpdate: onMenuAfterUpdate, - onBeforeMenuDelete: onMenuBeforeDelete, - onAfterMenuDelete: onMenuAfterDelete, - /** - * - */ onMenuBeforeCreate, onMenuAfterCreate, onMenuBeforeUpdate, diff --git a/packages/api-page-builder/src/graphql/crud/pages.crud.ts b/packages/api-page-builder/src/graphql/crud/pages.crud.ts index 472cbbb0020..455895bf06f 100644 --- a/packages/api-page-builder/src/graphql/crud/pages.crud.ts +++ b/packages/api-page-builder/src/graphql/crud/pages.crud.ts @@ -272,24 +272,6 @@ export const createPageCrud = (params: CreatePageCrudParams): PagesCrud => { const pageElementProcessors: PageElementProcessor[] = []; return { - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - onBeforePageCreate: onPageBeforeCreate, - onAfterPageCreate: onPageAfterCreate, - onBeforePageCreateFrom: onPageBeforeCreateFrom, - onAfterPageCreateFrom: onPageAfterCreateFrom, - onBeforePageUpdate: onPageBeforeUpdate, - onAfterPageUpdate: onPageAfterUpdate, - onBeforePageDelete: onPageBeforeDelete, - onAfterPageDelete: onPageAfterDelete, - onBeforePagePublish: onPageBeforePublish, - onAfterPagePublish: onPageAfterPublish, - onBeforePageUnpublish: onPageBeforeUnpublish, - onAfterPageUnpublish: onPageAfterUnpublish, - /** - * Introduced in 5.34.0 - */ onPageBeforeCreate, onPageAfterCreate, onPageBeforeCreateFrom, diff --git a/packages/api-page-builder/src/graphql/crud/settings.crud.ts b/packages/api-page-builder/src/graphql/crud/settings.crud.ts index ec486d034da..78a3394da6a 100644 --- a/packages/api-page-builder/src/graphql/crud/settings.crud.ts +++ b/packages/api-page-builder/src/graphql/crud/settings.crud.ts @@ -65,14 +65,6 @@ export const createSettingsCrud = (params: CreateSettingsCrudParams): SettingsCr ); return { - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - onBeforeSettingsUpdate: onSettingsBeforeUpdate, - onAfterSettingsUpdate: onSettingsAfterUpdate, - /** - * Introduced in 5.34.0 - */ onSettingsBeforeUpdate, onSettingsAfterUpdate, async getCurrentSettings(this: PageBuilderContextObject) { diff --git a/packages/api-page-builder/src/graphql/crud/system.crud.ts b/packages/api-page-builder/src/graphql/crud/system.crud.ts index ffdaf9f08f0..ae3ed4f1d38 100644 --- a/packages/api-page-builder/src/graphql/crud/system.crud.ts +++ b/packages/api-page-builder/src/graphql/crud/system.crud.ts @@ -32,14 +32,6 @@ export const createSystemCrud = (params: CreateSystemCrudParams): SystemCrud => ); return { - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - onBeforeInstall: onSystemBeforeInstall, - onAfterInstall: onSystemAfterInstall, - /** - * Introduced in 5.34.0 - */ onSystemBeforeInstall, onSystemAfterInstall, async getSystem() { diff --git a/packages/api-page-builder/src/graphql/types.ts b/packages/api-page-builder/src/graphql/types.ts index ba0e1220339..fe1d0cf352d 100644 --- a/packages/api-page-builder/src/graphql/types.ts +++ b/packages/api-page-builder/src/graphql/types.ts @@ -224,60 +224,6 @@ export interface PagesCrud { render(args: RenderParams): Promise; flush(args: FlushParams): Promise; }; - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - /** - * @deprecated - */ - onBeforePageCreate: Topic; - /** - * @deprecated - */ - onAfterPageCreate: Topic; - /** - * @deprecated - */ - onBeforePageCreateFrom: Topic; - /** - * @deprecated - */ - onAfterPageCreateFrom: Topic; - /** - * @deprecated - */ - onBeforePageUpdate: Topic; - /** - * @deprecated - */ - onAfterPageUpdate: Topic; - /** - * @deprecated - */ - onBeforePageDelete: Topic; - /** - * @deprecated - */ - onAfterPageDelete: Topic; - /** - * @deprecated - */ - onBeforePagePublish: Topic; - /** - * @deprecated - */ - onAfterPagePublish: Topic; - /** - * @deprecated - */ - onBeforePageUnpublish: Topic; - /** - * @deprecated - */ - onAfterPageUnpublish: Topic; - /** - * Lifecycle events introduced in 5.34.0 - */ onPageBeforeCreate: Topic; onPageAfterCreate: Topic; onPageBeforeCreateFrom: Topic; @@ -403,39 +349,6 @@ export interface CategoriesCrud { createCategory(data: PbCategoryInput): Promise; updateCategory(slug: string, data: PbCategoryInput): Promise; deleteCategory(slug: string): Promise; - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - /** - * @deprecated - */ - /** - * @deprecated - */ - onBeforeCategoryCreate: Topic; - /** - * @deprecated - */ - onAfterCategoryCreate: Topic; - /** - * @deprecated - */ - onBeforeCategoryUpdate: Topic; - /** - * @deprecated - */ - onAfterCategoryUpdate: Topic; - /** - * @deprecated - */ - onBeforeCategoryDelete: Topic; - /** - * @deprecated - */ - onAfterCategoryDelete: Topic; - /** - * Introduced in 5.34.0 - */ onCategoryBeforeCreate: Topic; onCategoryAfterCreate: Topic; onCategoryBeforeUpdate: Topic; @@ -509,36 +422,6 @@ export interface MenusCrud { createMenu(data: CreateMenuInput): Promise; updateMenu(slug: string, data: Record): Promise; deleteMenu(slug: string): Promise; - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - /** - * @deprecated - */ - onBeforeMenuCreate: Topic; - /** - * @deprecated - */ - onAfterMenuCreate: Topic; - /** - * @deprecated - */ - onBeforeMenuUpdate: Topic; - /** - * @deprecated - */ - onAfterMenuUpdate: Topic; - /** - * @deprecated - */ - onBeforeMenuDelete: Topic; - /** - * @deprecated - */ - onAfterMenuDelete: Topic; - /** - * Lifecycle events introduced in 5.34.0 - */ onMenuBeforeCreate: Topic; onMenuAfterCreate: Topic; onMenuBeforeUpdate: Topic; @@ -590,20 +473,6 @@ export interface SettingsCrud { data: Record, options?: { auth?: boolean } & DefaultSettingsCrudOptions ) => Promise; - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - /** - * @deprecated - */ - onBeforeSettingsUpdate: Topic; - /** - * @deprecated - */ - onAfterSettingsUpdate: Topic; - /** - * Lifecycle events introduced in 5.34.0 - */ onSettingsBeforeUpdate: Topic; onSettingsAfterUpdate: Topic; } @@ -628,17 +497,6 @@ export interface SystemCrud { getSystemVersion(): Promise; setSystemVersion(version: string): Promise; installSystem(args: { name: string; insertDemoData: boolean }): Promise; - /** - * Lifecycle events - deprecated in 5.34.0 - will be removed in 5.36.0 - */ - /** - * @deprecated - */ - onBeforeInstall: Topic; - /** - * @deprecated - */ - onAfterInstall: Topic; /** * Lifecycle events */ diff --git a/yarn.lock b/yarn.lock index 11aedb7c4c1..4d13604b882 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14615,18 +14615,6 @@ __metadata: languageName: unknown linkType: soft -"@webiny/api-admin-users-cognito-so-ddb@workspace:packages/api-admin-users-cognito-so-ddb": - version: 0.0.0-use.local - resolution: "@webiny/api-admin-users-cognito-so-ddb@workspace:packages/api-admin-users-cognito-so-ddb" - languageName: unknown - linkType: soft - -"@webiny/api-admin-users-cognito@workspace:packages/api-admin-users-cognito": - version: 0.0.0-use.local - resolution: "@webiny/api-admin-users-cognito@workspace:packages/api-admin-users-cognito" - languageName: unknown - linkType: soft - "@webiny/api-admin-users-so-ddb@0.0.0, @webiny/api-admin-users-so-ddb@workspace:packages/api-admin-users-so-ddb": version: 0.0.0-use.local resolution: "@webiny/api-admin-users-so-ddb@workspace:packages/api-admin-users-so-ddb"