feat: create user
This commit is contained in:
9
src/client/models/CreateUserRequest.ts
Normal file
9
src/client/models/CreateUserRequest.ts
Normal 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;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateUserResponse.ts
Normal file
9
src/client/models/CreateUserResponse.ts
Normal 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;
|
||||
};
|
||||
|
||||
19
src/client/models/UserCreate.ts
Normal file
19
src/client/models/UserCreate.ts
Normal 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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user