@vertikalx/vtx-backend-client 1.0.1-dev-max.6 → 1.0.1-dev-carlos.3

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.
Files changed (94) hide show
  1. package/LICENSE.md +0 -0
  2. package/package.json +1 -1
  3. package/src/api/response-builder.js +2 -3
  4. package/src/api/response-builder.js.map +1 -1
  5. package/src/api/vtx-base-api.d.ts +6 -6
  6. package/src/api/vtx-base-api.js +178 -349
  7. package/src/api/vtx-base-api.js.map +1 -1
  8. package/src/client/runtime/generateGraphqlOperation.d.ts +1 -1
  9. package/src/client/schema.d.ts +198 -85
  10. package/src/client/schema.js +63 -16
  11. package/src/client/schema.js.map +1 -1
  12. package/src/client/types.d.ts +90 -52
  13. package/src/client/types.js +379 -287
  14. package/src/client/types.js.map +1 -1
  15. package/tsconfig.lib.tsbuildinfo +1 -1
  16. package/libs/vtx-backend-client/package.json +0 -16
  17. package/libs/vtx-backend-client/src/api/api-call-headers.d.ts +0 -12
  18. package/libs/vtx-backend-client/src/api/api-call-headers.js +0 -16
  19. package/libs/vtx-backend-client/src/api/api-call-headers.js.map +0 -1
  20. package/libs/vtx-backend-client/src/api/backend-response.d.ts +0 -10
  21. package/libs/vtx-backend-client/src/api/backend-response.js +0 -3
  22. package/libs/vtx-backend-client/src/api/backend-response.js.map +0 -1
  23. package/libs/vtx-backend-client/src/api/domains.d.ts +0 -3
  24. package/libs/vtx-backend-client/src/api/domains.js +0 -7
  25. package/libs/vtx-backend-client/src/api/domains.js.map +0 -1
  26. package/libs/vtx-backend-client/src/api/response-builder.d.ts +0 -4
  27. package/libs/vtx-backend-client/src/api/response-builder.js +0 -123
  28. package/libs/vtx-backend-client/src/api/response-builder.js.map +0 -1
  29. package/libs/vtx-backend-client/src/api/types.d.ts +0 -2
  30. package/libs/vtx-backend-client/src/api/types.js +0 -3
  31. package/libs/vtx-backend-client/src/api/types.js.map +0 -1
  32. package/libs/vtx-backend-client/src/api/vtx-apikey-api.d.ts +0 -6
  33. package/libs/vtx-backend-client/src/api/vtx-apikey-api.js +0 -19
  34. package/libs/vtx-backend-client/src/api/vtx-apikey-api.js.map +0 -1
  35. package/libs/vtx-backend-client/src/api/vtx-base-api.d.ts +0 -110
  36. package/libs/vtx-backend-client/src/api/vtx-base-api.js +0 -7063
  37. package/libs/vtx-backend-client/src/api/vtx-base-api.js.map +0 -1
  38. package/libs/vtx-backend-client/src/api/vtx-mobile-api.d.ts +0 -6
  39. package/libs/vtx-backend-client/src/api/vtx-mobile-api.js +0 -27
  40. package/libs/vtx-backend-client/src/api/vtx-mobile-api.js.map +0 -1
  41. package/libs/vtx-backend-client/src/api/vtx-web-browser-api.d.ts +0 -7
  42. package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js +0 -36
  43. package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js.map +0 -1
  44. package/libs/vtx-backend-client/src/api/vtx-web-server-api.d.ts +0 -7
  45. package/libs/vtx-backend-client/src/api/vtx-web-server-api.js +0 -33
  46. package/libs/vtx-backend-client/src/api/vtx-web-server-api.js.map +0 -1
  47. package/libs/vtx-backend-client/src/client/index.d.ts +0 -25
  48. package/libs/vtx-backend-client/src/client/index.js +0 -44
  49. package/libs/vtx-backend-client/src/client/index.js.map +0 -1
  50. package/libs/vtx-backend-client/src/client/runtime/batcher.d.ts +0 -36
  51. package/libs/vtx-backend-client/src/client/runtime/batcher.js +0 -123
  52. package/libs/vtx-backend-client/src/client/runtime/batcher.js.map +0 -1
  53. package/libs/vtx-backend-client/src/client/runtime/createClient.d.ts +0 -17
  54. package/libs/vtx-backend-client/src/client/runtime/createClient.js +0 -28
  55. package/libs/vtx-backend-client/src/client/runtime/createClient.js.map +0 -1
  56. package/libs/vtx-backend-client/src/client/runtime/error.d.ts +0 -15
  57. package/libs/vtx-backend-client/src/client/runtime/error.js +0 -19
  58. package/libs/vtx-backend-client/src/client/runtime/error.js.map +0 -1
  59. package/libs/vtx-backend-client/src/client/runtime/fetcher.d.ts +0 -10
  60. package/libs/vtx-backend-client/src/client/runtime/fetcher.js +0 -68
  61. package/libs/vtx-backend-client/src/client/runtime/fetcher.js.map +0 -1
  62. package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.d.ts +0 -30
  63. package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js +0 -134
  64. package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js.map +0 -1
  65. package/libs/vtx-backend-client/src/client/runtime/index.d.ts +0 -11
  66. package/libs/vtx-backend-client/src/client/runtime/index.js +0 -17
  67. package/libs/vtx-backend-client/src/client/runtime/index.js.map +0 -1
  68. package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.d.ts +0 -9
  69. package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js +0 -95
  70. package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js.map +0 -1
  71. package/libs/vtx-backend-client/src/client/runtime/typeSelection.d.ts +0 -28
  72. package/libs/vtx-backend-client/src/client/runtime/typeSelection.js +0 -3
  73. package/libs/vtx-backend-client/src/client/runtime/typeSelection.js.map +0 -1
  74. package/libs/vtx-backend-client/src/client/runtime/types.d.ts +0 -55
  75. package/libs/vtx-backend-client/src/client/runtime/types.js +0 -3
  76. package/libs/vtx-backend-client/src/client/runtime/types.js.map +0 -1
  77. package/libs/vtx-backend-client/src/client/schema.d.ts +0 -4325
  78. package/libs/vtx-backend-client/src/client/schema.js +0 -927
  79. package/libs/vtx-backend-client/src/client/schema.js.map +0 -1
  80. package/libs/vtx-backend-client/src/client/types.d.ts +0 -2312
  81. package/libs/vtx-backend-client/src/client/types.js +0 -6031
  82. package/libs/vtx-backend-client/src/client/types.js.map +0 -1
  83. package/libs/vtx-backend-client/src/index.d.ts +0 -11
  84. package/libs/vtx-backend-client/src/index.js +0 -28
  85. package/libs/vtx-backend-client/src/index.js.map +0 -1
  86. package/src/api/dto/create-budget.dto.d.ts +0 -15
  87. package/src/api/dto/create-budget.dto.js +0 -72
  88. package/src/api/dto/create-budget.dto.js.map +0 -1
  89. package/src/api/dto/create-funding-campaign.dto.d.ts +0 -21
  90. package/src/api/dto/create-funding-campaign.dto.js +0 -97
  91. package/src/api/dto/create-funding-campaign.dto.js.map +0 -1
  92. package/src/api/dto/get-athlete-campaigns.dto.d.ts +0 -3
  93. package/src/api/dto/get-athlete-campaigns.dto.js +0 -26
  94. package/src/api/dto/get-athlete-campaigns.dto.js.map +0 -1
