@vertikalx/vtx-backend-client 1.0.0-dev.83 → 1.0.0-dev.85

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 (111) hide show
  1. package/package.json +1 -1
  2. package/src/api/api-call-headers.js.map +1 -0
  3. package/src/api/backend-response.js.map +1 -0
  4. package/src/api/domains.js.map +1 -0
  5. package/src/api/response-builder.js.map +1 -0
  6. package/src/api/types.js.map +1 -0
  7. package/src/api/vtx-apikey-api.js.map +1 -0
  8. package/{libs/vtx-backend-client/src → src}/api/vtx-base-api.d.ts +8 -6
  9. package/{libs/vtx-backend-client/src → src}/api/vtx-base-api.js +481 -0
  10. package/src/api/vtx-base-api.js.map +1 -0
  11. package/src/api/vtx-mobile-api.js.map +1 -0
  12. package/src/api/vtx-web-browser-api.js.map +1 -0
  13. package/src/api/vtx-web-server-api.js.map +1 -0
  14. package/src/client/index.js.map +1 -0
  15. package/src/client/runtime/batcher.js.map +1 -0
  16. package/src/client/runtime/createClient.js.map +1 -0
  17. package/src/client/runtime/error.js.map +1 -0
  18. package/src/client/runtime/fetcher.js.map +1 -0
  19. package/src/client/runtime/generateGraphqlOperation.js.map +1 -0
  20. package/src/client/runtime/index.js.map +1 -0
  21. package/src/client/runtime/linkTypeMap.js.map +1 -0
  22. package/src/client/runtime/typeSelection.js.map +1 -0
  23. package/src/client/runtime/types.js.map +1 -0
  24. package/{libs/vtx-backend-client/src → src}/client/schema.d.ts +73 -8
  25. package/src/client/schema.graphql +30 -9
  26. package/{libs/vtx-backend-client/src → src}/client/schema.js +16 -2
  27. package/src/client/schema.js.map +1 -0
  28. package/{libs/vtx-backend-client/src → src}/client/types.d.ts +38 -9
  29. package/{libs/vtx-backend-client/src → src}/client/types.js +219 -140
  30. package/src/client/types.js.map +1 -0
  31. package/src/index.js.map +1 -0
  32. package/tsconfig.lib.tsbuildinfo +1 -1
  33. package/libs/vtx-backend-client/package.json +0 -16
  34. package/libs/vtx-backend-client/src/api/api-call-headers.js.map +0 -1
  35. package/libs/vtx-backend-client/src/api/backend-response.js.map +0 -1
  36. package/libs/vtx-backend-client/src/api/domains.js.map +0 -1
  37. package/libs/vtx-backend-client/src/api/response-builder.js.map +0 -1
  38. package/libs/vtx-backend-client/src/api/types.js.map +0 -1
  39. package/libs/vtx-backend-client/src/api/vtx-apikey-api.js.map +0 -1
  40. package/libs/vtx-backend-client/src/api/vtx-base-api.js.map +0 -1
  41. package/libs/vtx-backend-client/src/api/vtx-mobile-api.js.map +0 -1
  42. package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js.map +0 -1
  43. package/libs/vtx-backend-client/src/api/vtx-web-server-api.js.map +0 -1
  44. package/libs/vtx-backend-client/src/client/index.js.map +0 -1
  45. package/libs/vtx-backend-client/src/client/runtime/batcher.js.map +0 -1
  46. package/libs/vtx-backend-client/src/client/runtime/createClient.js.map +0 -1
  47. package/libs/vtx-backend-client/src/client/runtime/error.js.map +0 -1
  48. package/libs/vtx-backend-client/src/client/runtime/fetcher.js.map +0 -1
  49. package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js.map +0 -1
  50. package/libs/vtx-backend-client/src/client/runtime/index.js.map +0 -1
  51. package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js.map +0 -1
  52. package/libs/vtx-backend-client/src/client/runtime/typeSelection.js.map +0 -1
  53. package/libs/vtx-backend-client/src/client/runtime/types.js.map +0 -1
  54. package/libs/vtx-backend-client/src/client/schema.js.map +0 -1
  55. package/libs/vtx-backend-client/src/client/types.js.map +0 -1
  56. package/libs/vtx-backend-client/src/index.js.map +0 -1
  57. package/src/api/dto/edit-picture.dto.d.ts +0 -5
  58. package/src/api/dto/edit-picture.dto.js +0 -31
  59. package/src/api/dto/edit-picture.dto.js.map +0 -1
  60. package/src/api/types/add-values-response.type.d.ts +0 -7
  61. package/src/api/types/add-values-response.type.js +0 -42
  62. package/src/api/types/add-values-response.type.js.map +0 -1
  63. package/src/api/types/delete-single-value-response.type.d.ts +0 -6
  64. package/src/api/types/delete-single-value-response.type.js +0 -36
  65. package/src/api/types/delete-single-value-response.type.js.map +0 -1
  66. package/src/api/types/edit-picture-response.type.d.ts +0 -7
  67. package/src/api/types/edit-picture-response.type.js +0 -39
  68. package/src/api/types/edit-picture-response.type.js.map +0 -1
  69. package/src/api/types/error.type.d.ts +0 -4
  70. package/src/api/types/error.type.js +0 -28
  71. package/src/api/types/error.type.js.map +0 -1
  72. /package/{libs/vtx-backend-client/src → src}/api/api-call-headers.d.ts +0 -0
  73. /package/{libs/vtx-backend-client/src → src}/api/api-call-headers.js +0 -0
  74. /package/{libs/vtx-backend-client/src → src}/api/backend-response.d.ts +0 -0
  75. /package/{libs/vtx-backend-client/src → src}/api/backend-response.js +0 -0
  76. /package/{libs/vtx-backend-client/src → src}/api/domains.d.ts +0 -0
  77. /package/{libs/vtx-backend-client/src → src}/api/domains.js +0 -0
  78. /package/{libs/vtx-backend-client/src → src}/api/response-builder.d.ts +0 -0
  79. /package/{libs/vtx-backend-client/src → src}/api/response-builder.js +0 -0
  80. /package/{libs/vtx-backend-client/src → src}/api/types.d.ts +0 -0
  81. /package/{libs/vtx-backend-client/src → src}/api/types.js +0 -0
  82. /package/{libs/vtx-backend-client/src → src}/api/vtx-apikey-api.d.ts +0 -0
  83. /package/{libs/vtx-backend-client/src → src}/api/vtx-apikey-api.js +0 -0
  84. /package/{libs/vtx-backend-client/src → src}/api/vtx-mobile-api.d.ts +0 -0
  85. /package/{libs/vtx-backend-client/src → src}/api/vtx-mobile-api.js +0 -0
  86. /package/{libs/vtx-backend-client/src → src}/api/vtx-web-browser-api.d.ts +0 -0
  87. /package/{libs/vtx-backend-client/src → src}/api/vtx-web-browser-api.js +0 -0
  88. /package/{libs/vtx-backend-client/src → src}/api/vtx-web-server-api.d.ts +0 -0
  89. /package/{libs/vtx-backend-client/src → src}/api/vtx-web-server-api.js +0 -0
  90. /package/{libs/vtx-backend-client/src → src}/client/index.d.ts +0 -0
  91. /package/{libs/vtx-backend-client/src → src}/client/index.js +0 -0
  92. /package/{libs/vtx-backend-client/src → src}/client/runtime/batcher.d.ts +0 -0
  93. /package/{libs/vtx-backend-client/src → src}/client/runtime/batcher.js +0 -0
  94. /package/{libs/vtx-backend-client/src → src}/client/runtime/createClient.d.ts +0 -0
  95. /package/{libs/vtx-backend-client/src → src}/client/runtime/createClient.js +0 -0
  96. /package/{libs/vtx-backend-client/src → src}/client/runtime/error.d.ts +0 -0
  97. /package/{libs/vtx-backend-client/src → src}/client/runtime/error.js +0 -0
  98. /package/{libs/vtx-backend-client/src → src}/client/runtime/fetcher.d.ts +0 -0
  99. /package/{libs/vtx-backend-client/src → src}/client/runtime/fetcher.js +0 -0
  100. /package/{libs/vtx-backend-client/src → src}/client/runtime/generateGraphqlOperation.d.ts +0 -0
  101. /package/{libs/vtx-backend-client/src → src}/client/runtime/generateGraphqlOperation.js +0 -0
  102. /package/{libs/vtx-backend-client/src → src}/client/runtime/index.d.ts +0 -0
  103. /package/{libs/vtx-backend-client/src → src}/client/runtime/index.js +0 -0
  104. /package/{libs/vtx-backend-client/src → src}/client/runtime/linkTypeMap.d.ts +0 -0
  105. /package/{libs/vtx-backend-client/src → src}/client/runtime/linkTypeMap.js +0 -0
  106. /package/{libs/vtx-backend-client/src → src}/client/runtime/typeSelection.d.ts +0 -0
  107. /package/{libs/vtx-backend-client/src → src}/client/runtime/typeSelection.js +0 -0
  108. /package/{libs/vtx-backend-client/src → src}/client/runtime/types.d.ts +0 -0
  109. /package/{libs/vtx-backend-client/src → src}/client/runtime/types.js +0 -0
  110. /package/{libs/vtx-backend-client/src → src}/index.d.ts +0 -0
  111. /package/{libs/vtx-backend-client/src → src}/index.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-dev.83",
