Skip to content

Commit

Permalink
merge the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aexol committed Oct 21, 2023
1 parent a3728e6 commit cfd6d58
Show file tree
Hide file tree
Showing 11 changed files with 371 additions and 353 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.1",
"version": "1.1.2",
"description": "",
"private": true,
"main": "index.js",
Expand Down
84 changes: 42 additions & 42 deletions examples/typescript-node/src/zeus/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

export const AllTypesProps: Record<string,any> = {
JSON: `scalar.JSON` as const,
Public:{
powerups:{
createCard:{
skills:"SpecialSkills"
},
Query:{
cardById:{

}
},
Expand All @@ -12,59 +15,63 @@ export const AllTypesProps: Record<string,any> = {
card:"createCard"
}
},
createCard:{
skills:"SpecialSkills"
Public:{
powerups:{

}
},
Card:{
attack:{

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

}
}
SpecialSkills: "enum" as const
}

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

Expand Down
Loading

0 comments on commit cfd6d58

Please sign in to comment.