@powerhousedao/reactor-api 1.29.18-dev.3 → 1.29.18-dev.5

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,CAoPpC;CACH"}
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,CA0PpC;CACH"}
@@ -179,7 +179,16 @@ export class DriveSubgraph extends Subgraph {
179
179
  },
180
180
  Node: {
181
181
  __resolveType: (obj) => {
182
- return obj.documentType ? "FileNode" : "FolderNode";
182
+ return obj.documentType
183
+ ? driveKindTypeNames.file
184
+ : driveKindTypeNames.folder;
185
+ },
186
+ },
187
+ DocumentDrive_Node: {
188
+ __resolveType: (obj) => {
189
+ return obj.documentType
190
+ ? "DocumentDrive_FileNode"
191
+ : "DocumentDrive_FolderNode";
183
192
  },
184
193
  },
185
194
  Document: {
@@ -198,10 +207,7 @@ export class DriveSubgraph extends Subgraph {
198
207
  return {
199
208
  meta: drive.meta,
200
209
  ...drive.state.global,
201
- nodes: drive.state.global.nodes.map((n) => ({
202
- ...n,
203
- __typename: driveKindTypeNames[n.kind] || "UnkownDriveNode",
204
- })),
210
+ nodes: drive.state.global.nodes,
205
211
  };
206
212
  },
207
213
  documents: async (_, args, ctx) => {