@vertikalx/vtx-backend-client 2.0.0-dev.13 → 2.0.0-dev.2
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/libs/vtx-backend-client/package.json +16 -0
- package/libs/vtx-backend-client/src/api/api-call-headers.js.map +1 -0
- package/libs/vtx-backend-client/src/api/backend-response.js.map +1 -0
- package/libs/vtx-backend-client/src/api/domains.js.map +1 -0
- package/libs/vtx-backend-client/src/api/response-builder.js.map +1 -0
- package/libs/vtx-backend-client/src/api/types.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.js.map +1 -0
- package/{src → libs/vtx-backend-client/src}/api/vtx-base-api.d.ts +4 -4
- package/{src → libs/vtx-backend-client/src}/api/vtx-base-api.js +4 -167
- package/libs/vtx-backend-client/src/api/vtx-base-api.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.d.ts +6 -0
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js +27 -0
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.js.map +1 -0
- package/libs/vtx-backend-client/src/client/index.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/batcher.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/createClient.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/error.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/fetcher.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/index.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/types.js.map +1 -0
- package/{src → libs/vtx-backend-client/src}/client/schema.d.ts +0 -55
- package/{src → libs/vtx-backend-client/src}/client/schema.js +1 -8
- package/libs/vtx-backend-client/src/client/schema.js.map +1 -0
- package/{src → libs/vtx-backend-client/src}/client/types.d.ts +0 -33
- package/{src → libs/vtx-backend-client/src}/client/types.js +123 -210
- package/libs/vtx-backend-client/src/client/types.js.map +1 -0
- package/libs/vtx-backend-client/src/index.js.map +1 -0
- package/package.json +1 -1
- package/src/api/dto/create-budget.dto.d.ts +15 -0
- package/src/api/dto/create-budget.dto.js +72 -0
- package/src/api/dto/create-budget.dto.js.map +1 -0
- package/src/api/dto/create-funding-campaign.dto.d.ts +21 -0
- package/src/api/dto/create-funding-campaign.dto.js +97 -0
- package/src/api/dto/create-funding-campaign.dto.js.map +1 -0
- package/src/api/dto/get-athlete-campaigns.dto.d.ts +3 -0
- package/src/api/dto/get-athlete-campaigns.dto.js +26 -0
- package/src/api/dto/get-athlete-campaigns.dto.js.map +1 -0
- package/src/api/dto/set-current-campaign.dto.d.ts +3 -0
- package/src/api/dto/set-current-campaign.dto.js +26 -0
- package/src/api/dto/set-current-campaign.dto.js.map +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/src/api/api-call-headers.js.map +0 -1
- package/src/api/backend-response.js.map +0 -1
- package/src/api/domains.js.map +0 -1
- package/src/api/response-builder.js.map +0 -1
- package/src/api/types.js.map +0 -1
- package/src/api/vtx-apikey-api.js.map +0 -1
- package/src/api/vtx-base-api.js.map +0 -1
- package/src/api/vtx-mobile-api.d.ts +0 -9
- package/src/api/vtx-mobile-api.js +0 -62
- package/src/api/vtx-mobile-api.js.map +0 -1
- package/src/api/vtx-web-browser-api.js.map +0 -1
- package/src/api/vtx-web-server-api.js.map +0 -1
- package/src/client/index.js.map +0 -1
- package/src/client/runtime/batcher.js.map +0 -1
- package/src/client/runtime/createClient.js.map +0 -1
- package/src/client/runtime/error.js.map +0 -1
- package/src/client/runtime/fetcher.js.map +0 -1
- package/src/client/runtime/generateGraphqlOperation.js.map +0 -1
- package/src/client/runtime/index.js.map +0 -1
- package/src/client/runtime/linkTypeMap.js.map +0 -1
- package/src/client/runtime/typeSelection.js.map +0 -1
- package/src/client/runtime/types.js.map +0 -1
- package/src/client/schema.js.map +0 -1
- package/src/client/types.js.map +0 -1
- package/src/index.js.map +0 -1
- /package/{src → libs/vtx-backend-client/src}/api/api-call-headers.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/api-call-headers.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/backend-response.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/backend-response.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/domains.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/domains.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/response-builder.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/response-builder.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/types.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/types.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/vtx-apikey-api.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/vtx-apikey-api.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/vtx-web-browser-api.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/vtx-web-browser-api.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/vtx-web-server-api.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/api/vtx-web-server-api.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/index.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/index.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/batcher.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/batcher.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/createClient.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/createClient.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/error.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/error.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/fetcher.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/fetcher.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/generateGraphqlOperation.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/generateGraphqlOperation.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/index.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/index.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/linkTypeMap.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/linkTypeMap.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/typeSelection.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/typeSelection.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/types.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/client/runtime/types.js +0 -0
- /package/{src → libs/vtx-backend-client/src}/index.d.ts +0 -0
- /package/{src → libs/vtx-backend-client/src}/index.js +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vertikalx/vtx-backend-client",
|
|
3
|
+
"version": "2.0.0-dev.2",
|
|
4
|
+
"description": "GraphQL API generated client for VTX",
|
|
5
|
+
"types": "src/index.d.ts",
|
|
6
|
+
"main": "src/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"GraphQL",
|
|
12
|
+
"VTX"
|
|
13
|
+
],
|
|
14
|
+
"author": "Daniel Castañeda <daniel@vtxathlete.com>",
|
|
15
|
+
"license": "SEE LICENSE IN LICENSE.md"
|
|
16
|
+
}
|
|
@@ -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,OAA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
@@ -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,7 +1,10 @@
|
|
|
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
|
|
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';
|
|
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';
|
|
5
8
|
export declare class VTXBaseAPI {
|
|
6
9
|
protected headers: APICallHeaders;
|
|
7
10
|
protected backendUrl: string;
|
|
@@ -86,7 +89,6 @@ export declare class VTXBaseAPI {
|
|
|
86
89
|
setCurrentCampaign(dto: SetCurrentCampaignDto): Promise<ITypedBackendResponse<FundRaisingCampaign>>;
|
|
87
90
|
deleteAthleteAlbum(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
|
|
88
91
|
getAthleteAlbums(): Promise<ITypedBackendResponse<Album[]>>;
|
|
89
|
-
reorderAlbums(dto: EditDisplayIndexDto): Promise<ITypedBackendResponse<Album[]>>;
|
|
90
92
|
getPublicAthleteAlbums(athleteId: string): Promise<ITypedBackendResponse<Album[]>>;
|
|
91
93
|
getAthleteAlbumsById(albumId: string): Promise<ITypedBackendResponse<Album>>;
|
|
92
94
|
getAndSetAlbumById(albumId: string): Promise<ITypedBackendResponse<Album>>;
|
|
@@ -112,6 +114,4 @@ export declare class VTXBaseAPI {
|
|
|
112
114
|
addCompetitionBudget(input: AddCompetitionBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
113
115
|
editCompetitionBudget(input: EditCompetitionBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
114
116
|
editCampaignBudget(input: EditCampaignBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
115
|
-
editCompetitionBudgetForCampaign(input: EditCampaignBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
|
|
116
|
-
getDonationsByAthlete(): Promise<ITypedBackendResponse<Receipt[]>>;
|
|
117
117
|
}
|
|
@@ -1989,7 +1989,6 @@ class VTXBaseAPI {
|
|
|
1989
1989
|
trainer: true,
|
|
1990
1990
|
trainerUrl: true,
|
|
1991
1991
|
aboutMe: true,
|
|
1992
|
-
biography: true,
|
|
1993
1992
|
followStats: {
|
|
1994
1993
|
followers: true,
|
|
1995
1994
|
followed: true,
|
|
@@ -3783,8 +3782,7 @@ class VTXBaseAPI {
|
|
|
3783
3782
|
eventWebSite: true,
|
|
3784
3783
|
mainSport: {
|
|
3785
3784
|
_id: true,
|
|
3786
|
-
name: true
|
|
3787
|
-
resultType: true
|
|
3785
|
+
name: true
|
|
3788
3786
|
},
|
|
3789
3787
|
startDate: true,
|
|
3790
3788
|
endDate: true,
|
|
@@ -4601,7 +4599,7 @@ class VTXBaseAPI {
|
|
|
4601
4599
|
scores: {
|
|
4602
4600
|
vtxScore: true,
|
|
4603
4601
|
},
|
|
4604
|
-
|
|
4602
|
+
cardPicture: {
|
|
4605
4603
|
url: true,
|
|
4606
4604
|
},
|
|
4607
4605
|
currentCampaign: {
|
|
@@ -5154,7 +5152,6 @@ class VTXBaseAPI {
|
|
|
5154
5152
|
trainer: true,
|
|
5155
5153
|
trainerUrl: true,
|
|
5156
5154
|
aboutMe: true,
|
|
5157
|
-
biography: true,
|
|
5158
5155
|
followStats: {
|
|
5159
5156
|
followers: true,
|
|
5160
5157
|
followed: true,
|
|
@@ -5318,12 +5315,6 @@ class VTXBaseAPI {
|
|
|
5318
5315
|
finishTimeMS: true,
|
|
5319
5316
|
resultWebLink: true,
|
|
5320
5317
|
totalParticipants: true,
|
|
5321
|
-
outcome: true,
|
|
5322
|
-
genderPosition: true,
|
|
5323
|
-
genderParticipants: true,
|
|
5324
|
-
categoryPosition: true,
|
|
5325
|
-
categoryParticipants: true,
|
|
5326
|
-
categoryName: true
|
|
5327
5318
|
}
|
|
5328
5319
|
},
|
|
5329
5320
|
affiliations: {
|
|
@@ -5650,12 +5641,8 @@ class VTXBaseAPI {
|
|
|
5650
5641
|
});
|
|
5651
5642
|
let retValue = {};
|
|
5652
5643
|
const fields = {
|
|
5653
|
-
_id: true,
|
|
5654
5644
|
label: true,
|
|
5655
5645
|
description: true,
|
|
5656
|
-
displayIndex: true,
|
|
5657
|
-
competitionId: true,
|
|
5658
|
-
visibility: true,
|
|
5659
5646
|
photos: {
|
|
5660
5647
|
_id: true,
|
|
5661
5648
|
photo: {
|
|
@@ -5702,12 +5689,8 @@ class VTXBaseAPI {
|
|
|
5702
5689
|
});
|
|
5703
5690
|
let retValue = {};
|
|
5704
5691
|
const fields = {
|
|
5705
|
-
_id: true,
|
|
5706
5692
|
label: true,
|
|
5707
5693
|
description: true,
|
|
5708
|
-
displayIndex: true,
|
|
5709
|
-
competitionId: true,
|
|
5710
|
-
visibility: true,
|
|
5711
5694
|
photos: {
|
|
5712
5695
|
_id: true,
|
|
5713
5696
|
photo: {
|
|
@@ -6167,9 +6150,6 @@ class VTXBaseAPI {
|
|
|
6167
6150
|
_id: true,
|
|
6168
6151
|
label: true,
|
|
6169
6152
|
description: true,
|
|
6170
|
-
displayIndex: true,
|
|
6171
|
-
competitionId: true,
|
|
6172
|
-
visibility: true,
|
|
6173
6153
|
photos: {
|
|
6174
6154
|
_id: true,
|
|
6175
6155
|
photo: {
|
|
@@ -6205,56 +6185,6 @@ class VTXBaseAPI {
|
|
|
6205
6185
|
console.log(JSON.stringify(retValue, null, 2));
|
|
6206
6186
|
return retValue;
|
|
6207
6187
|
}
|
|
6208
|
-
async reorderAlbums(dto) {
|
|
6209
|
-
console.log('HEADERS:');
|
|
6210
|
-
console.log(JSON.stringify(this.headers, null, 2));
|
|
6211
|
-
const client = (0, client_1.createClient)({
|
|
6212
|
-
url: this.backendUrl + '/graphql',
|
|
6213
|
-
headers: this.headers,
|
|
6214
|
-
});
|
|
6215
|
-
let retValue;
|
|
6216
|
-
const fields = {
|
|
6217
|
-
_id: true,
|
|
6218
|
-
label: true,
|
|
6219
|
-
description: true,
|
|
6220
|
-
displayIndex: true,
|
|
6221
|
-
photos: {
|
|
6222
|
-
_id: true,
|
|
6223
|
-
photo: {
|
|
6224
|
-
_id: true,
|
|
6225
|
-
name: true,
|
|
6226
|
-
contentType: true,
|
|
6227
|
-
size: true,
|
|
6228
|
-
useType: true,
|
|
6229
|
-
url: true,
|
|
6230
|
-
}
|
|
6231
|
-
}
|
|
6232
|
-
};
|
|
6233
|
-
try {
|
|
6234
|
-
const response = await client.mutation({
|
|
6235
|
-
reorderAlbumIndex: {
|
|
6236
|
-
__args: {
|
|
6237
|
-
input: dto
|
|
6238
|
-
},
|
|
6239
|
-
...fields
|
|
6240
|
-
},
|
|
6241
|
-
});
|
|
6242
|
-
console.log('reorderAlbumIndex Response:');
|
|
6243
|
-
console.log(JSON.stringify(response, null, 2));
|
|
6244
|
-
retValue = (0, response_builder_1.buildResponse)(response, 'reorderAlbumIndex', (r) => {
|
|
6245
|
-
const isResponseOk = response?.reorderAlbumIndex.length > 0;
|
|
6246
|
-
return isResponseOk;
|
|
6247
|
-
});
|
|
6248
|
-
}
|
|
6249
|
-
catch (err1) {
|
|
6250
|
-
console.error('reorderAlbumIndex err1:');
|
|
6251
|
-
console.error(err1);
|
|
6252
|
-
retValue = (0, response_builder_1.buildErrorResponse)(err1);
|
|
6253
|
-
}
|
|
6254
|
-
console.log('retValue:');
|
|
6255
|
-
console.log(JSON.stringify(retValue, null, 2));
|
|
6256
|
-
return retValue;
|
|
6257
|
-
}
|
|
6258
6188
|
async getPublicAthleteAlbums(athleteId) {
|
|
6259
6189
|
console.log('HEADERS:');
|
|
6260
6190
|
console.log(JSON.stringify(this.headers, null, 2));
|
|
@@ -6267,9 +6197,6 @@ class VTXBaseAPI {
|
|
|
6267
6197
|
_id: true,
|
|
6268
6198
|
label: true,
|
|
6269
6199
|
description: true,
|
|
6270
|
-
displayIndex: true,
|
|
6271
|
-
competitionId: true,
|
|
6272
|
-
visibility: true,
|
|
6273
6200
|
photos: {
|
|
6274
6201
|
_id: true,
|
|
6275
6202
|
photo: {
|
|
@@ -6316,12 +6243,8 @@ class VTXBaseAPI {
|
|
|
6316
6243
|
});
|
|
6317
6244
|
let retValue = {};
|
|
6318
6245
|
const fields = {
|
|
6319
|
-
_id: true,
|
|
6320
6246
|
label: true,
|
|
6321
6247
|
description: true,
|
|
6322
|
-
displayIndex: true,
|
|
6323
|
-
competitionId: true,
|
|
6324
|
-
visibility: true,
|
|
6325
6248
|
photos: {
|
|
6326
6249
|
_id: true,
|
|
6327
6250
|
photo: {
|
|
@@ -6371,9 +6294,6 @@ class VTXBaseAPI {
|
|
|
6371
6294
|
_id: true,
|
|
6372
6295
|
label: true,
|
|
6373
6296
|
description: true,
|
|
6374
|
-
displayIndex: true,
|
|
6375
|
-
competitionId: true,
|
|
6376
|
-
visibility: true,
|
|
6377
6297
|
photos: {
|
|
6378
6298
|
_id: true,
|
|
6379
6299
|
photo: {
|
|
@@ -6417,7 +6337,6 @@ class VTXBaseAPI {
|
|
|
6417
6337
|
headers: this.headers,
|
|
6418
6338
|
});
|
|
6419
6339
|
const fieldsAthlete = {
|
|
6420
|
-
_id: true,
|
|
6421
6340
|
firstName: true,
|
|
6422
6341
|
lastName: true,
|
|
6423
6342
|
screenName: true,
|
|
@@ -6427,9 +6346,7 @@ class VTXBaseAPI {
|
|
|
6427
6346
|
_id: true,
|
|
6428
6347
|
},
|
|
6429
6348
|
location: {
|
|
6430
|
-
_id: true,
|
|
6431
6349
|
city: {
|
|
6432
|
-
_id: true,
|
|
6433
6350
|
name: true,
|
|
6434
6351
|
state: {
|
|
6435
6352
|
name: true,
|
|
@@ -6441,39 +6358,23 @@ class VTXBaseAPI {
|
|
|
6441
6358
|
},
|
|
6442
6359
|
aboutMe: true,
|
|
6443
6360
|
mainSport: {
|
|
6444
|
-
_id: true,
|
|
6445
6361
|
name: true
|
|
6446
6362
|
},
|
|
6447
6363
|
mainSportLevel: {
|
|
6448
|
-
_id: true,
|
|
6449
6364
|
label: true,
|
|
6450
6365
|
},
|
|
6451
6366
|
scores: {
|
|
6452
6367
|
vtxScore: true,
|
|
6453
|
-
socialScore: true,
|
|
6454
|
-
trainingScore: true,
|
|
6455
|
-
competitionScore: true
|
|
6456
6368
|
},
|
|
6457
6369
|
competitions: {
|
|
6458
|
-
_id: true,
|
|
6459
6370
|
event: {
|
|
6460
|
-
_id: true,
|
|
6461
6371
|
name: true,
|
|
6462
6372
|
},
|
|
6463
6373
|
participationDate: true,
|
|
6464
6374
|
},
|
|
6465
|
-
|
|
6375
|
+
cardPicture: {
|
|
6466
6376
|
url: true,
|
|
6467
6377
|
},
|
|
6468
|
-
currentCampaign: {
|
|
6469
|
-
_id: true,
|
|
6470
|
-
budgetMode: true,
|
|
6471
|
-
status: true,
|
|
6472
|
-
title: true,
|
|
6473
|
-
motivation: true,
|
|
6474
|
-
website: true,
|
|
6475
|
-
endingDate: true,
|
|
6476
|
-
}
|
|
6477
6378
|
};
|
|
6478
6379
|
const fields = {
|
|
6479
6380
|
athletes: fieldsAthlete,
|
|
@@ -7054,6 +6955,7 @@ class VTXBaseAPI {
|
|
|
7054
6955
|
},
|
|
7055
6956
|
});
|
|
7056
6957
|
VTXBaseAPI.Logger.debug('saveAthleteCompetitionResult Response:');
|
|
6958
|
+
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
7057
6959
|
retValue = (0, response_builder_1.buildResponse)(response, 'saveAthleteCompetitionResult', (r) => {
|
|
7058
6960
|
const isResponseOk = true && response?.saveAthleteCompetitionResult?._id;
|
|
7059
6961
|
return isResponseOk;
|
|
@@ -7369,7 +7271,6 @@ class VTXBaseAPI {
|
|
|
7369
7271
|
fundsRequired: true,
|
|
7370
7272
|
initialFundsObtained: true,
|
|
7371
7273
|
status: true,
|
|
7372
|
-
budgetMode: true,
|
|
7373
7274
|
endingDate: true,
|
|
7374
7275
|
budget: true,
|
|
7375
7276
|
competitions: true,
|
|
@@ -7519,70 +7420,6 @@ class VTXBaseAPI {
|
|
|
7519
7420
|
}
|
|
7520
7421
|
return retValue;
|
|
7521
7422
|
}
|
|
7522
|
-
async editCompetitionBudgetForCampaign(input) {
|
|
7523
|
-
const client = (0, client_1.createClient)({
|
|
7524
|
-
url: this.backendUrl + '/graphql',
|
|
7525
|
-
headers: this.headers,
|
|
7526
|
-
});
|
|
7527
|
-
let retValue = {};
|
|
7528
|
-
try {
|
|
7529
|
-
const response = await client.mutation({
|
|
7530
|
-
editCompetitionBudgetForCampaign: {
|
|
7531
|
-
__args: {
|
|
7532
|
-
input: input
|
|
7533
|
-
},
|
|
7534
|
-
},
|
|
7535
|
-
});
|
|
7536
|
-
retValue = (0, response_builder_1.buildResponse)(response, 'editCompetitionBudgerForCampaign', (r) => {
|
|
7537
|
-
const isResponseOk = response?.editCampaignBudget;
|
|
7538
|
-
return isResponseOk;
|
|
7539
|
-
});
|
|
7540
|
-
}
|
|
7541
|
-
catch (err1) {
|
|
7542
|
-
console.error('editCompetitionBudgerForCampaign err1:');
|
|
7543
|
-
console.error(err1);
|
|
7544
|
-
retValue = (0, response_builder_1.buildErrorResponse)(err1);
|
|
7545
|
-
}
|
|
7546
|
-
return retValue;
|
|
7547
|
-
}
|
|
7548
|
-
async getDonationsByAthlete() {
|
|
7549
|
-
const client = (0, client_1.createClient)({
|
|
7550
|
-
url: this.backendUrl + '/graphql',
|
|
7551
|
-
headers: this.headers,
|
|
7552
|
-
});
|
|
7553
|
-
let retValue = { data: [] };
|
|
7554
|
-
const fields = {
|
|
7555
|
-
receiptId: true,
|
|
7556
|
-
campaignName: true,
|
|
7557
|
-
athleteName: true,
|
|
7558
|
-
donorName: true,
|
|
7559
|
-
amount: true,
|
|
7560
|
-
currency: true,
|
|
7561
|
-
dateIssued: true,
|
|
7562
|
-
confirmed: true,
|
|
7563
|
-
message: true
|
|
7564
|
-
};
|
|
7565
|
-
try {
|
|
7566
|
-
const response = await client.query({
|
|
7567
|
-
getDonationsByAthlete: {
|
|
7568
|
-
...fields
|
|
7569
|
-
},
|
|
7570
|
-
});
|
|
7571
|
-
retValue = (0, response_builder_1.buildResponse)(response, 'getDonationsByAthlete', (r) => {
|
|
7572
|
-
const isResponseOk = !!response?.getDonationsByAthlete &&
|
|
7573
|
-
Array.isArray(response.getDonationsByAthlete);
|
|
7574
|
-
return isResponseOk;
|
|
7575
|
-
});
|
|
7576
|
-
if (!retValue.data) {
|
|
7577
|
-
retValue.data = [];
|
|
7578
|
-
}
|
|
7579
|
-
}
|
|
7580
|
-
catch (err) {
|
|
7581
|
-
retValue = (0, response_builder_1.buildErrorResponse)(err);
|
|
7582
|
-
retValue.data = [];
|
|
7583
|
-
}
|
|
7584
|
-
return retValue;
|
|
7585
|
-
}
|
|
7586
7423
|
}
|
|
7587
7424
|
exports.VTXBaseAPI = VTXBaseAPI;
|
|
7588
7425
|
VTXBaseAPI.Logger = {
|