fix: enable trust proxy with express adapter

This commit is contained in:
Matthieu
2025-09-18 08:26:26 +02:00
parent 11695cec7c
commit 9ce37ff148
18 changed files with 573 additions and 571 deletions

View File

@@ -39,11 +39,11 @@ export declare class ComposantsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}[];
pieces: {
name: string;
@@ -89,8 +89,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
parentComposant: {
name: string;
@@ -102,8 +102,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -115,8 +115,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
findAll(): Promise<({
typeComposant: {
@@ -154,11 +154,11 @@ export declare class ComposantsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}[];
pieces: ({
constructeur: {
@@ -176,22 +176,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -238,22 +238,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -275,22 +275,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -302,8 +302,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -312,22 +312,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
parentComposant: {
name: string;
@@ -339,8 +339,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -352,8 +352,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findHierarchy(machineId: string): Promise<({
typeComposant: {
@@ -387,22 +387,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -449,22 +449,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -511,22 +511,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -548,22 +548,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -575,8 +575,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -585,22 +585,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -612,8 +612,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -622,22 +622,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -649,8 +649,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findByMachine(machineId: string): Promise<({
typeComposant: {
@@ -688,11 +688,11 @@ export declare class ComposantsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}[];
pieces: ({
constructeur: {
@@ -710,22 +710,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -779,8 +779,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -789,22 +789,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
parentComposant: {
name: string;
@@ -816,8 +816,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -829,8 +829,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[]>;
findOne(id: string): Promise<({
typeComposant: {
@@ -868,11 +868,11 @@ export declare class ComposantsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}[];
pieces: ({
constructeur: {
@@ -890,22 +890,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -952,22 +952,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -989,22 +989,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -1016,8 +1016,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -1026,22 +1026,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
parentComposant: {
name: string;
@@ -1053,8 +1053,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -1066,8 +1066,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}) | null>;
update(id: string, updateComposantDto: UpdateComposantDto): Promise<{
typeComposant: {
@@ -1105,11 +1105,11 @@ export declare class ComposantsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}[];
pieces: ({
constructeur: {
@@ -1127,22 +1127,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -1189,22 +1189,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -1226,22 +1226,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
} & {
name: string;
@@ -1253,8 +1253,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
})[];
customFieldValues: ({
customField: {
@@ -1263,22 +1263,22 @@ export declare class ComposantsController {
createdAt: Date;
updatedAt: Date;
typeMachineId: string | null;
typePieceId: string | null;
typeComposantId: string | null;
type: string;
required: boolean;
defaultValue: string | null;
options: string[];
typeComposantId: string | null;
typePieceId: string | null;
};
} & {
id: string;
createdAt: Date;
updatedAt: Date;
value: string;
customFieldId: string;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
value: string;
customFieldId: string;
})[];
parentComposant: {
name: string;
@@ -1290,8 +1290,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
} & {
name: string;
@@ -1303,8 +1303,8 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
remove(id: string): Promise<{
name: string;
@@ -1316,7 +1316,7 @@ export declare class ComposantsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
}>;
}