diff --git a/src/app/module-editor/[moduleId]/modals/AttributeEditorModal.tsx b/src/app/module-editor/[moduleId]/modals/AttributeEditorModal.tsx index 30d5b5e..41b2826 100644 --- a/src/app/module-editor/[moduleId]/modals/AttributeEditorModal.tsx +++ b/src/app/module-editor/[moduleId]/modals/AttributeEditorModal.tsx @@ -39,8 +39,6 @@ const AttributeEditorModal = ({ typeId: undefined, type: undefined, isApplicableToGroup: false, - isShownOnDashboard: false, - isHighlightIfExpired: false, isNullable: false, defaultValue: null, description: "", @@ -100,21 +98,6 @@ const AttributeEditorModal = ({ type: "checkbox", })} /> - - {(form.values.type?.type === "datetime" || - form.values.type?.type === "date") && ( - - )} {isNullableInputShown && ( { accessor: "isApplicableToGroup", render: attr => renderCheck(attr.isApplicableToGroup), }, - { - title: "Вывод на дашборде", - accessor: "isShownOnDashboard", - render: attr => renderCheck(attr.isShownOnDashboard), - }, - { - title: "Подсветка, если просрочен", - accessor: "isHighlightIfExpired", - render: attr => renderCheck(attr.isHighlightIfExpired), - }, { title: "Может быть пустым", accessor: "isNullable", diff --git a/src/lib/client/types.gen.ts b/src/lib/client/types.gen.ts index 3fb8184..6c7362a 100644 --- a/src/lib/client/types.gen.ts +++ b/src/lib/client/types.gen.ts @@ -36,14 +36,6 @@ export type AttributeSchema = { * Isapplicabletogroup */ isApplicableToGroup: boolean; - /** - * Isshownondashboard - */ - isShownOnDashboard: boolean; - /** - * Ishighlightifexpired - */ - isHighlightIfExpired: boolean; /** * Isnullable */ @@ -306,14 +298,6 @@ export type CreateAttributeSchema = { * Isapplicabletogroup */ isApplicableToGroup: boolean; - /** - * Isshownondashboard - */ - isShownOnDashboard: boolean; - /** - * Ishighlightifexpired - */ - isHighlightIfExpired: boolean; /** * Isnullable */ @@ -1071,14 +1055,6 @@ export type DealModuleAttributeSchema = { * Isapplicabletogroup */ isApplicableToGroup: boolean; - /** - * Isshownondashboard - */ - isShownOnDashboard: boolean; - /** - * Ishighlightifexpired - */ - isHighlightIfExpired: boolean; /** * Isnullable */ @@ -1787,14 +1763,6 @@ export type ModuleAttributeSchema = { * Isapplicabletogroup */ isApplicableToGroup: boolean; - /** - * Isshownondashboard - */ - isShownOnDashboard: boolean; - /** - * Ishighlightifexpired - */ - isHighlightIfExpired: boolean; /** * Isnullable */ @@ -2399,14 +2367,6 @@ export type UpdateAttributeSchema = { * Isapplicabletogroup */ isApplicableToGroup?: boolean | null; - /** - * Isshownondashboard - */ - isShownOnDashboard?: boolean | null; - /** - * Ishighlightifexpired - */ - isHighlightIfExpired?: boolean | null; /** * Isnullable */ diff --git a/src/lib/client/zod.gen.ts b/src/lib/client/zod.gen.ts index 283fbfd..d0a7c12 100644 --- a/src/lib/client/zod.gen.ts +++ b/src/lib/client/zod.gen.ts @@ -32,8 +32,6 @@ export const zAttributeTypeSchema = z.object({ export const zAttributeSchema = z.object({ label: z.string(), isApplicableToGroup: z.boolean(), - isShownOnDashboard: z.boolean(), - isHighlightIfExpired: z.boolean(), isNullable: z.boolean(), defaultValue: z.union([z.object({}), z.null()]), description: z.string(), @@ -142,8 +140,6 @@ export const zClientSchema = z.object({ export const zCreateAttributeSchema = z.object({ label: z.string(), isApplicableToGroup: z.boolean(), - isShownOnDashboard: z.boolean(), - isHighlightIfExpired: z.boolean(), isNullable: z.boolean(), defaultValue: z.union([z.object({}), z.null()]), description: z.string(), @@ -839,8 +835,6 @@ export const zDealModuleAttributeSchema = z.object({ defaultValue: z.object({}), description: z.string(), isApplicableToGroup: z.boolean(), - isShownOnDashboard: z.boolean(), - isHighlightIfExpired: z.boolean(), isNullable: z.boolean(), }); @@ -1028,8 +1022,6 @@ export const zGetAllModulesResponse = z.object({ export const zModuleAttributeSchema = z.object({ label: z.string(), isApplicableToGroup: z.boolean(), - isShownOnDashboard: z.boolean(), - isHighlightIfExpired: z.boolean(), isNullable: z.boolean(), defaultValue: z.union([z.object({}), z.null()]), description: z.string(), @@ -1348,8 +1340,6 @@ export const zUpdateAttributeLabelResponse = z.object({ export const zUpdateAttributeSchema = z.object({ label: z.optional(z.union([z.string(), z.null()])), isApplicableToGroup: z.optional(z.union([z.boolean(), z.null()])), - isShownOnDashboard: z.optional(z.union([z.boolean(), z.null()])), - isHighlightIfExpired: z.optional(z.union([z.boolean(), z.null()])), isNullable: z.optional(z.union([z.boolean(), z.null()])), defaultValue: z.optional(z.union([z.object({}), z.null()])), description: z.optional(z.union([z.string(), z.null()])),