chore: Fresh openapi spec
This commit is contained in:
parent
f2e54490f2
commit
962d1f40b4
2
dist/core/OpenAPI.js
vendored
2
dist/core/OpenAPI.js
vendored
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.OpenAPI = void 0;
|
||||
exports.OpenAPI = {
|
||||
BASE: '',
|
||||
VERSION: '1.3.11',
|
||||
VERSION: '1.4.0',
|
||||
WITH_CREDENTIALS: false,
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
|
3
dist/index.d.ts
vendored
3
dist/index.d.ts
vendored
@ -7,9 +7,9 @@ export type { AddressFirstLineEmptyError } from './models/AddressFirstLineEmptyE
|
||||
export type { AddressPostalCodeEmptyError } from './models/AddressPostalCodeEmptyError';
|
||||
export type { AddressPostalCodeInvalidError } from './models/AddressPostalCodeInvalidError';
|
||||
export type { ConfigFlag } from './models/ConfigFlag';
|
||||
export type { CreateAnonymousDonation } from './models/CreateAnonymousDonation';
|
||||
export type { CreateAuth } from './models/CreateAuth';
|
||||
export type { CreateDistanceDonation } from './models/CreateDistanceDonation';
|
||||
export type { CreateDonation } from './models/CreateDonation';
|
||||
export type { CreateDonor } from './models/CreateDonor';
|
||||
export type { CreateFixedDonation } from './models/CreateFixedDonation';
|
||||
export type { CreateGroupContact } from './models/CreateGroupContact';
|
||||
@ -70,6 +70,7 @@ export type { RefreshAuth } from './models/RefreshAuth';
|
||||
export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError';
|
||||
export type { ResetAlreadyRequestedError } from './models/ResetAlreadyRequestedError';
|
||||
export type { ResetPassword } from './models/ResetPassword';
|
||||
export type { ResponseAnonymousDonation } from './models/ResponseAnonymousDonation';
|
||||
export type { ResponseAuth } from './models/ResponseAuth';
|
||||
export type { ResponseDistanceDonation } from './models/ResponseDistanceDonation';
|
||||
export type { ResponseDonation } from './models/ResponseDonation';
|
||||
|
3
dist/models/CreateAnonymousDonation.d.ts
vendored
Normal file
3
dist/models/CreateAnonymousDonation.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export type CreateAnonymousDonation = {
|
||||
amount: number;
|
||||
};
|
4
dist/models/CreateDistanceDonation.d.ts
vendored
4
dist/models/CreateDistanceDonation.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
export type CreateDistanceDonation = {
|
||||
donor: number;
|
||||
paidAmount: number;
|
||||
runner: number;
|
||||
amountPerDistance: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
|
4
dist/models/CreateDonation.d.ts
vendored
4
dist/models/CreateDonation.d.ts
vendored
@ -1,4 +0,0 @@
|
||||
export type CreateDonation = {
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
4
dist/models/CreateFixedDonation.d.ts
vendored
4
dist/models/CreateFixedDonation.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
export type CreateFixedDonation = {
|
||||
amount: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
paidAmount: number;
|
||||
amount: number;
|
||||
};
|
||||
|
1
dist/models/DistanceDonation.d.ts
vendored
1
dist/models/DistanceDonation.d.ts
vendored
@ -2,6 +2,5 @@ export type DistanceDonation = {
|
||||
runner: string;
|
||||
amountPerDistance: number;
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
1
dist/models/Donation.d.ts
vendored
1
dist/models/Donation.d.ts
vendored
@ -1,5 +1,4 @@
|
||||
export type Donation = {
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
1
dist/models/FixedDonation.d.ts
vendored
1
dist/models/FixedDonation.d.ts
vendored
@ -2,6 +2,5 @@ export type FixedDonation = {
|
||||
_amount: number;
|
||||
amount: number;
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
5
dist/models/ResponseAnonymousDonation.d.ts
vendored
Normal file
5
dist/models/ResponseAnonymousDonation.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export type ResponseAnonymousDonation = {
|
||||
id: number;
|
||||
amount: number;
|
||||
paidAmount: number;
|
||||
};
|
5
dist/models/ResponseAnonymousDonation.js
vendored
Normal file
5
dist/models/ResponseAnonymousDonation.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
14
dist/services/DonationService.d.ts
vendored
14
dist/services/DonationService.d.ts
vendored
@ -1,5 +1,7 @@
|
||||
import type { CreateAnonymousDonation } from '../models/CreateAnonymousDonation';
|
||||
import type { CreateDistanceDonation } from '../models/CreateDistanceDonation';
|
||||
import type { CreateFixedDonation } from '../models/CreateFixedDonation';
|
||||
import type { ResponseAnonymousDonation } from '../models/ResponseAnonymousDonation';
|
||||
import type { ResponseDistanceDonation } from '../models/ResponseDistanceDonation';
|
||||
import type { ResponseDonation } from '../models/ResponseDonation';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
@ -14,7 +16,7 @@ export declare class DonationService {
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerGetAll(page?: number, pageSize?: number): Promise<(Array<ResponseDonation> | Array<ResponseDistanceDonation>)>;
|
||||
static donationControllerGetAll(page?: number, pageSize?: number): Promise<(Array<ResponseDonation> | Array<ResponseDistanceDonation> | Array<ResponseAnonymousDonation>)>;
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the donation whose id got provided. This includes the donation's runner's distance ran (if distance donation).
|
||||
@ -22,7 +24,7 @@ export declare class DonationService {
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerGetOne(id: number): Promise<(ResponseDonation | ResponseDistanceDonation)>;
|
||||
static donationControllerGetOne(id: number): Promise<(ResponseDonation | ResponseDistanceDonation | ResponseAnonymousDonation)>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the donation whose id you provided. <br> If no donation with this id exists it will just return 204(no content).
|
||||
@ -41,6 +43,14 @@ export declare class DonationService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerPostFixed(requestBody?: CreateFixedDonation): Promise<ResponseDonation>;
|
||||
/**
|
||||
* Post anonymous
|
||||
* Create a anonymous donation
|
||||
* @param requestBody CreateAnonymousDonation
|
||||
* @result ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerPostAnonymous(requestBody?: CreateAnonymousDonation): Promise<ResponseDonation>;
|
||||
/**
|
||||
* Post distance
|
||||
* Create a distance donation (not fixed donation - use /donations/fixed instead). <br> Please rmemember to provide the donation's donors's and runners ids and amount per distance (kilometer).
|
||||
|
15
dist/services/DonationService.js
vendored
15
dist/services/DonationService.js
vendored
@ -70,6 +70,21 @@ class DonationService {
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post anonymous
|
||||
* Create a anonymous donation
|
||||
* @param requestBody CreateAnonymousDonation
|
||||
* @result ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerPostAnonymous(requestBody) {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/donations/anonymous`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post distance
|
||||
* Create a distance donation (not fixed donation - use /donations/fixed instead). <br> Please rmemember to provide the donation's donors's and runners ids and amount per distance (kilometer).
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user