@powerhousedao/reactor-browser 6.2.3 → 6.3.0-dev.1
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/dist/{attachment-service-But1Xljo.d.ts → attachment-service-B-AmTrs2.d.ts} +605 -56
- package/dist/attachment-service-B-AmTrs2.d.ts.map +1 -0
- package/dist/auth-DRbzRdeC.d.ts +32 -0
- package/dist/auth-DRbzRdeC.d.ts.map +1 -0
- package/dist/{client-BiJAJ9dW.js → client-BFnMV-EO.js} +39 -22
- package/dist/client-BFnMV-EO.js.map +1 -0
- package/dist/{client-CngU4mtn.d.ts → client-BP0hXjqq.d.ts} +3 -2
- package/dist/client-BP0hXjqq.d.ts.map +1 -0
- package/dist/client-wwavHFfs.js +135 -0
- package/dist/client-wwavHFfs.js.map +1 -0
- package/dist/{dispatch-qRXS70fh.js → dispatch-Cylwl2Dk.js} +363 -44
- package/dist/dispatch-Cylwl2Dk.js.map +1 -0
- package/dist/{document-by-id-B_8DA4yZ.js → document-by-id-DdvqanGR.js} +2 -2
- package/dist/{document-by-id-B_8DA4yZ.js.map → document-by-id-DdvqanGR.js.map} +1 -1
- package/dist/document-model-modules-BG-61uke.js +710 -0
- package/dist/document-model-modules-BG-61uke.js.map +1 -0
- package/dist/{document-operations-Bt-1-ThH.js → document-operations-DRMMwmGZ.js} +2160 -181
- package/dist/document-operations-DRMMwmGZ.js.map +1 -0
- package/dist/global-iARBhxNI.d.ts +612 -0
- package/dist/global-iARBhxNI.d.ts.map +1 -0
- package/dist/{index-BABMK8cO.d.ts → index-CNS_9THu.d.ts} +14 -4
- package/dist/index-CNS_9THu.d.ts.map +1 -0
- package/dist/index.d.ts +560 -79
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +790 -317
- package/dist/index.js.map +1 -1
- package/dist/inspector-proxy-DODqs15F.d.ts +25 -0
- package/dist/inspector-proxy-DODqs15F.d.ts.map +1 -0
- package/dist/make-ph-event-functions-B5GU5xcR.js +180 -0
- package/dist/make-ph-event-functions-B5GU5xcR.js.map +1 -0
- package/dist/{relational-ChC_AWAK.js → relational-DZuyKp2y.js} +65 -5
- package/dist/relational-DZuyKp2y.js.map +1 -0
- package/dist/{renown-C9pYZRqf.js → renown-B3MUaiq7.js} +56 -25
- package/dist/renown-B3MUaiq7.js.map +1 -0
- package/dist/renown-CBoTdGrg.js +394 -0
- package/dist/renown-CBoTdGrg.js.map +1 -0
- package/dist/{client-VV9M73s_.js → schema-B5lftDPf.js} +295 -195
- package/dist/schema-B5lftDPf.js.map +1 -0
- package/dist/{types-B7-_l_wE.d.ts → schema-C6ECceaN.d.ts} +272 -82
- package/dist/schema-C6ECceaN.d.ts.map +1 -0
- package/dist/src/ai/index.d.ts +269 -24
- package/dist/src/ai/index.d.ts.map +1 -1
- package/dist/src/ai/index.js +1028 -168
- package/dist/src/ai/index.js.map +1 -1
- package/dist/src/analytics/index.js +3 -3
- package/dist/src/graphql/client.d.ts +2 -2
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +6 -4
- package/dist/src/graphql-client/entry.js +4 -4
- package/dist/src/relational/index.d.ts +8 -1
- package/dist/src/relational/index.d.ts.map +1 -1
- package/dist/src/relational/index.js +1 -1
- package/dist/src/renown/index.d.ts +2 -2
- package/dist/src/renown/index.js +3 -3
- package/dist/src/rpc/index.d.ts +201 -144
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +562 -634
- package/dist/src/rpc/index.js.map +1 -1
- package/dist/switchboard-directory-vH6qtkh-.js +435 -0
- package/dist/switchboard-directory-vH6qtkh-.js.map +1 -0
- package/dist/switchboards-D-_JBUbF.d.ts +75 -0
- package/dist/switchboards-D-_JBUbF.d.ts.map +1 -0
- package/dist/types-BWx6FPO4.d.ts +63 -0
- package/dist/types-BWx6FPO4.d.ts.map +1 -0
- package/package.json +19 -17
- package/dist/attachment-service-But1Xljo.d.ts.map +0 -1
- package/dist/client-BiJAJ9dW.js.map +0 -1
- package/dist/client-CngU4mtn.d.ts.map +0 -1
- package/dist/client-VV9M73s_.js.map +0 -1
- package/dist/dispatch-qRXS70fh.js.map +0 -1
- package/dist/document-model-modules-D6I-UUXq.js +0 -386
- package/dist/document-model-modules-D6I-UUXq.js.map +0 -1
- package/dist/document-operations-Bt-1-ThH.js.map +0 -1
- package/dist/global-fql2bmb0.d.ts +0 -438
- package/dist/global-fql2bmb0.d.ts.map +0 -1
- package/dist/index-BABMK8cO.d.ts.map +0 -1
- package/dist/inspector-proxy-DCowaeeH.d.ts +0 -264
- package/dist/inspector-proxy-DCowaeeH.d.ts.map +0 -1
- package/dist/make-ph-event-functions-FzpvQtj6.js +0 -53
- package/dist/make-ph-event-functions-FzpvQtj6.js.map +0 -1
- package/dist/relational-ChC_AWAK.js.map +0 -1
- package/dist/renown-C9pYZRqf.js.map +0 -1
- package/dist/renown-Def5iO8k.js +0 -97
- package/dist/renown-Def5iO8k.js.map +0 -1
- package/dist/switchboard-CFyD_5_e.js +0 -323
- package/dist/switchboard-CFyD_5_e.js.map +0 -1
- package/dist/types-B7-_l_wE.d.ts.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GraphQLClient } from "graphql-request";
|
|
2
1
|
import { gql } from "graphql-tag";
|
|
3
2
|
//#region src/graphql/gen/schema.ts
|
|
4
3
|
let PropagationMode = /* @__PURE__ */ function(PropagationMode) {
|
|
@@ -12,6 +11,8 @@ const PhDocumentFieldsFragmentDoc = gql`
|
|
|
12
11
|
slug
|
|
13
12
|
name
|
|
14
13
|
documentType
|
|
14
|
+
meta
|
|
15
|
+
protocolVersions
|
|
15
16
|
state
|
|
16
17
|
revisionsList {
|
|
17
18
|
scope
|
|
@@ -31,6 +32,49 @@ const DocumentRelationshipFieldsFragmentDoc = gql`
|
|
|
31
32
|
updatedAt
|
|
32
33
|
}
|
|
33
34
|
`;
|
|
35
|
+
const JobInfoFieldsFragmentDoc = gql`
|
|
36
|
+
fragment JobInfoFields on JobInfo {
|
|
37
|
+
id
|
|
38
|
+
documentId
|
|
39
|
+
status
|
|
40
|
+
result
|
|
41
|
+
error
|
|
42
|
+
errorName
|
|
43
|
+
createdAt
|
|
44
|
+
completedAt
|
|
45
|
+
consistencyToken {
|
|
46
|
+
version
|
|
47
|
+
createdAtUtcIso
|
|
48
|
+
coordinates {
|
|
49
|
+
documentId
|
|
50
|
+
scope
|
|
51
|
+
branch
|
|
52
|
+
operationIndex
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
meta {
|
|
56
|
+
batchId
|
|
57
|
+
batchJobIds
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
const DriveNodeFieldsFragmentDoc = gql`
|
|
62
|
+
fragment DriveNodeFields on DriveNode {
|
|
63
|
+
... on DriveFileNode {
|
|
64
|
+
id
|
|
65
|
+
driveId
|
|
66
|
+
name
|
|
67
|
+
parentFolder
|
|
68
|
+
documentType
|
|
69
|
+
}
|
|
70
|
+
... on DriveFolderNode {
|
|
71
|
+
id
|
|
72
|
+
driveId
|
|
73
|
+
name
|
|
74
|
+
parentFolder
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
34
78
|
const GetDocumentModelsDocument = gql`
|
|
35
79
|
query GetDocumentModels($namespace: String, $paging: PagingInput) {
|
|
36
80
|
documentModels(namespace: $namespace, paging: $paging) {
|
|
@@ -48,8 +92,8 @@ const GetDocumentModelsDocument = gql`
|
|
|
48
92
|
}
|
|
49
93
|
`;
|
|
50
94
|
const GetDocumentDocument = gql`
|
|
51
|
-
query GetDocument($
|
|
52
|
-
document(
|
|
95
|
+
query GetDocument($idOrSlug: String!, $view: ViewFilterInput) {
|
|
96
|
+
document(idOrSlug: $idOrSlug, view: $view) {
|
|
53
97
|
document {
|
|
54
98
|
...PHDocumentFields
|
|
55
99
|
}
|
|
@@ -60,12 +104,12 @@ const GetDocumentDocument = gql`
|
|
|
60
104
|
`;
|
|
61
105
|
const GetDocumentWithOperationsDocument = gql`
|
|
62
106
|
query GetDocumentWithOperations(
|
|
63
|
-
$
|
|
107
|
+
$idOrSlug: String!
|
|
64
108
|
$view: ViewFilterInput
|
|
65
109
|
$operationsFilter: DocumentOperationsFilterInput
|
|
66
110
|
$operationsPaging: PagingInput
|
|
67
111
|
) {
|
|
68
|
-
document(
|
|
112
|
+
document(idOrSlug: $idOrSlug, view: $view) {
|
|
69
113
|
document {
|
|
70
114
|
...PHDocumentFields
|
|
71
115
|
operations(filter: $operationsFilter, paging: $operationsPaging) {
|
|
@@ -111,13 +155,13 @@ const GetDocumentWithOperationsDocument = gql`
|
|
|
111
155
|
`;
|
|
112
156
|
const GetDocumentOutgoingRelationshipsDocument = gql`
|
|
113
157
|
query GetDocumentOutgoingRelationships(
|
|
114
|
-
$
|
|
158
|
+
$sourceIdOrSlug: String!
|
|
115
159
|
$relationshipType: String!
|
|
116
160
|
$view: ViewFilterInput
|
|
117
161
|
$paging: PagingInput
|
|
118
162
|
) {
|
|
119
163
|
documentOutgoingRelationships(
|
|
120
|
-
|
|
164
|
+
sourceIdOrSlug: $sourceIdOrSlug
|
|
121
165
|
relationshipType: $relationshipType
|
|
122
166
|
view: $view
|
|
123
167
|
paging: $paging
|
|
@@ -134,13 +178,13 @@ const GetDocumentOutgoingRelationshipsDocument = gql`
|
|
|
134
178
|
`;
|
|
135
179
|
const GetDocumentIncomingRelationshipsDocument = gql`
|
|
136
180
|
query GetDocumentIncomingRelationships(
|
|
137
|
-
$
|
|
181
|
+
$targetIdOrSlug: String!
|
|
138
182
|
$relationshipType: String!
|
|
139
183
|
$view: ViewFilterInput
|
|
140
184
|
$paging: PagingInput
|
|
141
185
|
) {
|
|
142
186
|
documentIncomingRelationships(
|
|
143
|
-
|
|
187
|
+
targetIdOrSlug: $targetIdOrSlug
|
|
144
188
|
relationshipType: $relationshipType
|
|
145
189
|
view: $view
|
|
146
190
|
paging: $paging
|
|
@@ -157,13 +201,13 @@ const GetDocumentIncomingRelationshipsDocument = gql`
|
|
|
157
201
|
`;
|
|
158
202
|
const GetDocumentOutgoingRelationshipEdgesDocument = gql`
|
|
159
203
|
query GetDocumentOutgoingRelationshipEdges(
|
|
160
|
-
$
|
|
204
|
+
$sourceIdOrSlug: String!
|
|
161
205
|
$relationshipType: String
|
|
162
206
|
$view: ViewFilterInput
|
|
163
207
|
$paging: PagingInput
|
|
164
208
|
) {
|
|
165
209
|
documentOutgoingRelationshipEdges(
|
|
166
|
-
|
|
210
|
+
sourceIdOrSlug: $sourceIdOrSlug
|
|
167
211
|
relationshipType: $relationshipType
|
|
168
212
|
view: $view
|
|
169
213
|
paging: $paging
|
|
@@ -180,13 +224,13 @@ const GetDocumentOutgoingRelationshipEdgesDocument = gql`
|
|
|
180
224
|
`;
|
|
181
225
|
const GetDocumentIncomingRelationshipEdgesDocument = gql`
|
|
182
226
|
query GetDocumentIncomingRelationshipEdges(
|
|
183
|
-
$
|
|
227
|
+
$targetIdOrSlug: String!
|
|
184
228
|
$relationshipType: String
|
|
185
229
|
$view: ViewFilterInput
|
|
186
230
|
$paging: PagingInput
|
|
187
231
|
) {
|
|
188
232
|
documentIncomingRelationshipEdges(
|
|
189
|
-
|
|
233
|
+
targetIdOrSlug: $targetIdOrSlug
|
|
190
234
|
relationshipType: $relationshipType
|
|
191
235
|
view: $view
|
|
192
236
|
paging: $paging
|
|
@@ -263,23 +307,99 @@ const GetDocumentOperationsDocument = gql`
|
|
|
263
307
|
const GetJobStatusDocument = gql`
|
|
264
308
|
query GetJobStatus($jobId: String!) {
|
|
265
309
|
jobStatus(jobId: $jobId) {
|
|
266
|
-
|
|
267
|
-
status
|
|
268
|
-
result
|
|
269
|
-
error
|
|
270
|
-
createdAt
|
|
271
|
-
completedAt
|
|
310
|
+
...JobInfoFields
|
|
272
311
|
}
|
|
273
312
|
}
|
|
313
|
+
${JobInfoFieldsFragmentDoc}
|
|
314
|
+
`;
|
|
315
|
+
const GetDocumentServedDocument = gql`
|
|
316
|
+
query GetDocumentServed($idOrSlug: String!, $view: ViewFilterInput) {
|
|
317
|
+
documentServed(idOrSlug: $idOrSlug, view: $view)
|
|
318
|
+
}
|
|
319
|
+
`;
|
|
320
|
+
const GetCreateDefaultsDocument = gql`
|
|
321
|
+
query GetCreateDefaults($parentIdOrSlug: String) {
|
|
322
|
+
createDefaults(parentIdOrSlug: $parentIdOrSlug) {
|
|
323
|
+
signaturePolicy
|
|
324
|
+
protocolVersions
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
`;
|
|
328
|
+
const GetCreateProtocolVersionsDocument = gql`
|
|
329
|
+
query GetCreateProtocolVersions(
|
|
330
|
+
$parentIdOrSlug: String
|
|
331
|
+
$documentType: String!
|
|
332
|
+
) {
|
|
333
|
+
createDefaults(
|
|
334
|
+
parentIdOrSlug: $parentIdOrSlug
|
|
335
|
+
documentType: $documentType
|
|
336
|
+
) {
|
|
337
|
+
protocolVersions
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
`;
|
|
341
|
+
const GetUndoRedoTargetsDocument = gql`
|
|
342
|
+
query GetUndoRedoTargets(
|
|
343
|
+
$documentIdOrSlug: String!
|
|
344
|
+
$scope: String
|
|
345
|
+
$branch: String
|
|
346
|
+
) {
|
|
347
|
+
undoRedoTargets(
|
|
348
|
+
documentIdOrSlug: $documentIdOrSlug
|
|
349
|
+
scope: $scope
|
|
350
|
+
branch: $branch
|
|
351
|
+
) {
|
|
352
|
+
undoTarget
|
|
353
|
+
redoTarget
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
`;
|
|
357
|
+
const GetDriveNodesDocument = gql`
|
|
358
|
+
query GetDriveNodes(
|
|
359
|
+
$driveId: ID!
|
|
360
|
+
$parentFolder: ID
|
|
361
|
+
$paging: PagingInput
|
|
362
|
+
$kind: DriveNodeKind
|
|
363
|
+
) {
|
|
364
|
+
driveNodes(
|
|
365
|
+
driveId: $driveId
|
|
366
|
+
parentFolder: $parentFolder
|
|
367
|
+
paging: $paging
|
|
368
|
+
kind: $kind
|
|
369
|
+
) {
|
|
370
|
+
results {
|
|
371
|
+
...DriveNodeFields
|
|
372
|
+
}
|
|
373
|
+
nextCursor
|
|
374
|
+
hasMore
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
${DriveNodeFieldsFragmentDoc}
|
|
378
|
+
`;
|
|
379
|
+
const GetDriveNodeDocument = gql`
|
|
380
|
+
query GetDriveNode($driveId: ID!, $id: ID!) {
|
|
381
|
+
driveNode(driveId: $driveId, id: $id) {
|
|
382
|
+
...DriveNodeFields
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
${DriveNodeFieldsFragmentDoc}
|
|
386
|
+
`;
|
|
387
|
+
const GetDriveDescendantsDocument = gql`
|
|
388
|
+
query GetDriveDescendants($driveId: ID!, $root: ID!) {
|
|
389
|
+
driveDescendants(driveId: $driveId, root: $root) {
|
|
390
|
+
...DriveNodeFields
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
${DriveNodeFieldsFragmentDoc}
|
|
274
394
|
`;
|
|
275
395
|
const EvaluateActionsDocument = gql`
|
|
276
396
|
query EvaluateActions(
|
|
277
|
-
$
|
|
397
|
+
$documentIdOrSlug: String!
|
|
278
398
|
$branch: String
|
|
279
399
|
$candidates: [ActionCandidateInput!]!
|
|
280
400
|
) {
|
|
281
401
|
evaluateActions(
|
|
282
|
-
|
|
402
|
+
documentIdOrSlug: $documentIdOrSlug
|
|
283
403
|
branch: $branch
|
|
284
404
|
candidates: $candidates
|
|
285
405
|
) {
|
|
@@ -295,8 +415,8 @@ const EvaluateActionsDocument = gql`
|
|
|
295
415
|
}
|
|
296
416
|
`;
|
|
297
417
|
const CreateDocumentDocument = gql`
|
|
298
|
-
mutation CreateDocument($document: JSONObject!, $
|
|
299
|
-
createDocument(document: $document,
|
|
418
|
+
mutation CreateDocument($document: JSONObject!, $parentIdOrSlug: String) {
|
|
419
|
+
createDocument(document: $document, parentIdOrSlug: $parentIdOrSlug) {
|
|
300
420
|
...PHDocumentFields
|
|
301
421
|
}
|
|
302
422
|
}
|
|
@@ -305,11 +425,11 @@ const CreateDocumentDocument = gql`
|
|
|
305
425
|
const CreateEmptyDocumentDocument = gql`
|
|
306
426
|
mutation CreateEmptyDocument(
|
|
307
427
|
$documentType: String!
|
|
308
|
-
$
|
|
428
|
+
$parentIdOrSlug: String
|
|
309
429
|
) {
|
|
310
430
|
createEmptyDocument(
|
|
311
431
|
documentType: $documentType
|
|
312
|
-
|
|
432
|
+
parentIdOrSlug: $parentIdOrSlug
|
|
313
433
|
) {
|
|
314
434
|
...PHDocumentFields
|
|
315
435
|
}
|
|
@@ -318,12 +438,12 @@ const CreateEmptyDocumentDocument = gql`
|
|
|
318
438
|
`;
|
|
319
439
|
const MutateDocumentDocument = gql`
|
|
320
440
|
mutation MutateDocument(
|
|
321
|
-
$
|
|
441
|
+
$documentIdOrSlug: String!
|
|
322
442
|
$actions: [ActionInput!]!
|
|
323
443
|
$branch: String
|
|
324
444
|
) {
|
|
325
445
|
mutateDocument: execute(
|
|
326
|
-
|
|
446
|
+
documentIdOrSlug: $documentIdOrSlug
|
|
327
447
|
actions: $actions
|
|
328
448
|
branch: $branch
|
|
329
449
|
) {
|
|
@@ -334,32 +454,41 @@ const MutateDocumentDocument = gql`
|
|
|
334
454
|
`;
|
|
335
455
|
const MutateDocumentAsyncDocument = gql`
|
|
336
456
|
mutation MutateDocumentAsync(
|
|
337
|
-
$
|
|
457
|
+
$documentIdOrSlug: String!
|
|
338
458
|
$actions: [ActionInput!]!
|
|
339
459
|
$branch: String
|
|
340
460
|
) {
|
|
341
461
|
mutateDocumentAsync: executeAsync(
|
|
342
|
-
|
|
462
|
+
documentIdOrSlug: $documentIdOrSlug
|
|
343
463
|
actions: $actions
|
|
344
464
|
branch: $branch
|
|
345
465
|
) {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
466
|
+
...JobInfoFields
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
${JobInfoFieldsFragmentDoc}
|
|
470
|
+
`;
|
|
471
|
+
const ExecuteBatchDocument = gql`
|
|
472
|
+
mutation ExecuteBatch($jobs: [ExecutionJobInput!]!) {
|
|
473
|
+
executeBatch(jobs: $jobs) {
|
|
474
|
+
jobs {
|
|
475
|
+
key
|
|
476
|
+
job {
|
|
477
|
+
...JobInfoFields
|
|
478
|
+
}
|
|
479
|
+
}
|
|
352
480
|
}
|
|
353
481
|
}
|
|
482
|
+
${JobInfoFieldsFragmentDoc}
|
|
354
483
|
`;
|
|
355
484
|
const RenameDocumentDocument = gql`
|
|
356
485
|
mutation RenameDocument(
|
|
357
|
-
$
|
|
486
|
+
$documentIdOrSlug: String!
|
|
358
487
|
$name: String!
|
|
359
488
|
$branch: String
|
|
360
489
|
) {
|
|
361
490
|
renameDocument(
|
|
362
|
-
|
|
491
|
+
documentIdOrSlug: $documentIdOrSlug
|
|
363
492
|
name: $name
|
|
364
493
|
branch: $branch
|
|
365
494
|
) {
|
|
@@ -370,12 +499,12 @@ const RenameDocumentDocument = gql`
|
|
|
370
499
|
`;
|
|
371
500
|
const SetPreferredEditorDocument = gql`
|
|
372
501
|
mutation SetPreferredEditor(
|
|
373
|
-
$
|
|
502
|
+
$documentIdOrSlug: String!
|
|
374
503
|
$preferredEditor: String
|
|
375
504
|
$branch: String
|
|
376
505
|
) {
|
|
377
506
|
setPreferredEditor(
|
|
378
|
-
|
|
507
|
+
documentIdOrSlug: $documentIdOrSlug
|
|
379
508
|
preferredEditor: $preferredEditor
|
|
380
509
|
branch: $branch
|
|
381
510
|
) {
|
|
@@ -386,15 +515,15 @@ const SetPreferredEditorDocument = gql`
|
|
|
386
515
|
`;
|
|
387
516
|
const AddRelationshipDocument = gql`
|
|
388
517
|
mutation AddRelationship(
|
|
389
|
-
$
|
|
390
|
-
$
|
|
518
|
+
$sourceIdOrSlug: String!
|
|
519
|
+
$targetIdOrSlug: String!
|
|
391
520
|
$relationshipType: String!
|
|
392
521
|
$metadata: JSONObject
|
|
393
522
|
$branch: String
|
|
394
523
|
) {
|
|
395
524
|
addRelationship(
|
|
396
|
-
|
|
397
|
-
|
|
525
|
+
sourceIdOrSlug: $sourceIdOrSlug
|
|
526
|
+
targetIdOrSlug: $targetIdOrSlug
|
|
398
527
|
relationshipType: $relationshipType
|
|
399
528
|
metadata: $metadata
|
|
400
529
|
branch: $branch
|
|
@@ -406,15 +535,15 @@ const AddRelationshipDocument = gql`
|
|
|
406
535
|
`;
|
|
407
536
|
const UpdateRelationshipDocument = gql`
|
|
408
537
|
mutation UpdateRelationship(
|
|
409
|
-
$
|
|
410
|
-
$
|
|
538
|
+
$sourceIdOrSlug: String!
|
|
539
|
+
$targetIdOrSlug: String!
|
|
411
540
|
$relationshipType: String!
|
|
412
541
|
$metadata: JSONObject
|
|
413
542
|
$branch: String
|
|
414
543
|
) {
|
|
415
544
|
updateRelationship(
|
|
416
|
-
|
|
417
|
-
|
|
545
|
+
sourceIdOrSlug: $sourceIdOrSlug
|
|
546
|
+
targetIdOrSlug: $targetIdOrSlug
|
|
418
547
|
relationshipType: $relationshipType
|
|
419
548
|
metadata: $metadata
|
|
420
549
|
branch: $branch
|
|
@@ -426,14 +555,14 @@ const UpdateRelationshipDocument = gql`
|
|
|
426
555
|
`;
|
|
427
556
|
const RemoveRelationshipDocument = gql`
|
|
428
557
|
mutation RemoveRelationship(
|
|
429
|
-
$
|
|
430
|
-
$
|
|
558
|
+
$sourceIdOrSlug: String!
|
|
559
|
+
$targetIdOrSlug: String!
|
|
431
560
|
$relationshipType: String!
|
|
432
561
|
$branch: String
|
|
433
562
|
) {
|
|
434
563
|
removeRelationship(
|
|
435
|
-
|
|
436
|
-
|
|
564
|
+
sourceIdOrSlug: $sourceIdOrSlug
|
|
565
|
+
targetIdOrSlug: $targetIdOrSlug
|
|
437
566
|
relationshipType: $relationshipType
|
|
438
567
|
branch: $branch
|
|
439
568
|
) {
|
|
@@ -444,16 +573,16 @@ const RemoveRelationshipDocument = gql`
|
|
|
444
573
|
`;
|
|
445
574
|
const MoveRelationshipDocument = gql`
|
|
446
575
|
mutation MoveRelationship(
|
|
447
|
-
$
|
|
448
|
-
$
|
|
449
|
-
$
|
|
576
|
+
$sourceParentIdOrSlug: String!
|
|
577
|
+
$targetParentIdOrSlug: String!
|
|
578
|
+
$targetIdOrSlug: String!
|
|
450
579
|
$relationshipType: String!
|
|
451
580
|
$branch: String
|
|
452
581
|
) {
|
|
453
582
|
moveRelationship(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
583
|
+
sourceParentIdOrSlug: $sourceParentIdOrSlug
|
|
584
|
+
targetParentIdOrSlug: $targetParentIdOrSlug
|
|
585
|
+
targetIdOrSlug: $targetIdOrSlug
|
|
457
586
|
relationshipType: $relationshipType
|
|
458
587
|
branch: $branch
|
|
459
588
|
) {
|
|
@@ -468,16 +597,16 @@ const MoveRelationshipDocument = gql`
|
|
|
468
597
|
${PhDocumentFieldsFragmentDoc}
|
|
469
598
|
`;
|
|
470
599
|
const DeleteDocumentDocument = gql`
|
|
471
|
-
mutation DeleteDocument($
|
|
472
|
-
deleteDocument(
|
|
600
|
+
mutation DeleteDocument($idOrSlug: String!, $propagate: PropagationMode) {
|
|
601
|
+
deleteDocument(idOrSlug: $idOrSlug, propagate: $propagate)
|
|
473
602
|
}
|
|
474
603
|
`;
|
|
475
604
|
const DeleteDocumentsDocument = gql`
|
|
476
605
|
mutation DeleteDocuments(
|
|
477
|
-
$
|
|
606
|
+
$idsOrSlugs: [String!]!
|
|
478
607
|
$propagate: PropagationMode
|
|
479
608
|
) {
|
|
480
|
-
deleteDocuments(
|
|
609
|
+
deleteDocuments(idsOrSlugs: $idsOrSlugs, propagate: $propagate)
|
|
481
610
|
}
|
|
482
611
|
`;
|
|
483
612
|
const DocumentChangesDocument = gql`
|
|
@@ -513,11 +642,15 @@ const PollSyncEnvelopesDocument = gql`
|
|
|
513
642
|
$channelId: String!
|
|
514
643
|
$outboxAck: Int!
|
|
515
644
|
$outboxLatest: Int!
|
|
645
|
+
$manifestRevision: String
|
|
646
|
+
$refusals: [SyncRefusalInput!]
|
|
516
647
|
) {
|
|
517
648
|
pollSyncEnvelopes(
|
|
518
649
|
channelId: $channelId
|
|
519
650
|
outboxAck: $outboxAck
|
|
520
651
|
outboxLatest: $outboxLatest
|
|
652
|
+
manifestRevision: $manifestRevision
|
|
653
|
+
refusals: $refusals
|
|
521
654
|
) {
|
|
522
655
|
envelopes {
|
|
523
656
|
type
|
|
@@ -577,6 +710,8 @@ const PollSyncEnvelopesDocument = gql`
|
|
|
577
710
|
errorType
|
|
578
711
|
}
|
|
579
712
|
hasMore
|
|
713
|
+
manifestRevision
|
|
714
|
+
peerManifestRevision
|
|
580
715
|
}
|
|
581
716
|
}
|
|
582
717
|
`;
|
|
@@ -585,12 +720,19 @@ const TouchChannelDocument = gql`
|
|
|
585
720
|
touchChannel(input: $input) {
|
|
586
721
|
success
|
|
587
722
|
ackOrdinal
|
|
723
|
+
manifest
|
|
588
724
|
}
|
|
589
725
|
}
|
|
590
726
|
`;
|
|
591
727
|
const PushSyncEnvelopesDocument = gql`
|
|
592
|
-
mutation PushSyncEnvelopes(
|
|
593
|
-
|
|
728
|
+
mutation PushSyncEnvelopes(
|
|
729
|
+
$envelopes: [SyncEnvelopeInput!]!
|
|
730
|
+
$peerManifestRevision: String
|
|
731
|
+
) {
|
|
732
|
+
pushSyncEnvelopes(
|
|
733
|
+
envelopes: $envelopes
|
|
734
|
+
peerManifestRevision: $peerManifestRevision
|
|
735
|
+
)
|
|
594
736
|
}
|
|
595
737
|
`;
|
|
596
738
|
const defaultWrapper = (action, _operationName, _operationType, _variables) => action();
|
|
@@ -706,6 +848,83 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
706
848
|
signal
|
|
707
849
|
}), "GetJobStatus", "query", variables);
|
|
708
850
|
},
|
|
851
|
+
GetDocumentServed(variables, requestHeaders, signal) {
|
|
852
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
853
|
+
document: GetDocumentServedDocument,
|
|
854
|
+
variables,
|
|
855
|
+
requestHeaders: {
|
|
856
|
+
...requestHeaders,
|
|
857
|
+
...wrappedRequestHeaders
|
|
858
|
+
},
|
|
859
|
+
signal
|
|
860
|
+
}), "GetDocumentServed", "query", variables);
|
|
861
|
+
},
|
|
862
|
+
GetCreateDefaults(variables, requestHeaders, signal) {
|
|
863
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
864
|
+
document: GetCreateDefaultsDocument,
|
|
865
|
+
variables,
|
|
866
|
+
requestHeaders: {
|
|
867
|
+
...requestHeaders,
|
|
868
|
+
...wrappedRequestHeaders
|
|
869
|
+
},
|
|
870
|
+
signal
|
|
871
|
+
}), "GetCreateDefaults", "query", variables);
|
|
872
|
+
},
|
|
873
|
+
GetCreateProtocolVersions(variables, requestHeaders, signal) {
|
|
874
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
875
|
+
document: GetCreateProtocolVersionsDocument,
|
|
876
|
+
variables,
|
|
877
|
+
requestHeaders: {
|
|
878
|
+
...requestHeaders,
|
|
879
|
+
...wrappedRequestHeaders
|
|
880
|
+
},
|
|
881
|
+
signal
|
|
882
|
+
}), "GetCreateProtocolVersions", "query", variables);
|
|
883
|
+
},
|
|
884
|
+
GetUndoRedoTargets(variables, requestHeaders, signal) {
|
|
885
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
886
|
+
document: GetUndoRedoTargetsDocument,
|
|
887
|
+
variables,
|
|
888
|
+
requestHeaders: {
|
|
889
|
+
...requestHeaders,
|
|
890
|
+
...wrappedRequestHeaders
|
|
891
|
+
},
|
|
892
|
+
signal
|
|
893
|
+
}), "GetUndoRedoTargets", "query", variables);
|
|
894
|
+
},
|
|
895
|
+
GetDriveNodes(variables, requestHeaders, signal) {
|
|
896
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
897
|
+
document: GetDriveNodesDocument,
|
|
898
|
+
variables,
|
|
899
|
+
requestHeaders: {
|
|
900
|
+
...requestHeaders,
|
|
901
|
+
...wrappedRequestHeaders
|
|
902
|
+
},
|
|
903
|
+
signal
|
|
904
|
+
}), "GetDriveNodes", "query", variables);
|
|
905
|
+
},
|
|
906
|
+
GetDriveNode(variables, requestHeaders, signal) {
|
|
907
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
908
|
+
document: GetDriveNodeDocument,
|
|
909
|
+
variables,
|
|
910
|
+
requestHeaders: {
|
|
911
|
+
...requestHeaders,
|
|
912
|
+
...wrappedRequestHeaders
|
|
913
|
+
},
|
|
914
|
+
signal
|
|
915
|
+
}), "GetDriveNode", "query", variables);
|
|
916
|
+
},
|
|
917
|
+
GetDriveDescendants(variables, requestHeaders, signal) {
|
|
918
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
919
|
+
document: GetDriveDescendantsDocument,
|
|
920
|
+
variables,
|
|
921
|
+
requestHeaders: {
|
|
922
|
+
...requestHeaders,
|
|
923
|
+
...wrappedRequestHeaders
|
|
924
|
+
},
|
|
925
|
+
signal
|
|
926
|
+
}), "GetDriveDescendants", "query", variables);
|
|
927
|
+
},
|
|
709
928
|
EvaluateActions(variables, requestHeaders, signal) {
|
|
710
929
|
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
711
930
|
document: EvaluateActionsDocument,
|
|
@@ -761,6 +980,17 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
761
980
|
signal
|
|
762
981
|
}), "MutateDocumentAsync", "mutation", variables);
|
|
763
982
|
},
|
|
983
|
+
ExecuteBatch(variables, requestHeaders, signal) {
|
|
984
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
985
|
+
document: ExecuteBatchDocument,
|
|
986
|
+
variables,
|
|
987
|
+
requestHeaders: {
|
|
988
|
+
...requestHeaders,
|
|
989
|
+
...wrappedRequestHeaders
|
|
990
|
+
},
|
|
991
|
+
signal
|
|
992
|
+
}), "ExecuteBatch", "mutation", variables);
|
|
993
|
+
},
|
|
764
994
|
RenameDocument(variables, requestHeaders, signal) {
|
|
765
995
|
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
766
996
|
document: RenameDocumentDocument,
|
|
@@ -907,136 +1137,6 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
907
1137
|
};
|
|
908
1138
|
}
|
|
909
1139
|
//#endregion
|
|
910
|
-
|
|
911
|
-
/** Get the source string from a GraphQL document (string or DocumentNode). */
|
|
912
|
-
function getDocumentSource(doc) {
|
|
913
|
-
return typeof doc === "string" ? doc : doc.loc?.source.body ?? "";
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Extract the inner selection set of a named field from a GraphQL document source.
|
|
917
|
-
* Returns the `{ ... }` block including braces.
|
|
918
|
-
*/
|
|
919
|
-
function extractSelectionSet(doc, fieldName, fallback) {
|
|
920
|
-
const source = getDocumentSource(doc);
|
|
921
|
-
return new RegExp(`${fieldName}\\([^)]*\\)\\s*(\\{[\\s\\S]*\\})\\s*\\}`).exec(source)?.[1] ?? fallback;
|
|
922
|
-
}
|
|
923
|
-
/**
|
|
924
|
-
* Extract the query body and any fragment definitions from a GraphQL document.
|
|
925
|
-
* Returns { body, fragments } where body is the content inside the query `{ ... }`
|
|
926
|
-
* and fragments are any trailing fragment definitions.
|
|
927
|
-
*/
|
|
928
|
-
function extractQueryParts(doc, fallbackBody) {
|
|
929
|
-
const source = getDocumentSource(doc);
|
|
930
|
-
const queryMatch = /^[^{]*\{([\s\S]*?)\}\s*(fragment[\s\S]*)?$/.exec(source);
|
|
931
|
-
return {
|
|
932
|
-
body: queryMatch?.[1]?.trim() ?? fallbackBody,
|
|
933
|
-
fragments: queryMatch?.[2]?.trim() ?? ""
|
|
934
|
-
};
|
|
935
|
-
}
|
|
936
|
-
const operationsSelectionSet = extractSelectionSet(GetDocumentOperationsDocument, "documentOperations", "{ items { index } }");
|
|
937
|
-
const documentParts = extractQueryParts(GetDocumentDocument, "document(identifier: $identifier) { document { id name documentType state revisionsList { scope revision } createdAtUtcIso lastModifiedAtUtcIso } childIds }");
|
|
938
|
-
/**
|
|
939
|
-
* Build a single GraphQL query that fetches documentOperations for
|
|
940
|
-
* multiple filters using aliases. Each filter gets its own alias
|
|
941
|
-
* (`scope_0`, `scope_1`, …) so all scopes are fetched in one HTTP request.
|
|
942
|
-
*/
|
|
943
|
-
function buildBatchOperationsQuery(filters, pagings) {
|
|
944
|
-
const query = `query BatchGetDocumentOperations(${filters.flatMap((_, i) => [`$filter_${i}: OperationsFilterInput!`, `$paging_${i}: PagingInput`]).join(", ")}) {
|
|
945
|
-
${filters.map((_, i) => `scope_${i}: documentOperations(filter: $filter_${i}, paging: $paging_${i}) ${operationsSelectionSet}`).join("\n ")}
|
|
946
|
-
}`;
|
|
947
|
-
const variables = {};
|
|
948
|
-
for (let i = 0; i < filters.length; i++) {
|
|
949
|
-
variables[`filter_${i}`] = filters[i];
|
|
950
|
-
variables[`paging_${i}`] = pagings[i] ?? null;
|
|
951
|
-
}
|
|
952
|
-
return {
|
|
953
|
-
query,
|
|
954
|
-
variables
|
|
955
|
-
};
|
|
956
|
-
}
|
|
957
|
-
/**
|
|
958
|
-
* Build a single GraphQL query that fetches a document AND
|
|
959
|
-
* documentOperations for multiple filters, all in one HTTP request.
|
|
960
|
-
*/
|
|
961
|
-
function buildBatchDocumentWithOperationsQuery(identifier, view, filters, pagings) {
|
|
962
|
-
const docVarDefs = "$identifier: String!, $view: ViewFilterInput";
|
|
963
|
-
const opsVarDefs = filters.flatMap((_, i) => [`$filter_${i}: OperationsFilterInput!`, `$paging_${i}: PagingInput`]).join(", ");
|
|
964
|
-
const opsFields = filters.map((_, i) => `scope_${i}: documentOperations(filter: $filter_${i}, paging: $paging_${i}) ${operationsSelectionSet}`).join("\n ");
|
|
965
|
-
const query = `query BatchGetDocumentWithOperations(${docVarDefs}, ${opsVarDefs}) {
|
|
966
|
-
${documentParts.body}
|
|
967
|
-
${opsFields}
|
|
968
|
-
}
|
|
969
|
-
${documentParts.fragments}`;
|
|
970
|
-
const variables = {
|
|
971
|
-
identifier,
|
|
972
|
-
view: view ?? null
|
|
973
|
-
};
|
|
974
|
-
for (let i = 0; i < filters.length; i++) {
|
|
975
|
-
variables[`filter_${i}`] = filters[i];
|
|
976
|
-
variables[`paging_${i}`] = pagings[i] ?? null;
|
|
977
|
-
}
|
|
978
|
-
return {
|
|
979
|
-
query,
|
|
980
|
-
variables
|
|
981
|
-
};
|
|
982
|
-
}
|
|
983
|
-
//#endregion
|
|
984
|
-
//#region src/graphql/client.ts
|
|
985
|
-
/**
|
|
986
|
-
* Creates a GraphQL client for the Reactor Subgraph API.
|
|
987
|
-
* @param urlOrGQLClient The URL of the GraphQL API or a GraphQL client instance.
|
|
988
|
-
* @param middleware An optional middleware function to wrap the GraphQL client calls.
|
|
989
|
-
* @returns A GraphQL client for the Reactor Subgraph API.
|
|
990
|
-
*/
|
|
991
|
-
function createClient(urlOrGQLClient, middleware) {
|
|
992
|
-
const client = typeof urlOrGQLClient === "string" ? new GraphQLClient(urlOrGQLClient) : urlOrGQLClient;
|
|
993
|
-
const runWithMiddleware = async (operationName, run, operationType = "query", variables) => {
|
|
994
|
-
if (!middleware) return run();
|
|
995
|
-
return middleware(run, operationName, operationType, variables);
|
|
996
|
-
};
|
|
997
|
-
return {
|
|
998
|
-
...getSdk(client, middleware),
|
|
999
|
-
/**
|
|
1000
|
-
* Run a hand-authored GraphQL document through the same transport and
|
|
1001
|
-
* middleware as the generated SDK methods.
|
|
1002
|
-
*/
|
|
1003
|
-
async RunDocument(options) {
|
|
1004
|
-
const { document, variables, signal } = options;
|
|
1005
|
-
return runWithMiddleware(options.operationName, (wrappedRequestHeaders) => client.request({
|
|
1006
|
-
document,
|
|
1007
|
-
variables,
|
|
1008
|
-
requestHeaders: {
|
|
1009
|
-
...options.requestHeaders,
|
|
1010
|
-
...wrappedRequestHeaders
|
|
1011
|
-
},
|
|
1012
|
-
signal
|
|
1013
|
-
}), options.operationType, variables);
|
|
1014
|
-
},
|
|
1015
|
-
/**
|
|
1016
|
-
* Fetch documentOperations for multiple filters in a single HTTP request
|
|
1017
|
-
* using GraphQL aliases. Each filter has its own paging parameters.
|
|
1018
|
-
* Returns one result page per filter, in order.
|
|
1019
|
-
*/
|
|
1020
|
-
async BatchGetDocumentOperations(filters, pagings) {
|
|
1021
|
-
const { query, variables } = buildBatchOperationsQuery(filters, pagings);
|
|
1022
|
-
const data = await runWithMiddleware("BatchGetDocumentOperations", (requestHeaders) => client.request(query, variables, requestHeaders));
|
|
1023
|
-
return filters.map((_, i) => data[`scope_${i}`]);
|
|
1024
|
-
},
|
|
1025
|
-
/**
|
|
1026
|
-
* Fetch a document AND documentOperations for multiple filters
|
|
1027
|
-
* in a single HTTP request. Combines GetDocument + BatchGetDocumentOperations.
|
|
1028
|
-
*/
|
|
1029
|
-
async BatchGetDocumentWithOperations(identifier, view, filters, pagings) {
|
|
1030
|
-
const { query, variables } = buildBatchDocumentWithOperationsQuery(identifier, view, filters, pagings);
|
|
1031
|
-
const data = await runWithMiddleware("BatchGetDocumentWithOperations", (requestHeaders) => client.request(query, variables, requestHeaders));
|
|
1032
|
-
return {
|
|
1033
|
-
document: data.document ?? null,
|
|
1034
|
-
operations: filters.map((_, i) => data[`scope_${i}`])
|
|
1035
|
-
};
|
|
1036
|
-
}
|
|
1037
|
-
};
|
|
1038
|
-
}
|
|
1039
|
-
//#endregion
|
|
1040
|
-
export { PropagationMode as a, PhDocumentFieldsFragmentDoc as i, DocumentChangesDocument as n, GetDocumentWithOperationsDocument as r, createClient as t };
|
|
1140
|
+
export { JobChangesDocument as a, getSdk as c, GetDocumentWithOperationsDocument as i, GetDocumentDocument as n, PhDocumentFieldsFragmentDoc as o, GetDocumentOperationsDocument as r, PropagationMode as s, DocumentChangesDocument as t };
|
|
1041
1141
|
|
|
1042
|
-
//# sourceMappingURL=
|
|
1142
|
+
//# sourceMappingURL=schema-B5lftDPf.js.map
|