@@ -17,6 +17,7 @@ import {
1717 CreateAttachmentUploadUrlDocument ,
1818 CreateCustomerCardConfigDocument ,
1919 CreateCustomerEventDocument ,
20+ CreateLabelTypeDocument ,
2021 CreateNoteDocument ,
2122 CreateThreadDocument ,
2223 CreateThreadEventDocument ,
@@ -294,9 +295,10 @@ export class PlainClient {
294295 /**
295296 * Get a paginated list of customer groups.
296297 */
297- async getCustomerGroups (
298- variables : VariablesOf < typeof CustomerGroupsDocument >
299- ) : SDKResult < { customerGroups : CustomerGroupPartsFragment [ ] ; pageInfo : PageInfo } > {
298+ async getCustomerGroups ( variables : VariablesOf < typeof CustomerGroupsDocument > ) : SDKResult < {
299+ customerGroups : CustomerGroupPartsFragment [ ] ;
300+ pageInfo : PageInfo ;
301+ } > {
300302 const res = await request ( this . #ctx, {
301303 query : CustomerGroupsDocument ,
302304 variables,
@@ -1122,4 +1124,17 @@ export class PlainClient {
11221124
11231125 return unwrapData ( res , ( q ) => nonNullable ( q . updateCompanyTier . companyTierMembership ) ) ;
11241126 }
1127+
1128+ async createLabelType (
1129+ input : VariablesOf < typeof CreateLabelTypeDocument > [ 'input' ]
1130+ ) : SDKResult < LabelTypePartsFragment > {
1131+ const res = await request ( this . #ctx, {
1132+ query : CreateLabelTypeDocument ,
1133+ variables : {
1134+ input,
1135+ } ,
1136+ } ) ;
1137+
1138+ return unwrapData ( res , ( q ) => nonNullable ( q . createLabelType . labelType ) ) ;
1139+ }
11251140}
0 commit comments