@nyaruka/temba-components 0.129.11 → 0.130.1

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 (120) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/demo/components/flow/example.html +5 -1
  3. package/demo/data/flows/sample-flow.json +144 -80
  4. package/dist/temba-components.js +290 -346
  5. package/dist/temba-components.js.map +1 -1
  6. package/out-tsc/src/flow/CanvasNode.js +3 -35
  7. package/out-tsc/src/flow/CanvasNode.js.map +1 -1
  8. package/out-tsc/src/flow/NodeEditor.js +44 -11
  9. package/out-tsc/src/flow/NodeEditor.js.map +1 -1
  10. package/out-tsc/src/flow/actions/add_contact_groups.js +14 -2
  11. package/out-tsc/src/flow/actions/add_contact_groups.js.map +1 -1
  12. package/out-tsc/src/flow/actions/add_contact_urn.js +1 -1
  13. package/out-tsc/src/flow/actions/add_contact_urn.js.map +1 -1
  14. package/out-tsc/src/flow/actions/add_input_labels.js +2 -1
  15. package/out-tsc/src/flow/actions/add_input_labels.js.map +1 -1
  16. package/out-tsc/src/flow/actions/remove_contact_groups.js +1 -1
  17. package/out-tsc/src/flow/actions/remove_contact_groups.js.map +1 -1
  18. package/out-tsc/src/flow/actions/send_email.js +9 -0
  19. package/out-tsc/src/flow/actions/send_email.js.map +1 -1
  20. package/out-tsc/src/flow/actions/send_msg.js +7 -8
  21. package/out-tsc/src/flow/actions/send_msg.js.map +1 -1
  22. package/out-tsc/src/flow/actions/set_contact_channel.js +25 -4
  23. package/out-tsc/src/flow/actions/set_contact_channel.js.map +1 -1
  24. package/out-tsc/src/flow/actions/set_contact_field.js +51 -1
  25. package/out-tsc/src/flow/actions/set_contact_field.js.map +1 -1
  26. package/out-tsc/src/flow/actions/set_contact_language.js +70 -2
  27. package/out-tsc/src/flow/actions/set_contact_language.js.map +1 -1
  28. package/out-tsc/src/flow/actions/set_contact_name.js +27 -2
  29. package/out-tsc/src/flow/actions/set_contact_name.js.map +1 -1
  30. package/out-tsc/src/flow/actions/set_contact_status.js +32 -2
  31. package/out-tsc/src/flow/actions/set_contact_status.js.map +1 -1
  32. package/out-tsc/src/flow/actions/set_run_result.js +13 -11
  33. package/out-tsc/src/flow/actions/set_run_result.js.map +1 -1
  34. package/out-tsc/src/flow/actions/split_by_expression_example.js +4 -4
  35. package/out-tsc/src/flow/actions/split_by_expression_example.js.map +1 -1
  36. package/out-tsc/src/flow/forms/index.js +2 -0
  37. package/out-tsc/src/flow/forms/index.js.map +1 -0
  38. package/out-tsc/src/flow/nodes/split_by_random.js +117 -0
  39. package/out-tsc/src/flow/nodes/split_by_random.js.map +1 -1
  40. package/out-tsc/src/flow/nodes/split_by_ticket.js +0 -1
  41. package/out-tsc/src/flow/nodes/split_by_ticket.js.map +1 -1
  42. package/out-tsc/src/flow/nodes/split_by_webhook.js +1 -3
  43. package/out-tsc/src/flow/nodes/split_by_webhook.js.map +1 -1
  44. package/out-tsc/src/flow/types.js.map +1 -1
  45. package/out-tsc/src/form/ArrayEditor.js +9 -25
  46. package/out-tsc/src/form/ArrayEditor.js.map +1 -1
  47. package/out-tsc/src/form/FieldRenderer.js +6 -64
  48. package/out-tsc/src/form/FieldRenderer.js.map +1 -1
  49. package/out-tsc/src/form/select/Select.js +35 -58
  50. package/out-tsc/src/form/select/Select.js.map +1 -1
  51. package/out-tsc/src/utils.js +3 -0
  52. package/out-tsc/src/utils.js.map +1 -1
  53. package/out-tsc/test/nodes/split_by_random.test.js +0 -6
  54. package/out-tsc/test/nodes/split_by_random.test.js.map +1 -1
  55. package/out-tsc/test/temba-field-renderer.test.js +6 -3
  56. package/out-tsc/test/temba-field-renderer.test.js.map +1 -1
  57. package/out-tsc/test/utils.test.js +18 -0
  58. package/out-tsc/test/utils.test.js.map +1 -1
  59. package/package.json +1 -1
  60. package/screenshots/truth/actions/add_contact_groups/editor/descriptive-group-names.png +0 -0
  61. package/screenshots/truth/actions/add_contact_groups/editor/long-group-names.png +0 -0
  62. package/screenshots/truth/actions/add_contact_groups/editor/many-groups.png +0 -0
  63. package/screenshots/truth/actions/add_contact_groups/editor/multiple-groups.png +0 -0
  64. package/screenshots/truth/actions/add_contact_groups/editor/single-group.png +0 -0
  65. package/screenshots/truth/actions/add_contact_groups/render/descriptive-group-names.png +0 -0
  66. package/screenshots/truth/actions/add_contact_groups/render/long-group-names.png +0 -0
  67. package/screenshots/truth/actions/add_contact_groups/render/many-groups.png +0 -0
  68. package/screenshots/truth/actions/add_contact_groups/render/multiple-groups.png +0 -0
  69. package/screenshots/truth/actions/add_contact_groups/render/single-group.png +0 -0
  70. package/screenshots/truth/actions/remove_contact_groups/editor/cleanup-groups.png +0 -0
  71. package/screenshots/truth/actions/remove_contact_groups/editor/long-descriptive-group-names.png +0 -0
  72. package/screenshots/truth/actions/remove_contact_groups/editor/many-groups.png +0 -0
  73. package/screenshots/truth/actions/remove_contact_groups/editor/multiple-groups.png +0 -0
  74. package/screenshots/truth/actions/remove_contact_groups/editor/remove-from-all-groups.png +0 -0
  75. package/screenshots/truth/actions/remove_contact_groups/editor/single-group.png +0 -0
  76. package/screenshots/truth/actions/remove_contact_groups/render/cleanup-groups.png +0 -0
  77. package/screenshots/truth/actions/remove_contact_groups/render/long-descriptive-group-names.png +0 -0
  78. package/screenshots/truth/actions/remove_contact_groups/render/many-groups.png +0 -0
  79. package/screenshots/truth/actions/remove_contact_groups/render/multiple-groups.png +0 -0
  80. package/screenshots/truth/actions/remove_contact_groups/render/remove-from-all-groups.png +0 -0
  81. package/screenshots/truth/actions/remove_contact_groups/render/single-group.png +0 -0
  82. package/screenshots/truth/editor/set_contact_language.png +0 -0
  83. package/screenshots/truth/editor/set_contact_name.png +0 -0
  84. package/screenshots/truth/editor/set_run_result.png +0 -0
  85. package/screenshots/truth/nodes/split_by_random/editor/ab-test-multiple-variants.png +0 -0
  86. package/screenshots/truth/nodes/split_by_random/editor/sampling-split.png +0 -0
  87. package/screenshots/truth/nodes/split_by_random/editor/three-way-split.png +0 -0
  88. package/screenshots/truth/nodes/split_by_random/editor/two-bucket-split.png +0 -0
  89. package/src/flow/CanvasNode.ts +2 -39
  90. package/src/flow/NodeEditor.ts +54 -13
  91. package/src/flow/actions/add_contact_groups.ts +17 -2
  92. package/src/flow/actions/add_contact_urn.ts +1 -1
  93. package/src/flow/actions/add_input_labels.ts +2 -1
  94. package/src/flow/actions/remove_contact_groups.ts +1 -1
  95. package/src/flow/actions/send_email.ts +11 -1
  96. package/src/flow/actions/send_msg.ts +20 -11
  97. package/src/flow/actions/set_contact_channel.ts +28 -5
  98. package/src/flow/actions/set_contact_field.ts +56 -2
  99. package/src/flow/actions/set_contact_language.ts +74 -3
  100. package/src/flow/actions/set_contact_name.ts +31 -3
  101. package/src/flow/actions/set_contact_status.ts +36 -3
  102. package/src/flow/actions/set_run_result.ts +13 -15
  103. package/src/flow/actions/split_by_expression_example.ts +4 -4
  104. package/src/flow/forms/index.ts +1 -0
  105. package/src/flow/nodes/split_by_random.ts +148 -0
  106. package/src/flow/nodes/split_by_ticket.ts +0 -1
  107. package/src/flow/nodes/split_by_webhook.ts +1 -3
  108. package/src/flow/types.ts +2 -1
  109. package/src/form/ArrayEditor.ts +6 -20
  110. package/src/form/FieldRenderer.ts +6 -65
  111. package/src/form/select/Select.ts +38 -66
  112. package/src/store/flow-definition.d.ts +6 -1
  113. package/src/utils.ts +4 -0
  114. package/static/api/fields.json +93 -1208
  115. package/static/api/workspace.json +23 -0
  116. package/test/nodes/split_by_random.test.ts +0 -7
  117. package/test/temba-field-renderer.test.ts +26 -13
  118. package/test/utils.test.ts +20 -0
  119. package/web-dev-server.config.mjs +2 -0
  120. package/web-test-runner.config.mjs +37 -0
