@powerhousedao/reactor-api 1.29.18-dev.2 → 1.29.18-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graphql/drive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOpE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAyB7F,qBAAa,aAAc,SAAQ,QAAQ;IACzC,OAAO,CAAC,MAAM,CAGX;gBAES,IAAI,EAAE,YAAY;IAS9B,IAAI,SAAc;IAClB,QAAQ,iCAsJN;IAEF,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graphql/drive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOpE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAyB7F,qBAAa,aAAc,SAAQ,QAAQ;IACzC,OAAO,CAAC,MAAM,CAGX;gBAES,IAAI,EAAE,YAAY;IAS9B,IAAI,SAAc;IAClB,QAAQ,iCAsJN;IAEF,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAwPpC;CACH"}
|
|
@@ -182,6 +182,13 @@ export class DriveSubgraph extends Subgraph {
|
|
|
182
182
|
return obj.documentType ? "FileNode" : "FolderNode";
|
|
183
183
|
},
|
|
184
184
|
},
|
|
185
|
+
DocumentDrive_Node: {
|
|
186
|
+
__resolveType: (obj) => {
|
|
187
|
+
return obj.documentType
|
|
188
|
+
? "DocumentDrive_FileNode"
|
|
189
|
+
: "DocumentDrive_FolderNode";
|
|
190
|
+
},
|
|
191
|
+
},
|
|
185
192
|
Document: {
|
|
186
193
|
operations: async (obj, { first, skip }, ctx) => {
|
|
187
194
|
const limit = first ?? 0;
|
|
@@ -198,10 +205,7 @@ export class DriveSubgraph extends Subgraph {
|
|
|
198
205
|
return {
|
|
199
206
|
meta: drive.meta,
|
|
200
207
|
...drive.state.global,
|
|
201
|
-
nodes: drive.state.global.nodes
|
|
202
|
-
...n,
|
|
203
|
-
__typename: driveKindTypeNames[n.kind] || "UnkownDriveNode",
|
|
204
|
-
})),
|
|
208
|
+
nodes: drive.state.global.nodes,
|
|
205
209
|
};
|
|
206
210
|
},
|
|
207
211
|
documents: async (_, args, ctx) => {
|
|
@@ -227,7 +231,7 @@ export class DriveSubgraph extends Subgraph {
|
|
|
227
231
|
id,
|
|
228
232
|
revision: document.revision.global,
|
|
229
233
|
state: document.state.global,
|
|
230
|
-
stateJSON:
|
|
234
|
+
stateJSON: document.state.global,
|
|
231
235
|
operations: document.operations.global.map((op) => ({
|
|
232
236
|
...op,
|
|
233
237
|
inputText: typeof op.input === "string"
|