@jsb188/graphql 1.1.10 → 1.1.11
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/cache/config.ts +64 -50
- package/cache/index.test.ts +671 -109
- package/cache/index.ts +1700 -1240
- package/cache/persist.ts +721 -0
- package/cache/store.ts +437 -0
- package/client/data-table-realtime-subscriptions.test.ts +740 -0
- package/client/data-table-realtime-subscriptions.ts +955 -0
- package/client/data-table-realtime.test.ts +792 -0
- package/client/data-table-realtime.ts +1218 -0
- package/client/fragment-realtime-sequence.ts +52 -0
- package/client/index.ts +2 -0
- package/client/open-sheet.ts +137 -0
- package/client/request-managed-session.test.ts +574 -0
- package/client/request-no-store.test.ts +157 -0
- package/client/request.ts +954 -163
- package/client/sse-ticket.test.ts +26 -0
- package/deno.lock +170 -0
- package/deno.test.json +8 -4
- package/drafts/index.ts +149 -0
- package/drafts/store.ts +397 -0
- package/gql/eagerQueryMap.ts +12 -0
- package/gql/fragments/accountAuthFragments.ts +5 -0
- package/gql/fragments/accountFragments.ts +0 -3
- package/gql/fragments/accountSessionFragments.ts +16 -0
- package/gql/fragments/agentDocFragments.ts +46 -0
- package/gql/fragments/agentMemoryFragments.ts +19 -0
- package/gql/fragments/aiChatFragments.ts +16 -0
- package/gql/fragments/billingFragments.ts +0 -11
- package/gql/fragments/campaignFragments.ts +277 -0
- package/gql/fragments/dataTableFragments.ts +18 -128
- package/gql/fragments/emailFragments.ts +19 -9
- package/gql/fragments/fieldDocFragments.ts +82 -0
- package/gql/fragments/logFragments.ts +20 -79
- package/gql/fragments/organizationFragments.ts +43 -5
- package/gql/fragments/scheduleFragments.ts +155 -0
- package/gql/fragments/sheetFragments.ts +552 -22
- package/gql/fragments/storageFragments.ts +21 -0
- package/gql/fragments/workflowFragments.ts +28 -4
- package/gql/mutations/accountMutations.ts +0 -2
- package/gql/mutations/agentDocMutations.ts +177 -0
- package/gql/mutations/agentMemoryMutations.ts +36 -0
- package/gql/mutations/aiChatMutations.ts +17 -4
- package/gql/mutations/authMutations.ts +158 -17
- package/gql/mutations/campaignMutations.ts +215 -0
- package/gql/mutations/dataTableMutations.ts +48 -26
- package/gql/mutations/fieldDocMutations.ts +24 -0
- package/gql/mutations/index.ts +6 -1
- package/gql/mutations/logMutations.ts +6 -29
- package/gql/mutations/organizationMutations.ts +13 -4
- package/gql/mutations/scheduleMutations.ts +423 -0
- package/gql/mutations/sheetMutations.ts +273 -56
- package/gql/mutations/storageMutations.ts +20 -0
- package/gql/mutations/workflowMutations.ts +42 -0
- package/gql/queries/agentDocQueries.ts +120 -0
- package/gql/queries/agentMemoryQueries.ts +22 -0
- package/gql/queries/aiChatQueries.ts +18 -2
- package/gql/queries/authQueries.ts +41 -0
- package/gql/queries/billingQueries.ts +23 -0
- package/gql/queries/campaignQueries.ts +127 -0
- package/gql/queries/dataTableQueries.ts +100 -11
- package/gql/queries/emailQueries.ts +55 -3
- package/gql/queries/fieldDocQueries.ts +158 -0
- package/gql/queries/index.ts +8 -2
- package/gql/queries/logQueries.ts +11 -28
- package/gql/queries/organizationQueries.ts +52 -1
- package/gql/queries/scheduleQueries.ts +315 -0
- package/gql/queries/sheetQueries.ts +336 -25
- package/gql/queries/storageQueries.ts +38 -0
- package/gql/queries/workflowQueries.ts +72 -3
- package/hooks/index.ts +2065 -971
- package/hooks/use-account-mtn.ts +76 -81
- package/hooks/use-agentDoc-mtn.ts +285 -0
- package/hooks/use-agentDoc-qry.ts +208 -0
- package/hooks/use-agentMemory-mtn.ts +73 -0
- package/hooks/use-agentMemory-qry.ts +44 -0
- package/hooks/use-aiChat-mtn.ts +232 -137
- package/hooks/use-aiChat-qry.ts +480 -222
- package/hooks/use-app-qry.ts +12 -9
- package/hooks/use-auth-mtn.ts +406 -252
- package/hooks/use-auth-qry.ts +51 -0
- package/hooks/use-campaign-mtn.ts +377 -0
- package/hooks/use-campaign-qry.ts +257 -0
- package/hooks/use-dataTable-mtn.ts +116 -33
- package/hooks/use-dataTable-qry.ts +859 -35
- package/hooks/use-email-qry.ts +194 -79
- package/hooks/use-fieldDoc-mtn.ts +50 -0
- package/hooks/use-fieldDoc-qry.ts +180 -0
- package/hooks/use-inboundContact-mtn.ts +19 -16
- package/hooks/use-inboundContact-qry.ts +63 -55
- package/hooks/use-integration-mtn.ts +56 -38
- package/hooks/use-integration-qry.ts +24 -9
- package/hooks/use-log-mtn.ts +72 -56
- package/hooks/use-log-qry.ts +93 -69
- package/hooks/use-organization-mtn.ts +334 -277
- package/hooks/use-organization-qry.ts +199 -129
- package/hooks/use-schedule-mtn.ts +416 -0
- package/hooks/use-schedule-qry.ts +157 -0
- package/hooks/use-sheet-mtn.ts +233 -47
- package/hooks/use-sheet-qry.ts +353 -70
- package/hooks/use-storage-mtn.ts +81 -41
- package/hooks/use-storage-qry.ts +104 -13
- package/hooks/use-workflow-mtn.ts +55 -0
- package/hooks/use-workflow-qry.ts +206 -48
- package/loaders/campaign.ts +137 -0
- package/package.json +94 -71
- package/sse.ts +157 -104
- package/tsconfig.json +11 -10
- package/types.d.ts +60 -30
- package/utils.ts +78 -49
- package/gql/fragments/productFragments.ts +0 -39
- package/gql/fragments/reportFragments.ts +0 -90
- package/gql/mutations/billingMutations.ts +0 -34
- package/gql/queries/productQueries.ts +0 -31
- package/gql/queries/reportQueries.ts +0 -134
- package/hooks/use-product-qry.ts +0 -67
- package/hooks/use-report-qry.ts +0 -153
|
@@ -1,19 +1,76 @@
|
|
|
1
1
|
export const sheetFragment = `fragment sheetFragment on Sheet {
|
|
2
2
|
id
|
|
3
|
+
cursor
|
|
3
4
|
organizationId
|
|
4
5
|
|
|
5
6
|
name
|
|
6
7
|
title
|
|
7
8
|
description
|
|
8
9
|
position
|
|
9
|
-
|
|
10
|
+
deletedAt
|
|
11
|
+
|
|
12
|
+
editor {
|
|
13
|
+
textColors
|
|
14
|
+
fillColors
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
access {
|
|
18
|
+
team
|
|
19
|
+
public
|
|
20
|
+
network
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
createdAt
|
|
24
|
+
updatedAt
|
|
25
|
+
}`;
|
|
26
|
+
|
|
27
|
+
export const sheetMetadataFragment = `fragment sheetMetadataFragment on SheetMetadata {
|
|
28
|
+
id
|
|
29
|
+
name
|
|
30
|
+
title
|
|
31
|
+
description
|
|
32
|
+
}`;
|
|
33
|
+
|
|
34
|
+
export const sheetTabFragment = `fragment sheetTabFragment on SheetTab {
|
|
35
|
+
id
|
|
36
|
+
organizationId
|
|
37
|
+
sheetId
|
|
38
|
+
|
|
39
|
+
name
|
|
40
|
+
position
|
|
41
|
+
cellsRevision
|
|
42
|
+
designRevision
|
|
10
43
|
|
|
11
44
|
design {
|
|
12
45
|
id
|
|
13
46
|
version
|
|
14
47
|
columns
|
|
15
48
|
rows
|
|
16
|
-
defaultCellStyle
|
|
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
|
+
}
|
|
17
74
|
defaultCellFormat
|
|
18
75
|
metadata
|
|
19
76
|
|
|
@@ -37,29 +94,156 @@ export const sheetFragment = `fragment sheetFragment on Sheet {
|
|
|
37
94
|
updatedAt
|
|
38
95
|
}`;
|
|
39
96
|
|
|
97
|
+
export const sheetTabSummaryFragment = `fragment sheetTabSummaryFragment on SheetTabSummary {
|
|
98
|
+
id
|
|
99
|
+
name
|
|
100
|
+
position
|
|
101
|
+
currentSeq
|
|
102
|
+
referencedTabIds
|
|
103
|
+
updatedAt
|
|
104
|
+
}`;
|
|
105
|
+
|
|
106
|
+
export const sheetReferencedDataTableSchemaFragment = `fragment sheetReferencedDataTableSchemaFragment on SheetReferencedDataTableSchema {
|
|
107
|
+
id
|
|
108
|
+
realtimeToken
|
|
109
|
+
name
|
|
110
|
+
title
|
|
111
|
+
updatedAt
|
|
112
|
+
|
|
113
|
+
design {
|
|
114
|
+
id
|
|
115
|
+
cellsOrder
|
|
116
|
+
humansCannotEdit
|
|
117
|
+
rowIdentifier
|
|
118
|
+
|
|
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
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}`;
|
|
146
|
+
|
|
40
147
|
export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
41
148
|
id
|
|
42
149
|
organizationId
|
|
43
150
|
sheetId
|
|
151
|
+
sheetTabId
|
|
44
152
|
|
|
45
153
|
rowIndex
|
|
46
154
|
columnIndex
|
|
47
155
|
rawInput
|
|
156
|
+
formulaText
|
|
157
|
+
compiledFormula {
|
|
158
|
+
version
|
|
159
|
+
text
|
|
160
|
+
volatile
|
|
161
|
+
cells {
|
|
162
|
+
rowIndex
|
|
163
|
+
columnIndex
|
|
164
|
+
sheetName
|
|
165
|
+
sheetTabId
|
|
166
|
+
status
|
|
167
|
+
}
|
|
168
|
+
ranges {
|
|
169
|
+
startRowIndex
|
|
170
|
+
startColumnIndex
|
|
171
|
+
endRowIndex
|
|
172
|
+
endColumnIndex
|
|
173
|
+
sheetName
|
|
174
|
+
sheetTabId
|
|
175
|
+
status
|
|
176
|
+
}
|
|
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
|
+
diagnostics {
|
|
196
|
+
code
|
|
197
|
+
message
|
|
198
|
+
sheetName
|
|
199
|
+
}
|
|
200
|
+
}
|
|
48
201
|
value
|
|
202
|
+
formulaValue
|
|
49
203
|
textValue
|
|
50
204
|
numberValue
|
|
51
205
|
booleanValue
|
|
52
206
|
dateValue
|
|
53
207
|
datetimeValue
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
208
|
+
errorCode
|
|
209
|
+
errorMessage
|
|
210
|
+
computedAt
|
|
211
|
+
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
|
|
61
246
|
}
|
|
62
|
-
style
|
|
63
247
|
format
|
|
64
248
|
note
|
|
65
249
|
sourceType
|
|
@@ -68,6 +252,7 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
|
68
252
|
regionId
|
|
69
253
|
sourceRowId
|
|
70
254
|
sourceCellKey
|
|
255
|
+
sourceColumnId
|
|
71
256
|
}
|
|
72
257
|
|
|
73
258
|
createdAt
|
|
@@ -78,45 +263,115 @@ export const sheetRangeFragment = `fragment sheetRangeFragment on SheetRange {
|
|
|
78
263
|
id
|
|
79
264
|
organizationId
|
|
80
265
|
sheetId
|
|
266
|
+
sheetTabId
|
|
81
267
|
|
|
82
268
|
startRowIndex
|
|
83
269
|
startColumnIndex
|
|
84
270
|
endRowIndex
|
|
85
271
|
endColumnIndex
|
|
86
272
|
position
|
|
87
|
-
style
|
|
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
|
+
}
|
|
88
298
|
format
|
|
89
299
|
metadata
|
|
90
|
-
active
|
|
91
300
|
|
|
92
301
|
createdAt
|
|
93
302
|
updatedAt
|
|
94
303
|
}`;
|
|
95
304
|
|
|
305
|
+
const sheetRegionSourceFilterConditionFields = `
|
|
306
|
+
cellKey
|
|
307
|
+
columnId
|
|
308
|
+
operator
|
|
309
|
+
textValue
|
|
310
|
+
textValues
|
|
311
|
+
numberValue
|
|
312
|
+
booleanValue
|
|
313
|
+
dateValue
|
|
314
|
+
datetimeValue`;
|
|
315
|
+
|
|
316
|
+
/*
|
|
317
|
+
* Return the SheetRegionSourceFilter selection set expanded to the supported nesting depth.
|
|
318
|
+
*/
|
|
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
|
+
|
|
96
334
|
export const sheetRegionFragment = `fragment sheetRegionFragment on SheetRegion {
|
|
97
335
|
id
|
|
98
336
|
organizationId
|
|
99
337
|
sheetId
|
|
338
|
+
sheetTabId
|
|
100
339
|
|
|
101
340
|
type
|
|
102
341
|
startRowIndex
|
|
103
342
|
startColumnIndex
|
|
104
343
|
active
|
|
344
|
+
definitionRevision
|
|
345
|
+
projectionRevision
|
|
346
|
+
projectionStatus
|
|
347
|
+
syncRevision
|
|
105
348
|
|
|
106
349
|
source {
|
|
107
350
|
type
|
|
351
|
+
identityVersion
|
|
108
352
|
dataTableId
|
|
109
|
-
|
|
353
|
+
filter {
|
|
354
|
+
${getSheetRegionSourceFilterSelection(3)}
|
|
355
|
+
}
|
|
356
|
+
sort {
|
|
357
|
+
cellKey
|
|
358
|
+
columnId
|
|
359
|
+
direction
|
|
360
|
+
}
|
|
361
|
+
includeRowIds
|
|
110
362
|
}
|
|
111
363
|
|
|
112
364
|
columns {
|
|
365
|
+
kind
|
|
113
366
|
sourceCellKey
|
|
114
|
-
|
|
115
|
-
|
|
367
|
+
sourceColumnId
|
|
368
|
+
sourceColumnIds
|
|
369
|
+
formulaText
|
|
116
370
|
}
|
|
117
371
|
|
|
118
372
|
options {
|
|
119
373
|
conflictPolicy
|
|
374
|
+
endRowIndex
|
|
120
375
|
includeHeaderRow
|
|
121
376
|
}
|
|
122
377
|
|
|
@@ -124,18 +379,117 @@ export const sheetRegionFragment = `fragment sheetRegionFragment on SheetRegion
|
|
|
124
379
|
updatedAt
|
|
125
380
|
}`;
|
|
126
381
|
|
|
127
|
-
export const
|
|
382
|
+
export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
|
|
128
383
|
id
|
|
384
|
+
sheetId
|
|
385
|
+
sheetTabId
|
|
386
|
+
axisMoveOps {
|
|
387
|
+
schemaVersion
|
|
388
|
+
commandId
|
|
389
|
+
sheetTabId
|
|
390
|
+
axis
|
|
391
|
+
sourceStartIndex
|
|
392
|
+
sourceEndIndex
|
|
393
|
+
targetStartIndex
|
|
394
|
+
baseRevision
|
|
395
|
+
resultRevision
|
|
396
|
+
baseDesignRevision
|
|
397
|
+
resultDesignRevision
|
|
398
|
+
}
|
|
399
|
+
cellsRevision
|
|
400
|
+
designRevision
|
|
401
|
+
fromSeq
|
|
402
|
+
toSeq
|
|
403
|
+
originActorAccountId
|
|
404
|
+
originClientId
|
|
405
|
+
purgedRegionIds
|
|
406
|
+
regionUpserts {
|
|
407
|
+
...sheetRegionFragment
|
|
408
|
+
}
|
|
409
|
+
requiresSnapshot
|
|
410
|
+
|
|
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
|
+
}
|
|
129
432
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
+
commandBatchAck {
|
|
454
|
+
actorAccountId
|
|
455
|
+
envelopeId
|
|
456
|
+
sourceClientId
|
|
457
|
+
committedPreviewSeq
|
|
458
|
+
previewAuthorities {
|
|
459
|
+
clientId
|
|
460
|
+
envelopeId
|
|
461
|
+
previewSeq
|
|
462
|
+
serverSeq
|
|
463
|
+
sheetTabId
|
|
464
|
+
targetKeys
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
sheetTab {
|
|
469
|
+
...sheetTabFragment
|
|
135
470
|
}
|
|
136
471
|
|
|
137
|
-
|
|
472
|
+
ranges {
|
|
473
|
+
...sheetRangeFragment
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
cellsDelta {
|
|
477
|
+
...sheetCellFragment
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
deletedCellCoords {
|
|
481
|
+
sheetTabId
|
|
138
482
|
rowIndex
|
|
483
|
+
columnIndex
|
|
484
|
+
id
|
|
485
|
+
revision
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
structureOps {
|
|
489
|
+
opId
|
|
490
|
+
operation
|
|
491
|
+
index
|
|
492
|
+
structureSeq
|
|
139
493
|
}
|
|
140
494
|
|
|
141
495
|
pageInfo {
|
|
@@ -143,3 +497,179 @@ export const sheetGridFragment = `fragment sheetGridFragment on SheetGrid {
|
|
|
143
497
|
lastContentRowIndex
|
|
144
498
|
}
|
|
145
499
|
}`;
|
|
500
|
+
|
|
501
|
+
/*
|
|
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.
|
|
505
|
+
*/
|
|
506
|
+
export const sheetViewPatchFragment = `fragment sheetViewPatchFragment on SheetView {
|
|
507
|
+
id
|
|
508
|
+
sheetId
|
|
509
|
+
sheetTabId
|
|
510
|
+
axisMoveOps {
|
|
511
|
+
schemaVersion
|
|
512
|
+
commandId
|
|
513
|
+
sheetTabId
|
|
514
|
+
axis
|
|
515
|
+
sourceStartIndex
|
|
516
|
+
sourceEndIndex
|
|
517
|
+
targetStartIndex
|
|
518
|
+
baseRevision
|
|
519
|
+
resultRevision
|
|
520
|
+
baseDesignRevision
|
|
521
|
+
resultDesignRevision
|
|
522
|
+
}
|
|
523
|
+
cellsRevision
|
|
524
|
+
designRevision
|
|
525
|
+
fromSeq
|
|
526
|
+
toSeq
|
|
527
|
+
originActorAccountId
|
|
528
|
+
originClientId
|
|
529
|
+
purgedRegionIds
|
|
530
|
+
regionUpserts {
|
|
531
|
+
...sheetRegionFragment
|
|
532
|
+
}
|
|
533
|
+
requiresSnapshot
|
|
534
|
+
|
|
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
|
+
commandBatchAck {
|
|
578
|
+
actorAccountId
|
|
579
|
+
envelopeId
|
|
580
|
+
sourceClientId
|
|
581
|
+
committedPreviewSeq
|
|
582
|
+
previewAuthorities {
|
|
583
|
+
clientId
|
|
584
|
+
envelopeId
|
|
585
|
+
previewSeq
|
|
586
|
+
serverSeq
|
|
587
|
+
sheetTabId
|
|
588
|
+
targetKeys
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
sheetTab {
|
|
593
|
+
...sheetTabFragment
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
ranges {
|
|
597
|
+
...sheetRangeFragment
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
cellsDelta {
|
|
601
|
+
...sheetCellFragment
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
deletedCellCoords {
|
|
605
|
+
sheetTabId
|
|
606
|
+
rowIndex
|
|
607
|
+
columnIndex
|
|
608
|
+
id
|
|
609
|
+
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
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
deletedCellCoords {
|
|
658
|
+
sheetTabId
|
|
659
|
+
rowIndex
|
|
660
|
+
columnIndex
|
|
661
|
+
id
|
|
662
|
+
revision
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
conflict {
|
|
666
|
+
code
|
|
667
|
+
message
|
|
668
|
+
historyBoundary
|
|
669
|
+
invalidatesTargetCommandId
|
|
670
|
+
targetType
|
|
671
|
+
targetKey
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
${sheetRegionFragment}`;
|
|
@@ -4,6 +4,7 @@ export const storageFileFragment = `fragment storageFileFragment on StorageFile
|
|
|
4
4
|
size
|
|
5
5
|
contentType
|
|
6
6
|
at
|
|
7
|
+
intent
|
|
7
8
|
name
|
|
8
9
|
description
|
|
9
10
|
aiNote
|
|
@@ -11,3 +12,23 @@ export const storageFileFragment = `fragment storageFileFragment on StorageFile
|
|
|
11
12
|
# client-side required fields
|
|
12
13
|
uploadStatus
|
|
13
14
|
}`;
|
|
15
|
+
|
|
16
|
+
export const generatedFileFragment = `fragment generatedFileFragment on GeneratedFile {
|
|
17
|
+
id
|
|
18
|
+
cursor
|
|
19
|
+
fileName
|
|
20
|
+
fileDescription
|
|
21
|
+
summaryReport
|
|
22
|
+
status
|
|
23
|
+
isPublic
|
|
24
|
+
deliveredVia
|
|
25
|
+
downloadCount
|
|
26
|
+
lastDownloadedAt
|
|
27
|
+
activeLinkExpiresAt
|
|
28
|
+
expiresAt
|
|
29
|
+
generatedAt
|
|
30
|
+
createdAt
|
|
31
|
+
updatedAt
|
|
32
|
+
createdByName
|
|
33
|
+
hasFile
|
|
34
|
+
}`;
|