@adobe/exc-app 0.2.42 → 0.2.44-beta

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.
Files changed (67) hide show
  1. package/RuntimeConfiguration.d.ts +29 -16
  2. package/RuntimeConfiguration.ts +31 -15
  3. package/appapi.d.ts +1 -0
  4. package/appapi.js +1 -0
  5. package/appapi.js.map +1 -1
  6. package/appapi.ts +1 -0
  7. package/build/preBuild.js +1 -0
  8. package/capabilityapi.d.ts +4 -0
  9. package/capabilityapi.js +4 -0
  10. package/capabilityapi.js.map +1 -1
  11. package/capabilityapi.ts +4 -0
  12. package/docs/README.md +1 -1
  13. package/docs/enums/capabilityapi.capabilityids.md +14 -0
  14. package/docs/enums/capabilityapi.capabilitynames.md +14 -0
  15. package/docs/interfaces/appapi.appapi-1.md +2 -2
  16. package/docs/interfaces/capabilityapi.capabilityapi-1.md +2 -2
  17. package/docs/interfaces/helpcenter.helpcenterconfig.md +4 -4
  18. package/docs/interfaces/metrics.analytics.md +6 -6
  19. package/docs/interfaces/metrics.metrics-1.md +2 -2
  20. package/docs/interfaces/metrics.metricsapi.md +2 -2
  21. package/docs/interfaces/network.apolloclientoptions.md +35 -0
  22. package/docs/interfaces/network.defaultmetadata.md +1 -1
  23. package/docs/interfaces/network.graphqlquery.md +1 -1
  24. package/docs/interfaces/network.networkapi.md +37 -4
  25. package/docs/interfaces/network.queryrequest.md +1 -1
  26. package/docs/interfaces/page.callback.md +21 -0
  27. package/docs/interfaces/page.pageapi.md +82 -5
  28. package/docs/interfaces/permissions.permissionsapi.md +2 -2
  29. package/docs/interfaces/permissions.permissionsresponse.md +1 -1
  30. package/docs/interfaces/pulse.pulseapi.md +38 -2
  31. package/docs/interfaces/pulse.pulsebuttonconfig.md +32 -0
  32. package/docs/interfaces/pulse.pulsenotification.md +2 -2
  33. package/docs/interfaces/root.modules.md +161 -0
  34. package/docs/interfaces/root.runtime.md +102 -0
  35. package/docs/interfaces/root.runtimeconfiguration.md +392 -0
  36. package/docs/interfaces/session.sessionapi.md +6 -6
  37. package/docs/interfaces/settings.parameters.md +1 -1
  38. package/docs/interfaces/settings.settingsapi.md +6 -6
  39. package/docs/interfaces/settings.settingsresponse.md +1 -1
  40. package/docs/interfaces/shell.shellapi.md +6 -6
  41. package/docs/interfaces/shell.shellinfo.md +1 -1
  42. package/docs/interfaces/user.imsinfo.md +1 -1
  43. package/docs/interfaces/user.userapi.md +6 -6
  44. package/docs/interfaces/user.userinfo.md +2 -2
  45. package/docs/modules/metrics.md +39 -8
  46. package/docs/modules/network.md +38 -4
  47. package/docs/modules/page.md +1 -0
  48. package/docs/modules/pulse.md +1 -0
  49. package/docs/modules/root.md +88 -0
  50. package/internal.d.ts +24 -0
  51. package/internal.js +15 -1
  52. package/internal.js.map +1 -1
  53. package/internal.ts +34 -0
  54. package/package.json +4 -3
  55. package/page.d.ts +3 -1
  56. package/page.js.map +1 -1
  57. package/page.ts +3 -1
  58. package/pulse.d.ts +22 -0
  59. package/pulse.js +6 -0
  60. package/pulse.js.map +1 -1
  61. package/pulse.ts +32 -0
  62. package/tests/pulse.test.js +3 -1
  63. package/tests/pulse.test.js.map +1 -1
  64. package/tests/pulse.test.ts +3 -1
  65. package/coverage/lcov-report/block-navigation.js +0 -79
  66. package/coverage/lcov-report/prettify.js +0 -2
  67. package/coverage/lcov-report/sorter.js +0 -170
