@capillarytech/creatives-library 8.0.153-beta.1 → 8.0.154

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": "8.0.153-beta.1",
4
+ "version": "8.0.154",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -55,4 +55,4 @@
55
55
  "webpack-bugsnag-plugins": "^1.4.3",
56
56
  "whatwg-fetch": "3.0.0"
57
57
  }
58
- }
58
+ }
package/services/api.js CHANGED
@@ -386,12 +386,13 @@ export const uploadFile = ({
386
386
  data.append('appSecret', wechatParams.appSecret);
387
387
  }
388
388
  if (whatsappParams) {
389
- const { source, wabaId, accessToken, access_token, phoneId, hostName } = whatsappParams;
389
+ const { source, wabaId, accessToken, access_token, phoneId, hostName, baseUrl } = whatsappParams;
390
390
  data.append('source', source);
391
391
  data.append('wabaId', wabaId);
392
392
  data.append('accessToken', accessToken || access_token);
393
393
  data.append('phoneId', phoneId);
394
394
  data.append('hostName', hostName);
395
+ data.append('baseUrl', baseUrl);
395
396
  }
396
397
  const url = `${API_ENDPOINT}/assets/${assetType}`;
397
398
  // return API.post(url, data, true);
@@ -69,6 +69,7 @@ describe('uploadFile -- whatsapp image upload', () => {
69
69
  wabaId: '107499611940863',
70
70
  accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
71
71
  hostName: 'karixwhatsappbulk',
72
+ baseUrl: 'https://api.whatsapp.com/v1',
72
73
  },
73
74
  }),
74
75
  ).toEqual(Promise.resolve()));
