-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-13939 Extract textfield OCC endpoints by model augmentation
- Loading branch information
1 parent
bd79df1
commit 636ad92
Showing
3 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// Imported for side effects (module augmentation) | ||
import './occ-configurator-textfield-endpoints.model'; | ||
export * from './converters/index'; | ||
export * from './occ-configurator-textfield.adapter'; | ||
export * from './textfield-configurator-occ.module'; |
29 changes: 29 additions & 0 deletions
29
...ure-libs/product-configurator/textfield/occ/occ-configurator-textfield-endpoints.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters