May 24, 2023
Typescript SDK
For all of its versatility and power, GraphQL can be tricky to set up. Especially if you just want to open an issue in Plain or submit a contact form.
To make it easier to use our API, today we are releasing our first SDK for Typescript and its open source:
https://github.com/team-plain/typescript-sdk
It doesn't allow you to do everything our GraphQL API does but it does handle the majority of use cases (and makes those a breeze).
This first version lets you:
Create custom timeline entries to submit contact forms
Log events that happen in your systems through timeline entries
Create, update and get customers
Create issues
Add and remove customers from customer groups
For example—this is how you create a customer in Plain:
To show off the SDK we've built a very fancy example contact form, which you can see here.If you’re looking for some inspiration, check out the code. It's all open source!We'll be extending the functionality of the SDK very soon and creating SDKs for other languages. If you don't work with Typescript—let us know and we can help!
Improvements
You can now see the preview of a message in email notifications so you can triage inbound emails more quickly.
Improved handling of failures with our Slack notifications app.
Improved the timings of the animations when a customer exits a queue.
Added queries for
myWorkspace
,myPermissions
andmyMachineUser
to make it easier to get your workspace, permissions and user when using our API via a Machine User.
Bug Fixes
Various dark mode fixes to the email composer and customer groups UI.
You are no longer stuck on error pages and now have a handy back button which will take you somewhere safe.
Fixed a bug which sometimes resulted in customer group counts being incorrect.
Fixed a bug which prevented you from navigating back when setting up email as part of the sign-up flow.
Fixed a bunch of inconsistent spacing in tags in customer queues.
Designed, built and written by
Matt Vagni
Co-founder & CTO
Ready to get started?
Join the teams who rely on Plain to provide world-class support to their customers.
Join our team
We're building an intentionally small, fast-moving and product centric team.