@powerhousedao/reactor-api 6.0.0-dev.34 → 6.0.0-dev.36
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 +1 -1
- package/dist/codegen.js.map +1 -1
- package/dist/src/graphql/reactor/factory.d.ts.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.d.ts +62 -51
- package/dist/src/graphql/reactor/gen/graphql.d.ts.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.js +26 -12
- package/dist/src/graphql/reactor/gen/graphql.js.map +1 -1
- package/dist/src/graphql/reactor/resolvers.d.ts +2 -0
- package/dist/src/graphql/reactor/resolvers.d.ts.map +1 -1
- package/dist/src/graphql/reactor/resolvers.js +25 -6
- package/dist/src/graphql/reactor/resolvers.js.map +1 -1
- package/dist/src/graphql/reactor/schema.graphql +4 -0
- package/dist/src/graphql/reactor/subgraph.d.ts.map +1 -1
- package/dist/src/graphql/reactor/subgraph.js +23 -50
- package/dist/src/graphql/reactor/subgraph.js.map +1 -1
- package/dist/test/two-reactor-gql-sync.test.js +59 -0
- package/dist/test/two-reactor-gql-sync.test.js.map +1 -1
- package/dist/test/utils/gql-resolver-bridge.d.ts.map +1 -1
- package/dist/test/utils/gql-resolver-bridge.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
package/dist/codegen.js
CHANGED
package/dist/codegen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.js","sourceRoot":"","sources":["../codegen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAkB;IAC5B,MAAM,EAAE,iCAAiC;IACzC,SAAS,EAAE,CAAC,0CAA0C,CAAC;IACvD,SAAS,EAAE;QACT,sCAAsC,EAAE;YACtC,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,sBAAsB;gBACtB,8BAA8B;gBAC9B,wBAAwB;aACzB;YACD,MAAM,EAAE;gBACN,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE;oBACP,UAAU,EAAE,sBAAsB;oBAClC,QAAQ,EAAE,eAAe;iBAC1B;gBACD,aAAa,EAAE;oBACb,UAAU,EAAE,kDAAkD;oBAC9D,QAAQ,EAAE,iCAAiC;iBAC5C;gBACD,iBAAiB,EAAE,IAAI;gBACvB,aAAa,EAAE,IAAI;gBACnB,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,cAAc,EAAE,IAAI;gBACpB,UAAU,EAAE,sBAAsB;gBAClC,kBAAkB,EAAE,KAAK;gBACzB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"codegen.js","sourceRoot":"","sources":["../codegen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAkB;IAC5B,MAAM,EAAE,iCAAiC;IACzC,SAAS,EAAE,CAAC,0CAA0C,CAAC;IACvD,SAAS,EAAE;QACT,sCAAsC,EAAE;YACtC,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,sBAAsB;gBACtB,8BAA8B;gBAC9B,wBAAwB;aACzB;YACD,MAAM,EAAE;gBACN,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE;oBACP,UAAU,EAAE,sBAAsB;oBAClC,QAAQ,EAAE,eAAe;iBAC1B;gBACD,aAAa,EAAE;oBACb,UAAU,EAAE,kDAAkD;oBAC9D,QAAQ,EAAE,iCAAiC;iBAC5C;gBACD,iBAAiB,EAAE,IAAI;gBACvB,aAAa,EAAE,IAAI;gBACnB,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,cAAc,EAAE,IAAI;gBACpB,UAAU,EAAE,sBAAsB;gBAClC,kBAAkB,EAAE,KAAK;gBACzB,MAAM,EAAE,OAAO;gBACf,SAAS,EAAE,iBAAiB;aAC7B;SACF;KACF;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;0DAKs8f,4CAAiB;;;;oBAA6lB,4CAAkB;;;;0BAA+zB,4CAAkB;;;;;yBAAy4B,4CAAkB;;;;;;;;;;eAAkvD,4CAAkB;;;kBAAuc,gDAAsB;iEAA2C,4CAAiB;;;sBAA6lB,4CAAkB;iEAA2C,4CAAiB;;;4BAAwmB,4CAAkB;+BAAoC,gDAAqB;;;;4BAAyoB,4CAAkB;+BAAoC,gDAAqB;;;;4BAA0N,4CAAkB;cAAkB,4CAAkB;uDAAiC,4CAAiB;;;0BAAylB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;0BAAslB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;gCAAgmB,4CAAkB;gCAAoC,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;oBAAmnC,4CAAkB;;;;mCAA2N,4CAAiB;;;;;;;;eAA8nC,4CAAkB;;EAD5r3B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { z } from "zod/v3";
|
|
1
|
+
import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from "graphql";
|
|
3
2
|
import type { Context } from "../../types.js";
|
|
3
|
+
import * as z from "zod";
|
|
4
|
+
import type { DocumentNode } from "graphql";
|
|
4
5
|
export type Maybe<T> = T | null | undefined;
|
|
5
6
|
export type InputMaybe<T> = T | null | undefined;
|
|
6
7
|
export type Exact<T extends {
|
|
@@ -100,12 +101,6 @@ export type ChannelMeta = {
|
|
|
100
101
|
export type ChannelMetaInput = {
|
|
101
102
|
readonly id: Scalars["String"]["input"];
|
|
102
103
|
};
|
|
103
|
-
export type CreateChannelInput = {
|
|
104
|
-
readonly collectionId: Scalars["String"]["input"];
|
|
105
|
-
readonly filter: RemoteFilterInput;
|
|
106
|
-
readonly id: Scalars["String"]["input"];
|
|
107
|
-
readonly name: Scalars["String"]["input"];
|
|
108
|
-
};
|
|
109
104
|
export type DocumentChangeContext = {
|
|
110
105
|
readonly childId?: Maybe<Scalars["String"]["output"]>;
|
|
111
106
|
readonly parentId?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -162,7 +157,6 @@ export type MoveChildrenResult = {
|
|
|
162
157
|
};
|
|
163
158
|
export type Mutation = {
|
|
164
159
|
readonly addChildren: PhDocument;
|
|
165
|
-
readonly createChannel: Scalars["Boolean"]["output"];
|
|
166
160
|
readonly createDocument: PhDocument;
|
|
167
161
|
readonly createEmptyDocument: PhDocument;
|
|
168
162
|
readonly deleteDocument: Scalars["Boolean"]["output"];
|
|
@@ -173,15 +167,13 @@ export type Mutation = {
|
|
|
173
167
|
readonly pushSyncEnvelopes: Scalars["Boolean"]["output"];
|
|
174
168
|
readonly removeChildren: PhDocument;
|
|
175
169
|
readonly renameDocument: PhDocument;
|
|
170
|
+
readonly touchChannel: Scalars["Boolean"]["output"];
|
|
176
171
|
};
|
|
177
172
|
export type MutationAddChildrenArgs = {
|
|
178
173
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
179
174
|
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
180
175
|
parentIdentifier: Scalars["String"]["input"];
|
|
181
176
|
};
|
|
182
|
-
export type MutationCreateChannelArgs = {
|
|
183
|
-
input: CreateChannelInput;
|
|
184
|
-
};
|
|
185
177
|
export type MutationCreateDocumentArgs = {
|
|
186
178
|
document: Scalars["JSONObject"]["input"];
|
|
187
179
|
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -227,6 +219,9 @@ export type MutationRenameDocumentArgs = {
|
|
|
227
219
|
documentIdentifier: Scalars["String"]["input"];
|
|
228
220
|
name: Scalars["String"]["input"];
|
|
229
221
|
};
|
|
222
|
+
export type MutationTouchChannelArgs = {
|
|
223
|
+
input: TouchChannelInput;
|
|
224
|
+
};
|
|
230
225
|
export type OperationContext = {
|
|
231
226
|
readonly branch: Scalars["String"]["output"];
|
|
232
227
|
readonly documentId: Scalars["String"]["output"];
|
|
@@ -256,6 +251,15 @@ export type OperationWithContextInput = {
|
|
|
256
251
|
readonly context: OperationContextInput;
|
|
257
252
|
readonly operation: OperationInput;
|
|
258
253
|
};
|
|
254
|
+
export type OperationsFilterInput = {
|
|
255
|
+
readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
256
|
+
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
257
|
+
readonly documentId: Scalars["String"]["input"];
|
|
258
|
+
readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
259
|
+
readonly sinceRevision?: InputMaybe<Scalars["Int"]["input"]>;
|
|
260
|
+
readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
|
|
261
|
+
readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
|
|
262
|
+
};
|
|
259
263
|
export type PhDocument = {
|
|
260
264
|
readonly createdAtUtcIso: Scalars["DateTime"]["output"];
|
|
261
265
|
readonly documentType: Scalars["String"]["output"];
|
|
@@ -274,13 +278,6 @@ export type PhDocumentResultPage = {
|
|
|
274
278
|
readonly items: ReadonlyArray<PhDocument>;
|
|
275
279
|
readonly totalCount: Scalars["Int"]["output"];
|
|
276
280
|
};
|
|
277
|
-
export type ReactorOperationResultPage = {
|
|
278
|
-
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
279
|
-
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
280
|
-
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
281
|
-
readonly items: ReadonlyArray<ReactorOperation>;
|
|
282
|
-
readonly totalCount: Scalars["Int"]["output"];
|
|
283
|
-
};
|
|
284
281
|
export type PagingInput = {
|
|
285
282
|
readonly cursor?: InputMaybe<Scalars["String"]["input"]>;
|
|
286
283
|
readonly limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
@@ -313,6 +310,10 @@ export type QueryDocumentModelsArgs = {
|
|
|
313
310
|
namespace?: InputMaybe<Scalars["String"]["input"]>;
|
|
314
311
|
paging?: InputMaybe<PagingInput>;
|
|
315
312
|
};
|
|
313
|
+
export type QueryDocumentOperationsArgs = {
|
|
314
|
+
filter: OperationsFilterInput;
|
|
315
|
+
paging?: InputMaybe<PagingInput>;
|
|
316
|
+
};
|
|
316
317
|
export type QueryDocumentParentsArgs = {
|
|
317
318
|
childIdentifier: Scalars["String"]["input"];
|
|
318
319
|
paging?: InputMaybe<PagingInput>;
|
|
@@ -326,10 +327,6 @@ export type QueryFindDocumentsArgs = {
|
|
|
326
327
|
export type QueryJobStatusArgs = {
|
|
327
328
|
jobId: Scalars["String"]["input"];
|
|
328
329
|
};
|
|
329
|
-
export type QueryDocumentOperationsArgs = {
|
|
330
|
-
filter: OperationsFilterInput;
|
|
331
|
-
paging?: InputMaybe<PagingInput>;
|
|
332
|
-
};
|
|
333
330
|
export type QueryPollSyncEnvelopesArgs = {
|
|
334
331
|
channelId: Scalars["String"]["input"];
|
|
335
332
|
cursorOrdinal: Scalars["Int"]["input"];
|
|
@@ -343,6 +340,13 @@ export type ReactorOperation = {
|
|
|
343
340
|
readonly skip: Scalars["Int"]["output"];
|
|
344
341
|
readonly timestampUtcMs: Scalars["String"]["output"];
|
|
345
342
|
};
|
|
343
|
+
export type ReactorOperationResultPage = {
|
|
344
|
+
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
345
|
+
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
346
|
+
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
347
|
+
readonly items: ReadonlyArray<ReactorOperation>;
|
|
348
|
+
readonly totalCount: Scalars["Int"]["output"];
|
|
349
|
+
};
|
|
346
350
|
export type ReactorSigner = {
|
|
347
351
|
readonly app?: Maybe<ReactorSignerApp>;
|
|
348
352
|
readonly signatures: ReadonlyArray<Scalars["String"]["output"]>;
|
|
@@ -395,15 +399,6 @@ export type SearchFilterInput = {
|
|
|
395
399
|
readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
|
|
396
400
|
readonly type?: InputMaybe<Scalars["String"]["input"]>;
|
|
397
401
|
};
|
|
398
|
-
export type OperationsFilterInput = {
|
|
399
|
-
readonly documentId: Scalars["String"]["input"];
|
|
400
|
-
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
401
|
-
readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
402
|
-
readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
403
|
-
readonly sinceRevision?: InputMaybe<Scalars["Int"]["input"]>;
|
|
404
|
-
readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
|
|
405
|
-
readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
|
|
406
|
-
};
|
|
407
402
|
export type Subscription = {
|
|
408
403
|
readonly documentChanges: DocumentChangeEvent;
|
|
409
404
|
readonly jobChanges: JobChangeEvent;
|
|
@@ -418,12 +413,16 @@ export type SubscriptionJobChangesArgs = {
|
|
|
418
413
|
export type SyncEnvelope = {
|
|
419
414
|
readonly channelMeta: ChannelMeta;
|
|
420
415
|
readonly cursor?: Maybe<RemoteCursor>;
|
|
416
|
+
readonly dependsOn?: Maybe<ReadonlyArray<Scalars["String"]["output"]>>;
|
|
417
|
+
readonly key?: Maybe<Scalars["String"]["output"]>;
|
|
421
418
|
readonly operations?: Maybe<ReadonlyArray<OperationWithContext>>;
|
|
422
419
|
readonly type: SyncEnvelopeType;
|
|
423
420
|
};
|
|
424
421
|
export type SyncEnvelopeInput = {
|
|
425
422
|
readonly channelMeta: ChannelMetaInput;
|
|
426
423
|
readonly cursor?: InputMaybe<RemoteCursorInput>;
|
|
424
|
+
readonly dependsOn?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
425
|
+
readonly key?: InputMaybe<Scalars["String"]["input"]>;
|
|
427
426
|
readonly operations?: InputMaybe<ReadonlyArray<OperationWithContextInput>>;
|
|
428
427
|
readonly type: SyncEnvelopeType;
|
|
429
428
|
};
|
|
@@ -431,6 +430,13 @@ export declare enum SyncEnvelopeType {
|
|
|
431
430
|
Ack = "ACK",
|
|
432
431
|
Operations = "OPERATIONS"
|
|
433
432
|
}
|
|
433
|
+
export type TouchChannelInput = {
|
|
434
|
+
readonly collectionId: Scalars["String"]["input"];
|
|
435
|
+
readonly filter: RemoteFilterInput;
|
|
436
|
+
readonly id: Scalars["String"]["input"];
|
|
437
|
+
readonly name: Scalars["String"]["input"];
|
|
438
|
+
readonly sinceTimestampUtcMs: Scalars["String"]["input"];
|
|
439
|
+
};
|
|
434
440
|
export type ViewFilterInput = {
|
|
435
441
|
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
436
442
|
readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
@@ -846,7 +852,6 @@ export type ResolversTypes = ResolversObject<{
|
|
|
846
852
|
Boolean: ResolverTypeWrapper<Scalars["Boolean"]["output"]>;
|
|
847
853
|
ChannelMeta: ResolverTypeWrapper<ChannelMeta>;
|
|
848
854
|
ChannelMetaInput: ChannelMetaInput;
|
|
849
|
-
CreateChannelInput: CreateChannelInput;
|
|
850
855
|
DateTime: ResolverTypeWrapper<Scalars["DateTime"]["output"]>;
|
|
851
856
|
DocumentChangeContext: ResolverTypeWrapper<DocumentChangeContext>;
|
|
852
857
|
DocumentChangeEvent: ResolverTypeWrapper<DocumentChangeEvent>;
|
|
@@ -865,13 +870,14 @@ export type ResolversTypes = ResolversObject<{
|
|
|
865
870
|
OperationInput: OperationInput;
|
|
866
871
|
OperationWithContext: ResolverTypeWrapper<OperationWithContext>;
|
|
867
872
|
OperationWithContextInput: OperationWithContextInput;
|
|
873
|
+
OperationsFilterInput: OperationsFilterInput;
|
|
868
874
|
PHDocument: ResolverTypeWrapper<PhDocument>;
|
|
869
875
|
PHDocumentResultPage: ResolverTypeWrapper<PhDocumentResultPage>;
|
|
870
|
-
ReactorOperationResultPage: ResolverTypeWrapper<ReactorOperationResultPage>;
|
|
871
876
|
PagingInput: PagingInput;
|
|
872
877
|
PropagationMode: PropagationMode;
|
|
873
878
|
Query: ResolverTypeWrapper<{}>;
|
|
874
879
|
ReactorOperation: ResolverTypeWrapper<ReactorOperation>;
|
|
880
|
+
ReactorOperationResultPage: ResolverTypeWrapper<ReactorOperationResultPage>;
|
|
875
881
|
ReactorSigner: ResolverTypeWrapper<ReactorSigner>;
|
|
876
882
|
ReactorSignerApp: ResolverTypeWrapper<ReactorSignerApp>;
|
|
877
883
|
ReactorSignerAppInput: ReactorSignerAppInput;
|
|
@@ -888,6 +894,7 @@ export type ResolversTypes = ResolversObject<{
|
|
|
888
894
|
SyncEnvelope: ResolverTypeWrapper<SyncEnvelope>;
|
|
889
895
|
SyncEnvelopeInput: SyncEnvelopeInput;
|
|
890
896
|
SyncEnvelopeType: SyncEnvelopeType;
|
|
897
|
+
TouchChannelInput: TouchChannelInput;
|
|
891
898
|
ViewFilterInput: ViewFilterInput;
|
|
892
899
|
}>;
|
|
893
900
|
/** Mapping between all available schema types and the resolvers parents */
|
|
@@ -901,7 +908,6 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
901
908
|
Boolean: Scalars["Boolean"]["output"];
|
|
902
909
|
ChannelMeta: ChannelMeta;
|
|
903
910
|
ChannelMetaInput: ChannelMetaInput;
|
|
904
|
-
CreateChannelInput: CreateChannelInput;
|
|
905
911
|
DateTime: Scalars["DateTime"]["output"];
|
|
906
912
|
DocumentChangeContext: DocumentChangeContext;
|
|
907
913
|
DocumentChangeEvent: DocumentChangeEvent;
|
|
@@ -919,12 +925,13 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
919
925
|
OperationInput: OperationInput;
|
|
920
926
|
OperationWithContext: OperationWithContext;
|
|
921
927
|
OperationWithContextInput: OperationWithContextInput;
|
|
928
|
+
OperationsFilterInput: OperationsFilterInput;
|
|
922
929
|
PHDocument: PhDocument;
|
|
923
930
|
PHDocumentResultPage: PhDocumentResultPage;
|
|
924
|
-
ReactorOperationResultPage: ReactorOperationResultPage;
|
|
925
931
|
PagingInput: PagingInput;
|
|
926
932
|
Query: {};
|
|
927
933
|
ReactorOperation: ReactorOperation;
|
|
934
|
+
ReactorOperationResultPage: ReactorOperationResultPage;
|
|
928
935
|
ReactorSigner: ReactorSigner;
|
|
929
936
|
ReactorSignerApp: ReactorSignerApp;
|
|
930
937
|
ReactorSignerAppInput: ReactorSignerAppInput;
|
|
@@ -940,6 +947,7 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
940
947
|
Subscription: {};
|
|
941
948
|
SyncEnvelope: SyncEnvelope;
|
|
942
949
|
SyncEnvelopeInput: SyncEnvelopeInput;
|
|
950
|
+
TouchChannelInput: TouchChannelInput;
|
|
943
951
|
ViewFilterInput: ViewFilterInput;
|
|
944
952
|
}>;
|
|
945
953
|
export type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
|
|
@@ -1029,7 +1037,6 @@ export type MoveChildrenResultResolvers<ContextType = Context, ParentType extend
|
|
|
1029
1037
|
}>;
|
|
1030
1038
|
export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
|
|
1031
1039
|
addChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationAddChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
|
|
1032
|
-
createChannel?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationCreateChannelArgs, "input">>;
|
|
1033
1040
|
createDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateDocumentArgs, "document">>;
|
|
1034
1041
|
createEmptyDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateEmptyDocumentArgs, "documentType">>;
|
|
1035
1042
|
deleteDocument?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationDeleteDocumentArgs, "identifier">>;
|
|
@@ -1040,6 +1047,7 @@ export type MutationResolvers<ContextType = Context, ParentType extends Resolver
|
|
|
1040
1047
|
pushSyncEnvelopes?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationPushSyncEnvelopesArgs, "envelopes">>;
|
|
1041
1048
|
removeChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRemoveChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
|
|
1042
1049
|
renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
|
|
1050
|
+
touchChannel?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationTouchChannelArgs, "input">>;
|
|
1043
1051
|
}>;
|
|
1044
1052
|
export type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
|
|
1045
1053
|
branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
@@ -1073,14 +1081,6 @@ export type PhDocumentResultPageResolvers<ContextType = Context, ParentType exte
|
|
|
1073
1081
|
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
1074
1082
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1075
1083
|
}>;
|
|
1076
|
-
export type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
|
|
1077
|
-
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
1078
|
-
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
1079
|
-
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
1080
|
-
items?: Resolver<ReadonlyArray<ResolversTypes["ReactorOperation"]>, ParentType, ContextType>;
|
|
1081
|
-
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
1082
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1083
|
-
}>;
|
|
1084
1084
|
export type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
|
|
1085
1085
|
document?: Resolver<Maybe<ResolversTypes["DocumentWithChildren"]>, ParentType, ContextType, RequireFields<QueryDocumentArgs, "identifier">>;
|
|
1086
1086
|
documentChildren?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentChildrenArgs, "parentIdentifier">>;
|
|
@@ -1101,6 +1101,14 @@ export type ReactorOperationResolvers<ContextType = Context, ParentType extends
|
|
|
1101
1101
|
timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
1102
1102
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1103
1103
|
}>;
|
|
1104
|
+
export type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
|
|
1105
|
+
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
1106
|
+
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
1107
|
+
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
1108
|
+
items?: Resolver<ReadonlyArray<ResolversTypes["ReactorOperation"]>, ParentType, ContextType>;
|
|
1109
|
+
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
1110
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1111
|
+
}>;
|
|
1104
1112
|
export type ReactorSignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSigner"] = ResolversParentTypes["ReactorSigner"]> = ResolversObject<{
|
|
1105
1113
|
app?: Resolver<Maybe<ResolversTypes["ReactorSignerApp"]>, ParentType, ContextType>;
|
|
1106
1114
|
signatures?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
@@ -1136,6 +1144,8 @@ export type SubscriptionResolvers<ContextType = Context, ParentType extends Reso
|
|
|
1136
1144
|
export type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
|
|
1137
1145
|
channelMeta?: Resolver<ResolversTypes["ChannelMeta"], ParentType, ContextType>;
|
|
1138
1146
|
cursor?: Resolver<Maybe<ResolversTypes["RemoteCursor"]>, ParentType, ContextType>;
|
|
1147
|
+
dependsOn?: Resolver<Maybe<ReadonlyArray<ResolversTypes["String"]>>, ParentType, ContextType>;
|
|
1148
|
+
key?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
1139
1149
|
operations?: Resolver<Maybe<ReadonlyArray<ResolversTypes["OperationWithContext"]>>, ParentType, ContextType>;
|
|
1140
1150
|
type?: Resolver<ResolversTypes["SyncEnvelopeType"], ParentType, ContextType>;
|
|
1141
1151
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -1160,9 +1170,9 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
|
|
|
1160
1170
|
OperationWithContext?: OperationWithContextResolvers<ContextType>;
|
|
1161
1171
|
PHDocument?: PhDocumentResolvers<ContextType>;
|
|
1162
1172
|
PHDocumentResultPage?: PhDocumentResultPageResolvers<ContextType>;
|
|
1163
|
-
ReactorOperationResultPage?: ReactorOperationResultPageResolvers<ContextType>;
|
|
1164
1173
|
Query?: QueryResolvers<ContextType>;
|
|
1165
1174
|
ReactorOperation?: ReactorOperationResolvers<ContextType>;
|
|
1175
|
+
ReactorOperationResultPage?: ReactorOperationResultPageResolvers<ContextType>;
|
|
1166
1176
|
ReactorSigner?: ReactorSignerResolvers<ContextType>;
|
|
1167
1177
|
ReactorSignerApp?: ReactorSignerAppResolvers<ContextType>;
|
|
1168
1178
|
ReactorSignerUser?: ReactorSignerUserResolvers<ContextType>;
|
|
@@ -1176,18 +1186,18 @@ type Properties<T> = Required<{
|
|
|
1176
1186
|
}>;
|
|
1177
1187
|
type definedNonNullAny = {};
|
|
1178
1188
|
export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
1179
|
-
export declare const definedNonNullAnySchema: z.
|
|
1180
|
-
export declare const DocumentChangeTypeSchema: z.
|
|
1181
|
-
export declare const PropagationModeSchema: z.
|
|
1182
|
-
export declare const SyncEnvelopeTypeSchema: z.
|
|
1189
|
+
export declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
1190
|
+
export declare const DocumentChangeTypeSchema: z.ZodEnum<typeof DocumentChangeType>;
|
|
1191
|
+
export declare const PropagationModeSchema: z.ZodEnum<typeof PropagationMode>;
|
|
1192
|
+
export declare const SyncEnvelopeTypeSchema: z.ZodEnum<typeof SyncEnvelopeType>;
|
|
1183
1193
|
export declare function ActionContextInputSchema(): z.ZodObject<Properties<ActionContextInput>>;
|
|
1184
1194
|
export declare function ActionInputSchema(): z.ZodObject<Properties<ActionInput>>;
|
|
1185
1195
|
export declare function AttachmentInputSchema(): z.ZodObject<Properties<AttachmentInput>>;
|
|
1186
1196
|
export declare function ChannelMetaInputSchema(): z.ZodObject<Properties<ChannelMetaInput>>;
|
|
1187
|
-
export declare function CreateChannelInputSchema(): z.ZodObject<Properties<CreateChannelInput>>;
|
|
1188
1197
|
export declare function OperationContextInputSchema(): z.ZodObject<Properties<OperationContextInput>>;
|
|
1189
1198
|
export declare function OperationInputSchema(): z.ZodObject<Properties<OperationInput>>;
|
|
1190
1199
|
export declare function OperationWithContextInputSchema(): z.ZodObject<Properties<OperationWithContextInput>>;
|
|
1200
|
+
export declare function OperationsFilterInputSchema(): z.ZodObject<Properties<OperationsFilterInput>>;
|
|
1191
1201
|
export declare function PagingInputSchema(): z.ZodObject<Properties<PagingInput>>;
|
|
1192
1202
|
export declare function ReactorSignerAppInputSchema(): z.ZodObject<Properties<ReactorSignerAppInput>>;
|
|
1193
1203
|
export declare function ReactorSignerInputSchema(): z.ZodObject<Properties<ReactorSignerInput>>;
|
|
@@ -1196,6 +1206,7 @@ export declare function RemoteCursorInputSchema(): z.ZodObject<Properties<Remote
|
|
|
1196
1206
|
export declare function RemoteFilterInputSchema(): z.ZodObject<Properties<RemoteFilterInput>>;
|
|
1197
1207
|
export declare function SearchFilterInputSchema(): z.ZodObject<Properties<SearchFilterInput>>;
|
|
1198
1208
|
export declare function SyncEnvelopeInputSchema(): z.ZodObject<Properties<SyncEnvelopeInput>>;
|
|
1209
|
+
export declare function TouchChannelInputSchema(): z.ZodObject<Properties<TouchChannelInput>>;
|
|
1199
1210
|
export declare function ViewFilterInputSchema(): z.ZodObject<Properties<ViewFilterInput>>;
|
|
1200
1211
|
export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
|
|
1201
1212
|
export declare const GetDocumentModelsDocument: DocumentNode;
|