@powerhousedao/reactor-api 5.1.0 → 5.2.0-staging.2
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/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/src/graphql/auth/index.d.ts +2 -0
- package/dist/src/graphql/auth/index.d.ts.map +1 -0
- package/dist/src/graphql/auth/index.js +2 -0
- package/dist/src/graphql/auth/index.js.map +1 -0
- package/dist/src/graphql/auth/resolvers.d.ts +149 -0
- package/dist/src/graphql/auth/resolvers.d.ts.map +1 -0
- package/dist/src/graphql/auth/resolvers.js +173 -0
- package/dist/src/graphql/auth/resolvers.js.map +1 -0
- package/dist/src/graphql/auth/schema.graphql +173 -0
- package/dist/src/graphql/auth/subgraph.d.ts +177 -0
- package/dist/src/graphql/auth/subgraph.d.ts.map +1 -0
- package/dist/src/graphql/auth/subgraph.js +340 -0
- package/dist/src/graphql/auth/subgraph.js.map +1 -0
- package/dist/src/graphql/base-subgraph.d.ts +4 -1
- package/dist/src/graphql/base-subgraph.d.ts.map +1 -1
- package/dist/src/graphql/base-subgraph.js +4 -0
- package/dist/src/graphql/base-subgraph.js.map +1 -1
- package/dist/src/graphql/document-model-subgraph.d.ts +51 -0
- package/dist/src/graphql/document-model-subgraph.d.ts.map +1 -0
- package/dist/src/graphql/document-model-subgraph.js +104 -0
- package/dist/src/graphql/document-model-subgraph.js.map +1 -0
- package/dist/src/graphql/drive-subgraph.d.ts.map +1 -1
- package/dist/src/graphql/drive-subgraph.js +51 -10
- package/dist/src/graphql/drive-subgraph.js.map +1 -1
- package/dist/src/graphql/graphql-manager.d.ts +11 -3
- package/dist/src/graphql/graphql-manager.d.ts.map +1 -1
- package/dist/src/graphql/graphql-manager.js +72 -15
- package/dist/src/graphql/graphql-manager.js.map +1 -1
- package/dist/src/graphql/index.d.ts +1 -0
- package/dist/src/graphql/index.d.ts.map +1 -1
- package/dist/src/graphql/index.js +1 -0
- package/dist/src/graphql/index.js.map +1 -1
- package/dist/src/graphql/reactor/adapters.js +1 -1
- package/dist/src/graphql/reactor/adapters.js.map +1 -1
- package/dist/src/graphql/reactor/factory.d.ts +4 -4
- package/dist/src/graphql/reactor/factory.d.ts.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.d.ts +295 -64
- package/dist/src/graphql/reactor/gen/graphql.d.ts.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.js +121 -8
- package/dist/src/graphql/reactor/gen/graphql.js.map +1 -1
- package/dist/src/graphql/reactor/operations.graphql +253 -0
- package/dist/src/graphql/reactor/pubsub.d.ts +2 -2
- package/dist/src/graphql/reactor/pubsub.d.ts.map +1 -1
- package/dist/src/graphql/reactor/pubsub.js +2 -1
- package/dist/src/graphql/reactor/pubsub.js.map +1 -1
- package/dist/src/graphql/reactor/resolvers.d.ts +48 -17
- package/dist/src/graphql/reactor/resolvers.d.ts.map +1 -1
- package/dist/src/graphql/reactor/resolvers.js +114 -34
- package/dist/src/graphql/reactor/resolvers.js.map +1 -1
- package/dist/src/graphql/reactor/schema.graphql +429 -0
- package/dist/src/graphql/reactor/subgraph.d.ts +34 -0
- package/dist/src/graphql/reactor/subgraph.d.ts.map +1 -1
- package/dist/src/graphql/reactor/subgraph.js +325 -22
- package/dist/src/graphql/reactor/subgraph.js.map +1 -1
- package/dist/src/graphql/reactor/validation.d.ts +62 -62
- package/dist/src/graphql/system/system-subgraph.d.ts.map +1 -1
- package/dist/src/graphql/types.d.ts +5 -1
- package/dist/src/graphql/types.d.ts.map +1 -1
- package/dist/src/graphql/utils.js +1 -1
- package/dist/src/graphql/utils.js.map +1 -1
- package/dist/src/migrations/001_create_document_permissions.d.ts +4 -0
- package/dist/src/migrations/001_create_document_permissions.d.ts.map +1 -0
- package/dist/src/migrations/001_create_document_permissions.js +91 -0
- package/dist/src/migrations/001_create_document_permissions.js.map +1 -0
- package/dist/src/migrations/index.d.ts +10 -0
- package/dist/src/migrations/index.d.ts.map +1 -0
- package/dist/src/migrations/index.js +59 -0
- package/dist/src/migrations/index.js.map +1 -0
- package/dist/src/packages/util.js +1 -1
- package/dist/src/packages/util.js.map +1 -1
- package/dist/src/server.d.ts +17 -7
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +49 -27
- package/dist/src/server.js.map +1 -1
- package/dist/src/services/auth.service.d.ts +1 -0
- package/dist/src/services/auth.service.d.ts.map +1 -1
- package/dist/src/services/auth.service.js +32 -22
- package/dist/src/services/auth.service.js.map +1 -1
- package/dist/src/services/document-permission.service.d.ts +201 -0
- package/dist/src/services/document-permission.service.d.ts.map +1 -0
- package/dist/src/services/document-permission.service.js +636 -0
- package/dist/src/services/document-permission.service.js.map +1 -0
- package/dist/src/utils/create-schema.d.ts +5 -4
- package/dist/src/utils/create-schema.d.ts.map +1 -1
- package/dist/src/utils/create-schema.js +110 -4
- package/dist/src/utils/create-schema.js.map +1 -1
- package/dist/src/utils/db.d.ts +65 -1
- package/dist/src/utils/db.d.ts.map +1 -1
- package/dist/src/utils/db.js.map +1 -1
- package/dist/test/document-permission.service.test.d.ts +2 -0
- package/dist/test/document-permission.service.test.d.ts.map +1 -0
- package/dist/test/document-permission.service.test.js +480 -0
- package/dist/test/document-permission.service.test.js.map +1 -0
- package/dist/test/drive-subgraph-permissions.test.d.ts +2 -0
- package/dist/test/drive-subgraph-permissions.test.d.ts.map +1 -0
- package/dist/test/drive-subgraph-permissions.test.js +195 -0
- package/dist/test/drive-subgraph-permissions.test.js.map +1 -0
- package/dist/test/identity-integration.test.d.ts +2 -0
- package/dist/test/identity-integration.test.d.ts.map +1 -0
- package/dist/test/identity-integration.test.js +349 -0
- package/dist/test/identity-integration.test.js.map +1 -0
- package/dist/test/permissions-integration.test.d.ts +2 -0
- package/dist/test/permissions-integration.test.d.ts.map +1 -0
- package/dist/test/permissions-integration.test.js +421 -0
- package/dist/test/permissions-integration.test.js.map +1 -0
- package/dist/test/reactor-adapters.test.js +2 -2
- package/dist/test/reactor-adapters.test.js.map +1 -1
- package/dist/test/reactor-resolvers.test.js +24 -24
- package/dist/test/reactor-resolvers.test.js.map +1 -1
- package/dist/test/reactor-subgraph-permissions.test.d.ts +2 -0
- package/dist/test/reactor-subgraph-permissions.test.d.ts.map +1 -0
- package/dist/test/reactor-subgraph-permissions.test.js +400 -0
- package/dist/test/reactor-subgraph-permissions.test.js.map +1 -0
- package/dist/test/two-reactor-gql-sync.test.d.ts +2 -0
- package/dist/test/two-reactor-gql-sync.test.d.ts.map +1 -0
- package/dist/test/two-reactor-gql-sync.test.js +298 -0
- package/dist/test/two-reactor-gql-sync.test.js.map +1 -0
- package/dist/test/utils/gql-resolver-bridge.d.ts +12 -0
- package/dist/test/utils/gql-resolver-bridge.d.ts.map +1 -0
- package/dist/test/utils/gql-resolver-bridge.js +60 -0
- package/dist/test/utils/gql-resolver-bridge.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -9
|
@@ -53,12 +53,12 @@ export type Scalars = {
|
|
|
53
53
|
output: string | Date;
|
|
54
54
|
};
|
|
55
55
|
JSONObject: {
|
|
56
|
-
input:
|
|
57
|
-
output:
|
|
56
|
+
input: NonNullable<unknown>;
|
|
57
|
+
output: NonNullable<unknown>;
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
export type Action = {
|
|
61
|
-
readonly attachments?: Maybe<ReadonlyArray<
|
|
61
|
+
readonly attachments?: Maybe<ReadonlyArray<Attachment>>;
|
|
62
62
|
readonly context?: Maybe<ActionContext>;
|
|
63
63
|
readonly id: Scalars["String"]["output"];
|
|
64
64
|
readonly input: Scalars["JSONObject"]["output"];
|
|
@@ -67,15 +67,46 @@ export type Action = {
|
|
|
67
67
|
readonly type: Scalars["String"]["output"];
|
|
68
68
|
};
|
|
69
69
|
export type ActionContext = {
|
|
70
|
-
readonly signer?: Maybe<
|
|
70
|
+
readonly signer?: Maybe<ReactorSigner>;
|
|
71
71
|
};
|
|
72
|
-
export type
|
|
72
|
+
export type ActionContextInput = {
|
|
73
|
+
readonly signer?: InputMaybe<ReactorSignerInput>;
|
|
74
|
+
};
|
|
75
|
+
export type ActionInput = {
|
|
76
|
+
readonly attachments?: InputMaybe<ReadonlyArray<AttachmentInput>>;
|
|
77
|
+
readonly context?: InputMaybe<ActionContextInput>;
|
|
78
|
+
readonly id: Scalars["String"]["input"];
|
|
79
|
+
readonly input: Scalars["JSONObject"]["input"];
|
|
80
|
+
readonly scope: Scalars["String"]["input"];
|
|
81
|
+
readonly timestampUtcMs: Scalars["String"]["input"];
|
|
82
|
+
readonly type: Scalars["String"]["input"];
|
|
83
|
+
};
|
|
84
|
+
export type Attachment = {
|
|
73
85
|
readonly data: Scalars["String"]["output"];
|
|
74
86
|
readonly extension?: Maybe<Scalars["String"]["output"]>;
|
|
75
87
|
readonly fileName?: Maybe<Scalars["String"]["output"]>;
|
|
76
88
|
readonly hash: Scalars["String"]["output"];
|
|
77
89
|
readonly mimeType: Scalars["String"]["output"];
|
|
78
90
|
};
|
|
91
|
+
export type AttachmentInput = {
|
|
92
|
+
readonly data: Scalars["String"]["input"];
|
|
93
|
+
readonly extension?: InputMaybe<Scalars["String"]["input"]>;
|
|
94
|
+
readonly fileName?: InputMaybe<Scalars["String"]["input"]>;
|
|
95
|
+
readonly hash: Scalars["String"]["input"];
|
|
96
|
+
readonly mimeType: Scalars["String"]["input"];
|
|
97
|
+
};
|
|
98
|
+
export type ChannelMeta = {
|
|
99
|
+
readonly id: Scalars["String"]["output"];
|
|
100
|
+
};
|
|
101
|
+
export type ChannelMetaInput = {
|
|
102
|
+
readonly id: Scalars["String"]["input"];
|
|
103
|
+
};
|
|
104
|
+
export type CreateChannelInput = {
|
|
105
|
+
readonly collectionId: Scalars["String"]["input"];
|
|
106
|
+
readonly filter: RemoteFilterInput;
|
|
107
|
+
readonly id: Scalars["String"]["input"];
|
|
108
|
+
readonly name: Scalars["String"]["input"];
|
|
109
|
+
};
|
|
79
110
|
export type DocumentChangeContext = {
|
|
80
111
|
readonly childId?: Maybe<Scalars["String"]["output"]>;
|
|
81
112
|
readonly parentId?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -132,6 +163,7 @@ export type MoveChildrenResult = {
|
|
|
132
163
|
};
|
|
133
164
|
export type Mutation = {
|
|
134
165
|
readonly addChildren: PhDocument;
|
|
166
|
+
readonly createChannel: Scalars["Boolean"]["output"];
|
|
135
167
|
readonly createDocument: PhDocument;
|
|
136
168
|
readonly createEmptyDocument: PhDocument;
|
|
137
169
|
readonly deleteDocument: Scalars["Boolean"]["output"];
|
|
@@ -139,13 +171,17 @@ export type Mutation = {
|
|
|
139
171
|
readonly moveChildren: MoveChildrenResult;
|
|
140
172
|
readonly mutateDocument: PhDocument;
|
|
141
173
|
readonly mutateDocumentAsync: Scalars["String"]["output"];
|
|
174
|
+
readonly pushSyncEnvelope: Scalars["Boolean"]["output"];
|
|
142
175
|
readonly removeChildren: PhDocument;
|
|
143
176
|
readonly renameDocument: PhDocument;
|
|
144
177
|
};
|
|
145
178
|
export type MutationAddChildrenArgs = {
|
|
179
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
146
180
|
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
147
181
|
parentIdentifier: Scalars["String"]["input"];
|
|
148
|
-
|
|
182
|
+
};
|
|
183
|
+
export type MutationCreateChannelArgs = {
|
|
184
|
+
input: CreateChannelInput;
|
|
149
185
|
};
|
|
150
186
|
export type MutationCreateDocumentArgs = {
|
|
151
187
|
document: Scalars["JSONObject"]["input"];
|
|
@@ -164,10 +200,10 @@ export type MutationDeleteDocumentsArgs = {
|
|
|
164
200
|
propagate?: InputMaybe<PropagationMode>;
|
|
165
201
|
};
|
|
166
202
|
export type MutationMoveChildrenArgs = {
|
|
203
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
167
204
|
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
168
205
|
sourceParentIdentifier: Scalars["String"]["input"];
|
|
169
206
|
targetParentIdentifier: Scalars["String"]["input"];
|
|
170
|
-
view?: InputMaybe<ViewFilterInput>;
|
|
171
207
|
};
|
|
172
208
|
export type MutationMutateDocumentArgs = {
|
|
173
209
|
actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
|
|
@@ -179,15 +215,47 @@ export type MutationMutateDocumentAsyncArgs = {
|
|
|
179
215
|
documentIdentifier: Scalars["String"]["input"];
|
|
180
216
|
view?: InputMaybe<ViewFilterInput>;
|
|
181
217
|
};
|
|
218
|
+
export type MutationPushSyncEnvelopeArgs = {
|
|
219
|
+
envelope: SyncEnvelopeInput;
|
|
220
|
+
};
|
|
182
221
|
export type MutationRemoveChildrenArgs = {
|
|
222
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
183
223
|
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
184
224
|
parentIdentifier: Scalars["String"]["input"];
|
|
185
|
-
view?: InputMaybe<ViewFilterInput>;
|
|
186
225
|
};
|
|
187
226
|
export type MutationRenameDocumentArgs = {
|
|
227
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
188
228
|
documentIdentifier: Scalars["String"]["input"];
|
|
189
229
|
name: Scalars["String"]["input"];
|
|
190
|
-
|
|
230
|
+
};
|
|
231
|
+
export type OperationContext = {
|
|
232
|
+
readonly branch: Scalars["String"]["output"];
|
|
233
|
+
readonly documentId: Scalars["String"]["output"];
|
|
234
|
+
readonly documentType: Scalars["String"]["output"];
|
|
235
|
+
readonly scope: Scalars["String"]["output"];
|
|
236
|
+
};
|
|
237
|
+
export type OperationContextInput = {
|
|
238
|
+
readonly branch: Scalars["String"]["input"];
|
|
239
|
+
readonly documentId: Scalars["String"]["input"];
|
|
240
|
+
readonly documentType: Scalars["String"]["input"];
|
|
241
|
+
readonly scope: Scalars["String"]["input"];
|
|
242
|
+
};
|
|
243
|
+
export type OperationInput = {
|
|
244
|
+
readonly action: ActionInput;
|
|
245
|
+
readonly error?: InputMaybe<Scalars["String"]["input"]>;
|
|
246
|
+
readonly hash: Scalars["String"]["input"];
|
|
247
|
+
readonly id?: InputMaybe<Scalars["String"]["input"]>;
|
|
248
|
+
readonly index: Scalars["Int"]["input"];
|
|
249
|
+
readonly skip: Scalars["Int"]["input"];
|
|
250
|
+
readonly timestampUtcMs: Scalars["String"]["input"];
|
|
251
|
+
};
|
|
252
|
+
export type OperationWithContext = {
|
|
253
|
+
readonly context: OperationContext;
|
|
254
|
+
readonly operation: ReactorOperation;
|
|
255
|
+
};
|
|
256
|
+
export type OperationWithContextInput = {
|
|
257
|
+
readonly context: OperationContextInput;
|
|
258
|
+
readonly operation: OperationInput;
|
|
191
259
|
};
|
|
192
260
|
export type PhDocument = {
|
|
193
261
|
readonly createdAtUtcIso: Scalars["DateTime"]["output"];
|
|
@@ -223,6 +291,7 @@ export type Query = {
|
|
|
223
291
|
readonly documentParents: PhDocumentResultPage;
|
|
224
292
|
readonly findDocuments: PhDocumentResultPage;
|
|
225
293
|
readonly jobStatus?: Maybe<JobInfo>;
|
|
294
|
+
readonly pollSyncEnvelopes: ReadonlyArray<SyncEnvelope>;
|
|
226
295
|
};
|
|
227
296
|
export type QueryDocumentArgs = {
|
|
228
297
|
identifier: Scalars["String"]["input"];
|
|
@@ -250,29 +319,71 @@ export type QueryFindDocumentsArgs = {
|
|
|
250
319
|
export type QueryJobStatusArgs = {
|
|
251
320
|
jobId: Scalars["String"]["input"];
|
|
252
321
|
};
|
|
253
|
-
export type
|
|
254
|
-
|
|
255
|
-
|
|
322
|
+
export type QueryPollSyncEnvelopesArgs = {
|
|
323
|
+
channelId: Scalars["String"]["input"];
|
|
324
|
+
cursorOrdinal: Scalars["Int"]["input"];
|
|
256
325
|
};
|
|
257
|
-
export type
|
|
258
|
-
readonly
|
|
259
|
-
readonly
|
|
260
|
-
readonly
|
|
326
|
+
export type ReactorOperation = {
|
|
327
|
+
readonly action: Action;
|
|
328
|
+
readonly error?: Maybe<Scalars["String"]["output"]>;
|
|
329
|
+
readonly hash: Scalars["String"]["output"];
|
|
330
|
+
readonly id?: Maybe<Scalars["String"]["output"]>;
|
|
331
|
+
readonly index: Scalars["Int"]["output"];
|
|
332
|
+
readonly skip: Scalars["Int"]["output"];
|
|
333
|
+
readonly timestampUtcMs: Scalars["String"]["output"];
|
|
261
334
|
};
|
|
262
|
-
export type
|
|
263
|
-
readonly app?: Maybe<
|
|
335
|
+
export type ReactorSigner = {
|
|
336
|
+
readonly app?: Maybe<ReactorSignerApp>;
|
|
264
337
|
readonly signatures: ReadonlyArray<Scalars["String"]["output"]>;
|
|
265
|
-
readonly user?: Maybe<
|
|
338
|
+
readonly user?: Maybe<ReactorSignerUser>;
|
|
266
339
|
};
|
|
267
|
-
export type
|
|
340
|
+
export type ReactorSignerApp = {
|
|
268
341
|
readonly key: Scalars["String"]["output"];
|
|
269
342
|
readonly name: Scalars["String"]["output"];
|
|
270
343
|
};
|
|
271
|
-
export type
|
|
344
|
+
export type ReactorSignerAppInput = {
|
|
345
|
+
readonly key: Scalars["String"]["input"];
|
|
346
|
+
readonly name: Scalars["String"]["input"];
|
|
347
|
+
};
|
|
348
|
+
export type ReactorSignerInput = {
|
|
349
|
+
readonly app?: InputMaybe<ReactorSignerAppInput>;
|
|
350
|
+
readonly signatures: ReadonlyArray<Scalars["String"]["input"]>;
|
|
351
|
+
readonly user?: InputMaybe<ReactorSignerUserInput>;
|
|
352
|
+
};
|
|
353
|
+
export type ReactorSignerUser = {
|
|
272
354
|
readonly address: Scalars["String"]["output"];
|
|
273
355
|
readonly chainId: Scalars["Int"]["output"];
|
|
274
356
|
readonly networkId: Scalars["String"]["output"];
|
|
275
357
|
};
|
|
358
|
+
export type ReactorSignerUserInput = {
|
|
359
|
+
readonly address: Scalars["String"]["input"];
|
|
360
|
+
readonly chainId: Scalars["Int"]["input"];
|
|
361
|
+
readonly networkId: Scalars["String"]["input"];
|
|
362
|
+
};
|
|
363
|
+
export type RemoteCursor = {
|
|
364
|
+
readonly cursorOrdinal: Scalars["Int"]["output"];
|
|
365
|
+
readonly lastSyncedAtUtcMs?: Maybe<Scalars["String"]["output"]>;
|
|
366
|
+
readonly remoteName: Scalars["String"]["output"];
|
|
367
|
+
};
|
|
368
|
+
export type RemoteCursorInput = {
|
|
369
|
+
readonly cursorOrdinal: Scalars["Int"]["input"];
|
|
370
|
+
readonly lastSyncedAtUtcMs?: InputMaybe<Scalars["String"]["input"]>;
|
|
371
|
+
readonly remoteName: Scalars["String"]["input"];
|
|
372
|
+
};
|
|
373
|
+
export type RemoteFilterInput = {
|
|
374
|
+
readonly branch: Scalars["String"]["input"];
|
|
375
|
+
readonly documentId: ReadonlyArray<Scalars["String"]["input"]>;
|
|
376
|
+
readonly scope: ReadonlyArray<Scalars["String"]["input"]>;
|
|
377
|
+
};
|
|
378
|
+
export type Revision = {
|
|
379
|
+
readonly revision: Scalars["Int"]["output"];
|
|
380
|
+
readonly scope: Scalars["String"]["output"];
|
|
381
|
+
};
|
|
382
|
+
export type SearchFilterInput = {
|
|
383
|
+
readonly identifiers?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
384
|
+
readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
|
|
385
|
+
readonly type?: InputMaybe<Scalars["String"]["input"]>;
|
|
386
|
+
};
|
|
276
387
|
export type Subscription = {
|
|
277
388
|
readonly documentChanges: DocumentChangeEvent;
|
|
278
389
|
readonly jobChanges: JobChangeEvent;
|
|
@@ -284,6 +395,22 @@ export type SubscriptionDocumentChangesArgs = {
|
|
|
284
395
|
export type SubscriptionJobChangesArgs = {
|
|
285
396
|
jobId: Scalars["String"]["input"];
|
|
286
397
|
};
|
|
398
|
+
export type SyncEnvelope = {
|
|
399
|
+
readonly channelMeta: ChannelMeta;
|
|
400
|
+
readonly cursor?: Maybe<RemoteCursor>;
|
|
401
|
+
readonly operations?: Maybe<ReadonlyArray<OperationWithContext>>;
|
|
402
|
+
readonly type: SyncEnvelopeType;
|
|
403
|
+
};
|
|
404
|
+
export type SyncEnvelopeInput = {
|
|
405
|
+
readonly channelMeta: ChannelMetaInput;
|
|
406
|
+
readonly cursor?: InputMaybe<RemoteCursorInput>;
|
|
407
|
+
readonly operations?: InputMaybe<ReadonlyArray<OperationWithContextInput>>;
|
|
408
|
+
readonly type: SyncEnvelopeType;
|
|
409
|
+
};
|
|
410
|
+
export declare enum SyncEnvelopeType {
|
|
411
|
+
Ack = "ACK",
|
|
412
|
+
Operations = "OPERATIONS"
|
|
413
|
+
}
|
|
287
414
|
export type ViewFilterInput = {
|
|
288
415
|
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
289
416
|
readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
@@ -293,7 +420,7 @@ export type PhDocumentFieldsFragment = {
|
|
|
293
420
|
readonly slug?: string | null | undefined;
|
|
294
421
|
readonly name: string;
|
|
295
422
|
readonly documentType: string;
|
|
296
|
-
readonly state:
|
|
423
|
+
readonly state: NonNullable<unknown>;
|
|
297
424
|
readonly createdAtUtcIso: string | Date;
|
|
298
425
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
299
426
|
readonly parentId?: string | null | undefined;
|
|
@@ -317,7 +444,7 @@ export type GetDocumentModelsQuery = {
|
|
|
317
444
|
readonly name: string;
|
|
318
445
|
readonly namespace?: string | null | undefined;
|
|
319
446
|
readonly version?: string | null | undefined;
|
|
320
|
-
readonly specification:
|
|
447
|
+
readonly specification: NonNullable<unknown>;
|
|
321
448
|
}>;
|
|
322
449
|
};
|
|
323
450
|
};
|
|
@@ -333,7 +460,7 @@ export type GetDocumentQuery = {
|
|
|
333
460
|
readonly slug?: string | null | undefined;
|
|
334
461
|
readonly name: string;
|
|
335
462
|
readonly documentType: string;
|
|
336
|
-
readonly state:
|
|
463
|
+
readonly state: NonNullable<unknown>;
|
|
337
464
|
readonly createdAtUtcIso: string | Date;
|
|
338
465
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
339
466
|
readonly parentId?: string | null | undefined;
|
|
@@ -360,7 +487,7 @@ export type GetDocumentChildrenQuery = {
|
|
|
360
487
|
readonly slug?: string | null | undefined;
|
|
361
488
|
readonly name: string;
|
|
362
489
|
readonly documentType: string;
|
|
363
|
-
readonly state:
|
|
490
|
+
readonly state: NonNullable<unknown>;
|
|
364
491
|
readonly createdAtUtcIso: string | Date;
|
|
365
492
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
366
493
|
readonly parentId?: string | null | undefined;
|
|
@@ -387,7 +514,7 @@ export type GetDocumentParentsQuery = {
|
|
|
387
514
|
readonly slug?: string | null | undefined;
|
|
388
515
|
readonly name: string;
|
|
389
516
|
readonly documentType: string;
|
|
390
|
-
readonly state:
|
|
517
|
+
readonly state: NonNullable<unknown>;
|
|
391
518
|
readonly createdAtUtcIso: string | Date;
|
|
392
519
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
393
520
|
readonly parentId?: string | null | undefined;
|
|
@@ -414,7 +541,7 @@ export type FindDocumentsQuery = {
|
|
|
414
541
|
readonly slug?: string | null | undefined;
|
|
415
542
|
readonly name: string;
|
|
416
543
|
readonly documentType: string;
|
|
417
|
-
readonly state:
|
|
544
|
+
readonly state: NonNullable<unknown>;
|
|
418
545
|
readonly createdAtUtcIso: string | Date;
|
|
419
546
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
420
547
|
readonly parentId?: string | null | undefined;
|
|
@@ -432,7 +559,7 @@ export type GetJobStatusQuery = {
|
|
|
432
559
|
readonly jobStatus?: {
|
|
433
560
|
readonly id: string;
|
|
434
561
|
readonly status: string;
|
|
435
|
-
readonly result:
|
|
562
|
+
readonly result: NonNullable<unknown>;
|
|
436
563
|
readonly error?: string | null | undefined;
|
|
437
564
|
readonly createdAt: string | Date;
|
|
438
565
|
readonly completedAt?: string | Date | null | undefined;
|
|
@@ -448,7 +575,7 @@ export type CreateDocumentMutation = {
|
|
|
448
575
|
readonly slug?: string | null | undefined;
|
|
449
576
|
readonly name: string;
|
|
450
577
|
readonly documentType: string;
|
|
451
|
-
readonly state:
|
|
578
|
+
readonly state: NonNullable<unknown>;
|
|
452
579
|
readonly createdAtUtcIso: string | Date;
|
|
453
580
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
454
581
|
readonly parentId?: string | null | undefined;
|
|
@@ -468,7 +595,7 @@ export type CreateEmptyDocumentMutation = {
|
|
|
468
595
|
readonly slug?: string | null | undefined;
|
|
469
596
|
readonly name: string;
|
|
470
597
|
readonly documentType: string;
|
|
471
|
-
readonly state:
|
|
598
|
+
readonly state: NonNullable<unknown>;
|
|
472
599
|
readonly createdAtUtcIso: string | Date;
|
|
473
600
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
474
601
|
readonly parentId?: string | null | undefined;
|
|
@@ -489,7 +616,7 @@ export type MutateDocumentMutation = {
|
|
|
489
616
|
readonly slug?: string | null | undefined;
|
|
490
617
|
readonly name: string;
|
|
491
618
|
readonly documentType: string;
|
|
492
|
-
readonly state:
|
|
619
|
+
readonly state: NonNullable<unknown>;
|
|
493
620
|
readonly createdAtUtcIso: string | Date;
|
|
494
621
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
495
622
|
readonly parentId?: string | null | undefined;
|
|
@@ -510,7 +637,7 @@ export type MutateDocumentAsyncMutation = {
|
|
|
510
637
|
export type RenameDocumentMutationVariables = Exact<{
|
|
511
638
|
documentIdentifier: Scalars["String"]["input"];
|
|
512
639
|
name: Scalars["String"]["input"];
|
|
513
|
-
|
|
640
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
514
641
|
}>;
|
|
515
642
|
export type RenameDocumentMutation = {
|
|
516
643
|
readonly renameDocument: {
|
|
@@ -518,7 +645,7 @@ export type RenameDocumentMutation = {
|
|
|
518
645
|
readonly slug?: string | null | undefined;
|
|
519
646
|
readonly name: string;
|
|
520
647
|
readonly documentType: string;
|
|
521
|
-
readonly state:
|
|
648
|
+
readonly state: NonNullable<unknown>;
|
|
522
649
|
readonly createdAtUtcIso: string | Date;
|
|
523
650
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
524
651
|
readonly parentId?: string | null | undefined;
|
|
@@ -531,7 +658,7 @@ export type RenameDocumentMutation = {
|
|
|
531
658
|
export type AddChildrenMutationVariables = Exact<{
|
|
532
659
|
parentIdentifier: Scalars["String"]["input"];
|
|
533
660
|
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
534
|
-
|
|
661
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
535
662
|
}>;
|
|
536
663
|
export type AddChildrenMutation = {
|
|
537
664
|
readonly addChildren: {
|
|
@@ -539,7 +666,7 @@ export type AddChildrenMutation = {
|
|
|
539
666
|
readonly slug?: string | null | undefined;
|
|
540
667
|
readonly name: string;
|
|
541
668
|
readonly documentType: string;
|
|
542
|
-
readonly state:
|
|
669
|
+
readonly state: NonNullable<unknown>;
|
|
543
670
|
readonly createdAtUtcIso: string | Date;
|
|
544
671
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
545
672
|
readonly parentId?: string | null | undefined;
|
|
@@ -552,7 +679,7 @@ export type AddChildrenMutation = {
|
|
|
552
679
|
export type RemoveChildrenMutationVariables = Exact<{
|
|
553
680
|
parentIdentifier: Scalars["String"]["input"];
|
|
554
681
|
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
555
|
-
|
|
682
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
556
683
|
}>;
|
|
557
684
|
export type RemoveChildrenMutation = {
|
|
558
685
|
readonly removeChildren: {
|
|
@@ -560,7 +687,7 @@ export type RemoveChildrenMutation = {
|
|
|
560
687
|
readonly slug?: string | null | undefined;
|
|
561
688
|
readonly name: string;
|
|
562
689
|
readonly documentType: string;
|
|
563
|
-
readonly state:
|
|
690
|
+
readonly state: NonNullable<unknown>;
|
|
564
691
|
readonly createdAtUtcIso: string | Date;
|
|
565
692
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
566
693
|
readonly parentId?: string | null | undefined;
|
|
@@ -574,7 +701,7 @@ export type MoveChildrenMutationVariables = Exact<{
|
|
|
574
701
|
sourceParentIdentifier: Scalars["String"]["input"];
|
|
575
702
|
targetParentIdentifier: Scalars["String"]["input"];
|
|
576
703
|
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
577
|
-
|
|
704
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
578
705
|
}>;
|
|
579
706
|
export type MoveChildrenMutation = {
|
|
580
707
|
readonly moveChildren: {
|
|
@@ -583,7 +710,7 @@ export type MoveChildrenMutation = {
|
|
|
583
710
|
readonly slug?: string | null | undefined;
|
|
584
711
|
readonly name: string;
|
|
585
712
|
readonly documentType: string;
|
|
586
|
-
readonly state:
|
|
713
|
+
readonly state: NonNullable<unknown>;
|
|
587
714
|
readonly createdAtUtcIso: string | Date;
|
|
588
715
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
589
716
|
readonly parentId?: string | null | undefined;
|
|
@@ -597,7 +724,7 @@ export type MoveChildrenMutation = {
|
|
|
597
724
|
readonly slug?: string | null | undefined;
|
|
598
725
|
readonly name: string;
|
|
599
726
|
readonly documentType: string;
|
|
600
|
-
readonly state:
|
|
727
|
+
readonly state: NonNullable<unknown>;
|
|
601
728
|
readonly createdAtUtcIso: string | Date;
|
|
602
729
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
603
730
|
readonly parentId?: string | null | undefined;
|
|
@@ -634,7 +761,7 @@ export type DocumentChangesSubscription = {
|
|
|
634
761
|
readonly slug?: string | null | undefined;
|
|
635
762
|
readonly name: string;
|
|
636
763
|
readonly documentType: string;
|
|
637
|
-
readonly state:
|
|
764
|
+
readonly state: NonNullable<unknown>;
|
|
638
765
|
readonly createdAtUtcIso: string | Date;
|
|
639
766
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
640
767
|
readonly parentId?: string | null | undefined;
|
|
@@ -656,7 +783,7 @@ export type JobChangesSubscription = {
|
|
|
656
783
|
readonly jobChanges: {
|
|
657
784
|
readonly jobId: string;
|
|
658
785
|
readonly status: string;
|
|
659
|
-
readonly result:
|
|
786
|
+
readonly result: NonNullable<unknown>;
|
|
660
787
|
readonly error?: string | null | undefined;
|
|
661
788
|
};
|
|
662
789
|
};
|
|
@@ -692,8 +819,14 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
692
819
|
export type ResolversTypes = ResolversObject<{
|
|
693
820
|
Action: ResolverTypeWrapper<Action>;
|
|
694
821
|
ActionContext: ResolverTypeWrapper<ActionContext>;
|
|
695
|
-
|
|
822
|
+
ActionContextInput: ActionContextInput;
|
|
823
|
+
ActionInput: ActionInput;
|
|
824
|
+
Attachment: ResolverTypeWrapper<Attachment>;
|
|
825
|
+
AttachmentInput: AttachmentInput;
|
|
696
826
|
Boolean: ResolverTypeWrapper<Scalars["Boolean"]["output"]>;
|
|
827
|
+
ChannelMeta: ResolverTypeWrapper<ChannelMeta>;
|
|
828
|
+
ChannelMetaInput: ChannelMetaInput;
|
|
829
|
+
CreateChannelInput: CreateChannelInput;
|
|
697
830
|
DateTime: ResolverTypeWrapper<Scalars["DateTime"]["output"]>;
|
|
698
831
|
DocumentChangeContext: ResolverTypeWrapper<DocumentChangeContext>;
|
|
699
832
|
DocumentChangeEvent: ResolverTypeWrapper<DocumentChangeEvent>;
|
|
@@ -707,26 +840,47 @@ export type ResolversTypes = ResolversObject<{
|
|
|
707
840
|
JobInfo: ResolverTypeWrapper<JobInfo>;
|
|
708
841
|
MoveChildrenResult: ResolverTypeWrapper<MoveChildrenResult>;
|
|
709
842
|
Mutation: ResolverTypeWrapper<{}>;
|
|
843
|
+
OperationContext: ResolverTypeWrapper<OperationContext>;
|
|
844
|
+
OperationContextInput: OperationContextInput;
|
|
845
|
+
OperationInput: OperationInput;
|
|
846
|
+
OperationWithContext: ResolverTypeWrapper<OperationWithContext>;
|
|
847
|
+
OperationWithContextInput: OperationWithContextInput;
|
|
710
848
|
PHDocument: ResolverTypeWrapper<PhDocument>;
|
|
711
849
|
PHDocumentResultPage: ResolverTypeWrapper<PhDocumentResultPage>;
|
|
712
850
|
PagingInput: PagingInput;
|
|
713
851
|
PropagationMode: PropagationMode;
|
|
714
852
|
Query: ResolverTypeWrapper<{}>;
|
|
853
|
+
ReactorOperation: ResolverTypeWrapper<ReactorOperation>;
|
|
854
|
+
ReactorSigner: ResolverTypeWrapper<ReactorSigner>;
|
|
855
|
+
ReactorSignerApp: ResolverTypeWrapper<ReactorSignerApp>;
|
|
856
|
+
ReactorSignerAppInput: ReactorSignerAppInput;
|
|
857
|
+
ReactorSignerInput: ReactorSignerInput;
|
|
858
|
+
ReactorSignerUser: ResolverTypeWrapper<ReactorSignerUser>;
|
|
859
|
+
ReactorSignerUserInput: ReactorSignerUserInput;
|
|
860
|
+
RemoteCursor: ResolverTypeWrapper<RemoteCursor>;
|
|
861
|
+
RemoteCursorInput: RemoteCursorInput;
|
|
862
|
+
RemoteFilterInput: RemoteFilterInput;
|
|
715
863
|
Revision: ResolverTypeWrapper<Revision>;
|
|
716
864
|
SearchFilterInput: SearchFilterInput;
|
|
717
|
-
Signer: ResolverTypeWrapper<Signer>;
|
|
718
|
-
SignerApp: ResolverTypeWrapper<SignerApp>;
|
|
719
|
-
SignerUser: ResolverTypeWrapper<SignerUser>;
|
|
720
865
|
String: ResolverTypeWrapper<Scalars["String"]["output"]>;
|
|
721
866
|
Subscription: ResolverTypeWrapper<{}>;
|
|
867
|
+
SyncEnvelope: ResolverTypeWrapper<SyncEnvelope>;
|
|
868
|
+
SyncEnvelopeInput: SyncEnvelopeInput;
|
|
869
|
+
SyncEnvelopeType: SyncEnvelopeType;
|
|
722
870
|
ViewFilterInput: ViewFilterInput;
|
|
723
871
|
}>;
|
|
724
872
|
/** Mapping between all available schema types and the resolvers parents */
|
|
725
873
|
export type ResolversParentTypes = ResolversObject<{
|
|
726
874
|
Action: Action;
|
|
727
875
|
ActionContext: ActionContext;
|
|
876
|
+
ActionContextInput: ActionContextInput;
|
|
877
|
+
ActionInput: ActionInput;
|
|
878
|
+
Attachment: Attachment;
|
|
728
879
|
AttachmentInput: AttachmentInput;
|
|
729
880
|
Boolean: Scalars["Boolean"]["output"];
|
|
881
|
+
ChannelMeta: ChannelMeta;
|
|
882
|
+
ChannelMetaInput: ChannelMetaInput;
|
|
883
|
+
CreateChannelInput: CreateChannelInput;
|
|
730
884
|
DateTime: Scalars["DateTime"]["output"];
|
|
731
885
|
DocumentChangeContext: DocumentChangeContext;
|
|
732
886
|
DocumentChangeEvent: DocumentChangeEvent;
|
|
@@ -739,21 +893,35 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
739
893
|
JobInfo: JobInfo;
|
|
740
894
|
MoveChildrenResult: MoveChildrenResult;
|
|
741
895
|
Mutation: {};
|
|
896
|
+
OperationContext: OperationContext;
|
|
897
|
+
OperationContextInput: OperationContextInput;
|
|
898
|
+
OperationInput: OperationInput;
|
|
899
|
+
OperationWithContext: OperationWithContext;
|
|
900
|
+
OperationWithContextInput: OperationWithContextInput;
|
|
742
901
|
PHDocument: PhDocument;
|
|
743
902
|
PHDocumentResultPage: PhDocumentResultPage;
|
|
744
903
|
PagingInput: PagingInput;
|
|
745
904
|
Query: {};
|
|
905
|
+
ReactorOperation: ReactorOperation;
|
|
906
|
+
ReactorSigner: ReactorSigner;
|
|
907
|
+
ReactorSignerApp: ReactorSignerApp;
|
|
908
|
+
ReactorSignerAppInput: ReactorSignerAppInput;
|
|
909
|
+
ReactorSignerInput: ReactorSignerInput;
|
|
910
|
+
ReactorSignerUser: ReactorSignerUser;
|
|
911
|
+
ReactorSignerUserInput: ReactorSignerUserInput;
|
|
912
|
+
RemoteCursor: RemoteCursor;
|
|
913
|
+
RemoteCursorInput: RemoteCursorInput;
|
|
914
|
+
RemoteFilterInput: RemoteFilterInput;
|
|
746
915
|
Revision: Revision;
|
|
747
916
|
SearchFilterInput: SearchFilterInput;
|
|
748
|
-
Signer: Signer;
|
|
749
|
-
SignerApp: SignerApp;
|
|
750
|
-
SignerUser: SignerUser;
|
|
751
917
|
String: Scalars["String"]["output"];
|
|
752
918
|
Subscription: {};
|
|
919
|
+
SyncEnvelope: SyncEnvelope;
|
|
920
|
+
SyncEnvelopeInput: SyncEnvelopeInput;
|
|
753
921
|
ViewFilterInput: ViewFilterInput;
|
|
754
922
|
}>;
|
|
755
923
|
export type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
|
|
756
|
-
attachments?: Resolver<Maybe<ReadonlyArray<ResolversTypes["
|
|
924
|
+
attachments?: Resolver<Maybe<ReadonlyArray<ResolversTypes["Attachment"]>>, ParentType, ContextType>;
|
|
757
925
|
context?: Resolver<Maybe<ResolversTypes["ActionContext"]>, ParentType, ContextType>;
|
|
758
926
|
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
759
927
|
input?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
@@ -763,10 +931,10 @@ export type ActionResolvers<ContextType = Context, ParentType extends ResolversP
|
|
|
763
931
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
764
932
|
}>;
|
|
765
933
|
export type ActionContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionContext"] = ResolversParentTypes["ActionContext"]> = ResolversObject<{
|
|
766
|
-
signer?: Resolver<Maybe<ResolversTypes["
|
|
934
|
+
signer?: Resolver<Maybe<ResolversTypes["ReactorSigner"]>, ParentType, ContextType>;
|
|
767
935
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
768
936
|
}>;
|
|
769
|
-
export type
|
|
937
|
+
export type AttachmentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Attachment"] = ResolversParentTypes["Attachment"]> = ResolversObject<{
|
|
770
938
|
data?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
771
939
|
extension?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
772
940
|
fileName?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
@@ -774,6 +942,10 @@ export type AttachmentInputResolvers<ContextType = Context, ParentType extends R
|
|
|
774
942
|
mimeType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
775
943
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
776
944
|
}>;
|
|
945
|
+
export type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
|
|
946
|
+
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
947
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
948
|
+
}>;
|
|
777
949
|
export interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
|
|
778
950
|
name: "DateTime";
|
|
779
951
|
}
|
|
@@ -835,6 +1007,7 @@ export type MoveChildrenResultResolvers<ContextType = Context, ParentType extend
|
|
|
835
1007
|
}>;
|
|
836
1008
|
export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
|
|
837
1009
|
addChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationAddChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
|
|
1010
|
+
createChannel?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationCreateChannelArgs, "input">>;
|
|
838
1011
|
createDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateDocumentArgs, "document">>;
|
|
839
1012
|
createEmptyDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateEmptyDocumentArgs, "documentType">>;
|
|
840
1013
|
deleteDocument?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationDeleteDocumentArgs, "identifier">>;
|
|
@@ -842,9 +1015,22 @@ export type MutationResolvers<ContextType = Context, ParentType extends Resolver
|
|
|
842
1015
|
moveChildren?: Resolver<ResolversTypes["MoveChildrenResult"], ParentType, ContextType, RequireFields<MutationMoveChildrenArgs, "documentIdentifiers" | "sourceParentIdentifier" | "targetParentIdentifier">>;
|
|
843
1016
|
mutateDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationMutateDocumentArgs, "actions" | "documentIdentifier">>;
|
|
844
1017
|
mutateDocumentAsync?: Resolver<ResolversTypes["String"], ParentType, ContextType, RequireFields<MutationMutateDocumentAsyncArgs, "actions" | "documentIdentifier">>;
|
|
1018
|
+
pushSyncEnvelope?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationPushSyncEnvelopeArgs, "envelope">>;
|
|
845
1019
|
removeChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRemoveChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
|
|
846
1020
|
renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
|
|
847
1021
|
}>;
|
|
1022
|
+
export type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
|
|
1023
|
+
branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1024
|
+
documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1025
|
+
documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1026
|
+
scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1027
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1028
|
+
}>;
|
|
1029
|
+
export type OperationWithContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationWithContext"] = ResolversParentTypes["OperationWithContext"]> = ResolversObject<{
|
|
1030
|
+
context?: Resolver<ResolversTypes["OperationContext"], ParentType, ContextType>;
|
|
1031
|
+
operation?: Resolver<ResolversTypes["ReactorOperation"], ParentType, ContextType>;
|
|
1032
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1033
|
+
}>;
|
|
848
1034
|
export type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
|
|
849
1035
|
createdAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
850
1036
|
documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
@@ -872,37 +1058,62 @@ export type QueryResolvers<ContextType = Context, ParentType extends ResolversPa
|
|
|
872
1058
|
documentParents?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentParentsArgs, "childIdentifier">>;
|
|
873
1059
|
findDocuments?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryFindDocumentsArgs, "search">>;
|
|
874
1060
|
jobStatus?: Resolver<Maybe<ResolversTypes["JobInfo"]>, ParentType, ContextType, RequireFields<QueryJobStatusArgs, "jobId">>;
|
|
1061
|
+
pollSyncEnvelopes?: Resolver<ReadonlyArray<ResolversTypes["SyncEnvelope"]>, ParentType, ContextType, RequireFields<QueryPollSyncEnvelopesArgs, "channelId" | "cursorOrdinal">>;
|
|
875
1062
|
}>;
|
|
876
|
-
export type
|
|
877
|
-
|
|
878
|
-
|
|
1063
|
+
export type ReactorOperationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperation"] = ResolversParentTypes["ReactorOperation"]> = ResolversObject<{
|
|
1064
|
+
action?: Resolver<ResolversTypes["Action"], ParentType, ContextType>;
|
|
1065
|
+
error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
1066
|
+
hash?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1067
|
+
id?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
1068
|
+
index?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
1069
|
+
skip?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
1070
|
+
timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
879
1071
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
880
1072
|
}>;
|
|
881
|
-
export type
|
|
882
|
-
app?: Resolver<Maybe<ResolversTypes["
|
|
1073
|
+
export type ReactorSignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSigner"] = ResolversParentTypes["ReactorSigner"]> = ResolversObject<{
|
|
1074
|
+
app?: Resolver<Maybe<ResolversTypes["ReactorSignerApp"]>, ParentType, ContextType>;
|
|
883
1075
|
signatures?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
884
|
-
user?: Resolver<Maybe<ResolversTypes["
|
|
1076
|
+
user?: Resolver<Maybe<ResolversTypes["ReactorSignerUser"]>, ParentType, ContextType>;
|
|
885
1077
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
886
1078
|
}>;
|
|
887
|
-
export type
|
|
1079
|
+
export type ReactorSignerAppResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerApp"] = ResolversParentTypes["ReactorSignerApp"]> = ResolversObject<{
|
|
888
1080
|
key?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
889
1081
|
name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
890
1082
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
891
1083
|
}>;
|
|
892
|
-
export type
|
|
1084
|
+
export type ReactorSignerUserResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerUser"] = ResolversParentTypes["ReactorSignerUser"]> = ResolversObject<{
|
|
893
1085
|
address?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
894
1086
|
chainId?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
895
1087
|
networkId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
896
1088
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
897
1089
|
}>;
|
|
1090
|
+
export type RemoteCursorResolvers<ContextType = Context, ParentType extends ResolversParentTypes["RemoteCursor"] = ResolversParentTypes["RemoteCursor"]> = ResolversObject<{
|
|
1091
|
+
cursorOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
1092
|
+
lastSyncedAtUtcMs?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
1093
|
+
remoteName?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1094
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1095
|
+
}>;
|
|
1096
|
+
export type RevisionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Revision"] = ResolversParentTypes["Revision"]> = ResolversObject<{
|
|
1097
|
+
revision?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
1098
|
+
scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1099
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1100
|
+
}>;
|
|
898
1101
|
export type SubscriptionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Subscription"] = ResolversParentTypes["Subscription"]> = ResolversObject<{
|
|
899
1102
|
documentChanges?: SubscriptionResolver<ResolversTypes["DocumentChangeEvent"], "documentChanges", ParentType, ContextType, RequireFields<SubscriptionDocumentChangesArgs, "search">>;
|
|
900
1103
|
jobChanges?: SubscriptionResolver<ResolversTypes["JobChangeEvent"], "jobChanges", ParentType, ContextType, RequireFields<SubscriptionJobChangesArgs, "jobId">>;
|
|
901
1104
|
}>;
|
|
1105
|
+
export type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
|
|
1106
|
+
channelMeta?: Resolver<ResolversTypes["ChannelMeta"], ParentType, ContextType>;
|
|
1107
|
+
cursor?: Resolver<Maybe<ResolversTypes["RemoteCursor"]>, ParentType, ContextType>;
|
|
1108
|
+
operations?: Resolver<Maybe<ReadonlyArray<ResolversTypes["OperationWithContext"]>>, ParentType, ContextType>;
|
|
1109
|
+
type?: Resolver<ResolversTypes["SyncEnvelopeType"], ParentType, ContextType>;
|
|
1110
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1111
|
+
}>;
|
|
902
1112
|
export type Resolvers<ContextType = Context> = ResolversObject<{
|
|
903
1113
|
Action?: ActionResolvers<ContextType>;
|
|
904
1114
|
ActionContext?: ActionContextResolvers<ContextType>;
|
|
905
|
-
|
|
1115
|
+
Attachment?: AttachmentResolvers<ContextType>;
|
|
1116
|
+
ChannelMeta?: ChannelMetaResolvers<ContextType>;
|
|
906
1117
|
DateTime?: GraphQLScalarType;
|
|
907
1118
|
DocumentChangeContext?: DocumentChangeContextResolvers<ContextType>;
|
|
908
1119
|
DocumentChangeEvent?: DocumentChangeEventResolvers<ContextType>;
|
|
@@ -914,14 +1125,19 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
|
|
|
914
1125
|
JobInfo?: JobInfoResolvers<ContextType>;
|
|
915
1126
|
MoveChildrenResult?: MoveChildrenResultResolvers<ContextType>;
|
|
916
1127
|
Mutation?: MutationResolvers<ContextType>;
|
|
1128
|
+
OperationContext?: OperationContextResolvers<ContextType>;
|
|
1129
|
+
OperationWithContext?: OperationWithContextResolvers<ContextType>;
|
|
917
1130
|
PHDocument?: PhDocumentResolvers<ContextType>;
|
|
918
1131
|
PHDocumentResultPage?: PhDocumentResultPageResolvers<ContextType>;
|
|
919
1132
|
Query?: QueryResolvers<ContextType>;
|
|
1133
|
+
ReactorOperation?: ReactorOperationResolvers<ContextType>;
|
|
1134
|
+
ReactorSigner?: ReactorSignerResolvers<ContextType>;
|
|
1135
|
+
ReactorSignerApp?: ReactorSignerAppResolvers<ContextType>;
|
|
1136
|
+
ReactorSignerUser?: ReactorSignerUserResolvers<ContextType>;
|
|
1137
|
+
RemoteCursor?: RemoteCursorResolvers<ContextType>;
|
|
920
1138
|
Revision?: RevisionResolvers<ContextType>;
|
|
921
|
-
Signer?: SignerResolvers<ContextType>;
|
|
922
|
-
SignerApp?: SignerAppResolvers<ContextType>;
|
|
923
|
-
SignerUser?: SignerUserResolvers<ContextType>;
|
|
924
1139
|
Subscription?: SubscriptionResolvers<ContextType>;
|
|
1140
|
+
SyncEnvelope?: SyncEnvelopeResolvers<ContextType>;
|
|
925
1141
|
}>;
|
|
926
1142
|
type Properties<T> = Required<{
|
|
927
1143
|
[K in keyof T]: z.ZodType<T[K], any, T[K]>;
|
|
@@ -931,8 +1147,23 @@ export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
|
931
1147
|
export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, definedNonNullAny, any>;
|
|
932
1148
|
export declare const DocumentChangeTypeSchema: z.ZodNativeEnum<typeof DocumentChangeType>;
|
|
933
1149
|
export declare const PropagationModeSchema: z.ZodNativeEnum<typeof PropagationMode>;
|
|
1150
|
+
export declare const SyncEnvelopeTypeSchema: z.ZodNativeEnum<typeof SyncEnvelopeType>;
|
|
1151
|
+
export declare function ActionContextInputSchema(): z.ZodObject<Properties<ActionContextInput>>;
|
|
1152
|
+
export declare function ActionInputSchema(): z.ZodObject<Properties<ActionInput>>;
|
|
1153
|
+
export declare function AttachmentInputSchema(): z.ZodObject<Properties<AttachmentInput>>;
|
|
1154
|
+
export declare function ChannelMetaInputSchema(): z.ZodObject<Properties<ChannelMetaInput>>;
|
|
1155
|
+
export declare function CreateChannelInputSchema(): z.ZodObject<Properties<CreateChannelInput>>;
|
|
1156
|
+
export declare function OperationContextInputSchema(): z.ZodObject<Properties<OperationContextInput>>;
|
|
1157
|
+
export declare function OperationInputSchema(): z.ZodObject<Properties<OperationInput>>;
|
|
1158
|
+
export declare function OperationWithContextInputSchema(): z.ZodObject<Properties<OperationWithContextInput>>;
|
|
934
1159
|
export declare function PagingInputSchema(): z.ZodObject<Properties<PagingInput>>;
|
|
1160
|
+
export declare function ReactorSignerAppInputSchema(): z.ZodObject<Properties<ReactorSignerAppInput>>;
|
|
1161
|
+
export declare function ReactorSignerInputSchema(): z.ZodObject<Properties<ReactorSignerInput>>;
|
|
1162
|
+
export declare function ReactorSignerUserInputSchema(): z.ZodObject<Properties<ReactorSignerUserInput>>;
|
|
1163
|
+
export declare function RemoteCursorInputSchema(): z.ZodObject<Properties<RemoteCursorInput>>;
|
|
1164
|
+
export declare function RemoteFilterInputSchema(): z.ZodObject<Properties<RemoteFilterInput>>;
|
|
935
1165
|
export declare function SearchFilterInputSchema(): z.ZodObject<Properties<SearchFilterInput>>;
|
|
1166
|
+
export declare function SyncEnvelopeInputSchema(): z.ZodObject<Properties<SyncEnvelopeInput>>;
|
|
936
1167
|
export declare function ViewFilterInputSchema(): z.ZodObject<Properties<ViewFilterInput>>;
|
|
937
1168
|
export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
|
|
938
1169
|
export declare const GetDocumentModelsDocument: DocumentNode;
|