Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

484 B
Raw Blame
import { http, Result } from "@fider/services"

export const sendInvites = async (subject: string, message: string, recipients: string[]): Promise<Result> => {
  return http.post("/api/v1/invitations/send", { subject, message, recipients }).then(http.event("invite", "send"))
}

export const sendSampleInvite = async (subject: string, message: string): Promise<Result> => {
  return http.post("/api/v1/invitations/sample", { subject, message }).then(http.event("invite", "sample"))
}