UNPKG

@vertikalx/vtx-backend-client

Version:

GraphQL API generated client for VTX

1,649 lines (1,503 loc) • 166 kB
// @ts-nocheck /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ export type Scalars = { String: string, Boolean: boolean, DateTime: any, Float: number, ID: string, JSONObject: any, } export interface User { _id: Scalars['String'] loginEmail: Scalars['String'] suspended: Scalars['Boolean'] domains: (DomainCredential[] | null) loginMethods: (Scalars['String'][] | null) __typename: 'User' } export interface UserWithToken { _id: Scalars['String'] loginEmail: Scalars['String'] suspended: Scalars['Boolean'] domains: (DomainCredential[] | null) loginMethods: (Scalars['String'][] | null) token: UserToken __typename: 'UserWithToken' } export interface BaseTenant { _id: Scalars['String'] name: Scalars['String'] tenant_uri: Scalars['String'] domain: Domain __typename: 'BaseTenant' } export interface Tenant { _id: Scalars['String'] name: Scalars['String'] tenant_uri: Scalars['String'] domain: Domain email: Scalars['String'] owner: (User | null) __typename: 'Tenant' } export interface Domain { _id: Scalars['String'] name: Scalars['String'] description: (Scalars['String'] | null) __typename: 'Domain' } export interface DomainCredential { _id: Scalars['String'] name: Scalars['String'] description: (Scalars['String'] | null) tenant: (BaseTenant | null) __typename: 'DomainCredential' } export interface UserToken { actualToken: Scalars['String'] refreshToken: Scalars['String'] __typename: 'UserToken' } export interface DecodedToken { tokenId: Scalars['String'] systemId: Scalars['String'] userId: Scalars['String'] email: Scalars['String'] refreshTokenId: Scalars['String'] domains: DomainCredential[] __typename: 'DecodedToken' } export interface DecodedRefreshToken { userId: Scalars['String'] email: Scalars['String'] originalTokenId: Scalars['String'] __typename: 'DecodedRefreshToken' } export interface TenantWithUserLogin { _id: Scalars['String'] name: Scalars['String'] tenant_uri: Scalars['String'] domain: Domain email: Scalars['String'] owner: (User | null) user: UserWithToken __typename: 'TenantWithUserLogin' } export interface UriAvailableType { available: Scalars['Boolean'] valid: Scalars['Boolean'] __typename: 'UriAvailableType' } export interface Agreement { _id: Scalars['String'] kind: Scalars['String'] domain: Scalars['String'] isActiveAgreement: Scalars['Boolean'] encoding: Scalars['String'] version: Scalars['String'] publishedDate: (Scalars['DateTime'] | null) unPublishedDate: (Scalars['DateTime'] | null) locked: Scalars['Boolean'] name: Scalars['String'] description: (Scalars['String'] | null) content: (Scalars['String'] | null) httpContentType: (Scalars['String'] | null) createdDate: Scalars['DateTime'] updatedDate: Scalars['DateTime'] __typename: 'Agreement' } export interface SignedAgreement { _id: Scalars['String'] agreement: Agreement createdDate: Scalars['DateTime'] signerReference: (Scalars['String'] | null) json: (Scalars['String'] | null) signedDate: Scalars['DateTime'] ipAddress: (Scalars['String'] | null) userAgent: (Scalars['String'] | null) signedFromLocation: (Scalars['String'] | null) comments: (Scalars['String'] | null) updatedDate: Scalars['DateTime'] __typename: 'SignedAgreement' } export interface BillEntity { name: Scalars['String'] taxId: (Scalars['String'] | null) line1: (Scalars['String'] | null) line2: (Scalars['String'] | null) line3: (Scalars['String'] | null) city: (Scalars['String'] | null) state: (Scalars['String'] | null) country: (Scalars['String'] | null) zip: (Scalars['String'] | null) __typename: 'BillEntity' } export interface InvoiceItem { _id: Scalars['String'] unitPrice: Scalars['Float'] unitTax: Scalars['Float'] quantity: Scalars['Float'] unit: Scalars['String'] itemPrice: Scalars['Float'] itemTotal: Scalars['Float'] __typename: 'InvoiceItem' } export interface Payment { _id: Scalars['String'] amount: Scalars['Float'] currency: Scalars['String'] datePaid: Scalars['DateTime'] paymentComment: (Scalars['String'] | null) transactionId: (Scalars['String'] | null) processorType: (Scalars['String'] | null) processorReference: (Scalars['String'] | null) paidItemReference: (Scalars['String'] | null) payeeReference: (Scalars['String'] | null) payorReference: (Scalars['String'] | null) paymentMethodType: (Scalars['String'] | null) paymentMethodReference: (Scalars['String'] | null) __typename: 'Payment' } export interface PlaFeature { _id: Scalars['String'] title: Scalars['String'] description: (Scalars['String'] | null) quantity: (Scalars['Float'] | null) quantityUnit: (Scalars['String'] | null) __typename: 'PlaFeature' } export interface Plan { _id: Scalars['String'] name: (Scalars['String'] | null) description: (Scalars['String'] | null) prices: PlanPrice[] features: PlaFeature[] isPublic: Scalars['Boolean'] active: Scalars['Boolean'] startOfferingDate: (Scalars['DateTime'] | null) endOfferingDate: (Scalars['DateTime'] | null) termsAndConditions: (Scalars['String'] | null) __typename: 'Plan' } export interface PlanPrice { _id: Scalars['String'] currency: Scalars['String'] price: Scalars['Float'] taxMode: Scalars['String'] period: Scalars['String'] customDays: (Scalars['Float'] | null) plan: (Plan | null) __typename: 'PlanPrice' } export interface Invoice { _id: Scalars['String'] invoiceDate: Scalars['DateTime'] billedEntity: BillEntity dueDate: Scalars['DateTime'] billAmount: Scalars['Float'] tax: Scalars['Float'] total: Scalars['Float'] currency: Scalars['String'] items: (InvoiceItem[] | null) payments: (Payment[] | null) __typename: 'Invoice' } export interface SubscriptionInvoice { _id: Scalars['String'] invoice: Invoice billedPlan: PlanPrice subscriber: PlanSubscription __typename: 'SubscriptionInvoice' } export interface PlanSubscription { _id: Scalars['String'] currentPlan: PlanPrice billPrice: Scalars['Float'] billCurrency: Scalars['String'] billPriceComment: (Scalars['String'] | null) lastBillDate: Scalars['DateTime'] endAccessDate: Scalars['DateTime'] autoRenew: Scalars['Boolean'] autoRenewPlan: (PlanPrice | null) autoRenewDate: Scalars['DateTime'] payments: SubscriptionPayment[] invoices: SubscriptionInvoice[] __typename: 'PlanSubscription' } export interface SubscriptionPayment { _id: Scalars['String'] payment: Payment subscriber: PlanSubscription __typename: 'SubscriptionPayment' } export interface AWSS3File { _id: Scalars['String'] name: (Scalars['String'] | null) contentType: (Scalars['String'] | null) size: (Scalars['Float'] | null) useType: (Scalars['String'] | null) url: Scalars['String'] key: Scalars['String'] pendingDelete: Scalars['Boolean'] __typename: 'AWSS3File' } export interface MagicLink { _id: Scalars['String'] code: Scalars['String'] type: Scalars['String'] url: Scalars['String'] expires: (Scalars['DateTime'] | null) data: (Scalars['String'] | null) isExpired: Scalars['Boolean'] __typename: 'MagicLink' } export interface VerificationCode { _id: Scalars['String'] type: (Scalars['String'] | null) recipient: (Scalars['String'] | null) expires: (Scalars['DateTime'] | null) data: (Scalars['String'] | null) isExpired: Scalars['Boolean'] createdDate: Scalars['DateTime'] __typename: 'VerificationCode' } export interface ErrorInfo { errorCode: Scalars['Float'] errorMessage: Scalars['String'] __typename: 'ErrorInfo' } export interface HttpRequestField { key: Scalars['String'] value: Scalars['String'] __typename: 'HttpRequestField' } export interface AWSS3UploadUrl { uploadUrl: Scalars['String'] fields: HttpRequestField[] downloadUrl: Scalars['String'] bucket: Scalars['String'] key: Scalars['String'] __typename: 'AWSS3UploadUrl' } export interface AWSS3CallResult { httpStatus: Scalars['Float'] result: Scalars['String'] message: Scalars['String'] errors: (Scalars['String'][] | null) __typename: 'AWSS3CallResult' } export interface DatabaseFile { _id: Scalars['String'] identifier: Scalars['String'] version: Scalars['String'] contentType: Scalars['String'] updated: Scalars['DateTime'] created: Scalars['DateTime'] __typename: 'DatabaseFile' } export interface TextDatabaseFile { _id: Scalars['String'] identifier: Scalars['String'] version: Scalars['String'] contentType: Scalars['String'] updated: Scalars['DateTime'] created: Scalars['DateTime'] content: Scalars['String'] __typename: 'TextDatabaseFile' } export interface CodeVerificationResponse { result: Scalars['String'] code: (VerificationCode | null) error: (ErrorInfo | null) __typename: 'CodeVerificationResponse' } export interface BrandStats { campaigns: (Scalars['Float'] | null) sponsorships: (Scalars['Float'] | null) sports: (Scalars['Float'] | null) athletes: (Scalars['Float'] | null) __typename: 'BrandStats' } export interface BrandTranslation { _id: Scalars['String'] brandId: Scalars['String'] language: Scalars['String'] name: (Scalars['String'] | null) slogan: (Scalars['String'] | null) description: (Scalars['String'] | null) logo: (AWSS3File | null) banner: (AWSS3File | null) __typename: 'BrandTranslation' } export interface Brand { _id: Scalars['String'] name: Scalars['String'] slogan: (Scalars['String'] | null) website: (Scalars['String'] | null) description: (Scalars['String'] | null) approved: Scalars['Boolean'] published: Scalars['Boolean'] logo: (AWSS3File | null) banner: (AWSS3File | null) stats: (BrandStats | null) operatorIds: (Scalars['String'][] | null) translations: (BrandTranslation[] | null) __typename: 'Brand' } export interface StravaTpiRideDto { distanceKm: Scalars['Float'] distanceKmLast: Scalars['Float'] elapsedTimeMin: Scalars['Float'] elapsedTimeMinLast: Scalars['Float'] averageSpeedKmh: Scalars['Float'] averageSpeedKmhLast: Scalars['Float'] maxSpeedKmh: Scalars['Float'] maxSpeedKmhLast: Scalars['Float'] averageHeartRateBpm: Scalars['Float'] averageHeartRateBpmLast: Scalars['Float'] maxHeartRateBpm: Scalars['Float'] maxHeartRateBpmLast: Scalars['Float'] averageCadenceStm: Scalars['Float'] averageCadenceStmLast: Scalars['Float'] lastDate: (Scalars['DateTime'] | null) country: (Scalars['String'] | null) state: (Scalars['String'] | null) city: (Scalars['String'] | null) tpi: Scalars['Float'] __typename: 'StravaTpiRideDto' } export interface StravaTpiRunDto { distanceKm: Scalars['Float'] distanceKmLast: Scalars['Float'] elapsedTimeMin: Scalars['Float'] elapsedTimeMinLast: Scalars['Float'] averageSpeedKmh: Scalars['Float'] averageSpeedKmhLast: Scalars['Float'] maxSpeedKmh: Scalars['Float'] maxSpeedKmhLast: Scalars['Float'] averageHeartRateBpm: Scalars['Float'] averageHeartRateBpmLast: Scalars['Float'] maxHeartRateBpm: Scalars['Float'] maxHeartRateBpmLast: Scalars['Float'] averageCadenceStm: Scalars['Float'] averageCadenceStmLast: Scalars['Float'] elevHigh: Scalars['Float'] elevHighLast: Scalars['Float'] elevLow: Scalars['Float'] elevLowLast: Scalars['Float'] lastDate: (Scalars['DateTime'] | null) country: (Scalars['String'] | null) state: (Scalars['String'] | null) city: (Scalars['String'] | null) tpi: Scalars['Float'] __typename: 'StravaTpiRunDto' } export interface StravaTpiSwimDto { distanceKm: Scalars['Float'] distanceKmLast: Scalars['Float'] elapsedTimeMin: Scalars['Float'] elapsedTimeMinLast: Scalars['Float'] averageSpeedKmh: Scalars['Float'] averageSpeedKmhLast: Scalars['Float'] maxSpeedKmh: Scalars['Float'] maxSpeedKmhLast: Scalars['Float'] averageHeartRateBpm: Scalars['Float'] averageHeartRateBpmLast: Scalars['Float'] maxHeartRateBpm: Scalars['Float'] maxHeartRateBpmLast: Scalars['Float'] averageCadenceStm: Scalars['Float'] averageCadenceStmLast: Scalars['Float'] lastDate: (Scalars['DateTime'] | null) country: (Scalars['String'] | null) state: (Scalars['String'] | null) city: (Scalars['String'] | null) tpi: Scalars['Float'] __typename: 'StravaTpiSwimDto' } export interface City { _id: Scalars['String'] name: Scalars['String'] localizedName: Scalars['String'] state: (State | null) latitude: (Scalars['Float'] | null) longitude: (Scalars['Float'] | null) timezone: (Scalars['String'] | null) __typename: 'City' } export interface State { _id: Scalars['String'] name: Scalars['String'] country: (Country | null) cities: (City[] | null) __typename: 'State' } export interface Country { _id: Scalars['String'] name: Scalars['String'] states: (State[] | null) __typename: 'Country' } export interface AgeQualification { type: Scalars['String'] value: Scalars['Float'] operator: Scalars['String'] __typename: 'AgeQualification' } export interface GenderQualification { type: Scalars['String'] operator: Scalars['String'] values: Scalars['String'][] __typename: 'GenderQualification' } export interface ScoreQualification { type: Scalars['String'] scoreType: Scalars['String'] operator: Scalars['String'] value: Scalars['Float'] __typename: 'ScoreQualification' } export interface LocationQualification { type: Scalars['String'] operator: Scalars['String'] countries: Country[] states: State[] cities: City[] __typename: 'LocationQualification' } export interface NationalityQualification { type: Scalars['String'] operator: Scalars['String'] countries: Country[] __typename: 'NationalityQualification' } export interface DistanceQualification { type: Scalars['String'] maxDistance: Scalars['Float'] latitude: (Scalars['Float'] | null) longitude: (Scalars['Float'] | null) cityId: (Scalars['String'] | null) __typename: 'DistanceQualification' } export interface SportsQualification { type: Scalars['String'] sports: Scalars['String'][] operator: Scalars['String'] __typename: 'SportsQualification' } export interface SportsLevelQualification { type: Scalars['String'] operator: Scalars['String'] level: Scalars['String'] __typename: 'SportsLevelQualification' } export interface AthleteCriteria { _id: Scalars['String'] label: (Scalars['String'] | null) qualifications: (QualificationTypeUnion[] | null) __typename: 'AthleteCriteria' } export type QualificationTypeUnion = (AgeQualification | GenderQualification | ScoreQualification | LocationQualification | NationalityQualification | DistanceQualification | SportsQualification | SportsLevelQualification) & { __isUnion?: true } export interface Industry { _id: Scalars['String'] name: Scalars['String'] __typename: 'Industry' } export interface SponsorStats { sponsoredAthletes: Scalars['Float'] totalBrands: Scalars['Float'] activeCampaigns: Scalars['Float'] activeSponsorships: Scalars['Float'] __typename: 'SponsorStats' } export interface SponsorBrand { _id: Scalars['String'] name: Scalars['String'] slogan: (Scalars['String'] | null) website: (Scalars['String'] | null) description: (Scalars['String'] | null) approved: Scalars['Boolean'] published: Scalars['Boolean'] logo: (AWSS3File | null) banner: (AWSS3File | null) stats: (BrandStats | null) operatorIds: (Scalars['String'][] | null) translations: (BrandTranslation[] | null) sponsorBrandId: Scalars['String'] authorizedUse: Scalars['Boolean'] isAuthorizer: Scalars['Boolean'] __typename: 'SponsorBrand' } export interface Sponsor { _id: Scalars['String'] name: Scalars['String'] description: Scalars['String'] tenant: Tenant industry: (Industry | null) stats: (SponsorStats | null) brands: (SponsorBrand[] | null) sponsorships: (Sponsorship[] | null) approved: Scalars['Boolean'] __typename: 'Sponsor' } export interface SponsorshipItem { _id: Scalars['String'] quantity: Scalars['Float'] title: Scalars['String'] value: Scalars['Float'] type: Scalars['String'] __typename: 'SponsorshipItem' } export interface SponsorshipCommitment { _id: Scalars['String'] title: Scalars['String'] details: (Scalars['String'] | null) hashTags: Scalars['String'] media: Scalars['String'] actionType: Scalars['String'] frequency: (Scalars['Float'] | null) periodicity: Scalars['String'] autoMeasurable: Scalars['Boolean'] __typename: 'SponsorshipCommitment' } export interface Duration { length: Scalars['Float'] unit: Scalars['String'] __typename: 'Duration' } export interface SponsorshipStats { totalSponsorships: (Scalars['Float'] | null) totalApplications: (Scalars['Float'] | null) newApplications: (Scalars['Float'] | null) discardedApplications: (Scalars['Float'] | null) selectedApplications: (Scalars['Float'] | null) approvedApplications: (Scalars['Float'] | null) grantedSponsorships: (Scalars['Float'] | null) remainingSponsorships: (Scalars['Float'] | null) __typename: 'SponsorshipStats' } export interface SponsorshipTranslation { _id: Scalars['String'] sponsorshipId: Scalars['String'] language: Scalars['String'] title: (Scalars['String'] | null) description: (Scalars['String'] | null) terms: (Scalars['String'] | null) banner: (AWSS3File | null) __typename: 'SponsorshipTranslation' } export interface Sponsorship { _id: Scalars['String'] title: Scalars['String'] description: (Scalars['String'] | null) cashValue: Scalars['Float'] otherValue: Scalars['Float'] brand: (Brand | null) banner: (AWSS3File | null) criteria: (AthleteCriteria | null) deadline: (Scalars['DateTime'] | null) startDate: (Scalars['DateTime'] | null) duration: Duration sponsor: (Sponsor | null) sponsorshipItems: (SponsorshipItem[] | null) commitments: (SponsorshipCommitment[] | null) terms: (Scalars['String'] | null) stats: (SponsorshipStats | null) isPrivate: Scalars['Boolean'] approved: Scalars['Boolean'] published: Scalars['Boolean'] translations: (SponsorshipTranslation[] | null) __typename: 'Sponsorship' } export interface FollowStats { followers: Scalars['Float'] followed: Scalars['Float'] raves: Scalars['Float'] favorites: Scalars['Float'] __typename: 'FollowStats' } export interface Sport { _id: Scalars['String'] name: Scalars['String'] resultType: Scalars['String'] __typename: 'Sport' } export interface VtxScores { vtxScore: Scalars['Float'] socialScore: Scalars['Float'] trainingScore: Scalars['Float'] competitionScore: Scalars['Float'] __typename: 'VtxScores' } export interface SportLevelTranslation { _id: Scalars['String'] language: Scalars['String'] label: Scalars['String'] __typename: 'SportLevelTranslation' } export interface SportLevel { _id: Scalars['String'] label: Scalars['String'] index: Scalars['Float'] translations: (SportLevelTranslation[] | null) __typename: 'SportLevel' } export interface Ranking { scope: Scalars['String'] scopeId: Scalars['String'] scopeName: Scalars['String'] position: Scalars['Float'] total: Scalars['Float'] __typename: 'Ranking' } export interface AthleteRankings { worldRanking: (Ranking | null) countryRanking: (Ranking | null) stateRanking: (Ranking | null) cityRanking: (Ranking | null) __typename: 'AthleteRankings' } export interface Team { _id: Scalars['String'] name: Scalars['String'] description: (Scalars['String'] | null) sports: (Sport[] | null) approved: (Scalars['Boolean'] | null) logo: (AWSS3File | null) banner: (AWSS3File | null) __typename: 'Team' } export interface WorldLocation { _id: Scalars['String'] userProvidedLatitude: (Scalars['Float'] | null) userProvidedLongitude: (Scalars['Float'] | null) cityNameGeocode: (Scalars['String'] | null) stateNameGeocode: (Scalars['String'] | null) countryIso2CodeGeocode: (Scalars['String'] | null) timeZoneGeocode: (Scalars['String'] | null) latitudeGeocode: (Scalars['Float'] | null) longitudeGeocode: (Scalars['Float'] | null) city: (City | null) __typename: 'WorldLocation' } export interface SportsEvent { _id: Scalars['String'] name: Scalars['String'] mainSport: (Sport | null) eventWebSite: (Scalars['String'] | null) startDate: Scalars['DateTime'] endDate: (Scalars['DateTime'] | null) verified: Scalars['Boolean'] banner: (AWSS3File | null) location: (WorldLocation | null) eventLevel: (Scalars['String'] | null) __typename: 'SportsEvent' } export interface AthleteCompetitionResult { _id: Scalars['String'] resultType: Scalars['String'] position: (Scalars['Float'] | null) totalParticipants: (Scalars['Float'] | null) score: (Scalars['String'] | null) finishTimeMS: (Scalars['Float'] | null) resultWebLink: (Scalars['String'] | null) outcome: (Scalars['String'] | null) adversary: (Scalars['String'] | null) genderPosition: (Scalars['Float'] | null) genderParticipants: (Scalars['Float'] | null) categoryPosition: (Scalars['Float'] | null) categoryParticipants: (Scalars['Float'] | null) categoryName: (Scalars['String'] | null) __typename: 'AthleteCompetitionResult' } export interface BudgetItem { _id: Scalars['String'] quantity: Scalars['Float'] concept: Scalars['String'] itemCost: Scalars['Float'] __typename: 'BudgetItem' } export interface Budget { _id: Scalars['String'] initialFunds: Scalars['Float'] totalRequired: Scalars['Float'] items: (BudgetItem[] | null) __typename: 'Budget' } export interface AthleteCompetition { _id: Scalars['String'] event: SportsEvent participationDate: (Scalars['DateTime'] | null) competitionNumber: (Scalars['String'] | null) result: (AthleteCompetitionResult | null) fundRaisingCampaignIds: (Scalars['String'][] | null) budget: (Budget | null) __typename: 'AthleteCompetition' } export interface MembershipOrganizationReference { _id: Scalars['String'] shortName: (Scalars['String'] | null) acronym: (Scalars['String'] | null) fullName: Scalars['String'] website: (Scalars['String'] | null) verified: Scalars['Boolean'] logo: (AWSS3File | null) country: (Country | null) sport: (Sport | null) __typename: 'MembershipOrganizationReference' } export interface MembershipOrganization { _id: Scalars['String'] shortName: (Scalars['String'] | null) acronym: (Scalars['String'] | null) fullName: Scalars['String'] website: (Scalars['String'] | null) verified: Scalars['Boolean'] logo: (AWSS3File | null) country: (Country | null) sport: (Sport | null) memberships: (AthleteMembership[] | null) __typename: 'MembershipOrganization' } export interface AthleteMembership { _id: Scalars['String'] organization: MembershipOrganizationReference athlete: AthleteReference membershipNumber: (Scalars['String'] | null) membershipType: (Scalars['String'] | null) issueDate: (Scalars['DateTime'] | null) expirationDate: (Scalars['DateTime'] | null) __typename: 'AthleteMembership' } export interface NewsLink { _id: Scalars['String'] title: Scalars['String'] url: Scalars['String'] abstract: (Scalars['String'] | null) __typename: 'NewsLink' } export interface Channel { _id: Scalars['String'] type: Scalars['String'] handle: (Scalars['String'] | null) url: Scalars['String'] linked: Scalars['Boolean'] __typename: 'Channel' } export interface PhotoAlbum { _id: Scalars['String'] photo: (AWSS3File | null) __typename: 'PhotoAlbum' } export interface Album { _id: Scalars['String'] label: Scalars['String'] description: (Scalars['String'] | null) photos: (PhotoAlbum[] | null) __typename: 'Album' } export interface AthletePreferences { _id: Scalars['String'] showProfileHelper: Scalars['Boolean'] defaultAlbum: (Album | null) __typename: 'AthletePreferences' } export interface FundRaisingCampaign { _id: Scalars['String'] athlete: AthleteReference budgetMode: Scalars['String'] status: Scalars['String'] title: Scalars['String'] motivation: (Scalars['String'] | null) website: (Scalars['String'] | null) fundsRequired: Scalars['Float'] initialFundsObtained: Scalars['Float'] fundsObtained: Scalars['Float'] location: (WorldLocation | null) endingDate: Scalars['DateTime'] budget: (Budget | null) competitions: (AthleteCompetition[] | null) vtxComissionPct: Scalars['Float'] __typename: 'FundRaisingCampaign' } export interface StripeCapabilityType { acss_debit_payments: (Scalars['String'] | null) affirm_payments: (Scalars['String'] | null) afterpay_clearpay_payments: (Scalars['String'] | null) alma_payments: (Scalars['String'] | null) amazon_pay_payments: (Scalars['String'] | null) au_becs_debit_payments: (Scalars['String'] | null) bacs_debit_payments: (Scalars['String'] | null) bancontact_payments: (Scalars['String'] | null) bank_transfer_payments: (Scalars['String'] | null) blik_payments: (Scalars['String'] | null) boleto_payments: (Scalars['String'] | null) card_issuing: (Scalars['String'] | null) card_payments: (Scalars['String'] | null) cartes_bancaires_payments: (Scalars['String'] | null) cashapp_payments: (Scalars['String'] | null) eps_payments: (Scalars['String'] | null) fpx_payments: (Scalars['String'] | null) gb_bank_transfer_payments: (Scalars['String'] | null) giropay_payments: (Scalars['String'] | null) grabpay_payments: (Scalars['String'] | null) ideal_payments: (Scalars['String'] | null) india_international_payments: (Scalars['String'] | null) jcb_payments: (Scalars['String'] | null) jp_bank_transfer_payments: (Scalars['String'] | null) kakao_pay_payments: (Scalars['String'] | null) klarna_payments: (Scalars['String'] | null) konbini_payments: (Scalars['String'] | null) kr_card_payments: (Scalars['String'] | null) legacy_payments: (Scalars['String'] | null) link_payments: (Scalars['String'] | null) mobilepay_payments: (Scalars['String'] | null) multibanco_payments: (Scalars['String'] | null) mx_bank_transfer_payments: (Scalars['String'] | null) naver_pay_payments: (Scalars['String'] | null) oxxo_payments: (Scalars['String'] | null) p24_payments: (Scalars['String'] | null) pay_by_bank_payments: (Scalars['String'] | null) payco_payments: (Scalars['String'] | null) paynow_payments: (Scalars['String'] | null) promptpay_payments: (Scalars['String'] | null) revolut_pay_payments: (Scalars['String'] | null) samsung_pay_payments: (Scalars['String'] | null) sepa_bank_transfer_payments: (Scalars['String'] | null) sepa_debit_payments: (Scalars['String'] | null) sofort_payments: (Scalars['String'] | null) swish_payments: (Scalars['String'] | null) tax_reporting_us_1099_k: (Scalars['String'] | null) tax_reporting_us_1099_misc: (Scalars['String'] | null) transfers: (Scalars['String'] | null) treasury: (Scalars['String'] | null) twint_payments: (Scalars['String'] | null) us_bank_account_ach_payments: (Scalars['String'] | null) us_bank_transfer_payments: (Scalars['String'] | null) zip_payments: (Scalars['String'] | null) __typename: 'StripeCapabilityType' } export interface StripeRequirementAlternativeType { alternative_fields_due: Scalars['String'][] original_fields_due: Scalars['String'][] __typename: 'StripeRequirementAlternativeType' } export interface StripeFutureRequirementAlternativeType { alternative_fields_due: Scalars['String'][] original_fields_due: Scalars['String'][] __typename: 'StripeFutureRequirementAlternativeType' } export interface StripeErrorType { code: Scalars['String'] reason: Scalars['String'] requirement: Scalars['String'] __typename: 'StripeErrorType' } export interface StripeRequirementType { alternatives: (StripeRequirementAlternativeType[] | null) current_deadline: (Scalars['DateTime'] | null) currently_due: (Scalars['String'][] | null) disabled_reason: (Scalars['String'] | null) errors: (StripeErrorType[] | null) eventually_due: (Scalars['String'][] | null) past_due: (Scalars['String'][] | null) pending_verification: (Scalars['String'][] | null) __typename: 'StripeRequirementType' } export interface StripeFutureRequirementType { alternatives: (StripeFutureRequirementAlternativeType[] | null) current_deadline: (Scalars['DateTime'] | null) currently_due: (Scalars['String'][] | null) disabled_reason: (Scalars['String'] | null) errors: (StripeErrorType[] | null) eventually_due: (Scalars['String'][] | null) past_due: (Scalars['String'][] | null) pending_verification: (Scalars['String'][] | null) __typename: 'StripeFutureRequirementType' } export interface StripeAccount { id: Scalars['String'] object: Scalars['String'] business_type: (Scalars['String'] | null) country: Scalars['String'] email: (Scalars['String'] | null) capabilities: (StripeCapabilityType | null) requirements: (StripeRequirementType | null) future_requirements: (StripeFutureRequirementType | null) type: Scalars['String'] charges_enabled: Scalars['Boolean'] payouts_enabled: Scalars['Boolean'] created: (Scalars['DateTime'] | null) default_currency: (Scalars['String'] | null) __typename: 'StripeAccount' } export interface StripeAccountReference { _id: Scalars['String'] stripeAccountId: Scalars['String'] account: (StripeAccount | null) __typename: 'StripeAccountReference' } export interface HistoricalScoreType { _id: Scalars['String'] scoreType: Scalars['String'] score: Scalars['Float'] date: Scalars['DateTime'] athleteId: Scalars['String'] __typename: 'HistoricalScoreType' } export interface AthleteReference { _id: Scalars['String'] firstName: Scalars['String'] lastName: Scalars['String'] screenName: (Scalars['String'] | null) dob: (Scalars['DateTime'] | null) lgbt: (Scalars['Boolean'] | null) competitionGender: (Scalars['String'] | null) country: (Country | null) location: (WorldLocation | null) trainer: (Scalars['String'] | null) trainerUrl: (Scalars['String'] | null) followStats: (FollowStats | null) mainSport: Sport mainSportLevel: SportLevel scores: VtxScores rankings: (AthleteRankings | null) totalUpcomingCompetitions: (Scalars['Float'] | null) totalPastCompetitions: (Scalars['Float'] | null) profilePicture: (AWSS3File | null) cardPicture: (AWSS3File | null) bannerPicture: (AWSS3File | null) aboutMe: (Scalars['String'] | null) preferences: AthletePreferences __typename: 'AthleteReference' } export interface Athlete { _id: Scalars['String'] firstName: Scalars['String'] lastName: Scalars['String'] screenName: (Scalars['String'] | null) dob: (Scalars['DateTime'] | null) lgbt: (Scalars['Boolean'] | null) competitionGender: (Scalars['String'] | null) country: (Country | null) location: (WorldLocation | null) trainer: (Scalars['String'] | null) trainerUrl: (Scalars['String'] | null) followStats: (FollowStats | null) mainSport: Sport mainSportLevel: SportLevel scores: VtxScores rankings: (AthleteRankings | null) totalUpcomingCompetitions: (Scalars['Float'] | null) totalPastCompetitions: (Scalars['Float'] | null) profilePicture: (AWSS3File | null) cardPicture: (AWSS3File | null) bannerPicture: (AWSS3File | null) aboutMe: (Scalars['String'] | null) preferences: AthletePreferences allSports: (Sport[] | null) teams: (Team[] | null) sponsorBrands: (Brand[] | null) competitions: (AthleteCompetition[] | null) affiliations: (AthleteMembership[] | null) newsLinks: (NewsLink[] | null) channels: (Channel[] | null) currentCampaign: (FundRaisingCampaign | null) fundingCampaigns: (FundRaisingCampaign[] | null) stripeAccountReference: (StripeAccountReference | null) albums: (Album[] | null) historicalScores: (HistoricalScoreType[] | null) signedAgreements: (SignedAgreement[] | null) __typename: 'Athlete' } export interface CheckoutSession { _id: Scalars['ID'] type: (Scalars['String'] | null) estimatedStripeComission: (Scalars['Float'] | null) stripeSessionId: Scalars['String'] stripeAccountId: Scalars['String'] donationAmount: Scalars['Float'] fromEmail: (Scalars['String'] | null) confirmed: Scalars['Boolean'] completed: Scalars['Boolean'] completedDate: (Scalars['DateTime'] | null) createdDate: Scalars['DateTime'] __typename: 'CheckoutSession' } export interface FundingCheckoutSessionData { _id: Scalars['ID'] session: (CheckoutSession | null) fromName: (Scalars['String'] | null) paidToAthlete: (Scalars['Float'] | null) paidToVtx: (Scalars['Float'] | null) fundingCampaign: (FundRaisingCampaign | null) mode: DonationMode athleteId: Scalars['String'] athleteName: Scalars['String'] fromPhone: (Scalars['String'] | null) message: (Scalars['String'] | null) __typename: 'FundingCheckoutSessionData' } export interface SponsorAthleteInvitation { _id: Scalars['String'] name: (Scalars['String'] | null) email: Scalars['String'] dateSent: Scalars['DateTime'] sponsor: Sponsor magicLink: MagicLink brand: (Brand | null) status: Scalars['String'] __typename: 'SponsorAthleteInvitation' } export interface StravaToken { token_type: Scalars['String'] expires_at: Scalars['String'] refresh_token: Scalars['String'] access_token: Scalars['String'] __typename: 'StravaToken' } export interface StripeSession { account: Scalars['String'] client_secret: Scalars['String'] expires_at: Scalars['Float'] livemode: Scalars['Boolean'] __typename: 'StripeSession' } export interface StripeCheckoutSession { client_secret: Scalars['String'] expires_at: Scalars['Float'] livemode: Scalars['Boolean'] __typename: 'StripeCheckoutSession' } export interface StravaAthleteData { id: Scalars['Float'] username: (Scalars['String'] | null) firstname: Scalars['String'] lastname: Scalars['String'] bio: (Scalars['String'] | null) city: (Scalars['String'] | null) state: (Scalars['String'] | null) country: (Scalars['String'] | null) sex: (Scalars['String'] | null) premium: Scalars['Boolean'] profile: (Scalars['String'] | null) created_at: (Scalars['String'] | null) updated_at: (Scalars['String'] | null) weight: (Scalars['Float'] | null) __typename: 'StravaAthleteData' } export interface InstagramCursors { before: (Scalars['String'] | null) after: (Scalars['String'] | null) __typename: 'InstagramCursors' } export interface InstagramPaging { cursors: (InstagramCursors | null) next: (Scalars['String'] | null) __typename: 'InstagramPaging' } export interface InstagramMetric { name: Scalars['String'] period: Scalars['String'] values: Scalars['String'] __typename: 'InstagramMetric' } export interface InstagramInsights { data: (InstagramMetric[] | null) __typename: 'InstagramInsights' } export interface InstagramMediaItem { id: Scalars['String'] caption: (Scalars['String'] | null) media_type: Scalars['String'] media_url: (Scalars['String'] | null) permalink: Scalars['String'] thumbnail_url: (Scalars['String'] | null) timestamp: Scalars['String'] username: Scalars['String'] like_count: (Scalars['Float'] | null) comments_count: (Scalars['Float'] | null) insights: (InstagramInsights | null) __typename: 'InstagramMediaItem' } export interface InstagramMediaData { data: (InstagramMediaItem[] | null) paging: (InstagramPaging | null) __typename: 'InstagramMediaData' } export interface InstagramUserData { user_id: Scalars['String'] username: Scalars['String'] name: (Scalars['String'] | null) account_type: (Scalars['String'] | null) followers_count: (Scalars['String'] | null) media_count: (Scalars['Float'] | null) __typename: 'InstagramUserData' } export interface AthleteIntegrationReference { _id: Scalars['String'] athlete: AthleteReference hasStravaIntegration: (Scalars['Boolean'] | null) stravaTokenExpires: (Scalars['DateTime'] | null) stravaAthleteData: (StravaAthleteData | null) hasInstagramIntegration: (Scalars['Boolean'] | null) instagramTokenExpires: (Scalars['DateTime'] | null) instagramUserData: (InstagramUserData | null) instagramMediaData: (InstagramMediaData | null) __typename: 'AthleteIntegrationReference' } export interface Receipt { receiptId: Scalars['String'] campaignName: Scalars['String'] athleteName: (Scalars['String'] | null) donorName: Scalars['String'] amount: Scalars['Float'] currency: Scalars['String'] dateIssued: Scalars['DateTime'] confirmed: Scalars['Boolean'] message: (Scalars['String'] | null) __typename: 'Receipt' } export interface ReceiptUrl { receiptId: Scalars['String'] __typename: 'ReceiptUrl' } export interface EditValueResponse { field: Scalars['String'] oldValue: (Scalars['String'] | null) newValue: (Scalars['String'] | null) changed: Scalars['Boolean'] __typename: 'EditValueResponse' } export interface ErrorType { code: Scalars['Float'] message: Scalars['String'] __typename: 'ErrorType' } export interface DeleteValuesResponse { deleted: Scalars['String'][] failedToDelete: Scalars['String'][] failureReason: ErrorType[] result: Scalars['String'] __typename: 'DeleteValuesResponse' } export interface DeleteSingleValueResponse { idToDelete: Scalars['String'] deleted: Scalars['Boolean'] failureReason: (ErrorType | null) __typename: 'DeleteSingleValueResponse' } export interface SortOrder { sortField: Scalars['String'] order: Scalars['String'] __typename: 'SortOrder' } export interface CursorPaginationResponse { sort: (SortOrder | null) initialCursorId: (Scalars['String'] | null) nextCursorId: (Scalars['String'] | null) initialCursorValue: (Scalars['String'] | null) nextCursorValue: (Scalars['String'] | null) limit: Scalars['Float'] retrieved: Scalars['Float'] isLastPage: Scalars['Boolean'] __typename: 'CursorPaginationResponse' } export interface AthleteQueryResponse { athletes: Athlete[] cursor: CursorPaginationResponse __typename: 'AthleteQueryResponse' } export interface EditPictureResponse { field: Scalars['String'] oldValue: (AWSS3File | null) newValue: (AWSS3File | null) changed: Scalars['Boolean'] __typename: 'EditPictureResponse' } export interface AddValuesResponse { added: Scalars['String'][] failedToAdd: (Scalars['String'][] | null) failureReason: (ErrorType[] | null) result: Scalars['String'] __typename: 'AddValuesResponse' } export interface ExistValueResponse { exist: Scalars['Boolean'] __typename: 'ExistValueResponse' } export interface StripeObject { type: Scalars['String'] json: Scalars['JSONObject'] __typename: 'StripeObject' } export interface UserImages { profilePictureUrl: (Scalars['String'] | null) cardPictureUrl: (Scalars['String'] | null) bannerPictureUrl: (Scalars['String'] | null) __typename: 'UserImages' } export interface StripeTransfer { _id: Scalars['ID'] stripeId: (Scalars['String'] | null) amount: Scalars['Float'] amount_reversed: Scalars['Float'] currency: Scalars['String'] destination: (Scalars['String'] | null) description: (Scalars['String'] | null) reversed: Scalars['Boolean'] livemode: Scalars['Boolean'] transfer_group: (Scalars['String'] | null) status: StripeTransferStatus lastError: (Scalars['String'] | null) json: Scalars['String'] __typename: 'StripeTransfer' } /** Status of the Stripe transfer */ export type StripeTransferStatus = 'not_applicable' | 'pending' | 'failed' | 'completed' /** Mode of donation for the funding checkout session */ export type DonationMode = 'PUBLIC' | 'PRIVATE' | 'ANONYMOUS' export interface Query { findTenantById: Tenant findTenantByEmail: Tenant getTenants: Tenant[] isTenantUriAvailable: UriAvailableType findUserById: User findUserByEmail: User validateUserCredentials: User getUploadUrl: AWSS3UploadUrl industries: Industry[] findIndustryById: Industry brands: Brand[] getBrandByName: Brand getBrandTranslation: BrandTranslation existsValidSponsorForEmail: Sponsor sponsors: Sponsor[] findSponsorAthleteInvitation: SponsorAthleteInvitation getAthletes: Athlete[] queryAthleteFundingCampaigns: AthleteQueryResponse searchAthletes: Athlete[] findAthleteById: Athlete findAthleteForUser: Athlete getRecommendedAthletes: Athlete[] getSponsorAthletesForTenant: Athlete[] getAthleteCompetitions: AthleteCompetition[] getAthleteMemberships: AthleteMembership[] findAthletebyIdpublic: Athlete getAthleteAlbums: Album[] getAndSetAlbumById: Album getAthleteAlbumId: Album queryAthleteWithFilter: AthleteQueryResponse getPublicAthleteAlbums: Album[] screenNameAvailability: ExistValueResponse getAthleteHistoricalScores: HistoricalScoreType[] getMyHistoricalScores: HistoricalScoreType[] getSports: Sport[] findSportById: Sport getSportLevels: SportLevel[] getPublicSponsorships: Sponsorship[] getTenantSponsorships: Sponsorship[] getCountries: Country[] getCountryStates: State[] getStates: State[] getStateCities: City[] findCitiesStartingWith: City[] findCityById: City findVtxUser: User validateUserCredentialsVtx: User getUserImagesFromEmail: UserImages getResetVerificationCode: VerificationCode verifyCode: CodeVerificationResponse getStravaLoginUrl: Scalars['String'] getSportsEvents: SportsEvent[] getMembershipOrganizations: MembershipOrganizationReference[] getAthleteStravaIntegration: AthleteIntegrationReference getAthleteInstagramIntegration: AthleteIntegrationReference getAthleteIntegrations: AthleteIntegrationReference stripeQuery: StripeObject getDatabaseTextFile: TextDatabaseFile getReceipt: Receipt getReceiptUrl: ReceiptUrl __typename: 'Query' } export interface Mutation { registerNewDomainTenant: Tenant registerNewDomainTenantWithLogin: TenantWithUserLogin createUserAndLogin: UserWithToken loginUserFromEmail: UserToken loginUserFromCredentials: UserWithToken registerUserToDomainFromEmail: User refreshToken: UserToken deleteUploadedUseTypeFile: AWSS3CallResult deleteUploadedBucketFile: AWSS3CallResult deleteUploadedTypeKeyFile: AWSS3CallResult registerS3UploadedFile: AWSS3File createIndustry: Industry createBrand: Brand registerSponsor: Sponsor createSponsor: Sponsor sendAthleteInvitations: SponsorAthleteInvitation[] registerAthlete: Athlete editProfileValue: EditValueResponse editPicture: EditPictureResponse AddAlbumPictures: AddValuesResponse addAthleteCompetition: AthleteCompetition deleteAthleteCompetition: DeleteSingleValueResponse createAthleteAlbum: Album editAlbum: Album deleteAthleteAlbum: DeleteSingleValueResponse deleteAthletePhotos: DeleteValuesResponse saveAthleteCompetitionResult: AthleteCompetitionResult updateAthleteScores: Athlete createSport: Sport updateSport: Sport createSportLevel: SportLevel createSponsorship: Sponsorship createCountry: Country createState: State createCity: City preRegisterAthleteUser: VerificationCode confirmAthleteUserRegistrationAndLogin: UserWithToken confirmAthleteUserRegistration: User registerAthleteUser: User registerSponsorUser: User loginUserFromCredentialsVtx: UserWithToken createResetPasswordCode: EditValueResponse resetUserPassword: EditValueResponse handleStravaCallback: StravaToken refreshStravaToken: StravaToken createSportsEvent: SportsEvent setFundingStatus: FundRaisingCampaign createFundingCampaign: FundRaisingCampaign createMembershipOrganization: MembershipOrganizationReference createAthleteMembershipAffilation: AthleteMembership deleteAthleteMembershipAffilation: DeleteSingleValueResponse updateAthleteIntegration: Scalars['Boolean'] createStripeAccount: StripeAccountReference createAthleteStripeSession: StripeSession createStripeCheckoutSession: StripeCheckoutSession __typename: 'Mutation' } export interface UserGenqlSelection{ _id?: boolean | number loginEmail?: boolean | number suspended?: boolean | number domains?: DomainCredentialGenqlSelection loginMethods?: boolean | number __typename?: boolean | number __scalar?: boolean | number } export interface UserWithTokenGenqlSelection{ _id?: boolean | number loginEmail?: boolean | number suspended?: boolean | number domains?: DomainCredentialGenqlSelection loginMethods?: boolean | number token?: UserTokenGenqlSelection __typename?: boolean | number __scalar?: boolean | number } export interface BaseTenantGenqlSelection{ _id?: boolean | number name?: boolean | number tenant_uri?: boolean | number domain?: DomainGenqlSelection __typename?: boolean | number __scalar?: boolean | number } export interface TenantGenqlSelection{ _id?: boolean | number name?: boolean | number tenant_uri?: boolean | number domain?: DomainGenqlSelection email?: boolean | number owner?: UserGenqlSelection __typename?: boolean | number __scalar?: boolean | number } export interface DomainGenqlSelection{ _id?: boolean | number name?: boolean | number description?: boolean | number __typename?: boolean | number __scalar?: boolean | number } export interface DomainCredentialGenqlSelection{ _id?: boolean | number name?: boolean | number description?: boolean | number tenant?: BaseTenantGenqlSelection __typename?: boolean | number __scalar?: boolean | number } export interface UserTokenGenqlSelection{ actualToken?: boolean | number refreshToken?: boolean | number __typename?: boolean | number __scalar?: boolean | number } export interface DecodedTokenGenqlSelection{ tokenId?: boolean | number systemId?: boolean | number userId?: boolean | number email?: boolean | number refreshTokenId?: boolean | number domains?: DomainCredentialGenqlSelection __typename?: boolean | number __scalar?: boolean | number } export interface DecodedRefreshTokenGenqlSelection{ userId?: boolean | number email?: boolean | number originalTokenId?: boolean | number __typename?: boolean | number __scalar?: boolean | number } export interface TenantWithUserLoginGenqlSelection{ _id?: boolean | number name?: boolean | number tenant_uri?: boolean | number domain?: DomainGenqlSelection email?: boolean | number owner?: UserGenqlSelection user?: UserWithTokenGenqlSelection __typename?: boolean | number __scalar?: boolean | number } export interface UriAvailableTypeGenqlSelection{ available?: boolean | number valid?: boolean | number __typename?: boolean | number __scalar?: boolean | number } export interface AgreementGenqlSelection{ _id?: boolean | number kind?: boolean | number domain?: boolean | number isActiveAgreement?: boolean | number encoding?: boolean | number version?: boolean | number publishedDate?: boolean | number unPublishedDate?: boolean | number locked?: boolean | number name?: boolean | number description?: boolean | number content?: boolean | number httpContentType?: boolean | number createdDate?: boolean | number updatedDate?: boolean | number __typename?: boolean | number __scalar?: boolean | number } export interface SignedAgreementGenqlSelection{ _id?: boolean | number agreement?: AgreementGenqlSelection createdDate?: boolean | number signerReference?: boolean | number json?: boolean | number signedDate?: boolean | number ipAddress?: boolean | number userAgent?: boolean | number signedFromLocation?: boolean