@vertikalx/vtx-backend-client 1.0.0-dev.81 → 1.0.0-dev.82
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/api-call-headers.d.ts +3 -3
- package/src/api/api-call-headers.js +3 -3
- package/src/api/api-call-headers.js.map +1 -1
- package/src/api/vtx-base-api.d.ts +1 -0
- package/src/api/vtx-base-api.js +62 -1
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +6 -0
- package/src/client/schema.graphql +1 -0
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +3 -0
- package/src/client/types.js +9 -0
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@ export declare const DEFAULT_APP_KEY_HEADER = "io-stackbus-app-key";
|
|
|
9
9
|
export declare const DEFAULT_SYSTEM_USER_TOKEN_HEADER = "io-stackbus-cms-system-user-token";
|
|
10
10
|
export declare const DEFAULT_API_KEY_ID_HEADER = "io-stackbus-cms-api-key-id";
|
|
11
11
|
export declare const DEFAULT_API_KEY_VALUE_HEADER = "io-stackbus-cms-api-key-value";
|
|
12
|
-
export declare const DEFAULT_PROD_URL = "https://backend.vtxapp.net:
|
|
13
|
-
export declare const DEFAULT_PREPROD_URL = "https://backend.vtxapp.net:
|
|
14
|
-
export declare const DEFAULT_DEV_REMOTE_URL = "https://backend.vtxapp.net:
|
|
12
|
+
export declare const DEFAULT_PROD_URL = "https://backend.vtxapp.net:443";
|
|
13
|
+
export declare const DEFAULT_PREPROD_URL = "https://backend.vtxapp.net:443";
|
|
14
|
+
export declare const DEFAULT_DEV_REMOTE_URL = "https://backend.vtxapp.net:443";
|
|
15
15
|
export declare const DEFAULT_DEV_LOCAL_URL = "http://localhost:3010";
|
|
16
16
|
export declare const DEFAULT_HEADERS: APICallHeaders;
|
|
@@ -9,9 +9,9 @@ exports.DEFAULT_APP_KEY_HEADER = 'io-stackbus-app-key';
|
|
|
9
9
|
exports.DEFAULT_SYSTEM_USER_TOKEN_HEADER = 'io-stackbus-cms-system-user-token';
|
|
10
10
|
exports.DEFAULT_API_KEY_ID_HEADER = 'io-stackbus-cms-api-key-id';
|
|
11
11
|
exports.DEFAULT_API_KEY_VALUE_HEADER = 'io-stackbus-cms-api-key-value';
|
|
12
|
-
exports.DEFAULT_PROD_URL = 'https://backend.vtxapp.net:
|
|
13
|
-
exports.DEFAULT_PREPROD_URL = 'https://backend.vtxapp.net:
|
|
14
|
-
exports.DEFAULT_DEV_REMOTE_URL = 'https://backend.vtxapp.net:
|
|
12
|
+
exports.DEFAULT_PROD_URL = 'https://backend.vtxapp.net:443';
|
|
13
|
+
exports.DEFAULT_PREPROD_URL = 'https://backend.vtxapp.net:443';
|
|
14
|
+
exports.DEFAULT_DEV_REMOTE_URL = 'https://backend.vtxapp.net:443';
|
|
15
15
|
exports.DEFAULT_DEV_LOCAL_URL = 'http://localhost:3010';
|
|
16
16
|
exports.DEFAULT_HEADERS = {
|
|
17
17
|
["Content-Type"]: "application/json",
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -63,5 +63,6 @@ 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
|
+
deleteMembershipAffiliation(dto: DeleteSingleValueDto): Promise<ITypedBackendResponse<DeleteSingleValueResponse>>;
|
|
66
67
|
queryAthleteFundingCampaigns(dto: AthleteQueryDto): Promise<ITypedBackendResponse<AthleteQueryResponse>>;
|
|
67
68
|
}
|
package/src/api/vtx-base-api.js
CHANGED
|
@@ -2104,6 +2104,29 @@ class VTXBaseAPI {
|
|
|
2104
2104
|
resultWebLink: true
|
|
2105
2105
|
}
|
|
2106
2106
|
},
|
|
2107
|
+
affiliations: {
|
|
2108
|
+
_id: true,
|
|
2109
|
+
organization: {
|
|
2110
|
+
_id: true,
|
|
2111
|
+
shortName: true,
|
|
2112
|
+
acronym: true,
|
|
2113
|
+
fullName: true,
|
|
2114
|
+
website: true,
|
|
2115
|
+
logo: {
|
|
2116
|
+
_id: true,
|
|
2117
|
+
name: true,
|
|
2118
|
+
contentType: true,
|
|
2119
|
+
size: true,
|
|
2120
|
+
useType: true,
|
|
2121
|
+
url: true,
|
|
2122
|
+
key: true
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
membershipNumber: true,
|
|
2126
|
+
membershipType: true,
|
|
2127
|
+
issueDate: true,
|
|
2128
|
+
expirationDate: true,
|
|
2129
|
+
},
|
|
2107
2130
|
totalUpcomingCompetitions: true,
|
|
2108
2131
|
totalPastCompetitions: true,
|
|
2109
2132
|
profilePicture: {
|
|
@@ -4275,7 +4298,7 @@ class VTXBaseAPI {
|
|
|
4275
4298
|
headers: this.headers,
|
|
4276
4299
|
});
|
|
4277
4300
|
const fields = desiredFields ?? { _id: true };
|
|
4278
|
-
let retValue;
|
|
4301
|
+
let retValue = {};
|
|
4279
4302
|
try {
|
|
4280
4303
|
const response = await client.mutation({
|
|
4281
4304
|
createAthleteMembershipAffilation: {
|
|
@@ -4300,6 +4323,44 @@ class VTXBaseAPI {
|
|
|
4300
4323
|
}
|
|
4301
4324
|
return retValue;
|
|
4302
4325
|
}
|
|
4326
|
+
async deleteMembershipAffiliation(dto) {
|
|
4327
|
+
const client = (0, client_1.createClient)({
|
|
4328
|
+
url: this.backendUrl + "/graphql",
|
|
4329
|
+
headers: this.headers,
|
|
4330
|
+
});
|
|
4331
|
+
const fields = {
|
|
4332
|
+
idToDelete: true,
|
|
4333
|
+
deleted: true,
|
|
4334
|
+
failureReason: {
|
|
4335
|
+
code: true,
|
|
4336
|
+
message: true
|
|
4337
|
+
}
|
|
4338
|
+
};
|
|
4339
|
+
let retValue = {};
|
|
4340
|
+
try {
|
|
4341
|
+
const response = await client.mutation({
|
|
4342
|
+
deleteAthleteMembershipAffilation: {
|
|
4343
|
+
__args: {
|
|
4344
|
+
input: dto
|
|
4345
|
+
},
|
|
4346
|
+
...fields
|
|
4347
|
+
}
|
|
4348
|
+
});
|
|
4349
|
+
VTXBaseAPI.Logger.debug('deleteAthleteMembershipAffilation Response:');
|
|
4350
|
+
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
4351
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'deleteAthleteMembershipAffilation', (r) => {
|
|
4352
|
+
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
4353
|
+
const isResponseOk = true && response?.deleteAthleteMembershipAffilation?.idToDelete;
|
|
4354
|
+
return isResponseOk;
|
|
4355
|
+
});
|
|
4356
|
+
}
|
|
4357
|
+
catch (error1) {
|
|
4358
|
+
VTXBaseAPI.Logger.error('deleteAthleteMembershipAffilation err1:');
|
|
4359
|
+
VTXBaseAPI.Logger.error(error1);
|
|
4360
|
+
retValue = (0, response_builder_1.buildErrorResponse)(error1);
|
|
4361
|
+
}
|
|
4362
|
+
return retValue;
|
|
4363
|
+
}
|
|
4303
4364
|
async queryAthleteFundingCampaigns(dto) {
|
|
4304
4365
|
const client = (0, client_1.createClient)({
|
|
4305
4366
|
url: this.backendUrl + "/graphql",
|