/** Types generated for queries found in "src/api/rest/demarches.queries.ts" */
export type Json = null | boolean | number | string | Json[] | { [key: string]: Json };

/** 'GetEtapesByDemarcheIdDb' parameters type */
export interface IGetEtapesByDemarcheIdDbParams {
  demarcheId: string;
}

/** 'GetEtapesByDemarcheIdDb' return type */
export interface IGetEtapesByDemarcheIdDbResult {
  amodiataire_ids: Json;
  communes: Json;
  contenu: Json | null;
  date: string;
  date_debut: string | null;
  date_fin: string | null;
  demarche_id_en_concurrence: string | null;
  demarche_ids_consentement: Json;
  duree: number | null;
  etape_fondamentale_id: string;
  etape_statut_id: string;
  etape_type_id: string;
  forets: Json;
  geojson_origine_forages: Json | null;
  geojson_origine_geo_systeme_id: string | null;
  geojson_origine_perimetre: Json | null;
  geojson_origine_points: Json | null;
  geojson4326_forages: Json | null;
  geojson4326_perimetre: Json | null;
  geojson4326_points: Json | null;
  heritage_contenu: Json | null;
  heritage_props: Json | null;
  id: string;
  is_brouillon: boolean;
  note: Json;
  ordre: number;
  sdom_zones: Json;
  secteurs_maritime: Json;
  slug: string | null;
  substances: Json;
  surface: number | null;
  titulaire_ids: Json;
}

/** 'GetEtapesByDemarcheIdDb' query type */
export interface IGetEtapesByDemarcheIdDbQuery {
  params: IGetEtapesByDemarcheIdDbParams;
  result: IGetEtapesByDemarcheIdDbResult;
}

/** 'GetDemarcheByIdOrSlugDb' parameters type */
export interface IGetDemarcheByIdOrSlugDbParams {
  idOrSlug: string;
}

/** 'GetDemarcheByIdOrSlugDb' return type */
export interface IGetDemarcheByIdOrSlugDbResult {
  demarche_description: string | null;
  demarche_id: string;
  demarche_slug: string | null;
  demarche_type_id: string;
  entreprises_lecture: boolean;
  machine_id: string | null;
  public_lecture: boolean;
  titre_id: string;
  titre_nom: string;
  titre_slug: string;
  titre_type_id: string;
}

/** 'GetDemarcheByIdOrSlugDb' query type */
export interface IGetDemarcheByIdOrSlugDbQuery {
  params: IGetDemarcheByIdOrSlugDbParams;
  result: IGetDemarcheByIdOrSlugDbResult;
}

/** 'GetFirstEtapeDateByDemarcheIdOrSlugDb' parameters type */
export interface IGetFirstEtapeDateByDemarcheIdOrSlugDbParams {
  enregistrementDeLaDemandeId: string;
  idOrSlug: string;
}

/** 'GetFirstEtapeDateByDemarcheIdOrSlugDb' return type */
export interface IGetFirstEtapeDateByDemarcheIdOrSlugDbResult {
  first_etape_date: string;
}

/** 'GetFirstEtapeDateByDemarcheIdOrSlugDb' query type */
export interface IGetFirstEtapeDateByDemarcheIdOrSlugDbQuery {
  params: IGetFirstEtapeDateByDemarcheIdOrSlugDbParams;
  result: IGetFirstEtapeDateByDemarcheIdOrSlugDbResult;
}

/** 'GetDemarchesEnConcurrenceDb' parameters type */
export interface IGetDemarchesEnConcurrenceDbParams {
  demarcheIdPivot: string;
}

/** 'GetDemarchesEnConcurrenceDb' return type */
export interface IGetDemarchesEnConcurrenceDbResult {
  demarche_id: string;
  demarche_public_lecture: boolean;
  titre_nom: string;
}

/** 'GetDemarchesEnConcurrenceDb' query type */
export interface IGetDemarchesEnConcurrenceDbQuery {
  params: IGetDemarchesEnConcurrenceDbParams;
  result: IGetDemarchesEnConcurrenceDbResult;
}

/** 'GetDemarchePivotEnConcurrenceDb' parameters type */
export interface IGetDemarchePivotEnConcurrenceDbParams {
  demarcheIdPivot: string;
  miseEnConcurrenceTypeId: string;
}

/** 'GetDemarchePivotEnConcurrenceDb' return type */
export interface IGetDemarchePivotEnConcurrenceDbResult {
  demarcheId: string;
  demarcheTypeId: string;
  machineId: string | null;
  perimetreTotalGeojson4326: Json | null;
  perimetreTotalSurface: number | null;
  titreNom: string;
  titreSlug: string;
  titreTypeId: string;
  titulaireIds: Json;
}

/** 'GetDemarchePivotEnConcurrenceDb' query type */
export interface IGetDemarchePivotEnConcurrenceDbQuery {
  params: IGetDemarchePivotEnConcurrenceDbParams;
  result: IGetDemarchePivotEnConcurrenceDbResult;
}

/** 'GetDemarchesSatellitesEnConcurrenceDb' parameters type */
export interface IGetDemarchesSatellitesEnConcurrenceDbParams {
  demarcheIdPivot: string;
  perimetrePivot: string;
}

/** 'GetDemarchesSatellitesEnConcurrenceDb' return type */
export interface IGetDemarchesSatellitesEnConcurrenceDbResult {
  demarcheId: string;
  demarcheTypeId: string;
  perimetre: Json | null;
  perimetreEnCommun: Json | null;
  surfaceEnCommun: number | null;
  titreNom: string;
  titreSlug: string;
  titreTypeId: string;
  titulaireIds: Json;
}

/** 'GetDemarchesSatellitesEnConcurrenceDb' query type */
export interface IGetDemarchesSatellitesEnConcurrenceDbQuery {
  params: IGetDemarchesSatellitesEnConcurrenceDbParams;
  result: IGetDemarchesSatellitesEnConcurrenceDbResult;
}

/** 'GetPerimetreSansSatelliteDb' parameters type */
export interface IGetPerimetreSansSatelliteDbParams {
  perimetrePivot: string;
  perimetreSatellite: string;
}

/** 'GetPerimetreSansSatelliteDb' return type */
export interface IGetPerimetreSansSatelliteDbResult {
  perimetre_sans_satellite: Json | null;
  surface_sans_satellite: number | null;
}

/** 'GetPerimetreSansSatelliteDb' query type */
export interface IGetPerimetreSansSatelliteDbQuery {
  params: IGetPerimetreSansSatelliteDbParams;
  result: IGetPerimetreSansSatelliteDbResult;
}

/** 'GetDemarchesDb' parameters type */
export type IGetDemarchesDbParams = void;

/** 'GetDemarchesDb' return type */
export interface IGetDemarchesDbResult {
  id: string;
}

/** 'GetDemarchesDb' query type */
export interface IGetDemarchesDbQuery {
  params: IGetDemarchesDbParams;
  result: IGetDemarchesDbResult;
}

