feat: assignment of employees to deals
This commit is contained in:
10
src/client/models/AssignmentSchema.ts
Normal file
10
src/client/models/AssignmentSchema.ts
Normal 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;
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
10
src/client/models/ManageEmployeeRequest.ts
Normal file
10
src/client/models/ManageEmployeeRequest.ts
Normal 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;
|
||||
};
|
||||
|
||||
9
src/client/models/ManageEmployeeResponse.ts
Normal file
9
src/client/models/ManageEmployeeResponse.ts
Normal 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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user