Skip to content
Snippets Groups Projects
Commit ddd5d268 authored by Jens Christian Aanestad's avatar Jens Christian Aanestad
Browse files

refactor/Generated new OpenAPI typescript files

parent 39087825
Branches fix/menu-bug
No related tags found
1 merge request!53Refactor/integration budgetview
Showing with 240 additions and 0 deletions
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BadgeUser } from './BadgeUser';
export type Badge = {
id?: number;
badgeName?: string;
criteria?: string;
badgeUserList?: Array<BadgeUser>;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BadgeUserId } from './BadgeUserId';
export type BadgeUser = {
badgeUserId?: BadgeUserId;
earnedAt?: string;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Badge } from './Badge';
import type { User } from './User';
export type BadgeUserId = {
badge?: Badge;
user?: User;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BankAccountDTO = {
bban?: number;
bankAccountType?: string;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { User } from './User';
export type Budget = {
id?: number;
user?: User;
createdAt?: string;
budgetName?: string;
budgetAmount?: number;
expenseAmount?: number;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BudgetRequestDTO = {
budgetName?: string;
budgetAmount?: number;
expenseAmount?: number;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BudgetResponseDTO = {
id?: number;
budgetName?: string;
budgetAmount?: number;
expenseAmount?: number;
createdAt?: string;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Configuration = {
id?: number;
commitment?: Configuration.commitment;
experience?: Configuration.experience;
challengeTypes?: Array<'NO_COFFEE' | 'NO_CAR' | 'SHORTER_SHOWER' | 'SPEND_LESS_ON_FOOD' | 'BUY_USED_CLOTHES' | 'LESS_SHOPPING' | 'DROP_SUBSCRIPTION' | 'SELL_SOMETHING' | 'BUY_USED' | 'EAT_PACKED_LUNCH' | 'STOP_SHOPPING' | 'ZERO_SPENDING' | 'RENT_YOUR_STUFF' | 'MEATLESS' | 'SCREEN_TIME_LIMIT' | 'UNPLUGGED_ENTERTAINMENT'>;
};
export namespace Configuration {
export enum commitment {
LITTLE = 'LITTLE',
SOME = 'SOME',
MUCH = 'MUCH',
}
export enum experience {
NONE = 'NONE',
SOME = 'SOME',
EXPERT = 'EXPERT',
}
}
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ExpenseRequestDTO = {
expenseId?: number;
description?: string;
amount?: number;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ExpenseResponseDTO = {
expenseId?: number;
budgetId?: number;
description?: string;
amount?: string;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type GrantedAuthority = {
authority?: string;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Point = {
id?: number;
currentPoints?: number;
totalEarnedPoints?: number;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Streak = {
id?: number;
currentStreak?: number;
currentStreakCreatedAt?: string;
currentStreakUpdatedAt?: string;
highestStreak?: number;
highestStreakCreatedAt?: string;
highestStreakEndedAt?: string;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Account } from './Account';
import type { Badge } from './Badge';
import type { Configuration } from './Configuration';
import type { GrantedAuthority } from './GrantedAuthority';
import type { Point } from './Point';
import type { Streak } from './Streak';
export type User = {
id?: number;
firstName?: string;
lastName?: string;
email?: string;
checkingAccount?: Account;
savingsAccount?: Account;
password?: string;
createdAt?: string;
role?: User.role;
badges?: Array<Badge>;
point?: Point;
streak?: Streak;
configuration?: Configuration;
enabled?: boolean;
authorities?: Array<GrantedAuthority>;
username?: string;
accountNonExpired?: boolean;
credentialsNonExpired?: boolean;
accountNonLocked?: boolean;
};
export namespace User {
export enum role {
USER = 'USER',
ADMIN = 'ADMIN',
}
}
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class ImageService {
/**
* Upload an image
* Upload an image to the server
* @returns number Successfully uploaded the image
* @throws ApiError
*/
public static uploadImage({
requestBody,
}: {
requestBody?: {
file: Blob;
},
}): CancelablePromise<number> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/image/upload',
body: requestBody,
mediaType: 'application/json',
});
}
/**
* Retrieve an image
* Retrieve an image from the server
* @returns string Successfully retrieved the image
* @throws ApiError
*/
public static getImage({
id,
}: {
id: number,
}): CancelablePromise<Array<string>> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/image/{id}',
path: {
'id': id,
},
});
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment