@vertikalx/vtx-backend-client 1.0.0-dev-max.34 → 1.0.0-dev-max.36

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-dev-max.34",
3
+ "version": "1.0.0-dev-max.36",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -74,6 +74,7 @@ export declare class VTXBaseAPI {
74
74
  createAthleteStripeSession(desiredFields?: StripeSessionGenqlSelection): Promise<ITypedBackendResponse<StripeSession>>;
75
75
  createStripeCheckoutSession(dto: DonationCheckoutDto, desiredFields?: StripeCheckoutSessionGenqlSelection): Promise<ITypedBackendResponse<StripeCheckoutSession>>;
76
76
  getDatabaseTextFile(dto: GetDatabaseFileDto, desiredFields?: TextDatabaseFileGenqlSelection): Promise<ITypedBackendResponse<TextDatabaseFile>>;
77
+ getReceiptUrl(dto: GetReceiptDto): Promise<ITypedBackendResponse<string>>;
77
78
  stripeQuery(dto: StripeQueryDto): Promise<ITypedBackendResponse<StripeObject>>;
78
79
  setFundingStatus(dto: SetFundingStatusDto, desiredFields?: FundRaisingCampaignGenqlSelection): Promise<ITypedBackendResponse<FundRaisingCampaign>>;
79
80
  findAthleteForIdPublic(id: string): Promise<ITypedBackendResponse<Athlete>>;
@@ -4897,6 +4897,37 @@ class VTXBaseAPI {
4897
4897
  }
4898
4898
  return retValue;
4899
4899
  }
4900
+ async getReceiptUrl(dto) {
4901
+ const client = (0, client_1.createClient)({
4902
+ url: this.backendUrl + "/graphql",
4903
+ headers: this.headers,
4904
+ });
4905
+ const fields = {
4906
+ receiptId: true
4907
+ };
4908
+ let retValue;
4909
+ try {
4910
+ const response = await client.query({
4911
+ getReceiptUrl: {
4912
+ __args: { input: dto },
4913
+ ...fields
4914
+ }
4915
+ });
4916
+ VTXBaseAPI.Logger.debug('getReceiptUrl Response:');
4917
+ VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
4918
+ retValue = (0, response_builder_1.buildResponse)(response, 'getReceiptUrl', (r) => {
4919
+ VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
4920
+ const isResponseOk = true && response?.getReceiptUrl?.receiptUrl;
4921
+ return isResponseOk;
4922
+ });
4923
+ }
4924
+ catch (err1) {
4925
+ VTXBaseAPI.Logger.error('getReceiptUrl err1:');
4926
+ VTXBaseAPI.Logger.error(err1);
4927
+ retValue = (0, response_builder_1.buildErrorResponse)(err1);
4928
+ }
4929
+ return retValue;
4930
+ }
4900
4931
  async stripeQuery(dto) {
4901
4932
  const client = (0, client_1.createClient)({
4902
4933
  url: this.backendUrl + "/graphql",