@rikrdesk/types
v0.1.0
Published
Types and the manifest JSON Schema for RikrDesk plugins.
Readme
@rikrdesk/types
Types for RikrDesk plugins, and the JSON Schema for rikrdesk.plugin.json.
/** @type {import('@rikrdesk/types').Plugin} */
export default {
async onEvent(event, ctx) {
if (event.type === 'ticket.created') {
await ctx.desk.post(`/tickets_agent/${event.ticket.id}/messages`, { text: 'Hello', internal: true });
}
},
};Point your manifest at the schema to get checking and completion in your editor:
{ "$schema": "./node_modules/@rikrdesk/types/schema/rikrdesk.plugin.schema.json" }rikrdesk init sets both up. Docs: https://rikrdesk.com/developers/docs
