@capillarytech/creatives-library 7.12.67 → 7.12.68

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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/services/tests/api.test.js +26 -0
  3. package/v2Components/CapWhatsappCTA/index.js +1 -2
  4. package/v2Components/CapWhatsappCTA/index.scss +1 -0
  5. package/v2Components/CapWhatsappCTA/tests/index.test.js +11 -8
  6. package/v2Components/TemplatePreview/tests/__snapshots__/index.test.js.snap +13 -6
  7. package/v2Components/TemplatePreview/tests/index.test.js +5 -3
  8. package/v2Components/WhatsappStatusContainer/tests/__snapshots__/index.test.js.snap +55 -2
  9. package/v2Components/WhatsappStatusContainer/tests/index.test.js +8 -4
  10. package/v2Components/mockdata.js +94 -37
  11. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +27 -25
  12. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxHeader.test.js.snap +3 -3
  13. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +76 -3
  14. package/v2Containers/CreativesContainer/tests/index.test.js +26 -12
  15. package/v2Containers/Templates/_templates.scss +20 -0
  16. package/v2Containers/Templates/index.js +15 -5
  17. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +39 -265
  18. package/v2Containers/Templates/tests/index.test.js +35 -25
  19. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +60103 -4850
  20. package/v2Containers/Whatsapp/tests/__snapshots__/utils.test.js.snap +28 -21
  21. package/v2Containers/Whatsapp/tests/index.test.js +18 -4
  22. package/v2Containers/Whatsapp/tests/mockData.js +15 -1
  23. package/v2Containers/Whatsapp/tests/utils.test.js +11 -5
  24. package/v2Containers/mockdata.js +262 -227
