@jsb188/graphql 1.1.12 → 1.1.13
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.
- package/LICENSE +21 -0
- package/audience.d.ts +14 -152
- package/cache/config.ts +35 -32
- package/cache/index.helpers.ts +1 -1
- package/cache/index.ts +73 -44
- package/cache/mounted-queries.ts +33 -0
- package/cache/persist.ts +10 -4
- package/cache/realtime-fence.ts +47 -0
- package/cache/realtime-live.ts +17 -0
- package/client/draft-persistence.ts +10 -39
- package/client/index.ts +2 -1
- package/client/request.ts +9 -34
- package/client/storage-asset.ts +58 -0
- package/gql/fragments/accountAuthFragments.ts +0 -4
- package/gql/fragments/agentNoteFragments.ts +8 -2
- package/gql/fragments/aiChatFragments.ts +0 -2
- package/gql/fragments/aiChatLinkFragments.ts +8 -0
- package/gql/fragments/audienceFragments.ts +1 -66
- package/gql/fragments/emailFragments.ts +27 -4
- package/gql/fragments/emailOutreachFragments.ts +281 -0
- package/gql/fragments/inboundContactFragments.ts +1 -1
- package/gql/fragments/libraryFragments.ts +120 -0
- package/gql/fragments/organizationFragments.ts +4 -2
- package/gql/fragments/scheduleFragments.ts +241 -324
- package/gql/fragments/sheetFragments.ts +4 -53
- package/gql/fragments/workWaitFragments.ts +13 -0
- package/gql/fragments/workflowFragments.ts +20 -4
- package/gql/mutations/agentNoteMutations.ts +2 -0
- package/gql/mutations/aiChatLinkMutations.ts +13 -0
- package/gql/mutations/aiChatMutations.ts +4 -6
- package/gql/mutations/audienceMutations.ts +0 -13
- package/gql/mutations/authMutations.ts +12 -60
- package/gql/mutations/emailMutations.ts +22 -0
- package/gql/mutations/emailOutreachMutations.ts +139 -0
- package/gql/mutations/index.ts +3 -1
- package/gql/mutations/organizationMutations.ts +2 -2
- package/gql/mutations/scheduleMutations.ts +61 -787
- package/gql/mutations/storageMutations.ts +1 -0
- package/gql/mutations/workflowMutations.ts +76 -0
- package/gql/queries/agentMemoryQueries.ts +6 -2
- package/gql/queries/agentNoteQueries.ts +26 -29
- package/gql/queries/aiChatQueries.ts +39 -40
- package/gql/queries/audienceQueries.ts +31 -55
- package/gql/queries/authQueries.ts +16 -6
- package/gql/queries/billingQueries.ts +26 -10
- package/gql/queries/dataTableQueries.ts +24 -15
- package/gql/queries/emailOutreachQueries.ts +282 -0
- package/gql/queries/emailQueries.ts +39 -12
- package/gql/queries/emailReplyReportQueries.ts +60 -9
- package/gql/queries/fieldDocQueries.ts +36 -14
- package/gql/queries/inboundContactQueries.ts +11 -4
- package/gql/queries/index.ts +2 -2
- package/gql/queries/libraryQueries.ts +112 -0
- package/gql/queries/logQueries.ts +31 -12
- package/gql/queries/organizationQueries.ts +31 -12
- package/gql/queries/qrCodeQueries.ts +11 -4
- package/gql/queries/scheduleQueries.ts +252 -505
- package/gql/queries/sheetQueries.ts +36 -14
- package/gql/queries/storageQueries.ts +11 -4
- package/gql/queries/workflowQueries.ts +53 -10
- package/gql/reactivity.ts +98 -0
- package/gql/recordReads.ts +171 -0
- package/hooks/index.ts +79 -52
- package/hooks/use-agentNote-mtn.ts +7 -0
- package/hooks/use-agentNote-qry.ts +30 -58
- package/hooks/use-agentNote-recovery.ts +6 -21
- package/hooks/use-aiChat-mtn.ts +9 -4
- package/hooks/use-aiChat-qry.ts +28 -7
- package/hooks/use-audience-mtn.ts +0 -24
- package/hooks/use-audience-qry.helpers.ts +0 -24
- package/hooks/use-audience-qry.ts +1 -86
- package/hooks/use-dataTable-mtn.ts +3 -3
- package/hooks/use-dataTable-qry.ts +7 -2
- package/hooks/use-email-mtn.ts +26 -0
- package/hooks/use-email-qry.helpers.ts +1 -1
- package/hooks/use-email-qry.ts +18 -3
- package/hooks/use-emailOutreach-mtn.ts +211 -0
- package/hooks/use-emailOutreach-qry.helpers.ts +25 -0
- package/hooks/use-emailOutreach-qry.ts +367 -0
- package/hooks/use-emailOutreachReplyReport-qry.ts +46 -0
- package/hooks/use-fieldDoc-qry.ts +1 -1
- package/hooks/use-library-qry.ts +233 -0
- package/hooks/use-qrCode-qry.ts +1 -1
- package/hooks/use-schedule-mtn.ts +10 -300
- package/hooks/use-schedule-qry.ts +168 -680
- package/hooks/use-schedule-reactive.ts +71 -339
- package/hooks/use-sheet-qry.ts +6 -1
- package/hooks/use-workflow-mtn.ts +45 -1
- package/hooks/use-workflow-qry.ts +22 -2
- package/libs/ai-chat-link-events.ts +78 -0
- package/libs/data-changes.helpers.ts +161 -0
- package/libs/data-changes.ts +382 -0
- package/libs/fragment-realtime-sequence.ts +3 -3
- package/libs/record-read.ts +327 -0
- package/libs/sheet-command-batch.ts +3 -2
- package/libs/sheet-realtime-packet.ts +53 -0
- package/loaders/emailPreference.ts +18 -24
- package/package.json +44 -17
- package/schedule.d.ts +267 -874
- package/types.d.ts +3 -1
- package/cache/index.chat-activity.test.ts +0 -119
- package/cache/index.chat.test.ts +0 -92
- package/cache/index.regression.test.ts +0 -149
- package/cache/index.test.ts +0 -1209
- package/deno.lock +0 -187
- package/deno.test.json +0 -12
- package/gql/fragments/campaignFragments.ts +0 -566
- package/gql/mutations/campaignMutations.ts +0 -258
- package/gql/queries/appQueries.ts +0 -14
- package/gql/queries/campaignQueries.ts +0 -236
- package/hooks/index.helpers.test.ts +0 -50
- package/hooks/use-agentNote-recovery.helpers.test.ts +0 -68
- package/hooks/use-aiChat-qry.helpers.test.ts +0 -63
- package/hooks/use-app-qry.ts +0 -22
- package/hooks/use-audience-qry.helpers.test.ts +0 -80
- package/hooks/use-campaign-generation-recovery.ts +0 -53
- package/hooks/use-campaign-mtn.ts +0 -436
- package/hooks/use-campaign-qry.helpers.ts +0 -40
- package/hooks/use-campaign-qry.ts +0 -834
- package/hooks/use-emailCampaignReplyReport-qry.ts +0 -27
- package/hooks/use-fieldDoc-qry.helpers.test.ts +0 -65
- package/hooks/use-publicFormEmail-mtn.ts +0 -27
- package/libs/fragment-recovery.test.ts +0 -326
- package/libs/fragment-recovery.ts +0 -325
- package/libs/orchestrator-realtime.helpers.test.ts +0 -229
- package/libs/orchestrator-realtime.helpers.ts +0 -317
- package/libs/orchestrator-realtime.ts +0 -433
- package/libs/request-cache-regression.test.ts +0 -122
- package/libs/request-managed-session.test.ts +0 -574
- package/libs/request-no-store.test.ts +0 -419
- package/libs/sheet-view-realtime-router.test.ts +0 -214
- package/libs/sse-ticket.test.ts +0 -26
- package/loaders/campaign.test.ts +0 -186
- package/loaders/campaign.ts +0 -110
- package/tests/agent-note-detail-cache.test.ts +0 -120
- package/tests/agent-note-search.test.ts +0 -444
- package/tsconfig.json +0 -13
|
@@ -1,566 +0,0 @@
|
|
|
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
|
-
}`;
|