{"_id":"@acrool/graphql-codegen-apollo-subscription","_rev":"14-2701a4893c559e597231a87eb67ae1d4","name":"@acrool/graphql-codegen-apollo-subscription","dist-tags":{"latest":"3.0.1-test.9"},"versions":{"3.0.1":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"429c7249180fff551f84bcf12ce50ef4410628b2","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1.tgz","fileCount":23,"integrity":"sha512-uRV6Ruih1kLvEEyCVrprGRntJU8LLzCT/xvA5TofALWq5pPWIWShgZts1zH5JsQifpdE2GJSrz0qWzHQFACWoQ==","signatures":[{"sig":"MEYCIQChEnIaM742twGfzmPMQZOXhcrV9eA+hJjYxP8si7d4SQIhAI+8EmUGTzfcrj/V2olLEpzRZEo7UWCwH1veMXq3JT7e","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40751},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"1ccca7bce0948e94b475f707e1874c5d2bfbf62c","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1_1733987685592_0.033764250779455995","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.0":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.0","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.0","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"2d316da8e3b18f2d134383d4659b2c0f4b0c0821","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.0.tgz","fileCount":23,"integrity":"sha512-KmQBFKpsyOTg/86b5JBl3I1f0G7TWxyUnkwMpaEo/QorhiMDOJv7Ky2Xg3ZMengLk48/3ePZ8yx/QhpoLyxXqw==","signatures":[{"sig":"MEUCIEBtXtq45OfQyBR4d4j/VzLDPO3iA3+PxL2Fj0l0K7XCAiEA4C2icEAE7DPLdRWfgpnqAeJSP1PSX0yIvDA8LESx4dc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44560},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"1ccca7bce0948e94b475f707e1874c5d2bfbf62c","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.0_1733989533427_0.8837956178988935","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.1":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.1","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.1","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"f3216751d7b93e2b9e5fcc2bd2fb12f91fffb890","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.1.tgz","fileCount":23,"integrity":"sha512-SLElcVuSGpKT25loEvGGea1CKAD1MPmNRSWPMdyIgJcmRJBOC5CFvVgQCg6jYMvV1om1zb24GeRsD6MH/dmuUg==","signatures":[{"sig":"MEYCIQD0Hh1fc5SZ3XlEDnszY+vWR6wFak6W2iqrlR07Zofh5gIhAPKmJkpsIQS+sQIu1ZPAPQEOHRRYMIA2UBH83VMd1m9I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42586},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"55b577a5b14a96b8d49dc5dc5108d68336cfe23d","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.1_1733990186634_0.08545091770855073","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.2":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.2","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.2","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"46ed47709ad11be0f081177c96ca9d2a91fd5b18","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.2.tgz","fileCount":23,"integrity":"sha512-e8dV4w6yU4iLijLbmSQ483zENVlv8ukmtpixZxMGd1DPXgM6T75ChMg0myBE0Vb7Q2biLQ510J+K3Kz9R/YlcA==","signatures":[{"sig":"MEUCIQD1Bmuiy+618lCcL/DBHHaB5/N0ie9DG0CWYekYySrbOAIgczRErTq8EmovD64GIxRMWY5micRRLTp2WSjiXhHF/IM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42068},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"55b577a5b14a96b8d49dc5dc5108d68336cfe23d","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.2_1733990350058_0.15982830705676232","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.3":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.3","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.3","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"9f2d970cbae7d38f9928905936f65010ff74327d","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.3.tgz","fileCount":23,"integrity":"sha512-xTA7i/rXEu+OLJ31F7soyr6jA0jN4GM6I/xQrRFNb5aSqL5DJ43PlYPU2c7CNOJQ1va274AGsRsVZmldWbK2Hw==","signatures":[{"sig":"MEUCIFulZPuCf2lNgVLVH836xUUSwlyIybI7pw4Bv4bmK2oLAiEArjvCdy+ehsqYxub6Atg5uLC/hbWZo2zfc059DdD9szI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44284},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"55b577a5b14a96b8d49dc5dc5108d68336cfe23d","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.3_1733990635377_0.4951430082709407","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.4":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.4","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.4","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"621c5c848ef914225cd358a6a096dc677e0b9793","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.4.tgz","fileCount":23,"integrity":"sha512-9+8aD3gep/QuHzi0kk644X5Etn6MO5p2ONQOHC3PwS9NoMOJ/KgW7XToHUNy/dniEfsoaT63VRudbEBx7M8LpA==","signatures":[{"sig":"MEYCIQDL0d9XOGoo+gfwa0QuN9yaDOsp/SHKQ4281kMnRdBcxgIhALqlWiRt0KLt+rZ8QO25f7b1spwp9GKzf0z2xZgArm2S","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42105},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"00281b07aadccfbc19fc0841c3fcbb3421e70cb2","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.4_1733991751970_0.24234176496967952","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.5":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.5","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.5","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"ff7cc5be22cfd7d6e2ad5cb240b65bcd1e6008e8","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.5.tgz","fileCount":23,"integrity":"sha512-DLXaiQvLsEfu7yjQbeSZTezQ3CVCcmyC7Z/3EjrWoCsd+L7Tjn3+n9BRtWEVG+ATae41VUWaexnuvvByeExFow==","signatures":[{"sig":"MEYCIQClyG9pI2vaO/kp5pa+V4te5D99xs2tWyK7WJIc2mU4PQIhANeUYT94bPcdVPXW3FCDP9UefFZWrS8IjcgIzj0c+y9T","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44284},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"00281b07aadccfbc19fc0841c3fcbb3421e70cb2","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.5_1733992572285_0.09069722586248985","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.6":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.6","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.6","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"d4e60fbd3442b0b4d3e9d6698f6bc6fe54e26535","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.6.tgz","fileCount":23,"integrity":"sha512-5+f5X0snt2O/jyD/Mt7MY+edQPZKtEBe3iszea8kbwm9HLnwOhXNT8hPG5Mo1OK+ueXrCFYewLcWbmdGtV9lVQ==","signatures":[{"sig":"MEUCIQC7qseFCpk8bL4EjF0ohgnJBaYmP3eUCmUzyikLZPMfmgIgFGoAYxpj3LWmxHhaPvoSvhkeJ8qA+I13Wskhj1eezOA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43953},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"00281b07aadccfbc19fc0841c3fcbb3421e70cb2","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.6_1733998396609_0.9722227759883155","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.7":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.7","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.7","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"093c74bdca7f4c98b7dcf3dd9fbe591449b4d924","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.7.tgz","fileCount":23,"integrity":"sha512-NpJoDxgSMrzjjfA6I26yjwbly9JxN7I8mQtYi7M8R5V477ou+4IJBdEXNGv9qud95w3HLgWJXfPZ1nuw3geilg==","signatures":[{"sig":"MEYCIQCeP6XwSzsRzRrIqJwA7V2R+YIhQMJDdfa6AP3y7bK4lAIhAMS71Sj02jIaXoNMp5ljDX3ZctYUbTh0fwfPbBE0hRt+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42253},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"843bfabcbd59bb602085967e88a943021047bd4a","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.7_1733999880483_0.690541883741079","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.8":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.8","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.8","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"05b8006bbfb4441142928cf5d02dbbb99bfbaa75","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.8.tgz","fileCount":23,"integrity":"sha512-tXcuj8n6xRnBbrJKqUI/pE9laf6xA3GluFN+lzizM++4D4lb5kDCivswqWeBEMHnOi57Y6JIIbBzRt5/Pw50Lg==","signatures":[{"sig":"MEUCIQCXAU2JtpiSod22/gxm9D62zT5q8ttaff7y/omCH0BzIAIgUZ0GIfm+s0DPUOgEqurhXoU+Z4wfW0IIPeiq0TEj6Ss=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41565},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"75ccd2f8ab9cb7d336ac78543b2fc04bf9b390d6","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.8_1734000141860_0.7968082446663769","host":"s3://npm-registry-packages-npm-production"}},"3.0.1-test.9":{"name":"@acrool/graphql-codegen-apollo-subscription","version":"3.0.1-test.9","keywords":["typescript","graphql-code-generator","apollo","subscription"],"license":"MIT","_id":"@acrool/graphql-codegen-apollo-subscription@3.0.1-test.9","maintainers":[{"name":"imagine10255","email":"imagine10255@gmail.com"}],"homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"dist":{"shasum":"5e82e8f23a7e5d034562516ea56af45a127c8e33","tarball":"https://registry.npmjs.org/@acrool/graphql-codegen-apollo-subscription/-/graphql-codegen-apollo-subscription-3.0.1-test.9.tgz","fileCount":23,"integrity":"sha512-hVtRybnsTVH7zB2MYUipGDnKieWvoTOlMWv/y5qhnhGKpWiAJF8RqMxuTJTXwfDFfyXdgH96G+5tshdVwfXkRw==","signatures":[{"sig":"MEYCIQCS/K2sBqE/Q5VGQ3aV0jlnEqgasde7sRVPXOq+FLxcGAIhAKGdHunQXyq9KKc0ApNbcqEgweeCd9RZqGZnUHreg+Am","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41496},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=14"},"gitHead":"dd4cadec705bba62d294ce19f4f347244a9f2584","private":false,"_npmUser":{"name":"imagine10255","email":"imagine10255@gmail.com"},"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"_npmVersion":"10.2.4","description":"react-query for graphql-code-generator","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/graphql-codegen-apollo-subscription_3.0.1-test.9_1734001086741_0.06646314484595983","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-12-12T07:14:45.513Z","modified":"2025-11-16T17:14:00.068Z","3.0.1":"2024-12-12T07:14:45.787Z","3.0.1-test.0":"2024-12-12T07:45:33.693Z","3.0.1-test.1":"2024-12-12T07:56:26.800Z","3.0.1-test.2":"2024-12-12T07:59:10.215Z","3.0.1-test.3":"2024-12-12T08:03:55.565Z","3.0.1-test.4":"2024-12-12T08:22:32.141Z","3.0.1-test.5":"2024-12-12T08:36:12.492Z","3.0.1-test.6":"2024-12-12T10:13:16.743Z","3.0.1-test.7":"2024-12-12T10:38:00.656Z","3.0.1-test.8":"2024-12-12T10:42:22.029Z","3.0.1-test.9":"2024-12-12T10:58:06.916Z"},"bugs":{"url":"https://github.com/acrool/acrool-graphql-codegen/issues"},"license":"MIT","homepage":"https://github.com/acrool/acrool-graphql-codegen#readme","keywords":["typescript","graphql-code-generator","apollo","subscription"],"repository":{"url":"git+https://github.com/acrool/acrool-graphql-codegen.git","type":"git"},"description":"react-query for graphql-code-generator","maintainers":[{"email":"imagine10255@gmail.com","name":"imagine10255"},{"email":"a0988153377@gmail.com","name":"garychien"}],"readme":"# @acrool/graphql-codegen-react-query\n\n[Improved graphql-codegen Hook](https://medium.com/@imaginechiu/improved-graphql-codegen-hook-4606cee4c29c)\nAdjustments based on the original @graphql-codegen/typescript-react-query\n\n- add getKey not variables and options variables\n- modify variables to object variables and fetchOptions \n\n## Install\n\n```bash\n$ yarn add @acrool/graphql-codegen-react-query -D\n```\n\n\n## Setting\n\ncodegen.ts\n\n```typescript\nimport { CodegenConfig } from '@graphql-codegen/cli'\n\nconst config: CodegenConfig = {\n    schema: [\n        './schema.graphql',\n        'scalar Upload'\n    ],\n    documents: [\n        './src/store/{main,custom}/**/doc.gql',\n    ],\n    generates: {\n        './src/library/graphql/__generated__.ts': {\n            plugins: [\n                'typescript',\n                'typescript-operations',\n                '@acrool/graphql-codegen-react-query',\n            ],\n        },\n    },\n    config: {\n        exposeQueryKeys: true,\n        fetcher: {\n            func: './fetcher#useFetchData',\n            isReactHook: true,\n        }\n    }\n}\n```\n\n\n\n## Fetcher\n\n```ts\nimport {AxiosRequestConfig} from 'axios';\n\nimport {useAxiosClient} from '@/library/axios/AxiosClientProvider';\n\nimport {getVariablesFileMap, TFileMapVariables} from './utils';\n\n// doc: https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-react-query#usage-example-isreacthook-true\nconst delay = (ms: number) => new Promise(resolve => {\n    setTimeout(() => {\n        resolve(true);\n    }, ms);\n});\n\n\nexport interface IFetchOptions extends AxiosRequestConfig{\n    requestCode?: string\n}\nexport interface IUseFetcherArgs<TVariables> {variables?: TVariables, fetchOptions?: IFetchOptions}\nexport interface IUseSubscriptionArgs<TVariables> {variables?: TVariables}\n\nexport const useFetchData = <TData, TArgs extends IUseFetcherArgs<TFileMapVariables>>(\n    query: string,\n): ((args?: TArgs) => Promise<TData>) => {\n    const axiosInstance = useAxiosClient();\n\n    return async (args?: TArgs) => {\n        let data: FormData | string;\n        let contentType: string;\n        const options = args?.fetchOptions;\n        const variables = args?.variables;\n\n        let isMultipartFormData = false;\n        if(variables){\n            const varOptions = getVariablesFileMap<TArgs['variables']>(variables);\n            isMultipartFormData = varOptions.values.length > 0;\n\n            // 如有檔案上傳，變更格式\n            if(isMultipartFormData) {\n                contentType = 'multipart/form-data';\n\n                const operations = JSON.stringify({\n                    query,\n                    variables: varOptions.variables\n                });\n\n                const graphqlFormOptions = [\n                    {name: 'operations', value: operations},\n                    {name: 'map', value: JSON.stringify({0: varOptions.map})},\n                    ...varOptions.values.map((row, index) => {\n                        return {name: index, value: row};\n                    }),\n                ];\n\n                data = new FormData();\n                graphqlFormOptions.forEach(row => {\n                    (data as FormData).append(row.name.toString(), row.value);\n                });\n\n            }\n        }\n\n        if(!isMultipartFormData){\n            contentType = 'application/json';\n            data = JSON.stringify({query, variables});\n        }\n\n        const endpoint = '/';\n        const headers = {\n            'Content-Type': contentType,\n            'Apollo-Require-Preflight': 'true',\n            'X-Requested-With': 'XMLHttpRequest',\n        };\n\n        const [res] = await Promise.all([\n            axiosInstance.post(endpoint, data, {\n                ...options,\n                headers,\n            }),\n            delay(400),\n        ]);\n\n        return res.data.data;\n    };\n};\n\n```\n\n## Usage\n\n```typescript\nconst DropFileUpload = () => {\n    const qc = useQueryClient();\n    const UploadFile = useTaskFileUploadMutation();\n    const Tasks = useTasksQuery();\n\n    const handleOnUpload: TOnUpload = async (file: any, options) => {\n\n        try {\n            const res = await UploadFile.mutateAsync({\n                variables: {\n                    taskId,\n                    file,\n                },\n                fetchOptions: {\n                    onUploadProgress: options.onUpdateProgress,\n                },\n            });\n\n            qc.invalidateQueries(useTasksQuery.getKey());\n            qc.setQueryData<ITaskFilesQuery>(useTaskFilesQuery.getKey({taskId}), ((oldData) => {\n                return produce(oldData, draft => {\n                    draft.taskFiles = push(draft.taskFiles, res.taskFileUpload.newData);\n                });\n            }));\n            options.onUploadDone();\n\n        }catch (e){\n            if(e instanceof SystemException) {\n                options.onUploadFail(e.message);\n            }\n        }\n\n    };\n}\n\n```\n\n\n\n## License\n\nMIT © [acrool](https://github.com/acrool)\n","readmeFilename":"README.md"}