@powerhousedao/powerhouse-vetra-packages 6.2.0-dev.38 → 6.2.0-dev.39

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.
Files changed (54) hide show
  1. package/dist/browser/assets/{entry-BzMQu_A8.js → entry-BHcFjTEd.js} +2 -2
  2. package/dist/browser/assets/{projection-entry-BvwGe49p.js → projection-entry-Cs-5j8OX.js} +4 -4
  3. package/dist/browser/{connect-BJfZyw2O.js → connect-CmgZSI0Z.js} +62 -62
  4. package/dist/browser/{connect-BJfZyw2O.js.map → connect-CmgZSI0Z.js.map} +1 -1
  5. package/dist/browser/{dist-Bldev8ZK.js → dist-D1NFJMzm.js} +6 -12
  6. package/dist/browser/dist-D1NFJMzm.js.map +1 -0
  7. package/dist/browser/{editor-ZerxteK6.js → editor-Bs5C6sAt.js} +5 -5
  8. package/dist/browser/{editor-ZerxteK6.js.map → editor-Bs5C6sAt.js.map} +1 -1
  9. package/dist/browser/{editor-DWzENY-2.js → editor-BsVLT-lJ.js} +4 -4
  10. package/dist/browser/{editor-DWzENY-2.js.map → editor-BsVLT-lJ.js.map} +1 -1
  11. package/dist/browser/editors/document-model-editor/module.js +1 -1
  12. package/dist/browser/editors/generic-drive-explorer/index.js +3 -3
  13. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  14. package/dist/browser/{folder-view-DrU6t80y.js → folder-view-LYhTe15T.js} +3 -3
  15. package/dist/browser/{folder-view-DrU6t80y.js.map → folder-view-LYhTe15T.js.map} +1 -1
  16. package/dist/browser/{graphql-editor-C5UmjtTf.js → graphql-editor-b61MnkEP.js} +2 -2
  17. package/dist/browser/{graphql-editor-C5UmjtTf.js.map → graphql-editor-b61MnkEP.js.map} +1 -1
  18. package/dist/browser/index.js +334 -2
  19. package/dist/browser/index.js.map +1 -1
  20. package/dist/browser/{json-editor-yNmSZgJE.js → json-editor-DO_EwDmY.js} +2 -2
  21. package/dist/browser/{json-editor-yNmSZgJE.js.map → json-editor-DO_EwDmY.js.map} +1 -1
  22. package/dist/browser/lib-DtwK2kyR.js +200 -0
  23. package/dist/browser/lib-DtwK2kyR.js.map +1 -0
  24. package/dist/browser/{state-schemas-ByCSXjhf.js → state-schemas-Cx-QbW5a.js} +3 -3
  25. package/dist/browser/{state-schemas-ByCSXjhf.js.map → state-schemas-Cx-QbW5a.js.map} +1 -1
  26. package/dist/node/{connect-Bq2Hrj8v.mjs → connect-CwDdrOag.mjs} +51 -51
  27. package/dist/node/{connect-Bq2Hrj8v.mjs.map → connect-CwDdrOag.mjs.map} +1 -1
  28. package/dist/node/{dist-DuuhSkaw.mjs → dist-RdOXBdt-.mjs} +6 -12
  29. package/dist/node/dist-RdOXBdt-.mjs.map +1 -0
  30. package/dist/node/{editor-N6Jk0aIC.mjs → editor-CTJUSbjg.mjs} +5 -5
  31. package/dist/node/{editor-N6Jk0aIC.mjs.map → editor-CTJUSbjg.mjs.map} +1 -1
  32. package/dist/node/{editor-LN22LKw-.mjs → editor-DLr8Eb3u.mjs} +4 -4
  33. package/dist/node/{editor-LN22LKw-.mjs.map → editor-DLr8Eb3u.mjs.map} +1 -1
  34. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  35. package/dist/node/editors/generic-drive-explorer/index.mjs +3 -3
  36. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  37. package/dist/node/{folder-view-B0P7HA68.mjs → folder-view-CfvJLoKi.mjs} +3 -3
  38. package/dist/node/{folder-view-B0P7HA68.mjs.map → folder-view-CfvJLoKi.mjs.map} +1 -1
  39. package/dist/node/{graphql-editor-CsuAtA6W.mjs → graphql-editor-C-0f2bX3.mjs} +2 -2
  40. package/dist/node/{graphql-editor-CsuAtA6W.mjs.map → graphql-editor-C-0f2bX3.mjs.map} +1 -1
  41. package/dist/node/index.mjs +335 -2
  42. package/dist/node/index.mjs.map +1 -1
  43. package/dist/node/{json-editor-DIbAhmts.mjs → json-editor-DJtigEsH.mjs} +2 -2
  44. package/dist/node/{json-editor-DIbAhmts.mjs.map → json-editor-DJtigEsH.mjs.map} +1 -1
  45. package/dist/node/{dist-C88eUERe.mjs → main-DbTMJyA_.mjs} +3 -337
  46. package/dist/node/main-DbTMJyA_.mjs.map +1 -0
  47. package/dist/node/{state-schemas-C8R8UxE3.mjs → state-schemas-Bv5h5MqY.mjs} +3 -3
  48. package/dist/node/{state-schemas-C8R8UxE3.mjs.map → state-schemas-Bv5h5MqY.mjs.map} +1 -1
  49. package/package.json +6 -6
  50. package/dist/browser/dist-Bldev8ZK.js.map +0 -1
  51. package/dist/browser/dist-DXM8ccKa.js +0 -533
  52. package/dist/browser/dist-DXM8ccKa.js.map +0 -1
  53. package/dist/node/dist-C88eUERe.mjs.map +0 -1
  54. package/dist/node/dist-DuuhSkaw.mjs.map +0 -1
