Skip to content

Commit

Permalink
new version with get request
Browse files Browse the repository at this point in the history
  • Loading branch information
aexol committed Apr 15, 2024
1 parent d85c574 commit bf5102b
Show file tree
Hide file tree
Showing 11 changed files with 396 additions and 365 deletions.
2 changes: 1 addition & 1 deletion examples/typescript-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-node",
"version": "1.1.3",
"version": "1.1.4",
"description": "",
"private": true,
"main": "index.js",
Expand Down
98 changes: 49 additions & 49 deletions examples/typescript-node/src/zeus/const.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,56 @@
/* eslint-disable */

export const AllTypesProps: Record<string,any> = {
SpecialSkills: "enum" as const,
Card:{
attack:{

}
},
JSON: `scalar.JSON` as const,
Mutation:{
addCard:{
card:"createCard"
}
},
Public:{
powerups:{

}
},
SpecialSkills: "enum" as const,
Query:{
cardById:{

}
},
Card:{
attack:{

}
},
createCard:{
skills:"SpecialSkills"
}
},
Mutation:{
addCard:{
card:"createCard"
}
},
JSON: `scalar.JSON` as const
}

export const ReturnTypes: Record<string,any> = {
S3Object:{
bucket:"String",
key:"String",
region:"String"
Public:{
powerups:"Powerup"
},
ChangeCard:{
"...on SpecialCard":"SpecialCard",
"...on EffectCard":"EffectCard"
EffectCard:{
effectSize:"Float",
name:"String"
},
Nameable:{
"...on EffectCard": "EffectCard",
"...on Card": "Card",
"...on SpecialCard": "SpecialCard",
"...on CardStack": "CardStack",
name:"String"
},
Query:{
cardById:"Card",
drawCard:"Card",
drawChangeCard:"ChangeCard",
listCards:"Card",
myStacks:"CardStack",
nameables:"Nameable",
public:"Public"
},
Card:{
Attack:"Int",
Expand All @@ -51,47 +65,33 @@ export const ReturnTypes: Record<string,any> = {
name:"String",
skills:"SpecialSkills"
},
Nameable:{
"...on Card": "Card",
"...on CardStack": "CardStack",
"...on SpecialCard": "SpecialCard",
"...on EffectCard": "EffectCard",
name:"String"
ChangeCard:{
"...on SpecialCard":"SpecialCard",
"...on EffectCard":"EffectCard"
},
JSON: `scalar.JSON` as const,
Powerup:{
name:"String"
},
Mutation:{
addCard:"Card"
},
CardStack:{
cards:"Card",
SpecialCard:{
effect:"String",
name:"String"
},
Public:{
powerups:"Powerup"
},
Query:{
cardById:"Card",
drawCard:"Card",
drawChangeCard:"ChangeCard",
listCards:"Card",
myStacks:"CardStack",
nameables:"Nameable",
public:"Public"
Mutation:{
addCard:"Card"
},
Subscription:{
deck:"Card"
},
SpecialCard:{
effect:"String",
CardStack:{
cards:"Card",
name:"String"
},
EffectCard:{
effectSize:"Float",
name:"String"
}
S3Object:{
bucket:"String",
key:"String",
region:"String"
},
JSON: `scalar.JSON` as const
}

export const Ops = {
Expand Down
Loading

0 comments on commit bf5102b

Please sign in to comment.