@vertikalx/vtx-backend-client 1.0.0-preprod.2 → 1.0.0-preprod.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-preprod.2",
3
+ "version": "1.0.0-preprod.4",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -1,6 +1,7 @@
1
- import { User, UserToken, UserWithToken, Athlete, RegisterAthleteDto, Brand, CreateBrandDto, BrandGenqlSelection, AWSS3UploadUrl, AWSS3GetUploadDto, CreateTenantInput, Tenant, TenantWithUserLogin, RegisterUserToDomainFromEmailInput, DecodedToken, Sponsorship, SponsorshipGenqlSelection, CreateSponsorshipDto, SponsorAthleteInvitation, InviteAthletesDto, RegisterUserDto, VerificationCode, VerifyCodeDto, FindSponsorAthleteInvitationDto, FindVtxUserDto, City, SportLevel, Sport, UserImages, EditValueResponse, CreateAthleteCompetitionDto, AthleteCompetition, GetSportEventsDto, SportsEvent, CreateSportEventDto, GetAthleteCompetitionsDto, AthleteMembership, AthleteMembershipGenqlSelection, MembershipOrganizationReferenceGenqlSelection, MembershipOrganizationReference, CreateMembershipOrganizationDto, CreateAthleteMembershipDto, DeleteSingleValueDto, DeleteSingleValueResponse, FundRaisingCampaign, CreateFundingCampaignDto, AthleteQueryDto, AthleteQueryResponse } from '../client';
1
+ import { User, AddValuesResponse, UserToken, UserWithToken, Athlete, RegisterAthleteDto, Brand, CreateBrandDto, BrandGenqlSelection, AWSS3UploadUrl, AWSS3GetUploadDto, CreateTenantInput, Tenant, TenantWithUserLogin, RegisterUserToDomainFromEmailInput, DecodedToken, Sponsorship, SponsorshipGenqlSelection, CreateSponsorshipDto, SponsorAthleteInvitation, InviteAthletesDto, RegisterUserDto, VerificationCode, VerifyCodeDto, FindSponsorAthleteInvitationDto, FindVtxUserDto, City, SportLevel, Sport, UserImages, EditValueResponse, CreateAthleteCompetitionDto, AthleteCompetition, GetSportEventsDto, SportsEvent, CreateSportEventDto, GetAthleteCompetitionsDto, AthleteMembership, AthleteMembershipGenqlSelection, MembershipOrganizationReferenceGenqlSelection, MembershipOrganizationReference, CreateMembershipOrganizationDto, CreateAthleteMembershipDto, DeleteSingleValueDto, DeleteSingleValueResponse, FundRaisingCampaign, CreateFundingCampaignDto, FundRaisingCampaignGenqlSelection, AthleteQueryDto, AthleteQueryResponse, StripeSessionGenqlSelection, CreateStripeAccountDto, StripeSession, StripeAccountReferenceGenqlSelection, StripeAccountReference, StripeCheckoutSessionGenqlSelection, StripeCheckoutSession, DonationCheckoutDto, GetDatabaseFileDto, TextDatabaseFileGenqlSelection, TextDatabaseFile, StripeQueryDto, StripeObject, SetFundingStatusDto, EditPictureResponse, UploadAlbumsPicturesDto, EditPictureDto, Album, State, Country, AWSS3DeleteUseTypeKeyDto, AthleteIntegrationReference, AWSS3CallResult, SetCompetitionResultDto, AthleteCompetitionResult, CodeVerificationResponse, resetPasswordDto, DeleteValuesDto } from '../client';
2
2
  import { ITypedBackendResponse } from './backend-response';
3
3
  import { APICallHeaders } from './api-call-headers';
