@capillarytech/creatives-library 7.12.3 → 7.12.6

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.
@@ -2,1186 +2,1216 @@ import React from 'react';
2
2
  import { FormattedMessage } from "react-intl";
3
3
 
4
4
  export default {
5
- whatsappTemplates: {
6
- "selectedWhatsappAccount": {
7
- "sourceTypeName": "WHATSAPP",
8
- "name": "WhatsppTest",
9
- "isActive": true,
10
- "sourceTypeId": 19,
11
- "configs": {
12
- "accessToken": "4676323eb5d1f975b0987070c03a8efc"
13
- },
14
- "toMirror": false,
15
- "id": 12673,
16
- "uuid": "6ac077dbdc7849ccb8db0d38917a6ed5",
17
- "sourceAccountIdentifier": "AC41030cebba9e2f1ce37c78235da0ee18",
18
- "commChannels": [
19
- "whatsapp"
20
- ],
21
- "attribution": {
22
- "createDate": "2022-01-05T00:00:00+05:30",
23
- "createdBy": {
24
- "adminType": "GENERAL",
25
- "name": "1371622280_Ashish",
26
- "currencyId": 0,
27
- "code": "1371622280_919866643044",
28
- "isActive": true,
29
- "isOuEnabled": false,
30
- "languageId": 0,
31
- "timeZoneId": 0,
32
- "type": "ADMIN_USER",
33
- "id": 15000449,
34
- "description": ""
35
- },
36
- "modifiedBy": {
37
- "adminType": "GENERAL",
38
- "name": "1371622280_Ashish",
39
- "currencyId": 0,
40
- "code": "1371622280_919866643044",
41
- "isActive": true,
42
- "isOuEnabled": false,
43
- "languageId": 0,
44
- "timeZoneId": 0,
45
- "type": "ADMIN_USER",
46
- "id": 15000449,
47
- "description": ""
48
- },
49
- "modifiedDate": "2022-01-05T00:00:00+05:30"
50
- }
5
+ whatsappTemplates: {
6
+ selectedWhatsappAccount: {
7
+ sourceTypeName: 'WHATSAPP',
8
+ name: 'WhatsppTest',
9
+ isActive: true,
10
+ sourceTypeId: 19,
11
+ configs: {
12
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
13
+ },
14
+ toMirror: false,
15
+ id: 12673,
16
+ uuid: '6ac077dbdc7849ccb8db0d38917a6ed5',
17
+ sourceAccountIdentifier: 'AC41030cebba9e2f1ce37c78235da0ee18',
18
+ commChannels: ['whatsapp'],
19
+ attribution: {
20
+ createDate: '2022-01-05T00:00:00+05:30',
21
+ createdBy: {
22
+ adminType: 'GENERAL',
23
+ name: '1371622280_Ashish',
24
+ currencyId: 0,
25
+ code: '1371622280_919866643044',
26
+ isActive: true,
27
+ isOuEnabled: false,
28
+ languageId: 0,
29
+ timeZoneId: 0,
30
+ type: 'ADMIN_USER',
31
+ id: 15000449,
32
+ description: '',
51
33
  },
52
- "getAllTemplatesInProgress": false,
53
- "weCrmAccountFetchingError": false,
54
- "weCRMtemplates": [],
55
- "userList": {
56
- "orgUsers": [
57
- {
58
- "userId": 50012994,
59
- "firstName": "firstUser",
60
- "lastName": "",
61
- "loginName": "firstUser@capillarytech.com",
62
- "email": "firstUser@capillarytech.com",
63
- "mobile": "918888802132",
64
- "isMobileValidated": 0,
65
- "isEmailValidated": 0
66
- },
67
- ],
68
- "capUsers": [
69
- {
70
- "userId": 15000449,
71
- "firstName": "Ashish",
72
- "lastName": "Karan fd",
73
- "loginName": "cap@coin.com",
74
- "email": "cap@coin.com",
75
- "mobile": "919957676767",
76
- "isMobileValidated": 1,
77
- "isEmailValidated": 1
78
- },
79
- ]
34
+ modifiedBy: {
35
+ adminType: 'GENERAL',
36
+ name: '1371622280_Ashish',
37
+ currencyId: 0,
38
+ code: '1371622280_919866643044',
39
+ isActive: true,
40
+ isOuEnabled: false,
41
+ languageId: 0,
42
+ timeZoneId: 0,
43
+ type: 'ADMIN_USER',
44
+ id: 15000449,
45
+ description: '',
80
46
  },
81
- "templateError": {},
82
- "fetchingWeCrmAccounts": false,
83
- "fetchingUserList": false,
84
- "isSearch": false,
85
- "weCrmAccounts": [
86
- {
87
- "sourceTypeName": "WHATSAPP",
88
- "name": "WhatsppTest",
89
- "isActive": true,
90
- "sourceTypeId": 19,
91
- "configs": {
92
- "accessToken": "4676323eb5d1f975b0987070c03a8efc"
93
- },
94
- "toMirror": false,
95
- "id": 12673,
96
- "uuid": "6ac077dbdc7849ccb8db0d38917a6ed5",
97
- "sourceAccountIdentifier": "AC41030cebba9e2f1ce37c78235da0ee18",
98
- "commChannels": [
99
- "whatsapp"
47
+ modifiedDate: '2022-01-05T00:00:00+05:30',
48
+ },
49
+ },
50
+ getAllTemplatesInProgress: false,
51
+ weCrmAccountFetchingError: false,
52
+ weCRMtemplates: [],
53
+ userList: {
54
+ orgUsers: [
55
+ {
56
+ userId: 50012994,
57
+ firstName: 'firstUser',
58
+ lastName: '',
59
+ loginName: 'firstUser@capillarytech.com',
60
+ email: 'firstUser@capillarytech.com',
61
+ mobile: '918888802132',
62
+ isMobileValidated: 0,
63
+ isEmailValidated: 0,
64
+ },
65
+ ],
66
+ capUsers: [
67
+ {
68
+ userId: 15000449,
69
+ firstName: 'Ashish',
70
+ lastName: 'Karan fd',
71
+ loginName: 'cap@coin.com',
72
+ email: 'cap@coin.com',
73
+ mobile: '919957676767',
74
+ isMobileValidated: 1,
75
+ isEmailValidated: 1,
76
+ },
77
+ ],
78
+ },
79
+ templateError: {},
80
+ fetchingWeCrmAccounts: false,
81
+ fetchingUserList: false,
82
+ isSearch: false,
83
+ weCrmAccounts: [
84
+ {
85
+ sourceTypeName: 'WHATSAPP',
86
+ name: 'WhatsppTest',
87
+ isActive: true,
88
+ sourceTypeId: 19,
89
+ configs: {
90
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
91
+ },
92
+ toMirror: false,
93
+ id: 12673,
94
+ uuid: '6ac077dbdc7849ccb8db0d38917a6ed5',
95
+ sourceAccountIdentifier: 'AC41030cebba9e2f1ce37c78235da0ee18',
96
+ commChannels: ['whatsapp'],
97
+ attribution: {
98
+ createDate: '2022-01-05T00:00:00+05:30',
99
+ createdBy: {
100
+ adminType: 'GENERAL',
101
+ name: '1371622280_Ashish',
102
+ currencyId: 0,
103
+ code: '1371622280_919866643044',
104
+ isActive: true,
105
+ isOuEnabled: false,
106
+ languageId: 0,
107
+ timeZoneId: 0,
108
+ type: 'ADMIN_USER',
109
+ id: 15000449,
110
+ description: '',
111
+ },
112
+ modifiedBy: {
113
+ adminType: 'GENERAL',
114
+ name: '1371622280_Ashish',
115
+ currencyId: 0,
116
+ code: '1371622280_919866643044',
117
+ isActive: true,
118
+ isOuEnabled: false,
119
+ languageId: 0,
120
+ timeZoneId: 0,
121
+ type: 'ADMIN_USER',
122
+ id: 15000449,
123
+ description: '',
124
+ },
125
+ modifiedDate: '2022-01-05T00:00:00+05:30',
126
+ },
127
+ },
128
+ ],
129
+ userListFetchError: false,
130
+ templates: [
131
+ {
132
+ _id: '620b88327ecc279198099117',
133
+ name: 'saad',
134
+ type: 'WHATSAPP',
135
+ versions: {
136
+ $init: true,
137
+ history: [],
138
+ base: {
139
+ content: {
140
+ whatsapp: {
141
+ status: 'approved',
142
+ templateId: 'HTc5068cbaa813f931ed887f19922ca19d',
143
+ accountName: 'WhatsppTest',
144
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
145
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
146
+ mediaType: 'text',
147
+ languages: [
148
+ {
149
+ content: "$'asdasd\nClick {{1}} to unsubscribe'",
150
+ language: 'en',
151
+ },
100
152
  ],
101
- "attribution": {
102
- "createDate": "2022-01-05T00:00:00+05:30",
103
- "createdBy": {
104
- "adminType": "GENERAL",
105
- "name": "1371622280_Ashish",
106
- "currencyId": 0,
107
- "code": "1371622280_919866643044",
108
- "isActive": true,
109
- "isOuEnabled": false,
110
- "languageId": 0,
111
- "timeZoneId": 0,
112
- "type": "ADMIN_USER",
113
- "id": 15000449,
114
- "description": ""
115
- },
116
- "modifiedBy": {
117
- "adminType": "GENERAL",
118
- "name": "1371622280_Ashish",
119
- "currencyId": 0,
120
- "code": "1371622280_919866643044",
121
- "isActive": true,
122
- "isOuEnabled": false,
123
- "languageId": 0,
124
- "timeZoneId": 0,
125
- "type": "ADMIN_USER",
126
- "id": 15000449,
127
- "description": ""
128
- },
129
- "modifiedDate": "2022-01-05T00:00:00+05:30"
130
- }
131
- }
132
- ],
133
- "userListFetchError": false,
134
- "templates": [
135
- {
136
- "_id": "620b88327ecc279198099117",
137
- "name": "saad",
138
- "type": "WHATSAPP",
139
- "versions": {
140
- "$init": true,
141
- "history": [],
142
- "base": {
143
- "content": {
144
- "whatsapp": {
145
- "status": "approved",
146
- "templateId": "HTc5068cbaa813f931ed887f19922ca19d",
147
- "accountName": "WhatsppTest",
148
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
149
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
150
- "mediaType": "text",
151
- "languages": [
152
- {
153
- "content": "$'asdasd\nClick {{1}} to unsubscribe'",
154
- "language": "en"
155
- }
156
- ],
157
- "category": "ACCOUNT_UPDATE",
158
- "rejection_reason": null
159
- }
160
- }
161
- }
162
- },
163
- "isActive": true,
164
- "orgId": 50146,
165
- "createdBy": "15000449",
166
- "updatedBy": "15000449",
167
- "createdAt": "2022-02-15T11:02:11.190Z",
168
- "updatedAt": "2022-02-15T11:02:11.190Z",
169
- "totalCount": 12
153
+ category: 'ACCOUNT_UPDATE',
154
+ rejection_reason: null,
155
+ },
170
156
  },
171
- {
172
- "_id": "620b59b37ecc273edd099102",
173
- "name": "sdad",
174
- "type": "WHATSAPP",
175
- "versions": {
176
- "$init": true,
177
- "history": [],
178
- "base": {
179
- "content": {
180
- "whatsapp": {
181
- "status": "approved",
182
- "templateId": "HT27ff217529be534258c84e1769a20a41",
183
- "accountName": "WhatsppTest",
184
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
185
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
186
- "mediaType": "text",
187
- "languages": [
188
- {
189
- "content": "$'!@#$%^&*_\nClick {{1}} to unsubscribe'",
190
- "language": "en"
191
- }
192
- ],
193
- "category": "ACCOUNT_UPDATE",
194
- "rejection_reason": null
195
- }
196
- }
197
- }
198
- },
199
- "isActive": true,
200
- "orgId": 50146,
201
- "createdBy": "15000449",
202
- "updatedBy": "15000449",
203
- "createdAt": "2022-02-15T07:43:47.658Z",
204
- "updatedAt": "2022-02-15T07:43:47.658Z",
205
- "totalCount": 12
157
+ },
158
+ },
159
+ isActive: true,
160
+ orgId: 50146,
161
+ createdBy: '15000449',
162
+ updatedBy: '15000449',
163
+ createdAt: '2022-02-15T11:02:11.190Z',
164
+ updatedAt: '2022-02-15T11:02:11.190Z',
165
+ totalCount: 12,
166
+ },
167
+ {
168
+ _id: '620b59b37ecc273edd099102',
169
+ name: 'sdad',
170
+ type: 'WHATSAPP',
171
+ versions: {
172
+ $init: true,
173
+ history: [],
174
+ base: {
175
+ content: {
176
+ whatsapp: {
177
+ status: 'approved',
178
+ templateId: 'HT27ff217529be534258c84e1769a20a41',
179
+ accountName: 'WhatsppTest',
180
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
181
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
182
+ mediaType: 'text',
183
+ languages: [
184
+ {
185
+ content: "$'!@#$%^&*_\nClick {{1}} to unsubscribe'",
186
+ language: 'en',
187
+ },
188
+ ],
189
+ category: 'ACCOUNT_UPDATE',
190
+ rejection_reason: null,
191
+ },
206
192
  },
207
- {
208
- "_id": "620b59637ecc27e0cc0990ff",
209
- "name": "adsdd",
210
- "type": "WHATSAPP",
211
- "versions": {
212
- "$init": true,
213
- "history": [],
214
- "base": {
215
- "content": {
216
- "whatsapp": {
217
- "status": "approved",
218
- "templateId": "HT92d060ab715e2fc03fc49ee045943f9a",
219
- "accountName": "WhatsppTest",
220
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
221
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
222
- "mediaType": "text",
223
- "languages": [
224
- {
225
- "content": "$'!@#$%^&*()_+\nClick {{1}} to unsubscribe'",
226
- "language": "en"
227
- }
228
- ],
229
- "category": "ALERT_UPDATE",
230
- "rejection_reason": null
231
- }
232
- }
233
- }
234
- },
235
- "isActive": true,
236
- "orgId": 50146,
237
- "createdBy": "15000449",
238
- "updatedBy": "15000449",
239
- "createdAt": "2022-02-15T07:42:27.634Z",
240
- "updatedAt": "2022-02-15T07:42:27.634Z",
241
- "totalCount": 12
193
+ },
194
+ },
195
+ isActive: true,
196
+ orgId: 50146,
197
+ createdBy: '15000449',
198
+ updatedBy: '15000449',
199
+ createdAt: '2022-02-15T07:43:47.658Z',
200
+ updatedAt: '2022-02-15T07:43:47.658Z',
201
+ totalCount: 12,
202
+ },
203
+ {
204
+ _id: '620b59637ecc27e0cc0990ff',
205
+ name: 'adsdd',
206
+ type: 'WHATSAPP',
207
+ versions: {
208
+ $init: true,
209
+ history: [],
210
+ base: {
211
+ content: {
212
+ whatsapp: {
213
+ status: 'approved',
214
+ templateId: 'HT92d060ab715e2fc03fc49ee045943f9a',
215
+ accountName: 'WhatsppTest',
216
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
217
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
218
+ mediaType: 'text',
219
+ languages: [
220
+ {
221
+ content: "$'!@#$%^&*()_+\nClick {{1}} to unsubscribe'",
222
+ language: 'en',
223
+ },
224
+ ],
225
+ category: 'ALERT_UPDATE',
226
+ rejection_reason: null,
227
+ },
242
228
  },
243
- {
244
- "_id": "620b592c7ecc2758610990fe",
245
- "name": "sdfsdf",
246
- "type": "WHATSAPP",
247
- "versions": {
248
- "$init": true,
249
- "history": [],
250
- "base": {
251
- "content": {
252
- "whatsapp": {
253
- "status": "approved",
254
- "templateId": "HTe9afa93dbae9c8008d9b48fa9634e8cc",
255
- "accountName": "WhatsppTest",
256
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
257
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
258
- "mediaType": "text",
259
- "languages": [
260
- {
261
- "content": "$'!@#$%^&*()_+\nClick {{1}} to unsubscribe'",
262
- "language": "en"
263
- }
264
- ],
265
- "category": "ACCOUNT_UPDATE",
266
- "rejection_reason": null
267
- }
268
- }
269
- }
270
- },
271
- "isActive": true,
272
- "orgId": 50146,
273
- "createdBy": "15000449",
274
- "updatedBy": "15000449",
275
- "createdAt": "2022-02-15T07:41:32.794Z",
276
- "updatedAt": "2022-02-15T07:41:32.794Z",
277
- "totalCount": 12
229
+ },
230
+ },
231
+ isActive: true,
232
+ orgId: 50146,
233
+ createdBy: '15000449',
234
+ updatedBy: '15000449',
235
+ createdAt: '2022-02-15T07:42:27.634Z',
236
+ updatedAt: '2022-02-15T07:42:27.634Z',
237
+ totalCount: 12,
238
+ },
239
+ {
240
+ _id: '620b592c7ecc2758610990fe',
241
+ name: 'sdfsdf',
242
+ type: 'WHATSAPP',
243
+ versions: {
244
+ $init: true,
245
+ history: [],
246
+ base: {
247
+ content: {
248
+ whatsapp: {
249
+ status: 'approved',
250
+ templateId: 'HTe9afa93dbae9c8008d9b48fa9634e8cc',
251
+ accountName: 'WhatsppTest',
252
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
253
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
254
+ mediaType: 'text',
255
+ languages: [
256
+ {
257
+ content: "$'!@#$%^&*()_+\nClick {{1}} to unsubscribe'",
258
+ language: 'en',
259
+ },
260
+ ],
261
+ category: 'ACCOUNT_UPDATE',
262
+ rejection_reason: null,
263
+ },
278
264
  },
279
- {
280
- "_id": "620b45a37ecc2790760990f3",
281
- "name": "demo123_",
282
- "type": "WHATSAPP",
283
- "versions": {
284
- "$init": true,
285
- "history": [],
286
- "base": {
287
- "content": {
288
- "whatsapp": {
289
- "status": "rejected",
290
- "templateId": "HT0e13521c16f501edcddb3834bf39b7a0",
291
- "accountName": "WhatsppTest",
292
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
293
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
294
- "mediaType": "text",
295
- "languages": [
296
- {
297
- "content": "$'sasdad {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
298
- "language": "en"
299
- }
300
- ],
301
- "category": "ALERT_UPDATE",
302
- "rejection_reason": "INVALID_FORMAT"
303
- }
304
- }
305
- }
306
- },
307
- "isActive": true,
308
- "orgId": 50146,
309
- "createdBy": "15000449",
310
- "updatedBy": "15000449",
311
- "createdAt": "2022-02-15T06:18:11.404Z",
312
- "updatedAt": "2022-02-15T06:20:00.566Z",
313
- "totalCount": 12
265
+ },
266
+ },
267
+ isActive: true,
268
+ orgId: 50146,
269
+ createdBy: '15000449',
270
+ updatedBy: '15000449',
271
+ createdAt: '2022-02-15T07:41:32.794Z',
272
+ updatedAt: '2022-02-15T07:41:32.794Z',
273
+ totalCount: 12,
274
+ },
275
+ {
276
+ _id: '620b45a37ecc2790760990f3',
277
+ name: 'demo123_',
278
+ type: 'WHATSAPP',
279
+ versions: {
280
+ $init: true,
281
+ history: [],
282
+ base: {
283
+ content: {
284
+ whatsapp: {
285
+ status: 'rejected',
286
+ templateId: 'HT0e13521c16f501edcddb3834bf39b7a0',
287
+ accountName: 'WhatsppTest',
288
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
289
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
290
+ mediaType: 'text',
291
+ languages: [
292
+ {
293
+ content:
294
+ "$'sasdad {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
295
+ language: 'en',
296
+ },
297
+ ],
298
+ category: 'ALERT_UPDATE',
299
+ rejection_reason: 'INVALID_FORMAT',
300
+ },
314
301
  },
315
- {
316
- "_id": "6206293583c7567293240513",
317
- "name": "hiaqwe23123",
318
- "type": "WHATSAPP",
319
- "versions": {
320
- "$init": true,
321
- "history": [],
322
- "base": {
323
- "content": {
324
- "whatsapp": {
325
- "status": "approved",
326
- "templateId": "HT5d4dc726d77452b062833d662769bd96",
327
- "accountName": "WhatsppTest",
328
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
329
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
330
- "templateEditor": "dfsdfdsf",
331
- "mediaType": "TEXT",
332
- "languages": [
333
- {
334
- "content": "$'dfsdfdsf\nClick {{1}} to unsubscribe'",
335
- "language": "en"
336
- }
337
- ],
338
- "category": "ALERT_UPDATE",
339
- "rejection_reason": null
340
- }
341
- }
342
- }
343
- },
344
- "isActive": true,
345
- "orgId": 50146,
346
- "createdBy": "15000449",
347
- "updatedBy": "15000449",
348
- "createdAt": "2022-02-11T09:15:34.151Z",
349
- "updatedAt": "2022-02-11T09:15:34.151Z",
350
- "totalCount": 12
302
+ },
303
+ },
304
+ isActive: true,
305
+ orgId: 50146,
306
+ createdBy: '15000449',
307
+ updatedBy: '15000449',
308
+ createdAt: '2022-02-15T06:18:11.404Z',
309
+ updatedAt: '2022-02-15T06:20:00.566Z',
310
+ totalCount: 12,
311
+ },
312
+ {
313
+ _id: '6206293583c7567293240513',
314
+ name: 'hiaqwe23123',
315
+ type: 'WHATSAPP',
316
+ versions: {
317
+ $init: true,
318
+ history: [],
319
+ base: {
320
+ content: {
321
+ whatsapp: {
322
+ status: 'approved',
323
+ templateId: 'HT5d4dc726d77452b062833d662769bd96',
324
+ accountName: 'WhatsppTest',
325
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
326
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
327
+ templateEditor: 'dfsdfdsf',
328
+ mediaType: 'TEXT',
329
+ languages: [
330
+ {
331
+ content: "$'dfsdfdsf\nClick {{1}} to unsubscribe'",
332
+ language: 'en',
333
+ },
334
+ ],
335
+ category: 'ALERT_UPDATE',
336
+ rejection_reason: null,
337
+ },
351
338
  },
352
- {
353
- "_id": "62034e0d83c756035f2404ef",
354
- "name": "payment_status",
355
- "type": "WHATSAPP",
356
- "versions": {
357
- "$init": true,
358
- "history": [],
359
- "base": {
360
- "content": {
361
- "whatsapp": {
362
- "status": "approved",
363
- "templateId": "HT79d91d09938365fbade7e5fd208311da",
364
- "accountName": "WhatsppTest",
365
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
366
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
367
- "mediaType": "text",
368
- "languages": [
369
- {
370
- "content": "$'Purchase successful @ {{1}}\nCongrats!!\n{{2}} added to your Vishal Mega Mart account\nRedeem on {{3}}\nValid only for {{4}}\nTerms and conditions apply\n{{5}}\nClick {{6}} to unsubscribe'",
371
- "language": "en"
372
- }
373
- ],
374
- "category": "PAYMENT_UPDATE",
375
- "rejection_reason": null
376
- }
377
- }
378
- }
379
- },
380
- "isActive": true,
381
- "orgId": 50146,
382
- "createdBy": "15000449",
383
- "updatedBy": "15000449",
384
- "createdAt": "2022-02-09T05:15:57.700Z",
385
- "updatedAt": "2022-02-09T05:15:57.700Z",
386
- "totalCount": 12
339
+ },
340
+ },
341
+ isActive: true,
342
+ orgId: 50146,
343
+ createdBy: '15000449',
344
+ updatedBy: '15000449',
345
+ createdAt: '2022-02-11T09:15:34.151Z',
346
+ updatedAt: '2022-02-11T09:15:34.151Z',
347
+ totalCount: 12,
348
+ },
349
+ {
350
+ _id: '62034e0d83c756035f2404ef',
351
+ name: 'payment_status',
352
+ type: 'WHATSAPP',
353
+ versions: {
354
+ $init: true,
355
+ history: [],
356
+ base: {
357
+ content: {
358
+ whatsapp: {
359
+ status: 'approved',
360
+ templateId: 'HT79d91d09938365fbade7e5fd208311da',
361
+ accountName: 'WhatsppTest',
362
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
363
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
364
+ mediaType: 'text',
365
+ languages: [
366
+ {
367
+ content:
368
+ "$'Purchase successful @ {{1}}\nCongrats!!\n{{2}} added to your Vishal Mega Mart account\nRedeem on {{3}}\nValid only for {{4}}\nTerms and conditions apply\n{{5}}\nClick {{6}} to unsubscribe'",
369
+ language: 'en',
370
+ },
371
+ ],
372
+ category: 'PAYMENT_UPDATE',
373
+ rejection_reason: null,
374
+ },
387
375
  },
388
- {
389
- "_id": "62034bf683c75682f82404ee",
390
- "name": "reservation_update",
391
- "type": "WHATSAPP",
392
- "versions": {
393
- "$init": true,
394
- "history": [],
395
- "base": {
396
- "content": {
397
- "whatsapp": {
398
- "status": "approved",
399
- "templateId": "HT41de93f2b9fce551026be8ef53c38cd5",
400
- "accountName": "WhatsppTest",
401
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
402
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
403
- "mediaType": "text",
404
- "languages": [
405
- {
406
- "content": "$'Hi {{1}}, your reservation at {{2}} is confirmed for {{3}} at {{4}}\nClick {{5}} to unsubscribe'",
407
- "language": "en"
408
- }
409
- ],
410
- "category": "RESERVATION_UPDATE",
411
- "rejection_reason": null
412
- }
413
- }
414
- }
415
- },
416
- "isActive": true,
417
- "orgId": 50146,
418
- "createdBy": "15000449",
419
- "updatedBy": "15000449",
420
- "createdAt": "2022-02-09T05:07:02.525Z",
421
- "updatedAt": "2022-02-09T05:07:02.525Z",
422
- "totalCount": 12
376
+ },
377
+ },
378
+ isActive: true,
379
+ orgId: 50146,
380
+ createdBy: '15000449',
381
+ updatedBy: '15000449',
382
+ createdAt: '2022-02-09T05:15:57.700Z',
383
+ updatedAt: '2022-02-09T05:15:57.700Z',
384
+ totalCount: 12,
385
+ },
386
+ {
387
+ _id: '62034bf683c75682f82404ee',
388
+ name: 'reservation_update',
389
+ type: 'WHATSAPP',
390
+ versions: {
391
+ $init: true,
392
+ history: [],
393
+ base: {
394
+ content: {
395
+ whatsapp: {
396
+ status: 'approved',
397
+ templateId: 'HT41de93f2b9fce551026be8ef53c38cd5',
398
+ accountName: 'WhatsppTest',
399
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
400
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
401
+ mediaType: 'text',
402
+ languages: [
403
+ {
404
+ content:
405
+ "$'Hi {{1}}, your reservation at {{2}} is confirmed for {{3}} at {{4}}\nClick {{5}} to unsubscribe'",
406
+ language: 'en',
407
+ },
408
+ ],
409
+ category: 'RESERVATION_UPDATE',
410
+ rejection_reason: null,
411
+ },
423
412
  },
424
- {
425
- "_id": "62034b8583c7566fbb2404ed",
426
- "name": "optout_update",
427
- "type": "WHATSAPP",
428
- "versions": {
429
- "$init": true,
430
- "history": [],
431
- "base": {
432
- "content": {
433
- "whatsapp": {
434
- "status": "approved",
435
- "templateId": "HT6562fb8f7267a51d5de099f7ea4e3077",
436
- "accountName": "WhatsppTest",
437
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
438
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
439
- "mediaType": "text",
440
- "languages": [
441
- {
442
- "content": "$'Dear Customer you have been opted out to receive messages from us. To Opt in give a missed call at +918067006166. Don't miss out on our offers & SHOP FOR FREE!\nClick {{1}} to unsubscribe'",
443
- "language": "en"
444
- }
445
- ],
446
- "category": "ACCOUNT_UPDATE",
447
- "rejection_reason": null
448
- }
449
- }
450
- }
451
- },
452
- "isActive": true,
453
- "orgId": 50146,
454
- "createdBy": "15000449",
455
- "updatedBy": "15000449",
456
- "createdAt": "2022-02-09T05:05:09.446Z",
457
- "updatedAt": "2022-02-09T05:05:09.446Z",
458
- "totalCount": 12
413
+ },
414
+ },
415
+ isActive: true,
416
+ orgId: 50146,
417
+ createdBy: '15000449',
418
+ updatedBy: '15000449',
419
+ createdAt: '2022-02-09T05:07:02.525Z',
420
+ updatedAt: '2022-02-09T05:07:02.525Z',
421
+ totalCount: 12,
422
+ },
423
+ {
424
+ _id: '62034b8583c7566fbb2404ed',
425
+ name: 'optout_update',
426
+ type: 'WHATSAPP',
427
+ versions: {
428
+ $init: true,
429
+ history: [],
430
+ base: {
431
+ content: {
432
+ whatsapp: {
433
+ status: 'approved',
434
+ templateId: 'HT6562fb8f7267a51d5de099f7ea4e3077',
435
+ accountName: 'WhatsppTest',
436
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
437
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
438
+ mediaType: 'text',
439
+ languages: [
440
+ {
441
+ content:
442
+ "$'Dear Customer you have been opted out to receive messages from us. To Opt in give a missed call at +918067006166. Don't miss out on our offers & SHOP FOR FREE!\nClick {{1}} to unsubscribe'",
443
+ language: 'en',
444
+ },
445
+ ],
446
+ category: 'ACCOUNT_UPDATE',
447
+ rejection_reason: null,
448
+ },
459
449
  },
460
- {
461
- "_id": "62034b4683c75608cf2404ec",
462
- "name": "points_update",
463
- "type": "WHATSAPP",
464
- "versions": {
465
- "$init": true,
466
- "history": [],
467
- "base": {
468
- "content": {
469
- "whatsapp": {
470
- "status": "approved",
471
- "templateId": "HT9bb4d61eea1699d2dbcaecd1cb558345",
472
- "accountName": "WhatsppTest",
473
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
474
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
475
- "mediaType": "text",
476
- "languages": [
477
- {
478
- "content": "$'Dear Customer, your{{1}} points are about to expire. Redeem before {{2}} at nearest Vishal Mega Mart and SHOP FOR FREE!\nT&C\nClick {{3}} to unsubscribe'",
479
- "language": "en"
480
- }
481
- ],
482
- "category": "ACCOUNT_UPDATE",
483
- "rejection_reason": null
484
- }
485
- }
486
- }
487
- },
488
- "isActive": true,
489
- "orgId": 50146,
490
- "createdBy": "15000449",
491
- "updatedBy": "15000449",
492
- "createdAt": "2022-02-09T05:04:06.579Z",
493
- "updatedAt": "2022-02-09T05:04:06.579Z",
494
- "totalCount": 12
450
+ },
451
+ },
452
+ isActive: true,
453
+ orgId: 50146,
454
+ createdBy: '15000449',
455
+ updatedBy: '15000449',
456
+ createdAt: '2022-02-09T05:05:09.446Z',
457
+ updatedAt: '2022-02-09T05:05:09.446Z',
458
+ totalCount: 12,
459
+ },
460
+ {
461
+ _id: '62034b4683c75608cf2404ec',
462
+ name: 'points_update',
463
+ type: 'WHATSAPP',
464
+ versions: {
465
+ $init: true,
466
+ history: [],
467
+ base: {
468
+ content: {
469
+ whatsapp: {
470
+ status: 'approved',
471
+ templateId: 'HT9bb4d61eea1699d2dbcaecd1cb558345',
472
+ accountName: 'WhatsppTest',
473
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
474
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
475
+ mediaType: 'text',
476
+ languages: [
477
+ {
478
+ content:
479
+ "$'Dear Customer, your{{1}} points are about to expire. Redeem before {{2}} at nearest Vishal Mega Mart and SHOP FOR FREE!\nT&C\nClick {{3}} to unsubscribe'",
480
+ language: 'en',
481
+ },
482
+ ],
483
+ category: 'ACCOUNT_UPDATE',
484
+ rejection_reason: null,
485
+ },
495
486
  },
496
- {
497
- "_id": "62026d1283c7566ce92404de",
498
- "name": "test_rejected_message_3",
499
- "type": "WHATSAPP",
500
- "versions": {
501
- "$init": true,
502
- "history": [],
503
- "base": {
504
- "content": {
505
- "whatsapp": {
506
- "status": "rejected",
507
- "templateId": "HT9012f1c7290beb0286b7c4138baf675d",
508
- "accountName": "WhatsppTest",
509
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
510
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
511
- "mediaType": "text",
512
- "languages": [
513
- {
514
- "content": "$'Hello {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
515
- "language": "en"
516
- }
517
- ],
518
- "category": "ALERT_UPDATE",
519
- "rejection_reason": "INVALID_FORMAT"
520
- }
521
- }
522
- }
523
- },
524
- "isActive": true,
525
- "orgId": 50146,
526
- "createdBy": "15000449",
527
- "updatedBy": "15000449",
528
- "createdAt": "2022-02-08T13:16:02.366Z",
529
- "updatedAt": "2022-02-08T13:16:02.366Z",
530
- "totalCount": 12
487
+ },
488
+ },
489
+ isActive: true,
490
+ orgId: 50146,
491
+ createdBy: '15000449',
492
+ updatedBy: '15000449',
493
+ createdAt: '2022-02-09T05:04:06.579Z',
494
+ updatedAt: '2022-02-09T05:04:06.579Z',
495
+ totalCount: 12,
496
+ },
497
+ {
498
+ _id: '62026d1283c7566ce92404de',
499
+ name: 'test_rejected_message_3',
500
+ type: 'WHATSAPP',
501
+ versions: {
502
+ $init: true,
503
+ history: [],
504
+ base: {
505
+ content: {
506
+ whatsapp: {
507
+ status: 'rejected',
508
+ templateId: 'HT9012f1c7290beb0286b7c4138baf675d',
509
+ accountName: 'WhatsppTest',
510
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
511
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
512
+ mediaType: 'text',
513
+ languages: [
514
+ {
515
+ content:
516
+ "$'Hello {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
517
+ language: 'en',
518
+ },
519
+ ],
520
+ category: 'ALERT_UPDATE',
521
+ rejection_reason: 'INVALID_FORMAT',
522
+ },
531
523
  },
532
- {
533
- "_id": "62025d0583c756f73f2404d8",
534
- "name": "test_rejected_message_1",
535
- "type": "WHATSAPP",
536
- "versions": {
537
- "$init": true,
538
- "history": [],
539
- "base": {
540
- "content": {
541
- "whatsapp": {
542
- "status": "rejected",
543
- "templateId": "HT5196572bf61ebcc6b8c6216522226b14",
544
- "accountName": "WhatsppTest",
545
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
546
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
547
- "mediaType": "text",
548
- "languages": [
549
- {
550
- "content": "$'hi {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
551
- "language": "en"
552
- }
553
- ],
554
- "category": "ALERT_UPDATE",
555
- "rejection_reason": "INVALID_FORMAT"
556
- }
557
- }
558
- }
559
- },
560
- "isActive": true,
561
- "orgId": 50146,
562
- "createdBy": "15000449",
563
- "updatedBy": "15000449",
564
- "createdAt": "2022-02-08T12:07:34.192Z",
565
- "updatedAt": "2022-02-08T12:07:34.192Z",
566
- "totalCount": 12
567
- }
568
- ]
524
+ },
525
+ },
526
+ isActive: true,
527
+ orgId: 50146,
528
+ createdBy: '15000449',
529
+ updatedBy: '15000449',
530
+ createdAt: '2022-02-08T13:16:02.366Z',
531
+ updatedAt: '2022-02-08T13:16:02.366Z',
532
+ totalCount: 12,
533
+ },
534
+ {
535
+ _id: '62025d0583c756f73f2404d8',
536
+ name: 'test_rejected_message_1',
537
+ type: 'WHATSAPP',
538
+ versions: {
539
+ $init: true,
540
+ history: [],
541
+ base: {
542
+ content: {
543
+ whatsapp: {
544
+ status: 'rejected',
545
+ templateId: 'HT5196572bf61ebcc6b8c6216522226b14',
546
+ accountName: 'WhatsppTest',
547
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
548
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
549
+ mediaType: 'text',
550
+ languages: [
551
+ {
552
+ content:
553
+ "$'hi {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
554
+ language: 'en',
555
+ },
556
+ ],
557
+ category: 'ALERT_UPDATE',
558
+ rejection_reason: 'INVALID_FORMAT',
559
+ },
560
+ },
561
+ },
562
+ },
563
+ isActive: true,
564
+ orgId: 50146,
565
+ createdBy: '15000449',
566
+ updatedBy: '15000449',
567
+ createdAt: '2022-02-08T12:07:34.192Z',
568
+ updatedAt: '2022-02-08T12:07:34.192Z',
569
+ totalCount: 12,
570
+ },
571
+ ],
572
+ },
573
+ rcsTemplates: {
574
+ getAllTemplatesInProgress: false,
575
+ weCrmAccountFetchingError: false,
576
+ weCRMtemplates: [],
577
+ userList: {
578
+ orgUsers: [
579
+ {
580
+ userId: 50012994,
581
+ firstName: 'firstUser',
582
+ lastName: '',
583
+ loginName: 'firstUser@capillarytech.com',
584
+ email: 'firstUser@capillarytech.com',
585
+ mobile: '918888802132',
586
+ isMobileValidated: 0,
587
+ isEmailValidated: 0,
588
+ },
589
+ ],
590
+ capUsers: [
591
+ {
592
+ userId: 15000449,
593
+ firstName: 'Ashish',
594
+ lastName: 'Karan fd',
595
+ loginName: 'cap@coin.com',
596
+ email: 'cap@coin.com',
597
+ mobile: '919957676767',
598
+ isMobileValidated: 1,
599
+ isEmailValidated: 1,
600
+ },
601
+ ],
569
602
  },
570
- rcsTemplates: {
571
- "getAllTemplatesInProgress": false,
572
- "weCrmAccountFetchingError": false,
573
- "weCRMtemplates": [],
574
- "userList": {
575
- "orgUsers": [
576
- {
577
- "userId": 50012994,
578
- "firstName": "firstUser",
579
- "lastName": "",
580
- "loginName": "firstUser@capillarytech.com",
581
- "email": "firstUser@capillarytech.com",
582
- "mobile": "918888802132",
583
- "isMobileValidated": 0,
584
- "isEmailValidated": 0
603
+ templateError: {},
604
+ fetchingWeCrmAccounts: false,
605
+ fetchingUserList: false,
606
+ isSearch: false,
607
+ userListFetchError: false,
608
+ templates: [
609
+ {
610
+ _id: '623c39e970387f3cf5f8fd70',
611
+ name: 'testtest',
612
+ type: 'RCS',
613
+ versions: {
614
+ $init: true,
615
+ history: [],
616
+ base: {
617
+ content: {
618
+ RCS: {
619
+ cardContent: [
620
+ {
621
+ title: 'title',
622
+ description: 'Desc',
623
+ mediaType: 'NONE',
624
+ media: {
625
+ mediaUrl: '',
626
+ height: 'MEDIUM',
627
+ },
628
+ },
629
+ ],
630
+ cardSettings: {
631
+ cardOrientation: 'VERTICAL',
632
+ mediaAlignment: 'RIGHT',
585
633
  },
586
- ],
587
- "capUsers": [
588
- {
589
- "userId": 15000449,
590
- "firstName": "Ashish",
591
- "lastName": "Karan fd",
592
- "loginName": "cap@coin.com",
593
- "email": "cap@coin.com",
594
- "mobile": "919957676767",
595
- "isMobileValidated": 1,
596
- "isEmailValidated": 1
634
+ cardType: 'STANDALONE',
635
+ contentType: 'RICHCARD',
636
+ smsFallBackContent: {
637
+ message: '123',
597
638
  },
598
- ]
639
+ },
640
+ },
641
+ },
599
642
  },
600
- "templateError": {},
601
- "fetchingWeCrmAccounts": false,
602
- "fetchingUserList": false,
603
- "isSearch": false,
604
- "userListFetchError": false,
605
- "templates": [
606
- {
607
- "_id": "623c39e970387f3cf5f8fd70",
608
- "name": "testtest",
609
- "type": "RCS",
610
- "versions": {
611
- "$init": true,
612
- "history": [],
613
- "base": {
614
- "content": {
615
- "RCS": {
616
- "cardContent": [
617
- {
618
- "title": "title",
619
- "description": "Desc",
620
- "mediaType": "NONE",
621
- "media": {
622
- "mediaUrl": "",
623
- "height": "MEDIUM"
624
- }
625
- }
626
- ],
627
- "cardSettings": {
628
- "cardOrientation": "VERTICAL",
629
- "mediaAlignment": "RIGHT"
630
- },
631
- "cardType": "STANDALONE",
632
- "contentType": "RICHCARD",
633
- "smsFallBackContent": {
634
- "message": "123"
635
- }
636
- }
637
- }
638
- }
643
+ isActive: true,
644
+ orgId: 50146,
645
+ createdBy: '15000449',
646
+ updatedBy: '15000449',
647
+ createdAt: '2022-03-24T09:29:13.376Z',
648
+ updatedAt: '2022-03-29T11:15:53.175Z',
649
+ totalCount: 10,
650
+ },
651
+ {
652
+ _id: '623c3e0a70387fa8dcf8fd75',
653
+ name: 'creative',
654
+ type: 'RCS',
655
+ versions: {
656
+ $init: true,
657
+ history: [],
658
+ base: {
659
+ content: {
660
+ RCS: {
661
+ smsFallBackContent: {
662
+ message: 'fallback {{optout}}',
639
663
  },
640
- "isActive": true,
641
- "orgId": 50146,
642
- "createdBy": "15000449",
643
- "updatedBy": "15000449",
644
- "createdAt": "2022-03-24T09:29:13.376Z",
645
- "updatedAt": "2022-03-29T11:15:53.175Z",
646
- "totalCount": 10
647
- },
648
- {
649
- "_id": "623c3e0a70387fa8dcf8fd75",
650
- "name": "creative",
651
- "type": "RCS",
652
- "versions": {
653
- "$init": true,
654
- "history": [],
655
- "base": {
656
- "content": {
657
- "RCS": {
658
- "smsFallBackContent": {
659
- "message": "fallback {{optout}}"
660
- },
661
- "contentType": "RICHCARD",
662
- "cardType": "STANDALONE",
663
- "cardSettings": {
664
- "mediaAlignment": "RIGHT",
665
- "cardOrientation": "VERTICAL"
666
- },
667
- "cardContent": [
668
- {
669
- "media": {
670
- "height": "MEDIUM",
671
- "mediaUrl": ""
672
- },
673
- "mediaType": "NONE",
674
- "description": "desc {{store_name}}",
675
- "title": "title"
676
- }
677
- ]
678
- }
679
- }
680
- }
664
+ contentType: 'RICHCARD',
665
+ cardType: 'STANDALONE',
666
+ cardSettings: {
667
+ mediaAlignment: 'RIGHT',
668
+ cardOrientation: 'VERTICAL',
681
669
  },
682
- "isActive": true,
683
- "orgId": 50146,
684
- "createdBy": "15000449",
685
- "updatedBy": "15000449",
686
- "createdAt": "2022-03-24T09:46:50.688Z",
687
- "updatedAt": "2022-03-24T09:46:50.688Z",
688
- "totalCount": 10
670
+ cardContent: [
671
+ {
672
+ media: {
673
+ height: 'MEDIUM',
674
+ mediaUrl: '',
675
+ },
676
+ mediaType: 'NONE',
677
+ description: 'desc {{store_name}}',
678
+ title: 'title',
679
+ },
680
+ ],
681
+ },
689
682
  },
690
- {
691
- "_id": "623c279270387f94fff8fd6e",
692
- "name": "Test_1111",
693
- "type": "RCS",
694
- "versions": {
695
- "$init": true,
696
- "history": [],
697
- "base": {
698
- "content": {
699
- "RCS": {
700
- "smsFallBackContent": {
701
- "message": "Test SMS message"
702
- },
703
- "contentType": "RICHCARD",
704
- "cardType": "STANDALONE",
705
- "cardSettings": {
706
- "mediaAlignment": "RIGHT",
707
- "cardOrientation": "VERTICAL"
708
- },
709
- "cardContent": [
710
- {
711
- "media": {
712
- "height": "MEDIUM",
713
- "mediaUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/abc49b13-6e84-4ff9-8859-6dd8d8d5.jpg"
714
- },
715
- "mediaType": "IMAGE",
716
- "description": "Test Text message\n{{store_name}}",
717
- "title": "Test Title"
718
- }
719
- ]
720
- }
721
- }
722
- }
683
+ },
684
+ },
685
+ isActive: true,
686
+ orgId: 50146,
687
+ createdBy: '15000449',
688
+ updatedBy: '15000449',
689
+ createdAt: '2022-03-24T09:46:50.688Z',
690
+ updatedAt: '2022-03-24T09:46:50.688Z',
691
+ totalCount: 10,
692
+ },
693
+ {
694
+ _id: '623c279270387f94fff8fd6e',
695
+ name: 'Test_1111',
696
+ type: 'RCS',
697
+ versions: {
698
+ $init: true,
699
+ history: [],
700
+ base: {
701
+ content: {
702
+ RCS: {
703
+ smsFallBackContent: {
704
+ message: 'Test SMS message',
705
+ },
706
+ contentType: 'RICHCARD',
707
+ cardType: 'STANDALONE',
708
+ cardSettings: {
709
+ mediaAlignment: 'RIGHT',
710
+ cardOrientation: 'VERTICAL',
723
711
  },
724
- "isActive": true,
725
- "orgId": 50146,
726
- "createdBy": "15000449",
727
- "updatedBy": "15000449",
728
- "createdAt": "2022-03-24T08:10:58.084Z",
729
- "updatedAt": "2022-03-24T08:10:58.084Z",
730
- "totalCount": 10
712
+ cardContent: [
713
+ {
714
+ media: {
715
+ height: 'MEDIUM',
716
+ mediaUrl:
717
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/abc49b13-6e84-4ff9-8859-6dd8d8d5.jpg',
718
+ },
719
+ mediaType: 'IMAGE',
720
+ description: 'Test Text message\n{{store_name}}',
721
+ title: 'Test Title',
722
+ },
723
+ ],
724
+ },
731
725
  },
732
- {
733
- "_id": "623c264b70387f4db0f8fd6d",
734
- "name": "Copy of Test_112 03-24-2022 13:35:31",
735
- "type": "RCS",
736
- "versions": {
737
- "$init": true,
738
- "history": [],
739
- "base": {
740
- "content": {
741
- "RCS": {
742
- "cardContent": [
743
- {
744
- "title": "Hi I am Title",
745
- "description": "Hi I am Text message",
746
- "mediaType": "IMAGE",
747
- "media": {
748
- "mediaUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg",
749
- "height": "MEDIUM"
750
- }
751
- }
752
- ],
753
- "cardSettings": {
754
- "cardOrientation": "VERTICAL",
755
- "mediaAlignment": "RIGHT"
756
- },
757
- "cardType": "STANDALONE",
758
- "contentType": "RICHCARD",
759
- "smsFallBackContent": {
760
- "message": ""
761
- }
762
- }
763
- }
764
- }
726
+ },
727
+ },
728
+ isActive: true,
729
+ orgId: 50146,
730
+ createdBy: '15000449',
731
+ updatedBy: '15000449',
732
+ createdAt: '2022-03-24T08:10:58.084Z',
733
+ updatedAt: '2022-03-24T08:10:58.084Z',
734
+ totalCount: 10,
735
+ },
736
+ {
737
+ _id: '623c264b70387f4db0f8fd6d',
738
+ name: 'Copy of Test_112 03-24-2022 13:35:31',
739
+ type: 'RCS',
740
+ versions: {
741
+ $init: true,
742
+ history: [],
743
+ base: {
744
+ content: {
745
+ RCS: {
746
+ cardContent: [
747
+ {
748
+ title: 'Hi I am Title',
749
+ description: 'Hi I am Text message',
750
+ mediaType: 'IMAGE',
751
+ media: {
752
+ mediaUrl:
753
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg',
754
+ height: 'MEDIUM',
755
+ },
756
+ },
757
+ ],
758
+ cardSettings: {
759
+ cardOrientation: 'VERTICAL',
760
+ mediaAlignment: 'RIGHT',
765
761
  },
766
- "isActive": true,
767
- "orgId": 50146,
768
- "createdBy": "15000449",
769
- "updatedBy": "15000449",
770
- "createdAt": "2022-03-24T08:05:31.979Z",
771
- "updatedAt": "2022-03-24T08:05:31.979Z",
772
- "totalCount": 10
762
+ cardType: 'STANDALONE',
763
+ contentType: 'RICHCARD',
764
+ smsFallBackContent: {
765
+ message: '',
766
+ },
767
+ },
773
768
  },
774
- {
775
- "_id": "623c000670387f4df6f8fd59",
776
- "name": "Test_112",
777
- "type": "RCS",
778
- "versions": {
779
- "$init": true,
780
- "history": [],
781
- "base": {
782
- "content": {
783
- "RCS": {
784
- "smsFallBackContent": {
785
- "message": ""
786
- },
787
- "contentType": "RICHCARD",
788
- "cardType": "STANDALONE",
789
- "cardSettings": {
790
- "mediaAlignment": "RIGHT",
791
- "cardOrientation": "VERTICAL"
792
- },
793
- "cardContent": [
794
- {
795
- "media": {
796
- "height": "MEDIUM",
797
- "mediaUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg"
798
- },
799
- "mediaType": "IMAGE",
800
- "description": "Hi I am Text message",
801
- "title": "Hi I am Title"
802
- }
803
- ]
804
- }
805
- }
806
- }
769
+ },
770
+ },
771
+ isActive: true,
772
+ orgId: 50146,
773
+ createdBy: '15000449',
774
+ updatedBy: '15000449',
775
+ createdAt: '2022-03-24T08:05:31.979Z',
776
+ updatedAt: '2022-03-24T08:05:31.979Z',
777
+ totalCount: 10,
778
+ },
779
+ {
780
+ _id: '623c000670387f4df6f8fd59',
781
+ name: 'Test_112',
782
+ type: 'RCS',
783
+ versions: {
784
+ $init: true,
785
+ history: [],
786
+ base: {
787
+ content: {
788
+ RCS: {
789
+ smsFallBackContent: {
790
+ message: '',
807
791
  },
808
- "isActive": true,
809
- "orgId": 50146,
810
- "createdBy": "15000449",
811
- "updatedBy": "15000449",
812
- "createdAt": "2022-03-24T05:22:15.073Z",
813
- "updatedAt": "2022-03-24T05:22:15.073Z",
814
- "totalCount": 10
792
+ contentType: 'RICHCARD',
793
+ cardType: 'STANDALONE',
794
+ cardSettings: {
795
+ mediaAlignment: 'RIGHT',
796
+ cardOrientation: 'VERTICAL',
797
+ },
798
+ cardContent: [
799
+ {
800
+ media: {
801
+ height: 'MEDIUM',
802
+ mediaUrl:
803
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg',
804
+ },
805
+ mediaType: 'IMAGE',
806
+ description: 'Hi I am Text message',
807
+ title: 'Hi I am Title',
808
+ },
809
+ ],
810
+ },
815
811
  },
816
- {
817
- "_id": "623bff3570387f33a4f8fd56",
818
- "name": "Test_111",
819
- "type": "RCS",
820
- "versions": {
821
- "$init": true,
822
- "history": [],
823
- "base": {
824
- "content": {
825
- "RCS": {
826
- "smsFallBackContent": {
827
- "message": "HI I am Fallback SMS{{optout}}"
828
- },
829
- "contentType": "RICHCARD",
830
- "cardType": "STANDALONE",
831
- "cardSettings": {
832
- "mediaAlignment": "RIGHT",
833
- "cardOrientation": "VERTICAL"
834
- },
835
- "cardContent": [
836
- {
837
- "media": {
838
- "height": "MEDIUM",
839
- "mediaUrl": ""
840
- },
841
- "mediaType": "NONE",
842
- "description": "Hi I am Description{{optout}}",
843
- "title": "Hi I am Title"
844
- }
845
- ]
846
- }
847
- }
848
- }
812
+ },
813
+ },
814
+ isActive: true,
815
+ orgId: 50146,
816
+ createdBy: '15000449',
817
+ updatedBy: '15000449',
818
+ createdAt: '2022-03-24T05:22:15.073Z',
819
+ updatedAt: '2022-03-24T05:22:15.073Z',
820
+ totalCount: 10,
821
+ },
822
+ {
823
+ _id: '623bff3570387f33a4f8fd56',
824
+ name: 'Test_111',
825
+ type: 'RCS',
826
+ versions: {
827
+ $init: true,
828
+ history: [],
829
+ base: {
830
+ content: {
831
+ RCS: {
832
+ smsFallBackContent: {
833
+ message: 'HI I am Fallback SMS{{optout}}',
834
+ },
835
+ contentType: 'RICHCARD',
836
+ cardType: 'STANDALONE',
837
+ cardSettings: {
838
+ mediaAlignment: 'RIGHT',
839
+ cardOrientation: 'VERTICAL',
849
840
  },
850
- "isActive": true,
851
- "orgId": 50146,
852
- "createdBy": "15000449",
853
- "updatedBy": "15000449",
854
- "createdAt": "2022-03-24T05:18:45.280Z",
855
- "updatedAt": "2022-03-24T05:18:45.280Z",
856
- "totalCount": 10
841
+ cardContent: [
842
+ {
843
+ media: {
844
+ height: 'MEDIUM',
845
+ mediaUrl: '',
846
+ },
847
+ mediaType: 'NONE',
848
+ description: 'Hi I am Description{{optout}}',
849
+ title: 'Hi I am Title',
850
+ },
851
+ ],
852
+ },
857
853
  },
858
- {
859
- "_id": "623bfc6870387fb550f8fd55",
860
- "name": "Copy of test_vin_8 03-24-2022 10:36:45",
861
- "type": "RCS",
862
- "versions": {
863
- "$init": true,
864
- "history": [],
865
- "base": {
866
- "content": {
867
- "RCS": {
868
- "cardContent": [
869
- {
870
- "title": "This is RCS title",
871
- "description": "This is RCS description {{optout}}",
872
- "mediaType": "IMAGE",
873
- "media": {
874
- "mediaUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg",
875
- "height": "MEDIUM"
876
- }
877
- }
878
- ],
879
- "cardSettings": {
880
- "cardOrientation": "VERTICAL",
881
- "mediaAlignment": "RIGHT"
882
- },
883
- "cardType": "STANDALONE",
884
- "contentType": "RICHCARD",
885
- "smsFallBackContent": {
886
- "message": "This is fallback msg {{optout}}"
887
- }
888
- }
889
- }
890
- }
854
+ },
855
+ },
856
+ isActive: true,
857
+ orgId: 50146,
858
+ createdBy: '15000449',
859
+ updatedBy: '15000449',
860
+ createdAt: '2022-03-24T05:18:45.280Z',
861
+ updatedAt: '2022-03-24T05:18:45.280Z',
862
+ totalCount: 10,
863
+ },
864
+ {
865
+ _id: '623bfc6870387fb550f8fd55',
866
+ name: 'Copy of test_vin_8 03-24-2022 10:36:45',
867
+ type: 'RCS',
868
+ versions: {
869
+ $init: true,
870
+ history: [],
871
+ base: {
872
+ content: {
873
+ RCS: {
874
+ cardContent: [
875
+ {
876
+ title: 'This is RCS title',
877
+ description: 'This is RCS description {{optout}}',
878
+ mediaType: 'IMAGE',
879
+ media: {
880
+ mediaUrl:
881
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg',
882
+ height: 'MEDIUM',
883
+ },
884
+ },
885
+ ],
886
+ cardSettings: {
887
+ cardOrientation: 'VERTICAL',
888
+ mediaAlignment: 'RIGHT',
889
+ },
890
+ cardType: 'STANDALONE',
891
+ contentType: 'RICHCARD',
892
+ smsFallBackContent: {
893
+ message: 'This is fallback msg {{optout}}',
891
894
  },
892
- "isActive": true,
893
- "orgId": 50146,
894
- "createdBy": "15000449",
895
- "updatedBy": "15000449",
896
- "createdAt": "2022-03-24T05:06:48.885Z",
897
- "updatedAt": "2022-03-24T05:06:48.885Z",
898
- "totalCount": 10
895
+ },
899
896
  },
900
- {
901
- "_id": "623acf4df971231e66c85882",
902
- "name": "test_vin_8",
903
- "type": "RCS",
904
- "versions": {
905
- "$init": true,
906
- "history": [],
907
- "base": {
908
- "content": {
909
- "RCS": {
910
- "smsFallBackContent": {
911
- "message": "This is fallback msg {{optout}}"
912
- },
913
- "contentType": "RICHCARD",
914
- "cardType": "STANDALONE",
915
- "cardSettings": {
916
- "mediaAlignment": "RIGHT",
917
- "cardOrientation": "VERTICAL"
918
- },
919
- "cardContent": [
920
- {
921
- "media": {
922
- "height": "MEDIUM",
923
- "mediaUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg"
924
- },
925
- "mediaType": "IMAGE",
926
- "description": "This is RCS description {{optout}}",
927
- "title": "This is RCS title"
928
- }
929
- ]
930
- }
931
- }
932
- }
897
+ },
898
+ },
899
+ isActive: true,
900
+ orgId: 50146,
901
+ createdBy: '15000449',
902
+ updatedBy: '15000449',
903
+ createdAt: '2022-03-24T05:06:48.885Z',
904
+ updatedAt: '2022-03-24T05:06:48.885Z',
905
+ totalCount: 10,
906
+ },
907
+ {
908
+ _id: '623acf4df971231e66c85882',
909
+ name: 'test_vin_8',
910
+ type: 'RCS',
911
+ versions: {
912
+ $init: true,
913
+ history: [],
914
+ base: {
915
+ content: {
916
+ RCS: {
917
+ smsFallBackContent: {
918
+ message: 'This is fallback msg {{optout}}',
919
+ },
920
+ contentType: 'RICHCARD',
921
+ cardType: 'STANDALONE',
922
+ cardSettings: {
923
+ mediaAlignment: 'RIGHT',
924
+ cardOrientation: 'VERTICAL',
933
925
  },
934
- "isActive": true,
935
- "orgId": 50146,
936
- "createdBy": "15000449",
937
- "updatedBy": "15000449",
938
- "createdAt": "2022-03-23T07:42:05.226Z",
939
- "updatedAt": "2022-03-23T07:42:05.226Z",
940
- "totalCount": 10
926
+ cardContent: [
927
+ {
928
+ media: {
929
+ height: 'MEDIUM',
930
+ mediaUrl:
931
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg',
932
+ },
933
+ mediaType: 'IMAGE',
934
+ description: 'This is RCS description {{optout}}',
935
+ title: 'This is RCS title',
936
+ },
937
+ ],
938
+ },
941
939
  },
942
- {
943
- "_id": "62388944a7e1a1e8fddfe97f",
944
- "name": "test_template_112",
945
- "type": "RCS",
946
- "versions": {
947
- "$init": true,
948
- "history": [],
949
- "base": {
950
- "content": {
951
- "RCS": {
952
- "smsFallBackContent": {
953
- "message": "fallback message {{voucher(373913)}}",
954
- "templateConfigs": {
955
- "templateVariableMapping": {
956
- "{#var#}_6": {
957
- "count": 3,
958
- "data": "test22"
959
- },
960
- "{#var#}_1": {
961
- "count": 4,
962
- "data": "test11"
963
- }
964
- },
965
- "registeredSenderIds": [
966
- "CPLRYT",
967
- "CPLRY"
968
- ],
969
- "template": "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
970
- "templateId": "template_whatever_id"
971
- }
972
- },
973
- "cardSettings": {
974
- "mediaAlignment": "RIGHT",
975
- "cardOrientation": "VERTICAL"
976
- },
977
- "cardType": "STANDALONE",
978
- "contentType": "RICHCARD",
979
- "cardContent": [
980
- {
981
- "media": {
982
- "mediaUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/e4a14f49-9e1d-4d96-b7d2-9768f0e.jpeg",
983
- "height": "MEDIUM"
984
- },
985
- "mediaType": "NONE",
986
- "description": "Automatically sign in to sites and apps using stored credentials. If turned off, you'll be asked for confirmation every time before signing in to a site or app. Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
987
- "title": "title"
988
- }
989
- ],
990
- "mediaType": "text"
991
- }
992
- }
993
- }
940
+ },
941
+ },
942
+ isActive: true,
943
+ orgId: 50146,
944
+ createdBy: '15000449',
945
+ updatedBy: '15000449',
946
+ createdAt: '2022-03-23T07:42:05.226Z',
947
+ updatedAt: '2022-03-23T07:42:05.226Z',
948
+ totalCount: 10,
949
+ },
950
+ {
951
+ _id: '62388944a7e1a1e8fddfe97f',
952
+ name: 'test_template_112',
953
+ type: 'RCS',
954
+ versions: {
955
+ $init: true,
956
+ history: [],
957
+ base: {
958
+ content: {
959
+ RCS: {
960
+ smsFallBackContent: {
961
+ message: 'fallback message {{voucher(373913)}}',
962
+ templateConfigs: {
963
+ templateVariableMapping: {
964
+ '{#var#}_6': {
965
+ count: 3,
966
+ data: 'test22',
967
+ },
968
+ '{#var#}_1': {
969
+ count: 4,
970
+ data: 'test11',
971
+ },
972
+ },
973
+ registeredSenderIds: ['CPLRYT', 'CPLRY'],
974
+ template:
975
+ 'Hi {#var#} enjoy 50% off at Celio. Capillary Tech.',
976
+ templateId: 'template_whatever_id',
977
+ },
978
+ },
979
+ cardSettings: {
980
+ mediaAlignment: 'RIGHT',
981
+ cardOrientation: 'VERTICAL',
994
982
  },
995
- "isActive": true,
996
- "orgId": 50146,
997
- "createdBy": "15000449",
998
- "updatedBy": "15000449",
999
- "createdAt": "2022-03-21T14:18:44.322Z",
1000
- "updatedAt": "2022-03-21T14:18:44.322Z",
1001
- "totalCount": 10
983
+ cardType: 'STANDALONE',
984
+ contentType: 'RICHCARD',
985
+ cardContent: [
986
+ {
987
+ media: {
988
+ mediaUrl:
989
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/e4a14f49-9e1d-4d96-b7d2-9768f0e.jpeg',
990
+ height: 'MEDIUM',
991
+ },
992
+ mediaType: 'NONE',
993
+ description:
994
+ "Automatically sign in to sites and apps using stored credentials. If turned off, you'll be asked for confirmation every time before signing in to a site or app. Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
995
+ title: 'title',
996
+ },
997
+ ],
998
+ mediaType: 'text',
999
+ },
1002
1000
  },
1003
- {
1004
- "_id": "623888aca7e1a16926dfe97d",
1005
- "name": "test_template_111",
1006
- "type": "RCS",
1007
- "versions": {
1008
- "$init": true,
1009
- "history": [],
1010
- "base": {
1011
- "content": {
1012
- "RCS": {
1013
- "smsFallBackContent": {
1014
- "message": "fallback message {{voucher(373913)}}",
1015
- "templateConfigs": {
1016
- "templateVariableMapping": {
1017
- "{#var#}_6": {
1018
- "count": 3,
1019
- "data": "test22"
1020
- },
1021
- "{#var#}_1": {
1022
- "count": 4,
1023
- "data": "test11"
1024
- }
1025
- },
1026
- "registeredSenderIds": [
1027
- "CPLRYT",
1028
- "CPLRY"
1029
- ],
1030
- "template": "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
1031
- "templateId": "template_whatever_id"
1032
- }
1033
- },
1034
- "cardSettings": {
1035
- "mediaAlignment": "RIGHT",
1036
- "cardOrientation": "VERTICAL"
1037
- },
1038
- "cardType": "STANDALONE",
1039
- "contentType": "RICHCARD",
1040
- "cardContent": [
1041
- {
1042
- "media": {
1043
- "mediaUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c2c793b1-4740-47b6-819a-4310354d.jpg",
1044
- "height": "MEDIUM"
1045
- },
1046
- "mediaType": "NONE",
1047
- "description": "Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
1048
- "title": "title"
1049
- }
1050
- ],
1051
- "mediaType": "text"
1052
- }
1053
- }
1054
- }
1001
+ },
1002
+ },
1003
+ isActive: true,
1004
+ orgId: 50146,
1005
+ createdBy: '15000449',
1006
+ updatedBy: '15000449',
1007
+ createdAt: '2022-03-21T14:18:44.322Z',
1008
+ updatedAt: '2022-03-21T14:18:44.322Z',
1009
+ totalCount: 10,
1010
+ },
1011
+ {
1012
+ _id: '623888aca7e1a16926dfe97d',
1013
+ name: 'test_template_111',
1014
+ type: 'RCS',
1015
+ versions: {
1016
+ $init: true,
1017
+ history: [],
1018
+ base: {
1019
+ content: {
1020
+ RCS: {
1021
+ smsFallBackContent: {
1022
+ message: 'fallback message {{voucher(373913)}}',
1023
+ templateConfigs: {
1024
+ templateVariableMapping: {
1025
+ '{#var#}_6': {
1026
+ count: 3,
1027
+ data: 'test22',
1028
+ },
1029
+ '{#var#}_1': {
1030
+ count: 4,
1031
+ data: 'test11',
1032
+ },
1033
+ },
1034
+ registeredSenderIds: ['CPLRYT', 'CPLRY'],
1035
+ template:
1036
+ 'Hi {#var#} enjoy 50% off at Celio. Capillary Tech.',
1037
+ templateId: 'template_whatever_id',
1038
+ },
1055
1039
  },
1056
- "isActive": true,
1057
- "orgId": 50146,
1058
- "createdBy": "15000449",
1059
- "updatedBy": "15000449",
1060
- "createdAt": "2022-03-21T14:16:12.731Z",
1061
- "updatedAt": "2022-03-21T14:16:12.731Z",
1062
- "totalCount": 10
1063
- }
1064
- ]
1065
- },
1066
- whatsappEditTemplateData: {
1067
- "mode": "edit",
1068
- "_id": "620e213d39bd394c58aeaaca",
1069
- "modeType": "",
1070
- "whatsappTemplateName": "amit123456",
1071
- "whatsappTemplateCategory": "ALERT_UPDATE",
1072
- "type": "WHATSAPP",
1073
- "channel": "WHATSAPP",
1074
- "validity": true,
1075
- },
1076
- rcsEditTemplateData: {
1077
- "mode": "edit",
1078
- "_id": "620e213d39bd394c58aeaaca",
1079
- "modeType": "",
1080
- "type": "RCS",
1081
- "channel": "RCS",
1082
- "validity": true,
1083
- },
1084
- getWhatsappContentOutput: "1234567890\nClick {{unsubscribe}} to unsubscribe",
1085
- getWhatsappStatusOutput: {"key": "approved", "label": <FormattedMessage defaultMessage="Approved" id="creatives.containersV2.Whatsapp.approved" values={{}} />, "value": "approved"},
1086
- getWhatsappCategoryOutput: {
1087
- "key": "alertUpdate",
1088
- "label": <FormattedMessage
1089
- defaultMessage="Alert update"
1090
- id="creatives.containersV2.Whatsapp.alertUpdate"
1091
- values={{}}
1092
- />,
1093
- "tagColor": "#f2e7fe",
1094
- "tagTextColor": "#a451ff",
1095
- "tooltipLabel": <FormattedMessage
1096
- defaultMessage="Send important updates or news to customers."
1097
- id="creatives.containersV2.Whatsapp.alertUpdateTooltip"
1098
- values={{}}
1099
- />,
1100
- "value": "ALERT_UPDATE",
1101
- },
1102
- whatsappPreviewTemplateData: {
1103
- "mode": "preview",
1104
- "_id": "620e213d39bd394c58aeaaca",
1105
- "name": "amit123456",
1106
- "type": "WHATSAPP",
1107
- "versions": {
1108
- "$init": true,
1109
- "history": [],
1110
- "base": {
1111
- "content": {
1112
- "whatsapp": {
1113
- "status": "approved",
1114
- "templateId": "HT5203cccf5b1e9e41f222fab6cd6c2754",
1115
- "accountName": "whatsappTest",
1116
- "accessToken": "4676323eb5d1f975b0987070c03a8efc",
1117
- "accountId": "AC41030cebba9e2f1ce37c78235da0ee18",
1118
- "templateEditor": "",
1119
- "mediaType": "TEXT",
1120
- "languages": [
1121
- {
1122
- "content": "1234567890\nClick {{1}} to unsubscribe",
1123
- "language": "en"
1124
- }
1125
- ],
1126
- "category": "ALERT_UPDATE",
1127
- "rejection_reason": null
1128
- }
1129
- }
1130
- }
1040
+ cardSettings: {
1041
+ mediaAlignment: 'RIGHT',
1042
+ cardOrientation: 'VERTICAL',
1043
+ },
1044
+ cardType: 'STANDALONE',
1045
+ contentType: 'RICHCARD',
1046
+ cardContent: [
1047
+ {
1048
+ media: {
1049
+ mediaUrl:
1050
+ 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c2c793b1-4740-47b6-819a-4310354d.jpg',
1051
+ height: 'MEDIUM',
1052
+ },
1053
+ mediaType: 'NONE',
1054
+ description:
1055
+ 'Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.',
1056
+ title: 'title',
1057
+ },
1058
+ ],
1059
+ mediaType: 'text',
1060
+ },
1061
+ },
1062
+ },
1131
1063
  },
1132
- "isActive": true,
1133
- "orgId": 50371,
1134
- "createdBy": "15000449",
1135
- "updatedBy": "15000449",
1136
- "createdAt": "2022-02-17T10:19:42.211Z",
1137
- "updatedAt": "2022-02-17T10:19:42.211Z",
1138
- "totalCount": 12,
1139
- "updatedByName": "Ashish Karan fd"
1064
+ isActive: true,
1065
+ orgId: 50146,
1066
+ createdBy: '15000449',
1067
+ updatedBy: '15000449',
1068
+ createdAt: '2022-03-21T14:16:12.731Z',
1069
+ updatedAt: '2022-03-21T14:16:12.731Z',
1070
+ totalCount: 10,
1071
+ },
1072
+ ],
1073
+ },
1074
+ whatsappEditTemplateData: {
1075
+ mode: 'edit',
1076
+ _id: '620e213d39bd394c58aeaaca',
1077
+ modeType: '',
1078
+ whatsappTemplateName: 'amit123456',
1079
+ whatsappTemplateCategory: 'ALERT_UPDATE',
1080
+ whatsappTemplateLanguageCode: 'en',
1081
+ type: 'WHATSAPP',
1082
+ channel: 'WHATSAPP',
1083
+ validity: true,
1084
+ },
1085
+ rcsEditTemplateData: {
1086
+ mode: 'edit',
1087
+ _id: '620e213d39bd394c58aeaaca',
1088
+ modeType: '',
1089
+ type: 'RCS',
1090
+ channel: 'RCS',
1091
+ validity: true,
1092
+ },
1093
+ getWhatsappContentOutput: '1234567890\nClick {{unsubscribe}} to unsubscribe',
1094
+ getWhatsappStatusOutput: {
1095
+ key: 'approved',
1096
+ label: (
1097
+ <FormattedMessage
1098
+ defaultMessage="Approved"
1099
+ id="creatives.containersV2.Whatsapp.approved"
1100
+ values={{}}
1101
+ />
1102
+ ),
1103
+ value: 'approved',
1104
+ },
1105
+ getWhatsappCategoryOutput: {
1106
+ key: 'alertUpdate',
1107
+ label: (
1108
+ <FormattedMessage
1109
+ defaultMessage="Alert update"
1110
+ id="creatives.containersV2.Whatsapp.alertUpdate"
1111
+ values={{}}
1112
+ />
1113
+ ),
1114
+ tagColor: '#f2e7fe',
1115
+ tagTextColor: '#a451ff',
1116
+ tooltipLabel: (
1117
+ <FormattedMessage
1118
+ defaultMessage="Send important updates or news to customers."
1119
+ id="creatives.containersV2.Whatsapp.alertUpdateTooltip"
1120
+ values={{}}
1121
+ />
1122
+ ),
1123
+ value: 'ALERT_UPDATE',
1124
+ },
1125
+ whatsappPreviewTemplateData: {
1126
+ mode: 'preview',
1127
+ _id: '620e213d39bd394c58aeaaca',
1128
+ name: 'amit123456',
1129
+ type: 'WHATSAPP',
1130
+ versions: {
1131
+ $init: true,
1132
+ history: [],
1133
+ base: {
1134
+ content: {
1135
+ whatsapp: {
1136
+ status: 'approved',
1137
+ templateId: 'HT5203cccf5b1e9e41f222fab6cd6c2754',
1138
+ accountName: 'whatsappTest',
1139
+ accessToken: '4676323eb5d1f975b0987070c03a8efc',
1140
+ accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
1141
+ templateEditor: '',
1142
+ mediaType: 'TEXT',
1143
+ languages: [
1144
+ {
1145
+ content: '1234567890\nClick {{1}} to unsubscribe',
1146
+ language: 'en',
1147
+ },
1148
+ ],
1149
+ category: 'ALERT_UPDATE',
1150
+ rejection_reason: null,
1151
+ },
1152
+ },
1153
+ },
1140
1154
  },
1141
- rcsPreviewTemplateData: {
1142
- "mode": "preview",
1143
- "_id": "620e213d39bd394c58aeaaca",
1144
- "name": "amit123456",
1145
- "type": "RCS",
1146
- "versions": {
1147
- "$init": true,
1148
- "history": [],
1149
- "base": {
1150
- "content": {
1151
-
1152
- "RCS": {
1153
- "cardContent": [
1154
- {
1155
- "title": "title",
1156
- "description": "Desc",
1157
- "mediaType": "NONE",
1158
- "media": {
1159
- "mediaUrl": "",
1160
- "height": "MEDIUM"
1161
- }
1162
- }
1163
- ],
1164
- "cardSettings": {
1165
- "cardOrientation": "VERTICAL",
1166
- "mediaAlignment": "RIGHT"
1167
- },
1168
- "cardType": "STANDALONE",
1169
- "contentType": "RICHCARD",
1170
- "smsFallBackContent": {
1171
- "message": "123"
1172
- }
1173
- }
1174
- }
1175
- }
1155
+ isActive: true,
1156
+ orgId: 50371,
1157
+ createdBy: '15000449',
1158
+ updatedBy: '15000449',
1159
+ createdAt: '2022-02-17T10:19:42.211Z',
1160
+ updatedAt: '2022-02-17T10:19:42.211Z',
1161
+ totalCount: 12,
1162
+ updatedByName: 'Ashish Karan fd',
1163
+ },
1164
+ rcsPreviewTemplateData: {
1165
+ mode: 'preview',
1166
+ _id: '620e213d39bd394c58aeaaca',
1167
+ name: 'amit123456',
1168
+ type: 'RCS',
1169
+ versions: {
1170
+ $init: true,
1171
+ history: [],
1172
+ base: {
1173
+ content: {
1174
+ RCS: {
1175
+ cardContent: [
1176
+ {
1177
+ title: 'title',
1178
+ description: 'Desc',
1179
+ mediaType: 'NONE',
1180
+ media: {
1181
+ mediaUrl: '',
1182
+ height: 'MEDIUM',
1183
+ },
1184
+ },
1185
+ ],
1186
+ cardSettings: {
1187
+ cardOrientation: 'VERTICAL',
1188
+ mediaAlignment: 'RIGHT',
1189
+ },
1190
+ cardType: 'STANDALONE',
1191
+ contentType: 'RICHCARD',
1192
+ smsFallBackContent: {
1193
+ message: '123',
1194
+ },
1195
+ },
1176
1196
  },
1177
- "isActive": true,
1178
- "orgId": 50371,
1179
- "createdBy": "15000449",
1180
- "updatedBy": "15000449",
1181
- "createdAt": "2022-02-17T10:19:42.211Z",
1182
- "updatedAt": "2022-02-17T10:19:42.211Z",
1183
- "totalCount": 12,
1184
- "updatedByName": "Ashish Karan fd"
1197
+ },
1185
1198
  },
1186
- getCreativesParamsOutput: {"_id": undefined, "account": undefined, "mode": "edit", "modeType": undefined, "type": "WHATSAPP", "whatsappTemplateCategory": "", "whatsappTemplateName": ""}
1187
- }
1199
+ isActive: true,
1200
+ orgId: 50371,
1201
+ createdBy: '15000449',
1202
+ updatedBy: '15000449',
1203
+ createdAt: '2022-02-17T10:19:42.211Z',
1204
+ updatedAt: '2022-02-17T10:19:42.211Z',
1205
+ totalCount: 12,
1206
+ updatedByName: 'Ashish Karan fd',
1207
+ },
1208
+ getCreativesParamsOutput: {
1209
+ _id: undefined,
1210
+ account: undefined,
1211
+ mode: 'edit',
1212
+ modeType: undefined,
1213
+ type: 'WHATSAPP',
1214
+ whatsappTemplateCategory: '',
1215
+ whatsappTemplateName: '',
1216
+ },
1217
+ };