@vertikalx/vtx-backend-client 3.1.18-dev.2 → 3.1.20-dev.0

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.
@@ -716,6 +716,7 @@ export type Brand = {
716
716
  translations?: Maybe<Array<BrandTranslation>>;
717
717
  website?: Maybe<Scalars['String']['output']>;
718
718
  };
719
+ export type BrandOperatorType = 'BOTH' | 'NOT_OWNED' | 'OWNED';
719
720
  export type BrandQueryDto = {
720
721
  approved?: InputMaybe<Scalars['String']['input']>;
721
722
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -842,6 +843,7 @@ export type Channel = {
842
843
  type: Scalars['String']['output'];
843
844
  url: Scalars['String']['output'];
844
845
  };
846
+ export type ChannelTypeEnum = 'FACEBOOK' | 'INSTAGRAM' | 'STRAVA' | 'TIKTOK' | 'YOUTUBE';
845
847
  export type CheckScoreRefreshCapabilityDto = {
846
848
  athleteIds: Array<Scalars['String']['input']>;
847
849
  };
@@ -870,6 +872,11 @@ export type City = {
870
872
  state?: Maybe<State>;
871
873
  timezone?: Maybe<Scalars['String']['output']>;
872
874
  };
875
+ export type CityReferenceDto = {
876
+ _id: Scalars['String']['input'];
877
+ name: Scalars['String']['input'];
878
+ state?: InputMaybe<StateReferenceDto>;
879
+ };
873
880
  export type ClaimExternalCompetitionResultDto = {
874
881
  competitionId: Scalars['String']['input'];
875
882
  };
@@ -923,6 +930,7 @@ export type CompetitionBudgetReference = {
923
930
  competitionId: Scalars['String']['output'];
924
931
  eventName: Scalars['String']['output'];
925
932
  };
933
+ export type CompetitionDeleteVerificationCase = 'CAMPAIGN_WILL_LOSE_FUNDS' | 'COMPETITION_HAS_BUDGET' | 'COMPETITION_LINKED_TO_CAMPAIGN' | 'COMPETITION_SAFE_TO_DELETE';
926
934
  export type CompetitionDeleteVerificationReason = {
927
935
  code: Scalars['String']['output'];
928
936
  details?: Maybe<Scalars['String']['output']>;
@@ -932,6 +940,7 @@ export type CompetitionDeleteVerificationResponse = {
932
940
  reasons: Array<CompetitionDeleteVerificationReason>;
933
941
  };
934
942
  export type CompetitionGender = 'FEMALE' | 'MALE';
943
+ export type CompetitionOutcome = 'DNF' | 'DNS' | 'DQ' | 'FINISHED' | 'LOSE' | 'TIE' | 'WIN';
935
944
  export type CompetitionResultDto = {
936
945
  adversary?: InputMaybe<Scalars['String']['input']>;
937
946
  categoryName?: InputMaybe<Scalars['String']['input']>;
@@ -971,6 +980,10 @@ export type Country = {
971
980
  name: Scalars['String']['output'];
972
981
  states?: Maybe<Array<State>>;
973
982
  };
983
+ export type CountryReferenceDto = {
984
+ _id: Scalars['String']['input'];
985
+ name: Scalars['String']['input'];
986
+ };
974
987
  export type Coupon = {
975
988
  _id: Scalars['String']['output'];
976
989
  availableCodes: Scalars['Int']['output'];
@@ -1353,6 +1366,14 @@ export type DecodedToken = {
1353
1366
  export type DeleteAthleteDto = {
1354
1367
  userIdentifier: Scalars['String']['input'];
1355
1368
  };
1369
+ export type DeleteAthleteResponse = {
1370
+ deletedAthlete?: Maybe<AthleteReference>;
1371
+ success: Scalars['Boolean']['output'];
1372
+ };
1373
+ export type DeleteMemberResponse = {
1374
+ deletedMemberId?: Maybe<Scalars['String']['output']>;
1375
+ success: Scalars['Boolean']['output'];
1376
+ };
1356
1377
  export type DeleteOnboardingAthleteResponse = {
1357
1378
  athleteId?: Maybe<Scalars['String']['output']>;
1358
1379
  error?: Maybe<Scalars['String']['output']>;
@@ -1399,6 +1420,7 @@ export type DeviceTokenType = {
1399
1420
  updatedAt: Scalars['DateTime']['output'];
1400
1421
  userId: Scalars['String']['output'];
1401
1422
  };
1423
+ export type DiscountType = 'AMOUNT_DISCOUNT' | 'CASH_BACK' | 'FREE_PRODUCT' | 'MULTIPLIER_DISCOUNT' | 'OTHER' | 'PCT_DISCOUNT' | 'SPECIAL_PRICE';
1402
1424
  export type DiscrepancyStatus = 'FLAGGED' | 'RECONCILED';
1403
1425
  export type DismissNotificationDto = {
1404
1426
  notificationId: Scalars['String']['input'];
@@ -1603,6 +1625,7 @@ export type ErrorType = {
1603
1625
  code: Scalars['Float']['output'];
1604
1626
  message: Scalars['String']['output'];
1605
1627
  };
1628
+ export type EventLevel = 'City' | 'InternationalTier1' | 'InternationalTier2' | 'InternationalTier3' | 'National' | 'Regional' | 'State' | 'Unranked';
1606
1629
  export type EventQueryDto = {
1607
1630
  dateFrom?: InputMaybe<Scalars['String']['input']>;
1608
1631
  dateTo?: InputMaybe<Scalars['String']['input']>;
@@ -2257,6 +2280,7 @@ export type MutationCreateAthleteMembershipAffilationArgs = {
2257
2280
  };
2258
2281
  export type MutationCreateBrandArgs = {
2259
2282
  input: CreateBrandDto;
2283
+ tenantId: Scalars['String']['input'];
2260
2284
  };
2261
2285
  export type MutationCreateCityArgs = {
2262
2286
  input: CreateCityDto;
@@ -2300,6 +2324,7 @@ export type MutationCreateMembershipOrganizationArgs = {
2300
2324
  };
2301
2325
  export type MutationCreateOfferArgs = {
2302
2326
  input: CreateOfferDto;
2327
+ tenantId: Scalars['String']['input'];
2303
2328
  };
2304
2329
  export type MutationCreateResetPasswordCodeArgs = {
2305
2330
  input: Scalars['String']['input'];
@@ -2614,6 +2639,7 @@ export type MutationUpdateAthleteIntegrationArgs = {
2614
2639
  export type MutationUpdateBrandArgs = {
2615
2640
  id: Scalars['String']['input'];
2616
2641
  input: CreateBrandDto;
2642
+ tenantId: Scalars['String']['input'];
2617
2643
  };
2618
2644
  export type MutationUpdateClubArgs = {
2619
2645
  input: UpdateClubInput;
@@ -2635,6 +2661,7 @@ export type MutationUpdateNotificationPreferencesArgs = {
2635
2661
  export type MutationUpdateOfferArgs = {
2636
2662
  id: Scalars['String']['input'];
2637
2663
  input: CreateOfferDto;
2664
+ tenantId: Scalars['String']['input'];
2638
2665
  };
2639
2666
  export type MutationUpdateOnboardingProgressArgs = {
2640
2667
  input: UpdateOnboardingProgressDto;
@@ -2772,6 +2799,8 @@ export type OfferQueryDto = {
2772
2799
  sortField?: InputMaybe<Scalars['String']['input']>;
2773
2800
  sortOrder?: InputMaybe<Scalars['String']['input']>;
2774
2801
  };
2802
+ export type OfferStatus = 'ACTIVE' | 'INACTIVE';
2803
+ export type OfferType = 'COUPON' | 'OFFER' | 'PROMOTION';
2775
2804
  export type OfferWithEligibility = {
2776
2805
  _id: Scalars['String']['output'];
2777
2806
  availableCodes: Scalars['Int']['output'];
@@ -2801,6 +2830,12 @@ export type OffsetPaginationDto = {
2801
2830
  pageSize?: Scalars['Float']['input'];
2802
2831
  sortCriteria?: InputMaybe<SortCriteriaDto>;
2803
2832
  };
2833
+ export type OffsetPaginationResponse = {
2834
+ pageNumber: Scalars['Float']['output'];
2835
+ pageSize: Scalars['Float']['output'];
2836
+ sort?: Maybe<SortOrder>;
2837
+ totalPages: Scalars['Float']['output'];
2838
+ };
2804
2839
  export type OnboardingProgressResponse = {
2805
2840
  athleteId?: Maybe<Scalars['String']['output']>;
2806
2841
  complete?: Maybe<Scalars['Boolean']['output']>;
@@ -2866,6 +2901,7 @@ export type PendingSuggestionGroup = {
2866
2901
  eventName?: Maybe<Scalars['String']['output']>;
2867
2902
  };
2868
2903
  export type PeriodType = 'DAILY' | 'WEEKLY';
2904
+ export type Periodicity = 'OTHER' | 'PER_DAY' | 'PER_MONTH' | 'PER_PERIOD' | 'PER_WEEK' | 'PER_YEAR';
2869
2905
  export type PhotoAlbum = {
2870
2906
  _id: Scalars['String']['output'];
2871
2907
  photo?: Maybe<Awss3File>;
@@ -2992,9 +3028,14 @@ export type PushIosOverridesInput = {
2992
3028
  interruptionLevel?: InputMaybe<Scalars['String']['input']>;
2993
3029
  sound?: InputMaybe<Scalars['String']['input']>;
2994
3030
  };
3031
+ export type Qualification = {
3032
+ type: Scalars['String']['output'];
3033
+ };
2995
3034
  export type QualificationDto = {
2996
3035
  type: Scalars['String']['input'];
2997
3036
  };
3037
+ export type QualificationOperator = 'EQUAL' | 'GREATER_OR_EQUAL' | 'IN' | 'LESSER_OR_EQUAL' | 'NOT_IN';
3038
+ export type QualificationTypeEnum = 'AGE' | 'DISTANCE' | 'GENDER' | 'LOCATION' | 'NATIONALITY' | 'SCORE' | 'SPORTS' | 'SPORTS_LEVEL';
2998
3039
  export type QualificationTypeUnion = AgeQualification | DistanceQualification | GenderQualification | LocationQualification | NationalityQualification | ScoreQualification | SportsLevelQualification | SportsQualification;
2999
3040
  export type QualificationsBagDto = {
3000
3041
  ageQualifications?: InputMaybe<Array<AgeQualificationDto>>;
@@ -3625,6 +3666,10 @@ export type RegisterSponsorInput = {
3625
3666
  operatorType: Scalars['String']['input'];
3626
3667
  phone?: InputMaybe<Scalars['String']['input']>;
3627
3668
  };
3669
+ export type RegisterStravaDto = {
3670
+ code: Scalars['String']['input'];
3671
+ idAthlete: Scalars['String']['input'];
3672
+ };
3628
3673
  export type RegisterUserDto = {
3629
3674
  anonymousId?: InputMaybe<Scalars['String']['input']>;
3630
3675
  email: Scalars['String']['input'];
@@ -3812,6 +3857,7 @@ export type SponsorAthleteInvitation = {
3812
3857
  sponsor: Sponsor;
3813
3858
  status: Scalars['String']['output'];
3814
3859
  };
3860
+ export type SponsorAthleteInvitationStatus = 'DECLINED' | 'EXPIRED' | 'INVITED';
3815
3861
  export type SponsorBrand = {
3816
3862
  _id: Scalars['String']['output'];
3817
3863
  authorizedUse: Scalars['Boolean']['output'];
@@ -3943,6 +3989,10 @@ export type SportQueryDto = {
3943
3989
  sortOrder?: InputMaybe<Scalars['String']['input']>;
3944
3990
  verified?: InputMaybe<Scalars['String']['input']>;
3945
3991
  };
3992
+ export type SportQueryResults = {
3993
+ pageData: OffsetPaginationResponse;
3994
+ results: Array<Sport>;
3995
+ };
3946
3996
  export type SportsEvent = {
3947
3997
  _id: Scalars['String']['output'];
3948
3998
  banner?: Maybe<Awss3File>;
@@ -3982,6 +4032,11 @@ export type State = {
3982
4032
  country?: Maybe<Country>;
3983
4033
  name: Scalars['String']['output'];
3984
4034
  };
4035
+ export type StateReferenceDto = {
4036
+ _id: Scalars['String']['input'];
4037
+ country?: InputMaybe<CountryReferenceDto>;
4038
+ name: Scalars['String']['input'];
4039
+ };
3985
4040
  export type StravaAthleteData = {
3986
4041
  bio?: Maybe<Scalars['String']['output']>;
3987
4042
  city?: Maybe<Scalars['String']['output']>;
@@ -4362,6 +4417,7 @@ export type TransactionQueryDto = {
4362
4417
  sortOrder?: InputMaybe<Scalars['String']['input']>;
4363
4418
  type?: InputMaybe<Scalars['String']['input']>;
4364
4419
  };
4420
+ export type TransactionType = 'DONATION_TO_ATHLETE' | 'UNKNOWN';
4365
4421
  export type UnfollowAthleteInput = {
4366
4422
  athleteId: Scalars['String']['input'];
4367
4423
  };
@@ -4512,8 +4568,6 @@ export type UsageFunnelRow = {
4512
4568
  step: Scalars['String']['output'];
4513
4569
  userCount: Scalars['Int']['output'];
4514
4570
  };
4515
- export type UsageMetric = 'DAU' | 'MAU' | 'WAU';
4516
- export type UsagePlatform = 'ADMIN' | 'MOBILE' | 'WEB';
4517
4571
  export type UsageRetentionRow = {
4518
4572
  cohortSize: Scalars['Int']['output'];
4519
4573
  retainedCount: Scalars['Int']['output'];
@@ -4614,6 +4668,7 @@ export type Video = {
4614
4668
  sourceData: Scalars['String']['output'];
4615
4669
  url: Scalars['String']['output'];
4616
4670
  };
4671
+ export type VideoSource = 'S3_UPLOAD' | 'VIMEO' | 'YOUTUBE';
4617
4672
  export type VisibilityScope = 'FRIENDS' | 'PRIVATE' | 'PUBLIC';
4618
4673
  export type VtxScores = {
4619
4674
  competitionScore: Scalars['Float']['output'];
@@ -13789,6 +13844,7 @@ export type PaginationFieldsFragment = {
13789
13844
  };
13790
13845
  export type CreateOfferMutationVariables = Exact<{
13791
13846
  input: CreateOfferDto;
13847
+ tenantId: Scalars['String']['input'];
13792
13848
  }>;
13793
13849
  export type CreateOfferMutation = {
13794
13850
  createOffer: {
@@ -13798,6 +13854,7 @@ export type CreateOfferMutation = {
13798
13854
  export type UpdateOfferMutationVariables = Exact<{
13799
13855
  id: Scalars['String']['input'];
13800
13856
  input: CreateOfferDto;
13857
+ tenantId: Scalars['String']['input'];
13801
13858
  }>;
13802
13859
  export type UpdateOfferMutation = {
13803
13860
  updateOffer: {
@@ -14552,6 +14609,7 @@ export type GetBrandsPaginatedQuery = {
14552
14609
  };
14553
14610
  export type CreateBrandMutationVariables = Exact<{
14554
14611
  input: CreateBrandDto;
14612
+ tenantId: Scalars['String']['input'];
14555
14613
  }>;
14556
14614
  export type CreateBrandMutation = {
14557
14615
  createBrand: {
@@ -14561,6 +14619,7 @@ export type CreateBrandMutation = {
14561
14619
  export type UpdateBrandMutationVariables = Exact<{
14562
14620
  id: Scalars['String']['input'];
14563
14621
  input: CreateBrandDto;
14622
+ tenantId: Scalars['String']['input'];
14564
14623
  }>;
14565
14624
  export type UpdateBrandMutation = {
14566
14625
  updateBrand: {
@@ -5528,15 +5528,15 @@ exports.UpdateNotificationPreferencesDocument = (0, graphql_tag_1.default) `
5528
5528
  }
5529
5529
  `;
5530
5530
  exports.CreateOfferDocument = (0, graphql_tag_1.default) `
5531
- mutation CreateOffer($input: CreateOfferDto!) {
5532
- createOffer(input: $input) {
5531
+ mutation CreateOffer($input: CreateOfferDto!, $tenantId: String!) {
5532
+ createOffer(input: $input, tenantId: $tenantId) {
5533
5533
  _id
5534
5534
  }
5535
5535
  }
5536
5536
  `;
5537
5537
  exports.UpdateOfferDocument = (0, graphql_tag_1.default) `
5538
- mutation UpdateOffer($id: String!, $input: CreateOfferDto!) {
5539
- updateOffer(id: $id, input: $input) {
5538
+ mutation UpdateOffer($id: String!, $input: CreateOfferDto!, $tenantId: String!) {
5539
+ updateOffer(id: $id, input: $input, tenantId: $tenantId) {
5540
5540
  _id
5541
5541
  }
5542
5542
  }
@@ -5985,15 +5985,15 @@ exports.GetBrandsPaginatedDocument = (0, graphql_tag_1.default) `
5985
5985
  ${exports.Awss3FileFieldsFragmentDoc}
5986
5986
  ${exports.PaginationInfoFieldsFragmentDoc}`;
5987
5987
  exports.CreateBrandDocument = (0, graphql_tag_1.default) `
5988
- mutation CreateBrand($input: CreateBrandDto!) {
5989
- createBrand(input: $input) {
5988
+ mutation CreateBrand($input: CreateBrandDto!, $tenantId: String!) {
5989
+ createBrand(input: $input, tenantId: $tenantId) {
5990
5990
  _id
5991
5991
  }
5992
5992
  }
5993
5993
  `;
5994
5994
  exports.UpdateBrandDocument = (0, graphql_tag_1.default) `
5995
- mutation UpdateBrand($id: String!, $input: CreateBrandDto!) {
5996
- updateBrand(id: $id, input: $input) {
5995
+ mutation UpdateBrand($id: String!, $input: CreateBrandDto!, $tenantId: String!) {
5996
+ updateBrand(id: $id, input: $input, tenantId: $tenantId) {
5997
5997
  _id
5998
5998
  }
5999
5999
  }