4
+ import { VerificationCodeType } from '@stackbus/common-types';
4
5
  export declare class VTXBaseAPI {
5
6
  protected headers: APICallHeaders;
6
7
  protected backendUrl: string;
@@ -11,6 +12,7 @@ export declare class VTXBaseAPI {
11
12
  error: (str: string) => void;
12
13
  };
13
14
  constructor(headers?: APICallHeaders, backendUrl?: string);
15
+ getHeaders(): APICallHeaders;
14
16
  setHeader(key: string, value: string): void;
15
17
  static getDefaultBackendUrl(): string;
16
18
  static getVersion(): string;
@@ -42,6 +44,8 @@ export declare class VTXBaseAPI {
42
44
  findCityById(cityId: string): Promise<ITypedBackendResponse<City>>;
43
45
  getSportLevels(): Promise<ITypedBackendResponse<SportLevel[]>>;
44
46
  getSports(): Promise<ITypedBackendResponse<Sport[]>>;
47
+ getStates(): Promise<ITypedBackendResponse<State[]>>;
48
+ getCountries(): Promise<ITypedBackendResponse<Country[]>>;
45
49
  loginUserFromCredentialsVtx(username: string, password: string): Promise<ITypedBackendResponse<UserWithToken>>;
46
50
  validateUserCredentialsVtx(username: string, password: string): Promise<ITypedBackendResponse<User>>;
47
51
  findAthleteForUser(loginEmail: string): Promise<ITypedBackendResponse<Athlete>>;
@@ -63,5 +67,36 @@ export declare class VTXBaseAPI {
63
67
  createMembershipOrganization(dto: CreateMembershipOrganizationDto, desiredFields?: MembershipOrganizationReferenceGenqlSelection): Promise<ITypedBackendResponse<MembershipOrganizationReference>>;
64
68
  getMembershipOrganizations(): Promise<ITypedBackendResponse<MembershipOrganizationReference[]>>;
65
69
  createAthleteMembershipAffilation(dto: CreateAthleteMembershipDto, desiredFields?: AthleteMembershipGenqlSelection): Promise<ITypedBackendResponse<AthleteMembership>>;
70
+ deleteMembershipAffiliation(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
66
71
  queryAthleteFundingCampaigns(dto: AthleteQueryDto): Promise<ITypedBackendResponse<AthleteQueryResponse>>;
72
+ createStripeAccount(dto: CreateStripeAccountDto, desiredFields?: StripeAccountReferenceGenqlSelection): Promise<ITypedBackendResponse<StripeAccountReference>>;
73
+ createAthleteStripeSession(desiredFields?: StripeSessionGenqlSelection): Promise<ITypedBackendResponse<StripeSession>>;
74
+ createStripeCheckoutSession(dto: DonationCheckoutDto, desiredFields?: StripeCheckoutSessionGenqlSelection): Promise<ITypedBackendResponse<StripeCheckoutSession>>;
75
+ getDatabaseTextFile(dto: GetDatabaseFileDto, desiredFields?: TextDatabaseFileGenqlSelection): Promise<ITypedBackendResponse<TextDatabaseFile>>;
76
+ stripeQuery(dto: StripeQueryDto): Promise<ITypedBackendResponse<StripeObject>>;
77
+ setFundingStatus(dto: SetFundingStatusDto, desiredFields?: FundRaisingCampaignGenqlSelection): Promise<ITypedBackendResponse<FundRaisingCampaign>>;
78
+ findAthleteForIdPublic(id: string): Promise<ITypedBackendResponse<Athlete>>;
79
+ editPicture(newPicDto: EditPictureDto): Promise<ITypedBackendResponse<EditPictureResponse>>;
80
+ addAlbumsPictures(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<AddValuesResponse>>;
81
+ editAlbumsPictures(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<Album>>;
82
+ createAthleteAlbum(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<Album>>;
83
+ deleteAthleteAlbum(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
84
+ getAthleteAlbums(): Promise<ITypedBackendResponse<Album[]>>;
85
+ getPublicAthleteAlbums(athleteId: string): Promise<ITypedBackendResponse<Album[]>>;
86
+ getAthleteAlbumsById(albumId: string): Promise<ITypedBackendResponse<Album>>;
87
+ getAndSetAlbumById(albumId: string): Promise<ITypedBackendResponse<Album>>;
88
+ queryAthletesWithFilters(dto: AthleteQueryDto): Promise<ITypedBackendResponse<AthleteQueryResponse>>;
89
+ getAthleteIntegrationsByAthlete(): Promise<ITypedBackendResponse<AthleteIntegrationReference>>;
90
+ getAthleteStravaIntegration(): Promise<ITypedBackendResponse<AthleteIntegrationReference>>;
91
+ getAthleteInstagramIntegration(): Promise<ITypedBackendResponse<AthleteIntegrationReference>>;
92
+ getAthleteIntegrations(): Promise<ITypedBackendResponse<AthleteIntegrationReference>>;
93
+ updateAthleteIntegration(type: string): Promise<ITypedBackendResponse<boolean>>;
94
+ deleteUploadedTypeKeyFile(dto: AWSS3DeleteUseTypeKeyDto): Promise<ITypedBackendResponse<AWSS3CallResult>>;
95
+ saveAthleteCompetitionResult(dto: SetCompetitionResultDto): Promise<ITypedBackendResponse<AthleteCompetitionResult>>;
96
+ updateAthleteTpiScore(): Promise<ITypedBackendResponse<Athlete>>;
97
+ createResetPasswordCode(email: string): Promise<ITypedBackendResponse<EditValueResponse>>;
98
+ getResetVerificationCode(id: string): Promise<ITypedBackendResponse<VerificationCodeType>>;
99
+ verifyCode(input: VerifyCodeDto): Promise<ITypedBackendResponse<CodeVerificationResponse>>;
100
+ resetUserPassword(input: resetPasswordDto): Promise<ITypedBackendResponse<EditValueResponse>>;
101
+ deleteAlbumFotos(dto: DeleteValuesDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
67
102
  }