@powerhousedao/reactor-api 5.1.0-dev.2 → 5.1.0-dev.4

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.
@@ -47,23 +47,23 @@ export declare function createReactorClient(url: string, fetchImpl: FetchLike, h
47
47
  RenameDocument(variables: import("./gen/graphql.js").Exact<{
48
48
  documentIdentifier: import("./gen/graphql.js").Scalars["String"]["input"];
49
49
  name: import("./gen/graphql.js").Scalars["String"]["input"];
50
- view?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").ViewFilterInput>;
50
+ branch?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").Scalars["String"]["input"]>;
51
51
  }>, options?: {} | undefined): Promise<import("./gen/graphql.js").RenameDocumentMutation>;
52
52
  AddChildren(variables: import("./gen/graphql.js").Exact<{
53
53
  parentIdentifier: import("./gen/graphql.js").Scalars["String"]["input"];
54
54
  documentIdentifiers: ReadonlyArray<import("./gen/graphql.js").Scalars["String"]["input"]>;
55
- view?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").ViewFilterInput>;
55
+ branch?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").Scalars["String"]["input"]>;
56
56
  }>, options?: {} | undefined): Promise<import("./gen/graphql.js").AddChildrenMutation>;
57
57
  RemoveChildren(variables: import("./gen/graphql.js").Exact<{
58
58
  parentIdentifier: import("./gen/graphql.js").Scalars["String"]["input"];
59
59
  documentIdentifiers: ReadonlyArray<import("./gen/graphql.js").Scalars["String"]["input"]>;
60
- view?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").ViewFilterInput>;
60
+ branch?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").Scalars["String"]["input"]>;
61
61
  }>, options?: {} | undefined): Promise<import("./gen/graphql.js").RemoveChildrenMutation>;
62
62
  MoveChildren(variables: import("./gen/graphql.js").Exact<{
63
63
  sourceParentIdentifier: import("./gen/graphql.js").Scalars["String"]["input"];
64
64
  targetParentIdentifier: import("./gen/graphql.js").Scalars["String"]["input"];
65
65
  documentIdentifiers: ReadonlyArray<import("./gen/graphql.js").Scalars["String"]["input"]>;
66
- view?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").ViewFilterInput>;
66
+ branch?: import("./gen/graphql.js").InputMaybe<import("./gen/graphql.js").Scalars["String"]["input"]>;
67
67
  }>, options?: {} | undefined): Promise<import("./gen/graphql.js").MoveChildrenMutation>;
68
68
  DeleteDocument(variables: import("./gen/graphql.js").Exact<{
69
69
  identifier: import("./gen/graphql.js").Scalars["String"]["input"];
@@ -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;;0DAKq3T,4CAAiB;;;;oBAA4kB,4CAAkB;;;;0BAA8yB,4CAAkB;;;;;yBAAw3B,4CAAkB;;;;;;;;;;eAAgtD,4CAAkB;;;kBAAsb,gDAAsB;iEAA2C,4CAAiB;;;sBAA4kB,4CAAkB;iEAA2C,4CAAiB;;;4BAAulB,4CAAkB;+BAAoC,gDAAqB;;;;4BAAwnB,4CAAkB;+BAAoC,gDAAqB;;;;4BAA0N,4CAAkB;cAAkB,4CAAkB;;;;0BAA6mB,4CAAkB;2CAAgD,4CAAiB;;;;0BAA2mB,4CAAkB;2CAAgD,4CAAiB;;;;gCAAqnB,4CAAkB;gCAAoC,4CAAkB;2CAAgD,4CAAiB;;;;oBAAunC,4CAAkB;;;;mCAA2N,4CAAiB;;;;;;;;eAA6mC,4CAAkB;;EADxzqB"}
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;;0DAKoya,4CAAiB;;;;oBAA4kB,4CAAkB;;;;0BAA8yB,4CAAkB;;;;;yBAAw3B,4CAAkB;;;;;;;;;;eAAgtD,4CAAkB;;;kBAAsb,gDAAsB;iEAA2C,4CAAiB;;;sBAA4kB,4CAAkB;iEAA2C,4CAAiB;;;4BAAulB,4CAAkB;+BAAoC,gDAAqB;;;;4BAAwnB,4CAAkB;+BAAoC,gDAAqB;;;;4BAA0N,4CAAkB;cAAkB,4CAAkB;uDAAiC,4CAAiB;;;0BAAwkB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;0BAAqkB,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;gCAA+kB,4CAAkB;gCAAoC,4CAAkB;2CAAgD,4CAAiB;uDAAkC,4CAAiB;;;oBAAilC,4CAAkB;;;;mCAA2N,4CAAiB;;;;;;;;eAA6mC,4CAAkB;;EAD3xxB"}
@@ -76,6 +76,18 @@ export type AttachmentInput = {
76
76
  readonly hash: Scalars["String"]["output"];
77
77
  readonly mimeType: Scalars["String"]["output"];
78
78
  };
79
+ export type ChannelMeta = {
80
+ readonly id: Scalars["String"]["output"];
81
+ };
82
+ export type ChannelMetaInput = {
83
+ readonly id: Scalars["String"]["input"];
84
+ };
85
+ export type CreateChannelInput = {
86
+ readonly collectionId: Scalars["String"]["input"];
87
+ readonly filter: RemoteFilterInput;
88
+ readonly id: Scalars["String"]["input"];
89
+ readonly name: Scalars["String"]["input"];
90
+ };
79
91
  export type DocumentChangeContext = {
80
92
  readonly childId?: Maybe<Scalars["String"]["output"]>;
81
93
  readonly parentId?: Maybe<Scalars["String"]["output"]>;
@@ -132,6 +144,7 @@ export type MoveChildrenResult = {
132
144
  };
133
145
  export type Mutation = {
134
146
  readonly addChildren: PhDocument;
147
+ readonly createChannel: Scalars["Boolean"]["output"];
135
148
  readonly createDocument: PhDocument;
136
149
  readonly createEmptyDocument: PhDocument;
137
150
  readonly deleteDocument: Scalars["Boolean"]["output"];
@@ -139,13 +152,17 @@ export type Mutation = {
139
152
  readonly moveChildren: MoveChildrenResult;
140
153
  readonly mutateDocument: PhDocument;
141
154
  readonly mutateDocumentAsync: Scalars["String"]["output"];
155
+ readonly pushSyncEnvelope: Scalars["Boolean"]["output"];
142
156
  readonly removeChildren: PhDocument;
143
157
  readonly renameDocument: PhDocument;
144
158
  };
145
159
  export type MutationAddChildrenArgs = {
160
+ branch?: InputMaybe<Scalars["String"]["input"]>;
146
161
  documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
147
162
  parentIdentifier: Scalars["String"]["input"];
148
- view?: InputMaybe<ViewFilterInput>;
163
+ };
164
+ export type MutationCreateChannelArgs = {
165
+ input: CreateChannelInput;
149
166
  };
150
167
  export type MutationCreateDocumentArgs = {
151
168
  document: Scalars["JSONObject"]["input"];
@@ -164,10 +181,10 @@ export type MutationDeleteDocumentsArgs = {
164
181
  propagate?: InputMaybe<PropagationMode>;
165
182
  };
166
183
  export type MutationMoveChildrenArgs = {
184
+ branch?: InputMaybe<Scalars["String"]["input"]>;
167
185
  documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
168
186
  sourceParentIdentifier: Scalars["String"]["input"];
169
187
  targetParentIdentifier: Scalars["String"]["input"];
170
- view?: InputMaybe<ViewFilterInput>;
171
188
  };
172
189
  export type MutationMutateDocumentArgs = {
173
190
  actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
@@ -179,15 +196,56 @@ export type MutationMutateDocumentAsyncArgs = {
179
196
  documentIdentifier: Scalars["String"]["input"];
180
197
  view?: InputMaybe<ViewFilterInput>;
181
198
  };
199
+ export type MutationPushSyncEnvelopeArgs = {
200
+ envelope: SyncEnvelopeInput;
201
+ };
182
202
  export type MutationRemoveChildrenArgs = {
203
+ branch?: InputMaybe<Scalars["String"]["input"]>;
183
204
  documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
184
205
  parentIdentifier: Scalars["String"]["input"];
185
- view?: InputMaybe<ViewFilterInput>;
186
206
  };
187
207
  export type MutationRenameDocumentArgs = {
208
+ branch?: InputMaybe<Scalars["String"]["input"]>;
188
209
  documentIdentifier: Scalars["String"]["input"];
189
210
  name: Scalars["String"]["input"];
190
- view?: InputMaybe<ViewFilterInput>;
211
+ };
212
+ export type Operation = {
213
+ readonly action: Action;
214
+ readonly error?: Maybe<Scalars["String"]["output"]>;
215
+ readonly hash: Scalars["String"]["output"];
216
+ readonly id?: Maybe<Scalars["String"]["output"]>;
217
+ readonly index: Scalars["Int"]["output"];
218
+ readonly skip: Scalars["Int"]["output"];
219
+ readonly timestampUtcMs: Scalars["String"]["output"];
220
+ };
221
+ export type OperationContext = {
222
+ readonly branch: Scalars["String"]["output"];
223
+ readonly documentId: Scalars["String"]["output"];
224
+ readonly documentType: Scalars["String"]["output"];
225
+ readonly scope: Scalars["String"]["output"];
226
+ };
227
+ export type OperationContextInput = {
228
+ readonly branch: Scalars["String"]["input"];
229
+ readonly documentId: Scalars["String"]["input"];
230
+ readonly documentType: Scalars["String"]["input"];
231
+ readonly scope: Scalars["String"]["input"];
232
+ };
233
+ export type OperationInput = {
234
+ readonly action: Scalars["JSONObject"]["input"];
235
+ readonly error?: InputMaybe<Scalars["String"]["input"]>;
236
+ readonly hash: Scalars["String"]["input"];
237
+ readonly id?: InputMaybe<Scalars["String"]["input"]>;
238
+ readonly index: Scalars["Int"]["input"];
239
+ readonly skip: Scalars["Int"]["input"];
240
+ readonly timestampUtcMs: Scalars["String"]["input"];
241
+ };
242
+ export type OperationWithContext = {
243
+ readonly context: OperationContext;
244
+ readonly operation: Operation;
245
+ };
246
+ export type OperationWithContextInput = {
247
+ readonly context: OperationContextInput;
248
+ readonly operation: OperationInput;
191
249
  };
192
250
  export type PhDocument = {
193
251
  readonly createdAtUtcIso: Scalars["DateTime"]["output"];
@@ -223,6 +281,7 @@ export type Query = {
223
281
  readonly documentParents: PhDocumentResultPage;
224
282
  readonly findDocuments: PhDocumentResultPage;
225
283
  readonly jobStatus?: Maybe<JobInfo>;
284
+ readonly pollSyncEnvelopes: ReadonlyArray<SyncEnvelope>;
226
285
  };
227
286
  export type QueryDocumentArgs = {
228
287
  identifier: Scalars["String"]["input"];
@@ -250,6 +309,25 @@ export type QueryFindDocumentsArgs = {
250
309
  export type QueryJobStatusArgs = {
251
310
  jobId: Scalars["String"]["input"];
252
311
  };
312
+ export type QueryPollSyncEnvelopesArgs = {
313
+ channelId: Scalars["String"]["input"];
314
+ cursorOrdinal: Scalars["Int"]["input"];
315
+ };
316
+ export type RemoteCursor = {
317
+ readonly cursorOrdinal: Scalars["Int"]["output"];
318
+ readonly lastSyncedAtUtcMs?: Maybe<Scalars["String"]["output"]>;
319
+ readonly remoteName: Scalars["String"]["output"];
320
+ };
321
+ export type RemoteCursorInput = {
322
+ readonly cursorOrdinal: Scalars["Int"]["input"];
323
+ readonly lastSyncedAtUtcMs?: InputMaybe<Scalars["String"]["input"]>;
324
+ readonly remoteName: Scalars["String"]["input"];
325
+ };
326
+ export type RemoteFilterInput = {
327
+ readonly branch: Scalars["String"]["input"];
328
+ readonly documentId: ReadonlyArray<Scalars["String"]["input"]>;
329
+ readonly scope: ReadonlyArray<Scalars["String"]["input"]>;
330
+ };
253
331
  export type Revision = {
254
332
  readonly revision: Scalars["Int"]["output"];
255
333
  readonly scope: Scalars["String"]["output"];
@@ -284,6 +362,22 @@ export type SubscriptionDocumentChangesArgs = {
284
362
  export type SubscriptionJobChangesArgs = {
285
363
  jobId: Scalars["String"]["input"];
286
364
  };
365
+ export type SyncEnvelope = {
366
+ readonly channelMeta: ChannelMeta;
367
+ readonly cursor?: Maybe<RemoteCursor>;
368
+ readonly operations?: Maybe<ReadonlyArray<OperationWithContext>>;
369
+ readonly type: SyncEnvelopeType;
370
+ };
371
+ export type SyncEnvelopeInput = {
372
+ readonly channelMeta: ChannelMetaInput;
373
+ readonly cursor?: InputMaybe<RemoteCursorInput>;
374
+ readonly operations?: InputMaybe<ReadonlyArray<OperationWithContextInput>>;
375
+ readonly type: SyncEnvelopeType;
376
+ };
377
+ export declare enum SyncEnvelopeType {
378
+ Ack = "ACK",
379
+ Operations = "OPERATIONS"
380
+ }
287
381
  export type ViewFilterInput = {
288
382
  readonly branch?: InputMaybe<Scalars["String"]["input"]>;
289
383
  readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
@@ -510,7 +604,7 @@ export type MutateDocumentAsyncMutation = {
510
604
  export type RenameDocumentMutationVariables = Exact<{
511
605
  documentIdentifier: Scalars["String"]["input"];
512
606
  name: Scalars["String"]["input"];
513
- view?: InputMaybe<ViewFilterInput>;
607
+ branch?: InputMaybe<Scalars["String"]["input"]>;
514
608
  }>;
515
609
  export type RenameDocumentMutation = {
516
610
  readonly renameDocument: {
@@ -531,7 +625,7 @@ export type RenameDocumentMutation = {
531
625
  export type AddChildrenMutationVariables = Exact<{
532
626
  parentIdentifier: Scalars["String"]["input"];
533
627
  documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
534
- view?: InputMaybe<ViewFilterInput>;
628
+ branch?: InputMaybe<Scalars["String"]["input"]>;
535
629
  }>;
536
630
  export type AddChildrenMutation = {
537
631
  readonly addChildren: {
@@ -552,7 +646,7 @@ export type AddChildrenMutation = {
552
646
  export type RemoveChildrenMutationVariables = Exact<{
553
647
  parentIdentifier: Scalars["String"]["input"];
554
648
  documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
555
- view?: InputMaybe<ViewFilterInput>;
649
+ branch?: InputMaybe<Scalars["String"]["input"]>;
556
650
  }>;
557
651
  export type RemoveChildrenMutation = {
558
652
  readonly removeChildren: {
@@ -574,7 +668,7 @@ export type MoveChildrenMutationVariables = Exact<{
574
668
  sourceParentIdentifier: Scalars["String"]["input"];
575
669
  targetParentIdentifier: Scalars["String"]["input"];
576
670
  documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
577
- view?: InputMaybe<ViewFilterInput>;
671
+ branch?: InputMaybe<Scalars["String"]["input"]>;
578
672
  }>;
579
673
  export type MoveChildrenMutation = {
580
674
  readonly moveChildren: {
@@ -694,6 +788,9 @@ export type ResolversTypes = ResolversObject<{
694
788
  ActionContext: ResolverTypeWrapper<ActionContext>;
695
789
  AttachmentInput: ResolverTypeWrapper<AttachmentInput>;
696
790
  Boolean: ResolverTypeWrapper<Scalars["Boolean"]["output"]>;
791
+ ChannelMeta: ResolverTypeWrapper<ChannelMeta>;
792
+ ChannelMetaInput: ChannelMetaInput;
793
+ CreateChannelInput: CreateChannelInput;
697
794
  DateTime: ResolverTypeWrapper<Scalars["DateTime"]["output"]>;
698
795
  DocumentChangeContext: ResolverTypeWrapper<DocumentChangeContext>;
699
796
  DocumentChangeEvent: ResolverTypeWrapper<DocumentChangeEvent>;
@@ -707,11 +804,20 @@ export type ResolversTypes = ResolversObject<{
707
804
  JobInfo: ResolverTypeWrapper<JobInfo>;
708
805
  MoveChildrenResult: ResolverTypeWrapper<MoveChildrenResult>;
709
806
  Mutation: ResolverTypeWrapper<{}>;
807
+ Operation: ResolverTypeWrapper<Operation>;
808
+ OperationContext: ResolverTypeWrapper<OperationContext>;
809
+ OperationContextInput: OperationContextInput;
810
+ OperationInput: OperationInput;
811
+ OperationWithContext: ResolverTypeWrapper<OperationWithContext>;
812
+ OperationWithContextInput: OperationWithContextInput;
710
813
  PHDocument: ResolverTypeWrapper<PhDocument>;
711
814
  PHDocumentResultPage: ResolverTypeWrapper<PhDocumentResultPage>;
712
815
  PagingInput: PagingInput;
713
816
  PropagationMode: PropagationMode;
714
817
  Query: ResolverTypeWrapper<{}>;
818
+ RemoteCursor: ResolverTypeWrapper<RemoteCursor>;
819
+ RemoteCursorInput: RemoteCursorInput;
820
+ RemoteFilterInput: RemoteFilterInput;
715
821
  Revision: ResolverTypeWrapper<Revision>;
716
822
  SearchFilterInput: SearchFilterInput;
717
823
  Signer: ResolverTypeWrapper<Signer>;
@@ -719,6 +825,9 @@ export type ResolversTypes = ResolversObject<{
719
825
  SignerUser: ResolverTypeWrapper<SignerUser>;
720
826
  String: ResolverTypeWrapper<Scalars["String"]["output"]>;
721
827
  Subscription: ResolverTypeWrapper<{}>;
828
+ SyncEnvelope: ResolverTypeWrapper<SyncEnvelope>;
829
+ SyncEnvelopeInput: SyncEnvelopeInput;
830
+ SyncEnvelopeType: SyncEnvelopeType;
722
831
  ViewFilterInput: ViewFilterInput;
723
832
  }>;
724
833
  /** Mapping between all available schema types and the resolvers parents */
@@ -727,6 +836,9 @@ export type ResolversParentTypes = ResolversObject<{
727
836
  ActionContext: ActionContext;
728
837
  AttachmentInput: AttachmentInput;
729
838
  Boolean: Scalars["Boolean"]["output"];
839
+ ChannelMeta: ChannelMeta;
840
+ ChannelMetaInput: ChannelMetaInput;
841
+ CreateChannelInput: CreateChannelInput;
730
842
  DateTime: Scalars["DateTime"]["output"];
731
843
  DocumentChangeContext: DocumentChangeContext;
732
844
  DocumentChangeEvent: DocumentChangeEvent;
@@ -739,10 +851,19 @@ export type ResolversParentTypes = ResolversObject<{
739
851
  JobInfo: JobInfo;
740
852
  MoveChildrenResult: MoveChildrenResult;
741
853
  Mutation: {};
854
+ Operation: Operation;
855
+ OperationContext: OperationContext;
856
+ OperationContextInput: OperationContextInput;
857
+ OperationInput: OperationInput;
858
+ OperationWithContext: OperationWithContext;
859
+ OperationWithContextInput: OperationWithContextInput;
742
860
  PHDocument: PhDocument;
743
861
  PHDocumentResultPage: PhDocumentResultPage;
744
862
  PagingInput: PagingInput;
745
863
  Query: {};
864
+ RemoteCursor: RemoteCursor;
865
+ RemoteCursorInput: RemoteCursorInput;
866
+ RemoteFilterInput: RemoteFilterInput;
746
867
  Revision: Revision;
747
868
  SearchFilterInput: SearchFilterInput;
748
869
  Signer: Signer;
@@ -750,6 +871,8 @@ export type ResolversParentTypes = ResolversObject<{
750
871
  SignerUser: SignerUser;
751
872
  String: Scalars["String"]["output"];
752
873
  Subscription: {};
874
+ SyncEnvelope: SyncEnvelope;
875
+ SyncEnvelopeInput: SyncEnvelopeInput;
753
876
  ViewFilterInput: ViewFilterInput;
754
877
  }>;
755
878
  export type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
@@ -774,6 +897,10 @@ export type AttachmentInputResolvers<ContextType = Context, ParentType extends R
774
897
  mimeType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
775
898
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
776
899
  }>;
900
+ export type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
901
+ id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
902
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
903
+ }>;
777
904
  export interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
778
905
  name: "DateTime";
779
906
  }
@@ -835,6 +962,7 @@ export type MoveChildrenResultResolvers<ContextType = Context, ParentType extend
835
962
  }>;
836
963
  export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
837
964
  addChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationAddChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
965
+ createChannel?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationCreateChannelArgs, "input">>;
838
966
  createDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateDocumentArgs, "document">>;
839
967
  createEmptyDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateEmptyDocumentArgs, "documentType">>;
840
968
  deleteDocument?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationDeleteDocumentArgs, "identifier">>;
@@ -842,9 +970,32 @@ export type MutationResolvers<ContextType = Context, ParentType extends Resolver
842
970
  moveChildren?: Resolver<ResolversTypes["MoveChildrenResult"], ParentType, ContextType, RequireFields<MutationMoveChildrenArgs, "documentIdentifiers" | "sourceParentIdentifier" | "targetParentIdentifier">>;
843
971
  mutateDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationMutateDocumentArgs, "actions" | "documentIdentifier">>;
844
972
  mutateDocumentAsync?: Resolver<ResolversTypes["String"], ParentType, ContextType, RequireFields<MutationMutateDocumentAsyncArgs, "actions" | "documentIdentifier">>;
973
+ pushSyncEnvelope?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationPushSyncEnvelopeArgs, "envelope">>;
845
974
  removeChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRemoveChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
846
975
  renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
847
976
  }>;
977
+ export type OperationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Operation"] = ResolversParentTypes["Operation"]> = ResolversObject<{
978
+ action?: Resolver<ResolversTypes["Action"], ParentType, ContextType>;
979
+ error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
980
+ hash?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
981
+ id?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
982
+ index?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
983
+ skip?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
984
+ timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
985
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
986
+ }>;
987
+ export type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
988
+ branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
989
+ documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
990
+ documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
991
+ scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
992
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
993
+ }>;
994
+ export type OperationWithContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationWithContext"] = ResolversParentTypes["OperationWithContext"]> = ResolversObject<{
995
+ context?: Resolver<ResolversTypes["OperationContext"], ParentType, ContextType>;
996
+ operation?: Resolver<ResolversTypes["Operation"], ParentType, ContextType>;
997
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
998
+ }>;
848
999
  export type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
849
1000
  createdAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
850
1001
  documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
@@ -872,6 +1023,13 @@ export type QueryResolvers<ContextType = Context, ParentType extends ResolversPa
872
1023
  documentParents?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentParentsArgs, "childIdentifier">>;
873
1024
  findDocuments?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryFindDocumentsArgs, "search">>;
874
1025
  jobStatus?: Resolver<Maybe<ResolversTypes["JobInfo"]>, ParentType, ContextType, RequireFields<QueryJobStatusArgs, "jobId">>;
1026
+ pollSyncEnvelopes?: Resolver<ReadonlyArray<ResolversTypes["SyncEnvelope"]>, ParentType, ContextType, RequireFields<QueryPollSyncEnvelopesArgs, "channelId" | "cursorOrdinal">>;
1027
+ }>;
1028
+ export type RemoteCursorResolvers<ContextType = Context, ParentType extends ResolversParentTypes["RemoteCursor"] = ResolversParentTypes["RemoteCursor"]> = ResolversObject<{
1029
+ cursorOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
1030
+ lastSyncedAtUtcMs?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
1031
+ remoteName?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
1032
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
875
1033
  }>;
876
1034
  export type RevisionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Revision"] = ResolversParentTypes["Revision"]> = ResolversObject<{
877
1035
  revision?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
@@ -899,10 +1057,18 @@ export type SubscriptionResolvers<ContextType = Context, ParentType extends Reso
899
1057
  documentChanges?: SubscriptionResolver<ResolversTypes["DocumentChangeEvent"], "documentChanges", ParentType, ContextType, RequireFields<SubscriptionDocumentChangesArgs, "search">>;
900
1058
  jobChanges?: SubscriptionResolver<ResolversTypes["JobChangeEvent"], "jobChanges", ParentType, ContextType, RequireFields<SubscriptionJobChangesArgs, "jobId">>;
901
1059
  }>;
1060
+ export type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
1061
+ channelMeta?: Resolver<ResolversTypes["ChannelMeta"], ParentType, ContextType>;
1062
+ cursor?: Resolver<Maybe<ResolversTypes["RemoteCursor"]>, ParentType, ContextType>;
1063
+ operations?: Resolver<Maybe<ReadonlyArray<ResolversTypes["OperationWithContext"]>>, ParentType, ContextType>;
1064
+ type?: Resolver<ResolversTypes["SyncEnvelopeType"], ParentType, ContextType>;
1065
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1066
+ }>;
902
1067
  export type Resolvers<ContextType = Context> = ResolversObject<{
903
1068
  Action?: ActionResolvers<ContextType>;
904
1069
  ActionContext?: ActionContextResolvers<ContextType>;
905
1070
  AttachmentInput?: AttachmentInputResolvers<ContextType>;
1071
+ ChannelMeta?: ChannelMetaResolvers<ContextType>;
906
1072
  DateTime?: GraphQLScalarType;
907
1073
  DocumentChangeContext?: DocumentChangeContextResolvers<ContextType>;
908
1074
  DocumentChangeEvent?: DocumentChangeEventResolvers<ContextType>;
@@ -914,14 +1080,19 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
914
1080
  JobInfo?: JobInfoResolvers<ContextType>;
915
1081
  MoveChildrenResult?: MoveChildrenResultResolvers<ContextType>;
916
1082
  Mutation?: MutationResolvers<ContextType>;
1083
+ Operation?: OperationResolvers<ContextType>;
1084
+ OperationContext?: OperationContextResolvers<ContextType>;
1085
+ OperationWithContext?: OperationWithContextResolvers<ContextType>;
917
1086
  PHDocument?: PhDocumentResolvers<ContextType>;
918
1087
  PHDocumentResultPage?: PhDocumentResultPageResolvers<ContextType>;
919
1088
  Query?: QueryResolvers<ContextType>;
1089
+ RemoteCursor?: RemoteCursorResolvers<ContextType>;
920
1090
  Revision?: RevisionResolvers<ContextType>;
921
1091
  Signer?: SignerResolvers<ContextType>;
922
1092
  SignerApp?: SignerAppResolvers<ContextType>;
923
1093
  SignerUser?: SignerUserResolvers<ContextType>;
924
1094
  Subscription?: SubscriptionResolvers<ContextType>;
1095
+ SyncEnvelope?: SyncEnvelopeResolvers<ContextType>;
925
1096
  }>;
926
1097
  type Properties<T> = Required<{
927
1098
  [K in keyof T]: z.ZodType<T[K], any, T[K]>;
@@ -931,8 +1102,17 @@ export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
931
1102
  export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, definedNonNullAny, any>;
932
1103
  export declare const DocumentChangeTypeSchema: z.ZodNativeEnum<typeof DocumentChangeType>;
933
1104
  export declare const PropagationModeSchema: z.ZodNativeEnum<typeof PropagationMode>;
1105
+ export declare const SyncEnvelopeTypeSchema: z.ZodNativeEnum<typeof SyncEnvelopeType>;
1106
+ export declare function ChannelMetaInputSchema(): z.ZodObject<Properties<ChannelMetaInput>>;
1107
+ export declare function CreateChannelInputSchema(): z.ZodObject<Properties<CreateChannelInput>>;
1108
+ export declare function OperationContextInputSchema(): z.ZodObject<Properties<OperationContextInput>>;
1109
+ export declare function OperationInputSchema(): z.ZodObject<Properties<OperationInput>>;
1110
+ export declare function OperationWithContextInputSchema(): z.ZodObject<Properties<OperationWithContextInput>>;
934
1111
  export declare function PagingInputSchema(): z.ZodObject<Properties<PagingInput>>;
1112
+ export declare function RemoteCursorInputSchema(): z.ZodObject<Properties<RemoteCursorInput>>;
1113
+ export declare function RemoteFilterInputSchema(): z.ZodObject<Properties<RemoteFilterInput>>;
935
1114
  export declare function SearchFilterInputSchema(): z.ZodObject<Properties<SearchFilterInput>>;
1115
+ export declare function SyncEnvelopeInputSchema(): z.ZodObject<Properties<SyncEnvelopeInput>>;
936
1116
  export declare function ViewFilterInputSchema(): z.ZodObject<Properties<ViewFilterInput>>;
937
1117
  export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
938
1118
  export declare const GetDocumentModelsDocument: DocumentNode;