@staffbase/widget-sdk 3.14.19 → 3.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -215,3 +215,11 @@ export interface IntegrationInformation {
215
215
  token?: IntegrationToken;
216
216
  signIn?: () => void;
217
217
  }
218
+ /**
219
+ * Branch information
220
+ */
221
+ export interface BranchInformation {
222
+ slug: string;
223
+ branchId: string;
224
+ webUrl: string;
225
+ }
@@ -10,7 +10,7 @@
10
10
  * See the License for the specific language governing permissions and
11
11
  * limitations under the License.
12
12
  */
13
- import { ColorTheme, IntegrationInformation, IntegrationType, SBUserProfile, UserListRequestQuery, UserListResponse } from './widget-api-types';
13
+ import { BranchInformation, ColorTheme, IntegrationInformation, IntegrationType, SBUserProfile, UserListRequestQuery, UserListResponse } from './widget-api-types';
14
14
  /**
15
15
  * Widget API class.
16
16
  *
@@ -61,4 +61,10 @@ export interface WidgetApi {
61
61
  * In case of an error, the promise is rejected.
62
62
  */
63
63
  getIntegration(type: IntegrationType): Promise<IntegrationInformation>;
64
+ /**
65
+ * Call to retrieve information about the current branch.
66
+ *
67
+ * @returns An object containing the branch information.
68
+ */
69
+ getBranchInformation(): BranchInformation;
64
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staffbase/widget-sdk",
3
- "version": "3.14.19",
3
+ "version": "3.15.1",
4
4
  "description": "Staffbase SDK for Custom Widgets",
5
5
  "homepage": "https://developers.staffbase.com/frameworks/customwidget-development",
6
6
  "main": "./dist/index.js",