@@ -18,6 +18,7 @@ describe('HAPTIC API Integration Tests', () => {
18
18
  access_token: 'haptic-token',
19
19
  phoneId: 'phone-456',
20
20
  hostName: 'hapticwhatsappbulk',
21
+ baseUrl: 'https://api.whatsapp.com/v1',
21
22
  };
22
23
 
23
24
  // Mock successful response
@@ -55,6 +56,7 @@ describe('HAPTIC API Integration Tests', () => {
55
56
  expect(formData.get('accessToken')).toBe('haptic-token'); // Note: API converts access_token to accessToken
56
57
  expect(formData.get('phoneId')).toBe('phone-456');
57
58
  expect(formData.get('hostName')).toBe('hapticwhatsappbulk');
59
+ expect(formData.get('baseUrl')).toBe('https://api.whatsapp.com/v1');
58
60
  });
59
61
 
60
62
  it('should handle missing HAPTIC parameters gracefully', () => {
@@ -83,6 +85,7 @@ describe('HAPTIC API Integration Tests', () => {
83
85
  expect(formData.get('accessToken')).toBe('undefined');
84
86
  expect(formData.get('phoneId')).toBe('undefined');
85
87
  expect(formData.get('hostName')).toBe('undefined');
88
+ expect(formData.get('baseUrl')).toBe('undefined');
86
89
  });
87
90
 
88
91
  it('should handle undefined whatsappParams', () => {
@@ -109,6 +112,7 @@ describe('HAPTIC API Integration Tests', () => {
109
112
  expect(formData.get('accessToken')).toBeNull();
110
113
  expect(formData.get('phoneId')).toBeNull();
111
114
  expect(formData.get('hostName')).toBeNull();
115
+ expect(formData.get('baseUrl')).toBeNull();
112
116
  });
113
117
 
114
118
  it('should handle empty string parameters', () => {
@@ -119,6 +123,7 @@ describe('HAPTIC API Integration Tests', () => {
119
123
  access_token: '',
120
124
  phoneId: '',
121
125
  hostName: '',
126
+ baseUrl: '',
122
127
  };
123
128
 
124
129
  fetch.mockResolvedValueOnce({
@@ -139,6 +144,7 @@ describe('HAPTIC API Integration Tests', () => {
139
144
  expect(formData.get('accessToken')).toBe('');
140
145
  expect(formData.get('phoneId')).toBe('');
141
146
  expect(formData.get('hostName')).toBe('');
147
+ expect(formData.get('baseUrl')).toBe('');
142
148
  });
143
149
 
144
150
  it('should handle null parameters', () => {
@@ -149,6 +155,7 @@ describe('HAPTIC API Integration Tests', () => {
149
155
  access_token: null,
150
156
  phoneId: null,
151
157
  hostName: null,
158
+ baseUrl: null,
152
159
  };
153
160
 
154
161
  fetch.mockResolvedValueOnce({
@@ -37,6 +37,7 @@ export const mockData = {
37
37
  accountId: '2000222347',
38
38
  accessToken: 'DTpZEh4VK',
39
39
  hostName: 'gupshupwhatsappbulk',
40
+ baseUrl: 'https://api.gupshup.io/whatsapp/v1',
40
41
  },
41
42
  },
42
43
  },
@@ -33,22 +33,6 @@ function SlideBoxFooter(props) {
33
33
  shouldShowContinueFooter,
34
34
  } = props;
35
35
 
36
- console.log("SlideBoxFooter", {
37
- slidBoxContent,
38
- onSave,
39
- onEditTemplate,
40
- onCreateNextStep,
41
- isFullMode,
42
- fetchingCmsData,
43
- isTemplateNameEmpty,
44
- errorMessages,
45
- isLiquidValidationError,
46
- currentTab,
47
- onTestAndPreview,
48
- showTestAndPreviewButton,
49
- shouldShowContinueFooter: shouldShowContinueFooter(),
50
- shouldShowDoneFooter: shouldShowDoneFooter(),
51
- });
52
36
  return (
53
37
  <div className='template-footer-width'>
54
38
  {isLiquidValidationError && (<ErrorInfoNote errorMessages={errorMessages} currentTab={currentTab?.toUpperCase()} />)}
@@ -200,19 +200,12 @@ export class Creatives extends React.Component {
200
200
  }
201
201
 
202
202
  onCreateNextStep = () => {
203
- console.log("onCreateNextStep 1");
204
203
  this.setState((prevState) => {
205
204
  let templateStep = prevState.templateStep + 1;
206
205
  const { emailCreateMode, currentChannel } = prevState;
207
206
  if ((currentChannel.toUpperCase() === constants.EMAIL && emailCreateMode === "upload") || [constants.MOBILE_PUSH, constants.WECHAT, constants.INAPP].includes(currentChannel.toUpperCase())) {
208
207
  templateStep = prevState.templateStep + 2;
209
208
  }
210
- console.log("onCreateNextStep 2", {
211
- templateStep,
212
- currentChannel,
213
- emailCreateMode,
214
- prevState,
215
- });
216
209
  return {
217
210
  templateStep,
218
211
  };
@@ -1360,17 +1353,7 @@ export class Creatives extends React.Component {
1360
1353
  }
1361
1354
  }
1362
1355
 
1363
- console.log("shouldShowDoneFooter", {
1364
- showDone,
1365
- channel,
1366
- currentStep,
1367
- slidBoxContent,
1368
- templateStep,
1369
- currentChannel,
1370
- templateData,
1371
- isFullMode,
1372
- isEmail: channel === constants.EMAIL,
1373
- });
1356
+
1374
1357
  return showDone;
1375
1358
  }
1376
1359
 
@@ -1449,19 +1432,7 @@ export class Creatives extends React.Component {
1449
1432
  } else if (currentChannel.toUpperCase() === constants.INAPP) {
1450
1433
  isShowContinueFooter = !isEmpty(inAppCreateMode) && currentChannel === "modeSelection";
1451
1434
  }
1452
- console.log("shouldShowContinueFooter", {
1453
- isShowContinueFooter,
1454
- mobilePushCreateMode,
1455
- weChatTemplateType,
1456
- inAppCreateMode,
1457
- currentStep,
1458
- currentChannel,
1459
- slidBoxContent,
1460
- templateStep,
1461
- emailCreateMode,
1462
- emailLayout: this.props?.EmailLayout,
1463
- isEmail: channel === constants.EMAIL,
1464
- });
1435
+
1465
1436
  return isShowContinueFooter;
1466
1437
  }
1467
1438
 
@@ -1,4 +1,4 @@
1
- import { useState, useEffect, useMemo, useCallback, useRef } from 'react';
1
+ import { useState, useEffect, useMemo, useCallback } from 'react';
2
2
  import isEmpty from 'lodash/isEmpty';
3
3
  import get from 'lodash/get';
4
4
  import find from 'lodash/find';
@@ -66,9 +66,6 @@ const useEmailWrapper = ({
66
66
  query: { module: 'library', type: 'embedded' },
67
67
  });
68
68
 
69
- // Prevent duplicate uploads from rapid/double onChange events
70
- const isUploadingRef = useRef(false);
71
-
72
69
  // Cleanup effect
73
70
  useEffect(() => {
74
71
  return () => {
@@ -117,11 +114,6 @@ const useEmailWrapper = ({
117
114
  }, [formatMessage]);
118
115
 
119
116
  const handleFileUpload = useCallback((file = {}) => {
120
- // Guard against duplicate triggers (e.g., multiple onChange emissions)
121
- if (isUploadingRef.current || isUploading) {
122
- return;
123
- }
124
-
125
117
  if (!isUploading) {
126
118
  // Validate file object
127
119
  if (!file || !file.name) {
@@ -155,20 +147,11 @@ const useEmailWrapper = ({
155
147
  return;
156
148
  }
157
149
 
158
- // Mark uploading to prevent duplicate dispatches before Redux state updates
159
- isUploadingRef.current = true;
160
-
161
150
  templatesActions.handleZipUpload(file.originFileObj, () => { // Handle upload success
162
151
  stopTimerGA();
163
152
  setModeContent({ file });
164
- // Clear local uploading guard before navigating to next step
165
- isUploadingRef.current = false;
166
153
  showNextStep();
167
- }, () => {
168
- // Clear local uploading guard on error as well
169
- isUploadingRef.current = false;
170
- handleZipUploadError();
171
- });
154
+ }, handleZipUploadError);
172
155
  } else if (fileExtension === 'html' || fileExtension === 'htm') {
173
156
  // Verify originFileObj exists
174
157
  if (!file.originFileObj) {
@@ -176,16 +159,12 @@ const useEmailWrapper = ({
176
159
  return;
177
160
  }
178
161
 
179
- // Guard during HTML processing to avoid duplicate reads
180
- isUploadingRef.current = true;
181
-
182
162
  const reader = new FileReader();
183
163
  reader.onload = () => {
184
164
  const text = reader.result;
185
165
  // Add defensive check for empty or invalid content
186
166
  if (!text || typeof text !== 'string') {
187
167
  handleZipUploadError();
188
- isUploadingRef.current = false;
189
168
  return;
190
169
  }
191
170
 
@@ -194,12 +173,9 @@ const useEmailWrapper = ({
194
173
 
195
174
  setModeContent({ file });
196
175
  templatesActions.handleHtmlUpload(text);
197
- // Clear uploading guard after handing off HTML upload
198
- isUploadingRef.current = false;
199
176
  };
200
177
  reader.onerror = () => {
201
178
  handleZipUploadError();
202
- isUploadingRef.current = false;
203
179
  };
204
180
  reader.readAsText(file.originFileObj);
205
181
  } else {
@@ -81,6 +81,7 @@ export const senderDetailsWhatsapp = {
81
81
  wabaId: "testSourceAccount",
82
82
  userid: "testSourceAccount",
83
83
  sourceAccountIdentifier: "testSourceAccount",
84
+ baseUrl: "https://api.whatsapp.com/v1",
84
85
  },
85
86
  hostname: "testWhatsappHost",
86
87
  },
@@ -39,6 +39,7 @@ import {
39
39
  CAP_WHITE,
40
40
  } from '@capillarytech/cap-ui-library/styled/variables';
41
41
  import { makeSelectWhatsapp, makeSelectAccount } from './selectors';
42
+ import { makeSelectTemplates } from '../Templates/selectors';
42
43
  import {
43
44
  isLoadingMetaEntities,
44
45
  makeSelectMetaEntities,
@@ -135,6 +136,23 @@ let editContent = {};
135
136
  let tagValidationResponse = {};
136
137
  let headerTagValidationResponse = {};
137
138
 
139
+ // Function to extract baseUrl from domainProperties
140
+ export const extractBaseUrlFromDomainProperties = (selectedSourceAccountIdentifier, domainPropertiesData = []) => {
141
+ if (!selectedSourceAccountIdentifier || isEmpty(domainPropertiesData)) {
142
+ return '';
143
+ }
144
+
145
+ // Handle both API response structure and processed Redux state
146
+ const whatsappDomainProperties = domainPropertiesData?.entity?.WHATSAPP || domainPropertiesData;
147
+
148
+ const domainProperty = whatsappDomainProperties?.find(({ domainProperties }) => {
149
+ const { connectionProperties: { sourceAccountIdentifier } = {} } = domainProperties || {};
150
+ return sourceAccountIdentifier === selectedSourceAccountIdentifier;
151
+ });
152
+
153
+ return domainProperty?.domainProperties?.connectionProperties?.baseUrl || '';
154
+ };
155
+
138
156
  export const Whatsapp = (props) => {
139
157
  const {
140
158
  intl,
@@ -184,6 +202,7 @@ export const Whatsapp = (props) => {
184
202
  const [accessToken, setAccessToken] = useState('');
185
203
  const [accountName, setAccountName] = useState('');
186
204
  const [host, setHost] = useState('');
205
+ const [baseUrl, setBaseUrl] = useState('');
187
206
  const [spin, setSpin] = useState(false);
188
207
  const [unsubscribeRequired, setUnsubscribeRequired] = useState(false);
189
208
  const [securityWarningReqd, setSecurityWarningReqd] = useState(false);
@@ -276,8 +295,14 @@ export const Whatsapp = (props) => {
276
295
  setAccessToken(configs.accessToken || '');
277
296
  setAccountName(name);
278
297
  setHost(hostName);
298
+
299
+ // Extract baseUrl from domainProperties
300
+ const { senderDetails = {} } = props.Templates || {};
301
+ const { domainProperties = [] } = senderDetails;
302
+ const extractedBaseUrl = extractBaseUrlFromDomainProperties(sourceAccountIdentifier, domainProperties);
303
+ setBaseUrl(extractedBaseUrl);
279
304
  }
280
- }, [accountData.selectedWhatsappAccount]);
305
+ }, [accountData.selectedWhatsappAccount, props.Templates?.senderDetails]);
281
306
 
282
307
  //gets template details
283
308
  const paramObj = params || {};
@@ -1073,6 +1098,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
1073
1098
  wabaId: accountId,
1074
1099
  phoneId,
1075
1100
  hostName: host,
1101
+ baseUrl: baseUrl,
1076
1102
  };
1077
1103
 
1078
1104
  // Add the correct access token field based on host
@@ -1613,6 +1639,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
1613
1639
  accessToken,
1614
1640
  }),
1615
1641
  hostName: host,
1642
+ baseUrl: baseUrl,
1616
1643
  ...(isBtnTypeQuickReply && {
1617
1644
  buttonType,
1618
1645
  buttons: getQuickReplyData(),
@@ -2981,6 +3008,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
2981
3008
  const mapStateToProps = createStructuredSelector({
2982
3009
  editData: makeSelectWhatsapp(),
2983
3010
  accountData: makeSelectAccount(),
3011
+ Templates: makeSelectTemplates(),
2984
3012
  metaEntities: makeSelectMetaEntities(),
2985
3013
  loadingTags: isLoadingMetaEntities(),
2986
3014
  injectedTags: setInjectedTags(),
@@ -2297,6 +2297,23 @@ new message content.",
2297
2297
  }
2298
2298
  >
2299
2299
  <Whatsapp
2300
+ Templates={
2301
+ Object {
2302
+ "senderDetails": Object {
2303
+ "domainProperties": Array [
2304
+ Object {
2305
+ "domainProperties": Object {
2306
+ "connectionProperties": Object {
2307
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
2308
+ "sourceAccountIdentifier": "2000222347",
2309
+ },
2310
+ },
2311
+ },
2312
+ ],
2313
+ "status": "SUCCESS",
2314
+ },
2315
+ }
2316
+ }
2300
2317
  accountData={
2301
2318
  Object {
2302
2319
  "selectedWhatsappAccount": Object {
@@ -19188,6 +19205,23 @@ new message content.",
19188
19205
  }
19189
19206
  >
19190
19207
  <Whatsapp
19208
+ Templates={
19209
+ Object {
19210
+ "senderDetails": Object {
19211
+ "domainProperties": Array [
19212
+ Object {
19213
+ "domainProperties": Object {
19214
+ "connectionProperties": Object {
19215
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
19216
+ "sourceAccountIdentifier": "2000222347",
19217
+ },
19218
+ },
19219
+ },
19220
+ ],
19221
+ "status": "SUCCESS",
19222
+ },
19223
+ }
19224
+ }
19191
19225
  accountData={
19192
19226
  Object {
19193
19227
  "selectedWhatsappAccount": Object {
@@ -36043,6 +36077,23 @@ new message content.",
36043
36077
  }
36044
36078
  >
36045
36079
  <Whatsapp
36080
+ Templates={
36081
+ Object {
36082
+ "senderDetails": Object {
36083
+ "domainProperties": Array [
36084
+ Object {
36085
+ "domainProperties": Object {
36086
+ "connectionProperties": Object {
36087
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
36088
+ "sourceAccountIdentifier": "2000222347",
36089
+ },
36090
+ },
36091
+ },
36092
+ ],
36093
+ "status": "SUCCESS",
36094
+ },
36095
+ }
36096
+ }
36046
36097
  accountData={
36047
36098
  Object {
36048
36099
  "selectedWhatsappAccount": Object {
@@ -54818,6 +54869,23 @@ new message content.",
54818
54869
  }
54819
54870
  >
54820
54871
  <Whatsapp
54872
+ Templates={
54873
+ Object {
54874
+ "senderDetails": Object {
54875
+ "domainProperties": Array [
54876
+ Object {
54877
+ "domainProperties": Object {
54878
+ "connectionProperties": Object {
54879
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
54880
+ "sourceAccountIdentifier": "2000222347",
54881
+ },
54882
+ },
54883
+ },
54884
+ ],
54885
+ "status": "SUCCESS",
54886
+ },
54887
+ }
54888
+ }
54821
54889
  accountData={
54822
54890
  Object {
54823
54891
  "selectedWhatsappAccount": Object {
@@ -73811,6 +73879,23 @@ new message content.",
73811
73879
  }
73812
73880
  >
73813
73881
  <Whatsapp
73882
+ Templates={
73883
+ Object {
73884
+ "senderDetails": Object {
73885
+ "domainProperties": Array [
73886
+ Object {
73887
+ "domainProperties": Object {
73888
+ "connectionProperties": Object {
73889
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
73890
+ "sourceAccountIdentifier": "2000222347",
73891
+ },
73892
+ },
73893
+ },
73894
+ ],
73895
+ "status": "SUCCESS",
73896
+ },
73897
+ }
73898
+ }
73814
73899
  accountData={
73815
73900
  Object {
73816
73901
  "selectedWhatsappAccount": Object {
@@ -93561,6 +93646,23 @@ new message content.",
93561
93646
  }
93562
93647
  >
93563
93648
  <Whatsapp
93649
+ Templates={
93650
+ Object {
93651
+ "senderDetails": Object {
93652
+ "domainProperties": Array [
93653
+ Object {
93654
+ "domainProperties": Object {
93655
+ "connectionProperties": Object {
93656
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
93657
+ "sourceAccountIdentifier": "2000222347",
93658
+ },
93659
+ },
93660
+ },
93661
+ ],
93662
+ "status": "SUCCESS",
93663
+ },
93664
+ }
93665
+ }
93564
93666
  accountData={
93565
93667
  Object {
93566
93668
  "selectedWhatsappAccount": Object {
@@ -110426,6 +110528,23 @@ new message content.",
110426
110528
  }
110427
110529
  >
110428
110530
  <Whatsapp
110531
+ Templates={
110532
+ Object {
110533
+ "senderDetails": Object {
110534
+ "domainProperties": Array [
110535
+ Object {
110536
+ "domainProperties": Object {
110537
+ "connectionProperties": Object {
110538
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
110539
+ "sourceAccountIdentifier": "2000222347",
110540
+ },
110541
+ },
110542
+ },
110543
+ ],
110544
+ "status": "SUCCESS",
110545
+ },
110546
+ }
110547
+ }
110429
110548
  accountData={
110430
110549
  Object {
110431
110550
  "selectedWhatsappAccount": Object {
@@ -127281,6 +127400,23 @@ new message content.",
127281
127400
  }
127282
127401
  >
127283
127402
  <Whatsapp
127403
+ Templates={
127404
+ Object {
127405
+ "senderDetails": Object {
127406
+ "domainProperties": Array [
127407
+ Object {
127408
+ "domainProperties": Object {
127409
+ "connectionProperties": Object {
127410
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
127411
+ "sourceAccountIdentifier": "2000222347",
127412
+ },
127413
+ },
127414
+ },
127415
+ ],
127416
+ "status": "SUCCESS",
127417
+ },
127418
+ }
127419
+ }
127284
127420
  accountData={
127285
127421
  Object {
127286
127422
  "selectedWhatsappAccount": Object {
@@ -146608,6 +146744,23 @@ new message content.",
146608
146744
  }
146609
146745
  >
146610
146746
  <Whatsapp
146747
+ Templates={
146748
+ Object {
146749
+ "senderDetails": Object {
146750
+ "domainProperties": Array [
146751
+ Object {
146752
+ "domainProperties": Object {
146753
+ "connectionProperties": Object {
146754
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
146755
+ "sourceAccountIdentifier": "2000222347",
146756
+ },
146757
+ },
146758
+ },
146759
+ ],
146760
+ "status": "SUCCESS",
146761
+ },
146762
+ }
146763
+ }
146611
146764
  accountData={
146612
146765
  Object {
146613
146766
  "selectedWhatsappAccount": Object {
@@ -166153,6 +166306,23 @@ new message content.",
166153
166306
  }
166154
166307
  >
166155
166308
  <Whatsapp
166309
+ Templates={
166310
+ Object {
166311
+ "senderDetails": Object {
166312
+ "domainProperties": Array [
166313
+ Object {
166314
+ "domainProperties": Object {
166315
+ "connectionProperties": Object {
166316
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
166317
+ "sourceAccountIdentifier": "2000222347",
166318
+ },
166319
+ },
166320
+ },
166321
+ ],
166322
+ "status": "SUCCESS",
166323
+ },
166324
+ }
166325
+ }
166156
166326
  accountData={
166157
166327
  Object {
166158
166328
  "selectedWhatsappAccount": Object {
@@ -186455,6 +186625,23 @@ new message content.",
186455
186625
  }
186456
186626
  >
186457
186627
  <Whatsapp
186628
+ Templates={
186629
+ Object {
186630
+ "senderDetails": Object {
186631
+ "domainProperties": Array [
186632
+ Object {
186633
+ "domainProperties": Object {
186634
+ "connectionProperties": Object {
186635
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
186636
+ "sourceAccountIdentifier": "2000222347",
186637
+ },
186638
+ },
186639
+ },
186640
+ ],
186641
+ "status": "SUCCESS",
186642
+ },
186643
+ }
186644
+ }
186458
186645
  accountData={Object {}}
186459
186646
  actions={
186460
186647
  Object {
@@ -206969,6 +207156,23 @@ new message content.",
206969
207156
  }
206970
207157
  >
206971
207158
  <Whatsapp
207159
+ Templates={
207160
+ Object {
207161
+ "senderDetails": Object {
207162
+ "domainProperties": Array [
207163
+ Object {
207164
+ "domainProperties": Object {
207165
+ "connectionProperties": Object {
207166
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
207167
+ "sourceAccountIdentifier": "2000222347",
207168
+ },
207169
+ },
207170
+ },
207171
+ ],
207172
+ "status": "SUCCESS",
207173
+ },
207174
+ }
207175
+ }
206972
207176
  accountData={
206973
207177
  Object {
206974
207178
  "selectedWhatsappAccount": Object {
@@ -217817,6 +218021,23 @@ new message content.",
217817
218021
  }
217818
218022
  >
217819
218023
  <Whatsapp
218024
+ Templates={
218025
+ Object {
218026
+ "senderDetails": Object {
218027
+ "domainProperties": Array [
218028
+ Object {
218029
+ "domainProperties": Object {
218030
+ "connectionProperties": Object {
218031
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
218032
+ "sourceAccountIdentifier": "2000222347",
218033
+ },
218034
+ },
218035
+ },
218036
+ ],
218037
+ "status": "SUCCESS",
218038
+ },
218039
+ }
218040
+ }
217820
218041
  accountData={
217821
218042
  Object {
217822
218043
  "selectedWhatsappAccount": Object {
@@ -225949,6 +226170,23 @@ new message content.",
225949
226170
  }
225950
226171
  >
225951
226172
  <Whatsapp
226173
+ Templates={
226174
+ Object {
226175
+ "senderDetails": Object {
226176
+ "domainProperties": Array [
226177
+ Object {
226178
+ "domainProperties": Object {
226179
+ "connectionProperties": Object {
226180
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
226181
+ "sourceAccountIdentifier": "2000222347",
226182
+ },
226183
+ },
226184
+ },
226185
+ ],
226186
+ "status": "SUCCESS",
226187
+ },
226188
+ }
226189
+ }
225952
226190
  accountData={
225953
226191
  Object {
225954
226192
  "selectedWhatsappAccount": Object {
@@ -234517,6 +234755,23 @@ new message content.",
234517
234755
  }
234518
234756
  >
234519
234757
  <Whatsapp
234758
+ Templates={
234759
+ Object {
234760
+ "senderDetails": Object {
234761
+ "domainProperties": Array [
234762
+ Object {
234763
+ "domainProperties": Object {
234764
+ "connectionProperties": Object {
234765
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
234766
+ "sourceAccountIdentifier": "2000222347",
234767
+ },
234768
+ },
234769
+ },
234770
+ ],
234771
+ "status": "SUCCESS",
234772
+ },
234773
+ }
234774
+ }
234520
234775
  accountData={
234521
234776
  Object {
234522
234777
  "selectedWhatsappAccount": Object {
@@ -247808,6 +248063,23 @@ new message content.",
247808
248063
  }
247809
248064
  >
247810
248065
  <Whatsapp
248066
+ Templates={
248067
+ Object {
248068
+ "senderDetails": Object {
248069
+ "domainProperties": Array [
248070
+ Object {
248071
+ "domainProperties": Object {
248072
+ "connectionProperties": Object {
248073
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
248074
+ "sourceAccountIdentifier": "2000222347",
248075
+ },
248076
+ },
248077
+ },
248078
+ ],
248079
+ "status": "SUCCESS",
248080
+ },
248081
+ }
248082
+ }
247811
248083
  accountData={
247812
248084
  Object {
247813
248085
  "selectedWhatsappAccount": Object {
@@ -262449,6 +262721,23 @@ new message content.",
262449
262721
  }
262450
262722
  >
262451
262723
  <Whatsapp
262724
+ Templates={
262725
+ Object {
262726
+ "senderDetails": Object {
262727
+ "domainProperties": Array [
262728
+ Object {
262729
+ "domainProperties": Object {
262730
+ "connectionProperties": Object {
262731
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
262732
+ "sourceAccountIdentifier": "2000222347",
262733
+ },
262734
+ },
262735
+ },
262736
+ ],
262737
+ "status": "SUCCESS",
262738
+ },
262739
+ }
262740
+ }
262452
262741
  accountData={
262453
262742
  Object {
262454
262743
  "selectedWhatsappAccount": Object {
@@ -273630,6 +273919,23 @@ new message content.",
273630
273919
  }
273631
273920
  >
273632
273921
  <Whatsapp
273922
+ Templates={
273923
+ Object {
273924
+ "senderDetails": Object {
273925
+ "domainProperties": Array [
273926
+ Object {
273927
+ "domainProperties": Object {
273928
+ "connectionProperties": Object {
273929
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
273930
+ "sourceAccountIdentifier": "2000222347",
273931
+ },
273932
+ },
273933
+ },
273934
+ ],
273935
+ "status": "SUCCESS",
273936
+ },
273937
+ }
273938
+ }
273633
273939
  accountData={
273634
273940
  Object {
273635
273941
  "selectedWhatsappAccount": Object {
@@ -290485,6 +290791,23 @@ new message content.",
290485
290791
  }
290486
290792
  >
290487
290793
  <Whatsapp
290794
+ Templates={
290795
+ Object {
290796
+ "senderDetails": Object {
290797
+ "domainProperties": Array [
290798
+ Object {
290799
+ "domainProperties": Object {
290800
+ "connectionProperties": Object {
290801
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
290802
+ "sourceAccountIdentifier": "2000222347",
290803
+ },
290804
+ },
290805
+ },
290806
+ ],
290807
+ "status": "SUCCESS",
290808
+ },
290809
+ }
290810
+ }
290488
290811
  accountData={
290489
290812
  Object {
290490
290813
  "selectedWhatsappAccount": Object {
@@ -309812,6 +310135,23 @@ new message content.",
309812
310135
  }
309813
310136
  >
309814
310137
  <Whatsapp
310138
+ Templates={
310139
+ Object {
310140
+ "senderDetails": Object {
310141
+ "domainProperties": Array [
310142
+ Object {
310143
+ "domainProperties": Object {
310144
+ "connectionProperties": Object {
310145
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
310146
+ "sourceAccountIdentifier": "2000222347",
310147
+ },
310148
+ },
310149
+ },
310150
+ ],
310151
+ "status": "SUCCESS",
310152
+ },
310153
+ }
310154
+ }
309815
310155
  accountData={
309816
310156
  Object {
309817
310157
  "selectedWhatsappAccount": Object {
@@ -326667,6 +327007,23 @@ new message content.",
326667
327007
  }
326668
327008
  >
326669
327009
  <Whatsapp
327010
+ Templates={
327011
+ Object {
327012
+ "senderDetails": Object {
327013
+ "domainProperties": Array [
327014
+ Object {
327015
+ "domainProperties": Object {
327016
+ "connectionProperties": Object {
327017
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
327018
+ "sourceAccountIdentifier": "2000222347",
327019
+ },
327020
+ },
327021
+ },
327022
+ ],
327023
+ "status": "SUCCESS",
327024
+ },
327025
+ }
327026
+ }
326670
327027
  accountData={
326671
327028
  Object {
326672
327029
  "selectedWhatsappAccount": Object {
@@ -343748,6 +344105,23 @@ new message content.",
343748
344105
  }
343749
344106
  >
343750
344107
  <Whatsapp
344108
+ Templates={
344109
+ Object {
344110
+ "senderDetails": Object {
344111
+ "domainProperties": Array [
344112
+ Object {
344113
+ "domainProperties": Object {
344114
+ "connectionProperties": Object {
344115
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
344116
+ "sourceAccountIdentifier": "2000222347",
344117
+ },
344118
+ },
344119
+ },
344120
+ ],
344121
+ "status": "SUCCESS",
344122
+ },
344123
+ }
344124
+ }
343751
344125
  accountData={
343752
344126
  Object {
343753
344127
  "selectedWhatsappAccount": Object {
@@ -361069,6 +361443,23 @@ new message content.",
361069
361443
  }
361070
361444
  >
361071
361445
  <Whatsapp
361446
+ Templates={
361447
+ Object {
361448
+ "senderDetails": Object {
361449
+ "domainProperties": Array [
361450
+ Object {
361451
+ "domainProperties": Object {
361452
+ "connectionProperties": Object {
361453
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
361454
+ "sourceAccountIdentifier": "2000222347",
361455
+ },
361456
+ },
361457
+ },
361458
+ ],
361459
+ "status": "SUCCESS",
361460
+ },
361461
+ }
361462
+ }
361072
361463
  accountData={
361073
361464
  Object {
361074
361465
  "selectedWhatsappAccount": Object {
@@ -378616,6 +379007,23 @@ new message content.",
378616
379007
  }
378617
379008
  >
378618
379009
  <Whatsapp
379010
+ Templates={
379011
+ Object {
379012
+ "senderDetails": Object {
379013
+ "domainProperties": Array [
379014
+ Object {
379015
+ "domainProperties": Object {
379016
+ "connectionProperties": Object {
379017
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
379018
+ "sourceAccountIdentifier": "2000222347",
379019
+ },
379020
+ },
379021
+ },
379022
+ ],
379023
+ "status": "SUCCESS",
379024
+ },
379025
+ }
379026
+ }
378619
379027
  accountData={
378620
379028
  Object {
378621
379029
  "selectedWhatsappAccount": Object {
@@ -396404,6 +396812,23 @@ new message content.",
396404
396812
  }
396405
396813
  >
396406
396814
  <Whatsapp
396815
+ Templates={
396816
+ Object {
396817
+ "senderDetails": Object {
396818
+ "domainProperties": Array [
396819
+ Object {
396820
+ "domainProperties": Object {
396821
+ "connectionProperties": Object {
396822
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
396823
+ "sourceAccountIdentifier": "2000222347",
396824
+ },
396825
+ },
396826
+ },
396827
+ ],
396828
+ "status": "SUCCESS",
396829
+ },
396830
+ }
396831
+ }
396407
396832
  accountData={
396408
396833
  Object {
396409
396834
  "selectedWhatsappAccount": Object {
@@ -414432,6 +414857,23 @@ new message content.",
414432
414857
  }
414433
414858
  >
414434
414859
  <Whatsapp
414860
+ Templates={
414861
+ Object {
414862
+ "senderDetails": Object {
414863
+ "domainProperties": Array [
414864
+ Object {
414865
+ "domainProperties": Object {
414866
+ "connectionProperties": Object {
414867
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
414868
+ "sourceAccountIdentifier": "2000222347",
414869
+ },
414870
+ },
414871
+ },
414872
+ ],
414873
+ "status": "SUCCESS",
414874
+ },
414875
+ }
414876
+ }
414435
414877
  accountData={
414436
414878
  Object {
414437
414879
  "selectedWhatsappAccount": Object {
@@ -432697,6 +433139,23 @@ new message content.",
432697
433139
  }
432698
433140
  >
432699
433141
  <Whatsapp
433142
+ Templates={
433143
+ Object {
433144
+ "senderDetails": Object {
433145
+ "domainProperties": Array [
433146
+ Object {
433147
+ "domainProperties": Object {
433148
+ "connectionProperties": Object {
433149
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
433150
+ "sourceAccountIdentifier": "2000222347",
433151
+ },
433152
+ },
433153
+ },
433154
+ ],
433155
+ "status": "SUCCESS",
433156
+ },
433157
+ }
433158
+ }
432700
433159
  accountData={
432701
433160
  Object {
432702
433161
  "selectedWhatsappAccount": Object {
@@ -451199,6 +451658,23 @@ new message content.",
451199
451658
  }
451200
451659
  >
451201
451660
  <Whatsapp
451661
+ Templates={
451662
+ Object {
451663
+ "senderDetails": Object {
451664
+ "domainProperties": Array [
451665
+ Object {
451666
+ "domainProperties": Object {
451667
+ "connectionProperties": Object {
451668
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
451669
+ "sourceAccountIdentifier": "2000222347",
451670
+ },
451671
+ },
451672
+ },
451673
+ ],
451674
+ "status": "SUCCESS",
451675
+ },
451676
+ }
451677
+ }
451202
451678
  accountData={
451203
451679
  Object {
451204
451680
  "selectedWhatsappAccount": Object {
@@ -469939,6 +470415,23 @@ new message content.",
469939
470415
  }
469940
470416
  >
469941
470417
  <Whatsapp
470418
+ Templates={
470419
+ Object {
470420
+ "senderDetails": Object {
470421
+ "domainProperties": Array [
470422
+ Object {
470423
+ "domainProperties": Object {
470424
+ "connectionProperties": Object {
470425
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
470426
+ "sourceAccountIdentifier": "2000222347",
470427
+ },
470428
+ },
470429
+ },
470430
+ ],
470431
+ "status": "SUCCESS",
470432
+ },
470433
+ }
470434
+ }
469942
470435
  accountData={
469943
470436
  Object {
469944
470437
  "selectedWhatsappAccount": Object {
@@ -487041,6 +487534,23 @@ new message content.",
487041
487534
  }
487042
487535
  >
487043
487536
  <Whatsapp
487537
+ Templates={
487538
+ Object {
487539
+ "senderDetails": Object {
487540
+ "domainProperties": Array [
487541
+ Object {
487542
+ "domainProperties": Object {
487543
+ "connectionProperties": Object {
487544
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
487545
+ "sourceAccountIdentifier": "2000222347",
487546
+ },
487547
+ },
487548
+ },
487549
+ ],
487550
+ "status": "SUCCESS",
487551
+ },
487552
+ }
487553
+ }
487044
487554
  accountData={
487045
487555
  Object {
487046
487556
  "selectedWhatsappAccount": Object {
@@ -504376,6 +504886,23 @@ new message content.",
504376
504886
  }
504377
504887
  >
504378
504888
  <Whatsapp
504889
+ Templates={
504890
+ Object {
504891
+ "senderDetails": Object {
504892
+ "domainProperties": Array [
504893
+ Object {
504894
+ "domainProperties": Object {
504895
+ "connectionProperties": Object {
504896
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
504897
+ "sourceAccountIdentifier": "2000222347",
504898
+ },
504899
+ },
504900
+ },
504901
+ ],
504902
+ "status": "SUCCESS",
504903
+ },
504904
+ }
504905
+ }
504379
504906
  accountData={
504380
504907
  Object {
504381
504908
  "selectedWhatsappAccount": Object {
@@ -521968,6 +522495,23 @@ new message content.",
521968
522495
  }
521969
522496
  >
521970
522497
  <Whatsapp
522498
+ Templates={
522499
+ Object {
522500
+ "senderDetails": Object {
522501
+ "domainProperties": Array [
522502
+ Object {
522503
+ "domainProperties": Object {
522504
+ "connectionProperties": Object {
522505
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
522506
+ "sourceAccountIdentifier": "2000222347",
522507
+ },
522508
+ },
522509
+ },
522510
+ ],
522511
+ "status": "SUCCESS",
522512
+ },
522513
+ }
522514
+ }
521971
522515
  accountData={
521972
522516
  Object {
521973
522517
  "selectedWhatsappAccount": Object {
@@ -538823,6 +539367,23 @@ new message content.",
538823
539367
  }
538824
539368
  >
538825
539369
  <Whatsapp
539370
+ Templates={
539371
+ Object {
539372
+ "senderDetails": Object {
539373
+ "domainProperties": Array [
539374
+ Object {
539375
+ "domainProperties": Object {
539376
+ "connectionProperties": Object {
539377
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
539378
+ "sourceAccountIdentifier": "2000222347",
539379
+ },
539380
+ },
539381
+ },
539382
+ ],
539383
+ "status": "SUCCESS",
539384
+ },
539385
+ }
539386
+ }
538826
539387
  actions={
538827
539388
  Object {
538828
539389
  "clearCreateResponse": [MockFunction],
@@ -557929,6 +558490,23 @@ new message content.",
557929
558490
  }
557930
558491
  >
557931
558492
  <Whatsapp
558493
+ Templates={
558494
+ Object {
558495
+ "senderDetails": Object {
558496
+ "domainProperties": Array [
558497
+ Object {
558498
+ "domainProperties": Object {
558499
+ "connectionProperties": Object {
558500
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
558501
+ "sourceAccountIdentifier": "2000222347",
558502
+ },
558503
+ },
558504
+ },
558505
+ ],
558506
+ "status": "SUCCESS",
558507
+ },
558508
+ }
558509
+ }
557932
558510
  actions={
557933
558511
  Object {
557934
558512
  "clearCreateResponse": [MockFunction] {
@@ -557954,6 +558532,7 @@ new message content.",
557954
558532
  "whatsapp": Object {
557955
558533
  "accessToken": "",
557956
558534
  "accountId": "",
558535
+ "baseUrl": "",
557957
558536
  "category": "APPOINTMENT_UPDATE",
557958
558537
  "codeExpiryMinutes": 0,
557959
558538
  "hostName": "",
@@ -577116,6 +577695,23 @@ new message content.",
577116
577695
  }
577117
577696
  >
577118
577697
  <Whatsapp
577698
+ Templates={
577699
+ Object {
577700
+ "senderDetails": Object {
577701
+ "domainProperties": Array [
577702
+ Object {
577703
+ "domainProperties": Object {
577704
+ "connectionProperties": Object {
577705
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1",
577706
+ "sourceAccountIdentifier": "2000222347",
577707
+ },
577708
+ },
577709
+ },
577710
+ ],
577711
+ "status": "SUCCESS",
577712
+ },
577713
+ }
577714
+ }
577119
577715
  actions={
577120
577716
  Object {
577121
577717
  "clearCreateResponse": [MockFunction] {
@@ -577141,6 +577737,7 @@ new message content.",
577141
577737
  "whatsapp": Object {
577142
577738
  "accessToken": "",
577143
577739
  "accountId": "",
577740
+ "baseUrl": "",
577144
577741
  "category": "APPOINTMENT_UPDATE",
577145
577742
  "codeExpiryMinutes": 0,
577146
577743
  "hostName": "",
@@ -22,6 +22,7 @@ describe('Test whatsapp actions', () => {
22
22
  accountId: '2000222347',
23
23
  accessToken: 'DTpZEh4VK',
24
24
  hostName: 'gupshupwhatsappbulk',
25
+ baseUrl: 'https://api.gupshup.io/whatsapp/v1',
25
26
  },
26
27
  },
27
28
  },
@@ -2,7 +2,6 @@ import {
2
2
  HOST_HAPTIC,
3
3
  HAPTIC_CATEGORY_OPTIONS,
4
4
  CATEGORY_OPTIONS_MAP,
5
- mediaTypeOptions,
6
5
  } from '../constants';
7
6
 
8
7
  // Mock API calls
@@ -84,6 +84,21 @@ describe('Creatives Whatsapp test1/>', () => {
84
84
  loadingTags={args.loadingTags}
85
85
  metaEntities={[]}
86
86
  getDefaultTags={true}
87
+ Templates={{
88
+ senderDetails: {
89
+ status: 'SUCCESS',
90
+ domainProperties: [
91
+ {
92
+ domainProperties: {
93
+ connectionProperties: {
94
+ sourceAccountIdentifier: '2000222347',
95
+ baseUrl: 'https://api.gupshup.io/whatsapp/v1',
96
+ },
97
+ },
98
+ },
99
+ ],
100
+ },
101
+ }}
87
102
  />
88
103
  </Provider>,
89
104
  );
@@ -240,7 +255,7 @@ describe('Creatives Whatsapp test1/>', () => {
240
255
 
241
256
  it('test addVariable in create mode', () => {
242
257
 
243
-
258
+
244
259
  renderHelper({});
245
260
  renderedComponent.update();
246
261
  renderedComponent.find('[data-testid="suffix-button"]').at(1).props().onClick();
@@ -365,6 +380,21 @@ describe('Creatives Whatsapp test2/>', () => {
365
380
  loadingTags={args.loadingTags}
366
381
  metaEntities={[]}
367
382
  getDefaultTags={true}
383
+ Templates={{
384
+ senderDetails: {
385
+ status: 'SUCCESS',
386
+ domainProperties: [
387
+ {
388
+ domainProperties: {
389
+ connectionProperties: {
390
+ sourceAccountIdentifier: '2000222347',
391
+ baseUrl: 'https://api.gupshup.io/whatsapp/v1',
392
+ },
393
+ },
394
+ },
395
+ ],
396
+ },
397
+ }}
368
398
  />
369
399
  </Provider>,
370
400
  );
@@ -530,7 +560,7 @@ describe('mediaTypeOptions', () => {
530
560
  templateCategory: WHATSAPP_CATEGORIES.marketing,
531
561
  });
532
562
  const hasCarousel = options.some(
533
- (opt) => Array.isArray(opt)
563
+ (opt) => Array.isArray(opt)
534
564
  ? opt.some((o) => o.key === 'CAROUSEL')
535
565
  : opt.key === 'CAROUSEL'
536
566
  ) || options.flat().some((o) => o.key === 'CAROUSEL');
@@ -543,7 +573,7 @@ describe('mediaTypeOptions', () => {
543
573
  templateCategory: WHATSAPP_CATEGORIES.marketing,
544
574
  });
545
575
  const hasCarousel = options.some(
546
- (opt) => Array.isArray(opt)
576
+ (opt) => Array.isArray(opt)
547
577
  ? opt.some((o) => o.key === 'CAROUSEL')
548
578
  : opt.key === 'CAROUSEL'
549
579
  ) || options.flat().some((o) => o.key === 'CAROUSEL');
@@ -556,7 +586,7 @@ describe('mediaTypeOptions', () => {
556
586
  templateCategory: WHATSAPP_CATEGORIES.utility,
557
587
  });
558
588
  const hasCarousel = options.some(
559
- (opt) => Array.isArray(opt)
589
+ (opt) => Array.isArray(opt)
560
590
  ? opt.some((o) => o.key === 'CAROUSEL')
561
591
  : opt.key === 'CAROUSEL'
562
592
  ) || options.flat().some((o) => o.key === 'CAROUSEL');
@@ -569,7 +599,7 @@ describe('mediaTypeOptions', () => {
569
599
  templateCategory: WHATSAPP_CATEGORIES.utility,
570
600
  });
571
601
  const hasCarousel = options.some(
572
- (opt) => Array.isArray(opt)
602
+ (opt) => Array.isArray(opt)
573
603
  ? opt.some((o) => o.key === 'CAROUSEL')
574
604
  : opt.key === 'CAROUSEL'
575
605
  ) || options.flat().some((o) => o.key === 'CAROUSEL');
@@ -85,7 +85,8 @@ export default {
85
85
  "authToken": "Bearer abcd",
86
86
  "sourceAccountIdentifier": "12345",
87
87
  "wabaId": "12345",
88
- "whatsapp_pool_id": "CAP001"
88
+ "whatsapp_pool_id": "CAP001",
89
+ "baseUrl": "https://api.whatsapp.com/v1"
89
90
  },
90
91
  "hostName": "karixwhatsappbulk"
91
92
  },
@@ -128,7 +129,8 @@ export default {
128
129
  "connectionProperties": {
129
130
  "password": "qrtCAJCz",
130
131
  "sourceAccountIdentifier": "123456",
131
- "userid": "123456"
132
+ "userid": "123456",
133
+ "baseUrl": "https://api.gupshup.io/whatsapp/v1"
132
134
  },
133
135
  "hostName": "gupshupwhatsappbulk"
134
136
  },
@@ -2587,7 +2589,7 @@ export default {
2587
2589
  loyaltyMetaData: {
2588
2590
  actionName: "SEND_COMMUNICATION_ACTION",
2589
2591
  },
2590
- getWhatsappAutoFillData:
2592
+ getWhatsappAutoFillData:
2591
2593
  < CapLabel
2592
2594
  className="whatsapp-autofill-btn"
2593
2595
  type="label21"