@microsoft/1ds-core-js 4.4.0-nightlybeta3.2602-27 → 4.4.1

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 (53) hide show
  1. package/README.md +56 -0
  2. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-27.gbl.js → ms.core-4.4.1.gbl.js} +498 -511
  3. package/bundle/es5/ms.core-4.4.1.gbl.js.map +1 -0
  4. package/bundle/es5/ms.core-4.4.1.gbl.min.js +7 -0
  5. package/bundle/es5/ms.core-4.4.1.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.core-4.4.1.integrity.json +46 -0
  7. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-27.js → ms.core-4.4.1.js} +498 -511
  8. package/bundle/es5/ms.core-4.4.1.js.map +1 -0
  9. package/bundle/es5/ms.core-4.4.1.min.js +7 -0
  10. package/bundle/es5/ms.core-4.4.1.min.js.map +1 -0
  11. package/bundle/es5/ms.core.gbl.js +497 -510
  12. package/bundle/es5/ms.core.gbl.js.map +1 -1
  13. package/bundle/es5/ms.core.gbl.min.js +2 -2
  14. package/bundle/es5/ms.core.gbl.min.js.map +1 -1
  15. package/bundle/es5/ms.core.integrity.json +17 -17
  16. package/bundle/es5/ms.core.js +497 -510
  17. package/bundle/es5/ms.core.js.map +1 -1
  18. package/bundle/es5/ms.core.min.js +2 -2
  19. package/bundle/es5/ms.core.min.js.map +1 -1
  20. package/dist/es5/ms.core.js +495 -508
  21. package/dist/es5/ms.core.js.map +1 -1
  22. package/dist/es5/ms.core.min.js +2 -2
  23. package/dist/es5/ms.core.min.js.map +1 -1
  24. package/dist-es5/Index.js +9 -22
  25. package/dist-es5/Index.js.map +1 -1
  26. package/package.json +69 -72
  27. package/types/1ds-core-js.d.ts +110 -691
  28. package/types/1ds-core-js.namespaced.d.ts +54 -5
  29. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.js.map +0 -1
  30. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.min.js +0 -7
  31. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.min.js.map +0 -1
  32. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.integrity.json +0 -46
  33. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.js.map +0 -1
  34. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.min.js +0 -7
  35. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.min.js.map +0 -1
  36. package/dist-es5/AppInsightsCore.js +0 -96
  37. package/dist-es5/AppInsightsCore.js.map +0 -1
  38. package/dist-es5/BaseCore.js +0 -67
  39. package/dist-es5/BaseCore.js.map +0 -1
  40. package/dist-es5/DataModels.js +0 -7
  41. package/dist-es5/DataModels.js.map +0 -1
  42. package/dist-es5/Enums.js +0 -92
  43. package/dist-es5/Enums.js.map +0 -1
  44. package/dist-es5/InternalConstants.js +0 -19
  45. package/dist-es5/InternalConstants.js.map +0 -1
  46. package/dist-es5/Utils.js +0 -397
  47. package/dist-es5/Utils.js.map +0 -1
  48. package/dist-es5/ValueSanitizer.js +0 -262
  49. package/dist-es5/ValueSanitizer.js.map +0 -1
  50. package/dist-es5/__DynamicConstants.js +0 -28
  51. package/dist-es5/__DynamicConstants.js.map +0 -1
  52. package/dist-es5/extSpanUtils.js +0 -308
  53. package/dist-es5/extSpanUtils.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Core, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK Core, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -20,6 +20,7 @@ import { addPageHideEventListener } from '@microsoft/applicationinsights-core-js
20
20
  import { addPageShowEventListener } from '@microsoft/applicationinsights-core-js';
21
21
  import { addPageUnloadEventListener } from '@microsoft/applicationinsights-core-js';
22
22
  import { _appendHeader } from '@microsoft/applicationinsights-core-js';
23
+ import { AppInsightsExtCore as AppInsightsCore } from '@microsoft/applicationinsights-core-js';
23
24
  import { areCookiesSupported } from '@microsoft/applicationinsights-core-js';
24
25
  import { arrForEach } from '@microsoft/applicationinsights-core-js';
25
26
  import { arrIndexOf } from '@microsoft/applicationinsights-core-js';
@@ -31,6 +32,8 @@ import { blockDynamicConversion } from '@microsoft/applicationinsights-core-js';
31
32
  import { createCookieMgr } from '@microsoft/applicationinsights-core-js';
32
33
  import { createDynamicConfig } from '@microsoft/applicationinsights-core-js';
33
34
  import { createEnumStyle } from '@microsoft/applicationinsights-core-js';
