@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.
Files changed (165) hide show
  1. package/audience.d.ts +343 -0
  2. package/cache/config.ts +58 -24
  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 +370 -42
  8. package/cache/index.ts +326 -799
  9. package/cache/optimistic-ui-runtime.ts +46 -0
  10. package/cache/optimistic-ui.ts +401 -0
  11. package/cache/persist.ts +98 -19
  12. package/cache/store.ts +22 -64
  13. package/cache/value.helpers.ts +17 -0
  14. package/{drafts/store.ts → client/draft-persistence-indexed-db.ts} +19 -3
  15. package/{drafts/index.ts → client/draft-persistence.ts} +5 -2
  16. package/client/index.ts +3 -2
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +130 -215
  19. package/deno.lock +17 -0
  20. package/deno.test.json +2 -0
  21. package/gql/fragments/agentMemoryFragments.ts +5 -1
  22. package/gql/fragments/agentNoteFragments.ts +150 -0
  23. package/gql/fragments/aiChatFragments.ts +36 -10
  24. package/gql/fragments/audienceFragments.ts +141 -0
  25. package/gql/fragments/campaignFragments.ts +415 -126
  26. package/gql/fragments/dataTableFragments.ts +48 -80
  27. package/gql/fragments/emailFragments.ts +28 -23
  28. package/gql/fragments/fieldDocFragments.ts +222 -40
  29. package/gql/fragments/inboundContactFragments.ts +2 -0
  30. package/gql/fragments/logFragments.ts +93 -2
  31. package/gql/fragments/organizationFragments.ts +10 -0
  32. package/gql/fragments/qrCodeFragments.ts +29 -0
  33. package/gql/fragments/scheduleFragments.ts +652 -140
  34. package/gql/fragments/sheetFragments.ts +84 -373
  35. package/gql/fragments/storageFragments.ts +25 -1
  36. package/gql/fragments/workflowFragments.ts +13 -1
  37. package/gql/mutations/agentMemoryMutations.ts +32 -0
  38. package/gql/mutations/agentNoteMutations.ts +62 -0
  39. package/gql/mutations/aiChatMutations.ts +36 -4
  40. package/gql/mutations/audienceMutations.ts +71 -0
  41. package/gql/mutations/authMutations.ts +45 -1
  42. package/gql/mutations/billingMutations.ts +24 -0
  43. package/gql/mutations/campaignMutations.ts +170 -127
  44. package/gql/mutations/contactMutations.ts +23 -0
  45. package/gql/mutations/dataTableMutations.ts +18 -75
  46. package/gql/mutations/fieldDocMutations.ts +162 -13
  47. package/gql/mutations/index.ts +8 -5
  48. package/gql/mutations/organizationMutations.ts +6 -0
  49. package/gql/mutations/qrCodeMutations.ts +20 -0
  50. package/gql/mutations/scheduleMutations.ts +1052 -354
  51. package/gql/mutations/sheetMutations.ts +62 -118
  52. package/gql/mutations/storageMutations.ts +0 -1
  53. package/gql/mutations/workflowMutations.ts +18 -0
  54. package/gql/queries/agentMemoryQueries.ts +6 -0
  55. package/gql/queries/agentNoteQueries.ts +89 -0
  56. package/gql/queries/aiChatQueries.ts +56 -4
  57. package/gql/queries/audienceQueries.ts +128 -0
  58. package/gql/queries/authQueries.ts +6 -0
  59. package/gql/queries/billingQueries.ts +95 -6
  60. package/gql/queries/campaignQueries.ts +132 -23
  61. package/gql/queries/dataTableQueries.ts +24 -65
  62. package/gql/queries/emailQueries.ts +18 -61
  63. package/gql/queries/emailReplyReportQueries.ts +76 -0
  64. package/gql/queries/fieldDocQueries.ts +100 -92
  65. package/gql/queries/inboundContactQueries.ts +4 -0
  66. package/gql/queries/index.ts +3 -1
  67. package/gql/queries/logQueries.ts +62 -7
  68. package/gql/queries/organizationQueries.ts +13 -0
  69. package/gql/queries/qrCodeQueries.ts +20 -0
  70. package/gql/queries/scheduleQueries.ts +633 -257
  71. package/gql/queries/sheetQueries.ts +59 -152
  72. package/gql/queries/workflowQueries.ts +10 -4
  73. package/hooks/index.helpers.test.ts +50 -0
  74. package/hooks/index.helpers.ts +52 -0
  75. package/hooks/index.ts +863 -685
  76. package/hooks/use-agentMemory-mtn.ts +29 -31
  77. package/hooks/use-agentMemory-qry.ts +15 -3
  78. package/hooks/use-agentNote-mtn.ts +82 -0
  79. package/hooks/use-agentNote-qry.ts +190 -0
  80. package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
  81. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  82. package/hooks/use-agentNote-recovery.ts +72 -0
  83. package/hooks/use-aiChat-mtn.ts +96 -112
  84. package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
  85. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  86. package/hooks/use-aiChat-qry.ts +229 -383
  87. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  88. package/hooks/use-audience-mtn.ts +194 -0
  89. package/hooks/use-audience-qry.helpers.test.ts +80 -0
  90. package/hooks/use-audience-qry.helpers.ts +63 -0
  91. package/hooks/use-audience-qry.ts +330 -0
  92. package/hooks/use-auth-mtn.ts +30 -1
  93. package/hooks/use-billing-mtn.ts +31 -0
  94. package/hooks/use-billing-qry.ts +76 -0
  95. package/hooks/use-campaign-generation-recovery.ts +53 -0
  96. package/hooks/use-campaign-mtn.ts +224 -165
  97. package/hooks/use-campaign-qry.helpers.ts +40 -0
  98. package/hooks/use-campaign-qry.ts +631 -54
  99. package/hooks/use-dataTable-mtn.ts +23 -115
  100. package/hooks/use-dataTable-qry.ts +66 -916
  101. package/hooks/use-email-qry.helpers.ts +37 -0
  102. package/hooks/use-email-qry.ts +33 -178
  103. package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
  104. package/hooks/use-fieldDoc-mtn.ts +244 -32
  105. package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
  106. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  107. package/hooks/use-fieldDoc-qry.ts +134 -102
  108. package/hooks/use-inboundContact-qry.ts +7 -9
  109. package/hooks/use-log-mtn.ts +25 -12
  110. package/hooks/use-log-qry.ts +99 -46
  111. package/hooks/use-organization-qry.ts +16 -60
  112. package/hooks/use-publicFormEmail-mtn.ts +27 -0
  113. package/hooks/use-qrCode-mtn.ts +40 -0
  114. package/hooks/use-qrCode-qry.ts +78 -0
  115. package/hooks/use-schedule-mtn.ts +506 -333
  116. package/hooks/use-schedule-qry.ts +682 -101
  117. package/hooks/use-schedule-reactive.ts +486 -0
  118. package/hooks/use-sheet-mtn.ts +91 -199
  119. package/hooks/use-sheet-qry.ts +84 -238
  120. package/hooks/use-storage-qry.ts +84 -61
  121. package/hooks/use-workflow-mtn.ts +39 -22
  122. package/hooks/use-workflow-qry.ts +40 -61
  123. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  124. package/libs/ai-chat-outgoing.ts +11 -0
  125. package/libs/ai-chat-outgoing.types.ts +25 -0
  126. package/libs/ai-chat-run-realtime.ts +20 -0
  127. package/libs/ai-chat-submission-realtime.ts +150 -0
  128. package/libs/fragment-realtime-sequence.ts +55 -0
  129. package/libs/fragment-recovery.test.ts +326 -0
  130. package/libs/fragment-recovery.ts +325 -0
  131. package/libs/open-sheet.ts +138 -0
  132. package/libs/orchestrator-realtime.helpers.test.ts +229 -0
  133. package/libs/orchestrator-realtime.helpers.ts +317 -0
  134. package/libs/orchestrator-realtime.ts +433 -0
  135. package/libs/request-cache-regression.test.ts +122 -0
  136. package/{client → libs}/request-managed-session.test.ts +1 -1
  137. package/libs/request-no-store.test.ts +419 -0
  138. package/libs/sheet-command-batch.ts +44 -0
  139. package/libs/sheet-view-realtime-router.test.ts +214 -0
  140. package/libs/sheet-view-realtime-router.ts +99 -0
  141. package/loaders/campaign.test.ts +186 -0
  142. package/loaders/campaign.ts +56 -83
  143. package/loaders/emailPreference.ts +75 -0
  144. package/loaders/rest.ts +12 -0
  145. package/package.json +42 -17
  146. package/schedule.d.ts +1790 -0
  147. package/sse.helpers.ts +19 -0
  148. package/sse.ts +26 -115
  149. package/tests/agent-note-detail-cache.test.ts +120 -0
  150. package/tests/agent-note-search.test.ts +444 -0
  151. package/types.d.ts +46 -25
  152. package/client/data-table-realtime-subscriptions.test.ts +0 -740
  153. package/client/data-table-realtime-subscriptions.ts +0 -955
  154. package/client/data-table-realtime.test.ts +0 -792
  155. package/client/data-table-realtime.ts +0 -1218
  156. package/client/fragment-realtime-sequence.ts +0 -52
  157. package/client/open-sheet.ts +0 -137
  158. package/client/request-no-store.test.ts +0 -157
  159. package/gql/fragments/agentDocFragments.ts +0 -46
  160. package/gql/fragments/billingFragments.ts +0 -14
  161. package/gql/mutations/agentDocMutations.ts +0 -177
  162. package/gql/queries/agentDocQueries.ts +0 -120
  163. package/hooks/use-agentDoc-mtn.ts +0 -285
  164. package/hooks/use-agentDoc-qry.ts +0 -208
  165. /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 sheetTabSummaryFragment = `fragment sheetTabSummaryFragment on SheetTabSummary {
99
+ export const sheetTabMutationTabFragment = `fragment sheetTabMutationTabFragment on SheetTabMutationTab {
98
100
  id
101
+ organizationId
102
+ sheetId
99
103
  name
100
104
  position
101
- currentSeq
102
- referencedTabIds
105
+ hidden
106
+ cellsRevision
107
+ designRevision
108
+ createdAt
103
109
  updatedAt
104
110
  }`;
105
111
 
106
- export const sheetReferencedDataTableSchemaFragment = `fragment sheetReferencedDataTableSchemaFragment on SheetReferencedDataTableSchema {
107
- id
108
- realtimeToken
109
- name
110
- title
111
- updatedAt
112
+ export const sheetTabMutationResultFragment = `fragment sheetTabMutationResultFragment on SheetTabMutationResult {
113
+ changed
114
+ commandId
115
+ deletedSheetTabId
116
+ manifestRevision
117
+ replayed
112
118
 
113
- design {
114
- id
115
- cellsOrder
116
- humansCannotEdit
117
- rowIdentifier
119
+ tab {
120
+ ...sheetTabMutationTabFragment
121
+ }
118
122
 
119
- cells {
120
- key
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
- metadata
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
- * Return the SheetRegionSourceFilter selection set expanded to the supported nesting depth.
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
- sourceClientId
457
- committedPreviewSeq
458
- previewAuthorities {
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 merged into an existing SheetView cache row.
503
- * pageInfo is intentionally absent: a mutation patch does not own pagination
504
- * state and must not replace the query snapshot's pageInfo with null.
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
- sourceClientId
581
- committedPreviewSeq
582
- previewAuthorities {
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
- deletedCellCoords {
355
+ cellsComputedDelta {
356
+ id
605
357
  sheetTabId
606
358
  rowIndex
607
359
  columnIndex
608
- id
609
360
  revision
610
- }
611
-
612
- structureOps {
613
- opId
614
- operation
615
- index
616
- structureSeq
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
- conflict {
666
- code
667
- message
668
- historyBoundary
669
- invalidatesTargetCommandId
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
- isPublic
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
  ) {