paginatedListSchema
paginatedListSchema<
T>(resultSchema):ZodObject<{has_more:ZodBoolean;next_cursor:ZodNullable<ZodString>;object:ZodLiteral<"list">;request_status:ZodOptional<ZodObject<{incomplete_reason:ZodEnum<{query_result_limit_reached:"query_result_limit_reached"; }>;type:ZodLiteral<"incomplete">; },$strip>>;results:ZodArray<T>;type:ZodEnum<{block:"block";comment:"comment";custom_emoji:"custom_emoji";data_source:"data_source";database:"database";page:"page";page_or_data_source:"page_or_data_source";page_or_database:"page_or_database";property_item:"property_item";user:"user";view:"view"; }>; },$strip>
Defined in: src/schemas/pagination.schema.ts:69
Base paginated list response schema.
Type Parameters
Section titled “Type Parameters”T extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>
Parameters
Section titled “Parameters”resultSchema
Section titled “resultSchema”T
Returns
Section titled “Returns”ZodObject<{ has_more: ZodBoolean; next_cursor: ZodNullable<ZodString>; object: ZodLiteral<"list">; request_status: ZodOptional<ZodObject<{ incomplete_reason: ZodEnum<{ query_result_limit_reached: "query_result_limit_reached"; }>; type: ZodLiteral<"incomplete">; }, $strip>>; results: ZodArray<T>; type: ZodEnum<{ block: "block"; comment: "comment"; custom_emoji: "custom_emoji"; data_source: "data_source"; database: "database"; page: "page"; page_or_data_source: "page_or_data_source"; page_or_database: "page_or_database"; property_item: "property_item"; user: "user"; view: "view"; }>; }, $strip>