@vertikalx/vtx-backend-client 1.0.0-dev-daniel.192 → 1.0.0-dev-tmpint.4
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 -2
- package/src/api/vtx-base-api.js +18 -271
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +81 -114
- package/src/client/schema.graphql +65 -82
- package/src/client/schema.js +8 -22
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +67 -84
- package/src/client/types.js +251 -286
- 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, 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
|
|
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 } from '../client';
|
|
2
2
|
import { ITypedBackendResponse } from './backend-response';
|
|
3
3
|
import { APICallHeaders } from './api-call-headers';
|
|
4
4
|
export declare class VTXBaseAPI {
|
|
@@ -63,5 +63,5 @@ export declare class VTXBaseAPI {
|
|
|
63
63
|
createMembershipOrganization(dto: CreateMembershipOrganizationDto, desiredFields?: MembershipOrganizationReferenceGenqlSelection): Promise<ITypedBackendResponse<MembershipOrganizationReference>>;
|
|
64
64
|
getMembershipOrganizations(): Promise<ITypedBackendResponse<MembershipOrganizationReference[]>>;
|
|
65
65
|
createAthleteMembershipAffilation(dto: CreateAthleteMembershipDto, desiredFields?: AthleteMembershipGenqlSelection): Promise<ITypedBackendResponse<AthleteMembership>>;
|
|
66
|
-
|
|
66
|
+
deleteMembershipAffiliation(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
|
|
67
67
|
}
|
package/src/api/vtx-base-api.js
CHANGED
|
@@ -4300,294 +4300,41 @@ class VTXBaseAPI {
|
|
|
4300
4300
|
}
|
|
4301
4301
|
return retValue;
|
|
4302
4302
|
}
|
|
4303
|
-
async
|
|
4303
|
+
async deleteMembershipAffiliation(dto) {
|
|
4304
4304
|
const client = (0, client_1.createClient)({
|
|
4305
4305
|
url: this.backendUrl + "/graphql",
|
|
4306
4306
|
headers: this.headers,
|
|
4307
4307
|
});
|
|
4308
|
-
const fieldsAthlete = {
|
|
4309
|
-
_id: true,
|
|
4310
|
-
firstName: true,
|
|
4311
|
-
lastName: true,
|
|
4312
|
-
screenName: true,
|
|
4313
|
-
dob: true,
|
|
4314
|
-
lgbt: true,
|
|
4315
|
-
competitionGender: true,
|
|
4316
|
-
country: {
|
|
4317
|
-
_id: true,
|
|
4318
|
-
name: true
|
|
4319
|
-
},
|
|
4320
|
-
location: {
|
|
4321
|
-
userProvidedLatitude: true,
|
|
4322
|
-
userProvidedLongitude: true,
|
|
4323
|
-
cityNameGeocode: true,
|
|
4324
|
-
stateNameGeocode: true,
|
|
4325
|
-
countryIso2CodeGeocode: true,
|
|
4326
|
-
timeZoneGeocode: true,
|
|
4327
|
-
latitudeGeocode: true,
|
|
4328
|
-
longitudeGeocode: true,
|
|
4329
|
-
city: {
|
|
4330
|
-
_id: true,
|
|
4331
|
-
name: true,
|
|
4332
|
-
localizedName: true,
|
|
4333
|
-
state: {
|
|
4334
|
-
_id: true,
|
|
4335
|
-
name: true,
|
|
4336
|
-
country: {
|
|
4337
|
-
_id: true,
|
|
4338
|
-
name: true
|
|
4339
|
-
}
|
|
4340
|
-
},
|
|
4341
|
-
latitude: true,
|
|
4342
|
-
longitude: true,
|
|
4343
|
-
timezone: true,
|
|
4344
|
-
}
|
|
4345
|
-
},
|
|
4346
|
-
trainer: true,
|
|
4347
|
-
trainerUrl: true,
|
|
4348
|
-
aboutMe: true,
|
|
4349
|
-
mainSport: {
|
|
4350
|
-
_id: true,
|
|
4351
|
-
name: true
|
|
4352
|
-
},
|
|
4353
|
-
mainSportLevel: {
|
|
4354
|
-
_id: true,
|
|
4355
|
-
label: true,
|
|
4356
|
-
index: true
|
|
4357
|
-
},
|
|
4358
|
-
scores: {
|
|
4359
|
-
vtxScore: true,
|
|
4360
|
-
socialScore: true,
|
|
4361
|
-
trainingScore: true,
|
|
4362
|
-
competitionScore: true
|
|
4363
|
-
},
|
|
4364
|
-
competitions: {
|
|
4365
|
-
_id: true,
|
|
4366
|
-
event: {
|
|
4367
|
-
_id: true,
|
|
4368
|
-
name: true,
|
|
4369
|
-
mainSport: {
|
|
4370
|
-
_id: true,
|
|
4371
|
-
name: true
|
|
4372
|
-
},
|
|
4373
|
-
eventWebSite: true,
|
|
4374
|
-
startDate: true,
|
|
4375
|
-
endDate: true,
|
|
4376
|
-
verified: true,
|
|
4377
|
-
banner: {
|
|
4378
|
-
_id: true,
|
|
4379
|
-
name: true,
|
|
4380
|
-
contentType: true,
|
|
4381
|
-
size: true,
|
|
4382
|
-
useType: true,
|
|
4383
|
-
url: true,
|
|
4384
|
-
key: true
|
|
4385
|
-
},
|
|
4386
|
-
location: {
|
|
4387
|
-
_id: true,
|
|
4388
|
-
userProvidedLatitude: true,
|
|
4389
|
-
userProvidedLongitude: true,
|
|
4390
|
-
cityNameGeocode: true,
|
|
4391
|
-
stateNameGeocode: true,
|
|
4392
|
-
countryIso2CodeGeocode: true,
|
|
4393
|
-
timeZoneGeocode: true,
|
|
4394
|
-
latitudeGeocode: true,
|
|
4395
|
-
longitudeGeocode: true,
|
|
4396
|
-
city: {
|
|
4397
|
-
_id: true,
|
|
4398
|
-
name: true,
|
|
4399
|
-
localizedName: true,
|
|
4400
|
-
state: {
|
|
4401
|
-
_id: true,
|
|
4402
|
-
name: true,
|
|
4403
|
-
country: {
|
|
4404
|
-
_id: true,
|
|
4405
|
-
name: true
|
|
4406
|
-
}
|
|
4407
|
-
},
|
|
4408
|
-
latitude: true,
|
|
4409
|
-
longitude: true,
|
|
4410
|
-
timezone: true,
|
|
4411
|
-
}
|
|
4412
|
-
},
|
|
4413
|
-
},
|
|
4414
|
-
participationDate: true,
|
|
4415
|
-
result: {
|
|
4416
|
-
_id: true,
|
|
4417
|
-
resultType: true,
|
|
4418
|
-
position: true,
|
|
4419
|
-
score: true,
|
|
4420
|
-
finishTimeMS: true,
|
|
4421
|
-
resultWebLink: true
|
|
4422
|
-
}
|
|
4423
|
-
},
|
|
4424
|
-
totalUpcomingCompetitions: true,
|
|
4425
|
-
totalPastCompetitions: true,
|
|
4426
|
-
profilePicture: {
|
|
4427
|
-
_id: true,
|
|
4428
|
-
name: true,
|
|
4429
|
-
contentType: true,
|
|
4430
|
-
size: true,
|
|
4431
|
-
useType: true,
|
|
4432
|
-
url: true,
|
|
4433
|
-
key: true
|
|
4434
|
-
},
|
|
4435
|
-
cardPicture: {
|
|
4436
|
-
_id: true,
|
|
4437
|
-
name: true,
|
|
4438
|
-
contentType: true,
|
|
4439
|
-
size: true,
|
|
4440
|
-
useType: true,
|
|
4441
|
-
url: true,
|
|
4442
|
-
key: true
|
|
4443
|
-
},
|
|
4444
|
-
currentCampaign: {
|
|
4445
|
-
_id: true,
|
|
4446
|
-
budgetMode: true,
|
|
4447
|
-
status: true,
|
|
4448
|
-
title: true,
|
|
4449
|
-
motivation: true,
|
|
4450
|
-
website: true,
|
|
4451
|
-
fundsRequired: true,
|
|
4452
|
-
initialFundsObtained: true,
|
|
4453
|
-
fundsObtained: true,
|
|
4454
|
-
location: {
|
|
4455
|
-
_id: true,
|
|
4456
|
-
userProvidedLatitude: true,
|
|
4457
|
-
userProvidedLongitude: true,
|
|
4458
|
-
cityNameGeocode: true,
|
|
4459
|
-
stateNameGeocode: true,
|
|
4460
|
-
countryIso2CodeGeocode: true,
|
|
4461
|
-
timeZoneGeocode: true,
|
|
4462
|
-
latitudeGeocode: true,
|
|
4463
|
-
longitudeGeocode: true,
|
|
4464
|
-
city: {
|
|
4465
|
-
_id: true,
|
|
4466
|
-
name: true,
|
|
4467
|
-
localizedName: true,
|
|
4468
|
-
state: {
|
|
4469
|
-
_id: true,
|
|
4470
|
-
name: true,
|
|
4471
|
-
country: {
|
|
4472
|
-
_id: true,
|
|
4473
|
-
name: true
|
|
4474
|
-
}
|
|
4475
|
-
},
|
|
4476
|
-
latitude: true,
|
|
4477
|
-
longitude: true,
|
|
4478
|
-
timezone: true,
|
|
4479
|
-
}
|
|
4480
|
-
},
|
|
4481
|
-
endingDate: true,
|
|
4482
|
-
budget: {
|
|
4483
|
-
_id: true,
|
|
4484
|
-
initialFunds: true,
|
|
4485
|
-
totalRequired: true,
|
|
4486
|
-
items: {
|
|
4487
|
-
_id: true,
|
|
4488
|
-
quantity: true,
|
|
4489
|
-
concept: true,
|
|
4490
|
-
itemCost: true
|
|
4491
|
-
}
|
|
4492
|
-
},
|
|
4493
|
-
competitions: {
|
|
4494
|
-
_id: true,
|
|
4495
|
-
event: {
|
|
4496
|
-
_id: true,
|
|
4497
|
-
name: true,
|
|
4498
|
-
mainSport: {
|
|
4499
|
-
_id: true,
|
|
4500
|
-
name: true
|
|
4501
|
-
},
|
|
4502
|
-
eventWebSite: true,
|
|
4503
|
-
startDate: true,
|
|
4504
|
-
endDate: true,
|
|
4505
|
-
verified: true,
|
|
4506
|
-
banner: {
|
|
4507
|
-
_id: true,
|
|
4508
|
-
name: true,
|
|
4509
|
-
contentType: true,
|
|
4510
|
-
size: true,
|
|
4511
|
-
useType: true,
|
|
4512
|
-
url: true,
|
|
4513
|
-
key: true
|
|
4514
|
-
},
|
|
4515
|
-
location: {
|
|
4516
|
-
_id: true,
|
|
4517
|
-
userProvidedLatitude: true,
|
|
4518
|
-
userProvidedLongitude: true,
|
|
4519
|
-
cityNameGeocode: true,
|
|
4520
|
-
stateNameGeocode: true,
|
|
4521
|
-
countryIso2CodeGeocode: true,
|
|
4522
|
-
timeZoneGeocode: true,
|
|
4523
|
-
latitudeGeocode: true,
|
|
4524
|
-
longitudeGeocode: true,
|
|
4525
|
-
city: {
|
|
4526
|
-
_id: true,
|
|
4527
|
-
name: true,
|
|
4528
|
-
localizedName: true,
|
|
4529
|
-
state: {
|
|
4530
|
-
_id: true,
|
|
4531
|
-
name: true,
|
|
4532
|
-
country: {
|
|
4533
|
-
_id: true,
|
|
4534
|
-
name: true
|
|
4535
|
-
}
|
|
4536
|
-
},
|
|
4537
|
-
latitude: true,
|
|
4538
|
-
longitude: true,
|
|
4539
|
-
timezone: true,
|
|
4540
|
-
}
|
|
4541
|
-
},
|
|
4542
|
-
},
|
|
4543
|
-
participationDate: true,
|
|
4544
|
-
result: {
|
|
4545
|
-
_id: true,
|
|
4546
|
-
resultType: true,
|
|
4547
|
-
position: true,
|
|
4548
|
-
score: true,
|
|
4549
|
-
finishTimeMS: true,
|
|
4550
|
-
resultWebLink: true
|
|
4551
|
-
}
|
|
4552
|
-
}
|
|
4553
|
-
}
|
|
4554
|
-
};
|
|
4555
4308
|
const fields = {
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
},
|
|
4562
|
-
initialCursorId: true,
|
|
4563
|
-
nextCursorId: true,
|
|
4564
|
-
initialCursorValue: true,
|
|
4565
|
-
nextCursorValue: true,
|
|
4566
|
-
limit: true,
|
|
4567
|
-
retrieved: true,
|
|
4568
|
-
isLastPage: true
|
|
4309
|
+
idToDelete: true,
|
|
4310
|
+
deleted: true,
|
|
4311
|
+
failureReason: {
|
|
4312
|
+
code: true,
|
|
4313
|
+
message: true
|
|
4569
4314
|
}
|
|
4570
4315
|
};
|
|
4571
4316
|
let retValue;
|
|
4572
4317
|
try {
|
|
4573
|
-
const response = await client.
|
|
4574
|
-
|
|
4575
|
-
__args: {
|
|
4318
|
+
const response = await client.mutation({
|
|
4319
|
+
deleteAthleteMembershipAffilation: {
|
|
4320
|
+
__args: {
|
|
4321
|
+
input: dto
|
|
4322
|
+
},
|
|
4576
4323
|
...fields
|
|
4577
4324
|
}
|
|
4578
4325
|
});
|
|
4579
|
-
VTXBaseAPI.Logger.debug('
|
|
4326
|
+
VTXBaseAPI.Logger.debug('deleteMembershipAffiliation Response:');
|
|
4580
4327
|
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
4581
|
-
retValue = (0, response_builder_1.buildResponse)(response, '
|
|
4328
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'deleteMembershipAffiliation', (r) => {
|
|
4582
4329
|
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
4583
|
-
const isResponseOk = true &&
|
|
4330
|
+
const isResponseOk = true && response?.deleteMembershipAffiliation?.idToDelete;
|
|
4584
4331
|
return isResponseOk;
|
|
4585
4332
|
});
|
|
4586
4333
|
}
|
|
4587
|
-
catch (
|
|
4588
|
-
VTXBaseAPI.Logger.error('
|
|
4589
|
-
VTXBaseAPI.Logger.error(
|
|
4590
|
-
retValue = (0, response_builder_1.buildErrorResponse)(
|
|
4334
|
+
catch (error1) {
|
|
4335
|
+
VTXBaseAPI.Logger.error('deleteMembershipAffiliation err1:');
|
|
4336
|
+
VTXBaseAPI.Logger.error(error1);
|
|
4337
|
+
retValue = (0, response_builder_1.buildErrorResponse)(error1);
|
|
4591
4338
|
}
|
|
4592
4339
|
return retValue;
|
|
4593
4340
|
}
|