Enums

GraphQL Enums Documentation

Audience: Programmer

This section documents all GraphQL enums available in the pyck API. Enums define a restricted set of possible values for specific fields.

File System Enums

FileReftype

Defines the type of entity that a file is associated with.

Values: item, customer, supplier, picking_order, picking_order_item, inbound, inbound_item, item_movement, repository_movement, file, item_set, repository, collection_movement

Inventory Enums

ItemMovementBlockedBy

Specifies reasons why an item movement might be blocked.

Values: RecalledProducts, ExpiredProducts, MislabelledGoods, RegulatoryHold, AwaitingDocumentation, InventoryDiscrepancies, HazardousMaterials, CounterfeitGoods, SeasonalGoods

RepositoryMovementBlockedBy

Specifies reasons why a repository movement might be blocked.

Values: RecalledProducts, ExpiredProducts, MislabelledGoods, RegulatoryHold, AwaitingDocumentation, InventoryDiscrepancies, HazardousMaterials, CounterfeitGoods, SeasonalGoods

RepositoryType

Defines the type of repository for inventory storage.

Values: dynamic, static

TransactionType

Defines the direction of inventory transactions.

Values: into, out

Common Enums

OrderDirection

Specifies the sort order for query results.

Values: ASC, DESC

Usage Patterns

Filtering with Enums

Using Enums in Mutations

JavaScript Example

Notes

  • Enum values are case-sensitive

  • Enums provide type safety and validation

  • Unknown enum values will result in GraphQL validation errors

  • Enums are commonly used for filtering, sorting, and categorization

Last updated

Was this helpful?