feat: Introduce Nullable type for optional fields and update user DTOs accordingly

This commit is contained in:
2025-03-12 08:56:44 +00:00
parent da115dc3f6
commit 233f3cdb5c
9 changed files with 145 additions and 26 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { Nullable } from "./nullable";
// Code generated by tygo. DO NOT EDIT.
//////////
@@ -167,7 +168,7 @@ export interface UserCreateDto {
email: string;
password: string;
role: string;
companyId?: string;
companyId?: Nullable<string>;
hourlyRate: number /* float64 */;
}
export interface UserUpdateDto {
@@ -178,6 +179,6 @@ export interface UserUpdateDto {
email?: string;
password?: string;
role?: string;
companyId?: string;
companyId?: Nullable<string>;
hourlyRate?: number /* float64 */;
}
+1
View File
@@ -0,0 +1 @@
export type Nullable<T> = T | null;