feat: crappy reordering

This commit is contained in:
2024-10-07 23:42:01 +03:00
parent ae0d4ff6f0
commit 223ed0577a
13 changed files with 290 additions and 66 deletions

View File

@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ServiceCategoryReorderRequest = {
moveDown: boolean;
moveUp: boolean;
categoryId: number;
serviceType: number;
};

View File

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

View File

@@ -5,5 +5,7 @@
export type ServiceCategorySchema = {
id: number;
name: string;
dealServiceRank: string;
productServiceRank: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ServiceReorderRequest = {
drainingServiceId: number;
hoveredServiceId: number;
};

View File

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

View File

@@ -14,5 +14,6 @@ export type ServiceSchema = {
priceRanges: Array<ServicePriceRangeSchema>;
categoryPrices: Array<ServiceCategoryPriceSchema>;
cost: (number | null);
rank: string;
};