-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
26 lines (26 loc) · 2.41 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"name": "prime-gaming-graphql",
"version": "1.0.0",
"description": "A documentation and schema scraping of Prime Gaming's GraphQL API.",
"scripts": {
"build": "npm run gen-schema && npm run gen-docs",
"gen-schema": "npm run gen-schema:json && npm run gen-schema:gql",
"gen-schema:gql": "node idl.js",
"gen-schema:json": "curl https://gaming.amazon.com/graphql -X POST -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0' -H 'Content-Type: application/json' -H 'csrf-token: giVjMeRMVxJHvZ9SY7dlVukBuIVDFOux3izl838AAAACAAAAAGGVpNJyYXcAAAAA+8jokd9rqj+wHxPcX6iU' -H 'Cookie: session-id=146-8168887-4057637; session-id-time=2082787201l; ubid-main=130-3016880-8935116' --data-raw '{\"query\":\"query IntrospectionQuery {\\n __schema {\\n queryType {\\n name\\n }\\n mutationType {\\n name\\n }\\n subscriptionType {\\n name\\n }\\n types {\\n ...FullType\\n }\\n directives {\\n name\\n description\\n locations\\n args {\\n ...InputValue\\n }\\n }\\n }\\n}\\n\\nfragment FullType on __Type {\\n kind\\n name\\n description\\n fields(includeDeprecated: true) {\\n name\\n description\\n args {\\n ...InputValue\\n }\\n type {\\n ...TypeRef\\n }\\n isDeprecated\\n deprecationReason\\n }\\n inputFields {\\n ...InputValue\\n }\\n interfaces {\\n ...TypeRef\\n }\\n enumValues(includeDeprecated: true) {\\n name\\n description\\n isDeprecated\\n deprecationReason\\n }\\n possibleTypes {\\n ...TypeRef\\n }\\n}\\n\\nfragment InputValue on __InputValue {\\n name\\n description\\n type {\\n ...TypeRef\\n }\\n defaultValue\\n}\\n\\nfragment TypeRef on __Type {\\n kind\\n name\\n ofType {\\n kind\\n name\\n ofType {\\n kind\\n name\\n ofType {\\n kind\\n name\\n ofType {\\n kind\\n name\\n ofType {\\n kind\\n name\\n ofType {\\n kind\\n name\\n ofType {\\n kind\\n name\\n }\\n }\\n }\\n }\\n }\\n }\\n }\\n}\\n\\n\"}' -o schema.json",
"gen-docs": "graphqldoc --schema ./schema.graphql --output ./docs --force"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SuperSonicHub1/prime-gaming-graphql.git"
},
"author": "Kyle Williams <[email protected]>",
"license": "I Solemny Swear That I Am Up To No Good",
"bugs": {
"url": "https://github.com/SuperSonicHub1/prime-gaming-graphql/issues"
},
"homepage": "https://github.com/SuperSonicHub1/prime-gaming-graphql#readme",
"dependencies": {
"graphql": "^16.0.1",
"graphqldoc": "^2.5.2"
}
}