3
+ "version": "1.0.0-dev.85",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -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;AAS/D,QAAA,gBAAgB,GAAG,gCAAgC,CAAC;AACpD,QAAA,mBAAmB,GAAG,gCAAgC,CAAC;AACvD,QAAA,sBAAsB,GAAG,gCAAgC,CAAC;AAC1D,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAGhD,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,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AAU,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,QAAe,EAAE,WAAkB,EAAE,UAAkB;QAC/D,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,UAAU,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,9 +1,6 @@
1
- import { User, UserToken, UserWithToken, Athlete, RegisterAthleteDto, Brand, CreateBrandDto, BrandGenqlSelection, AWSS3UploadUrl, AWSS3GetUploadDto, CreateTenantInput, Tenant, TenantWithUserLogin, RegisterUserToDomainFromEmailInput, DecodedToken, Sponsorship, SponsorshipGenqlSelection, CreateSponsorshipDto, SponsorAthleteInvitation, InviteAthletesDto, RegisterUserDto, VerificationCode, VerifyCodeDto, FindSponsorAthleteInvitationDto, FindVtxUserDto, City, SportLevel, Sport, UserImages, EditValueResponse, CreateAthleteCompetitionDto, AthleteCompetition, GetSportEventsDto, SportsEvent, CreateSportEventDto, GetAthleteCompetitionsDto, AthleteMembership, AthleteMembershipGenqlSelection, MembershipOrganizationReferenceGenqlSelection, MembershipOrganizationReference, CreateMembershipOrganizationDto, CreateAthleteMembershipDto, DeleteSingleValueDto, DeleteSingleValueResponse, FundRaisingCampaign, CreateFundingCampaignDto, FundRaisingCampaignGenqlSelection, AthleteQueryDto, AthleteQueryResponse, StripeSessionGenqlSelection, CreateStripeAccountDto, StripeSession, StripeAccountReferenceGenqlSelection, StripeAccountReference, StripeCheckoutSessionGenqlSelection, StripeCheckoutSession, DonationCheckoutDto, GetDatabaseFileDto, TextDatabaseFileGenqlSelection, TextDatabaseFile, StripeQueryDto, StripeObject, SetFundingStatusDto, EditPictureResponse, UploadAlbumsPicturesDto, AWSS3DeleteUseTypeFileDto } 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, AWSS3DeleteUseTypeFileDto, EditPictureDto, Album } from '../client';
2
2
  import { ITypedBackendResponse } from './backend-response';
