@capillarytech/creatives-library 7.17.91 → 7.17.92

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 (50) hide show
  1. package/index.js +6 -0
  2. package/package.json +1 -1
  3. package/routes.js +5 -0
  4. package/services/api.js +5 -0
  5. package/v2Components/CapDeviceContent/index.js +338 -0
  6. package/v2Components/CapDeviceContent/index.scss +115 -0
  7. package/v2Components/CapDeviceContent/messages.js +107 -0
  8. package/v2Components/CapDeviceContent/tests/index.test.js +75 -0
  9. package/v2Components/CapImageUpload/index.js +10 -3
  10. package/v2Components/CapImageUpload/messages.js +4 -0
  11. package/v2Components/CapInAppCTA/constants.js +25 -0
  12. package/v2Components/CapInAppCTA/index.js +281 -0
  13. package/v2Components/CapInAppCTA/index.scss +93 -0
  14. package/v2Components/CapInAppCTA/messages.js +85 -0
  15. package/v2Components/MobilePushPreviewV2/index.js +81 -23
  16. package/v2Components/TemplatePreview/_templatePreview.scss +448 -0
  17. package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_bottom.svg +11 -0
  18. package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_full.svg +11 -0
  19. package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_modal.svg +11 -0
  20. package/v2Components/TemplatePreview/assets/images/inapp_mobile_android_top.svg +11 -0
  21. package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_bottom.svg +6 -0
  22. package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_full.svg +18 -0
  23. package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_modal.svg +7 -0
  24. package/v2Components/TemplatePreview/assets/images/inapp_mobile_ios_top.svg +13 -0
  25. package/v2Components/TemplatePreview/index.js +660 -375
  26. package/v2Components/TemplatePreview/messages.js +4 -0
  27. package/v2Containers/App/constants.js +1 -0
  28. package/v2Containers/CreativesContainer/SlideBoxContent.js +43 -0
  29. package/v2Containers/CreativesContainer/SlideBoxHeader.js +4 -1
  30. package/v2Containers/CreativesContainer/constants.js +1 -0
  31. package/v2Containers/CreativesContainer/index.js +94 -27
  32. package/v2Containers/CreativesContainer/messages.js +4 -0
  33. package/v2Containers/InApp/actions.js +64 -0
  34. package/v2Containers/InApp/constants.js +95 -0
  35. package/v2Containers/InApp/index.js +745 -0
  36. package/v2Containers/InApp/index.scss +47 -0
  37. package/v2Containers/InApp/messages.js +86 -0
  38. package/v2Containers/InApp/reducer.js +109 -0
  39. package/v2Containers/InApp/sagas.js +143 -0
  40. package/v2Containers/InApp/selectors.js +12 -0
  41. package/v2Containers/InApp/tests/action.test.js +53 -0
  42. package/v2Containers/InApp/tests/index.test.js +152 -0
  43. package/v2Containers/InApp/tests/mockData.js +897 -0
  44. package/v2Containers/InApp/tests/reducer.test.js +177 -0
  45. package/v2Containers/InApp/tests/sagas.test.js +391 -0
  46. package/v2Containers/Templates/_templates.scss +7 -0
  47. package/v2Containers/Templates/index.js +103 -23
  48. package/v2Containers/Templates/messages.js +20 -0
  49. package/v2Containers/TemplatesV2/index.js +8 -2
  50. package/v2Containers/TemplatesV2/messages.js +4 -0
