k
This commit is contained in:
@@ -36,6 +36,8 @@ export type { ClientUpdateRequest } from './models/ClientUpdateRequest';
|
||||
export type { ClientUpdateResponse } from './models/ClientUpdateResponse';
|
||||
export type { CreateBarcodeTemplateAttributeRequest } from './models/CreateBarcodeTemplateAttributeRequest';
|
||||
export type { CreateBarcodeTemplateAttributeResponse } from './models/CreateBarcodeTemplateAttributeResponse';
|
||||
export type { CreatePositionRequest } from './models/CreatePositionRequest';
|
||||
export type { CreatePositionResponse } from './models/CreatePositionResponse';
|
||||
export type { DealAddProductRequest } from './models/DealAddProductRequest';
|
||||
export type { DealAddProductResponse } from './models/DealAddProductResponse';
|
||||
export type { DealAddServiceRequest } from './models/DealAddServiceRequest';
|
||||
@@ -80,7 +82,10 @@ export type { DealUpdateServiceResponse } from './models/DealUpdateServiceRespon
|
||||
export type { GetAllBarcodeTemplateAttributesResponse } from './models/GetAllBarcodeTemplateAttributesResponse';
|
||||
export type { GetAllBarcodeTemplateSizesResponse } from './models/GetAllBarcodeTemplateSizesResponse';
|
||||
export type { GetAllBarcodeTemplatesResponse } from './models/GetAllBarcodeTemplatesResponse';
|
||||
export type { GetAllPositionsResponse } from './models/GetAllPositionsResponse';
|
||||
export type { GetAllRolesResponse } from './models/GetAllRolesResponse';
|
||||
export type { GetAllShippingWarehousesResponse } from './models/GetAllShippingWarehousesResponse';
|
||||
export type { GetAllUsersResponse } from './models/GetAllUsersResponse';
|
||||
export type { GetBarcodeTemplateByIdRequest } from './models/GetBarcodeTemplateByIdRequest';
|
||||
export type { GetBarcodeTemplateByIdResponse } from './models/GetBarcodeTemplateByIdResponse';
|
||||
export type { GetProductBarcodePdfRequest } from './models/GetProductBarcodePdfRequest';
|
||||
@@ -89,6 +94,8 @@ export type { GetProductBarcodeRequest } from './models/GetProductBarcodeRequest
|
||||
export type { GetProductBarcodeResponse } from './models/GetProductBarcodeResponse';
|
||||
export type { HTTPValidationError } from './models/HTTPValidationError';
|
||||
export type { PaginationInfoSchema } from './models/PaginationInfoSchema';
|
||||
export type { PermissionSchema } from './models/PermissionSchema';
|
||||
export type { PositionSchema } from './models/PositionSchema';
|
||||
export type { ProductAddBarcodeRequest } from './models/ProductAddBarcodeRequest';
|
||||
export type { ProductAddBarcodeResponse } from './models/ProductAddBarcodeResponse';
|
||||
export type { ProductCreateRequest } from './models/ProductCreateRequest';
|
||||
@@ -104,6 +111,7 @@ export type { ProductSchema } from './models/ProductSchema';
|
||||
export type { ProductUpdateRequest } from './models/ProductUpdateRequest';
|
||||
export type { ProductUpdateResponse } from './models/ProductUpdateResponse';
|
||||
export type { ProductUploadImageResponse } from './models/ProductUploadImageResponse';
|
||||
export type { RoleSchema } from './models/RoleSchema';
|
||||
export type { ServiceCategorySchema } from './models/ServiceCategorySchema';
|
||||
export type { ServiceCreateCategoryRequest } from './models/ServiceCreateCategoryRequest';
|
||||
export type { ServiceCreateCategoryResponse } from './models/ServiceCreateCategoryResponse';
|
||||
@@ -118,13 +126,19 @@ export type { ServiceSchema } from './models/ServiceSchema';
|
||||
export type { ServiceUpdateRequest } from './models/ServiceUpdateRequest';
|
||||
export type { ServiceUpdateResponse } from './models/ServiceUpdateResponse';
|
||||
export type { ShippingWarehouseSchema } from './models/ShippingWarehouseSchema';
|
||||
export type { UpdateUserRequest } from './models/UpdateUserRequest';
|
||||
export type { UpdateUserResponse } from './models/UpdateUserResponse';
|
||||
export type { UserSchema } from './models/UserSchema';
|
||||
export type { UserUpdate } from './models/UserUpdate';
|
||||
export type { ValidationError } from './models/ValidationError';
|
||||
|
||||
export { AuthService } from './services/AuthService';
|
||||
export { BarcodeService } from './services/BarcodeService';
|
||||
export { ClientService } from './services/ClientService';
|
||||
export { DealService } from './services/DealService';
|
||||
export { PositionService } from './services/PositionService';
|
||||
export { ProductService } from './services/ProductService';
|
||||
export { RoleService } from './services/RoleService';
|
||||
export { ServiceService } from './services/ServiceService';
|
||||
export { ShippingWarehouseService } from './services/ShippingWarehouseService';
|
||||
export { UserService } from './services/UserService';
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
43
src/client/services/PositionService.ts
Normal file
43
src/client/services/PositionService.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreatePositionRequest } from '../models/CreatePositionRequest';
|
||||
import type { CreatePositionResponse } from '../models/CreatePositionResponse';
|
||||
import type { GetAllPositionsResponse } from '../models/GetAllPositionsResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class PositionService {
|
||||
/**
|
||||
* Get All
|
||||
* @returns GetAllPositionsResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAllPositions(): CancelablePromise<GetAllPositionsResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/position/get-all',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create
|
||||
* @returns CreatePositionResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createPosition({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreatePositionRequest,
|
||||
}): CancelablePromise<CreatePositionResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/position/create',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
21
src/client/services/RoleService.ts
Normal file
21
src/client/services/RoleService.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { GetAllRolesResponse } from '../models/GetAllRolesResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class RoleService {
|
||||
/**
|
||||
* Get All
|
||||
* @returns GetAllRolesResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAllRoles(): CancelablePromise<GetAllRolesResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/role/get-all',
|
||||
});
|
||||
}
|
||||
}
|
||||
43
src/client/services/UserService.ts
Normal file
43
src/client/services/UserService.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { GetAllUsersResponse } from '../models/GetAllUsersResponse';
|
||||
import type { UpdateUserRequest } from '../models/UpdateUserRequest';
|
||||
import type { UpdateUserResponse } from '../models/UpdateUserResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class UserService {
|
||||
/**
|
||||
* Get All
|
||||
* @returns GetAllUsersResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAllUsers(): CancelablePromise<GetAllUsersResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/user/get-all',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update
|
||||
* @returns UpdateUserResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateUser({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateUserRequest,
|
||||
}): CancelablePromise<UpdateUserResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/user/update',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user