@globalscoutme/api-client 1.1.11 → 1.1.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/sdk.gen.ts CHANGED
@@ -17,6 +17,9 @@ import type {
17
17
  DeleteApiPlayersMeData,
18
18
  DeleteApiPlayersMeErrors,
19
19
  DeleteApiPlayersMeResponses,
20
+ DeleteApiTrainingAdminContentByIdData,
21
+ DeleteApiTrainingAdminContentByIdErrors,
22
+ DeleteApiTrainingAdminContentByIdResponses,
20
23
  DeleteApiVideoLinksByIdData,
21
24
  DeleteApiVideoLinksByIdErrors,
22
25
  DeleteApiVideoLinksByIdResponses,
@@ -117,6 +120,15 @@ import type {
117
120
  GetApiSubscriptionsMeResponses,
118
121
  GetApiSubscriptionsPlansData,
119
122
  GetApiSubscriptionsPlansResponses,
123
+ GetApiTrainingAdminContentByIdData,
124
+ GetApiTrainingAdminContentByIdErrors,
125
+ GetApiTrainingAdminContentByIdResponses,
126
+ GetApiTrainingAdminContentData,
127
+ GetApiTrainingAdminContentErrors,
128
+ GetApiTrainingAdminContentResponses,
129
+ GetApiTrainingAdminLookupsData,
130
+ GetApiTrainingAdminLookupsErrors,
131
+ GetApiTrainingAdminLookupsResponses,
120
132
  GetApiTrainingByIdData,
121
133
  GetApiTrainingByIdErrors,
122
134
  GetApiTrainingByIdResponses,
@@ -149,6 +161,9 @@ import type {
149
161
  PatchApiPlayersMeData,
150
162
  PatchApiPlayersMeErrors,
151
163
  PatchApiPlayersMeResponses,
164
+ PatchApiTrainingAdminContentByIdData,
165
+ PatchApiTrainingAdminContentByIdErrors,
166
+ PatchApiTrainingAdminContentByIdResponses,
152
167
  PostApiBillingAccessCodesRedeemData,
153
168
  PostApiBillingAccessCodesRedeemResponses,
154
169
  PostApiBillingAppleSyncPurchaseData,
@@ -230,6 +245,9 @@ import type {
230
245
  PostApiSubscriptionsWebhookData,
231
246
  PostApiSubscriptionsWebhookErrors,
232
247
  PostApiSubscriptionsWebhookResponses,
248
+ PostApiTrainingAdminContentData,
249
+ PostApiTrainingAdminContentErrors,
250
+ PostApiTrainingAdminContentResponses,
233
251
  PostApiVideoLinksData,
234
252
  PostApiVideoLinksErrors,
235
253
  PostApiVideoLinksResponses,
@@ -1302,6 +1320,100 @@ export class Training extends HeyApiClient {
1302
1320
  }
1303
1321
  }
1304
1322
 
1323
+ export class Trainingadmin extends HeyApiClient {
1324
+ /**
1325
+ * Get Training Admin lookup values
1326
+ */
1327
+ public getTrainingAdminLookups<ThrowOnError extends boolean = false>(
1328
+ options?: Options<GetApiTrainingAdminLookupsData, ThrowOnError>
1329
+ ) {
1330
+ return (options?.client ?? this.client).get<
1331
+ GetApiTrainingAdminLookupsResponses,
1332
+ GetApiTrainingAdminLookupsErrors,
1333
+ ThrowOnError
1334
+ >({ url: '/api/training/admin/lookups', ...options });
1335
+ }
1336
+
1337
+ /**
1338
+ * List Training Admin content
1339
+ */
1340
+ public getTrainingAdminContent<ThrowOnError extends boolean = false>(
1341
+ options?: Options<GetApiTrainingAdminContentData, ThrowOnError>
1342
+ ) {
1343
+ return (options?.client ?? this.client).get<
1344
+ GetApiTrainingAdminContentResponses,
1345
+ GetApiTrainingAdminContentErrors,
1346
+ ThrowOnError
1347
+ >({ url: '/api/training/admin/content', ...options });
1348
+ }
1349
+
1350
+ /**
1351
+ * Create Training Admin content
1352
+ */
1353
+ public createTrainingAdminContent<ThrowOnError extends boolean = false>(
1354
+ options: Options<PostApiTrainingAdminContentData, ThrowOnError>
1355
+ ) {
1356
+ return (options.client ?? this.client).post<
1357
+ PostApiTrainingAdminContentResponses,
1358
+ PostApiTrainingAdminContentErrors,
1359
+ ThrowOnError
1360
+ >({
1361
+ url: '/api/training/admin/content',
1362
+ ...options,
1363
+ headers: {
1364
+ 'Content-Type': 'application/json',
1365
+ ...options.headers,
1366
+ },
1367
+ });
1368
+ }
1369
+
1370
+ /**
1371
+ * Soft delete Training Admin content
1372
+ */
1373
+ public deleteTrainingAdminContent<ThrowOnError extends boolean = false>(
1374
+ options: Options<DeleteApiTrainingAdminContentByIdData, ThrowOnError>
1375
+ ) {
1376
+ return (options.client ?? this.client).delete<
1377
+ DeleteApiTrainingAdminContentByIdResponses,
1378
+ DeleteApiTrainingAdminContentByIdErrors,
1379
+ ThrowOnError
1380
+ >({ url: '/api/training/admin/content/{id}', ...options });
1381
+ }
1382
+
1383
+ /**
1384
+ * Get Training Admin content by id
1385
+ */
1386
+ public getTrainingAdminContentById<ThrowOnError extends boolean = false>(
1387
+ options: Options<GetApiTrainingAdminContentByIdData, ThrowOnError>
1388
+ ) {
1389
+ return (options.client ?? this.client).get<
1390
+ GetApiTrainingAdminContentByIdResponses,
1391
+ GetApiTrainingAdminContentByIdErrors,
1392
+ ThrowOnError
1393
+ >({ url: '/api/training/admin/content/{id}', ...options });
1394
+ }
1395
+
1396
+ /**
1397
+ * Update Training Admin content
1398
+ */
1399
+ public updateTrainingAdminContent<ThrowOnError extends boolean = false>(
1400
+ options: Options<PatchApiTrainingAdminContentByIdData, ThrowOnError>
1401
+ ) {
1402
+ return (options.client ?? this.client).patch<
1403
+ PatchApiTrainingAdminContentByIdResponses,
1404
+ PatchApiTrainingAdminContentByIdErrors,
1405
+ ThrowOnError
1406
+ >({
1407
+ url: '/api/training/admin/content/{id}',
1408
+ ...options,
1409
+ headers: {
1410
+ 'Content-Type': 'application/json',
1411
+ ...options.headers,
1412
+ },
1413
+ });
1414
+ }
1415
+ }
1416
+
1305
1417
  export class Videos extends HeyApiClient {
1306
1418
  public getMyVideos<ThrowOnError extends boolean = false>(
1307
1419
  options: Options<GetApiVideosMeData, ThrowOnError>
@@ -1604,6 +1716,11 @@ export class GlobalScoutMeClient extends HeyApiClient {
1604
1716
  return (this._training ??= new Training({ client: this.client }));
1605
1717
  }
1606
1718
 
1719
+ private _trainingadmin?: Trainingadmin;
1720
+ get trainingadmin(): Trainingadmin {
1721
+ return (this._trainingadmin ??= new Trainingadmin({ client: this.client }));
1722
+ }
1723
+
1607
1724
  private _videos?: Videos;
1608
1725
  get videos(): Videos {
1609
1726
  return (this._videos ??= new Videos({ client: this.client }));
package/types.gen.ts CHANGED
@@ -497,10 +497,50 @@ export type PlayerReportViewDto = {
497
497
  mentalPillar: string;
498
498
  };
499
499
 
500
+ export type VideoAttributeScoresDto = {
501
+ /**
502
+ * Technical score 0–10
503
+ */
504
+ technical: number;
505
+ /**
506
+ * Tactical score 0–10
507
+ */
508
+ tactical: number;
509
+ /**
510
+ * Physical score 0–10
511
+ */
512
+ physical: number;
513
+ /**
514
+ * Mental score 0–10
515
+ */
516
+ mental: number;
517
+ /**
518
+ * Creative score 0–10
519
+ */
520
+ creative: number;
521
+ };
522
+
523
+ export type ImprovementAreaDto = {
524
+ /**
525
+ * Short label for the focus area
526
+ */
527
+ label: string;
528
+ /**
529
+ * Detailed observation and recommendation
530
+ */
531
+ observation: string;
532
+ };
533
+
500
534
  export type PlayerReportResponseDto = {
501
535
  reportReferenceId: string;
502
536
  generatedAt?: string | null;
503
537
  scouterView: PlayerReportViewDto;
538
+ attributeScores?: VideoAttributeScoresDto | null;
539
+ /**
540
+ * Overall video score 0–10
541
+ */
542
+ gsiScore?: number | null;
543
+ improvementAreas?: Array<ImprovementAreaDto>;
504
544
  };
505
545
 
506
546
  export type PlayerClubDto = {
@@ -2198,6 +2238,92 @@ export type TrainingContentDetailDto = {
2198
2238
  displayOrder?: number | null;
2199
2239
  };
2200
2240
 
2241
+ export type TrainingAdminLookupItemDto = {
2242
+ code: string;
2243
+ name: string;
2244
+ displayOrder?: number | null;
2245
+ };
2246
+
2247
+ export type TrainingAdminLookupsDto = {
2248
+ categories: Array<TrainingAdminLookupItemDto>;
2249
+ difficulties: Array<TrainingAdminLookupItemDto>;
2250
+ };
2251
+
2252
+ export type TrainingAdminContentStatusDto = 'active' | 'inactive';
2253
+
2254
+ export type TrainingAdminContentDto = {
2255
+ id: string;
2256
+ title: string;
2257
+ subtitle?: string | null;
2258
+ summary?: string | null;
2259
+ description?: string | null;
2260
+ /**
2261
+ * Raw persisted thumbnail URL or storage path.
2262
+ */
2263
+ thumbnailUrl?: string | null;
2264
+ /**
2265
+ * Raw persisted video storage path. Admin writes must not use external video URLs.
2266
+ */
2267
+ videoUrl?: string | null;
2268
+ /**
2269
+ * Signed storage preview URL, or pass-through external thumbnail URL.
2270
+ */
2271
+ thumbnailPreviewUrl?: string | null;
2272
+ /**
2273
+ * Signed storage preview URL for the private video path.
2274
+ */
2275
+ videoPreviewUrl?: string | null;
2276
+ mediaType: TrainingMediaTypeDto;
2277
+ categoryCode: string;
2278
+ categoryName: string;
2279
+ difficultyLevel: string;
2280
+ difficultyName: string;
2281
+ durationSeconds?: number | null;
2282
+ xpReward: number;
2283
+ displayOrder?: number | null;
2284
+ isActive: boolean;
2285
+ status: TrainingAdminContentStatusDto;
2286
+ createdAt: string;
2287
+ updatedAt: string;
2288
+ deletedAt?: string | null;
2289
+ };
2290
+
2291
+ export type TrainingAdminCreateContentInputDto = {
2292
+ title: string;
2293
+ categoryCode: string;
2294
+ difficultyLevel: string;
2295
+ subtitle?: string | null;
2296
+ summary?: string | null;
2297
+ description?: string | null;
2298
+ thumbnailUrl?: string | null;
2299
+ /**
2300
+ * Supabase Storage path only. External http(s) video URLs are rejected.
2301
+ */
2302
+ videoUrl?: string | null;
2303
+ durationSeconds?: number | null;
2304
+ xpReward?: number;
2305
+ displayOrder?: number | null;
2306
+ isActive?: boolean;
2307
+ };
2308
+
2309
+ export type TrainingAdminUpdateContentInputDto = {
2310
+ title?: string;
2311
+ subtitle?: string | null;
2312
+ summary?: string | null;
2313
+ description?: string | null;
2314
+ categoryCode?: string;
2315
+ difficultyLevel?: string;
2316
+ thumbnailUrl?: string | null;
2317
+ /**
2318
+ * Supabase Storage path only. External http(s) video URLs are rejected.
2319
+ */
2320
+ videoUrl?: string | null;
2321
+ durationSeconds?: number | null;
2322
+ xpReward?: number;
2323
+ displayOrder?: number | null;
2324
+ isActive?: boolean;
2325
+ };
2326
+
2201
2327
  export type VideoResponseDto = {
2202
2328
  id: string;
2203
2329
  userId: string;
@@ -4072,6 +4198,185 @@ export type GetApiTrainingByIdResponses = {
4072
4198
  export type GetApiTrainingByIdResponse =
4073
4199
  GetApiTrainingByIdResponses[keyof GetApiTrainingByIdResponses];
4074
4200
 
4201
+ export type GetApiTrainingAdminLookupsData = {
4202
+ body?: never;
4203
+ path?: never;
4204
+ query?: never;
4205
+ url: '/api/training/admin/lookups';
4206
+ };
4207
+
4208
+ export type GetApiTrainingAdminLookupsErrors = {
4209
+ /**
4210
+ * Unauthorized
4211
+ */
4212
+ 401: unknown;
4213
+ /**
4214
+ * Forbidden
4215
+ */
4216
+ 403: unknown;
4217
+ };
4218
+
4219
+ export type GetApiTrainingAdminLookupsResponses = {
4220
+ 200: TrainingAdminLookupsDto;
4221
+ };
4222
+
4223
+ export type GetApiTrainingAdminLookupsResponse =
4224
+ GetApiTrainingAdminLookupsResponses[keyof GetApiTrainingAdminLookupsResponses];
4225
+
4226
+ export type GetApiTrainingAdminContentData = {
4227
+ body?: never;
4228
+ path?: never;
4229
+ query?: never;
4230
+ url: '/api/training/admin/content';
4231
+ };
4232
+
4233
+ export type GetApiTrainingAdminContentErrors = {
4234
+ /**
4235
+ * Unauthorized
4236
+ */
4237
+ 401: unknown;
4238
+ /**
4239
+ * Forbidden
4240
+ */
4241
+ 403: unknown;
4242
+ };
4243
+
4244
+ export type GetApiTrainingAdminContentResponses = {
4245
+ 200: Array<TrainingAdminContentDto>;
4246
+ };
4247
+
4248
+ export type GetApiTrainingAdminContentResponse =
4249
+ GetApiTrainingAdminContentResponses[keyof GetApiTrainingAdminContentResponses];
4250
+
4251
+ export type PostApiTrainingAdminContentData = {
4252
+ body: TrainingAdminCreateContentInputDto;
4253
+ path?: never;
4254
+ query?: never;
4255
+ url: '/api/training/admin/content';
4256
+ };
4257
+
4258
+ export type PostApiTrainingAdminContentErrors = {
4259
+ /**
4260
+ * Invalid content input
4261
+ */
4262
+ 400: unknown;
4263
+ /**
4264
+ * Unauthorized
4265
+ */
4266
+ 401: unknown;
4267
+ /**
4268
+ * Forbidden
4269
+ */
4270
+ 403: unknown;
4271
+ };
4272
+
4273
+ export type PostApiTrainingAdminContentResponses = {
4274
+ 201: TrainingAdminContentDto;
4275
+ };
4276
+
4277
+ export type PostApiTrainingAdminContentResponse =
4278
+ PostApiTrainingAdminContentResponses[keyof PostApiTrainingAdminContentResponses];
4279
+
4280
+ export type DeleteApiTrainingAdminContentByIdData = {
4281
+ body?: never;
4282
+ path: {
4283
+ id: string;
4284
+ };
4285
+ query?: never;
4286
+ url: '/api/training/admin/content/{id}';
4287
+ };
4288
+
4289
+ export type DeleteApiTrainingAdminContentByIdErrors = {
4290
+ /**
4291
+ * Unauthorized
4292
+ */
4293
+ 401: unknown;
4294
+ /**
4295
+ * Forbidden
4296
+ */
4297
+ 403: unknown;
4298
+ /**
4299
+ * Not found
4300
+ */
4301
+ 404: unknown;
4302
+ };
4303
+
4304
+ export type DeleteApiTrainingAdminContentByIdResponses = {
4305
+ /**
4306
+ * Deleted
4307
+ */
4308
+ 204: void;
4309
+ };
4310
+
4311
+ export type DeleteApiTrainingAdminContentByIdResponse =
4312
+ DeleteApiTrainingAdminContentByIdResponses[keyof DeleteApiTrainingAdminContentByIdResponses];
4313
+
4314
+ export type GetApiTrainingAdminContentByIdData = {
4315
+ body?: never;
4316
+ path: {
4317
+ id: string;
4318
+ };
4319
+ query?: never;
4320
+ url: '/api/training/admin/content/{id}';
4321
+ };
4322
+
4323
+ export type GetApiTrainingAdminContentByIdErrors = {
4324
+ /**
4325
+ * Unauthorized
4326
+ */
4327
+ 401: unknown;
4328
+ /**
4329
+ * Forbidden
4330
+ */
4331
+ 403: unknown;
4332
+ /**
4333
+ * Not found
4334
+ */
4335
+ 404: unknown;
4336
+ };
4337
+
4338
+ export type GetApiTrainingAdminContentByIdResponses = {
4339
+ 200: TrainingAdminContentDto;
4340
+ };
4341
+
4342
+ export type GetApiTrainingAdminContentByIdResponse =
4343
+ GetApiTrainingAdminContentByIdResponses[keyof GetApiTrainingAdminContentByIdResponses];
4344
+
4345
+ export type PatchApiTrainingAdminContentByIdData = {
4346
+ body: TrainingAdminUpdateContentInputDto;
4347
+ path: {
4348
+ id: string;
4349
+ };
4350
+ query?: never;
4351
+ url: '/api/training/admin/content/{id}';
4352
+ };
4353
+
4354
+ export type PatchApiTrainingAdminContentByIdErrors = {
4355
+ /**
4356
+ * Invalid content input
4357
+ */
4358
+ 400: unknown;
4359
+ /**
4360
+ * Unauthorized
4361
+ */
4362
+ 401: unknown;
4363
+ /**
4364
+ * Forbidden
4365
+ */
4366
+ 403: unknown;
4367
+ /**
4368
+ * Not found
4369
+ */
4370
+ 404: unknown;
4371
+ };
4372
+
4373
+ export type PatchApiTrainingAdminContentByIdResponses = {
4374
+ 200: TrainingAdminContentDto;
4375
+ };
4376
+
4377
+ export type PatchApiTrainingAdminContentByIdResponse =
4378
+ PatchApiTrainingAdminContentByIdResponses[keyof PatchApiTrainingAdminContentByIdResponses];
4379
+
4075
4380
  export type GetApiVideosMeData = {
4076
4381
  body?: never;
4077
4382
  path?: never;