@jsb188/graphql 1.1.10 → 1.1.12

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 (176) hide show
  1. package/audience.d.ts +343 -0
  2. package/cache/config.ts +98 -50
  3. package/cache/index.chat-activity.test.ts +119 -0
  4. package/cache/index.chat.test.ts +92 -0
  5. package/cache/index.helpers.ts +96 -0
  6. package/cache/index.regression.test.ts +149 -0
  7. package/cache/index.test.ts +1017 -127
  8. package/cache/index.ts +1256 -1269
  9. package/cache/optimistic-ui-runtime.ts +46 -0
  10. package/cache/optimistic-ui.ts +401 -0
  11. package/cache/persist.ts +800 -0
  12. package/cache/store.ts +395 -0
  13. package/cache/value.helpers.ts +17 -0
  14. package/client/draft-persistence-indexed-db.ts +413 -0
  15. package/client/draft-persistence.ts +152 -0
  16. package/client/index.ts +3 -0
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +870 -164
  19. package/deno.lock +187 -0
  20. package/deno.test.json +10 -4
  21. package/gql/eagerQueryMap.ts +12 -0
  22. package/gql/fragments/accountAuthFragments.ts +5 -0
  23. package/gql/fragments/accountFragments.ts +0 -3
  24. package/gql/fragments/accountSessionFragments.ts +16 -0
  25. package/gql/fragments/agentMemoryFragments.ts +23 -0
  26. package/gql/fragments/agentNoteFragments.ts +150 -0
  27. package/gql/fragments/aiChatFragments.ts +42 -0
  28. package/gql/fragments/audienceFragments.ts +141 -0
  29. package/gql/fragments/campaignFragments.ts +566 -0
  30. package/gql/fragments/dataTableFragments.ts +50 -192
  31. package/gql/fragments/emailFragments.ts +32 -17
  32. package/gql/fragments/fieldDocFragments.ts +264 -0
  33. package/gql/fragments/inboundContactFragments.ts +2 -0
  34. package/gql/fragments/logFragments.ts +101 -69
  35. package/gql/fragments/organizationFragments.ts +53 -5
  36. package/gql/fragments/qrCodeFragments.ts +29 -0
  37. package/gql/fragments/scheduleFragments.ts +667 -0
  38. package/gql/fragments/sheetFragments.ts +304 -63
  39. package/gql/fragments/storageFragments.ts +45 -0
  40. package/gql/fragments/workflowFragments.ts +41 -5
  41. package/gql/mutations/accountMutations.ts +0 -2
  42. package/gql/mutations/agentMemoryMutations.ts +68 -0
  43. package/gql/mutations/agentNoteMutations.ts +62 -0
  44. package/gql/mutations/aiChatMutations.ts +49 -4
  45. package/gql/mutations/audienceMutations.ts +71 -0
  46. package/gql/mutations/authMutations.ts +203 -18
  47. package/gql/mutations/billingMutations.ts +17 -27
  48. package/gql/mutations/campaignMutations.ts +258 -0
  49. package/gql/mutations/contactMutations.ts +23 -0
  50. package/gql/mutations/dataTableMutations.ts +19 -54
  51. package/gql/mutations/fieldDocMutations.ts +173 -0
  52. package/gql/mutations/index.ts +10 -2
  53. package/gql/mutations/logMutations.ts +6 -29
  54. package/gql/mutations/organizationMutations.ts +19 -4
  55. package/gql/mutations/qrCodeMutations.ts +20 -0
  56. package/gql/mutations/scheduleMutations.ts +1121 -0
  57. package/gql/mutations/sheetMutations.ts +221 -60
  58. package/gql/mutations/storageMutations.ts +19 -0
  59. package/gql/mutations/workflowMutations.ts +60 -0
  60. package/gql/queries/agentMemoryQueries.ts +28 -0
  61. package/gql/queries/agentNoteQueries.ts +89 -0
  62. package/gql/queries/aiChatQueries.ts +70 -2
  63. package/gql/queries/audienceQueries.ts +128 -0
  64. package/gql/queries/authQueries.ts +47 -0
  65. package/gql/queries/billingQueries.ts +118 -6
  66. package/gql/queries/campaignQueries.ts +236 -0
  67. package/gql/queries/dataTableQueries.ts +61 -13
  68. package/gql/queries/emailQueries.ts +26 -17
  69. package/gql/queries/emailReplyReportQueries.ts +76 -0
  70. package/gql/queries/fieldDocQueries.ts +166 -0
  71. package/gql/queries/inboundContactQueries.ts +4 -0
  72. package/gql/queries/index.ts +10 -2
  73. package/gql/queries/logQueries.ts +68 -30
  74. package/gql/queries/organizationQueries.ts +65 -1
  75. package/gql/queries/qrCodeQueries.ts +20 -0
  76. package/gql/queries/scheduleQueries.ts +691 -0
  77. package/gql/queries/sheetQueries.ts +244 -26
  78. package/gql/queries/storageQueries.ts +38 -0
  79. package/gql/queries/workflowQueries.ts +77 -2
  80. package/hooks/index.helpers.test.ts +50 -0
  81. package/hooks/index.helpers.ts +52 -0
  82. package/hooks/index.ts +2254 -982
  83. package/hooks/use-account-mtn.ts +76 -81
  84. package/hooks/use-agentMemory-mtn.ts +71 -0
  85. package/hooks/use-agentMemory-qry.ts +56 -0
  86. package/hooks/use-agentNote-mtn.ts +82 -0
  87. package/hooks/use-agentNote-qry.ts +190 -0
  88. package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
  89. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  90. package/hooks/use-agentNote-recovery.ts +72 -0
  91. package/hooks/use-aiChat-mtn.ts +220 -141
  92. package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
  93. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  94. package/hooks/use-aiChat-qry.ts +341 -237
  95. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  96. package/hooks/use-app-qry.ts +12 -9
  97. package/hooks/use-audience-mtn.ts +194 -0
  98. package/hooks/use-audience-qry.helpers.test.ts +80 -0
  99. package/hooks/use-audience-qry.helpers.ts +63 -0
  100. package/hooks/use-audience-qry.ts +330 -0
  101. package/hooks/use-auth-mtn.ts +435 -252
  102. package/hooks/use-auth-qry.ts +51 -0
  103. package/hooks/use-billing-mtn.ts +31 -0
  104. package/hooks/use-billing-qry.ts +76 -0
  105. package/hooks/use-campaign-generation-recovery.ts +53 -0
  106. package/hooks/use-campaign-mtn.ts +436 -0
  107. package/hooks/use-campaign-qry.helpers.ts +40 -0
  108. package/hooks/use-campaign-qry.ts +834 -0
  109. package/hooks/use-dataTable-mtn.ts +37 -46
  110. package/hooks/use-dataTable-qry.ts +102 -128
  111. package/hooks/use-email-qry.helpers.ts +37 -0
  112. package/hooks/use-email-qry.ts +56 -86
  113. package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
  114. package/hooks/use-fieldDoc-mtn.ts +262 -0
  115. package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
  116. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  117. package/hooks/use-fieldDoc-qry.ts +212 -0
  118. package/hooks/use-inboundContact-mtn.ts +19 -16
  119. package/hooks/use-inboundContact-qry.ts +62 -56
  120. package/hooks/use-integration-mtn.ts +56 -38
  121. package/hooks/use-integration-qry.ts +24 -9
  122. package/hooks/use-log-mtn.ts +88 -59
  123. package/hooks/use-log-qry.ts +150 -73
  124. package/hooks/use-organization-mtn.ts +334 -277
  125. package/hooks/use-organization-qry.ts +155 -129
  126. package/hooks/use-publicFormEmail-mtn.ts +27 -0
  127. package/hooks/use-qrCode-mtn.ts +40 -0
  128. package/hooks/use-qrCode-qry.ts +78 -0
  129. package/hooks/use-schedule-mtn.ts +589 -0
  130. package/hooks/use-schedule-qry.ts +738 -0
  131. package/hooks/use-schedule-reactive.ts +486 -0
  132. package/hooks/use-sheet-mtn.ts +157 -79
  133. package/hooks/use-sheet-qry.ts +221 -92
  134. package/hooks/use-storage-mtn.ts +81 -41
  135. package/hooks/use-storage-qry.ts +128 -14
  136. package/hooks/use-workflow-mtn.ts +72 -0
  137. package/hooks/use-workflow-qry.ts +184 -47
  138. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  139. package/libs/ai-chat-outgoing.ts +11 -0
  140. package/libs/ai-chat-outgoing.types.ts +25 -0
  141. package/libs/ai-chat-run-realtime.ts +20 -0
  142. package/libs/ai-chat-submission-realtime.ts +150 -0
  143. package/libs/fragment-realtime-sequence.ts +55 -0
  144. package/libs/fragment-recovery.test.ts +326 -0
  145. package/libs/fragment-recovery.ts +325 -0
  146. package/libs/open-sheet.ts +138 -0
  147. package/libs/orchestrator-realtime.helpers.test.ts +229 -0
  148. package/libs/orchestrator-realtime.helpers.ts +317 -0
  149. package/libs/orchestrator-realtime.ts +433 -0
  150. package/libs/request-cache-regression.test.ts +122 -0
  151. package/libs/request-managed-session.test.ts +574 -0
  152. package/libs/request-no-store.test.ts +419 -0
  153. package/libs/sheet-command-batch.ts +44 -0
  154. package/libs/sheet-view-realtime-router.test.ts +214 -0
  155. package/libs/sheet-view-realtime-router.ts +99 -0
  156. package/libs/sse-ticket.test.ts +26 -0
  157. package/loaders/campaign.test.ts +186 -0
  158. package/loaders/campaign.ts +110 -0
  159. package/loaders/emailPreference.ts +75 -0
  160. package/loaders/rest.ts +12 -0
  161. package/package.json +119 -71
  162. package/schedule.d.ts +1790 -0
  163. package/sse.helpers.ts +19 -0
  164. package/sse.ts +70 -106
  165. package/tests/agent-note-detail-cache.test.ts +120 -0
  166. package/tests/agent-note-search.test.ts +444 -0
  167. package/tsconfig.json +11 -10
  168. package/types.d.ts +77 -26
  169. package/utils.ts +78 -49
  170. package/gql/fragments/billingFragments.ts +0 -25
  171. package/gql/fragments/productFragments.ts +0 -39
  172. package/gql/fragments/reportFragments.ts +0 -90
  173. package/gql/queries/productQueries.ts +0 -31
  174. package/gql/queries/reportQueries.ts +0 -134
  175. package/hooks/use-product-qry.ts +0 -67
  176. package/hooks/use-report-qry.ts +0 -153