@@ -4,28 +4,28 @@ import { FormattedMessage } from 'react-intl';
4
4
  export default {
5
5
  whatsappTemplates: {
6
6
  selectedWhatsappAccount: {
7
- sourceTypeName: "WHATSAPP",
8
- name: "WhatsappAccount",
7
+ sourceTypeName: 'WHATSAPP',
8
+ name: 'WhatsappAccount',
9
9
  isActive: true,
10
10
  sourceTypeId: 19,
11
11
  configs: {
12
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
13
- promotionalMessagingSSID: "",
14
- transactionalMessagingSSID: "",
12
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
13
+ promotionalMessagingSSID: '',
14
+ transactionalMessagingSSID: '',
15
15
  },
16
- hostName: "karixwhatsappbulk",
16
+ hostName: 'karixwhatsappbulk',
17
17
  toMirror: true,
18
18
  id: 12721,
19
- uuid: "93c52a35824a4bea8650d7d0232b2e3c",
20
- sourceAccountIdentifier: "107499611940863",
21
- commChannels: ["whatsapp"],
19
+ uuid: '93c52a35824a4bea8650d7d0232b2e3c',
20
+ sourceAccountIdentifier: '107499611940863',
21
+ commChannels: ['whatsapp'],
22
22
  },
23
23
  getAllTemplatesInProgress: false,
24
24
  weCrmAccountFetchingError: false,
25
25
  weCRMtemplates: [],
26
26
  senderDetails: {
27
- status: "SUCCESS",
28
- hostName: "karixwhatsappbulk",
27
+ status: 'SUCCESS',
28
+ hostName: 'karixwhatsappbulk',
29
29
  errors: [],
30
30
  },
31
31
  templateError: {},
@@ -34,291 +34,291 @@ export default {
34
34
  isSearch: false,
35
35
  weCrmAccounts: [
36
36
  {
37
- sourceTypeName: "WHATSAPP",
38
- name: "WhatsappAccount",
37
+ sourceTypeName: 'WHATSAPP',
38
+ name: 'WhatsappAccount',
39
39
  isActive: true,
40
40
  sourceTypeId: 19,
41
41
  configs: {
42
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
43
- promotionalMessagingSSID: "",
44
- transactionalMessagingSSID: "",
42
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
43
+ promotionalMessagingSSID: '',
44
+ transactionalMessagingSSID: '',
45
45
  },
46
46
  toMirror: true,
47
47
  id: 12721,
48
- uuid: "93c52a35824a4bea8650d7d0232b2e3c",
49
- sourceAccountIdentifier: "107499611940863",
50
- commChannels: ["whatsapp"],
48
+ uuid: '93c52a35824a4bea8650d7d0232b2e3c',
49
+ sourceAccountIdentifier: '107499611940863',
50
+ commChannels: ['whatsapp'],
51
51
  },
52
52
  ],
53
53
  userListFetchError: false,
54
54
  templates: [
55
55
  {
56
- _id: "62d3f971b497b671d3bbf8f7",
57
- name: "creatives_whatsapp6",
58
- type: "WHATSAPP",
56
+ _id: '62d3f971b497b671d3bbf8f7',
57
+ name: 'creatives_whatsapp6',
58
+ type: 'WHATSAPP',
59
59
  versions: {
60
60
  $init: true,
61
61
  history: [],
62
62
  base: {
63
63
  content: {
64
64
  whatsapp: {
65
- status: "pending",
66
- templateId: "720951875646523",
67
- hostName: "karixwhatsappbulk",
68
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
69
- accountId: "107499611940863",
65
+ status: 'pending',
66
+ templateId: '720951875646523',
67
+ hostName: 'karixwhatsappbulk',
68
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
69
+ accountId: '107499611940863',
70
70
  templateEditor: false,
71
71
  karixFileHandle:
72
- "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
72
+ '4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y',
73
73
  imageUrl:
74
- "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
75
- mediaType: "IMAGE",
74
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
75
+ mediaType: 'IMAGE',
76
76
  buttons: [
77
77
  {
78
- phone_number: "+919738752617",
79
- text: "Call",
80
- type: "PHONE_NUMBER",
78
+ phone_number: '+919738752617',
79
+ text: 'Call',
80
+ type: 'PHONE_NUMBER',
81
81
  index: 0,
82
82
  },
83
83
  {
84
- url: "https://docs.google.com/{{1}}",
85
- text: "Visit",
86
- type: "DYNAMIC_URL",
84
+ url: 'https://docs.google.com/{{1}}',
85
+ text: 'Visit',
86
+ type: 'DYNAMIC_URL',
87
87
  index: 1,
88
88
  },
89
89
  ],
90
- buttonType: "CTA",
90
+ buttonType: 'CTA',
91
91
  languages: [
92
92
  {
93
93
  content:
94
- "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
95
- language: "en",
94
+ 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe',
95
+ language: 'en',
96
96
  },
97
97
  ],
98
- category: "MARKETING",
98
+ category: 'MARKETING',
99
99
  },
100
100
  },
101
101
  },
102
102
  },
103
103
  isActive: true,
104
104
  orgId: 50074,
105
- createdBy: "15000449",
106
- updatedBy: "15000449",
107
- createdAt: "2022-07-17T11:58:45.592Z",
108
- updatedAt: "2022-07-17T11:58:45.592Z",
105
+ createdBy: '15000449',
106
+ updatedBy: '15000449',
107
+ createdAt: '2022-07-17T11:58:45.592Z',
108
+ updatedAt: '2022-07-17T11:58:45.592Z',
109
109
  totalCount: 6,
110
110
  },
111
111
  {
112
- _id: "62d3f8edb497b63156bbf8f5",
113
- name: "creatives_whatsapp5",
114
- type: "WHATSAPP",
112
+ _id: '62d3f8edb497b63156bbf8f5',
113
+ name: 'creatives_whatsapp5',
114
+ type: 'WHATSAPP',
115
115
  versions: {
116
116
  $init: true,
117
117
  history: [],
118
118
  base: {
119
119
  content: {
120
120
  whatsapp: {
121
- status: "pending",
122
- templateId: "4916570121786087",
123
- hostName: "karixwhatsappbulk",
124
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
125
- accountId: "107499611940863",
121
+ status: 'pending',
122
+ templateId: '4916570121786087',
123
+ hostName: 'karixwhatsappbulk',
124
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
125
+ accountId: '107499611940863',
126
126
  templateEditor: false,
127
127
  karixFileHandle:
128
- "4::aW1hZ2UvanBlZw==:ARY0H4Z85fo_TTfmAYJpqpnSbBlE3VaIYyr9S_Exg7GV_EhOo-30AVAoe35d0ZH8Cx5ZaJ3U2RovzzqVHPUnMK_7wFY7RNngsTwWc4vnZ7bMoA:e:1658404539:259409122277300:100066839164237:ARaPlACD4a5lw9Wp4X4",
128
+ '4::aW1hZ2UvanBlZw==:ARY0H4Z85fo_TTfmAYJpqpnSbBlE3VaIYyr9S_Exg7GV_EhOo-30AVAoe35d0ZH8Cx5ZaJ3U2RovzzqVHPUnMK_7wFY7RNngsTwWc4vnZ7bMoA:e:1658404539:259409122277300:100066839164237:ARaPlACD4a5lw9Wp4X4',
129
129
  imageUrl:
130
- "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/6aca6ada-2378-4b81-974c-a8537bbc.jpg",
131
- mediaType: "IMAGE",
130
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/6aca6ada-2378-4b81-974c-a8537bbc.jpg',
131
+ mediaType: 'IMAGE',
132
132
  buttons: [
133
133
  {
134
- url: "https://docs.google.com/{{1}}",
135
- text: "ಹೆಚ್ಚಿನ ಮಾಹಿತಿ",
136
- type: "DYNAMIC_URL",
134
+ url: 'https://docs.google.com/{{1}}',
135
+ text: 'ಹೆಚ್ಚಿನ ಮಾಹಿತಿ',
136
+ type: 'DYNAMIC_URL',
137
137
  index: 0,
138
138
  },
139
139
  ],
140
- buttonType: "CTA",
140
+ buttonType: 'CTA',
141
141
  languages: [
142
142
  {
143
- content: "ಪಾವತಿ ಯಶಸ್ವಿಯಾಗಿದೆ 👍",
144
- language: "kn",
143
+ content: 'ಪಾವತಿ ಯಶಸ್ವಿಯಾಗಿದೆ 👍',
144
+ language: 'kn',
145
145
  },
146
146
  ],
147
- category: "MARKETING",
147
+ category: 'MARKETING',
148
148
  },
149
149
  },
150
150
  },
151
151
  },
152
152
  isActive: true,
153
153
  orgId: 50074,
154
- createdBy: "15000449",
155
- updatedBy: "15000449",
156
- createdAt: "2022-07-17T11:56:33.707Z",
157
- updatedAt: "2022-07-17T11:56:33.707Z",
154
+ createdBy: '15000449',
155
+ updatedBy: '15000449',
156
+ createdAt: '2022-07-17T11:56:33.707Z',
157
+ updatedAt: '2022-07-17T11:56:33.707Z',
158
158
  totalCount: 6,
159
159
  },
160
160
  {
161
- _id: "62d3f896b497b69acbbbf8f3",
162
- name: "creatives_whatsapp4",
163
- type: "WHATSAPP",
161
+ _id: '62d3f896b497b69acbbbf8f3',
162
+ name: 'creatives_whatsapp4',
163
+ type: 'WHATSAPP',
164
164
  versions: {
165
165
  $init: true,
166
166
  history: [],
167
167
  base: {
168
168
  content: {
169
169
  whatsapp: {
170
- status: "pending",
171
- templateId: "732848961277130",
172
- hostName: "karixwhatsappbulk",
173
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
174
- accountId: "107499611940863",
170
+ status: 'pending',
171
+ templateId: '732848961277130',
172
+ hostName: 'karixwhatsappbulk',
173
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
174
+ accountId: '107499611940863',
175
175
  templateEditor: false,
176
176
  karixFileHandle:
177
- "4::aW1hZ2UvanBlZw==:ARYfsmvPHCeI0Q3ixfzpZ3gOIoYjrkx6STalsi58_twFIqB5rvPKsKPH7yL_eXMfbmXGq_X0qiLrL7FaSSFq_uzudytfoOj9Oh5ueb1uUV367A:e:1658404470:259409122277300:100066839164237:ARaaojq13hSRpe7h0Tw",
177
+ '4::aW1hZ2UvanBlZw==:ARYfsmvPHCeI0Q3ixfzpZ3gOIoYjrkx6STalsi58_twFIqB5rvPKsKPH7yL_eXMfbmXGq_X0qiLrL7FaSSFq_uzudytfoOj9Oh5ueb1uUV367A:e:1658404470:259409122277300:100066839164237:ARaaojq13hSRpe7h0Tw',
178
178
  imageUrl:
179
- "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/ec28477c-a5b6-4198-872e-1b135c1b.jpg",
180
- mediaType: "IMAGE",
179
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/ec28477c-a5b6-4198-872e-1b135c1b.jpg',
180
+ mediaType: 'IMAGE',
181
181
  buttons: [
182
182
  {
183
- phone_number: "+919738752617",
184
- text: "Call",
185
- type: "PHONE_NUMBER",
183
+ phone_number: '+919738752617',
184
+ text: 'Call',
185
+ type: 'PHONE_NUMBER',
186
186
  index: 0,
187
187
  },
188
188
  ],
189
- buttonType: "CTA",
189
+ buttonType: 'CTA',
190
190
  languages: [
191
191
  {
192
192
  content:
193
- "Hi {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! \nClick {{2}} to unsubscribe",
194
- language: "en",
193
+ 'Hi {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! \nClick {{2}} to unsubscribe',
194
+ language: 'en',
195
195
  },
196
196
  ],
197
- category: "MARKETING",
197
+ category: 'MARKETING',
198
198
  },
199
199
  },
200
200
  },
201
201
  },
202
202
  isActive: true,
203
203
  orgId: 50074,
204
- createdBy: "15000449",
205
- updatedBy: "15000449",
206
- createdAt: "2022-07-17T11:55:06.955Z",
207
- updatedAt: "2022-07-17T11:55:06.955Z",
204
+ createdBy: '15000449',
205
+ updatedBy: '15000449',
206
+ createdAt: '2022-07-17T11:55:06.955Z',
207
+ updatedAt: '2022-07-17T11:55:06.955Z',
208
208
  totalCount: 6,
209
209
  },
210
210
  {
211
- _id: "62d3f858b497b63540bbf8f1",
212
- name: "creatives_whatsapp3",
213
- type: "WHATSAPP",
211
+ _id: '62d3f858b497b63540bbf8f1',
212
+ name: 'creatives_whatsapp3',
213
+ type: 'WHATSAPP',
214
214
  versions: {
215
215
  $init: true,
216
216
  history: [],
217
217
  base: {
218
218
  content: {
219
219
  whatsapp: {
220
- status: "pending",
221
- templateId: "993272384701160",
222
- hostName: "karixwhatsappbulk",
223
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
224
- accountId: "107499611940863",
220
+ status: 'pending',
221
+ templateId: '993272384701160',
222
+ hostName: 'karixwhatsappbulk',
223
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
224
+ accountId: '107499611940863',
225
225
  templateEditor: false,
226
226
  karixFileHandle:
227
- "4::aW1hZ2UvanBlZw==:ARa6WKa8LHjcJf2DBWokWtAvxkowam2zBaUJvEwxyWH2EamzQv7-GlX7bsf6IKkdWKLAATpfo_vkAgQ8mWLf2wvVNEVBmPWk3yyrWDnVI44_9A:e:1658404412:259409122277300:100066839164237:ARYyRilqCb6hSKHtjYQ",
227
+ '4::aW1hZ2UvanBlZw==:ARa6WKa8LHjcJf2DBWokWtAvxkowam2zBaUJvEwxyWH2EamzQv7-GlX7bsf6IKkdWKLAATpfo_vkAgQ8mWLf2wvVNEVBmPWk3yyrWDnVI44_9A:e:1658404412:259409122277300:100066839164237:ARYyRilqCb6hSKHtjYQ',
228
228
  imageUrl:
229
- "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/8ba834e6-a8f5-4710-a0e6-f402e911.jpg",
230
- mediaType: "IMAGE",
229
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/8ba834e6-a8f5-4710-a0e6-f402e911.jpg',
230
+ mediaType: 'IMAGE',
231
231
  languages: [
232
232
  {
233
233
  content:
234
- "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live!",
235
- language: "en",
234
+ 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live!',
235
+ language: 'en',
236
236
  },
237
237
  ],
238
- category: "MARKETING",
238
+ category: 'MARKETING',
239
239
  },
240
240
  },
241
241
  },
242
242
  },
243
243
  isActive: true,
244
244
  orgId: 50074,
245
- createdBy: "15000449",
246
- updatedBy: "15000449",
247
- createdAt: "2022-07-17T11:54:04.926Z",
248
- updatedAt: "2022-07-17T11:54:04.926Z",
245
+ createdBy: '15000449',
246
+ updatedBy: '15000449',
247
+ createdAt: '2022-07-17T11:54:04.926Z',
248
+ updatedAt: '2022-07-17T11:54:04.926Z',
249
249
  totalCount: 6,
250
250
  },
251
251
  {
252
- _id: "62d3f7fbb497b63864bbf8ef",
253
- name: "creatives_whatsapp2",
254
- type: "WHATSAPP",
252
+ _id: '62d3f7fbb497b63864bbf8ef',
253
+ name: 'creatives_whatsapp2',
254
+ type: 'WHATSAPP',
255
255
  versions: {
256
256
  $init: true,
257
257
  history: [],
258
258
  base: {
259
259
  content: {
260
260
  whatsapp: {
261
- status: "pending",
262
- templateId: "1838206886365227",
263
- hostName: "karixwhatsappbulk",
264
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
265
- accountId: "107499611940863",
261
+ status: 'pending',
262
+ templateId: '1838206886365227',
263
+ hostName: 'karixwhatsappbulk',
264
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
265
+ accountId: '107499611940863',
266
266
  templateEditor: false,
267
- mediaType: "TEXT",
267
+ mediaType: 'TEXT',
268
268
  languages: [
269
269
  {
270
270
  content:
271
- "Hi {{1}}, best offer {{2}} for you.\nClick {{3}} to unsubscribe",
272
- language: "en",
271
+ 'Hi {{1}}, best offer {{2}} for you.\nClick {{3}} to unsubscribe',
272
+ language: 'en',
273
273
  },
274
274
  ],
275
- category: "TRANSACTIONAL",
275
+ category: 'TRANSACTIONAL',
276
276
  },
277
277
  },
278
278
  },
279
279
  },
280
280
  isActive: true,
281
281
  orgId: 50074,
282
- createdBy: "15000449",
283
- updatedBy: "15000449",
284
- createdAt: "2022-07-17T11:52:30.210Z",
285
- updatedAt: "2022-07-17T11:52:30.210Z",
282
+ createdBy: '15000449',
283
+ updatedBy: '15000449',
284
+ createdAt: '2022-07-17T11:52:30.210Z',
285
+ updatedAt: '2022-07-17T11:52:30.210Z',
286
286
  totalCount: 6,
287
287
  },
288
288
  {
289
- _id: "62d3f6afb497b651eabbf8ee",
290
- name: "creatives_whatsapp1",
291
- type: "WHATSAPP",
289
+ _id: '62d3f6afb497b651eabbf8ee',
290
+ name: 'creatives_whatsapp1',
291
+ type: 'WHATSAPP',
292
292
  versions: {
293
293
  $init: true,
294
294
  history: [],
295
295
  base: {
296
296
  content: {
297
297
  whatsapp: {
298
- status: "pending",
299
- templateId: "412858944197174",
300
- hostName: "karixwhatsappbulk",
301
- accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
302
- accountId: "107499611940863",
298
+ status: 'pending',
299
+ templateId: '412858944197174',
300
+ hostName: 'karixwhatsappbulk',
301
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
302
+ accountId: '107499611940863',
303
303
  templateEditor: false,
304
- mediaType: "TEXT",
304
+ mediaType: 'TEXT',
305
305
  languages: [
306
306
  {
307
- content: "Hi {{1}}, best offer {{2}} for you.",
308
- language: "en",
307
+ content: 'Hi {{1}}, best offer {{2}} for you.',
308
+ language: 'en',
309
309
  },
310
310
  ],
311
- category: "TRANSACTIONAL",
311
+ category: 'TRANSACTIONAL',
312
312
  },
313
313
  },
314
314
  },
315
315
  },
316
316
  isActive: true,
317
317
  orgId: 50074,
318
- createdBy: "15000449",
319
- updatedBy: "15000449",
320
- createdAt: "2022-07-17T11:46:57.973Z",
321
- updatedAt: "2022-07-17T11:46:57.973Z",
318
+ createdBy: '15000449',
319
+ updatedBy: '15000449',
320
+ createdAt: '2022-07-17T11:46:57.973Z',
321
+ updatedAt: '2022-07-17T11:46:57.973Z',
322
322
  totalCount: 6,
323
323
  },
324
324
  ],
@@ -825,57 +825,82 @@ export default {
825
825
  channel: 'WHATSAPP',
826
826
  validity: true,
827
827
  },
828
- whatsappGetTemplateData: {
828
+ whatsappGetTemplateData1: {
829
829
  channel: 'WHATSAPP',
830
- accountId: 12680,
831
- accountName: 'whatsappTest',
830
+ storeType: 'REGISTERED_STORE',
831
+ accountId: 12721,
832
+ messagePartsCount: 1,
832
833
  messageBody:
833
- 'Hi user, You have received new offer which is valid till tomorrow. Make use of it.\nClick {{unsubscribe}} to unsubscribe',
834
+ 'Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test',
834
835
  templateConfigs: {
835
- id: '629713be7d11edf651825283',
836
- name: 'test_14',
837
- template:
838
- 'Hi {{1}}, You have received {{2}} offer which is valid till {{3}}. Make use of it.',
836
+ name: 'creatives_whatsapp6',
837
+ language: 'en',
839
838
  varMapped: {
840
- '{{1}}_1': 'user',
841
- '{{2}}_3': 'new',
842
- '{{3}}_5': 'tomorrow',
839
+ '{{1}}_1': 'test',
840
+ '{{2}}_3': 'test',
843
841
  },
844
- category: 'ALERT_UPDATE',
845
- language: 'en',
846
- mediaType: 'TEXT',
847
- buttonType: 'CTA',
842
+ template:
843
+ 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}',
844
+ id: 'creatives_whatsapp6',
845
+ category: 'MARKETING',
846
+ },
847
+ accountName: 'WhatsappAccount',
848
+ },
849
+ whatsappGetTemplateData2: {
850
+ channel: 'WHATSAPP',
851
+ storeType: 'REGISTERED_STORE',
852
+ accountId: 12721,
853
+ messagePartsCount: 1,
854
+ messageBody:
855
+ 'Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test\nClick {{unsubscribe}} to unsubscribe',
856
+ templateConfigs: {
848
857
  buttons: [
849
858
  {
850
- index: 0,
859
+ text: 'Call',
851
860
  type: 'PHONE_NUMBER',
852
- text: 'Call us',
853
861
  phoneNumber: '+919738752617',
862
+ index: 0,
854
863
  },
855
864
  {
865
+ text: 'Visit',
866
+ type: 'DYNAMIC_URL',
867
+ url: 'https://docs.google.com/{{optout}}',
856
868
  index: 1,
857
- type: 'STATIC_URL',
858
- text: 'Visit us',
859
- url: 'https://fast.com/',
869
+ dynamicUrlPayload: '{{optout}}',
860
870
  },
861
871
  ],
872
+ name: 'creatives_whatsapp6',
873
+ buttonType: 'CTA',
874
+ whatsappMedia: {
875
+ url: 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
876
+ },
877
+ language: 'en',
878
+ varMapped: {
879
+ '{{1}}_1': 'test',
880
+ '{{2}}_3': 'test',
881
+ '{{3}}_unsubscribe': '{{unsubscribe}}',
882
+ },
883
+ template:
884
+ 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}',
885
+ id: 'creatives_whatsapp6',
886
+ category: 'MARKETING',
887
+ mediaType: 'IMAGE',
862
888
  },
889
+ accountName: 'WhatsappAccount',
863
890
  },
864
- whatsappGetCreativeData: {
865
- type: 'WHATSAPP',
866
- channel: 'WHATSAPP',
891
+ whatsappGetCreativeData1: {
867
892
  value: {
868
- name: 'test_206',
893
+ name: 'creatives_whatsapp6',
869
894
  versions: {
870
895
  base: {
871
896
  content: {
872
897
  whatsapp: {
873
- category: 'ALERT_UPDATE',
898
+ category: 'MARKETING',
874
899
  languages: [
875
900
  {
876
901
  language: 'en',
877
902
  content:
878
- 'You have received 50 points\nClick {{unsubscribe}} to unsubscribe',
903
+ 'Hey test1, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test2\nClick {{unsubscribe}} to unsubscribe',
879
904
  },
880
905
  ],
881
906
  buttonType: 'CTA',
@@ -888,53 +913,49 @@ export default {
888
913
  },
889
914
  {
890
915
  index: 1,
891
- type: 'STATIC_URL',
892
- text: 'More info',
893
- url: 'https://fast.com/',
916
+ type: 'DYNAMIC_URL',
917
+ text: 'Visit',
918
+ url: 'https://docs.google.com/{{first_name}}',
894
919
  },
895
920
  ],
896
- mediaType: 'TEXT',
921
+ mediaType: 'IMAGE',
922
+ imageUrl:
923
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
924
+ karixFileHandle: '',
897
925
  varMapped: {
898
- '{{1}}_1': '50',
926
+ '{{1}}_1': 'test1',
927
+ '{{2}}_3': 'test2',
899
928
  },
900
- templateEditor: 'You have received {{1}} points',
901
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
902
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
903
- accountName: 'whatsappTest',
929
+ templateEditor:
930
+ 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}',
931
+ accountId: '',
932
+ accessToken: '',
933
+ hostName: '',
904
934
  },
905
935
  },
906
936
  },
907
937
  },
908
938
  type: 'WHATSAPP',
909
939
  },
910
- _id: '62988c2f7d11ed69168252a6',
911
940
  validity: true,
912
941
  type: 'WHATSAPP',
942
+ channel: 'WHATSAPP',
913
943
  },
914
944
  whatsappGetCreativeData2: {
915
- type: 'WHATSAPP',
916
- channel: 'WHATSAPP',
917
945
  value: {
918
- name: 'test_206',
946
+ name: 'creatives_whatsapp6',
919
947
  versions: {
920
948
  base: {
921
949
  content: {
922
- whatsapp: {
923
- category: 'ALERT_UPDATE',
924
- mediaType: 'TEXT',
925
- templateEditor: 'You have received {{1}} points',
926
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
927
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
928
- accountName: 'whatsappTest',
929
- },
950
+ whatsapp: {},
930
951
  },
931
952
  },
932
953
  },
933
954
  type: 'WHATSAPP',
934
955
  },
935
- _id: '62988c2f7d11ed69168252a6',
936
956
  validity: true,
937
957
  type: 'WHATSAPP',
958
+ channel: 'WHATSAPP',
938
959
  },
939
960
  rcsEditTemplateData: {
940
961
  mode: 'edit',
@@ -945,7 +966,7 @@ export default {
945
966
  validity: true,
946
967
  },
947
968
  getWhatsappContentOutput: '1234567890\nClick {{unsubscribe}} to unsubscribe',
948
- getWhatsappStatusOutput: {
969
+ getWhatsappStatusOutput1: {
949
970
  key: 'approved',
950
971
  label: (
951
972
  <FormattedMessage
@@ -956,7 +977,7 @@ export default {
956
977
  ),
957
978
  value: 'approved',
958
979
  },
959
- getWhatsappCategoryOutput: {
980
+ getWhatsappCategoryOutput1: {
960
981
  key: 'alertUpdate',
961
982
  label: (
962
983
  <FormattedMessage
@@ -976,10 +997,30 @@ export default {
976
997
  ),
977
998
  value: 'ALERT_UPDATE',
978
999
  },
1000
+ getWhatsappCategoryOutput2: {
1001
+ key: 'transactional',
1002
+ label: (
1003
+ <FormattedMessage
1004
+ defaultMessage="Transactional"
1005
+ id="creatives.containersV2.Whatsapp.transactional"
1006
+ values={{}}
1007
+ />
1008
+ ),
1009
+ tagColor: '#f2e7fe',
1010
+ tagTextColor: '#a451ff',
1011
+ tooltipLabel: (
1012
+ <FormattedMessage
1013
+ defaultMessage="Send account updates, order updates, alerts, and more to share important information."
1014
+ id="creatives.containersV2.Whatsapp.transactionalTooltip"
1015
+ values={{}}
1016
+ />
1017
+ ),
1018
+ value: 'TRANSACTIONAL',
1019
+ },
979
1020
  whatsappPreviewTemplateData: {
980
1021
  mode: 'preview',
981
- _id: '620e213d39bd394c58aeaaca',
982
- name: 'amit123456',
1022
+ _id: '62d3f971b497b671d3bbf8f7',
1023
+ name: 'creatives_whatsapp6',
983
1024
  type: 'WHATSAPP',
984
1025
  versions: {
985
1026
  $init: true,
@@ -988,13 +1029,16 @@ export default {
988
1029
  content: {
989
1030
  whatsapp: {
990
1031
  status: 'approved',
991
- templateId: 'HT5203cccf5b1e9e41f222fab6cd6c2754',
992
- accountName: 'whatsappTest',
993
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
994
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
995
- templateEditor: '',
996
- mediaType: 'TEXT',
997
- buttonType: 'CTA',
1032
+ templateId: '720951875646523',
1033
+ hostName: 'karixwhatsappbulk',
1034
+ accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
1035
+ accountId: '107499611940863',
1036
+ templateEditor: false,
1037
+ karixFileHandle:
1038
+ '4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y',
1039
+ imageUrl:
1040
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
1041
+ mediaType: 'IMAGE',
998
1042
  buttons: [
999
1043
  {
1000
1044
  phone_number: '+919738752617',
@@ -1003,37 +1047,38 @@ export default {
1003
1047
  index: 0,
1004
1048
  },
1005
1049
  {
1006
- url: 'https://fast.com/',
1007
- text: 'More info',
1008
- type: 'STATIC_URL',
1050
+ url: 'https://docs.google.com/{{1}}',
1051
+ text: 'Visit',
1052
+ type: 'DYNAMIC_URL',
1009
1053
  index: 1,
1010
1054
  },
1011
1055
  ],
1056
+ buttonType: 'CTA',
1012
1057
  languages: [
1013
1058
  {
1014
- content: '1234567890\nClick {{1}} to unsubscribe',
1059
+ content:
1060
+ 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe',
1015
1061
  language: 'en',
1016
1062
  },
1017
1063
  ],
1018
- category: 'ALERT_UPDATE',
1019
- rejection_reason: null,
1064
+ category: 'MARKETING',
1065
+ rejection_reason: '',
1020
1066
  },
1021
1067
  },
1022
1068
  },
1023
1069
  },
1024
1070
  isActive: true,
1025
- orgId: 50371,
1071
+ orgId: 50074,
1026
1072
  createdBy: '15000449',
1027
1073
  updatedBy: '15000449',
1028
- createdAt: '2022-02-17T10:19:42.211Z',
1029
- updatedAt: '2022-02-17T10:19:42.211Z',
1030
- totalCount: 12,
1031
- updatedByName: 'Ashish Karan fd',
1074
+ createdAt: '2022-07-17T11:58:45.592Z',
1075
+ updatedAt: '2022-07-17T11:58:45.592Z',
1076
+ totalCount: 8,
1032
1077
  },
1033
1078
  whatsappPreviewTemplateData2: {
1034
1079
  mode: 'preview',
1035
- _id: '620e213d39bd394c58aeaaca',
1036
- name: 'amit123456',
1080
+ _id: '62d3edc8b497b63ff5bbf8ea',
1081
+ name: 'test_twilio_159425',
1037
1082
  type: 'WHATSAPP',
1038
1083
  versions: {
1039
1084
  $init: true,
@@ -1042,24 +1087,15 @@ export default {
1042
1087
  content: {
1043
1088
  whatsapp: {
1044
1089
  status: 'approved',
1045
- templateId: 'HT5203cccf5b1e9e41f222fab6cd6c2754',
1046
- accountName: 'whatsappTest',
1090
+ templateId: 'HTee0274fb8dfdd45427bb678f875b0d54',
1091
+ hostName: 'twiliowhatsapptrans',
1047
1092
  accessToken: '4676323eb5d1f975b0987070c03a8efc',
1048
1093
  accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
1049
- templateEditor: '',
1094
+ templateEditor: false,
1050
1095
  mediaType: 'TEXT',
1051
- buttonType: 'CTA',
1052
- buttons: [
1053
- {
1054
- phone_number: '',
1055
- text: '',
1056
- type: 'PHONE_NUMBER',
1057
- index: 0,
1058
- },
1059
- ],
1060
1096
  languages: [
1061
1097
  {
1062
- content: 'test',
1098
+ content: 'Hi {{1}}, your payment is successful.',
1063
1099
  language: 'en',
1064
1100
  },
1065
1101
  ],
@@ -1073,10 +1109,9 @@ export default {
1073
1109
  orgId: 50371,
1074
1110
  createdBy: '15000449',
1075
1111
  updatedBy: '15000449',
1076
- createdAt: '2022-02-17T10:19:42.211Z',
1077
- updatedAt: '2022-02-17T10:19:42.211Z',
1078
- totalCount: 12,
1079
- updatedByName: 'Ashish Karan fd',
1112
+ createdAt: '2022-07-17T11:08:56.326Z',
1113
+ updatedAt: '2022-07-17T11:08:56.326Z',
1114
+ totalCount: 7,
1080
1115
  },
1081
1116
  rcsPreviewTemplateData: {
1082
1117
  mode: 'preview',