feat: assignment of employees to deals

This commit is contained in:
2024-12-20 00:27:39 +04:00
parent 9167fd0586
commit b3919c785b
19 changed files with 437 additions and 329 deletions

View File

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

View File

@@ -2,6 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { AssignmentSchema } from './AssignmentSchema';
import type { BoxSchema } from './BoxSchema';
import type { ClientSchema } from './ClientSchema';
import type { DealBillRequestSchema } from './DealBillRequestSchema';
@@ -34,6 +35,7 @@ export type DealSchema = {
manager?: (UserSchema | null);
pallets?: Array<PalletSchema>;
boxes?: Array<BoxSchema>;
assignments?: Array<AssignmentSchema>;
deliveryDate?: (string | null);
receivingSlotDate?: (string | null);
};

View File

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

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ManageEmployeeRequest = {
dealId: number;
userId: number;
isAssign: boolean;
};

View File

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