{"_id":"@anthony809/shopify","_rev":"5-4478cc2e9cd516440047b10b73b4eacf","name":"@anthony809/shopify","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"@anthony809/shopify","version":"0.0.1","description":"Make shopify store query and auto generate types for query.","main":"build/main.js","devDependencies":{"@types/node":"^20.1.1"},"keywords":["shopify","TypeScript","types","graphQl"],"author":{"name":"anthony809"},"license":"ISC","types":"./build/main.d.ts","_id":"@anthony809/shopify@0.0.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Q+eChIM7B5uZ8P2K50ekRcKeXTvq68FAB9NehOqU6G34CeWQDhsuo9zoD9YMQ21XtEbhgQEsCBQ+QZXAAk3byw==","shasum":"165f6ef1dc40dc19d4995268c5355124ba94d516","tarball":"https://registry.npmjs.org/@anthony809/shopify/-/shopify-0.0.1.tgz","fileCount":9,"unpackedSize":14606,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyeJmvOczwD3vwwTj5PQ6sWIJ2b+z2svA7NOE8+ETLTAIhAPLl8gYEQsZhbsUdqQiV0kKh6u2zIqvyIlqvHpqDakYR"}]},"_npmUser":{"name":"anthony809","email":"anthonytoribio809@gmail.com"},"directories":{},"maintainers":[{"name":"anthony809","email":"anthonytoribio809@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify_0.0.1_1683673058201_0.3882213529255629"},"_hasShrinkwrap":false},"0.0.2":{"name":"@anthony809/shopify","version":"0.0.2","description":"Simple and fast package to query and mutate data from shopify, auto generating types.","main":"build/main.js","repository":{"url":"https://github.com/anthony-809"},"devDependencies":{"@types/node":"^20.1.1"},"keywords":["shopify","TypeScript","types","graphQl"],"author":{"name":"anthony809"},"license":"ISC","_id":"@anthony809/shopify@0.0.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Q3du2wy0v+fmEvB2qrKaZdJMKOiVSvQT9WNi08vHOqsmgpR+aBQc9vd3nD/Nir+yVzhAAqUDKK8QpdX4h3O4lg==","shasum":"07d330001eed93cf987a0988183ac7fe1453782a","tarball":"https://registry.npmjs.org/@anthony809/shopify/-/shopify-0.0.2.tgz","fileCount":10,"unpackedSize":16532,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC92AsgYG03aQAuK2IaGgxN7FGZnzITXCrbamQE57y5NwIgQ2s58NAydOMGbsdnhsAynrC4DIuqFd3S4a8oFhhQxec="}]},"_npmUser":{"name":"anthony809","email":"anthonytoribio809@gmail.com"},"directories":{},"maintainers":[{"name":"anthony809","email":"anthonytoribio809@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify_0.0.2_1683862428096_0.6046014359765581"},"_hasShrinkwrap":false},"0.0.3":{"name":"@anthony809/shopify","version":"0.0.3","description":"Simple and fast package to query and mutate data from shopify, auto generating types.","main":"build/client.js","repository":{"url":"https://github.com/anthony-809"},"devDependencies":{"@types/node":"^20.1.1"},"keywords":["shopify","TypeScript","types","graphQl"],"author":{"name":"anthony809"},"license":"ISC","types":"./build/client.d.ts","_id":"@anthony809/shopify@0.0.3","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-i2hu0MZAreMyjxpZmhD+ODB4k/pVEZ9M+ZG/nfHeYzGK3TBTU54ZnTWKrSAjqQpV/lgkycfqp4WyPwOwzO/Omw==","shasum":"bcb79c84acfd54b85cc51ca1afb0591b9dfdb7b9","tarball":"https://registry.npmjs.org/@anthony809/shopify/-/shopify-0.0.3.tgz","fileCount":10,"unpackedSize":16534,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuduIsNG70oRc3aaE79CHNLCOhfDFdPs1lcuJn5GiqxgIhAJgqTvHpMGmPnKpih4x3r0bOSOFkIUbPy7azN1JjT3CN"}]},"_npmUser":{"name":"anthony809","email":"anthonytoribio809@gmail.com"},"directories":{},"maintainers":[{"name":"anthony809","email":"anthonytoribio809@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify_0.0.3_1683863634748_0.2025186333487825"},"_hasShrinkwrap":false},"0.0.4":{"name":"@anthony809/shopify","type":"module","version":"0.0.4","description":"Simple and fast package to query and mutate data from shopify, auto generating types.","main":"build/client.js","repository":{"url":"https://github.com/anthony-809"},"devDependencies":{"@types/node":"^20.1.1"},"keywords":["shopify","TypeScript","types","graphQl"],"author":{"name":"anthony809"},"license":"ISC","types":"./build/client.d.ts","_id":"@anthony809/shopify@0.0.4","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Ut72BedhPVYba+/NI+nWhNUY1oOQrd9B1h1F7ACGkaXAlg8v8/ZKX8N6iM26WectfIsy9iRJpWa2rAKCBqYcHQ==","shasum":"d5596135a844983254cf075607032a00fe3f70f0","tarball":"https://registry.npmjs.org/@anthony809/shopify/-/shopify-0.0.4.tgz","fileCount":10,"unpackedSize":16552,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/lq9d+mK+WG4ocVlxAdN+dHc0LOTzhrRYGb6p6OyhXwIhANzUIv4/WM9+gputpSaULBURH3q4WUSdlD8kGLEvIlJK"}]},"_npmUser":{"name":"anthony809","email":"anthonytoribio809@gmail.com"},"directories":{},"maintainers":[{"name":"anthony809","email":"anthonytoribio809@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify_0.0.4_1683863902346_0.7239554331074356"},"_hasShrinkwrap":false},"0.0.5":{"name":"@anthony809/shopify","type":"module","version":"0.0.5","description":"Simple and fast package to query and mutate data from shopify, auto generating types.","main":"build/client.js","repository":{"url":"https://github.com/anthony-809"},"devDependencies":{"@types/node":"^20.1.1"},"keywords":["shopify","TypeScript","types","graphQl"],"author":{"name":"anthony809"},"license":"ISC","types":"./build/client.d.ts","_id":"@anthony809/shopify@0.0.5","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-NkrC7Or7Q5QeNVj5HfbzIrKhTMPomrMmuYPzaoxGKmUsLKZC/jqwRvgXP9qExqDxPuwNeX03d1HtMiw/6bxrDA==","shasum":"12a1e4b76a3cfc409e41b787f46a98cfcff33342","tarball":"https://registry.npmjs.org/@anthony809/shopify/-/shopify-0.0.5.tgz","fileCount":10,"unpackedSize":17149,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmTIZO9evFiayXXxNbteDrgDqPAJNJMakQM/ckXpDBkAiEAqw7LQzsnAJIvzhyRDwmJYpJbF4c8uwHAB+4kXYoHS1k="}]},"_npmUser":{"name":"anthony809","email":"anthonytoribio809@gmail.com"},"directories":{},"maintainers":[{"name":"anthony809","email":"anthonytoribio809@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify_0.0.5_1684071425410_0.9205630796974908"},"_hasShrinkwrap":false},"0.0.6":{"name":"@anthony809/shopify","type":"module","version":"0.0.6","description":"Simple and fast package to query and mutate data from shopify, auto generating types.","main":"build/client.js","repository":{"url":"https://github.com/anthony-809"},"devDependencies":{"@types/node":"^20.1.1"},"keywords":["shopify","TypeScript","types","graphQl"],"author":{"name":"anthony809"},"license":"ISC","types":"./build/client.d.ts","_id":"@anthony809/shopify@0.0.6","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pOLskGcSk2Jyfln3tuDno1hSWE4jMiRPSzLVWwuBbobO+h2woYtGYWw+mFo0at09wqQ3AEVEZChtU/e8CYyCdQ==","shasum":"54b0e5761ac3ac37ca80ba192013072836ad8e66","tarball":"https://registry.npmjs.org/@anthony809/shopify/-/shopify-0.0.6.tgz","fileCount":10,"unpackedSize":16434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSYqsApL5+v2zkn0vQeW21fm9Tf6wsM+ZKVyno5cdnIAiBJ9MN0YZVwqFcQ3/IBk1fDH+1N44leS+FvA3TpZro1gw=="}]},"_npmUser":{"name":"anthony809","email":"anthonytoribio809@gmail.com"},"directories":{},"maintainers":[{"name":"anthony809","email":"anthonytoribio809@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify_0.0.6_1684072147506_0.10597033344551088"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-09T22:57:38.147Z","0.0.1":"2023-05-09T22:57:38.397Z","modified":"2023-05-14T13:49:07.774Z","0.0.2":"2023-05-12T03:33:48.263Z","0.0.3":"2023-05-12T03:53:54.910Z","0.0.4":"2023-05-12T03:58:22.486Z","0.0.5":"2023-05-14T13:37:05.660Z","0.0.6":"2023-05-14T13:49:07.677Z"},"maintainers":[{"name":"anthony809","email":"anthonytoribio809@gmail.com"}],"description":"Simple and fast package to query and mutate data from shopify, auto generating types.","keywords":["shopify","TypeScript","types","graphQl"],"author":{"name":"anthony809"},"license":"ISC","readme":"## Shopify GraphQl Package\nSimple and fast package to query and mutate data from shopify, auto generating types\n### Import client\n```typeScript\nimport Shopify from \"@anthony809/shopify\"\nconst storeUrl = \"https://shop.myshopify.com/\"\nconst StorefrontAccessToken = \"12232344323kj432323\"\nconst shopify = new Shopify(storeUrl,StorefrontAccessToken)\n// Make a query\nconst query = `\n    query getProducts {\n        products(first: 5){\n            nodes{\n                title id handle\n            }\n        }\n    }\n`\n// Make request, the response return ok:true|false, if true response return { ok:true,result:any }\nconst response = await shopify.request(query,{ type:\"query\",method:\"products\" })\n// Always check if everything went fine\nif(response.ok){  \n    const data = response.result\n    console.log(data) \n}\n```\n### Import server\nWhen import server, you can generate type for result\n```typeScript\nimport type { HomeProductsResult } from \"./types\"\nimport ShopifyServer { type GenerateType } from \"@anthony809/shopify/server\"\nconst storeUrl = \"https://shop.myshopify.com/\"\nconst StorefrontAccessToken = \"12232344323kj432323\"\nconst shopifyServer = new ShopifyServer(storeUrl,StorefrontAccessToken)\n// Make a query\nconst query = `\n    query getProducts {\n        products(first: 5){\n            nodes{\n                title id handle\n            }\n        }\n    }\n`\n// Make request, the response return ok:true|false, if true response return { ok:true,result:any }\nconst generateTypeConfig:GenerateType = { name:\"HomeProductsResult\",path:\"./test/types.ts\"}\nconst response = await shopifyServer.request(query,{ type:\"query\",method:\"products\" },generateTypeConfig)\n// Always check if everything went fine\nif(response.ok){  \n    const data:HomeProductsResult = response.result\n    console.log(data) \n}\n```","readmeFilename":"README.md","repository":{"url":"https://github.com/anthony-809"}}