feat: services table with dnd
This commit is contained in:
@ -451,6 +451,10 @@ export type CreateServiceSchema = {
|
||||
*/
|
||||
name: string;
|
||||
category: ServiceCategorySchema;
|
||||
/**
|
||||
* Categoryid
|
||||
*/
|
||||
categoryId?: number | null;
|
||||
/**
|
||||
* Price
|
||||
*/
|
||||
@ -1116,6 +1120,10 @@ export type ServiceSchema = {
|
||||
*/
|
||||
name: string;
|
||||
category: ServiceCategorySchema;
|
||||
/**
|
||||
* Categoryid
|
||||
*/
|
||||
categoryId?: number | null;
|
||||
/**
|
||||
* Price
|
||||
*/
|
||||
@ -1485,19 +1493,15 @@ export type UpdateServiceCategorySchema = {
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name: string;
|
||||
name?: string | null;
|
||||
/**
|
||||
* Dealservicerank
|
||||
*/
|
||||
dealServiceRank: string;
|
||||
dealServiceRank?: string | null;
|
||||
/**
|
||||
* Productservicerank
|
||||
*/
|
||||
productServiceRank: string;
|
||||
/**
|
||||
* Id
|
||||
*/
|
||||
id: number;
|
||||
productServiceRank?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -1524,32 +1528,32 @@ export type UpdateServiceSchema = {
|
||||
/**
|
||||
* Name
|
||||
*/
|
||||
name: string;
|
||||
category: ServiceCategorySchema;
|
||||
name?: string | null;
|
||||
category?: ServiceCategorySchema | null;
|
||||
/**
|
||||
* Categoryid
|
||||
*/
|
||||
categoryId?: number | null;
|
||||
/**
|
||||
* Price
|
||||
*/
|
||||
price: number;
|
||||
price?: number | null;
|
||||
/**
|
||||
* Servicetype
|
||||
*/
|
||||
serviceType: number;
|
||||
serviceType?: number | null;
|
||||
/**
|
||||
* Priceranges
|
||||
*/
|
||||
priceRanges: Array<ServicePriceRangeSchema>;
|
||||
priceRanges?: Array<ServicePriceRangeSchema> | null;
|
||||
/**
|
||||
* Cost
|
||||
*/
|
||||
cost: number | null;
|
||||
cost?: number | null;
|
||||
/**
|
||||
* Lexorank
|
||||
*/
|
||||
lexorank: string;
|
||||
/**
|
||||
* Id
|
||||
*/
|
||||
id: number;
|
||||
lexorank?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@ -141,6 +141,7 @@ export const zServicePriceRangeSchema = z.object({
|
||||
export const zServiceSchema = z.object({
|
||||
name: z.string(),
|
||||
category: zServiceCategorySchema,
|
||||
categoryId: z.optional(z.union([z.int(), z.null()])),
|
||||
price: z.number(),
|
||||
serviceType: z.int(),
|
||||
priceRanges: z.array(zServicePriceRangeSchema),
|
||||
@ -381,6 +382,7 @@ export const zCreateServiceCategoryResponse = z.object({
|
||||
export const zCreateServiceSchema = z.object({
|
||||
name: z.string(),
|
||||
category: zServiceCategorySchema,
|
||||
categoryId: z.optional(z.union([z.int(), z.null()])),
|
||||
price: z.number(),
|
||||
serviceType: z.int(),
|
||||
priceRanges: z.array(zServicePriceRangeSchema),
|
||||
@ -886,10 +888,9 @@ export const zUpdateProjectResponse = z.object({
|
||||
* UpdateServiceCategorySchema
|
||||
*/
|
||||
export const zUpdateServiceCategorySchema = z.object({
|
||||
name: z.string(),
|
||||
dealServiceRank: z.string(),
|
||||
productServiceRank: z.string(),
|
||||
id: z.int(),
|
||||
name: z.optional(z.union([z.string(), z.null()])),
|
||||
dealServiceRank: z.optional(z.union([z.string(), z.null()])),
|
||||
productServiceRank: z.optional(z.union([z.string(), z.null()])),
|
||||
});
|
||||
|
||||
/**
|
||||
@ -910,14 +911,16 @@ export const zUpdateServiceCategoryResponse = z.object({
|
||||
* UpdateServiceSchema
|
||||
*/
|
||||
export const zUpdateServiceSchema = z.object({
|
||||
name: z.string(),
|
||||
category: zServiceCategorySchema,
|
||||
price: z.number(),
|
||||
serviceType: z.int(),
|
||||
priceRanges: z.array(zServicePriceRangeSchema),
|
||||
cost: z.union([z.number(), z.null()]),
|
||||
lexorank: z.string(),
|
||||
id: z.int(),
|
||||
name: z.optional(z.union([z.string(), z.null()])),
|
||||
category: z.optional(z.union([zServiceCategorySchema, z.null()])),
|
||||
categoryId: z.optional(z.union([z.int(), z.null()])),
|
||||
price: z.optional(z.union([z.number(), z.null()])),
|
||||
serviceType: z.optional(z.union([z.int(), z.null()])),
|
||||
priceRanges: z.optional(
|
||||
z.union([z.array(zServicePriceRangeSchema), z.null()])
|
||||
),
|
||||
cost: z.optional(z.union([z.number(), z.null()])),
|
||||
lexorank: z.optional(z.union([z.string(), z.null()])),
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user