@vertikalx/vtx-backend-client 1.0.0-dev.20 → 1.0.0-dev.22

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.
@@ -1,72 +1,65 @@
1
- type ApiKey {
1
+ type User {
2
2
  _id: String!
3
- keyName: String!
4
- keyType: String!
5
- readAccess: Boolean!
6
- writeAccess: Boolean!
3
+ loginEmail: String!
4
+ suspended: Boolean!
5
+ domains: [DomainCredential!]
7
6
  }
8
7
 
9
- type ApiKeyWithValue {
8
+ type UserWithToken {
10
9
  _id: String!
11
- keyName: String!
12
- keyType: String!
13
- readAccess: Boolean!
14
- writeAccess: Boolean!
15
- actualKey: String!
16
- }
17
-
18
- type UserToken {
19
- actualToken: String!
20
- refreshToken: String!
10
+ loginEmail: String!
11
+ suspended: Boolean!
12
+ domains: [DomainCredential!]
13
+ token: UserToken!
21
14
  }
22
15
 
23
- type Domain {
16
+ type BaseTenant {
24
17
  _id: String!
25
18
  name: String!
26
- description: String
19
+ tenant_uri: String!
20
+ domain: Domain!
27
21
  }
28
22
 
29
- type User {
23
+ type Tenant {
30
24
  _id: String!
31
- loginEmail: String!
32
- suspended: Boolean!
33
- domains: [Domain!]
25
+ name: String!
26
+ tenant_uri: String!
27
+ domain: Domain!
28
+ email: String!
29
+ owner: User
34
30
  }
35
31
 
36
- type UserWithToken {
32
+ type Domain {
37
33
  _id: String!
38
- loginEmail: String!
39
- suspended: Boolean!
40
- domains: [Domain!]
41
- token: UserToken!
34
+ name: String!
35
+ description: String
42
36
  }
43
37
 
44
- type Tenant {
38
+ type DomainCredential {
45
39
  _id: String!
46
40
  name: String!
47
- email: String!
48
- tenant_uri: String!
41
+ description: String
42
+ tenant: BaseTenant
49
43
  }
50
44
 
51
- type UriAvailableType {
52
- available: Boolean!
53
- valid: Boolean!
45
+ type UserToken {
46
+ actualToken: String!
47
+ refreshToken: String!
54
48
  }
55
49
 
56
50
  type TenantWithUserLogin {
57
51
  _id: String!
58
52
  name: String!
59
- email: String!
60
53
  tenant_uri: String!
54
+ domain: Domain!
55
+ email: String!
56
+ owner: User
61
57
  user: UserWithToken!
62
58
  }
63
59
 
64
- type TenantUserTokenWithInfo {
65
- actualToken: String!
66
- refreshToken: String!
67
- tenantId: String!
68
- tenantUri: String!
69
- loginEmail: String!
60
+ type UriAvailableType {
61
+ available: Boolean!
62
+ valid: Boolean!
70
63
  }
71
64
 
72
65
  type Agreement {
@@ -264,15 +257,99 @@ type Brand {
264
257
  translations: [BrandTranslation!]
265
258
  }
266
259
 
267
- type Sponsor {
260
+ type CountryReference {
268
261
  _id: String!
269
262
  name: String!
270
- description: String!
271
263
  }
272
264
 
273
- type Industry {
265
+ type StateReference {
266
+ _id: String!
267
+ name: String!
268
+ country: CountryReference
269
+ }
270
+
271
+ type CityReference {
274
272
  _id: String!
275
273
  name: String!
274
+ state: StateReference
275
+ }
276
+
277
+ type Qualification {
278
+ type: String!
279
+ }
280
+
281
+ type ScoreQualification {
282
+ type: String!
283
+ scoreType: String!
284
+ operator: String!
285
+ value: Float!
286
+ }
287
+
288
+ type LocationQualification {
289
+ type: String!
290
+ operator: String!
291
+ countries: [CountryReference!]!
292
+ states: [StateReference!]!
293
+ cities: [CityReference!]!
294
+ }
295
+
296
+ type DistanceQualification {
297
+ type: String!
298
+ maxDistance: Float!
299
+ latitude: Float
300
+ longitude: Float
301
+ cityId: String
302
+ }
303
+
304
+ type SportsQualification {
305
+ type: String!
306
+ sports: [String!]!
307
+ operator: String!
308
+ }
309
+
310
+ type SportsLevelQualification {
311
+ type: String!
312
+ operator: String!
313
+ level: String!
314
+ }
315
+
316
+ type AthleteCriteria {
317
+ _id: String!
318
+ label: String
319
+ qualifications: [Qualification!]
320
+ }
321
+
322
+ type SponsorshipStats {
323
+ totalApplications: Float
324
+ newApplications: Float
325
+ discardedApplications: Float
326
+ selectedApplications: Float
327
+ approvedApplications: Float
328
+ grantedSponsorships: Float
329
+ remainingSponsorships: Float
330
+ }
331
+
332
+ type SponsorshipTranslation {
333
+ _id: String!
334
+ sponsorshipId: String!
335
+ language: String!
336
+ title: String
337
+ description: String
338
+ terms: String
339
+ banner: AWSS3File
340
+ }
341
+
342
+ type Sponsorship {
343
+ _id: String!
344
+ title: String!
345
+ description: String
346
+ terms: String
347
+ banner: AWSS3File
348
+ stats: SponsorshipStats
349
+ translations: [SponsorshipTranslation!]
350
+ approved: Boolean!
351
+ published: Boolean!
352
+ criteria: AthleteCriteria
276
353
  }
277
354
 
278
355
  type Athlete {
@@ -283,19 +360,81 @@ type Athlete {
283
360
  nationalityIso2: String
284
361
  }
285
362
 
363
+ type Industry {
364
+ _id: String!
365
+ name: String!
366
+ }
367
+
368
+ type Sponsor {
369
+ _id: String!
370
+ name: String!
371
+ description: String!
372
+ }
373
+
286
374
  type Sport {
287
375
  _id: String!
288
376
  name: String!
289
377
  }
290
378
 
379
+ input ScoreQualificationDto {
380
+ type: String!
381
+ scoreType: String!
382
+ operator: String!
383
+ value: Float!
384
+ }
385
+
386
+ input LocationQualificationDto {
387
+ type: String!
388
+ operator: String!
389
+ countries: [CountryReferenceDto!]!
390
+ states: [StateReferenceDto!]!
391
+ cities: [CityReferenceDto!]!
392
+ }
393
+
394
+ input CountryReferenceDto {
395
+ _id: String!
396
+ name: String!
397
+ }
398
+
399
+ input StateReferenceDto {
400
+ _id: String!
401
+ name: String!
402
+ country: CountryReferenceDto
403
+ }
404
+
405
+ input CityReferenceDto {
406
+ _id: String!
407
+ name: String!
408
+ state: StateReferenceDto
409
+ }
410
+
411
+ input DistanceQualificationDto {
412
+ type: String!
413
+ maxDistance: Float!
414
+ latitude: Float
415
+ longitude: Float
416
+ cityId: String
417
+ }
418
+
419
+ input SportsQualificationDto {
420
+ type: String!
421
+ sports: [String!]!
422
+ operator: String!
423
+ }
424
+
425
+ input SportsLevelQualificationDto {
426
+ type: String!
427
+ operator: String!
428
+ level: String!
429
+ }
430
+
291
431
  type Query {
292
- tenant(_id: String!): Tenant!
293
- tenantByEmail(email: String!): Tenant!
294
- tenants: [Tenant!]!
432
+ findTenantById(_id: String!): Tenant!
433
+ findTenantByEmail(email: String!, domainId: String!): Tenant!
434
+ getTenants: [Tenant!]!
295
435
  isTenantUriAvailable(tenant_uri: String!): UriAvailableType!
296
- tenantApiKeys: [ApiKey!]!
297
- nontenantedUserById(_id: String!): User!
298
- nontenantedUserByEmail(email: String!): User!
436
+ findUserById(_id: String!): User!
437
+ findUserByEmail(email: String!): User!
299
438
  getUploadUrl(input: AWSS3GetUploadDto!): AWSS3UploadUrl!
300
439
  industries: [Industry!]!
301
440
  findIndustryById(industryId: String!): Industry!
@@ -308,6 +447,7 @@ type Query {
308
447
  findAthleteById(athleteId: String!): Athlete!
309
448
  sports: [Sport!]!
310
449
  findSportById(sportId: String!): Sport!
450
+ getSponsorships(sponsorId: String!): [Sponsorship!]!
311
451
  }
312
452
 
313
453
  input AWSS3GetUploadDto {
@@ -316,15 +456,11 @@ input AWSS3GetUploadDto {
316
456
  }
317
457
 
318
458
  type Mutation {
319
- createTenant(tenant: CreateTenantInput!): Tenant!
320
- createTenantApiKey(newKeyInfo: CreateApiKeyInput!): ApiKey!
321
- createTenantApiKeyWithSystemKey(newKeyInfo: CreateApiKeyInput!): ApiKeyWithValue!
322
- createTenantWithLogin(tenant: CreateTenantInput!): TenantWithUserLogin!
323
- createTenantUserToken(requestTokenDto: CreateTenantUserTokenDto!): TenantUserTokenWithInfo!
324
- createTenantUserTokenFromEmailAndUri(requestTokenInfoDto: CreateTenantUserTokenFromEmailAndUriDto!): TenantUserTokenWithInfo!
325
- refreshTenantToken(dto: RefreshTokenInput!): UserToken!
326
- createNonTenantedUserWithLogin(user: CreateActiveUserInput!): UserWithToken!
327
- createNonTenantUserTokenFromEmail(email: String!): UserToken!
459
+ registerNewDomainTenant(tenant: CreateTenantInput!): Tenant!
460
+ registerNewDomainTenantWithLogin(tenant: CreateTenantInput!): TenantWithUserLogin!
461
+ createUserAndLogin(user: CreateActiveUserInput!): UserWithToken!
462
+ loginUserFromEmail(email: String!): UserToken!
463
+ registerUserToDomainFromEmail(input: RegisterUserToDomainFromEmailInput!): User!
328
464
  refreshToken(dto: RefreshTokenInput!): UserToken!
329
465
  deleteUploadedUseTypeFile(input: AWSS3DeleteUseTypeFileDto!): AWSS3CallResult!
330
466
  deleteUploadedBucketFile(input: AWSS3DeleteBucketFileDto!): AWSS3CallResult!
@@ -336,39 +472,32 @@ type Mutation {
336
472
  registerAthlete(input: RegisterAthleteDto!): Athlete!
337
473
  createSport(input: CreateSportDto!): Sport!
338
474
  updateSport(sportId: String!, input: UpdateSportDto!): Sport!
475
+ createSponsorwhip(input: CreateSponsorshipDto!): Sponsorship!
339
476
  }
340
477
 
341
478
  input CreateTenantInput {
342
479
  name: String!
343
480
  email: String!
344
481
  tenant_uri: String!
482
+ domain: String!
345
483
  }
346
484
 
347
- input CreateApiKeyInput {
348
- keyName: String!
349
- keyType: String! = "common"
350
- readAccess: Boolean!
351
- writeAccess: Boolean!
352
- }
353
-
354
- input CreateTenantUserTokenDto {
355
- requestToken: String!
485
+ input CreateActiveUserInput {
486
+ loginEmail: String!
487
+ password: String
356
488
  }
357
489
 
358
- input CreateTenantUserTokenFromEmailAndUriDto {
490
+ input RegisterUserToDomainFromEmailInput {
359
491
  email: String!
360
- tenant_uri: String!
492
+ domainId: String!
493
+ tenantId: String
494
+ createUserIfNotExist: Boolean = false
361
495
  }
362
496
 
363
497
  input RefreshTokenInput {
364
498
  refreshToken: String!
365
499
  }
366
500
 
367
- input CreateActiveUserInput {
368
- loginEmail: String!
369
- password: String
370
- }
371
-
372
501
  input AWSS3DeleteUseTypeFileDto {
373
502
  name: String!
374
503
  useType: String!
@@ -450,4 +579,46 @@ input CreateSportDto {
450
579
 
451
580
  input UpdateSportDto {
452
581
  name: String!
582
+ }
583
+
584
+ input CreateSponsorshipDto {
585
+ title: String!
586
+ brandId: String!
587
+ description: String
588
+ cashValue: Float = 0
589
+ otherValue: Float = 0
590
+ banner: AWSS3UploadedFileDto
591
+ criteria: AthleteCriteriaDto
592
+ sponsorshipItems: [SponsorshipItemDto!]
593
+ commitments: [SponsorshipCommitmentDto!]
594
+ terms: String
595
+ published: Boolean = true
596
+ translations: [SponsorshipTranslationDto!]
597
+ }
598
+
599
+ input AthleteCriteriaDto {
600
+ _id: String!
601
+ label: String
602
+ qualifications: [QualificationDto!]
603
+ }
604
+
605
+ input QualificationDto {
606
+ type: String!
607
+ }
608
+
609
+ input SponsorshipItemDto {
610
+ _id: String!
611
+ name: String!
612
+ }
613
+
614
+ input SponsorshipCommitmentDto {
615
+ _id: String!
616
+ name: String!
617
+ }
618
+
619
+ input SponsorshipTranslationDto {
620
+ title: String
621
+ description: String
622
+ banner: AWSS3UploadedFileDto
623
+ terms: String
453
624
  }
@@ -1,34 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isMutation = exports.isQuery = exports.isSport = exports.isAthlete = exports.isIndustry = exports.isSponsor = exports.isBrand = exports.isBrandTranslation = exports.isBrandStats = exports.isAWSS3CallResult = exports.isAWSS3UploadUrl = exports.isHttpRequestField = exports.isAWSS3File = exports.isSubscriptionPayment = exports.isPlanSubscription = exports.isSubscriptionInvoice = exports.isInvoice = exports.isPlanPrice = exports.isPlan = exports.isPlaFeature = exports.isPayment = exports.isInvoiceItem = exports.isBillEntity = exports.isAgreement = exports.isTenantUserTokenWithInfo = exports.isTenantWithUserLogin = exports.isUriAvailableType = exports.isTenant = exports.isUserWithToken = exports.isUser = exports.isDomain = exports.isUserToken = exports.isApiKeyWithValue = exports.isApiKey = void 0;
4
- const ApiKey_possibleTypes = ['ApiKey'];
5
- const isApiKey = (obj) => {
6
- if (!obj?.__typename)
7
- throw new Error('__typename is missing in "isApiKey"');
8
- return ApiKey_possibleTypes.includes(obj.__typename);
9
- };
10
- exports.isApiKey = isApiKey;
11
- const ApiKeyWithValue_possibleTypes = ['ApiKeyWithValue'];
12
- const isApiKeyWithValue = (obj) => {
13
- if (!obj?.__typename)
14
- throw new Error('__typename is missing in "isApiKeyWithValue"');
15
- return ApiKeyWithValue_possibleTypes.includes(obj.__typename);
16
- };
17
- exports.isApiKeyWithValue = isApiKeyWithValue;
18
- const UserToken_possibleTypes = ['UserToken'];
19
- const isUserToken = (obj) => {
20
- if (!obj?.__typename)
21
- throw new Error('__typename is missing in "isUserToken"');
22
- return UserToken_possibleTypes.includes(obj.__typename);
23
- };
24
- exports.isUserToken = isUserToken;
25
- const Domain_possibleTypes = ['Domain'];
26
- const isDomain = (obj) => {
27
- if (!obj?.__typename)
28
- throw new Error('__typename is missing in "isDomain"');
29
- return Domain_possibleTypes.includes(obj.__typename);
30
- };
31
- exports.isDomain = isDomain;
3
+ exports.isMutation = exports.isQuery = exports.isSport = exports.isSponsor = exports.isIndustry = exports.isAthlete = exports.isSponsorship = exports.isSponsorshipTranslation = exports.isSponsorshipStats = exports.isAthleteCriteria = exports.isSportsLevelQualification = exports.isSportsQualification = exports.isDistanceQualification = exports.isLocationQualification = exports.isScoreQualification = exports.isQualification = exports.isCityReference = exports.isStateReference = exports.isCountryReference = exports.isBrand = exports.isBrandTranslation = exports.isBrandStats = exports.isAWSS3CallResult = exports.isAWSS3UploadUrl = exports.isHttpRequestField = exports.isAWSS3File = exports.isSubscriptionPayment = exports.isPlanSubscription = exports.isSubscriptionInvoice = exports.isInvoice = exports.isPlanPrice = exports.isPlan = exports.isPlaFeature = exports.isPayment = exports.isInvoiceItem = exports.isBillEntity = exports.isAgreement = exports.isUriAvailableType = exports.isTenantWithUserLogin = exports.isUserToken = exports.isDomainCredential = exports.isDomain = exports.isTenant = exports.isBaseTenant = exports.isUserWithToken = exports.isUser = void 0;
32
4
  const User_possibleTypes = ['User'];
33
5
  const isUser = (obj) => {
34
6
  if (!obj?.__typename)
@@ -43,6 +15,13 @@ const isUserWithToken = (obj) => {
43
15
  return UserWithToken_possibleTypes.includes(obj.__typename);
44
16
  };
45
17
  exports.isUserWithToken = isUserWithToken;
18
+ const BaseTenant_possibleTypes = ['BaseTenant'];
19
+ const isBaseTenant = (obj) => {
20
+ if (!obj?.__typename)
21
+ throw new Error('__typename is missing in "isBaseTenant"');
22
+ return BaseTenant_possibleTypes.includes(obj.__typename);
23
+ };
24
+ exports.isBaseTenant = isBaseTenant;
46
25
  const Tenant_possibleTypes = ['Tenant'];
47
26
  const isTenant = (obj) => {
48
27
  if (!obj?.__typename)
@@ -50,13 +29,27 @@ const isTenant = (obj) => {
50
29
  return Tenant_possibleTypes.includes(obj.__typename);
51
30
  };
52
31
  exports.isTenant = isTenant;
53
- const UriAvailableType_possibleTypes = ['UriAvailableType'];
54
- const isUriAvailableType = (obj) => {
32
+ const Domain_possibleTypes = ['Domain'];
33
+ const isDomain = (obj) => {
55
34
  if (!obj?.__typename)
56
- throw new Error('__typename is missing in "isUriAvailableType"');
57
- return UriAvailableType_possibleTypes.includes(obj.__typename);
35
+ throw new Error('__typename is missing in "isDomain"');
36
+ return Domain_possibleTypes.includes(obj.__typename);
58
37
  };
59
- exports.isUriAvailableType = isUriAvailableType;
38
+ exports.isDomain = isDomain;
39
+ const DomainCredential_possibleTypes = ['DomainCredential'];
40
+ const isDomainCredential = (obj) => {
41
+ if (!obj?.__typename)
42
+ throw new Error('__typename is missing in "isDomainCredential"');
43
+ return DomainCredential_possibleTypes.includes(obj.__typename);
44
+ };
45
+ exports.isDomainCredential = isDomainCredential;
46
+ const UserToken_possibleTypes = ['UserToken'];
47
+ const isUserToken = (obj) => {
48
+ if (!obj?.__typename)
49
+ throw new Error('__typename is missing in "isUserToken"');
50
+ return UserToken_possibleTypes.includes(obj.__typename);
51
+ };
52
+ exports.isUserToken = isUserToken;
60
53
  const TenantWithUserLogin_possibleTypes = ['TenantWithUserLogin'];
61
54
  const isTenantWithUserLogin = (obj) => {
62
55
  if (!obj?.__typename)
@@ -64,13 +57,13 @@ const isTenantWithUserLogin = (obj) => {
64
57
  return TenantWithUserLogin_possibleTypes.includes(obj.__typename);
65
58
  };
66
59
  exports.isTenantWithUserLogin = isTenantWithUserLogin;
67
- const TenantUserTokenWithInfo_possibleTypes = ['TenantUserTokenWithInfo'];
68
- const isTenantUserTokenWithInfo = (obj) => {
60
+ const UriAvailableType_possibleTypes = ['UriAvailableType'];
61
+ const isUriAvailableType = (obj) => {
69
62
  if (!obj?.__typename)
70
- throw new Error('__typename is missing in "isTenantUserTokenWithInfo"');
71
- return TenantUserTokenWithInfo_possibleTypes.includes(obj.__typename);
63
+ throw new Error('__typename is missing in "isUriAvailableType"');
64
+ return UriAvailableType_possibleTypes.includes(obj.__typename);
72
65
  };
73
- exports.isTenantUserTokenWithInfo = isTenantUserTokenWithInfo;
66
+ exports.isUriAvailableType = isUriAvailableType;
74
67
  const Agreement_possibleTypes = ['Agreement'];
75
68
  const isAgreement = (obj) => {
76
69
  if (!obj?.__typename)
@@ -197,20 +190,97 @@ const isBrand = (obj) => {
197
190
  return Brand_possibleTypes.includes(obj.__typename);
198
191
  };
199
192
  exports.isBrand = isBrand;
200
- const Sponsor_possibleTypes = ['Sponsor'];
201
- const isSponsor = (obj) => {
193
+ const CountryReference_possibleTypes = ['CountryReference'];
194
+ const isCountryReference = (obj) => {
202
195
  if (!obj?.__typename)
203
- throw new Error('__typename is missing in "isSponsor"');
204
- return Sponsor_possibleTypes.includes(obj.__typename);
196
+ throw new Error('__typename is missing in "isCountryReference"');
197
+ return CountryReference_possibleTypes.includes(obj.__typename);
205
198
  };
206
- exports.isSponsor = isSponsor;
207
- const Industry_possibleTypes = ['Industry'];
208
- const isIndustry = (obj) => {
199
+ exports.isCountryReference = isCountryReference;
200
+ const StateReference_possibleTypes = ['StateReference'];
201
+ const isStateReference = (obj) => {
209
202
  if (!obj?.__typename)
210
- throw new Error('__typename is missing in "isIndustry"');
211
- return Industry_possibleTypes.includes(obj.__typename);
203
+ throw new Error('__typename is missing in "isStateReference"');
204
+ return StateReference_possibleTypes.includes(obj.__typename);
212
205
  };
213
- exports.isIndustry = isIndustry;
206
+ exports.isStateReference = isStateReference;
207
+ const CityReference_possibleTypes = ['CityReference'];
208
+ const isCityReference = (obj) => {
209
+ if (!obj?.__typename)
210
+ throw new Error('__typename is missing in "isCityReference"');
211
+ return CityReference_possibleTypes.includes(obj.__typename);
212
+ };
213
+ exports.isCityReference = isCityReference;
214
+ const Qualification_possibleTypes = ['Qualification'];
215
+ const isQualification = (obj) => {
216
+ if (!obj?.__typename)
217
+ throw new Error('__typename is missing in "isQualification"');
218
+ return Qualification_possibleTypes.includes(obj.__typename);
219
+ };
220
+ exports.isQualification = isQualification;
221
+ const ScoreQualification_possibleTypes = ['ScoreQualification'];
222
+ const isScoreQualification = (obj) => {
223
+ if (!obj?.__typename)
224
+ throw new Error('__typename is missing in "isScoreQualification"');
225
+ return ScoreQualification_possibleTypes.includes(obj.__typename);
226
+ };
227
+ exports.isScoreQualification = isScoreQualification;
228
+ const LocationQualification_possibleTypes = ['LocationQualification'];
229
+ const isLocationQualification = (obj) => {
230
+ if (!obj?.__typename)
231
+ throw new Error('__typename is missing in "isLocationQualification"');
232
+ return LocationQualification_possibleTypes.includes(obj.__typename);
233
+ };
234
+ exports.isLocationQualification = isLocationQualification;
235
+ const DistanceQualification_possibleTypes = ['DistanceQualification'];
236
+ const isDistanceQualification = (obj) => {
237
+ if (!obj?.__typename)
238
+ throw new Error('__typename is missing in "isDistanceQualification"');
239
+ return DistanceQualification_possibleTypes.includes(obj.__typename);
240
+ };
241
+ exports.isDistanceQualification = isDistanceQualification;
242
+ const SportsQualification_possibleTypes = ['SportsQualification'];
243
+ const isSportsQualification = (obj) => {
244
+ if (!obj?.__typename)
245
+ throw new Error('__typename is missing in "isSportsQualification"');
246
+ return SportsQualification_possibleTypes.includes(obj.__typename);
247
+ };
248
+ exports.isSportsQualification = isSportsQualification;
249
+ const SportsLevelQualification_possibleTypes = ['SportsLevelQualification'];
250
+ const isSportsLevelQualification = (obj) => {
251
+ if (!obj?.__typename)
252
+ throw new Error('__typename is missing in "isSportsLevelQualification"');
253
+ return SportsLevelQualification_possibleTypes.includes(obj.__typename);
254
+ };
255
+ exports.isSportsLevelQualification = isSportsLevelQualification;
256
+ const AthleteCriteria_possibleTypes = ['AthleteCriteria'];
257
+ const isAthleteCriteria = (obj) => {
258
+ if (!obj?.__typename)
259
+ throw new Error('__typename is missing in "isAthleteCriteria"');
260
+ return AthleteCriteria_possibleTypes.includes(obj.__typename);
261
+ };
262
+ exports.isAthleteCriteria = isAthleteCriteria;
263
+ const SponsorshipStats_possibleTypes = ['SponsorshipStats'];
264
+ const isSponsorshipStats = (obj) => {
265
+ if (!obj?.__typename)
266
+ throw new Error('__typename is missing in "isSponsorshipStats"');
267
+ return SponsorshipStats_possibleTypes.includes(obj.__typename);
268
+ };
269
+ exports.isSponsorshipStats = isSponsorshipStats;
270
+ const SponsorshipTranslation_possibleTypes = ['SponsorshipTranslation'];
271
+ const isSponsorshipTranslation = (obj) => {
272
+ if (!obj?.__typename)
273
+ throw new Error('__typename is missing in "isSponsorshipTranslation"');
274
+ return SponsorshipTranslation_possibleTypes.includes(obj.__typename);
275
+ };
276
+ exports.isSponsorshipTranslation = isSponsorshipTranslation;
277
+ const Sponsorship_possibleTypes = ['Sponsorship'];
278
+ const isSponsorship = (obj) => {
279
+ if (!obj?.__typename)
280
+ throw new Error('__typename is missing in "isSponsorship"');
281
+ return Sponsorship_possibleTypes.includes(obj.__typename);
282
+ };
283
+ exports.isSponsorship = isSponsorship;
214
284
  const Athlete_possibleTypes = ['Athlete'];
215
285
  const isAthlete = (obj) => {
216
286
  if (!obj?.__typename)
@@ -218,6 +288,20 @@ const isAthlete = (obj) => {
218
288
  return Athlete_possibleTypes.includes(obj.__typename);
219
289
  };
220
290
  exports.isAthlete = isAthlete;
291
+ const Industry_possibleTypes = ['Industry'];
292
+ const isIndustry = (obj) => {
293
+ if (!obj?.__typename)
294
+ throw new Error('__typename is missing in "isIndustry"');
295
+ return Industry_possibleTypes.includes(obj.__typename);
296
+ };
297
+ exports.isIndustry = isIndustry;
298
+ const Sponsor_possibleTypes = ['Sponsor'];
299
+ const isSponsor = (obj) => {
300
+ if (!obj?.__typename)
301
+ throw new Error('__typename is missing in "isSponsor"');
302
+ return Sponsor_possibleTypes.includes(obj.__typename);
303
+ };
304
+ exports.isSponsor = isSponsor;
221
305
  const Sport_possibleTypes = ['Sport'];
222
306
  const isSport = (obj) => {
223
307
  if (!obj?.__typename)