@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,14 +1,30 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
dataTableCellFragment,
|
|
4
|
+
dataTableRowFragment,
|
|
5
|
+
} from '../fragments/dataTableFragments.ts';
|
|
6
|
+
import {
|
|
7
|
+
sheetFragment,
|
|
8
|
+
sheetMetadataFragment,
|
|
9
|
+
sheetReferencedDataTableSchemaFragment,
|
|
10
|
+
sheetTabFragment,
|
|
11
|
+
sheetTabSummaryFragment,
|
|
12
|
+
} from '../fragments/sheetFragments.ts';
|
|
3
13
|
|
|
4
14
|
export const sheetsQry = gql`
|
|
5
15
|
query sheets (
|
|
6
16
|
$organizationId: GenericID!
|
|
7
|
-
$
|
|
17
|
+
$sort: GridItemSort
|
|
18
|
+
$cursor: Cursor
|
|
19
|
+
$after: Boolean!
|
|
20
|
+
$limit: Int!
|
|
8
21
|
) {
|
|
9
22
|
sheets (
|
|
10
23
|
organizationId: $organizationId
|
|
11
|
-
|
|
24
|
+
sort: $sort
|
|
25
|
+
cursor: $cursor
|
|
26
|
+
after: $after
|
|
27
|
+
limit: $limit
|
|
12
28
|
) {
|
|
13
29
|
...sheetFragment
|
|
14
30
|
}
|
|
@@ -17,56 +33,351 @@ query sheets (
|
|
|
17
33
|
${sheetFragment}
|
|
18
34
|
`;
|
|
19
35
|
|
|
20
|
-
export const
|
|
21
|
-
query
|
|
22
|
-
$organizationId: GenericID!
|
|
36
|
+
export const publicSheetMetadataQry = gql`
|
|
37
|
+
query publicSheetMetadata (
|
|
23
38
|
$sheetId: GenericID!
|
|
24
39
|
) {
|
|
25
|
-
|
|
26
|
-
organizationId: $organizationId
|
|
40
|
+
publicSheetMetadata (
|
|
27
41
|
sheetId: $sheetId
|
|
28
42
|
) {
|
|
29
|
-
...
|
|
43
|
+
...sheetMetadataFragment
|
|
30
44
|
}
|
|
31
45
|
}
|
|
32
46
|
|
|
33
|
-
${
|
|
47
|
+
${sheetMetadataFragment}
|
|
34
48
|
`;
|
|
35
49
|
|
|
36
|
-
|
|
37
|
-
|
|
50
|
+
// NOTE: sheetAccess is viewer-specific and works signed out: the public
|
|
51
|
+
// sheet route uses it to learn the owner org and view/edit facts, and the
|
|
52
|
+
// in-app Sheet page uses it for the viewer's effective edit fact (grants
|
|
53
|
+
// are per-viewer overrides, so the base policy alone cannot decide it).
|
|
54
|
+
|
|
55
|
+
export const sheetAccessQry = gql`
|
|
56
|
+
query sheetAccess (
|
|
57
|
+
$sheetId: GenericID!
|
|
58
|
+
) {
|
|
59
|
+
sheetAccess (
|
|
60
|
+
sheetId: $sheetId
|
|
61
|
+
) {
|
|
62
|
+
sheetId
|
|
63
|
+
organizationId
|
|
64
|
+
canView
|
|
65
|
+
canEdit
|
|
66
|
+
signInRequired
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
export const sheetRegionSourcePreviewRowsQry = gql`
|
|
72
|
+
query sheetRegionSourcePreviewRows (
|
|
73
|
+
$organizationId: GenericID!
|
|
74
|
+
$region: SheetRegionInput!
|
|
75
|
+
$limit: Int!
|
|
76
|
+
) {
|
|
77
|
+
sheetRegionSourcePreviewRows (
|
|
78
|
+
organizationId: $organizationId
|
|
79
|
+
region: $region
|
|
80
|
+
limit: $limit
|
|
81
|
+
) {
|
|
82
|
+
...dataTableRowFragment
|
|
83
|
+
|
|
84
|
+
cells {
|
|
85
|
+
...dataTableCellFragment
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
${dataTableRowFragment}
|
|
91
|
+
${dataTableCellFragment}
|
|
92
|
+
`;
|
|
93
|
+
|
|
94
|
+
// NOTE: sheetAccessGrants is owner-org only: the access settings screen
|
|
95
|
+
// loads the grants list with it, on top of the base policy carried by the
|
|
96
|
+
// Sheet fragment's "access" selection.
|
|
97
|
+
|
|
98
|
+
export const sheetAccessGrantsQry = gql`
|
|
99
|
+
query sheetAccessGrants (
|
|
38
100
|
$organizationId: GenericID!
|
|
39
101
|
$sheetId: GenericID!
|
|
40
|
-
$viewport: SheetGridViewportInput!
|
|
41
102
|
) {
|
|
42
|
-
|
|
103
|
+
sheetAccessGrants (
|
|
43
104
|
organizationId: $organizationId
|
|
44
105
|
sheetId: $sheetId
|
|
106
|
+
) {
|
|
107
|
+
granteeType
|
|
108
|
+
granteeId
|
|
109
|
+
permission
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
// NOTE: openSheet is the page-bootstrap contract. It derives the owner org
|
|
115
|
+
// from sheetId, folds viewer access into the response, and lets the server
|
|
116
|
+
// choose a compact snapshot or a short contiguous cell-only delta.
|
|
117
|
+
|
|
118
|
+
export const openSheetQry = gql`
|
|
119
|
+
query openSheet (
|
|
120
|
+
$sheetId: GenericID!
|
|
121
|
+
$selectedTabId: GenericID
|
|
122
|
+
$sinceSeq: BigInt
|
|
123
|
+
$baseSnapshotSeq: BigInt
|
|
124
|
+
$baseSnapshotEncodingVersion: Int
|
|
125
|
+
$baseSnapshotChecksum: String
|
|
126
|
+
$viewport: SheetGridViewportInput
|
|
127
|
+
) {
|
|
128
|
+
openSheet (
|
|
129
|
+
sheetId: $sheetId
|
|
130
|
+
selectedTabId: $selectedTabId
|
|
131
|
+
sinceSeq: $sinceSeq
|
|
132
|
+
baseSnapshotSeq: $baseSnapshotSeq
|
|
133
|
+
baseSnapshotEncodingVersion: $baseSnapshotEncodingVersion
|
|
134
|
+
baseSnapshotChecksum: $baseSnapshotChecksum
|
|
45
135
|
viewport: $viewport
|
|
46
136
|
) {
|
|
47
|
-
|
|
137
|
+
access {
|
|
138
|
+
sheetId
|
|
139
|
+
organizationId
|
|
140
|
+
canView
|
|
141
|
+
canEdit
|
|
142
|
+
signInRequired
|
|
143
|
+
}
|
|
48
144
|
|
|
145
|
+
contractVersion
|
|
146
|
+
realtimeToken
|
|
147
|
+
status
|
|
148
|
+
unavailableReason
|
|
49
149
|
sheet {
|
|
50
150
|
...sheetFragment
|
|
51
151
|
}
|
|
52
152
|
|
|
53
|
-
|
|
54
|
-
...
|
|
153
|
+
tabs {
|
|
154
|
+
...sheetTabSummaryFragment
|
|
55
155
|
}
|
|
56
156
|
|
|
57
|
-
|
|
58
|
-
...
|
|
157
|
+
selectedTab {
|
|
158
|
+
...sheetTabFragment
|
|
59
159
|
}
|
|
60
160
|
|
|
61
|
-
|
|
62
|
-
|
|
161
|
+
mode
|
|
162
|
+
currentSeq
|
|
163
|
+
servedViewport {
|
|
164
|
+
startRowIndex
|
|
165
|
+
startColumnIndex
|
|
166
|
+
rowCount
|
|
167
|
+
columnCount
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
snapshot {
|
|
171
|
+
seq
|
|
172
|
+
encodingVersion
|
|
173
|
+
viewport {
|
|
174
|
+
startRowIndex
|
|
175
|
+
startColumnIndex
|
|
176
|
+
rowCount
|
|
177
|
+
columnCount
|
|
178
|
+
}
|
|
179
|
+
payload
|
|
180
|
+
checksum
|
|
181
|
+
cellCount
|
|
182
|
+
payloadBytes
|
|
183
|
+
createdAt
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
changes {
|
|
187
|
+
sheetTabId
|
|
188
|
+
seq
|
|
189
|
+
kind
|
|
190
|
+
payload
|
|
191
|
+
commandId
|
|
192
|
+
causationId
|
|
193
|
+
sessionId
|
|
194
|
+
commandType
|
|
195
|
+
createdAt
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
referencedDataTables {
|
|
199
|
+
...sheetReferencedDataTableSchemaFragment
|
|
63
200
|
}
|
|
64
201
|
}
|
|
65
202
|
}
|
|
66
203
|
|
|
67
|
-
${sheetGridFragment}
|
|
68
204
|
${sheetFragment}
|
|
69
|
-
${
|
|
70
|
-
${
|
|
71
|
-
${
|
|
205
|
+
${sheetTabFragment}
|
|
206
|
+
${sheetTabSummaryFragment}
|
|
207
|
+
${sheetReferencedDataTableSchemaFragment}
|
|
208
|
+
`;
|
|
209
|
+
|
|
210
|
+
// NOTE: openSheetTab is the post-manifest bootstrap contract. It intentionally
|
|
211
|
+
// excludes workbook JSON, all-tab summaries, and cross-tab reference metadata.
|
|
212
|
+
|
|
213
|
+
export const openSheetTabQry = gql`
|
|
214
|
+
query openSheetTab (
|
|
215
|
+
$sheetId: GenericID!
|
|
216
|
+
$sheetTabId: GenericID!
|
|
217
|
+
$sinceSeq: BigInt
|
|
218
|
+
$baseSnapshotSeq: BigInt
|
|
219
|
+
$baseSnapshotEncodingVersion: Int
|
|
220
|
+
$baseSnapshotChecksum: String
|
|
221
|
+
$viewport: SheetGridViewportInput
|
|
222
|
+
) {
|
|
223
|
+
openSheetTab (
|
|
224
|
+
sheetId: $sheetId
|
|
225
|
+
sheetTabId: $sheetTabId
|
|
226
|
+
sinceSeq: $sinceSeq
|
|
227
|
+
baseSnapshotSeq: $baseSnapshotSeq
|
|
228
|
+
baseSnapshotEncodingVersion: $baseSnapshotEncodingVersion
|
|
229
|
+
baseSnapshotChecksum: $baseSnapshotChecksum
|
|
230
|
+
viewport: $viewport
|
|
231
|
+
) {
|
|
232
|
+
access {
|
|
233
|
+
sheetId
|
|
234
|
+
organizationId
|
|
235
|
+
canView
|
|
236
|
+
canEdit
|
|
237
|
+
signInRequired
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
contractVersion
|
|
241
|
+
realtimeToken
|
|
242
|
+
status
|
|
243
|
+
unavailableReason
|
|
244
|
+
selectedTab {
|
|
245
|
+
...sheetTabFragment
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
mode
|
|
249
|
+
currentSeq
|
|
250
|
+
servedViewport {
|
|
251
|
+
startRowIndex
|
|
252
|
+
startColumnIndex
|
|
253
|
+
rowCount
|
|
254
|
+
columnCount
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
snapshot {
|
|
258
|
+
seq
|
|
259
|
+
encodingVersion
|
|
260
|
+
viewport {
|
|
261
|
+
startRowIndex
|
|
262
|
+
startColumnIndex
|
|
263
|
+
rowCount
|
|
264
|
+
columnCount
|
|
265
|
+
}
|
|
266
|
+
payload
|
|
267
|
+
checksum
|
|
268
|
+
cellCount
|
|
269
|
+
payloadBytes
|
|
270
|
+
createdAt
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
changes {
|
|
274
|
+
sheetTabId
|
|
275
|
+
seq
|
|
276
|
+
kind
|
|
277
|
+
payload
|
|
278
|
+
commandId
|
|
279
|
+
causationId
|
|
280
|
+
sessionId
|
|
281
|
+
commandType
|
|
282
|
+
createdAt
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
referencedDataTables {
|
|
286
|
+
...sheetReferencedDataTableSchemaFragment
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
${sheetTabFragment}
|
|
292
|
+
${sheetReferencedDataTableSchemaFragment}
|
|
293
|
+
`;
|
|
294
|
+
|
|
295
|
+
// NOTE: sheetTabChanges is the realtime gap-recovery tail read: a client that
|
|
296
|
+
// detects a seq gap in its SheetView fragment deltas fetches every journaled change
|
|
297
|
+
// after its last-seen seq and replays the JSON payloads locally instead of
|
|
298
|
+
// refetching the whole viewport. tailAvailable: false means the tail cannot
|
|
299
|
+
// be served (too long/heavy, truncated, or pre-deployment history) and the
|
|
300
|
+
// client must request a fresh authoritative tab snapshot.
|
|
301
|
+
|
|
302
|
+
export const sheetTabChangesQry = gql`
|
|
303
|
+
query sheetTabChanges (
|
|
304
|
+
$organizationId: GenericID!
|
|
305
|
+
$sheetId: GenericID!
|
|
306
|
+
$sheetTabId: GenericID!
|
|
307
|
+
$afterSeq: BigInt!
|
|
308
|
+
) {
|
|
309
|
+
sheetTabChanges (
|
|
310
|
+
organizationId: $organizationId
|
|
311
|
+
sheetId: $sheetId
|
|
312
|
+
sheetTabId: $sheetTabId
|
|
313
|
+
afterSeq: $afterSeq
|
|
314
|
+
) {
|
|
315
|
+
sheetTabId
|
|
316
|
+
currentSeq
|
|
317
|
+
tailAvailable
|
|
318
|
+
changes {
|
|
319
|
+
sheetTabId
|
|
320
|
+
seq
|
|
321
|
+
kind
|
|
322
|
+
payload
|
|
323
|
+
commandId
|
|
324
|
+
causationId
|
|
325
|
+
sessionId
|
|
326
|
+
commandType
|
|
327
|
+
createdAt
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
`;
|
|
332
|
+
|
|
333
|
+
// NOTE: operational history exposes only the compact semantic intent needed
|
|
334
|
+
// for instant replay and is scoped by the server to the authenticated actor
|
|
335
|
+
// plus this exact browser-tab session.
|
|
336
|
+
|
|
337
|
+
export const sheetOperationalHistoryQry = gql`
|
|
338
|
+
query sheetOperationalHistory (
|
|
339
|
+
$organizationId: GenericID!
|
|
340
|
+
$sheetId: GenericID!
|
|
341
|
+
$sheetTabId: GenericID!
|
|
342
|
+
$sessionId: String!
|
|
343
|
+
) {
|
|
344
|
+
sheetOperationalHistory (
|
|
345
|
+
organizationId: $organizationId
|
|
346
|
+
sheetId: $sheetId
|
|
347
|
+
sheetTabId: $sheetTabId
|
|
348
|
+
sessionId: $sessionId
|
|
349
|
+
) {
|
|
350
|
+
sheetId
|
|
351
|
+
sheetTabId
|
|
352
|
+
sessionId
|
|
353
|
+
truncated
|
|
354
|
+
incompleteBeforeBoundary
|
|
355
|
+
undo {
|
|
356
|
+
commandId
|
|
357
|
+
commandType
|
|
358
|
+
committedAt
|
|
359
|
+
resultRevision
|
|
360
|
+
resultDesignRevision
|
|
361
|
+
axisMove {
|
|
362
|
+
axis
|
|
363
|
+
sourceStartIndex
|
|
364
|
+
sourceEndIndex
|
|
365
|
+
targetStartIndex
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
redo {
|
|
369
|
+
commandId
|
|
370
|
+
commandType
|
|
371
|
+
committedAt
|
|
372
|
+
resultRevision
|
|
373
|
+
resultDesignRevision
|
|
374
|
+
axisMove {
|
|
375
|
+
axis
|
|
376
|
+
sourceStartIndex
|
|
377
|
+
sourceEndIndex
|
|
378
|
+
targetStartIndex
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
72
383
|
`;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { generatedFileFragment } from '../fragments/storageFragments.ts';
|
|
3
|
+
|
|
4
|
+
export const generatedFilesQry = gql`
|
|
5
|
+
query generatedFiles (
|
|
6
|
+
$organizationId: GenericID!
|
|
7
|
+
$cursor: Cursor
|
|
8
|
+
$after: Boolean!
|
|
9
|
+
$limit: Int!
|
|
10
|
+
) {
|
|
11
|
+
generatedFiles (
|
|
12
|
+
organizationId: $organizationId
|
|
13
|
+
cursor: $cursor
|
|
14
|
+
after: $after
|
|
15
|
+
limit: $limit
|
|
16
|
+
) {
|
|
17
|
+
...generatedFileFragment
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
${generatedFileFragment}
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
export const generatedFileQry = gql`
|
|
25
|
+
query generatedFile (
|
|
26
|
+
$organizationId: GenericID!
|
|
27
|
+
$code: String!
|
|
28
|
+
) {
|
|
29
|
+
generatedFile (
|
|
30
|
+
organizationId: $organizationId
|
|
31
|
+
code: $code
|
|
32
|
+
) {
|
|
33
|
+
...generatedFileFragment
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
${generatedFileFragment}
|
|
38
|
+
`;
|
|
@@ -1,28 +1,97 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
workflowFragment,
|
|
4
|
+
workflowRunFragment,
|
|
5
|
+
} from '../fragments/workflowFragments.ts';
|
|
6
|
+
|
|
7
|
+
export const workflowMetadataQry = gql`
|
|
8
|
+
query workflowMetadata (
|
|
9
|
+
$workflowId: GenericID!
|
|
10
|
+
) {
|
|
11
|
+
workflowMetadata (
|
|
12
|
+
workflowId: $workflowId
|
|
13
|
+
) {
|
|
14
|
+
id
|
|
15
|
+
title
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
3
19
|
|
|
4
20
|
export const workflowsQry = gql`
|
|
5
21
|
query workflows (
|
|
6
22
|
$organizationId: GenericID!
|
|
23
|
+
$filter: WorkflowsFilter!
|
|
24
|
+
$sort: WorkflowsSort
|
|
25
|
+
$cursor: Cursor
|
|
26
|
+
$after: Boolean!
|
|
27
|
+
$limit: Int!
|
|
7
28
|
) {
|
|
8
29
|
workflows (
|
|
9
30
|
organizationId: $organizationId
|
|
31
|
+
filter: $filter
|
|
32
|
+
sort: $sort
|
|
33
|
+
cursor: $cursor
|
|
34
|
+
after: $after
|
|
35
|
+
limit: $limit
|
|
10
36
|
) {
|
|
11
37
|
...workflowFragment
|
|
38
|
+
|
|
39
|
+
latestRun {
|
|
40
|
+
...workflowRunFragment
|
|
41
|
+
}
|
|
12
42
|
}
|
|
13
43
|
}
|
|
14
44
|
|
|
15
45
|
${workflowFragment}
|
|
46
|
+
${workflowRunFragment}
|
|
16
47
|
`;
|
|
17
48
|
|
|
18
49
|
export const workflowRunsQry = gql`
|
|
19
50
|
query workflowRuns (
|
|
20
|
-
$
|
|
51
|
+
$organizationId: GenericID!
|
|
52
|
+
$filter: WorkflowRunsFilter!
|
|
53
|
+
$sort: WorkflowRunsSort
|
|
54
|
+
$cursor: Cursor
|
|
55
|
+
$after: Boolean!
|
|
56
|
+
$limit: Int!
|
|
21
57
|
) {
|
|
22
58
|
workflowRuns (
|
|
23
|
-
|
|
59
|
+
organizationId: $organizationId
|
|
60
|
+
filter: $filter
|
|
61
|
+
sort: $sort
|
|
62
|
+
cursor: $cursor
|
|
63
|
+
after: $after
|
|
64
|
+
limit: $limit
|
|
24
65
|
) {
|
|
25
66
|
...workflowRunFragment
|
|
67
|
+
|
|
68
|
+
workflow {
|
|
69
|
+
id
|
|
70
|
+
kind
|
|
71
|
+
title
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
${workflowRunFragment}
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
export const workflowRunQry = gql`
|
|
80
|
+
query workflowRun (
|
|
81
|
+
$organizationId: GenericID!
|
|
82
|
+
$workflowRunId: GenericID!
|
|
83
|
+
) {
|
|
84
|
+
workflowRun (
|
|
85
|
+
organizationId: $organizationId
|
|
86
|
+
workflowRunId: $workflowRunId
|
|
87
|
+
) {
|
|
88
|
+
...workflowRunFragment
|
|
89
|
+
|
|
90
|
+
workflow {
|
|
91
|
+
id
|
|
92
|
+
kind
|
|
93
|
+
title
|
|
94
|
+
}
|
|
26
95
|
}
|
|
27
96
|
}
|
|
28
97
|
|