@@ -1,533 +0,0 @@
1
- import { S as createState, X as generateId, g as baseLoadFromInput, h as baseCreateDocument, k as isDocumentAction, v as baseSaveToFileHandle, w as defaultBaseState, x as createReducer } from "./document-drive-sTKoi6L4.js";
2
- import { t as parse } from "./parser-CkF6Qt8V.js";
3
- //#region ../reactor/dist/drive-container-types-BxnXaOAp.js
4
- /**
5
- * Error thrown when a document model module is not found in the registry.
6
- */
7
- var ModuleNotFoundError = class extends Error {
8
- documentType;
9
- requestedVersion;
10
- constructor(documentType, version) {
11
- const versionSuffix = version !== void 0 ? ` version ${version}` : "";
12
- super(`Document model module not found for type: ${documentType}${versionSuffix}`);
13
- this.name = "ModuleNotFoundError";
14
- this.documentType = documentType;
15
- this.requestedVersion = version;
16
- }
17
- static isError(error) {
18
- return Error.isError(error) && error.name === "ModuleNotFoundError";
19
- }
20
- };
21
- const DRIVE_COLLECTION_PREFIX = "drive.";
22
- /**
23
- * Identifies the collection a remote synchronizes. Collections are drive-level
24
- * abstractions (document-drive and reactor-drive), so a collection id is the
25
- * drive document id plus the branch it scopes to rather than an opaque string.
26
- *
27
- * The canonical string form (`drive.${branch}.${driveId}`) is produced only by
28
- * `key` and parsed only by `fromKey`; that string is the wire and storage
29
- * representation and is byte-for-byte identical to the legacy
30
- * `driveCollectionId(branch, driveId)` output, so existing `document_collections`
31
- * rows and persisted remotes remain valid without migration.
32
- */
33
- var DriveCollectionId = class DriveCollectionId {
34
- constructor(driveId, branch) {
35
- this.driveId = driveId;
36
- this.branch = branch;
37
- }
38
- static forDrive(driveId, branch = "main") {
39
- return new DriveCollectionId(driveId, branch);
40
- }
41
- /**
42
- * The single deserializer for the wire/storage form. `branch` may contain
43
- * dots, while `driveId` is a dot-free document id, so the drive id is the
44
- * final dot-delimited segment.
45
- */
46
- static fromKey(key) {
47
- if (!key.startsWith(DRIVE_COLLECTION_PREFIX)) throw new Error(`Unsupported collection id: ${key}`);
48
- const rest = key.slice(6);
49
- const lastDot = rest.lastIndexOf(".");
50
- if (lastDot === -1 || lastDot === rest.length - 1) throw new Error(`Malformed drive collection id: ${key}`);
51
- return new DriveCollectionId(rest.slice(lastDot + 1), rest.slice(0, lastDot));
52
- }
53
- get key() {
54
- return `${DRIVE_COLLECTION_PREFIX}${this.branch}.${this.driveId}`;
55
- }
56
- toString() {
57
- return this.key;
58
- }
59
- equals(other) {
60
- return this.driveId === other.driveId && this.branch === other.branch;
61
- }
62
- };
63
- //#endregion
64
- //#region ../reactor/dist/index.js
65
- let SyncStatus = /* @__PURE__ */ function(SyncStatus) {
66
- SyncStatus["Synced"] = "SYNCED";
67
- SyncStatus["Outgoing"] = "OUTGOING";
68
- SyncStatus["Incoming"] = "INCOMING";
69
- SyncStatus["OutgoingAndIncoming"] = "OUTGOING_AND_INCOMING";
70
- SyncStatus["Error"] = "ERROR";
71
- return SyncStatus;
72
- }({});
73
- //#endregion
74
- //#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
75
- var __assign = function() {
76
- __assign = Object.assign || function __assign(t) {
77
- for (var s, i = 1, n = arguments.length; i < n; i++) {
78
- s = arguments[i];
79
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
80
- }
81
- return t;
82
- };
83
- return __assign.apply(this, arguments);
84
- };
85
- function __rest(s, e) {
86
- var t = {};
87
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
88
- if (s != null && typeof Object.getOwnPropertySymbols === "function") {
89
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
90
- }
91
- return t;
92
- }
93
- function __spreadArray(to, from, pack) {
94
- if (pack || arguments.length === 2) {
95
- for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
96
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
97
- ar[i] = from[i];
98
- }
99
- }
100
- return to.concat(ar || Array.prototype.slice.call(from));
101
- }
102
- //#endregion
103
- //#region ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.12.0/node_modules/graphql-tag/lib/index.js
104
- var docCache = /* @__PURE__ */ new Map();
105
- var fragmentSourceMap = /* @__PURE__ */ new Map();
106
- var printFragmentWarnings = true;
107
- var experimentalFragmentVariables = false;
108
- function normalize(string) {
109
- return string.replace(/[\s,]+/g, " ").trim();
110
- }
111
- function cacheKeyFromLoc(loc) {
112
- return normalize(loc.source.body.substring(loc.start, loc.end));
113
- }
114
- function processFragments(ast) {
115
- var seenKeys = /* @__PURE__ */ new Set();
116
- var definitions = [];
117
- ast.definitions.forEach(function(fragmentDefinition) {
118
- if (fragmentDefinition.kind === "FragmentDefinition") {
119
- var fragmentName = fragmentDefinition.name.value;
120
- var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc);
121
- var sourceKeySet = fragmentSourceMap.get(fragmentName);
122
- if (sourceKeySet && !sourceKeySet.has(sourceKey)) {
123
- if (printFragmentWarnings) console.warn("Warning: fragment with name " + fragmentName + " already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names");
124
- } else if (!sourceKeySet) fragmentSourceMap.set(fragmentName, sourceKeySet = /* @__PURE__ */ new Set());
125
- sourceKeySet.add(sourceKey);
126
- if (!seenKeys.has(sourceKey)) {
127
- seenKeys.add(sourceKey);
128
- definitions.push(fragmentDefinition);
129
- }
130
- } else definitions.push(fragmentDefinition);
131
- });
132
- return __assign(__assign({}, ast), { definitions });
133
- }
134
- function stripLoc(doc) {
135
- var workSet = new Set(doc.definitions);
136
- workSet.forEach(function(node) {
137
- if (node.loc) delete node.loc;
138
- Object.keys(node).forEach(function(key) {
139
- var value = node[key];
140
- if (value && typeof value === "object") workSet.add(value);
141
- });
142
- });
143
- var loc = doc.loc;
144
- if (loc) {
145
- delete loc.startToken;
146
- delete loc.endToken;
147
- }
148
- return doc;
149
- }
150
- function parseDocument(source) {
151
- var cacheKey = normalize(source);
152
- if (!docCache.has(cacheKey)) {
153
- var parsed = parse(source, {
154
- experimentalFragmentVariables,
155
- allowLegacyFragmentVariables: experimentalFragmentVariables
156
- });
157
- if (!parsed || parsed.kind !== "Document") throw new Error("Not a valid GraphQL document.");
158
- docCache.set(cacheKey, stripLoc(processFragments(parsed)));
159
- }
160
- return docCache.get(cacheKey);
161
- }
162
- function gql(literals) {
163
- var args = [];
164
- for (var _i = 1; _i < arguments.length; _i++) args[_i - 1] = arguments[_i];
165
- if (typeof literals === "string") literals = [literals];
166
- var result = literals[0];
167
- args.forEach(function(arg, i) {
168
- if (arg && arg.kind === "Document") result += arg.loc.source.body;
169
- else result += arg;
170
- result += literals[i + 1];
171
- });
172
- return parseDocument(result);
173
- }
174
- function resetCaches() {
175
- docCache.clear();
176
- fragmentSourceMap.clear();
177
- }
178
- function disableFragmentWarnings() {
179
- printFragmentWarnings = false;
180
- }
181
- function enableExperimentalFragmentVariables() {
182
- experimentalFragmentVariables = true;
183
- }
184
- function disableExperimentalFragmentVariables() {
185
- experimentalFragmentVariables = false;
186
- }
187
- var extras = {
188
- gql,
189
- resetCaches,
190
- disableFragmentWarnings,
191
- enableExperimentalFragmentVariables,
192
- disableExperimentalFragmentVariables
193
- };
194
- (function(gql_1) {
195
- gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables;
196
- })(gql || (gql = {}));
197
- gql["default"] = gql;
198
- //#endregion
199
- //#region ../reactor-drive/dist/index.js
200
- const REACTOR_DRIVE_DOCUMENT_TYPE = "powerhouse/reactor-drive";
201
- const REACTOR_DRIVE_FILE_EXTENSION = "phrd";
202
- function setDriveNameAction(input) {
203
- return {
204
- id: generateId(),
205
- type: "SET_DRIVE_NAME",
206
- scope: "global",
207
- timestampUtcMs: (/* @__PURE__ */ new Date()).toISOString(),
208
- input
209
- };
210
- }
211
- function setDriveIconAction(input) {
212
- return {
213
- id: generateId(),
214
- type: "SET_DRIVE_ICON",
215
- scope: "global",
216
- timestampUtcMs: (/* @__PURE__ */ new Date()).toISOString(),
217
- input
218
- };
219
- }
220
- function setSharingTypeAction(input) {
221
- return {
222
- id: generateId(),
223
- type: "SET_SHARING_TYPE",
224
- scope: "local",
225
- timestampUtcMs: (/* @__PURE__ */ new Date()).toISOString(),
226
- input
227
- };
228
- }
229
- function setAvailableOfflineAction(input) {
230
- return {
231
- id: generateId(),
232
- type: "SET_AVAILABLE_OFFLINE",
233
- scope: "local",
234
- timestampUtcMs: (/* @__PURE__ */ new Date()).toISOString(),
235
- input
236
- };
237
- }
238
- function addFolderAction(input) {
239
- return {
240
- id: generateId(),
241
- type: "ADD_FOLDER",
242
- scope: "document",
243
- timestampUtcMs: (/* @__PURE__ */ new Date()).toISOString(),
244
- input
245
- };
246
- }
247
- function updateFolderAction(input) {
248
- return {
249
- id: generateId(),
250
- type: "UPDATE_FOLDER",
251
- scope: "document",
252
- timestampUtcMs: (/* @__PURE__ */ new Date()).toISOString(),
253
- input
254
- };
255
- }
256
- function removeFolderAction(input) {
257
- return {
258
- id: generateId(),
259
- type: "REMOVE_FOLDER",
260
- scope: "document",
261
- timestampUtcMs: (/* @__PURE__ */ new Date()).toISOString(),
262
- input
263
- };
264
- }
265
- const reactorDriveActions = {
266
- setDriveName: setDriveNameAction,
267
- setDriveIcon: setDriveIconAction,
268
- setSharingType: setSharingTypeAction,
269
- setAvailableOffline: setAvailableOfflineAction,
270
- addFolder: addFolderAction,
271
- updateFolder: updateFolderAction,
272
- removeFolder: removeFolderAction
273
- };
274
- const reactorDriveStateReducer = (state, action) => {
275
- if (isDocumentAction(action)) return state;
276
- const typedAction = action;
277
- switch (typedAction.type) {
278
- case "SET_DRIVE_NAME": {
279
- const input = typedAction.input;
280
- state.global.name = input.name;
281
- return state;
282
- }
283
- case "SET_DRIVE_ICON": {
284
- const input = typedAction.input;
285
- state.global.icon = input.icon;
286
- return state;
287
- }
288
- case "SET_SHARING_TYPE": {
289
- const input = typedAction.input;
290
- state.local.sharingType = input.sharingType;
291
- return state;
292
- }
293
- case "SET_AVAILABLE_OFFLINE": {
294
- const input = typedAction.input;
295
- state.local.availableOffline = input.availableOffline;
296
- return state;
297
- }
298
- case "ADD_FOLDER":
299
- case "UPDATE_FOLDER":
300
- case "REMOVE_FOLDER": return state;
301
- default: return state;
302
- }
303
- };
304
- const initialGlobalState = {
305
- name: "",
306
- icon: null
307
- };
308
- const initialLocalState = {
309
- sharingType: "private",
310
- availableOffline: false
311
- };
312
- const reactorDriveCreateState = (state) => {
313
- return {
314
- ...defaultBaseState(),
315
- global: {
316
- ...initialGlobalState,
317
- ...state?.global
318
- },
319
- local: {
320
- ...initialLocalState,
321
- ...state?.local
322
- }
323
- };
324
- };
325
- const reactorDriveCreateDocument = (state) => {
326
- return baseCreateDocument(reactorDriveCreateState, state, REACTOR_DRIVE_DOCUMENT_TYPE);
327
- };
328
- const reactorDriveSaveToFileHandle = (document, input) => {
329
- return baseSaveToFileHandle(document, input);
330
- };
331
- const reactorDriveLoadFromInput = (input) => {
332
- return baseLoadFromInput(input, reactorDriveDocumentReducer);
333
- };
334
- const isReactorDriveState = (state) => {
335
- return typeof state === "object" && state !== null && "global" in state && "local" in state;
336
- };
337
- const assertIsReactorDriveState = (state) => {
338
- if (!isReactorDriveState(state)) throw new Error("Not a reactor-drive state");
339
- };
340
- const isReactorDriveDocument = (document) => {
341
- return typeof document === "object" && document !== null && "header" in document && document.header.documentType === "powerhouse/reactor-drive";
342
- };
343
- const assertIsReactorDriveDocument = (document) => {
344
- if (!isReactorDriveDocument(document)) throw new Error("Not a reactor-drive document");
345
- };
346
- const reactorDriveDocumentReducer = createReducer(reactorDriveStateReducer);
347
- const reactorDriveDocumentGlobalState = {
348
- id: REACTOR_DRIVE_DOCUMENT_TYPE,
349
- name: "ReactorDrive",
350
- extension: REACTOR_DRIVE_FILE_EXTENSION,
351
- description: "",
352
- author: {
353
- name: "Powerhouse Inc",
354
- website: "https://www.powerhouse.inc/"
355
- },
356
- specifications: [{
357
- version: 1,
358
- changeLog: [],
359
- state: {
360
- global: {
361
- schema: "type ReactorDriveState {\n name: String!\n icon: String\n}",
362
- initialValue: JSON.stringify(JSON.stringify(initialGlobalState)),
363
- examples: []
364
- },
365
- local: {
366
- schema: "type ReactorDriveLocalState {\n sharingType: String!\n availableOffline: Boolean!\n}",
367
- initialValue: JSON.stringify(JSON.stringify(initialLocalState)),
368
- examples: []
369
- }
370
- },
371
- modules: [{
372
- id: "reactor-drive/base-operations",
373
- name: "base_operations",
374
- description: "",
375
- operations: [
376
- {
377
- id: "SET_DRIVE_NAME",
378
- name: "SET_DRIVE_NAME",
379
- description: "",
380
- schema: "input SetDriveNameInput { name: String! }",
381
- template: "",
382
- reducer: "",
383
- errors: [],
384
- examples: [],
385
- scope: "global"
386
- },
387
- {
388
- id: "SET_DRIVE_ICON",
389
- name: "SET_DRIVE_ICON",
390
- description: "",
391
- schema: "input SetDriveIconInput { icon: String }",
392
- template: "",
393
- reducer: "",
394
- errors: [],
395
- examples: [],
396
- scope: "global"
397
- },
398
- {
399
- id: "SET_SHARING_TYPE",
400
- name: "SET_SHARING_TYPE",
401
- description: "",
402
- schema: "input SetSharingTypeInput { sharingType: String! }",
403
- template: "",
404
- reducer: "",
405
- errors: [],
406
- examples: [],
407
- scope: "local"
408
- },
409
- {
410
- id: "SET_AVAILABLE_OFFLINE",
411
- name: "SET_AVAILABLE_OFFLINE",
412
- description: "",
413
- schema: "input SetAvailableOfflineInput { availableOffline: Boolean! }",
414
- template: "",
415
- reducer: "",
416
- errors: [],
417
- examples: [],
418
- scope: "local"
419
- },
420
- {
421
- id: "ADD_FOLDER",
422
- name: "ADD_FOLDER",
423
- description: "",
424
- schema: "input AddFolderInput { folderId: String! parentFolderId: String name: String! }",
425
- template: "",
426
- reducer: "",
427
- errors: [],
428
- examples: [],
429
- scope: "document"
430
- },
431
- {
432
- id: "UPDATE_FOLDER",
433
- name: "UPDATE_FOLDER",
434
- description: "",
435
- schema: "input UpdateFolderInput { folderId: String! name: String parentFolderId: String }",
436
- template: "",
437
- reducer: "",
438
- errors: [],
439
- examples: [],
440
- scope: "document"
441
- },
442
- {
443
- id: "REMOVE_FOLDER",
444
- name: "REMOVE_FOLDER",
445
- description: "",
446
- schema: "input RemoveFolderInput { folderId: String! }",
447
- template: "",
448
- reducer: "",
449
- errors: [],
450
- examples: [],
451
- scope: "document"
452
- }
453
- ]
454
- }]
455
- }]
456
- };
457
- const reactorDriveDocumentModelModule = {
458
- actions: reactorDriveActions,
459
- reducer: reactorDriveDocumentReducer,
460
- documentModel: createState(defaultBaseState(), reactorDriveDocumentGlobalState),
461
- utils: {
462
- fileExtension: REACTOR_DRIVE_FILE_EXTENSION,
463
- createState: reactorDriveCreateState,
464
- createDocument: reactorDriveCreateDocument,
465
- loadFromInput: reactorDriveLoadFromInput,
466
- saveToFileHandle: reactorDriveSaveToFileHandle,
467
- isStateOfType: isReactorDriveState,
468
- assertIsStateOfType: assertIsReactorDriveState,
469
- isDocumentOfType: isReactorDriveDocument,
470
- assertIsDocumentOfType: assertIsReactorDriveDocument
471
- }
472
- };
473
- gql`
474
- enum ReactorDriveNodeKind {
475
- FILE
476
- FOLDER
477
- }
478
-
479
- input ReactorDrivePagingInput {
480
- cursor: String
481
- limit: Int
482
- }
483
-
484
- type ReactorDriveFileNode {
485
- id: ID!
486
- driveId: ID!
487
- name: String!
488
- parentFolder: ID
489
- documentType: String!
490
- }
491
-
492
- type ReactorDriveFolderNode {
493
- id: ID!
494
- driveId: ID!
495
- name: String!
496
- parentFolder: ID
497
- children(
498
- paging: ReactorDrivePagingInput
499
- kind: ReactorDriveNodeKind
500
- ): ReactorDriveNodePage!
501
- }
502
-
503
- union ReactorDriveNode = ReactorDriveFileNode | ReactorDriveFolderNode
504
-
505
- type ReactorDriveNodePage {
506
- results: [ReactorDriveNode!]!
507
- nextCursor: String
508
- hasMore: Boolean!
509
- totalCount: Int
510
- }
511
-
512
- type ReactorDrive {
513
- id: ID!
514
- name: String!
515
- icon: String
516
- sharingType: String!
517
- availableOffline: Boolean!
518
- rootNodes(
519
- paging: ReactorDrivePagingInput
520
- kind: ReactorDriveNodeKind
521
- ): ReactorDriveNodePage!
522
- }
523
-
524
- type Query {
525
- reactorDrive(id: ID!): ReactorDrive
526
- reactorDriveNode(driveId: ID!, id: ID!): ReactorDriveNode
527
- reactorDriveDescendants(driveId: ID!, root: ID!): [ReactorDriveNode!]!
528
- }
529
- `;
530
- //#endregion
531
- export { __spreadArray as a, ModuleNotFoundError as c, __rest as i, gql as n, SyncStatus as o, __assign as r, DriveCollectionId as s, reactorDriveDocumentModelModule as t };
532
-
533
- //# sourceMappingURL=dist-DXM8ccKa.js.map