Skip to content

Commit b1fa949

Browse files
authored
Merge pull request #66 from Linq2GraphQL/generation-fixes
Generation fixes
2 parents b61b7d9 + d6d3c3d commit b1fa949

File tree

167 files changed

+10980
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+10980
-53
lines changed

Linq2GraphQL.sln

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".items", ".items", "{7A8567FE-C13A-434E-AFA6-5A8F55F2C6B5}"
99
ProjectSection(SolutionItems) = preProject
1010
.gitignore = .gitignore
11+
Directory.Packages.props = Directory.Packages.props
1112
nuget.config = nuget.config
1213
README.md = README.md
1314
version.json = version.json
14-
Directory.Packages.props = Directory.Packages.props
1515
EndProjectSection
1616
EndProject
1717
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Linq2GraphQL.TestServer", "test\Linq2GraphQL.TestServer\Linq2GraphQL.TestServer.csproj", "{AD8291B6-5979-4C43-B785-EAD4FF93C564}"
@@ -54,6 +54,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
5454
README.md = README.md
5555
EndProjectSection
5656
EndProject
57+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StartGG", "StartGG\StartGG.csproj", "{B59EEB8E-8B81-4470-9295-86DF27A769D2}"
58+
EndProject
5759
Global
5860
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5961
Debug|Any CPU = Debug|Any CPU
@@ -108,6 +110,10 @@ Global
108110
{3C66EF43-E66D-46DE-B2BB-434E7FC20487}.Debug|Any CPU.Build.0 = Debug|Any CPU
109111
{3C66EF43-E66D-46DE-B2BB-434E7FC20487}.Release|Any CPU.ActiveCfg = Release|Any CPU
110112
{3C66EF43-E66D-46DE-B2BB-434E7FC20487}.Release|Any CPU.Build.0 = Release|Any CPU
113+
{B59EEB8E-8B81-4470-9295-86DF27A769D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
114+
{B59EEB8E-8B81-4470-9295-86DF27A769D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
115+
{B59EEB8E-8B81-4470-9295-86DF27A769D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
116+
{B59EEB8E-8B81-4470-9295-86DF27A769D2}.Release|Any CPU.Build.0 = Release|Any CPU
111117
EndGlobalSection
112118
GlobalSection(SolutionProperties) = preSolution
113119
HideSolutionNode = FALSE
@@ -123,6 +129,7 @@ Global
123129
{C0E1A444-A834-4FC0-8436-38066EA8D37D} = {F646B02D-53FC-4C88-8941-2255A2F4DAF6}
124130
{A941BD4C-8B04-4273-AC0B-CF86D71D7E0B} = {884758A6-B667-4CA0-B186-AFB6331A24A5}
125131
{3C66EF43-E66D-46DE-B2BB-434E7FC20487} = {884758A6-B667-4CA0-B186-AFB6331A24A5}
132+
{B59EEB8E-8B81-4470-9295-86DF27A769D2} = {884758A6-B667-4CA0-B186-AFB6331A24A5}
126133
EndGlobalSection
127134
GlobalSection(ExtensibilityGlobals) = postSolution
128135
SolutionGuid = {01DC7AB7-9900-4FCA-BACB-7DAAE825E25E}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ Install/Update Tool:
6363
-s, --subscriptions Include subscriptions (Exprimental)
6464
-es --enum-strategy If AddUnknownOption all enums will have an additional Unknown option
6565
-nu --nullabel Nullable client [default: false]
66-
66+
-d --deprecated Include Deprecated as Obsolete
67+
6768
As an example:
6869

6970
Linq2GraphQL https://spacex-production.up.railway.app/ -c="SpaceXClient" -n="SpaceX" -o="Generated"
Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
//---------------------------------------------------------------------
2+
// This code was automatically generated by Linq2GraphQL
3+
// Please don't edit this file
4+
// Github:https://github.com/linq2graphql/linq2graphql.client
5+
// Url: https://linq2graphql.com
6+
//---------------------------------------------------------------------
7+
8+
using System.Collections.Generic;
9+
using System;
10+
using Linq2GraphQL.Client;
11+
12+
namespace StartGG.Client;
13+
14+
public class MutationMethods
15+
{
16+
private readonly GraphClient client;
17+
18+
public MutationMethods(GraphClient client)
19+
{
20+
this.client = client;
21+
}
22+
23+
public GraphQuery<bool?> DeletePhase(ID phaseId)
24+
{
25+
var arguments = new List<ArgumentValue>
26+
{
27+
new("phaseId","ID!", phaseId),
28+
};
29+
30+
return new GraphQuery<bool?>(client, "deletePhase", OperationType.Mutation, arguments);
31+
}
32+
33+
public GraphQuery<bool?> DeleteStation(ID stationId)
34+
{
35+
var arguments = new List<ArgumentValue>
36+
{
37+
new("stationId","ID!", stationId),
38+
};
39+
40+
return new GraphQuery<bool?>(client, "deleteStation", OperationType.Mutation, arguments);
41+
}
42+
43+
public GraphQuery<bool?> DeleteWave(ID waveId)
44+
{
45+
var arguments = new List<ArgumentValue>
46+
{
47+
new("waveId","ID!", waveId),
48+
};
49+
50+
return new GraphQuery<bool?>(client, "deleteWave", OperationType.Mutation, arguments);
51+
}
52+
53+
public GraphQuery<string> GenerateRegistrationToken(TournamentRegistrationInput registration, ID userId)
54+
{
55+
var arguments = new List<ArgumentValue>
56+
{
57+
new("registration","TournamentRegistrationInput!", registration),
58+
new("userId","ID!", userId),
59+
};
60+
61+
return new GraphQuery<string>(client, "generateRegistrationToken", OperationType.Mutation, arguments);
62+
}
63+
64+
public GraphQuery<Set> MarkSetCalled(ID setId)
65+
{
66+
var arguments = new List<ArgumentValue>
67+
{
68+
new("setId","ID!", setId),
69+
};
70+
71+
return new GraphQuery<Set>(client, "markSetCalled", OperationType.Mutation, arguments);
72+
}
73+
74+
public GraphQuery<Set> MarkSetInProgress(ID setId)
75+
{
76+
var arguments = new List<ArgumentValue>
77+
{
78+
new("setId","ID!", setId),
79+
};
80+
81+
return new GraphQuery<Set>(client, "markSetInProgress", OperationType.Mutation, arguments);
82+
}
83+
84+
public GraphQuery<Participant> RegisterForTournament(TournamentRegistrationInput registration = null, string registrationToken = null)
85+
{
86+
var arguments = new List<ArgumentValue>
87+
{
88+
new("registration","TournamentRegistrationInput", registration),
89+
new("registrationToken","String", registrationToken),
90+
};
91+
92+
return new GraphQuery<Participant>(client, "registerForTournament", OperationType.Mutation, arguments);
93+
}
94+
95+
public GraphQuery<List<Set>> ReportBracketSet(ID setId, ID winnerId = null, bool? isDQ = null, List<BracketSetGameDataInput> gameData = null)
96+
{
97+
var arguments = new List<ArgumentValue>
98+
{
99+
new("setId","ID!", setId),
100+
new("winnerId","ID", winnerId),
101+
new("isDQ","Boolean", isDQ),
102+
new("gameData","[BracketSetGameDataInput]", gameData),
103+
};
104+
105+
return new GraphQuery<List<Set>>(client, "reportBracketSet", OperationType.Mutation, arguments);
106+
}
107+
108+
public GraphQuery<Set> ResetSet(ID setId, bool? resetDependentSets = null)
109+
{
110+
var arguments = new List<ArgumentValue>
111+
{
112+
new("setId","ID!", setId),
113+
new("resetDependentSets","Boolean", resetDependentSets),
114+
};
115+
116+
return new GraphQuery<Set>(client, "resetSet", OperationType.Mutation, arguments);
117+
}
118+
119+
public GraphQuery<List<Seed>> ResolveScheduleConflicts(ID tournamentId, ResolveConflictsOptions options = null)
120+
{
121+
var arguments = new List<ArgumentValue>
122+
{
123+
new("tournamentId","ID!", tournamentId),
124+
new("options","ResolveConflictsOptions", options),
125+
};
126+
127+
return new GraphQuery<List<Seed>>(client, "resolveScheduleConflicts", OperationType.Mutation, arguments);
128+
}
129+
130+
public GraphQuery<List<Seed>> SwapSeeds(ID phaseId, ID seed1Id, ID seed2Id)
131+
{
132+
var arguments = new List<ArgumentValue>
133+
{
134+
new("phaseId","ID!", phaseId),
135+
new("seed1Id","ID!", seed1Id),
136+
new("seed2Id","ID!", seed2Id),
137+
};
138+
139+
return new GraphQuery<List<Seed>>(client, "swapSeeds", OperationType.Mutation, arguments);
140+
}
141+
142+
public GraphQuery<Set> UpdateBracketSet(ID setId, ID winnerId = null, bool? isDQ = null, List<BracketSetGameDataInput> gameData = null)
143+
{
144+
var arguments = new List<ArgumentValue>
145+
{
146+
new("setId","ID!", setId),
147+
new("winnerId","ID", winnerId),
148+
new("isDQ","Boolean", isDQ),
149+
new("gameData","[BracketSetGameDataInput]", gameData),
150+
};
151+
152+
return new GraphQuery<Set>(client, "updateBracketSet", OperationType.Mutation, arguments);
153+
}
154+
155+
public GraphQuery<List<PhaseGroup>> UpdatePhaseGroups(List<PhaseGroupUpdateInput> groupConfigs)
156+
{
157+
var arguments = new List<ArgumentValue>
158+
{
159+
new("groupConfigs","[PhaseGroupUpdateInput]!", groupConfigs),
160+
};
161+
162+
return new GraphQuery<List<PhaseGroup>>(client, "updatePhaseGroups", OperationType.Mutation, arguments);
163+
}
164+
165+
public GraphQuery<Phase> UpdatePhaseSeeding(ID phaseId, List<UpdatePhaseSeedInfo> seedMapping, UpdatePhaseSeedingOptions options = null)
166+
{
167+
var arguments = new List<ArgumentValue>
168+
{
169+
new("phaseId","ID!", phaseId),
170+
new("seedMapping","[UpdatePhaseSeedInfo]!", seedMapping),
171+
new("options","UpdatePhaseSeedingOptions", options),
172+
};
173+
174+
return new GraphQuery<Phase>(client, "updatePhaseSeeding", OperationType.Mutation, arguments);
175+
}
176+
177+
public GraphQuery<Phase> UpsertPhase(PhaseUpsertInput payload, ID phaseId = null, ID eventId = null)
178+
{
179+
var arguments = new List<ArgumentValue>
180+
{
181+
new("phaseId","ID", phaseId),
182+
new("eventId","ID", eventId),
183+
new("payload","PhaseUpsertInput!", payload),
184+
};
185+
186+
return new GraphQuery<Phase>(client, "upsertPhase", OperationType.Mutation, arguments);
187+
}
188+
189+
public GraphQuery<Stations> UpsertStation(StationUpsertInput fields, ID stationId = null, ID tournamentId = null)
190+
{
191+
var arguments = new List<ArgumentValue>
192+
{
193+
new("stationId","ID", stationId),
194+
new("tournamentId","ID", tournamentId),
195+
new("fields","StationUpsertInput!", fields),
196+
};
197+
198+
return new GraphQuery<Stations>(client, "upsertStation", OperationType.Mutation, arguments);
199+
}
200+
201+
public GraphQuery<Wave> UpsertWave(WaveUpsertInput fields, ID waveId = null, ID tournamentId = null)
202+
{
203+
var arguments = new List<ArgumentValue>
204+
{
205+
new("waveId","ID", waveId),
206+
new("tournamentId","ID", tournamentId),
207+
new("fields","WaveUpsertInput!", fields),
208+
};
209+
210+
return new GraphQuery<Wave>(client, "upsertWave", OperationType.Mutation, arguments);
211+
}
212+
213+
}

0 commit comments

Comments
 (0)