infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/ServizioAnnunci.ts
Marco Pedone ed7359aa16 refactor: update confirmation handling in service announcements
- Changed the confirmation status checks from `accettato_conferma_at` to `status_conferma` in various components and controllers.
- Introduced a new `StatusConfermaEnum` to standardize confirmation statuses.
- Removed deprecated confirmation-related fields from the `ServizioAnnunci` schema.
- Deleted unused confirmation-related API methods and adjusted related logic in the service controller.
- Updated the search parameters schema to use the new confirmation status.
- Removed the `conferma-immobile` and `riapri-conferma` pages as they are no longer needed.
2026-04-09 16:17:24 +02:00

49 lines
2 KiB
TypeScript

// @generated
// This file is automatically generated by Kanel. Do not modify manually.
import type { ServizioServizioId } from './Servizio';
import type { AnnunciId } from './Annunci';
import type { default as StatusConfermaEnum } from './StatusConfermaEnum';
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
/** Identifier type for public.servizio_annunci */
export type ServizioAnnunciServizioAnnunciId = number & { __brand: 'public.servizio_annunci' };
/** Represents the table public.servizio_annunci */
export default interface ServizioAnnunciTable {
servizio_annunci_id: ColumnType<ServizioAnnunciServizioAnnunciId, ServizioAnnunciServizioAnnunciId | undefined, ServizioAnnunciServizioAnnunciId>;
servizio_id: ColumnType<ServizioServizioId, ServizioServizioId, ServizioServizioId>;
annunci_id: ColumnType<AnnunciId, AnnunciId, AnnunciId>;
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
open_contatti_at: ColumnType<Date | null, Date | string | null, Date | string | null>;
doc_contratto_ref: ColumnType<string | null, string | null, string | null>;
gestionale_id: ColumnType<number | null, number | null, number | null>;
contratto_decorrenza: ColumnType<Date | null, Date | string | null, Date | string | null>;
contratto_scadenza: ColumnType<Date | null, Date | string | null, Date | string | null>;
contratto_tipo: ColumnType<string | null, string | null, string | null>;
doc_registrazione_ref: ColumnType<string | null, string | null, string | null>;
doc_contratto_added: ColumnType<boolean, boolean | undefined, boolean>;
doc_registrazione_added: ColumnType<boolean, boolean | undefined, boolean>;
note: ColumnType<string | null, string | null, string | null>;
status_conferma: ColumnType<StatusConfermaEnum | null, StatusConfermaEnum | null, StatusConfermaEnum | null>;
}
export type ServizioAnnunci = Selectable<ServizioAnnunciTable>;
export type NewServizioAnnunci = Insertable<ServizioAnnunciTable>;
export type ServizioAnnunciUpdate = Updateable<ServizioAnnunciTable>;