UNPKG

@tomisakae/syosetu-api

Version:

Enterprise-grade Fastify TypeScript API for Syosetu.com data extraction using official API and web scraping. Run instantly with 'npx @tomisakae/syosetu-api'

182 lines 6.28 kB
import { z } from 'zod'; export declare const validateNcode: (ncode: string) => boolean; export declare const validateChapterNumber: (chapter: string) => number | null; export declare const validateSearchOrder: (order: string) => boolean; export declare const validateRankingOrder: (order: string) => boolean; export declare const validateLimit: (limit: number, max?: number) => boolean; export declare const validateStartPosition: (start: number) => boolean; export declare const validateGzipLevel: (gzip: number) => boolean; export declare const ncodeParamsSchema: z.ZodObject<{ ncode: z.ZodString; }, "strip", z.ZodTypeAny, { ncode: string; }, { ncode: string; }>; export declare const chapterParamsSchema: z.ZodObject<{ ncode: z.ZodString; chapter: z.ZodString; }, "strip", z.ZodTypeAny, { ncode: string; chapter: string; }, { ncode: string; chapter: string; }>; export declare const multipleChaptersBodySchema: z.ZodObject<{ chapters: z.ZodArray<z.ZodNumber, "many">; }, "strip", z.ZodTypeAny, { chapters: number[]; }, { chapters: number[]; }>; export declare const searchQuerySchema: z.ZodObject<{ keyword: z.ZodString; order: z.ZodOptional<z.ZodString>; limit: z.ZodOptional<z.ZodString>; start: z.ZodOptional<z.ZodString>; gzip: z.ZodOptional<z.ZodString>; fields: z.ZodOptional<z.ZodString>; notword: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; ex: z.ZodOptional<z.ZodString>; wname: z.ZodOptional<z.ZodString>; biggenre: z.ZodOptional<z.ZodString>; genre: z.ZodOptional<z.ZodString>; notbiggenre: z.ZodOptional<z.ZodString>; notgenre: z.ZodOptional<z.ZodString>; userid: z.ZodOptional<z.ZodString>; isr15: z.ZodOptional<z.ZodString>; isbl: z.ZodOptional<z.ZodString>; isgl: z.ZodOptional<z.ZodString>; iszankoku: z.ZodOptional<z.ZodString>; istensei: z.ZodOptional<z.ZodString>; istenni: z.ZodOptional<z.ZodString>; istt: z.ZodOptional<z.ZodString>; notr15: z.ZodOptional<z.ZodString>; notbl: z.ZodOptional<z.ZodString>; notgl: z.ZodOptional<z.ZodString>; notzankoku: z.ZodOptional<z.ZodString>; nottensei: z.ZodOptional<z.ZodString>; nottenni: z.ZodOptional<z.ZodString>; minlen: z.ZodOptional<z.ZodString>; maxlen: z.ZodOptional<z.ZodString>; length: z.ZodOptional<z.ZodString>; mintime: z.ZodOptional<z.ZodString>; maxtime: z.ZodOptional<z.ZodString>; time: z.ZodOptional<z.ZodString>; kaiwaritu: z.ZodOptional<z.ZodString>; sasie: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; buntai: z.ZodOptional<z.ZodString>; stop: z.ZodOptional<z.ZodString>; lastup: z.ZodOptional<z.ZodString>; lastupdate: z.ZodOptional<z.ZodString>; ispickup: z.ZodOptional<z.ZodString>; opt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { keyword: string; type?: string | undefined; length?: string | undefined; order?: string | undefined; limit?: string | undefined; start?: string | undefined; gzip?: string | undefined; fields?: string | undefined; notword?: string | undefined; title?: string | undefined; ex?: string | undefined; wname?: string | undefined; biggenre?: string | undefined; genre?: string | undefined; notbiggenre?: string | undefined; notgenre?: string | undefined; userid?: string | undefined; isr15?: string | undefined; isbl?: string | undefined; isgl?: string | undefined; iszankoku?: string | undefined; istensei?: string | undefined; istenni?: string | undefined; istt?: string | undefined; notr15?: string | undefined; notbl?: string | undefined; notgl?: string | undefined; notzankoku?: string | undefined; nottensei?: string | undefined; nottenni?: string | undefined; minlen?: string | undefined; maxlen?: string | undefined; mintime?: string | undefined; maxtime?: string | undefined; time?: string | undefined; kaiwaritu?: string | undefined; sasie?: string | undefined; buntai?: string | undefined; stop?: string | undefined; lastup?: string | undefined; lastupdate?: string | undefined; ispickup?: string | undefined; opt?: string | undefined; }, { keyword: string; type?: string | undefined; length?: string | undefined; order?: string | undefined; limit?: string | undefined; start?: string | undefined; gzip?: string | undefined; fields?: string | undefined; notword?: string | undefined; title?: string | undefined; ex?: string | undefined; wname?: string | undefined; biggenre?: string | undefined; genre?: string | undefined; notbiggenre?: string | undefined; notgenre?: string | undefined; userid?: string | undefined; isr15?: string | undefined; isbl?: string | undefined; isgl?: string | undefined; iszankoku?: string | undefined; istensei?: string | undefined; istenni?: string | undefined; istt?: string | undefined; notr15?: string | undefined; notbl?: string | undefined; notgl?: string | undefined; notzankoku?: string | undefined; nottensei?: string | undefined; nottenni?: string | undefined; minlen?: string | undefined; maxlen?: string | undefined; mintime?: string | undefined; maxtime?: string | undefined; time?: string | undefined; kaiwaritu?: string | undefined; sasie?: string | undefined; buntai?: string | undefined; stop?: string | undefined; lastup?: string | undefined; lastupdate?: string | undefined; ispickup?: string | undefined; opt?: string | undefined; }>; export declare const rankingQuerySchema: z.ZodObject<{ order: z.ZodOptional<z.ZodString>; biggenre: z.ZodOptional<z.ZodString>; genre: z.ZodOptional<z.ZodString>; limit: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { order?: string | undefined; limit?: string | undefined; biggenre?: string | undefined; genre?: string | undefined; }, { order?: string | undefined; limit?: string | undefined; biggenre?: string | undefined; genre?: string | undefined; }>; //# sourceMappingURL=validation.d.ts.map