diff --git a/projects/schematics/src/migrations/6_0/constructor-deprecations/constructor-deprecations.ts b/projects/schematics/src/migrations/6_0/constructor-deprecations/constructor-deprecations.ts index a80a661a6b7..728a9416cc2 100644 --- a/projects/schematics/src/migrations/6_0/constructor-deprecations/constructor-deprecations.ts +++ b/projects/schematics/src/migrations/6_0/constructor-deprecations/constructor-deprecations.ts @@ -5,17 +5,15 @@ */ import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; -import { ConstructorDeprecation } from '../../../shared/utils/file-utils'; import { migrateConstructorDeprecation } from '../../mechanism/constructor-deprecations/constructor-deprecations'; - -export const CONSTRUCTOR_DEPRECATIONS_DATA: ConstructorDeprecation[] = []; +import { GENERATED_CONSTRUCTOR_MIGRATIONS } from './data/generated-constructor.migration'; export function migrate(): Rule { return (tree: Tree, context: SchematicContext) => { return migrateConstructorDeprecation( tree, context, - CONSTRUCTOR_DEPRECATIONS_DATA + GENERATED_CONSTRUCTOR_MIGRATIONS ); }; } diff --git a/projects/schematics/src/migrations/6_0/constructor-deprecations/data/generated-constructor.migration.ts b/projects/schematics/src/migrations/6_0/constructor-deprecations/data/generated-constructor.migration.ts new file mode 100644 index 00000000000..3bb31693d97 --- /dev/null +++ b/projects/schematics/src/migrations/6_0/constructor-deprecations/data/generated-constructor.migration.ts @@ -0,0 +1,3032 @@ +/* + * SPDX-FileCopyrightText: 2023 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +// +// Generated file, don't update manually. +// +import { ConstructorDeprecation } from '../../../../shared/utils/file-utils'; + +export const GENERATED_CONSTRUCTOR_MIGRATIONS: ConstructorDeprecation[] = [ + { + class: 'AsmMainUiComponent', + importPath: '@spartacus/asm/components', + deprecatedParams: [ + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'CsAgentAuthService', + importPath: '@spartacus/asm/root', + }, + { + className: 'AsmComponentService', + importPath: '@spartacus/asm/components', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'UserAccountFacade', + importPath: '@spartacus/user/account/root', + }, + ], + removeParams: [ + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'CsAgentAuthService', + importPath: '@spartacus/asm/root', + }, + { + className: 'AsmComponentService', + importPath: '@spartacus/asm/components', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'UserAccountFacade', + importPath: '@spartacus/user/account/root', + }, + ], + addParams: [ + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'CsAgentAuthService', + importPath: '@spartacus/asm/root', + }, + { + className: 'AsmComponentService', + importPath: '@spartacus/asm/components', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'UserAccountFacade', + importPath: '@spartacus/user/account/root', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'CustomerListComponent', + importPath: '@spartacus/asm/components', + deprecatedParams: [ + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'BreakpointService', + importPath: '@spartacus/storefront', + }, + { + className: 'AsmConfig', + importPath: '@spartacus/asm/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'AsmCustomerListFacade', + importPath: '@spartacus/asm/root', + }, + ], + removeParams: [ + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'BreakpointService', + importPath: '@spartacus/storefront', + }, + { + className: 'AsmConfig', + importPath: '@spartacus/asm/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'AsmCustomerListFacade', + importPath: '@spartacus/asm/root', + }, + ], + addParams: [ + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + { + className: 'BreakpointService', + importPath: '@spartacus/storefront', + }, + { + className: 'AsmConfig', + importPath: '@spartacus/asm/root', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'AsmCustomerListFacade', + importPath: '@spartacus/asm/root', + }, + ], + }, + { + class: 'CustomerSelectionComponent', + importPath: '@spartacus/asm/components', + deprecatedParams: [ + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'AsmConfig', + importPath: '@spartacus/asm/core', + }, + ], + removeParams: [ + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'AsmConfig', + importPath: '@spartacus/asm/core', + }, + ], + addParams: [ + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'AsmService', + importPath: '@spartacus/asm/core', + }, + { + className: 'AsmConfig', + importPath: '@spartacus/asm/root', + }, + { + className: 'DirectionService', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'AsmCustomerListService', + importPath: '@spartacus/asm/core', + deprecatedParams: [ + { + className: 'QueryService', + importPath: '@spartacus/core', + }, + { + className: 'AsmConnector', + importPath: '@spartacus/asm/core', + }, + ], + removeParams: [ + { + className: 'QueryService', + importPath: '@spartacus/core', + }, + { + className: 'AsmConnector', + importPath: '@spartacus/asm/core', + }, + ], + addParams: [ + { + className: 'QueryService', + importPath: '@spartacus/core', + }, + { + className: 'AsmConnector', + importPath: '@spartacus/asm/core', + }, + { + className: 'Store', + importPath: '@ngrx/store', + }, + ], + }, + { + class: 'CartAddEntry', + importPath: '@spartacus/cart/base/core', + deprecatedParams: [ + { + className: + '{\n cartId: string;\n userId: string;\n productCode: string;\n quantity: number;\n }', + importPath: '', + }, + ], + removeParams: [ + { + className: + '{\n cartId: string;\n userId: string;\n productCode: string;\n quantity: number;\n }', + importPath: '', + }, + ], + addParams: [ + { + className: + '{\n cartId: string;\n userId: string;\n productCode: string;\n quantity: number;\n pickupStore?: string;\n }', + importPath: '', + }, + ], + }, + { + class: 'CartAddEntryFail', + importPath: '@spartacus/cart/base/core', + deprecatedParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n productCode: string;\n quantity: number;\n error: any;\n }', + importPath: '', + }, + ], + removeParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n productCode: string;\n quantity: number;\n error: any;\n }', + importPath: '', + }, + ], + addParams: [ + { + className: + '{\n error: any;\n userId: string;\n cartId: string;\n productCode: string;\n quantity: number;\n pickupStore?: string;\n }', + importPath: '', + }, + ], + }, + { + class: 'CartAddEntrySuccess', + importPath: '@spartacus/cart/base/core', + deprecatedParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n productCode: string;\n quantity: number;\n deliveryModeChanged?: boolean;\n entry?: OrderEntry;\n quantityAdded?: number;\n statusCode?: string;\n statusMessage?: string;\n }', + importPath: '', + }, + ], + removeParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n productCode: string;\n quantity: number;\n deliveryModeChanged?: boolean;\n entry?: OrderEntry;\n quantityAdded?: number;\n statusCode?: string;\n statusMessage?: string;\n }', + importPath: '', + }, + ], + addParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n productCode: string;\n quantity: number;\n pickupStore?: string;\n deliveryModeChanged?: boolean;\n entry?: OrderEntry;\n quantityAdded?: number;\n statusCode?: string;\n statusMessage?: string;\n }', + importPath: '', + }, + ], + }, + { + class: 'CartUpdateEntry', + importPath: '@spartacus/cart/base/core', + deprecatedParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity: number;\n }', + importPath: '', + }, + ], + removeParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity: number;\n }', + importPath: '', + }, + ], + addParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity?: number;\n pickupStore?: string;\n pickupToDelivery?: boolean;\n }', + importPath: '', + }, + ], + }, + { + class: 'CartUpdateEntryFail', + importPath: '@spartacus/cart/base/core', + deprecatedParams: [ + { + className: + '{\n error: any;\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity?: number;\n }', + importPath: '', + }, + ], + removeParams: [ + { + className: + '{\n error: any;\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity?: number;\n }', + importPath: '', + }, + ], + addParams: [ + { + className: + '{\n error: any;\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity?: number;\n pickupStore?: string;\n pickupToDelivery?: boolean;\n }', + importPath: '', + }, + ], + }, + { + class: 'CartUpdateEntrySuccess', + importPath: '@spartacus/cart/base/core', + deprecatedParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity?: number;\n }', + importPath: '', + }, + ], + removeParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity?: number;\n }', + importPath: '', + }, + ], + addParams: [ + { + className: + '{\n userId: string;\n cartId: string;\n entryNumber: string;\n quantity?: number;\n pickupStore?: string;\n pickupToDelivery?: boolean;\n }', + importPath: '', + }, + ], + }, + { + class: 'QuickOrderOrderEntriesContext', + importPath: '@spartacus/cart/quick-order/components', + deprecatedParams: [ + { + className: 'QuickOrderFacade', + importPath: '@spartacus/cart/quick-order/root', + }, + { + className: 'ProductConnector', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'QuickOrderFacade', + importPath: '@spartacus/cart/quick-order/root', + }, + { + className: 'ProductConnector', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'QuickOrderFacade', + importPath: '@spartacus/cart/quick-order/root', + }, + { + className: 'ProductConnector', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'CDCRegisterComponentService', + importPath: '@spartacus/cdc/user-profile', + deprecatedParams: [ + { + className: 'UserRegisterFacade', + importPath: '@spartacus/user/profile/root', + }, + { + className: 'CommandService', + importPath: '@spartacus/core', + }, + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'CdcJsService', + importPath: '@spartacus/cdc/root', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'EventService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'UserRegisterFacade', + importPath: '@spartacus/user/profile/root', + }, + { + className: 'CommandService', + importPath: '@spartacus/core', + }, + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'CdcJsService', + importPath: '@spartacus/cdc/root', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'EventService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'UserRegisterFacade', + importPath: '@spartacus/user/profile/root', + }, + { + className: 'CommandService', + importPath: '@spartacus/core', + }, + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'CdcJsService', + importPath: '@spartacus/cdc/root', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'EventService', + importPath: '@spartacus/core', + }, + { + className: 'UserProfileFacade', + importPath: '@spartacus/user/profile/root', + }, + ], + }, + { + class: 'CheckoutB2BStepsSetGuard', + importPath: '@spartacus/checkout/b2b/components', + deprecatedParams: [ + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'RoutingConfigService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + { + className: 'CheckoutPaymentTypeFacade', + importPath: '@spartacus/checkout/b2b/root', + }, + { + className: 'CheckoutCostCenterFacade', + importPath: '@spartacus/checkout/b2b/root', + }, + ], + removeParams: [ + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'RoutingConfigService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + { + className: 'CheckoutPaymentTypeFacade', + importPath: '@spartacus/checkout/b2b/root', + }, + { + className: 'CheckoutCostCenterFacade', + importPath: '@spartacus/checkout/b2b/root', + }, + ], + addParams: [ + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'RoutingConfigService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + { + className: 'CheckoutPaymentTypeFacade', + importPath: '@spartacus/checkout/b2b/root', + }, + { + className: 'CheckoutCostCenterFacade', + importPath: '@spartacus/checkout/b2b/root', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + ], + }, + { + class: 'CheckoutDeliveryAddressComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedParams: [ + { + className: 'UserAddressService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'ActivatedRoute', + importPath: '@angular/router', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'UserAddressService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'ActivatedRoute', + importPath: '@angular/router', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'UserAddressService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'ActivatedRoute', + importPath: '@angular/router', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'CheckoutDeliveryModeComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedParams: [ + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'CheckoutConfigService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'ActivatedRoute', + importPath: '@angular/router', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + ], + removeParams: [ + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'CheckoutConfigService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'ActivatedRoute', + importPath: '@angular/router', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + ], + addParams: [ + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'CheckoutConfigService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'ActivatedRoute', + importPath: '@angular/router', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + ], + }, + { + class: 'CheckoutPaymentFormComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedParams: [ + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'UserPaymentService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'UserAddressService', + importPath: '@spartacus/core', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + ], + removeParams: [ + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'UserPaymentService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'UserAddressService', + importPath: '@spartacus/core', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + ], + addParams: [ + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'UserPaymentService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'UntypedFormBuilder', + importPath: '@angular/forms', + }, + { + className: 'UserAddressService', + importPath: '@spartacus/core', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'CheckoutReviewSubmitComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedParams: [ + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + ], + }, + { + class: 'CheckoutStepsSetGuard', + importPath: '@spartacus/checkout/base/components', + deprecatedParams: [ + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'RoutingConfigService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + ], + removeParams: [ + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'RoutingConfigService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + ], + addParams: [ + { + className: 'CheckoutStepService', + importPath: '@spartacus/checkout/base/components', + }, + { + className: 'RoutingConfigService', + importPath: '@spartacus/core', + }, + { + className: 'CheckoutDeliveryAddressFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutPaymentFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'CheckoutDeliveryModesFacade', + importPath: '@spartacus/checkout/base/root', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + { + className: 'ActiveCartFacade', + importPath: '@spartacus/cart/base/root', + }, + ], + }, + { + class: 'HttpErrorHandler', + importPath: '@spartacus/core', + deprecatedParams: [ + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'Object', + importPath: '', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'Object', + importPath: '', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'Object', + importPath: '', + }, + ], + }, + { + class: 'I18nextBackendService', + importPath: '@spartacus/core', + deprecatedParams: [], + removeParams: [], + addParams: [ + { + className: 'I18nextBackendInitializer', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'OrderDetailItemsComponent', + importPath: '@spartacus/order/components', + deprecatedParams: [ + { + className: 'OrderDetailsService', + importPath: '@spartacus/order/components', + }, + { + className: 'CmsComponentData', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'OrderDetailsService', + importPath: '@spartacus/order/components', + }, + { + className: 'CmsComponentData', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'OrderDetailsService', + importPath: '@spartacus/order/components', + }, + { + className: 'CmsComponentData', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'OrderHistoryComponent', + importPath: '@spartacus/order/components', + deprecatedParams: [ + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'OrderHistoryFacade', + importPath: '@spartacus/order/root', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ReplenishmentOrderHistoryFacade', + importPath: '@spartacus/order/root', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'OrderHistoryFacade', + importPath: '@spartacus/order/root', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ReplenishmentOrderHistoryFacade', + importPath: '@spartacus/order/root', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'OrderHistoryFacade', + importPath: '@spartacus/order/root', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ReplenishmentOrderHistoryFacade', + importPath: '@spartacus/order/root', + }, + ], + }, + { + class: 'OrderOverviewComponent', + importPath: '@spartacus/order/components', + deprecatedParams: [ + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'OrderDetailsService', + importPath: '@spartacus/order/components', + }, + { + className: 'CmsComponentData', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'OrderHistoryService', + importPath: '@spartacus/order/core', + deprecatedParams: [ + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'UserIdService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'UserIdService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'Store', + importPath: '@ngrx/store', + }, + { + className: 'UserIdService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'UnitUserListComponent', + importPath: '@spartacus/organization/administration/components', + deprecatedParams: [ + { + className: 'CurrentUnitService', + importPath: '@spartacus/organization/administration/components', + }, + ], + removeParams: [ + { + className: 'CurrentUnitService', + importPath: '@spartacus/organization/administration/components', + }, + ], + addParams: [ + { + className: 'CurrentUnitService', + importPath: '@spartacus/organization/administration/components', + }, + { + className: 'B2BUserService', + importPath: '@spartacus/organization/administration/core', + }, + ], + }, + { + class: 'UnitUserRolesCellComponent', + importPath: '@spartacus/organization/administration/components', + deprecatedParams: [ + { + className: 'OutletContextData', + importPath: '@spartacus/storefront', + }, + { + className: 'ItemService', + importPath: '@spartacus/organization/administration/components', + }, + ], + removeParams: [ + { + className: 'OutletContextData', + importPath: '@spartacus/storefront', + }, + { + className: 'ItemService', + importPath: '@spartacus/organization/administration/components', + }, + ], + addParams: [ + { + className: 'OutletContextData', + importPath: '@spartacus/storefront', + }, + { + className: 'ItemService', + importPath: '@spartacus/organization/administration/components', + }, + { + className: 'B2BUserService', + importPath: '@spartacus/organization/administration/core', + }, + ], + }, + { + class: 'CpqAccessLoaderService', + importPath: '@spartacus/product-configurator/rulebased/root', + deprecatedParams: [ + { + className: 'HttpClient', + importPath: '@angular/common', + }, + { + className: 'OccEndpointsService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'HttpClient', + importPath: '@angular/common', + }, + { + className: 'OccEndpointsService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'HttpClient', + importPath: '@angular/common', + }, + { + className: 'OccEndpointsService', + importPath: '@spartacus/core', + }, + { + className: 'UserIdService', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'CreateConfiguration', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: + '{\n owner: CommonConfigurator.Owner;\n configIdTemplate?: string;\n }', + importPath: '', + }, + ], + removeParams: [ + { + className: + '{\n owner: CommonConfigurator.Owner;\n configIdTemplate?: string;\n }', + importPath: '', + }, + ], + addParams: [ + { + className: + '{\n owner: CommonConfigurator.Owner;\n configIdTemplate?: string;\n forceReset?: boolean;\n }', + importPath: '', + }, + ], + }, + { + class: 'ConfiguratorAttributeCheckBoxComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [], + removeParams: [], + addParams: [ + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeCheckBoxListComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeDropDownComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeFooterComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeHeaderComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeInputFieldComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeMultiSelectionBaseComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeMultiSelectionImageComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeNumericInputFieldComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorAttributeNumericInputFieldService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'ConfiguratorAttributeNumericInputFieldService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'ConfiguratorAttributeNumericInputFieldService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorUISettingsConfig', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeRadioButtonComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeReadOnlyComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeSingleSelectionBaseComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeSingleSelectionBundleDropdownComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [], + removeParams: [], + addParams: [ + { + className: 'ConfiguratorAttributeQuantityService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorAttributeSingleSelectionImageComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [], + removeParams: [], + addParams: [ + { + className: 'ConfiguratorAttributeCompositionContext', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'LanguageService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'LanguageService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'LanguageService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'LanguageService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'ConfiguratorGroupMenuComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'HamburgerMenuService', + importPath: '@spartacus/storefront', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupMenuService', + importPath: '', + }, + { + className: 'DirectionService', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'HamburgerMenuService', + importPath: '@spartacus/storefront', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupMenuService', + importPath: '', + }, + { + className: 'DirectionService', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'HamburgerMenuService', + importPath: '@spartacus/storefront', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupMenuService', + importPath: '', + }, + { + className: 'DirectionService', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorGroupTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + ], + removeParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + ], + addParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'BreakpointService', + importPath: '@spartacus/storefront', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'HamburgerMenuService', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'ConfiguratorGroupTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'BreakpointService', + importPath: '@spartacus/storefront', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'HamburgerMenuService', + importPath: '@spartacus/storefront', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'BreakpointService', + importPath: '@spartacus/storefront', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'HamburgerMenuService', + importPath: '@spartacus/storefront', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorGroupsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'BreakpointService', + importPath: '@spartacus/storefront', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'HamburgerMenuService', + importPath: '@spartacus/storefront', + }, + ], + }, + { + class: 'ConfiguratorOverviewFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + removeParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + addParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ConfiguratorStorefrontUtilsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'ConfiguratorProductTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ProductService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ProductService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'ConfiguratorCommonsService', + importPath: '@spartacus/product-configurator/rulebased', + }, + { + className: 'ConfiguratorRouterExtractorService', + importPath: '@spartacus/product-configurator/common', + }, + { + className: 'ProductService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'VariantConfiguratorOccAdapter', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedParams: [ + { + className: 'HttpClient', + importPath: '@angular/common', + }, + { + className: 'OccEndpointsService', + importPath: '@spartacus/core', + }, + { + className: 'ConverterService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'HttpClient', + importPath: '@angular/common', + }, + { + className: 'OccEndpointsService', + importPath: '@spartacus/core', + }, + { + className: 'ConverterService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'HttpClient', + importPath: '@angular/common', + }, + { + className: 'OccEndpointsService', + importPath: '@spartacus/core', + }, + { + className: 'ConverterService', + importPath: '@spartacus/core', + }, + { + className: 'ConfiguratorExpertModeService', + importPath: '@spartacus/product-configurator/rulebased', + }, + ], + }, + { + class: 'SmartEditService', + importPath: '@spartacus/smartedit/core', + deprecatedParams: [ + { + className: 'CmsService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'BaseSiteService', + importPath: '@spartacus/core', + }, + { + className: 'NgZone', + importPath: '@angular/core', + }, + { + className: 'WindowRef', + importPath: '@spartacus/core', + }, + { + className: 'RendererFactory2', + importPath: '@angular/core', + }, + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'ScriptLoader', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'CmsService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'BaseSiteService', + importPath: '@spartacus/core', + }, + { + className: 'NgZone', + importPath: '@angular/core', + }, + { + className: 'WindowRef', + importPath: '@spartacus/core', + }, + { + className: 'RendererFactory2', + importPath: '@angular/core', + }, + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'ScriptLoader', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'CmsService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'BaseSiteService', + importPath: '@spartacus/core', + }, + { + className: 'NgZone', + importPath: '@angular/core', + }, + { + className: 'WindowRef', + importPath: '@spartacus/core', + }, + { + className: 'RendererFactory2', + importPath: '@angular/core', + }, + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + ], + }, + { + class: 'SmartEditLauncherService', + importPath: '@spartacus/smartedit/root', + deprecatedParams: [ + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'Location', + importPath: '@angular/common', + }, + { + className: 'FeatureModulesService', + importPath: '@spartacus/core', + }, + { + className: 'ScriptLoader', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'Location', + importPath: '@angular/common', + }, + { + className: 'FeatureModulesService', + importPath: '@spartacus/core', + }, + { + className: 'ScriptLoader', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'Location', + importPath: '@angular/common', + }, + { + className: 'ScriptLoader', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'SmartEditLauncherService', + importPath: '@spartacus/smartedit/root', + deprecatedParams: [ + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'Location', + importPath: '@angular/common', + }, + { + className: 'FeatureModulesService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'Location', + importPath: '@angular/common', + }, + { + className: 'FeatureModulesService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'SmartEditConfig', + importPath: '@spartacus/smartedit/root', + }, + { + className: 'Location', + importPath: '@angular/common', + }, + { + className: 'ScriptLoader', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'AddressBookComponent', + importPath: '@spartacus/storefront', + deprecatedParams: [ + { + className: 'AddressBookComponentService', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'AddressBookComponentService', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'AddressBookComponentService', + importPath: '@spartacus/storefront', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'MyInterestsComponent', + importPath: '@spartacus/storefront', + deprecatedParams: [ + { + className: 'UserInterestsService', + importPath: '@spartacus/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ProductService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'UserInterestsService', + importPath: '@spartacus/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ProductService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'UserInterestsService', + importPath: '@spartacus/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'ProductService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + ], + }, + { + class: 'ParagraphComponent', + importPath: '@spartacus/storefront', + deprecatedParams: [ + { + className: 'CmsComponentData', + importPath: '@spartacus/storefront', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'CmsComponentData', + importPath: '@spartacus/storefront', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'CmsComponentData', + importPath: '@spartacus/storefront', + }, + { + className: 'Router', + importPath: '@angular/router', + }, + ], + }, + { + class: 'CloseAccountModalComponent', + importPath: '@spartacus/user/profile/components', + deprecatedParams: [ + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'UserProfileFacade', + importPath: '@spartacus/user/profile/root', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + { + className: 'ElementRef', + importPath: '@angular/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + removeParams: [ + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'UserProfileFacade', + importPath: '@spartacus/user/profile/root', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + { + className: 'ElementRef', + importPath: '@angular/core', + }, + { + className: 'FeatureConfigService', + importPath: '@spartacus/core', + }, + ], + addParams: [ + { + className: 'AuthService', + importPath: '@spartacus/core', + }, + { + className: 'GlobalMessageService', + importPath: '@spartacus/core', + }, + { + className: 'RoutingService', + importPath: '@spartacus/core', + }, + { + className: 'TranslationService', + importPath: '@spartacus/core', + }, + { + className: 'UserProfileFacade', + importPath: '@spartacus/user/profile/root', + }, + { + className: 'LaunchDialogService', + importPath: '@spartacus/storefront', + }, + { + className: 'ElementRef', + importPath: '@angular/core', + }, + ], + }, +]; diff --git a/projects/schematics/src/migrations/6_0/methods-and-properties-deprecations/data/generated-methods-and-properties.migration.ts b/projects/schematics/src/migrations/6_0/methods-and-properties-deprecations/data/generated-methods-and-properties.migration.ts new file mode 100644 index 00000000000..a0d1eeddf3b --- /dev/null +++ b/projects/schematics/src/migrations/6_0/methods-and-properties-deprecations/data/generated-methods-and-properties.migration.ts @@ -0,0 +1,574 @@ +/* + * SPDX-FileCopyrightText: 2023 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +// +// Generated file, don't update manually. +// +import { MethodPropertyDeprecation } from '../../../../shared/utils/file-utils'; + +export const GENERATED_METHODS_AND_PROPERTIES_MIGRATION: MethodPropertyDeprecation[] = + [ + { + class: 'AsmMainUiComponent', + importPath: '@spartacus/asm/components', + deprecatedNode: 'launchDialogService', + comment: + "// TODO:Spartacus - The type of property 'launchDialogService: LaunchDialogService | undefined' changed to: 'launchDialogService: LaunchDialogService' ", + }, + { + class: 'CustomerListComponent', + importPath: '@spartacus/asm/components', + deprecatedNode: 'asmService', + comment: + "// TODO:Spartacus - Property 'asmService' was removed from Class 'CustomerListComponent'. ", + }, + { + class: 'CustomerSelectionComponent', + importPath: '@spartacus/asm/components', + deprecatedNode: 'closeResults', + comment: + "// TODO:Spartacus - The 'closeResults' method's signature changed to: 'closeResults( event: UIEvent): void'", + }, + { + class: 'CustomerSelectionComponent', + importPath: '@spartacus/asm/components', + deprecatedNode: 'onDocumentClick', + comment: + "// TODO:Spartacus - The 'onDocumentClick' method's signature changed to: 'onDocumentClick( event: UIEvent): void'", + }, + { + class: 'CustomerSelectionComponent', + importPath: '@spartacus/asm/components', + deprecatedNode: 'selectCustomerFromList', + comment: + "// TODO:Spartacus - The 'selectCustomerFromList' method's signature changed to: 'selectCustomerFromList( event: UIEvent, customer: User): void'", + }, + { + class: 'AsmService', + importPath: '@spartacus/asm/core', + deprecatedNode: 'customerListCustomersSearch', + comment: + "// TODO:Spartacus - Method 'customerListCustomersSearch' was removed from Class 'AsmService'. Has been moved to correct service AsmCustomerListFacade", + }, + { + class: 'AsmService', + importPath: '@spartacus/asm/core', + deprecatedNode: 'customerListCustomersSearchReset', + comment: + "// TODO:Spartacus - Method 'customerListCustomersSearchReset' was removed from Class 'AsmService'. Has been moved to correct service AsmCustomerListFacade", + }, + { + class: 'AsmService', + importPath: '@spartacus/asm/core', + deprecatedNode: 'getCustomerListCustomersSearchResults', + comment: + "// TODO:Spartacus - Method 'getCustomerListCustomersSearchResults' was removed from Class 'AsmService'. Has been moved to correct service AsmCustomerListFacade", + }, + { + class: 'AsmService', + importPath: '@spartacus/asm/core', + deprecatedNode: 'getCustomerListCustomersSearchResultsError', + comment: + "// TODO:Spartacus - Method 'getCustomerListCustomersSearchResultsError' was removed from Class 'AsmService'. Has been moved to correct service AsmCustomerListFacade", + }, + { + class: 'AsmService', + importPath: '@spartacus/asm/core', + deprecatedNode: 'getCustomerListCustomersSearchResultsLoading', + comment: + "// TODO:Spartacus - Method 'getCustomerListCustomersSearchResultsLoading' was removed from Class 'AsmService'. Has been moved to correct service AsmCustomerListFacade", + }, + { + class: 'CartAddEntry', + importPath: '@spartacus/cart/base/core', + deprecatedNode: 'payload', + comment: + "// TODO:Spartacus - The type of property 'payload: { cartId: string; userId: string; productCode: string; quantity: number; }' changed to: 'payload: { cartId: string; userId: string; productCode: string; quantity: number; pickupStore?: string; }' ", + }, + { + class: 'CartAddEntryFail', + importPath: '@spartacus/cart/base/core', + deprecatedNode: 'payload', + comment: + "// TODO:Spartacus - The type of property 'payload: { userId: string; cartId: string; productCode: string; quantity: number; error: any; }' changed to: 'payload: { error: any; userId: string; cartId: string; productCode: string; quantity: number; pickupStore?: string; }' ", + }, + { + class: 'CartAddEntrySuccess', + importPath: '@spartacus/cart/base/core', + deprecatedNode: 'payload', + comment: + "// TODO:Spartacus - The type of property 'payload: { userId: string; cartId: string; productCode: string; quantity: number; deliveryModeChanged?: boolean; entry?: OrderEntry; quantityAdded?: number; statusCode?: string; statusMessage?: string; }' changed to: 'payload: { userId: string; cartId: string; productCode: string; quantity: number; pickupStore?: string; deliveryModeChanged?: boolean; entry?: OrderEntry; quantityAdded?: number; statusCode?: string; statusMessage?: string; }' ", + }, + { + class: 'CartUpdateEntry', + importPath: '@spartacus/cart/base/core', + deprecatedNode: 'payload', + comment: + "// TODO:Spartacus - The type of property 'payload: { userId: string; cartId: string; entryNumber: string; quantity: number; }' changed to: 'payload: { userId: string; cartId: string; entryNumber: string; quantity?: number; pickupStore?: string; pickupToDelivery?: boolean; }' ", + }, + { + class: 'CartUpdateEntryFail', + importPath: '@spartacus/cart/base/core', + deprecatedNode: 'payload', + comment: + "// TODO:Spartacus - The type of property 'payload: { error: any; userId: string; cartId: string; entryNumber: string; quantity?: number; }' changed to: 'payload: { error: any; userId: string; cartId: string; entryNumber: string; quantity?: number; pickupStore?: string; pickupToDelivery?: boolean; }' ", + }, + { + class: 'CartUpdateEntrySuccess', + importPath: '@spartacus/cart/base/core', + deprecatedNode: 'payload', + comment: + "// TODO:Spartacus - The type of property 'payload: { userId: string; cartId: string; entryNumber: string; quantity?: number; }' changed to: 'payload: { userId: string; cartId: string; entryNumber: string; quantity?: number; pickupStore?: string; pickupToDelivery?: boolean; }' ", + }, + { + class: 'QuickOrderOrderEntriesContext', + importPath: '@spartacus/cart/quick-order/components', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'QuickOrderOrderEntriesContext'. ", + }, + { + class: 'MerchandisingCarouselComponent', + importPath: '@spartacus/cds', + deprecatedNode: 'componentData', + comment: + "// TODO:Spartacus - The type of property 'componentData: CmsComponentData' changed to: 'componentData: CmsComponentData' ", + }, + { + class: 'ProfileTagEventService', + importPath: '@spartacus/cds', + deprecatedNode: 'latestConsentReference', + comment: + "// TODO:Spartacus - The type of property 'latestConsentReference: any' changed to: 'latestConsentReference: BehaviorSubject' ", + }, + { + class: 'ProfileTagEventService', + importPath: '@spartacus/cds', + deprecatedNode: 'notifyProfileTagOfEventOccurence', + comment: + "// TODO:Spartacus - Method 'notifyProfileTagOfEventOccurence' was removed from Class 'ProfileTagEventService'. ", + }, + { + class: 'CheckoutDeliveryAddressComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'CheckoutDeliveryAddressComponent'. ", + }, + { + class: 'CheckoutDeliveryModeComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'ngOnDestroy', + comment: + "// TODO:Spartacus - Method 'ngOnDestroy' was removed from Class 'CheckoutDeliveryModeComponent'. ", + }, + { + class: 'CheckoutDeliveryModeComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'ngOnInit', + comment: + "// TODO:Spartacus - Method 'ngOnInit' was removed from Class 'CheckoutDeliveryModeComponent'. ", + }, + { + class: 'CheckoutDeliveryModeComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'subscriptions', + comment: + "// TODO:Spartacus - Property 'subscriptions' was removed from Class 'CheckoutDeliveryModeComponent'. ", + }, + { + class: 'CheckoutDeliveryModeComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'supportedDeliveryModes$', + comment: + "// TODO:Spartacus - The type of property 'supportedDeliveryModes$: Observable' changed to: 'supportedDeliveryModes$: Observable' ", + }, + { + class: 'CheckoutPaymentFormComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'getAddressCardContent', + comment: + "// TODO:Spartacus - The 'getAddressCardContent' method's signature changed to: 'getAddressCardContent( address: Address): Observable'", + }, + { + class: 'CheckoutPaymentFormComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'getAddressCardContent', + comment: + "// TODO:Spartacus - Method 'getAddressCardContent' was removed from Class 'CheckoutPaymentFormComponent'. ", + }, + { + class: 'CheckoutPaymentFormComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'translationService', + comment: + "// TODO:Spartacus - The type of property 'translationService: TranslationService | undefined' changed to: 'translationService: TranslationService' ", + }, + { + class: 'CheckoutReviewSubmitComponent', + importPath: '@spartacus/checkout/base/components', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'CheckoutReviewSubmitComponent'. ", + }, + { + class: 'HttpErrorHandler', + importPath: '@spartacus/core', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'HttpErrorHandler'. ", + }, + { + class: 'OrderConsignedEntriesComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'getConsignmentProducts', + comment: + "// TODO:Spartacus - Method 'getConsignmentProducts' was removed from Class 'OrderConsignedEntriesComponent'. ", + }, + { + class: 'OrderDetailItemsComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'buyItAgainTranslation$', + comment: + "// TODO:Spartacus - Property 'buyItAgainTranslation$' was removed from Class 'OrderDetailItemsComponent'. ", + }, + { + class: 'OrderDetailItemsComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'cancel$', + comment: + "// TODO:Spartacus - Property 'cancel$' was removed from Class 'OrderDetailItemsComponent'. ", + }, + { + class: 'OrderDetailItemsComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'completed$', + comment: + "// TODO:Spartacus - Property 'completed$' was removed from Class 'OrderDetailItemsComponent'. ", + }, + { + class: 'OrderDetailItemsComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'ngOnInit', + comment: + "// TODO:Spartacus - Method 'ngOnInit' was removed from Class 'OrderDetailItemsComponent'. ", + }, + { + class: 'OrderDetailItemsComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'others$', + comment: + "// TODO:Spartacus - Property 'others$' was removed from Class 'OrderDetailItemsComponent'. ", + }, + { + class: 'OrderDetailItemsComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'translation', + comment: + "// TODO:Spartacus - Property 'translation' was removed from Class 'OrderDetailItemsComponent'. ", + }, + { + class: 'OrderHistoryComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'OrderHistoryComponent'. ", + }, + { + class: 'OrderOverviewComponent', + importPath: '@spartacus/order/components', + deprecatedNode: 'order', + comment: + "// TODO:Spartacus - Property 'order' was removed from Class 'OrderOverviewComponent'. ", + }, + { + class: 'OrderHistoryService', + importPath: '@spartacus/order/core', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'OrderHistoryService'. ", + }, + { + class: 'OrgUnitService', + importPath: '@spartacus/organization/administration/core', + deprecatedNode: 'sortUnitList', + comment: + "// TODO:Spartacus - The 'sortUnitList' method's signature changed to: 'sortUnitList( a: B2BUnitNode, b: B2BUnitNode): 0 | 1 | -1'", + }, + { + class: 'ConfiguratorCartEntryBundleInfoComponent', + importPath: '@spartacus/product-configurator/common', + deprecatedNode: 'isDesktop', + comment: + "// TODO:Spartacus - Method 'isDesktop' was removed from Class 'ConfiguratorCartEntryBundleInfoComponent'. This method been removed.", + }, + { + class: 'CpqAccessLoaderService', + importPath: '@spartacus/product-configurator/rulebased/root', + deprecatedNode: 'userIdService', + comment: + "// TODO:Spartacus - The type of property 'userIdService: UserIdService | undefined' changed to: 'userIdService: UserIdService' ", + }, + { + class: 'CreateConfiguration', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'payload', + comment: + "// TODO:Spartacus - The type of property 'payload: { owner: CommonConfigurator.Owner; configIdTemplate?: string; }' changed to: 'payload: { owner: CommonConfigurator.Owner; configIdTemplate?: string; forceReset?: boolean; }' ", + }, + { + class: 'ConfiguratorAttributeCheckBoxComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'selectionChange', + comment: + "// TODO:Spartacus - Property 'selectionChange' was removed from Class 'ConfiguratorAttributeCheckBoxComponent'. Has been removed, see general migration documentation. Updates are now done via facade service", + }, + { + class: 'ConfiguratorAttributeInputFieldComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'inputChange', + comment: + "// TODO:Spartacus - Property 'inputChange' was removed from Class 'ConfiguratorAttributeInputFieldComponent'. Has been removed, see general migration documentation. Updates are now done via facade service", + }, + { + class: 'ConfiguratorAttributeMultiSelectionBaseComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'selectionChange', + comment: + "// TODO:Spartacus - Property 'selectionChange' was removed from Class 'ConfiguratorAttributeMultiSelectionBaseComponent'. Has been removed, see general migration documentation. Updates are now done via facade service", + }, + { + class: 'ConfiguratorAttributeMultiSelectionImageComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'selectionChange', + comment: + "// TODO:Spartacus - Property 'selectionChange' was removed from Class 'ConfiguratorAttributeMultiSelectionImageComponent'. Has been removed, see general migration documentation. Updates are now done via facade service", + }, + { + class: 'ConfiguratorAttributeReadOnlyComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'group', + comment: + "// TODO:Spartacus - The type of property 'group: String' changed to: 'group: string' ", + }, + { + class: 'ConfiguratorAttributeReadOnlyComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'translationService', + comment: + "// TODO:Spartacus - The type of property 'translationService: TranslationService | undefined' changed to: 'translationService: TranslationService' ", + }, + { + class: 'ConfiguratorAttributeSingleSelectionBaseComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'selectionChange', + comment: + "// TODO:Spartacus - Property 'selectionChange' was removed from Class 'ConfiguratorAttributeSingleSelectionBaseComponent'. Has been removed, see general migration documentation. Updates are now done via facade service", + }, + { + class: 'ConfiguratorAttributeSingleSelectionImageComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'selectionChange', + comment: + "// TODO:Spartacus - Property 'selectionChange' was removed from Class 'ConfiguratorAttributeSingleSelectionImageComponent'. Has been removed, see general migration documentation. Updates are now done via facade service", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'activeLanguage$', + comment: + "// TODO:Spartacus - Property 'activeLanguage$' was removed from Class 'ConfiguratorFormComponent'. Has been moved to new carved out component ConfiguratorGroupComponent", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configExpertModeService', + comment: + "// TODO:Spartacus - The type of property 'configExpertModeService: ConfiguratorExpertModeService | undefined' changed to: 'configExpertModeService: ConfiguratorExpertModeService' ", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configUtils', + comment: + "// TODO:Spartacus - Property 'configUtils' was removed from Class 'ConfiguratorFormComponent'. Has been moved to new carved out component ConfiguratorGroupComponent", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'createGroupId', + comment: + "// TODO:Spartacus - Method 'createGroupId' was removed from Class 'ConfiguratorFormComponent'. Has been moved to new carved out component ConfiguratorGroupComponent", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'displayConflictDescription', + comment: + "// TODO:Spartacus - Method 'displayConflictDescription' was removed from Class 'ConfiguratorFormComponent'. ", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'expMode', + comment: + "// TODO:Spartacus - Property 'expMode' was removed from Class 'ConfiguratorFormComponent'. ", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'isConflictGroupType', + comment: + "// TODO:Spartacus - Method 'isConflictGroupType' was removed from Class 'ConfiguratorFormComponent'. Has been moved to new carved out component ConfiguratorGroupComponent", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'languageService', + comment: + "// TODO:Spartacus - Property 'languageService' was removed from Class 'ConfiguratorFormComponent'. Has been moved to new carved out component ConfiguratorGroupComponent", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'subscriptions', + comment: + "// TODO:Spartacus - Property 'subscriptions' was removed from Class 'ConfiguratorFormComponent'. ", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'uiType', + comment: + "// TODO:Spartacus - Property 'uiType' was removed from Class 'ConfiguratorFormComponent'. Has been moved to new carved out component ConfiguratorGroupComponent", + }, + { + class: 'ConfiguratorFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'updateConfiguration', + comment: + "// TODO:Spartacus - Method 'updateConfiguration' was removed from Class 'ConfiguratorFormComponent'. Has been moved to new carved out component ConfiguratorGroupComponent", + }, + { + class: 'ConfiguratorGroupMenuComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configExpertModeService', + comment: + "// TODO:Spartacus - The type of property 'configExpertModeService: ConfiguratorExpertModeService | undefined' changed to: 'configExpertModeService: ConfiguratorExpertModeService' ", + }, + { + class: 'ConfiguratorGroupTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'breakpointService', + comment: + "// TODO:Spartacus - The type of property 'breakpointService: BreakpointService | undefined' changed to: 'breakpointService: BreakpointService' ", + }, + { + class: 'ConfiguratorGroupTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configExpertModeService', + comment: + "// TODO:Spartacus - The type of property 'configExpertModeService: ConfiguratorExpertModeService | undefined' changed to: 'configExpertModeService: ConfiguratorExpertModeService' ", + }, + { + class: 'ConfiguratorGroupTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configuratorStorefrontUtilsService', + comment: + "// TODO:Spartacus - The type of property 'configuratorStorefrontUtilsService: ConfiguratorStorefrontUtilsService | undefined' changed to: 'configuratorStorefrontUtilsService: ConfiguratorStorefrontUtilsService' ", + }, + { + class: 'ConfiguratorGroupTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'ConfiguratorGroupTitleComponent'. ", + }, + { + class: 'ConfiguratorGroupTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'hamburgerMenuService', + comment: + "// TODO:Spartacus - The type of property 'hamburgerMenuService: HamburgerMenuService | undefined' changed to: 'hamburgerMenuService: HamburgerMenuService' ", + }, + { + class: 'ConfiguratorOverviewFormComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configuratorStorefrontUtilsService', + comment: + "// TODO:Spartacus - The type of property 'configuratorStorefrontUtilsService: ConfiguratorStorefrontUtilsService | undefined' changed to: 'configuratorStorefrontUtilsService: ConfiguratorStorefrontUtilsService' ", + }, + { + class: 'ConfiguratorPriceComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'directionService', + comment: + "// TODO:Spartacus - The type of property 'directionService: DirectionService | undefined' changed to: 'directionService: DirectionService' ", + }, + { + class: 'ConfiguratorProductTitleComponent', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configExpertModeService', + comment: + "// TODO:Spartacus - The type of property 'configExpertModeService: ConfiguratorExpertModeService | undefined' changed to: 'configExpertModeService: ConfiguratorExpertModeService' ", + }, + { + class: 'VariantConfiguratorOccAdapter', + importPath: '@spartacus/product-configurator/rulebased', + deprecatedNode: 'configExpertModeService', + comment: + "// TODO:Spartacus - The type of property 'configExpertModeService: ConfiguratorExpertModeService | undefined' changed to: 'configExpertModeService: ConfiguratorExpertModeService' ", + }, + { + class: 'SmartEditService', + importPath: '@spartacus/smartedit/core', + deprecatedNode: 'loadScript', + comment: + "// TODO:Spartacus - Method 'loadScript' was removed from Class 'SmartEditService'. This method been moved to SmartEditLauncherService class.", + }, + { + class: 'SmartEditService', + importPath: '@spartacus/smartedit/core', + deprecatedNode: 'scriptLoader', + comment: + "// TODO:Spartacus - Property 'scriptLoader' was removed from Class 'SmartEditService'. ", + }, + { + class: 'SmartEditLauncherService', + importPath: '@spartacus/smartedit/root', + deprecatedNode: 'featureModules', + comment: + "// TODO:Spartacus - Property 'featureModules' was removed from Class 'SmartEditLauncherService'. ", + }, + { + class: 'SmartEditLauncherService', + importPath: '@spartacus/smartedit/root', + deprecatedNode: 'scriptLoader', + comment: + "// TODO:Spartacus - The type of property 'scriptLoader: ScriptLoader | undefined' changed to: 'scriptLoader: ScriptLoader' ", + }, + { + class: 'AddressBookComponent', + importPath: '@spartacus/storefront', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'AddressBookComponent'. ", + }, + { + class: 'ParagraphComponent', + importPath: '@spartacus/storefront', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'ParagraphComponent'. ", + }, + { + class: 'CloseAccountModalComponent', + importPath: '@spartacus/user/profile/components', + deprecatedNode: 'featureConfigService', + comment: + "// TODO:Spartacus - Property 'featureConfigService' was removed from Class 'CloseAccountModalComponent'. ", + }, + ]; diff --git a/projects/schematics/src/migrations/6_0/methods-and-properties-deprecations/methods-and-properties-deprecations.ts b/projects/schematics/src/migrations/6_0/methods-and-properties-deprecations/methods-and-properties-deprecations.ts index 225d1bdf680..4ab225704df 100644 --- a/projects/schematics/src/migrations/6_0/methods-and-properties-deprecations/methods-and-properties-deprecations.ts +++ b/projects/schematics/src/migrations/6_0/methods-and-properties-deprecations/methods-and-properties-deprecations.ts @@ -5,18 +5,15 @@ */ import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; -import { MethodPropertyDeprecation } from '../../../shared/utils/file-utils'; import { migrateMethodPropertiesDeprecation } from '../../mechanism/methods-and-properties-deprecations/methods-and-properties-deprecations'; - -export const METHODS_AND_PROPERTIES_DEPRECATIONS_DATA: MethodPropertyDeprecation[] = - []; +import { GENERATED_METHODS_AND_PROPERTIES_MIGRATION } from './data/generated-methods-and-properties.migration'; export function migrate(): Rule { return (tree: Tree, context: SchematicContext) => { return migrateMethodPropertiesDeprecation( tree, context, - METHODS_AND_PROPERTIES_DEPRECATIONS_DATA + GENERATED_METHODS_AND_PROPERTIES_MIGRATION ); }; } diff --git a/projects/schematics/src/migrations/6_0/removed-public-api-deprecations/data/generated-removed-public-api.migration.ts b/projects/schematics/src/migrations/6_0/removed-public-api-deprecations/data/generated-removed-public-api.migration.ts new file mode 100644 index 00000000000..9862141cbad --- /dev/null +++ b/projects/schematics/src/migrations/6_0/removed-public-api-deprecations/data/generated-removed-public-api.migration.ts @@ -0,0 +1,30 @@ +/* + * SPDX-FileCopyrightText: 2023 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import { DeprecatedNode } from '../../../../shared/utils/file-utils'; +// +// Generated file, don't update manually. +// +export const GENERATED_REMOVED_PUBLIC_API_DATA: DeprecatedNode[] = [ + { + node: 'I18nextHttpBackendService', + importPath: '@spartacus/core', + comment: + '// TODO:Spartacus - Class I18nextHttpBackendService has been removed and is no longer part of the public API. ', + }, + { + node: 'OrderDetailShippingComponent', + importPath: '@spartacus/order/components', + comment: + '// TODO:Spartacus - Class OrderDetailShippingComponent has been removed and is no longer part of the public API. ', + }, + { + node: 'OrderOverviewModule', + importPath: '@spartacus/order/components', + comment: + '// TODO:Spartacus - Class OrderOverviewModule has been removed and is no longer part of the public API. ', + }, +]; diff --git a/projects/schematics/src/migrations/6_0/removed-public-api-deprecations/removed-public-api-deprecations.ts b/projects/schematics/src/migrations/6_0/removed-public-api-deprecations/removed-public-api-deprecations.ts index 16734fff351..c5075879b10 100644 --- a/projects/schematics/src/migrations/6_0/removed-public-api-deprecations/removed-public-api-deprecations.ts +++ b/projects/schematics/src/migrations/6_0/removed-public-api-deprecations/removed-public-api-deprecations.ts @@ -5,14 +5,15 @@ */ import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; - -import { DeprecatedNode } from '../../../shared/utils/file-utils'; import { removedPublicApiDeprecation } from '../../mechanism/removed-public-api-deprecations/removed-public-api-deprecation'; - -export const REMOVED_PUBLIC_API_DATA: DeprecatedNode[] = []; +import { GENERATED_REMOVED_PUBLIC_API_DATA } from './data/generated-removed-public-api.migration'; export function migrate(): Rule { return (tree: Tree, context: SchematicContext) => { - return removedPublicApiDeprecation(tree, context, REMOVED_PUBLIC_API_DATA); + return removedPublicApiDeprecation( + tree, + context, + GENERATED_REMOVED_PUBLIC_API_DATA + ); }; } diff --git a/projects/schematics/src/migrations/6_0/rename-symbol/data/generated-rename-symbol.migration.ts b/projects/schematics/src/migrations/6_0/rename-symbol/data/generated-rename-symbol.migration.ts new file mode 100644 index 00000000000..dc71b9322fd --- /dev/null +++ b/projects/schematics/src/migrations/6_0/rename-symbol/data/generated-rename-symbol.migration.ts @@ -0,0 +1,32 @@ +/* + * SPDX-FileCopyrightText: 2023 SAP Spartacus team + * + * SPDX-License-Identifier: Apache-2.0 + */ + +import { RenamedSymbol } from '../../../../shared/utils/file-utils'; +// +// Generated file, don't update manually. +// +export const GENERATED_RENAMED_SYMBOLS_DATA: RenamedSymbol[] = [ + { + previousNode: 'AsmConfig', + previousImportPath: '@spartacus/asm/core', + newImportPath: '@spartacus/asm/root', + }, + { + previousNode: 'AsmUi', + previousImportPath: '@spartacus/asm/core', + newImportPath: '@spartacus/asm/root', + }, + { + previousNode: 'CustomerSearchOptions', + previousImportPath: '@spartacus/asm/core', + newImportPath: '@spartacus/asm/root', + }, + { + previousNode: 'CustomerSearchPage', + previousImportPath: '@spartacus/asm/core', + newImportPath: '@spartacus/asm/root', + }, +]; diff --git a/projects/schematics/src/migrations/6_0/rename-symbol/rename-symbol.ts b/projects/schematics/src/migrations/6_0/rename-symbol/rename-symbol.ts index 5e23dbf0e38..c98971c0bed 100644 --- a/projects/schematics/src/migrations/6_0/rename-symbol/rename-symbol.ts +++ b/projects/schematics/src/migrations/6_0/rename-symbol/rename-symbol.ts @@ -5,13 +5,11 @@ */ import { Rule, Tree } from '@angular-devkit/schematics'; -import { RenamedSymbol } from '../../../shared/utils/file-utils'; import { migrateRenamedSymbols } from '../../mechanism/rename-symbol/rename-symbol'; - -export const RENAMED_SYMBOLS_DATA: RenamedSymbol[] = []; +import { GENERATED_RENAMED_SYMBOLS_DATA } from './data/generated-rename-symbol.migration'; export function migrate(): Rule { return (tree: Tree) => { - return migrateRenamedSymbols(tree, RENAMED_SYMBOLS_DATA); + return migrateRenamedSymbols(tree, GENERATED_RENAMED_SYMBOLS_DATA); }; }