@globalscoutme/api-client 1.0.14 → 1.0.15
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/dist/index.d.ts +1 -1
- package/dist/sdk.gen.d.ts +45 -45
- package/dist/sdk.gen.js +44 -44
- package/dist/types.gen.d.ts +216 -216
- package/index.ts +172 -172
- package/package.json +1 -1
- package/sdk.gen.ts +302 -302
- package/types.gen.ts +259 -256
package/sdk.gen.ts
CHANGED
|
@@ -7,135 +7,135 @@ import type {
|
|
|
7
7
|
TDataShape,
|
|
8
8
|
} from './client/index.js';
|
|
9
9
|
import type {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
10
|
+
DeleteApiClubsMeByIdData,
|
|
11
|
+
DeleteApiClubsMeByIdErrors,
|
|
12
|
+
DeleteApiClubsMeByIdResponses,
|
|
13
|
+
DeleteApiInvitationsByIdData,
|
|
14
|
+
DeleteApiInvitationsByIdErrors,
|
|
15
|
+
DeleteApiInvitationsByIdResponses,
|
|
16
|
+
DeleteApiPlayersMeData,
|
|
17
|
+
DeleteApiPlayersMeErrors,
|
|
18
|
+
DeleteApiPlayersMeResponses,
|
|
19
|
+
DeleteApiVideosByIdData,
|
|
20
|
+
DeleteApiVideosByIdErrors,
|
|
21
|
+
DeleteApiVideosByIdResponses,
|
|
22
|
+
GetApiAchievementsData,
|
|
23
|
+
GetApiAchievementsMeData,
|
|
24
|
+
GetApiAchievementsMeErrors,
|
|
25
|
+
GetApiAchievementsMeResponses,
|
|
26
|
+
GetApiAchievementsResponses,
|
|
27
|
+
GetApiAuthMeData,
|
|
28
|
+
GetApiAuthMeErrors,
|
|
29
|
+
GetApiAuthMeResponses,
|
|
30
|
+
GetApiBodyMeasurementsMeData,
|
|
31
|
+
GetApiBodyMeasurementsMeErrors,
|
|
32
|
+
GetApiBodyMeasurementsMeResponses,
|
|
33
|
+
GetApiChallengesData,
|
|
34
|
+
GetApiChallengesErrors,
|
|
35
|
+
GetApiChallengesMeData,
|
|
36
|
+
GetApiChallengesMeErrors,
|
|
37
|
+
GetApiChallengesMeResponses,
|
|
38
|
+
GetApiChallengesResponses,
|
|
39
|
+
GetApiClubsMeData,
|
|
40
|
+
GetApiClubsMeErrors,
|
|
41
|
+
GetApiClubsMeResponses,
|
|
42
|
+
GetApiDocumentsMeData,
|
|
43
|
+
GetApiDocumentsMeErrors,
|
|
44
|
+
GetApiDocumentsMeResponses,
|
|
45
|
+
GetApiIndexByTableNameData,
|
|
46
|
+
GetApiIndexByTableNameErrors,
|
|
47
|
+
GetApiIndexByTableNameResponses,
|
|
48
|
+
GetApiInvitationsData,
|
|
49
|
+
GetApiInvitationsResponses,
|
|
50
|
+
GetApiOffersConversationsByIdMessagesData,
|
|
51
|
+
GetApiOffersConversationsByIdMessagesErrors,
|
|
52
|
+
GetApiOffersConversationsByIdMessagesResponses,
|
|
53
|
+
GetApiOffersConversationsData,
|
|
54
|
+
GetApiOffersConversationsErrors,
|
|
55
|
+
GetApiOffersConversationsResponses,
|
|
56
|
+
GetApiOrganizationsMeData,
|
|
57
|
+
GetApiOrganizationsMeErrors,
|
|
58
|
+
GetApiOrganizationsMeResponses,
|
|
59
|
+
GetApiPlayersByIdData,
|
|
60
|
+
GetApiPlayersByIdErrors,
|
|
61
|
+
GetApiPlayersByIdResponses,
|
|
62
|
+
GetApiPlayersMeDashboardData,
|
|
63
|
+
GetApiPlayersMeDashboardErrors,
|
|
64
|
+
GetApiPlayersMeDashboardResponses,
|
|
65
|
+
GetApiPlayersMeData,
|
|
66
|
+
GetApiPlayersMeErrors,
|
|
67
|
+
GetApiPlayersMeResponses,
|
|
68
|
+
GetApiProfileMeData,
|
|
69
|
+
GetApiProfileMeErrors,
|
|
70
|
+
GetApiProfileMeResponses,
|
|
71
|
+
GetApiTrainingByIdData,
|
|
72
|
+
GetApiTrainingByIdErrors,
|
|
73
|
+
GetApiTrainingByIdResponses,
|
|
74
|
+
GetApiTrainingData,
|
|
75
|
+
GetApiTrainingErrors,
|
|
76
|
+
GetApiTrainingGroupedData,
|
|
77
|
+
GetApiTrainingGroupedErrors,
|
|
78
|
+
GetApiTrainingGroupedResponses,
|
|
79
|
+
GetApiTrainingResponses,
|
|
80
|
+
GetApiVideosByIdPlayUrlData,
|
|
81
|
+
GetApiVideosByIdPlayUrlErrors,
|
|
82
|
+
GetApiVideosByIdPlayUrlResponses,
|
|
83
|
+
GetApiVideosMeData,
|
|
84
|
+
GetApiVideosMeErrors,
|
|
85
|
+
GetApiVideosMeResponses,
|
|
86
|
+
PatchApiClubsMeByIdData,
|
|
87
|
+
PatchApiClubsMeByIdErrors,
|
|
88
|
+
PatchApiClubsMeByIdResponses,
|
|
89
|
+
PatchApiOffersConversationsByIdReadData,
|
|
90
|
+
PatchApiOffersConversationsByIdReadErrors,
|
|
91
|
+
PatchApiOffersConversationsByIdReadResponses,
|
|
92
|
+
PatchApiPlayersMeData,
|
|
93
|
+
PatchApiPlayersMeErrors,
|
|
94
|
+
PatchApiPlayersMeResponses,
|
|
95
|
+
PostApiBodyMeasurementsData,
|
|
96
|
+
PostApiBodyMeasurementsErrors,
|
|
97
|
+
PostApiBodyMeasurementsResponses,
|
|
98
|
+
PostApiClubsMeData,
|
|
99
|
+
PostApiClubsMeErrors,
|
|
100
|
+
PostApiClubsMeResponses,
|
|
101
|
+
PostApiDocumentsData,
|
|
102
|
+
PostApiDocumentsErrors,
|
|
103
|
+
PostApiDocumentsResponses,
|
|
104
|
+
PostApiInvitationsAcceptData,
|
|
105
|
+
PostApiInvitationsAcceptResponses,
|
|
106
|
+
PostApiInvitationsByIdResendData,
|
|
107
|
+
PostApiInvitationsByIdResendErrors,
|
|
108
|
+
PostApiInvitationsByIdResendResponses,
|
|
109
|
+
PostApiInvitationsData,
|
|
110
|
+
PostApiInvitationsErrors,
|
|
111
|
+
PostApiInvitationsResponses,
|
|
112
|
+
PostApiOffersConversationsByIdMessagesData,
|
|
113
|
+
PostApiOffersConversationsByIdMessagesErrors,
|
|
114
|
+
PostApiOffersConversationsByIdMessagesResponses,
|
|
115
|
+
PostApiOffersConversationsData,
|
|
116
|
+
PostApiOffersConversationsErrors,
|
|
117
|
+
PostApiOffersConversationsResponses,
|
|
118
|
+
PostApiOrganizationsRegisterClubData,
|
|
119
|
+
PostApiOrganizationsRegisterClubErrors,
|
|
120
|
+
PostApiOrganizationsRegisterClubResponses,
|
|
121
|
+
PostApiPlayersMeHeartbeatData,
|
|
122
|
+
PostApiPlayersMeHeartbeatErrors,
|
|
123
|
+
PostApiPlayersMeHeartbeatResponses,
|
|
124
|
+
PostApiPlayersSearchData,
|
|
125
|
+
PostApiPlayersSearchErrors,
|
|
126
|
+
PostApiPlayersSearchResponses,
|
|
127
|
+
PostApiStorageUploadUrlData,
|
|
128
|
+
PostApiStorageUploadUrlErrors,
|
|
129
|
+
PostApiStorageUploadUrlResponses,
|
|
130
|
+
PostApiVideosData,
|
|
131
|
+
PostApiVideosErrors,
|
|
132
|
+
PostApiVideosResponses,
|
|
133
|
+
PutApiOrganizationsMeData,
|
|
134
|
+
PutApiOrganizationsMeErrors,
|
|
135
|
+
PutApiOrganizationsMeResponses,
|
|
136
|
+
PutApiProfileMeData,
|
|
137
|
+
PutApiProfileMeErrors,
|
|
138
|
+
PutApiProfileMeResponses,
|
|
139
139
|
} from './types.gen.js';
|
|
140
140
|
|
|
141
141
|
export type Options<
|
|
@@ -185,46 +185,46 @@ class HeyApiRegistry<T> {
|
|
|
185
185
|
|
|
186
186
|
export class Auth extends HeyApiClient {
|
|
187
187
|
public getAuthMe<ThrowOnError extends boolean = false>(
|
|
188
|
-
options?: Options<
|
|
188
|
+
options?: Options<GetApiAuthMeData, ThrowOnError>,
|
|
189
189
|
) {
|
|
190
190
|
return (options?.client ?? this.client).get<
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
GetApiAuthMeResponses,
|
|
192
|
+
GetApiAuthMeErrors,
|
|
193
193
|
ThrowOnError
|
|
194
|
-
>({ url: '/auth/me', ...options });
|
|
194
|
+
>({ url: '/api/auth/me', ...options });
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
export class Players extends HeyApiClient {
|
|
199
199
|
public deleteMe<ThrowOnError extends boolean = false>(
|
|
200
|
-
options?: Options<
|
|
200
|
+
options?: Options<DeleteApiPlayersMeData, ThrowOnError>,
|
|
201
201
|
) {
|
|
202
202
|
return (options?.client ?? this.client).delete<
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
DeleteApiPlayersMeResponses,
|
|
204
|
+
DeleteApiPlayersMeErrors,
|
|
205
205
|
ThrowOnError
|
|
206
|
-
>({ url: '/players/me', ...options });
|
|
206
|
+
>({ url: '/api/players/me', ...options });
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
public getMe<ThrowOnError extends boolean = false>(
|
|
210
|
-
options?: Options<
|
|
210
|
+
options?: Options<GetApiPlayersMeData, ThrowOnError>,
|
|
211
211
|
) {
|
|
212
212
|
return (options?.client ?? this.client).get<
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
GetApiPlayersMeResponses,
|
|
214
|
+
GetApiPlayersMeErrors,
|
|
215
215
|
ThrowOnError
|
|
216
|
-
>({ url: '/players/me', ...options });
|
|
216
|
+
>({ url: '/api/players/me', ...options });
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
public patchMe<ThrowOnError extends boolean = false>(
|
|
220
|
-
options: Options<
|
|
220
|
+
options: Options<PatchApiPlayersMeData, ThrowOnError>,
|
|
221
221
|
) {
|
|
222
222
|
return (options.client ?? this.client).patch<
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
PatchApiPlayersMeResponses,
|
|
224
|
+
PatchApiPlayersMeErrors,
|
|
225
225
|
ThrowOnError
|
|
226
226
|
>({
|
|
227
|
-
url: '/players/me',
|
|
227
|
+
url: '/api/players/me',
|
|
228
228
|
...options,
|
|
229
229
|
headers: {
|
|
230
230
|
'Content-Type': 'application/json',
|
|
@@ -234,27 +234,27 @@ export class Players extends HeyApiClient {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
public getMyDashboard<ThrowOnError extends boolean = false>(
|
|
237
|
-
options?: Options<
|
|
237
|
+
options?: Options<GetApiPlayersMeDashboardData, ThrowOnError>,
|
|
238
238
|
) {
|
|
239
239
|
return (options?.client ?? this.client).get<
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
GetApiPlayersMeDashboardResponses,
|
|
241
|
+
GetApiPlayersMeDashboardErrors,
|
|
242
242
|
ThrowOnError
|
|
243
|
-
>({ url: '/players/me/dashboard', ...options });
|
|
243
|
+
>({ url: '/api/players/me/dashboard', ...options });
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
/**
|
|
247
247
|
* Ping presence; records login day and updates user timezone
|
|
248
248
|
*/
|
|
249
249
|
public heartbeat<ThrowOnError extends boolean = false>(
|
|
250
|
-
options: Options<
|
|
250
|
+
options: Options<PostApiPlayersMeHeartbeatData, ThrowOnError>,
|
|
251
251
|
) {
|
|
252
252
|
return (options.client ?? this.client).post<
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
PostApiPlayersMeHeartbeatResponses,
|
|
254
|
+
PostApiPlayersMeHeartbeatErrors,
|
|
255
255
|
ThrowOnError
|
|
256
256
|
>({
|
|
257
|
-
url: '/players/me/heartbeat',
|
|
257
|
+
url: '/api/players/me/heartbeat',
|
|
258
258
|
...options,
|
|
259
259
|
headers: {
|
|
260
260
|
'Content-Type': 'application/json',
|
|
@@ -264,14 +264,14 @@ export class Players extends HeyApiClient {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
public searchPlayers<ThrowOnError extends boolean = false>(
|
|
267
|
-
options: Options<
|
|
267
|
+
options: Options<PostApiPlayersSearchData, ThrowOnError>,
|
|
268
268
|
) {
|
|
269
269
|
return (options.client ?? this.client).post<
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
PostApiPlayersSearchResponses,
|
|
271
|
+
PostApiPlayersSearchErrors,
|
|
272
272
|
ThrowOnError
|
|
273
273
|
>({
|
|
274
|
-
url: '/players/search',
|
|
274
|
+
url: '/api/players/search',
|
|
275
275
|
...options,
|
|
276
276
|
headers: {
|
|
277
277
|
'Content-Type': 'application/json',
|
|
@@ -281,36 +281,36 @@ export class Players extends HeyApiClient {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
public getPlayerById<ThrowOnError extends boolean = false>(
|
|
284
|
-
options: Options<
|
|
284
|
+
options: Options<GetApiPlayersByIdData, ThrowOnError>,
|
|
285
285
|
) {
|
|
286
286
|
return (options.client ?? this.client).get<
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
GetApiPlayersByIdResponses,
|
|
288
|
+
GetApiPlayersByIdErrors,
|
|
289
289
|
ThrowOnError
|
|
290
|
-
>({ url: '/players/{id}', ...options });
|
|
290
|
+
>({ url: '/api/players/{id}', ...options });
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
export class Profile extends HeyApiClient {
|
|
295
295
|
public getProfileMe<ThrowOnError extends boolean = false>(
|
|
296
|
-
options?: Options<
|
|
296
|
+
options?: Options<GetApiProfileMeData, ThrowOnError>,
|
|
297
297
|
) {
|
|
298
298
|
return (options?.client ?? this.client).get<
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
GetApiProfileMeResponses,
|
|
300
|
+
GetApiProfileMeErrors,
|
|
301
301
|
ThrowOnError
|
|
302
|
-
>({ url: '/profile/me', ...options });
|
|
302
|
+
>({ url: '/api/profile/me', ...options });
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
public updateProfileMe<ThrowOnError extends boolean = false>(
|
|
306
|
-
options: Options<
|
|
306
|
+
options: Options<PutApiProfileMeData, ThrowOnError>,
|
|
307
307
|
) {
|
|
308
308
|
return (options.client ?? this.client).put<
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
PutApiProfileMeResponses,
|
|
310
|
+
PutApiProfileMeErrors,
|
|
311
311
|
ThrowOnError
|
|
312
312
|
>({
|
|
313
|
-
url: '/profile/me',
|
|
313
|
+
url: '/api/profile/me',
|
|
314
314
|
...options,
|
|
315
315
|
headers: {
|
|
316
316
|
'Content-Type': 'application/json',
|
|
@@ -322,46 +322,46 @@ export class Profile extends HeyApiClient {
|
|
|
322
322
|
|
|
323
323
|
export class Achievements extends HeyApiClient {
|
|
324
324
|
public getAchievementsCatalog<ThrowOnError extends boolean = false>(
|
|
325
|
-
options?: Options<
|
|
325
|
+
options?: Options<GetApiAchievementsData, ThrowOnError>,
|
|
326
326
|
) {
|
|
327
327
|
return (options?.client ?? this.client).get<
|
|
328
|
-
|
|
328
|
+
GetApiAchievementsResponses,
|
|
329
329
|
unknown,
|
|
330
330
|
ThrowOnError
|
|
331
|
-
>({ url: '/achievements', ...options });
|
|
331
|
+
>({ url: '/api/achievements', ...options });
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
public getMyAchievements<ThrowOnError extends boolean = false>(
|
|
335
|
-
options?: Options<
|
|
335
|
+
options?: Options<GetApiAchievementsMeData, ThrowOnError>,
|
|
336
336
|
) {
|
|
337
337
|
return (options?.client ?? this.client).get<
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
GetApiAchievementsMeResponses,
|
|
339
|
+
GetApiAchievementsMeErrors,
|
|
340
340
|
ThrowOnError
|
|
341
|
-
>({ url: '/achievements/me', ...options });
|
|
341
|
+
>({ url: '/api/achievements/me', ...options });
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
export class Body extends HeyApiClient {
|
|
346
346
|
public getMyMeasurements<ThrowOnError extends boolean = false>(
|
|
347
|
-
options?: Options<
|
|
347
|
+
options?: Options<GetApiBodyMeasurementsMeData, ThrowOnError>,
|
|
348
348
|
) {
|
|
349
349
|
return (options?.client ?? this.client).get<
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
GetApiBodyMeasurementsMeResponses,
|
|
351
|
+
GetApiBodyMeasurementsMeErrors,
|
|
352
352
|
ThrowOnError
|
|
353
|
-
>({ url: '/body/measurements/me', ...options });
|
|
353
|
+
>({ url: '/api/body/measurements/me', ...options });
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
public createMeasurement<ThrowOnError extends boolean = false>(
|
|
357
|
-
options: Options<
|
|
357
|
+
options: Options<PostApiBodyMeasurementsData, ThrowOnError>,
|
|
358
358
|
) {
|
|
359
359
|
return (options.client ?? this.client).post<
|
|
360
|
-
|
|
361
|
-
|
|
360
|
+
PostApiBodyMeasurementsResponses,
|
|
361
|
+
PostApiBodyMeasurementsErrors,
|
|
362
362
|
ThrowOnError
|
|
363
363
|
>({
|
|
364
|
-
url: '/body/measurements',
|
|
364
|
+
url: '/api/body/measurements',
|
|
365
365
|
...options,
|
|
366
366
|
headers: {
|
|
367
367
|
'Content-Type': 'application/json',
|
|
@@ -376,49 +376,49 @@ export class Challenges extends HeyApiClient {
|
|
|
376
376
|
* List all active challenges
|
|
377
377
|
*/
|
|
378
378
|
public getChallengesCatalog<ThrowOnError extends boolean = false>(
|
|
379
|
-
options?: Options<
|
|
379
|
+
options?: Options<GetApiChallengesData, ThrowOnError>,
|
|
380
380
|
) {
|
|
381
381
|
return (options?.client ?? this.client).get<
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
GetApiChallengesResponses,
|
|
383
|
+
GetApiChallengesErrors,
|
|
384
384
|
ThrowOnError
|
|
385
|
-
>({ url: '/challenges', ...options });
|
|
385
|
+
>({ url: '/api/challenges', ...options });
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
389
|
* Get the current user's active + recently-expired challenges
|
|
390
390
|
*/
|
|
391
391
|
public getMyChallenges<ThrowOnError extends boolean = false>(
|
|
392
|
-
options?: Options<
|
|
392
|
+
options?: Options<GetApiChallengesMeData, ThrowOnError>,
|
|
393
393
|
) {
|
|
394
394
|
return (options?.client ?? this.client).get<
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
GetApiChallengesMeResponses,
|
|
396
|
+
GetApiChallengesMeErrors,
|
|
397
397
|
ThrowOnError
|
|
398
|
-
>({ url: '/challenges/me', ...options });
|
|
398
|
+
>({ url: '/api/challenges/me', ...options });
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
export class Clubs extends HeyApiClient {
|
|
403
403
|
public getMyClubs<ThrowOnError extends boolean = false>(
|
|
404
|
-
options?: Options<
|
|
404
|
+
options?: Options<GetApiClubsMeData, ThrowOnError>,
|
|
405
405
|
) {
|
|
406
406
|
return (options?.client ?? this.client).get<
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
GetApiClubsMeResponses,
|
|
408
|
+
GetApiClubsMeErrors,
|
|
409
409
|
ThrowOnError
|
|
410
|
-
>({ url: '/clubs/me', ...options });
|
|
410
|
+
>({ url: '/api/clubs/me', ...options });
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
public createMyClub<ThrowOnError extends boolean = false>(
|
|
414
|
-
options: Options<
|
|
414
|
+
options: Options<PostApiClubsMeData, ThrowOnError>,
|
|
415
415
|
) {
|
|
416
416
|
return (options.client ?? this.client).post<
|
|
417
|
-
|
|
418
|
-
|
|
417
|
+
PostApiClubsMeResponses,
|
|
418
|
+
PostApiClubsMeErrors,
|
|
419
419
|
ThrowOnError
|
|
420
420
|
>({
|
|
421
|
-
url: '/clubs/me',
|
|
421
|
+
url: '/api/clubs/me',
|
|
422
422
|
...options,
|
|
423
423
|
headers: {
|
|
424
424
|
'Content-Type': 'application/json',
|
|
@@ -428,24 +428,24 @@ export class Clubs extends HeyApiClient {
|
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
public deleteMyClub<ThrowOnError extends boolean = false>(
|
|
431
|
-
options: Options<
|
|
431
|
+
options: Options<DeleteApiClubsMeByIdData, ThrowOnError>,
|
|
432
432
|
) {
|
|
433
433
|
return (options.client ?? this.client).delete<
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
DeleteApiClubsMeByIdResponses,
|
|
435
|
+
DeleteApiClubsMeByIdErrors,
|
|
436
436
|
ThrowOnError
|
|
437
|
-
>({ url: '/clubs/me/{id}', ...options });
|
|
437
|
+
>({ url: '/api/clubs/me/{id}', ...options });
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
public updateMyClub<ThrowOnError extends boolean = false>(
|
|
441
|
-
options: Options<
|
|
441
|
+
options: Options<PatchApiClubsMeByIdData, ThrowOnError>,
|
|
442
442
|
) {
|
|
443
443
|
return (options.client ?? this.client).patch<
|
|
444
|
-
|
|
445
|
-
|
|
444
|
+
PatchApiClubsMeByIdResponses,
|
|
445
|
+
PatchApiClubsMeByIdErrors,
|
|
446
446
|
ThrowOnError
|
|
447
447
|
>({
|
|
448
|
-
url: '/clubs/me/{id}',
|
|
448
|
+
url: '/api/clubs/me/{id}',
|
|
449
449
|
...options,
|
|
450
450
|
headers: {
|
|
451
451
|
'Content-Type': 'application/json',
|
|
@@ -457,24 +457,24 @@ export class Clubs extends HeyApiClient {
|
|
|
457
457
|
|
|
458
458
|
export class Documents extends HeyApiClient {
|
|
459
459
|
public getMyDocuments<ThrowOnError extends boolean = false>(
|
|
460
|
-
options?: Options<
|
|
460
|
+
options?: Options<GetApiDocumentsMeData, ThrowOnError>,
|
|
461
461
|
) {
|
|
462
462
|
return (options?.client ?? this.client).get<
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
GetApiDocumentsMeResponses,
|
|
464
|
+
GetApiDocumentsMeErrors,
|
|
465
465
|
ThrowOnError
|
|
466
|
-
>({ url: '/documents/me', ...options });
|
|
466
|
+
>({ url: '/api/documents/me', ...options });
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
public createDocument<ThrowOnError extends boolean = false>(
|
|
470
|
-
options: Options<
|
|
470
|
+
options: Options<PostApiDocumentsData, ThrowOnError>,
|
|
471
471
|
) {
|
|
472
472
|
return (options.client ?? this.client).post<
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
PostApiDocumentsResponses,
|
|
474
|
+
PostApiDocumentsErrors,
|
|
475
475
|
ThrowOnError
|
|
476
476
|
>({
|
|
477
|
-
url: '/documents',
|
|
477
|
+
url: '/api/documents',
|
|
478
478
|
...options,
|
|
479
479
|
headers: {
|
|
480
480
|
'Content-Type': 'application/json',
|
|
@@ -486,36 +486,36 @@ export class Documents extends HeyApiClient {
|
|
|
486
486
|
|
|
487
487
|
export class Index extends HeyApiClient {
|
|
488
488
|
public getIndexItems<ThrowOnError extends boolean = false>(
|
|
489
|
-
options: Options<
|
|
489
|
+
options: Options<GetApiIndexByTableNameData, ThrowOnError>,
|
|
490
490
|
) {
|
|
491
491
|
return (options.client ?? this.client).get<
|
|
492
|
-
|
|
493
|
-
|
|
492
|
+
GetApiIndexByTableNameResponses,
|
|
493
|
+
GetApiIndexByTableNameErrors,
|
|
494
494
|
ThrowOnError
|
|
495
|
-
>({ url: '/index/{tableName}', ...options });
|
|
495
|
+
>({ url: '/api/index/{tableName}', ...options });
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
export class Offers extends HeyApiClient {
|
|
500
500
|
public listConversations<ThrowOnError extends boolean = false>(
|
|
501
|
-
options?: Options<
|
|
501
|
+
options?: Options<GetApiOffersConversationsData, ThrowOnError>,
|
|
502
502
|
) {
|
|
503
503
|
return (options?.client ?? this.client).get<
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
GetApiOffersConversationsResponses,
|
|
505
|
+
GetApiOffersConversationsErrors,
|
|
506
506
|
ThrowOnError
|
|
507
|
-
>({ url: '/offers/conversations', ...options });
|
|
507
|
+
>({ url: '/api/offers/conversations', ...options });
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
public createConversation<ThrowOnError extends boolean = false>(
|
|
511
|
-
options: Options<
|
|
511
|
+
options: Options<PostApiOffersConversationsData, ThrowOnError>,
|
|
512
512
|
) {
|
|
513
513
|
return (options.client ?? this.client).post<
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
PostApiOffersConversationsResponses,
|
|
515
|
+
PostApiOffersConversationsErrors,
|
|
516
516
|
ThrowOnError
|
|
517
517
|
>({
|
|
518
|
-
url: '/offers/conversations',
|
|
518
|
+
url: '/api/offers/conversations',
|
|
519
519
|
...options,
|
|
520
520
|
headers: {
|
|
521
521
|
'Content-Type': 'application/json',
|
|
@@ -525,24 +525,24 @@ export class Offers extends HeyApiClient {
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
public listMessages<ThrowOnError extends boolean = false>(
|
|
528
|
-
options: Options<
|
|
528
|
+
options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError>,
|
|
529
529
|
) {
|
|
530
530
|
return (options.client ?? this.client).get<
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
GetApiOffersConversationsByIdMessagesResponses,
|
|
532
|
+
GetApiOffersConversationsByIdMessagesErrors,
|
|
533
533
|
ThrowOnError
|
|
534
|
-
>({ url: '/offers/conversations/{id}/messages', ...options });
|
|
534
|
+
>({ url: '/api/offers/conversations/{id}/messages', ...options });
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
public sendMessage<ThrowOnError extends boolean = false>(
|
|
538
|
-
options: Options<
|
|
538
|
+
options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError>,
|
|
539
539
|
) {
|
|
540
540
|
return (options.client ?? this.client).post<
|
|
541
|
-
|
|
542
|
-
|
|
541
|
+
PostApiOffersConversationsByIdMessagesResponses,
|
|
542
|
+
PostApiOffersConversationsByIdMessagesErrors,
|
|
543
543
|
ThrowOnError
|
|
544
544
|
>({
|
|
545
|
-
url: '/offers/conversations/{id}/messages',
|
|
545
|
+
url: '/api/offers/conversations/{id}/messages',
|
|
546
546
|
...options,
|
|
547
547
|
headers: {
|
|
548
548
|
'Content-Type': 'application/json',
|
|
@@ -552,26 +552,26 @@ export class Offers extends HeyApiClient {
|
|
|
552
552
|
}
|
|
553
553
|
|
|
554
554
|
public markConversationRead<ThrowOnError extends boolean = false>(
|
|
555
|
-
options: Options<
|
|
555
|
+
options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError>,
|
|
556
556
|
) {
|
|
557
557
|
return (options.client ?? this.client).patch<
|
|
558
|
-
|
|
559
|
-
|
|
558
|
+
PatchApiOffersConversationsByIdReadResponses,
|
|
559
|
+
PatchApiOffersConversationsByIdReadErrors,
|
|
560
560
|
ThrowOnError
|
|
561
|
-
>({ url: '/offers/conversations/{id}/read', ...options });
|
|
561
|
+
>({ url: '/api/offers/conversations/{id}/read', ...options });
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
export class Organizations extends HeyApiClient {
|
|
566
566
|
public registerClub<ThrowOnError extends boolean = false>(
|
|
567
|
-
options: Options<
|
|
567
|
+
options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError>,
|
|
568
568
|
) {
|
|
569
569
|
return (options.client ?? this.client).post<
|
|
570
|
-
|
|
571
|
-
|
|
570
|
+
PostApiOrganizationsRegisterClubResponses,
|
|
571
|
+
PostApiOrganizationsRegisterClubErrors,
|
|
572
572
|
ThrowOnError
|
|
573
573
|
>({
|
|
574
|
-
url: '/organizations/register-club',
|
|
574
|
+
url: '/api/organizations/register-club',
|
|
575
575
|
...options,
|
|
576
576
|
headers: {
|
|
577
577
|
'Content-Type': 'application/json',
|
|
@@ -581,24 +581,24 @@ export class Organizations extends HeyApiClient {
|
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
public getMyOrganization<ThrowOnError extends boolean = false>(
|
|
584
|
-
options?: Options<
|
|
584
|
+
options?: Options<GetApiOrganizationsMeData, ThrowOnError>,
|
|
585
585
|
) {
|
|
586
586
|
return (options?.client ?? this.client).get<
|
|
587
|
-
|
|
588
|
-
|
|
587
|
+
GetApiOrganizationsMeResponses,
|
|
588
|
+
GetApiOrganizationsMeErrors,
|
|
589
589
|
ThrowOnError
|
|
590
|
-
>({ url: '/organizations/me', ...options });
|
|
590
|
+
>({ url: '/api/organizations/me', ...options });
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
public updateMyOrganization<ThrowOnError extends boolean = false>(
|
|
594
|
-
options: Options<
|
|
594
|
+
options: Options<PutApiOrganizationsMeData, ThrowOnError>,
|
|
595
595
|
) {
|
|
596
596
|
return (options.client ?? this.client).put<
|
|
597
|
-
|
|
598
|
-
|
|
597
|
+
PutApiOrganizationsMeResponses,
|
|
598
|
+
PutApiOrganizationsMeErrors,
|
|
599
599
|
ThrowOnError
|
|
600
600
|
>({
|
|
601
|
-
url: '/organizations/me',
|
|
601
|
+
url: '/api/organizations/me',
|
|
602
602
|
...options,
|
|
603
603
|
headers: {
|
|
604
604
|
'Content-Type': 'application/json',
|
|
@@ -610,14 +610,14 @@ export class Organizations extends HeyApiClient {
|
|
|
610
610
|
|
|
611
611
|
export class Storage extends HeyApiClient {
|
|
612
612
|
public createUploadUrl<ThrowOnError extends boolean = false>(
|
|
613
|
-
options: Options<
|
|
613
|
+
options: Options<PostApiStorageUploadUrlData, ThrowOnError>,
|
|
614
614
|
) {
|
|
615
615
|
return (options.client ?? this.client).post<
|
|
616
|
-
|
|
617
|
-
|
|
616
|
+
PostApiStorageUploadUrlResponses,
|
|
617
|
+
PostApiStorageUploadUrlErrors,
|
|
618
618
|
ThrowOnError
|
|
619
619
|
>({
|
|
620
|
-
url: '/storage/upload-url',
|
|
620
|
+
url: '/api/storage/upload-url',
|
|
621
621
|
...options,
|
|
622
622
|
headers: {
|
|
623
623
|
'Content-Type': 'application/json',
|
|
@@ -629,24 +629,24 @@ export class Storage extends HeyApiClient {
|
|
|
629
629
|
|
|
630
630
|
export class Invitations extends HeyApiClient {
|
|
631
631
|
public listInvitations<ThrowOnError extends boolean = false>(
|
|
632
|
-
options?: Options<
|
|
632
|
+
options?: Options<GetApiInvitationsData, ThrowOnError>,
|
|
633
633
|
) {
|
|
634
634
|
return (options?.client ?? this.client).get<
|
|
635
|
-
|
|
635
|
+
GetApiInvitationsResponses,
|
|
636
636
|
unknown,
|
|
637
637
|
ThrowOnError
|
|
638
|
-
>({ url: '/invitations', ...options });
|
|
638
|
+
>({ url: '/api/invitations', ...options });
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
public sendInvitation<ThrowOnError extends boolean = false>(
|
|
642
|
-
options: Options<
|
|
642
|
+
options: Options<PostApiInvitationsData, ThrowOnError>,
|
|
643
643
|
) {
|
|
644
644
|
return (options.client ?? this.client).post<
|
|
645
|
-
|
|
646
|
-
|
|
645
|
+
PostApiInvitationsResponses,
|
|
646
|
+
PostApiInvitationsErrors,
|
|
647
647
|
ThrowOnError
|
|
648
648
|
>({
|
|
649
|
-
url: '/invitations',
|
|
649
|
+
url: '/api/invitations',
|
|
650
650
|
...options,
|
|
651
651
|
headers: {
|
|
652
652
|
'Content-Type': 'application/json',
|
|
@@ -656,36 +656,36 @@ export class Invitations extends HeyApiClient {
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
public resendInvitation<ThrowOnError extends boolean = false>(
|
|
659
|
-
options: Options<
|
|
659
|
+
options: Options<PostApiInvitationsByIdResendData, ThrowOnError>,
|
|
660
660
|
) {
|
|
661
661
|
return (options.client ?? this.client).post<
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
PostApiInvitationsByIdResendResponses,
|
|
663
|
+
PostApiInvitationsByIdResendErrors,
|
|
664
664
|
ThrowOnError
|
|
665
|
-
>({ url: '/invitations/{id}/resend', ...options });
|
|
665
|
+
>({ url: '/api/invitations/{id}/resend', ...options });
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
public deleteInvitation<ThrowOnError extends boolean = false>(
|
|
669
|
-
options: Options<
|
|
669
|
+
options: Options<DeleteApiInvitationsByIdData, ThrowOnError>,
|
|
670
670
|
) {
|
|
671
671
|
return (options.client ?? this.client).delete<
|
|
672
|
-
|
|
673
|
-
|
|
672
|
+
DeleteApiInvitationsByIdResponses,
|
|
673
|
+
DeleteApiInvitationsByIdErrors,
|
|
674
674
|
ThrowOnError
|
|
675
|
-
>({ url: '/invitations/{id}', ...options });
|
|
675
|
+
>({ url: '/api/invitations/{id}', ...options });
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
679
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
680
680
|
*/
|
|
681
681
|
public acceptInvitation<ThrowOnError extends boolean = false>(
|
|
682
|
-
options?: Options<
|
|
682
|
+
options?: Options<PostApiInvitationsAcceptData, ThrowOnError>,
|
|
683
683
|
) {
|
|
684
684
|
return (options?.client ?? this.client).post<
|
|
685
|
-
|
|
685
|
+
PostApiInvitationsAcceptResponses,
|
|
686
686
|
unknown,
|
|
687
687
|
ThrowOnError
|
|
688
|
-
>({ url: '/invitations/accept', ...options });
|
|
688
|
+
>({ url: '/api/invitations/accept', ...options });
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
|
|
@@ -694,62 +694,62 @@ export class Training extends HeyApiClient {
|
|
|
694
694
|
* Get training content grouped by category, top 3 per category
|
|
695
695
|
*/
|
|
696
696
|
public getTrainingGrouped<ThrowOnError extends boolean = false>(
|
|
697
|
-
options?: Options<
|
|
697
|
+
options?: Options<GetApiTrainingGroupedData, ThrowOnError>,
|
|
698
698
|
) {
|
|
699
699
|
return (options?.client ?? this.client).get<
|
|
700
|
-
|
|
701
|
-
|
|
700
|
+
GetApiTrainingGroupedResponses,
|
|
701
|
+
GetApiTrainingGroupedErrors,
|
|
702
702
|
ThrowOnError
|
|
703
|
-
>({ url: '/training/grouped', ...options });
|
|
703
|
+
>({ url: '/api/training/grouped', ...options });
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
/**
|
|
707
707
|
* List training content, optionally filtered by category
|
|
708
708
|
*/
|
|
709
709
|
public getTrainingList<ThrowOnError extends boolean = false>(
|
|
710
|
-
options?: Options<
|
|
710
|
+
options?: Options<GetApiTrainingData, ThrowOnError>,
|
|
711
711
|
) {
|
|
712
712
|
return (options?.client ?? this.client).get<
|
|
713
|
-
|
|
714
|
-
|
|
713
|
+
GetApiTrainingResponses,
|
|
714
|
+
GetApiTrainingErrors,
|
|
715
715
|
ThrowOnError
|
|
716
|
-
>({ url: '/training', ...options });
|
|
716
|
+
>({ url: '/api/training', ...options });
|
|
717
717
|
}
|
|
718
718
|
|
|
719
719
|
/**
|
|
720
720
|
* Get full detail of a training content item
|
|
721
721
|
*/
|
|
722
722
|
public getTrainingById<ThrowOnError extends boolean = false>(
|
|
723
|
-
options: Options<
|
|
723
|
+
options: Options<GetApiTrainingByIdData, ThrowOnError>,
|
|
724
724
|
) {
|
|
725
725
|
return (options.client ?? this.client).get<
|
|
726
|
-
|
|
727
|
-
|
|
726
|
+
GetApiTrainingByIdResponses,
|
|
727
|
+
GetApiTrainingByIdErrors,
|
|
728
728
|
ThrowOnError
|
|
729
|
-
>({ url: '/training/{id}', ...options });
|
|
729
|
+
>({ url: '/api/training/{id}', ...options });
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
export class Videos extends HeyApiClient {
|
|
734
734
|
public getMyVideos<ThrowOnError extends boolean = false>(
|
|
735
|
-
options: Options<
|
|
735
|
+
options: Options<GetApiVideosMeData, ThrowOnError>,
|
|
736
736
|
) {
|
|
737
737
|
return (options.client ?? this.client).get<
|
|
738
|
-
|
|
739
|
-
|
|
738
|
+
GetApiVideosMeResponses,
|
|
739
|
+
GetApiVideosMeErrors,
|
|
740
740
|
ThrowOnError
|
|
741
|
-
>({ url: '/videos/me', ...options });
|
|
741
|
+
>({ url: '/api/videos/me', ...options });
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
public createVideo<ThrowOnError extends boolean = false>(
|
|
745
|
-
options: Options<
|
|
745
|
+
options: Options<PostApiVideosData, ThrowOnError>,
|
|
746
746
|
) {
|
|
747
747
|
return (options.client ?? this.client).post<
|
|
748
|
-
|
|
749
|
-
|
|
748
|
+
PostApiVideosResponses,
|
|
749
|
+
PostApiVideosErrors,
|
|
750
750
|
ThrowOnError
|
|
751
751
|
>({
|
|
752
|
-
url: '/videos',
|
|
752
|
+
url: '/api/videos',
|
|
753
753
|
...options,
|
|
754
754
|
headers: {
|
|
755
755
|
'Content-Type': 'application/json',
|
|
@@ -759,23 +759,23 @@ export class Videos extends HeyApiClient {
|
|
|
759
759
|
}
|
|
760
760
|
|
|
761
761
|
public getVideoPlayUrl<ThrowOnError extends boolean = false>(
|
|
762
|
-
options: Options<
|
|
762
|
+
options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError>,
|
|
763
763
|
) {
|
|
764
764
|
return (options.client ?? this.client).get<
|
|
765
|
-
|
|
766
|
-
|
|
765
|
+
GetApiVideosByIdPlayUrlResponses,
|
|
766
|
+
GetApiVideosByIdPlayUrlErrors,
|
|
767
767
|
ThrowOnError
|
|
768
|
-
>({ url: '/videos/{id}/play-url', ...options });
|
|
768
|
+
>({ url: '/api/videos/{id}/play-url', ...options });
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
public deleteVideo<ThrowOnError extends boolean = false>(
|
|
772
|
-
options: Options<
|
|
772
|
+
options: Options<DeleteApiVideosByIdData, ThrowOnError>,
|
|
773
773
|
) {
|
|
774
774
|
return (options.client ?? this.client).delete<
|
|
775
|
-
|
|
776
|
-
|
|
775
|
+
DeleteApiVideosByIdResponses,
|
|
776
|
+
DeleteApiVideosByIdErrors,
|
|
777
777
|
ThrowOnError
|
|
778
|
-
>({ url: '/videos/{id}', ...options });
|
|
778
|
+
>({ url: '/api/videos/{id}', ...options });
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
|