@staffbase/widget-sdk 3.8.0-beta.2 → 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/beta/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/beta/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/beta/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/beta/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/beta/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/beta/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/beta/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/beta/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/beta/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/beta/lib/widget-api-types.ts#L132)
@@ -1,140 +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
- - [externalID](../wiki/SBUserProfile#externalid)
12
- - [firstName](../wiki/SBUserProfile#firstname)
13
- - [id](../wiki/SBUserProfile#id)
14
- - [lastName](../wiki/SBUserProfile#lastname)
15
- - [location](../wiki/SBUserProfile#location)
16
- - [phoneNumber](../wiki/SBUserProfile#phonenumber)
17
- - [position](../wiki/SBUserProfile#position)
18
- - [primaryEmail](../wiki/SBUserProfile#primaryemail)
19
- - [primaryUsername](../wiki/SBUserProfile#primaryusername)
20
- - [publicEmailAddress](../wiki/SBUserProfile#publicemailaddress)
21
-
22
- ## Properties
23
-
24
- ### avatar
25
-
26
- • `Optional` **avatar**: [`SBUserAvatar`](../wiki/SBUserAvatar)
27
-
28
- #### Defined in
29
-
30
- [lib/widget-api-types.ts:147](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L147)
31
-
32
- ___
33
-
34
- ### department
35
-
36
- • `Optional` **department**: `string`
37
-
38
- #### Defined in
39
-
40
- [lib/widget-api-types.ts:148](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L148)
41
-
42
- ___
43
-
44
- ### externalID
45
-
46
- • `Optional` **externalID**: `string`
47
-
48
- #### Defined in
49
-
50
- [lib/widget-api-types.ts:140](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L140)
51
-
52
- ___
53
-
54
- ### firstName
55
-
56
- • **firstName**: `string`
57
-
58
- #### Defined in
59
-
60
- [lib/widget-api-types.ts:141](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L141)
61
-
62
- ___
63
-
64
- ### id
65
-
66
- • **id**: `string`
67
-
68
- #### Defined in
69
-
70
- [lib/widget-api-types.ts:139](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L139)
71
-
72
- ___
73
-
74
- ### lastName
75
-
76
- • **lastName**: `string`
77
-
78
- #### Defined in
79
-
80
- [lib/widget-api-types.ts:142](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L142)
81
-
82
- ___
83
-
84
- ### location
85
-
86
- • `Optional` **location**: `string`
87
-
88
- #### Defined in
89
-
90
- [lib/widget-api-types.ts:145](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L145)
91
-
92
- ___
93
-
94
- ### phoneNumber
95
-
96
- • `Optional` **phoneNumber**: `string`
97
-
98
- #### Defined in
99
-
100
- [lib/widget-api-types.ts:143](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L143)
101
-
102
- ___
103
-
104
- ### position
105
-
106
- • `Optional` **position**: `string`
107
-
108
- #### Defined in
109
-
110
- [lib/widget-api-types.ts:146](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L146)
111
-
112
- ___
113
-
114
- ### primaryEmail
115
-
116
- • `Optional` **primaryEmail**: `string`
117
-
118
- #### Defined in
119
-
120
- [lib/widget-api-types.ts:149](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L149)
121
-
122
- ___
123
-
124
- ### primaryUsername
125
-
126
- • `Optional` **primaryUsername**: `string`
127
-
128
- #### Defined in
129
-
130
- [lib/widget-api-types.ts:150](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L150)
131
-
132
- ___
133
-
134
- ### publicEmailAddress
135
-
136
- • `Optional` **publicEmailAddress**: `string`
137
-
138
- #### Defined in
139
-
140
- [lib/widget-api-types.ts:144](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L144)
@@ -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:179](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L179)
23
-
24
- ___
25
-
26
- ### firstName
27
-
28
- • `Optional` **firstName**: `string`
29
-
30
- #### Defined in
31
-
32
- [lib/widget-api-types.ts:177](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L177)
33
-
34
- ___
35
-
36
- ### id
37
-
38
- • `Optional` **id**: `string`
39
-
40
- #### Defined in
41
-
42
- [lib/widget-api-types.ts:176](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L176)
43
-
44
- ___
45
-
46
- ### lastName
47
-
48
- • `Optional` **lastName**: `string`
49
-
50
- #### Defined in
51
-
52
- [lib/widget-api-types.ts:178](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L178)
@@ -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:169](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L169)
23
-
24
- ___
25
-
26
- ### limit
27
-
28
- • `Optional` **limit**: `number`
29
-
30
- #### Defined in
31
-
32
- [lib/widget-api-types.ts:166](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L166)
33
-
34
- ___
35
-
36
- ### offset
37
-
38
- • `Optional` **offset**: `number`
39
-
40
- #### Defined in
41
-
42
- [lib/widget-api-types.ts:167](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L167)
43
-
44
- ___
45
-
46
- ### sort
47
-
48
- • `Optional` **sort**: [`UserListSorting`](../wiki/Home#userlistsorting)
49
-
50
- #### Defined in
51
-
52
- [lib/widget-api-types.ts:168](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L168)
@@ -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:186](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L186)
23
-
24
- ___
25
-
26
- ### limit
27
-
28
- • **limit**: `number`
29
-
30
- #### Defined in
31
-
32
- [lib/widget-api-types.ts:188](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L188)
33
-
34
- ___
35
-
36
- ### offset
37
-
38
- • **offset**: `number`
39
-
40
- #### Defined in
41
-
42
- [lib/widget-api-types.ts:187](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L187)
43
-
44
- ___
45
-
46
- ### total
47
-
48
- • **total**: `number`
49
-
50
- #### Defined in
51
-
52
- [lib/widget-api-types.ts:189](https://github.com/Staffbase/widget-sdk/blob/beta/lib/widget-api-types.ts#L189)
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/beta/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/beta/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/beta/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/beta/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/beta/lib/widget-api.ts#L56)
package/docs/_Sidebar.md DELETED
@@ -1,3 +0,0 @@
1
- ## @staffbase/widget-sdk
2
-
3
- - [Home](../wiki/Home)