k
This commit is contained in:
9
src/client/models/CreatePositionRequest.ts
Normal file
9
src/client/models/CreatePositionRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PositionSchema } from './PositionSchema';
|
||||
export type CreatePositionRequest = {
|
||||
data: PositionSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreatePositionResponse.ts
Normal file
9
src/client/models/CreatePositionResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreatePositionResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -7,5 +7,6 @@ export type DealGeneralInfoSchema = {
|
||||
isDeleted: boolean;
|
||||
isCompleted: boolean;
|
||||
comment: string;
|
||||
shippingWarehouse?: (string | null);
|
||||
};
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ export type DealSchema = {
|
||||
isCompleted: boolean;
|
||||
client: ClientSchema;
|
||||
comment: string;
|
||||
shippingWarehouse?: (ShippingWarehouseSchema | null);
|
||||
shippingWarehouse?: (ShippingWarehouseSchema | string | null);
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/GetAllPositionsResponse.ts
Normal file
9
src/client/models/GetAllPositionsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PositionSchema } from './PositionSchema';
|
||||
export type GetAllPositionsResponse = {
|
||||
positions: Array<PositionSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/GetAllRolesResponse.ts
Normal file
9
src/client/models/GetAllRolesResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { RoleSchema } from './RoleSchema';
|
||||
export type GetAllRolesResponse = {
|
||||
roles: Array<RoleSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/GetAllUsersResponse.ts
Normal file
9
src/client/models/GetAllUsersResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { UserSchema } from './UserSchema';
|
||||
export type GetAllUsersResponse = {
|
||||
users: Array<UserSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/PermissionSchema.ts
Normal file
9
src/client/models/PermissionSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type PermissionSchema = {
|
||||
key: string;
|
||||
name: string;
|
||||
};
|
||||
|
||||
9
src/client/models/PositionSchema.ts
Normal file
9
src/client/models/PositionSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type PositionSchema = {
|
||||
name: string;
|
||||
key: string;
|
||||
};
|
||||
|
||||
11
src/client/models/RoleSchema.ts
Normal file
11
src/client/models/RoleSchema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PermissionSchema } from './PermissionSchema';
|
||||
export type RoleSchema = {
|
||||
key: string;
|
||||
name: string;
|
||||
permissions: Array<PermissionSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateUserRequest.ts
Normal file
9
src/client/models/UpdateUserRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { UserUpdate } from './UserUpdate';
|
||||
export type UpdateUserRequest = {
|
||||
data: UserUpdate;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateUserResponse.ts
Normal file
9
src/client/models/UpdateUserResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateUserResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -2,10 +2,20 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PositionSchema } from './PositionSchema';
|
||||
import type { RoleSchema } from './RoleSchema';
|
||||
export type UserSchema = {
|
||||
id: number;
|
||||
telegramId: number;
|
||||
phoneNumber?: (string | null);
|
||||
firstName: string;
|
||||
secondName: string;
|
||||
comment: string;
|
||||
isAdmin: boolean;
|
||||
isBlocked: boolean;
|
||||
isDeleted: boolean;
|
||||
roleKey: string;
|
||||
role: RoleSchema;
|
||||
position?: (PositionSchema | null);
|
||||
};
|
||||
|
||||
|
||||
17
src/client/models/UserUpdate.ts
Normal file
17
src/client/models/UserUpdate.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UserUpdate = {
|
||||
id: number;
|
||||
telegramId: number;
|
||||
phoneNumber?: (string | null);
|
||||
firstName: string;
|
||||
secondName: string;
|
||||
comment: string;
|
||||
isAdmin: boolean;
|
||||
isBlocked: boolean;
|
||||
isDeleted: boolean;
|
||||
positionKey?: (string | null);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user