@microsoft/1ds-core-js 3.2.11 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundle/es5/ms.core-4.0.0.gbl.js +6221 -0
- package/bundle/es5/ms.core-4.0.0.gbl.js.map +1 -0
- package/bundle/es5/ms.core-4.0.0.gbl.min.js +7 -0
- package/bundle/es5/ms.core-4.0.0.gbl.min.js.map +1 -0
- package/bundle/es5/ms.core-4.0.0.integrity.json +46 -0
- package/bundle/es5/ms.core-4.0.0.js +6225 -0
- package/bundle/es5/ms.core-4.0.0.js.map +1 -0
- package/bundle/es5/ms.core-4.0.0.min.js +7 -0
- package/bundle/es5/ms.core-4.0.0.min.js.map +1 -0
- package/bundle/es5/ms.core.gbl.js +6221 -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 +6225 -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 +3790 -2967
- 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 +39 -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 +1106 -0
- package/types/1ds-core-js.namespaced.d.ts +1102 -0
- package/bundle/ms.core-3.2.11.gbl.js +0 -5378
- package/bundle/ms.core-3.2.11.gbl.js.map +0 -1
- package/bundle/ms.core-3.2.11.gbl.min.js +0 -7
- package/bundle/ms.core-3.2.11.gbl.min.js.map +0 -1
- package/bundle/ms.core-3.2.11.integrity.json +0 -46
- package/bundle/ms.core-3.2.11.js +0 -5381
- package/bundle/ms.core-3.2.11.js.map +0 -1
- package/bundle/ms.core-3.2.11.min.js +0 -7
- package/bundle/ms.core-3.2.11.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/src/Enums.ts
DELETED
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enums.ts
|
|
3
|
-
* @author Abhilash Panwar (abpanwar)
|
|
4
|
-
* @copyright Microsoft 2018
|
|
5
|
-
* File containing the enums as constants.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { _InternalMessageId, _eInternalMessageId, createEnumStyle, objFreeze } from "@microsoft/applicationinsights-core-js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The eValueKind contains a set of values that specify value kind of the property.
|
|
12
|
-
* Either PII (Personal Identifiable Information) or customer content.
|
|
13
|
-
*/
|
|
14
|
-
export const enum eValueKind {
|
|
15
|
-
/**
|
|
16
|
-
* No kind.
|
|
17
|
-
*/
|
|
18
|
-
NotSet = 0,
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* An LDAP distinguished name. For example, CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM.
|
|
22
|
-
*/
|
|
23
|
-
Pii_DistinguishedName = 1,
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Generic information.
|
|
27
|
-
*/
|
|
28
|
-
Pii_GenericData = 2,
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* An IPV4 Internet address. For example, 192.0.2.1.
|
|
32
|
-
*/
|
|
33
|
-
Pii_IPV4Address = 3,
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* An IPV6 Internet address. For example, 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
|
|
37
|
-
*/
|
|
38
|
-
Pii_IPv6Address = 4,
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The Subject of an e-mail message.
|
|
42
|
-
*/
|
|
43
|
-
Pii_MailSubject = 5,
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* A telephone number.
|
|
47
|
-
*/
|
|
48
|
-
Pii_PhoneNumber = 6,
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* A query string.
|
|
52
|
-
*/
|
|
53
|
-
Pii_QueryString = 7,
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* An SIP (Session Internet Protocol) address.
|
|
57
|
-
*/
|
|
58
|
-
Pii_SipAddress = 8,
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* An e-mail address.
|
|
62
|
-
*/
|
|
63
|
-
Pii_SmtpAddress = 9,
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* An user ID.
|
|
67
|
-
*/
|
|
68
|
-
Pii_Identity = 10,
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* A URI (Uniform Resource Identifier).
|
|
72
|
-
*/
|
|
73
|
-
Pii_Uri = 11,
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* The fully-qualified domain name.
|
|
77
|
-
*/
|
|
78
|
-
Pii_Fqdn = 12,
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Scrubs the last octet in a IPV4 Internet address.
|
|
82
|
-
* For example: 10.121.227.147 becomes 10.121.227.*
|
|
83
|
-
*/
|
|
84
|
-
Pii_IPV4AddressLegacy = 13,
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Generic content.
|
|
88
|
-
*/
|
|
89
|
-
CustomerContent_GenericContent = 32
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* The ValueKind contains a set of values that specify value kind of the property.
|
|
94
|
-
* Either PII (Personal Identifiable Information) or customer content.
|
|
95
|
-
*/
|
|
96
|
-
export const ValueKind = createEnumStyle<typeof eValueKind>({
|
|
97
|
-
NotSet: eValueKind.NotSet,
|
|
98
|
-
Pii_DistinguishedName: eValueKind.Pii_DistinguishedName,
|
|
99
|
-
Pii_GenericData: eValueKind.Pii_GenericData,
|
|
100
|
-
Pii_IPV4Address: eValueKind.Pii_IPV4Address,
|
|
101
|
-
Pii_IPv6Address: eValueKind.Pii_IPv6Address,
|
|
102
|
-
Pii_MailSubject: eValueKind.Pii_MailSubject,
|
|
103
|
-
Pii_PhoneNumber: eValueKind.Pii_PhoneNumber,
|
|
104
|
-
Pii_QueryString: eValueKind.Pii_QueryString,
|
|
105
|
-
Pii_SipAddress: eValueKind.Pii_SipAddress,
|
|
106
|
-
Pii_SmtpAddress: eValueKind.Pii_SmtpAddress,
|
|
107
|
-
Pii_Identity: eValueKind.Pii_Identity,
|
|
108
|
-
Pii_Uri: eValueKind.Pii_Uri,
|
|
109
|
-
Pii_Fqdn: eValueKind.Pii_Fqdn,
|
|
110
|
-
Pii_IPV4AddressLegacy: eValueKind.Pii_IPV4AddressLegacy,
|
|
111
|
-
CustomerContent_GenericContent: eValueKind.CustomerContent_GenericContent
|
|
112
|
-
});
|
|
113
|
-
export type ValueKind = number | eValueKind
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The EventLatency contains a set of values that specify the latency with which an event is sent.
|
|
117
|
-
*/
|
|
118
|
-
export const enum EventLatencyValue {
|
|
119
|
-
/**
|
|
120
|
-
* Normal latency.
|
|
121
|
-
*/
|
|
122
|
-
Normal = 1,
|
|
123
|
-
/**
|
|
124
|
-
* Cost deferred latency. At the moment this latency is treated as Normal latency.
|
|
125
|
-
*/
|
|
126
|
-
CostDeferred = 2,
|
|
127
|
-
/**
|
|
128
|
-
* Real time latency.
|
|
129
|
-
*/
|
|
130
|
-
RealTime = 3,
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.
|
|
134
|
-
* Added in v3.1.1
|
|
135
|
-
*/
|
|
136
|
-
Immediate = 4
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The EventLatency contains a set of values that specify the latency with which an event is sent.
|
|
141
|
-
*/
|
|
142
|
-
export const EventLatency = createEnumStyle<typeof EventLatencyValue>({
|
|
143
|
-
/**
|
|
144
|
-
* Normal latency.
|
|
145
|
-
*/
|
|
146
|
-
Normal: EventLatencyValue.Normal,
|
|
147
|
-
/**
|
|
148
|
-
* Cost deferred latency. At the moment this latency is treated as Normal latency.
|
|
149
|
-
*/
|
|
150
|
-
CostDeferred: EventLatencyValue.CostDeferred,
|
|
151
|
-
/**
|
|
152
|
-
* Real time latency.
|
|
153
|
-
*/
|
|
154
|
-
RealTime: EventLatencyValue.RealTime,
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.
|
|
158
|
-
* Added in v3.1.1
|
|
159
|
-
*/
|
|
160
|
-
Immediate: EventLatencyValue.Immediate
|
|
161
|
-
});
|
|
162
|
-
export type EventLatency = number | EventLatencyValue
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Enum for property types.
|
|
166
|
-
*/
|
|
167
|
-
export const enum eEventPropertyType {
|
|
168
|
-
Unspecified = 0,
|
|
169
|
-
String = 1,
|
|
170
|
-
Int32 = 2,
|
|
171
|
-
UInt32 = 3,
|
|
172
|
-
Int64 = 4,
|
|
173
|
-
UInt64 = 5,
|
|
174
|
-
Double = 6,
|
|
175
|
-
Bool = 7,
|
|
176
|
-
Guid = 8,
|
|
177
|
-
DateTime = 9
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Enum for property types.
|
|
182
|
-
*/
|
|
183
|
-
export const EventPropertyType = createEnumStyle<typeof eEventPropertyType>({
|
|
184
|
-
Unspecified: eEventPropertyType.Unspecified,
|
|
185
|
-
String: eEventPropertyType.String,
|
|
186
|
-
Int32: eEventPropertyType.Int32,
|
|
187
|
-
UInt32: eEventPropertyType.UInt32,
|
|
188
|
-
Int64: eEventPropertyType.Int64,
|
|
189
|
-
UInt64: eEventPropertyType.UInt64,
|
|
190
|
-
Double: eEventPropertyType.Double,
|
|
191
|
-
Bool: eEventPropertyType.Bool,
|
|
192
|
-
Guid: eEventPropertyType.Guid,
|
|
193
|
-
DateTime: eEventPropertyType.DateTime
|
|
194
|
-
});
|
|
195
|
-
export type EventPropertyType = number | eEventPropertyType
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* The EventPersistence contains a set of values that specify the event's persistence.
|
|
199
|
-
*/
|
|
200
|
-
export const enum EventPersistenceValue {
|
|
201
|
-
/**
|
|
202
|
-
* Normal persistence.
|
|
203
|
-
*/
|
|
204
|
-
Normal = 1,
|
|
205
|
-
/**
|
|
206
|
-
* Critical persistence.
|
|
207
|
-
*/
|
|
208
|
-
Critical = 2
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* The EventPersistence contains a set of values that specify the event's persistence.
|
|
213
|
-
*/
|
|
214
|
-
export const EventPersistence = createEnumStyle<typeof EventPersistenceValue>({
|
|
215
|
-
/**
|
|
216
|
-
* Normal persistence.
|
|
217
|
-
*/
|
|
218
|
-
Normal: EventPersistenceValue.Normal,
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Critical persistence.
|
|
222
|
-
*/
|
|
223
|
-
Critical: EventPersistenceValue.Critical
|
|
224
|
-
});
|
|
225
|
-
export type EventPersistence = number | EventPersistenceValue;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Define a specific way to send an event synchronously
|
|
229
|
-
*/
|
|
230
|
-
export const enum EventSendType {
|
|
231
|
-
/**
|
|
232
|
-
* Batch and send the event asynchronously, this is the same as either setting the event `sync` flag to false or not setting at all.
|
|
233
|
-
*/
|
|
234
|
-
Batched = 0, // For backward compatibility numeric 0 === false as a numeric
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Attempt to send the event synchronously, this is the same as setting the event `sync` flag to true
|
|
238
|
-
*/
|
|
239
|
-
Synchronous = 1, // For backward compatibility numeric 1 === true as a numeric
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Attempt to send the event synchronously with a preference for the sendBeacon() API.
|
|
243
|
-
* As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb,
|
|
244
|
-
* the sendHook is also not supported or used when sendBeacon.
|
|
245
|
-
*/
|
|
246
|
-
SendBeacon = 2,
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Attempt to send the event synchronously with a preference for the fetch() API with the keepalive flag,
|
|
250
|
-
* the SDK checks to ensure that the fetch() implementation supports the 'keepalive' flag and if not it
|
|
251
|
-
* will fallback to either sendBeacon() or a synchronous XHR request.
|
|
252
|
-
* As per the specification, the payload of the event (when converted to JSON) must not be larger than 64kb.
|
|
253
|
-
* Note: Not all browsers support the keepalive flag so for those environments the events may still fail
|
|
254
|
-
*/
|
|
255
|
-
SyncFetch = 3
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* The TraceLevel contains a set of values that specify the trace level for the trace messages.
|
|
260
|
-
*/
|
|
261
|
-
export const enum eTraceLevel {
|
|
262
|
-
/**
|
|
263
|
-
* None.
|
|
264
|
-
*/
|
|
265
|
-
NONE = 0,
|
|
266
|
-
/**
|
|
267
|
-
* Error trace.
|
|
268
|
-
*/
|
|
269
|
-
ERROR = 1,
|
|
270
|
-
/**
|
|
271
|
-
* Warning trace.
|
|
272
|
-
*/
|
|
273
|
-
WARNING = 2,
|
|
274
|
-
/**
|
|
275
|
-
* Information trace.
|
|
276
|
-
*/
|
|
277
|
-
INFORMATION = 3
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export const TraceLevel = createEnumStyle<typeof eTraceLevel>({
|
|
281
|
-
NONE: eTraceLevel.NONE,
|
|
282
|
-
ERROR: eTraceLevel.ERROR,
|
|
283
|
-
WARNING: eTraceLevel.WARNING,
|
|
284
|
-
INFORMATION: eTraceLevel.INFORMATION,
|
|
285
|
-
});
|
|
286
|
-
export type TraceLevel = number | eTraceLevel;
|
|
287
|
-
|
|
288
|
-
export const enum _eExtendedInternalMessageId {
|
|
289
|
-
AuthHandShakeError = 501,
|
|
290
|
-
AuthRedirectFail = 502,
|
|
291
|
-
BrowserCannotReadLocalStorage = 503,
|
|
292
|
-
BrowserCannotWriteLocalStorage = 504,
|
|
293
|
-
BrowserDoesNotSupportLocalStorage = 505,
|
|
294
|
-
CannotParseBiBlobValue = 506,
|
|
295
|
-
CannotParseDataAttribute = 507,
|
|
296
|
-
CVPluginNotAvailable = 508,
|
|
297
|
-
DroppedEvent = 509,
|
|
298
|
-
ErrorParsingAISessionCookie = 510,
|
|
299
|
-
ErrorProvidedChannels = 511,
|
|
300
|
-
FailedToGetCookies = 512,
|
|
301
|
-
FailedToInitializeCorrelationVector = 513,
|
|
302
|
-
FailedToInitializeSDK = 514,
|
|
303
|
-
InvalidContentBlob = 515,
|
|
304
|
-
InvalidCorrelationValue = 516,
|
|
305
|
-
SessionRenewalDateIsZero = 517,
|
|
306
|
-
SendPostOnCompleteFailure = 518,
|
|
307
|
-
PostResponseHandler = 519,
|
|
308
|
-
SDKNotInitialized = 520
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export const _ExtendedInternalMessageId = objFreeze({
|
|
312
|
-
..._InternalMessageId,
|
|
313
|
-
...createEnumStyle<typeof _eExtendedInternalMessageId>({
|
|
314
|
-
AuthHandShakeError: _eExtendedInternalMessageId.AuthHandShakeError,
|
|
315
|
-
AuthRedirectFail: _eExtendedInternalMessageId.AuthRedirectFail,
|
|
316
|
-
BrowserCannotReadLocalStorage: _eExtendedInternalMessageId.BrowserCannotReadLocalStorage,
|
|
317
|
-
BrowserCannotWriteLocalStorage: _eExtendedInternalMessageId.BrowserCannotWriteLocalStorage,
|
|
318
|
-
BrowserDoesNotSupportLocalStorage: _eExtendedInternalMessageId.BrowserDoesNotSupportLocalStorage,
|
|
319
|
-
CannotParseBiBlobValue: _eExtendedInternalMessageId.CannotParseBiBlobValue,
|
|
320
|
-
CannotParseDataAttribute: _eExtendedInternalMessageId.CannotParseDataAttribute,
|
|
321
|
-
CVPluginNotAvailable: _eExtendedInternalMessageId.CVPluginNotAvailable,
|
|
322
|
-
DroppedEvent: _eExtendedInternalMessageId.DroppedEvent,
|
|
323
|
-
ErrorParsingAISessionCookie: _eExtendedInternalMessageId.ErrorParsingAISessionCookie,
|
|
324
|
-
ErrorProvidedChannels: _eExtendedInternalMessageId.ErrorProvidedChannels,
|
|
325
|
-
FailedToGetCookies: _eExtendedInternalMessageId.FailedToGetCookies,
|
|
326
|
-
FailedToInitializeCorrelationVector: _eExtendedInternalMessageId.FailedToInitializeCorrelationVector,
|
|
327
|
-
FailedToInitializeSDK: _eExtendedInternalMessageId.FailedToInitializeSDK,
|
|
328
|
-
InvalidContentBlob: _eExtendedInternalMessageId.InvalidContentBlob,
|
|
329
|
-
InvalidCorrelationValue: _eExtendedInternalMessageId.InvalidCorrelationValue,
|
|
330
|
-
SessionRenewalDateIsZero: _eExtendedInternalMessageId.SessionRenewalDateIsZero,
|
|
331
|
-
SendPostOnCompleteFailure: _eExtendedInternalMessageId.SendPostOnCompleteFailure,
|
|
332
|
-
PostResponseHandler: _eExtendedInternalMessageId.PostResponseHandler,
|
|
333
|
-
SDKNotInitialized: _eExtendedInternalMessageId.SDKNotInitialized
|
|
334
|
-
})});
|
|
335
|
-
export type _ExtendedInternalMessageId = number | _eExtendedInternalMessageId | _eInternalMessageId;
|
|
336
|
-
|
|
337
|
-
// Following the format styles as defined by .Net (https://docs.microsoft.com/en-us/dotnet/api/system.guid.tostring?view=netcore-3.1)
|
|
338
|
-
export const enum GuidStyle {
|
|
339
|
-
Numeric = "N", // 'N' - 32 digits,
|
|
340
|
-
Digits = "D", // 'D' - 32 digits separated by hyphens,
|
|
341
|
-
Braces = "B", // 'B' - 32 digits separated by hyphens, enclosed in braces,
|
|
342
|
-
Parentheses = "P" // 'P' 32 digits separated by hyphens, enclosed in parentheses
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
export const enum FieldValueSanitizerType {
|
|
346
|
-
NotSet = 0x00,
|
|
347
|
-
|
|
348
|
-
String = 0x01,
|
|
349
|
-
|
|
350
|
-
Number = 0x02,
|
|
351
|
-
|
|
352
|
-
Boolean = 0x03,
|
|
353
|
-
|
|
354
|
-
Object = 0x04,
|
|
355
|
-
|
|
356
|
-
Array = 0x1000,
|
|
357
|
-
|
|
358
|
-
EventProperty = 0x2000
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* An enumeration that identifies the transport type that are requested to be used, if the requested
|
|
363
|
-
* transport is not available ir supported the SDK may choose the first available transport or it
|
|
364
|
-
* will log a warning to the diagnostic logger.
|
|
365
|
-
*/
|
|
366
|
-
export const enum TransportType {
|
|
367
|
-
/**
|
|
368
|
-
* Use the default available api
|
|
369
|
-
*/
|
|
370
|
-
NotSet = 0,
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Use XMLHttpRequest or XMLDomainRequest if available
|
|
374
|
-
*/
|
|
375
|
-
Xhr = 1,
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Use the Fetch api if available
|
|
379
|
-
*/
|
|
380
|
-
Fetch = 2,
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Use sendBeacon api if available
|
|
384
|
-
*/
|
|
385
|
-
Beacon = 3
|
|
386
|
-
}
|
package/src/Index.ts
DELETED
|
@@ -1,81 +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 {
|
|
8
|
-
ValueKind, EventLatency, EventPersistence, TraceLevel, EventPropertyType, _ExtendedInternalMessageId, _eExtendedInternalMessageId, GuidStyle, FieldValueSanitizerType,
|
|
9
|
-
TransportType, EventLatencyValue, EventPersistenceValue, EventSendType
|
|
10
|
-
} from "./Enums";
|
|
11
|
-
import {
|
|
12
|
-
IExtendedConfiguration, IPropertyStorageOverride,
|
|
13
|
-
IEventProperty, IExtendedTelemetryItem, IExtendedAppInsightsCore, IEventTiming,
|
|
14
|
-
IValueSanitizer, FieldValueSanitizerFunc, IFieldSanitizerDetails, IFieldValueSanitizerProvider,
|
|
15
|
-
FieldValueSanitizerTypes
|
|
16
|
-
} from "./DataModels";
|
|
17
|
-
import AppInsightsCore from "./AppInsightsCore";
|
|
18
|
-
import BaseCore from "./BaseCore";
|
|
19
|
-
import ESPromise, { ESPromiseOnResolvedFunc, ESPromiseOnRejectedFunc, ResolverResolveFunc, ResolverRejectFunc } from "./ESPromise";
|
|
20
|
-
import ESPromiseScheduler, { ESPromiseSchedulerEvent } from "./ESPromiseScheduler";
|
|
21
|
-
import { ValueSanitizer } from "./ValueSanitizer";
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
ValueKind, IExtendedConfiguration, IPropertyStorageOverride,
|
|
25
|
-
EventLatency, EventPersistence, TraceLevel, IEventProperty, IExtendedTelemetryItem, TransportType,
|
|
26
|
-
AppInsightsCore, BaseCore, _ExtendedInternalMessageId, _eExtendedInternalMessageId, IExtendedAppInsightsCore, EventPropertyType,
|
|
27
|
-
IEventTiming, ESPromise, ESPromiseOnResolvedFunc, ESPromiseOnRejectedFunc, ResolverResolveFunc,
|
|
28
|
-
ResolverRejectFunc, ESPromiseScheduler, ESPromiseSchedulerEvent, GuidStyle,
|
|
29
|
-
FieldValueSanitizerFunc, FieldValueSanitizerType, FieldValueSanitizerTypes, IFieldSanitizerDetails,
|
|
30
|
-
IFieldValueSanitizerProvider, IValueSanitizer, ValueSanitizer,
|
|
31
|
-
EventLatencyValue, EventPersistenceValue, EventSendType
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
IAppInsightsCore, IChannelControls, IPlugin, INotificationManager, NotificationManager, INotificationListener,
|
|
36
|
-
IConfiguration, ITelemetryItem, ITelemetryPlugin, BaseTelemetryPlugin, IProcessTelemetryContext, ProcessTelemetryContext, ITelemetryPluginChain,
|
|
37
|
-
MinChannelPriorty, EventsDiscardedReason, ICoreUtils, IDiagnosticLogger, DiagnosticLogger, LoggingSeverity, SendRequestReason,
|
|
38
|
-
IPerfEvent, IPerfManager, IPerfManagerProvider, PerfEvent, PerfManager, doPerf, ICustomProperties, Tags,
|
|
39
|
-
EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId,
|
|
40
|
-
createEnumStyle, eLoggingSeverity, _eInternalMessageId, _throwInternal, _warnToConsole, _logInternalMessage,
|
|
41
|
-
// The HelperFuncs functions
|
|
42
|
-
isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName,
|
|
43
|
-
objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean,
|
|
44
|
-
toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError,
|
|
45
|
-
setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject,
|
|
46
|
-
objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal,
|
|
47
|
-
// EnvUtils
|
|
48
|
-
getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto,
|
|
49
|
-
hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON,
|
|
50
|
-
isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction,
|
|
51
|
-
setEnableEnvMocks, strUndefined as Undefined,
|
|
52
|
-
// Random
|
|
53
|
-
randomValue, random32,
|
|
54
|
-
// Cookie Handling
|
|
55
|
-
ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone,
|
|
56
|
-
areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr,
|
|
57
|
-
// Aliases
|
|
58
|
-
toISOString as getISOString,
|
|
59
|
-
isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest,
|
|
60
|
-
addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener,
|
|
61
|
-
removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace,
|
|
62
|
-
createUniqueNamespace,
|
|
63
|
-
_IRegisteredEvents, __getRegisteredEvents,
|
|
64
|
-
TelemetryInitializerFunction, ITelemetryInitializerHandler, ITelemetryInitializerContainer,
|
|
65
|
-
createProcessTelemetryContext,
|
|
66
|
-
IProcessTelemetryUnloadContext, UnloadHandler, IUnloadHandlerContainer, ITelemetryUnloadState, createUnloadHandlerContainer, TelemetryUnloadReason,
|
|
67
|
-
ITelemetryUpdateState, IUnloadableComponent,
|
|
68
|
-
IDistributedTraceContext, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent
|
|
69
|
-
} from "@microsoft/applicationinsights-core-js";
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty,
|
|
73
|
-
Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue,
|
|
74
|
-
extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable,
|
|
75
|
-
setProcessTelemetryTimings, getTime,
|
|
76
|
-
isArrayValid, isValueKind, getFieldValueType,
|
|
77
|
-
CoreUtils, disableCookies, // exporting the overridden version for tree-shaking
|
|
78
|
-
Utils, // Replacement for import * as Utils from "./Utils";
|
|
79
|
-
isChromium, // Replace with ai-core version once published in ai-core
|
|
80
|
-
openXhr
|
|
81
|
-
} from "./Utils";
|
package/src/InternalConstants.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
5
|
-
// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
|
|
6
|
-
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
7
|
-
|
|
8
|
-
// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)
|
|
9
|
-
// as when using "short" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.
|
|
10
|
-
|
|
11
|
-
export const STR_EMPTY = "";
|
|
12
|
-
export const STR_DEFAULT_ENDPOINT_URL = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
|
|
13
|
-
export const STR_PLUGIN_VERSION_STRING = "pluginVersionString";
|
|
14
|
-
export const STR_PLUGIN_VERSION_STRING_ARR = STR_PLUGIN_VERSION_STRING + "Arr" as "pluginVersionStringArr";
|
|
15
|
-
export const STR_VERSION = "version";
|
|
16
|
-
export const STR_PROPERTIES = "properties";
|