@powerhousedao/vetra 5.1.0 → 5.2.0-dev.1
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/document-models/app-module/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/app-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/actions.js +1 -1
- package/dist/document-models/app-module/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/app-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/operations.js +0 -2
- package/dist/document-models/app-module/gen/dnd-operations/actions.d.ts +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/actions.js +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/operations.d.ts +2 -2
- package/dist/document-models/app-module/gen/dnd-operations/operations.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/operations.js +0 -2
- package/dist/document-models/app-module/gen/document-model.js +2 -2
- package/dist/document-models/app-module/gen/document-schema.d.ts +24 -170
- package/dist/document-models/app-module/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/reducer.js +12 -6
- package/dist/document-models/app-module/gen/schema/types.d.ts +15 -3
- package/dist/document-models/app-module/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/schema/zod.d.ts +7 -4
- package/dist/document-models/app-module/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/schema/zod.js +2 -2
- package/dist/document-models/app-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/app-module/hooks.d.ts +5 -2
- package/dist/document-models/app-module/hooks.d.ts.map +1 -1
- package/dist/document-models/app-module/hooks.js +3 -4
- package/dist/document-models/app-module/index.d.ts +0 -4
- package/dist/document-models/app-module/index.d.ts.map +1 -1
- package/dist/document-models/app-module/index.js +0 -4
- package/dist/document-models/app-module/src/tests/base-operations.test.js +52 -1
- package/dist/document-models/document-editor/actions.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/document-editor/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/actions.js +1 -1
- package/dist/document-models/document-editor/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/document-editor/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/operations.js +0 -2
- package/dist/document-models/document-editor/gen/document-model.js +2 -2
- package/dist/document-models/document-editor/gen/document-schema.d.ts +21 -151
- package/dist/document-models/document-editor/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/reducer.js +8 -4
- package/dist/document-models/document-editor/gen/schema/types.d.ts +15 -3
- package/dist/document-models/document-editor/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/schema/zod.d.ts +7 -4
- package/dist/document-models/document-editor/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/schema/zod.js +2 -2
- package/dist/document-models/document-editor/gen/types.d.ts.map +1 -1
- package/dist/document-models/document-editor/hooks.d.ts +5 -2
- package/dist/document-models/document-editor/hooks.d.ts.map +1 -1
- package/dist/document-models/document-editor/hooks.js +3 -4
- package/dist/document-models/document-editor/index.d.ts +0 -4
- package/dist/document-models/document-editor/index.d.ts.map +1 -1
- package/dist/document-models/document-editor/index.js +0 -4
- package/dist/document-models/document-editor/src/tests/base-operations.test.js +42 -1
- package/dist/document-models/index.d.ts +0 -4
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +0 -4
- package/dist/document-models/processor-module/actions.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/processor-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/actions.js +1 -1
- package/dist/document-models/processor-module/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/processor-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/operations.js +0 -2
- package/dist/document-models/processor-module/gen/document-model.js +2 -2
- package/dist/document-models/processor-module/gen/document-schema.d.ts +24 -170
- package/dist/document-models/processor-module/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/reducer.js +10 -5
- package/dist/document-models/processor-module/gen/schema/types.d.ts +15 -3
- package/dist/document-models/processor-module/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/schema/zod.d.ts +7 -4
- package/dist/document-models/processor-module/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/schema/zod.js +2 -2
- package/dist/document-models/processor-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/processor-module/hooks.d.ts +5 -2
- package/dist/document-models/processor-module/hooks.d.ts.map +1 -1
- package/dist/document-models/processor-module/hooks.js +3 -4
- package/dist/document-models/processor-module/index.d.ts +0 -4
- package/dist/document-models/processor-module/index.d.ts.map +1 -1
- package/dist/document-models/processor-module/index.js +0 -4
- package/dist/document-models/processor-module/src/tests/base-operations.test.js +52 -1
- package/dist/document-models/subgraph-module/actions.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/actions.js +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/subgraph-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/operations.js +0 -2
- package/dist/document-models/subgraph-module/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/document-model.js +2 -2
- package/dist/document-models/subgraph-module/gen/document-schema.d.ts +18 -132
- package/dist/document-models/subgraph-module/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/reducer.js +4 -2
- package/dist/document-models/subgraph-module/gen/schema/types.d.ts +15 -3
- package/dist/document-models/subgraph-module/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/schema/zod.d.ts +7 -4
- package/dist/document-models/subgraph-module/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/schema/zod.js +1 -1
- package/dist/document-models/subgraph-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/hooks.d.ts +5 -2
- package/dist/document-models/subgraph-module/hooks.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/hooks.js +3 -4
- package/dist/document-models/subgraph-module/index.d.ts +0 -4
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/index.js +0 -4
- package/dist/document-models/subgraph-module/src/tests/base-operations.test.js +22 -1
- package/dist/document-models/vetra-package/actions.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/actions.js +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/vetra-package/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/operations.js +0 -2
- package/dist/document-models/vetra-package/gen/document-model.js +2 -2
- package/dist/document-models/vetra-package/gen/document-schema.d.ts +33 -227
- package/dist/document-models/vetra-package/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/reducer.js +20 -10
- package/dist/document-models/vetra-package/gen/schema/types.d.ts +17 -1
- package/dist/document-models/vetra-package/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/schema/zod.d.ts +3 -3
- package/dist/document-models/vetra-package/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/schema/zod.js +10 -10
- package/dist/document-models/vetra-package/gen/types.d.ts.map +1 -1
- package/dist/document-models/vetra-package/hooks.d.ts +5 -2
- package/dist/document-models/vetra-package/hooks.d.ts.map +1 -1
- package/dist/document-models/vetra-package/hooks.js +3 -4
- package/dist/document-models/vetra-package/index.d.ts +0 -4
- package/dist/document-models/vetra-package/index.d.ts.map +1 -1
- package/dist/document-models/vetra-package/index.js +0 -4
- package/dist/document-models/vetra-package/src/tests/base-operations.test.js +127 -28
- package/dist/editors/app-editor/components/AppEditorForm.js +1 -1
- package/dist/editors/app-editor/editor.test.js +3 -2
- package/dist/editors/app-editor/module.d.ts +1 -1
- package/dist/editors/app-editor/module.d.ts.map +1 -1
- package/dist/editors/app-editor/module.js +1 -1
- package/dist/editors/document-editor/components/DocumentEditorForm.d.ts.map +1 -1
- package/dist/editors/document-editor/components/DocumentEditorForm.js +32 -26
- package/dist/editors/document-editor/editor.js +1 -1
- package/dist/editors/document-editor/editor.test.js +2 -2
- package/dist/processors/codegen/__tests__/codegen-processor-e2e.test.js +98 -41
- package/dist/processors/codegen/document-handlers/generators/app-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.js +2 -0
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts +3 -0
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts.map +1 -0
- package/dist/processors/codegen/document-handlers/generators/constants.js +2 -0
- package/dist/processors/codegen/document-handlers/generators/document-editor-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-editor-generator.js +2 -0
- package/dist/processors/codegen/document-handlers/generators/document-model-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-model-generator.js +8 -4
- package/dist/processors/codegen/factory.d.ts.map +1 -1
- package/dist/processors/codegen/factory.js +3 -0
- package/dist/processors/codegen/index.js +1 -1
- package/dist/setupTests.js +1 -0
- package/dist/subgraphs/app-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/app-module/resolvers.js +4 -4
- package/dist/subgraphs/app-module/schema.d.ts.map +1 -1
- package/dist/subgraphs/app-module/schema.js +2 -17
- package/dist/subgraphs/document-editor/index.d.ts +3 -2
- package/dist/subgraphs/document-editor/index.d.ts.map +1 -1
- package/dist/subgraphs/document-editor/index.js +1 -1
- package/dist/subgraphs/document-editor/resolvers.d.ts +1 -1
- package/dist/subgraphs/document-editor/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/document-editor/resolvers.js +12 -16
- package/dist/subgraphs/document-editor/schema.d.ts.map +1 -1
- package/dist/subgraphs/document-editor/schema.js +2 -21
- package/dist/subgraphs/index.d.ts +4 -4
- package/dist/subgraphs/index.d.ts.map +1 -1
- package/dist/subgraphs/index.js +4 -4
- package/dist/subgraphs/processor-module/index.d.ts +1 -1
- package/dist/subgraphs/processor-module/index.d.ts.map +1 -1
- package/dist/subgraphs/processor-module/resolvers.d.ts +1 -1
- package/dist/subgraphs/processor-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/processor-module/resolvers.js +12 -16
- package/dist/subgraphs/processor-module/schema.d.ts.map +1 -1
- package/dist/subgraphs/processor-module/schema.js +2 -22
- package/dist/subgraphs/subgraph-module/index.d.ts +1 -1
- package/dist/subgraphs/subgraph-module/index.d.ts.map +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.d.ts +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.js +12 -16
- package/dist/subgraphs/subgraph-module/schema.d.ts.map +1 -1
- package/dist/subgraphs/subgraph-module/schema.js +2 -15
- package/dist/subgraphs/vetra-package/index.d.ts +1 -1
- package/dist/subgraphs/vetra-package/index.d.ts.map +1 -1
- package/dist/subgraphs/vetra-package/resolvers.d.ts +1 -1
- package/dist/subgraphs/vetra-package/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/vetra-package/resolvers.js +137 -94
- package/dist/subgraphs/vetra-package/schema.d.ts.map +1 -1
- package/dist/subgraphs/vetra-package/schema.js +3 -26
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -21
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseSubgraph } from "@powerhousedao/reactor-api";
|
|
2
|
-
export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string,
|
|
2
|
+
export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string, unknown>;
|
|
3
3
|
//# sourceMappingURL=resolvers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/processor-module/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/processor-module/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAiB/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAgNxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addFile } from "document-drive";
|
|
2
2
|
import { setName } from "document-model";
|
|
3
|
-
import { actions } from "
|
|
3
|
+
import { actions, processorModuleDocumentType, } from "@powerhousedao/vetra/document-models/processor-module";
|
|
4
4
|
export const getResolvers = (subgraph) => {
|
|
5
5
|
const reactor = subgraph.reactor;
|
|
6
6
|
return {
|
|
@@ -23,12 +23,10 @@ export const getResolvers = (subgraph) => {
|
|
|
23
23
|
driveId: driveId,
|
|
24
24
|
...doc,
|
|
25
25
|
...doc.header,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
31
|
-
stateJSON: doc.state.global ?? "{}",
|
|
26
|
+
created: doc.header.createdAtUtcIso,
|
|
27
|
+
lastModified: doc.header.lastModifiedAtUtcIso,
|
|
28
|
+
state: doc.state.global,
|
|
29
|
+
stateJSON: doc.state.global,
|
|
32
30
|
revision: doc.header?.revision?.global ?? 0,
|
|
33
31
|
};
|
|
34
32
|
},
|
|
@@ -41,16 +39,14 @@ export const getResolvers = (subgraph) => {
|
|
|
41
39
|
driveId: driveId,
|
|
42
40
|
...doc,
|
|
43
41
|
...doc.header,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
49
|
-
stateJSON: doc.state.global ?? "{}",
|
|
42
|
+
created: doc.header.createdAtUtcIso,
|
|
43
|
+
lastModified: doc.header.lastModifiedAtUtcIso,
|
|
44
|
+
state: doc.state.global,
|
|
45
|
+
stateJSON: doc.state.global,
|
|
50
46
|
revision: doc.header?.revision?.global ?? 0,
|
|
51
47
|
};
|
|
52
48
|
}));
|
|
53
|
-
return docs.filter((doc) => doc.header.documentType ===
|
|
49
|
+
return docs.filter((doc) => doc.header.documentType === processorModuleDocumentType);
|
|
54
50
|
},
|
|
55
51
|
};
|
|
56
52
|
},
|
|
@@ -58,12 +54,12 @@ export const getResolvers = (subgraph) => {
|
|
|
58
54
|
Mutation: {
|
|
59
55
|
ProcessorModule_createDocument: async (_, args) => {
|
|
60
56
|
const { driveId, name } = args;
|
|
61
|
-
const document = await reactor.addDocument(
|
|
57
|
+
const document = await reactor.addDocument(processorModuleDocumentType);
|
|
62
58
|
if (driveId) {
|
|
63
59
|
await reactor.addAction(driveId, addFile({
|
|
64
60
|
name,
|
|
65
61
|
id: document.header.id,
|
|
66
|
-
documentType:
|
|
62
|
+
documentType: processorModuleDocumentType,
|
|
67
63
|
}));
|
|
68
64
|
}
|
|
69
65
|
if (name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/processor-module/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/processor-module/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YAiEpB,CAAC"}
|
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
import { gql } from "graphql-tag";
|
|
2
2
|
export const schema = gql `
|
|
3
3
|
"""
|
|
4
|
-
|
|
5
|
-
"""
|
|
6
|
-
type ProcessorModuleState {
|
|
7
|
-
name: String!
|
|
8
|
-
type: String!
|
|
9
|
-
documentTypes: [DocumentTypeItem!]!
|
|
10
|
-
status: StatusType!
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type DocumentTypeItem {
|
|
14
|
-
id: OID!
|
|
15
|
-
documentType: String!
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
enum StatusType {
|
|
19
|
-
DRAFT
|
|
20
|
-
CONFIRMED
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
"""
|
|
24
|
-
Queries: ProcessorModule
|
|
4
|
+
Queries: ProcessorModule Document
|
|
25
5
|
"""
|
|
26
6
|
type ProcessorModuleQueries {
|
|
27
7
|
getDocument(docId: PHID!, driveId: PHID): ProcessorModule
|
|
@@ -82,6 +62,6 @@ export const schema = gql `
|
|
|
82
62
|
id: OID!
|
|
83
63
|
}
|
|
84
64
|
input ProcessorModule_SetProcessorStatusInput {
|
|
85
|
-
status:
|
|
65
|
+
status: ProcessorModule_StatusType!
|
|
86
66
|
}
|
|
87
67
|
`;
|
|
@@ -2,7 +2,7 @@ import { BaseSubgraph } from "@powerhousedao/reactor-api";
|
|
|
2
2
|
export declare class SubgraphModuleSubgraph extends BaseSubgraph {
|
|
3
3
|
name: string;
|
|
4
4
|
typeDefs: import("graphql").DocumentNode;
|
|
5
|
-
resolvers: Record<string,
|
|
5
|
+
resolvers: Record<string, unknown>;
|
|
6
6
|
additionalContextFields: {};
|
|
7
7
|
onSetup(): Promise<void>;
|
|
8
8
|
onDisconnect(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/subgraph-module/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D,qBAAa,sBAAuB,SAAQ,YAAY;IACtD,IAAI,SAAqB;IACzB,QAAQ,iCAAU;IAClB,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/subgraph-module/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D,qBAAa,sBAAuB,SAAQ,YAAY;IACtD,IAAI,SAAqB;IACzB,QAAQ,iCAAU;IAClB,SAAS,0BAAsB;IAC/B,uBAAuB,KAAM;IACvB,OAAO;IACP,YAAY;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseSubgraph } from "@powerhousedao/reactor-api";
|
|
2
|
-
export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string,
|
|
2
|
+
export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string, unknown>;
|
|
3
3
|
//# sourceMappingURL=resolvers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/subgraph-module/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/subgraph-module/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAc/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAwIxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { addFile } from "document-drive";
|
|
2
2
|
import { setName } from "document-model";
|
|
3
|
-
import { actions } from "
|
|
3
|
+
import { actions, subgraphModuleDocumentType, } from "@powerhousedao/vetra/document-models/subgraph-module";
|
|
4
4
|
export const getResolvers = (subgraph) => {
|
|
5
5
|
const reactor = subgraph.reactor;
|
|
6
6
|
return {
|
|
@@ -23,12 +23,10 @@ export const getResolvers = (subgraph) => {
|
|
|
23
23
|
driveId: driveId,
|
|
24
24
|
...doc,
|
|
25
25
|
...doc.header,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
31
|
-
stateJSON: doc.state.global ?? "{}",
|
|
26
|
+
created: doc.header.createdAtUtcIso,
|
|
27
|
+
lastModified: doc.header.lastModifiedAtUtcIso,
|
|
28
|
+
state: doc.state.global,
|
|
29
|
+
stateJSON: doc.state.global,
|
|
32
30
|
revision: doc.header?.revision?.global ?? 0,
|
|
33
31
|
};
|
|
34
32
|
},
|
|
@@ -41,16 +39,14 @@ export const getResolvers = (subgraph) => {
|
|
|
41
39
|
driveId: driveId,
|
|
42
40
|
...doc,
|
|
43
41
|
...doc.header,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
49
|
-
stateJSON: doc.state.global ?? "{}",
|
|
42
|
+
created: doc.header.createdAtUtcIso,
|
|
43
|
+
lastModified: doc.header.lastModifiedAtUtcIso,
|
|
44
|
+
state: doc.state.global,
|
|
45
|
+
stateJSON: doc.state.global,
|
|
50
46
|
revision: doc.header?.revision?.global ?? 0,
|
|
51
47
|
};
|
|
52
48
|
}));
|
|
53
|
-
return docs.filter((doc) => doc.header.documentType ===
|
|
49
|
+
return docs.filter((doc) => doc.header.documentType === subgraphModuleDocumentType);
|
|
54
50
|
},
|
|
55
51
|
};
|
|
56
52
|
},
|
|
@@ -58,12 +54,12 @@ export const getResolvers = (subgraph) => {
|
|
|
58
54
|
Mutation: {
|
|
59
55
|
SubgraphModule_createDocument: async (_, args) => {
|
|
60
56
|
const { driveId, name } = args;
|
|
61
|
-
const document = await reactor.addDocument(
|
|
57
|
+
const document = await reactor.addDocument(subgraphModuleDocumentType);
|
|
62
58
|
if (driveId) {
|
|
63
59
|
await reactor.addAction(driveId, addFile({
|
|
64
60
|
name,
|
|
65
61
|
id: document.header.id,
|
|
66
|
-
documentType:
|
|
62
|
+
documentType: subgraphModuleDocumentType,
|
|
67
63
|
}));
|
|
68
64
|
}
|
|
69
65
|
if (name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/subgraph-module/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/subgraph-module/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YAwCpB,CAAC"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { gql } from "graphql-tag";
|
|
2
2
|
export const schema = gql `
|
|
3
3
|
"""
|
|
4
|
-
|
|
5
|
-
"""
|
|
6
|
-
type SubgraphModuleState {
|
|
7
|
-
name: String!
|
|
8
|
-
status: StatusType!
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
enum StatusType {
|
|
12
|
-
DRAFT
|
|
13
|
-
CONFIRMED
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
"""
|
|
17
|
-
Queries: SubgraphModule
|
|
4
|
+
Queries: SubgraphModule Document
|
|
18
5
|
"""
|
|
19
6
|
type SubgraphModuleQueries {
|
|
20
7
|
getDocument(docId: PHID!, driveId: PHID): SubgraphModule
|
|
@@ -50,6 +37,6 @@ export const schema = gql `
|
|
|
50
37
|
name: String!
|
|
51
38
|
}
|
|
52
39
|
input SubgraphModule_SetSubgraphStatusInput {
|
|
53
|
-
status:
|
|
40
|
+
status: SubgraphModule_StatusType!
|
|
54
41
|
}
|
|
55
42
|
`;
|
|
@@ -2,7 +2,7 @@ import { BaseSubgraph } from "@powerhousedao/reactor-api";
|
|
|
2
2
|
export declare class VetraPackageSubgraph extends BaseSubgraph {
|
|
3
3
|
name: string;
|
|
4
4
|
typeDefs: import("graphql").DocumentNode;
|
|
5
|
-
resolvers: Record<string,
|
|
5
|
+
resolvers: Record<string, unknown>;
|
|
6
6
|
additionalContextFields: {};
|
|
7
7
|
onSetup(): Promise<void>;
|
|
8
8
|
onDisconnect(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-package/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1D,qBAAa,oBAAqB,SAAQ,YAAY;IACpD,IAAI,SAAmB;IAEvB,QAAQ,iCAAU;IAClB,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-package/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1D,qBAAa,oBAAqB,SAAQ,YAAY;IACpD,IAAI,SAAmB;IAEvB,QAAQ,iCAAU;IAClB,SAAS,0BAAsB;IAC/B,uBAAuB,KAAM;IACvB,OAAO;IACP,YAAY;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BaseSubgraph } from "@powerhousedao/reactor-api";
|
|
2
|
-
export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string,
|
|
2
|
+
export declare const getResolvers: (subgraph: BaseSubgraph) => Record<string, unknown>;
|
|
3
3
|
//# sourceMappingURL=resolvers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-package/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-package/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAsB/D,eAAO,MAAM,YAAY,GACvB,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAuUxB,CAAC"}
|
|
@@ -1,148 +1,191 @@
|
|
|
1
|
-
import { addFile
|
|
2
|
-
import {
|
|
3
|
-
import { actions } from "
|
|
4
|
-
const DEFAULT_DRIVE_ID = "powerhouse";
|
|
5
|
-
const logger = childLogger(["VetraPackageResolvers"]);
|
|
1
|
+
import { addFile } from "document-drive";
|
|
2
|
+
import { setName } from "document-model";
|
|
3
|
+
import { actions, vetraPackageDocumentType, } from "@powerhousedao/vetra/document-models/vetra-package";
|
|
6
4
|
export const getResolvers = (subgraph) => {
|
|
7
5
|
const reactor = subgraph.reactor;
|
|
8
6
|
return {
|
|
9
7
|
Query: {
|
|
10
|
-
VetraPackage: async (
|
|
8
|
+
VetraPackage: async () => {
|
|
11
9
|
return {
|
|
12
10
|
getDocument: async (args) => {
|
|
13
|
-
const driveId = args
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const { docId, driveId } = args;
|
|
12
|
+
if (!docId) {
|
|
13
|
+
throw new Error("Document id is required");
|
|
14
|
+
}
|
|
15
|
+
if (driveId) {
|
|
16
|
+
const docIds = await reactor.getDocuments(driveId);
|
|
17
|
+
if (!docIds.includes(docId)) {
|
|
18
|
+
throw new Error(`Document with id ${docId} is not part of ${driveId}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const doc = await reactor.getDocument(docId);
|
|
16
22
|
return {
|
|
17
23
|
driveId: driveId,
|
|
18
24
|
...doc,
|
|
19
25
|
...doc.header,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
state: doc.state.global
|
|
23
|
-
stateJSON: doc.state.global
|
|
24
|
-
revision: doc.header
|
|
26
|
+
created: doc.header.createdAtUtcIso,
|
|
27
|
+
lastModified: doc.header.lastModifiedAtUtcIso,
|
|
28
|
+
state: doc.state.global,
|
|
29
|
+
stateJSON: doc.state.global,
|
|
30
|
+
revision: doc.header?.revision?.global ?? 0,
|
|
25
31
|
};
|
|
26
32
|
},
|
|
27
33
|
getDocuments: async (args) => {
|
|
28
|
-
const driveId = args
|
|
34
|
+
const { driveId } = args;
|
|
29
35
|
const docsIds = await reactor.getDocuments(driveId);
|
|
30
36
|
const docs = await Promise.all(docsIds.map(async (docId) => {
|
|
31
|
-
const doc = await reactor.getDocument(
|
|
37
|
+
const doc = await reactor.getDocument(docId);
|
|
32
38
|
return {
|
|
33
39
|
driveId: driveId,
|
|
34
40
|
...doc,
|
|
35
41
|
...doc.header,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
state: doc.state.global
|
|
39
|
-
stateJSON: doc.state.global
|
|
40
|
-
revision: doc.header
|
|
42
|
+
created: doc.header.createdAtUtcIso,
|
|
43
|
+
lastModified: doc.header.lastModifiedAtUtcIso,
|
|
44
|
+
state: doc.state.global,
|
|
45
|
+
stateJSON: doc.state.global,
|
|
46
|
+
revision: doc.header?.revision?.global ?? 0,
|
|
41
47
|
};
|
|
42
48
|
}));
|
|
43
|
-
return docs.filter((doc) => doc.header.documentType ===
|
|
49
|
+
return docs.filter((doc) => doc.header.documentType === vetraPackageDocumentType);
|
|
44
50
|
},
|
|
45
51
|
};
|
|
46
52
|
},
|
|
47
53
|
},
|
|
48
54
|
Mutation: {
|
|
49
55
|
VetraPackage_createDocument: async (_, args) => {
|
|
50
|
-
const driveId = args
|
|
51
|
-
const document =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
id: documentId,
|
|
58
|
-
name: args.name,
|
|
59
|
-
documentType: document.header.documentType,
|
|
56
|
+
const { driveId, name } = args;
|
|
57
|
+
const document = await reactor.addDocument(vetraPackageDocumentType);
|
|
58
|
+
if (driveId) {
|
|
59
|
+
await reactor.addAction(driveId, addFile({
|
|
60
|
+
name,
|
|
61
|
+
id: document.header.id,
|
|
62
|
+
documentType: vetraPackageDocumentType,
|
|
60
63
|
}));
|
|
61
64
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
revert = true;
|
|
65
|
-
}
|
|
66
|
-
if (revert) {
|
|
67
|
-
try {
|
|
68
|
-
await reactor.deleteDocument(documentId);
|
|
69
|
-
}
|
|
70
|
-
catch (error) {
|
|
71
|
-
logger.error(`Failed to revert document creation! This means there was a document created but not added to a drive. DocumentId: ${documentId}, Error: ${error.message}`);
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
65
|
+
if (name) {
|
|
66
|
+
await reactor.addAction(document.header.id, setName(name));
|
|
74
67
|
}
|
|
75
68
|
return document.header.id;
|
|
76
69
|
},
|
|
77
70
|
VetraPackage_setPackageName: async (_, args) => {
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
const { docId, input } = args;
|
|
72
|
+
const doc = await reactor.getDocument(docId);
|
|
73
|
+
if (!doc) {
|
|
74
|
+
throw new Error("Document not found");
|
|
75
|
+
}
|
|
76
|
+
const result = await reactor.addAction(docId, actions.setPackageName(input));
|
|
77
|
+
if (result.status !== "SUCCESS") {
|
|
78
|
+
throw new Error(result.error?.message ?? "Failed to setPackageName");
|
|
79
|
+
}
|
|
80
|
+
return true;
|
|
83
81
|
},
|
|
84
82
|
VetraPackage_setPackageDescription: async (_, args) => {
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
const { docId, input } = args;
|
|
84
|
+
const doc = await reactor.getDocument(docId);
|
|
85
|
+
if (!doc) {
|
|
86
|
+
throw new Error("Document not found");
|
|
87
|
+
}
|
|
88
|
+
const result = await reactor.addAction(docId, actions.setPackageDescription(input));
|
|
89
|
+
if (result.status !== "SUCCESS") {
|
|
90
|
+
throw new Error(result.error?.message ?? "Failed to setPackageDescription");
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
90
93
|
},
|
|
91
94
|
VetraPackage_setPackageCategory: async (_, args) => {
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
const { docId, input } = args;
|
|
96
|
+
const doc = await reactor.getDocument(docId);
|
|
97
|
+
if (!doc) {
|
|
98
|
+
throw new Error("Document not found");
|
|
99
|
+
}
|
|
100
|
+
const result = await reactor.addAction(docId, actions.setPackageCategory(input));
|
|
101
|
+
if (result.status !== "SUCCESS") {
|
|
102
|
+
throw new Error(result.error?.message ?? "Failed to setPackageCategory");
|
|
103
|
+
}
|
|
104
|
+
return true;
|
|
97
105
|
},
|
|
98
106
|
VetraPackage_setPackageAuthor: async (_, args) => {
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
107
|
+
const { docId, input } = args;
|
|
108
|
+
const doc = await reactor.getDocument(docId);
|
|
109
|
+
if (!doc) {
|
|
110
|
+
throw new Error("Document not found");
|
|
111
|
+
}
|
|
112
|
+
const result = await reactor.addAction(docId, actions.setPackageAuthor(input));
|
|
113
|
+
if (result.status !== "SUCCESS") {
|
|
114
|
+
throw new Error(result.error?.message ?? "Failed to setPackageAuthor");
|
|
115
|
+
}
|
|
116
|
+
return true;
|
|
104
117
|
},
|
|
105
118
|
VetraPackage_setPackageAuthorName: async (_, args) => {
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
const { docId, input } = args;
|
|
120
|
+
const doc = await reactor.getDocument(docId);
|
|
121
|
+
if (!doc) {
|
|
122
|
+
throw new Error("Document not found");
|
|
123
|
+
}
|
|
124
|
+
const result = await reactor.addAction(docId, actions.setPackageAuthorName(input));
|
|
125
|
+
if (result.status !== "SUCCESS") {
|
|
126
|
+
throw new Error(result.error?.message ?? "Failed to setPackageAuthorName");
|
|
127
|
+
}
|
|
128
|
+
return true;
|
|
111
129
|
},
|
|
112
130
|
VetraPackage_setPackageAuthorWebsite: async (_, args) => {
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
const { docId, input } = args;
|
|
132
|
+
const doc = await reactor.getDocument(docId);
|
|
133
|
+
if (!doc) {
|
|
134
|
+
throw new Error("Document not found");
|
|
135
|
+
}
|
|
136
|
+
const result = await reactor.addAction(docId, actions.setPackageAuthorWebsite(input));
|
|
137
|
+
if (result.status !== "SUCCESS") {
|
|
138
|
+
throw new Error(result.error?.message ?? "Failed to setPackageAuthorWebsite");
|
|
139
|
+
}
|
|
140
|
+
return true;
|
|
118
141
|
},
|
|
119
142
|
VetraPackage_addPackageKeyword: async (_, args) => {
|
|
120
|
-
const
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
143
|
+
const { docId, input } = args;
|
|
144
|
+
const doc = await reactor.getDocument(docId);
|
|
145
|
+
if (!doc) {
|
|
146
|
+
throw new Error("Document not found");
|
|
147
|
+
}
|
|
148
|
+
const result = await reactor.addAction(docId, actions.addPackageKeyword(input));
|
|
149
|
+
if (result.status !== "SUCCESS") {
|
|
150
|
+
throw new Error(result.error?.message ?? "Failed to addPackageKeyword");
|
|
151
|
+
}
|
|
152
|
+
return true;
|
|
125
153
|
},
|
|
126
154
|
VetraPackage_removePackageKeyword: async (_, args) => {
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
155
|
+
const { docId, input } = args;
|
|
156
|
+
const doc = await reactor.getDocument(docId);
|
|
157
|
+
if (!doc) {
|
|
158
|
+
throw new Error("Document not found");
|
|
159
|
+
}
|
|
160
|
+
const result = await reactor.addAction(docId, actions.removePackageKeyword(input));
|
|
161
|
+
if (result.status !== "SUCCESS") {
|
|
162
|
+
throw new Error(result.error?.message ?? "Failed to removePackageKeyword");
|
|
163
|
+
}
|
|
164
|
+
return true;
|
|
132
165
|
},
|
|
133
166
|
VetraPackage_setPackageGithubUrl: async (_, args) => {
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
167
|
+
const { docId, input } = args;
|
|
168
|
+
const doc = await reactor.getDocument(docId);
|
|
169
|
+
if (!doc) {
|
|
170
|
+
throw new Error("Document not found");
|
|
171
|
+
}
|
|
172
|
+
const result = await reactor.addAction(docId, actions.setPackageGithubUrl(input));
|
|
173
|
+
if (result.status !== "SUCCESS") {
|
|
174
|
+
throw new Error(result.error?.message ?? "Failed to setPackageGithubUrl");
|
|
175
|
+
}
|
|
176
|
+
return true;
|
|
139
177
|
},
|
|
140
178
|
VetraPackage_setPackageNpmUrl: async (_, args) => {
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
179
|
+
const { docId, input } = args;
|
|
180
|
+
const doc = await reactor.getDocument(docId);
|
|
181
|
+
if (!doc) {
|
|
182
|
+
throw new Error("Document not found");
|
|
183
|
+
}
|
|
184
|
+
const result = await reactor.addAction(docId, actions.setPackageNpmUrl(input));
|
|
185
|
+
if (result.status !== "SUCCESS") {
|
|
186
|
+
throw new Error(result.error?.message ?? "Failed to setPackageNpmUrl");
|
|
187
|
+
}
|
|
188
|
+
return true;
|
|
146
189
|
},
|
|
147
190
|
},
|
|
148
191
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-package/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../subgraphs/vetra-package/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,YA0GpB,CAAC"}
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-tag";
|
|
2
2
|
export const schema = gql `
|
|
3
3
|
"""
|
|
4
|
-
|
|
5
|
-
"""
|
|
6
|
-
type VetraPackageState {
|
|
7
|
-
name: String
|
|
8
|
-
description: String
|
|
9
|
-
category: String
|
|
10
|
-
author: Author!
|
|
11
|
-
keywords: [Keyword!]!
|
|
12
|
-
githubUrl: URL
|
|
13
|
-
npmUrl: URL
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type Author {
|
|
17
|
-
name: String
|
|
18
|
-
website: URL
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type Keyword {
|
|
22
|
-
id: OID!
|
|
23
|
-
label: String!
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
"""
|
|
27
|
-
Queries: VetraPackage
|
|
4
|
+
Queries: VetraPackage Document
|
|
28
5
|
"""
|
|
29
6
|
type VetraPackageQueries {
|
|
30
|
-
getDocument(
|
|
7
|
+
getDocument(docId: PHID!, driveId: PHID): VetraPackage
|
|
31
8
|
getDocuments(driveId: String!): [VetraPackage!]
|
|
32
9
|
}
|
|
33
10
|
|
|
@@ -39,7 +16,7 @@ export const schema = gql `
|
|
|
39
16
|
Mutations: VetraPackage
|
|
40
17
|
"""
|
|
41
18
|
type Mutation {
|
|
42
|
-
VetraPackage_createDocument(
|
|
19
|
+
VetraPackage_createDocument(name: String!, driveId: String): String
|
|
43
20
|
|
|
44
21
|
VetraPackage_setPackageName(
|
|
45
22
|
driveId: String
|