Skip to content

Variable: GetPageByIdSchema

ts
const GetPageByIdSchema: ZodObject<{
  bodyFormat: ZodOptional<ZodCustom<
     | "storage"
     | "view"
     | string & object
     | "export_view"
     | "styled_view"
     | "editor"
     | "anonymous_export_view"
     | "atlas_doc_format", 
     | "storage"
     | "view"
     | string & object
     | "export_view"
     | "styled_view"
     | "editor"
     | "anonymous_export_view"
    | "atlas_doc_format">>;
  getDraft: ZodOptional<ZodBoolean>;
  id: ZodNumber;
  includeCollaborators: ZodOptional<ZodBoolean>;
  includeDirectChildren: ZodOptional<ZodBoolean>;
  includeFavoritedByCurrentUserStatus: ZodOptional<ZodBoolean>;
  includeLabels: ZodOptional<ZodBoolean>;
  includeLikes: ZodOptional<ZodBoolean>;
  includeOperations: ZodOptional<ZodBoolean>;
  includeProperties: ZodOptional<ZodBoolean>;
  includeVersion: ZodOptional<ZodBoolean>;
  includeVersions: ZodOptional<ZodBoolean>;
  includeWebresources: ZodOptional<ZodBoolean>;
  status: ZodOptional<ZodArray<ZodCustom<
     | "deleted"
     | string & object
     | "current"
     | "historical"
     | "draft"
     | "trashed"
     | "archived", 
     | "deleted"
     | string & object
     | "current"
     | "historical"
     | "draft"
     | "trashed"
    | "archived">>>;
  version: ZodOptional<ZodNumber>;
}, $strip>;

Defined in: src/v2/parameters/getPageById.ts:5