Files
alrahma_sunday_school_api/apps/api/dist/modules/admin/admin.schemas.d.ts
T
2026-06-11 03:22:12 -04:00

1260 lines
54 KiB
TypeScript

import { z } from 'zod';
import type { MarketplaceHomepageContent } from '@rentaldrivego/types';
export declare const loginSchema: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
totpCode: z.ZodOptional<z.ZodString>;
recoveryCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
email: string;
password: string;
totpCode?: string | undefined;
recoveryCode?: string | undefined;
}, {
email: string;
password: string;
totpCode?: string | undefined;
recoveryCode?: string | undefined;
}>;
export declare const forgotPasswordSchema: z.ZodObject<{
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
}, {
email: string;
}>;
export declare const resetPasswordSchema: z.ZodObject<{
token: z.ZodString;
password: z.ZodString;
}, "strip", z.ZodTypeAny, {
password: string;
token: string;
}, {
password: string;
token: string;
}>;
export declare const totpVerifySchema: z.ZodObject<{
code: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: string;
}, {
code: string;
}>;
export declare const companiesQuerySchema: z.ZodObject<{
q: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodString>;
plan: z.ZodOptional<z.ZodString>;
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
status?: string | undefined;
q?: string | undefined;
plan?: string | undefined;
}, {
status?: string | undefined;
page?: number | undefined;
pageSize?: number | undefined;
q?: string | undefined;
plan?: string | undefined;
}>;
export declare const rentersQuerySchema: z.ZodObject<{
q: z.ZodOptional<z.ZodString>;
blocked: z.ZodOptional<z.ZodString>;
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
q?: string | undefined;
blocked?: string | undefined;
}, {
page?: number | undefined;
pageSize?: number | undefined;
q?: string | undefined;
blocked?: string | undefined;
}>;
export declare const auditLogQuerySchema: z.ZodObject<{
adminId: z.ZodOptional<z.ZodString>;
action: z.ZodOptional<z.ZodString>;
companyId: z.ZodOptional<z.ZodString>;
entityId: z.ZodOptional<z.ZodString>;
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
companyId?: string | undefined;
action?: string | undefined;
entityId?: string | undefined;
adminId?: string | undefined;
}, {
page?: number | undefined;
pageSize?: number | undefined;
companyId?: string | undefined;
action?: string | undefined;
entityId?: string | undefined;
adminId?: string | undefined;
}>;
export declare const notificationsQuerySchema: z.ZodObject<{
channel: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodString>;
companyId: z.ZodOptional<z.ZodString>;
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
status?: string | undefined;
companyId?: string | undefined;
channel?: string | undefined;
}, {
status?: string | undefined;
page?: number | undefined;
pageSize?: number | undefined;
companyId?: string | undefined;
channel?: string | undefined;
}>;
export declare const billingQuerySchema: z.ZodObject<{
q: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodString>;
plan: z.ZodOptional<z.ZodString>;
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
status?: string | undefined;
q?: string | undefined;
plan?: string | undefined;
}, {
status?: string | undefined;
page?: number | undefined;
pageSize?: number | undefined;
q?: string | undefined;
plan?: string | undefined;
}>;
export declare const invoicesQuerySchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
}, {
page?: number | undefined;
pageSize?: number | undefined;
}>;
export declare const permissionSchema: z.ZodObject<{
resource: z.ZodEnum<["COMPANIES", "COMPANY_EMPLOYEES", "SUBSCRIPTIONS", "PAYMENTS", "OFFERS", "RENTERS", "ADMIN_USERS", "AUDIT_LOGS", "PLATFORM_METRICS"]>;
actions: z.ZodArray<z.ZodEnum<["READ", "CREATE", "UPDATE", "DELETE", "SUSPEND", "IMPERSONATE"]>, "many">;
}, "strip", z.ZodTypeAny, {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}, {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}>;
export declare const createAdminSchema: z.ZodObject<{
email: z.ZodString;
firstName: z.ZodString;
lastName: z.ZodString;
role: z.ZodEnum<["SUPER_ADMIN", "ADMIN", "SUPPORT", "FINANCE", "VIEWER"]>;
password: z.ZodString;
permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
resource: z.ZodEnum<["COMPANIES", "COMPANY_EMPLOYEES", "SUBSCRIPTIONS", "PAYMENTS", "OFFERS", "RENTERS", "ADMIN_USERS", "AUDIT_LOGS", "PLATFORM_METRICS"]>;
actions: z.ZodArray<z.ZodEnum<["READ", "CREATE", "UPDATE", "DELETE", "SUSPEND", "IMPERSONATE"]>, "many">;
}, "strip", z.ZodTypeAny, {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}, {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}>, "many">>;
}, "strip", z.ZodTypeAny, {
firstName: string;
lastName: string;
email: string;
password: string;
role: "SUPER_ADMIN" | "ADMIN" | "SUPPORT" | "FINANCE" | "VIEWER";
permissions?: {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}[] | undefined;
}, {
firstName: string;
lastName: string;
email: string;
password: string;
role: "SUPER_ADMIN" | "ADMIN" | "SUPPORT" | "FINANCE" | "VIEWER";
permissions?: {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}[] | undefined;
}>;
export declare const updateAdminSchema: z.ZodObject<{
email: z.ZodOptional<z.ZodString>;
firstName: z.ZodOptional<z.ZodString>;
lastName: z.ZodOptional<z.ZodString>;
role: z.ZodOptional<z.ZodEnum<["SUPER_ADMIN", "ADMIN", "SUPPORT", "FINANCE", "VIEWER"]>>;
password: z.ZodOptional<z.ZodString>;
isActive: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
isActive?: boolean | undefined;
firstName?: string | undefined;
lastName?: string | undefined;
email?: string | undefined;
password?: string | undefined;
role?: "SUPER_ADMIN" | "ADMIN" | "SUPPORT" | "FINANCE" | "VIEWER" | undefined;
}, {
isActive?: boolean | undefined;
firstName?: string | undefined;
lastName?: string | undefined;
email?: string | undefined;
password?: string | undefined;
role?: "SUPER_ADMIN" | "ADMIN" | "SUPPORT" | "FINANCE" | "VIEWER" | undefined;
}>;
export declare const adminRoleSchema: z.ZodObject<{
role: z.ZodEnum<["SUPER_ADMIN", "ADMIN", "SUPPORT", "FINANCE", "VIEWER"]>;
}, "strip", z.ZodTypeAny, {
role: "SUPER_ADMIN" | "ADMIN" | "SUPPORT" | "FINANCE" | "VIEWER";
}, {
role: "SUPER_ADMIN" | "ADMIN" | "SUPPORT" | "FINANCE" | "VIEWER";
}>;
export declare const adminPermissionsSchema: z.ZodObject<{
permissions: z.ZodArray<z.ZodObject<{
resource: z.ZodEnum<["COMPANIES", "COMPANY_EMPLOYEES", "SUBSCRIPTIONS", "PAYMENTS", "OFFERS", "RENTERS", "ADMIN_USERS", "AUDIT_LOGS", "PLATFORM_METRICS"]>;
actions: z.ZodArray<z.ZodEnum<["READ", "CREATE", "UPDATE", "DELETE", "SUSPEND", "IMPERSONATE"]>, "many">;
}, "strip", z.ZodTypeAny, {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}, {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
permissions: {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}[];
}, {
permissions: {
resource: "COMPANIES" | "COMPANY_EMPLOYEES" | "SUBSCRIPTIONS" | "PAYMENTS" | "OFFERS" | "RENTERS" | "ADMIN_USERS" | "AUDIT_LOGS" | "PLATFORM_METRICS";
actions: ("READ" | "UPDATE" | "CREATE" | "DELETE" | "SUSPEND" | "IMPERSONATE")[];
}[];
}>;
export declare const companyStatusSchema: z.ZodObject<{
status: z.ZodEnum<["ACTIVE", "SUSPENDED", "CANCELLED"]>;
reason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
status: "CANCELLED" | "SUSPENDED" | "ACTIVE";
reason?: string | undefined;
}, {
status: "CANCELLED" | "SUSPENDED" | "ACTIVE";
reason?: string | undefined;
}>;
export declare const adminCompanyUpdateSchema: z.ZodObject<{
company: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
slug: z.ZodOptional<z.ZodString>;
email: z.ZodOptional<z.ZodString>;
phone: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
status: z.ZodOptional<z.ZodEnum<["PENDING", "TRIALING", "ACTIVE", "PAST_DUE", "SUSPENDED", "CANCELLED"]>>;
subscriptionPaymentRef: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
address: z.ZodOptional<z.ZodObject<{
streetAddress: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
city: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
zipCode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
legalName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
legalForm: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
companyEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
managerName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
iceNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
operatingLicenseNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
operatingLicenseIssuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
operatingLicenseIssuedBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
fax: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
yearsActive: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
representativeName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
representativeTitle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
responsibleName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
responsibleRole: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
responsibleIdentityNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
responsibleQualification: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
responsiblePhone: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
responsibleEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
legalName?: string | null | undefined;
legalForm?: string | null | undefined;
iceNumber?: string | null | undefined;
operatingLicenseNumber?: string | null | undefined;
operatingLicenseIssuedAt?: string | null | undefined;
operatingLicenseIssuedBy?: string | null | undefined;
streetAddress?: string | null | undefined;
city?: string | null | undefined;
country?: string | null | undefined;
zipCode?: string | null | undefined;
companyEmail?: string | null | undefined;
fax?: string | null | undefined;
yearsActive?: string | null | undefined;
representativeName?: string | null | undefined;
representativeTitle?: string | null | undefined;
responsibleName?: string | null | undefined;
responsibleRole?: string | null | undefined;
responsibleIdentityNumber?: string | null | undefined;
responsibleQualification?: string | null | undefined;
responsiblePhone?: string | null | undefined;
responsibleEmail?: string | null | undefined;
managerName?: string | null | undefined;
}, {
legalName?: string | null | undefined;
legalForm?: string | null | undefined;
iceNumber?: string | null | undefined;
operatingLicenseNumber?: string | null | undefined;
operatingLicenseIssuedAt?: string | null | undefined;
operatingLicenseIssuedBy?: string | null | undefined;
streetAddress?: string | null | undefined;
city?: string | null | undefined;
country?: string | null | undefined;
zipCode?: string | null | undefined;
companyEmail?: string | null | undefined;
fax?: string | null | undefined;
yearsActive?: string | null | undefined;
representativeName?: string | null | undefined;
representativeTitle?: string | null | undefined;
responsibleName?: string | null | undefined;
responsibleRole?: string | null | undefined;
responsibleIdentityNumber?: string | null | undefined;
responsibleQualification?: string | null | undefined;
responsiblePhone?: string | null | undefined;
responsibleEmail?: string | null | undefined;
managerName?: string | null | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
status?: "PENDING" | "TRIALING" | "CANCELLED" | "SUSPENDED" | "ACTIVE" | "PAST_DUE" | undefined;
name?: string | undefined;
email?: string | undefined;
phone?: string | null | undefined;
address?: {
legalName?: string | null | undefined;
legalForm?: string | null | undefined;
iceNumber?: string | null | undefined;
operatingLicenseNumber?: string | null | undefined;
operatingLicenseIssuedAt?: string | null | undefined;
operatingLicenseIssuedBy?: string | null | undefined;
streetAddress?: string | null | undefined;
city?: string | null | undefined;
country?: string | null | undefined;
zipCode?: string | null | undefined;
companyEmail?: string | null | undefined;
fax?: string | null | undefined;
yearsActive?: string | null | undefined;
representativeName?: string | null | undefined;
representativeTitle?: string | null | undefined;
responsibleName?: string | null | undefined;
responsibleRole?: string | null | undefined;
responsibleIdentityNumber?: string | null | undefined;
responsibleQualification?: string | null | undefined;
responsiblePhone?: string | null | undefined;
responsibleEmail?: string | null | undefined;
managerName?: string | null | undefined;
} | undefined;
slug?: string | undefined;
subscriptionPaymentRef?: string | null | undefined;
}, {
status?: "PENDING" | "TRIALING" | "CANCELLED" | "SUSPENDED" | "ACTIVE" | "PAST_DUE" | undefined;
name?: string | undefined;
email?: string | undefined;
phone?: string | null | undefined;
address?: {
legalName?: string | null | undefined;
legalForm?: string | null | undefined;
iceNumber?: string | null | undefined;
operatingLicenseNumber?: string | null | undefined;
operatingLicenseIssuedAt?: string | null | undefined;
operatingLicenseIssuedBy?: string | null | undefined;
streetAddress?: string | null | undefined;
city?: string | null | undefined;
country?: string | null | undefined;
zipCode?: string | null | undefined;
companyEmail?: string | null | undefined;
fax?: string | null | undefined;
yearsActive?: string | null | undefined;
representativeName?: string | null | undefined;
representativeTitle?: string | null | undefined;
responsibleName?: string | null | undefined;
responsibleRole?: string | null | undefined;
responsibleIdentityNumber?: string | null | undefined;
responsibleQualification?: string | null | undefined;
responsiblePhone?: string | null | undefined;
responsibleEmail?: string | null | undefined;
managerName?: string | null | undefined;
} | undefined;
slug?: string | undefined;
subscriptionPaymentRef?: string | null | undefined;
}>>;
subscription: z.ZodOptional<z.ZodObject<{
plan: z.ZodOptional<z.ZodEnum<["STARTER", "GROWTH", "PRO"]>>;
billingPeriod: z.ZodOptional<z.ZodEnum<["MONTHLY", "ANNUAL"]>>;
status: z.ZodOptional<z.ZodEnum<["TRIALING", "ACTIVE", "PAST_DUE", "CANCELLED", "UNPAID"]>>;
currency: z.ZodOptional<z.ZodLiteral<"MAD">>;
trialStartAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
trialEndAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
currentPeriodStart: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
currentPeriodEnd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
cancelledAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
cancelAtPeriodEnd: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
status?: "TRIALING" | "CANCELLED" | "ACTIVE" | "UNPAID" | "PAST_DUE" | undefined;
currency?: "MAD" | undefined;
plan?: "STARTER" | "GROWTH" | "PRO" | undefined;
billingPeriod?: "MONTHLY" | "ANNUAL" | undefined;
trialEndAt?: string | null | undefined;
currentPeriodEnd?: string | null | undefined;
trialStartAt?: string | null | undefined;
currentPeriodStart?: string | null | undefined;
cancelledAt?: string | null | undefined;
cancelAtPeriodEnd?: boolean | undefined;
}, {
status?: "TRIALING" | "CANCELLED" | "ACTIVE" | "UNPAID" | "PAST_DUE" | undefined;
currency?: "MAD" | undefined;
plan?: "STARTER" | "GROWTH" | "PRO" | undefined;
billingPeriod?: "MONTHLY" | "ANNUAL" | undefined;
trialEndAt?: string | null | undefined;
currentPeriodEnd?: string | null | undefined;
trialStartAt?: string | null | undefined;
currentPeriodStart?: string | null | undefined;
cancelledAt?: string | null | undefined;
cancelAtPeriodEnd?: boolean | undefined;
}>>;
brand: z.ZodOptional<z.ZodObject<{
displayName: z.ZodOptional<z.ZodString>;
tagline: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
subdomain: z.ZodOptional<z.ZodString>;
customDomain: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
publicEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
publicPhone: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
publicAddress: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
publicCity: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
publicCountry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
websiteUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
whatsappNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
defaultLocale: z.ZodOptional<z.ZodString>;
defaultCurrency: z.ZodOptional<z.ZodLiteral<"MAD">>;
isListedOnMarketplace: z.ZodOptional<z.ZodBoolean>;
homePageConfig: z.ZodOptional<z.ZodAny>;
menuConfig: z.ZodOptional<z.ZodAny>;
}, "strip", z.ZodTypeAny, {
displayName?: string | undefined;
tagline?: string | null | undefined;
subdomain?: string | undefined;
customDomain?: string | null | undefined;
publicEmail?: string | null | undefined;
publicPhone?: string | null | undefined;
publicAddress?: string | null | undefined;
publicCity?: string | null | undefined;
publicCountry?: string | null | undefined;
websiteUrl?: string | null | undefined;
whatsappNumber?: string | null | undefined;
defaultLocale?: string | undefined;
defaultCurrency?: "MAD" | undefined;
isListedOnMarketplace?: boolean | undefined;
homePageConfig?: any;
menuConfig?: any;
}, {
displayName?: string | undefined;
tagline?: string | null | undefined;
subdomain?: string | undefined;
customDomain?: string | null | undefined;
publicEmail?: string | null | undefined;
publicPhone?: string | null | undefined;
publicAddress?: string | null | undefined;
publicCity?: string | null | undefined;
publicCountry?: string | null | undefined;
websiteUrl?: string | null | undefined;
whatsappNumber?: string | null | undefined;
defaultLocale?: string | undefined;
defaultCurrency?: "MAD" | undefined;
isListedOnMarketplace?: boolean | undefined;
homePageConfig?: any;
menuConfig?: any;
}>>;
contractSettings: z.ZodOptional<z.ZodObject<{
legalName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
registrationNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
taxId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
terms: z.ZodOptional<z.ZodString>;
fuelPolicyType: z.ZodOptional<z.ZodEnum<["FULL_TO_FULL", "FULL_TO_EMPTY", "SAME_TO_SAME", "PREPAID", "FREE"]>>;
lateFeePerHour: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
taxRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
signatureRequired: z.ZodOptional<z.ZodBoolean>;
showTax: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
legalName?: string | null | undefined;
registrationNumber?: string | null | undefined;
taxId?: string | null | undefined;
terms?: string | undefined;
fuelPolicyType?: "FULL_TO_FULL" | "FULL_TO_EMPTY" | "SAME_TO_SAME" | "PREPAID" | "FREE" | undefined;
lateFeePerHour?: number | null | undefined;
taxRate?: number | null | undefined;
signatureRequired?: boolean | undefined;
showTax?: boolean | undefined;
}, {
legalName?: string | null | undefined;
registrationNumber?: string | null | undefined;
taxId?: string | null | undefined;
terms?: string | undefined;
fuelPolicyType?: "FULL_TO_FULL" | "FULL_TO_EMPTY" | "SAME_TO_SAME" | "PREPAID" | "FREE" | undefined;
lateFeePerHour?: number | null | undefined;
taxRate?: number | null | undefined;
signatureRequired?: boolean | undefined;
showTax?: boolean | undefined;
}>>;
accountingSettings: z.ZodOptional<z.ZodObject<{
reportingPeriod: z.ZodOptional<z.ZodEnum<["WEEKLY", "MONTHLY", "QUARTERLY", "ANNUAL"]>>;
fiscalYearStart: z.ZodOptional<z.ZodNumber>;
currency: z.ZodOptional<z.ZodLiteral<"MAD">>;
accountantEmail: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
accountantName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
autoSendReport: z.ZodOptional<z.ZodBoolean>;
reportFormat: z.ZodOptional<z.ZodEnum<["PDF", "CSV", "BOTH"]>>;
}, "strip", z.ZodTypeAny, {
currency?: "MAD" | undefined;
reportingPeriod?: "MONTHLY" | "ANNUAL" | "WEEKLY" | "QUARTERLY" | undefined;
fiscalYearStart?: number | undefined;
accountantEmail?: string | null | undefined;
accountantName?: string | null | undefined;
autoSendReport?: boolean | undefined;
reportFormat?: "CSV" | "PDF" | "BOTH" | undefined;
}, {
currency?: "MAD" | undefined;
reportingPeriod?: "MONTHLY" | "ANNUAL" | "WEEKLY" | "QUARTERLY" | undefined;
fiscalYearStart?: number | undefined;
accountantEmail?: string | null | undefined;
accountantName?: string | null | undefined;
autoSendReport?: boolean | undefined;
reportFormat?: "CSV" | "PDF" | "BOTH" | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
company?: {
status?: "PENDING" | "TRIALING" | "CANCELLED" | "SUSPENDED" | "ACTIVE" | "PAST_DUE" | undefined;
name?: string | undefined;
email?: string | undefined;
phone?: string | null | undefined;
address?: {
legalName?: string | null | undefined;
legalForm?: string | null | undefined;
iceNumber?: string | null | undefined;
operatingLicenseNumber?: string | null | undefined;
operatingLicenseIssuedAt?: string | null | undefined;
operatingLicenseIssuedBy?: string | null | undefined;
streetAddress?: string | null | undefined;
city?: string | null | undefined;
country?: string | null | undefined;
zipCode?: string | null | undefined;
companyEmail?: string | null | undefined;
fax?: string | null | undefined;
yearsActive?: string | null | undefined;
representativeName?: string | null | undefined;
representativeTitle?: string | null | undefined;
responsibleName?: string | null | undefined;
responsibleRole?: string | null | undefined;
responsibleIdentityNumber?: string | null | undefined;
responsibleQualification?: string | null | undefined;
responsiblePhone?: string | null | undefined;
responsibleEmail?: string | null | undefined;
managerName?: string | null | undefined;
} | undefined;
slug?: string | undefined;
subscriptionPaymentRef?: string | null | undefined;
} | undefined;
contractSettings?: {
legalName?: string | null | undefined;
registrationNumber?: string | null | undefined;
taxId?: string | null | undefined;
terms?: string | undefined;
fuelPolicyType?: "FULL_TO_FULL" | "FULL_TO_EMPTY" | "SAME_TO_SAME" | "PREPAID" | "FREE" | undefined;
lateFeePerHour?: number | null | undefined;
taxRate?: number | null | undefined;
signatureRequired?: boolean | undefined;
showTax?: boolean | undefined;
} | undefined;
subscription?: {
status?: "TRIALING" | "CANCELLED" | "ACTIVE" | "UNPAID" | "PAST_DUE" | undefined;
currency?: "MAD" | undefined;
plan?: "STARTER" | "GROWTH" | "PRO" | undefined;
billingPeriod?: "MONTHLY" | "ANNUAL" | undefined;
trialEndAt?: string | null | undefined;
currentPeriodEnd?: string | null | undefined;
trialStartAt?: string | null | undefined;
currentPeriodStart?: string | null | undefined;
cancelledAt?: string | null | undefined;
cancelAtPeriodEnd?: boolean | undefined;
} | undefined;
brand?: {
displayName?: string | undefined;
tagline?: string | null | undefined;
subdomain?: string | undefined;
customDomain?: string | null | undefined;
publicEmail?: string | null | undefined;
publicPhone?: string | null | undefined;
publicAddress?: string | null | undefined;
publicCity?: string | null | undefined;
publicCountry?: string | null | undefined;
websiteUrl?: string | null | undefined;
whatsappNumber?: string | null | undefined;
defaultLocale?: string | undefined;
defaultCurrency?: "MAD" | undefined;
isListedOnMarketplace?: boolean | undefined;
homePageConfig?: any;
menuConfig?: any;
} | undefined;
accountingSettings?: {
currency?: "MAD" | undefined;
reportingPeriod?: "MONTHLY" | "ANNUAL" | "WEEKLY" | "QUARTERLY" | undefined;
fiscalYearStart?: number | undefined;
accountantEmail?: string | null | undefined;
accountantName?: string | null | undefined;
autoSendReport?: boolean | undefined;
reportFormat?: "CSV" | "PDF" | "BOTH" | undefined;
} | undefined;
}, {
company?: {
status?: "PENDING" | "TRIALING" | "CANCELLED" | "SUSPENDED" | "ACTIVE" | "PAST_DUE" | undefined;
name?: string | undefined;
email?: string | undefined;
phone?: string | null | undefined;
address?: {
legalName?: string | null | undefined;
legalForm?: string | null | undefined;
iceNumber?: string | null | undefined;
operatingLicenseNumber?: string | null | undefined;
operatingLicenseIssuedAt?: string | null | undefined;
operatingLicenseIssuedBy?: string | null | undefined;
streetAddress?: string | null | undefined;
city?: string | null | undefined;
country?: string | null | undefined;
zipCode?: string | null | undefined;
companyEmail?: string | null | undefined;
fax?: string | null | undefined;
yearsActive?: string | null | undefined;
representativeName?: string | null | undefined;
representativeTitle?: string | null | undefined;
responsibleName?: string | null | undefined;
responsibleRole?: string | null | undefined;
responsibleIdentityNumber?: string | null | undefined;
responsibleQualification?: string | null | undefined;
responsiblePhone?: string | null | undefined;
responsibleEmail?: string | null | undefined;
managerName?: string | null | undefined;
} | undefined;
slug?: string | undefined;
subscriptionPaymentRef?: string | null | undefined;
} | undefined;
contractSettings?: {
legalName?: string | null | undefined;
registrationNumber?: string | null | undefined;
taxId?: string | null | undefined;
terms?: string | undefined;
fuelPolicyType?: "FULL_TO_FULL" | "FULL_TO_EMPTY" | "SAME_TO_SAME" | "PREPAID" | "FREE" | undefined;
lateFeePerHour?: number | null | undefined;
taxRate?: number | null | undefined;
signatureRequired?: boolean | undefined;
showTax?: boolean | undefined;
} | undefined;
subscription?: {
status?: "TRIALING" | "CANCELLED" | "ACTIVE" | "UNPAID" | "PAST_DUE" | undefined;
currency?: "MAD" | undefined;
plan?: "STARTER" | "GROWTH" | "PRO" | undefined;
billingPeriod?: "MONTHLY" | "ANNUAL" | undefined;
trialEndAt?: string | null | undefined;
currentPeriodEnd?: string | null | undefined;
trialStartAt?: string | null | undefined;
currentPeriodStart?: string | null | undefined;
cancelledAt?: string | null | undefined;
cancelAtPeriodEnd?: boolean | undefined;
} | undefined;
brand?: {
displayName?: string | undefined;
tagline?: string | null | undefined;
subdomain?: string | undefined;
customDomain?: string | null | undefined;
publicEmail?: string | null | undefined;
publicPhone?: string | null | undefined;
publicAddress?: string | null | undefined;
publicCity?: string | null | undefined;
publicCountry?: string | null | undefined;
websiteUrl?: string | null | undefined;
whatsappNumber?: string | null | undefined;
defaultLocale?: string | undefined;
defaultCurrency?: "MAD" | undefined;
isListedOnMarketplace?: boolean | undefined;
homePageConfig?: any;
menuConfig?: any;
} | undefined;
accountingSettings?: {
currency?: "MAD" | undefined;
reportingPeriod?: "MONTHLY" | "ANNUAL" | "WEEKLY" | "QUARTERLY" | undefined;
fiscalYearStart?: number | undefined;
accountantEmail?: string | null | undefined;
accountantName?: string | null | undefined;
autoSendReport?: boolean | undefined;
reportFormat?: "CSV" | "PDF" | "BOTH" | undefined;
} | undefined;
}>;
export declare const marketplaceHomepageConfigSchema: z.ZodObject<{
en: z.ZodType<MarketplaceHomepageContent, z.ZodTypeDef, MarketplaceHomepageContent>;
fr: z.ZodType<MarketplaceHomepageContent, z.ZodTypeDef, MarketplaceHomepageContent>;
ar: z.ZodType<MarketplaceHomepageContent, z.ZodTypeDef, MarketplaceHomepageContent>;
}, "strip", z.ZodTypeAny, {
en: MarketplaceHomepageContent;
fr: MarketplaceHomepageContent;
ar: MarketplaceHomepageContent;
}, {
en: MarketplaceHomepageContent;
fr: MarketplaceHomepageContent;
ar: MarketplaceHomepageContent;
}>;
export declare const idParamSchema: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
}, {
id: string;
}>;
export declare const companyIdParamSchema: z.ZodObject<{
companyId: z.ZodString;
}, "strip", z.ZodTypeAny, {
companyId: string;
}, {
companyId: string;
}>;
export declare const billingAccountIdParamSchema: z.ZodObject<{
billingAccountId: z.ZodString;
}, "strip", z.ZodTypeAny, {
billingAccountId: string;
}, {
billingAccountId: string;
}>;
export declare const invoiceIdParamSchema: z.ZodObject<{
invoiceId: z.ZodString;
}, "strip", z.ZodTypeAny, {
invoiceId: string;
}, {
invoiceId: string;
}>;
export declare const billingAccountUpdateSchema: z.ZodObject<{
legalName: z.ZodOptional<z.ZodString>;
billingEmail: z.ZodOptional<z.ZodString>;
billingAddress: z.ZodOptional<z.ZodAny>;
taxId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
taxExempt: z.ZodOptional<z.ZodBoolean>;
invoiceTerms: z.ZodOptional<z.ZodEnum<["DUE_ON_RECEIPT", "NET_7", "NET_15", "NET_30", "NET_45", "NET_60"]>>;
netTermsDays: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
legalName?: string | undefined;
taxId?: string | null | undefined;
billingEmail?: string | undefined;
billingAddress?: any;
taxExempt?: boolean | undefined;
invoiceTerms?: "DUE_ON_RECEIPT" | "NET_7" | "NET_15" | "NET_30" | "NET_45" | "NET_60" | undefined;
netTermsDays?: number | undefined;
}, {
legalName?: string | undefined;
taxId?: string | null | undefined;
billingEmail?: string | undefined;
billingAddress?: any;
taxExempt?: boolean | undefined;
invoiceTerms?: "DUE_ON_RECEIPT" | "NET_7" | "NET_15" | "NET_30" | "NET_45" | "NET_60" | undefined;
netTermsDays?: number | undefined;
}>;
export declare const billingLineItemInputSchema: z.ZodObject<{
type: z.ZodEnum<["SUBSCRIPTION_FEE", "SEAT_FEE", "USAGE_FEE", "SETUP_FEE", "DISCOUNT", "TAX", "CREDIT", "PRORATION", "REFUND_ADJUSTMENT", "MANUAL_ADJUSTMENT", "PROFESSIONAL_SERVICES", "CANCELLATION_FEE"]>;
description: z.ZodString;
quantity: z.ZodNumber;
unitAmount: z.ZodNumber;
periodStart: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
periodEnd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
type: "DISCOUNT" | "CREDIT" | "TAX" | "SUBSCRIPTION_FEE" | "SEAT_FEE" | "USAGE_FEE" | "SETUP_FEE" | "PRORATION" | "REFUND_ADJUSTMENT" | "MANUAL_ADJUSTMENT" | "PROFESSIONAL_SERVICES" | "CANCELLATION_FEE";
description: string;
quantity: number;
unitAmount: number;
periodEnd?: string | null | undefined;
periodStart?: string | null | undefined;
}, {
type: "DISCOUNT" | "CREDIT" | "TAX" | "SUBSCRIPTION_FEE" | "SEAT_FEE" | "USAGE_FEE" | "SETUP_FEE" | "PRORATION" | "REFUND_ADJUSTMENT" | "MANUAL_ADJUSTMENT" | "PROFESSIONAL_SERVICES" | "CANCELLATION_FEE";
description: string;
quantity: number;
unitAmount: number;
periodEnd?: string | null | undefined;
periodStart?: string | null | undefined;
}>;
export declare const createBillingInvoiceSchema: z.ZodObject<{
subscriptionId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
invoiceType: z.ZodEnum<["SUBSCRIPTION_INITIAL", "SUBSCRIPTION_RENEWAL", "TRIAL_CONVERSION", "SUBSCRIPTION_UPGRADE", "SUBSCRIPTION_DOWNGRADE_CREDIT", "USAGE_BASED", "ONE_TIME", "MANUAL", "CORRECTION", "CANCELLATION_FEE"]>;
currency: z.ZodOptional<z.ZodString>;
dueAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
isSubscriptionBlocking: z.ZodOptional<z.ZodBoolean>;
adminReason: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
lineItems: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["SUBSCRIPTION_FEE", "SEAT_FEE", "USAGE_FEE", "SETUP_FEE", "DISCOUNT", "TAX", "CREDIT", "PRORATION", "REFUND_ADJUSTMENT", "MANUAL_ADJUSTMENT", "PROFESSIONAL_SERVICES", "CANCELLATION_FEE"]>;
description: z.ZodString;
quantity: z.ZodNumber;
unitAmount: z.ZodNumber;
periodStart: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
periodEnd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
type: "DISCOUNT" | "CREDIT" | "TAX" | "SUBSCRIPTION_FEE" | "SEAT_FEE" | "USAGE_FEE" | "SETUP_FEE" | "PRORATION" | "REFUND_ADJUSTMENT" | "MANUAL_ADJUSTMENT" | "PROFESSIONAL_SERVICES" | "CANCELLATION_FEE";
description: string;
quantity: number;
unitAmount: number;
periodEnd?: string | null | undefined;
periodStart?: string | null | undefined;
}, {
type: "DISCOUNT" | "CREDIT" | "TAX" | "SUBSCRIPTION_FEE" | "SEAT_FEE" | "USAGE_FEE" | "SETUP_FEE" | "PRORATION" | "REFUND_ADJUSTMENT" | "MANUAL_ADJUSTMENT" | "PROFESSIONAL_SERVICES" | "CANCELLATION_FEE";
description: string;
quantity: number;
unitAmount: number;
periodEnd?: string | null | undefined;
periodStart?: string | null | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
invoiceType: "MANUAL" | "SUBSCRIPTION_INITIAL" | "SUBSCRIPTION_RENEWAL" | "TRIAL_CONVERSION" | "SUBSCRIPTION_UPGRADE" | "CANCELLATION_FEE" | "SUBSCRIPTION_DOWNGRADE_CREDIT" | "USAGE_BASED" | "ONE_TIME" | "CORRECTION";
lineItems: {
type: "DISCOUNT" | "CREDIT" | "TAX" | "SUBSCRIPTION_FEE" | "SEAT_FEE" | "USAGE_FEE" | "SETUP_FEE" | "PRORATION" | "REFUND_ADJUSTMENT" | "MANUAL_ADJUSTMENT" | "PROFESSIONAL_SERVICES" | "CANCELLATION_FEE";
description: string;
quantity: number;
unitAmount: number;
periodEnd?: string | null | undefined;
periodStart?: string | null | undefined;
}[];
currency?: string | undefined;
subscriptionId?: string | null | undefined;
dueAt?: string | null | undefined;
isSubscriptionBlocking?: boolean | undefined;
adminReason?: string | null | undefined;
}, {
invoiceType: "MANUAL" | "SUBSCRIPTION_INITIAL" | "SUBSCRIPTION_RENEWAL" | "TRIAL_CONVERSION" | "SUBSCRIPTION_UPGRADE" | "CANCELLATION_FEE" | "SUBSCRIPTION_DOWNGRADE_CREDIT" | "USAGE_BASED" | "ONE_TIME" | "CORRECTION";
lineItems: {
type: "DISCOUNT" | "CREDIT" | "TAX" | "SUBSCRIPTION_FEE" | "SEAT_FEE" | "USAGE_FEE" | "SETUP_FEE" | "PRORATION" | "REFUND_ADJUSTMENT" | "MANUAL_ADJUSTMENT" | "PROFESSIONAL_SERVICES" | "CANCELLATION_FEE";
description: string;
quantity: number;
unitAmount: number;
periodEnd?: string | null | undefined;
periodStart?: string | null | undefined;
}[];
currency?: string | undefined;
subscriptionId?: string | null | undefined;
dueAt?: string | null | undefined;
isSubscriptionBlocking?: boolean | undefined;
adminReason?: string | null | undefined;
}>;
export declare const payBillingInvoiceSchema: z.ZodObject<{
amount: z.ZodOptional<z.ZodNumber>;
paymentMethodId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
providerPaymentId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
amount?: number | undefined;
paymentMethodId?: string | null | undefined;
providerPaymentId?: string | null | undefined;
}, {
amount?: number | undefined;
paymentMethodId?: string | null | undefined;
providerPaymentId?: string | null | undefined;
}>;
export declare const retryBillingInvoiceSchema: z.ZodObject<{
paymentMethodId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
paymentMethodId?: string | null | undefined;
}, {
paymentMethodId?: string | null | undefined;
}>;
export declare const billingReasonSchema: z.ZodObject<{
reason: z.ZodString;
}, "strip", z.ZodTypeAny, {
reason: string;
}, {
reason: string;
}>;
export declare const billingCreditNoteSchema: z.ZodObject<{
amount: z.ZodNumber;
reason: z.ZodString;
}, "strip", z.ZodTypeAny, {
reason: string;
amount: number;
}, {
reason: string;
amount: number;
}>;
export declare const billingRefundSchema: z.ZodObject<{
amount: z.ZodNumber;
reason: z.ZodString;
}, "strip", z.ZodTypeAny, {
reason: string;
amount: number;
}, {
reason: string;
amount: number;
}>;
export declare const homepageUpdateSchema: z.ZodObject<{
homepage: z.ZodObject<{
en: z.ZodType<MarketplaceHomepageContent, z.ZodTypeDef, MarketplaceHomepageContent>;
fr: z.ZodType<MarketplaceHomepageContent, z.ZodTypeDef, MarketplaceHomepageContent>;
ar: z.ZodType<MarketplaceHomepageContent, z.ZodTypeDef, MarketplaceHomepageContent>;
}, "strip", z.ZodTypeAny, {
en: MarketplaceHomepageContent;
fr: MarketplaceHomepageContent;
ar: MarketplaceHomepageContent;
}, {
en: MarketplaceHomepageContent;
fr: MarketplaceHomepageContent;
ar: MarketplaceHomepageContent;
}>;
}, "strip", z.ZodTypeAny, {
homepage: {
en: MarketplaceHomepageContent;
fr: MarketplaceHomepageContent;
ar: MarketplaceHomepageContent;
};
}, {
homepage: {
en: MarketplaceHomepageContent;
fr: MarketplaceHomepageContent;
ar: MarketplaceHomepageContent;
};
}>;
export declare const pricingUpdateSchema: z.ZodObject<{
entries: z.ZodArray<z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
billingPeriod: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
amount: number;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}, {
amount: number;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}>, "many">;
}, "strip", z.ZodTypeAny, {
entries: {
amount: number;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}[];
}, {
entries: {
amount: number;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}[];
}>;
export declare const planFeatureCreateSchema: z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
label: z.ZodString;
sortOrder: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
sortOrder: number;
plan: "STARTER" | "GROWTH" | "PRO";
label: string;
}, {
plan: "STARTER" | "GROWTH" | "PRO";
label: string;
sortOrder?: number | undefined;
}>;
export declare const planFeatureUpdateSchema: z.ZodObject<{
plan: z.ZodOptional<z.ZodEnum<["STARTER", "GROWTH", "PRO"]>>;
label: z.ZodOptional<z.ZodString>;
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
sortOrder?: number | undefined;
plan?: "STARTER" | "GROWTH" | "PRO" | undefined;
label?: string | undefined;
}, {
sortOrder?: number | undefined;
plan?: "STARTER" | "GROWTH" | "PRO" | undefined;
label?: string | undefined;
}>;
export declare const promotionCreateSchema: z.ZodObject<{
code: z.ZodString;
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
discountType: z.ZodEnum<["PERCENTAGE", "FIXED"]>;
discountValue: z.ZodNumber;
plans: z.ZodArray<z.ZodEnum<["STARTER", "GROWTH", "PRO"]>, "many">;
periods: z.ZodArray<z.ZodEnum<["MONTHLY", "ANNUAL"]>, "many">;
maxUses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
validFrom: z.ZodString;
validUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isActive: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
code: string;
name: string;
isActive: boolean;
discountValue: number;
validFrom: string;
discountType: "PERCENTAGE" | "FIXED";
plans: ("STARTER" | "GROWTH" | "PRO")[];
periods: ("MONTHLY" | "ANNUAL")[];
description?: string | undefined;
validUntil?: string | null | undefined;
maxUses?: number | null | undefined;
}, {
code: string;
name: string;
discountValue: number;
validFrom: string;
discountType: "PERCENTAGE" | "FIXED";
plans: ("STARTER" | "GROWTH" | "PRO")[];
periods: ("MONTHLY" | "ANNUAL")[];
description?: string | undefined;
isActive?: boolean | undefined;
validUntil?: string | null | undefined;
maxUses?: number | null | undefined;
}>;
export declare const promotionUpdateSchema: z.ZodObject<{
code: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
discountType: z.ZodOptional<z.ZodEnum<["PERCENTAGE", "FIXED"]>>;
discountValue: z.ZodOptional<z.ZodNumber>;
plans: z.ZodOptional<z.ZodArray<z.ZodEnum<["STARTER", "GROWTH", "PRO"]>, "many">>;
periods: z.ZodOptional<z.ZodArray<z.ZodEnum<["MONTHLY", "ANNUAL"]>, "many">>;
maxUses: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
validFrom: z.ZodOptional<z.ZodString>;
validUntil: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
code?: string | undefined;
description?: string | undefined;
name?: string | undefined;
isActive?: boolean | undefined;
discountValue?: number | undefined;
validFrom?: string | undefined;
validUntil?: string | null | undefined;
discountType?: "PERCENTAGE" | "FIXED" | undefined;
plans?: ("STARTER" | "GROWTH" | "PRO")[] | undefined;
periods?: ("MONTHLY" | "ANNUAL")[] | undefined;
maxUses?: number | null | undefined;
}, {
code?: string | undefined;
description?: string | undefined;
name?: string | undefined;
isActive?: boolean | undefined;
discountValue?: number | undefined;
validFrom?: string | undefined;
validUntil?: string | null | undefined;
discountType?: "PERCENTAGE" | "FIXED" | undefined;
plans?: ("STARTER" | "GROWTH" | "PRO")[] | undefined;
periods?: ("MONTHLY" | "ANNUAL")[] | undefined;
maxUses?: number | null | undefined;
}>;
export declare const planFeatureIdParamSchema: z.ZodObject<{
featureId: z.ZodString;
}, "strip", z.ZodTypeAny, {
featureId: string;
}, {
featureId: string;
}>;
export declare const promotionIdParamSchema: z.ZodObject<{
promotionId: z.ZodString;
}, "strip", z.ZodTypeAny, {
promotionId: string;
}, {
promotionId: string;
}>;
export declare const menuItemSchema: z.ZodObject<{
systemKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
label: z.ZodString;
itemType: z.ZodEnum<["INTERNAL_PAGE", "EXTERNAL_LINK", "PARENT_MENU", "SECTION_LABEL", "DIVIDER"]>;
routeOrUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
displayOrder: z.ZodDefault<z.ZodNumber>;
openInNewTab: z.ZodDefault<z.ZodBoolean>;
isRequired: z.ZodDefault<z.ZodBoolean>;
isActive: z.ZodDefault<z.ZodBoolean>;
roles: z.ZodDefault<z.ZodArray<z.ZodEnum<["OWNER", "MANAGER", "AGENT"]>, "many">>;
subscriptionPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
displayOrder: z.ZodOptional<z.ZodNumber>;
isActive: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}, {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}>, "many">>;
companyAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
companyId: z.ZodString;
displayOrder: z.ZodOptional<z.ZodNumber>;
isActive: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}, {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
isActive: boolean;
displayOrder: number;
label: string;
itemType: "INTERNAL_PAGE" | "EXTERNAL_LINK" | "PARENT_MENU" | "SECTION_LABEL" | "DIVIDER";
openInNewTab: boolean;
isRequired: boolean;
roles: ("OWNER" | "MANAGER" | "AGENT")[];
subscriptionPlans: {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[];
companyAssignments: {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[];
systemKey?: string | null | undefined;
routeOrUrl?: string | null | undefined;
icon?: string | null | undefined;
parentId?: string | null | undefined;
}, {
label: string;
itemType: "INTERNAL_PAGE" | "EXTERNAL_LINK" | "PARENT_MENU" | "SECTION_LABEL" | "DIVIDER";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
systemKey?: string | null | undefined;
routeOrUrl?: string | null | undefined;
icon?: string | null | undefined;
parentId?: string | null | undefined;
openInNewTab?: boolean | undefined;
isRequired?: boolean | undefined;
roles?: ("OWNER" | "MANAGER" | "AGENT")[] | undefined;
subscriptionPlans?: {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[] | undefined;
companyAssignments?: {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[] | undefined;
}>;
export declare const menuItemStatusSchema: z.ZodObject<{
isActive: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
isActive: boolean;
}, {
isActive: boolean;
}>;
export declare const menuPlanAssignmentsSchema: z.ZodObject<{
assignments: z.ZodArray<z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
displayOrder: z.ZodOptional<z.ZodNumber>;
isActive: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}, {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
assignments: {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[];
}, {
assignments: {
plan: "STARTER" | "GROWTH" | "PRO";
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[];
}>;
export declare const menuCompanyAssignmentsSchema: z.ZodObject<{
assignments: z.ZodArray<z.ZodObject<{
companyId: z.ZodString;
displayOrder: z.ZodOptional<z.ZodNumber>;
isActive: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}, {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
assignments: {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[];
}, {
assignments: {
companyId: string;
isActive?: boolean | undefined;
displayOrder?: number | undefined;
}[];
}>;
export declare const menuPreviewSchema: z.ZodObject<{
companyId: z.ZodString;
role: z.ZodEnum<["OWNER", "MANAGER", "AGENT"]>;
}, "strip", z.ZodTypeAny, {
companyId: string;
role: "OWNER" | "MANAGER" | "AGENT";
}, {
companyId: string;
role: "OWNER" | "MANAGER" | "AGENT";
}>;
export declare const menuAuditLogQuerySchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
pageSize: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page: number;
pageSize: number;
}, {
page?: number | undefined;
pageSize?: number | undefined;
}>;
export declare const menuItemIdParamSchema: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
}, {
id: string;
}>;
export declare const menuPlanParamSchema: z.ZodObject<{
id: z.ZodString;
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
}, "strip", z.ZodTypeAny, {
id: string;
plan: "STARTER" | "GROWTH" | "PRO";
}, {
id: string;
plan: "STARTER" | "GROWTH" | "PRO";
}>;
export declare const menuCompanyParamSchema: z.ZodObject<{
id: z.ZodString;
companyId: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
companyId: string;
}, {
id: string;
companyId: string;
}>;
//# sourceMappingURL=admin.schemas.d.ts.map