Deputy.Constants.Webhook (Deputy v0.5.0)

Copy Markdown View Source

Topic strings and type codes for webhook registration.

See Deputy.Utility.add_webhook/2.

Examples

iex> Deputy.Constants.Webhook.type_url()
"URL"

iex> import Deputy.Constants.Webhook
iex> is_topic_timesheet_insert("Timesheet.Insert")
true

Summary

Functions

Guard: matches the "Employee.Insert" topic string.

Guard: matches the "Employee.Update" topic string.

Guard: matches the "Roster.Insert" topic string.

Guard: matches the "Roster.Update" topic string.

Guard: matches the "Timesheet.Insert" topic string.

Guard: matches the "Timesheet.Update" topic string.

Guard: matches the URL webhook type ("URL").

Employee insert event (Topic: "Employee.Insert")

Employee update event (Topic: "Employee.Update")

Roster insert event (Topic: "Roster.Insert")

Roster update event (Topic: "Roster.Update")

Timesheet insert event (Topic: "Timesheet.Insert")

Timesheet update event (Topic: "Timesheet.Update")

Webhook type for HTTP URL callbacks (Type: "URL")

Functions

is_topic_employee_insert(value)

(macro)

Guard: matches the "Employee.Insert" topic string.

is_topic_employee_update(value)

(macro)

Guard: matches the "Employee.Update" topic string.

is_topic_roster_insert(value)

(macro)

Guard: matches the "Roster.Insert" topic string.

is_topic_roster_update(value)

(macro)

Guard: matches the "Roster.Update" topic string.

is_topic_timesheet_insert(value)

(macro)

Guard: matches the "Timesheet.Insert" topic string.

is_topic_timesheet_update(value)

(macro)

Guard: matches the "Timesheet.Update" topic string.

is_type_url(value)

(macro)

Guard: matches the URL webhook type ("URL").

topic_employee_insert()

Employee insert event (Topic: "Employee.Insert")

topic_employee_update()

Employee update event (Topic: "Employee.Update")

topic_roster_insert()

Roster insert event (Topic: "Roster.Insert")

topic_roster_update()

Roster update event (Topic: "Roster.Update")

topic_timesheet_insert()

Timesheet insert event (Topic: "Timesheet.Insert")

topic_timesheet_update()

Timesheet update event (Topic: "Timesheet.Update")

type_url()

Webhook type for HTTP URL callbacks (Type: "URL")