feat: create user

This commit is contained in:
2024-08-05 01:47:11 +03:00
parent 8736fe475b
commit 4ad843e465
10 changed files with 119 additions and 15 deletions

View File

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

View File

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

View File

@@ -0,0 +1,19 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PayRateSchema } from './PayRateSchema';
export type UserCreate = {
telegramId: number;
phoneNumber?: (string | null);
firstName: string;
secondName: string;
comment: string;
isAdmin: boolean;
isBlocked: boolean;
isDeleted: boolean;
roleKey: string;
payRate?: (PayRateSchema | null);
positionKey?: (string | null);
};

View File

@@ -6,7 +6,6 @@ import type { PayRateSchema } from './PayRateSchema';
import type { PositionSchema } from './PositionSchema';
import type { RoleSchema } from './RoleSchema';
export type UserSchema = {
id: number;
telegramId: number;
phoneNumber?: (string | null);
firstName: string;
@@ -17,6 +16,7 @@ export type UserSchema = {
isDeleted: boolean;
roleKey: string;
payRate?: (PayRateSchema | null);
id: number;
role: RoleSchema;
position?: (PositionSchema | null);
};

View File

@@ -4,7 +4,6 @@
/* eslint-disable */
import type { PayRateSchema } from './PayRateSchema';
export type UserUpdate = {
id: number;
telegramId: number;
phoneNumber?: (string | null);
firstName: string;
@@ -15,6 +14,7 @@ export type UserUpdate = {
isDeleted: boolean;
roleKey: string;
payRate?: (PayRateSchema | null);
id: number;
positionKey?: (string | null);
};