Suresh - ELMO - Hi Team. I am working with type...

Hi Team. I am working with typescript thoughtspot SDK 2.16.0 and realised there are two different enums for privileges - UpdateRoleRequestPrivilegesEnum used in updating a privilege of a role and CreateRoleRequestPrivilegesEnum used in creating a role. These enums are different, update one does not have | 'CAN_SETUP_VERSION_CONTROL', and 'PREVIEW_THOUGHTSPOT_SAGE'. Is this intentional? I tried using PREVIEW_THOUGHTSPOT_SAGE as part of update request directly in REST API V2 and it worked but looks like typescript SDK is not updated. How frequent SDKs are updated to go through these inconsistency?
2 Replies
RT
RT4w ago
@Suresh - ELMO : Thanks for reporting the issue. Yes, we observed the same. We will get SDK reflect with all the privileges soon.. Meanwhile you can use all the privileges which appears in CreateRoleRequestPrivilegesEnum in update operations as well.
RT
RT4w ago
@Suresh - ELMO : New SDK version is generated with PREVIEW_THOUGHTSPOT_SAGE: https://www.npmjs.com/package/@thoughtspot/rest-api-sdk/v/2.16.1 NOTE: CAN_SETUP_VERSION_CONTROL is not supported yet in Update Roles. We are internally discussing this with the team who is handling this privilege.
npm
@thoughtspot/rest-api-sdk
Api sdk for thoughtspot's public v2 rest api. Latest version: 2.16.1, last published: a day ago. Start using @thoughtspot/rest-api-sdk in your project by running npm i @thoughtspot/rest-api-sdk. There are 1 other projects in the npm registry using @thoughtspot/rest-api-sdk.

Did you find this page helpful?