@staffbase/widget-sdk 3.3.4 → 3.3.5

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.
@@ -1,27 +0,0 @@
1
- # Interface: UserListRequestQuery
2
-
3
- User list request parameters
4
-
5
- ## Properties
6
-
7
- ### filter
8
-
9
- • `Optional` **filter**: *string*
10
-
11
- ___
12
-
13
- ### limit
14
-
15
- • `Optional` **limit**: *number*
16
-
17
- ___
18
-
19
- ### offset
20
-
21
- • `Optional` **offset**: *number*
22
-
23
- ___
24
-
25
- ### sort
26
-
27
- • `Optional` **sort**: [*UserListSorting*](../wiki/Home#userlistsorting)
@@ -1,27 +0,0 @@
1
- # Interface: UserListResponse
2
-
3
- Responded user list
4
-
5
- ## Properties
6
-
7
- ### data
8
-
9
- • **data**: [*UserListItem*](../wiki/Interface:%20UserListItem)[]
10
-
11
- ___
12
-
13
- ### limit
14
-
15
- • **limit**: *number*
16
-
17
- ___
18
-
19
- ### offset
20
-
21
- • **offset**: *number*
22
-
23
- ___
24
-
25
- ### total
26
-
27
- • **total**: *number*
@@ -1,75 +0,0 @@
1
- # Interface: WidgetApi
2
-
3
- Widget API class.
4
-
5
- A class providing access to additional information about the Staffbase ecosystem for widgets.
6
-
7
- ## Methods
8
-
9
- ### getLegacyAppTheme
10
-
11
- ▸ **getLegacyAppTheme**(): [*ColorTheme*](../wiki/Interface:%20ColorTheme)
12
-
13
- Call to retrieve the color theme of the app. Since this theme definitions
14
- are currently redesigned, this method is called legacy.
15
-
16
- **Returns:** [*ColorTheme*](../wiki/Interface:%20ColorTheme)
17
-
18
- An object containing the color theme data is returned.
19
-
20
- ___
21
-
22
- ### getUserInformation
23
-
24
- ▸ **getUserInformation**(`userId?`: *string*): *Promise*<[*SBUserProfile*](../wiki/Interface:%20SBUserProfile)\>
25
-
26
- Call to retrieve the user profile of the current or a specific user.
27
-
28
- #### Parameters:
29
-
30
- | Name | Type | Description |
31
- | :------ | :------ | :------ |
32
- | `userId?` | *string* | User ID to lookup for; leave blank to retrieve current user |
33
-
34
- **Returns:** *Promise*<[*SBUserProfile*](../wiki/Interface:%20SBUserProfile)\>
35
-
36
- A promise containing the SBUserProfile is returned. In case of an error,
37
- the promise is rejected.
38
-
39
- ___
40
-
41
- ### getUserInformationByExternalId
42
-
43
- ▸ **getUserInformationByExternalId**(`externalId`: *string*): *Promise*<[*SBUserProfile*](../wiki/Interface:%20SBUserProfile)\>
44
-
45
- Call to retrieve a user profile by its external ID.
46
-
47
- #### Parameters:
48
-
49
- | Name | Type | Description |
50
- | :------ | :------ | :------ |
51
- | `externalId` | *string* | An external ID of the user that shall be returned |
52
-
53
- **Returns:** *Promise*<[*SBUserProfile*](../wiki/Interface:%20SBUserProfile)\>
54
-
55
- A promise containing the SBUserProfile is returned. In case of an error,
56
- the promise is rejected.
57
-
58
- ___
59
-
60
- ### getUserList
61
-
62
- ▸ **getUserList**(`query`: [*UserListRequestQuery*](../wiki/Interface:%20UserListRequestQuery)): *Promise*<[*UserListResponse*](../wiki/Interface:%20UserListResponse)\>
63
-
64
- Call to retrieve a list of users determined by the query object.
65
-
66
- #### Parameters:
67
-
68
- | Name | Type | Description |
69
- | :------ | :------ | :------ |
70
- | `query` | [*UserListRequestQuery*](../wiki/Interface:%20UserListRequestQuery) | Adjust limit, offset, filter, and sorting for the request |
71
-
72
- **Returns:** *Promise*<[*UserListResponse*](../wiki/Interface:%20UserListResponse)\>
73
-
74
- A promise containing the UserListResponse is returned. In case of an error,
75
- the promise is rejected.