CalCom.Pagination (cal_com v0.3.0)

Copy Markdown

Pure continuation decisions for each Cal.com pagination scheme.

Summary

Functions

Prepare a supported call with explicit credentials.

Advance without repeating a page or silently accepting broken metadata.

Functions

first(entity, context, cursor)

@spec first(atom(), CalCom.Context.t(), String.t() | nil) ::
  CalCom.Request.t() | {:error, CalCom.Error.t()}

Prepare a supported call with explicit credentials.

next(entity, response, previous)

@spec next(atom(), CalCom.Response.t(), CalCom.Request.t()) ::
  CalCom.Request.t() | nil | {:error, CalCom.Error.t()}

Advance without repeating a page or silently accepting broken metadata.