feat: departments and department sections
This commit is contained in:
9
src/client/models/AddUserRequest.ts
Normal file
9
src/client/models/AddUserRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type AddUserRequest = {
|
||||
userId: number;
|
||||
sectionId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/AddUserResponse.ts
Normal file
9
src/client/models/AddUserResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type AddUserResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateDepartmentRequest.ts
Normal file
9
src/client/models/CreateDepartmentRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DepartmentBaseSchema } from './DepartmentBaseSchema';
|
||||
export type CreateDepartmentRequest = {
|
||||
department: DepartmentBaseSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateDepartmentResponse.ts
Normal file
9
src/client/models/CreateDepartmentResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateDepartmentResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateDepartmentSectionRequest.ts
Normal file
9
src/client/models/CreateDepartmentSectionRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DepartmentSectionBaseSchema } from './DepartmentSectionBaseSchema';
|
||||
export type CreateDepartmentSectionRequest = {
|
||||
section: DepartmentSectionBaseSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateDepartmentSectionResponse.ts
Normal file
9
src/client/models/CreateDepartmentSectionResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateDepartmentSectionResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteDepartmentResponse.ts
Normal file
9
src/client/models/DeleteDepartmentResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteDepartmentResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteDepartmentSectionResponse.ts
Normal file
9
src/client/models/DeleteDepartmentSectionResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteDepartmentSectionResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteUserRequest.ts
Normal file
9
src/client/models/DeleteUserRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteUserRequest = {
|
||||
userId: number;
|
||||
sectionId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteUserResponse.ts
Normal file
9
src/client/models/DeleteUserResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteUserResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
8
src/client/models/DepartmentBaseSchema.ts
Normal file
8
src/client/models/DepartmentBaseSchema.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DepartmentBaseSchema = {
|
||||
name: string;
|
||||
};
|
||||
|
||||
11
src/client/models/DepartmentSchema.ts
Normal file
11
src/client/models/DepartmentSchema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DepartmentSectionSchema } from './DepartmentSectionSchema';
|
||||
export type DepartmentSchema = {
|
||||
name: string;
|
||||
id: number;
|
||||
sections?: Array<DepartmentSectionSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/DepartmentSectionBaseSchema.ts
Normal file
9
src/client/models/DepartmentSectionBaseSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DepartmentSectionBaseSchema = {
|
||||
name: string;
|
||||
departmentId: number;
|
||||
};
|
||||
|
||||
12
src/client/models/DepartmentSectionSchema.ts
Normal file
12
src/client/models/DepartmentSectionSchema.ts
Normal 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 DepartmentSectionSchema = {
|
||||
name: string;
|
||||
departmentId: number;
|
||||
id: number;
|
||||
users?: Array<UserSchema>;
|
||||
};
|
||||
|
||||
@@ -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 GetAvailableUsersForDepartmentSectionResponse = {
|
||||
users: Array<UserSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/GetDepartmentsResponse.ts
Normal file
9
src/client/models/GetDepartmentsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DepartmentSchema } from './DepartmentSchema';
|
||||
export type GetDepartmentsResponse = {
|
||||
departments: Array<DepartmentSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateDepartmentRequest.ts
Normal file
9
src/client/models/UpdateDepartmentRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DepartmentSchema } from './DepartmentSchema';
|
||||
export type UpdateDepartmentRequest = {
|
||||
department: DepartmentSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateDepartmentResponse.ts
Normal file
9
src/client/models/UpdateDepartmentResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateDepartmentResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateDepartmentSectionRequest.ts
Normal file
9
src/client/models/UpdateDepartmentSectionRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DepartmentSectionSchema } from './DepartmentSectionSchema';
|
||||
export type UpdateDepartmentSectionRequest = {
|
||||
section: DepartmentSectionSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateDepartmentSectionResponse.ts
Normal file
9
src/client/models/UpdateDepartmentSectionResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateDepartmentSectionResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user