@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/types.gen.ts CHANGED
@@ -2052,13 +2052,7 @@ export type StartKycResponseDto = {
2052
2052
  * SmileID job identifier
2053
2053
  */
2054
2054
  jobId?: string | null;
2055
- status:
2056
- | 'pending'
2057
- | 'capture_started'
2058
- | 'processing'
2059
- | 'approved'
2060
- | 'rejected'
2061
- | 'blocked';
2055
+ status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked';
2062
2056
  /**
2063
2057
  * Number of retries left before the account is blocked
2064
2058
  */
@@ -2093,13 +2087,7 @@ export type SmileLinkResponseDto = {
2093
2087
  * SmileID job identifier
2094
2088
  */
2095
2089
  jobId?: string | null;
2096
- status:
2097
- | 'pending'
2098
- | 'capture_started'
2099
- | 'processing'
2100
- | 'approved'
2101
- | 'rejected'
2102
- | 'blocked';
2090
+ status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked';
2103
2091
  /**
2104
2092
  * Number of retries left before the account is blocked
2105
2093
  */
@@ -2144,13 +2132,7 @@ export type MarkSubmittedKycRequestDto = {
2144
2132
  };
2145
2133
 
2146
2134
  export type KycStatusDto = {
2147
- status:
2148
- | 'pending'
2149
- | 'capture_started'
2150
- | 'processing'
2151
- | 'approved'
2152
- | 'rejected'
2153
- | 'blocked';
2135
+ status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked';
2154
2136
  retryCount: number;
2155
2137
  retriesRemaining: number;
2156
2138
  /**
@@ -2170,11 +2152,14 @@ export type CancelKycRequestDto = {
2170
2152
  jobId: string;
2171
2153
  };
2172
2154
 
2155
+ export type TrainingMediaTypeDto = 'video' | 'image' | 'text';
2156
+
2173
2157
  export type TrainingContentListItemDto = {
2174
2158
  id: string;
2175
2159
  title: string;
2176
2160
  summary?: string | null;
2177
2161
  thumbnailUrl?: string | null;
2162
+ mediaType: TrainingMediaTypeDto;
2178
2163
  durationSeconds?: number | null;
2179
2164
  categoryCode: string;
2180
2165
  difficultyLevel: string;
@@ -2205,6 +2190,7 @@ export type TrainingContentDetailDto = {
2205
2190
  description?: string | null;
2206
2191
  thumbnailUrl?: string | null;
2207
2192
  videoUrl?: string | null;
2193
+ mediaType: TrainingMediaTypeDto;
2208
2194
  durationSeconds?: number | null;
2209
2195
  categoryCode: string;
2210
2196
  difficultyLevel: string;
@@ -2212,6 +2198,92 @@ export type TrainingContentDetailDto = {
2212
2198
  displayOrder?: number | null;
2213
2199
  };
2214
2200
 
2201
+ export type TrainingAdminLookupItemDto = {
2202
+ code: string;
2203
+ name: string;
2204
+ displayOrder?: number | null;
2205
+ };
2206
+
2207
+ export type TrainingAdminLookupsDto = {
2208
+ categories: Array<TrainingAdminLookupItemDto>;
2209
+ difficulties: Array<TrainingAdminLookupItemDto>;
2210
+ };
2211
+
2212
+ export type TrainingAdminContentStatusDto = 'active' | 'inactive';
2213
+
2214
+ export type TrainingAdminContentDto = {
2215
+ id: string;
2216
+ title: string;
2217
+ subtitle?: string | null;
2218
+ summary?: string | null;
2219
+ description?: string | null;
2220
+ /**
2221
+ * Raw persisted thumbnail URL or storage path.
2222
+ */
2223
+ thumbnailUrl?: string | null;
2224
+ /**
2225
+ * Raw persisted video storage path. Admin writes must not use external video URLs.
2226
+ */
2227
+ videoUrl?: string | null;
2228
+ /**
2229
+ * Signed storage preview URL, or pass-through external thumbnail URL.
2230
+ */
2231
+ thumbnailPreviewUrl?: string | null;
2232
+ /**
2233
+ * Signed storage preview URL for the private video path.
2234
+ */
2235
+ videoPreviewUrl?: string | null;
2236
+ mediaType: TrainingMediaTypeDto;
2237
+ categoryCode: string;
2238
+ categoryName: string;
2239
+ difficultyLevel: string;
2240
+ difficultyName: string;
2241
+ durationSeconds?: number | null;
2242
+ xpReward: number;
2243
+ displayOrder?: number | null;
2244
+ isActive: boolean;
2245
+ status: TrainingAdminContentStatusDto;
2246
+ createdAt: string;
2247
+ updatedAt: string;
2248
+ deletedAt?: string | null;
2249
+ };
2250
+
2251
+ export type TrainingAdminCreateContentInputDto = {
2252
+ title: string;
2253
+ categoryCode: string;
2254
+ difficultyLevel: string;
2255
+ subtitle?: string | null;
2256
+ summary?: string | null;
2257
+ description?: string | null;
2258
+ thumbnailUrl?: string | null;
2259
+ /**
2260
+ * Supabase Storage path only. External http(s) video URLs are rejected.
2261
+ */
2262
+ videoUrl?: string | null;
2263
+ durationSeconds?: number | null;
2264
+ xpReward?: number;
2265
+ displayOrder?: number | null;
2266
+ isActive?: boolean;
2267
+ };
2268
+
2269
+ export type TrainingAdminUpdateContentInputDto = {
2270
+ title?: string;
2271
+ subtitle?: string | null;
2272
+ summary?: string | null;
2273
+ description?: string | null;
2274
+ categoryCode?: string;
2275
+ difficultyLevel?: string;
2276
+ thumbnailUrl?: string | null;
2277
+ /**
2278
+ * Supabase Storage path only. External http(s) video URLs are rejected.
2279
+ */
2280
+ videoUrl?: string | null;
2281
+ durationSeconds?: number | null;
2282
+ xpReward?: number;
2283
+ displayOrder?: number | null;
2284
+ isActive?: boolean;
2285
+ };
2286
+
2215
2287
  export type VideoResponseDto = {
2216
2288
  id: string;
2217
2289
  userId: string;
@@ -2441,8 +2513,7 @@ export type GetApiAuthMeResponses = {
2441
2513
  200: AuthMeResponseDto;
2442
2514
  };
2443
2515
 
2444
- export type GetApiAuthMeResponse =
2445
- GetApiAuthMeResponses[keyof GetApiAuthMeResponses];
2516
+ export type GetApiAuthMeResponse = GetApiAuthMeResponses[keyof GetApiAuthMeResponses];
2446
2517
 
2447
2518
  export type DeleteApiPlayersMeData = {
2448
2519
  body?: never;
@@ -2483,8 +2554,7 @@ export type GetApiPlayersMeResponses = {
2483
2554
  200: PlayerResponseDto;
2484
2555
  };
2485
2556
 
2486
- export type GetApiPlayersMeResponse =
2487
- GetApiPlayersMeResponses[keyof GetApiPlayersMeResponses];
2557
+ export type GetApiPlayersMeResponse = GetApiPlayersMeResponses[keyof GetApiPlayersMeResponses];
2488
2558
 
2489
2559
  export type PatchApiPlayersMeData = {
2490
2560
  body: UpdatePlayerDto;
@@ -2734,8 +2804,7 @@ export type GetApiBillingMeResponses = {
2734
2804
  200: BillingEntitlementResponseDto;
2735
2805
  };
2736
2806
 
2737
- export type GetApiBillingMeResponse =
2738
- GetApiBillingMeResponses[keyof GetApiBillingMeResponses];
2807
+ export type GetApiBillingMeResponse = GetApiBillingMeResponses[keyof GetApiBillingMeResponses];
2739
2808
 
2740
2809
  export type PostApiBillingAccessCodesRedeemData = {
2741
2810
  body: RedeemAccessCodeDto;
@@ -3096,8 +3165,7 @@ export type GetApiProfileMeResponses = {
3096
3165
  200: ProfileResponseDto;
3097
3166
  };
3098
3167
 
3099
- export type GetApiProfileMeResponse =
3100
- GetApiProfileMeResponses[keyof GetApiProfileMeResponses];
3168
+ export type GetApiProfileMeResponse = GetApiProfileMeResponses[keyof GetApiProfileMeResponses];
3101
3169
 
3102
3170
  export type PutApiProfileMeData = {
3103
3171
  body: UpdateProfileDto;
@@ -3125,8 +3193,7 @@ export type PutApiProfileMeResponses = {
3125
3193
  200: ProfileResponseDto;
3126
3194
  };
3127
3195
 
3128
- export type PutApiProfileMeResponse =
3129
- PutApiProfileMeResponses[keyof PutApiProfileMeResponses];
3196
+ export type PutApiProfileMeResponse = PutApiProfileMeResponses[keyof PutApiProfileMeResponses];
3130
3197
 
3131
3198
  export type GetApiAchievementsData = {
3132
3199
  body?: never;
@@ -3261,8 +3328,7 @@ export type GetApiChallengesResponses = {
3261
3328
  200: Array<ChallengeCatalogDto>;
3262
3329
  };
3263
3330
 
3264
- export type GetApiChallengesResponse =
3265
- GetApiChallengesResponses[keyof GetApiChallengesResponses];
3331
+ export type GetApiChallengesResponse = GetApiChallengesResponses[keyof GetApiChallengesResponses];
3266
3332
 
3267
3333
  export type GetApiChallengesMeData = {
3268
3334
  body?: never;
@@ -3307,8 +3373,7 @@ export type GetApiClubsMeResponses = {
3307
3373
  200: Array<ClubResponseDto>;
3308
3374
  };
3309
3375
 
3310
- export type GetApiClubsMeResponse =
3311
- GetApiClubsMeResponses[keyof GetApiClubsMeResponses];
3376
+ export type GetApiClubsMeResponse = GetApiClubsMeResponses[keyof GetApiClubsMeResponses];
3312
3377
 
3313
3378
  export type PostApiClubsMeData = {
3314
3379
  body: CreateClubDto;
@@ -3328,8 +3393,7 @@ export type PostApiClubsMeResponses = {
3328
3393
  201: ClubResponseDto;
3329
3394
  };
3330
3395
 
3331
- export type PostApiClubsMeResponse =
3332
- PostApiClubsMeResponses[keyof PostApiClubsMeResponses];
3396
+ export type PostApiClubsMeResponse = PostApiClubsMeResponses[keyof PostApiClubsMeResponses];
3333
3397
 
3334
3398
  export type DeleteApiClubsMeByIdData = {
3335
3399
  body?: never;
@@ -3433,8 +3497,7 @@ export type PostApiDocumentsResponses = {
3433
3497
  201: DocumentResponseDto;
3434
3498
  };
3435
3499
 
3436
- export type PostApiDocumentsResponse =
3437
- PostApiDocumentsResponses[keyof PostApiDocumentsResponses];
3500
+ export type PostApiDocumentsResponse = PostApiDocumentsResponses[keyof PostApiDocumentsResponses];
3438
3501
 
3439
3502
  export type DeleteApiDocumentsByIdData = {
3440
3503
  body?: never;
@@ -3895,8 +3958,7 @@ export type PostApiKycStartResponses = {
3895
3958
  200: StartKycResponseDto;
3896
3959
  };
3897
3960
 
3898
- export type PostApiKycStartResponse =
3899
- PostApiKycStartResponses[keyof PostApiKycStartResponses];
3961
+ export type PostApiKycStartResponse = PostApiKycStartResponses[keyof PostApiKycStartResponses];
3900
3962
 
3901
3963
  export type PostApiKycSmileLinkData = {
3902
3964
  body: SmileLinkRequestDto;
@@ -3995,8 +4057,7 @@ export type PostApiKycCancelResponses = {
3995
4057
  200: KycStatusDto;
3996
4058
  };
3997
4059
 
3998
- export type PostApiKycCancelResponse =
3999
- PostApiKycCancelResponses[keyof PostApiKycCancelResponses];
4060
+ export type PostApiKycCancelResponse = PostApiKycCancelResponses[keyof PostApiKycCancelResponses];
4000
4061
 
4001
4062
  export type GetApiKycStatusByUserIdData = {
4002
4063
  body?: never;
@@ -4068,8 +4129,7 @@ export type GetApiTrainingResponses = {
4068
4129
  200: PaginatedTrainingContentDto;
4069
4130
  };
4070
4131
 
4071
- export type GetApiTrainingResponse =
4072
- GetApiTrainingResponses[keyof GetApiTrainingResponses];
4132
+ export type GetApiTrainingResponse = GetApiTrainingResponses[keyof GetApiTrainingResponses];
4073
4133
 
4074
4134
  export type GetApiTrainingByIdData = {
4075
4135
  body?: never;
@@ -4098,6 +4158,185 @@ export type GetApiTrainingByIdResponses = {
4098
4158
  export type GetApiTrainingByIdResponse =
4099
4159
  GetApiTrainingByIdResponses[keyof GetApiTrainingByIdResponses];
4100
4160
 
4161
+ export type GetApiTrainingAdminLookupsData = {
4162
+ body?: never;
4163
+ path?: never;
4164
+ query?: never;
4165
+ url: '/api/training/admin/lookups';
4166
+ };
4167
+
4168
+ export type GetApiTrainingAdminLookupsErrors = {
4169
+ /**
4170
+ * Unauthorized
4171
+ */
4172
+ 401: unknown;
4173
+ /**
4174
+ * Forbidden
4175
+ */
4176
+ 403: unknown;
4177
+ };
4178
+
4179
+ export type GetApiTrainingAdminLookupsResponses = {
4180
+ 200: TrainingAdminLookupsDto;
4181
+ };
4182
+
4183
+ export type GetApiTrainingAdminLookupsResponse =
4184
+ GetApiTrainingAdminLookupsResponses[keyof GetApiTrainingAdminLookupsResponses];
4185
+
4186
+ export type GetApiTrainingAdminContentData = {
4187
+ body?: never;
4188
+ path?: never;
4189
+ query?: never;
4190
+ url: '/api/training/admin/content';
4191
+ };
4192
+
4193
+ export type GetApiTrainingAdminContentErrors = {
4194
+ /**
4195
+ * Unauthorized
4196
+ */
4197
+ 401: unknown;
4198
+ /**
4199
+ * Forbidden
4200
+ */
4201
+ 403: unknown;
4202
+ };
4203
+
4204
+ export type GetApiTrainingAdminContentResponses = {
4205
+ 200: Array<TrainingAdminContentDto>;
4206
+ };
4207
+
4208
+ export type GetApiTrainingAdminContentResponse =
4209
+ GetApiTrainingAdminContentResponses[keyof GetApiTrainingAdminContentResponses];
4210
+
4211
+ export type PostApiTrainingAdminContentData = {
4212
+ body: TrainingAdminCreateContentInputDto;
4213
+ path?: never;
4214
+ query?: never;
4215
+ url: '/api/training/admin/content';
4216
+ };
4217
+
4218
+ export type PostApiTrainingAdminContentErrors = {
4219
+ /**
4220
+ * Invalid content input
4221
+ */
4222
+ 400: unknown;
4223
+ /**
4224
+ * Unauthorized
4225
+ */
4226
+ 401: unknown;
4227
+ /**
4228
+ * Forbidden
4229
+ */
4230
+ 403: unknown;
4231
+ };
4232
+
4233
+ export type PostApiTrainingAdminContentResponses = {
4234
+ 201: TrainingAdminContentDto;
4235
+ };
4236
+
4237
+ export type PostApiTrainingAdminContentResponse =
4238
+ PostApiTrainingAdminContentResponses[keyof PostApiTrainingAdminContentResponses];
4239
+
4240
+ export type DeleteApiTrainingAdminContentByIdData = {
4241
+ body?: never;
4242
+ path: {
4243
+ id: string;
4244
+ };
4245
+ query?: never;
4246
+ url: '/api/training/admin/content/{id}';
4247
+ };
4248
+
4249
+ export type DeleteApiTrainingAdminContentByIdErrors = {
4250
+ /**
4251
+ * Unauthorized
4252
+ */
4253
+ 401: unknown;
4254
+ /**
4255
+ * Forbidden
4256
+ */
4257
+ 403: unknown;
4258
+ /**
4259
+ * Not found
4260
+ */
4261
+ 404: unknown;
4262
+ };
4263
+
4264
+ export type DeleteApiTrainingAdminContentByIdResponses = {
4265
+ /**
4266
+ * Deleted
4267
+ */
4268
+ 204: void;
4269
+ };
4270
+
4271
+ export type DeleteApiTrainingAdminContentByIdResponse =
4272
+ DeleteApiTrainingAdminContentByIdResponses[keyof DeleteApiTrainingAdminContentByIdResponses];
4273
+
4274
+ export type GetApiTrainingAdminContentByIdData = {
4275
+ body?: never;
4276
+ path: {
4277
+ id: string;
4278
+ };
4279
+ query?: never;
4280
+ url: '/api/training/admin/content/{id}';
4281
+ };
4282
+
4283
+ export type GetApiTrainingAdminContentByIdErrors = {
4284
+ /**
4285
+ * Unauthorized
4286
+ */
4287
+ 401: unknown;
4288
+ /**
4289
+ * Forbidden
4290
+ */
4291
+ 403: unknown;
4292
+ /**
4293
+ * Not found
4294
+ */
4295
+ 404: unknown;
4296
+ };
4297
+
4298
+ export type GetApiTrainingAdminContentByIdResponses = {
4299
+ 200: TrainingAdminContentDto;
4300
+ };
4301
+
4302
+ export type GetApiTrainingAdminContentByIdResponse =
4303
+ GetApiTrainingAdminContentByIdResponses[keyof GetApiTrainingAdminContentByIdResponses];
4304
+
4305
+ export type PatchApiTrainingAdminContentByIdData = {
4306
+ body: TrainingAdminUpdateContentInputDto;
4307
+ path: {
4308
+ id: string;
4309
+ };
4310
+ query?: never;
4311
+ url: '/api/training/admin/content/{id}';
4312
+ };
4313
+
4314
+ export type PatchApiTrainingAdminContentByIdErrors = {
4315
+ /**
4316
+ * Invalid content input
4317
+ */
4318
+ 400: unknown;
4319
+ /**
4320
+ * Unauthorized
4321
+ */
4322
+ 401: unknown;
4323
+ /**
4324
+ * Forbidden
4325
+ */
4326
+ 403: unknown;
4327
+ /**
4328
+ * Not found
4329
+ */
4330
+ 404: unknown;
4331
+ };
4332
+
4333
+ export type PatchApiTrainingAdminContentByIdResponses = {
4334
+ 200: TrainingAdminContentDto;
4335
+ };
4336
+
4337
+ export type PatchApiTrainingAdminContentByIdResponse =
4338
+ PatchApiTrainingAdminContentByIdResponses[keyof PatchApiTrainingAdminContentByIdResponses];
4339
+
4101
4340
  export type GetApiVideosMeData = {
4102
4341
  body?: never;
4103
4342
  path?: never;
@@ -4121,8 +4360,7 @@ export type GetApiVideosMeResponses = {
4121
4360
  200: Array<VideoResponseDto>;
4122
4361
  };
4123
4362
 
4124
- export type GetApiVideosMeResponse =
4125
- GetApiVideosMeResponses[keyof GetApiVideosMeResponses];
4363
+ export type GetApiVideosMeResponse = GetApiVideosMeResponses[keyof GetApiVideosMeResponses];
4126
4364
 
4127
4365
  export type PostApiVideosData = {
4128
4366
  body: CreateVideoDto;
@@ -4149,8 +4387,7 @@ export type PostApiVideosResponses = {
4149
4387
  201: VideoResponseDto;
4150
4388
  };
4151
4389
 
4152
- export type PostApiVideosResponse =
4153
- PostApiVideosResponses[keyof PostApiVideosResponses];
4390
+ export type PostApiVideosResponse = PostApiVideosResponses[keyof PostApiVideosResponses];
4154
4391
 
4155
4392
  export type GetApiVideosByIdPlayUrlData = {
4156
4393
  body?: never;