Skip to content

Commit

Permalink
Update from backend df8e450ea13c00025bf54feb28dfe1bf326a8811 (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions Bot <actions@github.com>
  • Loading branch information
github-actions[bot] and actions-user authored Jan 5, 2024
1 parent 130080b commit d2fc7d5
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 29 deletions.
54 changes: 45 additions & 9 deletions dist/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1906,6 +1906,13 @@ export interface GEWISAuthenticationPinRequest {
*/
'pin': string;
}
/**
*
* @export
* @interface GetAllBalanceUserTypeParameterInner
*/
export interface GetAllBalanceUserTypeParameterInner {
}
/**
* @type GetAllPayoutRequestsRequestedByIdParameter
* @export
Expand Down Expand Up @@ -5257,15 +5264,7 @@ export declare class BalanceApi extends BaseAPI {
/**
* @export
*/
export declare const GetAllBalanceUserTypeEnum: {
readonly Member: "MEMBER";
readonly Organ: "ORGAN";
readonly Voucher: "VOUCHER";
readonly LocalUser: "LOCAL_USER";
readonly LocalAdmin: "LOCAL_ADMIN";
readonly Invoice: "INVOICE";
readonly AutomaticInvoice: "AUTOMATIC_INVOICE";
};
export declare const GetAllBalanceUserTypeEnum: {};
export type GetAllBalanceUserTypeEnum = typeof GetAllBalanceUserTypeEnum[keyof typeof GetAllBalanceUserTypeEnum];
/**
* @export
Expand Down Expand Up @@ -5834,6 +5833,15 @@ export declare class ContainersApi extends BaseAPI {
* @export
*/
export declare const DebtorsApiAxiosParamCreator: (configuration?: Configuration) => {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines: (referenceDates: Array<string>, userTypes?: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -5881,6 +5889,15 @@ export declare const DebtorsApiAxiosParamCreator: (configuration?: Configuration
* @export
*/
export declare const DebtorsApiFp: (configuration?: Configuration) => {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines(referenceDates: Array<string>, userTypes?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserToFineResponse>>>;
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -5928,6 +5945,15 @@ export declare const DebtorsApiFp: (configuration?: Configuration) => {
* @export
*/
export declare const DebtorsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines(referenceDates: Array<string>, userTypes?: Array<number>, options?: any): AxiosPromise<Array<UserToFineResponse>>;
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -5977,6 +6003,16 @@ export declare const DebtorsApiFactory: (configuration?: Configuration, basePath
* @extends {BaseAPI}
*/
export declare class DebtorsApi extends BaseAPI {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DebtorsApi
*/
calculateFines(referenceDates: Array<string>, userTypes?: Array<number>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserToFineResponse[], any>>;
/**
*
* @summary Delete a fine
Expand Down
90 changes: 80 additions & 10 deletions dist/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
if (maxFine !== undefined) {
localVarQueryParameter['maxFine'] = maxFine;
}
if (userType !== undefined) {
if (userType) {
localVarQueryParameter['userType'] = userType;
}
if (orderBy !== undefined) {
Expand Down Expand Up @@ -1267,15 +1267,7 @@ exports.BalanceApi = BalanceApi;
/**
* @export
*/
exports.GetAllBalanceUserTypeEnum = {
Member: 'MEMBER',
Organ: 'ORGAN',
Voucher: 'VOUCHER',
LocalUser: 'LOCAL_USER',
LocalAdmin: 'LOCAL_ADMIN',
Invoice: 'INVOICE',
AutomaticInvoice: 'AUTOMATIC_INVOICE'
};
exports.GetAllBalanceUserTypeEnum = {};
/**
* @export
*/
Expand Down Expand Up @@ -2405,6 +2397,44 @@ exports.ContainersApi = ContainersApi;
*/
const DebtorsApiAxiosParamCreator = function (configuration) {
return {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines: (referenceDates, userTypes, options = {}) => __awaiter(this, void 0, void 0, function* () {
// verify required parameter 'referenceDates' is not null or undefined
(0, common_1.assertParamExists)('calculateFines', 'referenceDates', referenceDates);
const localVarPath = `/fines/eligible`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication JWT required
// http bearer authentication required
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
if (userTypes) {
localVarQueryParameter['userTypes'] = userTypes;
}
if (referenceDates) {
localVarQueryParameter['referenceDates'] = referenceDates;
}
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -2581,6 +2611,23 @@ exports.DebtorsApiAxiosParamCreator = DebtorsApiAxiosParamCreator;
const DebtorsApiFp = function (configuration) {
const localVarAxiosParamCreator = (0, exports.DebtorsApiAxiosParamCreator)(configuration);
return {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines(referenceDates, userTypes, options) {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {
const localVarAxiosArgs = yield localVarAxiosParamCreator.calculateFines(referenceDates, userTypes, options);
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const operationBasePath = (_c = (_b = base_1.operationServerMap['DebtorsApi.calculateFines']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
});
},
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -2672,6 +2719,17 @@ exports.DebtorsApiFp = DebtorsApiFp;
const DebtorsApiFactory = function (configuration, basePath, axios) {
const localVarFp = (0, exports.DebtorsApiFp)(configuration);
return {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines(referenceDates, userTypes, options) {
return localVarFp.calculateFines(referenceDates, userTypes, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -2733,6 +2791,18 @@ exports.DebtorsApiFactory = DebtorsApiFactory;
* @extends {BaseAPI}
*/
class DebtorsApi extends base_1.BaseAPI {
/**
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DebtorsApi
*/
calculateFines(referenceDates, userTypes, options) {
return (0, exports.DebtorsApiFp)(this.configuration).calculateFines(referenceDates, userTypes, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Delete a fine
Expand Down
2 changes: 1 addition & 1 deletion dist/api.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit d2fc7d5

Please sign in to comment.