@@ -0,0 +1,566 @@
1
+ /**
2
+ * Campaign fragments.
3
+ *
4
+ * Each fragment NAME is the realtime contract: the cache keys one of these
5
+ * spreads as `$<fragmentName>:<id>`, which is byte-identical to what the
6
+ * server pushes through FRAGMENT_NAMES.campaignTemplate / campaign. Renaming a
7
+ * fragment here silently stops websocket patches from landing on the cached
8
+ * row.
9
+ */
10
+
11
+ /**
12
+ * Org-side campaign template core selection. Edit-session queries inline this
13
+ * selection so fragment cache updates cannot pair a newer revision with an
14
+ * older editor definition from the query response.
15
+ */
16
+
17
+ export const campaignTemplateFieldsSelection = `
18
+ id
19
+ organizationId
20
+ editVersion
21
+ kind
22
+ status
23
+ generationError
24
+ title
25
+ description
26
+ settings {
27
+ __typename
28
+ ... on EmailCampaignSettings {
29
+ subject
30
+ preheader
31
+ aiAgentDomain
32
+ secondaryReplyToEmail
33
+ sendAt
34
+ design {
35
+ canvasColor
36
+ contentColor
37
+ contentWidth
38
+ fontFamily
39
+ textColor
40
+ linkColor
41
+ padding
42
+ }
43
+ trackOpens
44
+ }
45
+ ... on FormCampaignSettings {
46
+ color
47
+ backgroundFillStyle
48
+ confirmationMessage
49
+ }
50
+ }
51
+ headerImage {
52
+ id
53
+ uri
54
+ contentType
55
+ imageData {
56
+ averageColor
57
+ }
58
+ }
59
+ __deleted: deleted
60
+ archivedAt
61
+ createdAt
62
+ updatedAt`;
63
+
64
+ /**
65
+ * Reusable normalized campaign template core for non-atomic consumers.
66
+ */
67
+
68
+ export const campaignTemplateFragment = `fragment campaignTemplateFragment on CampaignTemplate {
69
+ ${campaignTemplateFieldsSelection}
70
+ }`;
71
+
72
+ /**
73
+ * Canonical editor fields. CampaignEditor has no id, so this remains a direct
74
+ * reusable selection rather than a fragment/cache identity.
75
+ */
76
+
77
+ export const campaignEditorFieldsSelection = `reservedQuestionKeys
78
+ definition {
79
+ sections {
80
+ key
81
+ order
82
+ label
83
+ description
84
+ settings {
85
+ numbered
86
+ fullWidth
87
+ }
88
+ files {
89
+ id
90
+ order
91
+ uri
92
+ contentType
93
+ size
94
+ name
95
+ }
96
+ elements {
97
+ key
98
+ kind
99
+ type
100
+ order
101
+ label
102
+ description
103
+ placeholder
104
+ options {
105
+ value
106
+ label
107
+ }
108
+ required
109
+ validation {
110
+ minLength
111
+ maxLength
112
+ min
113
+ max
114
+ maxFiles
115
+ acceptedContentTypes
116
+ }
117
+ visibleWhen {
118
+ elementKey
119
+ operator
120
+ values
121
+ }
122
+ settings {
123
+ numbered
124
+ fullWidth
125
+ }
126
+ files {
127
+ id
128
+ order
129
+ uri
130
+ contentType
131
+ size
132
+ name
133
+ }
134
+ }
135
+ }
136
+ }
137
+ emailDefinition {
138
+ schemaVersion
139
+ rows {
140
+ key
141
+ order
142
+ settings {
143
+ backgroundColor
144
+ padding
145
+ }
146
+ columns {
147
+ key
148
+ order
149
+ width
150
+ blocks {
151
+ key
152
+ order
153
+ type
154
+ content {
155
+ text
156
+ richText
157
+ url
158
+ altText
159
+ heading
160
+ headingLevel
161
+ buttonLabel
162
+ buttonUrl
163
+ links {
164
+ label
165
+ url
166
+ }
167
+ }
168
+ settings {
169
+ alignment
170
+ textColor
171
+ backgroundColor
172
+ fontSize
173
+ padding
174
+ height
175
+ buttonStyle
176
+ }
177
+ files {
178
+ id
179
+ order
180
+ uri
181
+ contentType
182
+ size
183
+ name
184
+ imageData {
185
+ width
186
+ height
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
193
+ `;
194
+
195
+ /**
196
+ * Template list row. Deliberately omits the element tree so a list page does
197
+ * not pull every definition in the organization.
198
+ */
199
+
200
+ export const campaignTemplateSummaryFragment = `fragment campaignTemplateSummaryFragment on CampaignTemplateSummary {
201
+ id
202
+ organizationId
203
+ editable
204
+ editVersion
205
+ kind
206
+ status
207
+ generationError
208
+ title
209
+ description
210
+ headerImage {
211
+ id
212
+ uri
213
+ contentType
214
+ }
215
+ preview {
216
+ uri
217
+ width
218
+ height
219
+ updatedAt
220
+ }
221
+ __deleted: deleted
222
+ archivedAt
223
+ createdAt
224
+ updatedAt
225
+ cursor
226
+ }`;
227
+
228
+ /*
229
+ * Narrow template lifecycle patch returned by archive operations. It is
230
+ * mapped into campaignTemplateFragment by the cache without pretending that
231
+ * an UPDATE ... RETURNING row contains joined header storage metadata.
232
+ */
233
+ export const campaignTemplateLifecycleFragment = `fragment campaignTemplateLifecycleFragment on CampaignTemplate {
234
+ id
235
+ status
236
+ __deleted: deleted
237
+ archivedAt
238
+ generationError
239
+ updatedAt
240
+ }`;
241
+
242
+ /**
243
+ * Campaign core selection, including unpublished public-form drafts.
244
+ * Edit-session queries inline this selection to keep it atomic with the editor
245
+ * definition returned by the same response.
246
+ */
247
+
248
+ export const campaignFieldsSelection = `
249
+ id
250
+ organizationId
251
+ editVersion
252
+ publishedEditVersion
253
+ templateId
254
+ kind
255
+ status
256
+ generationStatus
257
+ generationError
258
+ generationProgress
259
+ generationProgressStage
260
+ publicId
261
+ audience
262
+ emailRecipientSelectionMode
263
+ audienceFrozenAt
264
+ title
265
+ description
266
+ settings {
267
+ __typename
268
+ ... on EmailCampaignSettings {
269
+ subject
270
+ preheader
271
+ aiAgentDomain
272
+ secondaryReplyToEmail
273
+ sendAt
274
+ design {
275
+ canvasColor
276
+ contentColor
277
+ contentWidth
278
+ fontFamily
279
+ textColor
280
+ linkColor
281
+ padding
282
+ }
283
+ trackOpens
284
+ }
285
+ ... on FormCampaignSettings {
286
+ color
287
+ backgroundFillStyle
288
+ confirmationMessage
289
+ }
290
+ }
291
+ headerImage {
292
+ id
293
+ uri
294
+ contentType
295
+ imageData {
296
+ averageColor
297
+ }
298
+ }
299
+ scheduledAt
300
+ closesAt
301
+ startedAt
302
+ completedAt
303
+ errorMessage
304
+ __deleted: deleted
305
+ archivedAt
306
+ isOpen
307
+ createdAt
308
+ updatedAt`;
309
+
310
+ /**
311
+ * Reusable normalized campaign core for non-atomic consumers.
312
+ */
313
+
314
+ export const campaignFragment = `fragment campaignFragment on Campaign {
315
+ ${campaignFieldsSelection}
316
+ }`;
317
+
318
+ /*
319
+ * Narrow campaign generation lifecycle patch returned by retry operations.
320
+ */
321
+ export const campaignGenerationLifecycleFragment = `fragment campaignGenerationLifecycleFragment on Campaign {
322
+ id
323
+ organizationId
324
+ editVersion
325
+ generationStatus
326
+ generationError
327
+ generationProgress
328
+ generationProgressStage
329
+ updatedAt
330
+ }`;
331
+
332
+ /*
333
+ * Narrow access policy returned after changing one public-form audience.
334
+ */
335
+ export const campaignAccessFragment = `fragment campaignAccessFragment on Campaign {
336
+ id
337
+ organizationId
338
+ editVersion
339
+ publishedEditVersion
340
+ audience
341
+ updatedAt
342
+ }`;
343
+
344
+ /**
345
+ * Lifecycle-only campaign mutation payload. Keeping media and definition fields
346
+ * absent prevents a bare server row from clearing richer cached campaign data.
347
+ */
348
+
349
+ export const campaignLifecycleFragment = `fragment campaignLifecycleFragment on Campaign {
350
+ id
351
+ organizationId
352
+ publishedEditVersion
353
+ status
354
+ publicId
355
+ audience
356
+ emailRecipientSelectionMode
357
+ audienceFrozenAt
358
+ scheduledAt
359
+ closesAt
360
+ startedAt
361
+ completedAt
362
+ errorMessage
363
+ __deleted: deleted
364
+ archivedAt
365
+ isOpen
366
+ updatedAt
367
+ }`;
368
+
369
+ /**
370
+ * Campaign settings mutation payload. It carries the editor revision alongside
371
+ * lifecycle and form appearance fields without returning media or definition data.
372
+ */
373
+
374
+ export const campaignSettingsFragment = `fragment campaignSettingsFragment on Campaign {
375
+ id
376
+ organizationId
377
+ editVersion
378
+ publishedEditVersion
379
+ status
380
+ publicId
381
+ audience
382
+ emailRecipientSelectionMode
383
+ audienceFrozenAt
384
+ settings {
385
+ __typename
386
+ ... on EmailCampaignSettings {
387
+ subject
388
+ preheader
389
+ aiAgentDomain
390
+ secondaryReplyToEmail
391
+ sendAt
392
+ design {
393
+ canvasColor
394
+ contentColor
395
+ contentWidth
396
+ fontFamily
397
+ textColor
398
+ linkColor
399
+ padding
400
+ }
401
+ trackOpens
402
+ }
403
+ ... on FormCampaignSettings {
404
+ color
405
+ backgroundFillStyle
406
+ confirmationMessage
407
+ }
408
+ }
409
+ scheduledAt
410
+ closesAt
411
+ startedAt
412
+ completedAt
413
+ errorMessage
414
+ __deleted: deleted
415
+ archivedAt
416
+ isOpen
417
+ updatedAt
418
+ }`;
419
+
420
+ /**
421
+ * Campaign list row; omits the published snapshot.
422
+ */
423
+
424
+ export const campaignSummaryFragment = `fragment campaignSummaryFragment on CampaignSummary {
425
+ preview { uri width height updatedAt }
426
+ id
427
+ organizationId
428
+ templateId
429
+ kind
430
+ status
431
+ generationStatus
432
+ generationError
433
+ generationProgress
434
+ generationProgressStage
435
+ publicId
436
+ audience
437
+ emailRecipientSelectionMode
438
+ audienceFrozenAt
439
+ audienceCount
440
+ audiencePreview
441
+ title
442
+ scheduledAt
443
+ closesAt
444
+ startedAt
445
+ completedAt
446
+ __deleted: deleted
447
+ archivedAt
448
+ metrics {
449
+ responseCount
450
+ recipientCount
451
+ deliveredCount
452
+ openedCount
453
+ }
454
+ isOpen
455
+ createdAt
456
+ updatedAt
457
+ cursor
458
+ }`;
459
+
460
+ /**
461
+ * One respondent row for the organization-side people list. Answers stay out
462
+ * of this projection until a response detail surface needs them.
463
+ */
464
+
465
+ export const campaignResponseSummaryFragment = `fragment campaignResponseSummaryFragment on CampaignResponseSummary {
466
+ aiAnswersComplete
467
+ aiFinishedAt
468
+ id
469
+ cursor
470
+ campaignId
471
+ respondentName
472
+ respondentEmail
473
+ childOrgId
474
+ childOrgName
475
+ submittedAt
476
+ activityAt
477
+ createdAt
478
+ }`;
479
+
480
+ /**
481
+ * One complete submitted form response for the organization-side detail modal.
482
+ */
483
+
484
+ export const campaignResponseFragment = `fragment campaignResponseFragment on CampaignResponse {
485
+ aiAnswersComplete
486
+ aiFinishedAt
487
+ id
488
+ campaignId
489
+ campaignTitle
490
+ respondentName
491
+ respondentEmail
492
+ childOrgId
493
+ childOrgName
494
+ childOrgOperation
495
+ answers {
496
+ elementKey
497
+ question
498
+ values
499
+ }
500
+ submittedAt
501
+ activityAt
502
+ createdAt
503
+ }`;
504
+
505
+ /*
506
+ * Aggregate response metrics for one public-form campaign.
507
+ */
508
+ export const campaignResponseOverviewFragment = `fragment campaignResponseOverviewFragment on CampaignResponseOverview {
509
+ id
510
+ submittedCount
511
+ responseRate
512
+ }`;
513
+
514
+ /**
515
+ * One email campaign recipient snapshot, as the organization sees it.
516
+ */
517
+
518
+ export const campaignRecipientFragment = `fragment campaignRecipientFragment on CampaignRecipient {
519
+ id
520
+ cursor
521
+ campaignId
522
+ inboundContactId
523
+ emailAddressId
524
+ outboundEmailId
525
+ emailAddress
526
+ personName
527
+ deliveryStatus
528
+ sentAt
529
+ deliveredAt
530
+ openedAt
531
+ invitedAt
532
+ firstOpenedAt
533
+ respondedAt
534
+ bouncedAt
535
+ bounceType
536
+ spamComplaintAt
537
+ errorMessage
538
+ suppressionReason
539
+ createdAt
540
+ }`;
541
+
542
+ /*
543
+ * Aggregate delivery and engagement metrics for one email campaign.
544
+ */
545
+ export const campaignRecipientOverviewFragment = `fragment campaignRecipientOverviewFragment on CampaignRecipientOverview {
546
+ id
547
+ totalCount
548
+ selectedCount
549
+ queuedCount
550
+ processingCount
551
+ sentCount
552
+ deliveredCount
553
+ openedCount
554
+ respondedCount
555
+ bouncedCount
556
+ spamComplaintCount
557
+ failedCount
558
+ retryableCount
559
+ unknownCount
560
+ suppressedCount
561
+ excludedCount
562
+ audienceLists {
563
+ id
564
+ name
565
+ }
566
+ }`;