150 lines
5.2 KiB
TypeScript
150 lines
5.2 KiB
TypeScript
|
|
import { z } from "zod";
|
||
|
|
export declare const subscriptionStatusSchema: z.ZodEnum<{
|
||
|
|
Active: "Active";
|
||
|
|
Inactive: "Inactive";
|
||
|
|
Pending: "Pending";
|
||
|
|
Cancelled: "Cancelled";
|
||
|
|
Suspended: "Suspended";
|
||
|
|
Terminated: "Terminated";
|
||
|
|
Completed: "Completed";
|
||
|
|
}>;
|
||
|
|
export declare const subscriptionCycleSchema: z.ZodEnum<{
|
||
|
|
Monthly: "Monthly";
|
||
|
|
Quarterly: "Quarterly";
|
||
|
|
Annually: "Annually";
|
||
|
|
Free: "Free";
|
||
|
|
"Semi-Annually": "Semi-Annually";
|
||
|
|
Biennially: "Biennially";
|
||
|
|
Triennially: "Triennially";
|
||
|
|
"One-time": "One-time";
|
||
|
|
}>;
|
||
|
|
export declare const subscriptionSchema: z.ZodObject<{
|
||
|
|
id: z.ZodNumber;
|
||
|
|
serviceId: z.ZodNumber;
|
||
|
|
productName: z.ZodString;
|
||
|
|
domain: z.ZodOptional<z.ZodString>;
|
||
|
|
cycle: z.ZodEnum<{
|
||
|
|
Monthly: "Monthly";
|
||
|
|
Quarterly: "Quarterly";
|
||
|
|
Annually: "Annually";
|
||
|
|
Free: "Free";
|
||
|
|
"Semi-Annually": "Semi-Annually";
|
||
|
|
Biennially: "Biennially";
|
||
|
|
Triennially: "Triennially";
|
||
|
|
"One-time": "One-time";
|
||
|
|
}>;
|
||
|
|
status: z.ZodEnum<{
|
||
|
|
Active: "Active";
|
||
|
|
Inactive: "Inactive";
|
||
|
|
Pending: "Pending";
|
||
|
|
Cancelled: "Cancelled";
|
||
|
|
Suspended: "Suspended";
|
||
|
|
Terminated: "Terminated";
|
||
|
|
Completed: "Completed";
|
||
|
|
}>;
|
||
|
|
nextDue: z.ZodOptional<z.ZodString>;
|
||
|
|
amount: z.ZodNumber;
|
||
|
|
currency: z.ZodString;
|
||
|
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
||
|
|
registrationDate: z.ZodString;
|
||
|
|
notes: z.ZodOptional<z.ZodString>;
|
||
|
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
||
|
|
orderNumber: z.ZodOptional<z.ZodString>;
|
||
|
|
groupName: z.ZodOptional<z.ZodString>;
|
||
|
|
paymentMethod: z.ZodOptional<z.ZodString>;
|
||
|
|
serverName: z.ZodOptional<z.ZodString>;
|
||
|
|
}, z.core.$strip>;
|
||
|
|
export declare const subscriptionListSchema: z.ZodObject<{
|
||
|
|
subscriptions: z.ZodArray<z.ZodObject<{
|
||
|
|
id: z.ZodNumber;
|
||
|
|
serviceId: z.ZodNumber;
|
||
|
|
productName: z.ZodString;
|
||
|
|
domain: z.ZodOptional<z.ZodString>;
|
||
|
|
cycle: z.ZodEnum<{
|
||
|
|
Monthly: "Monthly";
|
||
|
|
Quarterly: "Quarterly";
|
||
|
|
Annually: "Annually";
|
||
|
|
Free: "Free";
|
||
|
|
"Semi-Annually": "Semi-Annually";
|
||
|
|
Biennially: "Biennially";
|
||
|
|
Triennially: "Triennially";
|
||
|
|
"One-time": "One-time";
|
||
|
|
}>;
|
||
|
|
status: z.ZodEnum<{
|
||
|
|
Active: "Active";
|
||
|
|
Inactive: "Inactive";
|
||
|
|
Pending: "Pending";
|
||
|
|
Cancelled: "Cancelled";
|
||
|
|
Suspended: "Suspended";
|
||
|
|
Terminated: "Terminated";
|
||
|
|
Completed: "Completed";
|
||
|
|
}>;
|
||
|
|
nextDue: z.ZodOptional<z.ZodString>;
|
||
|
|
amount: z.ZodNumber;
|
||
|
|
currency: z.ZodString;
|
||
|
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
||
|
|
registrationDate: z.ZodString;
|
||
|
|
notes: z.ZodOptional<z.ZodString>;
|
||
|
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
||
|
|
orderNumber: z.ZodOptional<z.ZodString>;
|
||
|
|
groupName: z.ZodOptional<z.ZodString>;
|
||
|
|
paymentMethod: z.ZodOptional<z.ZodString>;
|
||
|
|
serverName: z.ZodOptional<z.ZodString>;
|
||
|
|
}, z.core.$strip>>;
|
||
|
|
totalCount: z.ZodNumber;
|
||
|
|
}, z.core.$strip>;
|
||
|
|
export declare const subscriptionQueryParamsSchema: z.ZodObject<{
|
||
|
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
||
|
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
||
|
|
status: z.ZodOptional<z.ZodEnum<{
|
||
|
|
Active: "Active";
|
||
|
|
Inactive: "Inactive";
|
||
|
|
Pending: "Pending";
|
||
|
|
Cancelled: "Cancelled";
|
||
|
|
Suspended: "Suspended";
|
||
|
|
Terminated: "Terminated";
|
||
|
|
Completed: "Completed";
|
||
|
|
}>>;
|
||
|
|
type: z.ZodOptional<z.ZodString>;
|
||
|
|
}, z.core.$strip>;
|
||
|
|
export type SubscriptionQueryParams = z.infer<typeof subscriptionQueryParamsSchema>;
|
||
|
|
export declare const subscriptionQuerySchema: z.ZodObject<{
|
||
|
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
||
|
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
||
|
|
status: z.ZodOptional<z.ZodEnum<{
|
||
|
|
Active: "Active";
|
||
|
|
Inactive: "Inactive";
|
||
|
|
Pending: "Pending";
|
||
|
|
Cancelled: "Cancelled";
|
||
|
|
Suspended: "Suspended";
|
||
|
|
Terminated: "Terminated";
|
||
|
|
Completed: "Completed";
|
||
|
|
}>>;
|
||
|
|
type: z.ZodOptional<z.ZodString>;
|
||
|
|
}, z.core.$strip>;
|
||
|
|
export type SubscriptionQuery = SubscriptionQueryParams;
|
||
|
|
export declare const subscriptionStatsSchema: z.ZodObject<{
|
||
|
|
total: z.ZodNumber;
|
||
|
|
active: z.ZodNumber;
|
||
|
|
completed: z.ZodNumber;
|
||
|
|
cancelled: z.ZodNumber;
|
||
|
|
}, z.core.$strip>;
|
||
|
|
export declare const simActionResponseSchema: z.ZodObject<{
|
||
|
|
success: z.ZodBoolean;
|
||
|
|
message: z.ZodString;
|
||
|
|
data: z.ZodOptional<z.ZodUnknown>;
|
||
|
|
}, z.core.$strip>;
|
||
|
|
export declare const simPlanChangeResultSchema: z.ZodObject<{
|
||
|
|
success: z.ZodBoolean;
|
||
|
|
message: z.ZodString;
|
||
|
|
ipv4: z.ZodOptional<z.ZodString>;
|
||
|
|
ipv6: z.ZodOptional<z.ZodString>;
|
||
|
|
}, z.core.$strip>;
|
||
|
|
export type SubscriptionStatus = z.infer<typeof subscriptionStatusSchema>;
|
||
|
|
export type SubscriptionCycle = z.infer<typeof subscriptionCycleSchema>;
|
||
|
|
export type Subscription = z.infer<typeof subscriptionSchema>;
|
||
|
|
export type SubscriptionList = z.infer<typeof subscriptionListSchema>;
|
||
|
|
export type SubscriptionStats = z.infer<typeof subscriptionStatsSchema>;
|
||
|
|
export type SimActionResponse = z.infer<typeof simActionResponseSchema>;
|
||
|
|
export type SimPlanChangeResult = z.infer<typeof simPlanChangeResultSchema>;
|