From f24e9980f3fafecb14cc0f1e1494da3d25fdab31 Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Wed, 23 Aug 2023 17:00:43 +0200 Subject: [PATCH] test prod deploy --- package.json | 3 + pnpm-lock.yaml | 352 +++++++++-- src/resolvers/directus.graphql | 1081 ++++++++++++++++++++++++++++++++ src/resolvers/subs_directus.js | 16 +- 4 files changed, 1401 insertions(+), 51 deletions(-) create mode 100644 src/resolvers/directus.graphql diff --git a/package.json b/package.json index 3f595e2..bb75e83 100644 --- a/package.json +++ b/package.json @@ -44,5 +44,8 @@ "tailwindcss": "3.3.2", "typescript": "5.1.6", "ws": "^8.13.0" + }, + "devDependencies": { + "raw-loader": "^4.0.2" } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e89a112..8387067 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -92,6 +92,11 @@ dependencies: specifier: ^8.13.0 version: 8.13.0 +devDependencies: + raw-loader: + specifier: ^4.0.2 + version: 4.0.2(webpack@5.88.2) + packages: /@aashutoshrathi/word-wrap@1.2.6: @@ -2911,39 +2916,32 @@ packages: '@jridgewell/set-array': 1.1.2 '@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/trace-mapping': 0.3.18 - dev: false /@jridgewell/resolve-uri@3.1.0: resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} engines: {node: '>=6.0.0'} - dev: false /@jridgewell/set-array@1.1.2: resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} engines: {node: '>=6.0.0'} - dev: false /@jridgewell/source-map@0.3.5: resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} dependencies: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.18 - dev: false /@jridgewell/sourcemap-codec@1.4.14: resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} - dev: false /@jridgewell/sourcemap-codec@1.4.15: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - dev: false /@jridgewell/trace-mapping@0.3.18: resolution: {integrity: sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==} dependencies: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 - dev: false /@jridgewell/trace-mapping@0.3.9: resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} @@ -3435,6 +3433,24 @@ packages: resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} dev: false + /@types/eslint-scope@3.7.4: + resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==} + dependencies: + '@types/eslint': 8.44.2 + '@types/estree': 1.0.1 + dev: true + + /@types/eslint@8.44.2: + resolution: {integrity: sha512-sdPRb9K6iL5XZOmBubg8yiFp5yS/JdUDQsq5e6h95km91MCYMuvp7mh1fjPEYUhvHepKpZOjnEaMBR4PxjWDzg==} + dependencies: + '@types/estree': 1.0.1 + '@types/json-schema': 7.0.12 + dev: true + + /@types/estree@1.0.1: + resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} + dev: true + /@types/istanbul-lib-coverage@2.0.4: resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} dev: false @@ -3451,13 +3467,16 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: false + /@types/json-schema@7.0.12: + resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} + dev: true + /@types/json5@0.0.29: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: false /@types/node@20.4.1: resolution: {integrity: sha512-JIzsAvJeA/5iY6Y/OxZbv1lUcc8dNSE77lb2gnBH+/PJ3lFR1Ccvgwl5JWnHAkNHcRsT0TbpVOsiMKZ1F/yyJg==} - dev: false /@types/prop-types@15.7.5: resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} @@ -3575,6 +3594,112 @@ packages: eslint-visitor-keys: 3.4.1 dev: false + /@webassemblyjs/ast@1.11.6: + resolution: {integrity: sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==} + dependencies: + '@webassemblyjs/helper-numbers': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + dev: true + + /@webassemblyjs/floating-point-hex-parser@1.11.6: + resolution: {integrity: sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==} + dev: true + + /@webassemblyjs/helper-api-error@1.11.6: + resolution: {integrity: sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==} + dev: true + + /@webassemblyjs/helper-buffer@1.11.6: + resolution: {integrity: sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==} + dev: true + + /@webassemblyjs/helper-numbers@1.11.6: + resolution: {integrity: sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==} + dependencies: + '@webassemblyjs/floating-point-hex-parser': 1.11.6 + '@webassemblyjs/helper-api-error': 1.11.6 + '@xtuc/long': 4.2.2 + dev: true + + /@webassemblyjs/helper-wasm-bytecode@1.11.6: + resolution: {integrity: sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==} + dev: true + + /@webassemblyjs/helper-wasm-section@1.11.6: + resolution: {integrity: sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-buffer': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/wasm-gen': 1.11.6 + dev: true + + /@webassemblyjs/ieee754@1.11.6: + resolution: {integrity: sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==} + dependencies: + '@xtuc/ieee754': 1.2.0 + dev: true + + /@webassemblyjs/leb128@1.11.6: + resolution: {integrity: sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==} + dependencies: + '@xtuc/long': 4.2.2 + dev: true + + /@webassemblyjs/utf8@1.11.6: + resolution: {integrity: sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==} + dev: true + + /@webassemblyjs/wasm-edit@1.11.6: + resolution: {integrity: sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-buffer': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/helper-wasm-section': 1.11.6 + '@webassemblyjs/wasm-gen': 1.11.6 + '@webassemblyjs/wasm-opt': 1.11.6 + '@webassemblyjs/wasm-parser': 1.11.6 + '@webassemblyjs/wast-printer': 1.11.6 + dev: true + + /@webassemblyjs/wasm-gen@1.11.6: + resolution: {integrity: sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/ieee754': 1.11.6 + '@webassemblyjs/leb128': 1.11.6 + '@webassemblyjs/utf8': 1.11.6 + dev: true + + /@webassemblyjs/wasm-opt@1.11.6: + resolution: {integrity: sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-buffer': 1.11.6 + '@webassemblyjs/wasm-gen': 1.11.6 + '@webassemblyjs/wasm-parser': 1.11.6 + dev: true + + /@webassemblyjs/wasm-parser@1.11.6: + resolution: {integrity: sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-api-error': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/ieee754': 1.11.6 + '@webassemblyjs/leb128': 1.11.6 + '@webassemblyjs/utf8': 1.11.6 + dev: true + + /@webassemblyjs/wast-printer@1.11.6: + resolution: {integrity: sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@xtuc/long': 4.2.2 + dev: true + /@whatwg-node/events@0.1.1: resolution: {integrity: sha512-AyQEn5hIPV7Ze+xFoXVU3QTHXVbWPrzaOkxtENMPMuNL6VVHrp4hHfDt9nrQpjO7BgvuM95dMtkycX5M/DZR3w==} engines: {node: '>=16.0.0'} @@ -3639,6 +3764,14 @@ packages: dev: false optional: true + /@xtuc/ieee754@1.2.0: + resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} + dev: true + + /@xtuc/long@4.2.2: + resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} + dev: true + /abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -3654,6 +3787,14 @@ packages: negotiator: 0.6.3 dev: false + /acorn-import-assertions@1.9.0(acorn@8.10.0): + resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==} + peerDependencies: + acorn: ^8 + dependencies: + acorn: 8.10.0 + dev: true + /acorn-jsx@5.3.2(acorn@8.10.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -3671,7 +3812,6 @@ packages: resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} engines: {node: '>=0.4.0'} hasBin: true - dev: false /ajv-formats@2.1.1(ajv@8.12.0): resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} @@ -3684,6 +3824,14 @@ packages: ajv: 8.12.0 dev: false + /ajv-keywords@3.5.2(ajv@6.12.6): + resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} + peerDependencies: + ajv: ^6.9.1 + dependencies: + ajv: 6.12.6 + dev: true + /ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} dependencies: @@ -3691,7 +3839,6 @@ packages: fast-json-stable-stringify: 2.1.0 json-schema-traverse: 0.4.1 uri-js: 4.4.1 - dev: false /ajv@8.12.0: resolution: {integrity: sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==} @@ -4035,6 +4182,10 @@ packages: engines: {node: '>=0.6'} dev: false + /big.js@5.2.2: + resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} + dev: true + /binary-extensions@2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} @@ -4084,7 +4235,6 @@ packages: electron-to-chromium: 1.4.457 node-releases: 2.0.13 update-browserslist-db: 1.0.11(browserslist@4.21.9) - dev: false /bser@2.1.1: resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} @@ -4094,7 +4244,6 @@ packages: /buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - dev: false /buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} @@ -4177,7 +4326,6 @@ packages: /caniuse-lite@1.0.30001515: resolution: {integrity: sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA==} - dev: false /capital-case@1.0.4: resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} @@ -4266,6 +4414,11 @@ packages: fsevents: 2.3.2 dev: false + /chrome-trace-event@1.0.3: + resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==} + engines: {node: '>=6.0'} + dev: true + /ci-info@2.0.0: resolution: {integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==} dev: false @@ -4364,7 +4517,6 @@ packages: /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - dev: false /commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} @@ -4718,7 +4870,6 @@ packages: /electron-to-chromium@1.4.457: resolution: {integrity: sha512-/g3UyNDmDd6ebeWapmAoiyy+Sy2HyJ+/X8KyvNeHfKRFfHaA2W8oF5fxD5F3tjBDcjpwo0iek6YNgxNXDBoEtA==} - dev: false /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -4728,6 +4879,11 @@ packages: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} dev: false + /emojis-list@3.0.0: + resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} + engines: {node: '>= 4'} + dev: true + /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -4739,7 +4895,6 @@ packages: dependencies: graceful-fs: 4.2.11 tapable: 2.2.1 - dev: false /envinfo@7.10.0: resolution: {integrity: sha512-ZtUjZO6l5mwTHvc1L9+1q5p/R3wTopcfqMW8r5t8SJSKqeVI/LtajORwRFEKpEFuekjD0VBjwu1HMxL4UalIRw==} @@ -4807,6 +4962,10 @@ packages: which-typed-array: 1.1.10 dev: false + /es-module-lexer@1.3.0: + resolution: {integrity: sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==} + dev: true + /es-set-tostringtag@2.0.1: resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} engines: {node: '>= 0.4'} @@ -4834,7 +4993,6 @@ packages: /escalade@3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} engines: {node: '>=6'} - dev: false /escape-html@1.0.3: resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} @@ -5035,6 +5193,14 @@ packages: string.prototype.matchall: 4.0.8 dev: false + /eslint-scope@5.1.1: + resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} + engines: {node: '>=8.0.0'} + dependencies: + esrecurse: 4.3.0 + estraverse: 4.3.0 + dev: true + /eslint-scope@7.2.0: resolution: {integrity: sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5123,12 +5289,15 @@ packages: engines: {node: '>=4.0'} dependencies: estraverse: 5.3.0 - dev: false + + /estraverse@4.3.0: + resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} + engines: {node: '>=4.0'} + dev: true /estraverse@5.3.0: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} - dev: false /esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} @@ -5145,6 +5314,11 @@ packages: engines: {node: '>=6'} dev: false + /events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + dev: true + /execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -5186,7 +5360,6 @@ packages: /fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - dev: false /fast-glob@3.3.0: resolution: {integrity: sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==} @@ -5201,7 +5374,6 @@ packages: /fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - dev: false /fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} @@ -5496,7 +5668,6 @@ packages: /glob-to-regexp@0.4.1: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} - dev: false /glob@10.3.3: resolution: {integrity: sha512-92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==} @@ -5593,7 +5764,6 @@ packages: /graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - dev: false /graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} @@ -5711,7 +5881,6 @@ packages: /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - dev: false /has-property-descriptors@1.0.0: resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} @@ -6247,7 +6416,6 @@ packages: '@types/node': 20.4.1 merge-stream: 2.0.0 supports-color: 8.1.1 - dev: false /jiti@1.19.1: resolution: {integrity: sha512-oVhqoRDaBXf7sjkll95LHVS6Myyyb1zaunVwk4Z0+WPSW4gjS0pl01zYKHScTuyEhQsFxV5L4DR5r+YqSyqyyg==} @@ -6366,7 +6534,6 @@ packages: /json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} - dev: false /json-pointer@0.6.2: resolution: {integrity: sha512-vLWcKbOaXlO+jvRy4qNd+TI1QUPZzfJj1tpJ3vAXDych5XJf93ftpUKe5pKCrzyIIwgBJcOcCVRUfqQP25afBw==} @@ -6376,7 +6543,6 @@ packages: /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - dev: false /json-schema-traverse@1.0.0: resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} @@ -6397,7 +6563,6 @@ packages: resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} engines: {node: '>=6'} hasBin: true - dev: false /jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} @@ -6463,6 +6628,20 @@ packages: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: false + /loader-runner@4.3.0: + resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} + engines: {node: '>=6.11.5'} + dev: true + + /loader-utils@2.0.4: + resolution: {integrity: sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==} + engines: {node: '>=8.9.0'} + dependencies: + big.js: 5.2.2 + emojis-list: 3.0.0 + json5: 2.2.3 + dev: true + /localforage@1.10.0: resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==} dependencies: @@ -6622,7 +6801,6 @@ packages: /merge-stream@2.0.0: resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} - dev: false /merge2@1.4.1: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} @@ -6959,14 +7137,12 @@ packages: /mime-db@1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} engines: {node: '>= 0.6'} - dev: false /mime-types@2.1.35: resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} engines: {node: '>= 0.6'} dependencies: mime-db: 1.52.0 - dev: false /mime@1.6.0: resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==} @@ -7062,7 +7238,6 @@ packages: /neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - dev: false /next@13.4.9(@babel/core@7.22.8)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-vtefFm/BWIi/eWOqf1GsmKG3cjKw1k3LjuefKRcL3iiLl3zWzFdPG3as6xtxrGO6gwTzzaO1ktL4oiHt/uvTjA==} @@ -7162,7 +7337,6 @@ packages: /node-releases@2.0.13: resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} - dev: false /node-stream-zip@1.15.0: resolution: {integrity: sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==} @@ -7542,7 +7716,6 @@ packages: /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} - dev: false /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} @@ -7722,7 +7895,6 @@ packages: /punycode@2.3.0: resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} engines: {node: '>=6'} - dev: false /qs@6.11.2: resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==} @@ -7741,11 +7913,28 @@ packages: inherits: 2.0.4 dev: false + /randombytes@2.1.0: + resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + dependencies: + safe-buffer: 5.2.1 + dev: true + /range-parser@1.2.1: resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} engines: {node: '>= 0.6'} dev: false + /raw-loader@4.0.2(webpack@5.88.2): + resolution: {integrity: sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + loader-utils: 2.0.4 + schema-utils: 3.3.0 + webpack: 5.88.2 + dev: true + /react-devtools-core@4.28.0: resolution: {integrity: sha512-E3C3X1skWBdBzwpOUbmXG8SgH6BtsluSMe+s6rRcujNKG1DGi8uIfhdhszkgDpAsMoE55hwqRUzeXCmETDBpTg==} dependencies: @@ -8093,7 +8282,6 @@ packages: /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - dev: false /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} @@ -8115,6 +8303,15 @@ packages: loose-envify: 1.4.0 dev: false + /schema-utils@3.3.0: + resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/json-schema': 7.0.12 + ajv: 6.12.6 + ajv-keywords: 3.5.2(ajv@6.12.6) + dev: true + /semver@5.7.2: resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} hasBin: true @@ -8167,6 +8364,12 @@ packages: engines: {node: '>=0.10.0'} dev: false + /serialize-javascript@6.0.1: + resolution: {integrity: sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==} + dependencies: + randombytes: 2.1.0 + dev: true + /serve-static@1.15.0: resolution: {integrity: sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==} engines: {node: '>= 0.8.0'} @@ -8275,7 +8478,6 @@ packages: dependencies: buffer-from: 1.1.2 source-map: 0.6.1 - dev: false /source-map@0.5.7: resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} @@ -8285,7 +8487,6 @@ packages: /source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - dev: false /source-map@0.7.4: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} @@ -8503,7 +8704,6 @@ packages: engines: {node: '>=10'} dependencies: has-flag: 4.0.0 - dev: false /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} @@ -8565,7 +8765,6 @@ packages: /tapable@2.2.1: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} engines: {node: '>=6'} - dev: false /temp@0.8.4: resolution: {integrity: sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==} @@ -8574,6 +8773,30 @@ packages: rimraf: 2.6.3 dev: false + /terser-webpack-plugin@5.3.9(webpack@5.88.2): + resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + '@swc/core': '*' + esbuild: '*' + uglify-js: '*' + webpack: ^5.1.0 + peerDependenciesMeta: + '@swc/core': + optional: true + esbuild: + optional: true + uglify-js: + optional: true + dependencies: + '@jridgewell/trace-mapping': 0.3.18 + jest-worker: 27.5.1 + schema-utils: 3.3.0 + serialize-javascript: 6.0.1 + terser: 5.19.0 + webpack: 5.88.2 + dev: true + /terser@5.19.0: resolution: {integrity: sha512-JpcpGOQLOXm2jsomozdMDpd5f8ZHh1rR48OFgWUH3QsyZcfPgv2qDCYbcDEAYNd4OZRj2bWYKpwdll/udZCk/Q==} engines: {node: '>=10'} @@ -8583,7 +8806,6 @@ packages: acorn: 8.10.0 commander: 2.20.3 source-map-support: 0.5.21 - dev: false /text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} @@ -8870,7 +9092,6 @@ packages: browserslist: 4.21.9 escalade: 3.1.1 picocolors: 1.0.0 - dev: false /upper-case-first@2.0.2: resolution: {integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==} @@ -8888,7 +9109,6 @@ packages: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: punycode: 2.3.0 - dev: false /url-join@4.0.1: resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} @@ -8955,7 +9175,6 @@ packages: dependencies: glob-to-regexp: 0.4.1 graceful-fs: 4.2.11 - dev: false /wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} @@ -8972,6 +9191,51 @@ packages: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} dev: false + /webpack-sources@3.2.3: + resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==} + engines: {node: '>=10.13.0'} + dev: true + + /webpack@5.88.2: + resolution: {integrity: sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + webpack-cli: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + dependencies: + '@types/eslint-scope': 3.7.4 + '@types/estree': 1.0.1 + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/wasm-edit': 1.11.6 + '@webassemblyjs/wasm-parser': 1.11.6 + acorn: 8.10.0 + acorn-import-assertions: 1.9.0(acorn@8.10.0) + browserslist: 4.21.9 + chrome-trace-event: 1.0.3 + enhanced-resolve: 5.15.0 + es-module-lexer: 1.3.0 + eslint-scope: 5.1.1 + events: 3.3.0 + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.11 + json-parse-even-better-errors: 2.3.1 + loader-runner: 4.3.0 + mime-types: 2.1.35 + neo-async: 2.6.2 + schema-utils: 3.3.0 + tapable: 2.2.1 + terser-webpack-plugin: 5.3.9(webpack@5.88.2) + watchpack: 2.4.0 + webpack-sources: 3.2.3 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js + dev: true + /whatwg-fetch@3.6.2: resolution: {integrity: sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==} dev: false diff --git a/src/resolvers/directus.graphql b/src/resolvers/directus.graphql new file mode 100644 index 0000000..adf4f8c --- /dev/null +++ b/src/resolvers/directus.graphql @@ -0,0 +1,1081 @@ +type Query { + projects(filter: projects_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): [projects!]! + projects_by_id(id: ID!): projects + projects_aggregated(groupBy: [String], filter: projects_filter, limit: Int, offset: Int, page: Int, search: String, sort: [String]): [projects_aggregated!]! + todos(filter: todos_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): [todos!]! + todos_by_id(id: ID!): todos + todos_aggregated(groupBy: [String], filter: todos_filter, limit: Int, offset: Int, page: Int, search: String, sort: [String]): [todos_aggregated!]! +} + +type Mutation { + create_projects_items(filter: projects_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String, data: [create_projects_input!]): [projects!]! + create_projects_item(data: create_projects_input!): projects + create_todos_items(filter: todos_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String, data: [create_todos_input!]): [todos!]! + create_todos_item(data: create_todos_input!): todos + update_projects_items(filter: projects_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String, ids: [ID]!, data: update_projects_input!): [projects!]! + update_projects_batch(filter: projects_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String, data: [update_projects_input!]): [projects!]! + update_projects_item(id: ID!, data: update_projects_input!): projects + update_todos_items(filter: todos_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String, ids: [ID]!, data: update_todos_input!): [todos!]! + update_todos_batch(filter: todos_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String, data: [update_todos_input!]): [todos!]! + update_todos_item(id: ID!, data: update_todos_input!): todos + delete_projects_items(ids: [ID]!): delete_many + delete_projects_item(id: ID!): delete_one + delete_todos_items(ids: [ID]!): delete_many + delete_todos_item(id: ID!): delete_one +} + +type Subscription { + projects_mutated(event: EventEnum): projects_mutated + todos_mutated(event: EventEnum): todos_mutated + directus_dashboards_mutated(event: EventEnum): directus_dashboards_mutated + directus_activity_mutated(event: EventEnum): directus_activity_mutated + directus_notifications_mutated(event: EventEnum): directus_notifications_mutated + directus_flows_mutated(event: EventEnum): directus_flows_mutated + directus_folders_mutated(event: EventEnum): directus_folders_mutated + directus_files_mutated(event: EventEnum): directus_files_mutated + directus_panels_mutated(event: EventEnum): directus_panels_mutated + directus_roles_mutated(event: EventEnum): directus_roles_mutated + directus_presets_mutated(event: EventEnum): directus_presets_mutated + directus_revisions_mutated(event: EventEnum): directus_revisions_mutated + directus_settings_mutated(event: EventEnum): directus_settings_mutated + directus_operations_mutated(event: EventEnum): directus_operations_mutated + directus_permissions_mutated(event: EventEnum): directus_permissions_mutated + directus_translations_mutated(event: EventEnum): directus_translations_mutated + directus_users_mutated(event: EventEnum): directus_users_mutated + directus_shares_mutated(event: EventEnum): directus_shares_mutated + directus_webhooks_mutated(event: EventEnum): directus_webhooks_mutated +} + +"""The `Boolean` scalar type represents `true` or `false`.""" +scalar Boolean + +"""ISO8601 Date values""" +scalar Date + +""" +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +""" +scalar Float + +"""BigInt value""" +scalar GraphQLBigInt + +"""A Float or a String""" +scalar GraphQLStringOrFloat + +"""Hashed string values""" +scalar Hash + +""" +The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. +""" +scalar ID + +""" +The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. +""" +scalar Int + +""" +The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +""" +The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. +""" +scalar String + +enum EventEnum { + create + update + delete +} + +type count_functions { + count: Int +} + +type datetime_functions { + year: Int + month: Int + week: Int + day: Int + weekday: Int + hour: Int + minute: Int + second: Int +} + +type delete_many { + ids: [ID]! +} + +type delete_one { + id: ID! +} + +type directus_activity { + id: ID! + action: String! + user(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + timestamp: Date + timestamp_func: datetime_functions + ip: String + user_agent: String + collection: String! + item: String! + comment: String + origin: String + revisions(filter: directus_revisions_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): [directus_revisions] + revisions_func: count_functions +} + +type directus_activity_mutated { + key: ID! + event: EventEnum + data: directus_activity +} + +type directus_dashboards { + id: ID! + name: String! + icon: String + note: String + date_created: Date + date_created_func: datetime_functions + user_created(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + color: String + panels(filter: directus_panels_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): [directus_panels] + panels_func: count_functions +} + +type directus_dashboards_mutated { + key: ID! + event: EventEnum + data: directus_dashboards +} + +type directus_files { + id: ID! + storage: String! + filename_disk: String + filename_download: String! + title: String + type: String + folder(filter: directus_folders_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_folders + uploaded_by(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + uploaded_on: Date + uploaded_on_func: datetime_functions + modified_by(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + modified_on: Date + modified_on_func: datetime_functions + charset: String + filesize: GraphQLBigInt + width: Int + height: Int + duration: Int + embed: String + description: String + location: String + tags: JSON + tags_func: count_functions + metadata: JSON + metadata_func: count_functions +} + +type directus_files_mutated { + key: ID! + event: EventEnum + data: directus_files +} + +type directus_flows { + id: ID! + name: String! + icon: String + color: String + description: String + status: String + trigger: String + accountability: String + options: JSON + options_func: count_functions + operation(filter: directus_operations_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_operations + date_created: Date + date_created_func: datetime_functions + user_created(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + operations(filter: directus_operations_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): [directus_operations] + operations_func: count_functions +} + +type directus_flows_mutated { + key: ID! + event: EventEnum + data: directus_flows +} + +type directus_folders { + id: ID! + name: String! + parent(filter: directus_folders_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_folders +} + +type directus_folders_mutated { + key: ID! + event: EventEnum + data: directus_folders +} + +type directus_notifications { + id: ID! + timestamp: Date + timestamp_func: datetime_functions + status: String + recipient(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + sender(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + subject: String! + message: String + collection: String + item: String +} + +type directus_notifications_mutated { + key: ID! + event: EventEnum + data: directus_notifications +} + +type directus_operations { + id: ID! + name: String + key: String! + type: String! + position_x: Int! + position_y: Int! + options: JSON + options_func: count_functions + resolve(filter: directus_operations_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_operations + reject(filter: directus_operations_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_operations + flow(filter: directus_flows_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_flows + date_created: Date + date_created_func: datetime_functions + user_created(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users +} + +type directus_operations_mutated { + key: ID! + event: EventEnum + data: directus_operations +} + +type directus_panels { + id: ID! + dashboard(filter: directus_dashboards_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_dashboards + name: String + icon: String + color: String + show_header: Boolean! + note: String + type: String! + position_x: Int! + position_y: Int! + width: Int! + height: Int! + options: JSON + options_func: count_functions + date_created: Date + date_created_func: datetime_functions + user_created(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users +} + +type directus_panels_mutated { + key: ID! + event: EventEnum + data: directus_panels +} + +type directus_permissions { + id: ID! + role(filter: directus_roles_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_roles + collection: String! + action: String! + permissions: JSON + permissions_func: count_functions + validation: JSON + validation_func: count_functions + presets: JSON + presets_func: count_functions + fields: [String] +} + +type directus_permissions_mutated { + key: ID! + event: EventEnum + data: directus_permissions +} + +type directus_presets { + id: ID! + bookmark: String + user(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + role(filter: directus_roles_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_roles + collection: String + search: String + layout: String + layout_query: JSON + layout_query_func: count_functions + layout_options: JSON + layout_options_func: count_functions + refresh_interval: Int + filter: JSON + filter_func: count_functions + icon: String + color: String +} + +type directus_presets_mutated { + key: ID! + event: EventEnum + data: directus_presets +} + +type directus_revisions { + id: ID! + activity(filter: directus_activity_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_activity + collection: String! + item: String! + data: JSON + data_func: count_functions + delta: JSON + delta_func: count_functions + parent(filter: directus_revisions_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_revisions +} + +type directus_revisions_mutated { + key: ID! + event: EventEnum + data: directus_revisions +} + +type directus_roles { + id: ID! + name: String! + icon: String + description: String + ip_access: [String] + enforce_tfa: Boolean! + admin_access: Boolean! + app_access: Boolean + users(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): [directus_users] + users_func: count_functions +} + +type directus_roles_mutated { + key: ID! + event: EventEnum + data: directus_roles +} + +type directus_settings { + id: ID! + project_name: String + project_url: String + + """$t:field_options.directus_settings.project_color_note""" + project_color: String + project_logo(filter: directus_files_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_files + public_foreground(filter: directus_files_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_files + public_background(filter: directus_files_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_files + public_note: String + auth_login_attempts: Int + auth_password_policy: String + storage_asset_transform: String + storage_asset_presets: JSON + storage_asset_presets_func: count_functions + custom_css: String + storage_default_folder(filter: directus_folders_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_folders + basemaps: JSON + basemaps_func: count_functions + mapbox_key: String + module_bar: JSON + module_bar_func: count_functions + project_descriptor: String + default_language: String + custom_aspect_ratios: JSON + custom_aspect_ratios_func: count_functions +} + +type directus_settings_mutated { + key: ID! + event: EventEnum + data: directus_settings +} + +type directus_shares { + id: ID! + name: String + collection: String! + item: String! + role(filter: directus_roles_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_roles + + """$t:shared_leave_blank_for_passwordless_access""" + password: Hash + user_created(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + date_created: Date + date_created_func: datetime_functions + + """$t:shared_leave_blank_for_unlimited""" + date_start: Date + date_start_func: datetime_functions + + """$t:shared_leave_blank_for_unlimited""" + date_end: Date + date_end_func: datetime_functions + times_used: Int + + """$t:shared_leave_blank_for_unlimited""" + max_uses: Int +} + +type directus_shares_mutated { + key: ID! + event: EventEnum + data: directus_shares +} + +type directus_translations { + id: ID! + language: String! + key: String! + value: String! +} + +type directus_translations_mutated { + key: ID! + event: EventEnum + data: directus_translations +} + +type directus_users { + id: ID! + first_name: String + last_name: String + email: String + password: Hash + location: String + title: String + description: String + tags: JSON + tags_func: count_functions + avatar(filter: directus_files_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_files + language: String + theme: String + tfa_secret: Hash + status: String + role(filter: directus_roles_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_roles + token: Hash + last_access: Date + last_access_func: datetime_functions + last_page: String + provider: String + external_identifier: String + auth_data: JSON + auth_data_func: count_functions + email_notifications: Boolean +} + +type directus_users_mutated { + key: ID! + event: EventEnum + data: directus_users +} + +type directus_webhooks { + id: ID! + name: String! + method: String + url: String! + status: String + data: Boolean + actions: [String]! + collections: [String]! + headers: JSON + headers_func: count_functions +} + +type directus_webhooks_mutated { + key: ID! + event: EventEnum + data: directus_webhooks +} + +type projects { + id: ID! + sort: Int + user_created(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + date_created: Date + date_created_func: datetime_functions + user_updated(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + date_updated: Date + date_updated_func: datetime_functions + text: String +} + +type projects_aggregated { + group: JSON + countAll: Int + count: projects_aggregated_count + countDistinct: projects_aggregated_count + avg: projects_aggregated_fields + sum: projects_aggregated_fields + avgDistinct: projects_aggregated_fields + sumDistinct: projects_aggregated_fields + min: projects_aggregated_fields + max: projects_aggregated_fields +} + +type projects_aggregated_count { + id: Int + sort: Int + user_created: Int + date_created: Int + user_updated: Int + date_updated: Int + text: Int +} + +type projects_aggregated_fields { + sort: Float +} + +type projects_mutated { + key: ID! + event: EventEnum + data: projects +} + +type todos { + id: ID! + status: String + sort: Int + user_created(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + date_created: Date + date_created_func: datetime_functions + user_updated(filter: directus_users_filter, sort: [String], limit: Int, offset: Int, page: Int, search: String): directus_users + date_updated: Date + date_updated_func: datetime_functions + task: String +} + +type todos_aggregated { + group: JSON + countAll: Int + count: todos_aggregated_count + countDistinct: todos_aggregated_count + avg: todos_aggregated_fields + sum: todos_aggregated_fields + avgDistinct: todos_aggregated_fields + sumDistinct: todos_aggregated_fields + min: todos_aggregated_fields + max: todos_aggregated_fields +} + +type todos_aggregated_count { + id: Int + status: Int + sort: Int + user_created: Int + date_created: Int + user_updated: Int + date_updated: Int + task: Int +} + +type todos_aggregated_fields { + sort: Float +} + +type todos_mutated { + key: ID! + event: EventEnum + data: todos +} + +input boolean_filter_operators { + _eq: Boolean + _neq: Boolean + _null: Boolean + _nnull: Boolean +} + +input count_function_filter_operators { + count: number_filter_operators +} + +input create_directus_files_input { + id: ID + storage: String! + filename_disk: String + filename_download: String! + title: String + type: String + folder: create_directus_folders_input + uploaded_by: create_directus_users_input + uploaded_on: Date + modified_by: create_directus_users_input + modified_on: Date + charset: String + filesize: GraphQLBigInt + width: Int + height: Int + duration: Int + embed: String + description: String + location: String + tags: JSON + metadata: JSON +} + +input create_directus_folders_input { + id: ID + name: String! + parent: create_directus_folders_input +} + +input create_directus_roles_input { + id: ID + name: String! + icon: String + description: String + ip_access: [String] + enforce_tfa: Boolean! + admin_access: Boolean! + app_access: Boolean + users: [create_directus_users_input] +} + +input create_directus_users_input { + id: ID + first_name: String + last_name: String + email: String + password: Hash + location: String + title: String + description: String + tags: JSON + avatar: create_directus_files_input + language: String + theme: String + tfa_secret: Hash + status: String + role: create_directus_roles_input + token: Hash + last_access: Date + last_page: String + provider: String + external_identifier: String + auth_data: JSON + email_notifications: Boolean +} + +input create_projects_input { + id: ID + sort: Int + user_created: create_directus_users_input + date_created: Date + user_updated: create_directus_users_input + date_updated: Date + text: String +} + +input create_todos_input { + id: ID + status: String + sort: Int + user_created: create_directus_users_input + date_created: Date + user_updated: create_directus_users_input + date_updated: Date + task: String +} + +input date_filter_operators { + _eq: String + _neq: String + _gt: String + _gte: String + _lt: String + _lte: String + _null: Boolean + _nnull: Boolean + _in: [String] + _nin: [String] + _between: [GraphQLStringOrFloat] + _nbetween: [GraphQLStringOrFloat] +} + +input datetime_function_filter_operators { + year: number_filter_operators + month: number_filter_operators + week: number_filter_operators + day: number_filter_operators + weekday: number_filter_operators + hour: number_filter_operators + minute: number_filter_operators + second: number_filter_operators +} + +input directus_activity_filter { + id: number_filter_operators + action: string_filter_operators + user: directus_users_filter + timestamp: date_filter_operators + timestamp_func: datetime_function_filter_operators + ip: string_filter_operators + user_agent: string_filter_operators + collection: string_filter_operators + item: string_filter_operators + comment: string_filter_operators + origin: string_filter_operators + revisions: directus_revisions_filter + revisions_func: count_function_filter_operators + _and: [directus_activity_filter] + _or: [directus_activity_filter] +} + +input directus_dashboards_filter { + id: string_filter_operators + name: string_filter_operators + icon: string_filter_operators + note: string_filter_operators + date_created: date_filter_operators + date_created_func: datetime_function_filter_operators + user_created: directus_users_filter + color: string_filter_operators + panels: directus_panels_filter + panels_func: count_function_filter_operators + _and: [directus_dashboards_filter] + _or: [directus_dashboards_filter] +} + +input directus_files_filter { + id: string_filter_operators + storage: string_filter_operators + filename_disk: string_filter_operators + filename_download: string_filter_operators + title: string_filter_operators + type: string_filter_operators + folder: directus_folders_filter + uploaded_by: directus_users_filter + uploaded_on: date_filter_operators + uploaded_on_func: datetime_function_filter_operators + modified_by: directus_users_filter + modified_on: date_filter_operators + modified_on_func: datetime_function_filter_operators + charset: string_filter_operators + filesize: number_filter_operators + width: number_filter_operators + height: number_filter_operators + duration: number_filter_operators + embed: string_filter_operators + description: string_filter_operators + location: string_filter_operators + tags: string_filter_operators + tags_func: count_function_filter_operators + metadata: string_filter_operators + metadata_func: count_function_filter_operators + _and: [directus_files_filter] + _or: [directus_files_filter] +} + +input directus_flows_filter { + id: string_filter_operators + name: string_filter_operators + icon: string_filter_operators + color: string_filter_operators + description: string_filter_operators + status: string_filter_operators + trigger: string_filter_operators + accountability: string_filter_operators + options: string_filter_operators + options_func: count_function_filter_operators + operation: directus_operations_filter + date_created: date_filter_operators + date_created_func: datetime_function_filter_operators + user_created: directus_users_filter + operations: directus_operations_filter + operations_func: count_function_filter_operators + _and: [directus_flows_filter] + _or: [directus_flows_filter] +} + +input directus_folders_filter { + id: string_filter_operators + name: string_filter_operators + parent: directus_folders_filter + _and: [directus_folders_filter] + _or: [directus_folders_filter] +} + +input directus_operations_filter { + id: string_filter_operators + name: string_filter_operators + key: string_filter_operators + type: string_filter_operators + position_x: number_filter_operators + position_y: number_filter_operators + options: string_filter_operators + options_func: count_function_filter_operators + resolve: directus_operations_filter + reject: directus_operations_filter + flow: directus_flows_filter + date_created: date_filter_operators + date_created_func: datetime_function_filter_operators + user_created: directus_users_filter + _and: [directus_operations_filter] + _or: [directus_operations_filter] +} + +input directus_panels_filter { + id: string_filter_operators + dashboard: directus_dashboards_filter + name: string_filter_operators + icon: string_filter_operators + color: string_filter_operators + show_header: boolean_filter_operators + note: string_filter_operators + type: string_filter_operators + position_x: number_filter_operators + position_y: number_filter_operators + width: number_filter_operators + height: number_filter_operators + options: string_filter_operators + options_func: count_function_filter_operators + date_created: date_filter_operators + date_created_func: datetime_function_filter_operators + user_created: directus_users_filter + _and: [directus_panels_filter] + _or: [directus_panels_filter] +} + +input directus_revisions_filter { + id: number_filter_operators + activity: directus_activity_filter + collection: string_filter_operators + item: string_filter_operators + data: string_filter_operators + data_func: count_function_filter_operators + delta: string_filter_operators + delta_func: count_function_filter_operators + parent: directus_revisions_filter + _and: [directus_revisions_filter] + _or: [directus_revisions_filter] +} + +input directus_roles_filter { + id: string_filter_operators + name: string_filter_operators + icon: string_filter_operators + description: string_filter_operators + ip_access: string_filter_operators + enforce_tfa: boolean_filter_operators + admin_access: boolean_filter_operators + app_access: boolean_filter_operators + users: directus_users_filter + users_func: count_function_filter_operators + _and: [directus_roles_filter] + _or: [directus_roles_filter] +} + +input directus_users_filter { + id: string_filter_operators + first_name: string_filter_operators + last_name: string_filter_operators + email: string_filter_operators + password: hash_filter_operators + location: string_filter_operators + title: string_filter_operators + description: string_filter_operators + tags: string_filter_operators + tags_func: count_function_filter_operators + avatar: directus_files_filter + language: string_filter_operators + theme: string_filter_operators + tfa_secret: hash_filter_operators + status: string_filter_operators + role: directus_roles_filter + token: hash_filter_operators + last_access: date_filter_operators + last_access_func: datetime_function_filter_operators + last_page: string_filter_operators + provider: string_filter_operators + external_identifier: string_filter_operators + auth_data: string_filter_operators + auth_data_func: count_function_filter_operators + email_notifications: boolean_filter_operators + _and: [directus_users_filter] + _or: [directus_users_filter] +} + +input hash_filter_operators { + _null: Boolean + _nnull: Boolean + _empty: Boolean + _nempty: Boolean +} + +input number_filter_operators { + _eq: GraphQLStringOrFloat + _neq: GraphQLStringOrFloat + _in: [GraphQLStringOrFloat] + _nin: [GraphQLStringOrFloat] + _gt: GraphQLStringOrFloat + _gte: GraphQLStringOrFloat + _lt: GraphQLStringOrFloat + _lte: GraphQLStringOrFloat + _null: Boolean + _nnull: Boolean + _between: [GraphQLStringOrFloat] + _nbetween: [GraphQLStringOrFloat] +} + +input projects_filter { + id: string_filter_operators + sort: number_filter_operators + user_created: directus_users_filter + date_created: date_filter_operators + date_created_func: datetime_function_filter_operators + user_updated: directus_users_filter + date_updated: date_filter_operators + date_updated_func: datetime_function_filter_operators + text: string_filter_operators + _and: [projects_filter] + _or: [projects_filter] +} + +input string_filter_operators { + _eq: String + _neq: String + _contains: String + _icontains: String + _ncontains: String + _starts_with: String + _nstarts_with: String + _istarts_with: String + _nistarts_with: String + _ends_with: String + _nends_with: String + _iends_with: String + _niends_with: String + _in: [String] + _nin: [String] + _null: Boolean + _nnull: Boolean + _empty: Boolean + _nempty: Boolean +} + +input todos_filter { + id: string_filter_operators + status: string_filter_operators + sort: number_filter_operators + user_created: directus_users_filter + date_created: date_filter_operators + date_created_func: datetime_function_filter_operators + user_updated: directus_users_filter + date_updated: date_filter_operators + date_updated_func: datetime_function_filter_operators + task: string_filter_operators + _and: [todos_filter] + _or: [todos_filter] +} + +input update_directus_files_input { + id: ID + storage: String + filename_disk: String + filename_download: String + title: String + type: String + folder: update_directus_folders_input + uploaded_by: update_directus_users_input + uploaded_on: Date + modified_by: update_directus_users_input + modified_on: Date + charset: String + filesize: GraphQLBigInt + width: Int + height: Int + duration: Int + embed: String + description: String + location: String + tags: JSON + metadata: JSON +} + +input update_directus_folders_input { + id: ID + name: String + parent: update_directus_folders_input +} + +input update_directus_roles_input { + id: ID + name: String + icon: String + description: String + ip_access: [String] + enforce_tfa: Boolean + admin_access: Boolean + app_access: Boolean + users: [update_directus_users_input] +} + +input update_directus_users_input { + id: ID + first_name: String + last_name: String + email: String + password: Hash + location: String + title: String + description: String + tags: JSON + avatar: update_directus_files_input + language: String + theme: String + tfa_secret: Hash + status: String + role: update_directus_roles_input + token: Hash + last_access: Date + last_page: String + provider: String + external_identifier: String + auth_data: JSON + email_notifications: Boolean +} + +input update_projects_input { + id: ID + sort: Int + user_created: update_directus_users_input + date_created: Date + user_updated: update_directus_users_input + date_updated: Date + text: String +} + +input update_todos_input { + id: ID + status: String + sort: Int + user_created: update_directus_users_input + date_created: Date + user_updated: update_directus_users_input + date_updated: Date + task: String +} \ No newline at end of file diff --git a/src/resolvers/subs_directus.js b/src/resolvers/subs_directus.js index 5d96398..6a79863 100644 --- a/src/resolvers/subs_directus.js +++ b/src/resolvers/subs_directus.js @@ -7,15 +7,17 @@ const path = require('path') const pubsub = new PubSub(); -let schemaFilePath; -if (process.env.NODE_ENV === 'production') { - schemaFilePath = path.resolve(process.cwd(), 'schemas/directus.graphql'); -} else { - schemaFilePath = path.resolve(process.cwd(), 'public/schemas/directus.graphql'); -} +// let schemaFilePath; +// if (process.env.NODE_ENV === 'production') { +// schemaFilePath = path.resolve(process.cwd(), 'schemas/directus.graphql'); +// } else { +// schemaFilePath = path.resolve(process.cwd(), 'public/schemas/directus.graphql'); +// } + +const schema = require('raw-loader!./directus.graphql').default; // Read the schema file -const schema = fs.readFileSync(schemaFilePath, 'utf8'); +// const schema = fs.readFileSync(schemaFilePath, 'utf8'); // Parse the schema const document = parse(schema);