@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.9 → 6.2.3

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 (117) hide show
  1. package/dist/browser/assets/{entry-DSBtQnit.js → entry-D62sYiFV.js} +10 -6
  2. package/dist/browser/assets/{projection-entry-Bem3exmO.js → projection-entry-BGcu_9-p.js} +62 -20
  3. package/dist/browser/document-models/index.js +2 -1
  4. package/dist/browser/{documents-J_l59mSV.js → documents-CRzouuNR.js} +631 -752
  5. package/dist/browser/documents-CRzouuNR.js.map +1 -0
  6. package/dist/browser/editor-C7KBR_ar.js +4676 -0
  7. package/dist/browser/editor-C7KBR_ar.js.map +1 -0
  8. package/dist/browser/{editor-CbGnfPVs.js → editor-CiR6XQBO.js} +4 -5
  9. package/dist/browser/{editor-CbGnfPVs.js.map → editor-CiR6XQBO.js.map} +1 -1
  10. package/dist/browser/editors/document-model-editor/module.js +1 -1
  11. package/dist/browser/editors/document-model-editor/module.js.map +1 -1
  12. package/dist/browser/editors/generic-drive-explorer/index.js +81 -65
  13. package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
  14. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  15. package/dist/browser/editors/generic-drive-explorer/module.js.map +1 -1
  16. package/dist/browser/folder-view-DSgXN79D.js +4409 -0
  17. package/dist/browser/folder-view-DSgXN79D.js.map +1 -0
  18. package/dist/browser/{graphql-editor-CuiExsfF.js → graphql-editor-Cgi5UOrF.js} +98 -88
  19. package/dist/browser/graphql-editor-Cgi5UOrF.js.map +1 -0
  20. package/dist/{node/hooks-D0DcS3MV.mjs → browser/hooks-eQxBX7g4.js} +824 -444
  21. package/dist/browser/{hooks-KKcNp2X0.js.map → hooks-eQxBX7g4.js.map} +1 -1
  22. package/dist/browser/index.js +137 -34
  23. package/dist/browser/index.js.map +1 -1
  24. package/dist/browser/{json-editor-DqRiIY49.js → json-editor-DfRD-pfk.js} +8 -9
  25. package/dist/browser/{json-editor-DqRiIY49.js.map → json-editor-DfRD-pfk.js.map} +1 -1
  26. package/dist/browser/{parser-CkF6Qt8V.js → parser-DtbeHA3H.js} +7 -6
  27. package/dist/browser/{parser-CkF6Qt8V.js.map → parser-DtbeHA3H.js.map} +1 -1
  28. package/dist/browser/rolldown-runtime-DC62tzP2.js +33 -0
  29. package/dist/browser/src-CrUksCLW-B2dkRdgq.js +5254 -0
  30. package/dist/browser/src-CrUksCLW-B2dkRdgq.js.map +1 -0
  31. package/dist/browser/state-schemas-B5Bk_l1s.js +696 -0
  32. package/dist/browser/state-schemas-B5Bk_l1s.js.map +1 -0
  33. package/dist/browser/tslib.es6-Cno80yFJ.js +32 -0
  34. package/dist/browser/tslib.es6-Cno80yFJ.js.map +1 -0
  35. package/dist/node/document-models/index.mjs +2 -1
  36. package/dist/node/documents-D70S9PZL.mjs +17 -0
  37. package/dist/node/documents-D70S9PZL.mjs.map +1 -0
  38. package/dist/node/editor-96sMeumV.mjs +4597 -0
  39. package/dist/node/editor-96sMeumV.mjs.map +1 -0
  40. package/dist/node/{editor-DCN8dGJA.mjs → editor-wqvKwcO5.mjs} +4 -5
  41. package/dist/node/{editor-DCN8dGJA.mjs.map → editor-wqvKwcO5.mjs.map} +1 -1
  42. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  43. package/dist/node/editors/document-model-editor/module.mjs.map +1 -1
  44. package/dist/node/editors/generic-drive-explorer/index.mjs +26 -21
  45. package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
  46. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  47. package/dist/node/editors/generic-drive-explorer/module.mjs.map +1 -1
  48. package/dist/node/folder-view-ktfv2Cvw.mjs +4409 -0
  49. package/dist/node/folder-view-ktfv2Cvw.mjs.map +1 -0
  50. package/dist/node/{graphql-BfAoPeWM.mjs → graphql-Dp4j7rmx.mjs} +50 -49
  51. package/dist/node/{graphql-BfAoPeWM.mjs.map → graphql-Dp4j7rmx.mjs.map} +1 -1
  52. package/dist/node/{graphql-editor-C38uott6.mjs → graphql-editor-CBJXEY_C.mjs} +77 -63
  53. package/dist/node/graphql-editor-CBJXEY_C.mjs.map +1 -0
  54. package/dist/{browser/hooks-KKcNp2X0.js → node/hooks-C2b46djt.mjs} +824 -444
  55. package/dist/node/{hooks-D0DcS3MV.mjs.map → hooks-C2b46djt.mjs.map} +1 -1
  56. package/dist/node/index.mjs +158 -35
  57. package/dist/node/index.mjs.map +1 -1
  58. package/dist/node/{json-editor-BM2wc5Zz.mjs → json-editor-DaqHARBD.mjs} +8 -9
  59. package/dist/node/{json-editor-BM2wc5Zz.mjs.map → json-editor-DaqHARBD.mjs.map} +1 -1
  60. package/dist/node/{schema-context-DL8jhi_d.mjs → schema-context-CojjnSE6.mjs} +6 -5
  61. package/dist/node/schema-context-CojjnSE6.mjs.map +1 -0
  62. package/dist/node/src-CrUksCLW-TvF37aMo.mjs +5935 -0
  63. package/dist/node/src-CrUksCLW-TvF37aMo.mjs.map +1 -0
  64. package/dist/node/state-schemas-BHuo0GPl.mjs +698 -0
  65. package/dist/node/state-schemas-BHuo0GPl.mjs.map +1 -0
  66. package/dist/node/{main-BhH_ajBM.mjs → tslib.es6-VORZjfk3.mjs} +40 -202
  67. package/dist/node/tslib.es6-VORZjfk3.mjs.map +1 -0
  68. package/package.json +12 -11
  69. package/dist/browser/button-CuO8Gh3v.js +0 -696
  70. package/dist/browser/button-CuO8Gh3v.js.map +0 -1
  71. package/dist/browser/connect-CDHt0LA4.js +0 -14328
  72. package/dist/browser/connect-CDHt0LA4.js.map +0 -1
  73. package/dist/browser/dist-B4FWbuEM.js +0 -4148
  74. package/dist/browser/dist-B4FWbuEM.js.map +0 -1
  75. package/dist/browser/dist-BAJ5nRDl.js +0 -2711
  76. package/dist/browser/dist-BAJ5nRDl.js.map +0 -1
  77. package/dist/browser/dist-Csb8sxU2.js +0 -4641
  78. package/dist/browser/dist-Csb8sxU2.js.map +0 -1
  79. package/dist/browser/document-drive-fcQ4o8i3.js +0 -8320
  80. package/dist/browser/document-drive-fcQ4o8i3.js.map +0 -1
  81. package/dist/browser/documents-J_l59mSV.js.map +0 -1
  82. package/dist/browser/editor-DWqW8FJ2.js +0 -1809
  83. package/dist/browser/editor-DWqW8FJ2.js.map +0 -1
  84. package/dist/browser/folder-view-DxzbfZuY.js +0 -232
  85. package/dist/browser/folder-view-DxzbfZuY.js.map +0 -1
  86. package/dist/browser/graphql-editor-CuiExsfF.js.map +0 -1
  87. package/dist/browser/lib-CPkPeg_u.js +0 -209
  88. package/dist/browser/lib-CPkPeg_u.js.map +0 -1
  89. package/dist/browser/printer-CEYr4JOg.js +0 -604
  90. package/dist/browser/printer-CEYr4JOg.js.map +0 -1
  91. package/dist/browser/schema-context-ZyeclQwy.js +0 -69
  92. package/dist/browser/schema-context-ZyeclQwy.js.map +0 -1
  93. package/dist/browser/state-schemas-DZB9PFEk.js +0 -298
  94. package/dist/browser/state-schemas-DZB9PFEk.js.map +0 -1
  95. package/dist/node/button-Da7CxMn7.mjs +0 -678
  96. package/dist/node/button-Da7CxMn7.mjs.map +0 -1
  97. package/dist/node/connect-D7y1D5hm.mjs +0 -15022
  98. package/dist/node/connect-D7y1D5hm.mjs.map +0 -1
  99. package/dist/node/dist-CTcqTvC6.mjs +0 -4649
  100. package/dist/node/dist-CTcqTvC6.mjs.map +0 -1
  101. package/dist/node/dist-CzYOpeXN.mjs +0 -2711
  102. package/dist/node/dist-CzYOpeXN.mjs.map +0 -1
  103. package/dist/node/dist-DT7jI9ol.mjs +0 -4148
  104. package/dist/node/dist-DT7jI9ol.mjs.map +0 -1
  105. package/dist/node/document-drive-DuGBBYw5.mjs +0 -8337
  106. package/dist/node/document-drive-DuGBBYw5.mjs.map +0 -1
  107. package/dist/node/documents-DCf53bzO.mjs +0 -747
  108. package/dist/node/documents-DCf53bzO.mjs.map +0 -1
  109. package/dist/node/editor-BU3YRt7c.mjs +0 -1809
  110. package/dist/node/editor-BU3YRt7c.mjs.map +0 -1
  111. package/dist/node/folder-view-DrRUOAcf.mjs +0 -232
  112. package/dist/node/folder-view-DrRUOAcf.mjs.map +0 -1
  113. package/dist/node/graphql-editor-C38uott6.mjs.map +0 -1
  114. package/dist/node/main-BhH_ajBM.mjs.map +0 -1
  115. package/dist/node/schema-context-DL8jhi_d.mjs.map +0 -1
  116. package/dist/node/state-schemas--x-Yb4EP.mjs +0 -299
  117. package/dist/node/state-schemas--x-Yb4EP.mjs.map +0 -1