35
+ import { createExtendedTelemetryItemFromSpan } from '@microsoft/applicationinsights-core-js';
36
+ import { createGuid } from '@microsoft/applicationinsights-core-js';
34
37
  import { createProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
35
38
  import { createTraceParent } from '@microsoft/applicationinsights-core-js';
36
39
  import { createUniqueNamespace } from '@microsoft/applicationinsights-core-js';
@@ -42,26 +45,44 @@ import { uaDisallowsSameSiteNone as disallowsSameSiteNone } from '@microsoft/app
42
45
  import { doPerf } from '@microsoft/applicationinsights-core-js';
43
46
  import { dumpObj } from '@microsoft/applicationinsights-core-js';
44
47
  import { eActiveStatus } from '@microsoft/applicationinsights-core-js';
48
+ import { eEventPropertyType } from '@microsoft/applicationinsights-core-js';
49
+ import { _eExtendedInternalMessageId } from '@microsoft/applicationinsights-core-js';
45
50
  import { _eInternalMessageId } from '@microsoft/applicationinsights-core-js';
46
51
  import { eLoggingSeverity } from '@microsoft/applicationinsights-core-js';
47
- import { EnumValue } from '@microsoft/applicationinsights-core-js';
52
+ import { eTraceLevel } from '@microsoft/applicationinsights-core-js';
53
+ import { eValueKind } from '@microsoft/applicationinsights-core-js';
54
+ import { EventLatency } from '@microsoft/applicationinsights-core-js';
55
+ import { EventLatencyValue } from '@microsoft/applicationinsights-core-js';
48
56
  import { eventOff } from '@microsoft/applicationinsights-core-js';
49
57
  import { eventOn } from '@microsoft/applicationinsights-core-js';
58
+ import { EventPersistence } from '@microsoft/applicationinsights-core-js';
59
+ import { EventPersistenceValue } from '@microsoft/applicationinsights-core-js';
60
+ import { EventPropertyType } from '@microsoft/applicationinsights-core-js';
50
61
  import { EventsDiscardedReason } from '@microsoft/applicationinsights-core-js';
62
+ import { EventSendType } from '@microsoft/applicationinsights-core-js';
63
+ import { extend } from '@microsoft/applicationinsights-core-js';
64
+ import { _ExtendedInternalMessageId } from '@microsoft/applicationinsights-core-js';
51
65
  import { FeatureOptInMode } from '@microsoft/applicationinsights-core-js';
52
66
  import { fieldRedaction } from '@microsoft/applicationinsights-core-js';
67
+ import { FieldValueSanitizerFunc } from '@microsoft/applicationinsights-core-js';
68
+ import { FieldValueSanitizerType } from '@microsoft/applicationinsights-core-js';
69
+ import { FieldValueSanitizerTypes } from '@microsoft/applicationinsights-core-js';
53
70
  import { findW3cTraceParent } from '@microsoft/applicationinsights-core-js';
54
71
  import { forceDynamicConversion } from '@microsoft/applicationinsights-core-js';
55
72
  import { formatErrorMessageXdr } from '@microsoft/applicationinsights-core-js';
56
73
  import { formatErrorMessageXhr } from '@microsoft/applicationinsights-core-js';
57
74
  import { formatTraceParent } from '@microsoft/applicationinsights-core-js';
75
+ import { FullVersionString } from '@microsoft/applicationinsights-core-js';
58
76
  import { generateW3CId } from '@microsoft/applicationinsights-core-js';
59
77
  import { _getAllResponseHeaders } from '@microsoft/applicationinsights-core-js';
78
+ import { getCommonSchemaMetaData } from '@microsoft/applicationinsights-core-js';
60
79
  import { getConsole } from '@microsoft/applicationinsights-core-js';
80
+ import { getCookieValue } from '@microsoft/applicationinsights-core-js';
61
81
  import { getCrypto } from '@microsoft/applicationinsights-core-js';
62
82
  import { getDocument } from '@microsoft/applicationinsights-core-js';
63
83
  import { getDynamicConfigHandler } from '@microsoft/applicationinsights-core-js';
64
84
  import { getExceptionName } from '@microsoft/applicationinsights-core-js';
85
+ import { getFieldValueType } from '@microsoft/applicationinsights-core-js';
65
86
  import { getGlobal } from '@microsoft/applicationinsights-core-js';
66
87
  import { getGlobalInst } from '@microsoft/applicationinsights-core-js';
67
88
  import { getHistory } from '@microsoft/applicationinsights-core-js';
@@ -73,7 +94,10 @@ import { getNavigator } from '@microsoft/applicationinsights-core-js';
73
94
  import { getPerformance } from '@microsoft/applicationinsights-core-js';
74
95
  import { getResponseText } from '@microsoft/applicationinsights-core-js';
75
96
  import { getSetValue } from '@microsoft/applicationinsights-core-js';
97
+ import { getTenantId } from '@microsoft/applicationinsights-core-js';
98
+ import { getTime } from '@microsoft/applicationinsights-core-js';
76
99
  import { getWindow } from '@microsoft/applicationinsights-core-js';
100
+ import { GuidStyle } from '@microsoft/applicationinsights-core-js';
77
101
  import { hasDocument } from '@microsoft/applicationinsights-core-js';
78
102
  import { hasHistory } from '@microsoft/applicationinsights-core-js';
79
103
  import { hasJSON } from '@microsoft/applicationinsights-core-js';
@@ -95,6 +119,12 @@ import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
95
119
  import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
96
120
  import { IDynamicConfigHandler } from '@microsoft/applicationinsights-core-js';
97
121
  import { IDynamicPropertyHandler } from '@microsoft/applicationinsights-core-js';
122
+ import { IEventProperty } from '@microsoft/applicationinsights-core-js';
123
+ import { IEventTiming } from '@microsoft/applicationinsights-core-js';
124
+ import { IExtendedConfiguration } from '@microsoft/applicationinsights-core-js';
125
+ import { IExtendedTelemetryItem } from '@microsoft/applicationinsights-core-js';
126
+ import { IFieldSanitizerDetails } from '@microsoft/applicationinsights-core-js';
127
+ import { IFieldValueSanitizerProvider } from '@microsoft/applicationinsights-core-js';
98
128
  import { IInternalOfflineSupport } from '@microsoft/applicationinsights-core-js';
99
129
  import { _IInternalXhrOverride } from '@microsoft/applicationinsights-core-js';
100
130
  import { ILegacyUnloadHook } from '@microsoft/applicationinsights-core-js';
@@ -110,19 +140,24 @@ import { IPerfManagerProvider } from '@microsoft/applicationinsights-core-js';
110
140
  import { IPlugin } from '@microsoft/applicationinsights-core-js';
111
141
  import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
112
142
  import { IProcessTelemetryUnloadContext } from '@microsoft/applicationinsights-core-js';
113
- import { IReadableSpan } from '@microsoft/applicationinsights-core-js';
143
+ import { IPropertyStorageOverride } from '@microsoft/applicationinsights-core-js';
114
144
  import { _IRegisteredEvents } from '@microsoft/applicationinsights-core-js';
115
145
  import { isArray } from '@microsoft/applicationinsights-core-js';
146
+ import { isArrayValid } from '@microsoft/applicationinsights-core-js';
116
147
  import { isBeaconsSupported } from '@microsoft/applicationinsights-core-js';
117
148
  import { isBoolean } from '@microsoft/applicationinsights-core-js';
149
+ import { isChromium } from '@microsoft/applicationinsights-core-js';
118
150
  import { isDate } from '@microsoft/applicationinsights-core-js';
151
+ import { isDocumentObjectAvailable } from '@microsoft/applicationinsights-core-js';
119
152
  import { _ISenderOnComplete } from '@microsoft/applicationinsights-core-js';
120
153
  import { _ISendPostMgrConfig } from '@microsoft/applicationinsights-core-js';
121
154
  import { isError } from '@microsoft/applicationinsights-core-js';
122
155
  import { isFeatureEnabled } from '@microsoft/applicationinsights-core-js';
123
156
  import { isFetchSupported } from '@microsoft/applicationinsights-core-js';
124
157
  import { isFunction } from '@microsoft/applicationinsights-core-js';
158
+ import { isGreaterThanZero } from '@microsoft/applicationinsights-core-js';
125
159
  import { isIE } from '@microsoft/applicationinsights-core-js';
160
+ import { isLatency } from '@microsoft/applicationinsights-core-js';
126
161
  import { isNotTruthy } from '@microsoft/applicationinsights-core-js';
127
162
  import { isNullOrUndefined } from '@microsoft/applicationinsights-core-js';
128
163
  import { isNumber } from '@microsoft/applicationinsights-core-js';
@@ -132,10 +167,14 @@ import { isSampledFlag } from '@microsoft/applicationinsights-core-js';
132
167
  import { isString } from '@microsoft/applicationinsights-core-js';
133
168
  import { isTruthy } from '@microsoft/applicationinsights-core-js';
134
169
  import { isTypeof } from '@microsoft/applicationinsights-core-js';
170
+ import { isUint8ArrayAvailable } from '@microsoft/applicationinsights-core-js';
135
171
  import { isUndefined } from '@microsoft/applicationinsights-core-js';
136
172
  import { isValidSpanId } from '@microsoft/applicationinsights-core-js';
137
173
  import { isValidTraceId } from '@microsoft/applicationinsights-core-js';
138
174
  import { isValidTraceParent } from '@microsoft/applicationinsights-core-js';
175
+ import { isValueAssigned } from '@microsoft/applicationinsights-core-js';
176
+ import { isValueKind } from '@microsoft/applicationinsights-core-js';
177
+ import { isWindowObjectAvailable } from '@microsoft/applicationinsights-core-js';
139
178
  import { isXhrSupported } from '@microsoft/applicationinsights-core-js';
140
179
  import { ITelemetryInitializerContainer } from '@microsoft/applicationinsights-core-js';
141
180
  import { ITelemetryInitializerHandler } from '@microsoft/applicationinsights-core-js';
@@ -145,11 +184,11 @@ import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
145
184
  import { ITelemetryUnloadState } from '@microsoft/applicationinsights-core-js';
146
185
  import { ITelemetryUpdateState } from '@microsoft/applicationinsights-core-js';
147
186
  import { _ITimeoutOverrideWrapper } from '@microsoft/applicationinsights-core-js';
148
- import { ITimerHandler } from '@nevware21/ts-utils';
149
187
  import { IUnloadableComponent } from '@microsoft/applicationinsights-core-js';
150
188
  import { IUnloadHandlerContainer } from '@microsoft/applicationinsights-core-js';
151
189
  import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
152
190
  import { IUnloadHookContainer } from '@microsoft/applicationinsights-core-js';
191
+ import { IValueSanitizer } from '@microsoft/applicationinsights-core-js';
153
192
  import { IWatchDetails } from '@microsoft/applicationinsights-core-js';
154
193
  import { IWatcherHandler } from '@microsoft/applicationinsights-core-js';
155
194
  import { IXDomainRequest } from '@microsoft/applicationinsights-core-js';
@@ -169,6 +208,7 @@ import { objKeys } from '@microsoft/applicationinsights-core-js';
169
208
  import { objSeal } from '@microsoft/applicationinsights-core-js';
170
209
  import { OnCompleteCallback } from '@microsoft/applicationinsights-core-js';
171
210
  import { onConfigChange } from '@microsoft/applicationinsights-core-js';
211
+ import { openXhr } from '@microsoft/applicationinsights-core-js';
172
212
  import { optimizeObject } from '@microsoft/applicationinsights-core-js';
173
213
  import { parseResponse } from '@microsoft/applicationinsights-core-js';
174
214
  import { parseTraceParent } from '@microsoft/applicationinsights-core-js';
@@ -188,10 +228,12 @@ import { removePageShowEventListener } from '@microsoft/applicationinsights-core
188
228
  import { removePageUnloadEventListener } from '@microsoft/applicationinsights-core-js';
189
229
  import { safeGetCookieMgr } from '@microsoft/applicationinsights-core-js';
190
230
  import { safeGetLogger } from '@microsoft/applicationinsights-core-js';
231
+ import { sanitizeProperty } from '@microsoft/applicationinsights-core-js';
191
232
  import { SenderPostManager } from '@microsoft/applicationinsights-core-js';
192
233
  import { SendPOSTFunction } from '@microsoft/applicationinsights-core-js';
193
234
  import { SendRequestReason } from '@microsoft/applicationinsights-core-js';
194
235
  import { setEnableEnvMocks } from '@microsoft/applicationinsights-core-js';
236
+ import { setProcessTelemetryTimings } from '@microsoft/applicationinsights-core-js';
195
237
  import { setValue } from '@microsoft/applicationinsights-core-js';
196
238
  import { strContains } from '@microsoft/applicationinsights-core-js';
197
239
  import { strEndsWith } from '@microsoft/applicationinsights-core-js';
@@ -208,9 +250,13 @@ import { _testHookMaxUnloadHooksCb } from '@microsoft/applicationinsights-core-j
208
250
  import { throwError } from '@microsoft/applicationinsights-core-js';
209
251
  import { _throwInternal } from '@microsoft/applicationinsights-core-js';
210
252
  import { toISOString } from '@microsoft/applicationinsights-core-js';
253
+ import { TraceLevel } from '@microsoft/applicationinsights-core-js';
211
254
  import { TransportType } from '@microsoft/applicationinsights-core-js';
212
255
  import { UnloadHandler } from '@microsoft/applicationinsights-core-js';
213
256
  import { useXDomainRequest } from '@microsoft/applicationinsights-core-js';
257
+ import { ValueKind } from '@microsoft/applicationinsights-core-js';
258
+ import { ValueSanitizer } from '@microsoft/applicationinsights-core-js';
259
+ import { Version } from '@microsoft/applicationinsights-core-js';
214
260
  import { _warnToConsole } from '@microsoft/applicationinsights-core-js';
215
261
  import { WatcherFunction } from '@microsoft/applicationinsights-core-js';
216
262
 
@@ -230,24 +276,7 @@ export { addPageUnloadEventListener }
230
276
 
231
277
  export { _appendHeader }
232
278
 
233
- /**
234
- * @group Classes
235
- * @group Entrypoint
236
- */
237
- export declare class AppInsightsCore<C extends IExtendedConfiguration = IExtendedConfiguration> extends InternalAppInsightsCore<C> {
238
- constructor();
239
- /**
240
- * Initialize the sdk.
241
- * @param config - The configuration to initialize the SDK.
242
- * @param extensions - An array of extensions that are to be used by the core.
243
- */
244
- initialize(config: C, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
245
- track(item: IExtendedTelemetryItem | ITelemetryItem): void;
246
- /**
247
- * Periodically check logger.queue for
248
- */
249
- pollInternalLogs(eventName?: string): ITimerHandler;
250
- }
279
+ export { AppInsightsCore }
251
280
 
252
281
  export { areCookiesSupported }
253
282
  export { areCookiesSupported as cookieAvailable }
@@ -272,23 +301,9 @@ export { createDynamicConfig }
272
301
 
273
302
  export { createEnumStyle }
274
303
 
275
- /**
276
- * Create an extended common schema telemetry item from the provided span
277
- * @param core - The app insights core instance
278
- * @param span - The span to create the telemetry item from
279
- * @returns A new extended telemetry item or null if the span kind is not supported
280
- */
281
- export declare function createExtendedTelemetryItemFromSpan(core: IAppInsightsCore, span: IReadableSpan): IExtendedTelemetryItem | null;
282
-
283
- /**
284
- * Create a new guid.
285
- * @param style - The style of guid to generated, defaults to Digits
286
- * Digits (Default) : 32 digits separated by hyphens: 00000000-0000-0000-0000-000000000000
287
- * Braces - 32 digits separated by hyphens, enclosed in braces: \{00000000-0000-0000-0000-000000000000\}
288
- * Parentheses - 32 digits separated by hyphens, enclosed in parentheses: (00000000-0000-0000-0000-000000000000)
289
- * Numeric - 32 digits: 00000000000000000000000000000000
290
- */
291
- export declare function createGuid(style?: GuidStyle): string;
304
+ export { createExtendedTelemetryItemFromSpan }
305
+
306
+ export { createGuid }
292
307
 
293
308
  export { createProcessTelemetryContext }
294
309
 
@@ -312,269 +327,49 @@ export { dumpObj }
312
327
 
313
328
  export { eActiveStatus }
314
329
 
315
- /**
316
- * Enum for property types.
317
- */
318
- export declare const enum eEventPropertyType {
319
- Unspecified = 0,
320
- String = 1,
321
- Int32 = 2,
322
- UInt32 = 3,
323
- Int64 = 4,
324
- UInt64 = 5,
325
- Double = 6,
326
- Bool = 7,
327
- Guid = 8,
328
- DateTime = 9
329
- }
330
-
331
- export declare const enum _eExtendedInternalMessageId {
332
- AuthHandShakeError = 501,
333
- AuthRedirectFail = 502,
334
- BrowserCannotReadLocalStorage = 503,
335
- BrowserCannotWriteLocalStorage = 504,
336
- BrowserDoesNotSupportLocalStorage = 505,
337
- CannotParseBiBlobValue = 506,
338
- CannotParseDataAttribute = 507,
339
- CVPluginNotAvailable = 508,
340
- DroppedEvent = 509,
341
- ErrorParsingAISessionCookie = 510,
342
- ErrorProvidedChannels = 511,
343
- FailedToGetCookies = 512,
344
- FailedToInitializeCorrelationVector = 513,
345
- FailedToInitializeSDK = 514,
346
- InvalidContentBlob = 515,
347
- InvalidCorrelationValue = 516,
348
- SessionRenewalDateIsZero = 517,
349
- SendPostOnCompleteFailure = 518,
350
- PostResponseHandler = 519,
351
- SDKNotInitialized = 520
352
- }
330
+ export { eEventPropertyType }
331
+
332
+ export { _eExtendedInternalMessageId }
353
333
 
354
334
  export { _eInternalMessageId }
355
335
 
356
336
  export { eLoggingSeverity }
357
337
 
358
- /**
359
- * The TraceLevel contains a set of values that specify the trace level for the trace messages.
360
- */
361
- export declare const enum eTraceLevel {
362
- /**
363
- * None.
364
- */
365
- NONE = 0,
366
- /**
367
- * Error trace.
368
- */
369
- ERROR = 1,
370
- /**
371
- * Warning trace.
372
- */
373
- WARNING = 2,
374
- /**
375
- * Information trace.
376
- */
377
- INFORMATION = 3
378
- }
379
-
380
- /**
381
- * The eValueKind contains a set of values that specify value kind of the property.
382
- * Either PII (Personal Identifiable Information) or customer content.
383
- */
384
- export declare const enum eValueKind {
385
- /**
386
- * No kind.
387
- */
388
- NotSet = 0,
389
- /**
390
- * An LDAP distinguished name. For example, CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM.
391
- */
392
- Pii_DistinguishedName = 1,
393
- /**
394
- * Generic information.
395
- */
396
- Pii_GenericData = 2,
397
- /**
398
- * An IPV4 Internet address. For example, 192.0.2.1.
399
- */
400
- Pii_IPV4Address = 3,
401
- /**
402
- * An IPV6 Internet address. For example, 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
403
- */
404
- Pii_IPv6Address = 4,
405
- /**
406
- * The Subject of an e-mail message.
407
- */
408
- Pii_MailSubject = 5,
409
- /**
410
- * A telephone number.
411
- */
412
- Pii_PhoneNumber = 6,
413
- /**
414
- * A query string.
415
- */
416
- Pii_QueryString = 7,
417
- /**
418
- * An SIP (Session Internet Protocol) address.
419
- */
420
- Pii_SipAddress = 8,
421
- /**
422
- * An e-mail address.
423
- */
424
- Pii_SmtpAddress = 9,
425
- /**
426
- * An user ID.
427
- */
428
- Pii_Identity = 10,
429
- /**
430
- * A URI (Uniform Resource Identifier).
431
- */
432
- Pii_Uri = 11,
433
- /**
434
- * The fully-qualified domain name.
435
- */
436
- Pii_Fqdn = 12,
437
- /**
438
- * Scrubs the last octet in a IPV4 Internet address.
439
- * For example: 10.121.227.147 becomes 10.121.227.*
440
- */
441
- Pii_IPV4AddressLegacy = 13,
442
- /**
443
- * Scrubs the last 4 Hextets (last 64-bits) of an IPv6 address
444
- */
445
- Pii_IPv6ScrubLastHextets = 14,
446
- /**
447
- * Drops the value altogether, rather than hashing
448
- */
449
- Pii_DropValue = 15,
450
- /**
451
- * Generic content.
452
- */
453
- CustomerContent_GenericContent = 32
454
- }
455
-
456
- /**
457
- * The EventLatency contains a set of values that specify the latency with which an event is sent.
458
- */
459
- export declare const EventLatency: EnumValue<typeof EventLatencyValue>;
338
+ export { eTraceLevel }
460
339
 
461
- export declare type EventLatency = number | EventLatencyValue;
340
+ export { eValueKind }
462
341
 
463
- /**
464
- * The EventLatency contains a set of values that specify the latency with which an event is sent.
465
- */
466
- export declare const enum EventLatencyValue {
467
- /**
468
- * Normal latency.
469
- */
470
- Normal = 1,
471
- /**
472
- * Cost deferred latency. At the moment this latency is treated as Normal latency.
473
- */
474
- CostDeferred = 2,
475
- /**
476
- * Real time latency.
477
- */
478
- RealTime = 3,
479
- /**
480
- * Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.
481
- * Added in v3.1.1
482
- */
483
- Immediate = 4
484
- }
342
+ export { EventLatency }
343
+
344
+ export { EventLatencyValue }
485
345
 
486
346
  export { eventOff }
487
347
 
488
348
  export { eventOn }
489
349
 
490
- /**
491
- * The EventPersistence contains a set of values that specify the event's persistence.
492
- */
493
- export declare const EventPersistence: EnumValue<typeof EventPersistenceValue>;
494
-
495
- export declare type EventPersistence = number | EventPersistenceValue;
350
+ export { EventPersistence }
496
351
 
497
- /**
498
- * The EventPersistence contains a set of values that specify the event's persistence.
499
- */
500
- export declare const enum EventPersistenceValue {
501
- /**
502
- * Normal persistence.
503
- */
504
- Normal = 1,
505
- /**
506
- * Critical persistence.
507
- */
508
- Critical = 2
509
- }
510
-
511
- /**
512
- * Enum for property types.
513
- */
514
- export declare const EventPropertyType: EnumValue<typeof eEventPropertyType>;
352
+ export { EventPersistenceValue }
515
353
 
516
- export declare type EventPropertyType = number | eEventPropertyType;
354
+ export { EventPropertyType }
517
355
 
518
356
  export { EventsDiscardedReason }
519
357
 
520
- /**
521
- * Define a specific way to send an event synchronously
522
- */
523
- export declare const enum EventSendType {
524
- /**
525
- * Batch and send the event asynchronously, this is the same as either setting the event `sync` flag to false or not setting at all.
526
- */
527
- Batched = 0,
528
- /**
529
- * Attempt to send the event synchronously, this is the same as setting the event `sync` flag to true
530
- */
531
- Synchronous = 1,
532
- /**
533
- * Attempt to send the event synchronously with a preference for the sendBeacon() API.
534
- * As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb,
535
- * the sendHook is also not supported or used when sendBeacon.
536
- */
537
- SendBeacon = 2,
538
- /**
539
- * Attempt to send the event synchronously with a preference for the fetch() API with the keepalive flag,
540
- * the SDK checks to ensure that the fetch() implementation supports the 'keepalive' flag and if not it
541
- * will fallback to either sendBeacon() or a synchronous XHR request.
542
- * As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb.
543
- * Note: Not all browsers support the keepalive flag so for those environments the events may still fail
544
- */
545
- SyncFetch = 3
546
- }
547
-
548
- /**
549
- * Pass in the objects to merge as arguments.
550
- * @param obj1 - object to merge. Set this argument to 'true' for a deep extend.
551
- * @param obj2 - object to merge.
552
- * @param obj3 - object to merge.
553
- * @param obj4 - object to merge.
554
- * @param obj5 - object to merge.
555
- * @returns The extended object.
556
- */
557
- export declare function extend(obj?: any, obj2?: any, obj3?: any, obj4?: any, obj5?: any): any;
358
+ export { EventSendType }
359
+
360
+ export { extend }
558
361
 
559
- export declare type _ExtendedInternalMessageId = number | _eExtendedInternalMessageId | _eInternalMessageId;
362
+ export { _ExtendedInternalMessageId }
560
363
 
561
364
  export { FeatureOptInMode }
562
365
 
563
366
  export { fieldRedaction }
564
367
 
565
- export declare type FieldValueSanitizerFunc = (details: IFieldSanitizerDetails) => IEventProperty | null;
368
+ export { FieldValueSanitizerFunc }
566
369
 
567
- export declare const enum FieldValueSanitizerType {
568
- NotSet = 0,
569
- String = 1,
570
- Number = 2,
571
- Boolean = 3,
572
- Object = 4,
573
- Array = 4096,
574
- EventProperty = 8192
575
- }
370
+ export { FieldValueSanitizerType }
576
371
 
577
- export declare type FieldValueSanitizerTypes = string | number | boolean | object | string[] | number[] | boolean[] | IEventProperty;
372
+ export { FieldValueSanitizerTypes }
578
373
 
579
374
  export { findW3cTraceParent }
580
375
 
@@ -586,25 +381,17 @@ export { formatErrorMessageXhr }
586
381
 
587
382
  export { formatTraceParent }
588
383
 
589
- export declare const FullVersionString: string;
384
+ export { FullVersionString }
590
385
 
591
386
  export { generateW3CId }
592
387
 
593
388
  export { _getAllResponseHeaders }
594
389
 
595
- export declare function getCommonSchemaMetaData(value: string | boolean | number | string[] | number[] | boolean[] | undefined, kind: number | undefined, type?: number | undefined): number;
390
+ export { getCommonSchemaMetaData }
596
391
 
597
392
  export { getConsole }
598
393
 
599
- /**
600
- * Helper to get and decode the cookie value using decodeURIComponent, this is for historical
601
- * backward compatibility where the document.cookie value was decoded before parsing.
602
- * @param cookieMgr - The cookie manager to use
603
- * @param name - The name of the cookie to get
604
- * @param decode - A flag to indicate whether the cookie value should be decoded
605
- * @returns The decoded cookie value (if available) otherwise an empty string.
606
- */
607
- export declare function getCookieValue(cookieMgr: ICookieMgr, name: string, decode?: boolean): string;
394
+ export { getCookieValue }
608
395
 
609
396
  export { getCrypto }
610
397
 
@@ -614,11 +401,7 @@ export { getDynamicConfigHandler }
614
401
 
615
402
  export { getExceptionName }
616
403
 
617
- /**
618
- * Returns a bitwise value for the FieldValueSanitizerType enum representing the decoded type of the passed value
619
- * @param value - The value to determine the type
620
- */
621
- export declare function getFieldValueType(value: any): FieldValueSanitizerType;
404
+ export { getFieldValueType }
622
405
 
623
406
  export { getGlobal }
624
407
 
@@ -642,23 +425,13 @@ export { getResponseText }
642
425
 
643
426
  export { getSetValue }
644
427
 
645
- /**
646
- * Gets the tenant id from the tenant token.
647
- * @param apiKey - The token from which the tenant id is to be extracted.
648
- * @returns The tenant id.
649
- */
650
- export declare function getTenantId(apiKey: string | undefined): string;
428
+ export { getTenantId }
651
429
 
652
- export declare let getTime: typeof perfNow;
430
+ export { getTime }
653
431
 
654
432
  export { getWindow }
655
433
 
656
- export declare const enum GuidStyle {
657
- Numeric = "N",
658
- Digits = "D",
659
- Braces = "B",
660
- Parentheses = "P"
661
- }
434
+ export { GuidStyle }
662
435
 
663
436
  export { hasDocument }
664
437
 
@@ -702,196 +475,17 @@ export { IDynamicConfigHandler }
702
475
 
703
476
  export { IDynamicPropertyHandler }
704
477
 
705
- /**
706
- * An interface used to create an event property value along with tagging it as PII, or customer content.
707
- * <b>Caution:</b> Customer content and PII are mutually exclusive. You can use only one of them at a time.
708
- * If you use both, then the property will be considered invalid, and therefore won't be sent.
709
- */
710
- export declare interface IEventProperty {
711
- /**
712
- * The value for the property.
713
- */
714
- value: string | number | boolean | string[] | number[] | boolean[];
715
- /**
716
- * [Optional] The value kind associated with property value. The constant enum ValueKind should be used to specify the
717
- * different kinds.
718
- */
719
- kind?: number;
720
- /**
721
- * [Optional] The data type for the property. Valid values accepted by onecollector are
722
- * "string", "bool", "double", "int64", "datetime", "guid".
723
- * The EventPropertyType constant enum should be used to specify the different property type values.
724
- */
725
- propertyType?: number;
726
- }
727
-
728
- /**
729
- * An interface used for telemetry event timings.
730
- */
731
- export declare interface IEventTiming {
732
- /**
733
- * Time when 1DS Core calls track
734
- */
735
- trackStart?: number;
736
- /**
737
- * Array of times when each plugin configured in 1DS calls processTelemetry method
738
- */
739
- processTelemetryStart?: {
740
- [key: string]: number;
741
- };
742
- /**
743
- * Array of times when a specific channel tried to send the telemetry to configured endpoint
744
- */
745
- sendEventStart?: {
746
- [key: string]: number;
747
- };
748
- /**
749
- * Array of times when a specific channel received a response from endpoint or request timed out
750
- */
751
- sendEventCompleted?: {
752
- [key: string]: number;
753
- };
754
- /**
755
- * Array of times when a specific channel started serialization of the telemetry event
756
- */
757
- serializationStart?: {
758
- [key: string]: number;
759
- };
760
- /**
761
- * Array of times when a specific channel completed serialization of the telemetry event
762
- */
763
- serializationCompleted?: {
764
- [key: string]: number;
765
- };
766
- }
767
-
768
- /**
769
- * The IExtendedConfiguration interface holds the configuration details passed to core during initialize.
770
- */
771
- export declare interface IExtendedConfiguration extends IConfiguration {
772
- /**
773
- * [Optional] The property storage override that should be used to store
774
- * internal SDK properties, otherwise stored as cookies. It is needed where cookies are not available.
775
- */
776
- propertyStorageOverride?: IPropertyStorageOverride;
777
- /**
778
- * [Optional] A boolean that indicated whether to disable the use of cookies by the 1DS Web SDK. The cookies added by the SDK are
779
- * MicrosoftApplicationsTelemetryDeviceId. If cookies are disabled, then session events are not sent unless propertyStorageOverride
780
- * is provided to store the values elsewhere.
781
- */
782
- disableCookiesUsage?: boolean;
783
- /**
784
- * [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.
785
- */
786
- anonCookieName?: string;
787
- /**
788
- * [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
789
- */
790
- disableEventTimings?: boolean;
791
- /**
792
- * [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.
793
- * @example
794
- * ```typescript
795
- * event: { "somedata.embeddedvalue": 123 }
796
- * ```
797
- */
798
- enableCompoundKey?: boolean;
799
- /**
800
- * Add "&w=0" parameter to support UA Parsing when web-workers don't have access to Document.
801
- * Default is false
802
- */
803
- enableWParam?: boolean;
804
- }
805
-
806
- /**
807
- * An interface used to create an event, along with its name, properties, type, timestamp, and priority.
808
- */
809
- export declare interface IExtendedTelemetryItem extends ITelemetryItem {
810
- /**
811
- * Properties to be captured about the telemetry item.
812
- * Custom properties (alternatively referred to as Part C properties for a Common Schema event) can be
813
- * directly added under data.
814
- */
815
- data?: {
816
- [key: string]: any;
817
- };
818
- /**
819
- * Telemetry properties pertaining to domain about which data is being captured. Example, duration, referrerUri for browser page.
820
- * These are alternatively referred to as Part B properties for a Common Schema event.
821
- */
822
- baseData?: {
823
- [key: string]: any;
824
- };
825
- /**
826
- * An EventLatency value, that specifies the latency for the event.The EventLatency constant should be
827
- * used to specify the different latency values.
828
- */
829
- latency?: number | EventLatencyValue;
830
- /**
831
- * [Optional] An EventPersistence value, that specifies the persistence for the event. The EventPersistence constant
832
- * should be used to specify the different persistence values.
833
- */
834
- persistence?: number | EventPersistenceValue;
835
- /**
836
- * [Optional] A boolean that specifies whether the event should be sent as a sync request.
837
- */
838
- sync?: boolean | EventSendType;
839
- /**
840
- * [Optional] A timings object.
841
- */
842
- timings?: IEventTiming;
843
- }
844
-
845
- /**
846
- * This interface defines the object that is passed to any provided FieldValueSanitizerFunc, it provides not only the value to be sanitized but also
847
- * some context about the value like it's location within the envelope (serialized object), the format is defined via the
848
- * [Common Schema 4.0](https://aka.ms/CommonSchema) specification.
849
- */
850
- export declare interface IFieldSanitizerDetails {
851
- /**
852
- * The path within the event where the value is stored
853
- */
854
- path: string;
855
- /**
856
- * The name of the field with the event path that will store the value
857
- */
858
- name: string;
859
- /**
860
- * Identifies the type of the property value
861
- */
862
- type: FieldValueSanitizerType;
863
- /**
864
- * The value for the property.
865
- */
866
- prop: IEventProperty;
867
- /**
868
- * A reference to the value sanitizer that created the details
869
- */
870
- sanitizer: IValueSanitizer;
871
- }
872
-
873
- /**
874
- * This interface is used during the serialization of individual fields when converting the events into envelope (serialized object) which is sent to the services,
875
- * the format is defined via the [Common Schema 4.0](https://aka.ms/CommonSchema) specification. The path and field names used are based
876
- * 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).
877
- */
878
- export declare interface IFieldValueSanitizerProvider {
879
- /**
880
- * Does this field value sanitizer handle this path / field combination
881
- * @param path - The field path
882
- * @param name - The name of the field
883
- */
884
- handleField(path: string, name: string): boolean;
885
- /**
886
- * Get the field sanitizer for this type of field based on the field type, value kind and/or event property type
887
- * @param path - The field path
888
- * @param name - The name of the field
889
- * @param theType - The type of field
890
- * @param theKind - The value kind of the field
891
- * @param propType - The property type of the field
892
- */
893
- getSanitizer(path: string, name: string, theType: FieldValueSanitizerType, theKind?: number, propType?: number): FieldValueSanitizerFunc | null | undefined;
894
- }
478
+ export { IEventProperty }
479
+
480
+ export { IEventTiming }
481
+
482
+ export { IExtendedConfiguration }
483
+
484
+ export { IExtendedTelemetryItem }
485
+
486
+ export { IFieldSanitizerDetails }
487
+
488
+ export { IFieldValueSanitizerProvider }
895
489
 
896
490
  export { IInternalOfflineSupport }
897
491
 
@@ -923,47 +517,23 @@ export { IProcessTelemetryContext }
923
517
 
924
518
  export { IProcessTelemetryUnloadContext }
925
519
 
926
- /**
927
- * The IPropertyStorageOverride interface provides a custom interface for storing internal SDK properties - otherwise they are
928
- * stored as cookies.
929
- * You need this interface when you intend to run auto collection for common properties, or when you log a session in
930
- * a non browser environment.
931
- */
932
- export declare interface IPropertyStorageOverride {
933
- /**
934
- * A function for passing key value pairs to be stored.
935
- * @param key - The key for the key value pair.
936
- * @param value - The value for the key value pair.
937
- */
938
- setProperty: (key: string, value: string) => void;
939
- /**
940
- * A function that gets a value for a given key.
941
- * @param key - The key for which the value must be fetched.
942
- */
943
- getProperty: (key: string) => string;
944
- }
520
+ export { IPropertyStorageOverride }
945
521
 
946
522
  export { _IRegisteredEvents }
947
523
 
948
524
  export { isArray }
949
525
 
950
- export declare function isArrayValid(value: any[]): boolean;
526
+ export { isArrayValid }
951
527
 
952
528
  export { isBeaconsSupported }
953
529
 
954
530
  export { isBoolean }
955
531
 
956
- /**
957
- * Helper to identify whether we are running in a chromium based browser environment
958
- */
959
- export declare function isChromium(): boolean;
532
+ export { isChromium }
960
533
 
961
534
  export { isDate }
962
535
 
963
- /**
964
- * Checks if document object is available
965
- */
966
- export declare const isDocumentObjectAvailable: boolean;
536
+ export { isDocumentObjectAvailable }
967
537
 
968
538
  export { _ISenderOnComplete }
969
539
 
@@ -977,21 +547,11 @@ export { isFetchSupported }
977
547
 
978
548
  export { isFunction }
979
549
 
980
- /**
981
- * Check to see if the value is \> 0
982
- * @param value - The value to check
983
- * @returns true if \> 0 otherwise false
984
- */
985
- export declare function isGreaterThanZero(value: number): boolean;
550
+ export { isGreaterThanZero }
986
551
 
987
552
  export { isIE }
988
553
 
989
- /**
990
- * Checks if the value is a valid EventLatency.
991
- * @param value - The value that needs to be checked.
992
- * @returns True if the value is in AWTEventLatency, false otherwise.
993
- */
994
- export declare function isLatency(value: EventLatency | undefined): boolean;
554
+ export { isLatency }
995
555
 
996
556
  export { isNotTruthy }
997
557
 
@@ -1011,12 +571,7 @@ export { isTruthy }
1011
571
 
1012
572
  export { isTypeof }
1013
573
 
1014
- /**
1015
- * Checks if Uint8Array are available in the current environment. Safari and Firefox along with
1016
- * ReactNative are known to not support Uint8Array properly.
1017
- * @returns True if available, false otherwise.
1018
- */
1019
- export declare function isUint8ArrayAvailable(): boolean;
574
+ export { isUint8ArrayAvailable }
1020
575
 
1021
576
  export { isUndefined }
1022
577
 
@@ -1026,19 +581,11 @@ export { isValidTraceId }
1026
581
 
1027
582
  export { isValidTraceParent }
1028
583
 
1029
- /**
1030
- * Checks if value is assigned to the given param.
1031
- * @param value - The token from which the tenant id is to be extracted.
1032
- * @returns True/false denoting if value is assigned to the param.
1033
- */
1034
- export declare function isValueAssigned(value: any): boolean;
584
+ export { isValueAssigned }
1035
585
 
1036
- export declare function isValueKind(value: number | undefined): boolean;
586
+ export { isValueKind }
1037
587
 
1038
- /**
1039
- * Checks if window object is available
1040
- */
1041
- export declare const isWindowObjectAvailable: boolean;
588
+ export { isWindowObjectAvailable }
1042
589
 
1043
590
  export { isXhrSupported }
1044
591
 
@@ -1066,55 +613,7 @@ export { IUnloadHook }
1066
613
 
1067
614
  export { IUnloadHookContainer }
1068
615
 
1069
- /**
1070
- * 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
1071
- * [Common Schema 4.0](https://aka.ms/CommonSchema) specification. The path and field names used are based on how the data is serialized
1072
- * 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).
1073
- */
1074
- export declare interface IValueSanitizer {
1075
- /**
1076
- * Add a value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name.
1077
- */
1078
- addSanitizer: (sanitizer: IValueSanitizer) => void;
1079
- /**
1080
- * Adds a field sanitizer to the evaluation list
1081
- */
1082
- addFieldSanitizer: (fieldSanitizer: IFieldValueSanitizerProvider) => void;
1083
- /**
1084
- * Removes the value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name if present.
1085
- */
1086
- rmSanitizer: (theSanitizer: IValueSanitizer) => void;
1087
- /**
1088
- * Removes the field sanitizer to the evaluation list if present
1089
- */
1090
- rmFieldSanitizer: (theFieldSanitizer: IFieldValueSanitizerProvider) => void;
1091
- /**
1092
- * Does this field value sanitizer handle this path / field combination
1093
- * @param path - The field path
1094
- * @param name - The name of the field
1095
- */
1096
- handleField: (path: string, name: string) => boolean;
1097
- /**
1098
- * Sanitizes the value. It checks the that the property name and value are valid. It also
1099
- * checks/populates the correct type and pii of the property value.
1100
- * @param path - The root path of the property
1101
- * @param name - The property name.
1102
- * @param value - The property value or an IEventProperty containing value, type ,pii and customer content.
1103
- * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
1104
- * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
1105
- */
1106
- value: (path: string, name: string, value: FieldValueSanitizerTypes, stringifyObjects?: boolean) => IEventProperty | null;
1107
- /**
1108
- * Sanitizes the Property. It checks the that the property name and value are valid. It also
1109
- * checks/populates the correct type and pii of the property value.
1110
- * @param path - The root path of the property
1111
- * @param name - The property name.
1112
- * @param property - The property value or an IEventProperty containing value, type ,pii and customer content.
1113
- * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
1114
- * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
1115
- */
1116
- property: (path: string, name: string, property: IEventProperty, stringifyObjects?: boolean) => IEventProperty | null;
1117
- }
616
+ export { IValueSanitizer }
1118
617
 
1119
618
  export { IWatchDetails }
1120
619
 
@@ -1154,17 +653,7 @@ export { OnCompleteCallback }
1154
653
 
1155
654
  export { onConfigChange }
1156
655
 
1157
- /**
1158
- * Create and open an XMLHttpRequest object
1159
- * @param method - The request method
1160
- * @param urlString - The url
1161
- * @param withCredentials - Option flag indicating that credentials should be sent
1162
- * @param disabled - Optional flag indicating that the XHR object should be marked as disabled and not tracked (default is false)
1163
- * @param isSync - Optional flag indicating if the instance should be a synchronous request (defaults to false)
1164
- * @param timeout - Optional value identifying the timeout value that should be assigned to the XHR request
1165
- * @returns A new opened XHR request
1166
- */
1167
- export declare function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled?: boolean, isSync?: boolean, timeout?: number): XMLHttpRequest;
656
+ export { openXhr }
1168
657
 
1169
658
  export { optimizeObject }
1170
659
 
@@ -1204,15 +693,7 @@ export { safeGetCookieMgr }
1204
693
 
1205
694
  export { safeGetLogger }
1206
695
 
1207
- /**
1208
- * Sanitizes the Property. It checks the that the property name and value are valid. It also
1209
- * checks/populates the correct type and pii of the property value.
1210
- * @param name - property name - The property name.
1211
- * @param property - The property value or an IEventProperty containing value,
1212
- * type ,pii and customer content.
1213
- * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
1214
- */
1215
- export declare function sanitizeProperty(name: string, property: string | number | boolean | string[] | number[] | boolean[] | object | IEventProperty, stringifyObjects?: boolean): IEventProperty | null;
696
+ export { sanitizeProperty }
1216
697
 
1217
698
  export { SenderPostManager }
1218
699
 
@@ -1222,7 +703,7 @@ export { SendRequestReason }
1222
703
 
1223
704
  export { setEnableEnvMocks }
1224
705
 
1225
- export declare function setProcessTelemetryTimings(event: ITelemetryItem, identifier: string): void;
706
+ export { setProcessTelemetryTimings }
1226
707
 
1227
708
  export { setValue }
1228
709
 
@@ -1258,9 +739,7 @@ export { _throwInternal }
1258
739
  export { toISOString as getISOString }
1259
740
  export { toISOString }
1260
741
 
1261
- export declare const TraceLevel: EnumValue<typeof eTraceLevel>;
1262
-
1263
- export declare type TraceLevel = number | eTraceLevel;
742
+ export { TraceLevel }
1264
743
 
1265
744
  export { TransportType }
1266
745
 
@@ -1268,71 +747,11 @@ export { UnloadHandler }
1268
747
 
1269
748
  export { useXDomainRequest }
1270
749
 
1271
- /**
1272
- * The ValueKind contains a set of values that specify value kind of the property.
1273
- * Either PII (Personal Identifiable Information) or customer content.
1274
- */
1275
- export declare const ValueKind: EnumValue<typeof eValueKind>;
1276
-
1277
- export declare type ValueKind = number | eValueKind;
1278
-
1279
- export declare class ValueSanitizer implements IValueSanitizer {
1280
- static getFieldType: typeof getFieldValueType;
1281
- /**
1282
- * Clear the current value sanitizer cache.
1283
- */
1284
- clearCache: () => void;
1285
- /**
1286
- * Add a value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name.
1287
- */
1288
- addSanitizer: (sanitizer: IValueSanitizer) => void;
1289
- /**
1290
- * Adds a field sanitizer to the evaluation list
1291
- */
1292
- addFieldSanitizer: (fieldSanitizer: IFieldValueSanitizerProvider) => void;
1293
- /**
1294
- * Removes the value sanitizer as a fallback sanitizer if this sanitizer can't handle the path/name if present.
1295
- */
1296
- rmSanitizer: (theSanitizer: IValueSanitizer) => void;
1297
- /**
1298
- * Removes the field sanitizer to the evaluation list if present
1299
- */
1300
- rmFieldSanitizer: (theFieldSanitizer: IFieldValueSanitizerProvider) => void;
1301
- /**
1302
- * Does this field value sanitizer handle this path / field combination
1303
- * @param path - The field path
1304
- * @param name - The name of the field
1305
- */
1306
- handleField: (path: string, name: string) => boolean;
1307
- /**
1308
- * Sanitizes the value. It checks the that the property name and value are valid. It also
1309
- * checks/populates the correct type and pii of the property value.
1310
- * @param path - The root path of the property
1311
- * @param name - The property name.
1312
- * @param value - The property value or an IEventProperty containing value, type ,pii and customer content.
1313
- * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
1314
- * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
1315
- */
1316
- value: (path: string, name: string, value: FieldValueSanitizerTypes, stringifyObjects?: boolean) => IEventProperty | null;
1317
- /**
1318
- * Sanitizes the Property. It checks the that the property name and value are valid. It also
1319
- * checks/populates the correct type and pii of the property value.
1320
- * @param path - The root path of the property
1321
- * @param name - The property name.
1322
- * @param property - The property value or an IEventProperty containing value, type ,pii and customer content.
1323
- * @param stringifyObjects - If supplied tells the sanitizer that it should JSON stringify() objects
1324
- * @returns IEventProperty containing valid name, value, pii and type or null if invalid.
1325
- */
1326
- property: (path: string, name: string, property: IEventProperty, stringifyObjects?: boolean) => IEventProperty | null;
1327
- /**
1328
- * Returns whether this ValueSanitizer is empty
1329
- * @returns `true` if it contains no chained sanitizers or field sanitizers, otherwise `false`
1330
- */
1331
- isEmpty?: () => boolean;
1332
- constructor(fieldSanitizerProvider?: IFieldValueSanitizerProvider);
1333
- }
1334
-
1335
- export declare const Version = "4.4.0-nightlybeta3.2602-27";
750
+ export { ValueKind }
751
+
752
+ export { ValueSanitizer }
753
+
754
+ export { Version }
1336
755
 
1337
756
  export { _warnToConsole }
1338
757