Coffrify.Resources.WorkspaceExtras (Coffrify v0.9.0)

View Source

Workspace extras — transfer-email, activity feed, status subscribe, global search, transfer export, health score, tier recommendation.

Summary

Functions

Activity feed for the workspace.

Export transfers (JSON; CSV must be fetched directly from the URL).

Global search across resources.

Compute the workspace health score (0–100, grade A–F).

Send a transfer URL by email through Coffrify's mailer.

Subscribe an email to the status page.

Plan recommendation based on the last 30 days of usage.

Functions

activity_feed(client, opts \\ [])

@spec activity_feed(
  Coffrify.t(),
  keyword()
) :: {:ok, map()} | {:error, Exception.t()}

Activity feed for the workspace.

export_transfers(client, opts \\ [])

@spec export_transfers(
  Coffrify.t(),
  keyword()
) :: {:ok, map()} | {:error, Exception.t()}

Export transfers (JSON; CSV must be fetched directly from the URL).

global_search(client, q, opts \\ [])

@spec global_search(Coffrify.t(), String.t(), keyword()) ::
  {:ok, map()} | {:error, Exception.t()}

Global search across resources.

health_score(client)

@spec health_score(Coffrify.t()) :: {:ok, map()} | {:error, Exception.t()}

Compute the workspace health score (0–100, grade A–F).

send_transfer_email(client, transfer_id, opts)

@spec send_transfer_email(Coffrify.t(), String.t(), map() | keyword()) ::
  {:ok, map()} | {:error, Exception.t()}

Send a transfer URL by email through Coffrify's mailer.

subscribe_to_status(client, opts)

@spec subscribe_to_status(Coffrify.t(), map() | keyword()) ::
  {:ok, map()} | {:error, Exception.t()}

Subscribe an email to the status page.

tier_recommendation(client)

@spec tier_recommendation(Coffrify.t()) :: {:ok, map()} | {:error, Exception.t()}

Plan recommendation based on the last 30 days of usage.