feat: services table with dnd
This commit is contained in:
@ -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