Skip to content

Commit 46531f0

Browse files
committed
Fix Particupant field
1 parent d1b40a1 commit 46531f0

File tree

6 files changed

+43
-43
lines changed

6 files changed

+43
-43
lines changed

sdk/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/src/apis/GroupsApi.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type {
1919
DrawTossPayload,
2020
Groups,
2121
GroupsResult,
22-
Participant,
22+
ParticipantField,
2323
} from '../models/index';
2424
import {
2525
CreateGroupsPayloadFromJSON,
@@ -30,8 +30,8 @@ import {
3030
GroupsToJSON,
3131
GroupsResultFromJSON,
3232
GroupsResultToJSON,
33-
ParticipantFromJSON,
34-
ParticipantToJSON,
33+
ParticipantFieldFromJSON,
34+
ParticipantFieldToJSON,
3535
} from '../models/index';
3636

3737
export interface GroupsCreateRequest {
@@ -40,7 +40,7 @@ export interface GroupsCreateRequest {
4040

4141
export interface GroupsParticipantsAddRequest {
4242
id: string;
43-
participant: Participant;
43+
participantField: ParticipantField;
4444
}
4545

4646
export interface GroupsReadRequest {
@@ -75,7 +75,7 @@ export interface GroupsApiInterface {
7575
/**
7676
*
7777
* @param {string} id
78-
* @param {Participant} participant
78+
* @param {ParticipantField} participantField
7979
* @param {*} [options] Override http request option.
8080
* @throws {RequiredError}
8181
* @memberof GroupsApiInterface
@@ -164,10 +164,10 @@ export class GroupsApi extends runtime.BaseAPI implements GroupsApiInterface {
164164
);
165165
}
166166

167-
if (requestParameters['participant'] == null) {
167+
if (requestParameters['participantField'] == null) {
168168
throw new runtime.RequiredError(
169-
'participant',
170-
'Required parameter "participant" was null or undefined when calling groupsParticipantsAdd().'
169+
'participantField',
170+
'Required parameter "participantField" was null or undefined when calling groupsParticipantsAdd().'
171171
);
172172
}
173173

@@ -182,7 +182,7 @@ export class GroupsApi extends runtime.BaseAPI implements GroupsApiInterface {
182182
method: 'POST',
183183
headers: headerParameters,
184184
query: queryParameters,
185-
body: ParticipantToJSON(requestParameters['participant']),
185+
body: ParticipantFieldToJSON(requestParameters['participantField']),
186186
}, initOverrides);
187187

188188
return new runtime.VoidApiResponse(response);

sdk/src/apis/LotteryApi.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type {
1919
DrawTossPayload,
2020
Lottery,
2121
LotteryResult,
22-
Participant,
22+
ParticipantField,
2323
} from '../models/index';
2424
import {
2525
CreateLotteryPayloadFromJSON,
@@ -30,8 +30,8 @@ import {
3030
LotteryToJSON,
3131
LotteryResultFromJSON,
3232
LotteryResultToJSON,
33-
ParticipantFromJSON,
34-
ParticipantToJSON,
33+
ParticipantFieldFromJSON,
34+
ParticipantFieldToJSON,
3535
} from '../models/index';
3636

3737
export interface LotteryCreateRequest {
@@ -40,7 +40,7 @@ export interface LotteryCreateRequest {
4040

4141
export interface LotteryParticipantsAddRequest {
4242
id: string;
43-
participant: Participant;
43+
participantField: ParticipantField;
4444
}
4545

4646
export interface LotteryReadRequest {
@@ -75,7 +75,7 @@ export interface LotteryApiInterface {
7575
/**
7676
*
7777
* @param {string} id
78-
* @param {Participant} participant
78+
* @param {ParticipantField} participantField
7979
* @param {*} [options] Override http request option.
8080
* @throws {RequiredError}
8181
* @memberof LotteryApiInterface
@@ -164,10 +164,10 @@ export class LotteryApi extends runtime.BaseAPI implements LotteryApiInterface {
164164
);
165165
}
166166

167-
if (requestParameters['participant'] == null) {
167+
if (requestParameters['participantField'] == null) {
168168
throw new runtime.RequiredError(
169-
'participant',
170-
'Required parameter "participant" was null or undefined when calling lotteryParticipantsAdd().'
169+
'participantField',
170+
'Required parameter "participantField" was null or undefined when calling lotteryParticipantsAdd().'
171171
);
172172
}
173173

@@ -182,7 +182,7 @@ export class LotteryApi extends runtime.BaseAPI implements LotteryApiInterface {
182182
method: 'POST',
183183
headers: headerParameters,
184184
query: queryParameters,
185-
body: ParticipantToJSON(requestParameters['participant']),
185+
body: ParticipantFieldToJSON(requestParameters['participantField']),
186186
}, initOverrides);
187187

188188
return new runtime.VoidApiResponse(response);

sdk/src/apis/RaffleApi.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import * as runtime from '../runtime';
1717
import type {
1818
CreateRafflePayload,
1919
DrawTossPayload,
20-
Participant,
20+
ParticipantField,
2121
Raffle,
2222
RaffleResult,
2323
} from '../models/index';
@@ -26,8 +26,8 @@ import {
2626
CreateRafflePayloadToJSON,
2727
DrawTossPayloadFromJSON,
2828
DrawTossPayloadToJSON,
29-
ParticipantFromJSON,
30-
ParticipantToJSON,
29+
ParticipantFieldFromJSON,
30+
ParticipantFieldToJSON,
3131
RaffleFromJSON,
3232
RaffleToJSON,
3333
RaffleResultFromJSON,
@@ -40,7 +40,7 @@ export interface RaffleCreateRequest {
4040

4141
export interface RaffleParticipantsAddRequest {
4242
id: string;
43-
participant: Participant;
43+
participantField: ParticipantField;
4444
}
4545

4646
export interface RaffleReadRequest {
@@ -75,7 +75,7 @@ export interface RaffleApiInterface {
7575
/**
7676
*
7777
* @param {string} id
78-
* @param {Participant} participant
78+
* @param {ParticipantField} participantField
7979
* @param {*} [options] Override http request option.
8080
* @throws {RequiredError}
8181
* @memberof RaffleApiInterface
@@ -164,10 +164,10 @@ export class RaffleApi extends runtime.BaseAPI implements RaffleApiInterface {
164164
);
165165
}
166166

167-
if (requestParameters['participant'] == null) {
167+
if (requestParameters['participantField'] == null) {
168168
throw new runtime.RequiredError(
169-
'participant',
170-
'Required parameter "participant" was null or undefined when calling raffleParticipantsAdd().'
169+
'participantField',
170+
'Required parameter "participantField" was null or undefined when calling raffleParticipantsAdd().'
171171
);
172172
}
173173

@@ -182,7 +182,7 @@ export class RaffleApi extends runtime.BaseAPI implements RaffleApiInterface {
182182
method: 'POST',
183183
headers: headerParameters,
184184
query: queryParameters,
185-
body: ParticipantToJSON(requestParameters['participant']),
185+
body: ParticipantFieldToJSON(requestParameters['participantField']),
186186
}, initOverrides);
187187

188188
return new runtime.VoidApiResponse(response);

sdk/src/apis/TournamentApi.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import * as runtime from '../runtime';
1717
import type {
1818
CreateTournamentPayload,
1919
DrawTossPayload,
20-
Participant,
20+
ParticipantField,
2121
Tournament,
2222
TournamentResult,
2323
} from '../models/index';
@@ -26,8 +26,8 @@ import {
2626
CreateTournamentPayloadToJSON,
2727
DrawTossPayloadFromJSON,
2828
DrawTossPayloadToJSON,
29-
ParticipantFromJSON,
30-
ParticipantToJSON,
29+
ParticipantFieldFromJSON,
30+
ParticipantFieldToJSON,
3131
TournamentFromJSON,
3232
TournamentToJSON,
3333
TournamentResultFromJSON,
@@ -40,7 +40,7 @@ export interface TournamentCreateRequest {
4040

4141
export interface TournamentParticipantsAddRequest {
4242
id: string;
43-
participant: Participant;
43+
participantField: ParticipantField;
4444
}
4545

4646
export interface TournamentReadRequest {
@@ -75,7 +75,7 @@ export interface TournamentApiInterface {
7575
/**
7676
*
7777
* @param {string} id
78-
* @param {Participant} participant
78+
* @param {ParticipantField} participantField
7979
* @param {*} [options] Override http request option.
8080
* @throws {RequiredError}
8181
* @memberof TournamentApiInterface
@@ -164,10 +164,10 @@ export class TournamentApi extends runtime.BaseAPI implements TournamentApiInter
164164
);
165165
}
166166

167-
if (requestParameters['participant'] == null) {
167+
if (requestParameters['participantField'] == null) {
168168
throw new runtime.RequiredError(
169-
'participant',
170-
'Required parameter "participant" was null or undefined when calling tournamentParticipantsAdd().'
169+
'participantField',
170+
'Required parameter "participantField" was null or undefined when calling tournamentParticipantsAdd().'
171171
);
172172
}
173173

@@ -182,7 +182,7 @@ export class TournamentApi extends runtime.BaseAPI implements TournamentApiInter
182182
method: 'POST',
183183
headers: headerParameters,
184184
query: queryParameters,
185-
body: ParticipantToJSON(requestParameters['participant']),
185+
body: ParticipantFieldToJSON(requestParameters['participantField']),
186186
}, initOverrides);
187187

188188
return new runtime.VoidApiResponse(response);

swagger.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ paths:
7676
content:
7777
application/json:
7878
schema:
79-
$ref: "#/components/schemas/Participant"
79+
$ref: "#/components/schemas/ParticipantField"
8080
required: true
8181
parameters:
8282
- name: id
@@ -155,7 +155,7 @@ paths:
155155
content:
156156
application/json:
157157
schema:
158-
$ref: "#/components/schemas/Participant"
158+
$ref: "#/components/schemas/ParticipantField"
159159
required: true
160160
parameters:
161161
- name: id
@@ -234,7 +234,7 @@ paths:
234234
content:
235235
application/json:
236236
schema:
237-
$ref: "#/components/schemas/Participant"
237+
$ref: "#/components/schemas/ParticipantField"
238238
required: true
239239
parameters:
240240
- name: id
@@ -313,7 +313,7 @@ paths:
313313
content:
314314
application/json:
315315
schema:
316-
$ref: "#/components/schemas/Participant"
316+
$ref: "#/components/schemas/ParticipantField"
317317
required: true
318318
parameters:
319319
- name: id

0 commit comments

Comments
 (0)