feat: income
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type BaseExpenseTagSchema = {
|
||||
export type BaseTransactionTagSchema = {
|
||||
name: string;
|
||||
isIncome: boolean;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateTransactionTagRequest.ts
Normal file
9
src/client/models/CreateTransactionTagRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseTransactionTagSchema } from './BaseTransactionTagSchema';
|
||||
export type CreateTransactionTagRequest = {
|
||||
tag: BaseTransactionTagSchema;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateExpenseResponse = {
|
||||
export type DeleteTransactionResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
@@ -2,7 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteExpenseResponse = {
|
||||
export type DeleteTransactionTagResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
@@ -1,9 +0,0 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExpenseTagSchema } from './ExpenseTagSchema';
|
||||
export type GetAllExpenseTagsResponse = {
|
||||
tags: Array<ExpenseTagSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/GetAllTransactionTagsResponse.ts
Normal file
9
src/client/models/GetAllTransactionTagsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { TransactionTagSchema } from './TransactionTagSchema';
|
||||
export type GetAllTransactionTagsResponse = {
|
||||
tags: Array<TransactionTagSchema>;
|
||||
};
|
||||
|
||||
8
src/client/models/GetAllTransactionsRequest.ts
Normal file
8
src/client/models/GetAllTransactionsRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type GetAllTransactionsRequest = {
|
||||
isIncome: boolean;
|
||||
};
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExpenseSchemaBase } from './ExpenseSchemaBase';
|
||||
import type { PaginationInfoSchema } from './PaginationInfoSchema';
|
||||
export type GetAllExpensesResponse = {
|
||||
expenses: Array<ExpenseSchemaBase>;
|
||||
import type { TransactionSchemaBase } from './TransactionSchemaBase';
|
||||
export type GetAllTransactionsResponse = {
|
||||
transactions: Array<TransactionSchemaBase>;
|
||||
paginationInfo: PaginationInfoSchema;
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@ export type GetProfitChartDataRequest = {
|
||||
baseMarketplaceKey: string;
|
||||
dealStatusId: number;
|
||||
managerId: number;
|
||||
tagId: number;
|
||||
expenseTagId: number;
|
||||
incomeTagId: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ export type GetProfitTableDataRequest = {
|
||||
baseMarketplaceKey: string;
|
||||
dealStatusId: number;
|
||||
managerId: number;
|
||||
tagId: number;
|
||||
expenseTagId: number;
|
||||
incomeTagId: number;
|
||||
groupTableBy: ProfitTableGroupBy;
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/GetTransactionTagsResponse.ts
Normal file
9
src/client/models/GetTransactionTagsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { TransactionTagSchema } from './TransactionTagSchema';
|
||||
export type GetTransactionTagsResponse = {
|
||||
tags: Array<TransactionTagSchema>;
|
||||
};
|
||||
|
||||
@@ -2,15 +2,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExpenseTagSchema } from './ExpenseTagSchema';
|
||||
import type { TransactionTagSchema } from './TransactionTagSchema';
|
||||
import type { UserSchema } from './UserSchema';
|
||||
export type ExpenseSchemaBase = {
|
||||
export type TransactionSchemaBase = {
|
||||
id: number;
|
||||
name: string;
|
||||
comment: string;
|
||||
amount: number;
|
||||
createdByUser: UserSchema;
|
||||
spentDate: string;
|
||||
tags: Array<ExpenseTagSchema>;
|
||||
isIncome: boolean;
|
||||
tags: Array<TransactionTagSchema>;
|
||||
};
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ExpenseTagSchema = {
|
||||
export type TransactionTagSchema = {
|
||||
name: string;
|
||||
isIncome: boolean;
|
||||
id: number;
|
||||
};
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { UpdateExpenseSchema } from './UpdateExpenseSchema';
|
||||
export type UpdateExpenseRequest = {
|
||||
expense: UpdateExpenseSchema;
|
||||
};
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ExpenseTagSchema } from './ExpenseTagSchema';
|
||||
export type UpdateExpenseTagRequest = {
|
||||
tag: ExpenseTagSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateTransactionRequest.ts
Normal file
9
src/client/models/UpdateTransactionRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { UpdateTransactionSchema } from './UpdateTransactionSchema';
|
||||
export type UpdateTransactionRequest = {
|
||||
transaction: UpdateTransactionSchema;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateExpenseTagResponse = {
|
||||
export type UpdateTransactionResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
@@ -2,12 +2,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateExpenseSchema = {
|
||||
export type UpdateTransactionSchema = {
|
||||
id?: (number | null);
|
||||
name: string;
|
||||
comment?: (string | null);
|
||||
amount: number;
|
||||
spentDate: string;
|
||||
isIncome: boolean;
|
||||
tags?: Array<string>;
|
||||
};
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseExpenseTagSchema } from './BaseExpenseTagSchema';
|
||||
export type CreateExpenseTagRequest = {
|
||||
tag: BaseExpenseTagSchema;
|
||||
import type { TransactionTagSchema } from './TransactionTagSchema';
|
||||
export type UpdateTransactionTagRequest = {
|
||||
tag: TransactionTagSchema;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteExpenseTagResponse = {
|
||||
export type UpdateTransactionTagResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
Reference in New Issue
Block a user