@jsb188/graphql 1.1.11 → 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.
Files changed (174) hide show
  1. package/LICENSE +21 -0
  2. package/audience.d.ts +205 -0
  3. package/cache/config.ts +65 -28
  4. package/cache/index.helpers.ts +96 -0
  5. package/cache/index.ts +364 -808
  6. package/cache/mounted-queries.ts +33 -0
  7. package/cache/optimistic-ui-runtime.ts +46 -0
  8. package/cache/optimistic-ui.ts +401 -0
  9. package/cache/persist.ts +107 -22
  10. package/cache/realtime-fence.ts +47 -0
  11. package/cache/realtime-live.ts +17 -0
  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} +13 -39
  16. package/client/index.ts +4 -2
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +122 -232
  19. package/client/storage-asset.ts +58 -0
  20. package/gql/fragments/accountAuthFragments.ts +0 -4
  21. package/gql/fragments/agentMemoryFragments.ts +5 -1
  22. package/gql/fragments/agentNoteFragments.ts +156 -0
  23. package/gql/fragments/aiChatFragments.ts +35 -11
  24. package/gql/fragments/aiChatLinkFragments.ts +8 -0
  25. package/gql/fragments/audienceFragments.ts +76 -0
  26. package/gql/fragments/dataTableFragments.ts +48 -80
  27. package/gql/fragments/emailFragments.ts +49 -21
  28. package/gql/fragments/emailOutreachFragments.ts +281 -0
  29. package/gql/fragments/fieldDocFragments.ts +222 -40
  30. package/gql/fragments/inboundContactFragments.ts +2 -0
  31. package/gql/fragments/libraryFragments.ts +120 -0
  32. package/gql/fragments/logFragments.ts +93 -2
  33. package/gql/fragments/organizationFragments.ts +12 -0
  34. package/gql/fragments/qrCodeFragments.ts +29 -0
  35. package/gql/fragments/scheduleFragments.ts +574 -145
  36. package/gql/fragments/sheetFragments.ts +86 -424
  37. package/gql/fragments/storageFragments.ts +25 -1
  38. package/gql/fragments/workWaitFragments.ts +13 -0
  39. package/gql/fragments/workflowFragments.ts +32 -4
  40. package/gql/mutations/agentMemoryMutations.ts +32 -0
  41. package/gql/mutations/agentNoteMutations.ts +64 -0
  42. package/gql/mutations/aiChatLinkMutations.ts +13 -0
  43. package/gql/mutations/aiChatMutations.ts +34 -4
  44. package/gql/mutations/audienceMutations.ts +58 -0
  45. package/gql/mutations/authMutations.ts +24 -28
  46. package/gql/mutations/billingMutations.ts +24 -0
  47. package/gql/mutations/contactMutations.ts +23 -0
  48. package/gql/mutations/dataTableMutations.ts +18 -75
  49. package/gql/mutations/emailMutations.ts +22 -0
  50. package/gql/mutations/emailOutreachMutations.ts +139 -0
  51. package/gql/mutations/fieldDocMutations.ts +162 -13
  52. package/gql/mutations/index.ts +10 -5
  53. package/gql/mutations/organizationMutations.ts +6 -0
  54. package/gql/mutations/qrCodeMutations.ts +20 -0
  55. package/gql/mutations/scheduleMutations.ts +389 -417
  56. package/gql/mutations/sheetMutations.ts +62 -118
  57. package/gql/mutations/storageMutations.ts +1 -1
  58. package/gql/mutations/workflowMutations.ts +94 -0
  59. package/gql/queries/agentMemoryQueries.ts +12 -2
  60. package/gql/queries/agentNoteQueries.ts +86 -0
  61. package/gql/queries/aiChatQueries.ts +63 -12
  62. package/gql/queries/audienceQueries.ts +104 -0
  63. package/gql/queries/authQueries.ts +20 -4
  64. package/gql/queries/billingQueries.ts +114 -9
  65. package/gql/queries/dataTableQueries.ts +43 -75
  66. package/gql/queries/emailOutreachQueries.ts +282 -0
  67. package/gql/queries/emailQueries.ts +48 -64
  68. package/gql/queries/emailReplyReportQueries.ts +127 -0
  69. package/gql/queries/fieldDocQueries.ts +128 -98
  70. package/gql/queries/inboundContactQueries.ts +15 -4
  71. package/gql/queries/index.ts +5 -3
  72. package/gql/queries/libraryQueries.ts +112 -0
  73. package/gql/queries/logQueries.ts +86 -12
  74. package/gql/queries/organizationQueries.ts +44 -12
  75. package/gql/queries/qrCodeQueries.ts +27 -0
  76. package/gql/queries/scheduleQueries.ts +401 -278
  77. package/gql/queries/sheetQueries.ts +94 -165
  78. package/gql/queries/storageQueries.ts +11 -4
  79. package/gql/queries/workflowQueries.ts +61 -12
  80. package/gql/reactivity.ts +98 -0
  81. package/gql/recordReads.ts +171 -0
  82. package/hooks/index.helpers.ts +52 -0
  83. package/hooks/index.ts +920 -715
  84. package/hooks/use-agentMemory-mtn.ts +29 -31
  85. package/hooks/use-agentMemory-qry.ts +15 -3
  86. package/hooks/use-agentNote-mtn.ts +89 -0
  87. package/hooks/use-agentNote-qry.ts +162 -0
  88. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  89. package/hooks/use-agentNote-recovery.ts +57 -0
  90. package/hooks/use-aiChat-mtn.ts +104 -115
  91. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  92. package/hooks/use-aiChat-qry.ts +254 -387
  93. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  94. package/hooks/use-audience-mtn.ts +170 -0
  95. package/hooks/use-audience-qry.helpers.ts +39 -0
  96. package/hooks/use-audience-qry.ts +245 -0
  97. package/hooks/use-auth-mtn.ts +30 -1
  98. package/hooks/use-billing-mtn.ts +31 -0
  99. package/hooks/use-billing-qry.ts +76 -0
  100. package/hooks/use-dataTable-mtn.ts +23 -115
  101. package/hooks/use-dataTable-qry.ts +69 -914
  102. package/hooks/use-email-mtn.ts +26 -0
  103. package/hooks/use-email-qry.helpers.ts +37 -0
  104. package/hooks/use-email-qry.ts +44 -174
  105. package/hooks/use-emailOutreach-mtn.ts +211 -0
  106. package/hooks/use-emailOutreach-qry.helpers.ts +25 -0
  107. package/hooks/use-emailOutreach-qry.ts +367 -0
  108. package/hooks/use-emailOutreachReplyReport-qry.ts +46 -0
  109. package/hooks/use-fieldDoc-mtn.ts +244 -32
  110. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  111. package/hooks/use-fieldDoc-qry.ts +134 -102
  112. package/hooks/use-inboundContact-qry.ts +7 -9
  113. package/hooks/use-library-qry.ts +233 -0
  114. package/hooks/use-log-mtn.ts +25 -12
  115. package/hooks/use-log-qry.ts +99 -46
  116. package/hooks/use-organization-qry.ts +16 -60
  117. package/hooks/use-qrCode-mtn.ts +40 -0
  118. package/hooks/use-qrCode-qry.ts +78 -0
  119. package/hooks/use-schedule-mtn.ts +231 -348
  120. package/hooks/use-schedule-qry.ts +208 -139
  121. package/hooks/use-schedule-reactive.ts +218 -0
  122. package/hooks/use-sheet-mtn.ts +91 -199
  123. package/hooks/use-sheet-qry.ts +88 -237
  124. package/hooks/use-storage-qry.ts +84 -61
  125. package/hooks/use-workflow-mtn.ts +84 -23
  126. package/hooks/use-workflow-qry.ts +60 -61
  127. package/libs/ai-chat-link-events.ts +78 -0
  128. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  129. package/libs/ai-chat-outgoing.ts +11 -0
  130. package/libs/ai-chat-outgoing.types.ts +25 -0
  131. package/libs/ai-chat-run-realtime.ts +20 -0
  132. package/libs/ai-chat-submission-realtime.ts +150 -0
  133. package/libs/data-changes.helpers.ts +161 -0
  134. package/libs/data-changes.ts +382 -0
  135. package/libs/fragment-realtime-sequence.ts +55 -0
  136. package/libs/open-sheet.ts +138 -0
  137. package/libs/record-read.ts +327 -0
  138. package/libs/sheet-command-batch.ts +45 -0
  139. package/libs/sheet-realtime-packet.ts +53 -0
  140. package/libs/sheet-view-realtime-router.ts +99 -0
  141. package/loaders/emailPreference.ts +69 -0
  142. package/loaders/rest.ts +12 -0
  143. package/package.json +77 -25
  144. package/schedule.d.ts +1183 -0
  145. package/sse.helpers.ts +19 -0
  146. package/sse.ts +26 -115
  147. package/types.d.ts +48 -25
  148. package/cache/index.test.ts +0 -881
  149. package/client/data-table-realtime-subscriptions.test.ts +0 -740
  150. package/client/data-table-realtime-subscriptions.ts +0 -955
  151. package/client/data-table-realtime.test.ts +0 -792
  152. package/client/data-table-realtime.ts +0 -1218
  153. package/client/fragment-realtime-sequence.ts +0 -52
  154. package/client/open-sheet.ts +0 -137
  155. package/client/request-managed-session.test.ts +0 -574
  156. package/client/request-no-store.test.ts +0 -157
  157. package/client/sse-ticket.test.ts +0 -26
  158. package/deno.lock +0 -170
  159. package/deno.test.json +0 -10
  160. package/gql/fragments/agentDocFragments.ts +0 -46
  161. package/gql/fragments/billingFragments.ts +0 -14
  162. package/gql/fragments/campaignFragments.ts +0 -277
  163. package/gql/mutations/agentDocMutations.ts +0 -177
  164. package/gql/mutations/campaignMutations.ts +0 -215
  165. package/gql/queries/agentDocQueries.ts +0 -120
  166. package/gql/queries/appQueries.ts +0 -14
  167. package/gql/queries/campaignQueries.ts +0 -127
  168. package/hooks/use-agentDoc-mtn.ts +0 -285
  169. package/hooks/use-agentDoc-qry.ts +0 -208
  170. package/hooks/use-app-qry.ts +0 -22
  171. package/hooks/use-campaign-mtn.ts +0 -377
  172. package/hooks/use-campaign-qry.ts +0 -257
  173. package/loaders/campaign.ts +0 -137
  174. package/tsconfig.json +0 -13
