UNPKG

iwelp

Version:
30 lines (29 loc) 1.07 kB
import Welp from "./components"; /** * Fetch the details of a scope * @param {string} scopeId - the scope id * @returns - the scope data */ export function fetchScope(scopeId: string): Promise<any>; /** * Submit a rating * @param {string} scopeId - the scope id * @param {number} rating - the rating * @param {string} message - the message * @param {boolean} mayContact - may contact * @param {string} email - the email * @returns - the response */ export function submitRating(scopeId: string, rating: number, message: string, mayContact: boolean, email: string): Promise<any>; import { WelpButton } from "./components"; import { WelpRated } from "./components"; import { PollsButton } from "./components"; import { FaceRating } from "./components"; /** * Ping service * @param {string} serviceId - the service id * @param {string} bucode - the business unit. Default is 100 * @returns - the response */ export function ping(serviceId: string, bucode?: string): Promise<any>; export { Welp as default, WelpButton, WelpRated, PollsButton, FaceRating };