@vertikalx/vtx-backend-client 2.0.0-dev.2 → 2.0.0-dev.20
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 +1 -1
- package/src/api/api-call-headers.js.map +1 -0
- package/src/api/backend-response.js.map +1 -0
- package/src/api/domains.js.map +1 -0
- package/src/api/response-builder.js.map +1 -0
- package/src/api/types.js.map +1 -0
- package/src/api/vtx-apikey-api.js.map +1 -0
- package/{libs/vtx-backend-client/src → src}/api/vtx-base-api.d.ts +4 -4
- package/{libs/vtx-backend-client/src → src}/api/vtx-base-api.js +225 -4
- package/src/api/vtx-base-api.js.map +1 -0
- package/src/api/vtx-mobile-api.d.ts +9 -0
- package/src/api/vtx-mobile-api.js +62 -0
- package/src/api/vtx-mobile-api.js.map +1 -0
- package/src/api/vtx-web-browser-api.js.map +1 -0
- package/src/api/vtx-web-server-api.js.map +1 -0
- package/src/client/index.js.map +1 -0
- package/src/client/runtime/batcher.js.map +1 -0
- package/src/client/runtime/createClient.js.map +1 -0
- package/src/client/runtime/error.js.map +1 -0
- package/src/client/runtime/fetcher.js.map +1 -0
- package/src/client/runtime/generateGraphqlOperation.js.map +1 -0
- package/src/client/runtime/index.js.map +1 -0
- package/src/client/runtime/linkTypeMap.js.map +1 -0
- package/src/client/runtime/typeSelection.js.map +1 -0
- package/src/client/runtime/types.js.map +1 -0
- package/{libs/vtx-backend-client/src → src}/client/schema.d.ts +85 -0
- package/{libs/vtx-backend-client/src → src}/client/schema.js +16 -2
- package/src/client/schema.js.map +1 -0
- package/{libs/vtx-backend-client/src → src}/client/types.d.ts +52 -0
- package/{libs/vtx-backend-client/src → src}/client/types.js +351 -215
- package/src/client/types.js.map +1 -0
- package/src/index.js.map +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/libs/vtx-backend-client/package.json +0 -16
- package/libs/vtx-backend-client/src/api/api-call-headers.js.map +0 -1
- package/libs/vtx-backend-client/src/api/backend-response.js.map +0 -1
- package/libs/vtx-backend-client/src/api/domains.js.map +0 -1
- package/libs/vtx-backend-client/src/api/response-builder.js.map +0 -1
- package/libs/vtx-backend-client/src/api/types.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-base-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.d.ts +0 -6
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js +0 -27
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.js.map +0 -1
- package/libs/vtx-backend-client/src/client/index.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/batcher.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/createClient.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/error.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/fetcher.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/index.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/types.js.map +0 -1
- package/libs/vtx-backend-client/src/client/schema.js.map +0 -1
- package/libs/vtx-backend-client/src/client/types.js.map +0 -1
- package/libs/vtx-backend-client/src/index.js.map +0 -1
- package/src/api/dto/create-budget.dto.d.ts +0 -15
- package/src/api/dto/create-budget.dto.js +0 -72
- package/src/api/dto/create-budget.dto.js.map +0 -1
- package/src/api/dto/create-funding-campaign.dto.d.ts +0 -21
- package/src/api/dto/create-funding-campaign.dto.js +0 -97
- package/src/api/dto/create-funding-campaign.dto.js.map +0 -1
- package/src/api/dto/get-athlete-campaigns.dto.d.ts +0 -3
- package/src/api/dto/get-athlete-campaigns.dto.js +0 -26
- package/src/api/dto/get-athlete-campaigns.dto.js.map +0 -1
- package/src/api/dto/set-current-campaign.dto.d.ts +0 -3
- package/src/api/dto/set-current-campaign.dto.js +0 -26
- package/src/api/dto/set-current-campaign.dto.js.map +0 -1
- /package/{libs/vtx-backend-client/src → src}/api/api-call-headers.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/api-call-headers.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/backend-response.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/backend-response.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/domains.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/domains.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/response-builder.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/response-builder.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/types.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/types.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/vtx-apikey-api.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/vtx-apikey-api.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/vtx-web-browser-api.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/vtx-web-browser-api.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/vtx-web-server-api.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/api/vtx-web-server-api.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/index.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/index.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/batcher.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/batcher.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/createClient.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/createClient.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/error.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/error.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/fetcher.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/fetcher.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/generateGraphqlOperation.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/generateGraphqlOperation.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/index.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/index.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/linkTypeMap.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/linkTypeMap.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/typeSelection.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/typeSelection.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/types.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/client/runtime/types.js +0 -0
- /package/{libs/vtx-backend-client/src → src}/index.d.ts +0 -0
- /package/{libs/vtx-backend-client/src → src}/index.js +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-call-headers.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/api-call-headers.ts"],"names":[],"mappings":";;;AAOa,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAG1B,QAAA,wBAAwB,GAAG,2BAA2B,CAAC;AAGvD,QAAA,8BAA8B,GAAG,iCAAiC,CAAC;AAGnE,QAAA,+BAA+B,GAAG,kCAAkC,CAAC;AAGrE,QAAA,sBAAsB,GAAG,qBAAqB,CAAC;AAG/C,QAAA,gCAAgC,GAAG,mCAAmC,CAAC;AAGvE,QAAA,yBAAyB,GAAG,4BAA4B,CAAC;AAGzD,QAAA,4BAA4B,GAAG,+BAA+B,CAAC;AAG/D,QAAA,eAAe,GAAkB;IAC1C,CAAC,cAAc,CAAC,EAAC,kBAAkB;IACnC,CAAC,gCAAwB,CAAC,EAAC,yBAAiB;CAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend-response.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/backend-response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domains.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/domains.ts"],"names":[],"mappings":";;;AACa,QAAA,cAAc,GAAU,SAAS,CAAC;AAClC,QAAA,cAAc,GAAU,SAAS,CAAC;AAClC,QAAA,WAAW,GAAU,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-builder.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/response-builder.ts"],"names":[],"mappings":";;AAaA,sCAkFC;AACD,gDAmCC;AAjID,gEAAwD;AAKxD,MAAM,MAAM,GAAG;IACb,GAAG,EAAC,CAAC,GAAU,EAAC,EAAE;IAElB,CAAC;CACF,CAAC;AAEF,SAAgB,aAAa,CAAI,QAAY,EAAE,YAAmB,EAAE,OAAkB;IAClF,MAAM,QAAQ,GAA4B,EAAE,CAAA;IAO1C,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAC,CAAC;QAGrB,IAAI,CAAC;YACH,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,YAAY,CAAM,CAAC;QAC9C,CAAC;QAAC,OAAO,OAAO,EAAE,CAAC;YACjB,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;YAClD,QAAQ,CAAC,KAAK,GAAG;gBACf,UAAU,EAAC,GAAG;gBACd,IAAI,EAAC,4BAAU,CAAC,gBAAgB,CAAC,IAAI;gBACrC,OAAO,EAAC,6CAA6C;aACtD,CAAC;YACF,QAAQ,CAAC,SAAS,GAAG;gB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O,EAAC,4BAAU,CAAC,gBAAgB,CAAC,WAAW;KAChD,CAAC;IAEF,IAAI,CAAE,SAAS,IAAI,SAAS,CAAC,MAAM,IAAI,CAAC,EAAC,CAAC;QACxC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,QAAQ,GAAO,SAAS,CAAC,IAAI,CAAE,CAAC,CAAC,EAAE;QAEnC,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,UAAU,CAAC,IAAI,KAAK,UAAU,EAAC,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,IAAI,QAAQ,EAAC,CAAC;QACZ,QAAQ,GAAG;YACT,UAAU,EAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,IAAI,GAAG;YAClD,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,IAAI,4BAAU,CAAC,gBAAgB,CAAC,IAAI;YAC9E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,IAAK,4BAAU,CAAC,gBAAgB,CAAC,WAAW;SACjG,CAAA;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAGlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vtx-apikey-api.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/vtx-apikey-api.ts"],"names":[],"mappings":";;;AAEA,yDAAsJ;AACtJ,iDAA4C;AAM5C,MAAa,YAAa,SAAQ,yBAAU;IAExC,YAAY,UAAiB,EAAE,QAAe,EAAE,WAAkB;QAC9D,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC,iBAAiB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAC7E,CAAC;IAEM,MAAM,CAAC,iBAAiB,CAAC,QAAe,EAAE,WAAkB;QAC/D,OAAO;YACH,CAAC,4CAAyB,CAAC,EAAE,QAAQ;YACrC,CAAC,+CAA4B,CAAC,EAAE,WAAW;YAC3C,GAAG,kCAAe;SACrB,CAAA;IACL,CAAC;CACJ;AAbD,oCAaC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
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, existValueDto, ExistValueResponse, Receipt, ReceiptUrl, GetReceiptDto, DeleteValuesResponse, BudgetData, AddCompetitionBudgetDto, EditCompetitionBudgetDto, EditCampaignBudgetDto } 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, existValueDto, ExistValueResponse, Receipt, ReceiptUrl, GetReceiptDto, DeleteValuesResponse, BudgetData, AddCompetitionBudgetDto, EditCompetitionBudgetDto, EditCampaignBudgetDto, SetCurrentCampaignDto, GetAthleteCampaignsDto, UpdateFundingCampaignDto, EditDisplayIndexDto } from '../client';
|
|
2
2
|
import { ITypedBackendResponse } from './backend-response';
|
|
3
3
|
import { APICallHeaders } from './api-call-headers';
|
|
4
4
|
import { VerificationCodeType } from '@stackbus/common-types';
|
|
5
|
-
import { GetAthleteCampaignsDto } from 'src/api/dto/get-athlete-campaigns.dto';
|
|
6
|
-
import { UpdateFundingCampaignDto } from 'src/api/dto/create-funding-campaign.dto';
|
|
7
|
-
import { SetCurrentCampaignDto } from 'src/api/dto/set-current-campaign.dto';
|
|
8
5
|
export declare class VTXBaseAPI {
|
|
9
6
|
protected headers: APICallHeaders;
|
|
10
7
|
protected backendUrl: string;
|
|
@@ -89,6 +86,7 @@ export declare class VTXBaseAPI {
|
|
|
89
86
|
setCurrentCampaign(dto: SetCurrentCampaignDto): Promise<ITypedBackendResponse<FundRaisingCampaign>>;
|
|
90
87
|
deleteAthleteAlbum(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
|
|
91
88
|
getAthleteAlbums(): Promise<ITypedBackendResponse<Album[]>>;
|
|
89
|
+
reorderAlbums(dto: EditDisplayIndexDto): Promise<ITypedBackendResponse<Album[]>>;
|
|
92
90
|
getPublicAthleteAlbums(athleteId: string): Promise<ITypedBackendResponse<Album[]>>;
|
|
93
91
|
getAthleteAlbumsById(albumId: string): Promise<ITypedBackendResponse<Album>>;
|
|
94
92
|
getAndSetAlbumById(albumId: string): Promise<ITypedBackendResponse<Album>>;
|
|
@@ -114,4 +112,6 @@ export declare class VTXBaseAPI {
|
|
|
114
112
|
addCompetitionBudget(input: AddCompetitionBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
115
113
|
editCompetitionBudget(input: EditCompetitionBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
116
114
|
editCampaignBudget(input: EditCampaignBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
115
|
+
editCompetitionBudgetForCampaign(input: EditCampaignBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
116
|
+
getDonationsByAthlete(): Promise<ITypedBackendResponse<Receipt[]>>;
|
|
117
117
|
}
|
|
@@ -1989,6 +1989,7 @@ class VTXBaseAPI {
|
|
|
1989
1989
|
trainer: true,
|
|
1990
1990
|
trainerUrl: true,
|
|
1991
1991
|
aboutMe: true,
|
|
1992
|
+
biography: true,
|
|
1992
1993
|
followStats: {
|
|
1993
1994
|
followers: true,
|
|
1994
1995
|
followed: true,
|
|
@@ -2224,6 +2225,12 @@ class VTXBaseAPI {
|
|
|
2224
2225
|
fundsRequired: true,
|
|
2225
2226
|
initialFundsObtained: true,
|
|
2226
2227
|
fundsObtained: true,
|
|
2228
|
+
video: {
|
|
2229
|
+
_id: true,
|
|
2230
|
+
source: true,
|
|
2231
|
+
url: true,
|
|
2232
|
+
sourceData: true
|
|
2233
|
+
},
|
|
2227
2234
|
location: {
|
|
2228
2235
|
_id: true,
|
|
2229
2236
|
userProvidedLatitude: true,
|
|
@@ -3782,7 +3789,8 @@ class VTXBaseAPI {
|
|
|
3782
3789
|
eventWebSite: true,
|
|
3783
3790
|
mainSport: {
|
|
3784
3791
|
_id: true,
|
|
3785
|
-
name: true
|
|
3792
|
+
name: true,
|
|
3793
|
+
resultType: true
|
|
3786
3794
|
},
|
|
3787
3795
|
startDate: true,
|
|
3788
3796
|
endDate: true,
|
|
@@ -4272,6 +4280,12 @@ class VTXBaseAPI {
|
|
|
4272
4280
|
initialFundsObtained: true,
|
|
4273
4281
|
fundsObtained: true,
|
|
4274
4282
|
vtxComissionPct: true,
|
|
4283
|
+
video: {
|
|
4284
|
+
_id: true,
|
|
4285
|
+
source: true,
|
|
4286
|
+
url: true,
|
|
4287
|
+
sourceData: true
|
|
4288
|
+
},
|
|
4275
4289
|
location: {
|
|
4276
4290
|
userProvidedLatitude: true,
|
|
4277
4291
|
userProvidedLongitude: true,
|
|
@@ -4599,7 +4613,7 @@ class VTXBaseAPI {
|
|
|
4599
4613
|
scores: {
|
|
4600
4614
|
vtxScore: true,
|
|
4601
4615
|
},
|
|
4602
|
-
|
|
4616
|
+
profilePicture: {
|
|
4603
4617
|
url: true,
|
|
4604
4618
|
},
|
|
4605
4619
|
currentCampaign: {
|
|
@@ -4610,6 +4624,13 @@ class VTXBaseAPI {
|
|
|
4610
4624
|
fundsRequired: true,
|
|
4611
4625
|
initialFundsObtained: true,
|
|
4612
4626
|
fundsObtained: true,
|
|
4627
|
+
vtxComissionPct: true,
|
|
4628
|
+
video: {
|
|
4629
|
+
_id: true,
|
|
4630
|
+
source: true,
|
|
4631
|
+
url: true,
|
|
4632
|
+
sourceData: true
|
|
4633
|
+
},
|
|
4613
4634
|
endingDate: true,
|
|
4614
4635
|
}
|
|
4615
4636
|
};
|
|
@@ -4978,6 +4999,12 @@ class VTXBaseAPI {
|
|
|
4978
4999
|
initialFundsObtained: true,
|
|
4979
5000
|
fundsObtained: true,
|
|
4980
5001
|
vtxComissionPct: true,
|
|
5002
|
+
video: {
|
|
5003
|
+
_id: true,
|
|
5004
|
+
source: true,
|
|
5005
|
+
url: true,
|
|
5006
|
+
sourceData: true
|
|
5007
|
+
},
|
|
4981
5008
|
location: {
|
|
4982
5009
|
userProvidedLatitude: true,
|
|
4983
5010
|
userProvidedLongitude: true,
|
|
@@ -5152,6 +5179,7 @@ class VTXBaseAPI {
|
|
|
5152
5179
|
trainer: true,
|
|
5153
5180
|
trainerUrl: true,
|
|
5154
5181
|
aboutMe: true,
|
|
5182
|
+
biography: true,
|
|
5155
5183
|
followStats: {
|
|
5156
5184
|
followers: true,
|
|
5157
5185
|
followed: true,
|
|
@@ -5315,6 +5343,12 @@ class VTXBaseAPI {
|
|
|
5315
5343
|
finishTimeMS: true,
|
|
5316
5344
|
resultWebLink: true,
|
|
5317
5345
|
totalParticipants: true,
|
|
5346
|
+
outcome: true,
|
|
5347
|
+
genderPosition: true,
|
|
5348
|
+
genderParticipants: true,
|
|
5349
|
+
categoryPosition: true,
|
|
5350
|
+
categoryParticipants: true,
|
|
5351
|
+
categoryName: true
|
|
5318
5352
|
}
|
|
5319
5353
|
},
|
|
5320
5354
|
affiliations: {
|
|
@@ -5400,6 +5434,12 @@ class VTXBaseAPI {
|
|
|
5400
5434
|
fundsRequired: true,
|
|
5401
5435
|
initialFundsObtained: true,
|
|
5402
5436
|
fundsObtained: true,
|
|
5437
|
+
video: {
|
|
5438
|
+
_id: true,
|
|
5439
|
+
source: true,
|
|
5440
|
+
url: true,
|
|
5441
|
+
sourceData: true
|
|
5442
|
+
},
|
|
5403
5443
|
location: {
|
|
5404
5444
|
_id: true,
|
|
5405
5445
|
userProvidedLatitude: true,
|
|
@@ -5641,8 +5681,12 @@ class VTXBaseAPI {
|
|
|
5641
5681
|
});
|
|
5642
5682
|
let retValue = {};
|
|
5643
5683
|
const fields = {
|
|
5684
|
+
_id: true,
|
|
5644
5685
|
label: true,
|
|
5645
5686
|
description: true,
|
|
5687
|
+
displayIndex: true,
|
|
5688
|
+
competitionId: true,
|
|
5689
|
+
visibility: true,
|
|
5646
5690
|
photos: {
|
|
5647
5691
|
_id: true,
|
|
5648
5692
|
photo: {
|
|
@@ -5689,8 +5733,12 @@ class VTXBaseAPI {
|
|
|
5689
5733
|
});
|
|
5690
5734
|
let retValue = {};
|
|
5691
5735
|
const fields = {
|
|
5736
|
+
_id: true,
|
|
5692
5737
|
label: true,
|
|
5693
5738
|
description: true,
|
|
5739
|
+
displayIndex: true,
|
|
5740
|
+
competitionId: true,
|
|
5741
|
+
visibility: true,
|
|
5694
5742
|
photos: {
|
|
5695
5743
|
_id: true,
|
|
5696
5744
|
photo: {
|
|
@@ -5830,6 +5878,12 @@ class VTXBaseAPI {
|
|
|
5830
5878
|
initialFundsObtained: true,
|
|
5831
5879
|
fundsObtained: true,
|
|
5832
5880
|
vtxComissionPct: true,
|
|
5881
|
+
video: {
|
|
5882
|
+
_id: true,
|
|
5883
|
+
source: true,
|
|
5884
|
+
url: true,
|
|
5885
|
+
sourceData: true
|
|
5886
|
+
},
|
|
5833
5887
|
location: {
|
|
5834
5888
|
userProvidedLatitude: true,
|
|
5835
5889
|
userProvidedLongitude: true,
|
|
@@ -5973,6 +6027,12 @@ class VTXBaseAPI {
|
|
|
5973
6027
|
initialFundsObtained: true,
|
|
5974
6028
|
fundsObtained: true,
|
|
5975
6029
|
vtxComissionPct: true,
|
|
6030
|
+
video: {
|
|
6031
|
+
_id: true,
|
|
6032
|
+
source: true,
|
|
6033
|
+
url: true,
|
|
6034
|
+
sourceData: true
|
|
6035
|
+
},
|
|
5976
6036
|
location: {
|
|
5977
6037
|
userProvidedLatitude: true,
|
|
5978
6038
|
userProvidedLongitude: true,
|
|
@@ -6150,6 +6210,9 @@ class VTXBaseAPI {
|
|
|
6150
6210
|
_id: true,
|
|
6151
6211
|
label: true,
|
|
6152
6212
|
description: true,
|
|
6213
|
+
displayIndex: true,
|
|
6214
|
+
competitionId: true,
|
|
6215
|
+
visibility: true,
|
|
6153
6216
|
photos: {
|
|
6154
6217
|
_id: true,
|
|
6155
6218
|
photo: {
|
|
@@ -6185,6 +6248,56 @@ class VTXBaseAPI {
|
|
|
6185
6248
|
console.log(JSON.stringify(retValue, null, 2));
|
|
6186
6249
|
return retValue;
|
|
6187
6250
|
}
|
|
6251
|
+
async reorderAlbums(dto) {
|
|
6252
|
+
console.log('HEADERS:');
|
|
6253
|
+
console.log(JSON.stringify(this.headers, null, 2));
|
|
6254
|
+
const client = (0, client_1.createClient)({
|
|
6255
|
+
url: this.backendUrl + '/graphql',
|
|
6256
|
+
headers: this.headers,
|
|
6257
|
+
});
|
|
6258
|
+
let retValue;
|
|
6259
|
+
const fields = {
|
|
6260
|
+
_id: true,
|
|
6261
|
+
label: true,
|
|
6262
|
+
description: true,
|
|
6263
|
+
displayIndex: true,
|
|
6264
|
+
photos: {
|
|
6265
|
+
_id: true,
|
|
6266
|
+
photo: {
|
|
6267
|
+
_id: true,
|
|
6268
|
+
name: true,
|
|
6269
|
+
contentType: true,
|
|
6270
|
+
size: true,
|
|
6271
|
+
useType: true,
|
|
6272
|
+
url: true,
|
|
6273
|
+
}
|
|
6274
|
+
}
|
|
6275
|
+
};
|
|
6276
|
+
try {
|
|
6277
|
+
const response = await client.mutation({
|
|
6278
|
+
reorderAlbumIndex: {
|
|
6279
|
+
__args: {
|
|
6280
|
+
input: dto
|
|
6281
|
+
},
|
|
6282
|
+
...fields
|
|
6283
|
+
},
|
|
6284
|
+
});
|
|
6285
|
+
console.log('reorderAlbumIndex Response:');
|
|
6286
|
+
console.log(JSON.stringify(response, null, 2));
|
|
6287
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'reorderAlbumIndex', (r) => {
|
|
6288
|
+
const isResponseOk = response?.reorderAlbumIndex.length > 0;
|
|
6289
|
+
return isResponseOk;
|
|
6290
|
+
});
|
|
6291
|
+
}
|
|
6292
|
+
catch (err1) {
|
|
6293
|
+
console.error('reorderAlbumIndex err1:');
|
|
6294
|
+
console.error(err1);
|
|
6295
|
+
retValue = (0, response_builder_1.buildErrorResponse)(err1);
|
|
6296
|
+
}
|
|
6297
|
+
console.log('retValue:');
|
|
6298
|
+
console.log(JSON.stringify(retValue, null, 2));
|
|
6299
|
+
return retValue;
|
|
6300
|
+
}
|
|
6188
6301
|
async getPublicAthleteAlbums(athleteId) {
|
|
6189
6302
|
console.log('HEADERS:');
|
|
6190
6303
|
console.log(JSON.stringify(this.headers, null, 2));
|
|
@@ -6197,6 +6310,9 @@ class VTXBaseAPI {
|
|
|
6197
6310
|
_id: true,
|
|
6198
6311
|
label: true,
|
|
6199
6312
|
description: true,
|
|
6313
|
+
displayIndex: true,
|
|
6314
|
+
competitionId: true,
|
|
6315
|
+
visibility: true,
|
|
6200
6316
|
photos: {
|
|
6201
6317
|
_id: true,
|
|
6202
6318
|
photo: {
|
|
@@ -6243,8 +6359,12 @@ class VTXBaseAPI {
|
|
|
6243
6359
|
});
|
|
6244
6360
|
let retValue = {};
|
|
6245
6361
|
const fields = {
|
|
6362
|
+
_id: true,
|
|
6246
6363
|
label: true,
|
|
6247
6364
|
description: true,
|
|
6365
|
+
displayIndex: true,
|
|
6366
|
+
competitionId: true,
|
|
6367
|
+
visibility: true,
|
|
6248
6368
|
photos: {
|
|
6249
6369
|
_id: true,
|
|
6250
6370
|
photo: {
|
|
@@ -6294,6 +6414,9 @@ class VTXBaseAPI {
|
|
|
6294
6414
|
_id: true,
|
|
6295
6415
|
label: true,
|
|
6296
6416
|
description: true,
|
|
6417
|
+
displayIndex: true,
|
|
6418
|
+
competitionId: true,
|
|
6419
|
+
visibility: true,
|
|
6297
6420
|
photos: {
|
|
6298
6421
|
_id: true,
|
|
6299
6422
|
photo: {
|
|
@@ -6337,6 +6460,7 @@ class VTXBaseAPI {
|
|
|
6337
6460
|
headers: this.headers,
|
|
6338
6461
|
});
|
|
6339
6462
|
const fieldsAthlete = {
|
|
6463
|
+
_id: true,
|
|
6340
6464
|
firstName: true,
|
|
6341
6465
|
lastName: true,
|
|
6342
6466
|
screenName: true,
|
|
@@ -6346,7 +6470,9 @@ class VTXBaseAPI {
|
|
|
6346
6470
|
_id: true,
|
|
6347
6471
|
},
|
|
6348
6472
|
location: {
|
|
6473
|
+
_id: true,
|
|
6349
6474
|
city: {
|
|
6475
|
+
_id: true,
|
|
6350
6476
|
name: true,
|
|
6351
6477
|
state: {
|
|
6352
6478
|
name: true,
|
|
@@ -6358,23 +6484,48 @@ class VTXBaseAPI {
|
|
|
6358
6484
|
},
|
|
6359
6485
|
aboutMe: true,
|
|
6360
6486
|
mainSport: {
|
|
6487
|
+
_id: true,
|
|
6361
6488
|
name: true
|
|
6362
6489
|
},
|
|
6363
6490
|
mainSportLevel: {
|
|
6491
|
+
_id: true,
|
|
6364
6492
|
label: true,
|
|
6365
6493
|
},
|
|
6366
6494
|
scores: {
|
|
6367
6495
|
vtxScore: true,
|
|
6496
|
+
socialScore: true,
|
|
6497
|
+
trainingScore: true,
|
|
6498
|
+
competitionScore: true
|
|
6368
6499
|
},
|
|
6369
6500
|
competitions: {
|
|
6501
|
+
_id: true,
|
|
6370
6502
|
event: {
|
|
6503
|
+
_id: true,
|
|
6371
6504
|
name: true,
|
|
6372
6505
|
},
|
|
6373
6506
|
participationDate: true,
|
|
6374
6507
|
},
|
|
6375
|
-
|
|
6508
|
+
profilePicture: {
|
|
6376
6509
|
url: true,
|
|
6377
6510
|
},
|
|
6511
|
+
currentCampaign: {
|
|
6512
|
+
_id: true,
|
|
6513
|
+
budgetMode: true,
|
|
6514
|
+
status: true,
|
|
6515
|
+
title: true,
|
|
6516
|
+
motivation: true,
|
|
6517
|
+
website: true,
|
|
6518
|
+
fundsRequired: true,
|
|
6519
|
+
initialFundsObtained: true,
|
|
6520
|
+
fundsObtained: true,
|
|
6521
|
+
video: {
|
|
6522
|
+
_id: true,
|
|
6523
|
+
source: true,
|
|
6524
|
+
url: true,
|
|
6525
|
+
sourceData: true
|
|
6526
|
+
},
|
|
6527
|
+
endingDate: true,
|
|
6528
|
+
}
|
|
6378
6529
|
};
|
|
6379
6530
|
const fields = {
|
|
6380
6531
|
athletes: fieldsAthlete,
|
|
@@ -6731,6 +6882,12 @@ class VTXBaseAPI {
|
|
|
6731
6882
|
initialFundsObtained: true,
|
|
6732
6883
|
fundsObtained: true,
|
|
6733
6884
|
vtxComissionPct: true,
|
|
6885
|
+
video: {
|
|
6886
|
+
_id: true,
|
|
6887
|
+
source: true,
|
|
6888
|
+
url: true,
|
|
6889
|
+
sourceData: true
|
|
6890
|
+
},
|
|
6734
6891
|
location: {
|
|
6735
6892
|
userProvidedLatitude: true,
|
|
6736
6893
|
userProvidedLongitude: true,
|
|
@@ -6955,7 +7112,6 @@ class VTXBaseAPI {
|
|
|
6955
7112
|
},
|
|
6956
7113
|
});
|
|
6957
7114
|
VTXBaseAPI.Logger.debug('saveAthleteCompetitionResult Response:');
|
|
6958
|
-
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
6959
7115
|
retValue = (0, response_builder_1.buildResponse)(response, 'saveAthleteCompetitionResult', (r) => {
|
|
6960
7116
|
const isResponseOk = true && response?.saveAthleteCompetitionResult?._id;
|
|
6961
7117
|
return isResponseOk;
|
|
@@ -7271,6 +7427,7 @@ class VTXBaseAPI {
|
|
|
7271
7427
|
fundsRequired: true,
|
|
7272
7428
|
initialFundsObtained: true,
|
|
7273
7429
|
status: true,
|
|
7430
|
+
budgetMode: true,
|
|
7274
7431
|
endingDate: true,
|
|
7275
7432
|
budget: true,
|
|
7276
7433
|
competitions: true,
|
|
@@ -7420,6 +7577,70 @@ class VTXBaseAPI {
|
|
|
7420
7577
|
}
|
|
7421
7578
|
return retValue;
|
|
7422
7579
|
}
|
|
7580
|
+
async editCompetitionBudgetForCampaign(input) {
|
|
7581
|
+
const client = (0, client_1.createClient)({
|
|
7582
|
+
url: this.backendUrl + '/graphql',
|
|
7583
|
+
headers: this.headers,
|
|
7584
|
+
});
|
|
7585
|
+
let retValue = {};
|
|
7586
|
+
try {
|
|
7587
|
+
const response = await client.mutation({
|
|
7588
|
+
editCompetitionBudgetForCampaign: {
|
|
7589
|
+
__args: {
|
|
7590
|
+
input: input
|
|
7591
|
+
},
|
|
7592
|
+
},
|
|
7593
|
+
});
|
|
7594
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'editCompetitionBudgerForCampaign', (r) => {
|
|
7595
|
+
const isResponseOk = response?.editCampaignBudget;
|
|
7596
|
+
return isResponseOk;
|
|
7597
|
+
});
|
|
7598
|
+
}
|
|
7599
|
+
catch (err1) {
|
|
7600
|
+
console.error('editCompetitionBudgerForCampaign err1:');
|
|
7601
|
+
console.error(err1);
|
|
7602
|
+
retValue = (0, response_builder_1.buildErrorResponse)(err1);
|
|
7603
|
+
}
|
|
7604
|
+
return retValue;
|
|
7605
|
+
}
|
|
7606
|
+
async getDonationsByAthlete() {
|
|
7607
|
+
const client = (0, client_1.createClient)({
|
|
7608
|
+
url: this.backendUrl + '/graphql',
|
|
7609
|
+
headers: this.headers,
|
|
7610
|
+
});
|
|
7611
|
+
let retValue = { data: [] };
|
|
7612
|
+
const fields = {
|
|
7613
|
+
receiptId: true,
|
|
7614
|
+
campaignName: true,
|
|
7615
|
+
athleteName: true,
|
|
7616
|
+
donorName: true,
|
|
7617
|
+
amount: true,
|
|
7618
|
+
currency: true,
|
|
7619
|
+
dateIssued: true,
|
|
7620
|
+
confirmed: true,
|
|
7621
|
+
message: true
|
|
7622
|
+
};
|
|
7623
|
+
try {
|
|
7624
|
+
const response = await client.query({
|
|
7625
|
+
getDonationsByAthlete: {
|
|
7626
|
+
...fields
|
|
7627
|
+
},
|
|
7628
|
+
});
|
|
7629
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'getDonationsByAthlete', (r) => {
|
|
7630
|
+
const isResponseOk = !!response?.getDonationsByAthlete &&
|
|
7631
|
+
Array.isArray(response.getDonationsByAthlete);
|
|
7632
|
+
return isResponseOk;
|
|
7633
|
+
});
|
|
7634
|
+
if (!retValue.data) {
|
|
7635
|
+
retValue.data = [];
|
|
7636
|
+
}
|
|
7637
|
+
}
|
|
7638
|
+
catch (err) {
|
|
7639
|
+
retValue = (0, response_builder_1.buildErrorResponse)(err);
|
|
7640
|
+
retValue.data = [];
|
|
7641
|
+
}
|
|
7642
|
+
return retValue;
|
|
7643
|
+
}
|
|
7423
7644
|
}
|
|
7424
7645
|
exports.VTXBaseAPI = VTXBaseAPI;
|
|
7425
7646
|
VTXBaseAPI.Logger = {
|