@jsb188/graphql 1.1.8 → 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 +66 -42
- package/cache/index.test.ts +881 -0
- package/cache/index.ts +1815 -979
- 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 +4 -2
- 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 +973 -143
- package/client/sse-ticket.test.ts +26 -0
- package/deno.lock +170 -0
- package/deno.test.json +10 -0
- 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 +1 -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 +17 -0
- package/gql/fragments/billingFragments.ts +0 -11
- package/gql/fragments/campaignFragments.ts +277 -0
- package/gql/fragments/dataTableFragments.ts +102 -0
- package/gql/fragments/emailFragments.ts +36 -0
- package/gql/fragments/fieldDocFragments.ts +82 -0
- package/gql/fragments/inboundContactFragments.ts +15 -0
- package/gql/fragments/integrationFragments.ts +22 -0
- package/gql/fragments/logFragments.ts +33 -64
- package/gql/fragments/organizationFragments.ts +94 -21
- package/gql/fragments/scheduleFragments.ts +155 -0
- package/gql/fragments/sheetFragments.ts +675 -0
- package/gql/fragments/storageFragments.ts +21 -1
- package/gql/fragments/workflowFragments.ts +67 -0
- package/gql/mutations/accountMutations.ts +24 -4
- package/gql/mutations/agentDocMutations.ts +177 -0
- package/gql/mutations/agentMemoryMutations.ts +36 -0
- package/gql/mutations/aiChatMutations.ts +43 -3
- package/gql/mutations/authMutations.ts +160 -19
- package/gql/mutations/campaignMutations.ts +215 -0
- package/gql/mutations/dataTableMutations.ts +106 -0
- package/gql/mutations/fieldDocMutations.ts +24 -0
- package/gql/mutations/inboundContactMutations.ts +24 -0
- package/gql/mutations/index.ts +17 -8
- package/gql/mutations/integrationMutations.ts +25 -0
- package/gql/mutations/logMutations.ts +10 -19
- package/gql/mutations/organizationMutations.ts +160 -2
- package/gql/mutations/scheduleMutations.ts +423 -0
- package/gql/mutations/sheetMutations.ts +385 -0
- package/gql/mutations/storageMutations.ts +21 -2
- 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 +24 -1
- package/gql/queries/campaignQueries.ts +127 -0
- package/gql/queries/dataTableQueries.ts +134 -0
- package/gql/queries/emailQueries.ts +96 -0
- package/gql/queries/fieldDocQueries.ts +158 -0
- package/gql/queries/inboundContactQueries.ts +40 -0
- package/gql/queries/index.ts +17 -6
- package/gql/queries/logQueries.ts +42 -32
- package/gql/queries/organizationQueries.ts +113 -8
- package/gql/queries/scheduleQueries.ts +315 -0
- package/gql/queries/sheetQueries.ts +383 -0
- package/gql/queries/storageQueries.ts +38 -0
- package/gql/queries/workflowQueries.ts +99 -0
- package/hooks/index.ts +2104 -860
- package/hooks/use-account-mtn.ts +91 -48
- 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 +248 -97
- package/hooks/use-aiChat-qry.ts +501 -191
- package/hooks/use-app-qry.ts +14 -11
- package/hooks/use-auth-mtn.ts +410 -256
- 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 +170 -0
- package/hooks/use-dataTable-qry.ts +996 -0
- package/hooks/use-email-qry.ts +227 -0
- package/hooks/use-fieldDoc-mtn.ts +50 -0
- package/hooks/use-fieldDoc-qry.ts +180 -0
- package/hooks/use-inboundContact-mtn.ts +34 -0
- package/hooks/use-inboundContact-qry.ts +96 -0
- package/hooks/use-integration-mtn.ts +77 -0
- package/hooks/use-integration-qry.ts +30 -0
- package/hooks/use-log-mtn.ts +77 -61
- package/hooks/use-log-qry.ts +99 -72
- package/hooks/use-organization-mtn.ts +409 -80
- package/hooks/use-organization-qry.ts +211 -92
- package/hooks/use-schedule-mtn.ts +416 -0
- package/hooks/use-schedule-qry.ts +157 -0
- package/hooks/use-sheet-mtn.ts +367 -0
- package/hooks/use-sheet-qry.ts +440 -0
- package/hooks/use-storage-mtn.ts +83 -42
- package/hooks/use-storage-qry.ts +104 -13
- package/hooks/use-workflow-mtn.ts +55 -0
- package/hooks/use-workflow-qry.ts +230 -0
- package/loaders/campaign.ts +137 -0
- package/package.json +94 -52
- package/sse.ts +158 -105
- package/tsconfig.json +13 -0
- package/types.d.ts +60 -29
- package/utils.ts +77 -50
- package/gql/fragments/actionFragments.ts +0 -16
- package/gql/fragments/productFragments.ts +0 -63
- package/gql/fragments/reportFragments.ts +0 -48
- package/gql/mutations/billingMutations.ts +0 -34
- package/gql/queries/productQueries.ts +0 -70
- package/gql/queries/reportQueries.ts +0 -66
- package/hooks/use-product-qry.ts +0 -109
- package/hooks/use-report-qry.ts +0 -69
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
export const sheetFragment = `fragment sheetFragment on Sheet {
|
|
2
|
+
id
|
|
3
|
+
cursor
|
|
4
|
+
organizationId
|
|
5
|
+
|
|
6
|
+
name
|
|
7
|
+
title
|
|
8
|
+
description
|
|
9
|
+
position
|
|
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
|
|
43
|
+
|
|
44
|
+
design {
|
|
45
|
+
id
|
|
46
|
+
version
|
|
47
|
+
columns
|
|
48
|
+
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
|
+
metadata
|
|
76
|
+
|
|
77
|
+
grid {
|
|
78
|
+
rowCount
|
|
79
|
+
columnCount
|
|
80
|
+
frozenRows
|
|
81
|
+
frozenColumns
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
namedRanges {
|
|
85
|
+
name
|
|
86
|
+
startRowIndex
|
|
87
|
+
startColumnIndex
|
|
88
|
+
endRowIndex
|
|
89
|
+
endColumnIndex
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
createdAt
|
|
94
|
+
updatedAt
|
|
95
|
+
}`;
|
|
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
|
+
|
|
147
|
+
export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
148
|
+
id
|
|
149
|
+
organizationId
|
|
150
|
+
sheetId
|
|
151
|
+
sheetTabId
|
|
152
|
+
|
|
153
|
+
rowIndex
|
|
154
|
+
columnIndex
|
|
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
|
+
}
|
|
201
|
+
value
|
|
202
|
+
formulaValue
|
|
203
|
+
textValue
|
|
204
|
+
numberValue
|
|
205
|
+
booleanValue
|
|
206
|
+
dateValue
|
|
207
|
+
datetimeValue
|
|
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
|
|
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
|
+
|
|
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
|
+
|
|
301
|
+
createdAt
|
|
302
|
+
updatedAt
|
|
303
|
+
}`;
|
|
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
|
+
|
|
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
|
+
export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
|
|
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
|
+
}
|
|
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
|
+
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
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
ranges {
|
|
473
|
+
...sheetRangeFragment
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
cellsDelta {
|
|
477
|
+
...sheetCellFragment
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
deletedCellCoords {
|
|
481
|
+
sheetTabId
|
|
482
|
+
rowIndex
|
|
483
|
+
columnIndex
|
|
484
|
+
id
|
|
485
|
+
revision
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
structureOps {
|
|
489
|
+
opId
|
|
490
|
+
operation
|
|
491
|
+
index
|
|
492
|
+
structureSeq
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
pageInfo {
|
|
496
|
+
hasMoreRows
|
|
497
|
+
lastContentRowIndex
|
|
498
|
+
}
|
|
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}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
1
|
export const storageFileFragment = `fragment storageFileFragment on StorageFile {
|
|
3
2
|
id
|
|
4
3
|
uri
|
|
5
4
|
size
|
|
6
5
|
contentType
|
|
7
6
|
at
|
|
7
|
+
intent
|
|
8
8
|
name
|
|
9
9
|
description
|
|
10
10
|
aiNote
|
|
@@ -12,3 +12,23 @@ export const storageFileFragment = `fragment storageFileFragment on StorageFile
|
|
|
12
12
|
# client-side required fields
|
|
13
13
|
uploadStatus
|
|
14
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
|
+
}`;
|