@ms-cloudpack/common-types-browser 0.5.3 → 0.5.4

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 (2) hide show
  1. package/index.d.ts +14 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,17 @@
1
1
  export {}; // Make this a module
2
2
 
3
+ /** Client and server side object for Cloudpack to detect app-specific page load time entry */
4
+ export interface PageLoadTimePerformanceEntry {
5
+ /** The name of the performance mark/measure to query. */
6
+ name: string;
7
+ /** The type of performance entry to query.
8
+ * @default 'mark' */
9
+ type?: 'mark' | 'measure';
10
+ /** The maximum time in milliseconds to wait for the performance mark to be set.
11
+ * @default 5 mins */
12
+ timeout?: number;
13
+ }
14
+
3
15
  /** Client-side context object for a Cloudpack session, used for API requests and telemetry. */
4
16
  export interface PageSessionContext {
5
17
  /** UUID for the current session */
@@ -12,6 +24,8 @@ export interface PageSessionContext {
12
24
  bundleServerUrl: string;
13
25
  /** Requested URL */
14
26
  requestPath: string;
27
+ /** Cloudpack will query this performance entry to determine the page load time. */
28
+ pageLoadTimePerformanceEntry?: PageLoadTimePerformanceEntry;
15
29
  }
16
30
 
17
31
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types-browser",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Types for Cloudpack browser globals.",
5
5
  "license": "MIT",
6
6
  "types": "index.d.ts",