@powerhousedao/reactor-api 4.1.0-dev.51 → 4.1.0-dev.53

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.
Files changed (58) hide show
  1. package/dist/src/graphql/reactor/factory.d.ts +84 -0
  2. package/dist/src/graphql/reactor/factory.d.ts.map +1 -0
  3. package/dist/src/graphql/reactor/{sdk.factory.js → factory.js} +3 -3
  4. package/dist/src/graphql/reactor/factory.js.map +1 -0
  5. package/dist/src/graphql/reactor/{generated → gen}/graphql.d.ts +55 -0
  6. package/dist/src/graphql/reactor/gen/graphql.d.ts.map +1 -0
  7. package/dist/src/graphql/reactor/gen/graphql.js +380 -0
  8. package/dist/src/graphql/reactor/gen/graphql.js.map +1 -0
  9. package/dist/src/graphql/reactor/index.d.ts +3 -12
  10. package/dist/src/graphql/reactor/index.d.ts.map +1 -1
  11. package/dist/src/graphql/reactor/index.js +2 -163
  12. package/dist/src/graphql/reactor/index.js.map +1 -1
  13. package/dist/src/graphql/reactor/requester.d.ts +1 -1
  14. package/dist/src/graphql/reactor/requester.d.ts.map +1 -1
  15. package/dist/src/graphql/reactor/requester.with-zod.d.ts +1 -1
  16. package/dist/src/graphql/reactor/requester.with-zod.d.ts.map +1 -1
  17. package/dist/src/graphql/reactor/requester.with-zod.js +7 -7
  18. package/dist/src/graphql/reactor/requester.with-zod.js.map +1 -1
  19. package/dist/src/graphql/reactor/subgraph.d.ts +12 -0
  20. package/dist/src/graphql/reactor/subgraph.d.ts.map +1 -0
  21. package/dist/src/graphql/reactor/subgraph.js +129 -0
  22. package/dist/src/graphql/reactor/subgraph.js.map +1 -0
  23. package/dist/src/graphql/reactor/{dtos.d.ts → validation.d.ts} +1 -139
  24. package/dist/src/graphql/reactor/validation.d.ts.map +1 -0
  25. package/dist/src/graphql/reactor/{dtos.js → validation.js} +1 -63
  26. package/dist/src/graphql/reactor/validation.js.map +1 -0
  27. package/dist/src/graphql/types.d.ts +1 -1
  28. package/dist/src/graphql/types.d.ts.map +1 -1
  29. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  30. package/package.json +8 -7
  31. package/dist/src/graphql/reactor/dtos.d.ts.map +0 -1
  32. package/dist/src/graphql/reactor/dtos.js.map +0 -1
  33. package/dist/src/graphql/reactor/export.d.ts +0 -6
  34. package/dist/src/graphql/reactor/export.d.ts.map +0 -1
  35. package/dist/src/graphql/reactor/export.js +0 -9
  36. package/dist/src/graphql/reactor/export.js.map +0 -1
  37. package/dist/src/graphql/reactor/generated/graphql.d.ts.map +0 -1
  38. package/dist/src/graphql/reactor/generated/graphql.js +0 -16
  39. package/dist/src/graphql/reactor/generated/graphql.js.map +0 -1
  40. package/dist/src/graphql/reactor/generated/sdk.d.ts +0 -714
  41. package/dist/src/graphql/reactor/generated/sdk.d.ts.map +0 -1
  42. package/dist/src/graphql/reactor/generated/sdk.js +0 -1948
  43. package/dist/src/graphql/reactor/generated/sdk.js.map +0 -1
  44. package/dist/src/graphql/reactor/generated/typed-document-nodes.d.ts +0 -630
  45. package/dist/src/graphql/reactor/generated/typed-document-nodes.d.ts.map +0 -1
  46. package/dist/src/graphql/reactor/generated/typed-document-nodes.js +0 -1890
  47. package/dist/src/graphql/reactor/generated/typed-document-nodes.js.map +0 -1
  48. package/dist/src/graphql/reactor/generated/zod-schemas.d.ts +0 -15
  49. package/dist/src/graphql/reactor/generated/zod-schemas.d.ts.map +0 -1
  50. package/dist/src/graphql/reactor/generated/zod-schemas.js +0 -30
  51. package/dist/src/graphql/reactor/generated/zod-schemas.js.map +0 -1
  52. package/dist/src/graphql/reactor/operations.d.ts +0 -10
  53. package/dist/src/graphql/reactor/operations.d.ts.map +0 -1
  54. package/dist/src/graphql/reactor/operations.js +0 -13
  55. package/dist/src/graphql/reactor/operations.js.map +0 -1
  56. package/dist/src/graphql/reactor/sdk.factory.d.ts +0 -84
  57. package/dist/src/graphql/reactor/sdk.factory.d.ts.map +0 -1
  58. package/dist/src/graphql/reactor/sdk.factory.js.map +0 -1
