@jsb188/graphql 1.1.11 → 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.
- package/audience.d.ts +343 -0
- package/cache/config.ts +58 -24
- package/cache/index.chat-activity.test.ts +119 -0
- package/cache/index.chat.test.ts +92 -0
- package/cache/index.helpers.ts +96 -0
- package/cache/index.regression.test.ts +149 -0
- package/cache/index.test.ts +370 -42
- package/cache/index.ts +326 -799
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +98 -19
- package/cache/store.ts +22 -64
- package/cache/value.helpers.ts +17 -0
- package/{drafts/store.ts → client/draft-persistence-indexed-db.ts} +19 -3
- package/{drafts/index.ts → client/draft-persistence.ts} +5 -2
- package/client/index.ts +3 -2
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +130 -215
- package/deno.lock +17 -0
- package/deno.test.json +2 -0
- package/gql/fragments/agentMemoryFragments.ts +5 -1
- package/gql/fragments/agentNoteFragments.ts +150 -0
- package/gql/fragments/aiChatFragments.ts +36 -10
- package/gql/fragments/audienceFragments.ts +141 -0
- package/gql/fragments/campaignFragments.ts +415 -126
- package/gql/fragments/dataTableFragments.ts +48 -80
- package/gql/fragments/emailFragments.ts +28 -23
- package/gql/fragments/fieldDocFragments.ts +222 -40
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/logFragments.ts +93 -2
- package/gql/fragments/organizationFragments.ts +10 -0
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +652 -140
- package/gql/fragments/sheetFragments.ts +84 -373
- package/gql/fragments/storageFragments.ts +25 -1
- package/gql/fragments/workflowFragments.ts +13 -1
- package/gql/mutations/agentMemoryMutations.ts +32 -0
- package/gql/mutations/agentNoteMutations.ts +62 -0
- package/gql/mutations/aiChatMutations.ts +36 -4
- package/gql/mutations/audienceMutations.ts +71 -0
- package/gql/mutations/authMutations.ts +45 -1
- package/gql/mutations/billingMutations.ts +24 -0
- package/gql/mutations/campaignMutations.ts +170 -127
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +18 -75
- package/gql/mutations/fieldDocMutations.ts +162 -13
- package/gql/mutations/index.ts +8 -5
- package/gql/mutations/organizationMutations.ts +6 -0
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +1052 -354
- package/gql/mutations/sheetMutations.ts +62 -118
- package/gql/mutations/storageMutations.ts +0 -1
- package/gql/mutations/workflowMutations.ts +18 -0
- package/gql/queries/agentMemoryQueries.ts +6 -0
- package/gql/queries/agentNoteQueries.ts +89 -0
- package/gql/queries/aiChatQueries.ts +56 -4
- package/gql/queries/audienceQueries.ts +128 -0
- package/gql/queries/authQueries.ts +6 -0
- package/gql/queries/billingQueries.ts +95 -6
- package/gql/queries/campaignQueries.ts +132 -23
- package/gql/queries/dataTableQueries.ts +24 -65
- package/gql/queries/emailQueries.ts +18 -61
- package/gql/queries/emailReplyReportQueries.ts +76 -0
- package/gql/queries/fieldDocQueries.ts +100 -92
- package/gql/queries/inboundContactQueries.ts +4 -0
- package/gql/queries/index.ts +3 -1
- package/gql/queries/logQueries.ts +62 -7
- package/gql/queries/organizationQueries.ts +13 -0
- package/gql/queries/qrCodeQueries.ts +20 -0
- package/gql/queries/scheduleQueries.ts +633 -257
- package/gql/queries/sheetQueries.ts +59 -152
- package/gql/queries/workflowQueries.ts +10 -4
- package/hooks/index.helpers.test.ts +50 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +863 -685
- package/hooks/use-agentMemory-mtn.ts +29 -31
- package/hooks/use-agentMemory-qry.ts +15 -3
- package/hooks/use-agentNote-mtn.ts +82 -0
- package/hooks/use-agentNote-qry.ts +190 -0
- package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
- package/hooks/use-agentNote-recovery.helpers.ts +58 -0
- package/hooks/use-agentNote-recovery.ts +72 -0
- package/hooks/use-aiChat-mtn.ts +96 -112
- package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
- package/hooks/use-aiChat-qry.helpers.ts +124 -0
- package/hooks/use-aiChat-qry.ts +229 -383
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- package/hooks/use-audience-mtn.ts +194 -0
- package/hooks/use-audience-qry.helpers.test.ts +80 -0
- package/hooks/use-audience-qry.helpers.ts +63 -0
- package/hooks/use-audience-qry.ts +330 -0
- package/hooks/use-auth-mtn.ts +30 -1
- package/hooks/use-billing-mtn.ts +31 -0
- package/hooks/use-billing-qry.ts +76 -0
- package/hooks/use-campaign-generation-recovery.ts +53 -0
- package/hooks/use-campaign-mtn.ts +224 -165
- package/hooks/use-campaign-qry.helpers.ts +40 -0
- package/hooks/use-campaign-qry.ts +631 -54
- package/hooks/use-dataTable-mtn.ts +23 -115
- package/hooks/use-dataTable-qry.ts +66 -916
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +33 -178
- package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
- package/hooks/use-fieldDoc-mtn.ts +244 -32
- package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
- package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
- package/hooks/use-fieldDoc-qry.ts +134 -102
- package/hooks/use-inboundContact-qry.ts +7 -9
- package/hooks/use-log-mtn.ts +25 -12
- package/hooks/use-log-qry.ts +99 -46
- package/hooks/use-organization-qry.ts +16 -60
- package/hooks/use-publicFormEmail-mtn.ts +27 -0
- package/hooks/use-qrCode-mtn.ts +40 -0
- package/hooks/use-qrCode-qry.ts +78 -0
- package/hooks/use-schedule-mtn.ts +506 -333
- package/hooks/use-schedule-qry.ts +682 -101
- package/hooks/use-schedule-reactive.ts +486 -0
- package/hooks/use-sheet-mtn.ts +91 -199
- package/hooks/use-sheet-qry.ts +84 -238
- package/hooks/use-storage-qry.ts +84 -61
- package/hooks/use-workflow-mtn.ts +39 -22
- package/hooks/use-workflow-qry.ts +40 -61
- package/libs/ai-chat-outgoing.helpers.ts +153 -0
- package/libs/ai-chat-outgoing.ts +11 -0
- package/libs/ai-chat-outgoing.types.ts +25 -0
- package/libs/ai-chat-run-realtime.ts +20 -0
- package/libs/ai-chat-submission-realtime.ts +150 -0
- package/libs/fragment-realtime-sequence.ts +55 -0
- package/libs/fragment-recovery.test.ts +326 -0
- package/libs/fragment-recovery.ts +325 -0
- package/libs/open-sheet.ts +138 -0
- package/libs/orchestrator-realtime.helpers.test.ts +229 -0
- package/libs/orchestrator-realtime.helpers.ts +317 -0
- package/libs/orchestrator-realtime.ts +433 -0
- package/libs/request-cache-regression.test.ts +122 -0
- package/{client → libs}/request-managed-session.test.ts +1 -1
- package/libs/request-no-store.test.ts +419 -0
- package/libs/sheet-command-batch.ts +44 -0
- package/libs/sheet-view-realtime-router.test.ts +214 -0
- package/libs/sheet-view-realtime-router.ts +99 -0
- package/loaders/campaign.test.ts +186 -0
- package/loaders/campaign.ts +56 -83
- package/loaders/emailPreference.ts +75 -0
- package/loaders/rest.ts +12 -0
- package/package.json +42 -17
- package/schedule.d.ts +1790 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +26 -115
- package/tests/agent-note-detail-cache.test.ts +120 -0
- package/tests/agent-note-search.test.ts +444 -0
- package/types.d.ts +46 -25
- package/client/data-table-realtime-subscriptions.test.ts +0 -740
- package/client/data-table-realtime-subscriptions.ts +0 -955
- package/client/data-table-realtime.test.ts +0 -792
- package/client/data-table-realtime.ts +0 -1218
- package/client/fragment-realtime-sequence.ts +0 -52
- package/client/open-sheet.ts +0 -137
- package/client/request-no-store.test.ts +0 -157
- package/gql/fragments/agentDocFragments.ts +0 -46
- package/gql/fragments/billingFragments.ts +0 -14
- package/gql/mutations/agentDocMutations.ts +0 -177
- package/gql/queries/agentDocQueries.ts +0 -120
- package/hooks/use-agentDoc-mtn.ts +0 -285
- package/hooks/use-agentDoc-qry.ts +0 -208
- /package/{client → libs}/sse-ticket.test.ts +0 -0
|
@@ -8,6 +8,7 @@ export const sheetFragment = `fragment sheetFragment on Sheet {
|
|
|
8
8
|
description
|
|
9
9
|
position
|
|
10
10
|
deletedAt
|
|
11
|
+
manifestRevision
|
|
11
12
|
|
|
12
13
|
editor {
|
|
13
14
|
textColors
|
|
@@ -38,6 +39,7 @@ export const sheetTabFragment = `fragment sheetTabFragment on SheetTab {
|
|
|
38
39
|
|
|
39
40
|
name
|
|
40
41
|
position
|
|
42
|
+
hidden
|
|
41
43
|
cellsRevision
|
|
42
44
|
designRevision
|
|
43
45
|
|
|
@@ -94,54 +96,45 @@ export const sheetTabFragment = `fragment sheetTabFragment on SheetTab {
|
|
|
94
96
|
updatedAt
|
|
95
97
|
}`;
|
|
96
98
|
|
|
97
|
-
export const
|
|
99
|
+
export const sheetTabMutationTabFragment = `fragment sheetTabMutationTabFragment on SheetTabMutationTab {
|
|
98
100
|
id
|
|
101
|
+
organizationId
|
|
102
|
+
sheetId
|
|
99
103
|
name
|
|
100
104
|
position
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
hidden
|
|
106
|
+
cellsRevision
|
|
107
|
+
designRevision
|
|
108
|
+
createdAt
|
|
103
109
|
updatedAt
|
|
104
110
|
}`;
|
|
105
111
|
|
|
106
|
-
export const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
export const sheetTabMutationResultFragment = `fragment sheetTabMutationResultFragment on SheetTabMutationResult {
|
|
113
|
+
changed
|
|
114
|
+
commandId
|
|
115
|
+
deletedSheetTabId
|
|
116
|
+
manifestRevision
|
|
117
|
+
replayed
|
|
112
118
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
humansCannotEdit
|
|
117
|
-
rowIdentifier
|
|
119
|
+
tab {
|
|
120
|
+
...sheetTabMutationTabFragment
|
|
121
|
+
}
|
|
118
122
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
label
|
|
122
|
-
humanLabel
|
|
123
|
-
iconName
|
|
124
|
-
fieldType
|
|
125
|
-
format
|
|
126
|
-
openLink
|
|
127
|
-
humansOnly
|
|
128
|
-
humansCannotEdit
|
|
129
|
-
hidden
|
|
130
|
-
indexed
|
|
131
|
-
width
|
|
132
|
-
|
|
133
|
-
source {
|
|
134
|
-
path
|
|
135
|
-
table
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
options {
|
|
139
|
-
label
|
|
140
|
-
value
|
|
141
|
-
color
|
|
142
|
-
}
|
|
143
|
-
}
|
|
123
|
+
tabs {
|
|
124
|
+
...sheetTabMutationTabFragment
|
|
144
125
|
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
${sheetTabMutationTabFragment}`;
|
|
129
|
+
|
|
130
|
+
export const sheetTabSummaryFragment = `fragment sheetTabSummaryFragment on SheetTabSummary {
|
|
131
|
+
id
|
|
132
|
+
name
|
|
133
|
+
position
|
|
134
|
+
hidden
|
|
135
|
+
currentSeq
|
|
136
|
+
referencedTabIds
|
|
137
|
+
updatedAt
|
|
145
138
|
}`;
|
|
146
139
|
|
|
147
140
|
export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
@@ -153,6 +146,7 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
|
153
146
|
rowIndex
|
|
154
147
|
columnIndex
|
|
155
148
|
rawInput
|
|
149
|
+
literalType
|
|
156
150
|
formulaText
|
|
157
151
|
compiledFormula {
|
|
158
152
|
version
|
|
@@ -174,24 +168,6 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
|
174
168
|
sheetTabId
|
|
175
169
|
status
|
|
176
170
|
}
|
|
177
|
-
dataTableCells {
|
|
178
|
-
dataTableName
|
|
179
|
-
cellKey
|
|
180
|
-
rowIdentifier
|
|
181
|
-
text
|
|
182
|
-
}
|
|
183
|
-
dataTableQueries {
|
|
184
|
-
dataTableName
|
|
185
|
-
cellKey
|
|
186
|
-
conditions {
|
|
187
|
-
cellKey
|
|
188
|
-
operator
|
|
189
|
-
isStatic
|
|
190
|
-
staticValue
|
|
191
|
-
text
|
|
192
|
-
}
|
|
193
|
-
text
|
|
194
|
-
}
|
|
195
171
|
diagnostics {
|
|
196
172
|
code
|
|
197
173
|
message
|
|
@@ -209,67 +185,7 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
|
209
185
|
errorMessage
|
|
210
186
|
computedAt
|
|
211
187
|
revision
|
|
212
|
-
sourceDataTableRowId
|
|
213
|
-
sourceCellKey
|
|
214
|
-
sourceColumnId
|
|
215
|
-
|
|
216
|
-
sourceMeta {
|
|
217
|
-
relatedTable
|
|
218
|
-
relatedId
|
|
219
|
-
referenceStatus
|
|
220
|
-
iconName
|
|
221
|
-
}
|
|
222
|
-
style {
|
|
223
|
-
fontSize
|
|
224
|
-
textColor
|
|
225
|
-
fillColor
|
|
226
|
-
textWrap
|
|
227
|
-
textAlign
|
|
228
|
-
verticalAlign
|
|
229
|
-
disableMarkdown
|
|
230
|
-
bold
|
|
231
|
-
italic
|
|
232
|
-
underline
|
|
233
|
-
strikethrough
|
|
234
|
-
borderTopWidth
|
|
235
|
-
borderTopColor
|
|
236
|
-
borderTopStyle
|
|
237
|
-
borderRightWidth
|
|
238
|
-
borderRightColor
|
|
239
|
-
borderRightStyle
|
|
240
|
-
borderBottomWidth
|
|
241
|
-
borderBottomColor
|
|
242
|
-
borderBottomStyle
|
|
243
|
-
borderLeftWidth
|
|
244
|
-
borderLeftColor
|
|
245
|
-
borderLeftStyle
|
|
246
|
-
}
|
|
247
|
-
format
|
|
248
|
-
note
|
|
249
|
-
sourceType
|
|
250
|
-
regionId
|
|
251
|
-
region {
|
|
252
|
-
regionId
|
|
253
|
-
sourceRowId
|
|
254
|
-
sourceCellKey
|
|
255
|
-
sourceColumnId
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
createdAt
|
|
259
|
-
updatedAt
|
|
260
|
-
}`;
|
|
261
|
-
|
|
262
|
-
export const sheetRangeFragment = `fragment sheetRangeFragment on SheetRange {
|
|
263
|
-
id
|
|
264
|
-
organizationId
|
|
265
|
-
sheetId
|
|
266
|
-
sheetTabId
|
|
267
188
|
|
|
268
|
-
startRowIndex
|
|
269
|
-
startColumnIndex
|
|
270
|
-
endRowIndex
|
|
271
|
-
endColumnIndex
|
|
272
|
-
position
|
|
273
189
|
style {
|
|
274
190
|
fontSize
|
|
275
191
|
textColor
|
|
@@ -296,89 +212,18 @@ export const sheetRangeFragment = `fragment sheetRangeFragment on SheetRange {
|
|
|
296
212
|
borderLeftStyle
|
|
297
213
|
}
|
|
298
214
|
format
|
|
299
|
-
|
|
215
|
+
note
|
|
300
216
|
|
|
301
217
|
createdAt
|
|
302
218
|
updatedAt
|
|
303
219
|
}`;
|
|
304
220
|
|
|
305
|
-
const sheetRegionSourceFilterConditionFields = `
|
|
306
|
-
cellKey
|
|
307
|
-
columnId
|
|
308
|
-
operator
|
|
309
|
-
textValue
|
|
310
|
-
textValues
|
|
311
|
-
numberValue
|
|
312
|
-
booleanValue
|
|
313
|
-
dateValue
|
|
314
|
-
datetimeValue`;
|
|
315
|
-
|
|
316
221
|
/*
|
|
317
|
-
*
|
|
222
|
+
* Shape of one websocket $sheetViewFragment packet (wire contract v3). The
|
|
223
|
+
* client routes these packets straight to its tab stores, never through the
|
|
224
|
+
* fragment cache; chunkIndex/chunkCount position one chunk of a packet whose
|
|
225
|
+
* chunks share fromSeq/toSeq.
|
|
318
226
|
*/
|
|
319
|
-
function getSheetRegionSourceFilterSelection(depth: number): string {
|
|
320
|
-
return `
|
|
321
|
-
combinator
|
|
322
|
-
conditions {
|
|
323
|
-
${sheetRegionSourceFilterConditionFields}
|
|
324
|
-
}
|
|
325
|
-
${
|
|
326
|
-
depth > 1
|
|
327
|
-
? `groups {
|
|
328
|
-
${getSheetRegionSourceFilterSelection(depth - 1)}
|
|
329
|
-
}`
|
|
330
|
-
: ''
|
|
331
|
-
}`;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export const sheetRegionFragment = `fragment sheetRegionFragment on SheetRegion {
|
|
335
|
-
id
|
|
336
|
-
organizationId
|
|
337
|
-
sheetId
|
|
338
|
-
sheetTabId
|
|
339
|
-
|
|
340
|
-
type
|
|
341
|
-
startRowIndex
|
|
342
|
-
startColumnIndex
|
|
343
|
-
active
|
|
344
|
-
definitionRevision
|
|
345
|
-
projectionRevision
|
|
346
|
-
projectionStatus
|
|
347
|
-
syncRevision
|
|
348
|
-
|
|
349
|
-
source {
|
|
350
|
-
type
|
|
351
|
-
identityVersion
|
|
352
|
-
dataTableId
|
|
353
|
-
filter {
|
|
354
|
-
${getSheetRegionSourceFilterSelection(3)}
|
|
355
|
-
}
|
|
356
|
-
sort {
|
|
357
|
-
cellKey
|
|
358
|
-
columnId
|
|
359
|
-
direction
|
|
360
|
-
}
|
|
361
|
-
includeRowIds
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
columns {
|
|
365
|
-
kind
|
|
366
|
-
sourceCellKey
|
|
367
|
-
sourceColumnId
|
|
368
|
-
sourceColumnIds
|
|
369
|
-
formulaText
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
options {
|
|
373
|
-
conflictPolicy
|
|
374
|
-
endRowIndex
|
|
375
|
-
includeHeaderRow
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
createdAt
|
|
379
|
-
updatedAt
|
|
380
|
-
}`;
|
|
381
|
-
|
|
382
227
|
export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
|
|
383
228
|
id
|
|
384
229
|
sheetId
|
|
@@ -400,83 +245,45 @@ export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
|
|
|
400
245
|
designRevision
|
|
401
246
|
fromSeq
|
|
402
247
|
toSeq
|
|
248
|
+
chunkIndex
|
|
249
|
+
chunkCount
|
|
403
250
|
originActorAccountId
|
|
404
251
|
originClientId
|
|
405
|
-
purgedRegionIds
|
|
406
|
-
regionUpserts {
|
|
407
|
-
...sheetRegionFragment
|
|
408
|
-
}
|
|
409
252
|
requiresSnapshot
|
|
410
253
|
|
|
411
|
-
commandAck {
|
|
412
|
-
actorAccountId
|
|
413
|
-
commandId
|
|
414
|
-
commandType
|
|
415
|
-
sessionId
|
|
416
|
-
commandStatus
|
|
417
|
-
replayed
|
|
418
|
-
requiresSnapshot
|
|
419
|
-
axisMoveOps {
|
|
420
|
-
schemaVersion
|
|
421
|
-
commandId
|
|
422
|
-
sheetTabId
|
|
423
|
-
axis
|
|
424
|
-
sourceStartIndex
|
|
425
|
-
sourceEndIndex
|
|
426
|
-
targetStartIndex
|
|
427
|
-
baseRevision
|
|
428
|
-
resultRevision
|
|
429
|
-
baseDesignRevision
|
|
430
|
-
resultDesignRevision
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
tabRevisions {
|
|
434
|
-
sheetTabId
|
|
435
|
-
baseRevision
|
|
436
|
-
resultRevision
|
|
437
|
-
baseDesignRevision
|
|
438
|
-
resultDesignRevision
|
|
439
|
-
journalFromSeq
|
|
440
|
-
journalToSeq
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
conflict {
|
|
444
|
-
code
|
|
445
|
-
message
|
|
446
|
-
historyBoundary
|
|
447
|
-
invalidatesTargetCommandId
|
|
448
|
-
targetType
|
|
449
|
-
targetKey
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
|
|
453
254
|
commandBatchAck {
|
|
454
255
|
actorAccountId
|
|
455
256
|
envelopeId
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
clientId
|
|
460
|
-
envelopeId
|
|
461
|
-
previewSeq
|
|
462
|
-
serverSeq
|
|
463
|
-
sheetTabId
|
|
464
|
-
targetKeys
|
|
465
|
-
}
|
|
257
|
+
clientId
|
|
258
|
+
committedCommandIds
|
|
259
|
+
noWriteCommandIds
|
|
466
260
|
}
|
|
467
261
|
|
|
468
262
|
sheetTab {
|
|
469
263
|
...sheetTabFragment
|
|
470
264
|
}
|
|
471
265
|
|
|
472
|
-
ranges {
|
|
473
|
-
...sheetRangeFragment
|
|
474
|
-
}
|
|
475
|
-
|
|
476
266
|
cellsDelta {
|
|
477
267
|
...sheetCellFragment
|
|
478
268
|
}
|
|
479
269
|
|
|
270
|
+
cellsComputedDelta {
|
|
271
|
+
id
|
|
272
|
+
sheetTabId
|
|
273
|
+
rowIndex
|
|
274
|
+
columnIndex
|
|
275
|
+
revision
|
|
276
|
+
value
|
|
277
|
+
textValue
|
|
278
|
+
numberValue
|
|
279
|
+
booleanValue
|
|
280
|
+
dateValue
|
|
281
|
+
datetimeValue
|
|
282
|
+
errorCode
|
|
283
|
+
errorMessage
|
|
284
|
+
computedAt
|
|
285
|
+
}
|
|
286
|
+
|
|
480
287
|
deletedCellCoords {
|
|
481
288
|
sheetTabId
|
|
482
289
|
rowIndex
|
|
@@ -499,9 +306,10 @@ export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
|
|
|
499
306
|
}`;
|
|
500
307
|
|
|
501
308
|
/*
|
|
502
|
-
* Authoritative command payload
|
|
503
|
-
*
|
|
504
|
-
*
|
|
309
|
+
* Authoritative command payload returned by editSheetCommandBatch. The
|
|
310
|
+
* mutation is no-store: the client applies these patches to its tab stores.
|
|
311
|
+
* pageInfo is intentionally absent (a patch owns no pagination state), and
|
|
312
|
+
* chunk metadata exists only on websocket packets.
|
|
505
313
|
*/
|
|
506
314
|
export const sheetViewPatchFragment = `fragment sheetViewPatchFragment on SheetView {
|
|
507
315
|
id
|
|
@@ -526,132 +334,39 @@ export const sheetViewPatchFragment = `fragment sheetViewPatchFragment on SheetV
|
|
|
526
334
|
toSeq
|
|
527
335
|
originActorAccountId
|
|
528
336
|
originClientId
|
|
529
|
-
purgedRegionIds
|
|
530
|
-
regionUpserts {
|
|
531
|
-
...sheetRegionFragment
|
|
532
|
-
}
|
|
533
337
|
requiresSnapshot
|
|
534
338
|
|
|
535
|
-
commandAck {
|
|
536
|
-
actorAccountId
|
|
537
|
-
commandId
|
|
538
|
-
commandType
|
|
539
|
-
sessionId
|
|
540
|
-
commandStatus
|
|
541
|
-
replayed
|
|
542
|
-
requiresSnapshot
|
|
543
|
-
axisMoveOps {
|
|
544
|
-
schemaVersion
|
|
545
|
-
commandId
|
|
546
|
-
sheetTabId
|
|
547
|
-
axis
|
|
548
|
-
sourceStartIndex
|
|
549
|
-
sourceEndIndex
|
|
550
|
-
targetStartIndex
|
|
551
|
-
baseRevision
|
|
552
|
-
resultRevision
|
|
553
|
-
baseDesignRevision
|
|
554
|
-
resultDesignRevision
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
tabRevisions {
|
|
558
|
-
sheetTabId
|
|
559
|
-
baseRevision
|
|
560
|
-
resultRevision
|
|
561
|
-
baseDesignRevision
|
|
562
|
-
resultDesignRevision
|
|
563
|
-
journalFromSeq
|
|
564
|
-
journalToSeq
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
conflict {
|
|
568
|
-
code
|
|
569
|
-
message
|
|
570
|
-
historyBoundary
|
|
571
|
-
invalidatesTargetCommandId
|
|
572
|
-
targetType
|
|
573
|
-
targetKey
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
|
|
577
339
|
commandBatchAck {
|
|
578
340
|
actorAccountId
|
|
579
341
|
envelopeId
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
clientId
|
|
584
|
-
envelopeId
|
|
585
|
-
previewSeq
|
|
586
|
-
serverSeq
|
|
587
|
-
sheetTabId
|
|
588
|
-
targetKeys
|
|
589
|
-
}
|
|
342
|
+
clientId
|
|
343
|
+
committedCommandIds
|
|
344
|
+
noWriteCommandIds
|
|
590
345
|
}
|
|
591
346
|
|
|
592
347
|
sheetTab {
|
|
593
348
|
...sheetTabFragment
|
|
594
349
|
}
|
|
595
350
|
|
|
596
|
-
ranges {
|
|
597
|
-
...sheetRangeFragment
|
|
598
|
-
}
|
|
599
|
-
|
|
600
351
|
cellsDelta {
|
|
601
352
|
...sheetCellFragment
|
|
602
353
|
}
|
|
603
354
|
|
|
604
|
-
|
|
355
|
+
cellsComputedDelta {
|
|
356
|
+
id
|
|
605
357
|
sheetTabId
|
|
606
358
|
rowIndex
|
|
607
359
|
columnIndex
|
|
608
|
-
id
|
|
609
360
|
revision
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
export const sheetCommandResultFragment = `fragment sheetCommandResultFragment on SheetCommandResult {
|
|
621
|
-
commandId
|
|
622
|
-
commandStatus
|
|
623
|
-
replayed
|
|
624
|
-
requiresSnapshot
|
|
625
|
-
axisMoveOps {
|
|
626
|
-
schemaVersion
|
|
627
|
-
commandId
|
|
628
|
-
sheetTabId
|
|
629
|
-
axis
|
|
630
|
-
sourceStartIndex
|
|
631
|
-
sourceEndIndex
|
|
632
|
-
targetStartIndex
|
|
633
|
-
baseRevision
|
|
634
|
-
resultRevision
|
|
635
|
-
baseDesignRevision
|
|
636
|
-
resultDesignRevision
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
tabRevisions {
|
|
640
|
-
sheetTabId
|
|
641
|
-
baseRevision
|
|
642
|
-
resultRevision
|
|
643
|
-
baseDesignRevision
|
|
644
|
-
resultDesignRevision
|
|
645
|
-
journalFromSeq
|
|
646
|
-
journalToSeq
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
affectedCells {
|
|
650
|
-
...sheetCellFragment
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
affectedRegions {
|
|
654
|
-
...sheetRegionFragment
|
|
361
|
+
value
|
|
362
|
+
textValue
|
|
363
|
+
numberValue
|
|
364
|
+
booleanValue
|
|
365
|
+
dateValue
|
|
366
|
+
datetimeValue
|
|
367
|
+
errorCode
|
|
368
|
+
errorMessage
|
|
369
|
+
computedAt
|
|
655
370
|
}
|
|
656
371
|
|
|
657
372
|
deletedCellCoords {
|
|
@@ -662,14 +377,10 @@ export const sheetCommandResultFragment = `fragment sheetCommandResultFragment o
|
|
|
662
377
|
revision
|
|
663
378
|
}
|
|
664
379
|
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
targetType
|
|
671
|
-
targetKey
|
|
380
|
+
structureOps {
|
|
381
|
+
opId
|
|
382
|
+
operation
|
|
383
|
+
index
|
|
384
|
+
structureSeq
|
|
672
385
|
}
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
${sheetRegionFragment}`;
|
|
386
|
+
}`;
|
|
@@ -8,6 +8,15 @@ export const storageFileFragment = `fragment storageFileFragment on StorageFile
|
|
|
8
8
|
name
|
|
9
9
|
description
|
|
10
10
|
aiNote
|
|
11
|
+
imageData {
|
|
12
|
+
width
|
|
13
|
+
height
|
|
14
|
+
aspectRatio
|
|
15
|
+
dominantColor
|
|
16
|
+
averageColor
|
|
17
|
+
luminance
|
|
18
|
+
isOpaque
|
|
19
|
+
}
|
|
11
20
|
|
|
12
21
|
# client-side required fields
|
|
13
22
|
uploadStatus
|
|
@@ -20,8 +29,12 @@ export const generatedFileFragment = `fragment generatedFileFragment on Generate
|
|
|
20
29
|
fileDescription
|
|
21
30
|
summaryReport
|
|
22
31
|
status
|
|
23
|
-
|
|
32
|
+
generationStage
|
|
33
|
+
progressVersion
|
|
34
|
+
requestedDeliveryChannel
|
|
35
|
+
deliveryStatus
|
|
24
36
|
deliveredVia
|
|
37
|
+
visibility
|
|
25
38
|
downloadCount
|
|
26
39
|
lastDownloadedAt
|
|
27
40
|
activeLinkExpiresAt
|
|
@@ -31,4 +44,15 @@ export const generatedFileFragment = `fragment generatedFileFragment on Generate
|
|
|
31
44
|
updatedAt
|
|
32
45
|
createdByName
|
|
33
46
|
hasFile
|
|
47
|
+
recoveryChatId
|
|
48
|
+
qualityReport {
|
|
49
|
+
version
|
|
50
|
+
status
|
|
51
|
+
category
|
|
52
|
+
reason
|
|
53
|
+
nextAction
|
|
54
|
+
question
|
|
55
|
+
affectedColumns
|
|
56
|
+
caveats
|
|
57
|
+
}
|
|
34
58
|
}`;
|
|
@@ -2,6 +2,18 @@ export const workflowFragment = `fragment workflowFragment on Workflow {
|
|
|
2
2
|
id
|
|
3
3
|
organizationId
|
|
4
4
|
fieldDocId
|
|
5
|
+
programManaged
|
|
6
|
+
fieldDocProgramId
|
|
7
|
+
userInstructions
|
|
8
|
+
catalogInstructions
|
|
9
|
+
agentNoteId
|
|
10
|
+
agentNote {
|
|
11
|
+
id
|
|
12
|
+
kind
|
|
13
|
+
headline
|
|
14
|
+
emoji
|
|
15
|
+
archivedAt
|
|
16
|
+
}
|
|
5
17
|
|
|
6
18
|
kind
|
|
7
19
|
triggerType
|
|
@@ -18,9 +30,9 @@ export const workflowFragment = `fragment workflowFragment on Workflow {
|
|
|
18
30
|
cursor
|
|
19
31
|
|
|
20
32
|
title
|
|
33
|
+
reminderContent
|
|
21
34
|
|
|
22
35
|
steps {
|
|
23
|
-
iconName
|
|
24
36
|
label
|
|
25
37
|
value
|
|
26
38
|
}
|
|
@@ -1,11 +1,41 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import { agentMemoryFragment } from '../fragments/agentMemoryFragments.ts';
|
|
3
3
|
|
|
4
|
+
export const createAgentMemoryMtn = gql`
|
|
5
|
+
mutation createAgentMemory (
|
|
6
|
+
$organizationId: GenericID!
|
|
7
|
+
$scope: AgentMemoryScope!
|
|
8
|
+
$accountId: GenericID
|
|
9
|
+
$inboundContactId: GenericID
|
|
10
|
+
$category: AgentMemoryCategory
|
|
11
|
+
$content: String!
|
|
12
|
+
$surface: [AgentMemorySurface!]
|
|
13
|
+
$permanent: Boolean
|
|
14
|
+
) {
|
|
15
|
+
createAgentMemory (
|
|
16
|
+
organizationId: $organizationId
|
|
17
|
+
scope: $scope
|
|
18
|
+
accountId: $accountId
|
|
19
|
+
inboundContactId: $inboundContactId
|
|
20
|
+
category: $category
|
|
21
|
+
content: $content
|
|
22
|
+
surface: $surface
|
|
23
|
+
permanent: $permanent
|
|
24
|
+
) {
|
|
25
|
+
...agentMemoryFragment
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${agentMemoryFragment}
|
|
30
|
+
`;
|
|
31
|
+
|
|
4
32
|
export const editAgentMemoryMtn = gql`
|
|
5
33
|
mutation editAgentMemory (
|
|
6
34
|
$organizationId: GenericID!
|
|
7
35
|
$agentMemoryId: GenericID!
|
|
8
36
|
$content: String
|
|
37
|
+
$category: AgentMemoryCategory
|
|
38
|
+
$surface: [AgentMemorySurface!]
|
|
9
39
|
$permanent: Boolean
|
|
10
40
|
$status: AgentMemoryStatus
|
|
11
41
|
) {
|
|
@@ -13,6 +43,8 @@ mutation editAgentMemory (
|
|
|
13
43
|
organizationId: $organizationId
|
|
14
44
|
agentMemoryId: $agentMemoryId
|
|
15
45
|
content: $content
|
|
46
|
+
category: $category
|
|
47
|
+
surface: $surface
|
|
16
48
|
permanent: $permanent
|
|
17
49
|
status: $status
|
|
18
50
|
) {
|