@capillarytech/creatives-library 7.12.59 → 7.12.60

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.
@@ -4,320 +4,322 @@ import { FormattedMessage } from 'react-intl';
4
4
  export default {
5
5
  whatsappTemplates: {
6
6
  selectedWhatsappAccount: {
7
- connectionProperties: {
8
- account_sid: 'AC41030cebba9e2f1ce37c78235da0ee18',
9
- auth_token: '4676323eb5d1f975b0987070c03a8efc',
10
- messaging_service_sid: 'MG1dc01b34988f9f1c6c246830a18c1f5c',
7
+ sourceTypeName: "WHATSAPP",
8
+ name: "WhatsappAccount",
9
+ isActive: true,
10
+ sourceTypeId: 19,
11
+ configs: {
12
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
13
+ promotionalMessagingSSID: "",
14
+ transactionalMessagingSSID: "",
11
15
  },
12
- hostName: 'twiliowhatsapptrans',
16
+ hostName: "karixwhatsappbulk",
17
+ toMirror: true,
18
+ id: 12721,
19
+ uuid: "93c52a35824a4bea8650d7d0232b2e3c",
20
+ sourceAccountIdentifier: "107499611940863",
21
+ commChannels: ["whatsapp"],
13
22
  },
14
23
  getAllTemplatesInProgress: false,
24
+ weCrmAccountFetchingError: false,
15
25
  weCRMtemplates: [],
16
- userList: {
17
- orgUsers: [
18
- {
19
- userId: 50015493,
20
- firstName: 'SUPER USER',
21
- lastName: '',
22
- loginName: '',
23
- email: '',
24
- mobile: '',
25
- isMobileValidated: 0,
26
- isEmailValidated: 0,
27
- },
28
- ],
29
- capUsers: [
30
- {
31
- userId: 4,
32
- firstName: 'Krishna',
33
- lastName: 'Mehra',
34
- loginName: 'kmehra@capillary.co.in',
35
- email: 'kmehra@capillary.co.in',
36
- mobile: '918227337383',
37
- isMobileValidated: 1,
38
- isEmailValidated: 1,
39
- },
40
- ],
41
- },
42
26
  senderDetails: {
43
- status: 'SUCCESS',
44
- data: [
45
- {
46
- id: 208767,
47
- orgId: 50371,
48
- label: '',
49
- domainProperties: {
50
- id: 3868,
51
- domainName: 'whatsapp_twilio',
52
- description: 'whatsapp_twilio',
53
- contactInfo: [
54
- {
55
- id: 100566,
56
- domainPropId: 3868,
57
- messageClass: 'WHATSAPP',
58
- type: 'gsm_sender_id',
59
- label: 'whatsapp_twilio',
60
- value: '918431027963',
61
- valid: true,
62
- default: true,
63
- },
64
- {
65
- id: 100567,
66
- domainPropId: 3868,
67
- messageClass: 'WHATSAPP',
68
- type: 'cdma_sender_id',
69
- label: 'whatsapp_twilio',
70
- value: '918431027963',
71
- valid: true,
72
- default: true,
73
- },
74
- ],
75
- xengageEnabled: false,
76
- connectionProperties: {
77
- account_sid: 'AC41030cebba9e2f1ce37c78235da0ee18',
78
- auth_token: '4676323eb5d1f975b0987070c03a8efc',
79
- messaging_service_sid: 'MG1dc01b34988f9f1c6c246830a18c1f5c',
80
- },
81
- hostName: 'twiliowhatsapptrans',
82
- },
83
- priority: 1,
84
- valid: true,
85
- },
86
- ],
27
+ status: "SUCCESS",
28
+ hostName: "karixwhatsappbulk",
87
29
  errors: [],
88
30
  },
89
31
  templateError: {},
32
+ fetchingWeCrmAccounts: false,
90
33
  fetchingUserList: false,
91
34
  isSearch: false,
35
+ weCrmAccounts: [
36
+ {
37
+ sourceTypeName: "WHATSAPP",
38
+ name: "WhatsappAccount",
39
+ isActive: true,
40
+ sourceTypeId: 19,
41
+ configs: {
42
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
43
+ promotionalMessagingSSID: "",
44
+ transactionalMessagingSSID: "",
45
+ },
46
+ toMirror: true,
47
+ id: 12721,
48
+ uuid: "93c52a35824a4bea8650d7d0232b2e3c",
49
+ sourceAccountIdentifier: "107499611940863",
50
+ commChannels: ["whatsapp"],
51
+ },
52
+ ],
92
53
  userListFetchError: false,
93
54
  templates: [
94
55
  {
95
- _id: '62a029da22c5bf8cce6a5b5d',
96
- name: 'test_946137',
97
- type: 'WHATSAPP',
56
+ _id: "62d3f971b497b671d3bbf8f7",
57
+ name: "creatives_whatsapp6",
58
+ type: "WHATSAPP",
98
59
  versions: {
99
60
  $init: true,
100
61
  history: [],
101
62
  base: {
102
63
  content: {
103
64
  whatsapp: {
104
- status: 'approved',
105
- templateId: 'HT2ded6c498665b071fb61416e3b66a539',
106
- accountName: 'whatsappTest',
107
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
108
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
65
+ status: "pending",
66
+ templateId: "720951875646523",
67
+ hostName: "karixwhatsappbulk",
68
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
69
+ accountId: "107499611940863",
109
70
  templateEditor: false,
110
- mediaType: 'TEXT',
71
+ karixFileHandle:
72
+ "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
73
+ imageUrl:
74
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
75
+ mediaType: "IMAGE",
111
76
  buttons: [
112
77
  {
113
- url: 'https://www.google.com',
114
- text: 'View menu',
115
- type: 'STATIC_URL',
78
+ phone_number: "+919738752617",
79
+ text: "Call",
80
+ type: "PHONE_NUMBER",
116
81
  index: 0,
117
82
  },
118
83
  {
119
- phone_number: '+917892303868',
120
- text: 'Call for info',
121
- type: 'PHONE_NUMBER',
84
+ url: "https://docs.google.com/{{1}}",
85
+ text: "Visit",
86
+ type: "DYNAMIC_URL",
122
87
  index: 1,
123
88
  },
124
89
  ],
125
- buttonType: 'CTA',
90
+ buttonType: "CTA",
126
91
  languages: [
127
92
  {
128
93
  content:
129
- '{{1}} your reservation is confirmed\nClick {{2}} to unsubscribe',
130
- 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",
131
96
  },
132
97
  ],
133
- category: 'RESERVATION_UPDATE',
134
- rejection_reason: null,
98
+ category: "MARKETING",
135
99
  },
136
100
  },
137
101
  },
138
102
  },
139
103
  isActive: true,
140
- orgId: 50371,
141
- createdBy: '15000449',
142
- updatedBy: '15000449',
143
- createdAt: '2022-06-08T04:47:22.672Z',
144
- updatedAt: '2022-06-09T04:38:01.242Z',
145
- totalCount: 79,
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",
109
+ totalCount: 6,
146
110
  },
147
111
  {
148
- _id: '629c401a7542be75b4a56284',
149
- name: 'no_unsub_test',
150
- type: 'WHATSAPP',
112
+ _id: "62d3f8edb497b63156bbf8f5",
113
+ name: "creatives_whatsapp5",
114
+ type: "WHATSAPP",
151
115
  versions: {
152
116
  $init: true,
153
117
  history: [],
154
118
  base: {
155
119
  content: {
156
120
  whatsapp: {
157
- status: 'approved',
158
- templateId: 'HTbdd5d43cbb082bbb9646a3b5d2c1f208',
159
- accountName: 'whatsappTest',
160
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
161
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
121
+ status: "pending",
122
+ templateId: "4916570121786087",
123
+ hostName: "karixwhatsappbulk",
124
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
125
+ accountId: "107499611940863",
162
126
  templateEditor: false,
163
- mediaType: 'TEXT',
127
+ karixFileHandle:
128
+ "4::aW1hZ2UvanBlZw==:ARY0H4Z85fo_TTfmAYJpqpnSbBlE3VaIYyr9S_Exg7GV_EhOo-30AVAoe35d0ZH8Cx5ZaJ3U2RovzzqVHPUnMK_7wFY7RNngsTwWc4vnZ7bMoA:e:1658404539:259409122277300:100066839164237:ARaPlACD4a5lw9Wp4X4",
129
+ imageUrl:
130
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/6aca6ada-2378-4b81-974c-a8537bbc.jpg",
131
+ mediaType: "IMAGE",
132
+ buttons: [
133
+ {
134
+ url: "https://docs.google.com/{{1}}",
135
+ text: "ಹೆಚ್ಚಿನ ಮಾಹಿತಿ",
136
+ type: "DYNAMIC_URL",
137
+ index: 0,
138
+ },
139
+ ],
140
+ buttonType: "CTA",
164
141
  languages: [
165
142
  {
166
- content:
167
- 'Hi {{1}}, You have received {{2}} offer which is valid till {{3}}. Make use of it.',
168
- language: 'en',
143
+ content: "ಪಾವತಿ ಯಶಸ್ವಿಯಾಗಿದೆ 👍",
144
+ language: "kn",
169
145
  },
170
146
  ],
171
- category: 'ALERT_UPDATE',
172
- rejection_reason: null,
147
+ category: "MARKETING",
173
148
  },
174
149
  },
175
150
  },
176
151
  },
177
152
  isActive: true,
178
- orgId: 50371,
179
- createdBy: '15000449',
180
- updatedBy: '15000449',
181
- createdAt: '2022-06-05T05:33:14.742Z',
182
- updatedAt: '2022-06-06T02:03:14.615Z',
183
- totalCount: 79,
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",
158
+ totalCount: 6,
184
159
  },
185
160
  {
186
- _id: '629b1a1e7542be2a3da56273',
187
- name: 'test_741254',
188
- type: 'WHATSAPP',
161
+ _id: "62d3f896b497b69acbbbf8f3",
162
+ name: "creatives_whatsapp4",
163
+ type: "WHATSAPP",
189
164
  versions: {
190
165
  $init: true,
191
166
  history: [],
192
167
  base: {
193
168
  content: {
194
169
  whatsapp: {
195
- status: 'approved',
196
- templateId: 'HT740631406f0704eb4643ae5d1a8a98aa',
197
- accountName: 'whatsappTest',
198
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
199
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
170
+ status: "pending",
171
+ templateId: "732848961277130",
172
+ hostName: "karixwhatsappbulk",
173
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
174
+ accountId: "107499611940863",
200
175
  templateEditor: false,
201
- mediaType: 'TEXT',
176
+ karixFileHandle:
177
+ "4::aW1hZ2UvanBlZw==:ARYfsmvPHCeI0Q3ixfzpZ3gOIoYjrkx6STalsi58_twFIqB5rvPKsKPH7yL_eXMfbmXGq_X0qiLrL7FaSSFq_uzudytfoOj9Oh5ueb1uUV367A:e:1658404470:259409122277300:100066839164237:ARaaojq13hSRpe7h0Tw",
178
+ imageUrl:
179
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/ec28477c-a5b6-4198-872e-1b135c1b.jpg",
180
+ mediaType: "IMAGE",
202
181
  buttons: [
203
182
  {
204
- phone_number: '+919738752617',
205
- text: 'Call',
206
- type: 'PHONE_NUMBER',
183
+ phone_number: "+919738752617",
184
+ text: "Call",
185
+ type: "PHONE_NUMBER",
207
186
  index: 0,
208
187
  },
209
188
  ],
210
- buttonType: 'CTA',
189
+ buttonType: "CTA",
211
190
  languages: [
212
191
  {
213
- content: 'You have received {{1}} points',
214
- language: 'en',
192
+ content:
193
+ "Hi {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! \nClick {{2}} to unsubscribe",
194
+ language: "en",
215
195
  },
216
196
  ],
217
- category: 'ALERT_UPDATE',
218
- rejection_reason: null,
197
+ category: "MARKETING",
219
198
  },
220
199
  },
221
200
  },
222
201
  },
223
202
  isActive: true,
224
- orgId: 50371,
225
- createdBy: '15000449',
226
- updatedBy: '15000449',
227
- createdAt: '2022-06-04T08:38:54.564Z',
228
- updatedAt: '2022-06-05T05:32:15.670Z',
229
- totalCount: 79,
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",
208
+ totalCount: 6,
230
209
  },
231
210
  {
232
- _id: '6299780f7542be0254a5624a',
233
- name: 'test_5555',
234
- type: 'WHATSAPP',
211
+ _id: "62d3f858b497b63540bbf8f1",
212
+ name: "creatives_whatsapp3",
213
+ type: "WHATSAPP",
235
214
  versions: {
236
215
  $init: true,
237
216
  history: [],
238
217
  base: {
239
218
  content: {
240
219
  whatsapp: {
241
- status: 'approved',
242
- templateId: 'HT02430f63059215b79e770f3a30ae5823',
243
- accountName: 'whatsappTest',
244
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
245
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
220
+ status: "pending",
221
+ templateId: "993272384701160",
222
+ hostName: "karixwhatsappbulk",
223
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
224
+ accountId: "107499611940863",
246
225
  templateEditor: false,
247
- mediaType: 'TEXT',
226
+ karixFileHandle:
227
+ "4::aW1hZ2UvanBlZw==:ARa6WKa8LHjcJf2DBWokWtAvxkowam2zBaUJvEwxyWH2EamzQv7-GlX7bsf6IKkdWKLAATpfo_vkAgQ8mWLf2wvVNEVBmPWk3yyrWDnVI44_9A:e:1658404412:259409122277300:100066839164237:ARYyRilqCb6hSKHtjYQ",
228
+ imageUrl:
229
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/8ba834e6-a8f5-4710-a0e6-f402e911.jpg",
230
+ mediaType: "IMAGE",
248
231
  languages: [
249
232
  {
250
233
  content:
251
- 'ಪಾವತಿ ಯಶಸ್ವಿಯಾಗಿದೆ {{1}}\nClick {{2}} to unsubscribe',
252
- language: 'kn',
234
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live!",
235
+ language: "en",
253
236
  },
254
237
  ],
255
- category: 'PAYMENT_UPDATE',
256
- rejection_reason: null,
238
+ category: "MARKETING",
257
239
  },
258
240
  },
259
241
  },
260
242
  },
261
243
  isActive: true,
262
- orgId: 50371,
263
- createdBy: '15000449',
264
- updatedBy: '15000449',
265
- createdAt: '2022-06-03T02:55:12.283Z',
266
- updatedAt: '2022-06-03T04:59:27.534Z',
267
- totalCount: 79,
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",
249
+ totalCount: 6,
268
250
  },
269
251
  {
270
- _id: '62988c2f7d11ed69168252a6',
271
- name: 'test_206',
272
- type: 'WHATSAPP',
252
+ _id: "62d3f7fbb497b63864bbf8ef",
253
+ name: "creatives_whatsapp2",
254
+ type: "WHATSAPP",
273
255
  versions: {
274
256
  $init: true,
275
257
  history: [],
276
258
  base: {
277
259
  content: {
278
260
  whatsapp: {
279
- status: 'approved',
280
- templateId: 'HTcb9eeef7858d0a32deafe0f1b727cb2b',
281
- accountName: 'whatsappTest',
282
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
283
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
261
+ status: "pending",
262
+ templateId: "1838206886365227",
263
+ hostName: "karixwhatsappbulk",
264
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
265
+ accountId: "107499611940863",
284
266
  templateEditor: false,
285
- mediaType: 'TEXT',
286
- buttons: [
287
- {
288
- phone_number: '+919738752617',
289
- text: 'Call',
290
- type: 'PHONE_NUMBER',
291
- index: 0,
292
- },
267
+ mediaType: "TEXT",
268
+ languages: [
293
269
  {
294
- url: 'https://fast.com/',
295
- text: 'More info',
296
- type: 'STATIC_URL',
297
- index: 1,
270
+ content:
271
+ "Hi {{1}}, best offer {{2}} for you.\nClick {{3}} to unsubscribe",
272
+ language: "en",
298
273
  },
299
274
  ],
300
- buttonType: 'CTA',
275
+ category: "TRANSACTIONAL",
276
+ },
277
+ },
278
+ },
279
+ },
280
+ isActive: true,
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",
286
+ totalCount: 6,
287
+ },
288
+ {
289
+ _id: "62d3f6afb497b651eabbf8ee",
290
+ name: "creatives_whatsapp1",
291
+ type: "WHATSAPP",
292
+ versions: {
293
+ $init: true,
294
+ history: [],
295
+ base: {
296
+ content: {
297
+ whatsapp: {
298
+ status: "pending",
299
+ templateId: "412858944197174",
300
+ hostName: "karixwhatsappbulk",
301
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
302
+ accountId: "107499611940863",
303
+ templateEditor: false,
304
+ mediaType: "TEXT",
301
305
  languages: [
302
306
  {
303
- content:
304
- 'You have received {{1}} points\nClick {{2}} to unsubscribe',
305
- language: 'en',
307
+ content: "Hi {{1}}, best offer {{2}} for you.",
308
+ language: "en",
306
309
  },
307
310
  ],
308
- category: 'ALERT_UPDATE',
309
- rejection_reason: null,
311
+ category: "TRANSACTIONAL",
310
312
  },
311
313
  },
312
314
  },
313
315
  },
314
316
  isActive: true,
315
- orgId: 50371,
316
- createdBy: '15000449',
317
- updatedBy: '15000449',
318
- createdAt: '2022-06-02T10:08:48.259Z',
319
- updatedAt: '2022-06-03T02:48:34.166Z',
320
- totalCount: 79,
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",
322
+ totalCount: 6,
321
323
  },
322
324
  ],
323
325
  },