@globalscoutme/api-client 1.1.10 → 1.1.12
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/README.md +3 -4
- package/client/client.gen.ts +25 -48
- package/client/types.gen.ts +12 -41
- package/client/utils.gen.ts +12 -33
- package/client.gen.ts +2 -7
- package/core/auth.gen.ts +2 -3
- package/core/bodySerializer.gen.ts +6 -22
- package/core/params.gen.ts +3 -10
- package/core/pathSerializer.gen.ts +6 -15
- package/core/queryKeySerializer.gen.ts +6 -25
- package/core/serverSentEvents.gen.ts +8 -31
- package/core/types.gen.ts +3 -13
- package/core/utils.gen.ts +4 -7
- package/dist/client/client.gen.js +1 -2
- package/dist/client/utils.gen.js +2 -5
- package/dist/client.gen.js +1 -1
- package/dist/core/bodySerializer.gen.js +1 -1
- package/dist/core/pathSerializer.gen.js +3 -11
- package/dist/core/queryKeySerializer.gen.js +4 -11
- package/dist/core/serverSentEvents.gen.js +3 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +29 -1
- package/dist/sdk.gen.js +63 -2
- package/dist/types.gen.d.ts +232 -0
- package/index.ts +32 -0
- package/package.json +1 -1
- package/sdk.gen.ts +221 -122
- package/types.gen.ts +286 -49
package/dist/types.gen.d.ts
CHANGED
|
@@ -2002,11 +2002,13 @@ export type CancelKycRequestDto = {
|
|
|
2002
2002
|
*/
|
|
2003
2003
|
jobId: string;
|
|
2004
2004
|
};
|
|
2005
|
+
export type TrainingMediaTypeDto = 'video' | 'image' | 'text';
|
|
2005
2006
|
export type TrainingContentListItemDto = {
|
|
2006
2007
|
id: string;
|
|
2007
2008
|
title: string;
|
|
2008
2009
|
summary?: string | null;
|
|
2009
2010
|
thumbnailUrl?: string | null;
|
|
2011
|
+
mediaType: TrainingMediaTypeDto;
|
|
2010
2012
|
durationSeconds?: number | null;
|
|
2011
2013
|
categoryCode: string;
|
|
2012
2014
|
difficultyLevel: string;
|
|
@@ -2034,12 +2036,93 @@ export type TrainingContentDetailDto = {
|
|
|
2034
2036
|
description?: string | null;
|
|
2035
2037
|
thumbnailUrl?: string | null;
|
|
2036
2038
|
videoUrl?: string | null;
|
|
2039
|
+
mediaType: TrainingMediaTypeDto;
|
|
2037
2040
|
durationSeconds?: number | null;
|
|
2038
2041
|
categoryCode: string;
|
|
2039
2042
|
difficultyLevel: string;
|
|
2040
2043
|
xpReward: number;
|
|
2041
2044
|
displayOrder?: number | null;
|
|
2042
2045
|
};
|
|
2046
|
+
export type TrainingAdminLookupItemDto = {
|
|
2047
|
+
code: string;
|
|
2048
|
+
name: string;
|
|
2049
|
+
displayOrder?: number | null;
|
|
2050
|
+
};
|
|
2051
|
+
export type TrainingAdminLookupsDto = {
|
|
2052
|
+
categories: Array<TrainingAdminLookupItemDto>;
|
|
2053
|
+
difficulties: Array<TrainingAdminLookupItemDto>;
|
|
2054
|
+
};
|
|
2055
|
+
export type TrainingAdminContentStatusDto = 'active' | 'inactive';
|
|
2056
|
+
export type TrainingAdminContentDto = {
|
|
2057
|
+
id: string;
|
|
2058
|
+
title: string;
|
|
2059
|
+
subtitle?: string | null;
|
|
2060
|
+
summary?: string | null;
|
|
2061
|
+
description?: string | null;
|
|
2062
|
+
/**
|
|
2063
|
+
* Raw persisted thumbnail URL or storage path.
|
|
2064
|
+
*/
|
|
2065
|
+
thumbnailUrl?: string | null;
|
|
2066
|
+
/**
|
|
2067
|
+
* Raw persisted video storage path. Admin writes must not use external video URLs.
|
|
2068
|
+
*/
|
|
2069
|
+
videoUrl?: string | null;
|
|
2070
|
+
/**
|
|
2071
|
+
* Signed storage preview URL, or pass-through external thumbnail URL.
|
|
2072
|
+
*/
|
|
2073
|
+
thumbnailPreviewUrl?: string | null;
|
|
2074
|
+
/**
|
|
2075
|
+
* Signed storage preview URL for the private video path.
|
|
2076
|
+
*/
|
|
2077
|
+
videoPreviewUrl?: string | null;
|
|
2078
|
+
mediaType: TrainingMediaTypeDto;
|
|
2079
|
+
categoryCode: string;
|
|
2080
|
+
categoryName: string;
|
|
2081
|
+
difficultyLevel: string;
|
|
2082
|
+
difficultyName: string;
|
|
2083
|
+
durationSeconds?: number | null;
|
|
2084
|
+
xpReward: number;
|
|
2085
|
+
displayOrder?: number | null;
|
|
2086
|
+
isActive: boolean;
|
|
2087
|
+
status: TrainingAdminContentStatusDto;
|
|
2088
|
+
createdAt: string;
|
|
2089
|
+
updatedAt: string;
|
|
2090
|
+
deletedAt?: string | null;
|
|
2091
|
+
};
|
|
2092
|
+
export type TrainingAdminCreateContentInputDto = {
|
|
2093
|
+
title: string;
|
|
2094
|
+
categoryCode: string;
|
|
2095
|
+
difficultyLevel: string;
|
|
2096
|
+
subtitle?: string | null;
|
|
2097
|
+
summary?: string | null;
|
|
2098
|
+
description?: string | null;
|
|
2099
|
+
thumbnailUrl?: string | null;
|
|
2100
|
+
/**
|
|
2101
|
+
* Supabase Storage path only. External http(s) video URLs are rejected.
|
|
2102
|
+
*/
|
|
2103
|
+
videoUrl?: string | null;
|
|
2104
|
+
durationSeconds?: number | null;
|
|
2105
|
+
xpReward?: number;
|
|
2106
|
+
displayOrder?: number | null;
|
|
2107
|
+
isActive?: boolean;
|
|
2108
|
+
};
|
|
2109
|
+
export type TrainingAdminUpdateContentInputDto = {
|
|
2110
|
+
title?: string;
|
|
2111
|
+
subtitle?: string | null;
|
|
2112
|
+
summary?: string | null;
|
|
2113
|
+
description?: string | null;
|
|
2114
|
+
categoryCode?: string;
|
|
2115
|
+
difficultyLevel?: string;
|
|
2116
|
+
thumbnailUrl?: string | null;
|
|
2117
|
+
/**
|
|
2118
|
+
* Supabase Storage path only. External http(s) video URLs are rejected.
|
|
2119
|
+
*/
|
|
2120
|
+
videoUrl?: string | null;
|
|
2121
|
+
durationSeconds?: number | null;
|
|
2122
|
+
xpReward?: number;
|
|
2123
|
+
displayOrder?: number | null;
|
|
2124
|
+
isActive?: boolean;
|
|
2125
|
+
};
|
|
2043
2126
|
export type VideoResponseDto = {
|
|
2044
2127
|
id: string;
|
|
2045
2128
|
userId: string;
|
|
@@ -3579,6 +3662,155 @@ export type GetApiTrainingByIdResponses = {
|
|
|
3579
3662
|
200: TrainingContentDetailDto;
|
|
3580
3663
|
};
|
|
3581
3664
|
export type GetApiTrainingByIdResponse = GetApiTrainingByIdResponses[keyof GetApiTrainingByIdResponses];
|
|
3665
|
+
export type GetApiTrainingAdminLookupsData = {
|
|
3666
|
+
body?: never;
|
|
3667
|
+
path?: never;
|
|
3668
|
+
query?: never;
|
|
3669
|
+
url: '/api/training/admin/lookups';
|
|
3670
|
+
};
|
|
3671
|
+
export type GetApiTrainingAdminLookupsErrors = {
|
|
3672
|
+
/**
|
|
3673
|
+
* Unauthorized
|
|
3674
|
+
*/
|
|
3675
|
+
401: unknown;
|
|
3676
|
+
/**
|
|
3677
|
+
* Forbidden
|
|
3678
|
+
*/
|
|
3679
|
+
403: unknown;
|
|
3680
|
+
};
|
|
3681
|
+
export type GetApiTrainingAdminLookupsResponses = {
|
|
3682
|
+
200: TrainingAdminLookupsDto;
|
|
3683
|
+
};
|
|
3684
|
+
export type GetApiTrainingAdminLookupsResponse = GetApiTrainingAdminLookupsResponses[keyof GetApiTrainingAdminLookupsResponses];
|
|
3685
|
+
export type GetApiTrainingAdminContentData = {
|
|
3686
|
+
body?: never;
|
|
3687
|
+
path?: never;
|
|
3688
|
+
query?: never;
|
|
3689
|
+
url: '/api/training/admin/content';
|
|
3690
|
+
};
|
|
3691
|
+
export type GetApiTrainingAdminContentErrors = {
|
|
3692
|
+
/**
|
|
3693
|
+
* Unauthorized
|
|
3694
|
+
*/
|
|
3695
|
+
401: unknown;
|
|
3696
|
+
/**
|
|
3697
|
+
* Forbidden
|
|
3698
|
+
*/
|
|
3699
|
+
403: unknown;
|
|
3700
|
+
};
|
|
3701
|
+
export type GetApiTrainingAdminContentResponses = {
|
|
3702
|
+
200: Array<TrainingAdminContentDto>;
|
|
3703
|
+
};
|
|
3704
|
+
export type GetApiTrainingAdminContentResponse = GetApiTrainingAdminContentResponses[keyof GetApiTrainingAdminContentResponses];
|
|
3705
|
+
export type PostApiTrainingAdminContentData = {
|
|
3706
|
+
body: TrainingAdminCreateContentInputDto;
|
|
3707
|
+
path?: never;
|
|
3708
|
+
query?: never;
|
|
3709
|
+
url: '/api/training/admin/content';
|
|
3710
|
+
};
|
|
3711
|
+
export type PostApiTrainingAdminContentErrors = {
|
|
3712
|
+
/**
|
|
3713
|
+
* Invalid content input
|
|
3714
|
+
*/
|
|
3715
|
+
400: unknown;
|
|
3716
|
+
/**
|
|
3717
|
+
* Unauthorized
|
|
3718
|
+
*/
|
|
3719
|
+
401: unknown;
|
|
3720
|
+
/**
|
|
3721
|
+
* Forbidden
|
|
3722
|
+
*/
|
|
3723
|
+
403: unknown;
|
|
3724
|
+
};
|
|
3725
|
+
export type PostApiTrainingAdminContentResponses = {
|
|
3726
|
+
201: TrainingAdminContentDto;
|
|
3727
|
+
};
|
|
3728
|
+
export type PostApiTrainingAdminContentResponse = PostApiTrainingAdminContentResponses[keyof PostApiTrainingAdminContentResponses];
|
|
3729
|
+
export type DeleteApiTrainingAdminContentByIdData = {
|
|
3730
|
+
body?: never;
|
|
3731
|
+
path: {
|
|
3732
|
+
id: string;
|
|
3733
|
+
};
|
|
3734
|
+
query?: never;
|
|
3735
|
+
url: '/api/training/admin/content/{id}';
|
|
3736
|
+
};
|
|
3737
|
+
export type DeleteApiTrainingAdminContentByIdErrors = {
|
|
3738
|
+
/**
|
|
3739
|
+
* Unauthorized
|
|
3740
|
+
*/
|
|
3741
|
+
401: unknown;
|
|
3742
|
+
/**
|
|
3743
|
+
* Forbidden
|
|
3744
|
+
*/
|
|
3745
|
+
403: unknown;
|
|
3746
|
+
/**
|
|
3747
|
+
* Not found
|
|
3748
|
+
*/
|
|
3749
|
+
404: unknown;
|
|
3750
|
+
};
|
|
3751
|
+
export type DeleteApiTrainingAdminContentByIdResponses = {
|
|
3752
|
+
/**
|
|
3753
|
+
* Deleted
|
|
3754
|
+
*/
|
|
3755
|
+
204: void;
|
|
3756
|
+
};
|
|
3757
|
+
export type DeleteApiTrainingAdminContentByIdResponse = DeleteApiTrainingAdminContentByIdResponses[keyof DeleteApiTrainingAdminContentByIdResponses];
|
|
3758
|
+
export type GetApiTrainingAdminContentByIdData = {
|
|
3759
|
+
body?: never;
|
|
3760
|
+
path: {
|
|
3761
|
+
id: string;
|
|
3762
|
+
};
|
|
3763
|
+
query?: never;
|
|
3764
|
+
url: '/api/training/admin/content/{id}';
|
|
3765
|
+
};
|
|
3766
|
+
export type GetApiTrainingAdminContentByIdErrors = {
|
|
3767
|
+
/**
|
|
3768
|
+
* Unauthorized
|
|
3769
|
+
*/
|
|
3770
|
+
401: unknown;
|
|
3771
|
+
/**
|
|
3772
|
+
* Forbidden
|
|
3773
|
+
*/
|
|
3774
|
+
403: unknown;
|
|
3775
|
+
/**
|
|
3776
|
+
* Not found
|
|
3777
|
+
*/
|
|
3778
|
+
404: unknown;
|
|
3779
|
+
};
|
|
3780
|
+
export type GetApiTrainingAdminContentByIdResponses = {
|
|
3781
|
+
200: TrainingAdminContentDto;
|
|
3782
|
+
};
|
|
3783
|
+
export type GetApiTrainingAdminContentByIdResponse = GetApiTrainingAdminContentByIdResponses[keyof GetApiTrainingAdminContentByIdResponses];
|
|
3784
|
+
export type PatchApiTrainingAdminContentByIdData = {
|
|
3785
|
+
body: TrainingAdminUpdateContentInputDto;
|
|
3786
|
+
path: {
|
|
3787
|
+
id: string;
|
|
3788
|
+
};
|
|
3789
|
+
query?: never;
|
|
3790
|
+
url: '/api/training/admin/content/{id}';
|
|
3791
|
+
};
|
|
3792
|
+
export type PatchApiTrainingAdminContentByIdErrors = {
|
|
3793
|
+
/**
|
|
3794
|
+
* Invalid content input
|
|
3795
|
+
*/
|
|
3796
|
+
400: unknown;
|
|
3797
|
+
/**
|
|
3798
|
+
* Unauthorized
|
|
3799
|
+
*/
|
|
3800
|
+
401: unknown;
|
|
3801
|
+
/**
|
|
3802
|
+
* Forbidden
|
|
3803
|
+
*/
|
|
3804
|
+
403: unknown;
|
|
3805
|
+
/**
|
|
3806
|
+
* Not found
|
|
3807
|
+
*/
|
|
3808
|
+
404: unknown;
|
|
3809
|
+
};
|
|
3810
|
+
export type PatchApiTrainingAdminContentByIdResponses = {
|
|
3811
|
+
200: TrainingAdminContentDto;
|
|
3812
|
+
};
|
|
3813
|
+
export type PatchApiTrainingAdminContentByIdResponse = PatchApiTrainingAdminContentByIdResponses[keyof PatchApiTrainingAdminContentByIdResponses];
|
|
3582
3814
|
export type GetApiVideosMeData = {
|
|
3583
3815
|
body?: never;
|
|
3584
3816
|
path?: never;
|
package/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export {
|
|
|
24
24
|
Storage,
|
|
25
25
|
Subscriptions,
|
|
26
26
|
Training,
|
|
27
|
+
Trainingadmin,
|
|
27
28
|
VideoLinks,
|
|
28
29
|
VideoMetrics,
|
|
29
30
|
Videos,
|
|
@@ -107,6 +108,10 @@ export type {
|
|
|
107
108
|
DeleteApiPlayersMeErrors,
|
|
108
109
|
DeleteApiPlayersMeResponse,
|
|
109
110
|
DeleteApiPlayersMeResponses,
|
|
111
|
+
DeleteApiTrainingAdminContentByIdData,
|
|
112
|
+
DeleteApiTrainingAdminContentByIdErrors,
|
|
113
|
+
DeleteApiTrainingAdminContentByIdResponse,
|
|
114
|
+
DeleteApiTrainingAdminContentByIdResponses,
|
|
110
115
|
DeleteApiVideoLinksByIdData,
|
|
111
116
|
DeleteApiVideoLinksByIdErrors,
|
|
112
117
|
DeleteApiVideoLinksByIdResponse,
|
|
@@ -246,6 +251,18 @@ export type {
|
|
|
246
251
|
GetApiSubscriptionsPlansData,
|
|
247
252
|
GetApiSubscriptionsPlansResponse,
|
|
248
253
|
GetApiSubscriptionsPlansResponses,
|
|
254
|
+
GetApiTrainingAdminContentByIdData,
|
|
255
|
+
GetApiTrainingAdminContentByIdErrors,
|
|
256
|
+
GetApiTrainingAdminContentByIdResponse,
|
|
257
|
+
GetApiTrainingAdminContentByIdResponses,
|
|
258
|
+
GetApiTrainingAdminContentData,
|
|
259
|
+
GetApiTrainingAdminContentErrors,
|
|
260
|
+
GetApiTrainingAdminContentResponse,
|
|
261
|
+
GetApiTrainingAdminContentResponses,
|
|
262
|
+
GetApiTrainingAdminLookupsData,
|
|
263
|
+
GetApiTrainingAdminLookupsErrors,
|
|
264
|
+
GetApiTrainingAdminLookupsResponse,
|
|
265
|
+
GetApiTrainingAdminLookupsResponses,
|
|
249
266
|
GetApiTrainingByIdData,
|
|
250
267
|
GetApiTrainingByIdErrors,
|
|
251
268
|
GetApiTrainingByIdResponse,
|
|
@@ -308,6 +325,10 @@ export type {
|
|
|
308
325
|
PatchApiPlayersMeErrors,
|
|
309
326
|
PatchApiPlayersMeResponse,
|
|
310
327
|
PatchApiPlayersMeResponses,
|
|
328
|
+
PatchApiTrainingAdminContentByIdData,
|
|
329
|
+
PatchApiTrainingAdminContentByIdErrors,
|
|
330
|
+
PatchApiTrainingAdminContentByIdResponse,
|
|
331
|
+
PatchApiTrainingAdminContentByIdResponses,
|
|
311
332
|
PlansListDto,
|
|
312
333
|
PlayerAchievementDto,
|
|
313
334
|
PlayerByIdDto,
|
|
@@ -426,6 +447,10 @@ export type {
|
|
|
426
447
|
PostApiSubscriptionsWebhookData,
|
|
427
448
|
PostApiSubscriptionsWebhookErrors,
|
|
428
449
|
PostApiSubscriptionsWebhookResponses,
|
|
450
|
+
PostApiTrainingAdminContentData,
|
|
451
|
+
PostApiTrainingAdminContentErrors,
|
|
452
|
+
PostApiTrainingAdminContentResponse,
|
|
453
|
+
PostApiTrainingAdminContentResponses,
|
|
429
454
|
PostApiVideoLinksData,
|
|
430
455
|
PostApiVideoLinksErrors,
|
|
431
456
|
PostApiVideoLinksResponse,
|
|
@@ -475,9 +500,16 @@ export type {
|
|
|
475
500
|
StartReportGenerationRequestDto,
|
|
476
501
|
StorePurchaseSyncRequestDto,
|
|
477
502
|
SubscriptionPlanDto,
|
|
503
|
+
TrainingAdminContentDto,
|
|
504
|
+
TrainingAdminContentStatusDto,
|
|
505
|
+
TrainingAdminCreateContentInputDto,
|
|
506
|
+
TrainingAdminLookupItemDto,
|
|
507
|
+
TrainingAdminLookupsDto,
|
|
508
|
+
TrainingAdminUpdateContentInputDto,
|
|
478
509
|
TrainingCategoryGroupDto,
|
|
479
510
|
TrainingContentDetailDto,
|
|
480
511
|
TrainingContentListItemDto,
|
|
512
|
+
TrainingMediaTypeDto,
|
|
481
513
|
UpdateClubDto,
|
|
482
514
|
UpdateNotificationPreferencesDto,
|
|
483
515
|
UpdateOrganizationDto,
|