This commit is contained in:
2024-07-22 12:46:12 +03:00
parent af05b51d1c
commit 23dbff2891
46 changed files with 1173 additions and 40 deletions

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayRateSchemaBase } from './PayRateSchemaBase';
export type CreatePayRateRequest = {
data: PayRateSchemaBase;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type CreatePayRateResponse = {
ok: boolean;
message: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PaymentRecordCreateSchema } from './PaymentRecordCreateSchema';
export type CreatePaymentRecordRequest = {
data: PaymentRecordCreateSchema;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type CreatePaymentRecordResponse = {
ok: boolean;
message: string;
};

View File

@@ -0,0 +1,8 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeletePayRateRequest = {
payRateId: number;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeletePayRateResponse = {
ok: boolean;
message: string;
};

View File

@@ -0,0 +1,8 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeletePaymentRecordRequest = {
paymentRecordId: number;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeletePaymentRecordResponse = {
ok: boolean;
message: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayRateSchema } from './PayRateSchema';
export type GetAllPayRatesResponse = {
payRates: Array<PayRateSchema>;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayrollSchemeSchema } from './PayrollSchemeSchema';
export type GetAllPayrollSchemeResponse = {
payrollSchemas: Array<PayrollSchemeSchema>;
};

View File

@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PaginationInfoSchema } from './PaginationInfoSchema';
import type { PaymentRecordGetSchema } from './PaymentRecordGetSchema';
export type GetPaymentRecordsResponse = {
paymentRecords: Array<PaymentRecordGetSchema>;
paginationInfo: PaginationInfoSchema;
};

View File

@@ -0,0 +1,14 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayrollSchemeSchema } from './PayrollSchemeSchema';
export type PayRateSchema = {
name: string;
payrollScheme: PayrollSchemeSchema;
baseRate: number;
overtimeRate?: (number | null);
overtimeThreshold?: (number | null);
id: number;
};

View File

@@ -0,0 +1,13 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayrollSchemeSchema } from './PayrollSchemeSchema';
export type PayRateSchemaBase = {
name: string;
payrollScheme: PayrollSchemeSchema;
baseRate: number;
overtimeRate?: (number | null);
overtimeThreshold?: (number | null);
};

View File

@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { UserSchema } from './UserSchema';
export type PaymentRecordCreateSchema = {
startDate: string;
endDate: string;
workUnits: number;
user: UserSchema;
};

View File

@@ -0,0 +1,18 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayrollSchemeSchema } from './PayrollSchemeSchema';
import type { UserSchema } from './UserSchema';
export type PaymentRecordGetSchema = {
startDate: string;
endDate: string;
workUnits: number;
user: UserSchema;
id: number;
createdByUser: UserSchema;
payrollScheme: PayrollSchemeSchema;
amount: number;
createdAt: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PayrollSchemeSchema = {
key: string;
name: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayRateSchema } from './PayRateSchema';
export type UpdatePayRateRequest = {
data: PayRateSchema;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UpdatePayRateResponse = {
ok: boolean;
message: string;
};

View File

@@ -2,6 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayRateSchema } from './PayRateSchema';
import type { PositionSchema } from './PositionSchema';
import type { RoleSchema } from './RoleSchema';
export type UserSchema = {
@@ -15,6 +16,7 @@ export type UserSchema = {
isBlocked: boolean;
isDeleted: boolean;
roleKey: string;
payRate?: (PayRateSchema | null);
role: RoleSchema;
position?: (PositionSchema | null);
};

View File

@@ -2,6 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayRateSchema } from './PayRateSchema';
export type UserUpdate = {
id: number;
telegramId: number;
@@ -13,6 +14,7 @@ export type UserUpdate = {
isBlocked: boolean;
isDeleted: boolean;
roleKey: string;
payRate?: (PayRateSchema | null);
positionKey?: (string | null);
};