@microsoft/1ds-core-js 3.2.11 → 4.0.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.
Files changed (95) hide show
  1. package/README.md +1 -1
  2. package/bundle/es5/ms.core-4.0.0.gbl.js +6221 -0
  3. package/bundle/es5/ms.core-4.0.0.gbl.js.map +1 -0
  4. package/bundle/es5/ms.core-4.0.0.gbl.min.js +7 -0
  5. package/bundle/es5/ms.core-4.0.0.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.core-4.0.0.integrity.json +46 -0
  7. package/bundle/es5/ms.core-4.0.0.js +6225 -0
  8. package/bundle/es5/ms.core-4.0.0.js.map +1 -0
  9. package/bundle/es5/ms.core-4.0.0.min.js +7 -0
  10. package/bundle/es5/ms.core-4.0.0.min.js.map +1 -0
  11. package/bundle/es5/ms.core.gbl.js +6221 -0
  12. package/bundle/es5/ms.core.gbl.js.map +1 -0
  13. package/bundle/es5/ms.core.gbl.min.js +7 -0
  14. package/bundle/es5/ms.core.gbl.min.js.map +1 -0
  15. package/bundle/es5/ms.core.integrity.json +46 -0
  16. package/bundle/es5/ms.core.js +6225 -0
  17. package/bundle/es5/ms.core.js.map +1 -0
  18. package/bundle/es5/ms.core.min.js +7 -0
  19. package/bundle/es5/ms.core.min.js.map +1 -0
  20. package/{bundle → dist/es5}/ms.core.js +3790 -2967
  21. package/dist/es5/ms.core.js.map +1 -0
  22. package/dist/es5/ms.core.min.js +7 -0
  23. package/dist/es5/ms.core.min.js.map +1 -0
  24. package/dist-es5/AppInsightsCore.js +91 -0
  25. package/dist-es5/AppInsightsCore.js.map +1 -0
  26. package/{dist-esm/src → dist-es5}/BaseCore.js +18 -11
  27. package/dist-es5/BaseCore.js.map +1 -0
  28. package/{dist-esm/src → dist-es5}/DataModels.js +1 -1
  29. package/{dist-esm/src → dist-es5}/Enums.js +3 -26
  30. package/dist-es5/Enums.js.map +1 -0
  31. package/{dist-esm/src → dist-es5}/Index.js +9 -14
  32. package/dist-es5/Index.js.map +1 -0
  33. package/{dist-esm/src → dist-es5}/InternalConstants.js +1 -3
  34. package/{dist-esm/src → dist-es5}/InternalConstants.js.map +1 -1
  35. package/{dist-esm/src → dist-es5}/Utils.js +19 -144
  36. package/dist-es5/Utils.js.map +1 -0
  37. package/{dist-esm/src → dist-es5}/ValueSanitizer.js +39 -3
  38. package/dist-es5/ValueSanitizer.js.map +1 -0
  39. package/package.json +16 -9
  40. package/tsconfig.json +5 -3
  41. package/types/1ds-core-js.d.ts +1106 -0
  42. package/types/1ds-core-js.namespaced.d.ts +1102 -0
  43. package/bundle/ms.core-3.2.11.gbl.js +0 -5378
  44. package/bundle/ms.core-3.2.11.gbl.js.map +0 -1
  45. package/bundle/ms.core-3.2.11.gbl.min.js +0 -7
  46. package/bundle/ms.core-3.2.11.gbl.min.js.map +0 -1
  47. package/bundle/ms.core-3.2.11.integrity.json +0 -46
  48. package/bundle/ms.core-3.2.11.js +0 -5381
  49. package/bundle/ms.core-3.2.11.js.map +0 -1
  50. package/bundle/ms.core-3.2.11.min.js +0 -7
  51. package/bundle/ms.core-3.2.11.min.js.map +0 -1
  52. package/bundle/ms.core.gbl.js +0 -5378
  53. package/bundle/ms.core.gbl.js.map +0 -1
  54. package/bundle/ms.core.gbl.min.js +0 -7
  55. package/bundle/ms.core.gbl.min.js.map +0 -1
  56. package/bundle/ms.core.integrity.json +0 -46
  57. package/bundle/ms.core.js.map +0 -1
  58. package/bundle/ms.core.min.js +0 -7
  59. package/bundle/ms.core.min.js.map +0 -1
  60. package/dist/ms.core.js +0 -1305
  61. package/dist/ms.core.js.map +0 -1
  62. package/dist/ms.core.min.js +0 -7
  63. package/dist/ms.core.min.js.map +0 -1
  64. package/dist-esm/src/AppInsightsCore.d.ts +0 -15
  65. package/dist-esm/src/AppInsightsCore.js +0 -114
  66. package/dist-esm/src/AppInsightsCore.js.map +0 -1
  67. package/dist-esm/src/BaseCore.d.ts +0 -13
  68. package/dist-esm/src/BaseCore.js.map +0 -1
  69. package/dist-esm/src/DataModels.d.ts +0 -273
  70. package/dist-esm/src/ESPromise.d.ts +0 -110
  71. package/dist-esm/src/ESPromise.js +0 -286
  72. package/dist-esm/src/ESPromise.js.map +0 -1
  73. package/dist-esm/src/ESPromiseScheduler.d.ts +0 -36
  74. package/dist-esm/src/ESPromiseScheduler.js +0 -274
  75. package/dist-esm/src/ESPromiseScheduler.js.map +0 -1
  76. package/dist-esm/src/Enums.d.ts +0 -356
  77. package/dist-esm/src/Enums.js.map +0 -1
  78. package/dist-esm/src/Index.d.ts +0 -19
  79. package/dist-esm/src/Index.js.map +0 -1
  80. package/dist-esm/src/InternalConstants.d.ts +0 -6
  81. package/dist-esm/src/Utils.d.ts +0 -190
  82. package/dist-esm/src/Utils.js.map +0 -1
  83. package/dist-esm/src/ValueSanitizer.d.ts +0 -40
  84. package/dist-esm/src/ValueSanitizer.js.map +0 -1
  85. package/src/AppInsightsCore.ts +0 -135
  86. package/src/BaseCore.ts +0 -72
  87. package/src/DataModels.ts +0 -297
  88. package/src/ESPromise.ts +0 -365
  89. package/src/ESPromiseScheduler.ts +0 -328
  90. package/src/Enums.ts +0 -386
  91. package/src/Index.ts +0 -81
  92. package/src/InternalConstants.ts +0 -16
  93. package/src/Utils.ts +0 -565
  94. package/src/ValueSanitizer.ts +0 -285
  95. /package/{dist-esm/src → dist-es5}/DataModels.js.map +0 -0
