@tmlmobilidade/types
Version:
208 lines (207 loc) • 7.4 kB
TypeScript
import { z } from 'zod';
export declare const AgencySchema: z.ZodObject<{
_id: z.ZodString;
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
is_locked: z.ZodDefault<z.ZodBoolean>;
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
} & {
contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
fare_url: z.ZodString;
financials: z.ZodObject<{
price_per_km: z.ZodNumber;
vkm_per_month: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
price_per_km: number;
vkm_per_month: number[];
}, {
price_per_km: number;
vkm_per_month: number[];
}>;
name: z.ZodString;
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>;
phone: z.ZodString;
public_email: z.ZodString;
short_name: z.ZodString;
timezone: z.ZodDefault<z.ZodString>;
website_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
_id: string;
created_at: number & {
__brand: "UnixTimestamp";
};
is_locked: boolean;
updated_at: number & {
__brand: "UnixTimestamp";
};
contact_emails_pta: string[];
contact_emails_pto: string[];
fare_url: string;
financials: {
price_per_km: number;
vkm_per_month: number[];
};
name: string;
operation_start_date: import("./_common/operational-date.js").OperationalDate | null;
phone: string;
public_email: string;
short_name: string;
timezone: string;
website_url: string;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
_id: string;
created_at: number;
updated_at: number;
fare_url: string;
financials: {
price_per_km: number;
vkm_per_month: number[];
};
name: string;
phone: string;
public_email: string;
short_name: string;
website_url: string;
created_by?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
contact_emails_pta?: string[] | undefined;
contact_emails_pto?: string[] | undefined;
operation_start_date?: string | null | undefined;
timezone?: string | undefined;
}>;
export declare const CreateAgencySchema: z.ZodObject<Omit<{
_id: z.ZodString;
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
created_by: z.ZodOptional<z.ZodString>;
is_locked: z.ZodDefault<z.ZodBoolean>;
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
} & {
contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
fare_url: z.ZodString;
financials: z.ZodObject<{
price_per_km: z.ZodNumber;
vkm_per_month: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
price_per_km: number;
vkm_per_month: number[];
}, {
price_per_km: number;
vkm_per_month: number[];
}>;
name: z.ZodString;
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>;
phone: z.ZodString;
public_email: z.ZodString;
short_name: z.ZodString;
timezone: z.ZodDefault<z.ZodString>;
website_url: z.ZodString;
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
_id: string;
is_locked: boolean;
contact_emails_pta: string[];
contact_emails_pto: string[];
fare_url: string;
financials: {
price_per_km: number;
vkm_per_month: number[];
};
name: string;
operation_start_date: import("./_common/operational-date.js").OperationalDate | null;
phone: string;
public_email: string;
short_name: string;
timezone: string;
website_url: string;
created_by?: string | undefined;
updated_by?: string | undefined;
}, {
_id: string;
fare_url: string;
financials: {
price_per_km: number;
vkm_per_month: number[];
};
name: string;
phone: string;
public_email: string;
short_name: string;
website_url: string;
created_by?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
contact_emails_pta?: string[] | undefined;
contact_emails_pto?: string[] | undefined;
operation_start_date?: string | null | undefined;
timezone?: string | undefined;
}>;
export declare const UpdateAgencySchema: z.ZodObject<{
_id: z.ZodOptional<z.ZodString>;
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
contact_emails_pta: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
contact_emails_pto: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
fare_url: z.ZodOptional<z.ZodString>;
financials: z.ZodOptional<z.ZodObject<{
price_per_km: z.ZodNumber;
vkm_per_month: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
price_per_km: number;
vkm_per_month: number[];
}, {
price_per_km: number;
vkm_per_month: number[];
}>>;
name: z.ZodOptional<z.ZodString>;
operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>>;
phone: z.ZodOptional<z.ZodString>;
public_email: z.ZodOptional<z.ZodString>;
short_name: z.ZodOptional<z.ZodString>;
timezone: z.ZodOptional<z.ZodDefault<z.ZodString>>;
website_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
_id?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
contact_emails_pta?: string[] | undefined;
contact_emails_pto?: string[] | undefined;
fare_url?: string | undefined;
financials?: {
price_per_km: number;
vkm_per_month: number[];
} | undefined;
name?: string | undefined;
operation_start_date?: import("./_common/operational-date.js").OperationalDate | null | undefined;
phone?: string | undefined;
public_email?: string | undefined;
short_name?: string | undefined;
timezone?: string | undefined;
website_url?: string | undefined;
}, {
_id?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
contact_emails_pta?: string[] | undefined;
contact_emails_pto?: string[] | undefined;
fare_url?: string | undefined;
financials?: {
price_per_km: number;
vkm_per_month: number[];
} | undefined;
name?: string | undefined;
operation_start_date?: string | null | undefined;
phone?: string | undefined;
public_email?: string | undefined;
short_name?: string | undefined;
timezone?: string | undefined;
website_url?: string | undefined;
}>;
export type Agency = z.infer<typeof AgencySchema>;
export type CreateAgencyDto = z.infer<typeof CreateAgencySchema>;
export type UpdateAgencyDto = z.infer<typeof UpdateAgencySchema>;