@vertikalx/vtx-backend-client 1.0.0-dev-daniel.241 → 1.0.0-dev-geo.87
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/vtx-base-api.d.ts +2 -1
- package/src/api/vtx-base-api.js +36 -0
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +17 -81
- package/src/client/schema.js +10 -17
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +7 -42
- package/src/client/types.js +545 -642
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -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, SetCompetitionResultDto, AthleteCompetitionResult, 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, SetCompetitionResultDto, AthleteCompetitionResult, CodeVerificationResponse, resetPasswordDto, DeleteValuesDto, existValueDto, ExistValueResponse } 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';
|
|
@@ -99,4 +99,5 @@ export declare class VTXBaseAPI {
|
|
|
99
99
|
verifyCode(input: VerifyCodeDto): Promise<ITypedBackendResponse<CodeVerificationResponse>>;
|
|
100
100
|
resetUserPassword(input: resetPasswordDto): Promise<ITypedBackendResponse<EditValueResponse>>;
|
|
101
101
|
deleteAlbumFotos(dto: DeleteValuesDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
|
|
102
|
+
screenNameAviability(dto: existValueDto): Promise<ITypedBackendResponse<ExistValueResponse>>;
|
|
102
103
|
}
|
package/src/api/vtx-base-api.js
CHANGED
|
@@ -6986,6 +6986,42 @@ class VTXBaseAPI {
|
|
|
6986
6986
|
console.log(JSON.stringify(retValue, null, 2));
|
|
6987
6987
|
return retValue;
|
|
6988
6988
|
}
|
|
6989
|
+
async screenNameAviability(dto) {
|
|
6990
|
+
console.log('HEADERS:');
|
|
6991
|
+
console.log(JSON.stringify(this.headers, null, 2));
|
|
6992
|
+
const client = (0, client_1.createClient)({
|
|
6993
|
+
url: this.backendUrl + '/graphql',
|
|
6994
|
+
headers: this.headers,
|
|
6995
|
+
});
|
|
6996
|
+
let retValue = {};
|
|
6997
|
+
const fields = {
|
|
6998
|
+
exist: true
|
|
6999
|
+
};
|
|
7000
|
+
try {
|
|
7001
|
+
const response = await client.query({
|
|
7002
|
+
screenNameAvailability: {
|
|
7003
|
+
__args: {
|
|
7004
|
+
input: dto
|
|
7005
|
+
},
|
|
7006
|
+
...fields
|
|
7007
|
+
},
|
|
7008
|
+
});
|
|
7009
|
+
console.log('screenNameAvailability Response:');
|
|
7010
|
+
console.log(JSON.stringify(response, null, 2));
|
|
7011
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'screenNameAvailability', (r) => {
|
|
7012
|
+
const isResponseOk = response?.screenNameAvailability?.exist === false || response?.screenNameAvailability?.exist === true;
|
|
7013
|
+
return isResponseOk;
|
|
7014
|
+
});
|
|
7015
|
+
}
|
|
7016
|
+
catch (err1) {
|
|
7017
|
+
console.error('screenNameAvailability err1:');
|
|
7018
|
+
console.error(err1);
|
|
7019
|
+
retValue = (0, response_builder_1.buildErrorResponse)(err1);
|
|
7020
|
+
}
|
|
7021
|
+
console.log('retValue:');
|
|
7022
|
+
console.log(JSON.stringify(retValue, null, 2));
|
|
7023
|
+
return retValue;
|
|
7024
|
+
}
|
|
6989
7025
|
}
|
|
6990
7026
|
exports.VTXBaseAPI = VTXBaseAPI;
|
|
6991
7027
|
VTXBaseAPI.Logger = {
|