@@ -0,0 +1,1106 @@
1
+ /*
2
+ * 1DS JS SDK Core, 4.0.0
3
+ * Copyright (c) Microsoft and contributors. All rights reserved.
4
+ *
5
+ * Javascript Telemetry SDKs <TelReachSDK@microsoft.com>
6
+ * https://1dsdocs.azurewebsites.net/sdk.html
7
+ *
8
+ * ---------------------------------------------------------------------------
9
+ * This is a single combined (rollup) declaration file for the package,
10
+ * if you require a namespace wrapped version it is also available.
11
+ * - Namespaced version: types/1ds-core-js.namespaced.d.ts
12
+ * ---------------------------------------------------------------------------
13
+ */
14
+
15
+ import { __getRegisteredEvents } from '@microsoft/applicationinsights-core-js';
16
+ import { addEventHandler } from '@microsoft/applicationinsights-core-js';
17
+ import { addEventListeners } from '@microsoft/applicationinsights-core-js';
18
+ import { addPageHideEventListener } from '@microsoft/applicationinsights-core-js';
19
+ import { addPageShowEventListener } from '@microsoft/applicationinsights-core-js';
20
+ import { addPageUnloadEventListener } from '@microsoft/applicationinsights-core-js';
21
+ import { areCookiesSupported } from '@microsoft/applicationinsights-core-js';
22
+ import { arrForEach } from '@microsoft/applicationinsights-core-js';
23
+ import { arrIndexOf } from '@microsoft/applicationinsights-core-js';
24
+ import { arrMap } from '@microsoft/applicationinsights-core-js';
25
+ import { arrReduce } from '@microsoft/applicationinsights-core-js';
26
+ import { attachEvent } from '@microsoft/applicationinsights-core-js';
27
+ import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
28
+ import { blockDynamicConversion } from '@microsoft/applicationinsights-core-js';
29
+ import { createCookieMgr } from '@microsoft/applicationinsights-core-js';
30
+ import { createDynamicConfig } from '@microsoft/applicationinsights-core-js';
31
+ import { createEnumStyle } from '@microsoft/applicationinsights-core-js';
32
+ import { createProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
33
+ import { createTraceParent } from '@microsoft/applicationinsights-core-js';
34
+ import { createUniqueNamespace } from '@microsoft/applicationinsights-core-js';
35
+ import { createUnloadHandlerContainer } from '@microsoft/applicationinsights-core-js';
36
+ import { dateNow } from '@microsoft/applicationinsights-core-js';
37
+ import { detachEvent } from '@microsoft/applicationinsights-core-js';
38
+ import { DiagnosticLogger } from '@microsoft/applicationinsights-core-js';
39
+ import { uaDisallowsSameSiteNone as disallowsSameSiteNone } from '@microsoft/applicationinsights-core-js';
40
+ import { doPerf } from '@microsoft/applicationinsights-core-js';
41
+ import { dumpObj } from '@microsoft/applicationinsights-core-js';
42
+ import { _eInternalMessageId } from '@microsoft/applicationinsights-core-js';
43
+ import { eLoggingSeverity } from '@microsoft/applicationinsights-core-js';
44
+ import { EnumValue } from '@microsoft/applicationinsights-core-js';
45
+ import { eventOff } from '@microsoft/applicationinsights-core-js';
46
+ import { eventOn } from '@microsoft/applicationinsights-core-js';
47
+ import { EventsDiscardedReason } from '@microsoft/applicationinsights-core-js';
48
+ import { findW3cTraceParent } from '@microsoft/applicationinsights-core-js';
49
+ import { forceDynamicConversion } from '@microsoft/applicationinsights-core-js';
50
+ import { formatTraceParent } from '@microsoft/applicationinsights-core-js';
51
+ import { generateW3CId } from '@microsoft/applicationinsights-core-js';
52
+ import { getConsole } from '@microsoft/applicationinsights-core-js';
53
+ import { getCrypto } from '@microsoft/applicationinsights-core-js';
54
+ import { getDocument } from '@microsoft/applicationinsights-core-js';
55
+ import { getDynamicConfigHandler } from '@microsoft/applicationinsights-core-js';
56
+ import { getExceptionName } from '@microsoft/applicationinsights-core-js';
57
+ import { getGlobal } from '@microsoft/applicationinsights-core-js';
58
+ import { getGlobalInst } from '@microsoft/applicationinsights-core-js';
59
+ import { getHistory } from '@microsoft/applicationinsights-core-js';
60
+ import { getIEVersion } from '@microsoft/applicationinsights-core-js';
61
+ import { getJSON } from '@microsoft/applicationinsights-core-js';
62
+ import { getLocation } from '@microsoft/applicationinsights-core-js';
63
+ import { getMsCrypto } from '@microsoft/applicationinsights-core-js';
64
+ import { getNavigator } from '@microsoft/applicationinsights-core-js';
65
+ import { getPerformance } from '@microsoft/applicationinsights-core-js';
66
+ import { getSetValue } from '@microsoft/applicationinsights-core-js';
67
+ import { getWindow } from '@microsoft/applicationinsights-core-js';
68
+ import { hasDocument } from '@microsoft/applicationinsights-core-js';
69
+ import { hasHistory } from '@microsoft/applicationinsights-core-js';
70
+ import { hasJSON } from '@microsoft/applicationinsights-core-js';
71
+ import { hasNavigator } from '@microsoft/applicationinsights-core-js';
72
+ import { hasOwnProperty } from '@microsoft/applicationinsights-core-js';
73
+ import { hasWindow } from '@microsoft/applicationinsights-core-js';
74
+ import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
75
+ import { IChannelControls } from '@microsoft/applicationinsights-core-js';
76
+ import { IConfigCheckFn } from '@microsoft/applicationinsights-core-js';
77
+ import { IConfigDefaultCheck } from '@microsoft/applicationinsights-core-js';
78
+ import { IConfigDefaults } from '@microsoft/applicationinsights-core-js';
79
+ import { IConfigSetFn } from '@microsoft/applicationinsights-core-js';
80
+ import { IConfiguration } from '@microsoft/applicationinsights-core-js';
81
+ import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
82
+ import { ICookieMgrConfig } from '@microsoft/applicationinsights-core-js';
83
+ import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
84
+ import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
85
+ import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
86
+ import { IDynamicConfigHandler } from '@microsoft/applicationinsights-core-js';
87
+ import { IDynamicPropertyHandler } from '@microsoft/applicationinsights-core-js';
88
+ import { ILegacyUnloadHook } from '@microsoft/applicationinsights-core-js';
89
+ import { INotificationListener } from '@microsoft/applicationinsights-core-js';
90
+ import { INotificationManager } from '@microsoft/applicationinsights-core-js';
91
+ import { AppInsightsCore as InternalAppInsightsCore } from '@microsoft/applicationinsights-core-js';
92
+ import { _InternalLogMessage } from '@microsoft/applicationinsights-core-js';
93
+ import { _InternalMessageId } from '@microsoft/applicationinsights-core-js';
94
+ import { IPerfEvent } from '@microsoft/applicationinsights-core-js';
95
+ import { IPerfManager } from '@microsoft/applicationinsights-core-js';
96
+ import { IPerfManagerProvider } from '@microsoft/applicationinsights-core-js';
97
+ import { IPlugin } from '@microsoft/applicationinsights-core-js';
98
+ import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
99
+ import { IProcessTelemetryUnloadContext } from '@microsoft/applicationinsights-core-js';
100
+ import { _IRegisteredEvents } from '@microsoft/applicationinsights-core-js';
101
+ import { isArray } from '@microsoft/applicationinsights-core-js';
102
+ import { isBeaconsSupported } from '@microsoft/applicationinsights-core-js';
103
+ import { isBoolean } from '@microsoft/applicationinsights-core-js';
104
+ import { isDate } from '@microsoft/applicationinsights-core-js';
105
+ import { isError } from '@microsoft/applicationinsights-core-js';
106
+ import { isFetchSupported } from '@microsoft/applicationinsights-core-js';
107
+ import { isFunction } from '@microsoft/applicationinsights-core-js';
108
+ import { isIE } from '@microsoft/applicationinsights-core-js';
109
+ import { isNotTruthy } from '@microsoft/applicationinsights-core-js';
110
+ import { isNullOrUndefined } from '@microsoft/applicationinsights-core-js';
111
+ import { isNumber } from '@microsoft/applicationinsights-core-js';
112
+ import { isObject } from '@microsoft/applicationinsights-core-js';
113
+ import { isReactNative } from '@microsoft/applicationinsights-core-js';
114
+ import { isSampledFlag } from '@microsoft/applicationinsights-core-js';
115
+ import { isString } from '@microsoft/applicationinsights-core-js';
116
+ import { isTruthy } from '@microsoft/applicationinsights-core-js';
117
+ import { isTypeof } from '@microsoft/applicationinsights-core-js';
118
+ import { isUndefined } from '@microsoft/applicationinsights-core-js';
119
+ import { isValidSpanId } from '@microsoft/applicationinsights-core-js';
120
+ import { isValidTraceId } from '@microsoft/applicationinsights-core-js';
121
+ import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
122
+ import { isXhrSupported } from '@microsoft/applicationinsights-core-js';
123
+ import { ITelemetryInitializerContainer } from '@microsoft/applicationinsights-core-js';
124
+ import { ITelemetryInitializerHandler } from '@microsoft/applicationinsights-core-js';
125
+ import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
126
+ import { ITelemetryPlugin } from '@microsoft/applicationinsights-core-js';
127
+ import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
128
+ import { ITelemetryUnloadState } from '@microsoft/applicationinsights-core-js';
129
+ import { ITelemetryUpdateState } from '@microsoft/applicationinsights-core-js';
130
+ import { ITimerHandler } from '@nevware21/ts-utils';
131
+ import { IUnloadableComponent } from '@microsoft/applicationinsights-core-js';
132
+ import { IUnloadHandlerContainer } from '@microsoft/applicationinsights-core-js';
133
+ import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
134
+ import { IUnloadHookContainer } from '@microsoft/applicationinsights-core-js';
135
+ import { IWatchDetails } from '@microsoft/applicationinsights-core-js';
136
+ import { IWatcherHandler } from '@microsoft/applicationinsights-core-js';
137
+ import { LoggingSeverity } from '@microsoft/applicationinsights-core-js';
138
+ import { _logInternalMessage } from '@microsoft/applicationinsights-core-js';
139
+ import { mergeEvtNamespace } from '@microsoft/applicationinsights-core-js';
140
+ import { MinChannelPriorty } from '@microsoft/applicationinsights-core-js';
141
+ import { newGuid } from '@microsoft/applicationinsights-core-js';
142
+ import { newId } from '@microsoft/applicationinsights-core-js';
143
+ import { normalizeJsName } from '@microsoft/applicationinsights-core-js';
144
+ import { NotificationManager } from '@microsoft/applicationinsights-core-js';
145
+ import { objDefineAccessors } from '@microsoft/applicationinsights-core-js';
146
+ import { objForEachKey } from '@microsoft/applicationinsights-core-js';
147
+ import { objFreeze } from '@microsoft/applicationinsights-core-js';
148
+ import { objKeys } from '@microsoft/applicationinsights-core-js';
149
+ import { objSeal } from '@microsoft/applicationinsights-core-js';
150
+ import { onConfigChange } from '@microsoft/applicationinsights-core-js';
151
+ import { optimizeObject } from '@microsoft/applicationinsights-core-js';
152
+ import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
153
+ import { PerfEvent } from '@microsoft/applicationinsights-core-js';
154
+ import { PerfManager } from '@microsoft/applicationinsights-core-js';
155
+ import { perfNow } from '@microsoft/applicationinsights-core-js';
156
+ import { ProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
157
+ import { proxyAssign } from '@microsoft/applicationinsights-core-js';
158
+ import { proxyFunctionAs } from '@microsoft/applicationinsights-core-js';
159
+ import { proxyFunctions } from '@microsoft/applicationinsights-core-js';
160
+ import { random32 } from '@microsoft/applicationinsights-core-js';
161
+ import { randomValue } from '@microsoft/applicationinsights-core-js';
162
+ import { removeEventHandler } from '@microsoft/applicationinsights-core-js';
163
+ import { removeEventListeners } from '@microsoft/applicationinsights-core-js';
164
+ import { removePageHideEventListener } from '@microsoft/applicationinsights-core-js';
165
+ import { removePageShowEventListener } from '@microsoft/applicationinsights-core-js';
166
+ import { removePageUnloadEventListener } from '@microsoft/applicationinsights-core-js';
167
+ import { safeGetCookieMgr } from '@microsoft/applicationinsights-core-js';
168
+ import { safeGetLogger } from '@microsoft/applicationinsights-core-js';
169
+ import { SendRequestReason } from '@microsoft/applicationinsights-core-js';
170
+ import { setEnableEnvMocks } from '@microsoft/applicationinsights-core-js';
171
+ import { setValue } from '@microsoft/applicationinsights-core-js';
172
+ import { strContains } from '@microsoft/applicationinsights-core-js';
173
+ import { strEndsWith } from '@microsoft/applicationinsights-core-js';
174
+ import { strFunction } from '@microsoft/applicationinsights-core-js';
175
+ import { strObject } from '@microsoft/applicationinsights-core-js';
176
+ import { strPrototype } from '@microsoft/applicationinsights-core-js';
177
+ import { strStartsWith } from '@microsoft/applicationinsights-core-js';
178
+ import { strTrim } from '@microsoft/applicationinsights-core-js';
179
+ import { strUndefined } from '@microsoft/applicationinsights-core-js';
180
+ import { Tags } from '@microsoft/applicationinsights-core-js';
181
+ import { TelemetryInitializerFunction } from '@microsoft/applicationinsights-core-js';
182
+ import { TelemetryUnloadReason } from '@microsoft/applicationinsights-core-js';
183
+ import { throwError } from '@microsoft/applicationinsights-core-js';
184
+ import { _throwInternal } from '@microsoft/applicationinsights-core-js';
185
+ import { toISOString } from '@microsoft/applicationinsights-core-js';
186
+ import { UnloadHandler } from '@microsoft/applicationinsights-core-js';
187
+ import { useXDomainRequest } from '@microsoft/applicationinsights-core-js';
188
+ import { _warnToConsole } from '@microsoft/applicationinsights-core-js';
189
+ import { WatcherFunction } from '@microsoft/applicationinsights-core-js';
190
+
191
+ export { __getRegisteredEvents }
192
+ export { addEventHandler }
193
+ export { addEventListeners }
194
+ export { addPageHideEventListener }
195
+ export { addPageShowEventListener }
196
+ export { addPageUnloadEventListener }
197
+ export declare class AppInsightsCore extends InternalAppInsightsCore<IExtendedConfiguration> {
198
+ constructor();
199
+ /**
200
+ * Initialize the sdk.
201
+ * @param config - The configuration to initialize the SDK.
202
+ * @param extensions - An array of extensions that are to be used by the core.
203
+ */
204
+ initialize(config: IExtendedConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
205
+ track(item: IExtendedTelemetryItem | ITelemetryItem): void;
206
+ /**
207
+ * Periodically check logger.queue for
208
+ */
209
+ pollInternalLogs(eventName?: string): ITimerHandler;
210
+ }
211
+
212
+ export { areCookiesSupported }
213
+ export { areCookiesSupported as cookieAvailable }
214
+
215
+ export { arrForEach }
216
+ export { arrIndexOf }
217
+ export { arrMap }
218
+ export { arrReduce }
219
+ export { attachEvent }
220
+ export { BaseTelemetryPlugin }
221
+ export { blockDynamicConversion }
222
+ export { createCookieMgr }
223
+ export { createDynamicConfig }
224
+ export { createEnumStyle }
225
+ /**
226
+ * Create a new guid.
227
+ * @param style - The style of guid to generated, defaults to Digits
228
+ * Digits (Default) : 32 digits separated by hyphens: 00000000-0000-0000-0000-000000000000
229
+ * Braces - 32 digits separated by hyphens, enclosed in braces: {00000000-0000-0000-0000-000000000000}
230
+ * Parentheses - 32 digits separated by hyphens, enclosed in parentheses: (00000000-0000-0000-0000-000000000000)
231
+ * Numeric - 32 digits: 00000000000000000000000000000000
232
+ * @returns The formatted guid.
233
+ */
234
+ export declare function createGuid(style?: GuidStyle): string;
235
+
236
+ export { createProcessTelemetryContext }
237
+ export { createTraceParent }
238
+ export { createUniqueNamespace }
239
+ export { createUnloadHandlerContainer }
240
+ export { dateNow }
241
+ export { detachEvent }
242
+ export { DiagnosticLogger }
243
+ export { disallowsSameSiteNone }
244
+ export { doPerf }
245
+ export { dumpObj }
246
+ /**
247
+ * Enum for property types.
248
+ */
249
+ declare const enum eEventPropertyType {
250
+ Unspecified = 0,
251
+ String = 1,
252
+ Int32 = 2,
253
+ UInt32 = 3,
254
+ Int64 = 4,
255
+ UInt64 = 5,
256
+ Double = 6,
257
+ Bool = 7,
258
+ Guid = 8,
259
+ DateTime = 9
260
+ }
261
+
262
+ export declare const enum _eExtendedInternalMessageId {
263
+ AuthHandShakeError = 501,
264
+ AuthRedirectFail = 502,
265
+ BrowserCannotReadLocalStorage = 503,
266
+ BrowserCannotWriteLocalStorage = 504,
267
+ BrowserDoesNotSupportLocalStorage = 505,
268
+ CannotParseBiBlobValue = 506,
269
+ CannotParseDataAttribute = 507,
270
+ CVPluginNotAvailable = 508,
271
+ DroppedEvent = 509,
272
+ ErrorParsingAISessionCookie = 510,
273
+ ErrorProvidedChannels = 511,
274
+ FailedToGetCookies = 512,
275
+ FailedToInitializeCorrelationVector = 513,
276
+ FailedToInitializeSDK = 514,
277
+ InvalidContentBlob = 515,
278
+ InvalidCorrelationValue = 516,
279
+ SessionRenewalDateIsZero = 517,
280
+ SendPostOnCompleteFailure = 518,
281
+ PostResponseHandler = 519,
282
+ SDKNotInitialized = 520
283
+ }
284
+
285
+ export { _eInternalMessageId }
286
+ export { eLoggingSeverity }
287
+ /**
288
+ * The TraceLevel contains a set of values that specify the trace level for the trace messages.
289
+ */
290
+ declare const enum eTraceLevel {
291
+ /**
292
+ * None.
293
+ */
294
+ NONE = 0,
295
+ /**
296
+ * Error trace.
297
+ */
298
+ ERROR = 1,
299
+ /**
300
+ * Warning trace.
301
+ */
302
+ WARNING = 2,
303
+ /**
304
+ * Information trace.
305
+ */
306
+ INFORMATION = 3
307
+ }
308
+
309
+ /**
310
+ * The eValueKind contains a set of values that specify value kind of the property.
311
+ * Either PII (Personal Identifiable Information) or customer content.
312
+ */
313
+ declare const enum eValueKind {
314
+ /**
315
+ * No kind.
316
+ */
317
+ NotSet = 0,
318
+ /**
319
+ * An LDAP distinguished name. For example, CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM.
320
+ */
321
+ Pii_DistinguishedName = 1,
322
+ /**
323
+ * Generic information.
324
+ */
325
+ Pii_GenericData = 2,
326
+ /**
327
+ * An IPV4 Internet address. For example, 192.0.2.1.
328
+ */
329
+ Pii_IPV4Address = 3,
330
+ /**
331
+ * An IPV6 Internet address. For example, 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
332
+ */
333
+ Pii_IPv6Address = 4,
334
+ /**
335
+ * The Subject of an e-mail message.
336
+ */
337
+ Pii_MailSubject = 5,
338
+ /**
339
+ * A telephone number.
340
+ */
341
+ Pii_PhoneNumber = 6,
342
+ /**
343
+ * A query string.
344
+ */
345
+ Pii_QueryString = 7,
346
+ /**
347
+ * An SIP (Session Internet Protocol) address.
348
+ */
349
+ Pii_SipAddress = 8,
350
+ /**
351
+ * An e-mail address.
352
+ */
353
+ Pii_SmtpAddress = 9,
354
+ /**
355
+ * An user ID.
356
+ */
357
+ Pii_Identity = 10,
358
+ /**
359
+ * A URI (Uniform Resource Identifier).
360
+ */
361
+ Pii_Uri = 11,
362
+ /**
363
+ * The fully-qualified domain name.
364
+ */
365
+ Pii_Fqdn = 12,
366
+ /**
367
+ * Scrubs the last octet in a IPV4 Internet address.
368
+ * For example: 10.121.227.147 becomes 10.121.227.*
369
+ */
370
+ Pii_IPV4AddressLegacy = 13,
371
+ /**
372
+ * Generic content.
373
+ */
374
+ CustomerContent_GenericContent = 32
375
+ }
376
+
377
+ /**
378
+ * The EventLatency contains a set of values that specify the latency with which an event is sent.
379
+ */
380
+ export declare const EventLatency: EnumValue<typeof EventLatencyValue>;
381
+
382
+ export declare type EventLatency = number | EventLatencyValue;
383
+
384
+ /**
385
+ * The EventLatency contains a set of values that specify the latency with which an event is sent.
386
+ */
387
+ export declare const enum EventLatencyValue {
388
+ /**
389
+ * Normal latency.
390
+ */
391
+ Normal = 1,
392
+ /**
393
+ * Cost deferred latency. At the moment this latency is treated as Normal latency.
394
+ */
395
+ CostDeferred = 2,
396
+ /**
397
+ * Real time latency.
398
+ */
399
+ RealTime = 3,
400
+ /**
401
+ * Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.
402
+ * Added in v3.1.1
403
+ */
404
+ Immediate = 4
405
+ }
406
+
407
+ export { eventOff }
408
+ export { eventOn }
409
+ /**
410
+ * The EventPersistence contains a set of values that specify the event's persistence.
411
+ */
412
+ export declare const EventPersistence: EnumValue<typeof EventPersistenceValue>;
413
+
414
+ export declare type EventPersistence = number | EventPersistenceValue;
415
+
416
+ /**
417
+ * The EventPersistence contains a set of values that specify the event's persistence.
418
+ */
419
+ export declare const enum EventPersistenceValue {
420
+ /**
421
+ * Normal persistence.
422
+ */
423
+ Normal = 1,
424
+ /**
425
+ * Critical persistence.
426
+ */
427
+ Critical = 2
428
+ }
429
+
430
+ /**
431
+ * Enum for property types.
432
+ */
433
+ export declare const EventPropertyType: EnumValue<typeof eEventPropertyType>;
434
+
435
+ export declare type EventPropertyType = number | eEventPropertyType;
436
+
437
+ export { EventsDiscardedReason }
438
+ /**
439
+ * Define a specific way to send an event synchronously
440
+ */
441
+ export declare const enum EventSendType {
442
+ /**
443
+ * Batch and send the event asynchronously, this is the same as either setting the event `sync` flag to false or not setting at all.
444
+ */
445
+ Batched = 0,
446
+ /**
447
+ * Attempt to send the event synchronously, this is the same as setting the event `sync` flag to true
448
+ */
449
+ Synchronous = 1,
450
+ /**
451
+ * Attempt to send the event synchronously with a preference for the sendBeacon() API.
452
+ * As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb,
453
+ * the sendHook is also not supported or used when sendBeacon.
454
+ */
455
+ SendBeacon = 2,
456
+ /**
457
+ * Attempt to send the event synchronously with a preference for the fetch() API with the keepalive flag,
458
+ * the SDK checks to ensure that the fetch() implementation supports the 'keepalive' flag and if not it
459
+ * will fallback to either sendBeacon() or a synchronous XHR request.
460
+ * As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb.
461
+ * Note: Not all browsers support the keepalive flag so for those environments the events may still fail
462
+ */
463
+ SyncFetch = 3
464
+ }
465
+
466
+ /**
467
+ * Pass in the objects to merge as arguments.
468
+ * @param obj1 - object to merge. Set this argument to 'true' for a deep extend.
469
+ * @param obj2 - object to merge.
470
+ * @param obj3 - object to merge.
471
+ * @param obj4 - object to merge.
472
+ * @param obj5 - object to merge.
473
+ * @returns The extended object.
474
+ */
475
+ export declare function extend(obj?: any, obj2?: any, obj3?: any, obj4?: any, obj5?: any): any;
476
+
477
+ export declare type _ExtendedInternalMessageId = number | _eExtendedInternalMessageId | _eInternalMessageId;
478
+
479
+ export declare type FieldValueSanitizerFunc = (details: IFieldSanitizerDetails) => IEventProperty | null;
480
+
481
+ export declare const enum FieldValueSanitizerType {
482
+ NotSet = 0,
483
+ String = 1,
484
+ Number = 2,
485
+ Boolean = 3,
486
+ Object = 4,
487
+ Array = 4096,
488
+ EventProperty = 8192
489
+ }
490
+
491
+ export declare type FieldValueSanitizerTypes = string | number | boolean | object | string[] | number[] | boolean[] | IEventProperty;
492
+
493
+ export { findW3cTraceParent }
494
+ export { forceDynamicConversion }
495
+ export { formatTraceParent }
496
+ export declare const FullVersionString: string;
497
+
498
+ export { generateW3CId }
499
+ export declare function getCommonSchemaMetaData(value: string | boolean | number | string[] | number[] | boolean[] | undefined, kind: number | undefined, type?: number | undefined): number;
500
+
501
+ export { getConsole }
502
+ /**
503
+ * Helper to get and decode the cookie value using decodeURIComponent, this is for historical
504
+ * backward compatibility where the document.cookie value was decoded before parsing.
505
+ * @param cookieMgr - The cookie manager to use
506
+ * @param name - The name of the cookie to get
507
+ * @param decode - A flag to indicate whether the cookie value should be decoded
508
+ * @returns The decoded cookie value (if available) otherwise an empty string.
509
+ */
510
+ export declare function getCookieValue(cookieMgr: ICookieMgr, name: string, decode?: boolean): string;
511
+
512
+ export { getCrypto }
513
+ export { getDocument }
514
+ export { getDynamicConfigHandler }
515
+ export { getExceptionName }
516
+ /**
517
+ * Returns a bitwise value for the FieldValueSanitizerType enum representing the decoded type of the passed value
518
+ * @param value The value to determine the type
519
+ */
520
+ export declare function getFieldValueType(value: any): FieldValueSanitizerType;
521
+
522
+ export { getGlobal }
523
+ export { getGlobalInst }
524
+ export { getHistory }
525
+ export { getIEVersion }
526
+ export { getJSON }
527
+ export { getLocation }
528
+ export { getMsCrypto }
529
+ export { getNavigator }
530
+ export { getPerformance }
531
+ export { getSetValue }
532
+ /**
533
+ * Gets the tenant id from the tenant token.
534
+ * @param apiKey - The token from which the tenant id is to be extracted.
535
+ * @returns The tenant id.
536
+ */
537
+ export declare function getTenantId(apiKey: string | undefined): string;
538
+
539
+ export declare let getTime: typeof perfNow;
540
+
541
+ export { getWindow }
542
+ export declare const enum GuidStyle {
543
+ Numeric = "N",
544
+ Digits = "D",
545
+ Braces = "B",
546
+ Parentheses = "P"
547
+ }
548
+
549
+ export { hasDocument }
550
+ export { hasHistory }
551
+ export { hasJSON }
552
+ export { hasNavigator }
553
+ export { hasOwnProperty }
554
+ export { hasWindow }
555
+ export { IAppInsightsCore }
556
+ export { IChannelControls }
557
+ export { IConfigCheckFn }
558
+ export { IConfigDefaultCheck }
559
+ export { IConfigDefaults }
560
+ export { IConfigSetFn }
561
+ export { IConfiguration }
562
+ export { ICookieMgr }
563
+ export { ICookieMgrConfig }
564
+ export { ICustomProperties }
565
+ export { IDiagnosticLogger }
566
+ export { IDistributedTraceContext }
567
+ export { IDynamicConfigHandler }
568
+ export { IDynamicPropertyHandler }
569
+ /**
570
+ * An interface used to create an event property value along with tagging it as PII, or customer content.
571
+ * <b>Caution:</b> Customer content and PII are mutually exclusive. You can use only one of them at a time.
572
+ * If you use both, then the property will be considered invalid, and therefore won't be sent.
573
+ */
574
+ export declare interface IEventProperty {
575
+ /**
576
+ * The value for the property.
577
+ */
578
+ value: string | number | boolean | string[] | number[] | boolean[];
579
+ /**
580
+ * [Optional] The value kind associated with property value. The constant enum ValueKind should be used to specify the
581
+ * different kinds.
582
+ */
583
+ kind?: number;
584
+ /**
585
+ * [Optional] The data type for the property. Valid values accepted by onecollector are
586
+ * "string", "bool", "double", "int64", "datetime", "guid".
587
+ * The EventPropertyType constant enum should be used to specify the different property type values.
588
+ */
589
+ propertyType?: number;
590
+ }
591
+
592
+ /**
593
+ * An interface used for telemetry event timings.
594
+ */
595
+ export declare interface IEventTiming {
596
+ /**
597
+ * Time when 1DS Core calls track
598
+ */
599
+ trackStart?: number;
600
+ /**
601
+ * Array of times when each plugin configured in 1DS calls processTelemetry method
602
+ */
603
+ processTelemetryStart?: {
604
+ [key: string]: number;
605
+ };
606
+ /**
607
+ * Array of times when a specific channel tried to send the telemetry to configured endpoint
608
+ */
609
+ sendEventStart?: {
610
+ [key: string]: number;
611
+ };
612
+ /**
613
+ * Array of times when a specific channel received a response from endpoint or request timed out
614
+ */
615
+ sendEventCompleted?: {
616
+ [key: string]: number;
617
+ };
618
+ /**
619
+ * Array of times when a specific channel started serialization of the telemetry event
620
+ */
621
+ serializationStart?: {
622
+ [key: string]: number;
623
+ };
624
+ /**
625
+ * Array of times when a specific channel completed serialization of the telemetry event
626
+ */
627
+ serializationCompleted?: {
628
+ [key: string]: number;
629
+ };
630
+ }
631
+
632
+ /**
633
+ * The IExtendedConfiguration interface holds the configuration details passed to core during initialize.
634
+ */
635
+ export declare interface IExtendedConfiguration extends IConfiguration {
636
+ /**
637
+ * [Optional] The property storage override that should be used to store
638
+ * internal SDK properties, otherwise stored as cookies. It is needed where cookies are not available.
639
+ */
640
+ propertyStorageOverride?: IPropertyStorageOverride;
641
+ /**
642
+ * [Optional] A boolean that indicated whether to disable the use of cookies by the 1DS Web SDK. The cookies added by the SDK are
643
+ * MicrosoftApplicationsTelemetryDeviceId. If cookies are disabled, then session events are not sent unless propertyStorageOverride
644
+ * is provided to store the values elsewhere.
645
+ */
646
+ disableCookiesUsage?: boolean;
647
+ /**
648
+ * [Optional] Name of the Anon cookie. The value will be set in the qsp header to collector requests. Collector will use this value to look for specific cookie to use for anid property.
649
+ */
650
+ anonCookieName?: string;
651
+ /**
652
+ * [Optional] Disables additional internal event timings that are added during processing of events, the timings are not sent as part telemetry items to the server
653
+ */
654
+ disableEventTimings?: boolean;
655
+ /**
656
+ * [Optional] Enables support for objects with compound keys which indirectly represent an object where the "key" of the object contains a "." as part of it's name.
657
+ * @example
658
+ * ```typescript
659
+ * event: { "somedata.embeddedvalue": 123 }
660
+ * ```
661
+ */
662
+ enableCompoundKey?: boolean;
663
+ /**
664
+ * [Optional] An array of the page unload events that you would like to be ignored, special note there must be at least one valid unload
665
+ * event hooked, if you list all or the runtime environment only supports a listed "disabled" event it will still be hooked, if required by the SDK.
666
+ * Unload events include "beforeunload", "unload", "visibilitychange" (with 'hidden' state) and "pagehide"
667
+ */
668
+ disablePageUnloadEvents?: string[];
669
+ /**
670
+ * [Optional] An array of page show events that you would like to be ignored, special note there must be at lease one valid show event
671
+ * hooked, if you list all or the runtime environment only supports a listed (disabled) event it will STILL be hooked, if required by the SDK.
672
+ * Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
673
+ */
674
+ disablePageShowEvents?: string[];
675
+ /**
676
+ * Add "&w=0" parameter to support UA Parsing when web-workers don't have access to Document.
677
+ * Default is false
678
+ */
679
+ enableWParam?: boolean;
680
+ }
681
+
682
+ /**
683
+ * An interface used to create an event, along with its name, properties, type, timestamp, and priority.
684
+ */
685
+ export declare interface IExtendedTelemetryItem extends ITelemetryItem {
686
+ /**
687
+ * Properties to be captured about the telemetry item.
688
+ * Custom properties (alternatively referred to as Part C properties for a Common Schema event) can be
689
+ * directly added under data.
690
+ */
691
+ data?: {
692
+ [key: string]: string | number | boolean | string[] | number[] | boolean[] | IEventProperty | object;
693
+ };
694
+ /**
695
+ * Telemetry properties pertaining to domain about which data is being captured. Example, duration, referrerUri for browser page.
696
+ * These are alternatively referred to as Part B properties for a Common Schema event.
697
+ */
698
+ baseData?: {
699
+ [key: string]: string | number | boolean | string[] | number[] | boolean[] | IEventProperty | object;
700
+ };
701
+ /**
702
+ * An EventLatency value, that specifies the latency for the event.The EventLatency constant should be
703
+ * used to specify the different latency values.
704
+ */
705
+ latency?: number | EventLatencyValue;
706
+ /**
707
+ * [Optional] An EventPersistence value, that specifies the persistence for the event. The EventPersistence constant
708
+ * should be used to specify the different persistence values.
709
+ */
710
+ persistence?: number | EventPersistenceValue;
711
+ /**
712
+ * [Optional] A boolean that specifies whether the event should be sent as a sync request.
713
+ */
714
+ sync?: boolean | EventSendType;
715
+ /**
716
+ * [Optional] A timings object.
717
+ */
718
+ timings?: IEventTiming;
719
+ }
720
+
721
+ /**
722
+ * This interface defines the object that is passed to any provided FieldValueSanitizerFunc, it provides not only the value to be sanitized but also
723
+ * some context about the value like it's location within the envelope (serialized object), the format is defined via the
724
+ * [Common Schema 4.0](https://1dsdocs.azurewebsites.net/schema/README.html) specification.
725
+ */
726
+ export declare interface IFieldSanitizerDetails {
727
+ /**
728
+ * The path within the event where the value is stored
729
+ */
730
+ path: string;
731
+ /**
732
+ * The name of the field with the event path that will store the value
733
+ */
734
+ name: string;
735
+ /**
736
+ * Identifies the type of the property value
737
+ */
738
+ type: FieldValueSanitizerType;
739
+ /**
740
+ * The value for the property.
741
+ */
742
+ prop: IEventProperty;
743
+ /**
744
+ * A reference to the value sanitizer that created the details
745
+ */
746
+ sanitizer: IValueSanitizer;
747
+ }
748
+
749
+ /**
750
+ * This interface is used during the serialization of individual fields when converting the events into envelope (serialized object) which is sent to the services,
751
+ * the format is defined via the [Common Schema 4.0](https://1dsdocs.azurewebsites.net/schema/README.html) specification. The path and field names used are based
752
+ * on how the data is serialized to the service (CS 4.0 location) and not specifically the location on the event object you pass into the track methods (unless they are the same).
753
+ */
754
+ export declare interface IFieldValueSanitizerProvider {
755
+ /**
756
+ * Does this field value sanitizer handle this path / field combination
757
+ * @param path - The field path
758
+ * @param name - The name of the field
759
+ */
760
+ handleField(path: string, name: string): boolean;
761
+ /**
762
+ * Get the field sanitizer for this type of field based on the field type, value kind and/or event property type
763
+ * @param path - The field path
764
+ * @param name - The name of the field
765
+ * @param theType - The type of field
766
+ * @param theKind - The value kind of the field
767
+ * @param propType - The property type of the field
768
+ */
769
+ getSanitizer(path: string, name: string, theType: FieldValueSanitizerType, theKind?: number, propType?: number): FieldValueSanitizerFunc | null | undefined;
770
+ }
771
+
772
+ export { ILegacyUnloadHook }
773
+ export { INotificationListener }
774
+ export { INotificationManager }
775
+ export { InternalAppInsightsCore }
776
+ export { _InternalLogMessage }
777
+ export { _InternalMessageId }
778
+ export { IPerfEvent }
779
+ export { IPerfManager }
780
+ export { IPerfManagerProvider }
781
+ export { IPlugin }
782
+ export { IProcessTelemetryContext }
783
+ export { IProcessTelemetryUnloadContext }
784
+ /**
785
+ * The IPropertyStorageOverride interface provides a custom interface for storing internal SDK properties - otherwise they are
786
+ * stored as cookies.
787
+ * You need this interface when you intend to run auto collection for common properties, or when you log a session in
788
+ * a non browser environment.
789
+ */
790
+ export declare interface IPropertyStorageOverride {
791
+ /**
792
+ * A function for passing key value pairs to be stored.
793
+ * @param key - The key for the key value pair.
794
+ * @param value - The value for the key value pair.
795
+ */
796
+ setProperty: (key: string, value: string) => void;
797
+ /**
798
+ * A function that gets a value for a given key.
799
+ * @param key - The key for which the value must be fetched.
800
+ */
801
+ getProperty: (key: string) => string;
802
+ }
803
+
804
+ export { _IRegisteredEvents }
805
+ export { isArray }
806
+ export declare function isArrayValid(value: any[]): boolean;
807
+
808
+ export { isBeaconsSupported }
809
+ export { isBoolean }
810
+ /**
811
+ * Helper to identify whether we are running in a chromium based browser environment
812
+ */
813
+ export declare function isChromium(): boolean;
814
+
815
+ export { isDate }
816
+ /**
817
+ * Checks if document object is available
818
+ */
819
+ export declare const isDocumentObjectAvailable: boolean;
820
+
821
+ export { isError }
822
+ export { isFetchSupported }
823
+ export { isFunction }
824
+ /**
825
+ * Check to see if the value is > 0
826
+ * @param value - The value to check
827
+ * @returns true if > 0 otherwise false
828
+ */
829
+ export declare function isGreaterThanZero(value: number): boolean;
830
+
831
+ export { isIE }
832
+ /**
833
+ * Checks if the value is a valid EventLatency.
834
+ * @param value - The value that needs to be checked.
835
+ * @returns True if the value is in AWTEventLatency, false otherwise.
836
+ */
837
+ export declare function isLatency(value: EventLatency | undefined): boolean;
838
+
839
+ export { isNotTruthy }
840
+ export { isNullOrUndefined }
841
+ export { isNumber }
842
+ export { isObject }
843
+ export { isReactNative }
844
+ export { isSampledFlag }
845
+ export { isString }
846
+ export { isTruthy }
847
+ export { isTypeof }
848
+ /**
849
+ * Checks if Uint8Array are available in the current environment. Safari and Firefox along with
850
+ * ReactNative are known to not support Uint8Array properly.
851
+ * @returns True if available, false otherwise.
852
+ */
853
+ export declare function isUint8ArrayAvailable(): boolean;
854
+
855
+ export { isUndefined }
856
+ export { isValidSpanId }
857
+ export { isValidTraceId }
858
+ export { isValidTraceParent }
859
+ /**
860
+ * Checks if value is assigned to the given param.
861
+ * @param value - The token from which the tenant id is to be extracted.
862
+ * @returns True/false denoting if value is assigned to the param.
863
+ */
864
+ export declare function isValueAssigned(value: any): boolean;
865
+
866
+ export declare function isValueKind(value: number | undefined): boolean;
867
+
868
+ /**
869
+ * Checks if window object is available
870
+ */
871
+ export declare const isWindowObjectAvailable: boolean;
872
+
873
+ export { isXhrSupported }
874
+ export { ITelemetryInitializerContainer }
875
+ export { ITelemetryInitializerHandler }
876
+ export { ITelemetryItem }
877
+ export { ITelemetryPlugin }
878
+ export { ITelemetryPluginChain }
879
+ export { ITelemetryUnloadState }
880
+ export { ITelemetryUpdateState }
881
+ export { IUnloadableComponent }
882
+ export { IUnloadHandlerContainer }
883
+ export { IUnloadHook }
884
+ export { IUnloadHookContainer }
885
+ /**
886
+ * This interface is used during the serialization of events into envelope (serialized object) which is sent to the services, the format is defined via the
887
+ * [Common Schema 4.0](https://1dsdocs.azurewebsites.net/schema/README.html) specification. The path and field names used are based on how the data is serialized
888
+ * to the service (CS 4.0 location) and not specifically the location on the event object you pass into the track methods (unless they are the same).
889
+ */
890
+ export declare interface IValueSanitizer {
891
+ /**
892
+ * Add a value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name.
893
+ */
894
+ addSanitizer: (sanitizer: IValueSanitizer) => void;
895
+ /**
896
+ * Adds a field sanitizer to the evaluation list
897
+ */
898
+ addFieldSanitizer: (fieldSanitizer: IFieldValueSanitizerProvider) => void;
899
+ /**
900
+ * Removes the value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name if present.
901
+ */
902
+ rmSanitizer: (theSanitizer: IValueSanitizer) => void;
903
+ /**
904
+ * Removes the field sanitizer to the evaluation list if present
905
+ */
906
+ rmFieldSanitizer: (theFieldSanitizer: IFieldValueSanitizerProvider) => void;
907
+ /**
908
+ * Does this field value sanitizer handle this path / field combination
909
+ * @param path - The field path
910
+ * @param name - The name of the field
911
+ */
912
+ handleField: (path: string, name: string) => boolean;
913
+ /**
914
+ * Sanitizes the value. It checks the that the property name and value are valid. It also
915
+ * checks/populates the correct type and pii of the property value.
916
+ * @param path - The root path of the property
917
+ * @param name - The property name.
918
+ * @param value - The property value or an IEventProperty containing value, type ,pii and customer content.
919
+ * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
920
+ * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
921
+ */
922
+ value: (path: string, name: string, value: FieldValueSanitizerTypes, stringifyObjects?: boolean) => IEventProperty | null;
923
+ /**
924
+ * Sanitizes the Property. It checks the that the property name and value are valid. It also
925
+ * checks/populates the correct type and pii of the property value.
926
+ * @param path - The root path of the property
927
+ * @param name - The property name.
928
+ * @param property - The property value or an IEventProperty containing value, type ,pii and customer content.
929
+ * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
930
+ * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
931
+ */
932
+ property: (path: string, name: string, property: IEventProperty, stringifyObjects?: boolean) => IEventProperty | null;
933
+ }
934
+
935
+ export { IWatchDetails }
936
+ export { IWatcherHandler }
937
+ export { LoggingSeverity }
938
+ export { _logInternalMessage }
939
+ export { mergeEvtNamespace }
940
+ export { MinChannelPriorty }
941
+ export { newGuid }
942
+ export { newId }
943
+ export { normalizeJsName }
944
+ export { NotificationManager }
945
+ export { objDefineAccessors }
946
+ export { objForEachKey }
947
+ export { objFreeze }
948
+ export { objKeys }
949
+ export { objSeal }
950
+ export { onConfigChange }
951
+ /**
952
+ * Create and open an XMLHttpRequest object
953
+ * @param method - The request method
954
+ * @param urlString - The url
955
+ * @param withCredentials - Option flag indicating that credentials should be sent
956
+ * @param disabled - Optional flag indicating that the XHR object should be marked as disabled and not tracked (default is false)
957
+ * @param isSync - Optional flag indicating if the instance should be a synchronous request (defaults to false)
958
+ * @param timeout - Optional value identifying the timeout value that should be assigned to the XHR request
959
+ * @returns A new opened XHR request
960
+ */
961
+ export declare function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled?: boolean, isSync?: boolean, timeout?: number): XMLHttpRequest;
962
+
963
+ export { optimizeObject }
964
+ export { parseTraceParent }
965
+ export { PerfEvent }
966
+ export { PerfManager }
967
+ export { perfNow }
968
+ export { ProcessTelemetryContext }
969
+ export { proxyAssign }
970
+ export { proxyFunctionAs }
971
+ export { proxyFunctions }
972
+ export { random32 }
973
+ export { randomValue }
974
+ export { removeEventHandler }
975
+ export { removeEventListeners }
976
+ export { removePageHideEventListener }
977
+ export { removePageShowEventListener }
978
+ export { removePageUnloadEventListener }
979
+ export { safeGetCookieMgr }
980
+ export { safeGetLogger }
981
+ /**
982
+ * Sanitizes the Property. It checks the that the property name and value are valid. It also
983
+ * checks/populates the correct type and pii of the property value.
984
+ * @param name - property name - The property name.
985
+ * @param property - The property value or an IEventProperty containing value,
986
+ * type ,pii and customer content.
987
+ * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
988
+ */
989
+ export declare function sanitizeProperty(name: string, property: string | number | boolean | string[] | number[] | boolean[] | object | IEventProperty, stringifyObjects?: boolean): IEventProperty | null;
990
+
991
+ export { SendRequestReason }
992
+ export { setEnableEnvMocks }
993
+ export declare function setProcessTelemetryTimings(event: ITelemetryItem, identifier: string): void;
994
+
995
+ export { setValue }
996
+ export { strContains }
997
+ export { strEndsWith }
998
+ export { strFunction }
999
+ export { strObject }
1000
+ export { strPrototype }
1001
+ export { strStartsWith }
1002
+ export { strTrim }
1003
+ export { strUndefined as Undefined }
1004
+ export { strUndefined }
1005
+ export { Tags }
1006
+ export { TelemetryInitializerFunction }
1007
+ export { TelemetryUnloadReason }
1008
+ export { throwError }
1009
+ export { _throwInternal }
1010
+ export { toISOString as getISOString }
1011
+ export { toISOString }
1012
+ export declare const TraceLevel: EnumValue<typeof eTraceLevel>;
1013
+
1014
+ export declare type TraceLevel = number | eTraceLevel;
1015
+
1016
+ /**
1017
+ * An enumeration that identifies the transport type that are requested to be used, if the requested
1018
+ * transport is not available ir supported the SDK may choose the first available transport or it
1019
+ * will log a warning to the diagnostic logger.
1020
+ */
1021
+ export declare const enum TransportType {
1022
+ /**
1023
+ * Use the default available api
1024
+ */
1025
+ NotSet = 0,
1026
+ /**
1027
+ * Use XMLHttpRequest or XMLDomainRequest if available
1028
+ */
1029
+ Xhr = 1,
1030
+ /**
1031
+ * Use the Fetch api if available
1032
+ */
1033
+ Fetch = 2,
1034
+ /**
1035
+ * Use sendBeacon api if available
1036
+ */
1037
+ Beacon = 3
1038
+ }
1039
+
1040
+ export { UnloadHandler }
1041
+ export { useXDomainRequest }
1042
+ /**
1043
+ * The ValueKind contains a set of values that specify value kind of the property.
1044
+ * Either PII (Personal Identifiable Information) or customer content.
1045
+ */
1046
+ export declare const ValueKind: EnumValue<typeof eValueKind>;
1047
+
1048
+ export declare type ValueKind = number | eValueKind;
1049
+
1050
+ export declare class ValueSanitizer implements IValueSanitizer {
1051
+ static getFieldType: typeof getFieldValueType;
1052
+ /**
1053
+ * Add a value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name.
1054
+ */
1055
+ addSanitizer: (sanitizer: IValueSanitizer) => void;
1056
+ /**
1057
+ * Adds a field sanitizer to the evaluation list
1058
+ */
1059
+ addFieldSanitizer: (fieldSanitizer: IFieldValueSanitizerProvider) => void;
1060
+ /**
1061
+ * Removes the value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name if present.
1062
+ */
1063
+ rmSanitizer: (theSanitizer: IValueSanitizer) => void;
1064
+ /**
1065
+ * Removes the field sanitizer to the evaluation list if present
1066
+ */
1067
+ rmFieldSanitizer: (theFieldSanitizer: IFieldValueSanitizerProvider) => void;
1068
+ /**
1069
+ * Does this field value sanitizer handle this path / field combination
1070
+ * @param path - The field path
1071
+ * @param name - The name of the field
1072
+ */
1073
+ handleField: (path: string, name: string) => boolean;
1074
+ /**
1075
+ * Sanitizes the value. It checks the that the property name and value are valid. It also
1076
+ * checks/populates the correct type and pii of the property value.
1077
+ * @param path - The root path of the property
1078
+ * @param name - The property name.
1079
+ * @param value - The property value or an IEventProperty containing value, type ,pii and customer content.
1080
+ * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
1081
+ * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
1082
+ */
1083
+ value: (path: string, name: string, value: FieldValueSanitizerTypes, stringifyObjects?: boolean) => IEventProperty | null;
1084
+ /**
1085
+ * Sanitizes the Property. It checks the that the property name and value are valid. It also
1086
+ * checks/populates the correct type and pii of the property value.
1087
+ * @param path - The root path of the property
1088
+ * @param name - The property name.
1089
+ * @param property - The property value or an IEventProperty containing value, type ,pii and customer content.
1090
+ * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
1091
+ * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
1092
+ */
1093
+ property: (path: string, name: string, property: IEventProperty, stringifyObjects?: boolean) => IEventProperty | null;
1094
+ /**
1095
+ * Returns whether this ValueSanitizer is empty
1096
+ * @return `true` if it contains no chained sanitizers or field sanitizers, otherwise `false`
1097
+ */
1098
+ isEmpty?: () => boolean;
1099
+ constructor(fieldSanitizerProvider?: IFieldValueSanitizerProvider);
1100
+ }
1101
+
1102
+ export declare const Version = "4.0.0";
1103
+
1104
+ export { _warnToConsole }
1105
+ export { WatcherFunction }
1106
+ export { }