@capillarytech/creatives-library 8.0.234 → 8.0.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/app.js +1 -0
- package/package.json +1 -1
- package/services/api.js +2 -0
- package/v2Containers/Rcs/index.js +3 -1
package/config/app.js
CHANGED
|
@@ -21,6 +21,7 @@ const config = {
|
|
|
21
21
|
},
|
|
22
22
|
development: {
|
|
23
23
|
api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
|
|
24
|
+
// api_endpoint: 'http://localhost:2022/arya/api/v1/creatives',
|
|
24
25
|
campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
|
|
25
26
|
campaigns_api_org_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/org/campaign',
|
|
26
27
|
auth_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/auth',
|
package/package.json
CHANGED
package/services/api.js
CHANGED
|
@@ -264,6 +264,7 @@ export const getUserData = () => {
|
|
|
264
264
|
|
|
265
265
|
export const createTemplate = ({template}) => {
|
|
266
266
|
const url = `${API_ENDPOINT}/templates/SMS`;
|
|
267
|
+
console.log("creating template",template);
|
|
267
268
|
return request(url, getAPICallObject('POST', template));
|
|
268
269
|
};
|
|
269
270
|
|
|
@@ -346,6 +347,7 @@ export const getAllTemplates = async ({channel, queryParams = {}}) => {
|
|
|
346
347
|
|
|
347
348
|
export const deleteTemplate = ({channel, id}) => {
|
|
348
349
|
const url = `${API_ENDPOINT}/templates/${id}/${channel}`;
|
|
350
|
+
console.log("deleting template", url);
|
|
349
351
|
return request(url, getAPICallObject('DELETE'));
|
|
350
352
|
//return API.deleteResource(url);
|
|
351
353
|
};
|
|
@@ -634,7 +634,9 @@ export const Rcs = (props) => {
|
|
|
634
634
|
updateRcsImageSrc('');
|
|
635
635
|
setRcsThumbnailSrc('');
|
|
636
636
|
}
|
|
637
|
-
|
|
637
|
+
if(isFullMode) {
|
|
638
|
+
onTemplateDescChange({ target: { value: templateDesc } });
|
|
639
|
+
}
|
|
638
640
|
}, [templateType, isEditFlow, isFullMode]);
|
|
639
641
|
|
|
640
642
|
useEffect(() => {
|