@@ -3,1237 +3,122 @@
3
3
  "previous": null,
4
4
  "results": [
5
5
  {
6
- "key": "missing_field",
7
- "label": "Missing Field",
8
- "value_type": "text"
9
- },
10
- {
11
- "key": "missing",
12
- "label": "Missing",
13
- "value_type": "text"
14
- },
15
- {
16
- "key": "retries",
17
- "label": "Retries",
18
- "value_type": "numeric"
19
- },
20
- {
21
- "key": "zzz_im_last",
22
- "label": "zzz im last",
23
- "value_type": "text"
24
- },
25
- {
26
- "key": "create_this_one",
27
- "label": "create this one",
28
- "value_type": "text"
29
- },
30
- {
31
- "key": "some_new_field",
32
- "label": "Some new field",
33
- "value_type": "text"
34
- },
35
- {
36
- "key": "bleep",
37
- "label": "bleep",
38
- "value_type": "text"
39
- },
40
- {
41
- "key": "blarp",
42
- "label": "blarp",
43
- "value_type": "text"
44
- },
45
- {
46
- "key": "a_crazy_thing",
47
- "label": "a crazy thing",
48
- "value_type": "text"
49
- },
50
- {
51
- "key": "this_beep",
52
- "label": "this beep",
53
- "value_type": "text"
54
- },
55
- {
56
- "key": "beep",
57
- "label": "Beep",
58
- "value_type": "text"
59
- },
60
- {
61
- "key": "meep",
62
- "label": "Meep",
63
- "value_type": "text"
64
- },
65
- {
66
- "key": "this_new_test",
67
- "label": "this new test",
68
- "value_type": "text"
69
- },
70
- {
71
- "key": "this_is_a_test_field",
72
- "label": "This is a test field",
73
- "value_type": "text"
74
- },
75
- {
76
- "key": "this_new_field",
77
- "label": "This New Field",
78
- "value_type": "text"
79
- },
80
- {
81
- "key": "a_newly_named_field",
82
- "label": "A newly named field",
83
- "value_type": "text"
84
- },
85
- {
86
- "key": "contact_field_199",
87
- "label": "Contact Field 199",
88
- "value_type": "text"
89
- },
90
- {
91
- "key": "contact_field_198",
92
- "label": "Contact Field 198",
93
- "value_type": "text"
94
- },
95
- {
96
- "key": "contact_field_197",
97
- "label": "Contact Field 197",
98
- "value_type": "text"
99
- },
100
- {
101
- "key": "contact_field_196",
102
- "label": "Contact Field 196",
103
- "value_type": "text"
104
- },
105
- {
106
- "key": "contact_field_195",
107
- "label": "Contact Field 195",
108
- "value_type": "text"
109
- },
110
- {
111
- "key": "contact_field_194",
112
- "label": "Contact Field 194",
113
- "value_type": "text"
114
- },
115
- {
116
- "key": "contact_field_193",
117
- "label": "Contact Field 193",
118
- "value_type": "text"
119
- },
120
- {
121
- "key": "contact_field_192",
122
- "label": "Contact Field 192",
123
- "value_type": "text"
124
- },
125
- {
126
- "key": "contact_field_191",
127
- "label": "Contact Field 191",
128
- "value_type": "text"
129
- },
130
- {
131
- "key": "contact_field_190",
132
- "label": "Contact Field 190",
133
- "value_type": "text"
134
- },
135
- {
136
- "key": "contact_field_189",
137
- "label": "Contact Field 189",
138
- "value_type": "text"
139
- },
140
- {
141
- "key": "contact_field_188",
142
- "label": "Contact Field 188",
143
- "value_type": "text"
144
- },
145
- {
146
- "key": "contact_field_187",
147
- "label": "Contact Field 187",
148
- "value_type": "text"
149
- },
150
- {
151
- "key": "contact_field_186",
152
- "label": "Contact Field 186",
153
- "value_type": "text"
154
- },
155
- {
156
- "key": "contact_field_185",
157
- "label": "Contact Field 185",
158
- "value_type": "text"
159
- },
160
- {
161
- "key": "contact_field_184",
162
- "label": "Contact Field 184",
163
- "value_type": "text"
164
- },
165
- {
166
- "key": "contact_field_183",
167
- "label": "Contact Field 183",
168
- "value_type": "text"
169
- },
170
- {
171
- "key": "contact_field_182",
172
- "label": "Contact Field 182",
173
- "value_type": "text"
174
- },
175
- {
176
- "key": "contact_field_181",
177
- "label": "Contact Field 181",
178
- "value_type": "text"
179
- },
180
- {
181
- "key": "contact_field_180",
182
- "label": "Contact Field 180",
183
- "value_type": "text"
184
- },
185
- {
186
- "key": "contact_field_179",
187
- "label": "Contact Field 179",
188
- "value_type": "text"
189
- },
190
- {
191
- "key": "contact_field_178",
192
- "label": "Contact Field 178",
193
- "value_type": "text"
194
- },
195
- {
196
- "key": "contact_field_177",
197
- "label": "Contact Field 177",
198
- "value_type": "text"
199
- },
200
- {
201
- "key": "contact_field_176",
202
- "label": "Contact Field 176",
203
- "value_type": "text"
204
- },
205
- {
206
- "key": "contact_field_175",
207
- "label": "Contact Field 175",
208
- "value_type": "text"
209
- },
210
- {
211
- "key": "contact_field_174",
212
- "label": "Contact Field 174",
213
- "value_type": "text"
214
- },
215
- {
216
- "key": "contact_field_173",
217
- "label": "Contact Field 173",
218
- "value_type": "text"
219
- },
220
- {
221
- "key": "contact_field_172",
222
- "label": "Contact Field 172",
223
- "value_type": "text"
224
- },
225
- {
226
- "key": "contact_field_171",
227
- "label": "Contact Field 171",
228
- "value_type": "text"
229
- },
230
- {
231
- "key": "contact_field_170",
232
- "label": "Contact Field 170",
233
- "value_type": "text"
234
- },
235
- {
236
- "key": "contact_field_169",
237
- "label": "Contact Field 169",
238
- "value_type": "text"
239
- },
240
- {
241
- "key": "contact_field_168",
242
- "label": "Contact Field 168",
243
- "value_type": "text"
244
- },
245
- {
246
- "key": "contact_field_167",
247
- "label": "Contact Field 167",
248
- "value_type": "text"
249
- },
250
- {
251
- "key": "contact_field_166",
252
- "label": "Contact Field 166",
253
- "value_type": "text"
254
- },
255
- {
256
- "key": "contact_field_165",
257
- "label": "Contact Field 165",
258
- "value_type": "text"
259
- },
260
- {
261
- "key": "contact_field_164",
262
- "label": "Contact Field 164",
263
- "value_type": "text"
264
- },
265
- {
266
- "key": "contact_field_163",
267
- "label": "Contact Field 163",
268
- "value_type": "text"
269
- },
270
- {
271
- "key": "contact_field_162",
272
- "label": "Contact Field 162",
273
- "value_type": "text"
274
- },
275
- {
276
- "key": "contact_field_161",
277
- "label": "Contact Field 161",
278
- "value_type": "text"
279
- },
280
- {
281
- "key": "contact_field_160",
282
- "label": "Contact Field 160",
283
- "value_type": "text"
284
- },
285
- {
286
- "key": "contact_field_159",
287
- "label": "Contact Field 159",
288
- "value_type": "text"
289
- },
290
- {
291
- "key": "contact_field_158",
292
- "label": "Contact Field 158",
293
- "value_type": "text"
294
- },
295
- {
296
- "key": "contact_field_157",
297
- "label": "Contact Field 157",
298
- "value_type": "text"
299
- },
300
- {
301
- "key": "contact_field_156",
302
- "label": "Contact Field 156",
303
- "value_type": "text"
304
- },
305
- {
306
- "key": "contact_field_155",
307
- "label": "Contact Field 155",
308
- "value_type": "text"
309
- },
310
- {
311
- "key": "contact_field_154",
312
- "label": "Contact Field 154",
313
- "value_type": "text"
314
- },
315
- {
316
- "key": "contact_field_153",
317
- "label": "Contact Field 153",
318
- "value_type": "text"
319
- },
320
- {
321
- "key": "contact_field_152",
322
- "label": "Contact Field 152",
323
- "value_type": "text"
324
- },
325
- {
326
- "key": "contact_field_151",
327
- "label": "Contact Field 151",
328
- "value_type": "text"
329
- },
330
- {
331
- "key": "contact_field_150",
332
- "label": "Contact Field 150",
333
- "value_type": "text"
334
- },
335
- {
336
- "key": "contact_field_149",
337
- "label": "Contact Field 149",
338
- "value_type": "text"
339
- },
340
- {
341
- "key": "contact_field_148",
342
- "label": "Contact Field 148",
343
- "value_type": "text"
344
- },
345
- {
346
- "key": "contact_field_147",
347
- "label": "Contact Field 147",
348
- "value_type": "text"
349
- },
350
- {
351
- "key": "contact_field_146",
352
- "label": "Contact Field 146",
353
- "value_type": "text"
354
- },
355
- {
356
- "key": "contact_field_145",
357
- "label": "Contact Field 145",
358
- "value_type": "text"
359
- },
360
- {
361
- "key": "contact_field_144",
362
- "label": "Contact Field 144",
363
- "value_type": "text"
364
- },
365
- {
366
- "key": "contact_field_142",
367
- "label": "Contact Field 142",
368
- "value_type": "text"
369
- },
370
- {
371
- "key": "contact_field_141",
372
- "label": "Contact Field 141",
373
- "value_type": "text"
374
- },
375
- {
376
- "key": "contact_field_140",
377
- "label": "Contact Field 140",
378
- "value_type": "text"
379
- },
380
- {
381
- "key": "contact_field_139",
382
- "label": "Contact Field 139",
383
- "value_type": "text"
384
- },
385
- {
386
- "key": "contact_field_138",
387
- "label": "Contact Field 138",
388
- "value_type": "text"
389
- },
390
- {
391
- "key": "contact_field_137",
392
- "label": "Contact Field 137",
393
- "value_type": "text"
394
- },
395
- {
396
- "key": "contact_field_136",
397
- "label": "Contact Field 136",
398
- "value_type": "text"
399
- },
400
- {
401
- "key": "contact_field_135",
402
- "label": "Contact Field 135",
403
- "value_type": "text"
404
- },
405
- {
406
- "key": "contact_field_134",
407
- "label": "Contact Field 134",
408
- "value_type": "text"
409
- },
410
- {
411
- "key": "contact_field_133",
412
- "label": "Contact Field 133",
413
- "value_type": "text"
414
- },
415
- {
416
- "key": "contact_field_132",
417
- "label": "Contact Field 132",
418
- "value_type": "text"
419
- },
420
- {
421
- "key": "contact_field_131",
422
- "label": "Contact Field 131",
423
- "value_type": "text"
424
- },
425
- {
426
- "key": "contact_field_130",
427
- "label": "Contact Field 130",
428
- "value_type": "text"
429
- },
430
- {
431
- "key": "contact_field_129",
432
- "label": "Contact Field 129",
433
- "value_type": "text"
434
- },
435
- {
436
- "key": "contact_field_128",
437
- "label": "Contact Field 128",
438
- "value_type": "text"
439
- },
440
- {
441
- "key": "contact_field_127",
442
- "label": "Contact Field 127",
443
- "value_type": "text"
444
- },
445
- {
446
- "key": "contact_field_126",
447
- "label": "Contact Field 126",
448
- "value_type": "text"
449
- },
450
- {
451
- "key": "contact_field_125",
452
- "label": "Contact Field 125",
453
- "value_type": "text"
454
- },
455
- {
456
- "key": "contact_field_124",
457
- "label": "Contact Field 124",
458
- "value_type": "text"
459
- },
460
- {
461
- "key": "contact_field_123",
462
- "label": "Contact Field 123",
463
- "value_type": "text"
464
- },
465
- {
466
- "key": "contact_field_122",
467
- "label": "Contact Field 122",
468
- "value_type": "text"
469
- },
470
- {
471
- "key": "contact_field_121",
472
- "label": "Contact Field 121",
473
- "value_type": "text"
474
- },
475
- {
476
- "key": "contact_field_120",
477
- "label": "Contact Field 120",
478
- "value_type": "text"
479
- },
480
- {
481
- "key": "contact_field_119",
482
- "label": "Contact Field 119",
483
- "value_type": "text"
484
- },
485
- {
486
- "key": "contact_field_118",
487
- "label": "Contact Field 118",
488
- "value_type": "text"
489
- },
490
- {
491
- "key": "contact_field_117",
492
- "label": "Contact Field 117",
493
- "value_type": "text"
494
- },
495
- {
496
- "key": "contact_field_116",
497
- "label": "Contact Field 116",
498
- "value_type": "text"
499
- },
500
- {
501
- "key": "contact_field_115",
502
- "label": "Contact Field 115",
503
- "value_type": "text"
504
- },
505
- {
506
- "key": "contact_field_114",
507
- "label": "Contact Field 114",
508
- "value_type": "text"
509
- },
510
- {
511
- "key": "contact_field_113",
512
- "label": "Contact Field 113",
513
- "value_type": "text"
514
- },
515
- {
516
- "key": "contact_field_112",
517
- "label": "Contact Field 112",
518
- "value_type": "text"
519
- },
520
- {
521
- "key": "contact_field_111",
522
- "label": "Contact Field 111",
523
- "value_type": "text"
524
- },
525
- {
526
- "key": "contact_field_110",
527
- "label": "Contact Field 110",
528
- "value_type": "text"
529
- },
530
- {
531
- "key": "contact_field_109",
532
- "label": "Contact Field 109",
533
- "value_type": "text"
534
- },
535
- {
536
- "key": "contact_field_108",
537
- "label": "Contact Field 108",
538
- "value_type": "text"
539
- },
540
- {
541
- "key": "contact_field_107",
542
- "label": "Contact Field 107",
543
- "value_type": "text"
544
- },
545
- {
546
- "key": "contact_field_106",
547
- "label": "Contact Field 106",
548
- "value_type": "text"
549
- },
550
- {
551
- "key": "contact_field_105",
552
- "label": "Contact Field 105",
553
- "value_type": "text"
554
- },
555
- {
556
- "key": "contact_field_104",
557
- "label": "Contact Field 104",
558
- "value_type": "text"
559
- },
560
- {
561
- "key": "contact_field_103",
562
- "label": "Contact Field 103",
563
- "value_type": "text"
564
- },
565
- {
566
- "key": "contact_field_102",
567
- "label": "Contact Field 102",
568
- "value_type": "text"
569
- },
570
- {
571
- "key": "contact_field_101",
572
- "label": "Contact Field 101",
573
- "value_type": "text"
574
- },
575
- {
576
- "key": "contact_field_100",
577
- "label": "Contact Field 100",
578
- "value_type": "text"
579
- },
580
- {
581
- "key": "contact_field_99",
582
- "label": "Contact Field 99",
583
- "value_type": "text"
584
- },
585
- {
586
- "key": "contact_field_98",
587
- "label": "Contact Field 98",
588
- "value_type": "text"
589
- },
590
- {
591
- "key": "contact_field_97",
592
- "label": "Contact Field 97",
593
- "value_type": "text"
594
- },
595
- {
596
- "key": "contact_field_96",
597
- "label": "Contact Field 96",
598
- "value_type": "text"
599
- },
600
- {
601
- "key": "contact_field_95",
602
- "label": "Contact Field 95",
603
- "value_type": "text"
604
- },
605
- {
606
- "key": "contact_field_94",
607
- "label": "Contact Field 94",
608
- "value_type": "text"
609
- },
610
- {
611
- "key": "contact_field_93",
612
- "label": "Contact Field 93",
613
- "value_type": "text"
614
- },
615
- {
616
- "key": "contact_field_92",
617
- "label": "Contact Field 92",
618
- "value_type": "text"
619
- },
620
- {
621
- "key": "contact_field_91",
622
- "label": "Contact Field 91",
623
- "value_type": "text"
624
- },
625
- {
626
- "key": "contact_field_90",
627
- "label": "Contact Field 90",
628
- "value_type": "text"
629
- },
630
- {
631
- "key": "contact_field_89",
632
- "label": "Contact Field 89",
633
- "value_type": "text"
634
- },
635
- {
636
- "key": "contact_field_88",
637
- "label": "Contact Field 88",
638
- "value_type": "text"
639
- },
640
- {
641
- "key": "contact_field_87",
642
- "label": "Contact Field 87",
643
- "value_type": "text"
644
- },
645
- {
646
- "key": "contact_field_86",
647
- "label": "Contact Field 86",
648
- "value_type": "text"
649
- },
650
- {
651
- "key": "contact_field_85",
652
- "label": "Contact Field 85",
653
- "value_type": "text"
654
- },
655
- {
656
- "key": "contact_field_84",
657
- "label": "Contact Field 84",
658
- "value_type": "text"
659
- },
660
- {
661
- "key": "contact_field_83",
662
- "label": "Contact Field 83",
663
- "value_type": "text"
664
- },
665
- {
666
- "key": "contact_field_82",
667
- "label": "Contact Field 82",
668
- "value_type": "text"
669
- },
670
- {
671
- "key": "contact_field_81",
672
- "label": "Contact Field 81",
673
- "value_type": "text"
674
- },
675
- {
676
- "key": "contact_field_80",
677
- "label": "Contact Field 80",
678
- "value_type": "text"
679
- },
680
- {
681
- "key": "contact_field_79",
682
- "label": "Contact Field 79",
683
- "value_type": "text"
684
- },
685
- {
686
- "key": "contact_field_78",
687
- "label": "Contact Field 78",
688
- "value_type": "text"
689
- },
690
- {
691
- "key": "contact_field_77",
692
- "label": "Contact Field 77",
693
- "value_type": "text"
694
- },
695
- {
696
- "key": "contact_field_76",
697
- "label": "Contact Field 76",
698
- "value_type": "text"
699
- },
700
- {
701
- "key": "contact_field_75",
702
- "label": "Contact Field 75",
703
- "value_type": "text"
704
- },
705
- {
706
- "key": "contact_field_74",
707
- "label": "Contact Field 74",
708
- "value_type": "text"
709
- },
710
- {
711
- "key": "contact_field_73",
712
- "label": "Contact Field 73",
713
- "value_type": "text"
714
- },
715
- {
716
- "key": "contact_field_72",
717
- "label": "Contact Field 72",
718
- "value_type": "text"
719
- },
720
- {
721
- "key": "contact_field_71",
722
- "label": "Contact Field 71",
723
- "value_type": "text"
724
- },
725
- {
726
- "key": "contact_field_70",
727
- "label": "Contact Field 70",
728
- "value_type": "text"
729
- },
730
- {
731
- "key": "contact_field_69",
732
- "label": "Contact Field 69",
733
- "value_type": "text"
734
- },
735
- {
736
- "key": "contact_field_68",
737
- "label": "Contact Field 68",
738
- "value_type": "text"
739
- },
740
- {
741
- "key": "contact_field_67",
742
- "label": "Contact Field 67",
743
- "value_type": "text"
744
- },
745
- {
746
- "key": "contact_field_66",
747
- "label": "Contact Field 66",
748
- "value_type": "text"
749
- },
750
- {
751
- "key": "contact_field_65",
752
- "label": "Contact Field 65",
753
- "value_type": "text"
754
- },
755
- {
756
- "key": "contact_field_64",
757
- "label": "Contact Field 64",
758
- "value_type": "text"
759
- },
760
- {
761
- "key": "contact_field_63",
762
- "label": "Contact Field 63",
763
- "value_type": "text"
764
- },
765
- {
766
- "key": "contact_field_62",
767
- "label": "Contact Field 62",
768
- "value_type": "text"
769
- },
770
- {
771
- "key": "contact_field_61",
772
- "label": "Contact Field 61",
773
- "value_type": "text"
774
- },
775
- {
776
- "key": "contact_field_60",
777
- "label": "Contact Field 60",
778
- "value_type": "text"
779
- },
780
- {
781
- "key": "contact_field_59",
782
- "label": "Contact Field 59",
783
- "value_type": "text"
784
- },
785
- {
786
- "key": "contact_field_58",
787
- "label": "Contact Field 58",
788
- "value_type": "text"
789
- },
790
- {
791
- "key": "contact_field_57",
792
- "label": "Contact Field 57",
793
- "value_type": "text"
794
- },
795
- {
796
- "key": "contact_field_56",
797
- "label": "Contact Field 56",
798
- "value_type": "text"
799
- },
800
- {
801
- "key": "contact_field_55",
802
- "label": "Contact Field 55",
803
- "value_type": "text"
804
- },
805
- {
806
- "key": "contact_field_54",
807
- "label": "Contact Field 54",
808
- "value_type": "text"
809
- },
810
- {
811
- "key": "contact_field_53",
812
- "label": "Contact Field 53",
813
- "value_type": "text"
814
- },
815
- {
816
- "key": "contact_field_52",
817
- "label": "Contact Field 52",
818
- "value_type": "text"
819
- },
820
- {
821
- "key": "contact_field_51",
822
- "label": "Contact Field 51",
823
- "value_type": "text"
824
- },
825
- {
826
- "key": "contact_field_50",
827
- "label": "Contact Field 50",
828
- "value_type": "text"
829
- },
830
- {
831
- "key": "contact_field_49",
832
- "label": "Contact Field 49",
833
- "value_type": "text"
834
- },
835
- {
836
- "key": "contact_field_48",
837
- "label": "Contact Field 48",
838
- "value_type": "text"
839
- },
840
- {
841
- "key": "contact_field_47",
842
- "label": "Contact Field 47",
843
- "value_type": "text"
844
- },
845
- {
846
- "key": "contact_field_46",
847
- "label": "Contact Field 46",
848
- "value_type": "text"
849
- },
850
- {
851
- "key": "contact_field_45",
852
- "label": "Contact Field 45",
853
- "value_type": "text"
854
- },
855
- {
856
- "key": "contact_field_44",
857
- "label": "Contact Field 44",
858
- "value_type": "text"
859
- },
860
- {
861
- "key": "contact_field_43",
862
- "label": "Contact Field 43",
863
- "value_type": "text"
864
- },
865
- {
866
- "key": "contact_field_42",
867
- "label": "Contact Field 42",
868
- "value_type": "text"
869
- },
870
- {
871
- "key": "contact_field_41",
872
- "label": "Contact Field 41",
873
- "value_type": "text"
874
- },
875
- {
876
- "key": "contact_field_40",
877
- "label": "Contact Field 40",
878
- "value_type": "text"
879
- },
880
- {
881
- "key": "contact_field_39",
882
- "label": "Contact Field 39",
883
- "value_type": "text"
884
- },
885
- {
886
- "key": "contact_field_38",
887
- "label": "Contact Field 38",
888
- "value_type": "text"
889
- },
890
- {
891
- "key": "contact_field_37",
892
- "label": "Contact Field 37",
893
- "value_type": "text"
894
- },
895
- {
896
- "key": "contact_field_36",
897
- "label": "Contact Field 36",
898
- "value_type": "text"
899
- },
900
- {
901
- "key": "contact_field_35",
902
- "label": "Contact Field 35",
903
- "value_type": "text"
904
- },
905
- {
906
- "key": "contact_field_34",
907
- "label": "Contact Field 34",
908
- "value_type": "text"
909
- },
910
- {
911
- "key": "contact_field_33",
912
- "label": "Contact Field 33",
913
- "value_type": "text"
914
- },
915
- {
916
- "key": "contact_field_32",
917
- "label": "Contact Field 32",
918
- "value_type": "text"
919
- },
920
- {
921
- "key": "contact_field_31",
922
- "label": "Contact Field 31",
923
- "value_type": "text"
924
- },
925
- {
926
- "key": "contact_field_30",
927
- "label": "Contact Field 30",
928
- "value_type": "text"
929
- },
930
- {
931
- "key": "contact_field_29",
932
- "label": "Contact Field 29",
933
- "value_type": "text"
934
- },
935
- {
936
- "key": "contact_field_28",
937
- "label": "Contact Field 28",
938
- "value_type": "text"
939
- },
940
- {
941
- "key": "contact_field_27",
942
- "label": "Contact Field 27",
943
- "value_type": "text"
944
- },
945
- {
946
- "key": "contact_field_26",
947
- "label": "Contact Field 26",
948
- "value_type": "text"
949
- },
950
- {
951
- "key": "contact_field_25",
952
- "label": "Contact Field 25",
953
- "value_type": "text"
954
- },
955
- {
956
- "key": "contact_field_24",
957
- "label": "Contact Field 24",
958
- "value_type": "text"
959
- },
960
- {
961
- "key": "contact_field_23",
962
- "label": "Contact Field 23",
963
- "value_type": "text"
964
- },
965
- {
966
- "key": "contact_field_22",
967
- "label": "Contact Field 22",
968
- "value_type": "text"
969
- },
970
- {
971
- "key": "contact_field_21",
972
- "label": "Contact Field 21",
973
- "value_type": "text"
974
- },
975
- {
976
- "key": "contact_field_20",
977
- "label": "Contact Field 20",
978
- "value_type": "text"
979
- },
980
- {
981
- "key": "contact_field_19",
982
- "label": "Contact Field 19",
983
- "value_type": "text"
984
- },
985
- {
986
- "key": "contact_field_18",
987
- "label": "Contact Field 18",
988
- "value_type": "text"
989
- },
990
- {
991
- "key": "contact_field_17",
992
- "label": "Contact Field 17",
993
- "value_type": "text"
994
- },
995
- {
996
- "key": "contact_field_16",
997
- "label": "Contact Field 16",
998
- "value_type": "text"
999
- },
1000
- {
1001
- "key": "contact_field_15",
1002
- "label": "Contact Field 15",
1003
- "value_type": "text"
1004
- },
1005
- {
1006
- "key": "contact_field_14",
1007
- "label": "Contact Field 14",
1008
- "value_type": "text"
1009
- },
1010
- {
1011
- "key": "contact_field_13",
1012
- "label": "Contact Field 13",
1013
- "value_type": "text"
1014
- },
1015
- {
1016
- "key": "contact_field_12",
1017
- "label": "Contact Field 12",
1018
- "value_type": "text"
1019
- },
1020
- {
1021
- "key": "contact_field_11",
1022
- "label": "Contact Field 11",
1023
- "value_type": "text"
1024
- },
1025
- {
1026
- "key": "contact_field_10",
1027
- "label": "Contact Field 10",
1028
- "value_type": "text"
1029
- },
1030
- {
1031
- "key": "contact_field_9",
1032
- "label": "Contact Field 9",
1033
- "value_type": "text"
1034
- },
1035
- {
1036
- "key": "contact_field_8",
1037
- "label": "Contact Field 8",
1038
- "value_type": "text"
1039
- },
1040
- {
1041
- "key": "contact_field_7",
1042
- "label": "Contact Field 7",
1043
- "value_type": "text"
1044
- },
1045
- {
1046
- "key": "contact_field_6",
1047
- "label": "Contact Field 6",
1048
- "value_type": "text"
1049
- },
1050
- {
1051
- "key": "contact_field_5",
1052
- "label": "Contact Field 5",
1053
- "value_type": "text"
1054
- },
1055
- {
1056
- "key": "contact_field_4",
1057
- "label": "Contact Field 4",
1058
- "value_type": "text"
1059
- },
1060
- {
1061
- "key": "contact_field_3",
1062
- "label": "Contact Field 3",
1063
- "value_type": "text"
1064
- },
1065
- {
1066
- "key": "contact_field_2",
1067
- "label": "Contact Field 2",
1068
- "value_type": "text"
1069
- },
1070
- {
1071
- "key": "contact_field_1",
1072
- "label": "Contact Field 1",
1073
- "value_type": "text"
1074
- },
1075
- {
1076
- "key": "contact_field_0",
1077
- "label": "Contact Field 0",
1078
- "value_type": "text"
1079
- },
1080
- {
1081
- "key": "immigrationfinal_payment_date",
1082
- "label": "Immigrationfinal-Payment-Date",
1083
- "value_type": "text"
1084
- },
1085
- {
1086
- "key": "emergencyfinal_payment_date",
1087
- "label": "Emergencyfinal-Payment-Date",
1088
- "value_type": "text"
1089
- },
1090
- {
1091
- "key": "new_renewalfinal_payment_date",
1092
- "label": "New-Renewalfinal-Payment-Date",
1093
- "value_type": "text"
1094
- },
1095
- {
1096
- "key": "businessfinal_payment_date",
1097
- "label": "Businessfinal-Payment-Date",
1098
- "value_type": "text"
1099
- },
1100
- {
1101
- "key": "emergencypayoff",
1102
- "label": "Emergencypayoff",
1103
- "value_type": "text"
1104
- },
1105
- {
1106
- "key": "immigrationpayoff",
1107
- "label": "Immigrationpayoff",
1108
- "value_type": "text"
1109
- },
1110
- {
1111
- "key": "new_renewalpayoff",
1112
- "label": "New-Renewalpayoff",
1113
- "value_type": "text"
1114
- },
1115
- {
1116
- "key": "businesspayoff",
1117
- "label": "Businesspayoff",
1118
- "value_type": "text"
1119
- },
1120
- {
1121
- "key": "emergencyloan_amount",
1122
- "label": "Emergencyloan-Amount",
1123
- "value_type": "text"
1124
- },
1125
- {
1126
- "key": "immigrationloan_amount",
1127
- "label": "Immigrationloan-Amount",
1128
- "value_type": "text"
1129
- },
1130
- {
1131
- "key": "new_renewalloan_amount",
1132
- "label": "New-Renewalloan-Amount",
1133
- "value_type": "text"
1134
- },
1135
- {
1136
- "key": "businessloan_amount",
1137
- "label": "Businessloan-Amount",
1138
- "value_type": "text"
1139
- },
1140
- {
1141
- "key": "immigrationpayment",
1142
- "label": "Immigrationpayment",
1143
- "value_type": "text"
1144
- },
1145
- {
1146
- "key": "new_renewalpayment",
1147
- "label": "New-Renewalpayment",
1148
- "value_type": "text"
1149
- },
1150
- {
1151
- "key": "emergencypayment",
1152
- "label": "Emergencypayment",
1153
- "value_type": "text"
1154
- },
1155
- {
1156
- "key": "businesspayment",
1157
- "label": "Businesspayment",
1158
- "value_type": "text"
1159
- },
1160
- {
1161
- "key": "borrower_payment_method",
1162
- "label": "Borrower Payment Method",
1163
- "value_type": "text"
1164
- },
1165
- {
1166
- "key": "rating",
1167
- "label": "Rating",
1168
- "value_type": "text"
1169
- },
1170
- {
1171
- "key": "bonus",
1172
- "label": "Bonus",
1173
- "value_type": "text"
1174
- },
1175
- {
1176
- "key": "last_message",
1177
- "label": "Last Message",
1178
- "value_type": "datetime"
1179
- },
1180
- {
1181
- "key": "my_new_field",
1182
- "label": "my new field",
1183
- "value_type": "text"
1184
- },
1185
- {
1186
- "key": "cv_opt_in",
1187
- "label": "CV Opt In",
1188
- "value_type": "text"
1189
- },
1190
- {
1191
- "key": "bar",
1192
- "label": "Bar",
1193
- "value_type": "text"
1194
- },
1195
- {
1196
- "key": "blerg",
1197
- "label": "Blerg",
1198
- "value_type": "text"
1199
- },
1200
- {
1201
- "key": "unhcr_number",
1202
- "label": "Unhcr Number",
1203
- "value_type": "text"
6
+ "key": "born",
7
+ "name": "Born",
8
+ "type": "number",
9
+ "featured": false,
10
+ "priority": 0,
11
+ "usages": {
12
+ "flows": 3,
13
+ "groups": 0,
14
+ "campaign_events": 0
15
+ },
16
+ "agent_access": "view",
17
+ "label": "Born",
18
+ "value_type": "numeric"
1204
19
  },
1205
20
  {
1206
- "key": "unhcr_case_file_family_adultminor_5",
1207
- "label": "Unhcr Case File Family Adultminor 5",
21
+ "key": "profile_pic",
22
+ "name": "Profile Pic",
23
+ "type": "text",
24
+ "featured": false,
25
+ "priority": 0,
26
+ "usages": {
27
+ "flows": 0,
28
+ "groups": 0,
29
+ "campaign_events": 0
30
+ },
31
+ "agent_access": "view",
32
+ "label": "Profile Pic",
1208
33
  "value_type": "text"
1209
34
  },
1210
35
  {
1211
- "key": "email_address",
1212
- "label": "UNHCR Family Size",
36
+ "key": "state",
37
+ "name": "State",
38
+ "type": "text",
39
+ "featured": true,
40
+ "priority": 0,
41
+ "usages": {
42
+ "flows": 1,
43
+ "groups": 0,
44
+ "campaign_events": 0
45
+ },
46
+ "agent_access": "view",
47
+ "label": "State",
1213
48
  "value_type": "text"
1214
49
  },
1215
50
  {
1216
- "key": "conversion",
1217
- "label": "Conversion",
51
+ "key": "district",
52
+ "name": "District",
53
+ "type": "text",
54
+ "featured": true,
55
+ "priority": 0,
56
+ "usages": {
57
+ "flows": 1,
58
+ "groups": 1,
59
+ "campaign_events": 0
60
+ },
61
+ "agent_access": "view",
62
+ "label": "District",
1218
63
  "value_type": "text"
1219
64
  },
1220
65
  {
1221
- "key": "district",
1222
- "label": "District",
1223
- "value_type": "district"
66
+ "key": "ward",
67
+ "name": "Ward",
68
+ "type": "ward",
69
+ "featured": true,
70
+ "priority": 0,
71
+ "usages": {
72
+ "flows": 0,
73
+ "groups": 0,
74
+ "campaign_events": 0
75
+ },
76
+ "agent_access": "view",
77
+ "label": "Ward",
78
+ "value_type": "ward"
1224
79
  },
1225
80
  {
1226
81
  "key": "joined",
82
+ "name": "Joined On",
83
+ "type": "datetime",
84
+ "featured": true,
85
+ "priority": 0,
86
+ "usages": {
87
+ "flows": 0,
88
+ "groups": 1,
89
+ "campaign_events": 2
90
+ },
91
+ "agent_access": "view",
1227
92
  "label": "Joined On",
1228
93
  "value_type": "datetime"
1229
94
  },
1230
95
  {
1231
96
  "key": "age",
97
+ "name": "Age",
98
+ "type": "text",
99
+ "featured": true,
100
+ "priority": 0,
101
+ "usages": {
102
+ "flows": 2,
103
+ "groups": 1,
104
+ "campaign_events": 0
105
+ },
106
+ "agent_access": "view",
1232
107
  "label": "Age",
1233
- "value_type": "numeric"
108
+ "value_type": "text"
1234
109
  },
1235
110
  {
1236
111
  "key": "gender",
112
+ "name": "Gender",
113
+ "type": "text",
114
+ "featured": true,
115
+ "priority": 0,
116
+ "usages": {
117
+ "flows": 5,
118
+ "groups": 0,
119
+ "campaign_events": 0
120
+ },
121
+ "agent_access": "view",
1237
122
  "label": "Gender",
1238
123
  "value_type": "text"
1239
124
  }