@globalscoutme/api-client 1.0.10 → 1.0.13

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/sdk.gen.ts CHANGED
@@ -30,9 +30,18 @@ import type {
30
30
  GetIndexByTableNameData,
31
31
  GetIndexByTableNameErrors,
32
32
  GetIndexByTableNameResponses,
33
+ GetOffersConversationsByIdMessagesData,
34
+ GetOffersConversationsByIdMessagesErrors,
35
+ GetOffersConversationsByIdMessagesResponses,
36
+ GetOffersConversationsData,
37
+ GetOffersConversationsErrors,
38
+ GetOffersConversationsResponses,
33
39
  GetOrganizationsMeData,
34
40
  GetOrganizationsMeErrors,
35
41
  GetOrganizationsMeResponses,
42
+ GetPlayersByIdData,
43
+ GetPlayersByIdErrors,
44
+ GetPlayersByIdResponses,
36
45
  GetPlayersMeDashboardData,
37
46
  GetPlayersMeDashboardErrors,
38
47
  GetPlayersMeDashboardResponses,
@@ -48,6 +57,9 @@ import type {
48
57
  GetVideosMeData,
49
58
  GetVideosMeErrors,
50
59
  GetVideosMeResponses,
60
+ PatchOffersConversationsByIdReadData,
61
+ PatchOffersConversationsByIdReadErrors,
62
+ PatchOffersConversationsByIdReadResponses,
51
63
  PatchPlayersMeData,
52
64
  PatchPlayersMeErrors,
53
65
  PatchPlayersMeResponses,
@@ -57,9 +69,18 @@ import type {
57
69
  PostDocumentsData,
58
70
  PostDocumentsErrors,
59
71
  PostDocumentsResponses,
72
+ PostOffersConversationsByIdMessagesData,
73
+ PostOffersConversationsByIdMessagesErrors,
74
+ PostOffersConversationsByIdMessagesResponses,
75
+ PostOffersConversationsData,
76
+ PostOffersConversationsErrors,
77
+ PostOffersConversationsResponses,
60
78
  PostOrganizationsRegisterClubData,
61
79
  PostOrganizationsRegisterClubErrors,
62
80
  PostOrganizationsRegisterClubResponses,
81
+ PostPlayersSearchData,
82
+ PostPlayersSearchErrors,
83
+ PostPlayersSearchResponses,
63
84
  PostStorageUploadUrlData,
64
85
  PostStorageUploadUrlErrors,
65
86
  PostStorageUploadUrlResponses,
@@ -178,6 +199,33 @@ export class Players extends HeyApiClient {
178
199
  ThrowOnError
179
200
  >({ url: '/players/me/dashboard', ...options });
180
201
  }
202
+
203
+ public searchPlayers<ThrowOnError extends boolean = false>(
204
+ options: Options<PostPlayersSearchData, ThrowOnError>,
205
+ ) {
206
+ return (options.client ?? this.client).post<
207
+ PostPlayersSearchResponses,
208
+ PostPlayersSearchErrors,
209
+ ThrowOnError
210
+ >({
211
+ url: '/players/search',
212
+ ...options,
213
+ headers: {
214
+ 'Content-Type': 'application/json',
215
+ ...options.headers,
216
+ },
217
+ });
218
+ }
219
+
220
+ public getPlayerById<ThrowOnError extends boolean = false>(
221
+ options: Options<GetPlayersByIdData, ThrowOnError>,
222
+ ) {
223
+ return (options.client ?? this.client).get<
224
+ GetPlayersByIdResponses,
225
+ GetPlayersByIdErrors,
226
+ ThrowOnError
227
+ >({ url: '/players/{id}', ...options });
228
+ }
181
229
  }
182
230
 
183
231
  export class Profile extends HeyApiClient {
@@ -301,6 +349,72 @@ export class Index extends HeyApiClient {
301
349
  }
302
350
  }
303
351
 
352
+ export class Offers extends HeyApiClient {
353
+ public listConversations<ThrowOnError extends boolean = false>(
354
+ options?: Options<GetOffersConversationsData, ThrowOnError>,
355
+ ) {
356
+ return (options?.client ?? this.client).get<
357
+ GetOffersConversationsResponses,
358
+ GetOffersConversationsErrors,
359
+ ThrowOnError
360
+ >({ url: '/offers/conversations', ...options });
361
+ }
362
+
363
+ public createConversation<ThrowOnError extends boolean = false>(
364
+ options: Options<PostOffersConversationsData, ThrowOnError>,
365
+ ) {
366
+ return (options.client ?? this.client).post<
367
+ PostOffersConversationsResponses,
368
+ PostOffersConversationsErrors,
369
+ ThrowOnError
370
+ >({
371
+ url: '/offers/conversations',
372
+ ...options,
373
+ headers: {
374
+ 'Content-Type': 'application/json',
375
+ ...options.headers,
376
+ },
377
+ });
378
+ }
379
+
380
+ public listMessages<ThrowOnError extends boolean = false>(
381
+ options: Options<GetOffersConversationsByIdMessagesData, ThrowOnError>,
382
+ ) {
383
+ return (options.client ?? this.client).get<
384
+ GetOffersConversationsByIdMessagesResponses,
385
+ GetOffersConversationsByIdMessagesErrors,
386
+ ThrowOnError
387
+ >({ url: '/offers/conversations/{id}/messages', ...options });
388
+ }
389
+
390
+ public sendMessage<ThrowOnError extends boolean = false>(
391
+ options: Options<PostOffersConversationsByIdMessagesData, ThrowOnError>,
392
+ ) {
393
+ return (options.client ?? this.client).post<
394
+ PostOffersConversationsByIdMessagesResponses,
395
+ PostOffersConversationsByIdMessagesErrors,
396
+ ThrowOnError
397
+ >({
398
+ url: '/offers/conversations/{id}/messages',
399
+ ...options,
400
+ headers: {
401
+ 'Content-Type': 'application/json',
402
+ ...options.headers,
403
+ },
404
+ });
405
+ }
406
+
407
+ public markConversationRead<ThrowOnError extends boolean = false>(
408
+ options: Options<PatchOffersConversationsByIdReadData, ThrowOnError>,
409
+ ) {
410
+ return (options.client ?? this.client).patch<
411
+ PatchOffersConversationsByIdReadResponses,
412
+ PatchOffersConversationsByIdReadErrors,
413
+ ThrowOnError
414
+ >({ url: '/offers/conversations/{id}/read', ...options });
415
+ }
416
+ }
417
+
304
418
  export class Organizations extends HeyApiClient {
305
419
  public registerClub<ThrowOnError extends boolean = false>(
306
420
  options: Options<PostOrganizationsRegisterClubData, ThrowOnError>,
@@ -458,6 +572,11 @@ export class GlobalScoutMeClient extends HeyApiClient {
458
572
  return (this._index ??= new Index({ client: this.client }));
459
573
  }
460
574
 
575
+ private _offers?: Offers;
576
+ get offers(): Offers {
577
+ return (this._offers ??= new Offers({ client: this.client }));
578
+ }
579
+
461
580
  private _organizations?: Organizations;
462
581
  get organizations(): Organizations {
463
582
  return (this._organizations ??= new Organizations({ client: this.client }));