@vertikalx/vtx-backend-client 1.0.0-dev-daniel.242 → 1.0.0-dev-geo.89
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 +21 -0
- package/src/client/schema.js +8 -1
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +11 -0
- package/src/client/types.js +131 -106
- 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
|
@@ -7005,6 +7005,42 @@ class VTXBaseAPI {
|
|
|
7005
7005
|
console.log(JSON.stringify(retValue, null, 2));
|
|
7006
7006
|
return retValue;
|
|
7007
7007
|
}
|
|
7008
|
+
async screenNameAviability(dto) {
|
|
7009
|
+
console.log('HEADERS:');
|
|
7010
|
+
console.log(JSON.stringify(this.headers, null, 2));
|
|
7011
|
+
const client = (0, client_1.createClient)({
|
|
7012
|
+
url: this.backendUrl + '/graphql',
|
|
7013
|
+
headers: this.headers,
|
|
7014
|
+
});
|
|
7015
|
+
let retValue = {};
|
|
7016
|
+
const fields = {
|
|
7017
|
+
exist: true
|
|
7018
|
+
};
|
|
7019
|
+
try {
|
|
7020
|
+
const response = await client.query({
|
|
7021
|
+
screenNameAvailability: {
|
|
7022
|
+
__args: {
|
|
7023
|
+
input: dto
|
|
7024
|
+
},
|
|
7025
|
+
...fields
|
|
7026
|
+
},
|
|
7027
|
+
});
|
|
7028
|
+
console.log('screenNameAvailability Response:');
|
|
7029
|
+
console.log(JSON.stringify(response, null, 2));
|
|
7030
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'screenNameAvailability', (r) => {
|
|
7031
|
+
const isResponseOk = response?.screenNameAvailability?.exist === false || response?.screenNameAvailability?.exist === true;
|
|
7032
|
+
return isResponseOk;
|
|
7033
|
+
});
|
|
7034
|
+
}
|
|
7035
|
+
catch (err1) {
|
|
7036
|
+
console.error('screenNameAvailability err1:');
|
|
7037
|
+
console.error(err1);
|
|
7038
|
+
retValue = (0, response_builder_1.buildErrorResponse)(err1);
|
|
7039
|
+
}
|
|
7040
|
+
console.log('retValue:');
|
|
7041
|
+
console.log(JSON.stringify(retValue, null, 2));
|
|
7042
|
+
return retValue;
|
|
7043
|
+
}
|
|
7008
7044
|
}
|
|
7009
7045
|
exports.VTXBaseAPI = VTXBaseAPI;
|
|
7010
7046
|
VTXBaseAPI.Logger = {
|