251 lines
8.4 KiB
TypeScript
Raw Normal View History

import { z } from "zod";
export declare const paymentMethodTypeSchema: any;
export declare const orderStatusSchema: z.ZodEnum<{
Pending: "Pending";
Cancelled: "Cancelled";
Active: "Active";
Fraud: "Fraud";
}>;
export declare const invoiceStatusSchema: z.ZodEnum<{
Draft: "Draft";
Pending: "Pending";
Paid: "Paid";
Unpaid: "Unpaid";
Overdue: "Overdue";
Cancelled: "Cancelled";
Refunded: "Refunded";
Collections: "Collections";
}>;
export declare const subscriptionStatusSchema: any;
export declare const caseStatusSchema: z.ZodEnum<{
New: "New";
Working: "Working";
Escalated: "Escalated";
Closed: "Closed";
}>;
export declare const casePrioritySchema: z.ZodEnum<{
Low: "Low";
Medium: "Medium";
High: "High";
Critical: "Critical";
}>;
export declare const paymentStatusSchema: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
processing: "processing";
cancelled: "cancelled";
refunded: "refunded";
}>;
export declare const caseTypeSchema: z.ZodEnum<{
Question: "Question";
Problem: "Problem";
"Feature Request": "Feature Request";
}>;
export declare const subscriptionCycleSchema: any;
export declare const userSchema: z.ZodObject<{
id: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
email: z.ZodString;
firstName: z.ZodOptional<z.ZodString>;
lastName: z.ZodOptional<z.ZodString>;
company: z.ZodOptional<z.ZodString>;
phone: z.ZodOptional<z.ZodString>;
address: z.ZodOptional<z.ZodObject<{
street: z.ZodNullable<z.ZodString>;
streetLine2: z.ZodNullable<z.ZodString>;
city: z.ZodNullable<z.ZodString>;
state: z.ZodNullable<z.ZodString>;
postalCode: z.ZodNullable<z.ZodString>;
country: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
mfaEnabled: z.ZodBoolean;
emailVerified: z.ZodBoolean;
}, z.core.$strip>;
export declare const userProfileSchema: z.ZodObject<{
id: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
email: z.ZodString;
firstName: z.ZodOptional<z.ZodString>;
lastName: z.ZodOptional<z.ZodString>;
company: z.ZodOptional<z.ZodString>;
phone: z.ZodOptional<z.ZodString>;
address: z.ZodOptional<z.ZodObject<{
street: z.ZodNullable<z.ZodString>;
streetLine2: z.ZodNullable<z.ZodString>;
city: z.ZodNullable<z.ZodString>;
state: z.ZodNullable<z.ZodString>;
postalCode: z.ZodNullable<z.ZodString>;
country: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
mfaEnabled: z.ZodBoolean;
emailVerified: z.ZodBoolean;
avatar: z.ZodOptional<z.ZodString>;
preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
lastLoginAt: z.ZodOptional<z.ZodString>;
role: z.ZodEnum<{
USER: "USER";
ADMIN: "ADMIN";
}>;
}, z.core.$strip>;
export declare const prismaUserProfileSchema: z.ZodObject<{
id: z.ZodString;
email: z.ZodString;
firstName: z.ZodNullable<z.ZodString>;
lastName: z.ZodNullable<z.ZodString>;
company: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
mfaSecret: z.ZodNullable<z.ZodString>;
emailVerified: z.ZodBoolean;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
lastLoginAt: z.ZodNullable<z.ZodDate>;
}, z.core.$strip>;
export declare const mnpDetailsSchema: z.ZodObject<{
currentProvider: z.ZodString;
phoneNumber: z.ZodString;
accountNumber: z.ZodOptional<z.ZodString>;
pin: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const orderTotalsSchema: z.ZodObject<{
monthlyTotal: z.ZodNumber;
oneTimeTotal: z.ZodNumber;
}, z.core.$strip>;
export declare const whmcsOrderItemSchema: z.ZodObject<{
productId: z.ZodNumber;
productName: z.ZodString;
domain: z.ZodOptional<z.ZodString>;
cycle: z.ZodString;
quantity: z.ZodNumber;
price: z.ZodNumber;
setup: z.ZodOptional<z.ZodNumber>;
configOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>;
export declare const whmcsOrderSchema: z.ZodObject<{
id: z.ZodNumber;
orderNumber: z.ZodString;
status: z.ZodEnum<{
Pending: "Pending";
Cancelled: "Cancelled";
Active: "Active";
Fraud: "Fraud";
}>;
date: z.ZodString;
amount: z.ZodNumber;
currency: z.ZodString;
paymentMethod: z.ZodOptional<z.ZodString>;
items: z.ZodArray<z.ZodObject<{
productId: z.ZodNumber;
productName: z.ZodString;
domain: z.ZodOptional<z.ZodString>;
cycle: z.ZodString;
quantity: z.ZodNumber;
price: z.ZodNumber;
setup: z.ZodOptional<z.ZodNumber>;
configOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, z.core.$strip>>;
invoiceId: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export declare const invoiceItemSchema: any;
export declare const invoiceSchema: any;
export declare const invoiceListSchema: any;
export declare const subscriptionSchema: any;
export declare const subscriptionListSchema: any;
export declare const paymentMethodSchema: any;
export declare const paymentGatewaySchema: any;
export declare const paymentSchema: z.ZodObject<{
id: z.core.$ZodBranded<z.ZodString, "PaymentId">;
userId: z.core.$ZodBranded<z.ZodString, "UserId">;
invoiceId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InvoiceId">>;
subscriptionId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "SubscriptionId">>;
amount: z.ZodNumber;
currency: z.ZodOptional<z.ZodString>;
status: z.ZodEnum<{
pending: "pending";
completed: "completed";
failed: "failed";
processing: "processing";
cancelled: "cancelled";
refunded: "refunded";
}>;
transactionId: z.ZodOptional<z.ZodString>;
failureReason: z.ZodOptional<z.ZodString>;
processedAt: z.ZodOptional<z.ZodString>;
createdAt: z.ZodString;
updatedAt: z.ZodString;
}, z.core.$strip>;
export declare const caseCommentSchema: z.ZodObject<{
id: z.ZodString;
body: z.ZodString;
isPublic: z.ZodBoolean;
createdDate: z.ZodString;
createdBy: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodEnum<{
user: "user";
customer: "customer";
}>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const supportCaseSchema: z.ZodObject<{
id: z.ZodString;
createdDate: z.ZodString;
lastModifiedDate: z.ZodString;
number: z.ZodString;
subject: z.ZodString;
description: z.ZodOptional<z.ZodString>;
status: z.ZodEnum<{
New: "New";
Working: "Working";
Escalated: "Escalated";
Closed: "Closed";
}>;
priority: z.ZodEnum<{
Low: "Low";
Medium: "Medium";
High: "High";
Critical: "Critical";
}>;
type: z.ZodEnum<{
Question: "Question";
Problem: "Problem";
"Feature Request": "Feature Request";
}>;
closedDate: z.ZodOptional<z.ZodString>;
contactId: z.ZodOptional<z.ZodString>;
accountId: z.ZodOptional<z.ZodString>;
ownerId: z.ZodOptional<z.ZodString>;
ownerName: z.ZodOptional<z.ZodString>;
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodString;
body: z.ZodString;
isPublic: z.ZodBoolean;
createdDate: z.ZodString;
createdBy: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodEnum<{
user: "user";
customer: "customer";
}>;
}, z.core.$strip>;
}, z.core.$strip>>>;
}, z.core.$strip>;
export type UserSchema = z.infer<typeof userSchema>;
export type UserProfileSchema = z.infer<typeof userProfileSchema>;
export type MnpDetailsSchema = z.infer<typeof mnpDetailsSchema>;
export type OrderTotalsSchema = z.infer<typeof orderTotalsSchema>;
export type WhmcsOrderItemSchema = z.infer<typeof whmcsOrderItemSchema>;
export type WhmcsOrderSchema = z.infer<typeof whmcsOrderSchema>;
export type InvoiceItemSchema = z.infer<typeof invoiceItemSchema>;
export type InvoiceSchema = z.infer<typeof invoiceSchema>;
export type InvoiceListSchema = z.infer<typeof invoiceListSchema>;
export type SubscriptionSchema = z.infer<typeof subscriptionSchema>;
export type PaymentMethodSchema = z.infer<typeof paymentMethodSchema>;
export type PaymentSchema = z.infer<typeof paymentSchema>;
export type CaseCommentSchema = z.infer<typeof caseCommentSchema>;
export type SupportCaseSchema = z.infer<typeof supportCaseSchema>;