@@ -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
 
@@ -46,32 +48,6 @@ export const sheetTabFragment = `fragment sheetTabFragment on SheetTab {
46
48
  version
47
49
  columns
48
50
  rows
49
- defaultCellStyle {
50
- fontSize
51
- textColor
52
- fillColor
53
- textWrap
54
- textAlign
55
- verticalAlign
56
- disableMarkdown
57
- bold
58
- italic
59
- underline
60
- strikethrough
61
- borderTopWidth
62
- borderTopColor
63
- borderTopStyle
64
- borderRightWidth
65
- borderRightColor
66
- borderRightStyle
67
- borderBottomWidth
68
- borderBottomColor
69
- borderBottomStyle
70
- borderLeftWidth
71
- borderLeftColor
72
- borderLeftStyle
73
- }
74
- defaultCellFormat
75
51
  metadata
76
52
 
77
53
  grid {
@@ -94,54 +70,45 @@ export const sheetTabFragment = `fragment sheetTabFragment on SheetTab {
94
70
  updatedAt
95
71
  }`;
96
72
 
97
- export const sheetTabSummaryFragment = `fragment sheetTabSummaryFragment on SheetTabSummary {
73
+ export const sheetTabMutationTabFragment = `fragment sheetTabMutationTabFragment on SheetTabMutationTab {
98
74
  id
75
+ organizationId
76
+ sheetId
99
77
  name
100
78
  position
101
- currentSeq
102
- referencedTabIds
79
+ hidden
80
+ cellsRevision
81
+ designRevision
82
+ createdAt
103
83
  updatedAt
104
84
  }`;
105
85
 
106
- export const sheetReferencedDataTableSchemaFragment = `fragment sheetReferencedDataTableSchemaFragment on SheetReferencedDataTableSchema {
107
- id
108
- realtimeToken
109
- name
110
- title
111
- updatedAt
86
+ export const sheetTabMutationResultFragment = `fragment sheetTabMutationResultFragment on SheetTabMutationResult {
87
+ changed
88
+ commandId
89
+ deletedSheetTabId
90
+ manifestRevision
91
+ replayed
112
92
 
113
- design {
114
- id
115
- cellsOrder
116
- humansCannotEdit
117
- rowIdentifier
93
+ tab {
94
+ ...sheetTabMutationTabFragment
95
+ }
118
96
 
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
- }
97
+ tabs {
98
+ ...sheetTabMutationTabFragment
144
99
  }
100
+ }
101
+
102
+ ${sheetTabMutationTabFragment}`;
103
+
104
+ export const sheetTabSummaryFragment = `fragment sheetTabSummaryFragment on SheetTabSummary {
105
+ id
106
+ name
107
+ position
108
+ hidden
109
+ currentSeq
110
+ referencedTabIds
111
+ updatedAt
145
112
  }`;
146
113
 
147
114
  export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
@@ -153,6 +120,7 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
153
120
  rowIndex
154
121
  columnIndex
155
122
  rawInput
123
+ literalType
156
124
  formulaText
157
125
  compiledFormula {
158
126
  version
@@ -174,24 +142,6 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
174
142
  sheetTabId
175
143
  status
176
144
  }
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
145
  diagnostics {
196
146
  code
197
147
  message
@@ -209,176 +159,18 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
209
159
  errorMessage
210
160
  computedAt
211
161
  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
162
  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
-
268
- startRowIndex
269
- startColumnIndex
270
- endRowIndex
271
- endColumnIndex
272
- position
273
- style {
274
- fontSize
275
- textColor
276
- fillColor
277
- textWrap
278
- textAlign
279
- verticalAlign
280
- disableMarkdown
281
- bold
282
- italic
283
- underline
284
- strikethrough
285
- borderTopWidth
286
- borderTopColor
287
- borderTopStyle
288
- borderRightWidth
289
- borderRightColor
290
- borderRightStyle
291
- borderBottomWidth
292
- borderBottomColor
293
- borderBottomStyle
294
- borderLeftWidth
295
- borderLeftColor
296
- borderLeftStyle
297
- }
298
- format
299
- metadata
300
163
 
301
164
  createdAt
302
165
  updatedAt
303
166
  }`;
304
167
 
305
- const sheetRegionSourceFilterConditionFields = `
306
- cellKey
307
- columnId
308
- operator
309
- textValue
310
- textValues
311
- numberValue
312
- booleanValue
313
- dateValue
314
- datetimeValue`;
315
-
316
168
  /*
317
- * Return the SheetRegionSourceFilter selection set expanded to the supported nesting depth.
169
+ * Shape of one websocket $sheetViewFragment packet (wire contract v3). The
170
+ * client routes these packets straight to its tab stores, never through the
171
+ * fragment cache; chunkIndex/chunkCount position one chunk of a packet whose
172
+ * chunks share fromSeq/toSeq.
318
173
  */
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
174
  export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
383
175
  id
384
176
  sheetId
@@ -400,83 +192,45 @@ export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
400
192
  designRevision
401
193
  fromSeq
402
194
  toSeq
195
+ chunkIndex
196
+ chunkCount
403
197
  originActorAccountId
404
198
  originClientId
405
- purgedRegionIds
406
- regionUpserts {
407
- ...sheetRegionFragment
408
- }
409
199
  requiresSnapshot
410
200
 
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
201
  commandBatchAck {
454
202
  actorAccountId
455
203
  envelopeId
456
- sourceClientId
457
- committedPreviewSeq
458
- previewAuthorities {
459
- clientId
460
- envelopeId
461
- previewSeq
462
- serverSeq
463
- sheetTabId
464
- targetKeys
465
- }
204
+ clientId
205
+ committedCommandIds
206
+ noWriteCommandIds
466
207
  }
467
208
 
468
209
  sheetTab {
469
210
  ...sheetTabFragment
470
211
  }
471
212
 
472
- ranges {
473
- ...sheetRangeFragment
474
- }
475
-
476
213
  cellsDelta {
477
214
  ...sheetCellFragment
478
215
  }
479
216
 
217
+ cellsComputedDelta {
218
+ id
219
+ sheetTabId
220
+ rowIndex
221
+ columnIndex
222
+ revision
223
+ value
224
+ textValue
225
+ numberValue
226
+ booleanValue
227
+ dateValue
228
+ datetimeValue
229
+ errorCode
230
+ errorMessage
231
+ computedAt
232
+ }
233
+
480
234
  deletedCellCoords {
481
235
  sheetTabId
482
236
  rowIndex
@@ -492,6 +246,8 @@ export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
492
246
  structureSeq
493
247
  }
494
248
 
249
+ formatOps
250
+
495
251
  pageInfo {
496
252
  hasMoreRows
497
253
  lastContentRowIndex
@@ -499,9 +255,10 @@ export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
499
255
  }`;
500
256
 
501
257
  /*
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.
258
+ * Authoritative command payload returned by editSheetCommandBatch. The
259
+ * mutation is no-store: the client applies these patches to its tab stores.
260
+ * pageInfo is intentionally absent (a patch owns no pagination state), and
261
+ * chunk metadata exists only on websocket packets.
505
262
  */
506
263
  export const sheetViewPatchFragment = `fragment sheetViewPatchFragment on SheetView {
507
264
  id
@@ -526,132 +283,39 @@ export const sheetViewPatchFragment = `fragment sheetViewPatchFragment on SheetV
526
283
  toSeq
527
284
  originActorAccountId
528
285
  originClientId
529
- purgedRegionIds
530
- regionUpserts {
531
- ...sheetRegionFragment
532
- }
533
286
  requiresSnapshot
534
287
 
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
288
  commandBatchAck {
578
289
  actorAccountId
579
290
  envelopeId
580
- sourceClientId
581
- committedPreviewSeq
582
- previewAuthorities {
583
- clientId
584
- envelopeId
585
- previewSeq
586
- serverSeq
587
- sheetTabId
588
- targetKeys
589
- }
291
+ clientId
292
+ committedCommandIds
293
+ noWriteCommandIds
590
294
  }
591
295
 
592
296
  sheetTab {
593
297
  ...sheetTabFragment
594
298
  }
595
299
 
596
- ranges {
597
- ...sheetRangeFragment
598
- }
599
-
600
300
  cellsDelta {
601
301
  ...sheetCellFragment
602
302
  }
603
303
 
604
- deletedCellCoords {
304
+ cellsComputedDelta {
305
+ id
605
306
  sheetTabId
606
307
  rowIndex
607
308
  columnIndex
608
- id
609
309
  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
310
+ value
311
+ textValue
312
+ numberValue
313
+ booleanValue
314
+ dateValue
315
+ datetimeValue
316
+ errorCode
317
+ errorMessage
318
+ computedAt
655
319
  }
656
320
 
657
321
  deletedCellCoords {
@@ -662,14 +326,12 @@ export const sheetCommandResultFragment = `fragment sheetCommandResultFragment o
662
326
  revision
663
327
  }
664
328
 
665
- conflict {
666
- code
667
- message
668
- historyBoundary
669
- invalidatesTargetCommandId
670
- targetType
671
- targetKey
329
+ structureOps {
330
+ opId
331
+ operation
332
+ index
333
+ structureSeq
672
334
  }
673
- }
674
335
 
675
- ${sheetRegionFragment}`;
336
+ formatOps
337
+ }`;
@@ -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
  }`;
@@ -0,0 +1,13 @@
1
+ // One item of waitingFor on a scheduled task (Workflow) or a bulk email (EmailOutreach). Its id is the wait's own id, so
2
+ // the same source waited for by two items is two cache records, each with its own onHold. A document that spreads it
3
+ // appends this fragment's text, like every other nested fragment.
4
+ export const workWaitItemFragment = `fragment workWaitItemFragment on WorkWaitItem {
5
+ id
6
+ sourceType
7
+ sourceId
8
+ title
9
+ state
10
+ url
11
+ outcome
12
+ onHold
13
+ }`;