Skip to main content

Types Overview

The Handbooks GraphQL API uses a comprehensive type system to represent handbooks, customers, policy updates, and more. This section provides an overview of all available types.

Core Types

Handbook Types

Version History Types

Customer Types

Signature Request Types

Policy Types

Utility Types

Input Types

See Input Types for complete documentation of all input types:

  • HandbookRequest - Input for generating handbooks
  • CustomerInput - Input for creating customers
  • CustomerUpdateInput - Input for updating customers
  • PolicyFeedFilters - Filters for policy feed queries
  • ListHandbooksFilter - Filters for listing handbooks
  • ListHandbooksResellerFilter - Reseller filters for listing handbooks
  • SignatureRecipientInput - Recipient for signature requests

Enums

See Enums for complete documentation:

  • HandbookFormat - Output format options (HTML, DOCX, TXT)
  • StateList - US state abbreviations
  • HandbookType - Handbook type (BASIC, COMPREHENSIVE)

Scalar Types

  • JSON - JSON scalar type for flexible data structures
  • String - Standard string type
  • Int - Integer type
  • Boolean - Boolean type

Type Relationships

Customer
├── Has many Handbooks
└── Has customerHandbookLimit

Handbook
├── Belongs to Customer
├── Contains HandbookData
├── Has HandbookResponse when generated
├── Has many HandbookVersions
└── Has many SignatureSignees

HandbookData
├── Contains company information
├── Contains employment policies
├── Contains benefits configuration
└── Contains custom policies

Next Steps

PolicyFeedResponse

Response from the policyFeed query containing policy updates.

FieldTypeDescription
totalInt!Total number of policy updates found
policyUpdates[PolicyUpdateItem!]!Array of policy updates with full HTML content

PolicyUpdateItem

Represents a single policy or compliance update with full HTML content ready for insertion into handbooks.

FieldTypeDescription
dateString!The date of the update in YYYY-MM-DD format
monthInt!Month of the update (1-12)
yearInt!Year of the update
scopeString!State code (e.g., CA, NY, TX) or US for federal updates that apply to all states
titleString!Title of the policy update
contentString!Full HTML content of the policy update ready to be inserted into a handbook
summaryStringBrief summary of the policy update from the related compliance update
instructionsStringInstructions for how to apply this update to your handbook
conditionsStringContext about when/why this update applies

HealthCheck

Simple object used by the health query.

FieldTypeDescription
statusString!Status string such as ok
timestampString!ISO timestamp when the health check was generated

UpdateDefaultCustomerHandbookLimitResponse

Response returned when updating reseller handbook limits.

FieldTypeDescription
limitInt!Updated global handbook limit
usersUpdatedIntNumber of users whose custom limits were updated (if applicable)