@@ -1,6 +1,5 @@
1
- import { C as datetime, O as __exportAll, d as email, h as object, m as number, v as string, x as url } from "./dist-B4FWbuEM.js";
2
- import { c as Kind, f as isNode, g as devAssert, h as isObjectLike, i as isPrintableAsBlockString, l as DirectiveLocation, m as invariant, n as instanceOf, o as isNameContinue, p as GraphQLError, r as inspect, s as isNameStart, t as parse, u as OperationTypeNode } from "./parser-CkF6Qt8V.js";
3
- import { a as visitInParallel, i as visit, r as getEnterLeaveForKind, t as print } from "./printer-CEYr4JOg.js";
1
+ import { a as printBlockString, c as Kind, d as QueryDocumentKeys, f as isNode, g as devAssert, h as isObjectLike, i as isPrintableAsBlockString, l as DirectiveLocation, m as invariant, n as instanceOf, o as isNameContinue, p as GraphQLError, r as inspect, s as isNameStart, t as parse, u as OperationTypeNode } from "./parser-DtbeHA3H.js";
2
+ import { typeDefs } from "@powerhousedao/document-engineering/graphql";
4
3
  //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/didYouMean.mjs
5
4
  const MAX_SUGGESTIONS = 5;
6
5
  /**
@@ -237,6 +236,610 @@ function toObjMap(obj) {
237
236
  return map;
238
237
  }
239
238
  //#endregion
239
+ //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printString.mjs
240
+ /**
241
+ * Prints a string as a GraphQL StringValue literal. Replaces control characters
242
+ * and excluded characters (" U+0022 and \\ U+005C) with escape sequences.
243
+ */
244
+ function printString(str) {
245
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
246
+ }
247
+ const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
248
+ function escapedReplacer(str) {
249
+ return escapeSequences[str.charCodeAt(0)];
250
+ }
251
+ const escapeSequences = [
252
+ "\\u0000",
253
+ "\\u0001",
254
+ "\\u0002",
255
+ "\\u0003",
256
+ "\\u0004",
257
+ "\\u0005",
258
+ "\\u0006",
259
+ "\\u0007",
260
+ "\\b",
261
+ "\\t",
262
+ "\\n",
263
+ "\\u000B",
264
+ "\\f",
265
+ "\\r",
266
+ "\\u000E",
267
+ "\\u000F",
268
+ "\\u0010",
269
+ "\\u0011",
270
+ "\\u0012",
271
+ "\\u0013",
272
+ "\\u0014",
273
+ "\\u0015",
274
+ "\\u0016",
275
+ "\\u0017",
276
+ "\\u0018",
277
+ "\\u0019",
278
+ "\\u001A",
279
+ "\\u001B",
280
+ "\\u001C",
281
+ "\\u001D",
282
+ "\\u001E",
283
+ "\\u001F",
284
+ "",
285
+ "",
286
+ "\\\"",
287
+ "",
288
+ "",
289
+ "",
290
+ "",
291
+ "",
292
+ "",
293
+ "",
294
+ "",
295
+ "",
296
+ "",
297
+ "",
298
+ "",
299
+ "",
300
+ "",
301
+ "",
302
+ "",
303
+ "",
304
+ "",
305
+ "",
306
+ "",
307
+ "",
308
+ "",
309
+ "",
310
+ "",
311
+ "",
312
+ "",
313
+ "",
314
+ "",
315
+ "",
316
+ "",
317
+ "",
318
+ "",
319
+ "",
320
+ "",
321
+ "",
322
+ "",
323
+ "",
324
+ "",
325
+ "",
326
+ "",
327
+ "",
328
+ "",
329
+ "",
330
+ "",
331
+ "",
332
+ "",
333
+ "",
334
+ "",
335
+ "",
336
+ "",
337
+ "",
338
+ "",
339
+ "",
340
+ "",
341
+ "",
342
+ "",
343
+ "",
344
+ "\\\\",
345
+ "",
346
+ "",
347
+ "",
348
+ "",
349
+ "",
350
+ "",
351
+ "",
352
+ "",
353
+ "",
354
+ "",
355
+ "",
356
+ "",
357
+ "",
358
+ "",
359
+ "",
360
+ "",
361
+ "",
362
+ "",
363
+ "",
364
+ "",
365
+ "",
366
+ "",
367
+ "",
368
+ "",
369
+ "",
370
+ "",
371
+ "",
372
+ "",
373
+ "",
374
+ "",
375
+ "",
376
+ "",
377
+ "",
378
+ "",
379
+ "\\u007F",
380
+ "\\u0080",
381
+ "\\u0081",
382
+ "\\u0082",
383
+ "\\u0083",
384
+ "\\u0084",
385
+ "\\u0085",
386
+ "\\u0086",
387
+ "\\u0087",
388
+ "\\u0088",
389
+ "\\u0089",
390
+ "\\u008A",
391
+ "\\u008B",
392
+ "\\u008C",
393
+ "\\u008D",
394
+ "\\u008E",
395
+ "\\u008F",
396
+ "\\u0090",
397
+ "\\u0091",
398
+ "\\u0092",
399
+ "\\u0093",
400
+ "\\u0094",
401
+ "\\u0095",
402
+ "\\u0096",
403
+ "\\u0097",
404
+ "\\u0098",
405
+ "\\u0099",
406
+ "\\u009A",
407
+ "\\u009B",
408
+ "\\u009C",
409
+ "\\u009D",
410
+ "\\u009E",
411
+ "\\u009F"
412
+ ];
413
+ //#endregion
414
+ //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/visitor.mjs
415
+ /**
416
+ * A visitor is provided to visit, it contains the collection of
417
+ * relevant functions to be called during the visitor's traversal.
418
+ */
419
+ const BREAK = Object.freeze({});
420
+ /**
421
+ * visit() will walk through an AST using a depth-first traversal, calling
422
+ * the visitor's enter function at each node in the traversal, and calling the
423
+ * leave function after visiting that node and all of its child nodes.
424
+ *
425
+ * By returning different values from the enter and leave functions, the
426
+ * behavior of the visitor can be altered, including skipping over a sub-tree of
427
+ * the AST (by returning false), editing the AST by returning a value or null
428
+ * to remove the value, or to stop the whole traversal by returning BREAK.
429
+ *
430
+ * When using visit() to edit an AST, the original AST will not be modified, and
431
+ * a new version of the AST with the changes applied will be returned from the
432
+ * visit function.
433
+ *
434
+ * ```ts
435
+ * const editedAST = visit(ast, {
436
+ * enter(node, key, parent, path, ancestors) {
437
+ * // @return
438
+ * // undefined: no action
439
+ * // false: skip visiting this node
440
+ * // visitor.BREAK: stop visiting altogether
441
+ * // null: delete this node
442
+ * // any value: replace this node with the returned value
443
+ * },
444
+ * leave(node, key, parent, path, ancestors) {
445
+ * // @return
446
+ * // undefined: no action
447
+ * // false: no action
448
+ * // visitor.BREAK: stop visiting altogether
449
+ * // null: delete this node
450
+ * // any value: replace this node with the returned value
451
+ * }
452
+ * });
453
+ * ```
454
+ *
455
+ * Alternatively to providing enter() and leave() functions, a visitor can
456
+ * instead provide functions named the same as the kinds of AST nodes, or
457
+ * enter/leave visitors at a named key, leading to three permutations of the
458
+ * visitor API:
459
+ *
460
+ * 1) Named visitors triggered when entering a node of a specific kind.
461
+ *
462
+ * ```ts
463
+ * visit(ast, {
464
+ * Kind(node) {
465
+ * // enter the "Kind" node
466
+ * }
467
+ * })
468
+ * ```
469
+ *
470
+ * 2) Named visitors that trigger upon entering and leaving a node of a specific kind.
471
+ *
472
+ * ```ts
473
+ * visit(ast, {
474
+ * Kind: {
475
+ * enter(node) {
476
+ * // enter the "Kind" node
477
+ * }
478
+ * leave(node) {
479
+ * // leave the "Kind" node
480
+ * }
481
+ * }
482
+ * })
483
+ * ```
484
+ *
485
+ * 3) Generic visitors that trigger upon entering and leaving any node.
486
+ *
487
+ * ```ts
488
+ * visit(ast, {
489
+ * enter(node) {
490
+ * // enter any node
491
+ * },
492
+ * leave(node) {
493
+ * // leave any node
494
+ * }
495
+ * })
496
+ * ```
497
+ */
498
+ function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
499
+ const enterLeaveMap = /* @__PURE__ */ new Map();
500
+ for (const kind of Object.values(Kind)) enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
501
+ let stack = void 0;
502
+ let inArray = Array.isArray(root);
503
+ let keys = [root];
504
+ let index = -1;
505
+ let edits = [];
506
+ let node = root;
507
+ let key = void 0;
508
+ let parent = void 0;
509
+ const path = [];
510
+ const ancestors = [];
511
+ do {
512
+ index++;
513
+ const isLeaving = index === keys.length;
514
+ const isEdited = isLeaving && edits.length !== 0;
515
+ if (isLeaving) {
516
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
517
+ node = parent;
518
+ parent = ancestors.pop();
519
+ if (isEdited) {
520
+ if (inArray) {
521
+ node = node.slice();
522
+ let editOffset = 0;
523
+ for (const [editKey, editValue] of edits) {
524
+ const arrayKey = editKey - editOffset;
525
+ if (editValue === null) {
526
+ node.splice(arrayKey, 1);
527
+ editOffset++;
528
+ } else node[arrayKey] = editValue;
529
+ }
530
+ } else {
531
+ node = { ...node };
532
+ for (const [editKey, editValue] of edits) node[editKey] = editValue;
533
+ }
534
+ }
535
+ index = stack.index;
536
+ keys = stack.keys;
537
+ edits = stack.edits;
538
+ inArray = stack.inArray;
539
+ stack = stack.prev;
540
+ } else if (parent) {
541
+ key = inArray ? index : keys[index];
542
+ node = parent[key];
543
+ if (node === null || node === void 0) continue;
544
+ path.push(key);
545
+ }
546
+ let result;
547
+ if (!Array.isArray(node)) {
548
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
549
+ isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
550
+ const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
551
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
552
+ if (result === BREAK) break;
553
+ if (result === false) {
554
+ if (!isLeaving) {
555
+ path.pop();
556
+ continue;
557
+ }
558
+ } else if (result !== void 0) {
559
+ edits.push([key, result]);
560
+ if (!isLeaving) {
561
+ if (isNode(result)) node = result;
562
+ else {
563
+ path.pop();
564
+ continue;
565
+ }
566
+ }
567
+ }
568
+ }
569
+ if (result === void 0 && isEdited) edits.push([key, node]);
570
+ if (isLeaving) path.pop();
571
+ else {
572
+ var _node$kind;
573
+ stack = {
574
+ inArray,
575
+ index,
576
+ keys,
577
+ edits,
578
+ prev: stack
579
+ };
580
+ inArray = Array.isArray(node);
581
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
582
+ index = -1;
583
+ edits = [];
584
+ if (parent) ancestors.push(parent);
585
+ parent = node;
586
+ }
587
+ } while (stack !== void 0);
588
+ if (edits.length !== 0) return edits[edits.length - 1][1];
589
+ return root;
590
+ }
591
+ /**
592
+ * Creates a new visitor instance which delegates to many visitors to run in
593
+ * parallel. Each visitor will be visited for each node before moving on.
594
+ *
595
+ * If a prior visitor edits a node, no following visitors will see that node.
596
+ */
597
+ function visitInParallel(visitors) {
598
+ const skipping = new Array(visitors.length).fill(null);
599
+ const mergedVisitor = Object.create(null);
600
+ for (const kind of Object.values(Kind)) {
601
+ let hasVisitor = false;
602
+ const enterList = new Array(visitors.length).fill(void 0);
603
+ const leaveList = new Array(visitors.length).fill(void 0);
604
+ for (let i = 0; i < visitors.length; ++i) {
605
+ const { enter, leave } = getEnterLeaveForKind(visitors[i], kind);
606
+ hasVisitor || (hasVisitor = enter != null || leave != null);
607
+ enterList[i] = enter;
608
+ leaveList[i] = leave;
609
+ }
610
+ if (!hasVisitor) continue;
611
+ mergedVisitor[kind] = {
612
+ enter(...args) {
613
+ const node = args[0];
614
+ for (let i = 0; i < visitors.length; i++) if (skipping[i] === null) {
615
+ var _enterList$i;
616
+ const result = (_enterList$i = enterList[i]) === null || _enterList$i === void 0 ? void 0 : _enterList$i.apply(visitors[i], args);
617
+ if (result === false) skipping[i] = node;
618
+ else if (result === BREAK) skipping[i] = BREAK;
619
+ else if (result !== void 0) return result;
620
+ }
621
+ },
622
+ leave(...args) {
623
+ const node = args[0];
624
+ for (let i = 0; i < visitors.length; i++) if (skipping[i] === null) {
625
+ var _leaveList$i;
626
+ const result = (_leaveList$i = leaveList[i]) === null || _leaveList$i === void 0 ? void 0 : _leaveList$i.apply(visitors[i], args);
627
+ if (result === BREAK) skipping[i] = BREAK;
628
+ else if (result !== void 0 && result !== false) return result;
629
+ } else if (skipping[i] === node) skipping[i] = null;
630
+ }
631
+ };
632
+ }
633
+ return mergedVisitor;
634
+ }
635
+ /**
636
+ * Given a visitor instance and a node kind, return EnterLeaveVisitor for that kind.
637
+ */
638
+ function getEnterLeaveForKind(visitor, kind) {
639
+ const kindVisitor = visitor[kind];
640
+ if (typeof kindVisitor === "object") return kindVisitor;
641
+ else if (typeof kindVisitor === "function") return {
642
+ enter: kindVisitor,
643
+ leave: void 0
644
+ };
645
+ return {
646
+ enter: visitor.enter,
647
+ leave: visitor.leave
648
+ };
649
+ }
650
+ //#endregion
651
+ //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printer.mjs
652
+ /**
653
+ * Converts an AST into a string, using one set of reasonable
654
+ * formatting rules.
655
+ */
656
+ function print(ast) {
657
+ return visit(ast, printDocASTReducer);
658
+ }
659
+ const MAX_LINE_LENGTH = 80;
660
+ const printDocASTReducer = {
661
+ Name: { leave: (node) => node.value },
662
+ Variable: { leave: (node) => "$" + node.name },
663
+ Document: { leave: (node) => join(node.definitions, "\n\n") },
664
+ OperationDefinition: { leave(node) {
665
+ const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
666
+ const prefix = wrap("", node.description, "\n") + join([
667
+ node.operation,
668
+ join([node.name, varDefs]),
669
+ join(node.directives, " ")
670
+ ], " ");
671
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
672
+ } },
673
+ VariableDefinition: { leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " ")) },
674
+ SelectionSet: { leave: ({ selections }) => block(selections) },
675
+ Field: { leave({ alias, name, arguments: args, directives, selectionSet }) {
676
+ const prefix = wrap("", alias, ": ") + name;
677
+ let argsLine = prefix + wrap("(", join(args, ", "), ")");
678
+ if (argsLine.length > MAX_LINE_LENGTH) argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
679
+ return join([
680
+ argsLine,
681
+ join(directives, " "),
682
+ selectionSet
683
+ ], " ");
684
+ } },
685
+ Argument: { leave: ({ name, value }) => name + ": " + value },
686
+ FragmentSpread: { leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " ")) },
687
+ InlineFragment: { leave: ({ typeCondition, directives, selectionSet }) => join([
688
+ "...",
689
+ wrap("on ", typeCondition),
690
+ join(directives, " "),
691
+ selectionSet
692
+ ], " ") },
693
+ FragmentDefinition: { leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet, description }) => wrap("", description, "\n") + `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet },
694
+ IntValue: { leave: ({ value }) => value },
695
+ FloatValue: { leave: ({ value }) => value },
696
+ StringValue: { leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value) },
697
+ BooleanValue: { leave: ({ value }) => value ? "true" : "false" },
698
+ NullValue: { leave: () => "null" },
699
+ EnumValue: { leave: ({ value }) => value },
700
+ ListValue: { leave: ({ values }) => "[" + join(values, ", ") + "]" },
701
+ ObjectValue: { leave: ({ fields }) => "{" + join(fields, ", ") + "}" },
702
+ ObjectField: { leave: ({ name, value }) => name + ": " + value },
703
+ Directive: { leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")") },
704
+ NamedType: { leave: ({ name }) => name },
705
+ ListType: { leave: ({ type }) => "[" + type + "]" },
706
+ NonNullType: { leave: ({ type }) => type + "!" },
707
+ SchemaDefinition: { leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join([
708
+ "schema",
709
+ join(directives, " "),
710
+ block(operationTypes)
711
+ ], " ") },
712
+ OperationTypeDefinition: { leave: ({ operation, type }) => operation + ": " + type },
713
+ ScalarTypeDefinition: { leave: ({ description, name, directives }) => wrap("", description, "\n") + join([
714
+ "scalar",
715
+ name,
716
+ join(directives, " ")
717
+ ], " ") },
718
+ ObjectTypeDefinition: { leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join([
719
+ "type",
720
+ name,
721
+ wrap("implements ", join(interfaces, " & ")),
722
+ join(directives, " "),
723
+ block(fields)
724
+ ], " ") },
725
+ FieldDefinition: { leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " ")) },
726
+ InputValueDefinition: { leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join([
727
+ name + ": " + type,
728
+ wrap("= ", defaultValue),
729
+ join(directives, " ")
730
+ ], " ") },
731
+ InterfaceTypeDefinition: { leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join([
732
+ "interface",
733
+ name,
734
+ wrap("implements ", join(interfaces, " & ")),
735
+ join(directives, " "),
736
+ block(fields)
737
+ ], " ") },
738
+ UnionTypeDefinition: { leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join([
739
+ "union",
740
+ name,
741
+ join(directives, " "),
742
+ wrap("= ", join(types, " | "))
743
+ ], " ") },
744
+ EnumTypeDefinition: { leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join([
745
+ "enum",
746
+ name,
747
+ join(directives, " "),
748
+ block(values)
749
+ ], " ") },
750
+ EnumValueDefinition: { leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ") },
751
+ InputObjectTypeDefinition: { leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join([
752
+ "input",
753
+ name,
754
+ join(directives, " "),
755
+ block(fields)
756
+ ], " ") },
757
+ DirectiveDefinition: { leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ") },
758
+ SchemaExtension: { leave: ({ directives, operationTypes }) => join([
759
+ "extend schema",
760
+ join(directives, " "),
761
+ block(operationTypes)
762
+ ], " ") },
763
+ ScalarTypeExtension: { leave: ({ name, directives }) => join([
764
+ "extend scalar",
765
+ name,
766
+ join(directives, " ")
767
+ ], " ") },
768
+ ObjectTypeExtension: { leave: ({ name, interfaces, directives, fields }) => join([
769
+ "extend type",
770
+ name,
771
+ wrap("implements ", join(interfaces, " & ")),
772
+ join(directives, " "),
773
+ block(fields)
774
+ ], " ") },
775
+ InterfaceTypeExtension: { leave: ({ name, interfaces, directives, fields }) => join([
776
+ "extend interface",
777
+ name,
778
+ wrap("implements ", join(interfaces, " & ")),
779
+ join(directives, " "),
780
+ block(fields)
781
+ ], " ") },
782
+ UnionTypeExtension: { leave: ({ name, directives, types }) => join([
783
+ "extend union",
784
+ name,
785
+ join(directives, " "),
786
+ wrap("= ", join(types, " | "))
787
+ ], " ") },
788
+ EnumTypeExtension: { leave: ({ name, directives, values }) => join([
789
+ "extend enum",
790
+ name,
791
+ join(directives, " "),
792
+ block(values)
793
+ ], " ") },
794
+ InputObjectTypeExtension: { leave: ({ name, directives, fields }) => join([
795
+ "extend input",
796
+ name,
797
+ join(directives, " "),
798
+ block(fields)
799
+ ], " ") },
800
+ TypeCoordinate: { leave: ({ name }) => name },
801
+ MemberCoordinate: { leave: ({ name, memberName }) => join([name, wrap(".", memberName)]) },
802
+ ArgumentCoordinate: { leave: ({ name, fieldName, argumentName }) => join([
803
+ name,
804
+ wrap(".", fieldName),
805
+ wrap("(", argumentName, ":)")
806
+ ]) },
807
+ DirectiveCoordinate: { leave: ({ name }) => join(["@", name]) },
808
+ DirectiveArgumentCoordinate: { leave: ({ name, argumentName }) => join([
809
+ "@",
810
+ name,
811
+ wrap("(", argumentName, ":)")
812
+ ]) }
813
+ };
814
+ /**
815
+ * Given maybeArray, print an empty string if it is null or empty, otherwise
816
+ * print all items together separated by separator if provided
817
+ */
818
+ function join(maybeArray, separator = "") {
819
+ var _maybeArray$filter$jo;
820
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
821
+ }
822
+ /**
823
+ * Given array, print each item on its own line, wrapped in an indented `{ }` block.
824
+ */
825
+ function block(array) {
826
+ return wrap("{\n", indent(join(array, "\n")), "\n}");
827
+ }
828
+ /**
829
+ * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.
830
+ */
831
+ function wrap(start, maybeString, end = "") {
832
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
833
+ }
834
+ function indent(str) {
835
+ return wrap(" ", str.replace(/\n/g, "\n "));
836
+ }
837
+ function hasMultilineItems(maybeArray) {
838
+ var _maybeArray$some;
839
+ /* c8 ignore next */
840
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
841
+ }
842
+ //#endregion
240
843
  //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/utilities/valueFromASTUntyped.mjs
241
844
  /**
242
845
  * Produces a JavaScript value given a GraphQL Value AST.
@@ -2558,7 +3161,6 @@ var TypeInfo = class {
2558
3161
  this._enumValue = enumValue;
2559
3162
  break;
2560
3163
  }
2561
- default:
2562
3164
  }
2563
3165
  }
2564
3166
  leave(node) {
@@ -2591,10 +3193,7 @@ var TypeInfo = class {
2591
3193
  this._defaultValueStack.pop();
2592
3194
  this._inputTypeStack.pop();
2593
3195
  break;
2594
- case Kind.ENUM:
2595
- this._enumValue = null;
2596
- break;
2597
- default:
3196
+ case Kind.ENUM: this._enumValue = null;
2598
3197
  }
2599
3198
  }
2600
3199
  };
@@ -2880,6 +3479,7 @@ function getDirectiveLocationForASTPath(ancestors) {
2880
3479
  "kind" in parentNode || invariant(false);
2881
3480
  return parentNode.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation.INPUT_FIELD_DEFINITION : DirectiveLocation.ARGUMENT_DEFINITION;
2882
3481
  }
3482
+ /* c8 ignore next */
2883
3483
  default: invariant(false, "Unexpected kind: " + inspect(appliedTo.kind));
2884
3484
  }
2885
3485
  }
@@ -3454,7 +4054,7 @@ var OrderedPairSet = class {
3454
4054
  }
3455
4055
  add(a, b, weaklyPresent) {
3456
4056
  const map = this._data.get(a);
3457
- if (map === void 0) this._data.set(a, new Map([[b, weaklyPresent]]));
4057
+ if (map === void 0) this._data.set(a, /* @__PURE__ */ new Map([[b, weaklyPresent]]));
3458
4058
  else map.set(b, weaklyPresent);
3459
4059
  }
3460
4060
  };
@@ -3579,6 +4179,7 @@ function extensionKindToTypeName(kind) {
3579
4179
  case Kind.UNION_TYPE_EXTENSION: return "union";
3580
4180
  case Kind.ENUM_TYPE_EXTENSION: return "enum";
3581
4181
  case Kind.INPUT_OBJECT_TYPE_EXTENSION: return "input object";
4182
+ /* c8 ignore next */
3582
4183
  default: invariant(false, "Unexpected kind: " + inspect(kind));
3583
4184
  }
3584
4185
  }
@@ -3729,7 +4330,8 @@ function coerceInputValueImpl(inputValue, type, onError, path) {
3729
4330
  if (isListType(type)) {
3730
4331
  const itemType = type.ofType;
3731
4332
  if (isIterableObject(inputValue)) return Array.from(inputValue, (itemValue, index) => {
3732
- return coerceInputValueImpl(itemValue, itemType, onError, addPath(path, index, void 0));
4333
+ const itemPath = addPath(path, index, void 0);
4334
+ return coerceInputValueImpl(itemValue, itemType, onError, itemPath);
3733
4335
  });
3734
4336
  return [coerceInputValueImpl(inputValue, itemType, onError, path)];
3735
4337
  }
@@ -3903,17 +4505,22 @@ function coerceVariableValues(schema, varDefNodes, inputs, onError) {
3903
4505
  const varName = varDefNode.variable.name.value;
3904
4506
  const varType = typeFromAST(schema, varDefNode.type);
3905
4507
  if (!isInputType(varType)) {
3906
- onError(new GraphQLError(`Variable "$${varName}" expected value of type "${print(varDefNode.type)}" which cannot be used as an input type.`, { nodes: varDefNode.type }));
4508
+ const varTypeStr = print(varDefNode.type);
4509
+ onError(new GraphQLError(`Variable "$${varName}" expected value of type "${varTypeStr}" which cannot be used as an input type.`, { nodes: varDefNode.type }));
3907
4510
  continue;
3908
4511
  }
3909
4512
  if (!hasOwnProperty(inputs, varName)) {
3910
4513
  if (varDefNode.defaultValue) coercedValues[varName] = valueFromAST(varDefNode.defaultValue, varType);
3911
- else if (isNonNullType(varType)) onError(new GraphQLError(`Variable "$${varName}" of required type "${inspect(varType)}" was not provided.`, { nodes: varDefNode }));
4514
+ else if (isNonNullType(varType)) {
4515
+ const varTypeStr = inspect(varType);
4516
+ onError(new GraphQLError(`Variable "$${varName}" of required type "${varTypeStr}" was not provided.`, { nodes: varDefNode }));
4517
+ }
3912
4518
  continue;
3913
4519
  }
3914
4520
  const value = inputs[varName];
3915
4521
  if (value === null && isNonNullType(varType)) {
3916
- onError(new GraphQLError(`Variable "$${varName}" of non-null type "${inspect(varType)}" must not be null.`, { nodes: varDefNode }));
4522
+ const varTypeStr = inspect(varType);
4523
+ onError(new GraphQLError(`Variable "$${varName}" of non-null type "${varTypeStr}" must not be null.`, { nodes: varDefNode }));
3917
4524
  continue;
3918
4525
  }
3919
4526
  coercedValues[varName] = coerceInputValue(value, varType, (path, invalidValue, error) => {
@@ -4213,8 +4820,10 @@ function UniqueDirectivesPerLocationRule(context) {
4213
4820
  } else seenDirectives = Object.create(null);
4214
4821
  for (const directive of node.directives) {
4215
4822
  const directiveName = directive.name.value;
4216
- if (uniqueDirectiveMap[directiveName]) if (seenDirectives[directiveName]) context.reportError(new GraphQLError(`The directive "@${directiveName}" can only be used once at this location.`, { nodes: [seenDirectives[directiveName], directive] }));
4217
- else seenDirectives[directiveName] = directive;
4823
+ if (uniqueDirectiveMap[directiveName]) {
4824
+ if (seenDirectives[directiveName]) context.reportError(new GraphQLError(`The directive "@${directiveName}" can only be used once at this location.`, { nodes: [seenDirectives[directiveName], directive] }));
4825
+ else seenDirectives[directiveName] = directive;
4826
+ }
4218
4827
  }
4219
4828
  } };
4220
4829
  }
@@ -4356,8 +4965,10 @@ function UniqueOperationNamesRule(context) {
4356
4965
  return {
4357
4966
  OperationDefinition(node) {
4358
4967
  const operationName = node.name;
4359
- if (operationName) if (knownOperationNames[operationName.value]) context.reportError(new GraphQLError(`There can be only one operation named "${operationName.value}".`, { nodes: [knownOperationNames[operationName.value], operationName] }));
4360
- else knownOperationNames[operationName.value] = operationName;
4968
+ if (operationName) {
4969
+ if (knownOperationNames[operationName.value]) context.reportError(new GraphQLError(`There can be only one operation named "${operationName.value}".`, { nodes: [knownOperationNames[operationName.value], operationName] }));
4970
+ else knownOperationNames[operationName.value] = operationName;
4971
+ }
4361
4972
  return false;
4362
4973
  },
4363
4974
  FragmentDefinition: () => false
@@ -5287,9 +5898,7 @@ function buildASTSchema(documentAST, options) {
5287
5898
  case "Mutation":
5288
5899
  config.mutation = type;
5289
5900
  break;
5290
- case "Subscription":
5291
- config.subscription = type;
5292
- break;
5901
+ case "Subscription": config.subscription = type;
5293
5902
  }
5294
5903
  const directives = [...config.directives, ...specifiedDirectives.filter((stdDirective) => config.directives.every((directive) => directive.name !== stdDirective.name))];
5295
5904
  return new GraphQLSchema({
@@ -5444,736 +6053,6 @@ function printDescription(def, indentation = "", firstInBlock = true) {
5444
6053
  return (indentation && !firstInBlock ? "\n" + indentation : indentation) + blockString.replace(/\n/g, "\n" + indentation) + "\n";
5445
6054
  }
5446
6055
  //#endregion
5447
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/Amount.js
5448
- var Amount_exports = /* @__PURE__ */ __exportAll({
5449
- config: () => config$16,
5450
- scalar: () => scalar$16,
5451
- schema: () => schema$15,
5452
- stringSchema: () => stringSchema$16,
5453
- type: () => type$16,
5454
- typedef: () => typedef$16
5455
- });
5456
- const type$16 = "{ unit?: string, value?: number }";
5457
- const typedef$16 = "scalar Amount";
5458
- const schema$15 = object({
5459
- unit: string().optional(),
5460
- value: number().finite()
5461
- });
5462
- const stringSchema$16 = "z.object({ unit: z.string().optional(), value: z.number().finite() })";
5463
- const amountValidation = (value) => {
5464
- if (typeof value !== "object" || !value) throw new GraphQLError(`Invalid Amount value: ${JSON.stringify(value)}`);
5465
- const result = schema$15.safeParse(value);
5466
- if (result.success) return result.data;
5467
- throw new GraphQLError(result.error.message);
5468
- };
5469
- const config$16 = {
5470
- name: "Amount",
5471
- description: "A custom scalar that represents a currency amount with its currency type",
5472
- serialize: amountValidation,
5473
- parseValue: amountValidation,
5474
- parseLiteral: (ast) => {
5475
- if (ast.kind !== Kind.OBJECT) throw new GraphQLError("Value must be an object", { nodes: ast });
5476
- const unitField = ast.fields.find((f) => f.name.value === "unit");
5477
- const valueField = ast.fields.find((f) => f.name.value === "value");
5478
- if (unitField && unitField.value.kind !== Kind.STRING) throw new GraphQLError("unit must be a valid string value", { nodes: ast });
5479
- if (!valueField || valueField.value.kind !== Kind.FLOAT) throw new GraphQLError("value must be a valid float value", { nodes: ast });
5480
- return amountValidation({
5481
- unit: unitField?.value?.value,
5482
- value: parseFloat(valueField.value.value)
5483
- });
5484
- }
5485
- };
5486
- const scalar$16 = new GraphQLScalarType(config$16);
5487
- //#endregion
5488
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/AmountCrypto.js
5489
- var AmountCrypto_exports = /* @__PURE__ */ __exportAll({
5490
- NUMERIC_VALUE_REGEX: () => NUMERIC_VALUE_REGEX$1,
5491
- config: () => config$15,
5492
- scalar: () => scalar$15,
5493
- schema: () => schema$14,
5494
- stringSchema: () => stringSchema$15,
5495
- type: () => type$15,
5496
- typedef: () => typedef$15
5497
- });
5498
- const NUMERIC_VALUE_REGEX$1 = /^\d+(\.\d+)?$/;
5499
- const type$15 = "{ unit: string, value: string }";
5500
- const typedef$15 = "scalar Amount_Crypto";
5501
- const schema$14 = object({
5502
- unit: string(),
5503
- value: string()
5504
- });
5505
- const stringSchema$15 = "z.object({ unit: z.string(), value: z.string() })";
5506
- const amountCryptoValidation = (value) => {
5507
- if (typeof value !== "object" || !value) throw new GraphQLError(`Invalid Amount Crypto value: ${JSON.stringify(value)}`);
5508
- const result = schema$14.safeParse(value);
5509
- if (result.success) return result.data;
5510
- throw new GraphQLError(result.error.message);
5511
- };
5512
- const config$15 = {
5513
- name: "Amount_Crypto",
5514
- description: "A custom scalar that represents a cryptocurrency amount with its currency type",
5515
- serialize: amountCryptoValidation,
5516
- parseValue: amountCryptoValidation,
5517
- parseLiteral: (ast) => {
5518
- if (ast.kind !== Kind.OBJECT) throw new GraphQLError("Value must be an object", { nodes: ast });
5519
- const unitField = ast.fields.find((f) => f.name.value === "unit");
5520
- const valueField = ast.fields.find((f) => f.name.value === "value");
5521
- if (!unitField || unitField.value.kind !== Kind.STRING) throw new GraphQLError("unit must be a valid string value", { nodes: ast });
5522
- if (!valueField || valueField.value.kind !== Kind.STRING) throw new GraphQLError("value must be a valid string value", { nodes: ast });
5523
- if (!NUMERIC_VALUE_REGEX$1.test(valueField.value.value)) throw new GraphQLError("value must be a valid numeric string (e.g., \"123\" or \"123.45\")", { nodes: ast });
5524
- return amountCryptoValidation({
5525
- unit: unitField.value.value,
5526
- value: valueField.value.value
5527
- });
5528
- }
5529
- };
5530
- const scalar$15 = new GraphQLScalarType(config$15);
5531
- //#endregion
5532
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/AmountCurrency.js
5533
- var AmountCurrency_exports = /* @__PURE__ */ __exportAll({
5534
- NUMERIC_VALUE_REGEX: () => NUMERIC_VALUE_REGEX,
5535
- config: () => config$14,
5536
- scalar: () => scalar$14,
5537
- schema: () => schema$13,
5538
- stringSchema: () => stringSchema$14,
5539
- type: () => type$14,
5540
- typedef: () => typedef$14
5541
- });
5542
- const NUMERIC_VALUE_REGEX = /^\d+(\.\d+)?$/;
5543
- const type$14 = "{ unit: string, value: string }";
5544
- const typedef$14 = "scalar Amount_Currency";
5545
- const schema$13 = object({
5546
- unit: string(),
5547
- value: string()
5548
- });
5549
- const stringSchema$14 = "z.object({ unit: z.string(), value: z.string()})";
5550
- const amountCurrencyValidation = (value) => {
5551
- if (typeof value !== "object" || !value) throw new GraphQLError(`Invalid Amount Currency value: ${JSON.stringify(value)}`);
5552
- const result = schema$13.safeParse(value);
5553
- if (result.success) return result.data;
5554
- throw new GraphQLError(result.error.message);
5555
- };
5556
- const config$14 = {
5557
- name: "Amount_Currency",
5558
- description: "A custom scalar that represents a currency amount with its currency type",
5559
- serialize: amountCurrencyValidation,
5560
- parseValue: amountCurrencyValidation,
5561
- parseLiteral: (ast) => {
5562
- if (ast.kind !== Kind.OBJECT) throw new GraphQLError("Value must be an object", { nodes: ast });
5563
- const unitField = ast.fields.find((f) => f.name.value === "unit");
5564
- const valueField = ast.fields.find((f) => f.name.value === "value");
5565
- if (!unitField || unitField.value.kind !== Kind.STRING) throw new GraphQLError("unit must be a valid string value", { nodes: ast });
5566
- if (!valueField || valueField.value.kind !== Kind.STRING) throw new GraphQLError("value must be a valid string value", { nodes: ast });
5567
- if (!NUMERIC_VALUE_REGEX.test(valueField.value.value)) throw new GraphQLError("value must be a valid numeric string (e.g., \"123\" or \"123.45\")", { nodes: ast });
5568
- return amountCurrencyValidation({
5569
- unit: unitField.value.value,
5570
- value: valueField.value.value
5571
- });
5572
- }
5573
- };
5574
- const scalar$14 = new GraphQLScalarType(config$14);
5575
- //#endregion
5576
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/AmountFiat.js
5577
- var AmountFiat_exports = /* @__PURE__ */ __exportAll({
5578
- config: () => config$13,
5579
- scalar: () => scalar$13,
5580
- schema: () => schema$12,
5581
- stringSchema: () => stringSchema$13,
5582
- type: () => type$13,
5583
- typedef: () => typedef$13
5584
- });
5585
- const type$13 = "{ unit: string, value: number }";
5586
- const typedef$13 = "scalar Amount_Fiat";
5587
- const schema$12 = object({
5588
- unit: string(),
5589
- value: number().finite()
5590
- });
5591
- const stringSchema$13 = "z.object({ unit: z.string(), value: z.number().finite() })";
5592
- const amountFiatValidation = (value) => {
5593
- if (typeof value !== "object" || !value) throw new GraphQLError(`Invalid Amount Fiat value: ${JSON.stringify(value)}`);
5594
- const result = schema$12.safeParse(value);
5595
- if (result.success) return result.data;
5596
- throw new GraphQLError(result.error.message);
5597
- };
5598
- const config$13 = {
5599
- name: "Amount_Fiat",
5600
- description: "A custom scalar that represents a currency amount with its currency type",
5601
- serialize: amountFiatValidation,
5602
- parseValue: amountFiatValidation,
5603
- parseLiteral: (ast) => {
5604
- if (ast.kind !== Kind.OBJECT) throw new GraphQLError("Value must be an object", { nodes: ast });
5605
- const unitField = ast.fields.find((f) => f.name.value === "unit");
5606
- const valueField = ast.fields.find((f) => f.name.value === "value");
5607
- if (!unitField || unitField.value.kind !== Kind.STRING) throw new GraphQLError("unit must be a valid string value", { nodes: ast });
5608
- if (!valueField || valueField.value.kind !== Kind.FLOAT) throw new GraphQLError("value must be a valid float value", { nodes: ast });
5609
- return amountFiatValidation({
5610
- unit: unitField.value.value,
5611
- value: parseFloat(valueField.value.value)
5612
- });
5613
- }
5614
- };
5615
- const scalar$13 = new GraphQLScalarType(config$13);
5616
- //#endregion
5617
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/AmountMoney.js
5618
- var AmountMoney_exports = /* @__PURE__ */ __exportAll({
5619
- config: () => config$12,
5620
- scalar: () => scalar$12,
5621
- schema: () => schema$11,
5622
- stringSchema: () => stringSchema$12,
5623
- type: () => type$12,
5624
- typedef: () => typedef$12
5625
- });
5626
- const type$12 = "number";
5627
- const typedef$12 = "scalar Amount_Money";
5628
- const schema$11 = number();
5629
- const stringSchema$12 = "z.number()";
5630
- const amountMoneyValidation = (value) => {
5631
- if (typeof value !== "number") throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);
5632
- if (!Number.isFinite(value)) throw new GraphQLError(`Value is not a finite number: ${value}`);
5633
- const result = schema$11.safeParse(value);
5634
- if (result.success) return result.data;
5635
- throw new GraphQLError(result.error.message);
5636
- };
5637
- const config$12 = {
5638
- name: "Amount_Money",
5639
- description: "A custom scalar that represents a monetary amount in a currency",
5640
- serialize: amountMoneyValidation,
5641
- parseValue: amountMoneyValidation,
5642
- parseLiteral: (value) => {
5643
- if (value.kind !== Kind.FLOAT) throw new GraphQLError("Value is not a float type", { nodes: value });
5644
- return amountMoneyValidation(parseFloat(value.value));
5645
- }
5646
- };
5647
- const scalar$12 = new GraphQLScalarType(config$12);
5648
- //#endregion
5649
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/AmountPercentage.js
5650
- var AmountPercentage_exports = /* @__PURE__ */ __exportAll({
5651
- config: () => config$11,
5652
- scalar: () => scalar$11,
5653
- schema: () => schema$10,
5654
- stringSchema: () => stringSchema$11,
5655
- type: () => type$11,
5656
- typedef: () => typedef$11
5657
- });
5658
- const type$11 = "number";
5659
- const typedef$11 = "scalar Amount_Percentage";
5660
- const schema$10 = number();
5661
- const stringSchema$11 = "z.number()";
5662
- const amountPercentageValidation = (value) => {
5663
- if (typeof value !== "number") throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);
5664
- if (!Number.isFinite(value)) throw new GraphQLError(`Value is not a finite number: ${value}`);
5665
- const result = schema$10.safeParse(value);
5666
- if (result.success) return result.data;
5667
- throw new GraphQLError(result.error.message);
5668
- };
5669
- const config$11 = {
5670
- name: "Amount_Percentage",
5671
- description: "",
5672
- serialize: amountPercentageValidation,
5673
- parseValue: amountPercentageValidation,
5674
- parseLiteral: (value) => {
5675
- if (value.kind !== Kind.FLOAT) throw new GraphQLError("some error message", { nodes: value });
5676
- return amountPercentageValidation(parseFloat(value.value));
5677
- }
5678
- };
5679
- const scalar$11 = new GraphQLScalarType(config$11);
5680
- //#endregion
5681
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/AmountTokens.js
5682
- var AmountTokens_exports = /* @__PURE__ */ __exportAll({
5683
- config: () => config$10,
5684
- scalar: () => scalar$10,
5685
- schema: () => schema$9,
5686
- stringSchema: () => stringSchema$10,
5687
- type: () => type$10,
5688
- typedef: () => typedef$10
5689
- });
5690
- const type$10 = "number";
5691
- const typedef$10 = "scalar Amount_Tokens";
5692
- const schema$9 = number();
5693
- const stringSchema$10 = "z.number()";
5694
- const amountTokensValidation = (value) => {
5695
- if (typeof value !== "number") throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);
5696
- if (!Number.isFinite(value)) throw new GraphQLError(`Value is not a finite number: ${value}`);
5697
- const result = schema$9.safeParse(value);
5698
- if (result.success) return result.data;
5699
- throw new GraphQLError(result.error.message);
5700
- };
5701
- const config$10 = {
5702
- name: "Amount_Tokens",
5703
- description: "A custom scalar that represents an amount of tokens",
5704
- serialize: amountTokensValidation,
5705
- parseValue: amountTokensValidation,
5706
- parseLiteral: (value) => {
5707
- if (value.kind !== Kind.FLOAT) throw new GraphQLError("some error message", { nodes: value });
5708
- return amountTokensValidation(parseFloat(value.value));
5709
- }
5710
- };
5711
- const scalar$10 = new GraphQLScalarType(config$10);
5712
- //#endregion
5713
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/Currency.js
5714
- var Currency_exports = /* @__PURE__ */ __exportAll({
5715
- config: () => config$9,
5716
- scalar: () => scalar$9,
5717
- schema: () => schema$8,
5718
- stringSchema: () => stringSchema$9,
5719
- type: () => type$9,
5720
- typedef: () => typedef$9
5721
- });
5722
- const type$9 = "string";
5723
- const typedef$9 = "scalar Currency";
5724
- const schema$8 = string();
5725
- const stringSchema$9 = "z.string()";
5726
- const currencyValidation = (value) => {
5727
- if (typeof value !== "string") throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);
5728
- const result = schema$8.safeParse(value);
5729
- if (result.success) return result.data;
5730
- throw new GraphQLError(result.error.message);
5731
- };
5732
- const config$9 = {
5733
- name: "Currency",
5734
- description: "A custom scalar that represents a Currency Code string",
5735
- serialize: currencyValidation,
5736
- parseValue: currencyValidation,
5737
- parseLiteral: (value) => {
5738
- if (value.kind !== Kind.STRING) throw new GraphQLError(`Value is not a valid string: ${value.kind}`, { nodes: value });
5739
- return currencyValidation(value.value);
5740
- }
5741
- };
5742
- const scalar$9 = new GraphQLScalarType(config$9);
5743
- //#endregion
5744
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/Date.js
5745
- var Date_exports = /* @__PURE__ */ __exportAll({
5746
- config: () => config$8,
5747
- scalar: () => scalar$8,
5748
- schema: () => schema$7,
5749
- stringSchema: () => stringSchema$8,
5750
- type: () => type$8,
5751
- typedef: () => typedef$8
5752
- });
5753
- const type$8 = "string";
5754
- const typedef$8 = "scalar Date";
5755
- const schema$7 = datetime();
5756
- const stringSchema$8 = "z.iso.datetime()";
5757
- const datetimeValidation$1 = (value) => {
5758
- if (typeof value !== "string") throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);
5759
- const result = schema$7.safeParse(value);
5760
- if (result.success) return result.data;
5761
- throw new GraphQLError(result.error.message);
5762
- };
5763
- const config$8 = {
5764
- name: "Date",
5765
- description: "A custom scalar that represents a datetime in ISO 8601 format (Time: 00:00:00)",
5766
- serialize: datetimeValidation$1,
5767
- parseValue: datetimeValidation$1,
5768
- parseLiteral: (value) => {
5769
- if (value.kind !== Kind.STRING) throw new GraphQLError("Value is not an string", { nodes: value });
5770
- return datetimeValidation$1(value.value);
5771
- }
5772
- };
5773
- const scalar$8 = new GraphQLScalarType(config$8);
5774
- //#endregion
5775
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/DateTime.js
5776
- var DateTime_exports = /* @__PURE__ */ __exportAll({
5777
- config: () => config$7,
5778
- scalar: () => scalar$7,
5779
- schema: () => schema$6,
5780
- stringSchema: () => stringSchema$7,
5781
- type: () => type$7,
5782
- typedef: () => typedef$7
5783
- });
5784
- const type$7 = "string";
5785
- const typedef$7 = "scalar DateTime";
5786
- const schema$6 = datetime();
5787
- const stringSchema$7 = "z.iso.datetime()";
5788
- const datetimeValidation = (value) => {
5789
- if (typeof value !== "string") throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);
5790
- const result = schema$6.safeParse(value);
5791
- if (result.success) return result.data;
5792
- throw new GraphQLError(result.error.message);
5793
- };
5794
- const config$7 = {
5795
- name: "DateTime",
5796
- description: "A custom scalar that represents a datetime in ISO 8601 format",
5797
- serialize: datetimeValidation,
5798
- parseValue: datetimeValidation,
5799
- parseLiteral: (value) => {
5800
- if (value.kind !== Kind.STRING) throw new GraphQLError("Value is not an string", { nodes: value });
5801
- return datetimeValidation(value.value);
5802
- }
5803
- };
5804
- const scalar$7 = new GraphQLScalarType(config$7);
5805
- //#endregion
5806
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/EmailAddress.js
5807
- var EmailAddress_exports = /* @__PURE__ */ __exportAll({
5808
- config: () => config$6,
5809
- scalar: () => scalar$6,
5810
- schema: () => schema$5,
5811
- stringSchema: () => stringSchema$6,
5812
- type: () => type$6,
5813
- typedef: () => typedef$6
5814
- });
5815
- const type$6 = "string";
5816
- const typedef$6 = "scalar EmailAddress";
5817
- const schema$5 = email();
5818
- const stringSchema$6 = "z.email()";
5819
- const emailValidation = (value) => {
5820
- if (typeof value !== "string") throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);
5821
- const result = schema$5.safeParse(value);
5822
- if (result.success) return result.data;
5823
- throw new GraphQLError(result.error.message);
5824
- };
5825
- const config$6 = {
5826
- name: "EmailAddress",
5827
- description: "A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/.",
5828
- serialize: emailValidation,
5829
- parseValue: emailValidation,
5830
- parseLiteral: (value) => {
5831
- if (value.kind !== Kind.STRING) throw new GraphQLError(`Can only validate strings as email addresses but got a: ${value.kind}`, { nodes: value });
5832
- return emailValidation(value.value);
5833
- }
5834
- };
5835
- const scalar$6 = new GraphQLScalarType(config$6);
5836
- //#endregion
5837
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/EthereumAddress.js
5838
- var EthereumAddress_exports = /* @__PURE__ */ __exportAll({
5839
- config: () => config$5,
5840
- scalar: () => scalar$5,
5841
- schema: () => schema$4,
5842
- stringSchema: () => stringSchema$5,
5843
- type: () => type$5,
5844
- typedef: () => typedef$5
5845
- });
5846
- const type$5 = "string";
5847
- const typedef$5 = "scalar EthereumAddress";
5848
- const schema$4 = string().regex(/^0x[a-fA-F0-9]{40}$/, { message: "Invalid Ethereum address format" });
5849
- const stringSchema$5 = "z.string().regex(/^0x[a-fA-F0-9]{40}$/, { message: 'Invalid Ethereum address format' })";
5850
- const addressValidation = (value) => {
5851
- if (typeof value !== "string") throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);
5852
- const result = schema$4.safeParse(value);
5853
- if (result.success) return result.data;
5854
- throw new GraphQLError(result.error.message);
5855
- };
5856
- const config$5 = {
5857
- name: "EthereumAddress",
5858
- description: "A custom scalar representing an Ethereum address, validated as a 42-character hexadecimal string prefixed with \"0x\"",
5859
- serialize: addressValidation,
5860
- parseValue: addressValidation,
5861
- parseLiteral: (value) => {
5862
- if (value.kind !== Kind.STRING) throw new GraphQLError("some error message", { nodes: value });
5863
- return addressValidation(value.value);
5864
- }
5865
- };
5866
- const scalar$5 = new GraphQLScalarType(config$5);
5867
- //#endregion
5868
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/OID.js
5869
- var OID_exports = /* @__PURE__ */ __exportAll({
5870
- config: () => config$4,
5871
- scalar: () => scalar$4,
5872
- schema: () => schema$3,
5873
- stringSchema: () => stringSchema$4,
5874
- type: () => type$4,
5875
- typedef: () => typedef$4
5876
- });
5877
- const type$4 = "string";
5878
- const typedef$4 = "scalar OID";
5879
- const schema$3 = string();
5880
- const stringSchema$4 = "z.string()";
5881
- const oIdValidation = (value) => {
5882
- if (typeof value !== "string") throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);
5883
- const result = schema$3.safeParse(value);
5884
- if (result.success) return result.data;
5885
- throw new GraphQLError(result.error.message);
5886
- };
5887
- const config$4 = {
5888
- name: "OID",
5889
- description: "A custom scalar that represents a OID string",
5890
- serialize: oIdValidation,
5891
- parseValue: oIdValidation,
5892
- parseLiteral: (value) => {
5893
- if (value.kind !== Kind.STRING) throw new GraphQLError(`Value is not a valid string: ${value.kind}`, { nodes: value });
5894
- return oIdValidation(value.value);
5895
- }
5896
- };
5897
- const scalar$4 = new GraphQLScalarType(config$4);
5898
- //#endregion
5899
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/OLabel.js
5900
- var OLabel_exports = /* @__PURE__ */ __exportAll({
5901
- config: () => config$3,
5902
- scalar: () => scalar$3,
5903
- schema: () => schema$2,
5904
- stringSchema: () => stringSchema$3,
5905
- type: () => type$3,
5906
- typedef: () => typedef$3
5907
- });
5908
- const type$3 = "string";
5909
- const typedef$3 = "scalar OLabel";
5910
- const schema$2 = string();
5911
- const stringSchema$3 = "z.string()";
5912
- const oLabelValidation = (value) => {
5913
- if (typeof value !== "string") throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);
5914
- const result = schema$2.safeParse(value);
5915
- if (result.success) return result.data;
5916
- throw new GraphQLError(result.error.message);
5917
- };
5918
- const config$3 = {
5919
- name: "OLabel",
5920
- description: "A custom scalar that represents a OLabel string",
5921
- serialize: oLabelValidation,
5922
- parseValue: oLabelValidation,
5923
- parseLiteral: (value) => {
5924
- if (value.kind !== Kind.STRING) throw new GraphQLError(`Value is not a valid string: ${value.kind}`, { nodes: value });
5925
- return oLabelValidation(value.value);
5926
- }
5927
- };
5928
- const scalar$3 = new GraphQLScalarType(config$3);
5929
- //#endregion
5930
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/PHID.js
5931
- var PHID_exports = /* @__PURE__ */ __exportAll({
5932
- config: () => config$2,
5933
- scalar: () => scalar$2,
5934
- schema: () => schema$1,
5935
- stringSchema: () => stringSchema$2,
5936
- type: () => type$2,
5937
- typedef: () => typedef$2
5938
- });
5939
- const type$2 = "string";
5940
- const typedef$2 = "scalar PHID";
5941
- const schema$1 = string();
5942
- const stringSchema$2 = "z.string()";
5943
- const phidlValidation = (value) => {
5944
- if (typeof value !== "string") throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);
5945
- const result = schema$1.safeParse(value);
5946
- if (result.success) return result.data;
5947
- throw new GraphQLError(result.error.message);
5948
- };
5949
- const config$2 = {
5950
- name: "PHID",
5951
- description: "A custom scalar that represents a PowerhouseID string",
5952
- serialize: phidlValidation,
5953
- parseValue: phidlValidation,
5954
- parseLiteral: (value) => {
5955
- if (value.kind !== Kind.STRING) throw new GraphQLError(`Value is not a valid string: ${value.kind}`, { nodes: value });
5956
- return phidlValidation(value.value);
5957
- }
5958
- };
5959
- const scalar$2 = new GraphQLScalarType(config$2);
5960
- //#endregion
5961
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/URL.js
5962
- var URL_exports = /* @__PURE__ */ __exportAll({
5963
- config: () => config$1,
5964
- scalar: () => scalar$1,
5965
- schema: () => schema,
5966
- stringSchema: () => stringSchema$1,
5967
- type: () => type$1,
5968
- typedef: () => typedef$1
5969
- });
5970
- const type$1 = "string";
5971
- const typedef$1 = "scalar URL";
5972
- const schema = url();
5973
- const stringSchema$1 = "z.url()";
5974
- const urlValidation = (value) => {
5975
- if (typeof value !== "string") throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);
5976
- const result = schema.safeParse(value);
5977
- if (result.success) return result.data;
5978
- throw new GraphQLError(result.error.message);
5979
- };
5980
- const config$1 = {
5981
- name: "URL",
5982
- description: "A custom scalar that represents a URL string",
5983
- serialize: urlValidation,
5984
- parseValue: urlValidation,
5985
- parseLiteral: (value) => {
5986
- if (value.kind !== Kind.STRING) throw new GraphQLError("Value is not an string", { nodes: value });
5987
- return urlValidation(value.value);
5988
- }
5989
- };
5990
- const scalar$1 = new GraphQLScalarType(config$1);
5991
- //#endregion
5992
- //#region ../../node_modules/.pnpm/graphql-upload@17.0.0_@types+express@4.17.25_graphql@16.12.0/node_modules/graphql-upload/Upload.mjs
5993
- /**
5994
- * @import GraphQLUpload from "./GraphQLUpload.mjs"
5995
- * @import processRequest, { FileUpload } from "./processRequest.mjs"
5996
- */
5997
- /**
5998
- * A file expected to be uploaded as it was declared in the `map` field of a
5999
- * [GraphQL multipart request](https://github.com/jaydenseric/graphql-multipart-request-spec).
6000
- * The {@linkcode processRequest} function places references to an instance of
6001
- * this class wherever the file is expected in the GraphQL operation. The scalar
6002
- * {@linkcode GraphQLUpload} derives it’s value from {@linkcode Upload.promise}.
6003
- */
6004
- var Upload = class {
6005
- constructor() {
6006
- /**
6007
- * Promise that resolves file upload details. This should only be utilized
6008
- * by {@linkcode GraphQLUpload}.
6009
- * @type {Promise<FileUpload>}
6010
- */
6011
- this.promise = new Promise((resolve, reject) => {
6012
- /**
6013
- * Resolves the upload promise with the file upload details. This should
6014
- * only be utilized by {@linkcode processRequest}.
6015
- * @param {FileUpload} file File upload details.
6016
- */
6017
- this.resolve = (file) => {
6018
- /**
6019
- * The file upload details, available when the
6020
- * {@linkcode Upload.promise} resolves. This should only be utilized by
6021
- * {@linkcode processRequest}.
6022
- * @type {FileUpload | undefined}
6023
- */
6024
- this.file = file;
6025
- resolve(file);
6026
- };
6027
- /**
6028
- * Rejects the upload promise with an error. This should only be
6029
- * utilized by {@linkcode processRequest}.
6030
- * @param {Error} error Error instance.
6031
- */
6032
- this.reject = reject;
6033
- });
6034
- this.promise.catch(() => {});
6035
- }
6036
- };
6037
- //#endregion
6038
- //#region ../../node_modules/.pnpm/graphql-upload@17.0.0_@types+express@4.17.25_graphql@16.12.0/node_modules/graphql-upload/GraphQLUpload.mjs
6039
- /** @typedef {import("./processRequest.mjs").FileUpload} FileUpload */
6040
- /**
6041
- * A GraphQL scalar `Upload` that can be used in a
6042
- * [`GraphQLSchema`](https://graphql.org/graphql-js/type/#graphqlschema). It’s
6043
- * value in resolvers is a promise that resolves
6044
- * {@link FileUpload file upload details} for processing and storage.
6045
- * @example
6046
- * A schema built using the function
6047
- * [`makeExecutableSchema`](https://www.graphql-tools.com/docs/api/modules/schema_src#makeexecutableschema)
6048
- * from [`@graphql-tools/schema`](https://npm.im/@graphql-tools/schema):
6049
- *
6050
- * ```js
6051
- * import { makeExecutableSchema } from "@graphql-tools/schema/makeExecutableSchema";
6052
- * import GraphQLUpload from "graphql-upload/GraphQLUpload.mjs";
6053
- *
6054
- * const schema = makeExecutableSchema({
6055
- * typeDefs: `
6056
- * scalar Upload
6057
- * `,
6058
- * resolvers: {
6059
- * Upload: GraphQLUpload,
6060
- * },
6061
- * });
6062
- * ```
6063
- * @example
6064
- * A manually constructed schema with an image upload mutation:
6065
- *
6066
- * ```js
6067
- * import { GraphQLBoolean, GraphQLObjectType, GraphQLSchema } from "graphql";
6068
- * import GraphQLUpload from "graphql-upload/GraphQLUpload.mjs";
6069
- *
6070
- * const schema = new GraphQLSchema({
6071
- * mutation: new GraphQLObjectType({
6072
- * name: "Mutation",
6073
- * fields: {
6074
- * uploadImage: {
6075
- * description: "Uploads an image.",
6076
- * type: GraphQLBoolean,
6077
- * args: {
6078
- * image: {
6079
- * description: "Image file.",
6080
- * type: GraphQLUpload,
6081
- * },
6082
- * },
6083
- * async resolve(parent, { image }) {
6084
- * const { filename, mimetype, createReadStream } = await image;
6085
- * const stream = createReadStream();
6086
- * // Promisify the stream and store the file, then…
6087
- * return true;
6088
- * },
6089
- * },
6090
- * },
6091
- * }),
6092
- * });
6093
- * ```
6094
- * @example
6095
- * In a [TypeScript](https://typescriptlang.org) module, how to import the type
6096
- * for the {@link FileUpload file upload details} that the
6097
- * {@linkcode GraphQLUpload} scalar resolver value promise resolves:
6098
- *
6099
- * ```ts
6100
- * import type { FileUpload } from "graphql-upload/processRequest.mjs";
6101
- * ```
6102
- */
6103
- const GraphQLUpload = new GraphQLScalarType({
6104
- name: "Upload",
6105
- description: "The `Upload` scalar type represents a file upload.",
6106
- parseValue(value) {
6107
- if (value instanceof Upload) return value.promise;
6108
- throw new GraphQLError("Upload value invalid.");
6109
- },
6110
- parseLiteral(node) {
6111
- throw new GraphQLError("Upload literal unsupported.", { nodes: node });
6112
- },
6113
- serialize() {
6114
- throw new GraphQLError("Upload serialization unsupported.");
6115
- }
6116
- });
6117
- //#endregion
6118
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/File.js
6119
- var File_exports = /* @__PURE__ */ __exportAll({
6120
- config: () => config,
6121
- scalar: () => scalar,
6122
- stringSchema: () => stringSchema,
6123
- type: () => type,
6124
- typedef: () => typedef
6125
- });
6126
- const type = "File";
6127
- const typedef = "scalar Upload";
6128
- const config = {
6129
- name: "Upload",
6130
- description: "A custom scalar that represents a file upload"
6131
- };
6132
- const stringSchema = "z.any()";
6133
- const scalar = GraphQLUpload;
6134
- //#endregion
6135
- //#region ../../node_modules/.pnpm/@powerhousedao+document-engineering@1.40.5_@types+express@4.17.25_@types+react-dom@19.2_75e28b6ec666f63b132a491ff3a6fdf7/node_modules/@powerhousedao/document-engineering/dist/src/scalars/graphql/scalars.js
6136
- const customScalars = {
6137
- Amount: Amount_exports,
6138
- AmountCrypto: AmountCrypto_exports,
6139
- AmountCurrency: AmountCurrency_exports,
6140
- AmountFiat: AmountFiat_exports,
6141
- AmountMoney: AmountMoney_exports,
6142
- AmountPercentage: AmountPercentage_exports,
6143
- AmountTokens: AmountTokens_exports,
6144
- Currency: Currency_exports,
6145
- DateScalar: Date_exports,
6146
- DateTime: DateTime_exports,
6147
- EmailAddress: EmailAddress_exports,
6148
- EthereumAddress: EthereumAddress_exports,
6149
- File: File_exports,
6150
- OID: OID_exports,
6151
- OLabel: OLabel_exports,
6152
- PHID: PHID_exports,
6153
- URLScalar: URL_exports
6154
- };
6155
- const typeDefs = [
6156
- typedef$10,
6157
- typedef$5,
6158
- typedef$11,
6159
- typedef$6,
6160
- typedef$8,
6161
- typedef$7,
6162
- typedef$1,
6163
- typedef$12,
6164
- typedef$3,
6165
- typedef$9,
6166
- typedef$2,
6167
- typedef$4,
6168
- typedef$13,
6169
- typedef$14,
6170
- typedef$15,
6171
- typedef$16,
6172
- typedef
6173
- ];
6174
- config$10.name, config$5.name, config$6.name, config$11.name, config$8.name, config$7.name, config$1.name, config$12.name, config$3.name, config$9.name, config$2.name, config$4.name, config$13.name, config$14.name, config$15.name, config$16.name, config.name;
6175
- config$10.name, config$5.name, config$6.name, config$11.name, config$8.name, config$7.name, config$1.name, config$12.name, config$3.name, config$9.name, config$2.name, config$4.name, config$13.name, config$14.name, config$15.name, config$16.name, config.name;
6176
- //#endregion
6177
6056
  //#region editors/document-model-editor/constants/documents.ts
6178
6057
  const hiddenQueryTypeDefDoc = `type Query {
6179
6058
  _hidden: String
@@ -6183,6 +6062,6 @@ const typeDefsDoc = typeDefs.join("\n");
6183
6062
  const initialSchemaStr = printSchema(buildSchema(`${hiddenQueryTypeDefDoc}\n${typeDefsDoc}`));
6184
6063
  const updateTimeout = 5e3;
6185
6064
  //#endregion
6186
- export { getNamedType as $, validateSchema as A, GraphQLInt as B, NoUnusedFragmentsRule as C, KnownDirectivesRule as D, KnownFragmentNamesRule as E, GraphQLDirective as F, GraphQLInputObjectType as G, isSpecifiedScalarType as H, isSpecifiedDirective as I, GraphQLNonNull as J, GraphQLInterfaceType as K, GraphQLBoolean as L, SchemaMetaFieldDef as M, TypeMetaFieldDef as N, FragmentsOnCompositeTypesRule as O, TypeNameMetaFieldDef as P, assertAbstractType as Q, GraphQLFloat as R, PossibleTypeExtensionsRule as S, KnownTypeNamesRule as T, doTypesOverlap as U, GraphQLString as V, GraphQLEnumType as W, GraphQLScalarType as X, GraphQLObjectType as Y, GraphQLUnionType as Z, UniqueDirectivesPerLocationRule as _, customScalars as a, isInputType as at, getVariableValues as b, buildSchema as c, isListType as ct, UniqueVariableNamesRule as d, isObjectType as dt, getNullableType as et, UniqueTypeNamesRule as f, isOutputType as ft, UniqueEnumValueNamesRule as g, UniqueFieldDefinitionNamesRule as h, updateTimeout as i, isInputObjectType as it, GraphQLSchema as j, ExecutableDefinitionsRule as k, validate as l, isNamedType as lt, UniqueInputFieldNamesRule as m, isUnionType as mt, initialSchemaStr as n, isCompositeType as nt, printSchema as o, isInterfaceType as ot, UniqueOperationTypesRule as p, isScalarType as pt, GraphQLList as q, typeDefsDoc as r, isEnumType as rt, buildASTSchema as s, isLeafType as st, hiddenQueryTypeDefDoc as t, isAbstractType as tt, specifiedRules as u, isNonNullType as ut, UniqueDirectiveNamesRule as v, LoneSchemaDefinitionRule as w, ProvidedRequiredArgumentsRule as x, UniqueArgumentNamesRule as y, GraphQLID as z };
6065
+ export { getNullableType as $, GraphQLSchema as A, GraphQLString as B, LoneSchemaDefinitionRule as C, FragmentsOnCompositeTypesRule as D, KnownDirectivesRule as E, isSpecifiedDirective as F, GraphQLInterfaceType as G, doTypesOverlap as H, GraphQLBoolean as I, GraphQLObjectType as J, GraphQLList as K, GraphQLFloat as L, TypeMetaFieldDef as M, TypeNameMetaFieldDef as N, ExecutableDefinitionsRule as O, GraphQLDirective as P, getNamedType as Q, GraphQLID as R, NoUnusedFragmentsRule as S, KnownFragmentNamesRule as T, GraphQLEnumType as U, isSpecifiedScalarType as V, GraphQLInputObjectType as W, GraphQLUnionType as X, GraphQLScalarType as Y, assertAbstractType as Z, UniqueDirectiveNamesRule as _, printSchema as a, isInterfaceType as at, ProvidedRequiredArgumentsRule as b, validate as c, isNamedType as ct, UniqueTypeNamesRule as d, isOutputType as dt, isAbstractType as et, UniqueOperationTypesRule as f, isScalarType as ft, UniqueDirectivesPerLocationRule as g, visit as gt, UniqueEnumValueNamesRule as h, BREAK as ht, updateTimeout as i, isInputType as it, SchemaMetaFieldDef as j, validateSchema as k, specifiedRules as l, isNonNullType as lt, UniqueFieldDefinitionNamesRule as m, print as mt, initialSchemaStr as n, isEnumType as nt, buildASTSchema as o, isLeafType as ot, UniqueInputFieldNamesRule as p, isUnionType as pt, GraphQLNonNull as q, typeDefsDoc as r, isInputObjectType as rt, buildSchema as s, isListType as st, hiddenQueryTypeDefDoc as t, isCompositeType as tt, UniqueVariableNamesRule as u, isObjectType as ut, UniqueArgumentNamesRule as v, KnownTypeNamesRule as w, PossibleTypeExtensionsRule as x, getVariableValues as y, GraphQLInt as z };
6187
6066
 
6188
- //# sourceMappingURL=documents-J_l59mSV.js.map
6067
+ //# sourceMappingURL=documents-CRzouuNR.js.map