@@ -0,0 +1,392 @@
1
+ **[@adobe/exc-app](../README.md)**
2
+
3
+ > [Globals](../README.md) / [root](../modules/root.md) / RuntimeConfiguration
4
+
5
+ # Interface: RuntimeConfiguration
6
+
7
+ External Runtime Configuration Interface
8
+
9
+ ## Hierarchy
10
+
11
+ * **RuntimeConfiguration**
12
+
13
+ ## Index
14
+
15
+ ### Properties
16
+
17
+ * [analytics](root.runtimeconfiguration.md#analytics)
18
+ * [apiGatewayUrl](root.runtimeconfiguration.md#apigatewayurl)
19
+ * [appContainer](root.runtimeconfiguration.md#appcontainer)
20
+ * [appId](root.runtimeconfiguration.md#appid)
21
+ * [baseFrameUrl](root.runtimeconfiguration.md#baseframeurl)
22
+ * [baseUrl](root.runtimeconfiguration.md#baseurl)
23
+ * [changedProperties](root.runtimeconfiguration.md#changedproperties)
24
+ * [discovery](root.runtimeconfiguration.md#discovery)
25
+ * [environment](root.runtimeconfiguration.md#environment)
26
+ * [externalQueryParams](root.runtimeconfiguration.md#externalqueryparams)
27
+ * [featureFlags](root.runtimeconfiguration.md#featureflags)
28
+ * [gainsight](root.runtimeconfiguration.md#gainsight)
29
+ * [gqlEndpoint](root.runtimeconfiguration.md#gqlendpoint)
30
+ * [historyType](root.runtimeconfiguration.md#historytype)
31
+ * [hosts](root.runtimeconfiguration.md#hosts)
32
+ * [imsClientId](root.runtimeconfiguration.md#imsclientid)
33
+ * [imsEnvironment](root.runtimeconfiguration.md#imsenvironment)
34
+ * [imsInfo](root.runtimeconfiguration.md#imsinfo)
35
+ * [imsOrg](root.runtimeconfiguration.md#imsorg)
36
+ * [imsOrgName](root.runtimeconfiguration.md#imsorgname)
37
+ * [imsOrgs](root.runtimeconfiguration.md#imsorgs)
38
+ * [imsProfile](root.runtimeconfiguration.md#imsprofile)
39
+ * [imsToken](root.runtimeconfiguration.md#imstoken)
40
+ * [ioGatewayUrl](root.runtimeconfiguration.md#iogatewayurl)
41
+ * [ioRegionSpecificMap](root.runtimeconfiguration.md#ioregionspecificmap)
42
+ * [locale](root.runtimeconfiguration.md#locale)
43
+ * [metricsAppId](root.runtimeconfiguration.md#metricsappid)
44
+ * [metricsConfig](root.runtimeconfiguration.md#metricsconfig)
45
+ * [metricsEnv](root.runtimeconfiguration.md#metricsenv)
46
+ * [preferredLanguages](root.runtimeconfiguration.md#preferredlanguages)
47
+ * [sandbox](root.runtimeconfiguration.md#sandbox)
48
+ * [shellHeight](root.runtimeconfiguration.md#shellheight)
49
+ * [shellInfo](root.runtimeconfiguration.md#shellinfo)
50
+ * [shellSideNavCollapsed](root.runtimeconfiguration.md#shellsidenavcollapsed)
51
+ * [shellSideNavPresent](root.runtimeconfiguration.md#shellsidenavpresent)
52
+ * [shellSideNavWidth](root.runtimeconfiguration.md#shellsidenavwidth)
53
+ * [spaAppId](root.runtimeconfiguration.md#spaappid)
54
+ * [subOrg](root.runtimeconfiguration.md#suborg)
55
+ * [tenant](root.runtimeconfiguration.md#tenant)
56
+ * [tenantAppId](root.runtimeconfiguration.md#tenantappid)
57
+ * [theme](root.runtimeconfiguration.md#theme)
58
+ * [xqlGatewayUrl](root.runtimeconfiguration.md#xqlgatewayurl)
59
+
60
+ ## Properties
61
+
62
+ ### analytics
63
+
64
+ • `Optional` **analytics**: undefined \| { script: string ; solution: string }
65
+
66
+ OMEGA Launch script properties
67
+
68
+ ___
69
+
70
+ ### apiGatewayUrl
71
+
72
+ • **apiGatewayUrl**: string
73
+
74
+ Unified Shell API Gateway URL
75
+
76
+ ___
77
+
78
+ ### appContainer
79
+
80
+ • **appContainer**: string
81
+
82
+ App Container
83
+
84
+ ___
85
+
86
+ ### appId
87
+
88
+ • **appId**: string
89
+
90
+ Solution appId
91
+
92
+ ___
93
+
94
+ ### baseFrameUrl
95
+
96
+ • **baseFrameUrl**: string
97
+
98
+ Solution iframe src url
99
+
100
+ ___
101
+
102
+ ### baseUrl
103
+
104
+ • **baseUrl**: string
105
+
106
+ Base URL
107
+
108
+ ___
109
+
110
+ ### changedProperties
111
+
112
+ • **changedProperties**: keyof [RuntimeConfiguration](root.runtimeconfiguration.md)[]
113
+
114
+ List all properties changed in this configuration compared to the previous one sent
115
+
116
+ ___
117
+
118
+ ### discovery
119
+
120
+ • **discovery**: boolean
121
+
122
+ If discovery URL
123
+
124
+ ___
125
+
126
+ ### environment
127
+
128
+ • **environment**: string
129
+
130
+ Unified Shell's environment
131
+
132
+ ___
133
+
134
+ ### externalQueryParams
135
+
136
+ • **externalQueryParams**: string
137
+
138
+ Query params
139
+
140
+ ___
141
+
142
+ ### featureFlags
143
+
144
+ • `Optional` **featureFlags**: Record<string, string\>
145
+
146
+ List of feature flags
147
+
148
+ ___
149
+
150
+ ### gainsight
151
+
152
+ • `Optional` **gainsight**: undefined \| { enabled: boolean ; productKey: string }
153
+
154
+ Gainsight configuration.
155
+
156
+ ___
157
+
158
+ ### gqlEndpoint
159
+
160
+ • `Optional` **gqlEndpoint**: undefined \| string
161
+
162
+ Clients can pass in their local GQL endpoint
163
+
164
+ ___
165
+
166
+ ### historyType
167
+
168
+ • **historyType**: \"HASH\" \| \"HISTORY\" \| \"SERVER\"
169
+
170
+ Solution History type
171
+
172
+ ___
173
+
174
+ ### hosts
175
+
176
+ • `Optional` **hosts**: string[]
177
+
178
+ Solution's list of multiple subdomains
179
+
180
+ ___
181
+
182
+ ### imsClientId
183
+
184
+ • **imsClientId**: string
185
+
186
+ IMS Client ID
187
+
188
+ ___
189
+
190
+ ### imsEnvironment
191
+
192
+ • **imsEnvironment**: string
193
+
194
+ IMS env
195
+
196
+ ___
197
+
198
+ ### imsInfo
199
+
200
+ • **imsInfo**: ImsInfo
201
+
202
+ IMS Information
203
+
204
+ ___
205
+
206
+ ### imsOrg
207
+
208
+ • **imsOrg**: string
209
+
210
+ Current IMS Org ID
211
+
212
+ ___
213
+
214
+ ### imsOrgName
215
+
216
+ • **imsOrgName**: string
217
+
218
+ Current IMS Org Name
219
+
220
+ ___
221
+
222
+ ### imsOrgs
223
+
224
+ • **imsOrgs**: Array<Record<string, ImsOrg\>\>
225
+
226
+ ImsOrg Interface
227
+
228
+ ___
229
+
230
+ ### imsProfile
231
+
232
+ • `Optional` **imsProfile**: undefined \| { authId: string ; displayName: string ; session: string ; userId: string }
233
+
234
+ User IMS Profile
235
+
236
+ ___
237
+
238
+ ### imsToken
239
+
240
+ • **imsToken**: string
241
+
242
+ IMS Token
243
+
244
+ ___
245
+
246
+ ### ioGatewayUrl
247
+
248
+ • `Optional` **ioGatewayUrl**: undefined \| string
249
+
250
+ Adobe IO gateway URL used as a fallback in GQL call
251
+
252
+ ___
253
+
254
+ ### ioRegionSpecificMap
255
+
256
+ • `Optional` **ioRegionSpecificMap**: Record<string, string\>
257
+
258
+ Map of Adobe Io region specific endpoints.
259
+
260
+ ___
261
+
262
+ ### locale
263
+
264
+ • **locale**: string
265
+
266
+ User Locale
267
+
268
+ ___
269
+
270
+ ### metricsAppId
271
+
272
+ • `Optional` **metricsAppId**: undefined \| string
273
+
274
+ Solution metricsAppId
275
+
276
+ ___
277
+
278
+ ### metricsConfig
279
+
280
+ • **metricsConfig**: MetricsConfiguration
281
+
282
+ AdobeMetricsRuntime Configuration
283
+
284
+ ___
285
+
286
+ ### metricsEnv
287
+
288
+ • `Optional` **metricsEnv**: undefined \| string
289
+
290
+ Metrics environment (may differ from environment)
291
+
292
+ ___
293
+
294
+ ### preferredLanguages
295
+
296
+ • `Optional` **preferredLanguages**: string[]
297
+
298
+ List of languages from user's preferences
299
+
300
+ ___
301
+
302
+ ### sandbox
303
+
304
+ • `Optional` **sandbox**: [Sandbox](user.sandbox.md)
305
+
306
+ Current Sandbox
307
+
308
+ ___
309
+
310
+ ### shellHeight
311
+
312
+ • **shellHeight**: number
313
+
314
+ Shell Height
315
+
316
+ ___
317
+
318
+ ### shellInfo
319
+
320
+ • `Optional` **shellInfo**: Record<string, any\>
321
+
322
+ Shell Info
323
+
324
+ ___
325
+
326
+ ### shellSideNavCollapsed
327
+
328
+ • `Optional` **shellSideNavCollapsed**: undefined \| false \| true
329
+
330
+ Is Side Nav collapsed?
331
+
332
+ ___
333
+
334
+ ### shellSideNavPresent
335
+
336
+ • **shellSideNavPresent**: boolean
337
+
338
+ Is Side Nav enabled?
339
+
340
+ ___
341
+
342
+ ### shellSideNavWidth
343
+
344
+ • **shellSideNavWidth**: number
345
+
346
+ Side Nav width
347
+
348
+ ___
349
+
350
+ ### spaAppId
351
+
352
+ • `Optional` **spaAppId**: undefined \| string
353
+
354
+ SPA pipeline app id
355
+
356
+ ___
357
+
358
+ ### subOrg
359
+
360
+ • `Optional` **subOrg**: Record<string, any\>
361
+
362
+ Sub Org
363
+
364
+ ___
365
+
366
+ ### tenant
367
+
368
+ • **tenant**: string
369
+
370
+ Tenant ID
371
+
372
+ ___
373
+
374
+ ### tenantAppId
375
+
376
+ • `Optional` **tenantAppId**: undefined \| string
377
+
378
+ **`deprecated`** Solution GraphQL tenantAppId
379
+
380
+ ___
381
+
382
+ ### theme
383
+
384
+ • **theme**: string
385
+
386
+ ___
387
+
388
+ ### xqlGatewayUrl
389
+
390
+ • `Optional` **xqlGatewayUrl**: undefined \| string
391
+
392
+ XQL gateway used for AEP specific queries
@@ -24,11 +24,11 @@ rather cache and recycle them whenever possible.
24
24
 
25
25
  ### get
26
26
 
27
- ▸ **get**(): Promise\<[Session](session.session-1.md)>
27
+ ▸ **get**(): Promise<[Session](session.session-1.md)\>
28
28
 
29
29
  Gets a stored session if one is available.
30
30
 
31
- **Returns:** Promise\<[Session](session.session-1.md)>
31
+ **Returns:** Promise<[Session](session.session-1.md)\>
32
32
 
33
33
  Session object
34
34
 
@@ -36,7 +36,7 @@ ___
36
36
 
37
37
  ### invalidate
38
38
 
39
- ▸ **invalidate**(`session`: [Session](session.session-1.md)): Promise\<void>
39
+ ▸ **invalidate**(`session`: [Session](session.session-1.md)): Promise<void\>
40
40
 
41
41
  Invalidates a session if its current.
42
42
 
@@ -46,13 +46,13 @@ Name | Type |
46
46
  ------ | ------ |
47
47
  `session` | [Session](session.session-1.md) |
48
48
 
49
- **Returns:** Promise\<void>
49
+ **Returns:** Promise<void\>
50
50
 
51
51
  ___
52
52
 
53
53
  ### set
54
54
 
55
- ▸ **set**(`session`: [Session](session.session-1.md)): Promise\<void>
55
+ ▸ **set**(`session`: [Session](session.session-1.md)): Promise<void\>
56
56
 
57
57
  Stores the current session
58
58
 
@@ -62,4 +62,4 @@ Name | Type |
62
62
  ------ | ------ |
63
63
  `session` | [Session](session.session-1.md) |
64
64
 
65
- **Returns:** Promise\<void>
65
+ **Returns:** Promise<void\>
@@ -2,7 +2,7 @@
2
2
 
3
3
  > [Globals](../README.md) / [settings](../modules/settings.md) / Parameters
4
4
 
5
- # Interface: Parameters\<T>
5
+ # Interface: Parameters<T\>
6
6
 
7
7
  The input parameters for the settings API.
8
8
 
@@ -22,7 +22,7 @@ at an IMS user and/or an IMS org level. An app in unified shell can consume Sett
22
22
 
23
23
  ### get
24
24
 
25
- ▸ **get**\<T>(`params`: [Parameters](settings.parameters.md)\<T>): Promise\<[SettingsResponse](settings.settingsresponse.md)\<T>>
25
+ ▸ **get**<T\>(`params`: [Parameters](settings.parameters.md)<T\>): Promise<[SettingsResponse](settings.settingsresponse.md)<T\>\>
26
26
 
27
27
  Gets settings based on the specified parameters such as groupId
28
28
  and settings - keys with default values to fallback.
@@ -37,9 +37,9 @@ Name | Type |
37
37
 
38
38
  Name | Type | Description |
39
39
  ------ | ------ | ------ |
40
- `params` | [Parameters](settings.parameters.md)\<T> | Parameters used to identify settings to retrieve. |
40
+ `params` | [Parameters](settings.parameters.md)<T\> | Parameters used to identify settings to retrieve. |
41
41
 
42
- **Returns:** Promise\<[SettingsResponse](settings.settingsresponse.md)\<T>>
42
+ **Returns:** Promise<[SettingsResponse](settings.settingsresponse.md)<T\>\>
43
43
 
44
44
  A promise for the specified settings.
45
45
 
@@ -47,7 +47,7 @@ ___
47
47
 
48
48
  ### set
49
49
 
50
- ▸ **set**\<T>(`params`: [Parameters](settings.parameters.md)\<T>): Promise\<[SettingsResponse](settings.settingsresponse.md)\<T>>
50
+ ▸ **set**<T\>(`params`: [Parameters](settings.parameters.md)<T\>): Promise<[SettingsResponse](settings.settingsresponse.md)<T\>\>
51
51
 
52
52
  Creates or updates settings based on the specified parameters such as groupId and settings
53
53
  key-value pairs.
@@ -62,8 +62,8 @@ Name | Type |
62
62
 
63
63
  Name | Type | Description |
64
64
  ------ | ------ | ------ |
65
- `params` | [Parameters](settings.parameters.md)\<T> | Parameters to identify the settings to create or update. |
65
+ `params` | [Parameters](settings.parameters.md)<T\> | Parameters to identify the settings to create or update. |
66
66
 
67
- **Returns:** Promise\<[SettingsResponse](settings.settingsresponse.md)\<T>>
67
+ **Returns:** Promise<[SettingsResponse](settings.settingsresponse.md)<T\>\>
68
68
 
69
69
  A promise for the operation response.
@@ -2,7 +2,7 @@
2
2
 
3
3
  > [Globals](../README.md) / [settings](../modules/settings.md) / SettingsResponse
4
4
 
5
- # Interface: SettingsResponse\<T>
5
+ # Interface: SettingsResponse<T\>
6
6
 
7
7
  The response from the settings service.
8
8
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## Hierarchy
8
8
 
9
- * EventEmitter\<ShellInfoEvent>
9
+ * EventEmitter<ShellInfoEvent\>
10
10
 
11
11
  ↳ **ShellApi**
12
12
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  ### emit
28
28
 
29
- ▸ **emit**\<K>(`type`: K, `event?`: ShellInfoEvent[K]): void
29
+ ▸ **emit**<K\>(`type`: K, `event?`: ShellInfoEvent[K]): void
30
30
 
31
31
  *Inherited from void*
32
32
 
@@ -51,7 +51,7 @@ ___
51
51
 
52
52
  ### off
53
53
 
54
- ▸ **off**\<K>(`type`: K, `handler`: (event?: ShellInfoEvent[K]) => void): void
54
+ ▸ **off**<K\>(`type`: K, `handler`: (event?: ShellInfoEvent[K]) => void): void
55
55
 
56
56
  *Inherited from void*
57
57
 
@@ -76,7 +76,7 @@ ___
76
76
 
77
77
  ### on
78
78
 
79
- ▸ **on**\<K>(`type`: K, `handler`: (event?: ShellInfoEvent[K]) => void): void
79
+ ▸ **on**<K\>(`type`: K, `handler`: (event?: ShellInfoEvent[K]) => void): void
80
80
 
81
81
  *Inherited from void*
82
82
 
@@ -103,7 +103,7 @@ ___
103
103
 
104
104
  ### get
105
105
 
106
- ▸ **get**\<T>(`type`: T): Promise\<ShellInfo[T]>
106
+ ▸ **get**<T\>(`type`: T): Promise<ShellInfo[T]\>
107
107
 
108
108
  Gets the specified type of information about the shell.
109
109
 
@@ -119,4 +119,4 @@ Name | Type | Description |
119
119
  ------ | ------ | ------ |
120
120
  `type` | T | The type of information to get. |
121
121
 
122
- **Returns:** Promise\<ShellInfo[T]>
122
+ **Returns:** Promise<ShellInfo[T]\>
@@ -32,4 +32,4 @@ ___
32
32
 
33
33
  ### shellInfo
34
34
 
35
- • **shellInfo**: Record\<string, any>
35
+ • **shellInfo**: Record<string, any\>
@@ -37,7 +37,7 @@ ___
37
37
 
38
38
  ### imsProfile
39
39
 
40
- • `Optional` **imsProfile**: Record\<string, any>
40
+ • `Optional` **imsProfile**: Record<string, any\>
41
41
 
42
42
  ___
43
43
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## Hierarchy
8
8
 
9
- * EventEmitter\<UserInfoEvent>
9
+ * EventEmitter<UserInfoEvent\>
10
10
 
11
11
  ↳ **UserApi**
12
12
 
@@ -50,7 +50,7 @@ If language picker should be opened.
50
50
 
51
51
  ### emit
52
52
 
53
- ▸ **emit**\<K>(`type`: K, `event?`: UserInfoEvent[K]): void
53
+ ▸ **emit**<K\>(`type`: K, `event?`: UserInfoEvent[K]): void
54
54
 
55
55
  *Inherited from void*
56
56
 
@@ -75,7 +75,7 @@ ___
75
75
 
76
76
  ### off
77
77
 
78
- ▸ **off**\<K>(`type`: K, `handler`: (event?: UserInfoEvent[K]) => void): void
78
+ ▸ **off**<K\>(`type`: K, `handler`: (event?: UserInfoEvent[K]) => void): void
79
79
 
80
80
  *Inherited from void*
81
81
 
@@ -100,7 +100,7 @@ ___
100
100
 
101
101
  ### on
102
102
 
103
- ▸ **on**\<K>(`type`: K, `handler`: (event?: UserInfoEvent[K]) => void): void
103
+ ▸ **on**<K\>(`type`: K, `handler`: (event?: UserInfoEvent[K]) => void): void
104
104
 
105
105
  *Inherited from void*
106
106
 
@@ -138,7 +138,7 @@ ___
138
138
 
139
139
  ### get
140
140
 
141
- ▸ **get**\<T>(`type`: T): Promise\<UserInfo[T]>
141
+ ▸ **get**<T\>(`type`: T): Promise<UserInfo[T]\>
142
142
 
143
143
  Gets the specified type of information about an user.
144
144
 
@@ -154,4 +154,4 @@ Name | Type | Description |
154
154
  ------ | ------ | ------ |
155
155
  `type` | T | The type of information to get. |
156
156
 
157
- **Returns:** Promise\<UserInfo[T]>
157
+ **Returns:** Promise<UserInfo[T]\>
@@ -54,7 +54,7 @@ ___
54
54
 
55
55
  ### imsProfile
56
56
 
57
- • **imsProfile**: Record\<string, any>
57
+ • **imsProfile**: Record<string, any\>
58
58
 
59
59
  ___
60
60
 
@@ -84,7 +84,7 @@ ___
84
84
 
85
85
  ### sandboxes
86
86
 
87
- • **sandboxes**: Array\<[Sandbox](user.sandbox.md)>
87
+ • **sandboxes**: Array<[Sandbox](user.sandbox.md)\>
88
88
 
89
89
  ___
90
90
 
@@ -4,14 +4,45 @@
4
4
 
5
5
  # Module: metrics
6
6
 
7
- Copyright 2020 Adobe
8
- All Rights Reserved.
9
-
10
- NOTICE: Adobe permits you to use, modify, and distribute this file in
11
- accordance with the terms of the Adobe license agreement accompanying
12
- it. If you have received this file from a source other than Adobe,
13
- then your use, modification, or distribution of it requires the prior
14
- written permission of Adobe.
7
+ API used to log messages, errors, events, metrics and analytics that get pushed to our telemetry
8
+ system.
9
+
10
+ The main goal of this project is to provide solutions that are integrating with Unified-Shell and
11
+ running on Adobe Experience Cloud as much telemetry information as possible "for free" and a
12
+ convenient integration option to collect custom, application specific metrics.
13
+
14
+ ***Import:***
15
+
16
+ ```typescript
17
+ import metrics from '@adobe/exc-app/metrics';
18
+ ```
19
+
20
+ ***Type:***
21
+
22
+ [MetricsApi](../interfaces/metrics.metricsapi.md#interface-metricsapi)
23
+
24
+ ***Usage:***
25
+
26
+ ```typescript
27
+ import metrics from '@adobe/exc-app/metrics';
28
+
29
+ class MyClass {
30
+ constructor() {
31
+ this.metrics = metrics.create('exc.landing-page.recents');
32
+ }
33
+
34
+ async someOperation() {
35
+ const timer = this.metrics.start('MyClass.someOperation');
36
+ try {
37
+ await performOperation();
38
+ timer.time('done');
39
+ } catch(err) {
40
+ this.metrics.error(error);
41
+ throw err;
42
+ }
43
+ }
44
+ }
45
+ ```
15
46
 
16
47
  ## Index
17
48