@powerhousedao/reactor-api 4.1.0-dev.7 → 4.1.0-dev.70
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/README.md +16 -10
- package/dist/codegen.d.ts +4 -0
- package/dist/codegen.d.ts.map +1 -0
- package/dist/codegen.js +38 -0
- package/dist/codegen.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/src/config.d.ts +3 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +6 -0
- package/dist/src/config.js.map +1 -1
- package/dist/src/graphql/analytics-subgraph.d.ts +14 -0
- package/dist/src/graphql/analytics-subgraph.d.ts.map +1 -0
- package/dist/src/graphql/{analytics/index.js → analytics-subgraph.js} +4 -4
- package/dist/src/graphql/analytics-subgraph.js.map +1 -0
- package/dist/src/graphql/base-subgraph.d.ts +17 -0
- package/dist/src/graphql/base-subgraph.d.ts.map +1 -0
- package/dist/src/graphql/{base/index.js → base-subgraph.js} +4 -2
- package/dist/src/graphql/base-subgraph.js.map +1 -0
- package/dist/src/graphql/drive-subgraph.d.ts +13 -0
- package/dist/src/graphql/drive-subgraph.d.ts.map +1 -0
- package/dist/src/graphql/{drive/index.js → drive-subgraph.js} +36 -19
- package/dist/src/graphql/drive-subgraph.js.map +1 -0
- package/dist/src/graphql/graphql-manager.d.ts +10 -13
- package/dist/src/graphql/graphql-manager.d.ts.map +1 -1
- package/dist/src/graphql/graphql-manager.js +69 -35
- package/dist/src/graphql/graphql-manager.js.map +1 -1
- package/dist/src/graphql/index.d.ts +7 -8
- package/dist/src/graphql/index.d.ts.map +1 -1
- package/dist/src/graphql/index.js +7 -19
- package/dist/src/graphql/index.js.map +1 -1
- package/dist/src/graphql/reactor/adapters.d.ts +28 -0
- package/dist/src/graphql/reactor/adapters.d.ts.map +1 -0
- package/dist/src/graphql/reactor/adapters.js +92 -0
- package/dist/src/graphql/reactor/adapters.js.map +1 -0
- package/dist/src/graphql/reactor/factory.d.ts +84 -0
- package/dist/src/graphql/reactor/factory.d.ts.map +1 -0
- package/dist/src/graphql/reactor/factory.js +7 -0
- package/dist/src/graphql/reactor/factory.js.map +1 -0
- package/dist/src/graphql/reactor/gen/graphql.d.ts +979 -0
- package/dist/src/graphql/reactor/gen/graphql.d.ts.map +1 -0
- package/dist/src/graphql/reactor/gen/graphql.js +383 -0
- package/dist/src/graphql/reactor/gen/graphql.js.map +1 -0
- package/dist/src/graphql/reactor/index.d.ts +4 -0
- package/dist/src/graphql/reactor/index.d.ts.map +1 -0
- package/dist/src/graphql/reactor/index.js +4 -0
- package/dist/src/graphql/reactor/index.js.map +1 -0
- package/dist/src/graphql/reactor/requester.d.ts +4 -0
- package/dist/src/graphql/reactor/requester.d.ts.map +1 -0
- package/dist/src/graphql/reactor/requester.js +22 -0
- package/dist/src/graphql/reactor/requester.js.map +1 -0
- package/dist/src/graphql/reactor/requester.with-zod.d.ts +4 -0
- package/dist/src/graphql/reactor/requester.with-zod.d.ts.map +1 -0
- package/dist/src/graphql/reactor/requester.with-zod.js +53 -0
- package/dist/src/graphql/reactor/requester.with-zod.js.map +1 -0
- package/dist/src/graphql/reactor/resolvers.d.ts +60 -0
- package/dist/src/graphql/reactor/resolvers.d.ts.map +1 -0
- package/dist/src/graphql/reactor/resolvers.js +173 -0
- package/dist/src/graphql/reactor/resolvers.js.map +1 -0
- package/dist/src/graphql/reactor/subgraph.d.ts +12 -0
- package/dist/src/graphql/reactor/subgraph.d.ts.map +1 -0
- package/dist/src/graphql/reactor/subgraph.js +159 -0
- package/dist/src/graphql/reactor/subgraph.js.map +1 -0
- package/dist/src/graphql/reactor/validation.d.ts +374 -0
- package/dist/src/graphql/reactor/validation.d.ts.map +1 -0
- package/dist/src/graphql/reactor/validation.js +73 -0
- package/dist/src/graphql/reactor/validation.js.map +1 -0
- package/dist/src/graphql/system/index.d.ts +2 -27
- package/dist/src/graphql/system/index.d.ts.map +1 -1
- package/dist/src/graphql/system/index.js +2 -80
- package/dist/src/graphql/system/index.js.map +1 -1
- package/dist/src/graphql/system/system-subgraph.d.ts +33 -0
- package/dist/src/graphql/system/system-subgraph.d.ts.map +1 -0
- package/dist/src/graphql/system/system-subgraph.js +96 -0
- package/dist/src/graphql/system/system-subgraph.js.map +1 -0
- package/dist/src/graphql/system/types.d.ts +1 -2
- package/dist/src/graphql/system/types.d.ts.map +1 -1
- package/dist/src/graphql/{drive/temp-hack-rwa-type-defs.d.ts → temp-hack-rwa-type-defs.d.ts} +2 -2
- package/dist/src/graphql/temp-hack-rwa-type-defs.d.ts.map +1 -0
- package/dist/src/graphql/temp-hack-rwa-type-defs.js.map +1 -0
- package/dist/src/graphql/types.d.ts +8 -5
- package/dist/src/graphql/types.d.ts.map +1 -1
- package/dist/src/graphql/utils.d.ts +3 -0
- package/dist/src/graphql/utils.d.ts.map +1 -0
- package/dist/src/graphql/utils.js +13 -0
- package/dist/src/graphql/utils.js.map +1 -0
- package/dist/src/packages/import-loader.d.ts +4 -4
- package/dist/src/packages/import-loader.d.ts.map +1 -1
- package/dist/src/packages/import-loader.js +7 -6
- package/dist/src/packages/import-loader.js.map +1 -1
- package/dist/src/packages/import-resolver.d.ts +5 -0
- package/dist/src/packages/import-resolver.d.ts.map +1 -0
- package/dist/src/packages/import-resolver.js +127 -0
- package/dist/src/packages/import-resolver.js.map +1 -0
- package/dist/src/packages/package-manager.d.ts +3 -3
- package/dist/src/packages/package-manager.d.ts.map +1 -1
- package/dist/src/packages/package-manager.js +26 -10
- package/dist/src/packages/package-manager.js.map +1 -1
- package/dist/src/packages/types.d.ts +3 -3
- package/dist/src/packages/types.d.ts.map +1 -1
- package/dist/src/packages/util.d.ts +20 -2
- package/dist/src/packages/util.d.ts.map +1 -1
- package/dist/src/packages/util.js +49 -5
- package/dist/src/packages/util.js.map +1 -1
- package/dist/src/packages/vite-loader.d.ts +22 -0
- package/dist/src/packages/vite-loader.d.ts.map +1 -0
- package/dist/src/packages/vite-loader.js +147 -0
- package/dist/src/packages/vite-loader.js.map +1 -0
- package/dist/src/server.d.ts +13 -7
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +52 -84
- package/dist/src/server.js.map +1 -1
- package/dist/src/services/auth.service.d.ts +64 -0
- package/dist/src/services/auth.service.d.ts.map +1 -0
- package/dist/src/services/auth.service.js +154 -0
- package/dist/src/services/auth.service.js.map +1 -0
- package/dist/src/sync/types.d.ts +10 -0
- package/dist/src/sync/types.d.ts.map +1 -0
- package/dist/src/sync/types.js +2 -0
- package/dist/src/sync/types.js.map +1 -0
- package/dist/src/sync/utils.d.ts +2 -10
- package/dist/src/sync/utils.d.ts.map +1 -1
- package/dist/src/sync/utils.js +1 -1
- package/dist/src/sync/utils.js.map +1 -1
- package/dist/src/types.d.ts +5 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/create-schema.d.ts +3 -3
- package/dist/src/utils/create-schema.d.ts.map +1 -1
- package/dist/src/utils/create-schema.js +27 -8
- package/dist/src/utils/create-schema.js.map +1 -1
- package/dist/src/utils/db.d.ts +1 -1
- package/dist/src/utils/db.d.ts.map +1 -1
- package/dist/src/utils/db.js.map +1 -1
- package/dist/test/benchmarks/load.bench.d.ts +2 -0
- package/dist/test/benchmarks/load.bench.d.ts.map +1 -0
- package/dist/test/benchmarks/load.bench.js +73 -0
- package/dist/test/benchmarks/load.bench.js.map +1 -0
- package/dist/test/benchmarks/sync.bench.d.ts +2 -0
- package/dist/test/benchmarks/sync.bench.d.ts.map +1 -0
- package/dist/test/benchmarks/sync.bench.js +119 -0
- package/dist/test/benchmarks/sync.bench.js.map +1 -0
- package/dist/test/drive-handlers.d.ts +4 -0
- package/dist/test/drive-handlers.d.ts.map +1 -0
- package/dist/test/drive-handlers.js +39 -0
- package/dist/test/drive-handlers.js.map +1 -0
- package/dist/test/drive.test.d.ts +2 -0
- package/dist/test/drive.test.d.ts.map +1 -0
- package/dist/test/drive.test.js +142 -0
- package/dist/test/drive.test.js.map +1 -0
- package/dist/test/index.d.ts +3 -0
- package/dist/test/index.d.ts.map +1 -0
- package/dist/test/index.js +3 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/pull-responder-transmitter.test.d.ts +2 -0
- package/dist/test/pull-responder-transmitter.test.d.ts.map +1 -0
- package/dist/test/pull-responder-transmitter.test.js +220 -0
- package/dist/test/pull-responder-transmitter.test.js.map +1 -0
- package/dist/test/push-transmitter.test.d.ts +2 -0
- package/dist/test/push-transmitter.test.d.ts.map +1 -0
- package/dist/test/push-transmitter.test.js +179 -0
- package/dist/test/push-transmitter.test.js.map +1 -0
- package/dist/test/reactor-client.test.d.ts +2 -0
- package/dist/test/reactor-client.test.d.ts.map +1 -0
- package/dist/test/reactor-client.test.js +212 -0
- package/dist/test/reactor-client.test.js.map +1 -0
- package/dist/test/reactor-resolvers.test.d.ts +2 -0
- package/dist/test/reactor-resolvers.test.d.ts.map +1 -0
- package/dist/test/reactor-resolvers.test.js +523 -0
- package/dist/test/reactor-resolvers.test.js.map +1 -0
- package/dist/test/router.test.d.ts +2 -0
- package/dist/test/router.test.d.ts.map +1 -0
- package/dist/test/router.test.js +38 -0
- package/dist/test/router.test.js.map +1 -0
- package/dist/test/system.test.d.ts +2 -0
- package/dist/test/system.test.d.ts.map +1 -0
- package/dist/test/system.test.js +211 -0
- package/dist/test/system.test.js.map +1 -0
- package/dist/test/utils.d.ts +10 -0
- package/dist/test/utils.d.ts.map +1 -0
- package/dist/test/utils.js +23 -0
- package/dist/test/utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +24 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +38 -22
- package/dist/src/graphql/analytics/index.d.ts +0 -14
- package/dist/src/graphql/analytics/index.d.ts.map +0 -1
- package/dist/src/graphql/analytics/index.js.map +0 -1
- package/dist/src/graphql/base/index.d.ts +0 -17
- package/dist/src/graphql/base/index.d.ts.map +0 -1
- package/dist/src/graphql/base/index.js.map +0 -1
- package/dist/src/graphql/drive/index.d.ts +0 -13
- package/dist/src/graphql/drive/index.d.ts.map +0 -1
- package/dist/src/graphql/drive/index.js.map +0 -1
- package/dist/src/graphql/drive/temp-hack-rwa-type-defs.d.ts.map +0 -1
- package/dist/src/graphql/drive/temp-hack-rwa-type-defs.js.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
- /package/dist/src/graphql/{drive/temp-hack-rwa-type-defs.js → temp-hack-rwa-type-defs.js} +0 -0
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+
import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from "graphql";
|
|
2
|
+
import type { Context } from "../../types.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import type { DocumentNode } from "graphql";
|
|
5
|
+
export type Maybe<T> = T | null | undefined;
|
|
6
|
+
export type InputMaybe<T> = T | null | undefined;
|
|
7
|
+
export type Exact<T extends {
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}> = {
|
|
10
|
+
[K in keyof T]: T[K];
|
|
11
|
+
};
|
|
12
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
16
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
17
|
+
};
|
|
18
|
+
export type MakeEmpty<T extends {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}, K extends keyof T> = {
|
|
21
|
+
[_ in K]?: never;
|
|
22
|
+
};
|
|
23
|
+
export type Incremental<T> = T | {
|
|
24
|
+
[P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
|
|
25
|
+
};
|
|
26
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
|
27
|
+
[P in K]-?: NonNullable<T[P]>;
|
|
28
|
+
};
|
|
29
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
30
|
+
export type Scalars = {
|
|
31
|
+
ID: {
|
|
32
|
+
input: string;
|
|
33
|
+
output: string;
|
|
34
|
+
};
|
|
35
|
+
String: {
|
|
36
|
+
input: string;
|
|
37
|
+
output: string;
|
|
38
|
+
};
|
|
39
|
+
Boolean: {
|
|
40
|
+
input: boolean;
|
|
41
|
+
output: boolean;
|
|
42
|
+
};
|
|
43
|
+
Int: {
|
|
44
|
+
input: number;
|
|
45
|
+
output: number;
|
|
46
|
+
};
|
|
47
|
+
Float: {
|
|
48
|
+
input: number;
|
|
49
|
+
output: number;
|
|
50
|
+
};
|
|
51
|
+
DateTime: {
|
|
52
|
+
input: string | Date;
|
|
53
|
+
output: string | Date;
|
|
54
|
+
};
|
|
55
|
+
JSONObject: {
|
|
56
|
+
input: any;
|
|
57
|
+
output: any;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export type Action = {
|
|
61
|
+
readonly attachments?: Maybe<ReadonlyArray<AttachmentInput>>;
|
|
62
|
+
readonly context?: Maybe<ActionContext>;
|
|
63
|
+
readonly id: Scalars["String"]["output"];
|
|
64
|
+
readonly input: Scalars["JSONObject"]["output"];
|
|
65
|
+
readonly scope: Scalars["String"]["output"];
|
|
66
|
+
readonly timestampUtcMs: Scalars["String"]["output"];
|
|
67
|
+
readonly type: Scalars["String"]["output"];
|
|
68
|
+
};
|
|
69
|
+
export type ActionContext = {
|
|
70
|
+
readonly signer?: Maybe<Signer>;
|
|
71
|
+
};
|
|
72
|
+
export type AttachmentInput = {
|
|
73
|
+
readonly data: Scalars["String"]["output"];
|
|
74
|
+
readonly extension?: Maybe<Scalars["String"]["output"]>;
|
|
75
|
+
readonly fileName?: Maybe<Scalars["String"]["output"]>;
|
|
76
|
+
readonly hash: Scalars["String"]["output"];
|
|
77
|
+
readonly mimeType: Scalars["String"]["output"];
|
|
78
|
+
};
|
|
79
|
+
export type DocumentChangeContext = {
|
|
80
|
+
readonly childId?: Maybe<Scalars["String"]["output"]>;
|
|
81
|
+
readonly parentId?: Maybe<Scalars["String"]["output"]>;
|
|
82
|
+
};
|
|
83
|
+
export type DocumentChangeEvent = {
|
|
84
|
+
readonly context?: Maybe<DocumentChangeContext>;
|
|
85
|
+
readonly documents: ReadonlyArray<PhDocument>;
|
|
86
|
+
readonly type: DocumentChangeType;
|
|
87
|
+
};
|
|
88
|
+
export declare enum DocumentChangeType {
|
|
89
|
+
ChildAdded = "CHILD_ADDED",
|
|
90
|
+
ChildRemoved = "CHILD_REMOVED",
|
|
91
|
+
Created = "CREATED",
|
|
92
|
+
Deleted = "DELETED",
|
|
93
|
+
ParentAdded = "PARENT_ADDED",
|
|
94
|
+
ParentRemoved = "PARENT_REMOVED",
|
|
95
|
+
Updated = "UPDATED"
|
|
96
|
+
}
|
|
97
|
+
export type DocumentModelGlobalState = {
|
|
98
|
+
readonly id: Scalars["String"]["output"];
|
|
99
|
+
readonly name: Scalars["String"]["output"];
|
|
100
|
+
readonly namespace?: Maybe<Scalars["String"]["output"]>;
|
|
101
|
+
readonly specification: Scalars["JSONObject"]["output"];
|
|
102
|
+
readonly version?: Maybe<Scalars["String"]["output"]>;
|
|
103
|
+
};
|
|
104
|
+
export type DocumentModelResultPage = {
|
|
105
|
+
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
106
|
+
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
107
|
+
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
108
|
+
readonly items: ReadonlyArray<DocumentModelGlobalState>;
|
|
109
|
+
readonly totalCount: Scalars["Int"]["output"];
|
|
110
|
+
};
|
|
111
|
+
export type DocumentWithChildren = {
|
|
112
|
+
readonly childIds: ReadonlyArray<Scalars["String"]["output"]>;
|
|
113
|
+
readonly document: PhDocument;
|
|
114
|
+
};
|
|
115
|
+
export type JobChangeEvent = {
|
|
116
|
+
readonly error?: Maybe<Scalars["String"]["output"]>;
|
|
117
|
+
readonly jobId: Scalars["String"]["output"];
|
|
118
|
+
readonly result: Scalars["JSONObject"]["output"];
|
|
119
|
+
readonly status: Scalars["String"]["output"];
|
|
120
|
+
};
|
|
121
|
+
export type JobInfo = {
|
|
122
|
+
readonly completedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
123
|
+
readonly createdAt: Scalars["DateTime"]["output"];
|
|
124
|
+
readonly error?: Maybe<Scalars["String"]["output"]>;
|
|
125
|
+
readonly id: Scalars["String"]["output"];
|
|
126
|
+
readonly result: Scalars["JSONObject"]["output"];
|
|
127
|
+
readonly status: Scalars["String"]["output"];
|
|
128
|
+
};
|
|
129
|
+
export type MoveChildrenResult = {
|
|
130
|
+
readonly source: PhDocument;
|
|
131
|
+
readonly target: PhDocument;
|
|
132
|
+
};
|
|
133
|
+
export type Mutation = {
|
|
134
|
+
readonly addChildren: PhDocument;
|
|
135
|
+
readonly createDocument: PhDocument;
|
|
136
|
+
readonly createEmptyDocument: PhDocument;
|
|
137
|
+
readonly deleteDocument: Scalars["Boolean"]["output"];
|
|
138
|
+
readonly deleteDocuments: Scalars["Boolean"]["output"];
|
|
139
|
+
readonly moveChildren: MoveChildrenResult;
|
|
140
|
+
readonly mutateDocument: PhDocument;
|
|
141
|
+
readonly mutateDocumentAsync: Scalars["String"]["output"];
|
|
142
|
+
readonly removeChildren: PhDocument;
|
|
143
|
+
readonly renameDocument: PhDocument;
|
|
144
|
+
};
|
|
145
|
+
export type MutationAddChildrenArgs = {
|
|
146
|
+
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
147
|
+
parentIdentifier: Scalars["String"]["input"];
|
|
148
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
149
|
+
};
|
|
150
|
+
export type MutationCreateDocumentArgs = {
|
|
151
|
+
document: Scalars["JSONObject"]["input"];
|
|
152
|
+
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
153
|
+
};
|
|
154
|
+
export type MutationCreateEmptyDocumentArgs = {
|
|
155
|
+
documentType: Scalars["String"]["input"];
|
|
156
|
+
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
157
|
+
};
|
|
158
|
+
export type MutationDeleteDocumentArgs = {
|
|
159
|
+
identifier: Scalars["String"]["input"];
|
|
160
|
+
propagate?: InputMaybe<PropagationMode>;
|
|
161
|
+
};
|
|
162
|
+
export type MutationDeleteDocumentsArgs = {
|
|
163
|
+
identifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
164
|
+
propagate?: InputMaybe<PropagationMode>;
|
|
165
|
+
};
|
|
166
|
+
export type MutationMoveChildrenArgs = {
|
|
167
|
+
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
168
|
+
sourceParentIdentifier: Scalars["String"]["input"];
|
|
169
|
+
targetParentIdentifier: Scalars["String"]["input"];
|
|
170
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
171
|
+
};
|
|
172
|
+
export type MutationMutateDocumentArgs = {
|
|
173
|
+
actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
|
|
174
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
175
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
176
|
+
};
|
|
177
|
+
export type MutationMutateDocumentAsyncArgs = {
|
|
178
|
+
actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
|
|
179
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
180
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
181
|
+
};
|
|
182
|
+
export type MutationRemoveChildrenArgs = {
|
|
183
|
+
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
184
|
+
parentIdentifier: Scalars["String"]["input"];
|
|
185
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
186
|
+
};
|
|
187
|
+
export type MutationRenameDocumentArgs = {
|
|
188
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
189
|
+
name: Scalars["String"]["input"];
|
|
190
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
191
|
+
};
|
|
192
|
+
export type PhDocument = {
|
|
193
|
+
readonly createdAtUtcIso: Scalars["DateTime"]["output"];
|
|
194
|
+
readonly documentType: Scalars["String"]["output"];
|
|
195
|
+
readonly id: Scalars["String"]["output"];
|
|
196
|
+
readonly lastModifiedAtUtcIso: Scalars["DateTime"]["output"];
|
|
197
|
+
readonly name: Scalars["String"]["output"];
|
|
198
|
+
readonly parentId?: Maybe<Scalars["String"]["output"]>;
|
|
199
|
+
readonly revisionsList: ReadonlyArray<Revision>;
|
|
200
|
+
readonly slug?: Maybe<Scalars["String"]["output"]>;
|
|
201
|
+
readonly state: Scalars["JSONObject"]["output"];
|
|
202
|
+
};
|
|
203
|
+
export type PhDocumentResultPage = {
|
|
204
|
+
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
205
|
+
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
206
|
+
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
207
|
+
readonly items: ReadonlyArray<PhDocument>;
|
|
208
|
+
readonly totalCount: Scalars["Int"]["output"];
|
|
209
|
+
};
|
|
210
|
+
export type PagingInput = {
|
|
211
|
+
readonly cursor?: InputMaybe<Scalars["String"]["input"]>;
|
|
212
|
+
readonly limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
213
|
+
readonly offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
214
|
+
};
|
|
215
|
+
export declare enum PropagationMode {
|
|
216
|
+
Cascade = "CASCADE",
|
|
217
|
+
Orphan = "ORPHAN"
|
|
218
|
+
}
|
|
219
|
+
export type Query = {
|
|
220
|
+
readonly document?: Maybe<DocumentWithChildren>;
|
|
221
|
+
readonly documentChildren: PhDocumentResultPage;
|
|
222
|
+
readonly documentModels: DocumentModelResultPage;
|
|
223
|
+
readonly documentParents: PhDocumentResultPage;
|
|
224
|
+
readonly findDocuments: PhDocumentResultPage;
|
|
225
|
+
readonly jobStatus?: Maybe<JobInfo>;
|
|
226
|
+
};
|
|
227
|
+
export type QueryDocumentArgs = {
|
|
228
|
+
identifier: Scalars["String"]["input"];
|
|
229
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
230
|
+
};
|
|
231
|
+
export type QueryDocumentChildrenArgs = {
|
|
232
|
+
paging?: InputMaybe<PagingInput>;
|
|
233
|
+
parentIdentifier: Scalars["String"]["input"];
|
|
234
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
235
|
+
};
|
|
236
|
+
export type QueryDocumentModelsArgs = {
|
|
237
|
+
namespace?: InputMaybe<Scalars["String"]["input"]>;
|
|
238
|
+
paging?: InputMaybe<PagingInput>;
|
|
239
|
+
};
|
|
240
|
+
export type QueryDocumentParentsArgs = {
|
|
241
|
+
childIdentifier: Scalars["String"]["input"];
|
|
242
|
+
paging?: InputMaybe<PagingInput>;
|
|
243
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
244
|
+
};
|
|
245
|
+
export type QueryFindDocumentsArgs = {
|
|
246
|
+
paging?: InputMaybe<PagingInput>;
|
|
247
|
+
search: SearchFilterInput;
|
|
248
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
249
|
+
};
|
|
250
|
+
export type QueryJobStatusArgs = {
|
|
251
|
+
jobId: Scalars["String"]["input"];
|
|
252
|
+
};
|
|
253
|
+
export type Revision = {
|
|
254
|
+
readonly revision: Scalars["Int"]["output"];
|
|
255
|
+
readonly scope: Scalars["String"]["output"];
|
|
256
|
+
};
|
|
257
|
+
export type SearchFilterInput = {
|
|
258
|
+
readonly identifiers?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
259
|
+
readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
|
|
260
|
+
readonly type?: InputMaybe<Scalars["String"]["input"]>;
|
|
261
|
+
};
|
|
262
|
+
export type Signer = {
|
|
263
|
+
readonly app?: Maybe<SignerApp>;
|
|
264
|
+
readonly signatures: ReadonlyArray<Scalars["String"]["output"]>;
|
|
265
|
+
readonly user?: Maybe<SignerUser>;
|
|
266
|
+
};
|
|
267
|
+
export type SignerApp = {
|
|
268
|
+
readonly key: Scalars["String"]["output"];
|
|
269
|
+
readonly name: Scalars["String"]["output"];
|
|
270
|
+
};
|
|
271
|
+
export type SignerUser = {
|
|
272
|
+
readonly address: Scalars["String"]["output"];
|
|
273
|
+
readonly chainId: Scalars["Int"]["output"];
|
|
274
|
+
readonly networkId: Scalars["String"]["output"];
|
|
275
|
+
};
|
|
276
|
+
export type Subscription = {
|
|
277
|
+
readonly documentChanges: DocumentChangeEvent;
|
|
278
|
+
readonly jobChanges: JobChangeEvent;
|
|
279
|
+
};
|
|
280
|
+
export type SubscriptionDocumentChangesArgs = {
|
|
281
|
+
search: SearchFilterInput;
|
|
282
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
283
|
+
};
|
|
284
|
+
export type SubscriptionJobChangesArgs = {
|
|
285
|
+
jobId: Scalars["String"]["input"];
|
|
286
|
+
};
|
|
287
|
+
export type ViewFilterInput = {
|
|
288
|
+
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
289
|
+
readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
290
|
+
};
|
|
291
|
+
export type PhDocumentFieldsFragment = {
|
|
292
|
+
readonly id: string;
|
|
293
|
+
readonly slug?: string | null | undefined;
|
|
294
|
+
readonly name: string;
|
|
295
|
+
readonly documentType: string;
|
|
296
|
+
readonly state: any;
|
|
297
|
+
readonly createdAtUtcIso: string | Date;
|
|
298
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
299
|
+
readonly parentId?: string | null | undefined;
|
|
300
|
+
readonly revisionsList: ReadonlyArray<{
|
|
301
|
+
readonly scope: string;
|
|
302
|
+
readonly revision: number;
|
|
303
|
+
}>;
|
|
304
|
+
};
|
|
305
|
+
export type GetDocumentModelsQueryVariables = Exact<{
|
|
306
|
+
namespace?: InputMaybe<Scalars["String"]["input"]>;
|
|
307
|
+
paging?: InputMaybe<PagingInput>;
|
|
308
|
+
}>;
|
|
309
|
+
export type GetDocumentModelsQuery = {
|
|
310
|
+
readonly documentModels: {
|
|
311
|
+
readonly totalCount: number;
|
|
312
|
+
readonly hasNextPage: boolean;
|
|
313
|
+
readonly hasPreviousPage: boolean;
|
|
314
|
+
readonly cursor?: string | null | undefined;
|
|
315
|
+
readonly items: ReadonlyArray<{
|
|
316
|
+
readonly id: string;
|
|
317
|
+
readonly name: string;
|
|
318
|
+
readonly namespace?: string | null | undefined;
|
|
319
|
+
readonly version?: string | null | undefined;
|
|
320
|
+
readonly specification: any;
|
|
321
|
+
}>;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
export type GetDocumentQueryVariables = Exact<{
|
|
325
|
+
identifier: Scalars["String"]["input"];
|
|
326
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
327
|
+
}>;
|
|
328
|
+
export type GetDocumentQuery = {
|
|
329
|
+
readonly document?: {
|
|
330
|
+
readonly childIds: ReadonlyArray<string>;
|
|
331
|
+
readonly document: {
|
|
332
|
+
readonly id: string;
|
|
333
|
+
readonly slug?: string | null | undefined;
|
|
334
|
+
readonly name: string;
|
|
335
|
+
readonly documentType: string;
|
|
336
|
+
readonly state: any;
|
|
337
|
+
readonly createdAtUtcIso: string | Date;
|
|
338
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
339
|
+
readonly parentId?: string | null | undefined;
|
|
340
|
+
readonly revisionsList: ReadonlyArray<{
|
|
341
|
+
readonly scope: string;
|
|
342
|
+
readonly revision: number;
|
|
343
|
+
}>;
|
|
344
|
+
};
|
|
345
|
+
} | null | undefined;
|
|
346
|
+
};
|
|
347
|
+
export type GetDocumentChildrenQueryVariables = Exact<{
|
|
348
|
+
parentIdentifier: Scalars["String"]["input"];
|
|
349
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
350
|
+
paging?: InputMaybe<PagingInput>;
|
|
351
|
+
}>;
|
|
352
|
+
export type GetDocumentChildrenQuery = {
|
|
353
|
+
readonly documentChildren: {
|
|
354
|
+
readonly totalCount: number;
|
|
355
|
+
readonly hasNextPage: boolean;
|
|
356
|
+
readonly hasPreviousPage: boolean;
|
|
357
|
+
readonly cursor?: string | null | undefined;
|
|
358
|
+
readonly items: ReadonlyArray<{
|
|
359
|
+
readonly id: string;
|
|
360
|
+
readonly slug?: string | null | undefined;
|
|
361
|
+
readonly name: string;
|
|
362
|
+
readonly documentType: string;
|
|
363
|
+
readonly state: any;
|
|
364
|
+
readonly createdAtUtcIso: string | Date;
|
|
365
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
366
|
+
readonly parentId?: string | null | undefined;
|
|
367
|
+
readonly revisionsList: ReadonlyArray<{
|
|
368
|
+
readonly scope: string;
|
|
369
|
+
readonly revision: number;
|
|
370
|
+
}>;
|
|
371
|
+
}>;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
export type GetDocumentParentsQueryVariables = Exact<{
|
|
375
|
+
childIdentifier: Scalars["String"]["input"];
|
|
376
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
377
|
+
paging?: InputMaybe<PagingInput>;
|
|
378
|
+
}>;
|
|
379
|
+
export type GetDocumentParentsQuery = {
|
|
380
|
+
readonly documentParents: {
|
|
381
|
+
readonly totalCount: number;
|
|
382
|
+
readonly hasNextPage: boolean;
|
|
383
|
+
readonly hasPreviousPage: boolean;
|
|
384
|
+
readonly cursor?: string | null | undefined;
|
|
385
|
+
readonly items: ReadonlyArray<{
|
|
386
|
+
readonly id: string;
|
|
387
|
+
readonly slug?: string | null | undefined;
|
|
388
|
+
readonly name: string;
|
|
389
|
+
readonly documentType: string;
|
|
390
|
+
readonly state: any;
|
|
391
|
+
readonly createdAtUtcIso: string | Date;
|
|
392
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
393
|
+
readonly parentId?: string | null | undefined;
|
|
394
|
+
readonly revisionsList: ReadonlyArray<{
|
|
395
|
+
readonly scope: string;
|
|
396
|
+
readonly revision: number;
|
|
397
|
+
}>;
|
|
398
|
+
}>;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
export type FindDocumentsQueryVariables = Exact<{
|
|
402
|
+
search: SearchFilterInput;
|
|
403
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
404
|
+
paging?: InputMaybe<PagingInput>;
|
|
405
|
+
}>;
|
|
406
|
+
export type FindDocumentsQuery = {
|
|
407
|
+
readonly findDocuments: {
|
|
408
|
+
readonly totalCount: number;
|
|
409
|
+
readonly hasNextPage: boolean;
|
|
410
|
+
readonly hasPreviousPage: boolean;
|
|
411
|
+
readonly cursor?: string | null | undefined;
|
|
412
|
+
readonly items: ReadonlyArray<{
|
|
413
|
+
readonly id: string;
|
|
414
|
+
readonly slug?: string | null | undefined;
|
|
415
|
+
readonly name: string;
|
|
416
|
+
readonly documentType: string;
|
|
417
|
+
readonly state: any;
|
|
418
|
+
readonly createdAtUtcIso: string | Date;
|
|
419
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
420
|
+
readonly parentId?: string | null | undefined;
|
|
421
|
+
readonly revisionsList: ReadonlyArray<{
|
|
422
|
+
readonly scope: string;
|
|
423
|
+
readonly revision: number;
|
|
424
|
+
}>;
|
|
425
|
+
}>;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
export type GetJobStatusQueryVariables = Exact<{
|
|
429
|
+
jobId: Scalars["String"]["input"];
|
|
430
|
+
}>;
|
|
431
|
+
export type GetJobStatusQuery = {
|
|
432
|
+
readonly jobStatus?: {
|
|
433
|
+
readonly id: string;
|
|
434
|
+
readonly status: string;
|
|
435
|
+
readonly result: any;
|
|
436
|
+
readonly error?: string | null | undefined;
|
|
437
|
+
readonly createdAt: string | Date;
|
|
438
|
+
readonly completedAt?: string | Date | null | undefined;
|
|
439
|
+
} | null | undefined;
|
|
440
|
+
};
|
|
441
|
+
export type CreateDocumentMutationVariables = Exact<{
|
|
442
|
+
document: Scalars["JSONObject"]["input"];
|
|
443
|
+
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
444
|
+
}>;
|
|
445
|
+
export type CreateDocumentMutation = {
|
|
446
|
+
readonly createDocument: {
|
|
447
|
+
readonly id: string;
|
|
448
|
+
readonly slug?: string | null | undefined;
|
|
449
|
+
readonly name: string;
|
|
450
|
+
readonly documentType: string;
|
|
451
|
+
readonly state: any;
|
|
452
|
+
readonly createdAtUtcIso: string | Date;
|
|
453
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
454
|
+
readonly parentId?: string | null | undefined;
|
|
455
|
+
readonly revisionsList: ReadonlyArray<{
|
|
456
|
+
readonly scope: string;
|
|
457
|
+
readonly revision: number;
|
|
458
|
+
}>;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
export type CreateEmptyDocumentMutationVariables = Exact<{
|
|
462
|
+
documentType: Scalars["String"]["input"];
|
|
463
|
+
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
464
|
+
}>;
|
|
465
|
+
export type CreateEmptyDocumentMutation = {
|
|
466
|
+
readonly createEmptyDocument: {
|
|
467
|
+
readonly id: string;
|
|
468
|
+
readonly slug?: string | null | undefined;
|
|
469
|
+
readonly name: string;
|
|
470
|
+
readonly documentType: string;
|
|
471
|
+
readonly state: any;
|
|
472
|
+
readonly createdAtUtcIso: string | Date;
|
|
473
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
474
|
+
readonly parentId?: string | null | undefined;
|
|
475
|
+
readonly revisionsList: ReadonlyArray<{
|
|
476
|
+
readonly scope: string;
|
|
477
|
+
readonly revision: number;
|
|
478
|
+
}>;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
export type MutateDocumentMutationVariables = Exact<{
|
|
482
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
483
|
+
actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
|
|
484
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
485
|
+
}>;
|
|
486
|
+
export type MutateDocumentMutation = {
|
|
487
|
+
readonly mutateDocument: {
|
|
488
|
+
readonly id: string;
|
|
489
|
+
readonly slug?: string | null | undefined;
|
|
490
|
+
readonly name: string;
|
|
491
|
+
readonly documentType: string;
|
|
492
|
+
readonly state: any;
|
|
493
|
+
readonly createdAtUtcIso: string | Date;
|
|
494
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
495
|
+
readonly parentId?: string | null | undefined;
|
|
496
|
+
readonly revisionsList: ReadonlyArray<{
|
|
497
|
+
readonly scope: string;
|
|
498
|
+
readonly revision: number;
|
|
499
|
+
}>;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
export type MutateDocumentAsyncMutationVariables = Exact<{
|
|
503
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
504
|
+
actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
|
|
505
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
506
|
+
}>;
|
|
507
|
+
export type MutateDocumentAsyncMutation = {
|
|
508
|
+
readonly mutateDocumentAsync: string;
|
|
509
|
+
};
|
|
510
|
+
export type RenameDocumentMutationVariables = Exact<{
|
|
511
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
512
|
+
name: Scalars["String"]["input"];
|
|
513
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
514
|
+
}>;
|
|
515
|
+
export type RenameDocumentMutation = {
|
|
516
|
+
readonly renameDocument: {
|
|
517
|
+
readonly id: string;
|
|
518
|
+
readonly slug?: string | null | undefined;
|
|
519
|
+
readonly name: string;
|
|
520
|
+
readonly documentType: string;
|
|
521
|
+
readonly state: any;
|
|
522
|
+
readonly createdAtUtcIso: string | Date;
|
|
523
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
524
|
+
readonly parentId?: string | null | undefined;
|
|
525
|
+
readonly revisionsList: ReadonlyArray<{
|
|
526
|
+
readonly scope: string;
|
|
527
|
+
readonly revision: number;
|
|
528
|
+
}>;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
export type AddChildrenMutationVariables = Exact<{
|
|
532
|
+
parentIdentifier: Scalars["String"]["input"];
|
|
533
|
+
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
534
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
535
|
+
}>;
|
|
536
|
+
export type AddChildrenMutation = {
|
|
537
|
+
readonly addChildren: {
|
|
538
|
+
readonly id: string;
|
|
539
|
+
readonly slug?: string | null | undefined;
|
|
540
|
+
readonly name: string;
|
|
541
|
+
readonly documentType: string;
|
|
542
|
+
readonly state: any;
|
|
543
|
+
readonly createdAtUtcIso: string | Date;
|
|
544
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
545
|
+
readonly parentId?: string | null | undefined;
|
|
546
|
+
readonly revisionsList: ReadonlyArray<{
|
|
547
|
+
readonly scope: string;
|
|
548
|
+
readonly revision: number;
|
|
549
|
+
}>;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
export type RemoveChildrenMutationVariables = Exact<{
|
|
553
|
+
parentIdentifier: Scalars["String"]["input"];
|
|
554
|
+
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
555
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
556
|
+
}>;
|
|
557
|
+
export type RemoveChildrenMutation = {
|
|
558
|
+
readonly removeChildren: {
|
|
559
|
+
readonly id: string;
|
|
560
|
+
readonly slug?: string | null | undefined;
|
|
561
|
+
readonly name: string;
|
|
562
|
+
readonly documentType: string;
|
|
563
|
+
readonly state: any;
|
|
564
|
+
readonly createdAtUtcIso: string | Date;
|
|
565
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
566
|
+
readonly parentId?: string | null | undefined;
|
|
567
|
+
readonly revisionsList: ReadonlyArray<{
|
|
568
|
+
readonly scope: string;
|
|
569
|
+
readonly revision: number;
|
|
570
|
+
}>;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
export type MoveChildrenMutationVariables = Exact<{
|
|
574
|
+
sourceParentIdentifier: Scalars["String"]["input"];
|
|
575
|
+
targetParentIdentifier: Scalars["String"]["input"];
|
|
576
|
+
documentIdentifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
577
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
578
|
+
}>;
|
|
579
|
+
export type MoveChildrenMutation = {
|
|
580
|
+
readonly moveChildren: {
|
|
581
|
+
readonly source: {
|
|
582
|
+
readonly id: string;
|
|
583
|
+
readonly slug?: string | null | undefined;
|
|
584
|
+
readonly name: string;
|
|
585
|
+
readonly documentType: string;
|
|
586
|
+
readonly state: any;
|
|
587
|
+
readonly createdAtUtcIso: string | Date;
|
|
588
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
589
|
+
readonly parentId?: string | null | undefined;
|
|
590
|
+
readonly revisionsList: ReadonlyArray<{
|
|
591
|
+
readonly scope: string;
|
|
592
|
+
readonly revision: number;
|
|
593
|
+
}>;
|
|
594
|
+
};
|
|
595
|
+
readonly target: {
|
|
596
|
+
readonly id: string;
|
|
597
|
+
readonly slug?: string | null | undefined;
|
|
598
|
+
readonly name: string;
|
|
599
|
+
readonly documentType: string;
|
|
600
|
+
readonly state: any;
|
|
601
|
+
readonly createdAtUtcIso: string | Date;
|
|
602
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
603
|
+
readonly parentId?: string | null | undefined;
|
|
604
|
+
readonly revisionsList: ReadonlyArray<{
|
|
605
|
+
readonly scope: string;
|
|
606
|
+
readonly revision: number;
|
|
607
|
+
}>;
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
export type DeleteDocumentMutationVariables = Exact<{
|
|
612
|
+
identifier: Scalars["String"]["input"];
|
|
613
|
+
propagate?: InputMaybe<PropagationMode>;
|
|
614
|
+
}>;
|
|
615
|
+
export type DeleteDocumentMutation = {
|
|
616
|
+
readonly deleteDocument: boolean;
|
|
617
|
+
};
|
|
618
|
+
export type DeleteDocumentsMutationVariables = Exact<{
|
|
619
|
+
identifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
620
|
+
propagate?: InputMaybe<PropagationMode>;
|
|
621
|
+
}>;
|
|
622
|
+
export type DeleteDocumentsMutation = {
|
|
623
|
+
readonly deleteDocuments: boolean;
|
|
624
|
+
};
|
|
625
|
+
export type DocumentChangesSubscriptionVariables = Exact<{
|
|
626
|
+
search: SearchFilterInput;
|
|
627
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
628
|
+
}>;
|
|
629
|
+
export type DocumentChangesSubscription = {
|
|
630
|
+
readonly documentChanges: {
|
|
631
|
+
readonly type: DocumentChangeType;
|
|
632
|
+
readonly documents: ReadonlyArray<{
|
|
633
|
+
readonly id: string;
|
|
634
|
+
readonly slug?: string | null | undefined;
|
|
635
|
+
readonly name: string;
|
|
636
|
+
readonly documentType: string;
|
|
637
|
+
readonly state: any;
|
|
638
|
+
readonly createdAtUtcIso: string | Date;
|
|
639
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
640
|
+
readonly parentId?: string | null | undefined;
|
|
641
|
+
readonly revisionsList: ReadonlyArray<{
|
|
642
|
+
readonly scope: string;
|
|
643
|
+
readonly revision: number;
|
|
644
|
+
}>;
|
|
645
|
+
}>;
|
|
646
|
+
readonly context?: {
|
|
647
|
+
readonly parentId?: string | null | undefined;
|
|
648
|
+
readonly childId?: string | null | undefined;
|
|
649
|
+
} | null | undefined;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
export type JobChangesSubscriptionVariables = Exact<{
|
|
653
|
+
jobId: Scalars["String"]["input"];
|
|
654
|
+
}>;
|
|
655
|
+
export type JobChangesSubscription = {
|
|
656
|
+
readonly jobChanges: {
|
|
657
|
+
readonly jobId: string;
|
|
658
|
+
readonly status: string;
|
|
659
|
+
readonly result: any;
|
|
660
|
+
readonly error?: string | null | undefined;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
export type WithIndex<TObject> = TObject & Record<string, any>;
|
|
664
|
+
export type ResolversObject<TObject> = WithIndex<TObject>;
|
|
665
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
666
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
667
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
668
|
+
};
|
|
669
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
670
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
671
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
672
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
673
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
674
|
+
subscribe: SubscriptionSubscribeFn<{
|
|
675
|
+
[key in TKey]: TResult;
|
|
676
|
+
}, TParent, TContext, TArgs>;
|
|
677
|
+
resolve?: SubscriptionResolveFn<TResult, {
|
|
678
|
+
[key in TKey]: TResult;
|
|
679
|
+
}, TContext, TArgs>;
|
|
680
|
+
}
|
|
681
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
682
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
683
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
684
|
+
}
|
|
685
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
686
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
687
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
688
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
689
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
690
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
691
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
692
|
+
export type ResolversTypes = ResolversObject<{
|
|
693
|
+
Action: ResolverTypeWrapper<Action>;
|
|
694
|
+
ActionContext: ResolverTypeWrapper<ActionContext>;
|
|
695
|
+
AttachmentInput: ResolverTypeWrapper<AttachmentInput>;
|
|
696
|
+
Boolean: ResolverTypeWrapper<Scalars["Boolean"]["output"]>;
|
|
697
|
+
DateTime: ResolverTypeWrapper<Scalars["DateTime"]["output"]>;
|
|
698
|
+
DocumentChangeContext: ResolverTypeWrapper<DocumentChangeContext>;
|
|
699
|
+
DocumentChangeEvent: ResolverTypeWrapper<DocumentChangeEvent>;
|
|
700
|
+
DocumentChangeType: DocumentChangeType;
|
|
701
|
+
DocumentModelGlobalState: ResolverTypeWrapper<DocumentModelGlobalState>;
|
|
702
|
+
DocumentModelResultPage: ResolverTypeWrapper<DocumentModelResultPage>;
|
|
703
|
+
DocumentWithChildren: ResolverTypeWrapper<DocumentWithChildren>;
|
|
704
|
+
Int: ResolverTypeWrapper<Scalars["Int"]["output"]>;
|
|
705
|
+
JSONObject: ResolverTypeWrapper<Scalars["JSONObject"]["output"]>;
|
|
706
|
+
JobChangeEvent: ResolverTypeWrapper<JobChangeEvent>;
|
|
707
|
+
JobInfo: ResolverTypeWrapper<JobInfo>;
|
|
708
|
+
MoveChildrenResult: ResolverTypeWrapper<MoveChildrenResult>;
|
|
709
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
710
|
+
PHDocument: ResolverTypeWrapper<PhDocument>;
|
|
711
|
+
PHDocumentResultPage: ResolverTypeWrapper<PhDocumentResultPage>;
|
|
712
|
+
PagingInput: PagingInput;
|
|
713
|
+
PropagationMode: PropagationMode;
|
|
714
|
+
Query: ResolverTypeWrapper<{}>;
|
|
715
|
+
Revision: ResolverTypeWrapper<Revision>;
|
|
716
|
+
SearchFilterInput: SearchFilterInput;
|
|
717
|
+
Signer: ResolverTypeWrapper<Signer>;
|
|
718
|
+
SignerApp: ResolverTypeWrapper<SignerApp>;
|
|
719
|
+
SignerUser: ResolverTypeWrapper<SignerUser>;
|
|
720
|
+
String: ResolverTypeWrapper<Scalars["String"]["output"]>;
|
|
721
|
+
Subscription: ResolverTypeWrapper<{}>;
|
|
722
|
+
ViewFilterInput: ViewFilterInput;
|
|
723
|
+
}>;
|
|
724
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
725
|
+
export type ResolversParentTypes = ResolversObject<{
|
|
726
|
+
Action: Action;
|
|
727
|
+
ActionContext: ActionContext;
|
|
728
|
+
AttachmentInput: AttachmentInput;
|
|
729
|
+
Boolean: Scalars["Boolean"]["output"];
|
|
730
|
+
DateTime: Scalars["DateTime"]["output"];
|
|
731
|
+
DocumentChangeContext: DocumentChangeContext;
|
|
732
|
+
DocumentChangeEvent: DocumentChangeEvent;
|
|
733
|
+
DocumentModelGlobalState: DocumentModelGlobalState;
|
|
734
|
+
DocumentModelResultPage: DocumentModelResultPage;
|
|
735
|
+
DocumentWithChildren: DocumentWithChildren;
|
|
736
|
+
Int: Scalars["Int"]["output"];
|
|
737
|
+
JSONObject: Scalars["JSONObject"]["output"];
|
|
738
|
+
JobChangeEvent: JobChangeEvent;
|
|
739
|
+
JobInfo: JobInfo;
|
|
740
|
+
MoveChildrenResult: MoveChildrenResult;
|
|
741
|
+
Mutation: {};
|
|
742
|
+
PHDocument: PhDocument;
|
|
743
|
+
PHDocumentResultPage: PhDocumentResultPage;
|
|
744
|
+
PagingInput: PagingInput;
|
|
745
|
+
Query: {};
|
|
746
|
+
Revision: Revision;
|
|
747
|
+
SearchFilterInput: SearchFilterInput;
|
|
748
|
+
Signer: Signer;
|
|
749
|
+
SignerApp: SignerApp;
|
|
750
|
+
SignerUser: SignerUser;
|
|
751
|
+
String: Scalars["String"]["output"];
|
|
752
|
+
Subscription: {};
|
|
753
|
+
ViewFilterInput: ViewFilterInput;
|
|
754
|
+
}>;
|
|
755
|
+
export type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
|
|
756
|
+
attachments?: Resolver<Maybe<ReadonlyArray<ResolversTypes["AttachmentInput"]>>, ParentType, ContextType>;
|
|
757
|
+
context?: Resolver<Maybe<ResolversTypes["ActionContext"]>, ParentType, ContextType>;
|
|
758
|
+
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
759
|
+
input?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
760
|
+
scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
761
|
+
timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
762
|
+
type?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
763
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
764
|
+
}>;
|
|
765
|
+
export type ActionContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionContext"] = ResolversParentTypes["ActionContext"]> = ResolversObject<{
|
|
766
|
+
signer?: Resolver<Maybe<ResolversTypes["Signer"]>, ParentType, ContextType>;
|
|
767
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
768
|
+
}>;
|
|
769
|
+
export type AttachmentInputResolvers<ContextType = Context, ParentType extends ResolversParentTypes["AttachmentInput"] = ResolversParentTypes["AttachmentInput"]> = ResolversObject<{
|
|
770
|
+
data?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
771
|
+
extension?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
772
|
+
fileName?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
773
|
+
hash?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
774
|
+
mimeType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
775
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
776
|
+
}>;
|
|
777
|
+
export interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
|
|
778
|
+
name: "DateTime";
|
|
779
|
+
}
|
|
780
|
+
export type DocumentChangeContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeContext"] = ResolversParentTypes["DocumentChangeContext"]> = ResolversObject<{
|
|
781
|
+
childId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
782
|
+
parentId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
783
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
784
|
+
}>;
|
|
785
|
+
export type DocumentChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeEvent"] = ResolversParentTypes["DocumentChangeEvent"]> = ResolversObject<{
|
|
786
|
+
context?: Resolver<Maybe<ResolversTypes["DocumentChangeContext"]>, ParentType, ContextType>;
|
|
787
|
+
documents?: Resolver<ReadonlyArray<ResolversTypes["PHDocument"]>, ParentType, ContextType>;
|
|
788
|
+
type?: Resolver<ResolversTypes["DocumentChangeType"], ParentType, ContextType>;
|
|
789
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
790
|
+
}>;
|
|
791
|
+
export type DocumentModelGlobalStateResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelGlobalState"] = ResolversParentTypes["DocumentModelGlobalState"]> = ResolversObject<{
|
|
792
|
+
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
793
|
+
name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
794
|
+
namespace?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
795
|
+
specification?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
796
|
+
version?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
797
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
798
|
+
}>;
|
|
799
|
+
export type DocumentModelResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelResultPage"] = ResolversParentTypes["DocumentModelResultPage"]> = ResolversObject<{
|
|
800
|
+
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
801
|
+
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
802
|
+
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
803
|
+
items?: Resolver<ReadonlyArray<ResolversTypes["DocumentModelGlobalState"]>, ParentType, ContextType>;
|
|
804
|
+
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
805
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
806
|
+
}>;
|
|
807
|
+
export type DocumentWithChildrenResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentWithChildren"] = ResolversParentTypes["DocumentWithChildren"]> = ResolversObject<{
|
|
808
|
+
childIds?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
809
|
+
document?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
|
|
810
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
811
|
+
}>;
|
|
812
|
+
export interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["JSONObject"], any> {
|
|
813
|
+
name: "JSONObject";
|
|
814
|
+
}
|
|
815
|
+
export type JobChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobChangeEvent"] = ResolversParentTypes["JobChangeEvent"]> = ResolversObject<{
|
|
816
|
+
error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
817
|
+
jobId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
818
|
+
result?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
819
|
+
status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
820
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
821
|
+
}>;
|
|
822
|
+
export type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobInfo"] = ResolversParentTypes["JobInfo"]> = ResolversObject<{
|
|
823
|
+
completedAt?: Resolver<Maybe<ResolversTypes["DateTime"]>, ParentType, ContextType>;
|
|
824
|
+
createdAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
825
|
+
error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
826
|
+
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
827
|
+
result?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
828
|
+
status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
829
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
830
|
+
}>;
|
|
831
|
+
export type MoveChildrenResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["MoveChildrenResult"] = ResolversParentTypes["MoveChildrenResult"]> = ResolversObject<{
|
|
832
|
+
source?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
|
|
833
|
+
target?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
|
|
834
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
835
|
+
}>;
|
|
836
|
+
export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
|
|
837
|
+
addChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationAddChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
|
|
838
|
+
createDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateDocumentArgs, "document">>;
|
|
839
|
+
createEmptyDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateEmptyDocumentArgs, "documentType">>;
|
|
840
|
+
deleteDocument?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationDeleteDocumentArgs, "identifier">>;
|
|
841
|
+
deleteDocuments?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType, RequireFields<MutationDeleteDocumentsArgs, "identifiers">>;
|
|
842
|
+
moveChildren?: Resolver<ResolversTypes["MoveChildrenResult"], ParentType, ContextType, RequireFields<MutationMoveChildrenArgs, "documentIdentifiers" | "sourceParentIdentifier" | "targetParentIdentifier">>;
|
|
843
|
+
mutateDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationMutateDocumentArgs, "actions" | "documentIdentifier">>;
|
|
844
|
+
mutateDocumentAsync?: Resolver<ResolversTypes["String"], ParentType, ContextType, RequireFields<MutationMutateDocumentAsyncArgs, "actions" | "documentIdentifier">>;
|
|
845
|
+
removeChildren?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRemoveChildrenArgs, "documentIdentifiers" | "parentIdentifier">>;
|
|
846
|
+
renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
|
|
847
|
+
}>;
|
|
848
|
+
export type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
|
|
849
|
+
createdAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
850
|
+
documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
851
|
+
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
852
|
+
lastModifiedAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
853
|
+
name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
854
|
+
parentId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
855
|
+
revisionsList?: Resolver<ReadonlyArray<ResolversTypes["Revision"]>, ParentType, ContextType>;
|
|
856
|
+
slug?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
857
|
+
state?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
858
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
859
|
+
}>;
|
|
860
|
+
export type PhDocumentResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocumentResultPage"] = ResolversParentTypes["PHDocumentResultPage"]> = ResolversObject<{
|
|
861
|
+
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
862
|
+
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
863
|
+
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
864
|
+
items?: Resolver<ReadonlyArray<ResolversTypes["PHDocument"]>, ParentType, ContextType>;
|
|
865
|
+
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
866
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
867
|
+
}>;
|
|
868
|
+
export type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
|
|
869
|
+
document?: Resolver<Maybe<ResolversTypes["DocumentWithChildren"]>, ParentType, ContextType, RequireFields<QueryDocumentArgs, "identifier">>;
|
|
870
|
+
documentChildren?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentChildrenArgs, "parentIdentifier">>;
|
|
871
|
+
documentModels?: Resolver<ResolversTypes["DocumentModelResultPage"], ParentType, ContextType, Partial<QueryDocumentModelsArgs>>;
|
|
872
|
+
documentParents?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentParentsArgs, "childIdentifier">>;
|
|
873
|
+
findDocuments?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryFindDocumentsArgs, "search">>;
|
|
874
|
+
jobStatus?: Resolver<Maybe<ResolversTypes["JobInfo"]>, ParentType, ContextType, RequireFields<QueryJobStatusArgs, "jobId">>;
|
|
875
|
+
}>;
|
|
876
|
+
export type RevisionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Revision"] = ResolversParentTypes["Revision"]> = ResolversObject<{
|
|
877
|
+
revision?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
878
|
+
scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
879
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
880
|
+
}>;
|
|
881
|
+
export type SignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Signer"] = ResolversParentTypes["Signer"]> = ResolversObject<{
|
|
882
|
+
app?: Resolver<Maybe<ResolversTypes["SignerApp"]>, ParentType, ContextType>;
|
|
883
|
+
signatures?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
884
|
+
user?: Resolver<Maybe<ResolversTypes["SignerUser"]>, ParentType, ContextType>;
|
|
885
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
886
|
+
}>;
|
|
887
|
+
export type SignerAppResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SignerApp"] = ResolversParentTypes["SignerApp"]> = ResolversObject<{
|
|
888
|
+
key?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
889
|
+
name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
890
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
891
|
+
}>;
|
|
892
|
+
export type SignerUserResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SignerUser"] = ResolversParentTypes["SignerUser"]> = ResolversObject<{
|
|
893
|
+
address?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
894
|
+
chainId?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
895
|
+
networkId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
896
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
897
|
+
}>;
|
|
898
|
+
export type SubscriptionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Subscription"] = ResolversParentTypes["Subscription"]> = ResolversObject<{
|
|
899
|
+
documentChanges?: SubscriptionResolver<ResolversTypes["DocumentChangeEvent"], "documentChanges", ParentType, ContextType, RequireFields<SubscriptionDocumentChangesArgs, "search">>;
|
|
900
|
+
jobChanges?: SubscriptionResolver<ResolversTypes["JobChangeEvent"], "jobChanges", ParentType, ContextType, RequireFields<SubscriptionJobChangesArgs, "jobId">>;
|
|
901
|
+
}>;
|
|
902
|
+
export type Resolvers<ContextType = Context> = ResolversObject<{
|
|
903
|
+
Action?: ActionResolvers<ContextType>;
|
|
904
|
+
ActionContext?: ActionContextResolvers<ContextType>;
|
|
905
|
+
AttachmentInput?: AttachmentInputResolvers<ContextType>;
|
|
906
|
+
DateTime?: GraphQLScalarType;
|
|
907
|
+
DocumentChangeContext?: DocumentChangeContextResolvers<ContextType>;
|
|
908
|
+
DocumentChangeEvent?: DocumentChangeEventResolvers<ContextType>;
|
|
909
|
+
DocumentModelGlobalState?: DocumentModelGlobalStateResolvers<ContextType>;
|
|
910
|
+
DocumentModelResultPage?: DocumentModelResultPageResolvers<ContextType>;
|
|
911
|
+
DocumentWithChildren?: DocumentWithChildrenResolvers<ContextType>;
|
|
912
|
+
JSONObject?: GraphQLScalarType;
|
|
913
|
+
JobChangeEvent?: JobChangeEventResolvers<ContextType>;
|
|
914
|
+
JobInfo?: JobInfoResolvers<ContextType>;
|
|
915
|
+
MoveChildrenResult?: MoveChildrenResultResolvers<ContextType>;
|
|
916
|
+
Mutation?: MutationResolvers<ContextType>;
|
|
917
|
+
PHDocument?: PhDocumentResolvers<ContextType>;
|
|
918
|
+
PHDocumentResultPage?: PhDocumentResultPageResolvers<ContextType>;
|
|
919
|
+
Query?: QueryResolvers<ContextType>;
|
|
920
|
+
Revision?: RevisionResolvers<ContextType>;
|
|
921
|
+
Signer?: SignerResolvers<ContextType>;
|
|
922
|
+
SignerApp?: SignerAppResolvers<ContextType>;
|
|
923
|
+
SignerUser?: SignerUserResolvers<ContextType>;
|
|
924
|
+
Subscription?: SubscriptionResolvers<ContextType>;
|
|
925
|
+
}>;
|
|
926
|
+
type Properties<T> = Required<{
|
|
927
|
+
[K in keyof T]: z.ZodType<T[K], any, T[K]>;
|
|
928
|
+
}>;
|
|
929
|
+
type definedNonNullAny = {};
|
|
930
|
+
export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
931
|
+
export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, definedNonNullAny, any>;
|
|
932
|
+
export declare const DocumentChangeTypeSchema: z.ZodNativeEnum<typeof DocumentChangeType>;
|
|
933
|
+
export declare const PropagationModeSchema: z.ZodNativeEnum<typeof PropagationMode>;
|
|
934
|
+
export declare function PagingInputSchema(): z.ZodObject<Properties<PagingInput>>;
|
|
935
|
+
export declare function SearchFilterInputSchema(): z.ZodObject<Properties<SearchFilterInput>>;
|
|
936
|
+
export declare function ViewFilterInputSchema(): z.ZodObject<Properties<ViewFilterInput>>;
|
|
937
|
+
export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
|
|
938
|
+
export declare const GetDocumentModelsDocument: DocumentNode;
|
|
939
|
+
export declare const GetDocumentDocument: DocumentNode;
|
|
940
|
+
export declare const GetDocumentChildrenDocument: DocumentNode;
|
|
941
|
+
export declare const GetDocumentParentsDocument: DocumentNode;
|
|
942
|
+
export declare const FindDocumentsDocument: DocumentNode;
|
|
943
|
+
export declare const GetJobStatusDocument: DocumentNode;
|
|
944
|
+
export declare const CreateDocumentDocument: DocumentNode;
|
|
945
|
+
export declare const CreateEmptyDocumentDocument: DocumentNode;
|
|
946
|
+
export declare const MutateDocumentDocument: DocumentNode;
|
|
947
|
+
export declare const MutateDocumentAsyncDocument: DocumentNode;
|
|
948
|
+
export declare const RenameDocumentDocument: DocumentNode;
|
|
949
|
+
export declare const AddChildrenDocument: DocumentNode;
|
|
950
|
+
export declare const RemoveChildrenDocument: DocumentNode;
|
|
951
|
+
export declare const MoveChildrenDocument: DocumentNode;
|
|
952
|
+
export declare const DeleteDocumentDocument: DocumentNode;
|
|
953
|
+
export declare const DeleteDocumentsDocument: DocumentNode;
|
|
954
|
+
export declare const DocumentChangesDocument: DocumentNode;
|
|
955
|
+
export declare const JobChangesDocument: DocumentNode;
|
|
956
|
+
export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
|
957
|
+
export declare function getSdk<C>(requester: Requester<C>): {
|
|
958
|
+
GetDocumentModels(variables?: GetDocumentModelsQueryVariables, options?: C): Promise<GetDocumentModelsQuery>;
|
|
959
|
+
GetDocument(variables: GetDocumentQueryVariables, options?: C): Promise<GetDocumentQuery>;
|
|
960
|
+
GetDocumentChildren(variables: GetDocumentChildrenQueryVariables, options?: C): Promise<GetDocumentChildrenQuery>;
|
|
961
|
+
GetDocumentParents(variables: GetDocumentParentsQueryVariables, options?: C): Promise<GetDocumentParentsQuery>;
|
|
962
|
+
FindDocuments(variables: FindDocumentsQueryVariables, options?: C): Promise<FindDocumentsQuery>;
|
|
963
|
+
GetJobStatus(variables: GetJobStatusQueryVariables, options?: C): Promise<GetJobStatusQuery>;
|
|
964
|
+
CreateDocument(variables: CreateDocumentMutationVariables, options?: C): Promise<CreateDocumentMutation>;
|
|
965
|
+
CreateEmptyDocument(variables: CreateEmptyDocumentMutationVariables, options?: C): Promise<CreateEmptyDocumentMutation>;
|
|
966
|
+
MutateDocument(variables: MutateDocumentMutationVariables, options?: C): Promise<MutateDocumentMutation>;
|
|
967
|
+
MutateDocumentAsync(variables: MutateDocumentAsyncMutationVariables, options?: C): Promise<MutateDocumentAsyncMutation>;
|
|
968
|
+
RenameDocument(variables: RenameDocumentMutationVariables, options?: C): Promise<RenameDocumentMutation>;
|
|
969
|
+
AddChildren(variables: AddChildrenMutationVariables, options?: C): Promise<AddChildrenMutation>;
|
|
970
|
+
RemoveChildren(variables: RemoveChildrenMutationVariables, options?: C): Promise<RemoveChildrenMutation>;
|
|
971
|
+
MoveChildren(variables: MoveChildrenMutationVariables, options?: C): Promise<MoveChildrenMutation>;
|
|
972
|
+
DeleteDocument(variables: DeleteDocumentMutationVariables, options?: C): Promise<DeleteDocumentMutation>;
|
|
973
|
+
DeleteDocuments(variables: DeleteDocumentsMutationVariables, options?: C): Promise<DeleteDocumentsMutation>;
|
|
974
|
+
DocumentChanges(variables: DocumentChangesSubscriptionVariables, options?: C): AsyncIterable<DocumentChangesSubscription>;
|
|
975
|
+
JobChanges(variables: JobChangesSubscriptionVariables, options?: C): AsyncIterable<JobChangesSubscription>;
|
|
976
|
+
};
|
|
977
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
978
|
+
export {};
|
|
979
|
+
//# sourceMappingURL=graphql.d.ts.map
|