import z from 'zod'; import { File } from './FileService'; export declare const sitemap: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; sitemapFileId: z.ZodString; sitemapUrl: z.ZodString; urls: z.ZodArray; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }>; export type Sitemap = z.infer; export type SitemapResolved = Sitemap & { file: File; }; export interface SitemapService { create(request: CreateSitemapRequest): Promise; get(request: GetSitemapRequest): Promise; list(request: ListSitemapsRequest): Promise; } /** ****************************************************************************** * Create Sitemap ******************************************************************************* */ export declare const createSitemapParams: z.ZodObject<{ urls: z.ZodArray; }, "strip", z.ZodTypeAny, { urls: string[]; }, { urls: string[]; }>; export declare const createSitemapRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ urls: z.ZodArray; }, "strip", z.ZodTypeAny, { urls: string[]; }, { urls: string[]; }>; }, "strip", z.ZodTypeAny, { params: { urls: string[]; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { urls: string[]; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const createSitemapResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; sitemap: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; sitemap?: { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; sitemap?: { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; } | undefined; }>; export type CreateSitemapParams = z.infer; export type CreateSitemapRequest = z.infer; export type CreateSitemapResponse = z.infer; /** ****************************************************************************** * Get Sitemap ******************************************************************************* */ export declare const getSitemapParams: z.ZodObject<{ sitemapId: z.ZodString; }, "strip", z.ZodTypeAny, { sitemapId: string; }, { sitemapId: string; }>; export declare const getSitemapRequest: z.ZodObject<{ params: z.ZodObject<{ sitemapId: z.ZodString; }, "strip", z.ZodTypeAny, { sitemapId: string; }, { sitemapId: string; }>; }, "strip", z.ZodTypeAny, { params: { sitemapId: string; }; }, { params: { sitemapId: string; }; }>; export declare const getSitemapResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; sitemap: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; sitemap?: { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; sitemap?: { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; } | undefined; }>; export type GetSitemapParams = z.infer; export type GetSitemapRequest = z.infer; export type GetSitemapResponse = z.infer; /** ****************************************************************************** * List Sitemaps ******************************************************************************* */ export declare const listSitemapsParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const listSitemapsRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; }, "strip", z.ZodTypeAny, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const listSitemapsResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; sitemaps: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }, { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; sitemaps?: { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; sitemaps?: { organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sitemapFileId: string; sitemapUrl: string; urls: string[]; }[] | undefined; }>; export type ListSitemapsParams = z.infer; export type ListSitemapsRequest = z.infer; export type ListSitemapsResponse = z.infer;