File tree Expand file tree Collapse file tree 4 files changed +80
-8
lines changed Expand file tree Collapse file tree 4 files changed +80
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @team-plain/typescript-sdk ' : patch
3+ ---
4+
5+ Added updateThreadTenant
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ import {
7979 UpdateCustomerCardConfigDocument ,
8080 UpdateCustomerCompanyDocument ,
8181 UpdateTenantTierDocument ,
82+ UpdateThreadTenantDocument ,
8283 UpdateWebhookTargetDocument ,
8384 UpsertCustomerDocument ,
8485 type UpsertResult ,
@@ -613,6 +614,22 @@ export class PlainClient {
613614 return unwrapData ( res , ( q ) => nonNullable ( q . changeThreadPriority . thread ) ) ;
614615 }
615616
617+ /**
618+ * Update a thread's tenant
619+ */
620+ async updateThreadTenant (
621+ input : VariablesOf < typeof UpdateThreadTenantDocument > [ 'input' ]
622+ ) : SDKResult < ThreadPartsFragment > {
623+ const res = await request ( this . #ctx, {
624+ query : UpdateThreadTenantDocument ,
625+ variables : {
626+ input,
627+ } ,
628+ } ) ;
629+
630+ return unwrapData ( res , ( q ) => nonNullable ( q . updateThreadTenant . thread ) ) ;
631+ }
632+
616633 /**
617634 * Add labels to a thread
618635 */
Original file line number Diff line number Diff line change 1+ mutation updateThreadTenant ($input : UpdateThreadTenantInput ! ) {
2+ updateThreadTenant (input : $input ) {
3+ thread {
4+ ... ThreadParts
5+ }
6+ error {
7+ ... MutationErrorParts
8+ }
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments