@capillarytech/creatives-library 7.11.6 → 7.11.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.11.6",
4
+ "version": "7.11.7",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -462,12 +462,15 @@ export class Creatives extends React.Component {
462
462
  const type = (get(this.props, "messageDetails.type") || '').toLowerCase();
463
463
  if (type === LOYALTY) {
464
464
  templateData.licenseCode = get(mobilpushTemplate, 'definition.licenseCode');
465
+ templateData.templateId = get(mobilpushTemplate, '_id');
465
466
  }
466
467
  const androidContent = get(mobilpushTemplate, 'versions.base.ANDROID');
467
468
  if (!isEmpty(androidContent)) {
468
- delete androidContent.cuid;
469
- delete androidContent.luid;
470
- delete androidContent.communicationId;
469
+ if (type !== LOYALTY) {
470
+ delete androidContent.cuid;
471
+ delete androidContent.luid;
472
+ delete androidContent.communicationId;
473
+ }
471
474
  const custom = {};
472
475
  forEach(androidContent.custom, (customKeyValue) => {
473
476
  custom[customKeyValue.key] = customKeyValue.value;
@@ -479,9 +482,11 @@ export class Creatives extends React.Component {
479
482
  }
480
483
  const iosContent = get(mobilpushTemplate, 'versions.base.IOS');
481
484
  if (!isEmpty(iosContent)) {
482
- delete iosContent.cuid;
483
- delete iosContent.luid;
484
- delete iosContent.communicationId;
485
+ if (type !== LOYALTY) {
486
+ delete iosContent.cuid;
487
+ delete iosContent.luid;
488
+ delete iosContent.communicationId;
489
+ }
485
490
  const custom = {};
486
491
  forEach(iosContent.custom, (customKeyValue) => {
487
492
  custom[customKeyValue.key] = customKeyValue.value;