@taimos/radball-digital-api 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/league-group.schema.json +317 -0
- package/lib/export/league-group.d.ts +92 -0
- package/lib/export/league-group.js +3 -0
- package/lib/generated/rest.model.generated.d.ts +54 -30
- package/lib/generated/rest.model.generated.js +1 -1
- package/package.json +5 -5
- package/samples/league-group-sample.json +722 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://radball.digital/schemas/league-group-export.json",
|
|
4
|
+
"title": "League Group Export",
|
|
5
|
+
"description": "Schema for exporting league group data including teams, clubs, gyms, and statistics",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["group", "teams", "clubs", "gyms", "statistics"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"group": {
|
|
10
|
+
"$ref": "#/definitions/Group"
|
|
11
|
+
},
|
|
12
|
+
"teams": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"$ref": "#/definitions/TeamDetail"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"clubs": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"$ref": "#/definitions/Club"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"gyms": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"$ref": "#/definitions/Gym"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"statistics": {
|
|
31
|
+
"$ref": "#/definitions/LeagueGroupStatistics"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"definitions": {
|
|
35
|
+
"Address": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": ["street", "zip", "city", "country"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"street": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"zip": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"city": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"country": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"Club": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"required": ["id", "name", "shortName", "preferredDates"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": "uuid"
|
|
60
|
+
},
|
|
61
|
+
"name": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"shortName": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"preferredDates": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"$ref": "#/definitions/PreferredMatchdayDate"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"Season": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": ["id", "name", "startDate", "endDate"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"id": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"format": "uuid"
|
|
82
|
+
},
|
|
83
|
+
"name": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"startDate": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"format": "date"
|
|
89
|
+
},
|
|
90
|
+
"endDate": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"format": "date"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"League": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"required": ["id", "name", "shortName", "description", "minAge", "maxAge", "matchdayDates"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"id": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"format": "uuid"
|
|
103
|
+
},
|
|
104
|
+
"name": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"shortName": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"description": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"minAge": {
|
|
114
|
+
"type": ["number", "null"]
|
|
115
|
+
},
|
|
116
|
+
"maxAge": {
|
|
117
|
+
"type": ["number", "null"]
|
|
118
|
+
},
|
|
119
|
+
"matchdayDates": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"format": "date"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"Leader": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"required": ["id", "firstName", "lastName", "email", "phone"],
|
|
131
|
+
"properties": {
|
|
132
|
+
"id": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"format": "uuid"
|
|
135
|
+
},
|
|
136
|
+
"firstName": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"lastName": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"email": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"format": "email"
|
|
145
|
+
},
|
|
146
|
+
"phone": {
|
|
147
|
+
"type": ["string", "null"]
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"Group": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"required": ["id", "number", "name", "shortName", "season", "league", "leader", "regulation"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"id": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"format": "uuid"
|
|
158
|
+
},
|
|
159
|
+
"number": {
|
|
160
|
+
"type": "number"
|
|
161
|
+
},
|
|
162
|
+
"name": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"shortName": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"season": {
|
|
169
|
+
"$ref": "#/definitions/Season"
|
|
170
|
+
},
|
|
171
|
+
"league": {
|
|
172
|
+
"$ref": "#/definitions/League"
|
|
173
|
+
},
|
|
174
|
+
"leader": {
|
|
175
|
+
"$ref": "#/definitions/Leader"
|
|
176
|
+
},
|
|
177
|
+
"regulation": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"Person": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"required": ["id", "firstName", "lastName", "dateOfBirth", "uciCode", "nationality", "clubId"],
|
|
185
|
+
"properties": {
|
|
186
|
+
"id": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"format": "uuid"
|
|
189
|
+
},
|
|
190
|
+
"firstName": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"lastName": {
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"email": {
|
|
197
|
+
"type": ["string", "null"],
|
|
198
|
+
"format": "email"
|
|
199
|
+
},
|
|
200
|
+
"phone": {
|
|
201
|
+
"type": ["string", "null"]
|
|
202
|
+
},
|
|
203
|
+
"gender": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"dateOfBirth": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"format": "date"
|
|
209
|
+
},
|
|
210
|
+
"uciCode": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"nationality": {
|
|
214
|
+
"type": "string"
|
|
215
|
+
},
|
|
216
|
+
"clubId": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"format": "uuid"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"PreferredMatchdayDate": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"required": ["preferenceDate", "status", "notes"],
|
|
225
|
+
"properties": {
|
|
226
|
+
"preferenceDate": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"format": "date"
|
|
229
|
+
},
|
|
230
|
+
"status": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"enum": ["PREFERRED", "AVAILABLE"]
|
|
233
|
+
},
|
|
234
|
+
"notes": {
|
|
235
|
+
"type": ["string", "null"]
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"TeamDetail": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"required": ["id", "name", "withoutCompetition", "secondRightToPlay", "exemptionRequest", "players", "clubId", "sgClubId"],
|
|
242
|
+
"properties": {
|
|
243
|
+
"id": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"format": "uuid"
|
|
246
|
+
},
|
|
247
|
+
"name": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"withoutCompetition": {
|
|
251
|
+
"type": "boolean"
|
|
252
|
+
},
|
|
253
|
+
"secondRightToPlay": {
|
|
254
|
+
"type": "boolean"
|
|
255
|
+
},
|
|
256
|
+
"exemptionRequest": {
|
|
257
|
+
"type": ["string", "null"]
|
|
258
|
+
},
|
|
259
|
+
"players": {
|
|
260
|
+
"type": "array",
|
|
261
|
+
"items": {
|
|
262
|
+
"$ref": "#/definitions/Person"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"clubId": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"format": "uuid"
|
|
268
|
+
},
|
|
269
|
+
"sgClubId": {
|
|
270
|
+
"type": ["string", "null"],
|
|
271
|
+
"format": "uuid"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"Gym": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"required": ["id", "name", "availableFields", "address", "clubId"],
|
|
278
|
+
"properties": {
|
|
279
|
+
"id": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"format": "uuid"
|
|
282
|
+
},
|
|
283
|
+
"name": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"availableFields": {
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"address": {
|
|
290
|
+
"$ref": "#/definitions/Address"
|
|
291
|
+
},
|
|
292
|
+
"clubId": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"format": "uuid"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"LeagueGroupStatistics": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"required": ["totalTeams", "totalPlayers", "totalClubs", "totalGyms"],
|
|
301
|
+
"properties": {
|
|
302
|
+
"totalTeams": {
|
|
303
|
+
"type": "number"
|
|
304
|
+
},
|
|
305
|
+
"totalPlayers": {
|
|
306
|
+
"type": "number"
|
|
307
|
+
},
|
|
308
|
+
"totalClubs": {
|
|
309
|
+
"type": "number"
|
|
310
|
+
},
|
|
311
|
+
"totalGyms": {
|
|
312
|
+
"type": "number"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export interface Address {
|
|
2
|
+
street: string;
|
|
3
|
+
zip: string;
|
|
4
|
+
city: string;
|
|
5
|
+
country: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Club {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
shortName: string;
|
|
11
|
+
preferredDates: PreferredMatchdayDate[];
|
|
12
|
+
}
|
|
13
|
+
export interface Season {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
startDate: string;
|
|
17
|
+
endDate: string;
|
|
18
|
+
}
|
|
19
|
+
export interface League {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
shortName: string;
|
|
23
|
+
description: string;
|
|
24
|
+
minAge: number | null;
|
|
25
|
+
maxAge: number | null;
|
|
26
|
+
matchdayDates: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface Leader {
|
|
29
|
+
id: string;
|
|
30
|
+
firstName: string;
|
|
31
|
+
lastName: string;
|
|
32
|
+
email: string;
|
|
33
|
+
phone: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface Group {
|
|
36
|
+
id: string;
|
|
37
|
+
number: number;
|
|
38
|
+
name: string;
|
|
39
|
+
shortName: string;
|
|
40
|
+
season: Season;
|
|
41
|
+
league: League;
|
|
42
|
+
leader: Leader;
|
|
43
|
+
regulation: string;
|
|
44
|
+
}
|
|
45
|
+
export interface Person {
|
|
46
|
+
id: string;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
email: string | null;
|
|
50
|
+
phone: string | null;
|
|
51
|
+
gender: string;
|
|
52
|
+
dateOfBirth: string;
|
|
53
|
+
uciCode: string;
|
|
54
|
+
nationality: string;
|
|
55
|
+
clubId: string;
|
|
56
|
+
}
|
|
57
|
+
export type PreferredDateStatus = 'PREFERRED' | 'AVAILABLE';
|
|
58
|
+
export interface PreferredMatchdayDate {
|
|
59
|
+
preferenceDate: string;
|
|
60
|
+
status: PreferredDateStatus;
|
|
61
|
+
notes: string | null;
|
|
62
|
+
}
|
|
63
|
+
export interface TeamDetail {
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
withoutCompetition: boolean;
|
|
67
|
+
secondRightToPlay: boolean;
|
|
68
|
+
exemptionRequest: string | null;
|
|
69
|
+
players: Person[];
|
|
70
|
+
clubId: string;
|
|
71
|
+
sgClubId: string | null;
|
|
72
|
+
}
|
|
73
|
+
export interface Gym {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
availableFields: string;
|
|
77
|
+
address: Address;
|
|
78
|
+
clubId: string;
|
|
79
|
+
}
|
|
80
|
+
export interface LeagueGroupStatistics {
|
|
81
|
+
totalTeams: number;
|
|
82
|
+
totalPlayers: number;
|
|
83
|
+
totalClubs: number;
|
|
84
|
+
totalGyms: number;
|
|
85
|
+
}
|
|
86
|
+
export interface LeagueGroupExport {
|
|
87
|
+
group: Group;
|
|
88
|
+
teams: TeamDetail[];
|
|
89
|
+
clubs: Club[];
|
|
90
|
+
gyms: Gym[];
|
|
91
|
+
statistics: LeagueGroupStatistics;
|
|
92
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVhZ3VlLWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4cG9ydC9sZWFndWUtZ3JvdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQWRkcmVzcyB7XG4gIHN0cmVldDogc3RyaW5nO1xuICB6aXA6IHN0cmluZztcbiAgY2l0eTogc3RyaW5nO1xuICBjb3VudHJ5OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ2x1YiB7XG4gIGlkOiBzdHJpbmc7XG4gIG5hbWU6IHN0cmluZztcbiAgc2hvcnROYW1lOiBzdHJpbmc7XG4gIHByZWZlcnJlZERhdGVzOiBQcmVmZXJyZWRNYXRjaGRheURhdGVbXTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBTZWFzb24ge1xuICBpZDogc3RyaW5nO1xuICBuYW1lOiBzdHJpbmc7XG4gIHN0YXJ0RGF0ZTogc3RyaW5nO1xuICBlbmREYXRlOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgTGVhZ3VlIHtcbiAgaWQ6IHN0cmluZztcbiAgbmFtZTogc3RyaW5nO1xuICBzaG9ydE5hbWU6IHN0cmluZztcbiAgZGVzY3JpcHRpb246IHN0cmluZztcbiAgbWluQWdlOiBudW1iZXIgfCBudWxsO1xuICBtYXhBZ2U6IG51bWJlciB8IG51bGw7XG4gIG1hdGNoZGF5RGF0ZXM6IHN0cmluZ1tdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIExlYWRlciB7XG4gIGlkOiBzdHJpbmc7XG4gIGZpcnN0TmFtZTogc3RyaW5nO1xuICBsYXN0TmFtZTogc3RyaW5nO1xuICBlbWFpbDogc3RyaW5nO1xuICBwaG9uZTogc3RyaW5nIHwgbnVsbDtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBHcm91cCB7XG4gIGlkOiBzdHJpbmc7XG4gIG51bWJlcjogbnVtYmVyO1xuICBuYW1lOiBzdHJpbmc7XG4gIHNob3J0TmFtZTogc3RyaW5nO1xuICBzZWFzb246IFNlYXNvbjtcbiAgbGVhZ3VlOiBMZWFndWU7XG4gIGxlYWRlcjogTGVhZGVyO1xuICByZWd1bGF0aW9uOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgUGVyc29uIHtcbiAgaWQ6IHN0cmluZztcbiAgZmlyc3ROYW1lOiBzdHJpbmc7XG4gIGxhc3ROYW1lOiBzdHJpbmc7XG4gIGVtYWlsOiBzdHJpbmcgfCBudWxsO1xuICBwaG9uZTogc3RyaW5nIHwgbnVsbDtcbiAgZ2VuZGVyOiBzdHJpbmc7XG4gIGRhdGVPZkJpcnRoOiBzdHJpbmc7XG4gIHVjaUNvZGU6IHN0cmluZztcbiAgbmF0aW9uYWxpdHk6IHN0cmluZztcbiAgY2x1YklkOiBzdHJpbmc7XG59XG5cbmV4cG9ydCB0eXBlIFByZWZlcnJlZERhdGVTdGF0dXMgPSAnUFJFRkVSUkVEJyB8ICdBVkFJTEFCTEUnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFByZWZlcnJlZE1hdGNoZGF5RGF0ZSB7XG4gIHByZWZlcmVuY2VEYXRlOiBzdHJpbmc7XG4gIHN0YXR1czogUHJlZmVycmVkRGF0ZVN0YXR1cztcbiAgbm90ZXM6IHN0cmluZyB8IG51bGw7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVGVhbURldGFpbCB7XG4gIGlkOiBzdHJpbmc7XG4gIG5hbWU6IHN0cmluZztcbiAgd2l0aG91dENvbXBldGl0aW9uOiBib29sZWFuO1xuICBzZWNvbmRSaWdodFRvUGxheTogYm9vbGVhbjtcbiAgZXhlbXB0aW9uUmVxdWVzdDogc3RyaW5nIHwgbnVsbDtcbiAgcGxheWVyczogUGVyc29uW107XG4gIGNsdWJJZDogc3RyaW5nO1xuICBzZ0NsdWJJZDogc3RyaW5nIHwgbnVsbDtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBHeW0ge1xuICBpZDogc3RyaW5nO1xuICBuYW1lOiBzdHJpbmc7XG4gIGF2YWlsYWJsZUZpZWxkczogc3RyaW5nO1xuICBhZGRyZXNzOiBBZGRyZXNzO1xuICBjbHViSWQ6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBMZWFndWVHcm91cFN0YXRpc3RpY3Mge1xuICB0b3RhbFRlYW1zOiBudW1iZXI7XG4gIHRvdGFsUGxheWVyczogbnVtYmVyO1xuICB0b3RhbENsdWJzOiBudW1iZXI7XG4gIHRvdGFsR3ltczogbnVtYmVyO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIExlYWd1ZUdyb3VwRXhwb3J0IHtcbiAgZ3JvdXA6IEdyb3VwO1xuICB0ZWFtczogVGVhbURldGFpbFtdO1xuICBjbHViczogQ2x1YltdO1xuICBneW1zOiBHeW1bXTtcbiAgc3RhdGlzdGljczogTGVhZ3VlR3JvdXBTdGF0aXN0aWNzO1xufVxuIl19
|
|
@@ -12,7 +12,8 @@ export interface paths {
|
|
|
12
12
|
};
|
|
13
13
|
get?: never;
|
|
14
14
|
put?: never;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @description Import clubs from a fixed-width text file.
|
|
16
17
|
*
|
|
17
18
|
* File Format:
|
|
18
19
|
* - Fixed-width text file (encoding: UTF-8)
|
|
@@ -31,7 +32,7 @@ export interface paths {
|
|
|
31
32
|
* ```
|
|
32
33
|
* Ailingen Max Mustermann Hauptstraße 123 88046 Musterstadt 07541-1234567 max.mustermann@example.com
|
|
33
34
|
* ```
|
|
34
|
-
|
|
35
|
+
*/
|
|
35
36
|
post: operations["importClubs"];
|
|
36
37
|
delete?: never;
|
|
37
38
|
options?: never;
|
|
@@ -48,7 +49,8 @@ export interface paths {
|
|
|
48
49
|
};
|
|
49
50
|
get?: never;
|
|
50
51
|
put?: never;
|
|
51
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* @description Import gyms from a fixed-width text file.
|
|
52
54
|
*
|
|
53
55
|
* File Format:
|
|
54
56
|
* - Fixed-width text file (encoding: UTF-8)
|
|
@@ -65,7 +67,7 @@ export interface paths {
|
|
|
65
67
|
* ```
|
|
66
68
|
* Ailingen Rotachhalle Ailingen Leonie Fürst Straße 88048 Friedrichshafen-Ailingen 0177-1234567
|
|
67
69
|
* ```
|
|
68
|
-
|
|
70
|
+
*/
|
|
69
71
|
post: operations["importGyms"];
|
|
70
72
|
delete?: never;
|
|
71
73
|
options?: never;
|
|
@@ -82,7 +84,8 @@ export interface paths {
|
|
|
82
84
|
};
|
|
83
85
|
get?: never;
|
|
84
86
|
put?: never;
|
|
85
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* @description Import persons from a CSV file.
|
|
86
89
|
*
|
|
87
90
|
* File Format:
|
|
88
91
|
* - CSV file with semicolon (;) as separator (encoding: UTF-8)
|
|
@@ -108,7 +111,7 @@ export interface paths {
|
|
|
108
111
|
* ```
|
|
109
112
|
* Mustermann;Max;Musterstraße 123;12345;Musterstadt;RV Musterverein;BDR;max.mustermann@example.com;12345;10012345678,00;15.05.1990 00:00:00;männlich;GER;Radball;1
|
|
110
113
|
* ```
|
|
111
|
-
|
|
114
|
+
*/
|
|
112
115
|
post: operations["importPersons"];
|
|
113
116
|
delete?: never;
|
|
114
117
|
options?: never;
|
|
@@ -137,9 +140,10 @@ export interface operations {
|
|
|
137
140
|
};
|
|
138
141
|
requestBody: {
|
|
139
142
|
content: {
|
|
140
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* @example Ailingen Max Mustermann Hauptstraße 123 88046 Musterstadt 07541-1234567 max.mustermann@example.com
|
|
141
145
|
* Alpirsbach Erika Musterfrau Musterweg 42 72275 Testdorf 07444-7654321 0151-98765432 07444-1122334 erika.musterfrau@example.com
|
|
142
|
-
|
|
146
|
+
*/
|
|
143
147
|
"text/plain": string;
|
|
144
148
|
};
|
|
145
149
|
};
|
|
@@ -150,9 +154,11 @@ export interface operations {
|
|
|
150
154
|
[name: string]: unknown;
|
|
151
155
|
};
|
|
152
156
|
content: {
|
|
153
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* @example {
|
|
154
159
|
* "success": true
|
|
155
|
-
* }
|
|
160
|
+
* }
|
|
161
|
+
*/
|
|
156
162
|
"application/json": {
|
|
157
163
|
success?: boolean;
|
|
158
164
|
};
|
|
@@ -164,9 +170,11 @@ export interface operations {
|
|
|
164
170
|
[name: string]: unknown;
|
|
165
171
|
};
|
|
166
172
|
content: {
|
|
167
|
-
/**
|
|
173
|
+
/**
|
|
174
|
+
* @example {
|
|
168
175
|
* "error": "Invalid file format: Line 1 has incorrect length"
|
|
169
|
-
* }
|
|
176
|
+
* }
|
|
177
|
+
*/
|
|
170
178
|
"application/json": {
|
|
171
179
|
error?: string;
|
|
172
180
|
};
|
|
@@ -178,9 +186,11 @@ export interface operations {
|
|
|
178
186
|
[name: string]: unknown;
|
|
179
187
|
};
|
|
180
188
|
content: {
|
|
181
|
-
/**
|
|
189
|
+
/**
|
|
190
|
+
* @example {
|
|
182
191
|
* "error": "Invalid or missing authentication token"
|
|
183
|
-
* }
|
|
192
|
+
* }
|
|
193
|
+
*/
|
|
184
194
|
"application/json": {
|
|
185
195
|
error?: string;
|
|
186
196
|
};
|
|
@@ -197,9 +207,10 @@ export interface operations {
|
|
|
197
207
|
};
|
|
198
208
|
requestBody: {
|
|
199
209
|
content: {
|
|
200
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* @example Ailingen Rotachhalle Ailingen Leonie Fürst Straße 88048 Friedrichshafen-Ailingen 0177-1234567
|
|
201
212
|
* Alpirsbach Turnhalle Sulzberg Sulzberg 72275 Alpirsbach
|
|
202
|
-
|
|
213
|
+
*/
|
|
203
214
|
"text/plain": string;
|
|
204
215
|
};
|
|
205
216
|
};
|
|
@@ -210,9 +221,11 @@ export interface operations {
|
|
|
210
221
|
[name: string]: unknown;
|
|
211
222
|
};
|
|
212
223
|
content: {
|
|
213
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* @example {
|
|
214
226
|
* "success": true
|
|
215
|
-
* }
|
|
227
|
+
* }
|
|
228
|
+
*/
|
|
216
229
|
"application/json": {
|
|
217
230
|
success?: boolean;
|
|
218
231
|
};
|
|
@@ -224,9 +237,11 @@ export interface operations {
|
|
|
224
237
|
[name: string]: unknown;
|
|
225
238
|
};
|
|
226
239
|
content: {
|
|
227
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* @example {
|
|
228
242
|
* "error": "Invalid file format: Line 1 has incorrect length"
|
|
229
|
-
* }
|
|
243
|
+
* }
|
|
244
|
+
*/
|
|
230
245
|
"application/json": {
|
|
231
246
|
error?: string;
|
|
232
247
|
};
|
|
@@ -238,9 +253,11 @@ export interface operations {
|
|
|
238
253
|
[name: string]: unknown;
|
|
239
254
|
};
|
|
240
255
|
content: {
|
|
241
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* @example {
|
|
242
258
|
* "error": "Invalid or missing authentication token"
|
|
243
|
-
* }
|
|
259
|
+
* }
|
|
260
|
+
*/
|
|
244
261
|
"application/json": {
|
|
245
262
|
error?: string;
|
|
246
263
|
};
|
|
@@ -257,10 +274,11 @@ export interface operations {
|
|
|
257
274
|
};
|
|
258
275
|
requestBody: {
|
|
259
276
|
content: {
|
|
260
|
-
/**
|
|
277
|
+
/**
|
|
278
|
+
* @example Nachname;Vorname;Strasse;PLZ;Wohnort;Verein;LV;E-Mail;Lizenz-Nr;UCI-ID;Geburtsdatum;Geschlecht;Nation;Disziplin;Lizenz 2025
|
|
261
279
|
* Mustermann;Max;Musterstraße 123;12345;Musterstadt;RV Musterverein;BDR;max.mustermann@example.com;12345;10012345678,00;15.05.1990 00:00:00;männlich;GER;Radball;1
|
|
262
280
|
* Musterfrau;Erika;Beispielweg 42;54321;Beispielstadt;SV Beispielverein;WTB;erika.musterfrau@example.com;54321;10023456789,00;20.10.1995 00:00:00;weiblich;GER;Radball;1
|
|
263
|
-
|
|
281
|
+
*/
|
|
264
282
|
"text/plain": string;
|
|
265
283
|
};
|
|
266
284
|
};
|
|
@@ -271,7 +289,8 @@ export interface operations {
|
|
|
271
289
|
[name: string]: unknown;
|
|
272
290
|
};
|
|
273
291
|
content: {
|
|
274
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* @example {
|
|
275
294
|
* "success": true,
|
|
276
295
|
* "stats": {
|
|
277
296
|
* "total": 3,
|
|
@@ -282,7 +301,8 @@ export interface operations {
|
|
|
282
301
|
* "Could not find matching club for \"Unknown Club\"/\"BDR\" (Person: Max Mustermann)"
|
|
283
302
|
* ]
|
|
284
303
|
* }
|
|
285
|
-
* }
|
|
304
|
+
* }
|
|
305
|
+
*/
|
|
286
306
|
"application/json": {
|
|
287
307
|
success: boolean;
|
|
288
308
|
stats: {
|
|
@@ -306,9 +326,11 @@ export interface operations {
|
|
|
306
326
|
[name: string]: unknown;
|
|
307
327
|
};
|
|
308
328
|
content: {
|
|
309
|
-
/**
|
|
329
|
+
/**
|
|
330
|
+
* @example {
|
|
310
331
|
* "error": "Invalid file format: Line 2 has incorrect number of fields"
|
|
311
|
-
* }
|
|
332
|
+
* }
|
|
333
|
+
*/
|
|
312
334
|
"application/json": {
|
|
313
335
|
error?: string;
|
|
314
336
|
};
|
|
@@ -320,9 +342,11 @@ export interface operations {
|
|
|
320
342
|
[name: string]: unknown;
|
|
321
343
|
};
|
|
322
344
|
content: {
|
|
323
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* @example {
|
|
324
347
|
* "error": "Invalid or missing authentication token"
|
|
325
|
-
* }
|
|
348
|
+
* }
|
|
349
|
+
*/
|
|
326
350
|
"application/json": {
|
|
327
351
|
error?: string;
|
|
328
352
|
};
|