This commit is contained in:
@@ -44,7 +44,7 @@ export interface ICreateCompanyCredentials {
|
||||
employee_count?: number | string;
|
||||
annual_revenue?: number | string;
|
||||
currency: string;
|
||||
industry: string;
|
||||
industry?: string;
|
||||
language: string;
|
||||
tax_id: string;
|
||||
registration_number: string;
|
||||
@@ -68,7 +68,7 @@ export const companySchema = z.object({
|
||||
employee_count: z.number(),
|
||||
annual_revenue: z.number(),
|
||||
currency: z.string(),
|
||||
industry: z.string(),
|
||||
industry: z.string().optional(),
|
||||
language: z.string(),
|
||||
tax_id: z.string(),
|
||||
registration_number: z.string(),
|
||||
@@ -118,7 +118,7 @@ export const companiesResponseSchema = z.object({
|
||||
export const companyDetailsApiResponseSchema =
|
||||
createApiResponseSchema(companySchema);
|
||||
export const CompaniesListResponseSchema = createApiResponseSchema(
|
||||
companiesResponseSchema
|
||||
companiesResponseSchema,
|
||||
);
|
||||
export type TCompany = z.infer<typeof companySchema>;
|
||||
export type TCompaniesResponse = z.infer<typeof companiesResponseSchema>;
|
||||
|
||||
@@ -59,7 +59,7 @@ export interface ICreateCompanyCredentials {
|
||||
employee_count?: number | string;
|
||||
annual_revenue?: number | string;
|
||||
currency: string;
|
||||
industry: string;
|
||||
industry?: string;
|
||||
language: string;
|
||||
tax_id: string;
|
||||
registration_number: string;
|
||||
@@ -84,7 +84,7 @@ export const companySchema = z.object({
|
||||
employee_count: z.number().nullish(),
|
||||
annual_revenue: z.number().nullish(),
|
||||
currency: z.string(),
|
||||
industry: z.string(),
|
||||
industry: z.string().optional(),
|
||||
language: z.string(),
|
||||
tax_id: z.string(),
|
||||
registration_number: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user