@vertikalx/vtx-backend-client 1.0.0-dev-geo.77 → 1.0.0-dev-david.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-dev-geo.77",
3
+ "version": "1.0.0-dev-david.2",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -1,4 +1,4 @@
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, CodeVerificationResponse, resetPasswordDto, DeleteValuesDto } 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, CodeVerificationResponse, resetPasswordDto } 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';
@@ -91,5 +91,4 @@ export declare class VTXBaseAPI {
91
91
  getResetVerificationCode(id: string): Promise<ITypedBackendResponse<VerificationCodeType>>;
92
92
  verifyCode(input: VerifyCodeDto): Promise<ITypedBackendResponse<CodeVerificationResponse>>;
93
93
  resetUserPassword(input: resetPasswordDto): Promise<ITypedBackendResponse<EditValueResponse>>;
94
- deleteAlbumFotos(dto: DeleteValuesDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
95
94
  }
@@ -5930,7 +5930,7 @@ class VTXBaseAPI {
5930
5930
  });
5931
5931
  }
5932
5932
  catch (err1) {
5933
- console.error('getAthleteAlbums err1:');
5933
+ console.error('getAthleteAlbumId err1:');
5934
5934
  console.error(err1);
5935
5935
  retValue = (0, response_builder_1.buildErrorResponse)(err1);
5936
5936
  }
@@ -6547,48 +6547,6 @@ class VTXBaseAPI {
6547
6547
  console.log(JSON.stringify(retValue, null, 2));
6548
6548
  return retValue;
6549
6549
  }
6550
- async deleteAlbumFotos(dto) {
6551
- console.log('HEADERS:');
6552
- console.log(JSON.stringify(this.headers, null, 2));
6553
- const client = (0, client_1.createClient)({
6554
- url: this.backendUrl + '/graphql',
6555
- headers: this.headers,
6556
- });
6557
- let retValue = {};
6558
- const fields = {
6559
- deleted: true,
6560
- failedToDelete: true,
6561
- failureReason: {
6562
- code: true,
6563
- message: true
6564
- },
6565
- result: true,
6566
- };
6567
- try {
6568
- const response = await client.mutation({
6569
- deleteAthletePhotos: {
6570
- __args: {
6571
- input: dto
6572
- },
6573
- ...fields
6574
- },
6575
- });
6576
- console.log('deleteAthletePhotos Response:');
6577
- console.log(JSON.stringify(response, null, 2));
6578
- retValue = (0, response_builder_1.buildResponse)(response, 'deleteAthletePhotos', (r) => {
6579
- const isResponseOk = response?.deleteAthletePhotos?.deleted.length > 0;
6580
- return isResponseOk;
6581
- });
6582
- }
6583
- catch (err1) {
6584
- console.error('deleteAthletePhotos err1:');
6585
- console.error(err1);
6586
- retValue = (0, response_builder_1.buildErrorResponse)(err1);
6587
- }
6588
- console.log('retValue:');
6589
- console.log(JSON.stringify(retValue, null, 2));
6590
- return retValue;
6591
- }
6592
6550
  }
6593
6551
  exports.VTXBaseAPI = VTXBaseAPI;
6594
6552
  VTXBaseAPI.Logger = {