@spartacus/schematics
Version:
Spartacus schematics
50 lines • 3.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CHECKOUT_CONFIG_SERVICE_MIGRATION = void 0;
const constants_1 = require("../../../../shared/constants");
// projects/storefrontlib/cms-components/checkout/services/checkout-config.service.ts
exports.CHECKOUT_CONFIG_SERVICE_MIGRATION = [
{
class: constants_1.CHECKOUT_CONFIG_SERVICE,
importPath: constants_1.SPARTACUS_STOREFRONTLIB,
deprecatedNode: constants_1.STEPS,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.STEPS}' was removed from '${constants_1.CHECKOUT_CONFIG_SERVICE}'. Instead use ${constants_1.CHECKOUT_STEP_SERVICE}'.`,
},
{
class: constants_1.CHECKOUT_CONFIG_SERVICE,
importPath: constants_1.SPARTACUS_STOREFRONTLIB,
deprecatedNode: constants_1.GET_CHECKOUT_STEP,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_CHECKOUT_STEP}' was removed from '${constants_1.CHECKOUT_CONFIG_SERVICE}'. Instead use new method '${constants_1.GET_CHECKOUT_STEP}' from '${constants_1.CHECKOUT_STEP_SERVICE}'.`,
},
{
class: constants_1.CHECKOUT_CONFIG_SERVICE,
importPath: constants_1.SPARTACUS_STOREFRONTLIB,
deprecatedNode: constants_1.GET_CHECKOUT_STEP_ROUTE,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_CHECKOUT_STEP_ROUTE}' was removed from '${constants_1.CHECKOUT_CONFIG_SERVICE}'. Instead use new method '${constants_1.GET_CHECKOUT_STEP_ROUTE}' from '${constants_1.CHECKOUT_STEP_SERVICE}'.`,
},
{
class: constants_1.CHECKOUT_CONFIG_SERVICE,
importPath: constants_1.SPARTACUS_STOREFRONTLIB,
deprecatedNode: constants_1.GET_FIRST_CHECKOUT_STEP_ROUTE,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_FIRST_CHECKOUT_STEP_ROUTE}' was removed from '${constants_1.CHECKOUT_CONFIG_SERVICE}'. Instead use new method '${constants_1.GET_FIRST_CHECKOUT_STEP_ROUTE}' from '${constants_1.CHECKOUT_STEP_SERVICE}'.`,
},
{
class: constants_1.CHECKOUT_CONFIG_SERVICE,
importPath: constants_1.SPARTACUS_STOREFRONTLIB,
deprecatedNode: constants_1.GET_NEXT_CHECKOUT_STEP_URL,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_NEXT_CHECKOUT_STEP_URL}' was removed from '${constants_1.CHECKOUT_CONFIG_SERVICE}'. Instead use new method '${constants_1.GET_NEXT_CHECKOUT_STEP_URL}' from '${constants_1.CHECKOUT_STEP_SERVICE}'.`,
},
{
class: constants_1.CHECKOUT_CONFIG_SERVICE,
importPath: constants_1.SPARTACUS_STOREFRONTLIB,
deprecatedNode: constants_1.GET_PREVIOUS_CHECKOUT_STEP_URL,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_PREVIOUS_CHECKOUT_STEP_URL}' was removed from '${constants_1.CHECKOUT_CONFIG_SERVICE}'. Instead use new method '${constants_1.GET_PREVIOUS_CHECKOUT_STEP_URL}' from '${constants_1.CHECKOUT_STEP_SERVICE}'.`,
},
{
class: constants_1.CHECKOUT_CONFIG_SERVICE,
importPath: constants_1.SPARTACUS_STOREFRONTLIB,
deprecatedNode: constants_1.GET_CURRENT_STEP_INDEX,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_CURRENT_STEP_INDEX}' was removed from '${constants_1.CHECKOUT_CONFIG_SERVICE}'. Instead use new method '${constants_1.GET_CURRENT_STEP_INDEX}' from '${constants_1.CHECKOUT_STEP_SERVICE}'.`,
},
];
//# sourceMappingURL=checkout-config.service.migration.js.map