refactor: moved ProjectEditorDrawer into common drawers directory
This commit is contained in:
@ -411,6 +411,51 @@ export const zCreateDealServiceResponse = z.object({
|
||||
entity: zDealServiceSchema,
|
||||
});
|
||||
|
||||
/**
|
||||
* CreateDealTagSchema
|
||||
*/
|
||||
export const zCreateDealTagSchema = z.object({
|
||||
name: z.string(),
|
||||
projectId: z.int(),
|
||||
tagColorId: z.int(),
|
||||
});
|
||||
|
||||
/**
|
||||
* CreateDealTagRequest
|
||||
*/
|
||||
export const zCreateDealTagRequest = z.object({
|
||||
entity: zCreateDealTagSchema,
|
||||
});
|
||||
|
||||
/**
|
||||
* DealTagColorSchema
|
||||
*/
|
||||
export const zDealTagColorSchema = z.object({
|
||||
id: z.int(),
|
||||
color: z.string(),
|
||||
backgroundColor: z.string(),
|
||||
label: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* DealTagSchema
|
||||
*/
|
||||
export const zDealTagSchema = z.object({
|
||||
name: z.string(),
|
||||
projectId: z.int(),
|
||||
tagColorId: z.int(),
|
||||
id: z.int(),
|
||||
tagColor: zDealTagColorSchema,
|
||||
});
|
||||
|
||||
/**
|
||||
* CreateDealTagResponse
|
||||
*/
|
||||
export const zCreateDealTagResponse = z.object({
|
||||
message: z.string(),
|
||||
entity: zDealTagSchema,
|
||||
});
|
||||
|
||||
/**
|
||||
* CreateMarketplaceSchema
|
||||
*/
|
||||
@ -728,6 +773,13 @@ export const zDeleteDealServiceResponse = z.object({
|
||||
message: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* DeleteDealTagResponse
|
||||
*/
|
||||
export const zDeleteDealTagResponse = z.object({
|
||||
message: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* DeleteMarketplaceResponse
|
||||
*/
|
||||
@ -951,6 +1003,13 @@ export const zGetStatusesResponse = z.object({
|
||||
items: z.array(zStatusSchema),
|
||||
});
|
||||
|
||||
/**
|
||||
* GetTagColorsResponse
|
||||
*/
|
||||
export const zGetTagColorsResponse = z.object({
|
||||
items: z.array(zDealTagColorSchema),
|
||||
});
|
||||
|
||||
/**
|
||||
* ValidationError
|
||||
*/
|
||||
@ -994,6 +1053,22 @@ export const zProductServicesDuplicateResponse = z.object({
|
||||
|
||||
export const zSortDir = z.enum(["asc", "desc"]);
|
||||
|
||||
/**
|
||||
* SwitchDealTagRequest
|
||||
*/
|
||||
export const zSwitchDealTagRequest = z.object({
|
||||
tagId: z.int(),
|
||||
dealId: z.optional(z.union([z.int(), z.null()])),
|
||||
groupId: z.optional(z.union([z.int(), z.null()])),
|
||||
});
|
||||
|
||||
/**
|
||||
* SwitchDealTagResponse
|
||||
*/
|
||||
export const zSwitchDealTagResponse = z.object({
|
||||
message: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* UpdateBarcodeTemplateSchema
|
||||
*/
|
||||
@ -1159,6 +1234,28 @@ export const zUpdateDealServiceResponse = z.object({
|
||||
message: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* UpdateDealTagSchema
|
||||
*/
|
||||
export const zUpdateDealTagSchema = z.object({
|
||||
name: z.optional(z.union([z.string(), z.null()])),
|
||||
tagColor: z.optional(z.union([zDealTagColorSchema, z.null()])),
|
||||
});
|
||||
|
||||
/**
|
||||
* UpdateDealTagRequest
|
||||
*/
|
||||
export const zUpdateDealTagRequest = z.object({
|
||||
entity: zUpdateDealTagSchema,
|
||||
});
|
||||
|
||||
/**
|
||||
* UpdateDealTagResponse
|
||||
*/
|
||||
export const zUpdateDealTagResponse = z.object({
|
||||
message: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* UpdateDealsInGroupRequest
|
||||
*/
|
||||
@ -1531,6 +1628,63 @@ export const zUpdateDealsInGroupData = z.object({
|
||||
*/
|
||||
export const zUpdateDealsInGroupResponse2 = zUpdateDealsInGroupResponse;
|
||||
|
||||
export const zUpdateTagData = z.object({
|
||||
body: zUpdateDealTagRequest,
|
||||
path: z.optional(z.never()),
|
||||
query: z.optional(z.never()),
|
||||
});
|
||||
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
export const zUpdateTagResponse = zUpdateDealTagResponse;
|
||||
|
||||
export const zCreateTagData = z.object({
|
||||
body: zCreateDealTagRequest,
|
||||
path: z.optional(z.never()),
|
||||
query: z.optional(z.never()),
|
||||
});
|
||||
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
export const zCreateTagResponse = zCreateDealTagResponse;
|
||||
|
||||
export const zDeleteTagData = z.object({
|
||||
body: z.optional(z.never()),
|
||||
path: z.object({
|
||||
deal_tag_id: z.int(),
|
||||
}),
|
||||
query: z.optional(z.never()),
|
||||
});
|
||||
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
export const zDeleteTagResponse = zDeleteDealTagResponse;
|
||||
|
||||
export const zSwitchDealTagData = z.object({
|
||||
body: zSwitchDealTagRequest,
|
||||
path: z.optional(z.never()),
|
||||
query: z.optional(z.never()),
|
||||
});
|
||||
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
export const zSwitchDealTagResponse2 = zSwitchDealTagResponse;
|
||||
|
||||
export const zGetDealTagColorsData = z.object({
|
||||
body: z.optional(z.never()),
|
||||
path: z.optional(z.never()),
|
||||
query: z.optional(z.never()),
|
||||
});
|
||||
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
export const zGetDealTagColorsResponse = zGetTagColorsResponse;
|
||||
|
||||
export const zGetBuiltInModulesData = z.object({
|
||||
body: z.optional(z.never()),
|
||||
path: z.optional(z.never()),
|
||||
|
||||
Reference in New Issue
Block a user