@powerhousedao/reactor-api 4.1.0-dev.55 → 4.1.0-dev.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/graphql/base/index.d.ts +2 -0
- package/dist/src/graphql/base/index.d.ts.map +1 -1
- package/dist/src/graphql/base/index.js +2 -0
- package/dist/src/graphql/base/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 +90 -0
- package/dist/src/graphql/reactor/adapters.js.map +1 -0
- package/dist/src/graphql/reactor/factory.d.ts.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.d.ts +102 -48
- package/dist/src/graphql/reactor/gen/graphql.d.ts.map +1 -1
- package/dist/src/graphql/reactor/gen/graphql.js +6 -3
- package/dist/src/graphql/reactor/gen/graphql.js.map +1 -1
- 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.map +1 -1
- package/dist/src/graphql/reactor/subgraph.js +54 -24
- package/dist/src/graphql/reactor/subgraph.js.map +1 -1
- package/dist/src/utils/create-schema.js +4 -4
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GraphQLManager } from "#graphql/graphql-manager.js";
|
|
2
2
|
import type { ISubgraph, SubgraphArgs } from "#graphql/types.js";
|
|
3
|
+
import type { IReactorClient } from "@powerhousedao/reactor";
|
|
3
4
|
import type { IDocumentDriveServer } from "document-drive";
|
|
4
5
|
import type { IRelationalDb } from "document-drive/processors/types";
|
|
5
6
|
import type { DocumentNode } from "graphql";
|
|
@@ -9,6 +10,7 @@ export declare class Subgraph implements ISubgraph {
|
|
|
9
10
|
resolvers: Record<string, any>;
|
|
10
11
|
typeDefs: DocumentNode;
|
|
11
12
|
reactor: IDocumentDriveServer;
|
|
13
|
+
reactorClient: IReactorClient;
|
|
12
14
|
graphqlManager: GraphQLManager;
|
|
13
15
|
relationalDb: IRelationalDb;
|
|
14
16
|
constructor(args: SubgraphArgs);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graphql/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,qBAAa,QAAS,YAAW,SAAS;IACxC,IAAI,SAAa;IACjB,IAAI,SAAM;IACV,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI5B;IACF,QAAQ,EAAE,YAAY,CAIpB;IACF,OAAO,EAAE,oBAAoB,CAAC;IAC9B,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,aAAa,CAAC;gBAEhB,IAAI,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graphql/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,qBAAa,QAAS,YAAW,SAAS;IACxC,IAAI,SAAa;IACjB,IAAI,SAAM;IACV,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI5B;IACF,QAAQ,EAAE,YAAY,CAIpB;IACF,OAAO,EAAE,oBAAoB,CAAC;IAC9B,aAAa,EAAE,cAAc,CAAC;IAC9B,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,aAAa,CAAC;gBAEhB,IAAI,EAAE,YAAY;IAQxB,OAAO;CAGd"}
|
|
@@ -13,10 +13,12 @@ export class Subgraph {
|
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
15
|
reactor;
|
|
16
|
+
reactorClient;
|
|
16
17
|
graphqlManager;
|
|
17
18
|
relationalDb;
|
|
18
19
|
constructor(args) {
|
|
19
20
|
this.reactor = args.reactor;
|
|
21
|
+
this.reactorClient = args.reactorClient;
|
|
20
22
|
this.graphqlManager = args.graphqlManager;
|
|
21
23
|
this.relationalDb = args.relationalDb;
|
|
22
24
|
this.path = args.path ?? "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/graphql/base/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/graphql/base/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,MAAM,OAAO,QAAQ;IACnB,IAAI,GAAG,SAAS,CAAC;IACjB,IAAI,GAAG,EAAE,CAAC;IACV,SAAS,GAAwB;QAC/B,KAAK,EAAE;YACL,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI;SACvB;KACF,CAAC;IACF,QAAQ,GAAiB,GAAG,CAAA;;;;GAI3B,CAAC;IACF,OAAO,CAAuB;IAC9B,aAAa,CAAiB;IAC9B,cAAc,CAAiB;IAC/B,YAAY,CAAgB;IAE5B,YAAY,IAAkB;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACxC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,OAAO;QACX,OAAO;IACT,CAAC;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { JobInfo as ClientJobInfo, PagedResults } from "@powerhousedao/reactor";
|
|
2
|
+
import type { DocumentModelState, PHDocument } from "document-model";
|
|
3
|
+
import type { DocumentModelResultPage, JobInfo as GqlJobInfo, PhDocument, PhDocumentResultPage } from "./gen/graphql.js";
|
|
4
|
+
/**
|
|
5
|
+
* Converts a PagedResults from ReactorClient to the GraphQL DocumentModelResultPage format
|
|
6
|
+
*/
|
|
7
|
+
export declare function toDocumentModelResultPage(result: PagedResults<DocumentModelState>): DocumentModelResultPage;
|
|
8
|
+
/**
|
|
9
|
+
* Converts a PagedResults of PHDocument to GraphQL PhDocumentResultPage format
|
|
10
|
+
*/
|
|
11
|
+
export declare function toPhDocumentResultPage(result: PagedResults<PHDocument>): PhDocumentResultPage;
|
|
12
|
+
/**
|
|
13
|
+
* Converts a PHDocument from ReactorClient to GraphQL PhDocument format
|
|
14
|
+
*/
|
|
15
|
+
export declare function toGqlPhDocument(doc: PHDocument): PhDocument;
|
|
16
|
+
/**
|
|
17
|
+
* Converts JobInfo from ReactorClient to GraphQL format
|
|
18
|
+
*/
|
|
19
|
+
export declare function toGqlJobInfo(job: ClientJobInfo): GqlJobInfo;
|
|
20
|
+
/**
|
|
21
|
+
* Handles nullable/undefined conversion for GraphQL InputMaybe types
|
|
22
|
+
*/
|
|
23
|
+
export declare function fromInputMaybe<T>(value: T | null | undefined): T | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Converts readonly arrays to mutable arrays for ReactorClient
|
|
26
|
+
*/
|
|
27
|
+
export declare function toMutableArray<T>(arr: readonly T[] | undefined): T[] | undefined;
|
|
28
|
+
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/adapters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,IAAI,aAAa,EACxB,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EACV,uBAAuB,EAEvB,OAAO,IAAI,UAAU,EACrB,UAAU,EACV,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,YAAY,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CAQzB;AA4BD;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,YAAY,CAAC,UAAU,CAAC,GAC/B,oBAAoB,CAQtB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,CAkB3D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,aAAa,GAAG,UAAU,CAU3D;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CAE5E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAC5B,CAAC,EAAE,GAAG,SAAS,CAEjB"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a PagedResults from ReactorClient to the GraphQL DocumentModelResultPage format
|
|
3
|
+
*/
|
|
4
|
+
export function toDocumentModelResultPage(result) {
|
|
5
|
+
return {
|
|
6
|
+
cursor: result.options.cursor || null,
|
|
7
|
+
hasNextPage: false,
|
|
8
|
+
hasPreviousPage: false,
|
|
9
|
+
items: result.results.map(toGqlDocumentModelState),
|
|
10
|
+
totalCount: result.results.length,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Gets the namespace from a DocumentModelState
|
|
15
|
+
*/
|
|
16
|
+
function getNamespace(model) {
|
|
17
|
+
return model.name.split("/")[0];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Converts a DocumentModelState from ReactorClient to GraphQL format
|
|
21
|
+
*/
|
|
22
|
+
function toGqlDocumentModelState(model) {
|
|
23
|
+
const specification = model.specifications.length > 0 ? model.specifications[0] : null;
|
|
24
|
+
const namespace = getNamespace(model);
|
|
25
|
+
return {
|
|
26
|
+
id: model.id,
|
|
27
|
+
name: model.name,
|
|
28
|
+
namespace,
|
|
29
|
+
specification,
|
|
30
|
+
version: null,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Converts a PagedResults of PHDocument to GraphQL PhDocumentResultPage format
|
|
35
|
+
*/
|
|
36
|
+
export function toPhDocumentResultPage(result) {
|
|
37
|
+
return {
|
|
38
|
+
cursor: result.options.cursor || null,
|
|
39
|
+
hasNextPage: false,
|
|
40
|
+
hasPreviousPage: false,
|
|
41
|
+
items: result.results.map(toGqlPhDocument),
|
|
42
|
+
totalCount: result.results.length,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Converts a PHDocument from ReactorClient to GraphQL PhDocument format
|
|
47
|
+
*/
|
|
48
|
+
export function toGqlPhDocument(doc) {
|
|
49
|
+
const revisionsList = Object.entries(doc.header.revision).map(([scope, revision]) => ({
|
|
50
|
+
scope,
|
|
51
|
+
revision,
|
|
52
|
+
}));
|
|
53
|
+
return {
|
|
54
|
+
id: doc.header.id,
|
|
55
|
+
name: doc.header.name,
|
|
56
|
+
documentType: doc.header.documentType,
|
|
57
|
+
slug: doc.header.slug,
|
|
58
|
+
createdAtUtcIso: doc.header.createdAtUtcIso,
|
|
59
|
+
lastModifiedAtUtcIso: doc.header.lastModifiedAtUtcIso,
|
|
60
|
+
revisionsList,
|
|
61
|
+
state: doc.state,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Converts JobInfo from ReactorClient to GraphQL format
|
|
66
|
+
*/
|
|
67
|
+
export function toGqlJobInfo(job) {
|
|
68
|
+
return {
|
|
69
|
+
id: job.id,
|
|
70
|
+
status: job.status,
|
|
71
|
+
createdAt: job.createdAtUtcIso,
|
|
72
|
+
completedAt: job.completedAtUtcIso ?? null,
|
|
73
|
+
error: job.error ?? null,
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
75
|
+
result: job.result ?? null,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Handles nullable/undefined conversion for GraphQL InputMaybe types
|
|
80
|
+
*/
|
|
81
|
+
export function fromInputMaybe(value) {
|
|
82
|
+
return value === null ? undefined : value;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Converts readonly arrays to mutable arrays for ReactorClient
|
|
86
|
+
*/
|
|
87
|
+
export function toMutableArray(arr) {
|
|
88
|
+
return arr ? [...arr] : undefined;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=adapters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.js","sourceRoot":"","sources":["../../../../src/graphql/reactor/adapters.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,UAAU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
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/graphql/reactor/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;0DAK03T,4CAAiB;;;;oBAAgmB,4CAAkB;;;;0BAA8yB,4CAAkB;;;;;yBAAw3B,4CAAkB;;;;;;;;;;eAAgtD,4CAAkB;;;kBAA0c,gDAAsB;iEAA2C,4CAAiB;;;sBAA4kB,4CAAkB;iEAA2C,4CAAiB;;;4BAAulB,4CAAkB;+BAA0C,gDAAqB,aAAgB,gDAAsB;;;;4BAAunB,4CAAkB;+BAA0C,gDAAqB,aAAgB,gDAAsB;;;;4BAAyN,4CAAkB;cAAkB,4CAAkB;;;;0BAA6mB,4CAAkB;2CAAsD,4CAAiB,aAAgB,4CAAkB;;;;0BAA0mB,4CAAkB;2CAAsD,4CAAiB,aAAgB,4CAAkB;;;;gCAAonB,4CAAkB;gCAAoC,4CAAkB;2CAAsD,4CAAiB,aAAgB,4CAAkB;;;;oBAAsnC,4CAAkB;;;;mCAAiO,4CAAiB,aAAgB,4CAAkB;;;;;;;;eAA4mC,4CAAkB;;EADvlrB"}
|
|
@@ -190,13 +190,13 @@ export type MutationRenameDocumentArgs = {
|
|
|
190
190
|
view?: InputMaybe<ViewFilterInput>;
|
|
191
191
|
};
|
|
192
192
|
export type PhDocument = {
|
|
193
|
-
readonly
|
|
193
|
+
readonly createdAtUtcIso: Scalars["DateTime"]["output"];
|
|
194
194
|
readonly documentType: Scalars["String"]["output"];
|
|
195
195
|
readonly id: Scalars["String"]["output"];
|
|
196
|
-
readonly
|
|
196
|
+
readonly lastModifiedAtUtcIso: Scalars["DateTime"]["output"];
|
|
197
197
|
readonly name: Scalars["String"]["output"];
|
|
198
198
|
readonly parentId?: Maybe<Scalars["String"]["output"]>;
|
|
199
|
-
readonly
|
|
199
|
+
readonly revisionsList: ReadonlyArray<Revision>;
|
|
200
200
|
readonly slug?: Maybe<Scalars["String"]["output"]>;
|
|
201
201
|
readonly state: Scalars["JSONObject"]["output"];
|
|
202
202
|
};
|
|
@@ -250,6 +250,10 @@ export type QueryFindDocumentsArgs = {
|
|
|
250
250
|
export type QueryJobStatusArgs = {
|
|
251
251
|
jobId: Scalars["String"]["input"];
|
|
252
252
|
};
|
|
253
|
+
export type Revision = {
|
|
254
|
+
readonly revision: Scalars["Int"]["output"];
|
|
255
|
+
readonly scope: Scalars["String"]["output"];
|
|
256
|
+
};
|
|
253
257
|
export type SearchFilterInput = {
|
|
254
258
|
readonly identifiers?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
255
259
|
readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -290,10 +294,13 @@ export type PhDocumentFieldsFragment = {
|
|
|
290
294
|
readonly name: string;
|
|
291
295
|
readonly documentType: string;
|
|
292
296
|
readonly state: any;
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
readonly lastModified: string | Date;
|
|
297
|
+
readonly createdAtUtcIso: string | Date;
|
|
298
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
296
299
|
readonly parentId?: string | null | undefined;
|
|
300
|
+
readonly revisionsList: ReadonlyArray<{
|
|
301
|
+
readonly scope: string;
|
|
302
|
+
readonly revision: number;
|
|
303
|
+
}>;
|
|
297
304
|
};
|
|
298
305
|
export type GetDocumentModelsQueryVariables = Exact<{
|
|
299
306
|
namespace?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -327,10 +334,13 @@ export type GetDocumentQuery = {
|
|
|
327
334
|
readonly name: string;
|
|
328
335
|
readonly documentType: string;
|
|
329
336
|
readonly state: any;
|
|
330
|
-
readonly
|
|
331
|
-
readonly
|
|
332
|
-
readonly lastModified: string | Date;
|
|
337
|
+
readonly createdAtUtcIso: string | Date;
|
|
338
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
333
339
|
readonly parentId?: string | null | undefined;
|
|
340
|
+
readonly revisionsList: ReadonlyArray<{
|
|
341
|
+
readonly scope: string;
|
|
342
|
+
readonly revision: number;
|
|
343
|
+
}>;
|
|
334
344
|
};
|
|
335
345
|
} | null | undefined;
|
|
336
346
|
};
|
|
@@ -351,10 +361,13 @@ export type GetDocumentChildrenQuery = {
|
|
|
351
361
|
readonly name: string;
|
|
352
362
|
readonly documentType: string;
|
|
353
363
|
readonly state: any;
|
|
354
|
-
readonly
|
|
355
|
-
readonly
|
|
356
|
-
readonly lastModified: string | Date;
|
|
364
|
+
readonly createdAtUtcIso: string | Date;
|
|
365
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
357
366
|
readonly parentId?: string | null | undefined;
|
|
367
|
+
readonly revisionsList: ReadonlyArray<{
|
|
368
|
+
readonly scope: string;
|
|
369
|
+
readonly revision: number;
|
|
370
|
+
}>;
|
|
358
371
|
}>;
|
|
359
372
|
};
|
|
360
373
|
};
|
|
@@ -375,10 +388,13 @@ export type GetDocumentParentsQuery = {
|
|
|
375
388
|
readonly name: string;
|
|
376
389
|
readonly documentType: string;
|
|
377
390
|
readonly state: any;
|
|
378
|
-
readonly
|
|
379
|
-
readonly
|
|
380
|
-
readonly lastModified: string | Date;
|
|
391
|
+
readonly createdAtUtcIso: string | Date;
|
|
392
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
381
393
|
readonly parentId?: string | null | undefined;
|
|
394
|
+
readonly revisionsList: ReadonlyArray<{
|
|
395
|
+
readonly scope: string;
|
|
396
|
+
readonly revision: number;
|
|
397
|
+
}>;
|
|
382
398
|
}>;
|
|
383
399
|
};
|
|
384
400
|
};
|
|
@@ -399,10 +415,13 @@ export type FindDocumentsQuery = {
|
|
|
399
415
|
readonly name: string;
|
|
400
416
|
readonly documentType: string;
|
|
401
417
|
readonly state: any;
|
|
402
|
-
readonly
|
|
403
|
-
readonly
|
|
404
|
-
readonly lastModified: string | Date;
|
|
418
|
+
readonly createdAtUtcIso: string | Date;
|
|
419
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
405
420
|
readonly parentId?: string | null | undefined;
|
|
421
|
+
readonly revisionsList: ReadonlyArray<{
|
|
422
|
+
readonly scope: string;
|
|
423
|
+
readonly revision: number;
|
|
424
|
+
}>;
|
|
406
425
|
}>;
|
|
407
426
|
};
|
|
408
427
|
};
|
|
@@ -430,10 +449,13 @@ export type CreateDocumentMutation = {
|
|
|
430
449
|
readonly name: string;
|
|
431
450
|
readonly documentType: string;
|
|
432
451
|
readonly state: any;
|
|
433
|
-
readonly
|
|
434
|
-
readonly
|
|
435
|
-
readonly lastModified: string | Date;
|
|
452
|
+
readonly createdAtUtcIso: string | Date;
|
|
453
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
436
454
|
readonly parentId?: string | null | undefined;
|
|
455
|
+
readonly revisionsList: ReadonlyArray<{
|
|
456
|
+
readonly scope: string;
|
|
457
|
+
readonly revision: number;
|
|
458
|
+
}>;
|
|
437
459
|
};
|
|
438
460
|
};
|
|
439
461
|
export type CreateEmptyDocumentMutationVariables = Exact<{
|
|
@@ -447,10 +469,13 @@ export type CreateEmptyDocumentMutation = {
|
|
|
447
469
|
readonly name: string;
|
|
448
470
|
readonly documentType: string;
|
|
449
471
|
readonly state: any;
|
|
450
|
-
readonly
|
|
451
|
-
readonly
|
|
452
|
-
readonly lastModified: string | Date;
|
|
472
|
+
readonly createdAtUtcIso: string | Date;
|
|
473
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
453
474
|
readonly parentId?: string | null | undefined;
|
|
475
|
+
readonly revisionsList: ReadonlyArray<{
|
|
476
|
+
readonly scope: string;
|
|
477
|
+
readonly revision: number;
|
|
478
|
+
}>;
|
|
454
479
|
};
|
|
455
480
|
};
|
|
456
481
|
export type MutateDocumentMutationVariables = Exact<{
|
|
@@ -465,10 +490,13 @@ export type MutateDocumentMutation = {
|
|
|
465
490
|
readonly name: string;
|
|
466
491
|
readonly documentType: string;
|
|
467
492
|
readonly state: any;
|
|
468
|
-
readonly
|
|
469
|
-
readonly
|
|
470
|
-
readonly lastModified: string | Date;
|
|
493
|
+
readonly createdAtUtcIso: string | Date;
|
|
494
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
471
495
|
readonly parentId?: string | null | undefined;
|
|
496
|
+
readonly revisionsList: ReadonlyArray<{
|
|
497
|
+
readonly scope: string;
|
|
498
|
+
readonly revision: number;
|
|
499
|
+
}>;
|
|
472
500
|
};
|
|
473
501
|
};
|
|
474
502
|
export type MutateDocumentAsyncMutationVariables = Exact<{
|
|
@@ -491,10 +519,13 @@ export type RenameDocumentMutation = {
|
|
|
491
519
|
readonly name: string;
|
|
492
520
|
readonly documentType: string;
|
|
493
521
|
readonly state: any;
|
|
494
|
-
readonly
|
|
495
|
-
readonly
|
|
496
|
-
readonly lastModified: string | Date;
|
|
522
|
+
readonly createdAtUtcIso: string | Date;
|
|
523
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
497
524
|
readonly parentId?: string | null | undefined;
|
|
525
|
+
readonly revisionsList: ReadonlyArray<{
|
|
526
|
+
readonly scope: string;
|
|
527
|
+
readonly revision: number;
|
|
528
|
+
}>;
|
|
498
529
|
};
|
|
499
530
|
};
|
|
500
531
|
export type AddChildrenMutationVariables = Exact<{
|
|
@@ -509,10 +540,13 @@ export type AddChildrenMutation = {
|
|
|
509
540
|
readonly name: string;
|
|
510
541
|
readonly documentType: string;
|
|
511
542
|
readonly state: any;
|
|
512
|
-
readonly
|
|
513
|
-
readonly
|
|
514
|
-
readonly lastModified: string | Date;
|
|
543
|
+
readonly createdAtUtcIso: string | Date;
|
|
544
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
515
545
|
readonly parentId?: string | null | undefined;
|
|
546
|
+
readonly revisionsList: ReadonlyArray<{
|
|
547
|
+
readonly scope: string;
|
|
548
|
+
readonly revision: number;
|
|
549
|
+
}>;
|
|
516
550
|
};
|
|
517
551
|
};
|
|
518
552
|
export type RemoveChildrenMutationVariables = Exact<{
|
|
@@ -527,10 +561,13 @@ export type RemoveChildrenMutation = {
|
|
|
527
561
|
readonly name: string;
|
|
528
562
|
readonly documentType: string;
|
|
529
563
|
readonly state: any;
|
|
530
|
-
readonly
|
|
531
|
-
readonly
|
|
532
|
-
readonly lastModified: string | Date;
|
|
564
|
+
readonly createdAtUtcIso: string | Date;
|
|
565
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
533
566
|
readonly parentId?: string | null | undefined;
|
|
567
|
+
readonly revisionsList: ReadonlyArray<{
|
|
568
|
+
readonly scope: string;
|
|
569
|
+
readonly revision: number;
|
|
570
|
+
}>;
|
|
534
571
|
};
|
|
535
572
|
};
|
|
536
573
|
export type MoveChildrenMutationVariables = Exact<{
|
|
@@ -547,10 +584,13 @@ export type MoveChildrenMutation = {
|
|
|
547
584
|
readonly name: string;
|
|
548
585
|
readonly documentType: string;
|
|
549
586
|
readonly state: any;
|
|
550
|
-
readonly
|
|
551
|
-
readonly
|
|
552
|
-
readonly lastModified: string | Date;
|
|
587
|
+
readonly createdAtUtcIso: string | Date;
|
|
588
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
553
589
|
readonly parentId?: string | null | undefined;
|
|
590
|
+
readonly revisionsList: ReadonlyArray<{
|
|
591
|
+
readonly scope: string;
|
|
592
|
+
readonly revision: number;
|
|
593
|
+
}>;
|
|
554
594
|
};
|
|
555
595
|
readonly target: {
|
|
556
596
|
readonly id: string;
|
|
@@ -558,10 +598,13 @@ export type MoveChildrenMutation = {
|
|
|
558
598
|
readonly name: string;
|
|
559
599
|
readonly documentType: string;
|
|
560
600
|
readonly state: any;
|
|
561
|
-
readonly
|
|
562
|
-
readonly
|
|
563
|
-
readonly lastModified: string | Date;
|
|
601
|
+
readonly createdAtUtcIso: string | Date;
|
|
602
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
564
603
|
readonly parentId?: string | null | undefined;
|
|
604
|
+
readonly revisionsList: ReadonlyArray<{
|
|
605
|
+
readonly scope: string;
|
|
606
|
+
readonly revision: number;
|
|
607
|
+
}>;
|
|
565
608
|
};
|
|
566
609
|
};
|
|
567
610
|
};
|
|
@@ -592,10 +635,13 @@ export type DocumentChangesSubscription = {
|
|
|
592
635
|
readonly name: string;
|
|
593
636
|
readonly documentType: string;
|
|
594
637
|
readonly state: any;
|
|
595
|
-
readonly
|
|
596
|
-
readonly
|
|
597
|
-
readonly lastModified: string | Date;
|
|
638
|
+
readonly createdAtUtcIso: string | Date;
|
|
639
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
598
640
|
readonly parentId?: string | null | undefined;
|
|
641
|
+
readonly revisionsList: ReadonlyArray<{
|
|
642
|
+
readonly scope: string;
|
|
643
|
+
readonly revision: number;
|
|
644
|
+
}>;
|
|
599
645
|
}>;
|
|
600
646
|
readonly context?: {
|
|
601
647
|
readonly parentId?: string | null | undefined;
|
|
@@ -666,6 +712,7 @@ export type ResolversTypes = ResolversObject<{
|
|
|
666
712
|
PagingInput: PagingInput;
|
|
667
713
|
PropagationMode: PropagationMode;
|
|
668
714
|
Query: ResolverTypeWrapper<{}>;
|
|
715
|
+
Revision: ResolverTypeWrapper<Revision>;
|
|
669
716
|
SearchFilterInput: SearchFilterInput;
|
|
670
717
|
Signer: ResolverTypeWrapper<Signer>;
|
|
671
718
|
SignerApp: ResolverTypeWrapper<SignerApp>;
|
|
@@ -696,6 +743,7 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
696
743
|
PHDocumentResultPage: PhDocumentResultPage;
|
|
697
744
|
PagingInput: PagingInput;
|
|
698
745
|
Query: {};
|
|
746
|
+
Revision: Revision;
|
|
699
747
|
SearchFilterInput: SearchFilterInput;
|
|
700
748
|
Signer: Signer;
|
|
701
749
|
SignerApp: SignerApp;
|
|
@@ -798,13 +846,13 @@ export type MutationResolvers<ContextType = Context, ParentType extends Resolver
|
|
|
798
846
|
renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
|
|
799
847
|
}>;
|
|
800
848
|
export type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
|
|
801
|
-
|
|
849
|
+
createdAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
802
850
|
documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
803
851
|
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
804
|
-
|
|
852
|
+
lastModifiedAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
805
853
|
name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
806
854
|
parentId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
807
|
-
|
|
855
|
+
revisionsList?: Resolver<ReadonlyArray<ResolversTypes["Revision"]>, ParentType, ContextType>;
|
|
808
856
|
slug?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
809
857
|
state?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
810
858
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -825,6 +873,11 @@ export type QueryResolvers<ContextType = Context, ParentType extends ResolversPa
|
|
|
825
873
|
findDocuments?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryFindDocumentsArgs, "search">>;
|
|
826
874
|
jobStatus?: Resolver<Maybe<ResolversTypes["JobInfo"]>, ParentType, ContextType, RequireFields<QueryJobStatusArgs, "jobId">>;
|
|
827
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
|
+
}>;
|
|
828
881
|
export type SignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Signer"] = ResolversParentTypes["Signer"]> = ResolversObject<{
|
|
829
882
|
app?: Resolver<Maybe<ResolversTypes["SignerApp"]>, ParentType, ContextType>;
|
|
830
883
|
signatures?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
@@ -864,6 +917,7 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
|
|
|
864
917
|
PHDocument?: PhDocumentResolvers<ContextType>;
|
|
865
918
|
PHDocumentResultPage?: PhDocumentResultPageResolvers<ContextType>;
|
|
866
919
|
Query?: QueryResolvers<ContextType>;
|
|
920
|
+
Revision?: RevisionResolvers<ContextType>;
|
|
867
921
|
Signer?: SignerResolvers<ContextType>;
|
|
868
922
|
SignerApp?: SignerAppResolvers<ContextType>;
|
|
869
923
|
SignerUser?: SignerUserResolvers<ContextType>;
|