@staffbase/widget-sdk 3.7.3 → 3.8.0

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,74 +0,0 @@
1
- # Interface: SBImageEntity
2
-
3
- Image entity definition
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [format](../wiki/SBImageEntity#format)
10
- - [height](../wiki/SBImageEntity#height)
11
- - [mimeType](../wiki/SBImageEntity#mimetype)
12
- - [size](../wiki/SBImageEntity#size)
13
- - [url](../wiki/SBImageEntity#url)
14
- - [width](../wiki/SBImageEntity#width)
15
-
16
- ## Properties
17
-
18
- ### format
19
-
20
- • `Optional` **format**: `string`
21
-
22
- #### Defined in
23
-
24
- [lib/widget-api-types.ts:117](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L117)
25
-
26
- ___
27
-
28
- ### height
29
-
30
- • **height**: `number`
31
-
32
- #### Defined in
33
-
34
- [lib/widget-api-types.ts:118](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L118)
35
-
36
- ___
37
-
38
- ### mimeType
39
-
40
- • `Optional` **mimeType**: `string`
41
-
42
- #### Defined in
43
-
44
- [lib/widget-api-types.ts:119](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L119)
45
-
46
- ___
47
-
48
- ### size
49
-
50
- • `Optional` **size**: `number`
51
-
52
- #### Defined in
53
-
54
- [lib/widget-api-types.ts:120](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L120)
55
-
56
- ___
57
-
58
- ### url
59
-
60
- • **url**: `string`
61
-
62
- #### Defined in
63
-
64
- [lib/widget-api-types.ts:121](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L121)
65
-
66
- ___
67
-
68
- ### width
69
-
70
- • **width**: `number`
71
-
72
- #### Defined in
73
-
74
- [lib/widget-api-types.ts:122](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L122)
@@ -1,52 +0,0 @@
1
- # Interface: SBUserAvatar
2
-
3
- User avatar definition
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [icon](../wiki/SBUserAvatar#icon)
10
- - [original](../wiki/SBUserAvatar#original)
11
- - [publicID](../wiki/SBUserAvatar#publicid)
12
- - [thumb](../wiki/SBUserAvatar#thumb)
13
-
14
- ## Properties
15
-
16
- ### icon
17
-
18
- • **icon**: [`SBImageEntity`](../wiki/SBImageEntity)
19
-
20
- #### Defined in
21
-
22
- [lib/widget-api-types.ts:129](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L129)
23
-
24
- ___
25
-
26
- ### original
27
-
28
- • **original**: [`SBImageEntity`](../wiki/SBImageEntity)
29
-
30
- #### Defined in
31
-
32
- [lib/widget-api-types.ts:130](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L130)
33
-
34
- ___
35
-
36
- ### publicID
37
-
38
- • **publicID**: `string`
39
-
40
- #### Defined in
41
-
42
- [lib/widget-api-types.ts:131](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L131)
43
-
44
- ___
45
-
46
- ### thumb
47
-
48
- • **thumb**: [`SBImageEntity`](../wiki/SBImageEntity)
49
-
50
- #### Defined in
51
-
52
- [lib/widget-api-types.ts:132](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L132)
@@ -1,96 +0,0 @@
1
- # Interface: SBUserProfile
2
-
3
- User profile data
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [avatar](../wiki/SBUserProfile#avatar)
10
- - [department](../wiki/SBUserProfile#department)
11
- - [firstName](../wiki/SBUserProfile#firstname)
12
- - [lastName](../wiki/SBUserProfile#lastname)
13
- - [location](../wiki/SBUserProfile#location)
14
- - [phoneNumber](../wiki/SBUserProfile#phonenumber)
15
- - [position](../wiki/SBUserProfile#position)
16
- - [publicEmailAddress](../wiki/SBUserProfile#publicemailaddress)
17
-
18
- ## Properties
19
-
20
- ### avatar
21
-
22
- • `Optional` **avatar**: [`SBUserAvatar`](../wiki/SBUserAvatar)
23
-
24
- #### Defined in
25
-
26
- [lib/widget-api-types.ts:145](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L145)
27
-
28
- ___
29
-
30
- ### department
31
-
32
- • `Optional` **department**: `string`
33
-
34
- #### Defined in
35
-
36
- [lib/widget-api-types.ts:146](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L146)
37
-
38
- ___
39
-
40
- ### firstName
41
-
42
- • **firstName**: `string`
43
-
44
- #### Defined in
45
-
46
- [lib/widget-api-types.ts:139](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L139)
47
-
48
- ___
49
-
50
- ### lastName
51
-
52
- • **lastName**: `string`
53
-
54
- #### Defined in
55
-
56
- [lib/widget-api-types.ts:140](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L140)
57
-
58
- ___
59
-
60
- ### location
61
-
62
- • `Optional` **location**: `string`
63
-
64
- #### Defined in
65
-
66
- [lib/widget-api-types.ts:143](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L143)
67
-
68
- ___
69
-
70
- ### phoneNumber
71
-
72
- • `Optional` **phoneNumber**: `string`
73
-
74
- #### Defined in
75
-
76
- [lib/widget-api-types.ts:141](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L141)
77
-
78
- ___
79
-
80
- ### position
81
-
82
- • `Optional` **position**: `string`
83
-
84
- #### Defined in
85
-
86
- [lib/widget-api-types.ts:144](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L144)
87
-
88
- ___
89
-
90
- ### publicEmailAddress
91
-
92
- • `Optional` **publicEmailAddress**: `string`
93
-
94
- #### Defined in
95
-
96
- [lib/widget-api-types.ts:142](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L142)
@@ -1,52 +0,0 @@
1
- # Interface: UserListItem
2
-
3
- Single user item
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [entityType](../wiki/UserListItem#entitytype)
10
- - [firstName](../wiki/UserListItem#firstname)
11
- - [id](../wiki/UserListItem#id)
12
- - [lastName](../wiki/UserListItem#lastname)
13
-
14
- ## Properties
15
-
16
- ### entityType
17
-
18
- • `Optional` **entityType**: `string`
19
-
20
- #### Defined in
21
-
22
- [lib/widget-api-types.ts:175](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L175)
23
-
24
- ___
25
-
26
- ### firstName
27
-
28
- • `Optional` **firstName**: `string`
29
-
30
- #### Defined in
31
-
32
- [lib/widget-api-types.ts:173](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L173)
33
-
34
- ___
35
-
36
- ### id
37
-
38
- • `Optional` **id**: `string`
39
-
40
- #### Defined in
41
-
42
- [lib/widget-api-types.ts:172](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L172)
43
-
44
- ___
45
-
46
- ### lastName
47
-
48
- • `Optional` **lastName**: `string`
49
-
50
- #### Defined in
51
-
52
- [lib/widget-api-types.ts:174](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L174)
@@ -1,52 +0,0 @@
1
- # Interface: UserListRequestQuery
2
-
3
- User list request parameters
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [filter](../wiki/UserListRequestQuery#filter)
10
- - [limit](../wiki/UserListRequestQuery#limit)
11
- - [offset](../wiki/UserListRequestQuery#offset)
12
- - [sort](../wiki/UserListRequestQuery#sort)
13
-
14
- ## Properties
15
-
16
- ### filter
17
-
18
- • `Optional` **filter**: `string`
19
-
20
- #### Defined in
21
-
22
- [lib/widget-api-types.ts:165](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L165)
23
-
24
- ___
25
-
26
- ### limit
27
-
28
- • `Optional` **limit**: `number`
29
-
30
- #### Defined in
31
-
32
- [lib/widget-api-types.ts:162](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L162)
33
-
34
- ___
35
-
36
- ### offset
37
-
38
- • `Optional` **offset**: `number`
39
-
40
- #### Defined in
41
-
42
- [lib/widget-api-types.ts:163](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L163)
43
-
44
- ___
45
-
46
- ### sort
47
-
48
- • `Optional` **sort**: [`UserListSorting`](../wiki/Home#userlistsorting)
49
-
50
- #### Defined in
51
-
52
- [lib/widget-api-types.ts:164](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L164)
@@ -1,52 +0,0 @@
1
- # Interface: UserListResponse
2
-
3
- Responded user list
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [data](../wiki/UserListResponse#data)
10
- - [limit](../wiki/UserListResponse#limit)
11
- - [offset](../wiki/UserListResponse#offset)
12
- - [total](../wiki/UserListResponse#total)
13
-
14
- ## Properties
15
-
16
- ### data
17
-
18
- • **data**: [`UserListItem`](../wiki/UserListItem)[]
19
-
20
- #### Defined in
21
-
22
- [lib/widget-api-types.ts:182](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L182)
23
-
24
- ___
25
-
26
- ### limit
27
-
28
- • **limit**: `number`
29
-
30
- #### Defined in
31
-
32
- [lib/widget-api-types.ts:184](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L184)
33
-
34
- ___
35
-
36
- ### offset
37
-
38
- • **offset**: `number`
39
-
40
- #### Defined in
41
-
42
- [lib/widget-api-types.ts:183](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L183)
43
-
44
- ___
45
-
46
- ### total
47
-
48
- • **total**: `number`
49
-
50
- #### Defined in
51
-
52
- [lib/widget-api-types.ts:185](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api-types.ts#L185)
package/docs/WidgetApi.md DELETED
@@ -1,138 +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
- ## Table of contents
8
-
9
- ### Methods
10
-
11
- - [getIntegration](../wiki/WidgetApi#getintegration)
12
- - [getLegacyAppTheme](../wiki/WidgetApi#getlegacyapptheme)
13
- - [getUserInformation](../wiki/WidgetApi#getuserinformation)
14
- - [getUserInformationByExternalId](../wiki/WidgetApi#getuserinformationbyexternalid)
15
- - [getUserList](../wiki/WidgetApi#getuserlist)
16
-
17
- ## Methods
18
-
19
- ### getIntegration
20
-
21
- ▸ **getIntegration**(`type`): `Promise`<[`IntegrationInformation`](../wiki/IntegrationInformation)\>
22
-
23
- Call to retrieve a valid token to access the Microsoft API. Includes a time value to
24
- refresh the token.
25
-
26
- #### Parameters
27
-
28
- | Name | Type | Description |
29
- | :------ | :------ | :------ |
30
- | `type` | ``"ms365"`` | The name of the integration. ("ms365") |
31
-
32
- #### Returns
33
-
34
- `Promise`<[`IntegrationInformation`](../wiki/IntegrationInformation)\>
35
-
36
- A promise containing the IntegrationInformation is returned. If the user session is
37
- not existing, the status is set to 'loggedOut' and the token is null. Additionally if the
38
- integration is not configured the status returns 'unavailable'.
39
-
40
- In case of an error, the promise is rejected.
41
-
42
- #### Defined in
43
-
44
- [lib/widget-api.ts:70](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api.ts#L70)
45
-
46
- ___
47
-
48
- ### getLegacyAppTheme
49
-
50
- ▸ **getLegacyAppTheme**(): [`ColorTheme`](../wiki/ColorTheme)
51
-
52
- Call to retrieve the color theme of the app. Since this theme definitions
53
- are currently redesigned, this method is called legacy.
54
-
55
- #### Returns
56
-
57
- [`ColorTheme`](../wiki/ColorTheme)
58
-
59
- An object containing the color theme data is returned.
60
-
61
- #### Defined in
62
-
63
- [lib/widget-api.ts:29](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api.ts#L29)
64
-
65
- ___
66
-
67
- ### getUserInformation
68
-
69
- ▸ **getUserInformation**(`userId?`): `Promise`<[`SBUserProfile`](../wiki/SBUserProfile)\>
70
-
71
- Call to retrieve the user profile of the current or a specific user.
72
-
73
- #### Parameters
74
-
75
- | Name | Type | Description |
76
- | :------ | :------ | :------ |
77
- | `userId?` | `string` | User ID to lookup for; leave blank to retrieve current user |
78
-
79
- #### Returns
80
-
81
- `Promise`<[`SBUserProfile`](../wiki/SBUserProfile)\>
82
-
83
- A promise containing the SBUserProfile is returned. In case of an error,
84
- the promise is rejected.
85
-
86
- #### Defined in
87
-
88
- [lib/widget-api.ts:38](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api.ts#L38)
89
-
90
- ___
91
-
92
- ### getUserInformationByExternalId
93
-
94
- ▸ **getUserInformationByExternalId**(`externalId`): `Promise`<[`SBUserProfile`](../wiki/SBUserProfile)\>
95
-
96
- Call to retrieve a user profile by its external ID.
97
-
98
- #### Parameters
99
-
100
- | Name | Type | Description |
101
- | :------ | :------ | :------ |
102
- | `externalId` | `string` | An external ID of the user that shall be returned |
103
-
104
- #### Returns
105
-
106
- `Promise`<[`SBUserProfile`](../wiki/SBUserProfile)\>
107
-
108
- A promise containing the SBUserProfile is returned. In case of an error,
109
- the promise is rejected.
110
-
111
- #### Defined in
112
-
113
- [lib/widget-api.ts:47](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api.ts#L47)
114
-
115
- ___
116
-
117
- ### getUserList
118
-
119
- ▸ **getUserList**(`query`): `Promise`<[`UserListResponse`](../wiki/UserListResponse)\>
120
-
121
- Call to retrieve a list of users determined by the query object.
122
-
123
- #### Parameters
124
-
125
- | Name | Type | Description |
126
- | :------ | :------ | :------ |
127
- | `query` | [`UserListRequestQuery`](../wiki/UserListRequestQuery) | Adjust limit, offset, filter, and sorting for the request |
128
-
129
- #### Returns
130
-
131
- `Promise`<[`UserListResponse`](../wiki/UserListResponse)\>
132
-
133
- A promise containing the UserListResponse is returned. In case of an error,
134
- the promise is rejected.
135
-
136
- #### Defined in
137
-
138
- [lib/widget-api.ts:56](https://github.com/Staffbase/widget-sdk/blob/master/lib/widget-api.ts#L56)
package/docs/_Sidebar.md DELETED
@@ -1,3 +0,0 @@
1
- ## @staffbase/widget-sdk
2
-
3
- - [Home](../wiki/Home)