package/LICENSE.md CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.1-dev-max.6",
3
+ "version": "1.0.1-dev-carlos.3",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildErrorResponse = exports.buildResponse = void 0;
3
+ exports.buildResponse = buildResponse;
4
+ exports.buildErrorResponse = buildErrorResponse;
4
5
  const vtx_core_common_1 = require("@vertikalx/vtx-core-common");
5
6
  const Logger = {
6
7
  log: (msg) => {
@@ -74,7 +75,6 @@ function buildResponse(response, rootProperty, checker) {
74
75
  Logger.log(JSON.stringify(retValue, null, 2));
75
76
  return retValue;
76
77
  }
77
- exports.buildResponse = buildResponse;
78
78
  function buildErrorResponse(error) {
79
79
  const retValue = {};
80
80
  if (error.errors) {
@@ -96,7 +96,6 @@ function buildErrorResponse(error) {
96
96
  retValue.error = extractError(retValue.rawErrors);
97
97
  return retValue;
98
98
  }
99
- exports.buildErrorResponse = buildErrorResponse;
100
99
  function extractError(rawErrors) {
101
100
  let retValue = {
102
101
  httpStatus: 500,
@@ -1 +1 @@
1
- {"version":3,"file":"response-builder.js","sourceRoot":"","sources":["../../../../../libs/vtx-backend-client/src/api/response-builder.ts"],"names":[],"mappings":";;;AAEA,gEAAwD;AAKxD,MAAM,MAAM,GAAG;IACb,GA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AAE,UAAU,EAAE,QAAQ,EAAE,WAAW,IAAK,4BAAU,CAAC,gBAAgB,CAAC,WAAW;SACjG,CAAA;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAGlB,CAAC"}
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;gBACnB;oBACE,IAAI,EAAC,QAAQ;oBACb,KAAK,EAAC,OAAO;iBACd;aACF,CAAC;QACJ,CAAC;IAEH,CAAC;SAAM,IAAI,QAAQ,EAAE,MAAM,EAAE,CAAC;QAG5B,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YACnC,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC;QACvC,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,SAAS,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACzC,CAA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K,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"}
@@ -1,9 +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 } 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, 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
5
  export declare class VTXBaseAPI {
8
6
  protected headers: APICallHeaders;
9
7
  protected backendUrl: string;
@@ -83,8 +81,6 @@ export declare class VTXBaseAPI {
83
81
  addAlbumsPictures(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<AddValuesResponse>>;
84
82
  editAlbumsPictures(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<Album>>;
85
83
  createAthleteAlbum(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<Album>>;
86
- deleteFundingCampaign(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
87
- updateFundingCampaign(dto: UpdateFundingCampaignDto): Promise<ITypedBackendResponse<FundRaisingCampaign>>;
88
84
  deleteAthleteAlbum(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
89
85
  getAthleteAlbums(): Promise<ITypedBackendResponse<Album[]>>;
90
86
  getPublicAthleteAlbums(athleteId: string): Promise<ITypedBackendResponse<Album[]>>;
@@ -96,7 +92,6 @@ export declare class VTXBaseAPI {
96
92
  getAthleteInstagramIntegration(): Promise<ITypedBackendResponse<AthleteIntegrationReference>>;
97
93
  getReceipt(dto: GetReceiptDto): Promise<ITypedBackendResponse<Receipt>>;
98
94
  getAthleteIntegrations(): Promise<ITypedBackendResponse<AthleteIntegrationReference>>;
99
- getAthleteCampaigns(dto: GetAthleteCampaignsDto): Promise<ITypedBackendResponse<FundRaisingCampaign[]>>;
100
95
  updateAthleteIntegration(type: string): Promise<ITypedBackendResponse<boolean>>;
101
96
  deleteUploadedTypeKeyFile(dto: AWSS3DeleteUseTypeKeyDto): Promise<ITypedBackendResponse<AWSS3CallResult>>;
102
97
  saveAthleteCompetitionResult(dto: SetCompetitionResultDto): Promise<ITypedBackendResponse<AthleteCompetitionResult>>;
@@ -107,4 +102,9 @@ export declare class VTXBaseAPI {
107
102
  resetUserPassword(input: resetPasswordDto): Promise<ITypedBackendResponse<EditValueResponse>>;
108
103
  deleteAlbumFotos(dto: DeleteValuesDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
109
104
  screenNameAviability(dto: existValueDto): Promise<ITypedBackendResponse<ExistValueResponse>>;
105
+ getBudgetsByAthlete(): Promise<ITypedBackendResponse<BudgetData>>;
106
+ deleteCompetitionBudget(competitionId: string): Promise<ITypedBackendResponse<Boolean>>;
107
+ addCompetitionBudget(input: AddCompetitionBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
108
+ editCompetitionBudget(input: EditCompetitionBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
109
+ editCampaignBudget(input: EditCampaignBudgetDto): Promise<ITypedBackendResponse<Boolean>>;
110
110
  }
@@ -2318,17 +2318,6 @@ class VTXBaseAPI {
2318
2318
  }
2319
2319
  },
2320
2320
  },
2321
- budget: {
2322
- _id: true,
2323
- initialFunds: true,
2324
- totalRequired: true,
2325
- items: {
2326
- _id: true,
2327
- quantity: true,
2328
- concept: true,
2329
- itemCost: true
2330
- }
2331
- },
2332
2321
  participationDate: true,
2333
2322
  result: {
2334
2323
  _id: true,
@@ -2766,13 +2755,6 @@ class VTXBaseAPI {
2766
2755
  preferences: {
2767
2756
  _id: true,
2768
2757
  showProfileHelper: true
2769
- },
2770
- userDomain: {
2771
- user: {
2772
- _id: true,
2773
- suspended: true,
2774
- loginEmail: true,
2775
- }
2776
2758
  }
2777
2759
  };
2778
2760
  let retValue;
@@ -4375,17 +4357,6 @@ class VTXBaseAPI {
4375
4357
  finishTimeMS: true,
4376
4358
  resultWebLink: true
4377
4359
  },
4378
- budget: {
4379
- _id: true,
4380
- initialFunds: true,
4381
- totalRequired: true,
4382
- items: {
4383
- _id: true,
4384
- quantity: true,
4385
- concept: true,
4386
- itemCost: true
4387
- }
4388
- },
4389
4360
  fundRaisingCampaignIds: true
4390
4361
  }
4391
4362
  };
@@ -5724,190 +5695,6 @@ class VTXBaseAPI {
5724
5695
  console.log(JSON.stringify(retValue, null, 2));
5725
5696
  return retValue;
5726
5697
  }
5727
- async deleteFundingCampaign(dto) {
5728
- console.log('HEADERS:');
5729
- console.log(JSON.stringify(this.headers, null, 2));
5730
- const client = (0, client_1.createClient)({
5731
- url: this.backendUrl + '/graphql',
5732
- headers: this.headers,
5733
- });
5734
- let retValue = {};
5735
- const fields = {
5736
- idToDelete: true,
5737
- deleted: true,
5738
- failureReason: {
5739
- code: true,
5740
- message: true
5741
- }
5742
- };
5743
- try {
5744
- const response = await client.mutation({
5745
- deleteFundingCampaign: {
5746
- __args: {
5747
- input: dto
5748
- },
5749
- ...fields
5750
- },
5751
- });
5752
- console.log('deleteFundingCampaign Response:');
5753
- console.log(JSON.stringify(response, null, 2));
5754
- retValue = (0, response_builder_1.buildResponse)(response, 'deleteFundingCampaign', (r) => {
5755
- const isResponseOk = response?.deleteFundingCampaign?.deleted;
5756
- return isResponseOk;
5757
- });
5758
- }
5759
- catch (err1) {
5760
- console.error('deleteFundingCampaign err1:');
5761
- console.error(err1);
5762
- retValue = (0, response_builder_1.buildErrorResponse)(err1);
5763
- }
5764
- console.log('retValue:');
5765
- console.log(JSON.stringify(retValue, null, 2));
5766
- return retValue;
5767
- }
5768
- async updateFundingCampaign(dto) {
5769
- console.log('HEADERS:');
5770
- console.log(JSON.stringify(this.headers, null, 2));
5771
- const client = (0, client_1.createClient)({
5772
- url: this.backendUrl + '/graphql',
5773
- headers: this.headers,
5774
- });
5775
- let retValue = {};
5776
- const fields = {
5777
- _id: true,
5778
- budgetMode: true,
5779
- status: true,
5780
- title: true,
5781
- motivation: true,
5782
- website: true,
5783
- fundsRequired: true,
5784
- initialFundsObtained: true,
5785
- fundsObtained: true,
5786
- vtxComissionPct: true,
5787
- location: {
5788
- userProvidedLatitude: true,
5789
- userProvidedLongitude: true,
5790
- cityNameGeocode: true,
5791
- stateNameGeocode: true,
5792
- countryIso2CodeGeocode: true,
5793
- timeZoneGeocode: true,
5794
- latitudeGeocode: true,
5795
- longitudeGeocode: true,
5796
- city: {
5797
- _id: true,
5798
- name: true,
5799
- localizedName: true,
5800
- state: {
5801
- _id: true,
5802
- name: true,
5803
- country: {
5804
- _id: true,
5805
- name: true
5806
- }
5807
- },
5808
- latitude: true,
5809
- longitude: true,
5810
- timezone: true,
5811
- }
5812
- },
5813
- endingDate: true,
5814
- budget: {
5815
- initialFunds: true,
5816
- totalRequired: true,
5817
- items: {
5818
- _id: true,
5819
- quantity: true,
5820
- concept: true,
5821
- itemCost: true
5822
- }
5823
- },
5824
- competitions: {
5825
- _id: true,
5826
- event: {
5827
- _id: true,
5828
- name: true,
5829
- mainSport: {
5830
- _id: true,
5831
- name: true
5832
- },
5833
- eventWebSite: true,
5834
- startDate: true,
5835
- endDate: true,
5836
- verified: true,
5837
- banner: {
5838
- _id: true,
5839
- name: true,
5840
- contentType: true,
5841
- size: true,
5842
- useType: true,
5843
- url: true,
5844
- key: true
5845
- },
5846
- location: {
5847
- _id: true,
5848
- userProvidedLatitude: true,
5849
- userProvidedLongitude: true,
5850
- cityNameGeocode: true,
5851
- stateNameGeocode: true,
5852
- countryIso2CodeGeocode: true,
5853
- timeZoneGeocode: true,
5854
- latitudeGeocode: true,
5855
- longitudeGeocode: true,
5856
- city: {
5857
- _id: true,
5858
- name: true,
5859
- localizedName: true,
5860
- state: {
5861
- _id: true,
5862
- name: true,
5863
- country: {
5864
- _id: true,
5865
- name: true
5866
- }
5867
- },
5868
- latitude: true,
5869
- longitude: true,
5870
- timezone: true,
5871
- }
5872
- },
5873
- },
5874
- participationDate: true,
5875
- competitionNumber: true,
5876
- result: {
5877
- resultType: true,
5878
- position: true,
5879
- score: true,
5880
- finishTimeMS: true,
5881
- resultWebLink: true
5882
- },
5883
- fundRaisingCampaignIds: true
5884
- }
5885
- };
5886
- try {
5887
- const response = await client.mutation({
5888
- updateFundingCampaign: {
5889
- __args: {
5890
- input: dto
5891
- },
5892
- ...fields
5893
- },
5894
- });
5895
- console.log('updateFundingCampaign Response:');
5896
- console.log(JSON.stringify(response, null, 2));
5897
- retValue = (0, response_builder_1.buildResponse)(response, 'updateFundingCampaign', (r) => {
5898
- const isResponseOk = response?.updateFundingCampaign?._id;
5899
- return isResponseOk;
5900
- });
5901
- }
5902
- catch (err1) {
5903
- console.error('updateFundingCampaign err1:');
5904
- console.error(err1);
5905
- retValue = (0, response_builder_1.buildErrorResponse)(err1);
5906
- }
5907
- console.log('retValue:');
5908
- console.log(JSON.stringify(retValue, null, 2));
5909
- return retValue;
5910
- }
5911
5698
  async deleteAthleteAlbum(dto) {
5912
5699
  console.log('HEADERS:');
5913
5700
  console.log(JSON.stringify(this.headers, null, 2));
@@ -6525,142 +6312,6 @@ class VTXBaseAPI {
6525
6312
  }
6526
6313
  return retValue;
6527
6314
  }
6528
- async getAthleteCampaigns(dto) {
6529
- const client = (0, client_1.createClient)({
6530
- url: this.backendUrl + '/graphql',
6531
- headers: this.headers,
6532
- });
6533
- let retValue = {};
6534
- const fields = {
6535
- _id: true,
6536
- budgetMode: true,
6537
- status: true,
6538
- title: true,
6539
- motivation: true,
6540
- website: true,
6541
- fundsRequired: true,
6542
- initialFundsObtained: true,
6543
- fundsObtained: true,
6544
- vtxComissionPct: true,
6545
- location: {
6546
- userProvidedLatitude: true,
6547
- userProvidedLongitude: true,
6548
- cityNameGeocode: true,
6549
- stateNameGeocode: true,
6550
- countryIso2CodeGeocode: true,
6551
- timeZoneGeocode: true,
6552
- latitudeGeocode: true,
6553
- longitudeGeocode: true,
6554
- city: {
6555
- _id: true,
6556
- name: true,
6557
- localizedName: true,
6558
- state: {
6559
- _id: true,
6560
- name: true,
6561
- country: {
6562
- _id: true,
6563
- name: true
6564
- }
6565
- },
6566
- latitude: true,
6567
- longitude: true,
6568
- timezone: true,
6569
- }
6570
- },
6571
- createdDate: true,
6572
- endingDate: true,
6573
- budget: {
6574
- initialFunds: true,
6575
- totalRequired: true,
6576
- items: {
6577
- _id: true,
6578
- quantity: true,
6579
- concept: true,
6580
- itemCost: true
6581
- }
6582
- },
6583
- competitions: {
6584
- _id: true,
6585
- event: {
6586
- _id: true,
6587
- name: true,
6588
- mainSport: {
6589
- _id: true,
6590
- name: true
6591
- },
6592
- eventWebSite: true,
6593
- startDate: true,
6594
- endDate: true,
6595
- verified: true,
6596
- banner: {
6597
- _id: true,
6598
- name: true,
6599
- contentType: true,
6600
- size: true,
6601
- useType: true,
6602
- url: true,
6603
- key: true
6604
- },
6605
- location: {
6606
- _id: true,
6607
- userProvidedLatitude: true,
6608
- userProvidedLongitude: true,
6609
- cityNameGeocode: true,
6610
- stateNameGeocode: true,
6611
- countryIso2CodeGeocode: true,
6612
- timeZoneGeocode: true,
6613
- latitudeGeocode: true,
6614
- longitudeGeocode: true,
6615
- city: {
6616
- _id: true,
6617
- name: true,
6618
- localizedName: true,
6619
- state: {
6620
- _id: true,
6621
- name: true,
6622
- country: {
6623
- _id: true,
6624
- name: true
6625
- }
6626
- },
6627
- latitude: true,
6628
- longitude: true,
6629
- timezone: true,
6630
- }
6631
- },
6632
- },
6633
- participationDate: true,
6634
- competitionNumber: true,
6635
- result: {
6636
- resultType: true,
6637
- position: true,
6638
- score: true,
6639
- finishTimeMS: true,
6640
- resultWebLink: true
6641
- },
6642
- fundRaisingCampaignIds: true
6643
- }
6644
- };
6645
- try {
6646
- const response = await client.query({
6647
- getAthleteCampaigns: {
6648
- __args: { input: dto },
6649
- ...fields
6650
- }
6651
- });
6652
- console.log('getAthleteCampaigns Response:');
6653
- console.log(JSON.stringify(response, null, 2));
6654
- retValue = (0, response_builder_1.buildResponse)(response, 'getAthleteCampaigns', (r) => {
6655
- const isResponseOk = true && Array.isArray(response?.getAthleteCampaigns);
6656
- return isResponseOk;
6657
- });
6658
- }
6659
- catch (err1) {
6660
- retValue = (0, response_builder_1.buildErrorResponse)(err1);
6661
- }
6662
- return retValue;
6663
- }
6664
6315
  async updateAthleteIntegration(type) {
6665
6316
  const client = (0, client_1.createClient)({
6666
6317
  url: this.backendUrl + '/graphql',
@@ -7036,6 +6687,184 @@ class VTXBaseAPI {
7036
6687
  console.log(JSON.stringify(retValue, null, 2));
7037
6688
  return retValue;
7038
6689
  }
6690
+ async getBudgetsByAthlete() {
6691
+ const client = (0, client_1.createClient)({
6692
+ url: this.backendUrl + '/graphql',
6693
+ headers: this.headers,
6694
+ });
6695
+ let retValue = {};
6696
+ const fields = {
6697
+ competitions: {
6698
+ id: true,
6699
+ dateCreated: true,
6700
+ type: true,
6701
+ name: true,
6702
+ eventDate: true,
6703
+ budget: true,
6704
+ campaign: true,
6705
+ items: {
6706
+ _id: true,
6707
+ concept: true,
6708
+ quantity: true,
6709
+ itemCost: true,
6710
+ totalCost: true
6711
+ }
6712
+ },
6713
+ campaigns: {
6714
+ id: true,
6715
+ dateCreated: true,
6716
+ type: true,
6717
+ name: true,
6718
+ status: true,
6719
+ endingDate: true,
6720
+ budget: true,
6721
+ competitions: true,
6722
+ items: {
6723
+ _id: true,
6724
+ concept: true,
6725
+ quantity: true,
6726
+ itemCost: true,
6727
+ totalCost: true
6728
+ },
6729
+ competitionBudgets: {
6730
+ competitionId: true,
6731
+ eventName: true,
6732
+ budget: {
6733
+ _id: true,
6734
+ items: {
6735
+ _id: true,
6736
+ concept: true,
6737
+ quantity: true,
6738
+ itemCost: true,
6739
+ totalCost: true
6740
+ },
6741
+ totalAmount: true
6742
+ }
6743
+ }
6744
+ },
6745
+ };
6746
+ try {
6747
+ const response = await client.query({
6748
+ getBudgetsByAthlete: {
6749
+ ...fields
6750
+ },
6751
+ });
6752
+ retValue = (0, response_builder_1.buildResponse)(response, 'getBudgetsByAthlete', (r) => {
6753
+ const isResponseOk = !!response?.getBudgetsByAthlete &&
6754
+ Array.isArray(response.getBudgetsByAthlete.campaigns) &&
6755
+ Array.isArray(response.getBudgetsByAthlete.competitions);
6756
+ return isResponseOk;
6757
+ });
6758
+ }
6759
+ catch (err) {
6760
+ retValue = (0, response_builder_1.buildErrorResponse)(err);
6761
+ }
6762
+ return retValue;
6763
+ }
6764
+ async deleteCompetitionBudget(competitionId) {
6765
+ const client = (0, client_1.createClient)({
6766
+ url: this.backendUrl + '/graphql',
6767
+ headers: this.headers,
6768
+ });
6769
+ let retValue = {};
6770
+ try {
6771
+ const response = await client.mutation({
6772
+ deleteCompetitionBudget: {
6773
+ __args: {
6774
+ competitionId: competitionId
6775
+ },
6776
+ },
6777
+ });
6778
+ retValue = (0, response_builder_1.buildResponse)(response, 'deleteCompetitionBudget', (r) => {
6779
+ const isResponseOk = response?.deleteCompetitionBudget;
6780
+ return isResponseOk;
6781
+ });
6782
+ }
6783
+ catch (err1) {
6784
+ console.error('deleteAthletePhotos err1:');
6785
+ console.error(err1);
6786
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
6787
+ }
6788
+ return retValue;
6789
+ }
6790
+ async addCompetitionBudget(input) {
6791
+ const client = (0, client_1.createClient)({
6792
+ url: this.backendUrl + '/graphql',
6793
+ headers: this.headers,
6794
+ });
6795
+ let retValue = {};
6796
+ try {
6797
+ const response = await client.mutation({
6798
+ addCompetitionBudget: {
6799
+ __args: {
6800
+ input: input
6801
+ },
6802
+ },
6803
+ });
6804
+ retValue = (0, response_builder_1.buildResponse)(response, 'addCompetitionBudget', (r) => {
6805
+ const isResponseOk = response?.addCompetitionBudget;
6806
+ return isResponseOk;
6807
+ });
6808
+ }
6809
+ catch (err1) {
6810
+ console.error('addCompetitionBudget err1:');
6811
+ console.error(err1);
6812
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
6813
+ }
6814
+ return retValue;
6815
+ }
6816
+ async editCompetitionBudget(input) {
6817
+ const client = (0, client_1.createClient)({
6818
+ url: this.backendUrl + '/graphql',
6819
+ headers: this.headers,
6820
+ });
6821
+ let retValue = {};
6822
+ try {
6823
+ const response = await client.mutation({
6824
+ editCompetitionBudget: {
6825
+ __args: {
6826
+ input: input
6827
+ },
6828
+ },
6829
+ });
6830
+ retValue = (0, response_builder_1.buildResponse)(response, 'editCompetitionBudget', (r) => {
6831
+ const isResponseOk = response?.editCompetitionBudget;
6832
+ return isResponseOk;
6833
+ });
6834
+ }
6835
+ catch (err1) {
6836
+ console.error('editCompetitionBudget err1:');
6837
+ console.error(err1);
6838
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
6839
+ }
6840
+ return retValue;
6841
+ }
6842
+ async editCampaignBudget(input) {
6843
+ const client = (0, client_1.createClient)({
6844
+ url: this.backendUrl + '/graphql',
6845
+ headers: this.headers,
6846
+ });
6847
+ let retValue = {};
6848
+ try {
6849
+ const response = await client.mutation({
6850
+ editCampaignBudget: {
6851
+ __args: {
6852
+ input: input
6853
+ },
6854
+ },
6855
+ });
6856
+ retValue = (0, response_builder_1.buildResponse)(response, 'editCampaignBudget', (r) => {
6857
+ const isResponseOk = response?.editCampaignBudget;
6858
+ return isResponseOk;
6859
+ });
6860
+ }
6861
+ catch (err1) {
6862
+ console.error('editCampaignBudget err1:');
6863
+ console.error(err1);
6864
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
6865
+ }
6866
+ return retValue;
6867
+ }
7039
6868
  }
7040
6869
  exports.VTXBaseAPI = VTXBaseAPI;
7041
6870
  VTXBaseAPI.Logger = {