To add a new template, you need to have read and write access in the pricefx-clients-js repository.
How to Add a New Template
-
In pricefx-clients-js access the folder
packages/pricefx-modules/src/app/context/crmIntegration/dynamicInterceptors/templates. -
The file names represent the interceptor methods. To add a new template, select the interceptor method where you wish to add it and put your template there.
-
If you did not find the template file for the interceptor method, you need to create a new file and put it in the file called
packages/pricefx-modules/src/app/context/crmIntegration/dynamicInterceptors/templates/index.ts. -
Push changes into the branch and merge it.
-
How to Update Documentation
After you make any changes in interceptors, the documentation is not updated automatically. To update the documentation at https://api.pricefx.com/, you have to:
-
Open the Pricefx app.
-
In the web browser console, write
window.generateDoc = true;and press Enter. -
In Pricefx, go to the page
#/administration/configuration/crm-integration/interceptors. -
You should have the content for documentation in the browser console. Copy it.
-
Paste the content into the file
packages/pricefx-modules/src/app/context/crmIntegration/dynamicInterceptors/interceptorMethodNames.ts. -
Push changes into the branch and merge it.