3
3
  import { APICallHeaders } from './api-call-headers';
4
- import { EditPictureDto } from 'src/api/dto/edit-picture.dto';
5
- import { DeleteSingleValueResponseType } from 'src/api/types/delete-single-value-response.type';
6
- import { AddValuesResponseType } from 'src/api/types/add-values-response.type';
7
4
  export declare class VTXBaseAPI {
8
5
  protected headers: APICallHeaders;
9
6
  protected backendUrl: string;
@@ -77,6 +74,11 @@ export declare class VTXBaseAPI {
77
74
  setFundingStatus(dto: SetFundingStatusDto, desiredFields?: FundRaisingCampaignGenqlSelection): Promise<ITypedBackendResponse<FundRaisingCampaign>>;
78
75
  findAthleteForIdPublic(id: string): Promise<ITypedBackendResponse<Athlete>>;
79
76
  editPicture(newPicDto: EditPictureDto): Promise<ITypedBackendResponse<EditPictureResponse>>;
80
- DeletePictureFromBuket(deleteDto: AWSS3DeleteUseTypeFileDto): Promise<ITypedBackendResponse<DeleteSingleValueResponseType>>;
81
- addAlbumsPictures(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<AddValuesResponseType>>;
77
+ DeletePictureFromBuket(deleteDto: AWSS3DeleteUseTypeFileDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
78
+ addAlbumsPictures(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<AddValuesResponse>>;
79
+ createAthleteAlbum(dto: UploadAlbumsPicturesDto): Promise<ITypedBackendResponse<Album>>;
80
+ deleteAthleteAlbum(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
81
+ getAthleteAlbums(): Promise<ITypedBackendResponse<Album[]>>;
82
+ getAthleteAlbumsById(): Promise<ITypedBackendResponse<Album>>;
83
+ queryAthletesWithFilters(dto: AthleteQueryDto): Promise<ITypedBackendResponse<AthleteQueryResponse>>;
82
84
  }
@@ -2150,6 +2150,15 @@ class VTXBaseAPI {
2150
2150
  url: true,
2151
2151
  key: true
2152
2152
  },
2153
+ bannerPicture: {
2154
+ _id: true,
2155
+ name: true,
2156
+ contentType: true,
2157
+ size: true,
2158
+ useType: true,
2159
+ url: true,
2160
+ key: true
2161
+ },
2153
2162
  preferences: {
2154
2163
  _id: true,
2155
2164
  showProfileHelper: true
@@ -5709,6 +5718,478 @@ class VTXBaseAPI {
5709
5718
  console.log(JSON.stringify(retValue, null, 2));
5710
5719
  return retValue;
5711
5720
  }
5721
+ async createAthleteAlbum(dto) {
5722
+ console.log('HEADERS:');
5723
+ console.log(JSON.stringify(this.headers, null, 2));
5724
+ const client = (0, client_1.createClient)({
5725
+ url: this.backendUrl + '/graphql',
5726
+ headers: this.headers,
5727
+ });
5728
+ let retValue = {};
5729
+ const fields = {
5730
+ label: true,
5731
+ description: true,
5732
+ photos: {
5733
+ _id: true,
5734
+ photo: {
5735
+ _id: true,
5736
+ name: true,
5737
+ contentType: true,
5738
+ size: true,
5739
+ useType: true,
5740
+ url: true,
5741
+ }
5742
+ }
5743
+ };
5744
+ try {
5745
+ const response = await client.mutation({
5746
+ createAthleteAlbum: {
5747
+ __args: {
5748
+ input: dto
5749
+ },
5750
+ ...fields
5751
+ },
5752
+ });
5753
+ console.log('createAthleteAlbum Response:');
5754
+ console.log(JSON.stringify(response, null, 2));
5755
+ retValue = (0, response_builder_1.buildResponse)(response, 'createAthleteAlbum', (r) => {
5756
+ const isResponseOk = response?.createAthleteAlbum?._id;
5757
+ return isResponseOk;
5758
+ });
5759
+ }
5760
+ catch (err1) {
5761
+ console.error('createAthleteAlbum err1:');
5762
+ console.error(err1);
5763
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
5764
+ }
5765
+ console.log('retValue:');
5766
+ console.log(JSON.stringify(retValue, null, 2));
5767
+ return retValue;
5768
+ }
5769
+ async deleteAthleteAlbum(dto) {
5770
+ console.log('HEADERS:');
5771
+ console.log(JSON.stringify(this.headers, null, 2));
5772
+ const client = (0, client_1.createClient)({
5773
+ url: this.backendUrl + '/graphql',
5774
+ headers: this.headers,
5775
+ });
5776
+ let retValue = {};
5777
+ const fields = {
5778
+ idToDelete: true,
5779
+ deleted: true,
5780
+ failureReason: {
5781
+ code: true,
5782
+ message: true
5783
+ }
5784
+ };
5785
+ try {
5786
+ const response = await client.mutation({
5787
+ deleteAthleteAlbum: {
5788
+ __args: {
5789
+ input: dto
5790
+ },
5791
+ ...fields
5792
+ },
5793
+ });
5794
+ console.log('deleteAthleteAlbum Response:');
5795
+ console.log(JSON.stringify(response, null, 2));
5796
+ retValue = (0, response_builder_1.buildResponse)(response, 'deleteAthleteAlbum', (r) => {
5797
+ const isResponseOk = response?.deleteAthleteAlbum?.deleted;
5798
+ return isResponseOk;
5799
+ });
5800
+ }
5801
+ catch (err1) {
5802
+ console.error('createAthleteAlbum err1:');
5803
+ console.error(err1);
5804
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
5805
+ }
5806
+ console.log('retValue:');
5807
+ console.log(JSON.stringify(retValue, null, 2));
5808
+ return retValue;
5809
+ }
5810
+ async getAthleteAlbums() {
5811
+ console.log('HEADERS:');
5812
+ console.log(JSON.stringify(this.headers, null, 2));
5813
+ const client = (0, client_1.createClient)({
5814
+ url: this.backendUrl + '/graphql',
5815
+ headers: this.headers,
5816
+ });
5817
+ let retValue = {};
5818
+ const fields = {
5819
+ label: true,
5820
+ description: true,
5821
+ photos: {
5822
+ _id: true,
5823
+ photo: {
5824
+ _id: true,
5825
+ name: true,
5826
+ contentType: true,
5827
+ size: true,
5828
+ useType: true,
5829
+ url: true,
5830
+ }
5831
+ }
5832
+ };
5833
+ try {
5834
+ const response = await client.query({
5835
+ getAthleteAlbums: {
5836
+ __args: {},
5837
+ ...fields
5838
+ },
5839
+ });
5840
+ console.log('getAthleteAlbums Response:');
5841
+ console.log(JSON.stringify(response, null, 2));
5842
+ retValue = (0, response_builder_1.buildResponse)(response, 'getAthleteAlbums', (r) => {
5843
+ const isResponseOk = response?.getAthleteAlbums?.length > 0;
5844
+ return isResponseOk;
5845
+ });
5846
+ }
5847
+ catch (err1) {
5848
+ console.error('getAthleteAlbums err1:');
5849
+ console.error(err1);
5850
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
5851
+ }
5852
+ console.log('retValue:');
5853
+ console.log(JSON.stringify(retValue, null, 2));
5854
+ return retValue;
5855
+ }
5856
+ async getAthleteAlbumsById() {
5857
+ console.log('HEADERS:');
5858
+ console.log(JSON.stringify(this.headers, null, 2));
5859
+ const client = (0, client_1.createClient)({
5860
+ url: this.backendUrl + '/graphql',
5861
+ headers: this.headers,
5862
+ });
5863
+ let retValue = {};
5864
+ const fields = {
5865
+ label: true,
5866
+ description: true,
5867
+ photos: {
5868
+ _id: true,
5869
+ photo: {
5870
+ _id: true,
5871
+ name: true,
5872
+ contentType: true,
5873
+ size: true,
5874
+ useType: true,
5875
+ url: true,
5876
+ }
5877
+ }
5878
+ };
5879
+ try {
5880
+ const response = await client.query({
5881
+ getAthleteAlbums: {
5882
+ __args: {},
5883
+ ...fields
5884
+ },
5885
+ });
5886
+ console.log('getAthleteAlbums Response:');
5887
+ console.log(JSON.stringify(response, null, 2));
5888
+ retValue = (0, response_builder_1.buildResponse)(response, 'getAthleteAlbums', (r) => {
5889
+ const isResponseOk = response?.getAthleteAlbums?.length > 0;
5890
+ return isResponseOk;
5891
+ });
5892
+ }
5893
+ catch (err1) {
5894
+ console.error('getAthleteAlbums err1:');
5895
+ console.error(err1);
5896
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
5897
+ }
5898
+ console.log('retValue:');
5899
+ console.log(JSON.stringify(retValue, null, 2));
5900
+ return retValue;
5901
+ }
5902
+ async queryAthletesWithFilters(dto) {
5903
+ const client = (0, client_1.createClient)({
5904
+ url: this.backendUrl + "/graphql",
5905
+ headers: this.headers,
5906
+ });
5907
+ const fieldsAthlete = {
5908
+ _id: true,
5909
+ firstName: true,
5910
+ lastName: true,
5911
+ screenName: true,
5912
+ dob: true,
5913
+ lgbt: true,
5914
+ competitionGender: true,
5915
+ country: {
5916
+ _id: true,
5917
+ name: true
5918
+ },
5919
+ location: {
5920
+ userProvidedLatitude: true,
5921
+ userProvidedLongitude: true,
5922
+ cityNameGeocode: true,
5923
+ stateNameGeocode: true,
5924
+ countryIso2CodeGeocode: true,
5925
+ timeZoneGeocode: true,
5926
+ latitudeGeocode: true,
5927
+ longitudeGeocode: true,
5928
+ city: {
5929
+ _id: true,
5930
+ name: true,
5931
+ localizedName: true,
5932
+ state: {
5933
+ _id: true,
5934
+ name: true,
5935
+ country: {
5936
+ _id: true,
5937
+ name: true
5938
+ }
5939
+ },
5940
+ latitude: true,
5941
+ longitude: true,
5942
+ timezone: true,
5943
+ }
5944
+ },
5945
+ trainer: true,
5946
+ trainerUrl: true,
5947
+ aboutMe: true,
5948
+ mainSport: {
5949
+ _id: true,
5950
+ name: true
5951
+ },
5952
+ mainSportLevel: {
5953
+ _id: true,
5954
+ label: true,
5955
+ index: true
5956
+ },
5957
+ scores: {
5958
+ vtxScore: true,
5959
+ socialScore: true,
5960
+ trainingScore: true,
5961
+ competitionScore: true
5962
+ },
5963
+ competitions: {
5964
+ _id: true,
5965
+ event: {
5966
+ _id: true,
5967
+ name: true,
5968
+ mainSport: {
5969
+ _id: true,
5970
+ name: true
5971
+ },
5972
+ eventWebSite: true,
5973
+ startDate: true,
5974
+ endDate: true,
5975
+ verified: true,
5976
+ banner: {
5977
+ _id: true,
5978
+ name: true,
5979
+ contentType: true,
5980
+ size: true,
5981
+ useType: true,
5982
+ url: true,
5983
+ key: true
5984
+ },
5985
+ location: {
5986
+ _id: true,
5987
+ userProvidedLatitude: true,
5988
+ userProvidedLongitude: true,
5989
+ cityNameGeocode: true,
5990
+ stateNameGeocode: true,
5991
+ countryIso2CodeGeocode: true,
5992
+ timeZoneGeocode: true,
5993
+ latitudeGeocode: true,
5994
+ longitudeGeocode: true,
5995
+ city: {
5996
+ _id: true,
5997
+ name: true,
5998
+ localizedName: true,
5999
+ state: {
6000
+ _id: true,
6001
+ name: true,
6002
+ country: {
6003
+ _id: true,
6004
+ name: true
6005
+ }
6006
+ },
6007
+ latitude: true,
6008
+ longitude: true,
6009
+ timezone: true,
6010
+ }
6011
+ },
6012
+ },
6013
+ participationDate: true,
6014
+ result: {
6015
+ _id: true,
6016
+ resultType: true,
6017
+ position: true,
6018
+ score: true,
6019
+ finishTimeMS: true,
6020
+ resultWebLink: true
6021
+ }
6022
+ },
6023
+ totalUpcomingCompetitions: true,
6024
+ totalPastCompetitions: true,
6025
+ profilePicture: {
6026
+ _id: true,
6027
+ name: true,
6028
+ contentType: true,
6029
+ size: true,
6030
+ useType: true,
6031
+ url: true,
6032
+ key: true
6033
+ },
6034
+ cardPicture: {
6035
+ _id: true,
6036
+ name: true,
6037
+ contentType: true,
6038
+ size: true,
6039
+ useType: true,
6040
+ url: true,
6041
+ key: true
6042
+ },
6043
+ currentCampaign: {
6044
+ _id: true,
6045
+ budgetMode: true,
6046
+ status: true,
6047
+ title: true,
6048
+ motivation: true,
6049
+ website: true,
6050
+ fundsRequired: true,
6051
+ initialFundsObtained: true,
6052
+ fundsObtained: true,
6053
+ location: {
6054
+ _id: true,
6055
+ userProvidedLatitude: true,
6056
+ userProvidedLongitude: true,
6057
+ cityNameGeocode: true,
6058
+ stateNameGeocode: true,
6059
+ countryIso2CodeGeocode: true,
6060
+ timeZoneGeocode: true,
6061
+ latitudeGeocode: true,
6062
+ longitudeGeocode: true,
6063
+ city: {
6064
+ _id: true,
6065
+ name: true,
6066
+ localizedName: true,
6067
+ state: {
6068
+ _id: true,
6069
+ name: true,
6070
+ country: {
6071
+ _id: true,
6072
+ name: true
6073
+ }
6074
+ },
6075
+ latitude: true,
6076
+ longitude: true,
6077
+ timezone: true,
6078
+ }
6079
+ },
6080
+ endingDate: true,
6081
+ budget: {
6082
+ _id: true,
6083
+ initialFunds: true,
6084
+ totalRequired: true,
6085
+ items: {
6086
+ _id: true,
6087
+ quantity: true,
6088
+ concept: true,
6089
+ itemCost: true
6090
+ }
6091
+ },
6092
+ competitions: {
6093
+ _id: true,
6094
+ event: {
6095
+ _id: true,
6096
+ name: true,
6097
+ mainSport: {
6098
+ _id: true,
6099
+ name: true
6100
+ },
6101
+ eventWebSite: true,
6102
+ startDate: true,
6103
+ endDate: true,
6104
+ verified: true,
6105
+ banner: {
6106
+ _id: true,
6107
+ name: true,
6108
+ contentType: true,
6109
+ size: true,
6110
+ useType: true,
6111
+ url: true,
6112
+ key: true
6113
+ },
6114
+ location: {
6115
+ _id: true,
6116
+ userProvidedLatitude: true,
6117
+ userProvidedLongitude: true,
6118
+ cityNameGeocode: true,
6119
+ stateNameGeocode: true,
6120
+ countryIso2CodeGeocode: true,
6121
+ timeZoneGeocode: true,
6122
+ latitudeGeocode: true,
6123
+ longitudeGeocode: true,
6124
+ city: {
6125
+ _id: true,
6126
+ name: true,
6127
+ localizedName: true,
6128
+ state: {
6129
+ _id: true,
6130
+ name: true,
6131
+ country: {
6132
+ _id: true,
6133
+ name: true
6134
+ }
6135
+ },
6136
+ latitude: true,
6137
+ longitude: true,
6138
+ timezone: true,
6139
+ }
6140
+ },
6141
+ },
6142
+ participationDate: true,
6143
+ result: {
6144
+ _id: true,
6145
+ resultType: true,
6146
+ position: true,
6147
+ score: true,
6148
+ finishTimeMS: true,
6149
+ resultWebLink: true
6150
+ }
6151
+ }
6152
+ }
6153
+ };
6154
+ const fields = {
6155
+ athletes: fieldsAthlete,
6156
+ cursor: {
6157
+ sort: {
6158
+ sortField: true,
6159
+ order: true
6160
+ },
6161
+ initialCursorId: true,
6162
+ nextCursorId: true,
6163
+ initialCursorValue: true,
6164
+ nextCursorValue: true,
6165
+ limit: true,
6166
+ retrieved: true,
6167
+ isLastPage: true
6168
+ }
6169
+ };
6170
+ let retValue;
6171
+ try {
6172
+ const response = await client.query({
6173
+ queryAthleteWithFilter: {
6174
+ __args: { input: dto },
6175
+ ...fields
6176
+ }
6177
+ });
6178
+ VTXBaseAPI.Logger.debug('queryAthletesWithFilters Response:');
6179
+ VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
6180
+ retValue = (0, response_builder_1.buildResponse)(response, 'queryAthletesWithFilters', (r) => {
6181
+ VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
6182
+ const isResponseOk = true && Array.isArray(response?.queryAthletesWithFilters?.athletes);
6183
+ return isResponseOk;
6184
+ });
6185
+ }
6186
+ catch (err1) {
6187
+ VTXBaseAPI.Logger.error('queryAthleteFundingCampaigns err1:');
6188
+ VTXBaseAPI.Logger.error(err1);
6189
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
6190
+ }
6191
+ return retValue;
6192
+ }
5712
6193
  }
5713
6194
  exports.VTXBaseAPI = VTXBaseAPI;
5714
6195
  VTXBaseAPI.Logger = {