Skip to content

Commit

Permalink
feat: Mise en place de l'onglet Signalements des guichets (début)
Browse files Browse the repository at this point in the history
  • Loading branch information
pprev94 committed Sep 13, 2024
1 parent 5d3413d commit d7a6628
Show file tree
Hide file tree
Showing 22 changed files with 1,287 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"request": "launch",
"port": 9003
},
{
"name": "Listen for Xdebug 2 (Legacy)",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Listen for Xdebug (in docker)",
"type": "php",
Expand Down
100 changes: 99 additions & 1 deletion assets/@types/espaceco.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
export interface ConstraintsDTO {
minLength?: number;
maxLength?: number;
minValue?: string;
maxValue?: string;
pattern?: string;
}

export interface AttributeDTO {
name: string;
type: "text" | "integer" | "double" | "checkbox" | "list" | "date";
default?: string;
mandatory?: boolean;
values?: string[];
help?: string;
title?: string;
input_constraints?: ConstraintsDTO;
json_schema?: object;
required?: boolean;
condition_field?: string;
}

export interface ThemeDTO {
theme: string;
database?: string;
table?: string;
attributes: AttributeDTO[];
help?: string;
global?: boolean;
}

export interface CommunityResponseDTO {
id: number;
description: string | null;
Expand All @@ -6,7 +37,7 @@ export interface CommunityResponseDTO {
active: boolean;
shared_georem: "all" | "restrained" | "personal";
email: string | null;
attributes: object[];
attributes: ThemeDTO[];
default_comment: string | null;
position: string | null;
zoom: number;
Expand Down Expand Up @@ -55,3 +86,70 @@ export interface GridType {
export interface CommunityPatchDTO extends Partial<Omit<CommunityResponseDTO, "logo_url">> {
logo: File | null;
}

export interface PermissionResponseDTO {
id: number;
database: number;
table: number | null;
column: number | null;
level: "NONE" | "VIEW" | "EXPORT" | "EDIT" | "ADMIN";
}

export interface ColumnDTO {
table_id: number;
crs: string | null;
enum: object | string[] | null;
default_value: string | null;
read_only: boolean;
id: number;
type: string;
target_table: string | null;
target_entity: string | null;
name: string;
short_name: string;
title: string;
description: string | null;
min_length: number | null;
max_length: number | null;
nullable: boolean;
unique: boolean;
srid: number | null;
position: number;
min_value: string | null;
max_value: string | null;
pattern: string | null;
is3d: boolean;
constraint: object | null;
condition_field: string | null;
computed: boolean;
automatic: boolean;
custom_id: boolean;
formula: string | null;
json_schema: object | null;
jeux_attributs: object | null;
queryable: boolean;
required: boolean;
mime_types: string | null;
}

export interface TableResponseDTO {
database_id: number;
database: string;
database_versioning: boolean;
full_name: string;
id_name: string;
geometry_name: string;
min_zoom_level: number | null;
max_zoom_level: number | null;
tile_zoom_level: number | null;
read_only: boolean;
id: number;
name: string;
title: string;
description: string | null;
thematic_ids: string[] | null;
position: number;
wfs: string;
wfs_transactions: string;
columns: ColumnDTO[];
}
Loading

0 comments on commit d7a6628

Please sign in to comment.