Skip to content

Commit

Permalink
GH-13939 Only extract new occ endpoint to feature lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophHi committed Oct 6, 2021
1 parent 0243e62 commit 4fe7f67
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
import { OccEndpoint } from '@spartacus/core';
declare module '@spartacus/core' {
interface OccEndpoints {
/**
* Endpoint for create configuration for the textfield configurator
*
* @member {string}
*/
createTextfieldConfiguration?: string;
/**
* Endpoint for add textfield configuration to cart
*
* @member {string}
*/
addTextfieldConfigurationToCart?: string;
/**
* Endpoint for reading textfield configuration attached to the cart entry
*/
readTextfieldConfigurationForCartEntry?: string;
/**
* Endpoint for reading textfield configuration attached to the order entry
*/
readTextfieldConfigurationForOrderEntry?: string | OccEndpoint;
/**
* Endpoint for updating textfield configuration attached to the cart entry
*/
updateTextfieldConfigurationForCartEntry?: string;
}
}
21 changes: 20 additions & 1 deletion projects/core/src/occ/occ-models/occ-endpoints.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,26 @@ export interface OccEndpoints {
* @member {string}
*/
createVariantConfiguration?: string;

/**
* Endpoint for create configuration for the textfield configurator
*
* @member {string}
*/
createTextfieldConfiguration?: string;
/**
* Endpoint for add textfield configuration to cart
*
* @member {string}
*/
addTextfieldConfigurationToCart?: string;
/**
* Endpoint for reading textfield configuration attached to the cart entry
*/
readTextfieldConfigurationForCartEntry?: string;
/**
* Endpoint for updating textfield configuration attached to the cart entry
*/
updateTextfieldConfigurationForCartEntry?: string;
/**
* Endpoint to read configuration
*
Expand Down

0 comments on commit 4fe7f67

Please sign in to comment.