This commit is contained in:
2024-03-31 07:36:24 +03:00
parent 98a6dee996
commit 6328ac877a
38 changed files with 385 additions and 106 deletions

View File

@@ -3,6 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type AuthLoginResponse = {
access_token: string;
accessToken: string;
};

View File

@@ -4,7 +4,7 @@
/* eslint-disable */
export type ClientDetailsSchema = {
address?: (string | null);
phone_number?: (string | null);
phoneNumber?: (string | null);
inn?: (number | null);
email?: (string | null);
};

View File

@@ -4,7 +4,7 @@
/* eslint-disable */
import type { ClientDetailsSchema } from './ClientDetailsSchema';
export type ClientUpdateDetailsRequest = {
client_id: number;
clientId: number;
details: ClientDetailsSchema;
};

View File

@@ -4,7 +4,7 @@
/* eslint-disable */
import type { DealServiceSchema } from './DealServiceSchema';
export type DealAddServicesRequest = {
deal_id: number;
dealId: number;
services: Array<DealServiceSchema>;
};

View File

@@ -3,7 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type DealChangeStatusRequest = {
deal_id: number;
new_status: number;
dealId: number;
newStatus: number;
};

View File

@@ -4,9 +4,9 @@
/* eslint-disable */
export type DealQuickCreateRequest = {
name: string;
client_name: string;
client_address: string;
clientName: string;
clientAddress: string;
comment: string;
acceptance_date: string;
acceptanceDate: string;
};

View File

@@ -3,6 +3,6 @@
/* tslint:disable */
/* eslint-disable */
export type DealQuickCreateResponse = {
deal_id: number;
dealId: number;
};

View File

@@ -5,9 +5,9 @@
export type DealSummary = {
id: number;
name: string;
client_name: string;
changed_at: string;
clientName: string;
changedAt: string;
status: number;
total_price: number;
totalPrice: number;
};

View File

@@ -3,7 +3,7 @@
/* tslint:disable */
/* eslint-disable */
export type PaginationInfoSchema = {
total_pages: number;
total_items: number;
totalPages: number;
totalItems: number;
};

View File

@@ -5,6 +5,7 @@
export type ProductCreateRequest = {
name: string;
article: string;
client_id: number;
clientId: number;
barcodes: Array<string>;
};

View File

@@ -3,6 +3,8 @@
/* tslint:disable */
/* eslint-disable */
export type ProductCreateResponse = {
product_id: number;
ok: boolean;
message: string;
productId?: (number | null);
};

View File

@@ -0,0 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ProductDeleteRequest = {
productId: number;
};

View File

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

View File

@@ -6,6 +6,6 @@ import type { PaginationInfoSchema } from './PaginationInfoSchema';
import type { ProductSchema } from './ProductSchema';
export type ProductGetResponse = {
products: Array<ProductSchema>;
pagination_info: PaginationInfoSchema;
paginationInfo: PaginationInfoSchema;
};

View File

@@ -6,6 +6,7 @@ export type ProductSchema = {
id: number;
name: string;
article: string;
client_id: number;
clientId: number;
barcodes: Array<string>;
};

View File

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

View File

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