@@ -1,714 +0,0 @@
1
- import { DocumentNode } from "graphql";
2
- export type Maybe<T> = T | null;
3
- export type InputMaybe<T> = Maybe<T>;
4
- export type Exact<T extends {
5
- [key: string]: unknown;
6
- }> = {
7
- [K in keyof T]: T[K];
8
- };
9
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
10
- [SubKey in K]?: Maybe<T[SubKey]>;
11
- };
12
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
13
- [SubKey in K]: Maybe<T[SubKey]>;
14
- };
15
- export type MakeEmpty<T extends {
16
- [key: string]: unknown;
17
- }, K extends keyof T> = {
18
- [_ in K]?: never;
19
- };
20
- export type Incremental<T> = T | {
21
- [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
22
- };
23
- /** All built-in and custom scalars, mapped to their actual values */
24
- export type Scalars = {
25
- ID: {
26
- input: string;
27
- output: string;
28
- };
29
- String: {
30
- input: string;
31
- output: string;
32
- };
33
- Boolean: {
34
- input: boolean;
35
- output: boolean;
36
- };
37
- Int: {
38
- input: number;
39
- output: number;
40
- };
41
- Float: {
42
- input: number;
43
- output: number;
44
- };
45
- DateTime: {
46
- input: any;
47
- output: any;
48
- };
49
- JSONObject: {
50
- input: any;
51
- output: any;
52
- };
53
- };
54
- export type Action = {
55
- __typename?: "Action";
56
- attachments?: Maybe<Array<AttachmentInput>>;
57
- context?: Maybe<ActionContext>;
58
- id: Scalars["String"]["output"];
59
- input?: Maybe<Scalars["JSONObject"]["output"]>;
60
- scope: Scalars["String"]["output"];
61
- timestampUtcMs: Scalars["String"]["output"];
62
- type: Scalars["String"]["output"];
63
- };
64
- export type ActionContext = {
65
- __typename?: "ActionContext";
66
- signer?: Maybe<Signer>;
67
- };
68
- export type AttachmentInput = {
69
- __typename?: "AttachmentInput";
70
- data: Scalars["String"]["output"];
71
- extension?: Maybe<Scalars["String"]["output"]>;
72
- fileName?: Maybe<Scalars["String"]["output"]>;
73
- hash: Scalars["String"]["output"];
74
- mimeType: Scalars["String"]["output"];
75
- };
76
- export type DocumentChangeContext = {
77
- __typename?: "DocumentChangeContext";
78
- childId?: Maybe<Scalars["String"]["output"]>;
79
- parentId?: Maybe<Scalars["String"]["output"]>;
80
- };
81
- export type DocumentChangeEvent = {
82
- __typename?: "DocumentChangeEvent";
83
- context?: Maybe<DocumentChangeContext>;
84
- documents: Array<PhDocument>;
85
- type: DocumentChangeType;
86
- };
87
- export declare enum DocumentChangeType {
88
- ChildAdded = "CHILD_ADDED",
89
- ChildRemoved = "CHILD_REMOVED",
90
- Created = "CREATED",
91
- Deleted = "DELETED",
92
- ParentAdded = "PARENT_ADDED",
93
- ParentRemoved = "PARENT_REMOVED",
94
- Updated = "UPDATED"
95
- }
96
- export type DocumentModelResultPage = {
97
- __typename?: "DocumentModelResultPage";
98
- cursor?: Maybe<Scalars["String"]["output"]>;
99
- hasNextPage: Scalars["Boolean"]["output"];
100
- hasPreviousPage: Scalars["Boolean"]["output"];
101
- items: Array<DocumentModelState>;
102
- totalCount: Scalars["Int"]["output"];
103
- };
104
- export type DocumentModelState = {
105
- __typename?: "DocumentModelState";
106
- id: Scalars["String"]["output"];
107
- name: Scalars["String"]["output"];
108
- namespace?: Maybe<Scalars["String"]["output"]>;
109
- specification?: Maybe<Scalars["JSONObject"]["output"]>;
110
- version?: Maybe<Scalars["String"]["output"]>;
111
- };
112
- export type DocumentWithChildren = {
113
- __typename?: "DocumentWithChildren";
114
- childIds: Array<Scalars["String"]["output"]>;
115
- document: PhDocument;
116
- };
117
- export type JobChangeEvent = {
118
- __typename?: "JobChangeEvent";
119
- error?: Maybe<Scalars["String"]["output"]>;
120
- jobId: Scalars["String"]["output"];
121
- result?: Maybe<Scalars["JSONObject"]["output"]>;
122
- status: Scalars["String"]["output"];
123
- };
124
- export type JobInfo = {
125
- __typename?: "JobInfo";
126
- completedAt?: Maybe<Scalars["DateTime"]["output"]>;
127
- createdAt: Scalars["DateTime"]["output"];
128
- error?: Maybe<Scalars["String"]["output"]>;
129
- id: Scalars["String"]["output"];
130
- result?: Maybe<Scalars["JSONObject"]["output"]>;
131
- status: Scalars["String"]["output"];
132
- };
133
- export type MoveChildrenResult = {
134
- __typename?: "MoveChildrenResult";
135
- source: PhDocument;
136
- target: PhDocument;
137
- };
138
- export type Mutation = {
139
- __typename?: "Mutation";
140
- addChildren: PhDocument;
141
- createDocument: PhDocument;
142
- createEmptyDocument: PhDocument;
143
- deleteDocument: Scalars["Boolean"]["output"];
144
- deleteDocuments: Scalars["Boolean"]["output"];
145
- moveChildren: MoveChildrenResult;
146
- mutateDocument: PhDocument;
147
- mutateDocumentAsync: Scalars["String"]["output"];
148
- removeChildren: PhDocument;
149
- renameDocument: PhDocument;
150
- };
151
- export type MutationAddChildrenArgs = {
152
- documentIdentifiers: Array<Scalars["String"]["input"]>;
153
- parentIdentifier: Scalars["String"]["input"];
154
- view?: InputMaybe<ViewFilterInput>;
155
- };
156
- export type MutationCreateDocumentArgs = {
157
- document: Scalars["JSONObject"]["input"];
158
- parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
159
- };
160
- export type MutationCreateEmptyDocumentArgs = {
161
- documentType: Scalars["String"]["input"];
162
- parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
163
- };
164
- export type MutationDeleteDocumentArgs = {
165
- identifier: Scalars["String"]["input"];
166
- propagate?: InputMaybe<PropagationMode>;
167
- };
168
- export type MutationDeleteDocumentsArgs = {
169
- identifiers: Array<Scalars["String"]["input"]>;
170
- propagate?: InputMaybe<PropagationMode>;
171
- };
172
- export type MutationMoveChildrenArgs = {
173
- documentIdentifiers: Array<Scalars["String"]["input"]>;
174
- sourceParentIdentifier: Scalars["String"]["input"];
175
- targetParentIdentifier: Scalars["String"]["input"];
176
- view?: InputMaybe<ViewFilterInput>;
177
- };
178
- export type MutationMutateDocumentArgs = {
179
- actions: Array<Scalars["JSONObject"]["input"]>;
180
- documentIdentifier: Scalars["String"]["input"];
181
- view?: InputMaybe<ViewFilterInput>;
182
- };
183
- export type MutationMutateDocumentAsyncArgs = {
184
- actions: Array<Scalars["JSONObject"]["input"]>;
185
- documentIdentifier: Scalars["String"]["input"];
186
- view?: InputMaybe<ViewFilterInput>;
187
- };
188
- export type MutationRemoveChildrenArgs = {
189
- documentIdentifiers: Array<Scalars["String"]["input"]>;
190
- parentIdentifier: Scalars["String"]["input"];
191
- view?: InputMaybe<ViewFilterInput>;
192
- };
193
- export type MutationRenameDocumentArgs = {
194
- documentIdentifier: Scalars["String"]["input"];
195
- name: Scalars["String"]["input"];
196
- view?: InputMaybe<ViewFilterInput>;
197
- };
198
- export type PhDocument = {
199
- __typename?: "PHDocument";
200
- created: Scalars["DateTime"]["output"];
201
- documentType: Scalars["String"]["output"];
202
- id: Scalars["String"]["output"];
203
- lastModified: Scalars["DateTime"]["output"];
204
- name: Scalars["String"]["output"];
205
- parentId?: Maybe<Scalars["String"]["output"]>;
206
- revision: Scalars["Int"]["output"];
207
- slug?: Maybe<Scalars["String"]["output"]>;
208
- state: Scalars["JSONObject"]["output"];
209
- };
210
- export type PhDocumentResultPage = {
211
- __typename?: "PHDocumentResultPage";
212
- cursor?: Maybe<Scalars["String"]["output"]>;
213
- hasNextPage: Scalars["Boolean"]["output"];
214
- hasPreviousPage: Scalars["Boolean"]["output"];
215
- items: Array<PhDocument>;
216
- totalCount: Scalars["Int"]["output"];
217
- };
218
- export type PagingInput = {
219
- cursor?: InputMaybe<Scalars["String"]["input"]>;
220
- limit?: InputMaybe<Scalars["Int"]["input"]>;
221
- offset?: InputMaybe<Scalars["Int"]["input"]>;
222
- };
223
- export declare enum PropagationMode {
224
- Cascade = "CASCADE",
225
- Orphan = "ORPHAN"
226
- }
227
- export type Query = {
228
- __typename?: "Query";
229
- document?: Maybe<DocumentWithChildren>;
230
- documentChildren: PhDocumentResultPage;
231
- documentModels: DocumentModelResultPage;
232
- documentParents: PhDocumentResultPage;
233
- findDocuments: PhDocumentResultPage;
234
- jobStatus?: Maybe<JobInfo>;
235
- };
236
- export type QueryDocumentArgs = {
237
- identifier: Scalars["String"]["input"];
238
- view?: InputMaybe<ViewFilterInput>;
239
- };
240
- export type QueryDocumentChildrenArgs = {
241
- paging?: InputMaybe<PagingInput>;
242
- parentIdentifier: Scalars["String"]["input"];
243
- view?: InputMaybe<ViewFilterInput>;
244
- };
245
- export type QueryDocumentModelsArgs = {
246
- namespace?: InputMaybe<Scalars["String"]["input"]>;
247
- paging?: InputMaybe<PagingInput>;
248
- };
249
- export type QueryDocumentParentsArgs = {
250
- childIdentifier: Scalars["String"]["input"];
251
- paging?: InputMaybe<PagingInput>;
252
- view?: InputMaybe<ViewFilterInput>;
253
- };
254
- export type QueryFindDocumentsArgs = {
255
- paging?: InputMaybe<PagingInput>;
256
- search: SearchFilterInput;
257
- view?: InputMaybe<ViewFilterInput>;
258
- };
259
- export type QueryJobStatusArgs = {
260
- jobId: Scalars["String"]["input"];
261
- };
262
- export type SearchFilterInput = {
263
- identifiers?: InputMaybe<Array<Scalars["String"]["input"]>>;
264
- parentId?: InputMaybe<Scalars["String"]["input"]>;
265
- type?: InputMaybe<Scalars["String"]["input"]>;
266
- };
267
- export type Signer = {
268
- __typename?: "Signer";
269
- app?: Maybe<SignerApp>;
270
- signatures: Array<Scalars["String"]["output"]>;
271
- user?: Maybe<SignerUser>;
272
- };
273
- export type SignerApp = {
274
- __typename?: "SignerApp";
275
- key: Scalars["String"]["output"];
276
- name: Scalars["String"]["output"];
277
- };
278
- export type SignerUser = {
279
- __typename?: "SignerUser";
280
- address: Scalars["String"]["output"];
281
- chainId: Scalars["Int"]["output"];
282
- networkId: Scalars["String"]["output"];
283
- };
284
- export type Subscription = {
285
- __typename?: "Subscription";
286
- documentChanges: DocumentChangeEvent;
287
- jobChanges: JobChangeEvent;
288
- };
289
- export type SubscriptionDocumentChangesArgs = {
290
- search: SearchFilterInput;
291
- view?: InputMaybe<ViewFilterInput>;
292
- };
293
- export type SubscriptionJobChangesArgs = {
294
- jobId: Scalars["String"]["input"];
295
- };
296
- export type ViewFilterInput = {
297
- branch?: InputMaybe<Scalars["String"]["input"]>;
298
- scopes?: InputMaybe<Array<Scalars["String"]["input"]>>;
299
- };
300
- export type PhDocumentFieldsFragment = {
301
- __typename?: "PHDocument";
302
- id: string;
303
- slug?: string | null;
304
- name: string;
305
- documentType: string;
306
- state: any;
307
- revision: number;
308
- created: any;
309
- lastModified: any;
310
- parentId?: string | null;
311
- };
312
- export type GetDocumentModelsQueryVariables = Exact<{
313
- namespace?: InputMaybe<Scalars["String"]["input"]>;
314
- paging?: InputMaybe<PagingInput>;
315
- }>;
316
- export type GetDocumentModelsQuery = {
317
- __typename?: "Query";
318
- documentModels: {
319
- __typename?: "DocumentModelResultPage";
320
- totalCount: number;
321
- hasNextPage: boolean;
322
- hasPreviousPage: boolean;
323
- cursor?: string | null;
324
- items: Array<{
325
- __typename?: "DocumentModelState";
326
- id: string;
327
- name: string;
328
- namespace?: string | null;
329
- version?: string | null;
330
- specification?: any | null;
331
- }>;
332
- };
333
- };
334
- export type GetDocumentQueryVariables = Exact<{
335
- identifier: Scalars["String"]["input"];
336
- view?: InputMaybe<ViewFilterInput>;
337
- }>;
338
- export type GetDocumentQuery = {
339
- __typename?: "Query";
340
- document?: {
341
- __typename?: "DocumentWithChildren";
342
- childIds: Array<string>;
343
- document: {
344
- __typename?: "PHDocument";
345
- id: string;
346
- slug?: string | null;
347
- name: string;
348
- documentType: string;
349
- state: any;
350
- revision: number;
351
- created: any;
352
- lastModified: any;
353
- parentId?: string | null;
354
- };
355
- } | null;
356
- };
357
- export type GetDocumentChildrenQueryVariables = Exact<{
358
- parentIdentifier: Scalars["String"]["input"];
359
- view?: InputMaybe<ViewFilterInput>;
360
- paging?: InputMaybe<PagingInput>;
361
- }>;
362
- export type GetDocumentChildrenQuery = {
363
- __typename?: "Query";
364
- documentChildren: {
365
- __typename?: "PHDocumentResultPage";
366
- totalCount: number;
367
- hasNextPage: boolean;
368
- hasPreviousPage: boolean;
369
- cursor?: string | null;
370
- items: Array<{
371
- __typename?: "PHDocument";
372
- id: string;
373
- slug?: string | null;
374
- name: string;
375
- documentType: string;
376
- state: any;
377
- revision: number;
378
- created: any;
379
- lastModified: any;
380
- parentId?: string | null;
381
- }>;
382
- };
383
- };
384
- export type GetDocumentParentsQueryVariables = Exact<{
385
- childIdentifier: Scalars["String"]["input"];
386
- view?: InputMaybe<ViewFilterInput>;
387
- paging?: InputMaybe<PagingInput>;
388
- }>;
389
- export type GetDocumentParentsQuery = {
390
- __typename?: "Query";
391
- documentParents: {
392
- __typename?: "PHDocumentResultPage";
393
- totalCount: number;
394
- hasNextPage: boolean;
395
- hasPreviousPage: boolean;
396
- cursor?: string | null;
397
- items: Array<{
398
- __typename?: "PHDocument";
399
- id: string;
400
- slug?: string | null;
401
- name: string;
402
- documentType: string;
403
- state: any;
404
- revision: number;
405
- created: any;
406
- lastModified: any;
407
- parentId?: string | null;
408
- }>;
409
- };
410
- };
411
- export type FindDocumentsQueryVariables = Exact<{
412
- search: SearchFilterInput;
413
- view?: InputMaybe<ViewFilterInput>;
414
- paging?: InputMaybe<PagingInput>;
415
- }>;
416
- export type FindDocumentsQuery = {
417
- __typename?: "Query";
418
- findDocuments: {
419
- __typename?: "PHDocumentResultPage";
420
- totalCount: number;
421
- hasNextPage: boolean;
422
- hasPreviousPage: boolean;
423
- cursor?: string | null;
424
- items: Array<{
425
- __typename?: "PHDocument";
426
- id: string;
427
- slug?: string | null;
428
- name: string;
429
- documentType: string;
430
- state: any;
431
- revision: number;
432
- created: any;
433
- lastModified: any;
434
- parentId?: string | null;
435
- }>;
436
- };
437
- };
438
- export type GetJobStatusQueryVariables = Exact<{
439
- jobId: Scalars["String"]["input"];
440
- }>;
441
- export type GetJobStatusQuery = {
442
- __typename?: "Query";
443
- jobStatus?: {
444
- __typename?: "JobInfo";
445
- id: string;
446
- status: string;
447
- result?: any | null;
448
- error?: string | null;
449
- createdAt: any;
450
- completedAt?: any | null;
451
- } | null;
452
- };
453
- export type CreateDocumentMutationVariables = Exact<{
454
- document: Scalars["JSONObject"]["input"];
455
- parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
456
- }>;
457
- export type CreateDocumentMutation = {
458
- __typename?: "Mutation";
459
- createDocument: {
460
- __typename?: "PHDocument";
461
- id: string;
462
- slug?: string | null;
463
- name: string;
464
- documentType: string;
465
- state: any;
466
- revision: number;
467
- created: any;
468
- lastModified: any;
469
- parentId?: string | null;
470
- };
471
- };
472
- export type CreateEmptyDocumentMutationVariables = Exact<{
473
- documentType: Scalars["String"]["input"];
474
- parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
475
- }>;
476
- export type CreateEmptyDocumentMutation = {
477
- __typename?: "Mutation";
478
- createEmptyDocument: {
479
- __typename?: "PHDocument";
480
- id: string;
481
- slug?: string | null;
482
- name: string;
483
- documentType: string;
484
- state: any;
485
- revision: number;
486
- created: any;
487
- lastModified: any;
488
- parentId?: string | null;
489
- };
490
- };
491
- export type MutateDocumentMutationVariables = Exact<{
492
- documentIdentifier: Scalars["String"]["input"];
493
- actions: Array<Scalars["JSONObject"]["input"]> | Scalars["JSONObject"]["input"];
494
- view?: InputMaybe<ViewFilterInput>;
495
- }>;
496
- export type MutateDocumentMutation = {
497
- __typename?: "Mutation";
498
- mutateDocument: {
499
- __typename?: "PHDocument";
500
- id: string;
501
- slug?: string | null;
502
- name: string;
503
- documentType: string;
504
- state: any;
505
- revision: number;
506
- created: any;
507
- lastModified: any;
508
- parentId?: string | null;
509
- };
510
- };
511
- export type MutateDocumentAsyncMutationVariables = Exact<{
512
- documentIdentifier: Scalars["String"]["input"];
513
- actions: Array<Scalars["JSONObject"]["input"]> | Scalars["JSONObject"]["input"];
514
- view?: InputMaybe<ViewFilterInput>;
515
- }>;
516
- export type MutateDocumentAsyncMutation = {
517
- __typename?: "Mutation";
518
- mutateDocumentAsync: string;
519
- };
520
- export type RenameDocumentMutationVariables = Exact<{
521
- documentIdentifier: Scalars["String"]["input"];
522
- name: Scalars["String"]["input"];
523
- view?: InputMaybe<ViewFilterInput>;
524
- }>;
525
- export type RenameDocumentMutation = {
526
- __typename?: "Mutation";
527
- renameDocument: {
528
- __typename?: "PHDocument";
529
- id: string;
530
- slug?: string | null;
531
- name: string;
532
- documentType: string;
533
- state: any;
534
- revision: number;
535
- created: any;
536
- lastModified: any;
537
- parentId?: string | null;
538
- };
539
- };
540
- export type AddChildrenMutationVariables = Exact<{
541
- parentIdentifier: Scalars["String"]["input"];
542
- documentIdentifiers: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
543
- view?: InputMaybe<ViewFilterInput>;
544
- }>;
545
- export type AddChildrenMutation = {
546
- __typename?: "Mutation";
547
- addChildren: {
548
- __typename?: "PHDocument";
549
- id: string;
550
- slug?: string | null;
551
- name: string;
552
- documentType: string;
553
- state: any;
554
- revision: number;
555
- created: any;
556
- lastModified: any;
557
- parentId?: string | null;
558
- };
559
- };
560
- export type RemoveChildrenMutationVariables = Exact<{
561
- parentIdentifier: Scalars["String"]["input"];
562
- documentIdentifiers: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
563
- view?: InputMaybe<ViewFilterInput>;
564
- }>;
565
- export type RemoveChildrenMutation = {
566
- __typename?: "Mutation";
567
- removeChildren: {
568
- __typename?: "PHDocument";
569
- id: string;
570
- slug?: string | null;
571
- name: string;
572
- documentType: string;
573
- state: any;
574
- revision: number;
575
- created: any;
576
- lastModified: any;
577
- parentId?: string | null;
578
- };
579
- };
580
- export type MoveChildrenMutationVariables = Exact<{
581
- sourceParentIdentifier: Scalars["String"]["input"];
582
- targetParentIdentifier: Scalars["String"]["input"];
583
- documentIdentifiers: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
584
- view?: InputMaybe<ViewFilterInput>;
585
- }>;
586
- export type MoveChildrenMutation = {
587
- __typename?: "Mutation";
588
- moveChildren: {
589
- __typename?: "MoveChildrenResult";
590
- source: {
591
- __typename?: "PHDocument";
592
- id: string;
593
- slug?: string | null;
594
- name: string;
595
- documentType: string;
596
- state: any;
597
- revision: number;
598
- created: any;
599
- lastModified: any;
600
- parentId?: string | null;
601
- };
602
- target: {
603
- __typename?: "PHDocument";
604
- id: string;
605
- slug?: string | null;
606
- name: string;
607
- documentType: string;
608
- state: any;
609
- revision: number;
610
- created: any;
611
- lastModified: any;
612
- parentId?: string | null;
613
- };
614
- };
615
- };
616
- export type DeleteDocumentMutationVariables = Exact<{
617
- identifier: Scalars["String"]["input"];
618
- propagate?: InputMaybe<PropagationMode>;
619
- }>;
620
- export type DeleteDocumentMutation = {
621
- __typename?: "Mutation";
622
- deleteDocument: boolean;
623
- };
624
- export type DeleteDocumentsMutationVariables = Exact<{
625
- identifiers: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
626
- propagate?: InputMaybe<PropagationMode>;
627
- }>;
628
- export type DeleteDocumentsMutation = {
629
- __typename?: "Mutation";
630
- deleteDocuments: boolean;
631
- };
632
- export type DocumentChangesSubscriptionVariables = Exact<{
633
- search: SearchFilterInput;
634
- view?: InputMaybe<ViewFilterInput>;
635
- }>;
636
- export type DocumentChangesSubscription = {
637
- __typename?: "Subscription";
638
- documentChanges: {
639
- __typename?: "DocumentChangeEvent";
640
- type: DocumentChangeType;
641
- documents: Array<{
642
- __typename?: "PHDocument";
643
- id: string;
644
- slug?: string | null;
645
- name: string;
646
- documentType: string;
647
- state: any;
648
- revision: number;
649
- created: any;
650
- lastModified: any;
651
- parentId?: string | null;
652
- }>;
653
- context?: {
654
- __typename?: "DocumentChangeContext";
655
- parentId?: string | null;
656
- childId?: string | null;
657
- } | null;
658
- };
659
- };
660
- export type JobChangesSubscriptionVariables = Exact<{
661
- jobId: Scalars["String"]["input"];
662
- }>;
663
- export type JobChangesSubscription = {
664
- __typename?: "Subscription";
665
- jobChanges: {
666
- __typename?: "JobChangeEvent";
667
- jobId: string;
668
- status: string;
669
- result?: any | null;
670
- error?: string | null;
671
- };
672
- };
673
- export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
674
- export declare const GetDocumentModelsDocument: DocumentNode;
675
- export declare const GetDocumentDocument: DocumentNode;
676
- export declare const GetDocumentChildrenDocument: DocumentNode;
677
- export declare const GetDocumentParentsDocument: DocumentNode;
678
- export declare const FindDocumentsDocument: DocumentNode;
679
- export declare const GetJobStatusDocument: DocumentNode;
680
- export declare const CreateDocumentDocument: DocumentNode;
681
- export declare const CreateEmptyDocumentDocument: DocumentNode;
682
- export declare const MutateDocumentDocument: DocumentNode;
683
- export declare const MutateDocumentAsyncDocument: DocumentNode;
684
- export declare const RenameDocumentDocument: DocumentNode;
685
- export declare const AddChildrenDocument: DocumentNode;
686
- export declare const RemoveChildrenDocument: DocumentNode;
687
- export declare const MoveChildrenDocument: DocumentNode;
688
- export declare const DeleteDocumentDocument: DocumentNode;
689
- export declare const DeleteDocumentsDocument: DocumentNode;
690
- export declare const DocumentChangesDocument: DocumentNode;
691
- export declare const JobChangesDocument: DocumentNode;
692
- export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
693
- export declare function getSdk<C>(requester: Requester<C>): {
694
- GetDocumentModels(variables?: GetDocumentModelsQueryVariables, options?: C): Promise<GetDocumentModelsQuery>;
695
- GetDocument(variables: GetDocumentQueryVariables, options?: C): Promise<GetDocumentQuery>;
696
- GetDocumentChildren(variables: GetDocumentChildrenQueryVariables, options?: C): Promise<GetDocumentChildrenQuery>;
697
- GetDocumentParents(variables: GetDocumentParentsQueryVariables, options?: C): Promise<GetDocumentParentsQuery>;
698
- FindDocuments(variables: FindDocumentsQueryVariables, options?: C): Promise<FindDocumentsQuery>;
699
- GetJobStatus(variables: GetJobStatusQueryVariables, options?: C): Promise<GetJobStatusQuery>;
700
- CreateDocument(variables: CreateDocumentMutationVariables, options?: C): Promise<CreateDocumentMutation>;
701
- CreateEmptyDocument(variables: CreateEmptyDocumentMutationVariables, options?: C): Promise<CreateEmptyDocumentMutation>;
702
- MutateDocument(variables: MutateDocumentMutationVariables, options?: C): Promise<MutateDocumentMutation>;
703
- MutateDocumentAsync(variables: MutateDocumentAsyncMutationVariables, options?: C): Promise<MutateDocumentAsyncMutation>;
704
- RenameDocument(variables: RenameDocumentMutationVariables, options?: C): Promise<RenameDocumentMutation>;
705
- AddChildren(variables: AddChildrenMutationVariables, options?: C): Promise<AddChildrenMutation>;
706
- RemoveChildren(variables: RemoveChildrenMutationVariables, options?: C): Promise<RemoveChildrenMutation>;
707
- MoveChildren(variables: MoveChildrenMutationVariables, options?: C): Promise<MoveChildrenMutation>;
708
- DeleteDocument(variables: DeleteDocumentMutationVariables, options?: C): Promise<DeleteDocumentMutation>;
709
- DeleteDocuments(variables: DeleteDocumentsMutationVariables, options?: C): Promise<DeleteDocumentsMutation>;
710
- DocumentChanges(variables: DocumentChangesSubscriptionVariables, options?: C): AsyncIterable<DocumentChangesSubscription>;
711
- JobChanges(variables: JobChangesSubscriptionVariables, options?: C): AsyncIterable<JobChangesSubscription>;
712
- };
713
- export type Sdk = ReturnType<typeof getSdk>;
714
- //# sourceMappingURL=sdk.d.ts.map