@microsoft/applicationinsights-common 3.0.5 → 3.0.6-nightly3.2311-02
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.
- package/browser/es5/applicationinsights-common.cjs.js +358 -14
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.js +360 -16
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.integrity.json +25 -25
- package/browser/es5/applicationinsights-common.js +360 -16
- package/browser/es5/applicationinsights-common.js.map +1 -1
- package/browser/es5/applicationinsights-common.min.js +2 -2
- package/browser/es5/applicationinsights-common.min.js.map +1 -1
- package/dist/es5/applicationinsights-common.js +358 -14
- package/dist/es5/applicationinsights-common.js.map +1 -1
- package/dist/es5/applicationinsights-common.min.js +2 -2
- package/dist/es5/applicationinsights-common.min.js.map +1 -1
- package/dist-es5/ConnectionStringParser.js +1 -1
- package/dist-es5/Constants.js +1 -1
- package/dist-es5/DomHelperFuncs.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +1 -1
- package/dist-es5/Interfaces/Context/IApplication.js +1 -1
- package/dist-es5/Interfaces/Context/IDevice.js +1 -1
- package/dist-es5/Interfaces/Context/IInternal.js +1 -1
- package/dist-es5/Interfaces/Context/ILocation.js +1 -1
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-es5/Interfaces/Context/ISample.js +1 -1
- package/dist-es5/Interfaces/Context/ISession.js +1 -1
- package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-es5/Interfaces/Context/IUser.js +1 -1
- package/dist-es5/Interfaces/Context/IWeb.js +1 -1
- package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
- package/dist-es5/Interfaces/Contracts/IData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +1 -1
- package/dist-es5/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
- package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPartC.js +1 -1
- package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-es5/Interfaces/IRequestContext.js +1 -1
- package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
- package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
- package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-es5/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-es5/Offline.js +138 -0
- package/dist-es5/Offline.js.map +1 -0
- package/dist-es5/RequestResponseHeaders.js +1 -1
- package/dist-es5/StorageHelperFuncs.js +3 -3
- package/dist-es5/StorageHelperFuncs.js.map +1 -1
- package/dist-es5/Telemetry/Common/Data.js +1 -1
- package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
- package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-es5/Telemetry/Common/Envelope.js +1 -1
- package/dist-es5/Telemetry/Event.js +1 -1
- package/dist-es5/Telemetry/Exception.js +4 -4
- package/dist-es5/Telemetry/Exception.js.map +1 -1
- package/dist-es5/Telemetry/Metric.js +1 -1
- package/dist-es5/Telemetry/PageView.js +1 -1
- package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
- package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-es5/Telemetry/Trace.js +1 -1
- package/dist-es5/TelemetryItemCreator.js +1 -1
- package/dist-es5/ThrottleMgr.js +3 -3
- package/dist-es5/ThrottleMgr.js.map +1 -1
- package/dist-es5/UrlHelperFuncs.js +1 -1
- package/dist-es5/Util.js +1 -1
- package/dist-es5/__DynamicConstants.js +2 -1
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/applicationinsights-common.js +2 -1
- package/dist-es5/applicationinsights-common.js.map +1 -1
- package/package.json +66 -63
- package/types/applicationinsights-common.d.ts +42 -1
- package/types/applicationinsights-common.namespaced.d.ts +42 -1
package/package.json
CHANGED
|
@@ -1,63 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-common",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
-
"author": "Microsoft Application Insights Team",
|
|
7
|
-
"main": "dist/es5/applicationinsights-common.js",
|
|
8
|
-
"module": "dist-es5/applicationinsights-common.js",
|
|
9
|
-
"types": "types/applicationinsights-common.d.ts",
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"clean": "git clean -xdf",
|
|
17
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
-
"build:esm": "grunt common",
|
|
19
|
-
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
-
"rebuild": "npm run build",
|
|
21
|
-
"test": "grunt commontest",
|
|
22
|
-
"mintest": "grunt common-mintest",
|
|
23
|
-
"lint": "tslint -p tsconfig.json",
|
|
24
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
25
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
-
"ai-min": "grunt common-min",
|
|
27
|
-
"ai-restore": "grunt common-restore",
|
|
28
|
-
"npm-pack": "npm pack",
|
|
29
|
-
"api-docs": "typedoc"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
-
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
-
"@microsoft/api-extractor": "^7.18.19",
|
|
36
|
-
"grunt": "^1.5.3",
|
|
37
|
-
"grunt-cli": "^1.4.3",
|
|
38
|
-
"grunt-contrib-qunit": "^6.2.1",
|
|
39
|
-
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
40
|
-
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
41
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
42
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
43
|
-
"@rollup/plugin-replace": "^5.0.2",
|
|
44
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
45
|
-
"rollup": "^3.20.0",
|
|
46
|
-
"typescript": "^4.9.3",
|
|
47
|
-
"tslib": "^2.0.0",
|
|
48
|
-
"typedoc": "^0.24.8",
|
|
49
|
-
"globby": "^11.0.0",
|
|
50
|
-
"magic-string": "^0.25.7",
|
|
51
|
-
"sinon": "^7.3.1"
|
|
52
|
-
},
|
|
53
|
-
"peerDependencies": {
|
|
54
|
-
"tslib": "*"
|
|
55
|
-
},
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
58
|
-
"@microsoft/applicationinsights-core-js": "3.0.
|
|
59
|
-
"@microsoft/dynamicproto-js": "^2.0.2",
|
|
60
|
-
"@nevware21/ts-utils": ">= 0.10.1 < 2.x"
|
|
61
|
-
},
|
|
62
|
-
"license": "MIT"
|
|
63
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-common",
|
|
3
|
+
"version": "3.0.6-nightly3.2311-02",
|
|
4
|
+
"description": "Microsoft Application Insights Common JavaScript Library",
|
|
5
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
+
"author": "Microsoft Application Insights Team",
|
|
7
|
+
"main": "dist/es5/applicationinsights-common.js",
|
|
8
|
+
"module": "dist-es5/applicationinsights-common.js",
|
|
9
|
+
"types": "types/applicationinsights-common.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"clean": "git clean -xdf",
|
|
17
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
+
"build:esm": "grunt common",
|
|
19
|
+
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
+
"rebuild": "npm run build",
|
|
21
|
+
"test": "grunt commontest",
|
|
22
|
+
"mintest": "grunt common-mintest",
|
|
23
|
+
"lint": "tslint -p tsconfig.json",
|
|
24
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
|
|
25
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
+
"ai-min": "grunt common-min",
|
|
27
|
+
"ai-restore": "grunt common-restore",
|
|
28
|
+
"npm-pack": "npm pack",
|
|
29
|
+
"api-docs": "typedoc"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
+
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
36
|
+
"grunt": "^1.5.3",
|
|
37
|
+
"grunt-cli": "^1.4.3",
|
|
38
|
+
"grunt-contrib-qunit": "^6.2.1",
|
|
39
|
+
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
40
|
+
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
41
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
43
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
44
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
45
|
+
"rollup": "^3.20.0",
|
|
46
|
+
"typescript": "^4.9.3",
|
|
47
|
+
"tslib": "^2.0.0",
|
|
48
|
+
"typedoc": "^0.24.8",
|
|
49
|
+
"globby": "^11.0.0",
|
|
50
|
+
"magic-string": "^0.25.7",
|
|
51
|
+
"sinon": "^7.3.1"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"tslib": "*"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
58
|
+
"@microsoft/applicationinsights-core-js": "3.0.6-nightly3.2311-02",
|
|
59
|
+
"@microsoft/dynamicproto-js": "^2.0.2",
|
|
60
|
+
"@nevware21/ts-utils": ">= 0.10.1 < 2.x"
|
|
61
|
+
},
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"tag": "nightly3"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.0.
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.0.6-nightly3.2311-02
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -32,6 +32,7 @@ import { isValidTraceId } from '@microsoft/applicationinsights-core-js';
|
|
|
32
32
|
import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
33
33
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
34
34
|
import { ITraceParent } from '@microsoft/applicationinsights-core-js';
|
|
35
|
+
import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
|
|
35
36
|
import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
36
37
|
|
|
37
38
|
/**
|
|
@@ -115,6 +116,12 @@ export declare function createDistributedTraceContextFromTrace(telemetryTrace?:
|
|
|
115
116
|
|
|
116
117
|
export declare function createDomEvent(eventName: string): Event;
|
|
117
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Create a new OfflineListener instance to monitor browser online / offline events
|
|
121
|
+
* @param parentEvtNamespace - The parent event namespace to append to any specific events for this instance
|
|
122
|
+
*/
|
|
123
|
+
export declare function createOfflineListener(parentEvtNamespace?: string | string[]): IOfflineListener;
|
|
124
|
+
|
|
118
125
|
/**
|
|
119
126
|
* Create a telemetry item that the 1DS channel understands
|
|
120
127
|
* @param item - domain specific properties; part B
|
|
@@ -338,6 +345,15 @@ export declare class Envelope implements IEnvelope {
|
|
|
338
345
|
constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
|
|
339
346
|
}
|
|
340
347
|
|
|
348
|
+
/**
|
|
349
|
+
* This is the enum for the different network states current ai is experiencing
|
|
350
|
+
*/
|
|
351
|
+
export declare const enum eOfflineValue {
|
|
352
|
+
Unknown = 0,
|
|
353
|
+
Online = 1,
|
|
354
|
+
Offline = 2
|
|
355
|
+
}
|
|
356
|
+
|
|
341
357
|
export declare const enum eRequestHeaders {
|
|
342
358
|
requestContextHeader = 0,
|
|
343
359
|
requestContextTargetKey = 1,
|
|
@@ -1526,6 +1542,25 @@ export declare interface IMetricTelemetry extends IPartC {
|
|
|
1526
1542
|
iKey?: string;
|
|
1527
1543
|
}
|
|
1528
1544
|
|
|
1545
|
+
export declare interface IOfflineListener {
|
|
1546
|
+
isOnline: () => boolean;
|
|
1547
|
+
isListening: () => boolean;
|
|
1548
|
+
unload: () => void;
|
|
1549
|
+
addListener: (callback: OfflineCallback) => IUnloadHook;
|
|
1550
|
+
setOnlineState: (uState: eOfflineValue) => void;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* This is the interface for the Offline state
|
|
1555
|
+
* runtime state is retrieved from the browser state
|
|
1556
|
+
* user state is set by the user
|
|
1557
|
+
*/
|
|
1558
|
+
export declare interface IOfflineState {
|
|
1559
|
+
readonly isOnline: boolean;
|
|
1560
|
+
readonly rState: eOfflineValue;
|
|
1561
|
+
readonly uState: eOfflineValue;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1529
1564
|
export declare interface IOperatingSystem {
|
|
1530
1565
|
name: string;
|
|
1531
1566
|
}
|
|
@@ -2223,6 +2258,12 @@ export declare class Metric implements IMetricData, ISerializable {
|
|
|
2223
2258
|
*/
|
|
2224
2259
|
export declare function msToTimeSpan(totalms: number): string;
|
|
2225
2260
|
|
|
2261
|
+
/**
|
|
2262
|
+
* this is the callback that will be called when the network status changes
|
|
2263
|
+
* @param onlineState this is the current network running state
|
|
2264
|
+
*/
|
|
2265
|
+
export declare type OfflineCallback = (onlineState: IOfflineState) => void;
|
|
2266
|
+
|
|
2226
2267
|
export declare class PageView implements IPageViewData, ISerializable {
|
|
2227
2268
|
static envelopeType: string;
|
|
2228
2269
|
static dataType: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.0.
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.0.6-nightly3.2311-02
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -27,6 +27,7 @@ declare namespace ApplicationInsights {
|
|
|
27
27
|
import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
28
28
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
29
29
|
import { ITraceParent } from '@microsoft/applicationinsights-core-js';
|
|
30
|
+
import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
|
|
30
31
|
import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
|
|
31
32
|
|
|
32
33
|
/**
|
|
@@ -110,6 +111,12 @@ declare namespace ApplicationInsights {
|
|
|
110
111
|
|
|
111
112
|
function createDomEvent(eventName: string): Event;
|
|
112
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Create a new OfflineListener instance to monitor browser online / offline events
|
|
116
|
+
* @param parentEvtNamespace - The parent event namespace to append to any specific events for this instance
|
|
117
|
+
*/
|
|
118
|
+
function createOfflineListener(parentEvtNamespace?: string | string[]): IOfflineListener;
|
|
119
|
+
|
|
113
120
|
/**
|
|
114
121
|
* Create a telemetry item that the 1DS channel understands
|
|
115
122
|
* @param item - domain specific properties; part B
|
|
@@ -333,6 +340,15 @@ declare namespace ApplicationInsights {
|
|
|
333
340
|
constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
|
|
334
341
|
}
|
|
335
342
|
|
|
343
|
+
/**
|
|
344
|
+
* This is the enum for the different network states current ai is experiencing
|
|
345
|
+
*/
|
|
346
|
+
const enum eOfflineValue {
|
|
347
|
+
Unknown = 0,
|
|
348
|
+
Online = 1,
|
|
349
|
+
Offline = 2
|
|
350
|
+
}
|
|
351
|
+
|
|
336
352
|
const enum eRequestHeaders {
|
|
337
353
|
requestContextHeader = 0,
|
|
338
354
|
requestContextTargetKey = 1,
|
|
@@ -1521,6 +1537,25 @@ declare namespace ApplicationInsights {
|
|
|
1521
1537
|
iKey?: string;
|
|
1522
1538
|
}
|
|
1523
1539
|
|
|
1540
|
+
interface IOfflineListener {
|
|
1541
|
+
isOnline: () => boolean;
|
|
1542
|
+
isListening: () => boolean;
|
|
1543
|
+
unload: () => void;
|
|
1544
|
+
addListener: (callback: OfflineCallback) => IUnloadHook;
|
|
1545
|
+
setOnlineState: (uState: eOfflineValue) => void;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* This is the interface for the Offline state
|
|
1550
|
+
* runtime state is retrieved from the browser state
|
|
1551
|
+
* user state is set by the user
|
|
1552
|
+
*/
|
|
1553
|
+
interface IOfflineState {
|
|
1554
|
+
readonly isOnline: boolean;
|
|
1555
|
+
readonly rState: eOfflineValue;
|
|
1556
|
+
readonly uState: eOfflineValue;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1524
1559
|
interface IOperatingSystem {
|
|
1525
1560
|
name: string;
|
|
1526
1561
|
}
|
|
@@ -2218,6 +2253,12 @@ declare namespace ApplicationInsights {
|
|
|
2218
2253
|
*/
|
|
2219
2254
|
function msToTimeSpan(totalms: number): string;
|
|
2220
2255
|
|
|
2256
|
+
/**
|
|
2257
|
+
* this is the callback that will be called when the network status changes
|
|
2258
|
+
* @param onlineState this is the current network running state
|
|
2259
|
+
*/
|
|
2260
|
+
type OfflineCallback = (onlineState: IOfflineState) => void;
|
|
2261
|
+
|
|
2221
2262
|
class PageView implements IPageViewData, ISerializable {
|
|
2222
2263
|
static envelopeType: string;
|
|
2223
2264
|
static dataType: string;
|