@microsoft/1ds-core-js 3.2.12 → 4.0.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.
- package/README.md +1 -1
- package/bundle/es5/ms.core-4.0.1.gbl.js +6321 -0
- package/bundle/es5/ms.core-4.0.1.gbl.js.map +1 -0
- package/bundle/es5/ms.core-4.0.1.gbl.min.js +7 -0
- package/bundle/es5/ms.core-4.0.1.gbl.min.js.map +1 -0
- package/bundle/es5/ms.core-4.0.1.integrity.json +46 -0
- package/bundle/es5/ms.core-4.0.1.js +6325 -0
- package/bundle/es5/ms.core-4.0.1.js.map +1 -0
- package/bundle/es5/ms.core-4.0.1.min.js +7 -0
- package/bundle/es5/ms.core-4.0.1.min.js.map +1 -0
- package/bundle/es5/ms.core.gbl.js +6321 -0
- package/bundle/es5/ms.core.gbl.js.map +1 -0
- package/bundle/es5/ms.core.gbl.min.js +7 -0
- package/bundle/es5/ms.core.gbl.min.js.map +1 -0
- package/bundle/es5/ms.core.integrity.json +46 -0
- package/bundle/es5/ms.core.js +6325 -0
- package/bundle/es5/ms.core.js.map +1 -0
- package/bundle/es5/ms.core.min.js +7 -0
- package/bundle/es5/ms.core.min.js.map +1 -0
- package/{bundle → dist/es5}/ms.core.js +3945 -3022
- package/dist/es5/ms.core.js.map +1 -0
- package/dist/es5/ms.core.min.js +7 -0
- package/dist/es5/ms.core.min.js.map +1 -0
- package/dist-es5/AppInsightsCore.js +91 -0
- package/dist-es5/AppInsightsCore.js.map +1 -0
- package/{dist-esm/src → dist-es5}/BaseCore.js +18 -11
- package/dist-es5/BaseCore.js.map +1 -0
- package/{dist-esm/src → dist-es5}/DataModels.js +1 -1
- package/{dist-esm/src → dist-es5}/Enums.js +3 -26
- package/dist-es5/Enums.js.map +1 -0
- package/{dist-esm/src → dist-es5}/Index.js +9 -14
- package/dist-es5/Index.js.map +1 -0
- package/{dist-esm/src → dist-es5}/InternalConstants.js +1 -3
- package/{dist-esm/src → dist-es5}/InternalConstants.js.map +1 -1
- package/{dist-esm/src → dist-es5}/Utils.js +19 -144
- package/dist-es5/Utils.js.map +1 -0
- package/{dist-esm/src → dist-es5}/ValueSanitizer.js +42 -3
- package/dist-es5/ValueSanitizer.js.map +1 -0
- package/package.json +16 -9
- package/tsconfig.json +5 -3
- package/types/1ds-core-js.d.ts +1110 -0
- package/types/1ds-core-js.namespaced.d.ts +1106 -0
- package/bundle/ms.core-3.2.12.gbl.js +0 -5378
- package/bundle/ms.core-3.2.12.gbl.js.map +0 -1
- package/bundle/ms.core-3.2.12.gbl.min.js +0 -7
- package/bundle/ms.core-3.2.12.gbl.min.js.map +0 -1
- package/bundle/ms.core-3.2.12.integrity.json +0 -46
- package/bundle/ms.core-3.2.12.js +0 -5381
- package/bundle/ms.core-3.2.12.js.map +0 -1
- package/bundle/ms.core-3.2.12.min.js +0 -7
- package/bundle/ms.core-3.2.12.min.js.map +0 -1
- package/bundle/ms.core.gbl.js +0 -5378
- package/bundle/ms.core.gbl.js.map +0 -1
- package/bundle/ms.core.gbl.min.js +0 -7
- package/bundle/ms.core.gbl.min.js.map +0 -1
- package/bundle/ms.core.integrity.json +0 -46
- package/bundle/ms.core.js.map +0 -1
- package/bundle/ms.core.min.js +0 -7
- package/bundle/ms.core.min.js.map +0 -1
- package/dist/ms.core.js +0 -1305
- package/dist/ms.core.js.map +0 -1
- package/dist/ms.core.min.js +0 -7
- package/dist/ms.core.min.js.map +0 -1
- package/dist-esm/src/AppInsightsCore.d.ts +0 -15
- package/dist-esm/src/AppInsightsCore.js +0 -114
- package/dist-esm/src/AppInsightsCore.js.map +0 -1
- package/dist-esm/src/BaseCore.d.ts +0 -13
- package/dist-esm/src/BaseCore.js.map +0 -1
- package/dist-esm/src/DataModels.d.ts +0 -273
- package/dist-esm/src/ESPromise.d.ts +0 -110
- package/dist-esm/src/ESPromise.js +0 -286
- package/dist-esm/src/ESPromise.js.map +0 -1
- package/dist-esm/src/ESPromiseScheduler.d.ts +0 -36
- package/dist-esm/src/ESPromiseScheduler.js +0 -274
- package/dist-esm/src/ESPromiseScheduler.js.map +0 -1
- package/dist-esm/src/Enums.d.ts +0 -356
- package/dist-esm/src/Enums.js.map +0 -1
- package/dist-esm/src/Index.d.ts +0 -19
- package/dist-esm/src/Index.js.map +0 -1
- package/dist-esm/src/InternalConstants.d.ts +0 -6
- package/dist-esm/src/Utils.d.ts +0 -190
- package/dist-esm/src/Utils.js.map +0 -1
- package/dist-esm/src/ValueSanitizer.d.ts +0 -40
- package/dist-esm/src/ValueSanitizer.js.map +0 -1
- package/src/AppInsightsCore.ts +0 -135
- package/src/BaseCore.ts +0 -72
- package/src/DataModels.ts +0 -297
- package/src/ESPromise.ts +0 -365
- package/src/ESPromiseScheduler.ts +0 -328
- package/src/Enums.ts +0 -386
- package/src/Index.ts +0 -81
- package/src/InternalConstants.ts +0 -16
- package/src/Utils.ts +0 -565
- package/src/ValueSanitizer.ts +0 -285
- /package/{dist-esm/src → dist-es5}/DataModels.js.map +0 -0
package/dist-esm/src/Enums.d.ts
DELETED
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enums.ts
|
|
3
|
-
* @author Abhilash Panwar (abpanwar)
|
|
4
|
-
* @copyright Microsoft 2018
|
|
5
|
-
* File containing the enums as constants.
|
|
6
|
-
*/
|
|
7
|
-
import { _eInternalMessageId } from "@microsoft/applicationinsights-core-js";
|
|
8
|
-
/**
|
|
9
|
-
* The eValueKind contains a set of values that specify value kind of the property.
|
|
10
|
-
* Either PII (Personal Identifiable Information) or customer content.
|
|
11
|
-
*/
|
|
12
|
-
export declare const enum eValueKind {
|
|
13
|
-
/**
|
|
14
|
-
* No kind.
|
|
15
|
-
*/
|
|
16
|
-
NotSet = 0,
|
|
17
|
-
/**
|
|
18
|
-
* An LDAP distinguished name. For example, CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM.
|
|
19
|
-
*/
|
|
20
|
-
Pii_DistinguishedName = 1,
|
|
21
|
-
/**
|
|
22
|
-
* Generic information.
|
|
23
|
-
*/
|
|
24
|
-
Pii_GenericData = 2,
|
|
25
|
-
/**
|
|
26
|
-
* An IPV4 Internet address. For example, 192.0.2.1.
|
|
27
|
-
*/
|
|
28
|
-
Pii_IPV4Address = 3,
|
|
29
|
-
/**
|
|
30
|
-
* An IPV6 Internet address. For example, 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
|
|
31
|
-
*/
|
|
32
|
-
Pii_IPv6Address = 4,
|
|
33
|
-
/**
|
|
34
|
-
* The Subject of an e-mail message.
|
|
35
|
-
*/
|
|
36
|
-
Pii_MailSubject = 5,
|
|
37
|
-
/**
|
|
38
|
-
* A telephone number.
|
|
39
|
-
*/
|
|
40
|
-
Pii_PhoneNumber = 6,
|
|
41
|
-
/**
|
|
42
|
-
* A query string.
|
|
43
|
-
*/
|
|
44
|
-
Pii_QueryString = 7,
|
|
45
|
-
/**
|
|
46
|
-
* An SIP (Session Internet Protocol) address.
|
|
47
|
-
*/
|
|
48
|
-
Pii_SipAddress = 8,
|
|
49
|
-
/**
|
|
50
|
-
* An e-mail address.
|
|
51
|
-
*/
|
|
52
|
-
Pii_SmtpAddress = 9,
|
|
53
|
-
/**
|
|
54
|
-
* An user ID.
|
|
55
|
-
*/
|
|
56
|
-
Pii_Identity = 10,
|
|
57
|
-
/**
|
|
58
|
-
* A URI (Uniform Resource Identifier).
|
|
59
|
-
*/
|
|
60
|
-
Pii_Uri = 11,
|
|
61
|
-
/**
|
|
62
|
-
* The fully-qualified domain name.
|
|
63
|
-
*/
|
|
64
|
-
Pii_Fqdn = 12,
|
|
65
|
-
/**
|
|
66
|
-
* Scrubs the last octet in a IPV4 Internet address.
|
|
67
|
-
* For example: 10.121.227.147 becomes 10.121.227.*
|
|
68
|
-
*/
|
|
69
|
-
Pii_IPV4AddressLegacy = 13,
|
|
70
|
-
/**
|
|
71
|
-
* Generic content.
|
|
72
|
-
*/
|
|
73
|
-
CustomerContent_GenericContent = 32
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* The ValueKind contains a set of values that specify value kind of the property.
|
|
77
|
-
* Either PII (Personal Identifiable Information) or customer content.
|
|
78
|
-
*/
|
|
79
|
-
export declare const ValueKind: import("@microsoft/applicationinsights-core-js").EnumValue<typeof eValueKind>;
|
|
80
|
-
export type ValueKind = number | eValueKind;
|
|
81
|
-
/**
|
|
82
|
-
* The EventLatency contains a set of values that specify the latency with which an event is sent.
|
|
83
|
-
*/
|
|
84
|
-
export declare const enum EventLatencyValue {
|
|
85
|
-
/**
|
|
86
|
-
* Normal latency.
|
|
87
|
-
*/
|
|
88
|
-
Normal = 1,
|
|
89
|
-
/**
|
|
90
|
-
* Cost deferred latency. At the moment this latency is treated as Normal latency.
|
|
91
|
-
*/
|
|
92
|
-
CostDeferred = 2,
|
|
93
|
-
/**
|
|
94
|
-
* Real time latency.
|
|
95
|
-
*/
|
|
96
|
-
RealTime = 3,
|
|
97
|
-
/**
|
|
98
|
-
* Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.
|
|
99
|
-
* Added in v3.1.1
|
|
100
|
-
*/
|
|
101
|
-
Immediate = 4
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* The EventLatency contains a set of values that specify the latency with which an event is sent.
|
|
105
|
-
*/
|
|
106
|
-
export declare const EventLatency: import("@microsoft/applicationinsights-core-js").EnumValue<typeof EventLatencyValue>;
|
|
107
|
-
export type EventLatency = number | EventLatencyValue;
|
|
108
|
-
/**
|
|
109
|
-
* Enum for property types.
|
|
110
|
-
*/
|
|
111
|
-
export declare const enum eEventPropertyType {
|
|
112
|
-
Unspecified = 0,
|
|
113
|
-
String = 1,
|
|
114
|
-
Int32 = 2,
|
|
115
|
-
UInt32 = 3,
|
|
116
|
-
Int64 = 4,
|
|
117
|
-
UInt64 = 5,
|
|
118
|
-
Double = 6,
|
|
119
|
-
Bool = 7,
|
|
120
|
-
Guid = 8,
|
|
121
|
-
DateTime = 9
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Enum for property types.
|
|
125
|
-
*/
|
|
126
|
-
export declare const EventPropertyType: import("@microsoft/applicationinsights-core-js").EnumValue<typeof eEventPropertyType>;
|
|
127
|
-
export type EventPropertyType = number | eEventPropertyType;
|
|
128
|
-
/**
|
|
129
|
-
* The EventPersistence contains a set of values that specify the event's persistence.
|
|
130
|
-
*/
|
|
131
|
-
export declare const enum EventPersistenceValue {
|
|
132
|
-
/**
|
|
133
|
-
* Normal persistence.
|
|
134
|
-
*/
|
|
135
|
-
Normal = 1,
|
|
136
|
-
/**
|
|
137
|
-
* Critical persistence.
|
|
138
|
-
*/
|
|
139
|
-
Critical = 2
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* The EventPersistence contains a set of values that specify the event's persistence.
|
|
143
|
-
*/
|
|
144
|
-
export declare const EventPersistence: import("@microsoft/applicationinsights-core-js").EnumValue<typeof EventPersistenceValue>;
|
|
145
|
-
export type EventPersistence = number | EventPersistenceValue;
|
|
146
|
-
/**
|
|
147
|
-
* Define a specific way to send an event synchronously
|
|
148
|
-
*/
|
|
149
|
-
export declare const enum EventSendType {
|
|
150
|
-
/**
|
|
151
|
-
* Batch and send the event asynchronously, this is the same as either setting the event `sync` flag to false or not setting at all.
|
|
152
|
-
*/
|
|
153
|
-
Batched = 0,
|
|
154
|
-
/**
|
|
155
|
-
* Attempt to send the event synchronously, this is the same as setting the event `sync` flag to true
|
|
156
|
-
*/
|
|
157
|
-
Synchronous = 1,
|
|
158
|
-
/**
|
|
159
|
-
* Attempt to send the event synchronously with a preference for the sendBeacon() API.
|
|
160
|
-
* As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb,
|
|
161
|
-
* the sendHook is also not supported or used when sendBeacon.
|
|
162
|
-
*/
|
|
163
|
-
SendBeacon = 2,
|
|
164
|
-
/**
|
|
165
|
-
* Attempt to send the event synchronously with a preference for the fetch() API with the keepalive flag,
|
|
166
|
-
* the SDK checks to ensure that the fetch() implementation supports the 'keepalive' flag and if not it
|
|
167
|
-
* will fallback to either sendBeacon() or a synchronous XHR request.
|
|
168
|
-
* As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb.
|
|
169
|
-
* Note: Not all browsers support the keepalive flag so for those environments the events may still fail
|
|
170
|
-
*/
|
|
171
|
-
SyncFetch = 3
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* The TraceLevel contains a set of values that specify the trace level for the trace messages.
|
|
175
|
-
*/
|
|
176
|
-
export declare const enum eTraceLevel {
|
|
177
|
-
/**
|
|
178
|
-
* None.
|
|
179
|
-
*/
|
|
180
|
-
NONE = 0,
|
|
181
|
-
/**
|
|
182
|
-
* Error trace.
|
|
183
|
-
*/
|
|
184
|
-
ERROR = 1,
|
|
185
|
-
/**
|
|
186
|
-
* Warning trace.
|
|
187
|
-
*/
|
|
188
|
-
WARNING = 2,
|
|
189
|
-
/**
|
|
190
|
-
* Information trace.
|
|
191
|
-
*/
|
|
192
|
-
INFORMATION = 3
|
|
193
|
-
}
|
|
194
|
-
export declare const TraceLevel: import("@microsoft/applicationinsights-core-js").EnumValue<typeof eTraceLevel>;
|
|
195
|
-
export type TraceLevel = number | eTraceLevel;
|
|
196
|
-
export declare const enum _eExtendedInternalMessageId {
|
|
197
|
-
AuthHandShakeError = 501,
|
|
198
|
-
AuthRedirectFail = 502,
|
|
199
|
-
BrowserCannotReadLocalStorage = 503,
|
|
200
|
-
BrowserCannotWriteLocalStorage = 504,
|
|
201
|
-
BrowserDoesNotSupportLocalStorage = 505,
|
|
202
|
-
CannotParseBiBlobValue = 506,
|
|
203
|
-
CannotParseDataAttribute = 507,
|
|
204
|
-
CVPluginNotAvailable = 508,
|
|
205
|
-
DroppedEvent = 509,
|
|
206
|
-
ErrorParsingAISessionCookie = 510,
|
|
207
|
-
ErrorProvidedChannels = 511,
|
|
208
|
-
FailedToGetCookies = 512,
|
|
209
|
-
FailedToInitializeCorrelationVector = 513,
|
|
210
|
-
FailedToInitializeSDK = 514,
|
|
211
|
-
InvalidContentBlob = 515,
|
|
212
|
-
InvalidCorrelationValue = 516,
|
|
213
|
-
SessionRenewalDateIsZero = 517,
|
|
214
|
-
SendPostOnCompleteFailure = 518,
|
|
215
|
-
PostResponseHandler = 519,
|
|
216
|
-
SDKNotInitialized = 520
|
|
217
|
-
}
|
|
218
|
-
export declare const _ExtendedInternalMessageId: {
|
|
219
|
-
[x: number]: string;
|
|
220
|
-
AuthHandShakeError: _eExtendedInternalMessageId.AuthHandShakeError;
|
|
221
|
-
AuthRedirectFail: _eExtendedInternalMessageId.AuthRedirectFail;
|
|
222
|
-
BrowserCannotReadLocalStorage: _eExtendedInternalMessageId.BrowserCannotReadLocalStorage;
|
|
223
|
-
BrowserCannotWriteLocalStorage: _eExtendedInternalMessageId.BrowserCannotWriteLocalStorage;
|
|
224
|
-
BrowserDoesNotSupportLocalStorage: _eExtendedInternalMessageId.BrowserDoesNotSupportLocalStorage;
|
|
225
|
-
CannotParseBiBlobValue: _eExtendedInternalMessageId.CannotParseBiBlobValue;
|
|
226
|
-
CannotParseDataAttribute: _eExtendedInternalMessageId.CannotParseDataAttribute;
|
|
227
|
-
CVPluginNotAvailable: _eExtendedInternalMessageId.CVPluginNotAvailable;
|
|
228
|
-
DroppedEvent: _eExtendedInternalMessageId.DroppedEvent;
|
|
229
|
-
ErrorParsingAISessionCookie: _eExtendedInternalMessageId.ErrorParsingAISessionCookie;
|
|
230
|
-
ErrorProvidedChannels: _eExtendedInternalMessageId.ErrorProvidedChannels;
|
|
231
|
-
FailedToGetCookies: _eExtendedInternalMessageId.FailedToGetCookies;
|
|
232
|
-
FailedToInitializeCorrelationVector: _eExtendedInternalMessageId.FailedToInitializeCorrelationVector;
|
|
233
|
-
FailedToInitializeSDK: _eExtendedInternalMessageId.FailedToInitializeSDK;
|
|
234
|
-
InvalidContentBlob: _eExtendedInternalMessageId.InvalidContentBlob;
|
|
235
|
-
InvalidCorrelationValue: _eExtendedInternalMessageId.InvalidCorrelationValue;
|
|
236
|
-
SessionRenewalDateIsZero: _eExtendedInternalMessageId.SessionRenewalDateIsZero;
|
|
237
|
-
SendPostOnCompleteFailure: _eExtendedInternalMessageId.SendPostOnCompleteFailure;
|
|
238
|
-
PostResponseHandler: _eExtendedInternalMessageId.PostResponseHandler;
|
|
239
|
-
SDKNotInitialized: _eExtendedInternalMessageId.SDKNotInitialized;
|
|
240
|
-
BrowserCannotReadSessionStorage: _eInternalMessageId.BrowserCannotReadSessionStorage;
|
|
241
|
-
BrowserCannotWriteSessionStorage: _eInternalMessageId.BrowserCannotWriteSessionStorage;
|
|
242
|
-
BrowserFailedRemovalFromLocalStorage: _eInternalMessageId.BrowserFailedRemovalFromLocalStorage;
|
|
243
|
-
BrowserFailedRemovalFromSessionStorage: _eInternalMessageId.BrowserFailedRemovalFromSessionStorage;
|
|
244
|
-
CannotSendEmptyTelemetry: _eInternalMessageId.CannotSendEmptyTelemetry;
|
|
245
|
-
ClientPerformanceMathError: _eInternalMessageId.ClientPerformanceMathError;
|
|
246
|
-
ErrorPVCalc: _eInternalMessageId.ErrorPVCalc;
|
|
247
|
-
ExceptionWhileLoggingError: _eInternalMessageId.ExceptionWhileLoggingError;
|
|
248
|
-
FailedAddingTelemetryToBuffer: _eInternalMessageId.FailedAddingTelemetryToBuffer;
|
|
249
|
-
FailedMonitorAjaxAbort: _eInternalMessageId.FailedMonitorAjaxAbort;
|
|
250
|
-
FailedMonitorAjaxDur: _eInternalMessageId.FailedMonitorAjaxDur;
|
|
251
|
-
FailedMonitorAjaxOpen: _eInternalMessageId.FailedMonitorAjaxOpen;
|
|
252
|
-
FailedMonitorAjaxRSC: _eInternalMessageId.FailedMonitorAjaxRSC;
|
|
253
|
-
FailedMonitorAjaxSend: _eInternalMessageId.FailedMonitorAjaxSend;
|
|
254
|
-
FailedMonitorAjaxGetCorrelationHeader: _eInternalMessageId.FailedMonitorAjaxGetCorrelationHeader;
|
|
255
|
-
FailedToAddHandlerForOnBeforeUnload: _eInternalMessageId.FailedToAddHandlerForOnBeforeUnload;
|
|
256
|
-
FailedToSendQueuedTelemetry: _eInternalMessageId.FailedToSendQueuedTelemetry;
|
|
257
|
-
FailedToReportDataLoss: _eInternalMessageId.FailedToReportDataLoss;
|
|
258
|
-
FlushFailed: _eInternalMessageId.FlushFailed;
|
|
259
|
-
MessageLimitPerPVExceeded: _eInternalMessageId.MessageLimitPerPVExceeded;
|
|
260
|
-
MissingRequiredFieldSpecification: _eInternalMessageId.MissingRequiredFieldSpecification;
|
|
261
|
-
NavigationTimingNotSupported: _eInternalMessageId.NavigationTimingNotSupported;
|
|
262
|
-
OnError: _eInternalMessageId.OnError;
|
|
263
|
-
SenderNotInitialized: _eInternalMessageId.SenderNotInitialized;
|
|
264
|
-
StartTrackEventFailed: _eInternalMessageId.StartTrackEventFailed;
|
|
265
|
-
StopTrackEventFailed: _eInternalMessageId.StopTrackEventFailed;
|
|
266
|
-
StartTrackFailed: _eInternalMessageId.StartTrackFailed;
|
|
267
|
-
StopTrackFailed: _eInternalMessageId.StopTrackFailed;
|
|
268
|
-
TelemetrySampledAndNotSent: _eInternalMessageId.TelemetrySampledAndNotSent;
|
|
269
|
-
TrackEventFailed: _eInternalMessageId.TrackEventFailed;
|
|
270
|
-
TrackExceptionFailed: _eInternalMessageId.TrackExceptionFailed;
|
|
271
|
-
TrackMetricFailed: _eInternalMessageId.TrackMetricFailed;
|
|
272
|
-
TrackPVFailed: _eInternalMessageId.TrackPVFailed;
|
|
273
|
-
TrackPVFailedCalc: _eInternalMessageId.TrackPVFailedCalc;
|
|
274
|
-
TrackTraceFailed: _eInternalMessageId.TrackTraceFailed;
|
|
275
|
-
TransmissionFailed: _eInternalMessageId.TransmissionFailed;
|
|
276
|
-
FailedToSetStorageBuffer: _eInternalMessageId.FailedToSetStorageBuffer;
|
|
277
|
-
FailedToRestoreStorageBuffer: _eInternalMessageId.FailedToRestoreStorageBuffer;
|
|
278
|
-
InvalidBackendResponse: _eInternalMessageId.InvalidBackendResponse;
|
|
279
|
-
FailedToFixDepricatedValues: _eInternalMessageId.FailedToFixDepricatedValues;
|
|
280
|
-
InvalidDurationValue: _eInternalMessageId.InvalidDurationValue;
|
|
281
|
-
TelemetryEnvelopeInvalid: _eInternalMessageId.TelemetryEnvelopeInvalid;
|
|
282
|
-
CreateEnvelopeError: _eInternalMessageId.CreateEnvelopeError;
|
|
283
|
-
CannotSerializeObject: _eInternalMessageId.CannotSerializeObject;
|
|
284
|
-
CannotSerializeObjectNonSerializable: _eInternalMessageId.CannotSerializeObjectNonSerializable;
|
|
285
|
-
CircularReferenceDetected: _eInternalMessageId.CircularReferenceDetected;
|
|
286
|
-
ClearAuthContextFailed: _eInternalMessageId.ClearAuthContextFailed;
|
|
287
|
-
ExceptionTruncated: _eInternalMessageId.ExceptionTruncated;
|
|
288
|
-
IllegalCharsInName: _eInternalMessageId.IllegalCharsInName;
|
|
289
|
-
ItemNotInArray: _eInternalMessageId.ItemNotInArray;
|
|
290
|
-
MaxAjaxPerPVExceeded: _eInternalMessageId.MaxAjaxPerPVExceeded;
|
|
291
|
-
MessageTruncated: _eInternalMessageId.MessageTruncated;
|
|
292
|
-
NameTooLong: _eInternalMessageId.NameTooLong;
|
|
293
|
-
SampleRateOutOfRange: _eInternalMessageId.SampleRateOutOfRange;
|
|
294
|
-
SetAuthContextFailed: _eInternalMessageId.SetAuthContextFailed;
|
|
295
|
-
SetAuthContextFailedAccountName: _eInternalMessageId.SetAuthContextFailedAccountName;
|
|
296
|
-
StringValueTooLong: _eInternalMessageId.StringValueTooLong;
|
|
297
|
-
StartCalledMoreThanOnce: _eInternalMessageId.StartCalledMoreThanOnce;
|
|
298
|
-
StopCalledWithoutStart: _eInternalMessageId.StopCalledWithoutStart;
|
|
299
|
-
TelemetryInitializerFailed: _eInternalMessageId.TelemetryInitializerFailed;
|
|
300
|
-
TrackArgumentsNotSpecified: _eInternalMessageId.TrackArgumentsNotSpecified;
|
|
301
|
-
UrlTooLong: _eInternalMessageId.UrlTooLong;
|
|
302
|
-
SessionStorageBufferFull: _eInternalMessageId.SessionStorageBufferFull;
|
|
303
|
-
CannotAccessCookie: _eInternalMessageId.CannotAccessCookie;
|
|
304
|
-
IdTooLong: _eInternalMessageId.IdTooLong;
|
|
305
|
-
InvalidEvent: _eInternalMessageId.InvalidEvent;
|
|
306
|
-
FailedMonitorAjaxSetRequestHeader: _eInternalMessageId.FailedMonitorAjaxSetRequestHeader;
|
|
307
|
-
SendBrowserInfoOnUserInit: _eInternalMessageId.SendBrowserInfoOnUserInit;
|
|
308
|
-
PluginException: _eInternalMessageId.PluginException;
|
|
309
|
-
NotificationException: _eInternalMessageId.NotificationException;
|
|
310
|
-
SnippetScriptLoadFailure: _eInternalMessageId.SnippetScriptLoadFailure;
|
|
311
|
-
InvalidInstrumentationKey: _eInternalMessageId.InvalidInstrumentationKey;
|
|
312
|
-
CannotParseAiBlobValue: _eInternalMessageId.CannotParseAiBlobValue;
|
|
313
|
-
TrackPageActionEventFailed: _eInternalMessageId.TrackPageActionEventFailed;
|
|
314
|
-
FailedAddingCustomDefinedRequestContext: _eInternalMessageId.FailedAddingCustomDefinedRequestContext;
|
|
315
|
-
InMemoryStorageBufferFull: _eInternalMessageId.InMemoryStorageBufferFull;
|
|
316
|
-
InstrumentationKeyDeprecation: _eInternalMessageId.InstrumentationKeyDeprecation;
|
|
317
|
-
};
|
|
318
|
-
export type _ExtendedInternalMessageId = number | _eExtendedInternalMessageId | _eInternalMessageId;
|
|
319
|
-
export declare const enum GuidStyle {
|
|
320
|
-
Numeric = "N",
|
|
321
|
-
Digits = "D",
|
|
322
|
-
Braces = "B",
|
|
323
|
-
Parentheses = "P"
|
|
324
|
-
}
|
|
325
|
-
export declare const enum FieldValueSanitizerType {
|
|
326
|
-
NotSet = 0,
|
|
327
|
-
String = 1,
|
|
328
|
-
Number = 2,
|
|
329
|
-
Boolean = 3,
|
|
330
|
-
Object = 4,
|
|
331
|
-
Array = 4096,
|
|
332
|
-
EventProperty = 8192
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* An enumeration that identifies the transport type that are requested to be used, if the requested
|
|
336
|
-
* transport is not available ir supported the SDK may choose the first available transport or it
|
|
337
|
-
* will log a warning to the diagnostic logger.
|
|
338
|
-
*/
|
|
339
|
-
export declare const enum TransportType {
|
|
340
|
-
/**
|
|
341
|
-
* Use the default available api
|
|
342
|
-
*/
|
|
343
|
-
NotSet = 0,
|
|
344
|
-
/**
|
|
345
|
-
* Use XMLHttpRequest or XMLDomainRequest if available
|
|
346
|
-
*/
|
|
347
|
-
Xhr = 1,
|
|
348
|
-
/**
|
|
349
|
-
* Use the Fetch api if available
|
|
350
|
-
*/
|
|
351
|
-
Fetch = 2,
|
|
352
|
-
/**
|
|
353
|
-
* Use sendBeacon api if available
|
|
354
|
-
*/
|
|
355
|
-
Beacon = 3
|
|
356
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Enums.js.map","sources":["Enums.js"],"sourcesContent":["/**\r\n* Enums.ts\r\n* @author Abhilash Panwar (abpanwar)\r\n* @copyright Microsoft 2018\r\n* File containing the enums as constants.\r\n*/\r\nimport { __assign } from \"tslib\";\r\nimport { _InternalMessageId, createEnumStyle, objFreeze } from \"@microsoft/applicationinsights-core-js\";\r\n/**\r\n * The ValueKind contains a set of values that specify value kind of the property.\r\n * Either PII (Personal Identifiable Information) or customer content.\r\n */\r\nexport var ValueKind = createEnumStyle({\r\n NotSet: 0 /* eValueKind.NotSet */,\r\n Pii_DistinguishedName: 1 /* eValueKind.Pii_DistinguishedName */,\r\n Pii_GenericData: 2 /* eValueKind.Pii_GenericData */,\r\n Pii_IPV4Address: 3 /* eValueKind.Pii_IPV4Address */,\r\n Pii_IPv6Address: 4 /* eValueKind.Pii_IPv6Address */,\r\n Pii_MailSubject: 5 /* eValueKind.Pii_MailSubject */,\r\n Pii_PhoneNumber: 6 /* eValueKind.Pii_PhoneNumber */,\r\n Pii_QueryString: 7 /* eValueKind.Pii_QueryString */,\r\n Pii_SipAddress: 8 /* eValueKind.Pii_SipAddress */,\r\n Pii_SmtpAddress: 9 /* eValueKind.Pii_SmtpAddress */,\r\n Pii_Identity: 10 /* eValueKind.Pii_Identity */,\r\n Pii_Uri: 11 /* eValueKind.Pii_Uri */,\r\n Pii_Fqdn: 12 /* eValueKind.Pii_Fqdn */,\r\n Pii_IPV4AddressLegacy: 13 /* eValueKind.Pii_IPV4AddressLegacy */,\r\n CustomerContent_GenericContent: 32 /* eValueKind.CustomerContent_GenericContent */\r\n});\r\n/**\r\n * The EventLatency contains a set of values that specify the latency with which an event is sent.\r\n */\r\nexport var EventLatency = createEnumStyle({\r\n /**\r\n * Normal latency.\r\n */\r\n Normal: 1 /* EventLatencyValue.Normal */,\r\n /**\r\n * Cost deferred latency. At the moment this latency is treated as Normal latency.\r\n */\r\n CostDeferred: 2 /* EventLatencyValue.CostDeferred */,\r\n /**\r\n * Real time latency.\r\n */\r\n RealTime: 3 /* EventLatencyValue.RealTime */,\r\n /**\r\n * Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.\r\n * Added in v3.1.1\r\n */\r\n Immediate: 4 /* EventLatencyValue.Immediate */\r\n});\r\n/**\r\n * Enum for property types.\r\n */\r\nexport var EventPropertyType = createEnumStyle({\r\n Unspecified: 0 /* eEventPropertyType.Unspecified */,\r\n String: 1 /* eEventPropertyType.String */,\r\n Int32: 2 /* eEventPropertyType.Int32 */,\r\n UInt32: 3 /* eEventPropertyType.UInt32 */,\r\n Int64: 4 /* eEventPropertyType.Int64 */,\r\n UInt64: 5 /* eEventPropertyType.UInt64 */,\r\n Double: 6 /* eEventPropertyType.Double */,\r\n Bool: 7 /* eEventPropertyType.Bool */,\r\n Guid: 8 /* eEventPropertyType.Guid */,\r\n DateTime: 9 /* eEventPropertyType.DateTime */\r\n});\r\n/**\r\n * The EventPersistence contains a set of values that specify the event's persistence.\r\n */\r\nexport var EventPersistence = createEnumStyle({\r\n /**\r\n * Normal persistence.\r\n */\r\n Normal: 1 /* EventPersistenceValue.Normal */,\r\n /**\r\n * Critical persistence.\r\n */\r\n Critical: 2 /* EventPersistenceValue.Critical */\r\n});\r\nexport var TraceLevel = createEnumStyle({\r\n NONE: 0 /* eTraceLevel.NONE */,\r\n ERROR: 1 /* eTraceLevel.ERROR */,\r\n WARNING: 2 /* eTraceLevel.WARNING */,\r\n INFORMATION: 3 /* eTraceLevel.INFORMATION */\r\n});\r\nexport var _ExtendedInternalMessageId = objFreeze(__assign(__assign({}, _InternalMessageId), createEnumStyle({\r\n AuthHandShakeError: 501 /* _eExtendedInternalMessageId.AuthHandShakeError */,\r\n AuthRedirectFail: 502 /* _eExtendedInternalMessageId.AuthRedirectFail */,\r\n BrowserCannotReadLocalStorage: 503 /* _eExtendedInternalMessageId.BrowserCannotReadLocalStorage */,\r\n BrowserCannotWriteLocalStorage: 504 /* _eExtendedInternalMessageId.BrowserCannotWriteLocalStorage */,\r\n BrowserDoesNotSupportLocalStorage: 505 /* _eExtendedInternalMessageId.BrowserDoesNotSupportLocalStorage */,\r\n CannotParseBiBlobValue: 506 /* _eExtendedInternalMessageId.CannotParseBiBlobValue */,\r\n CannotParseDataAttribute: 507 /* _eExtendedInternalMessageId.CannotParseDataAttribute */,\r\n CVPluginNotAvailable: 508 /* _eExtendedInternalMessageId.CVPluginNotAvailable */,\r\n DroppedEvent: 509 /* _eExtendedInternalMessageId.DroppedEvent */,\r\n ErrorParsingAISessionCookie: 510 /* _eExtendedInternalMessageId.ErrorParsingAISessionCookie */,\r\n ErrorProvidedChannels: 511 /* _eExtendedInternalMessageId.ErrorProvidedChannels */,\r\n FailedToGetCookies: 512 /* _eExtendedInternalMessageId.FailedToGetCookies */,\r\n FailedToInitializeCorrelationVector: 513 /* _eExtendedInternalMessageId.FailedToInitializeCorrelationVector */,\r\n FailedToInitializeSDK: 514 /* _eExtendedInternalMessageId.FailedToInitializeSDK */,\r\n InvalidContentBlob: 515 /* _eExtendedInternalMessageId.InvalidContentBlob */,\r\n InvalidCorrelationValue: 516 /* _eExtendedInternalMessageId.InvalidCorrelationValue */,\r\n SessionRenewalDateIsZero: 517 /* _eExtendedInternalMessageId.SessionRenewalDateIsZero */,\r\n SendPostOnCompleteFailure: 518 /* _eExtendedInternalMessageId.SendPostOnCompleteFailure */,\r\n PostResponseHandler: 519 /* _eExtendedInternalMessageId.PostResponseHandler */,\r\n SDKNotInitialized: 520 /* _eExtendedInternalMessageId.SDKNotInitialized */\r\n})));\r\n//# sourceMappingURL=Enums.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8EAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-esm/src/Index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Index.ts
|
|
3
|
-
* @author Abhilash Panwar (abpanwar)
|
|
4
|
-
* @copyright Microsoft 2018
|
|
5
|
-
* File to export public classes, interfaces and enums.
|
|
6
|
-
*/
|
|
7
|
-
import { ValueKind, EventLatency, EventPersistence, TraceLevel, EventPropertyType, _ExtendedInternalMessageId, _eExtendedInternalMessageId, GuidStyle, FieldValueSanitizerType, TransportType, EventLatencyValue, EventPersistenceValue, EventSendType } from "./Enums";
|
|
8
|
-
import { IExtendedConfiguration, IPropertyStorageOverride, IEventProperty, IExtendedTelemetryItem, IExtendedAppInsightsCore, IEventTiming, IValueSanitizer, FieldValueSanitizerFunc, IFieldSanitizerDetails, IFieldValueSanitizerProvider, FieldValueSanitizerTypes } from "./DataModels";
|
|
9
|
-
import AppInsightsCore from "./AppInsightsCore";
|
|
10
|
-
import BaseCore from "./BaseCore";
|
|
11
|
-
import ESPromise, { ESPromiseOnResolvedFunc, ESPromiseOnRejectedFunc, ResolverResolveFunc, ResolverRejectFunc } from "./ESPromise";
|
|
12
|
-
import ESPromiseScheduler, { ESPromiseSchedulerEvent } from "./ESPromiseScheduler";
|
|
13
|
-
import { ValueSanitizer } from "./ValueSanitizer";
|
|
14
|
-
export { ValueKind, IExtendedConfiguration, IPropertyStorageOverride, EventLatency, EventPersistence, TraceLevel, IEventProperty, IExtendedTelemetryItem, TransportType, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, _eExtendedInternalMessageId, IExtendedAppInsightsCore, EventPropertyType, IEventTiming, ESPromise, ESPromiseOnResolvedFunc, ESPromiseOnRejectedFunc, ResolverResolveFunc, ResolverRejectFunc, ESPromiseScheduler, ESPromiseSchedulerEvent, GuidStyle, FieldValueSanitizerFunc, FieldValueSanitizerType, FieldValueSanitizerTypes, IFieldSanitizerDetails, IFieldValueSanitizerProvider, IValueSanitizer, ValueSanitizer, EventLatencyValue, EventPersistenceValue, EventSendType };
|
|
15
|
-
export { IAppInsightsCore, IChannelControls, IPlugin, INotificationManager, NotificationManager, INotificationListener, IConfiguration, ITelemetryItem, ITelemetryPlugin, BaseTelemetryPlugin, IProcessTelemetryContext, ProcessTelemetryContext, ITelemetryPluginChain, MinChannelPriorty, EventsDiscardedReason, ICoreUtils, IDiagnosticLogger, DiagnosticLogger, LoggingSeverity, SendRequestReason, IPerfEvent, IPerfManager, IPerfManagerProvider, PerfEvent, PerfManager, doPerf, ICustomProperties, Tags, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, eLoggingSeverity, _eInternalMessageId, _throwInternal, _warnToConsole, _logInternalMessage, isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, randomValue, random32, ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, _IRegisteredEvents, __getRegisteredEvents, TelemetryInitializerFunction, ITelemetryInitializerHandler, ITelemetryInitializerContainer, createProcessTelemetryContext, IProcessTelemetryUnloadContext, UnloadHandler, IUnloadHandlerContainer, ITelemetryUnloadState, createUnloadHandlerContainer, TelemetryUnloadReason, ITelemetryUpdateState, IUnloadableComponent, IDistributedTraceContext, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "@microsoft/applicationinsights-core-js";
|
|
16
|
-
export { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking
|
|
17
|
-
Utils, // Replacement for import * as Utils from "./Utils";
|
|
18
|
-
isChromium, // Replace with ai-core version once published in ai-core
|
|
19
|
-
openXhr } from "./Utils";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Index.js.map","sources":["Index.js"],"sourcesContent":["/**\r\n * Index.ts\r\n * @author Abhilash Panwar (abpanwar)\r\n * @copyright Microsoft 2018\r\n * File to export public classes, interfaces and enums.\r\n */\r\nimport { ValueKind, EventLatency, EventPersistence, TraceLevel, EventPropertyType, _ExtendedInternalMessageId } from \"./Enums\";\r\nimport AppInsightsCore from \"./AppInsightsCore\";\r\nimport BaseCore from \"./BaseCore\";\r\nimport ESPromise from \"./ESPromise\";\r\nimport ESPromiseScheduler from \"./ESPromiseScheduler\";\r\nimport { ValueSanitizer } from \"./ValueSanitizer\";\r\nexport { ValueKind, EventLatency, EventPersistence, TraceLevel, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, EventPropertyType, ESPromise, ESPromiseScheduler, ValueSanitizer };\r\nexport { NotificationManager, BaseTelemetryPlugin, ProcessTelemetryContext, MinChannelPriorty, EventsDiscardedReason, DiagnosticLogger, LoggingSeverity, PerfEvent, PerfManager, doPerf, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, _throwInternal, _warnToConsole, _logInternalMessage, \r\n// The HelperFuncs functions\r\nisTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, \r\n// EnvUtils\r\ngetGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, \r\n// Random\r\nrandomValue, random32, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, \r\n// Aliases\r\ntoISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, __getRegisteredEvents, createProcessTelemetryContext, createUnloadHandlerContainer, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"@microsoft/applicationinsights-core-js\";\r\nexport { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking\r\nUtils, // Replacement for import * as Utils from \"./Utils\";\r\nisChromium, // Replace with ai-core version once published in ai-core\r\nopenXhr } from \"./Utils\";\r\n//# sourceMappingURL=Index.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const STR_EMPTY = "";
|
|
2
|
-
export declare const STR_DEFAULT_ENDPOINT_URL = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
|
|
3
|
-
export declare const STR_PLUGIN_VERSION_STRING = "pluginVersionString";
|
|
4
|
-
export declare const STR_PLUGIN_VERSION_STRING_ARR: "pluginVersionStringArr";
|
|
5
|
-
export declare const STR_VERSION = "version";
|
|
6
|
-
export declare const STR_PROPERTIES = "properties";
|
package/dist-esm/src/Utils.d.ts
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utils.ts
|
|
3
|
-
* @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)
|
|
4
|
-
* @copyright Microsoft 2018
|
|
5
|
-
* File containing utility functions.
|
|
6
|
-
*/
|
|
7
|
-
import { ICookieMgr, ICoreUtils, ITelemetryItem, addEventHandler, addPageUnloadEventListener, areCookiesSupported, arrForEach, arrIndexOf, arrMap, arrReduce, isBeaconsSupported, isBoolean, isFunction, isNumber, isObject, isReactNative, isString, objDefineAccessors, objForEachKey, objKeys, perfNow, strEndsWith, strTrim, toISOString, uaDisallowsSameSiteNone, useXDomainRequest } from "@microsoft/applicationinsights-core-js";
|
|
8
|
-
import { IEventProperty } from "./DataModels";
|
|
9
|
-
import { EventLatency, FieldValueSanitizerType, GuidStyle } from "./Enums";
|
|
10
|
-
export declare const Version = "3.2.12";
|
|
11
|
-
export declare const FullVersionString: string;
|
|
12
|
-
/**
|
|
13
|
-
* Checks if document object is available
|
|
14
|
-
*/
|
|
15
|
-
export declare var isDocumentObjectAvailable: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if window object is available
|
|
18
|
-
*/
|
|
19
|
-
export declare var isWindowObjectAvailable: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Checks if value is assigned to the given param.
|
|
22
|
-
* @param value - The token from which the tenant id is to be extracted.
|
|
23
|
-
* @returns True/false denoting if value is assigned to the param.
|
|
24
|
-
*/
|
|
25
|
-
export declare function isValueAssigned(value: any): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Gets the tenant id from the tenant token.
|
|
28
|
-
* @param apiKey - The token from which the tenant id is to be extracted.
|
|
29
|
-
* @returns The tenant id.
|
|
30
|
-
*/
|
|
31
|
-
export declare function getTenantId(apiKey: string | undefined): string;
|
|
32
|
-
/**
|
|
33
|
-
* Checks if Uint8Array are available in the current environment. Safari and Firefox along with
|
|
34
|
-
* ReactNative are known to not support Uint8Array properly.
|
|
35
|
-
* @returns True if available, false otherwise.
|
|
36
|
-
*/
|
|
37
|
-
export declare function isUint8ArrayAvailable(): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Checks if the value is a valid EventLatency.
|
|
40
|
-
* @param value - The value that needs to be checked.
|
|
41
|
-
* @returns True if the value is in AWTEventLatency, false otherwise.
|
|
42
|
-
*/
|
|
43
|
-
export declare function isLatency(value: EventLatency | undefined): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Sanitizes the Property. It checks the that the property name and value are valid. It also
|
|
46
|
-
* checks/populates the correct type and pii of the property value.
|
|
47
|
-
* @param name - property name - The property name.
|
|
48
|
-
* @param property - The property value or an IEventProperty containing value,
|
|
49
|
-
* type ,pii and customer content.
|
|
50
|
-
* @returns IEventProperty containing valid name, value, pii and type or null if invalid.
|
|
51
|
-
*/
|
|
52
|
-
export declare function sanitizeProperty(name: string, property: string | number | boolean | string[] | number[] | boolean[] | object | IEventProperty, stringifyObjects?: boolean): IEventProperty | null;
|
|
53
|
-
export declare function getCommonSchemaMetaData(value: string | boolean | number | string[] | number[] | boolean[] | undefined, kind: number | undefined, type?: number | undefined): number;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated - Use the core.getCookieMgr().disable()
|
|
56
|
-
* Force the SDK not to store and read any data from cookies.
|
|
57
|
-
* Overriding the applicationinsights-core version for tree-shaking
|
|
58
|
-
*/
|
|
59
|
-
export declare function disableCookies(): void;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated - Use the oneDs.getCookieMgr().set()
|
|
62
|
-
* Sets the value of a cookie.
|
|
63
|
-
* @param name - Cookie name.
|
|
64
|
-
* @param value - Cookie value.
|
|
65
|
-
* @param days - Expiration days.
|
|
66
|
-
*/
|
|
67
|
-
export declare function setCookie(name: string, value: string, days: number): void;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated - Use the oneDs.getCookieMgr().del()
|
|
70
|
-
* Deletes a cookie, by setting its expiration to -1.
|
|
71
|
-
* @param name - Cookie name to delete.
|
|
72
|
-
*/
|
|
73
|
-
export declare function deleteCookie(name: string): void;
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated - Use the oneDs.getCookieMgr().get()
|
|
76
|
-
* Gets the cookie value for the specified cookie.
|
|
77
|
-
* if value is k1=v1&k2==v2 then will return 'v1' for key 'k1'
|
|
78
|
-
* @param cookieName - Cookie name.
|
|
79
|
-
*/
|
|
80
|
-
export declare function getCookie(name: string): string;
|
|
81
|
-
/**
|
|
82
|
-
* Helper to get and decode the cookie value using decodeURIComponent, this is for historical
|
|
83
|
-
* backward compatibility where the document.cookie value was decoded before parsing.
|
|
84
|
-
* @param cookieMgr - The cookie manager to use
|
|
85
|
-
* @param name - The name of the cookie to get
|
|
86
|
-
* @param decode - A flag to indicate whether the cookie value should be decoded
|
|
87
|
-
* @returns The decoded cookie value (if available) otherwise an empty string.
|
|
88
|
-
*/
|
|
89
|
-
export declare function getCookieValue(cookieMgr: ICookieMgr, name: string, decode?: boolean): string;
|
|
90
|
-
/**
|
|
91
|
-
* Create a new guid.
|
|
92
|
-
* @param style - The style of guid to generated, defaults to Digits
|
|
93
|
-
* Digits (Default) : 32 digits separated by hyphens: 00000000-0000-0000-0000-000000000000
|
|
94
|
-
* Braces - 32 digits separated by hyphens, enclosed in braces: {00000000-0000-0000-0000-000000000000}
|
|
95
|
-
* Parentheses - 32 digits separated by hyphens, enclosed in parentheses: (00000000-0000-0000-0000-000000000000)
|
|
96
|
-
* Numeric - 32 digits: 00000000000000000000000000000000
|
|
97
|
-
* @returns The formatted guid.
|
|
98
|
-
*/
|
|
99
|
-
export declare function createGuid(style?: GuidStyle): string;
|
|
100
|
-
/**
|
|
101
|
-
* Pass in the objects to merge as arguments.
|
|
102
|
-
* @param obj1 - object to merge. Set this argument to 'true' for a deep extend.
|
|
103
|
-
* @param obj2 - object to merge.
|
|
104
|
-
* @param obj3 - object to merge.
|
|
105
|
-
* @param obj4 - object to merge.
|
|
106
|
-
* @param obj5 - object to merge.
|
|
107
|
-
* @returns The extended object.
|
|
108
|
-
*/
|
|
109
|
-
export declare function extend(obj?: any, obj2?: any, obj3?: any, obj4?: any, obj5?: any): any;
|
|
110
|
-
export declare let getTime: typeof perfNow;
|
|
111
|
-
export declare function isValueKind(value: number | undefined): boolean;
|
|
112
|
-
export declare function isArrayValid(value: any[]): boolean;
|
|
113
|
-
export declare function setProcessTelemetryTimings(event: ITelemetryItem, identifier: string): void;
|
|
114
|
-
/**
|
|
115
|
-
* Returns a bitwise value for the FieldValueSanitizerType enum representing the decoded type of the passed value
|
|
116
|
-
* @param value The value to determine the type
|
|
117
|
-
*/
|
|
118
|
-
export declare function getFieldValueType(value: any): FieldValueSanitizerType;
|
|
119
|
-
export declare const Utils: {
|
|
120
|
-
Version: string;
|
|
121
|
-
FullVersionString: string;
|
|
122
|
-
strUndefined: string;
|
|
123
|
-
strObject: string;
|
|
124
|
-
Undefined: string;
|
|
125
|
-
arrForEach: typeof arrForEach;
|
|
126
|
-
arrIndexOf: typeof arrIndexOf;
|
|
127
|
-
arrMap: typeof arrMap;
|
|
128
|
-
arrReduce: typeof arrReduce;
|
|
129
|
-
objKeys: typeof objKeys;
|
|
130
|
-
toISOString: typeof toISOString;
|
|
131
|
-
isReactNative: typeof isReactNative;
|
|
132
|
-
isString: typeof isString;
|
|
133
|
-
isNumber: typeof isNumber;
|
|
134
|
-
isBoolean: typeof isBoolean;
|
|
135
|
-
isFunction: typeof isFunction;
|
|
136
|
-
isArray: <T = any>(obj: any) => obj is T[];
|
|
137
|
-
isObject: typeof isObject;
|
|
138
|
-
strTrim: typeof strTrim;
|
|
139
|
-
isDocumentObjectAvailable: boolean;
|
|
140
|
-
isWindowObjectAvailable: boolean;
|
|
141
|
-
isValueAssigned: typeof isValueAssigned;
|
|
142
|
-
getTenantId: typeof getTenantId;
|
|
143
|
-
isBeaconsSupported: typeof isBeaconsSupported;
|
|
144
|
-
isUint8ArrayAvailable: typeof isUint8ArrayAvailable;
|
|
145
|
-
isLatency: typeof isLatency;
|
|
146
|
-
sanitizeProperty: typeof sanitizeProperty;
|
|
147
|
-
getISOString: typeof toISOString;
|
|
148
|
-
useXDomainRequest: typeof useXDomainRequest;
|
|
149
|
-
getCommonSchemaMetaData: typeof getCommonSchemaMetaData;
|
|
150
|
-
cookieAvailable: typeof areCookiesSupported;
|
|
151
|
-
disallowsSameSiteNone: typeof uaDisallowsSameSiteNone;
|
|
152
|
-
setCookie: typeof setCookie;
|
|
153
|
-
deleteCookie: typeof deleteCookie;
|
|
154
|
-
getCookie: typeof getCookie;
|
|
155
|
-
createGuid: typeof createGuid;
|
|
156
|
-
extend: typeof extend;
|
|
157
|
-
getTime: typeof perfNow;
|
|
158
|
-
isValueKind: typeof isValueKind;
|
|
159
|
-
isArrayValid: typeof isArrayValid;
|
|
160
|
-
objDefineAccessors: typeof objDefineAccessors;
|
|
161
|
-
addPageUnloadEventListener: typeof addPageUnloadEventListener;
|
|
162
|
-
setProcessTelemetryTimings: typeof setProcessTelemetryTimings;
|
|
163
|
-
addEventHandler: typeof addEventHandler;
|
|
164
|
-
getFieldValueType: typeof getFieldValueType;
|
|
165
|
-
strEndsWith: typeof strEndsWith;
|
|
166
|
-
objForEachKey: typeof objForEachKey;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Provides a collection of utility functions, included for backward compatibility with previous releases.
|
|
170
|
-
* @deprecated Marking this instance as deprecated in favor of direct usage of the helper functions
|
|
171
|
-
* as direct usage provides better tree-shaking and minification by avoiding the inclusion of the unused items
|
|
172
|
-
* in your resulting code.
|
|
173
|
-
* Overriding the applicationinsights-core version for tree-shaking
|
|
174
|
-
*/
|
|
175
|
-
export declare const CoreUtils: ICoreUtils;
|
|
176
|
-
/**
|
|
177
|
-
* Helper to identify whether we are running in a chromium based browser environment
|
|
178
|
-
*/
|
|
179
|
-
export declare function isChromium(): boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Create and open an XMLHttpRequest object
|
|
182
|
-
* @param method - The request method
|
|
183
|
-
* @param urlString - The url
|
|
184
|
-
* @param withCredentials - Option flag indicating that credentials should be sent
|
|
185
|
-
* @param disabled - Optional flag indicating that the XHR object should be marked as disabled and not tracked (default is false)
|
|
186
|
-
* @param isSync - Optional flag indicating if the instance should be a synchronous request (defaults to false)
|
|
187
|
-
* @param timeout - Optional value identifying the timeout value that should be assigned to the XHR request
|
|
188
|
-
* @returns A new opened XHR request
|
|
189
|
-
*/
|
|
190
|
-
export declare function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled?: boolean, isSync?: boolean, timeout?: number): XMLHttpRequest;
|