@@ -0,0 +1,897 @@
1
+ export const accountData = {
2
+ getAllTemplatesInProgress: false,
3
+ weCrmAccountFetchingError: false,
4
+ templateDetails: {},
5
+ edmTemplate: {},
6
+ weCRMtemplates: [],
7
+ userList: {
8
+ orgUsers: [
9
+ {
10
+ userId: 50007989,
11
+ firstName: "SUPER USER",
12
+ lastName: "",
13
+ },
14
+ {
15
+ userId: 50035884,
16
+ firstName: "Pure Admin",
17
+ lastName: "Patel",
18
+ },
19
+ ],
20
+ capUsers: [
21
+ {
22
+ userId: 4,
23
+ firstName: "Krishna",
24
+ lastName: "Mehra",
25
+ },
26
+ {
27
+ userId: 50704928,
28
+ firstName: "Ankit",
29
+ lastName: "Bhalala",
30
+ },
31
+ ],
32
+ },
33
+ selectedEmailLayout: "",
34
+ selectedWeChatAccount: {
35
+ sourceTypeName: "MAPP_SDK",
36
+ name: "mapp-ios",
37
+ isActive: true,
38
+ sourceTypeId: 27,
39
+ configs: {
40
+ gatewayAccountId: "mapp-cap-engage@bukl-enterprises-fcm.iam.gserviceaccount.com",
41
+ deeplink: "{\"deeplink_1\":{\"name\":\"Test_1\",\"link\":\"https://crm-nightly-new.cc.capillarytech.com/home/ui\",\"keys\":[]}}",
42
+ bundleIdentifier: "com.capillary.hyrda.ios.sample-app",
43
+ loginIdentifierType: "mobile",
44
+ ios: "1",
45
+ android: "1",
46
+ validTill: "a004.11",
47
+ signature: "",
48
+ gatewayId: "bukl-enterprises-fcm",
49
+ },
50
+ toMirror: false,
51
+ id: 13578,
52
+ uuid: "c3652e6835ab48aaae276212782ae3cd",
53
+ sourceAccountIdentifier: "jif-51242",
54
+ commChannels: [
55
+ "android",
56
+ "email",
57
+ "ios",
58
+ "mobile",
59
+ ],
60
+ attribution: {
61
+ createDate: "2023-06-22T00:00:00+05:30",
62
+ createdBy: {
63
+ adminType: "GENERAL",
64
+ name: "1371622280_Ashish",
65
+ currencyId: 0,
66
+ code: "1371622280_919866643044",
67
+ isActive: true,
68
+ isOuEnabled: false,
69
+ languageId: 0,
70
+ timeZoneId: 0,
71
+ type: "ADMIN_USER",
72
+ id: 15000449,
73
+ description: "",
74
+ },
75
+ modifiedBy: {
76
+ name: "Aman",
77
+ currencyId: 0,
78
+ code: "aman.g@capillarytech.com",
79
+ isActive: true,
80
+ isOuEnabled: false,
81
+ languageId: 0,
82
+ timeZoneId: 0,
83
+ type: "ADMIN_USER",
84
+ id: 50685457,
85
+ description: "",
86
+ },
87
+ modifiedDate: "2024-01-25T00:00:00+05:30",
88
+ },
89
+ },
90
+ templateError: {},
91
+ fetchingWeCrmAccounts: false,
92
+ fetchingUserList: false,
93
+ isSearch: false,
94
+ weCrmAccounts: [
95
+ {
96
+ sourceTypeName: "MAPP_SDK",
97
+ name: "mapp-ios",
98
+ isActive: true,
99
+ sourceTypeId: 27,
100
+ configs: {
101
+ gatewayAccountId: "mapp-cap-engage@bukl-enterprises-fcm.iam.gserviceaccount.com",
102
+ deeplink: "{\"deeplink_1\":{\"name\":\"Test_1\",\"link\":\"https://crm-nightly-new.cc.capillarytech.com/home/ui\",\"keys\":[]}}",
103
+ bundleIdentifier: "com.capillary.hyrda.ios.sample-app",
104
+ loginIdentifierType: "mobile",
105
+ ios: "1",
106
+ android: "1",
107
+ validTill: "a004.11",
108
+ signature: "",
109
+ gatewayId: "bukl-enterprises-fcm",
110
+ },
111
+ toMirror: false,
112
+ id: 13578,
113
+ uuid: "c3652e6835ab48aaae276212782ae3cd",
114
+ sourceAccountIdentifier: "jif-51242",
115
+ commChannels: [
116
+ "android",
117
+ "email",
118
+ "ios",
119
+ "mobile",
120
+ ],
121
+ attribution: {
122
+ createDate: "2023-06-22T00:00:00+05:30",
123
+ createdBy: {
124
+ adminType: "GENERAL",
125
+ name: "1371622280_Ashish",
126
+ currencyId: 0,
127
+ code: "1371622280_919866643044",
128
+ isActive: true,
129
+ isOuEnabled: false,
130
+ languageId: 0,
131
+ timeZoneId: 0,
132
+ type: "ADMIN_USER",
133
+ id: 15000449,
134
+ description: "",
135
+ },
136
+ modifiedBy: {
137
+ name: "Aman",
138
+ currencyId: 0,
139
+ code: "aman.g@capillarytech.com",
140
+ isActive: true,
141
+ isOuEnabled: false,
142
+ languageId: 0,
143
+ timeZoneId: 0,
144
+ type: "ADMIN_USER",
145
+ id: 50685457,
146
+ description: "",
147
+ },
148
+ modifiedDate: "2024-01-25T00:00:00+05:30",
149
+ },
150
+ },
151
+ ],
152
+ userListFetchError: false,
153
+ templates: [
154
+ {
155
+ _id: "65f9a4d33a67f3e36962c4c6",
156
+ versions: {
157
+ base: {
158
+ content: {
159
+ ANDROID: {
160
+ luid: "{{luid}}",
161
+ cuid: "{{cuid}}",
162
+ communicationId: "{{communicationId}}",
163
+ title: "title for test",
164
+ message: "content for test",
165
+ bodyType: "POPUP",
166
+ expandableDetails: {
167
+ style: "BIG_TEXT",
168
+ message: "content for test",
169
+ mediaType: "TEXT",
170
+ buttonType: "CTA",
171
+ buttons: [
172
+ {
173
+ index: 0,
174
+ type: "EXTERNAL_LINK",
175
+ text: "test",
176
+ url: "https://nightly.intouch.capillarytech.com/creatives/ui/v2",
177
+ label: "Test_1",
178
+ },
179
+ ],
180
+ },
181
+ custom: [],
182
+ cta: [],
183
+ },
184
+ IOS: {
185
+ luid: "{{luid}}",
186
+ cuid: "{{cuid}}",
187
+ communicationId: "{{communicationId}}",
188
+ title: "",
189
+ message: "",
190
+ bodyType: "POPUP",
191
+ expandableDetails: {
192
+ style: "BIG_TEXT",
193
+ message: "",
194
+ mediaType: "TEXT",
195
+ buttonType: "CTA",
196
+ buttons: [
197
+ {
198
+ index: 0,
199
+ type: "EXTERNAL_LINK",
200
+ text: "test",
201
+ url: "https://nightly.intouch.capillarytech.com/creatives/ui/v2",
202
+ label: "Test_1",
203
+ },
204
+ ],
205
+ },
206
+ custom: [],
207
+ cta: [],
208
+ },
209
+ },
210
+ },
211
+ history: [],
212
+ },
213
+ type: "INAPP",
214
+ isActive: true,
215
+ name: "Copy of test_5 03-19-2024 20:14:33",
216
+ createdBy: "50685415",
217
+ updatedBy: "50685415",
218
+ orgId: 50146,
219
+ definition: {
220
+ accountId: 13578,
221
+ licenseCode: "jif-51242",
222
+ mode: "CREATE",
223
+ },
224
+ createdAt: "2024-03-19T14:44:35.362Z",
225
+ updatedAt: "2024-03-19T14:44:35.362Z",
226
+ __v: 0,
227
+ totalCount: 8,
228
+ },
229
+ {
230
+ _id: "65f400b1cca02ddf82bbf9a8",
231
+ versions: {
232
+ base: {
233
+ content: {
234
+ ANDROID: {
235
+ luid: "{{luid}}",
236
+ cuid: "{{cuid}}",
237
+ communicationId: "{{communicationId}}",
238
+ title: "test title got edited ",
239
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
240
+ bodyType: "POPUP",
241
+ expandableDetails: {
242
+ style: "BIG_PICTURE",
243
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
244
+ mediaType: "IMAGE",
245
+ imageUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/8d7f6ccd-7347-429f-8cba-89dc753.jpeg",
246
+ buttonType: "CTA",
247
+ buttons: [
248
+ {
249
+ index: 0,
250
+ type: "EXTERNAL_LINK",
251
+ text: "test",
252
+ url: "https://nightly.intouch.capillarytech.com/creatives/ui/v2",
253
+ label: "Test_1",
254
+ },
255
+ ],
256
+ },
257
+ custom: [],
258
+ cta: {
259
+ type: "DEEP_LINK",
260
+ actionLink: "https://crm-nightly-new.cc.capillarytech.com/home/ui",
261
+ },
262
+ },
263
+ IOS: {
264
+ luid: "{{luid}}",
265
+ cuid: "{{cuid}}",
266
+ communicationId: "{{communicationId}}",
267
+ title: "test title got edited",
268
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
269
+ bodyType: "POPUP",
270
+ expandableDetails: {
271
+ style: "BIG_PICTURE",
272
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
273
+ mediaType: "IMAGE",
274
+ imageUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/a0c88801-af38-43b9-baac-391148f7.jpg",
275
+ buttonType: "CTA",
276
+ buttons: [
277
+ {
278
+ index: 0,
279
+ type: "EXTERNAL_LINK",
280
+ text: "testios",
281
+ url: "https://nightly.intouch.capillarytech.com/creatives/ui/v2",
282
+ label: "",
283
+ },
284
+ ],
285
+ },
286
+ custom: [],
287
+ cta: {
288
+ type: "DEEP_LINK",
289
+ actionLink: "https://crm-nightly-new.cc.capillarytech.com/home/ui",
290
+ },
291
+ },
292
+ },
293
+ },
294
+ history: [],
295
+ },
296
+ type: "INAPP",
297
+ isActive: true,
298
+ name: "test_temp",
299
+ createdBy: "50685415",
300
+ updatedBy: "50685415",
301
+ orgId: 50146,
302
+ definition: {
303
+ accountId: 13578,
304
+ licenseCode: "jif-51242",
305
+ mode: "CREATE",
306
+ },
307
+ createdAt: "2024-03-15T08:02:57.744Z",
308
+ updatedAt: "2024-03-19T14:33:47.281Z",
309
+ __v: 0,
310
+ totalCount: 8,
311
+ },
312
+ {
313
+ _id: "65f17b09a84c95e88db4342d",
314
+ versions: {
315
+ base: {
316
+ content: {
317
+ ANDROID: {
318
+ luid: "{{luid}}",
319
+ cuid: "{{cuid}}",
320
+ communicationId: "{{communicationId}}",
321
+ title: "title for test",
322
+ message: "content for test",
323
+ bodyType: "POPUP",
324
+ expandableDetails: {
325
+ style: "BIG_TEXT",
326
+ message: "content for test",
327
+ mediaType: "TEXT",
328
+ },
329
+ custom: [],
330
+ cta: [],
331
+ },
332
+ IOS: {
333
+ luid: "{{luid}}",
334
+ cuid: "{{cuid}}",
335
+ communicationId: "{{communicationId}}",
336
+ title: "",
337
+ message: "",
338
+ bodyType: "POPUP",
339
+ expandableDetails: {
340
+ style: "BIG_TEXT",
341
+ message: "",
342
+ mediaType: "TEXT",
343
+ },
344
+ custom: [],
345
+ cta: [],
346
+ },
347
+ },
348
+ },
349
+ history: [],
350
+ },
351
+ type: "INAPP",
352
+ isActive: true,
353
+ name: "test_5",
354
+ createdBy: "50685415",
355
+ updatedBy: "50685415",
356
+ orgId: 50146,
357
+ definition: {
358
+ accountId: 13578,
359
+ licenseCode: "jif-51242",
360
+ mode: "CREATE",
361
+ },
362
+ createdAt: "2024-03-13T10:08:09.585Z",
363
+ updatedAt: "2024-03-13T10:08:09.585Z",
364
+ __v: 0,
365
+ totalCount: 8,
366
+ },
367
+ {
368
+ _id: "65f17676a84c954722b43413",
369
+ versions: {
370
+ base: {
371
+ content: {
372
+ ANDROID: {
373
+ luid: "{{luid}}",
374
+ cuid: "{{cuid}}",
375
+ communicationId: "{{communicationId}}",
376
+ title: "this is title",
377
+ message: "this is message body for testing",
378
+ bodyType: "POPUP",
379
+ expandableDetails: {
380
+ style: "BIG_PICTURE",
381
+ message: "this is message body for testing",
382
+ mediaType: "TEXT",
383
+ },
384
+ custom: [],
385
+ cta: [],
386
+ },
387
+ IOS: {
388
+ luid: "{{luid}}",
389
+ cuid: "{{cuid}}",
390
+ communicationId: "{{communicationId}}",
391
+ title: "",
392
+ message: "",
393
+ bodyType: "POPUP",
394
+ expandableDetails: {
395
+ style: "BIG_PICTURE",
396
+ message: "",
397
+ mediaType: "TEXT",
398
+ },
399
+ custom: [],
400
+ cta: [],
401
+ },
402
+ },
403
+ },
404
+ history: [],
405
+ },
406
+ type: "INAPP",
407
+ isActive: true,
408
+ name: "test template",
409
+ createdBy: "50685415",
410
+ updatedBy: "50685415",
411
+ orgId: 50146,
412
+ definition: {
413
+ accountId: 13578,
414
+ licenseCode: "jif-51242",
415
+ mode: "CREATE",
416
+ },
417
+ createdAt: "2024-03-13T09:48:38.359Z",
418
+ updatedAt: "2024-03-13T09:48:38.359Z",
419
+ __v: 0,
420
+ totalCount: 8,
421
+ },
422
+ {
423
+ _id: "65f148caa84c95abfab42ee4",
424
+ versions: {
425
+ base: {
426
+ content: {
427
+ ANDROID: {
428
+ luid: "{{luid}}",
429
+ cuid: "{{cuid}}",
430
+ communicationId: "{{communicationId}}",
431
+ title: "this is a test message",
432
+ message: "this is a test message",
433
+ bodyType: "POPUP",
434
+ expandableDetails: {
435
+ style: "BIG_PICTURE",
436
+ message: "this is a test message",
437
+ mediaType: "TEXT",
438
+ },
439
+ custom: [],
440
+ cta: [],
441
+ },
442
+ IOS: {
443
+ luid: "{{luid}}",
444
+ cuid: "{{cuid}}",
445
+ communicationId: "{{communicationId}}",
446
+ title: "",
447
+ message: "",
448
+ bodyType: "POPUP",
449
+ expandableDetails: {
450
+ style: "BIG_PICTURE",
451
+ message: "",
452
+ mediaType: "TEXT",
453
+ },
454
+ custom: [],
455
+ cta: [],
456
+ },
457
+ },
458
+ },
459
+ history: [],
460
+ },
461
+ type: "INAPP",
462
+ isActive: true,
463
+ name: "test_1",
464
+ createdBy: "50685415",
465
+ updatedBy: "50685415",
466
+ orgId: 50146,
467
+ definition: {
468
+ accountId: 13578,
469
+ licenseCode: "jif-51242",
470
+ mode: "CREATE",
471
+ },
472
+ createdAt: "2024-03-13T06:33:46.871Z",
473
+ updatedAt: "2024-03-13T06:33:46.871Z",
474
+ __v: 0,
475
+ totalCount: 8,
476
+ },
477
+ {
478
+ _id: "65e1bf20121ad769b35f72ea",
479
+ versions: {
480
+ base: {
481
+ content: {
482
+ ANDROID: {
483
+ luid: "{{luid}}",
484
+ cuid: "{{cuid}}",
485
+ communicationId: "{{communicationId}}",
486
+ title: "",
487
+ message: "ddd",
488
+ bodyType: "FOOTER",
489
+ expandableDetails: {
490
+ style: "BIG_PICTURE",
491
+ message: "ddd",
492
+ mediaType: "TEXT",
493
+ },
494
+ custom: [],
495
+ cta: [],
496
+ },
497
+ IOS: {
498
+ luid: "{{luid}}",
499
+ cuid: "{{cuid}}",
500
+ communicationId: "{{communicationId}}",
501
+ title: "",
502
+ message: "",
503
+ bodyType: "FOOTER",
504
+ expandableDetails: {
505
+ style: "BIG_PICTURE",
506
+ message: "",
507
+ mediaType: "TEXT",
508
+ },
509
+ custom: [],
510
+ cta: [],
511
+ },
512
+ },
513
+ },
514
+ history: [],
515
+ },
516
+ type: "INAPP",
517
+ isActive: true,
518
+ name: "test_123",
519
+ createdBy: "50685415",
520
+ updatedBy: "50685415",
521
+ orgId: 50146,
522
+ definition: {
523
+ accountId: 13578,
524
+ licenseCode: "jif-51242",
525
+ mode: "CREATE",
526
+ },
527
+ createdAt: "2024-03-01T11:42:24.258Z",
528
+ updatedAt: "2024-03-01T11:42:24.258Z",
529
+ __v: 0,
530
+ totalCount: 8,
531
+ },
532
+ {
533
+ _id: "65d73ddd714c93313076dff6",
534
+ versions: {
535
+ base: {
536
+ content: {
537
+ ANDROID: {
538
+ luid: "{{luid}}",
539
+ cuid: "{{cuid}}",
540
+ communicationId: "{{communicationId}}",
541
+ title: "ssss",
542
+ message: "ssssss",
543
+ bodyType: "POPUP",
544
+ expandableDetails: {
545
+ style: "BIG_PICTURE",
546
+ message: "ssssss",
547
+ mediaType: "TEXT",
548
+ },
549
+ custom: [],
550
+ cta: [],
551
+ },
552
+ IOS: {
553
+ luid: "{{luid}}",
554
+ cuid: "{{cuid}}",
555
+ communicationId: "{{communicationId}}",
556
+ title: "",
557
+ message: "",
558
+ bodyType: "POPUP",
559
+ expandableDetails: {
560
+ style: "BIG_PICTURE",
561
+ message: "",
562
+ mediaType: "TEXT",
563
+ },
564
+ custom: [],
565
+ cta: [],
566
+ },
567
+ },
568
+ },
569
+ history: [],
570
+ },
571
+ type: "INAPP",
572
+ isActive: true,
573
+ name: "test",
574
+ createdBy: "50685415",
575
+ updatedBy: "50685415",
576
+ orgId: 50146,
577
+ definition: {
578
+ accountId: 13578,
579
+ licenseCode: "jif-51242",
580
+ mode: "CREATE",
581
+ },
582
+ createdAt: "2024-02-22T12:28:13.744Z",
583
+ updatedAt: "2024-02-22T12:28:13.744Z",
584
+ __v: 0,
585
+ totalCount: 8,
586
+ },
587
+ {
588
+ _id: "65d59bfcafc68501c0185f56",
589
+ versions: {
590
+ base: {
591
+ content: {
592
+ ANDROID: {
593
+ luid: "{{luid}}",
594
+ cuid: "{{cuid}}",
595
+ communicationId: "{{communicationId}}",
596
+ title: "Test",
597
+ message: "This is a sample template for in-app notification content. This can be triggered on any behavioural event while the user is on the app",
598
+ bodyType: "POPUP",
599
+ expandableDetails: {
600
+ style: "BIG_PICTURE",
601
+ message: "This is a sample template for in-app notification content. This can be triggered on any behavioural event while the user is on the app",
602
+ mediaType: "TEXT",
603
+ },
604
+ custom: [],
605
+ cta: [],
606
+ },
607
+ IOS: {
608
+ luid: "{{luid}}",
609
+ cuid: "{{cuid}}",
610
+ communicationId: "{{communicationId}}",
611
+ title: "Test",
612
+ message: "This is a sample template for in-app notification content. This can be triggered on any behavioural event while the user is on the app",
613
+ bodyType: "POPUP",
614
+ expandableDetails: {
615
+ style: "BIG_PICTURE",
616
+ message: "This is a sample template for in-app notification content. This can be triggered on any behavioural event while the user is on the app",
617
+ mediaType: "TEXT",
618
+ },
619
+ custom: [],
620
+ cta: [],
621
+ },
622
+ },
623
+ },
624
+ history: [],
625
+ },
626
+ type: "INAPP",
627
+ isActive: true,
628
+ name: "Test_Template_1hfjaskgfdhadsdf",
629
+ createdBy: "50685457",
630
+ updatedBy: "50685457",
631
+ orgId: 50146,
632
+ definition: {
633
+ accountId: 13578,
634
+ licenseCode: "jif-51242",
635
+ mode: "CREATE",
636
+ },
637
+ createdAt: "2024-02-21T06:45:16.589Z",
638
+ updatedAt: "2024-02-21T06:45:16.589Z",
639
+ __v: 0,
640
+ totalCount: 8,
641
+ },
642
+ ],
643
+ BEETemplate: {},
644
+ };
645
+ export const editData = {
646
+ uploadedAssetData: {},
647
+ createTemplateInProgress: false,
648
+ editTemplateInProgress: false,
649
+ getTemplateDetailsInProgress: false,
650
+ templateDetails: {
651
+ _id: "65f9a4d33a67f3e36962c4c6",
652
+ name: "temp1",
653
+ type: "INAPP",
654
+ versions: {
655
+ history: [],
656
+ base: {
657
+ content: {
658
+ ANDROID: {
659
+ luid: "{{luid}}",
660
+ cuid: "{{cuid}}",
661
+ communicationId: "{{communicationId}}",
662
+ title: "title for test",
663
+ message: "content for test",
664
+ bodyType: "POPUP",
665
+ expandableDetails: {
666
+ style: "BIG_TEXT",
667
+ message: "content for test",
668
+ mediaType: "IMAGE",
669
+ imageUrl: "test",
670
+ buttonType: "CTA",
671
+ buttons: [
672
+ {
673
+ index: 0,
674
+ type: "EXTERNAL_LINK",
675
+ text: "test",
676
+ url: "https://nightly.intouch.capillarytech.com/creatives/ui/v2",
677
+ label: "Test_1",
678
+ },
679
+ ],
680
+ },
681
+ custom: [],
682
+ cta: [],
683
+ },
684
+ IOS: {
685
+ luid: "{{luid}}",
686
+ cuid: "{{cuid}}",
687
+ communicationId: "{{communicationId}}",
688
+ title: "",
689
+ message: "",
690
+ bodyType: "POPUP",
691
+ expandableDetails: {
692
+ style: "BIG_TEXT",
693
+ message: "",
694
+ mediaType: "IMAGE",
695
+ imageUrl: "test",
696
+ buttonType: "CTA",
697
+ buttons: [
698
+ {
699
+ index: 0,
700
+ type: "EXTERNAL_LINK",
701
+ text: "test",
702
+ url: "https://nightly.intouch.capillarytech.com/creatives/ui/v2",
703
+ label: "Test_1",
704
+ },
705
+ ],
706
+ },
707
+ custom: [],
708
+ cta: [],
709
+ },
710
+ },
711
+ },
712
+ },
713
+ isActive: true,
714
+ orgId: 50146,
715
+ createdBy: "50685415",
716
+ updatedBy: "50685415",
717
+ createdAt: "2024-03-19T14:44:35.362Z",
718
+ updatedAt: "2024-03-19T14:44:35.362Z",
719
+ mode: "CREATE",
720
+ },
721
+ };
722
+ export const editData1 = {
723
+ uploadedAssetData: {},
724
+ createTemplateInProgress: false,
725
+ editTemplateInProgress: false,
726
+ getTemplateDetailsInProgress: false,
727
+ templateDetails: {
728
+ _id: "65f9a4d33a67f3e36962c4c6",
729
+ type: "INAPP",
730
+ versions: {
731
+ history: [],
732
+ base: {
733
+ content: {
734
+ ANDROID: {
735
+ luid: "{{luid}}",
736
+ cuid: "{{cuid}}",
737
+ communicationId: "{{communicationId}}",
738
+ title: "title for test",
739
+ message: "content for test",
740
+ bodyType: "POPUP",
741
+ expandableDetails: {
742
+ style: "BIG_TEXT",
743
+ message: "content for test",
744
+ mediaType: "TEXT",
745
+ },
746
+ custom: [],
747
+ cta: ['test'],
748
+ },
749
+ IOS: {
750
+ luid: "{{luid}}",
751
+ cuid: "{{cuid}}",
752
+ communicationId: "{{communicationId}}",
753
+ title: "",
754
+ message: "",
755
+ bodyType: "POPUP",
756
+ expandableDetails: {
757
+ style: "BIG_TEXT",
758
+ message: "",
759
+ mediaType: "TEXT",
760
+ },
761
+ custom: [],
762
+ cta: ['test'],
763
+ },
764
+ },
765
+ },
766
+ },
767
+ isActive: true,
768
+ orgId: 50146,
769
+ createdBy: "50685415",
770
+ updatedBy: "50685415",
771
+ updatedAt: "2024-03-19T14:44:35.362Z",
772
+ mode: "CREATE",
773
+ },
774
+ };
775
+ export const location = {
776
+ pathname: '/inapp/edit',
777
+ query: {
778
+ type: false,
779
+ module: 'default',
780
+ },
781
+ search: '',
782
+ };
783
+ export const location1 = {
784
+ pathname: '/inapp/edit',
785
+ query: {
786
+ type: 'embedded',
787
+ module: 'library',
788
+ },
789
+ search: '',
790
+ };
791
+ export const deviceContentProps = {
792
+ intl: {
793
+ locale: "en-US",
794
+ messages: {},
795
+ formats: {},
796
+ timeZone: null,
797
+ textComponent: "span",
798
+ defaultLocale: "en",
799
+ defaultFormats: {},
800
+ formatters: {},
801
+ },
802
+ location: {
803
+ pathname: "/inapp/edit",
804
+ query: {
805
+ type: false,
806
+ module: "default",
807
+ },
808
+ search: "",
809
+ },
810
+ panes: "ANDROID",
811
+ actions: {},
812
+ editData: {
813
+ uploadedAssetData: {},
814
+ createTemplateInProgress: false,
815
+ editTemplateInProgress: false,
816
+ getTemplateDetailsInProgress: false,
817
+ templateDetails: {
818
+ _id: "65f9a4d33a67f3e36962c4c6",
819
+ name: "Copy of test_5 03-19-2024 20:14:33",
820
+ type: "INAPP",
821
+ versions: {
822
+ history: [],
823
+ base: {
824
+ content: {
825
+ ANDROID: {
826
+ luid: "{{luid}}",
827
+ cuid: "{{cuid}}",
828
+ communicationId: "{{communicationId}}",
829
+ title: "title for test",
830
+ message: "content for test",
831
+ bodyType: "POPUP",
832
+ expandableDetails: {
833
+ style: "BIG_TEXT",
834
+ message: "content for test",
835
+ mediaType: "TEXT",
836
+ },
837
+ custom: [],
838
+ cta: [],
839
+ },
840
+ IOS: {
841
+ luid: "{{luid}}",
842
+ cuid: "{{cuid}}",
843
+ communicationId: "{{communicationId}}",
844
+ title: "",
845
+ message: "",
846
+ bodyType: "POPUP",
847
+ expandableDetails: {
848
+ style: "BIG_TEXT",
849
+ message: "",
850
+ mediaType: "TEXT",
851
+ },
852
+ custom: [],
853
+ cta: [],
854
+ },
855
+ },
856
+ },
857
+ },
858
+ isActive: true,
859
+ orgId: 50146,
860
+ createdBy: "50685415",
861
+ updatedBy: "50685415",
862
+ createdAt: "2024-03-19T14:44:35.362Z",
863
+ updatedAt: "2024-03-19T14:44:35.362Z",
864
+ mode: "CREATE",
865
+ },
866
+ },
867
+ isFullMode: true,
868
+ isEditFlow: true,
869
+ ctaData: [
870
+ {
871
+ index: 0,
872
+ ctaType: "WEBSITE",
873
+ text: "",
874
+ urlType: "DEEP_LINK",
875
+ url: "",
876
+ isSaved: false,
877
+ label: "",
878
+ },
879
+ ],
880
+ buttonType: "NONE",
881
+ accountId: "jif-51242",
882
+ accessToken: "",
883
+ templateMediaType: "TEXT",
884
+ title: "title for test",
885
+ templateMessageError: false,
886
+ templateMessage: "content for test",
887
+ addActionLink: false,
888
+ deepLink: [
889
+ {
890
+ label: "Test_1",
891
+ value: "https://crm-nightly-new.cc.capillarytech.com/home/ui",
892
+ title: "https://crm-nightly-new.cc.capillarytech.com/home/ui",
893
+ },
894
+ ],
895
+ tags: [],
896
+ };
897
+