@powerhousedao/powerhouse-vetra-packages 6.1.0-dev.2 → 6.1.0-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/assets/entry-Bzani6_n.js +313 -0
- package/dist/browser/assets/projection-entry-Bpu-8SnI.js +406 -0
- package/dist/browser/{dist-DOMEWT3x.js → connect-ZnLjvmRt.js} +13013 -10302
- package/dist/browser/connect-ZnLjvmRt.js.map +1 -0
- package/dist/browser/dist-C1nRM9t2.js +3768 -0
- package/dist/browser/dist-C1nRM9t2.js.map +1 -0
- package/dist/browser/{schemas-Bqem6NRm.js → dist-CXoKspdx.js} +131 -2
- package/dist/browser/dist-CXoKspdx.js.map +1 -0
- package/dist/browser/dist-D8H48e8N.js +2692 -0
- package/dist/browser/dist-D8H48e8N.js.map +1 -0
- package/dist/browser/{dist-CC1E3l2O.js → dist-DLFI75Zd.js} +37 -9
- package/dist/browser/dist-DLFI75Zd.js.map +1 -0
- package/dist/browser/{dist-DQgJ8n4d.js → document-drive-oqv68jDU.js} +432 -290
- package/dist/browser/document-drive-oqv68jDU.js.map +1 -0
- package/dist/browser/document-models/index.js +1 -1
- package/dist/browser/{documents-Bpu0aSLb.js → documents-D4ek7Ubv.js} +3 -3
- package/dist/browser/{documents-Bpu0aSLb.js.map → documents-D4ek7Ubv.js.map} +1 -1
- package/dist/browser/{editor-B3yz7YdR.js → editor-CoTq6fqT.js} +32 -31
- package/dist/browser/editor-CoTq6fqT.js.map +1 -0
- package/dist/browser/{editor-Dm_73jiz.js → editor-DC3bigBu.js} +5 -5
- package/dist/browser/{editor-Dm_73jiz.js.map → editor-DC3bigBu.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +6 -6
- package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/{folder-view-H2ov-zId.js → folder-view-DmYBf2pP.js} +13 -12
- package/dist/browser/folder-view-DmYBf2pP.js.map +1 -0
- package/dist/browser/{graphql-editor-CnaQ3XWx.js → graphql-editor-CiGd_Li7.js} +15 -7
- package/dist/browser/{graphql-editor-CnaQ3XWx.js.map → graphql-editor-CiGd_Li7.js.map} +1 -1
- package/dist/{node/hooks-Lbsf6g-v.mjs → browser/hooks-CORHBNHb.js} +6 -4
- package/dist/browser/{hooks-Beny0xpe.js.map → hooks-CORHBNHb.js.map} +1 -1
- package/dist/browser/index.js +2 -2
- package/dist/{node/json-editor-CVGgDVh2.mjs → browser/json-editor-sEqd5piI.js} +12 -4
- package/dist/browser/json-editor-sEqd5piI.js.map +1 -0
- package/dist/browser/{style-DYS_RFSN.js → linting-Dn6pXRkK.js} +7 -14
- package/dist/browser/linting-Dn6pXRkK.js.map +1 -0
- package/dist/browser/{parser-B0sh99Kk.js → parser-CkF6Qt8V.js} +1 -1
- package/dist/browser/{parser-B0sh99Kk.js.map → parser-CkF6Qt8V.js.map} +1 -1
- package/dist/browser/{schema-context-C0GpuR27.js → schema-context-DY-GEGnY.js} +4 -4
- package/dist/browser/schema-context-DY-GEGnY.js.map +1 -0
- package/dist/browser/state-schemas-DJmzG_M8.js +308 -0
- package/dist/browser/state-schemas-DJmzG_M8.js.map +1 -0
- package/dist/node/{dist-1kPMPFPD.mjs → connect-BLC4PXD9.mjs} +13953 -11229
- package/dist/node/connect-BLC4PXD9.mjs.map +1 -0
- package/dist/node/dist-BeZaEP6S.mjs +2692 -0
- package/dist/node/dist-BeZaEP6S.mjs.map +1 -0
- package/dist/node/dist-Bm05eoTg.mjs +3769 -0
- package/dist/node/dist-Bm05eoTg.mjs.map +1 -0
- package/dist/node/{tslib.es6-DwVpIYUS.mjs → dist-Cn3iExnV.mjs} +489 -3
- package/dist/node/dist-Cn3iExnV.mjs.map +1 -0
- package/dist/node/{schemas-Cb8uEF9u.mjs → dist-fA4EItr0.mjs} +131 -2
- package/dist/node/dist-fA4EItr0.mjs.map +1 -0
- package/dist/node/{dist-Bz4SgEHs.mjs → document-drive-sM33juXr.mjs} +432 -290
- package/dist/node/document-drive-sM33juXr.mjs.map +1 -0
- package/dist/node/document-models/index.mjs +1 -1
- package/dist/node/{documents-BWJpUm9f.mjs → documents-BFBPmyw1.mjs} +3 -3
- package/dist/node/{documents-BWJpUm9f.mjs.map → documents-BFBPmyw1.mjs.map} +1 -1
- package/dist/node/{editor-W8QOlGXD.mjs → editor-BFBa9nsO.mjs} +32 -31
- package/dist/node/editor-BFBa9nsO.mjs.map +1 -0
- package/dist/node/{editor-BaXuDsby.mjs → editor-BrS98lEH.mjs} +5 -5
- package/dist/node/{editor-BaXuDsby.mjs.map → editor-BrS98lEH.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +6 -6
- package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/{folder-view-B0FNXbc0.mjs → folder-view-DHph3Yuu.mjs} +13 -12
- package/dist/node/folder-view-DHph3Yuu.mjs.map +1 -0
- package/dist/node/{graphql-Du2phcBf.mjs → graphql-DskHmkMe.mjs} +2 -2
- package/dist/node/{graphql-Du2phcBf.mjs.map → graphql-DskHmkMe.mjs.map} +1 -1
- package/dist/node/{graphql-editor-D1koK5kR.mjs → graphql-editor-CPq7oIbf.mjs} +14 -6
- package/dist/node/{graphql-editor-D1koK5kR.mjs.map → graphql-editor-CPq7oIbf.mjs.map} +1 -1
- package/dist/{browser/hooks-Beny0xpe.js → node/hooks-DJrjfVaS.mjs} +6 -4
- package/dist/node/{hooks-Lbsf6g-v.mjs.map → hooks-DJrjfVaS.mjs.map} +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/{browser/json-editor-h3cffF6X.js → node/json-editor-L32CP7TS.mjs} +12 -4
- package/dist/node/json-editor-L32CP7TS.mjs.map +1 -0
- package/dist/node/{style-CxHkfyna.mjs → linting-Dx50GuLN.mjs} +7 -14
- package/dist/node/linting-Dx50GuLN.mjs.map +1 -0
- package/dist/node/{schema-context-mLgEY1Hh.mjs → schema-context-CX5ml_9t.mjs} +4 -4
- package/dist/node/schema-context-CX5ml_9t.mjs.map +1 -0
- package/dist/node/state-schemas-XTTjQZOe.mjs +309 -0
- package/dist/node/state-schemas-XTTjQZOe.mjs.map +1 -0
- package/package.json +10 -10
- package/style.css +1 -0
- package/dist/browser/connect-CKdlDSUw.js +0 -9460
- package/dist/browser/connect-CKdlDSUw.js.map +0 -1
- package/dist/browser/dist-BXygvBtd.js +0 -132
- package/dist/browser/dist-BXygvBtd.js.map +0 -1
- package/dist/browser/dist-CC1E3l2O.js.map +0 -1
- package/dist/browser/dist-DOMEWT3x.js.map +0 -1
- package/dist/browser/dist-DQgJ8n4d.js.map +0 -1
- package/dist/browser/editor-B3yz7YdR.js.map +0 -1
- package/dist/browser/folder-view-H2ov-zId.js.map +0 -1
- package/dist/browser/json-editor-h3cffF6X.js.map +0 -1
- package/dist/browser/schema-context-C0GpuR27.js.map +0 -1
- package/dist/browser/schemas-Bqem6NRm.js.map +0 -1
- package/dist/browser/state-schemas-C5NPeV6-.js +0 -674
- package/dist/browser/state-schemas-C5NPeV6-.js.map +0 -1
- package/dist/browser/style-DYS_RFSN.js.map +0 -1
- package/dist/browser/tslib.es6-DRuVAsR8.js +0 -32
- package/dist/browser/tslib.es6-DRuVAsR8.js.map +0 -1
- package/dist/node/connect-SGvLzr5K.mjs +0 -9475
- package/dist/node/connect-SGvLzr5K.mjs.map +0 -1
- package/dist/node/dist-1kPMPFPD.mjs.map +0 -1
- package/dist/node/dist-BQTIepWC.mjs +0 -132
- package/dist/node/dist-BQTIepWC.mjs.map +0 -1
- package/dist/node/dist-Bz4SgEHs.mjs.map +0 -1
- package/dist/node/dist-Cay1iRRr.mjs +0 -491
- package/dist/node/dist-Cay1iRRr.mjs.map +0 -1
- package/dist/node/editor-W8QOlGXD.mjs.map +0 -1
- package/dist/node/folder-view-B0FNXbc0.mjs.map +0 -1
- package/dist/node/json-editor-CVGgDVh2.mjs.map +0 -1
- package/dist/node/schema-context-mLgEY1Hh.mjs.map +0 -1
- package/dist/node/schemas-Cb8uEF9u.mjs.map +0 -1
- package/dist/node/state-schemas-DAthoEEk.mjs +0 -675
- package/dist/node/state-schemas-DAthoEEk.mjs.map +0 -1
- package/dist/node/style-CxHkfyna.mjs.map +0 -1
- package/dist/node/tslib.es6-DwVpIYUS.mjs.map +0 -1
- package/dist/style.css +0 -906
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as driveDocumentModelModule, u as documentModelDocumentModelModule } from "../document-drive-sM33juXr.mjs";
|
|
2
2
|
export { documentModelDocumentModelModule, driveDocumentModelModule };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as require_graphql } from "./graphql-
|
|
1
|
+
import { O as __exportAll, S as datetime, _ as string, b as url, d as email, h as object, m as number } from "./dist-fA4EItr0.mjs";
|
|
2
|
+
import { t as require_graphql } from "./graphql-DskHmkMe.mjs";
|
|
3
3
|
//#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
|
|
4
4
|
var Amount_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
config: () => config$16,
|
|
@@ -744,4 +744,4 @@ const updateTimeout = 5e3;
|
|
|
744
744
|
//#endregion
|
|
745
745
|
export { customScalars as a, updateTimeout as i, initialSchemaStr as n, typeDefsDoc as r, hiddenQueryTypeDefDoc as t };
|
|
746
746
|
|
|
747
|
-
//# sourceMappingURL=documents-
|
|
747
|
+
//# sourceMappingURL=documents-BFBPmyw1.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents-BWJpUm9f.mjs","names":["type","typedef","schema","z.object","z.string","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","NUMERIC_VALUE_REGEX","type","typedef","schema","z.object","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.object","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.object","z.string","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.iso.datetime","stringSchema","datetimeValidation","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.iso.datetime","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.email","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","z.url","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","GraphQLScalarType","GraphQLError","AmountTokens.scalar","EthereumAddress.scalar","AmountPercentage.scalar","EmailAddress.scalar","DateScalar.scalar","DateTime.scalar","URLScalar.scalar","AmountMoney.scalar","OLabel.scalar","Currency.scalar","PHID.scalar","OID.scalar","AmountFiat.scalar","AmountCurrency.scalar","AmountCrypto.scalar","Amount.scalar","File.scalar","AmountTokens.typedef","EthereumAddress.typedef","AmountPercentage.typedef","EmailAddress.typedef","DateScalar.typedef","DateTime.typedef","URLScalar.typedef","AmountMoney.typedef","OLabel.typedef","Currency.typedef","PHID.typedef","OID.typedef","AmountFiat.typedef","AmountCurrency.typedef","AmountCrypto.typedef","Amount.typedef","File.typedef","AmountTokens.type","EthereumAddress.type","EmailAddress.type","AmountPercentage.type","DateScalar.type","DateTime.type","URLScalar.type","AmountMoney.type","OLabel.type","Currency.type","PHID.type","OID.type","AmountFiat.type","AmountCurrency.type","AmountCrypto.type","Amount.type","File.type","AmountTokens.stringSchema","EthereumAddress.stringSchema","EmailAddress.stringSchema","AmountPercentage.stringSchema","DateScalar.stringSchema","DateTime.stringSchema","URLScalar.stringSchema","AmountMoney.stringSchema","OLabel.stringSchema","Currency.stringSchema","PHID.stringSchema","OID.stringSchema","AmountFiat.stringSchema","AmountCurrency.stringSchema","AmountCrypto.stringSchema","Amount.stringSchema","File.stringSchema"],"sources":["../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../node_modules/.pnpm/graphql-upload@17.0.0_@types+express@4.17.25_graphql@16.12.0/node_modules/graphql-upload/Upload.mjs","../../../../node_modules/.pnpm/graphql-upload@17.0.0_@types+express@4.17.25_graphql@16.12.0/node_modules/graphql-upload/GraphQLUpload.mjs","../../../../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","../../../../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","../../editors/document-model-editor/constants/documents.ts"],"sourcesContent":["import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = '{ unit?: string, value?: number }';\nexport const typedef = 'scalar Amount';\nexport const schema = z.object({\n unit: z.string().optional(),\n value: z.number().finite(),\n});\nexport const stringSchema = 'z.object({ unit: z.string().optional(), value: z.number().finite() })';\nconst amountValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount',\n description: 'A custom scalar that represents a currency amount with its currency type',\n serialize: amountValidation,\n parseValue: amountValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (unitField && unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.FLOAT) {\n throw new GraphQLError('value must be a valid float value', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField?.value?.value,\n value: parseFloat(valueField.value.value),\n };\n return amountValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=Amount.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const NUMERIC_VALUE_REGEX = /^\\d+(\\.\\d+)?$/;\nexport const type = '{ unit: string, value: string }';\nexport const typedef = 'scalar Amount_Crypto';\nexport const schema = z.object({\n unit: z.string(),\n value: z.string(),\n});\nexport const stringSchema = 'z.object({ unit: z.string(), value: z.string() })';\nconst amountCryptoValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount Crypto value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Crypto',\n description: 'A custom scalar that represents a cryptocurrency amount with its currency type',\n serialize: amountCryptoValidation,\n parseValue: amountCryptoValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (!unitField || unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.STRING) {\n throw new GraphQLError('value must be a valid string value', {\n nodes: ast,\n });\n }\n if (!NUMERIC_VALUE_REGEX.test(valueField.value.value)) {\n throw new GraphQLError('value must be a valid numeric string (e.g., \"123\" or \"123.45\")', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField.value.value,\n value: valueField.value.value,\n };\n return amountCryptoValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountCrypto.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const NUMERIC_VALUE_REGEX = /^\\d+(\\.\\d+)?$/;\nexport const type = '{ unit: string, value: string }';\nexport const typedef = 'scalar Amount_Currency';\nexport const schema = z.object({\n unit: z.string(),\n value: z.string(),\n});\nexport const stringSchema = 'z.object({ unit: z.string(), value: z.string()})';\nconst amountCurrencyValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount Currency value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Currency',\n description: 'A custom scalar that represents a currency amount with its currency type',\n serialize: amountCurrencyValidation,\n parseValue: amountCurrencyValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (!unitField || unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.STRING) {\n throw new GraphQLError('value must be a valid string value', {\n nodes: ast,\n });\n }\n if (!NUMERIC_VALUE_REGEX.test(valueField.value.value)) {\n throw new GraphQLError('value must be a valid numeric string (e.g., \"123\" or \"123.45\")', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField.value.value,\n value: valueField.value.value,\n };\n return amountCurrencyValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountCurrency.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = '{ unit: string, value: number }';\nexport const typedef = 'scalar Amount_Fiat';\nexport const schema = z.object({\n unit: z.string(),\n value: z.number().finite(),\n});\nexport const stringSchema = 'z.object({ unit: z.string(), value: z.number().finite() })';\nconst amountFiatValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount Fiat value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Fiat',\n description: 'A custom scalar that represents a currency amount with its currency type',\n serialize: amountFiatValidation,\n parseValue: amountFiatValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (!unitField || unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.FLOAT) {\n throw new GraphQLError('value must be a valid float value', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField.value.value,\n value: parseFloat(valueField.value.value),\n };\n return amountFiatValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountFiat.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'number'; // TS type in string form, update this accordingly\nexport const typedef = 'scalar Amount_Money';\nexport const schema = z.number(); // Update this code accordingly\nexport const stringSchema = 'z.number()'; // Update this code accordingly\nconst amountMoneyValidation = (value) => {\n if (typeof value !== 'number') {\n throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);\n }\n if (!Number.isFinite(value)) {\n throw new GraphQLError(`Value is not a finite number: ${value}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Money',\n description: 'A custom scalar that represents a monetary amount in a currency',\n serialize: amountMoneyValidation,\n parseValue: amountMoneyValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.FLOAT) {\n throw new GraphQLError('Value is not a float type', {\n nodes: value,\n });\n }\n const parsedValue = parseFloat(value.value);\n return amountMoneyValidation(parsedValue);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountMoney.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'number'; // TS type in string form, update this accordingly\nexport const typedef = 'scalar Amount_Percentage';\nexport const schema = z.number(); // Update this code accordingly\nexport const stringSchema = 'z.number()'; // Update this code accordingly\nconst amountPercentageValidation = (value) => {\n if (typeof value !== 'number') {\n throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);\n }\n if (!Number.isFinite(value)) {\n throw new GraphQLError(`Value is not a finite number: ${value}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Percentage',\n description: '',\n serialize: amountPercentageValidation,\n parseValue: amountPercentageValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.FLOAT) {\n throw new GraphQLError('some error message', { nodes: value });\n }\n const parsedValue = parseFloat(value.value);\n return amountPercentageValidation(parsedValue);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountPercentage.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'number';\nexport const typedef = 'scalar Amount_Tokens';\nexport const schema = z.number();\nexport const stringSchema = 'z.number()';\nconst amountTokensValidation = (value) => {\n if (typeof value !== 'number') {\n throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);\n }\n if (!Number.isFinite(value)) {\n throw new GraphQLError(`Value is not a finite number: ${value}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Tokens',\n description: 'A custom scalar that represents an amount of tokens',\n serialize: amountTokensValidation,\n parseValue: amountTokensValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.FLOAT) {\n throw new GraphQLError('some error message', { nodes: value });\n }\n const parsedValue = parseFloat(value.value);\n return amountTokensValidation(parsedValue);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountTokens.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar Currency';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst currencyValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Currency',\n description: 'A custom scalar that represents a Currency Code string',\n serialize: currencyValidation,\n parseValue: currencyValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return currencyValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=Currency.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar Date';\nexport const schema = z.iso.datetime();\nexport const stringSchema = 'z.iso.datetime()';\nconst datetimeValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Date',\n description: 'A custom scalar that represents a datetime in ISO 8601 format (Time: 00:00:00)',\n serialize: datetimeValidation,\n parseValue: datetimeValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('Value is not an string', { nodes: value });\n }\n return datetimeValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=Date.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar DateTime';\nexport const schema = z.iso.datetime();\nexport const stringSchema = 'z.iso.datetime()';\nconst datetimeValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'DateTime',\n description: 'A custom scalar that represents a datetime in ISO 8601 format',\n serialize: datetimeValidation,\n parseValue: datetimeValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('Value is not an string', { nodes: value });\n }\n return datetimeValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=DateTime.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string'; // TS type in string form\nexport const typedef = 'scalar EmailAddress';\nexport const schema = z.email();\nexport const stringSchema = 'z.email()';\nconst emailValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'EmailAddress',\n description: 'A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/.',\n serialize: emailValidation,\n parseValue: emailValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Can only validate strings as email addresses but got a: ${value.kind}`, { nodes: value });\n }\n return emailValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=EmailAddress.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar EthereumAddress';\nexport const schema = z.string().regex(/^0x[a-fA-F0-9]{40}$/, {\n message: 'Invalid Ethereum address format',\n});\nexport const stringSchema = \"z.string().regex(/^0x[a-fA-F0-9]{40}$/, { message: 'Invalid Ethereum address format' })\";\nconst addressValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'EthereumAddress',\n description: 'A custom scalar representing an Ethereum address, validated as a 42-character hexadecimal string prefixed with \"0x\"',\n serialize: addressValidation,\n parseValue: addressValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('some error message', { nodes: value });\n }\n return addressValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=EthereumAddress.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar OID';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst oIdValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'OID',\n description: 'A custom scalar that represents a OID string',\n serialize: oIdValidation,\n parseValue: oIdValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return oIdValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=OID.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar OLabel';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst oLabelValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'OLabel',\n description: 'A custom scalar that represents a OLabel string',\n serialize: oLabelValidation,\n parseValue: oLabelValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return oLabelValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=OLabel.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar PHID';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst phidlValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'PHID',\n description: 'A custom scalar that represents a PowerhouseID string',\n serialize: phidlValidation,\n parseValue: phidlValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return phidlValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=PHID.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar URL';\nexport const schema = z.url();\nexport const stringSchema = 'z.url()';\nconst urlValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'URL',\n description: 'A custom scalar that represents a URL string',\n serialize: urlValidation,\n parseValue: urlValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('Value is not an string', { nodes: value });\n }\n return urlValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=URL.js.map","// @ts-check\n\n/**\n * @import GraphQLUpload from \"./GraphQLUpload.mjs\"\n * @import processRequest, { FileUpload } from \"./processRequest.mjs\"\n */\n\n/**\n * A file expected to be uploaded as it was declared in the `map` field of a\n * [GraphQL multipart request](https://github.com/jaydenseric/graphql-multipart-request-spec).\n * The {@linkcode processRequest} function places references to an instance of\n * this class wherever the file is expected in the GraphQL operation. The scalar\n * {@linkcode GraphQLUpload} derives it’s value from {@linkcode Upload.promise}.\n */\nexport default class Upload {\n constructor() {\n /**\n * Promise that resolves file upload details. This should only be utilized\n * by {@linkcode GraphQLUpload}.\n * @type {Promise<FileUpload>}\n */\n this.promise = new Promise((resolve, reject) => {\n /**\n * Resolves the upload promise with the file upload details. This should\n * only be utilized by {@linkcode processRequest}.\n * @param {FileUpload} file File upload details.\n */\n this.resolve = (file) => {\n /**\n * The file upload details, available when the\n * {@linkcode Upload.promise} resolves. This should only be utilized by\n * {@linkcode processRequest}.\n * @type {FileUpload | undefined}\n */\n this.file = file;\n\n resolve(file);\n };\n\n /**\n * Rejects the upload promise with an error. This should only be\n * utilized by {@linkcode processRequest}.\n * @param {Error} error Error instance.\n */\n this.reject = reject;\n });\n\n // Prevent errors crashing Node.js, see:\n // https://github.com/nodejs/node/issues/20392\n this.promise.catch(() => {});\n }\n}\n","// @ts-check\n\nimport { GraphQLError, GraphQLScalarType } from \"graphql\";\n\nimport Upload from \"./Upload.mjs\";\n\n/** @typedef {import(\"./processRequest.mjs\").FileUpload} FileUpload */\n\n/**\n * A GraphQL scalar `Upload` that can be used in a\n * [`GraphQLSchema`](https://graphql.org/graphql-js/type/#graphqlschema). It’s\n * value in resolvers is a promise that resolves\n * {@link FileUpload file upload details} for processing and storage.\n * @example\n * A schema built using the function\n * [`makeExecutableSchema`](https://www.graphql-tools.com/docs/api/modules/schema_src#makeexecutableschema)\n * from [`@graphql-tools/schema`](https://npm.im/@graphql-tools/schema):\n *\n * ```js\n * import { makeExecutableSchema } from \"@graphql-tools/schema/makeExecutableSchema\";\n * import GraphQLUpload from \"graphql-upload/GraphQLUpload.mjs\";\n *\n * const schema = makeExecutableSchema({\n * typeDefs: `\n * scalar Upload\n * `,\n * resolvers: {\n * Upload: GraphQLUpload,\n * },\n * });\n * ```\n * @example\n * A manually constructed schema with an image upload mutation:\n *\n * ```js\n * import { GraphQLBoolean, GraphQLObjectType, GraphQLSchema } from \"graphql\";\n * import GraphQLUpload from \"graphql-upload/GraphQLUpload.mjs\";\n *\n * const schema = new GraphQLSchema({\n * mutation: new GraphQLObjectType({\n * name: \"Mutation\",\n * fields: {\n * uploadImage: {\n * description: \"Uploads an image.\",\n * type: GraphQLBoolean,\n * args: {\n * image: {\n * description: \"Image file.\",\n * type: GraphQLUpload,\n * },\n * },\n * async resolve(parent, { image }) {\n * const { filename, mimetype, createReadStream } = await image;\n * const stream = createReadStream();\n * // Promisify the stream and store the file, then…\n * return true;\n * },\n * },\n * },\n * }),\n * });\n * ```\n * @example\n * In a [TypeScript](https://typescriptlang.org) module, how to import the type\n * for the {@link FileUpload file upload details} that the\n * {@linkcode GraphQLUpload} scalar resolver value promise resolves:\n *\n * ```ts\n * import type { FileUpload } from \"graphql-upload/processRequest.mjs\";\n * ```\n */\nconst GraphQLUpload = new GraphQLScalarType({\n name: \"Upload\",\n description: \"The `Upload` scalar type represents a file upload.\",\n parseValue(value) {\n if (value instanceof Upload) return value.promise;\n throw new GraphQLError(\"Upload value invalid.\");\n },\n parseLiteral(node) {\n throw new GraphQLError(\"Upload literal unsupported.\", { nodes: node });\n },\n serialize() {\n throw new GraphQLError(\"Upload serialization unsupported.\");\n },\n});\n\nexport default GraphQLUpload;\n","import GraphQLUpload from 'graphql-upload/GraphQLUpload.mjs';\nexport const type = 'File';\nexport const typedef = 'scalar Upload';\nexport const config = {\n name: 'Upload',\n description: 'A custom scalar that represents a file upload',\n};\n// This export is required to satisfy the `validationSchema` generator\nexport const stringSchema = 'z.any()';\nexport const scalar = GraphQLUpload;\n//# sourceMappingURL=File.js.map","// namespace imports -- DO NOT REMOVE OR EDIT THIS COMMENT\nimport * as Amount from './Amount.js';\nimport * as AmountCrypto from './AmountCrypto.js';\nimport * as AmountCurrency from './AmountCurrency.js';\nimport * as AmountFiat from './AmountFiat.js';\nimport * as AmountMoney from './AmountMoney.js';\nimport * as AmountPercentage from './AmountPercentage.js';\nimport * as AmountTokens from './AmountTokens.js';\nimport * as Currency from './Currency.js';\nimport * as DateScalar from './Date.js';\nimport * as DateTime from './DateTime.js';\nimport * as EmailAddress from './EmailAddress.js';\nimport * as EthereumAddress from './EthereumAddress.js';\nimport * as OID from './OID.js';\nimport * as OLabel from './OLabel.js';\nimport * as PHID from './PHID.js';\nimport * as URLScalar from './URL.js';\nimport * as File from './File.js';\nexport { Amount, AmountCrypto, AmountCurrency, AmountFiat, AmountMoney, AmountPercentage, \n// export object -- DO NOT REMOVE OR EDIT THIS COMMENT\nAmountTokens, Currency, DateScalar, DateTime, EmailAddress, EthereumAddress, File, OID, OLabel, PHID, URLScalar, };\nexport const customScalars = {\n // @ts-expect-error - it works this way\n Amount,\n // @ts-expect-error - it works this way\n AmountCrypto,\n // @ts-expect-error - it works this way\n AmountCurrency,\n // @ts-expect-error - it works this way\n AmountFiat,\n AmountMoney,\n AmountPercentage,\n AmountTokens,\n Currency,\n DateScalar,\n DateTime,\n EmailAddress,\n EthereumAddress,\n // @ts-expect-error - it works this way\n File,\n OID,\n OLabel,\n PHID,\n URLScalar,\n};\nexport const resolvers = {\n // export resolvers -- DO NOT REMOVE OR EDIT THIS COMMENT\n AmountTokens: AmountTokens.scalar,\n EthereumAddress: EthereumAddress.scalar,\n AmountPercentage: AmountPercentage.scalar,\n EmailAddress: EmailAddress.scalar,\n Date: DateScalar.scalar,\n DateTime: DateTime.scalar,\n URL: URLScalar.scalar,\n AmountMoney: AmountMoney.scalar,\n OLabel: OLabel.scalar,\n Currency: Currency.scalar,\n PHID: PHID.scalar,\n OID: OID.scalar,\n AmountFiat: AmountFiat.scalar,\n AmountCurrency: AmountCurrency.scalar,\n AmountCrypto: AmountCrypto.scalar,\n Amount: Amount.scalar,\n Upload: File.scalar,\n};\nexport const typeDefs = [\n // export typedefs -- DO NOT REMOVE OR EDIT THIS COMMENT\n AmountTokens.typedef,\n EthereumAddress.typedef,\n AmountPercentage.typedef,\n EmailAddress.typedef,\n DateScalar.typedef,\n DateTime.typedef,\n URLScalar.typedef,\n AmountMoney.typedef,\n OLabel.typedef,\n Currency.typedef,\n PHID.typedef,\n OID.typedef,\n AmountFiat.typedef,\n AmountCurrency.typedef,\n AmountCrypto.typedef,\n Amount.typedef,\n File.typedef,\n];\nexport const generatorTypeDefs = {\n // export generator typedefs -- DO NOT REMOVE OR EDIT THIS COMMENT\n [AmountTokens.config.name]: AmountTokens.type,\n [EthereumAddress.config.name]: EthereumAddress.type,\n [EmailAddress.config.name]: EmailAddress.type,\n [AmountPercentage.config.name]: AmountPercentage.type,\n [DateScalar.config.name]: DateScalar.type,\n [DateTime.config.name]: DateTime.type,\n [URLScalar.config.name]: URLScalar.type,\n [AmountMoney.config.name]: AmountMoney.type,\n [OLabel.config.name]: OLabel.type,\n [Currency.config.name]: Currency.type,\n [PHID.config.name]: PHID.type,\n [OID.config.name]: OID.type,\n [AmountFiat.config.name]: AmountFiat.type,\n [AmountCurrency.config.name]: AmountCurrency.type,\n [AmountCrypto.config.name]: AmountCrypto.type,\n [Amount.config.name]: Amount.type,\n [File.config.name]: File.type,\n};\nexport const validationSchema = {\n // export validation schema -- DO NOT REMOVE OR EDIT THIS COMMENT\n [AmountTokens.config.name]: AmountTokens.stringSchema,\n [EthereumAddress.config.name]: EthereumAddress.stringSchema,\n [EmailAddress.config.name]: EmailAddress.stringSchema,\n [AmountPercentage.config.name]: AmountPercentage.stringSchema,\n [DateScalar.config.name]: DateScalar.stringSchema,\n [DateTime.config.name]: DateTime.stringSchema,\n [URLScalar.config.name]: URLScalar.stringSchema,\n [AmountMoney.config.name]: AmountMoney.stringSchema,\n [OLabel.config.name]: OLabel.stringSchema,\n [Currency.config.name]: Currency.stringSchema,\n [PHID.config.name]: PHID.stringSchema,\n [OID.config.name]: OID.stringSchema,\n [AmountFiat.config.name]: AmountFiat.stringSchema,\n [AmountCurrency.config.name]: AmountCurrency.stringSchema,\n [AmountCrypto.config.name]: AmountCrypto.stringSchema,\n [Amount.config.name]: Amount.stringSchema,\n [File.config.name]: File.stringSchema,\n};\n//# sourceMappingURL=scalars.js.map","import { typeDefs } from \"@powerhousedao/document-engineering/graphql\";\nimport { buildSchema, printSchema } from \"graphql\";\n\nexport const hiddenQueryTypeDefDoc = `type Query {\n _hidden: String\n}\n`;\n\nexport const typeDefsDoc = typeDefs.join(\"\\n\");\n\nexport const initialSchemaDoc = `${hiddenQueryTypeDefDoc}\\n${typeDefsDoc}`;\n\nexport const initialSchema = buildSchema(initialSchemaDoc);\nexport const initialSchemaStr = printSchema(initialSchema);\n\nexport const specialDocIds = {\n hiddenQueryTypeDef: \"hidden-query-type-defs\",\n standardLib: \"standard-lib\",\n global: \"global\",\n local: \"local\",\n} as const;\n\nexport const updateTimeout = 5000;\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],"mappings":";;;;;;;;;;;;AAEA,MAAaA,UAAO;AACpB,MAAaC,aAAU;AACvB,MAAaC,YAASC,OAAS;CAC3B,MAAMC,QAAU,CAAC,UAAU;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I,eACN,eACF,eACC,gBACE,eACL,eACE,eACJ,eACD,gBACO,gBACI,gBACF,gBACN,aACF;UAIQ,eACG,eACH,gBACI,eACN,eACF,eACC,gBACE,eACL,eACE,eACJ,eACD,gBACO,gBACI,gBACF,gBACN,aACF;;;ACxHjB,MAAa,wBAAwB;;;;AAKrC,MAAa,cAAc,SAAS,KAAK,KAAK;AAE9C,MAAa,mBAAmB,GAAG,sBAAsB,IAAI;AAE7D,MAAa,iBAAA,GAAA,eAAA,aAA4B,iBAAiB;AAC1D,MAAa,oBAAA,GAAA,eAAA,aAA+B,cAAc;AAS1D,MAAa,gBAAgB"}
|
|
1
|
+
{"version":3,"file":"documents-BFBPmyw1.mjs","names":["type","typedef","schema","z.object","z.string","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","NUMERIC_VALUE_REGEX","type","typedef","schema","z.object","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.object","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.object","z.string","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.number","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.iso.datetime","stringSchema","datetimeValidation","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.iso.datetime","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.email","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","schema","z.string","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","type","typedef","z.url","stringSchema","GraphQLError","config","Kind","scalar","GraphQLScalarType","GraphQLScalarType","GraphQLError","AmountTokens.scalar","EthereumAddress.scalar","AmountPercentage.scalar","EmailAddress.scalar","DateScalar.scalar","DateTime.scalar","URLScalar.scalar","AmountMoney.scalar","OLabel.scalar","Currency.scalar","PHID.scalar","OID.scalar","AmountFiat.scalar","AmountCurrency.scalar","AmountCrypto.scalar","Amount.scalar","File.scalar","AmountTokens.typedef","EthereumAddress.typedef","AmountPercentage.typedef","EmailAddress.typedef","DateScalar.typedef","DateTime.typedef","URLScalar.typedef","AmountMoney.typedef","OLabel.typedef","Currency.typedef","PHID.typedef","OID.typedef","AmountFiat.typedef","AmountCurrency.typedef","AmountCrypto.typedef","Amount.typedef","File.typedef","AmountTokens.type","EthereumAddress.type","EmailAddress.type","AmountPercentage.type","DateScalar.type","DateTime.type","URLScalar.type","AmountMoney.type","OLabel.type","Currency.type","PHID.type","OID.type","AmountFiat.type","AmountCurrency.type","AmountCrypto.type","Amount.type","File.type","AmountTokens.stringSchema","EthereumAddress.stringSchema","EmailAddress.stringSchema","AmountPercentage.stringSchema","DateScalar.stringSchema","DateTime.stringSchema","URLScalar.stringSchema","AmountMoney.stringSchema","OLabel.stringSchema","Currency.stringSchema","PHID.stringSchema","OID.stringSchema","AmountFiat.stringSchema","AmountCurrency.stringSchema","AmountCrypto.stringSchema","Amount.stringSchema","File.stringSchema"],"sources":["../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../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","../../../../node_modules/.pnpm/graphql-upload@17.0.0_@types+express@4.17.25_graphql@16.12.0/node_modules/graphql-upload/Upload.mjs","../../../../node_modules/.pnpm/graphql-upload@17.0.0_@types+express@4.17.25_graphql@16.12.0/node_modules/graphql-upload/GraphQLUpload.mjs","../../../../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","../../../../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","../../editors/document-model-editor/constants/documents.ts"],"sourcesContent":["import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = '{ unit?: string, value?: number }';\nexport const typedef = 'scalar Amount';\nexport const schema = z.object({\n unit: z.string().optional(),\n value: z.number().finite(),\n});\nexport const stringSchema = 'z.object({ unit: z.string().optional(), value: z.number().finite() })';\nconst amountValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount',\n description: 'A custom scalar that represents a currency amount with its currency type',\n serialize: amountValidation,\n parseValue: amountValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (unitField && unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.FLOAT) {\n throw new GraphQLError('value must be a valid float value', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField?.value?.value,\n value: parseFloat(valueField.value.value),\n };\n return amountValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=Amount.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const NUMERIC_VALUE_REGEX = /^\\d+(\\.\\d+)?$/;\nexport const type = '{ unit: string, value: string }';\nexport const typedef = 'scalar Amount_Crypto';\nexport const schema = z.object({\n unit: z.string(),\n value: z.string(),\n});\nexport const stringSchema = 'z.object({ unit: z.string(), value: z.string() })';\nconst amountCryptoValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount Crypto value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Crypto',\n description: 'A custom scalar that represents a cryptocurrency amount with its currency type',\n serialize: amountCryptoValidation,\n parseValue: amountCryptoValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (!unitField || unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.STRING) {\n throw new GraphQLError('value must be a valid string value', {\n nodes: ast,\n });\n }\n if (!NUMERIC_VALUE_REGEX.test(valueField.value.value)) {\n throw new GraphQLError('value must be a valid numeric string (e.g., \"123\" or \"123.45\")', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField.value.value,\n value: valueField.value.value,\n };\n return amountCryptoValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountCrypto.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const NUMERIC_VALUE_REGEX = /^\\d+(\\.\\d+)?$/;\nexport const type = '{ unit: string, value: string }';\nexport const typedef = 'scalar Amount_Currency';\nexport const schema = z.object({\n unit: z.string(),\n value: z.string(),\n});\nexport const stringSchema = 'z.object({ unit: z.string(), value: z.string()})';\nconst amountCurrencyValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount Currency value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Currency',\n description: 'A custom scalar that represents a currency amount with its currency type',\n serialize: amountCurrencyValidation,\n parseValue: amountCurrencyValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (!unitField || unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.STRING) {\n throw new GraphQLError('value must be a valid string value', {\n nodes: ast,\n });\n }\n if (!NUMERIC_VALUE_REGEX.test(valueField.value.value)) {\n throw new GraphQLError('value must be a valid numeric string (e.g., \"123\" or \"123.45\")', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField.value.value,\n value: valueField.value.value,\n };\n return amountCurrencyValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountCurrency.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = '{ unit: string, value: number }';\nexport const typedef = 'scalar Amount_Fiat';\nexport const schema = z.object({\n unit: z.string(),\n value: z.number().finite(),\n});\nexport const stringSchema = 'z.object({ unit: z.string(), value: z.number().finite() })';\nconst amountFiatValidation = (value) => {\n if (typeof value !== 'object' || !value) {\n throw new GraphQLError(`Invalid Amount Fiat value: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Fiat',\n description: 'A custom scalar that represents a currency amount with its currency type',\n serialize: amountFiatValidation,\n parseValue: amountFiatValidation,\n parseLiteral: (ast) => {\n if (ast.kind !== Kind.OBJECT) {\n throw new GraphQLError('Value must be an object', { nodes: ast });\n }\n const unitField = ast.fields.find((f) => f.name.value === 'unit');\n const valueField = ast.fields.find((f) => f.name.value === 'value');\n if (!unitField || unitField.value.kind !== Kind.STRING) {\n throw new GraphQLError('unit must be a valid string value', {\n nodes: ast,\n });\n }\n if (!valueField || valueField.value.kind !== Kind.FLOAT) {\n throw new GraphQLError('value must be a valid float value', {\n nodes: ast,\n });\n }\n const value = {\n unit: unitField.value.value,\n value: parseFloat(valueField.value.value),\n };\n return amountFiatValidation(value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountFiat.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'number'; // TS type in string form, update this accordingly\nexport const typedef = 'scalar Amount_Money';\nexport const schema = z.number(); // Update this code accordingly\nexport const stringSchema = 'z.number()'; // Update this code accordingly\nconst amountMoneyValidation = (value) => {\n if (typeof value !== 'number') {\n throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);\n }\n if (!Number.isFinite(value)) {\n throw new GraphQLError(`Value is not a finite number: ${value}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Money',\n description: 'A custom scalar that represents a monetary amount in a currency',\n serialize: amountMoneyValidation,\n parseValue: amountMoneyValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.FLOAT) {\n throw new GraphQLError('Value is not a float type', {\n nodes: value,\n });\n }\n const parsedValue = parseFloat(value.value);\n return amountMoneyValidation(parsedValue);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountMoney.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'number'; // TS type in string form, update this accordingly\nexport const typedef = 'scalar Amount_Percentage';\nexport const schema = z.number(); // Update this code accordingly\nexport const stringSchema = 'z.number()'; // Update this code accordingly\nconst amountPercentageValidation = (value) => {\n if (typeof value !== 'number') {\n throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);\n }\n if (!Number.isFinite(value)) {\n throw new GraphQLError(`Value is not a finite number: ${value}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Percentage',\n description: '',\n serialize: amountPercentageValidation,\n parseValue: amountPercentageValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.FLOAT) {\n throw new GraphQLError('some error message', { nodes: value });\n }\n const parsedValue = parseFloat(value.value);\n return amountPercentageValidation(parsedValue);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountPercentage.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'number';\nexport const typedef = 'scalar Amount_Tokens';\nexport const schema = z.number();\nexport const stringSchema = 'z.number()';\nconst amountTokensValidation = (value) => {\n if (typeof value !== 'number') {\n throw new GraphQLError(`Value is not number: ${JSON.stringify(value)}`);\n }\n if (!Number.isFinite(value)) {\n throw new GraphQLError(`Value is not a finite number: ${value}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Amount_Tokens',\n description: 'A custom scalar that represents an amount of tokens',\n serialize: amountTokensValidation,\n parseValue: amountTokensValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.FLOAT) {\n throw new GraphQLError('some error message', { nodes: value });\n }\n const parsedValue = parseFloat(value.value);\n return amountTokensValidation(parsedValue);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=AmountTokens.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar Currency';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst currencyValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Currency',\n description: 'A custom scalar that represents a Currency Code string',\n serialize: currencyValidation,\n parseValue: currencyValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return currencyValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=Currency.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar Date';\nexport const schema = z.iso.datetime();\nexport const stringSchema = 'z.iso.datetime()';\nconst datetimeValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'Date',\n description: 'A custom scalar that represents a datetime in ISO 8601 format (Time: 00:00:00)',\n serialize: datetimeValidation,\n parseValue: datetimeValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('Value is not an string', { nodes: value });\n }\n return datetimeValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=Date.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar DateTime';\nexport const schema = z.iso.datetime();\nexport const stringSchema = 'z.iso.datetime()';\nconst datetimeValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'DateTime',\n description: 'A custom scalar that represents a datetime in ISO 8601 format',\n serialize: datetimeValidation,\n parseValue: datetimeValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('Value is not an string', { nodes: value });\n }\n return datetimeValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=DateTime.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string'; // TS type in string form\nexport const typedef = 'scalar EmailAddress';\nexport const schema = z.email();\nexport const stringSchema = 'z.email()';\nconst emailValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'EmailAddress',\n description: 'A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/.',\n serialize: emailValidation,\n parseValue: emailValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Can only validate strings as email addresses but got a: ${value.kind}`, { nodes: value });\n }\n return emailValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=EmailAddress.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar EthereumAddress';\nexport const schema = z.string().regex(/^0x[a-fA-F0-9]{40}$/, {\n message: 'Invalid Ethereum address format',\n});\nexport const stringSchema = \"z.string().regex(/^0x[a-fA-F0-9]{40}$/, { message: 'Invalid Ethereum address format' })\";\nconst addressValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'EthereumAddress',\n description: 'A custom scalar representing an Ethereum address, validated as a 42-character hexadecimal string prefixed with \"0x\"',\n serialize: addressValidation,\n parseValue: addressValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('some error message', { nodes: value });\n }\n return addressValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=EthereumAddress.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar OID';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst oIdValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'OID',\n description: 'A custom scalar that represents a OID string',\n serialize: oIdValidation,\n parseValue: oIdValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return oIdValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=OID.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar OLabel';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst oLabelValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'OLabel',\n description: 'A custom scalar that represents a OLabel string',\n serialize: oLabelValidation,\n parseValue: oLabelValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return oLabelValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=OLabel.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar PHID';\nexport const schema = z.string();\nexport const stringSchema = 'z.string()';\nconst phidlValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'PHID',\n description: 'A custom scalar that represents a PowerhouseID string',\n serialize: phidlValidation,\n parseValue: phidlValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError(`Value is not a valid string: ${value.kind}`, {\n nodes: value,\n });\n }\n return phidlValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=PHID.js.map","import { GraphQLError, GraphQLScalarType, Kind } from 'graphql';\nimport { z } from 'zod';\nexport const type = 'string';\nexport const typedef = 'scalar URL';\nexport const schema = z.url();\nexport const stringSchema = 'z.url()';\nconst urlValidation = (value) => {\n if (typeof value !== 'string') {\n throw new GraphQLError(`Value is not iso string: ${JSON.stringify(value)}`);\n }\n const result = schema.safeParse(value);\n if (result.success)\n return result.data;\n throw new GraphQLError(result.error.message);\n};\nexport const config = {\n name: 'URL',\n description: 'A custom scalar that represents a URL string',\n serialize: urlValidation,\n parseValue: urlValidation,\n parseLiteral: (value) => {\n if (value.kind !== Kind.STRING) {\n throw new GraphQLError('Value is not an string', { nodes: value });\n }\n return urlValidation(value.value);\n },\n};\nexport const scalar = new GraphQLScalarType(config);\n//# sourceMappingURL=URL.js.map","// @ts-check\n\n/**\n * @import GraphQLUpload from \"./GraphQLUpload.mjs\"\n * @import processRequest, { FileUpload } from \"./processRequest.mjs\"\n */\n\n/**\n * A file expected to be uploaded as it was declared in the `map` field of a\n * [GraphQL multipart request](https://github.com/jaydenseric/graphql-multipart-request-spec).\n * The {@linkcode processRequest} function places references to an instance of\n * this class wherever the file is expected in the GraphQL operation. The scalar\n * {@linkcode GraphQLUpload} derives it’s value from {@linkcode Upload.promise}.\n */\nexport default class Upload {\n constructor() {\n /**\n * Promise that resolves file upload details. This should only be utilized\n * by {@linkcode GraphQLUpload}.\n * @type {Promise<FileUpload>}\n */\n this.promise = new Promise((resolve, reject) => {\n /**\n * Resolves the upload promise with the file upload details. This should\n * only be utilized by {@linkcode processRequest}.\n * @param {FileUpload} file File upload details.\n */\n this.resolve = (file) => {\n /**\n * The file upload details, available when the\n * {@linkcode Upload.promise} resolves. This should only be utilized by\n * {@linkcode processRequest}.\n * @type {FileUpload | undefined}\n */\n this.file = file;\n\n resolve(file);\n };\n\n /**\n * Rejects the upload promise with an error. This should only be\n * utilized by {@linkcode processRequest}.\n * @param {Error} error Error instance.\n */\n this.reject = reject;\n });\n\n // Prevent errors crashing Node.js, see:\n // https://github.com/nodejs/node/issues/20392\n this.promise.catch(() => {});\n }\n}\n","// @ts-check\n\nimport { GraphQLError, GraphQLScalarType } from \"graphql\";\n\nimport Upload from \"./Upload.mjs\";\n\n/** @typedef {import(\"./processRequest.mjs\").FileUpload} FileUpload */\n\n/**\n * A GraphQL scalar `Upload` that can be used in a\n * [`GraphQLSchema`](https://graphql.org/graphql-js/type/#graphqlschema). It’s\n * value in resolvers is a promise that resolves\n * {@link FileUpload file upload details} for processing and storage.\n * @example\n * A schema built using the function\n * [`makeExecutableSchema`](https://www.graphql-tools.com/docs/api/modules/schema_src#makeexecutableschema)\n * from [`@graphql-tools/schema`](https://npm.im/@graphql-tools/schema):\n *\n * ```js\n * import { makeExecutableSchema } from \"@graphql-tools/schema/makeExecutableSchema\";\n * import GraphQLUpload from \"graphql-upload/GraphQLUpload.mjs\";\n *\n * const schema = makeExecutableSchema({\n * typeDefs: `\n * scalar Upload\n * `,\n * resolvers: {\n * Upload: GraphQLUpload,\n * },\n * });\n * ```\n * @example\n * A manually constructed schema with an image upload mutation:\n *\n * ```js\n * import { GraphQLBoolean, GraphQLObjectType, GraphQLSchema } from \"graphql\";\n * import GraphQLUpload from \"graphql-upload/GraphQLUpload.mjs\";\n *\n * const schema = new GraphQLSchema({\n * mutation: new GraphQLObjectType({\n * name: \"Mutation\",\n * fields: {\n * uploadImage: {\n * description: \"Uploads an image.\",\n * type: GraphQLBoolean,\n * args: {\n * image: {\n * description: \"Image file.\",\n * type: GraphQLUpload,\n * },\n * },\n * async resolve(parent, { image }) {\n * const { filename, mimetype, createReadStream } = await image;\n * const stream = createReadStream();\n * // Promisify the stream and store the file, then…\n * return true;\n * },\n * },\n * },\n * }),\n * });\n * ```\n * @example\n * In a [TypeScript](https://typescriptlang.org) module, how to import the type\n * for the {@link FileUpload file upload details} that the\n * {@linkcode GraphQLUpload} scalar resolver value promise resolves:\n *\n * ```ts\n * import type { FileUpload } from \"graphql-upload/processRequest.mjs\";\n * ```\n */\nconst GraphQLUpload = new GraphQLScalarType({\n name: \"Upload\",\n description: \"The `Upload` scalar type represents a file upload.\",\n parseValue(value) {\n if (value instanceof Upload) return value.promise;\n throw new GraphQLError(\"Upload value invalid.\");\n },\n parseLiteral(node) {\n throw new GraphQLError(\"Upload literal unsupported.\", { nodes: node });\n },\n serialize() {\n throw new GraphQLError(\"Upload serialization unsupported.\");\n },\n});\n\nexport default GraphQLUpload;\n","import GraphQLUpload from 'graphql-upload/GraphQLUpload.mjs';\nexport const type = 'File';\nexport const typedef = 'scalar Upload';\nexport const config = {\n name: 'Upload',\n description: 'A custom scalar that represents a file upload',\n};\n// This export is required to satisfy the `validationSchema` generator\nexport const stringSchema = 'z.any()';\nexport const scalar = GraphQLUpload;\n//# sourceMappingURL=File.js.map","// namespace imports -- DO NOT REMOVE OR EDIT THIS COMMENT\nimport * as Amount from './Amount.js';\nimport * as AmountCrypto from './AmountCrypto.js';\nimport * as AmountCurrency from './AmountCurrency.js';\nimport * as AmountFiat from './AmountFiat.js';\nimport * as AmountMoney from './AmountMoney.js';\nimport * as AmountPercentage from './AmountPercentage.js';\nimport * as AmountTokens from './AmountTokens.js';\nimport * as Currency from './Currency.js';\nimport * as DateScalar from './Date.js';\nimport * as DateTime from './DateTime.js';\nimport * as EmailAddress from './EmailAddress.js';\nimport * as EthereumAddress from './EthereumAddress.js';\nimport * as OID from './OID.js';\nimport * as OLabel from './OLabel.js';\nimport * as PHID from './PHID.js';\nimport * as URLScalar from './URL.js';\nimport * as File from './File.js';\nexport { Amount, AmountCrypto, AmountCurrency, AmountFiat, AmountMoney, AmountPercentage, \n// export object -- DO NOT REMOVE OR EDIT THIS COMMENT\nAmountTokens, Currency, DateScalar, DateTime, EmailAddress, EthereumAddress, File, OID, OLabel, PHID, URLScalar, };\nexport const customScalars = {\n // @ts-expect-error - it works this way\n Amount,\n // @ts-expect-error - it works this way\n AmountCrypto,\n // @ts-expect-error - it works this way\n AmountCurrency,\n // @ts-expect-error - it works this way\n AmountFiat,\n AmountMoney,\n AmountPercentage,\n AmountTokens,\n Currency,\n DateScalar,\n DateTime,\n EmailAddress,\n EthereumAddress,\n // @ts-expect-error - it works this way\n File,\n OID,\n OLabel,\n PHID,\n URLScalar,\n};\nexport const resolvers = {\n // export resolvers -- DO NOT REMOVE OR EDIT THIS COMMENT\n AmountTokens: AmountTokens.scalar,\n EthereumAddress: EthereumAddress.scalar,\n AmountPercentage: AmountPercentage.scalar,\n EmailAddress: EmailAddress.scalar,\n Date: DateScalar.scalar,\n DateTime: DateTime.scalar,\n URL: URLScalar.scalar,\n AmountMoney: AmountMoney.scalar,\n OLabel: OLabel.scalar,\n Currency: Currency.scalar,\n PHID: PHID.scalar,\n OID: OID.scalar,\n AmountFiat: AmountFiat.scalar,\n AmountCurrency: AmountCurrency.scalar,\n AmountCrypto: AmountCrypto.scalar,\n Amount: Amount.scalar,\n Upload: File.scalar,\n};\nexport const typeDefs = [\n // export typedefs -- DO NOT REMOVE OR EDIT THIS COMMENT\n AmountTokens.typedef,\n EthereumAddress.typedef,\n AmountPercentage.typedef,\n EmailAddress.typedef,\n DateScalar.typedef,\n DateTime.typedef,\n URLScalar.typedef,\n AmountMoney.typedef,\n OLabel.typedef,\n Currency.typedef,\n PHID.typedef,\n OID.typedef,\n AmountFiat.typedef,\n AmountCurrency.typedef,\n AmountCrypto.typedef,\n Amount.typedef,\n File.typedef,\n];\nexport const generatorTypeDefs = {\n // export generator typedefs -- DO NOT REMOVE OR EDIT THIS COMMENT\n [AmountTokens.config.name]: AmountTokens.type,\n [EthereumAddress.config.name]: EthereumAddress.type,\n [EmailAddress.config.name]: EmailAddress.type,\n [AmountPercentage.config.name]: AmountPercentage.type,\n [DateScalar.config.name]: DateScalar.type,\n [DateTime.config.name]: DateTime.type,\n [URLScalar.config.name]: URLScalar.type,\n [AmountMoney.config.name]: AmountMoney.type,\n [OLabel.config.name]: OLabel.type,\n [Currency.config.name]: Currency.type,\n [PHID.config.name]: PHID.type,\n [OID.config.name]: OID.type,\n [AmountFiat.config.name]: AmountFiat.type,\n [AmountCurrency.config.name]: AmountCurrency.type,\n [AmountCrypto.config.name]: AmountCrypto.type,\n [Amount.config.name]: Amount.type,\n [File.config.name]: File.type,\n};\nexport const validationSchema = {\n // export validation schema -- DO NOT REMOVE OR EDIT THIS COMMENT\n [AmountTokens.config.name]: AmountTokens.stringSchema,\n [EthereumAddress.config.name]: EthereumAddress.stringSchema,\n [EmailAddress.config.name]: EmailAddress.stringSchema,\n [AmountPercentage.config.name]: AmountPercentage.stringSchema,\n [DateScalar.config.name]: DateScalar.stringSchema,\n [DateTime.config.name]: DateTime.stringSchema,\n [URLScalar.config.name]: URLScalar.stringSchema,\n [AmountMoney.config.name]: AmountMoney.stringSchema,\n [OLabel.config.name]: OLabel.stringSchema,\n [Currency.config.name]: Currency.stringSchema,\n [PHID.config.name]: PHID.stringSchema,\n [OID.config.name]: OID.stringSchema,\n [AmountFiat.config.name]: AmountFiat.stringSchema,\n [AmountCurrency.config.name]: AmountCurrency.stringSchema,\n [AmountCrypto.config.name]: AmountCrypto.stringSchema,\n [Amount.config.name]: Amount.stringSchema,\n [File.config.name]: File.stringSchema,\n};\n//# sourceMappingURL=scalars.js.map","import { typeDefs } from \"@powerhousedao/document-engineering/graphql\";\nimport { buildSchema, printSchema } from \"graphql\";\n\nexport const hiddenQueryTypeDefDoc = `type Query {\n _hidden: String\n}\n`;\n\nexport const typeDefsDoc = typeDefs.join(\"\\n\");\n\nexport const initialSchemaDoc = `${hiddenQueryTypeDefDoc}\\n${typeDefsDoc}`;\n\nexport const initialSchema = buildSchema(initialSchemaDoc);\nexport const initialSchemaStr = printSchema(initialSchema);\n\nexport const specialDocIds = {\n hiddenQueryTypeDef: \"hidden-query-type-defs\",\n standardLib: \"standard-lib\",\n global: \"global\",\n local: \"local\",\n} as const;\n\nexport const updateTimeout = 5000;\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],"mappings":";;;;;;;;;;;;AAEA,MAAaA,UAAO;AACpB,MAAaC,aAAU;AACvB,MAAaC,YAASC,OAAS;CAC3B,MAAMC,QAAU,CAAC,UAAU;CAC3B,OAAOC,QAAU,CAAC,QAAQ;CAC7B,CAAC;AACF,MAAaC,kBAAe;AAC5B,MAAM,oBAAoB,UAAU;AAChC,KAAI,OAAO,UAAU,YAAY,CAAC,MAC9B,OAAM,IAAIC,eAAAA,aAAa,yBAAyB,KAAK,UAAU,MAAM,GAAG;CAE5E,MAAM,SAASL,UAAO,UAAU,MAAM;AACtC,KAAI,OAAO,QACP,QAAO,OAAO;AAClB,OAAM,IAAIK,eAAAA,aAAa,OAAO,MAAM,QAAQ;;AAEhD,MAAaC,YAAS;CAClB,MAAM;CACN,aAAa;CACb,WAAW;CACX,YAAY;CACZ,eAAe,QAAQ;AACnB,MAAI,IAAI,SAASC,eAAAA,KAAK,OAClB,OAAM,IAAIF,eAAAA,aAAa,2BAA2B,EAAE,OAAO,KAAK,CAAC;EAErE,MAAM,YAAY,IAAI,OAAO,MAAM,MAAM,EAAE,KAAK,UAAU,OAAO;EACjE,MAAM,aAAa,IAAI,OAAO,MAAM,MAAM,EAAE,KAAK,UAAU,QAAQ;AACnE,MAAI,aAAa,UAAU,MAAM,SAASE,eAAAA,KAAK,OAC3C,OAAM,IAAIF,eAAAA,aAAa,qCAAqC,EACxD,OAAO,KACV,CAAC;AAEN,MAAI,CAAC,cAAc,WAAW,MAAM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S;CAClB,MAAM;CACN,aAAa;CAChB;AAED,MAAa,eAAe;AAC5B,MAAa,SAAS;;;ACYtB,MAAa,gBAAgB;CAEzB,QAAA;CAEA,cAAA;CAEA,gBAAA;CAEA,YAAA;CACA,aAAA;CACA,kBAAA;CACA,cAAA;CACA,UAAA;CACA,YAAA;CACA,UAAA;CACA,cAAA;CACA,iBAAA;CAEA,MAAA;CACA,KAAA;CACA,QAAA;CACA,MAAA;CACA,WAAA;CACH;AAqBD,MAAa,WAAW;CAEpBkB;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACH;UAGwB,eACG,eACH,gBACI,eACN,eACF,eACC,gBACE,eACL,eACE,eACJ,eACD,gBACO,gBACI,gBACF,gBACN,aACF;UAIQ,eACG,eACH,gBACI,eACN,eACF,eACC,gBACE,eACL,eACE,eACJ,eACD,gBACO,gBACI,gBACF,gBACN,aACF;;;ACxHjB,MAAa,wBAAwB;;;;AAKrC,MAAa,cAAc,SAAS,KAAK,KAAK;AAE9C,MAAa,mBAAmB,GAAG,sBAAsB,IAAI;AAE7D,MAAa,iBAAA,GAAA,eAAA,aAA4B,iBAAiB;AAC1D,MAAa,oBAAA,GAAA,eAAA,aAA+B,cAAc;AAS1D,MAAa,gBAAgB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as setOperationDescription, E as deleteOperationError, F as setModelExtension, H as setOperationName, I as setModelId, L as setModelName, M as setAuthorWebsite, N as setInitialState, P as setModelDescription, R as setModuleName, T as deleteOperation, U as setOperationSchema, V as setOperationErrorName, W as setStateSchema, Y as generateId, f as addModule, j as setAuthorName, m as addOperationError, p as addOperation, w as deleteModule } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as SchemaContextProvider } from "./schema-context-
|
|
1
|
+
import { C as parse, T as $ZodError, _ as string, a as snakeCase, b as url, h as object, n as constantCase, p as literal, r as pascalCase, v as union, w as parseAsync } from "./dist-fA4EItr0.mjs";
|
|
2
|
+
import { B as setOperationDescription, E as deleteOperationError, F as setModelExtension, H as setOperationName, I as setModelId, L as setModelName, M as setAuthorWebsite, N as setInitialState, P as setModelDescription, R as setModuleName, T as deleteOperation, U as setOperationSchema, V as setOperationErrorName, W as setStateSchema, Y as generateId, f as addModule, j as setAuthorName, m as addOperationError, p as addOperation, w as deleteModule } from "./document-drive-sM33juXr.mjs";
|
|
3
|
+
import { c as FormProvider, d as set, f as useForm, l as appendErrors, p as useFormContext, r as DocumentToolbar, s as Controller, u as get } from "./connect-BLC4PXD9.mjs";
|
|
4
|
+
import { C as twMerge, y as composeRefs } from "./dist-BeZaEP6S.mjs";
|
|
5
|
+
import { E as useSetPHDocumentEditorConfig, b as useSelectedDocumentOfType, y as usePHToast } from "./dist-Bm05eoTg.mjs";
|
|
6
|
+
import { a as handleModelNameChange, c as makeEmptyOperationSchema, d as makeOperationInitialDoc, i as compareStringsWithoutWhitespace, l as makeInitialSchemaDoc, o as initializeModelSchema, p as renameSchemaType, s as isEmptyOperationSchema, t as ensureValidOperationSchemaInputName } from "./linting-Dx50GuLN.mjs";
|
|
7
|
+
import { t as SchemaContextProvider } from "./schema-context-CX5ml_9t.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import React, { Suspense, forwardRef, lazy, useCallback, useEffect, useId, useImperativeHandle, useRef, useState } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -206,7 +206,7 @@ function Divider({ className, size = "sm", margin = "md" }) {
|
|
|
206
206
|
if (margin === "md") return "my-6";
|
|
207
207
|
return "my-8";
|
|
208
208
|
}
|
|
209
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
209
|
+
return /* @__PURE__ */ jsx("div", { className: twMerge("bg-gray-200 dark:bg-slate-600 dark:text-slate-100", getSize(), getMargin(), className) });
|
|
210
210
|
}
|
|
211
211
|
//#endregion
|
|
212
212
|
//#region ../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.2_react@19.2.6_/node_modules/@hookform/resolvers/dist/resolvers.mjs
|
|
@@ -429,7 +429,7 @@ var Root = Label$1;
|
|
|
429
429
|
const labelVariants = cva("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
430
430
|
const Label = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Root, {
|
|
431
431
|
ref,
|
|
432
|
-
className:
|
|
432
|
+
className: twMerge(labelVariants(), className),
|
|
433
433
|
...props
|
|
434
434
|
}));
|
|
435
435
|
Label.displayName = Root.displayName;
|
|
@@ -448,7 +448,7 @@ const FormItem = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
448
448
|
value: { id },
|
|
449
449
|
children: /* @__PURE__ */ jsx("div", {
|
|
450
450
|
ref,
|
|
451
|
-
className
|
|
451
|
+
className,
|
|
452
452
|
...props
|
|
453
453
|
})
|
|
454
454
|
});
|
|
@@ -458,7 +458,7 @@ const FormLabel = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
458
458
|
const { error, formItemId } = useFormField();
|
|
459
459
|
return /* @__PURE__ */ jsx(Label, {
|
|
460
460
|
ref,
|
|
461
|
-
className:
|
|
461
|
+
className: twMerge(error && "text-red-900 dark:text-red-400", className),
|
|
462
462
|
htmlFor: formItemId,
|
|
463
463
|
...props
|
|
464
464
|
});
|
|
@@ -480,7 +480,7 @@ const FormDescription = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
480
480
|
return /* @__PURE__ */ jsx("p", {
|
|
481
481
|
ref,
|
|
482
482
|
id: formDescriptionId,
|
|
483
|
-
className:
|
|
483
|
+
className: twMerge("text-sm text-gray-700 dark:text-slate-200", className),
|
|
484
484
|
...props
|
|
485
485
|
});
|
|
486
486
|
});
|
|
@@ -492,7 +492,7 @@ const FormMessage = React$1.forwardRef(({ className, children, ...props }, ref)
|
|
|
492
492
|
return /* @__PURE__ */ jsx("p", {
|
|
493
493
|
ref,
|
|
494
494
|
id: formMessageId,
|
|
495
|
-
className:
|
|
495
|
+
className: twMerge("text-sm font-medium text-red-800 dark:text-red-100", className),
|
|
496
496
|
...props,
|
|
497
497
|
children: body
|
|
498
498
|
});
|
|
@@ -519,7 +519,7 @@ const Textarea = forwardRef(({ className, ...props }, ref) => {
|
|
|
519
519
|
}));
|
|
520
520
|
return /* @__PURE__ */ jsx("textarea", {
|
|
521
521
|
...props,
|
|
522
|
-
className:
|
|
522
|
+
className: twMerge("min-h-10 w-full resize-none rounded-md border border-gray-200 bg-gray-50 px-3 py-2 text-sm text-gray-900 placeholder:text-gray-600 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100 dark:placeholder:text-slate-300", className),
|
|
523
523
|
ref: textareaRef,
|
|
524
524
|
onInput: handleInput
|
|
525
525
|
});
|
|
@@ -562,7 +562,7 @@ const TextField = forwardRef(({ name, value, onSubmit, label, placeholder, uniqu
|
|
|
562
562
|
try {
|
|
563
563
|
await form.trigger();
|
|
564
564
|
if (form.formState.isValid) await form.handleSubmit(handleSubmit)();
|
|
565
|
-
} catch (
|
|
565
|
+
} catch (_e) {}
|
|
566
566
|
}, [
|
|
567
567
|
form,
|
|
568
568
|
handleSubmit,
|
|
@@ -597,7 +597,7 @@ const TextField = forwardRef(({ name, value, onSubmit, label, placeholder, uniqu
|
|
|
597
597
|
children: [
|
|
598
598
|
!!label && /* @__PURE__ */ jsx(FormLabel, {
|
|
599
599
|
htmlFor: name,
|
|
600
|
-
className: "text-sm font-medium text-gray-700",
|
|
600
|
+
className: "text-sm font-medium text-gray-700 dark:text-slate-200",
|
|
601
601
|
children: label
|
|
602
602
|
}),
|
|
603
603
|
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Textarea, {
|
|
@@ -611,7 +611,7 @@ const TextField = forwardRef(({ name, value, onSubmit, label, placeholder, uniqu
|
|
|
611
611
|
}
|
|
612
612
|
},
|
|
613
613
|
placeholder,
|
|
614
|
-
onBlur: handleBlur,
|
|
614
|
+
onBlur: () => void handleBlur(),
|
|
615
615
|
onChange: (e) => {
|
|
616
616
|
field.onChange(e);
|
|
617
617
|
handleChange(e);
|
|
@@ -685,10 +685,11 @@ function ModelNameForm(props) {
|
|
|
685
685
|
name,
|
|
686
686
|
globalStateSchema,
|
|
687
687
|
localStateSchema,
|
|
688
|
-
setStateSchema
|
|
688
|
+
setStateSchema,
|
|
689
|
+
setModelName
|
|
689
690
|
]),
|
|
690
691
|
placeholder: "Model name",
|
|
691
|
-
className: "border-none pl-0 text-xl font-bold text-gray-900",
|
|
692
|
+
className: "border-none pl-0 text-xl font-bold text-gray-900 dark:text-slate-50",
|
|
692
693
|
required: true,
|
|
693
694
|
focusOnMount: true
|
|
694
695
|
});
|
|
@@ -768,7 +769,7 @@ function ModuleForm({ module, onAddModule, updateModuleName, modules = [] }) {
|
|
|
768
769
|
name: "name",
|
|
769
770
|
label: isEdit ? "Module name *" : "Add module *",
|
|
770
771
|
value: module?.name,
|
|
771
|
-
onSubmit: handleSubmit,
|
|
772
|
+
onSubmit: (name) => void handleSubmit(name),
|
|
772
773
|
placeholder: "Add module",
|
|
773
774
|
unique: moduleNames,
|
|
774
775
|
shouldReset: !isEdit,
|
|
@@ -796,7 +797,7 @@ function OperationForm({ operation, module, focusOnMount, allOperationNames, onA
|
|
|
796
797
|
name: "name",
|
|
797
798
|
value: operation?.name,
|
|
798
799
|
label: isEdit ? "Operation name *" : "Add operation *",
|
|
799
|
-
onSubmit: handleSubmit,
|
|
800
|
+
onSubmit: (name) => void handleSubmit(name),
|
|
800
801
|
onChange: handleChange,
|
|
801
802
|
placeholder: "Add operation",
|
|
802
803
|
required: !isEdit,
|
|
@@ -887,7 +888,7 @@ function OperationErrors({ operation, addOperationError, deleteOperationError, s
|
|
|
887
888
|
}
|
|
888
889
|
//#endregion
|
|
889
890
|
//#region editors/document-model-editor/components/operation.tsx
|
|
890
|
-
const GraphqlEditor = lazy(() => import("./graphql-editor-
|
|
891
|
+
const GraphqlEditor = lazy(() => import("./graphql-editor-CPq7oIbf.mjs"));
|
|
891
892
|
function Operation(props) {
|
|
892
893
|
const { operation, module, allOperationNames, lastCreatedOperationId, onAddOperationAndInitialSchema, updateOperationName, deleteOperation, updateOperationSchema, setOperationDescription, addOperationError, deleteOperationError, setOperationErrorName, toggleNoInputRequired } = props;
|
|
893
894
|
const noInputRequired = isEmptyOperationSchema(operation.schema);
|
|
@@ -929,9 +930,9 @@ function Operation(props) {
|
|
|
929
930
|
type: "checkbox",
|
|
930
931
|
checked: noInputRequired,
|
|
931
932
|
onChange: (e) => handleToggleNoInput(e.target.checked),
|
|
932
|
-
className: "size-4 rounded-sm border-gray-300"
|
|
933
|
+
className: "size-4 rounded-sm border-gray-300 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100"
|
|
933
934
|
}), /* @__PURE__ */ jsx("span", {
|
|
934
|
-
className: "text-sm text-gray-700",
|
|
935
|
+
className: "text-sm text-gray-700 dark:text-slate-200",
|
|
935
936
|
children: "Operation with no inputs"
|
|
936
937
|
})]
|
|
937
938
|
}), !noInputRequired && /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(GraphqlEditor, {
|
|
@@ -943,7 +944,7 @@ function Operation(props) {
|
|
|
943
944
|
/* @__PURE__ */ jsxs("div", {
|
|
944
945
|
style: { gridArea: "errors" },
|
|
945
946
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
946
|
-
className: "my-2 text-sm font-medium text-gray-700",
|
|
947
|
+
className: "my-2 text-sm font-medium text-gray-700 dark:text-slate-200",
|
|
947
948
|
children: "Reducer Exceptions"
|
|
948
949
|
}), /* @__PURE__ */ jsx(OperationErrors, {
|
|
949
950
|
operation,
|
|
@@ -997,7 +998,7 @@ function Operations({ module, allOperations, shouldFocusNewOperation, updateOper
|
|
|
997
998
|
function Module(props) {
|
|
998
999
|
const { module, modules, allOperations, lastCreatedModuleId, onAddModule, updateModuleName, deleteModule, updateOperationName, deleteOperation, addOperationAndInitialSchema, updateOperationSchema, setOperationDescription, addOperationError, deleteOperationError, setOperationErrorName, toggleNoInputRequired } = props;
|
|
999
1000
|
return /* @__PURE__ */ jsxs("div", {
|
|
1000
|
-
className: "relative rounded-3xl bg-gray-100 p-6",
|
|
1001
|
+
className: "relative rounded-3xl bg-gray-100 p-6 dark:bg-slate-700",
|
|
1001
1002
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
1002
1003
|
className: "mb-2 w-1/2 pr-6",
|
|
1003
1004
|
children: [/* @__PURE__ */ jsx(ModuleForm, {
|
|
@@ -1008,7 +1009,7 @@ function Module(props) {
|
|
|
1008
1009
|
}), !!module && /* @__PURE__ */ jsx("button", {
|
|
1009
1010
|
"aria-label": "Delete module",
|
|
1010
1011
|
tabIndex: -1,
|
|
1011
|
-
className: "absolute top-1 right-1 p-2 text-gray-
|
|
1012
|
+
className: "absolute top-1 right-1 p-2 text-gray-900 transition-colors hover:text-gray-500 dark:text-slate-100 dark:hover:text-slate-400",
|
|
1012
1013
|
onClick: () => {
|
|
1013
1014
|
deleteModule(module.id);
|
|
1014
1015
|
},
|
|
@@ -1109,7 +1110,7 @@ function useSelectedDocumentModelDocument() {
|
|
|
1109
1110
|
}
|
|
1110
1111
|
//#endregion
|
|
1111
1112
|
//#region editors/document-model-editor/editor.tsx
|
|
1112
|
-
const StateSchemas = lazy(() => import("./state-schemas-
|
|
1113
|
+
const StateSchemas = lazy(() => import("./state-schemas-XTTjQZOe.mjs"));
|
|
1113
1114
|
function Editor() {
|
|
1114
1115
|
useSetPHDocumentEditorConfig(editorConfig);
|
|
1115
1116
|
const toast = usePHToast();
|
|
@@ -1299,7 +1300,7 @@ function Editor() {
|
|
|
1299
1300
|
}
|
|
1300
1301
|
};
|
|
1301
1302
|
return /* @__PURE__ */ jsxs("main", {
|
|
1302
|
-
className: "min-h-dvh bg-gray-50 p-6",
|
|
1303
|
+
className: "min-h-dvh bg-gray-50 p-6 dark:bg-slate-800",
|
|
1303
1304
|
children: [/* @__PURE__ */ jsx(DocumentToolbar, {}), /* @__PURE__ */ jsx(SchemaContextProvider, {
|
|
1304
1305
|
globalStateSchemaSdl: globalStateSchema,
|
|
1305
1306
|
localStateSchemaSdl: localStateSchema,
|
|
@@ -1339,7 +1340,7 @@ function Editor() {
|
|
|
1339
1340
|
}) }),
|
|
1340
1341
|
/* @__PURE__ */ jsx(Divider, {}),
|
|
1341
1342
|
/* @__PURE__ */ jsxs("h3", {
|
|
1342
|
-
className: "mb-6 text-lg capitalize",
|
|
1343
|
+
className: "mb-6 text-lg text-gray-900 capitalize dark:text-slate-100",
|
|
1343
1344
|
children: [scope, " Operations"]
|
|
1344
1345
|
}),
|
|
1345
1346
|
/* @__PURE__ */ jsx(Modules, {
|
|
@@ -1370,4 +1371,4 @@ function Editor() {
|
|
|
1370
1371
|
//#endregion
|
|
1371
1372
|
export { Editor as default };
|
|
1372
1373
|
|
|
1373
|
-
//# sourceMappingURL=editor-
|
|
1374
|
+
//# sourceMappingURL=editor-BFBa9nsO.mjs.map
|