@microsoft/power-apps-cli 0.5.3 → 0.5.4

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 (109) hide show
  1. package/lib/Verbs/AddDataSource.js +19 -13
  2. package/lib/Verbs/AddDataSource.js.map +1 -1
  3. package/lib/Verbs/DeleteDataSource.js +3 -3
  4. package/lib/Verbs/DeleteDataSource.js.map +1 -1
  5. package/lib/Verbs/Init.d.ts.map +1 -1
  6. package/lib/Verbs/Init.js +20 -0
  7. package/lib/Verbs/Init.js.map +1 -1
  8. package/lib-cjs/Verbs/AddDataSource.js +38 -43
  9. package/lib-cjs/Verbs/AddDataSource.js.map +1 -1
  10. package/lib-cjs/Verbs/DeleteDataSource.js +11 -19
  11. package/lib-cjs/Verbs/DeleteDataSource.js.map +1 -1
  12. package/lib-cjs/Verbs/Init.d.ts.map +1 -1
  13. package/lib-cjs/Verbs/Init.js +39 -8
  14. package/lib-cjs/Verbs/Init.js.map +1 -1
  15. package/node_modules/@microsoft/1ds-properties-js/README.md +193 -0
  16. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js +4844 -0
  17. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js.map +1 -0
  18. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js +7 -0
  19. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js.map +1 -0
  20. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.integrity.json +46 -0
  21. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js +4848 -0
  22. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js.map +1 -0
  23. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js +7 -0
  24. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js.map +1 -0
  25. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js +4844 -0
  26. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js.map +1 -0
  27. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js +7 -0
  28. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js.map +1 -0
  29. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.integrity.json +46 -0
  30. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js +4848 -0
  31. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js.map +1 -0
  32. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js +7 -0
  33. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js.map +1 -0
  34. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js +4827 -0
  35. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js.map +1 -0
  36. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js +7 -0
  37. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js.map +1 -0
  38. package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js +13 -0
  39. package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js.map +1 -0
  40. package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js +95 -0
  41. package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js.map +1 -0
  42. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js +16 -0
  43. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js.map +1 -0
  44. package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js +30 -0
  45. package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js.map +1 -0
  46. package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js +200 -0
  47. package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js.map +1 -0
  48. package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js +168 -0
  49. package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js.map +1 -0
  50. package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js +286 -0
  51. package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js.map +1 -0
  52. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js +106 -0
  53. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js.map +1 -0
  54. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js +178 -0
  55. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js.map +1 -0
  56. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js +17 -0
  57. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js.map +1 -0
  58. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js +17 -0
  59. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js.map +1 -0
  60. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js +58 -0
  61. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js.map +1 -0
  62. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js +29 -0
  63. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js.map +1 -0
  64. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js +176 -0
  65. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js.map +1 -0
  66. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js +71 -0
  67. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js.map +1 -0
  68. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js +47 -0
  69. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js.map +1 -0
  70. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js +36 -0
  71. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js.map +1 -0
  72. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js +102 -0
  73. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js.map +1 -0
  74. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js +64 -0
  75. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js.map +1 -0
  76. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js +274 -0
  77. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js.map +1 -0
  78. package/node_modules/@microsoft/1ds-properties-js/package.json +65 -0
  79. package/node_modules/@microsoft/1ds-properties-js/tsconfig.json +27 -0
  80. package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.d.ts +706 -0
  81. package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.namespaced.d.ts +2908 -0
  82. package/node_modules/@microsoft/powerapps-data/package.json +1 -1
  83. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js +31 -25
  84. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js.map +1 -1
  85. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts +6 -4
  86. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts.map +1 -1
  87. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js +11 -5
  88. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js.map +1 -1
  89. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js +3 -3
  90. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js.map +1 -1
  91. package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts +16 -11
  92. package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts.map +1 -1
  93. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js +1 -1
  94. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js.map +1 -1
  95. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js +104 -86
  96. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js.map +1 -1
  97. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts +6 -4
  98. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts.map +1 -1
  99. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js +26 -4
  100. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js.map +1 -1
  101. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js +52 -46
  102. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js.map +1 -1
  103. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts +16 -11
  104. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts.map +1 -1
  105. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js +1 -1
  106. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js.map +1 -1
  107. package/node_modules/@microsoft/powerapps-player-actions/package.json +1 -1
  108. package/node_modules/@pa-client/powerapps-player-services/package.json +69 -69
  109. package/package.json +5 -3
@@ -0,0 +1,706 @@
1
+ /*
2
+ * 1DS JS SDK Properties plugin, 4.3.9
3
+ * Copyright (c) Microsoft and contributors. All rights reserved.
4
+ *
5
+ * Javascript Telemetry SDKs <TelReachSDK@microsoft.com>
6
+ * https://eng.ms/docs/products/geneva/collect/instrument/1ds/javascriptsdk/getting-started
7
+ *
8
+ * ---------------------------------------------------------------------------
9
+ * This is a single combined (rollup) declaration file for the package,
10
+ * if you require a namespace wrapped version it is also available.
11
+ * - Namespaced version: types/1ds-properties-js.namespaced.d.ts
12
+ * ---------------------------------------------------------------------------
13
+ */
14
+
15
+ import { BaseTelemetryPlugin } from '@microsoft/1ds-core-js';
16
+ import { GuidStyle } from '@microsoft/1ds-core-js';
17
+ import { IAppInsightsCore } from '@microsoft/1ds-core-js';
18
+ import { IDistributedTraceContext } from '@microsoft/1ds-core-js';
19
+ import { IEventProperty } from '@microsoft/1ds-core-js';
20
+ import { IExtendedConfiguration } from '@microsoft/1ds-core-js';
21
+ import { IPlugin } from '@microsoft/1ds-core-js';
22
+ import { IProcessTelemetryContext } from '@microsoft/1ds-core-js';
23
+ import { ITelemetryItem } from '@microsoft/1ds-core-js';
24
+ import { IUnloadHookContainer } from '@microsoft/applicationinsights-core-js';
25
+
26
+ export declare const AppExtensionKeys: {
27
+ id: "id";
28
+ ver: "ver";
29
+ appName: "name";
30
+ locale: "locale";
31
+ expId: "expId";
32
+ env: "env";
33
+ 0: "id";
34
+ 1: "ver";
35
+ 2: "name";
36
+ 3: "locale";
37
+ 4: "expId";
38
+ 5: "env";
39
+ };
40
+
41
+ export declare class Application implements IAppContext {
42
+ /**
43
+ * Validate each flight id in appExpId against the app flight ID format and create
44
+ * a comma seperated appExpId with valid flight ids.Ignore invalid flight IDs
45
+ * @param appExpId - The current experiment id
46
+ * @param appExpIdNew - The new experiment id to set (if valid)
47
+ * @param flightIdNameSpaces - The valid set of flight id names
48
+ * @returns The validated experiment id,
49
+ */
50
+ static validateAppExpId: (appExpIdNew: string, flightIdNameSpaces?: string[]) => string;
51
+ /**
52
+ * Static constructor, attempt to create accessors
53
+ */
54
+ // private static _staticInit;
55
+ /**
56
+ * The application ID.
57
+ */
58
+ id?: string;
59
+ /**
60
+ * The application version.
61
+ */
62
+ ver?: string;
63
+ /**
64
+ * The application name.
65
+ */
66
+ name?: string;
67
+ /**
68
+ * The application locale.
69
+ */
70
+ locale?: string;
71
+ /**
72
+ * The application environment.
73
+ */
74
+ env?: string;
75
+ /**
76
+ * Returns the application experiment Id.
77
+ * Note: This property will NOT exist in ES3/IE8 environment, if you need IE8 compatibility
78
+ * use the method {@link Application#getExpId} from your code. For ES5+ environment this will be replaced with a
79
+ * property getter only.
80
+ */
81
+ expId?: string;
82
+ constructor(propertiesConfig: IPropertyConfiguration, core?: IAppInsightsCore, unloadHookContainer?: IUnloadHookContainer);
83
+ /**
84
+ * The application experiment Id.
85
+ */
86
+ getExpId(): string;
87
+ }
88
+
89
+ /**
90
+ * Cloud.ts
91
+ * @author Hector Hernandez (hectorh)
92
+ * @copyright Microsoft 2020
93
+ */
94
+ export declare class Cloud {
95
+ /**
96
+ * Role of the service. Role is used to identify the component's name.
97
+ */
98
+ role?: string;
99
+ /**
100
+ * The instance id of the deployed role instance generating the event. In most cases, roleInstance is a computer name.
101
+ */
102
+ roleInstance?: string;
103
+ /**
104
+ * The build version of the role.
105
+ */
106
+ roleVer?: string;
107
+ }
108
+
109
+ export declare const CloudExtKeys: {
110
+ role: "role";
111
+ roleInstance: "roleInstance";
112
+ roleVer: "roleVer";
113
+ 0: "role";
114
+ 1: "roleInstance";
115
+ 2: "roleVer";
116
+ };
117
+
118
+ export declare const defaultFlightIdNameSpaces: string[];
119
+
120
+ export declare class Device implements IDeviceContext {
121
+ /**
122
+ * Device local ID.
123
+ */
124
+ localId?: string;
125
+ /**
126
+ * Device class.
127
+ */
128
+ deviceClass?: string;
129
+ /**
130
+ * Device make.
131
+ */
132
+ make?: string;
133
+ /**
134
+ * Device model.
135
+ */
136
+ model?: string;
137
+ }
138
+
139
+ export declare const DeviceExtKeys: {
140
+ localId: "localId";
141
+ deviceClass: "deviceClass";
142
+ make: "make";
143
+ model: "model";
144
+ 0: "localId";
145
+ 1: "deviceClass";
146
+ 2: "make";
147
+ 3: "model";
148
+ };
149
+
150
+ export declare const enum eAppExtensionKeys {
151
+ id = 0,
152
+ ver = 1,
153
+ appName = 2,
154
+ locale = 3,
155
+ expId = 4,
156
+ env = 5
157
+ }
158
+
159
+ export declare const enum eCloudExtKeys {
160
+ role = 0,
161
+ roleInstance = 1,
162
+ roleVer = 2
163
+ }
164
+
165
+ export declare const enum eDeviceExtKeys {
166
+ localId = 0,
167
+ deviceClass = 1,
168
+ make = 2,
169
+ model = 3
170
+ }
171
+
172
+ /**
173
+ * TelemetryContext.ts
174
+ * @author Hector Hernandez (hectorh)
175
+ * @copyright Microsoft 2019
176
+ */
177
+ export declare const enum eExtensions {
178
+ UserExt = 0,
179
+ DeviceExt = 1,
180
+ TraceExt = 2,
181
+ WebExt = 3,
182
+ AppExt = 4,
183
+ OSExt = 5,
184
+ SdkExt = 6,
185
+ IntWebExt = 7,
186
+ UtcExt = 8,
187
+ LocExt = 9,
188
+ CloudExt = 10,
189
+ DtExt = 11
190
+ }
191
+
192
+ export declare const enum eLocExtKeys {
193
+ tz = 0
194
+ }
195
+
196
+ export declare const enum eOSExtKeys {
197
+ osName = 0,
198
+ ver = 1
199
+ }
200
+
201
+ export declare const enum eUserExtensionKeys {
202
+ locale = 0,
203
+ localId = 1,
204
+ id = 2
205
+ }
206
+
207
+ export declare const enum eWebExtensionKeys {
208
+ domain = 0,
209
+ browser = 1,
210
+ browserVer = 2,
211
+ screenRes = 3,
212
+ userConsent = 4,
213
+ consentDetails = 5
214
+ }
215
+
216
+ export declare const Extensions: {
217
+ UserExt: "user";
218
+ DeviceExt: "device";
219
+ TraceExt: "trace";
220
+ WebExt: "web";
221
+ AppExt: "app";
222
+ OSExt: "os";
223
+ SdkExt: "sdk";
224
+ IntWebExt: "intweb";
225
+ UtcExt: "utc";
226
+ LocExt: "loc";
227
+ CloudExt: "cloud";
228
+ DtExt: "dt";
229
+ 0: "user";
230
+ 1: "device";
231
+ 2: "trace";
232
+ 3: "web";
233
+ 4: "app";
234
+ 5: "os";
235
+ 6: "sdk";
236
+ 7: "intweb";
237
+ 8: "utc";
238
+ 9: "loc";
239
+ 10: "cloud";
240
+ 11: "dt";
241
+ };
242
+
243
+ export declare interface IAppContext {
244
+ /**
245
+ * The application ID.
246
+ */
247
+ id?: string;
248
+ /**
249
+ * The application version.
250
+ */
251
+ ver?: string;
252
+ /**
253
+ * The application name.
254
+ */
255
+ name?: string;
256
+ /**
257
+ * The application locale.
258
+ */
259
+ locale?: string;
260
+ /**
261
+ * The application environment.
262
+ */
263
+ env?: string;
264
+ /**
265
+ * Gets the application experiment Id, this is only available in an ES5+ container (i.e. not available in IE8)
266
+ * The value is the same as calling getExpId() which you should use if your users are running in an ES3 container (browser)
267
+ */
268
+ expId?: string;
269
+ /**
270
+ * Gets the application experiment Id.
271
+ */
272
+ getExpId(): string | undefined;
273
+ }
274
+
275
+ export declare interface IDeviceContext {
276
+ /**
277
+ * Device local ID.
278
+ */
279
+ localId?: string;
280
+ /**
281
+ * Device class.
282
+ */
283
+ deviceClass?: string;
284
+ /**
285
+ * Device make.
286
+ */
287
+ make?: string;
288
+ /**
289
+ * Device model.
290
+ */
291
+ model?: string;
292
+ }
293
+
294
+ export declare interface IOperatingSystemContext {
295
+ /**
296
+ * Operating system name.
297
+ */
298
+ name?: string;
299
+ /**
300
+ * Semantic: major.minor where major and minor are decimal numbers. Indicates the major and minor version of the operating system.
301
+ */
302
+ ver?: string;
303
+ }
304
+
305
+ /**
306
+ * The IPropertyConfiguration interface holds the configuration details passed to PartA module.
307
+ */
308
+ export declare interface IPropertyConfiguration {
309
+ /**
310
+ * Flag to allow client side population of browser information in web extension
311
+ */
312
+ populateBrowserInfo?: boolean;
313
+ /**
314
+ * Flag to allow client side population of os extension
315
+ */
316
+ populateOperatingSystemInfo?: boolean;
317
+ /**
318
+ * A string that contains the user agent parsed for auto collection in
319
+ * case the userAgent can't be obtained from the DOM.
320
+ */
321
+ userAgent?: string;
322
+ /**
323
+ * An override to allow the passing of specific IUserAgentData (brands, platform and mobile), this value defaults to navigator.userAgentData.
324
+ */
325
+ userAgentData?: IUserAgentData;
326
+ /**
327
+ * Names the cookie used by your site to track user consent. Default is "MSCC".
328
+ */
329
+ userConsentCookieName?: string;
330
+ /**
331
+ * @deprecated Use the `callback.userConsentDetails` instead, now always written as false to `ext.web.userConsent`
332
+ * Used to manually set the value of the "userConsent" field
333
+ */
334
+ userConsented?: boolean;
335
+ /**
336
+ * Field to add the name of services or SDKs in the events
337
+ */
338
+ serviceName?: string;
339
+ /**
340
+ * Environment is captured from meta tag. This is used to override the value or bypass defining meta tags.
341
+ */
342
+ env?: string;
343
+ /**
344
+ * Experiment id is captured from the experiment cookie. This is used to override the value or bypass defining meta tags.
345
+ */
346
+ expId?: string;
347
+ /**
348
+ * A session is logged if the user is inactive for this time in milliseconds.
349
+ * Default 30 mins.
350
+ */
351
+ sessionRenewalMs?: number;
352
+ /**
353
+ * A session is logged if it has continued for this time in milliseconds.
354
+ * Default 24h.
355
+ */
356
+ sessionExpirationMs?: number;
357
+ /**
358
+ * Use a guid value to identify the automatic session rather than the 6 digit value, this also defines the format to use
359
+ */
360
+ sessionAsGuid?: boolean | GuidStyle;
361
+ /**
362
+ * Custom cookie domain. This is helpful if you want to share SDK cookies
363
+ * across subdomains.
364
+ */
365
+ cookieDomain?: string;
366
+ /**
367
+ * An optional value that will be used as name postfix for localStorage and cookie name.
368
+ */
369
+ namePrefix?: string;
370
+ /**
371
+ * If enabled all events will have operationId, operationName and operationParentId used by Application Insights for distributed tracing
372
+ */
373
+ enableApplicationInsightsTrace?: boolean;
374
+ /**
375
+ * If enabled AI user cookie is created and all events will have user ID information
376
+ */
377
+ enableApplicationInsightsUser?: boolean;
378
+ /**
379
+ * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}.
380
+ * Hashes the identifiable Part A fields https://osgwiki.com/wiki/CommonSchema/flags
381
+ * ext.user.localId and ext.device.localId need to be hashed if being sent and using "d:" prefix when this setting is enabled
382
+ */
383
+ hashIdentifiers?: boolean;
384
+ /**
385
+ * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}.
386
+ * Removes the identifiable Part A fields https://osgwiki.com/wiki/CommonSchema/flags
387
+ * ext.user.localId and ext.device.localId need use "r:" prefix when if being sent and this setting is enabled
388
+ */
389
+ dropIdentifiers?: boolean;
390
+ /**
391
+ * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}. Collector to scrub `ext.ingest.clientIp`
392
+ * field stamped server-side. This takes precedence over both Hash Identifier and Drop Identifier flags above, so as long as this bit is set,
393
+ * the client IP will be scrubbed as "xxx.xxx.xxx.*" for IPv4 and will not be dropped. The main use case for this flag is Interchange customers
394
+ * that need to use OriginalMessage feature but wish not to have IP info in Geneva data store. For more details on this scenario, please see link
395
+ * here: {@link https://eng.ms/docs/products/geneva/connectors/asimov_to_geneva/management#default-commonschema | 1DS Interchange Default CommonSchema}
396
+ * See also {@link https://www.osgwiki.com/wiki/CommonSchema/flags | CommonSchema/flags}
397
+ * @since 3.2.11 / 4.0.0
398
+ */
399
+ scrubIpOnly?: boolean;
400
+ /**
401
+ * placeholder for callbacks
402
+ */
403
+ callback?: IValueCallback;
404
+ /**
405
+ * [Optional] Identifies the default length used to generate random session and user id's if non currently exists for the user / session.
406
+ * Defaults to 22, previous default value was 5, if you need to keep the previous maximum length you should set this value to 5.
407
+ */
408
+ idLength?: number;
409
+ /**
410
+ * [Optional] Enable adding the distributed tracing values to the envelope (ext.dt)
411
+ */
412
+ enableDistributedTracing?: boolean;
413
+ /**
414
+ * [Optional] A flag which defines whether the properties plugin will override any of the part A 'ext' fields or
415
+ * whether (when `true`) will keep any value provided by the event. `ext.dt` and `ext.trace` always let the event
416
+ * override the default value. Added in v3.2.5
417
+ */
418
+ eventContainExtFields?: boolean;
419
+ /**
420
+ * [Optional] A flag that indicates whether the user has explicitly opted in (CCPA) to data Sharing.
421
+ * This value has 3 possible states
422
+ * - Not specified - Do not add (indirectly implies that they have opted in by default
423
+ * - `true` - The user has explicitly opted in to allow DataSharing
424
+ * - `false` - The user has explicitly opted out to allow DataSharing
425
+ * When specified (`true`/`false`) this will add the `GPC_DataSharingOptIn` property to the `ext.web.consentDetails` sent with
426
+ * every event. If you also have specified a `callback.userConsentDetails` this value will be added to the returned and validated
427
+ * `userConsentDetails`.
428
+ */
429
+ gpcDataSharingOptIn?: boolean;
430
+ /**
431
+ * [Optional] Disable the sanitization of the `ext.web.consentDetails` value returned by the `callback.userConsentDetails`
432
+ * callback. When disabled (`true`) any additional properties included in the returned object will be included, any missing
433
+ * standard properties will still be added.
434
+ */
435
+ disableConsentDetailsSanitize?: boolean;
436
+ }
437
+
438
+ export declare interface ITraceContext {
439
+ /**
440
+ * Trace id
441
+ */
442
+ traceId: string;
443
+ /**
444
+ * Parent id
445
+ */
446
+ parentId: string;
447
+ /**
448
+ * Trace state
449
+ */
450
+ traceState?: any;
451
+ /**
452
+ * An integer representation of the W3C TraceContext trace-flags. https://www.w3.org/TR/trace-context/#trace-flags
453
+ */
454
+ traceFlags?: number;
455
+ /**
456
+ * Name
457
+ */
458
+ name?: string;
459
+ }
460
+
461
+ export declare interface IUserAgentBrand {
462
+ brand: string;
463
+ version: string;
464
+ }
465
+
466
+ export declare interface IUserAgentData {
467
+ brands?: IUserAgentBrand[];
468
+ mobile?: boolean;
469
+ platform?: string;
470
+ }
471
+
472
+ export declare interface IUserContentDetails {
473
+ Required?: boolean;
474
+ Analytics?: boolean;
475
+ SocialMedia?: boolean;
476
+ Advertising?: boolean;
477
+ }
478
+
479
+ export declare interface IUserContext {
480
+ /**
481
+ * The userId as known by the logging library.
482
+ * This property is not available in IE8, use getLocalId() instead
483
+ */
484
+ localId?: string;
485
+ /**
486
+ * Language and region (IETF language tag).
487
+ */
488
+ locale?: string;
489
+ /**
490
+ * UserID used by ApplicationInsights
491
+ */
492
+ id?: string;
493
+ /**
494
+ * The userId as known by the logging library.
495
+ */
496
+ getLocalId(): string | undefined;
497
+ }
498
+
499
+ export declare interface IValueCallback {
500
+ userConsentDetails?: () => IUserContentDetails;
501
+ }
502
+
503
+ export declare interface IWebContext {
504
+ /**
505
+ * Domain of the page.
506
+ */
507
+ domain?: string;
508
+ /**
509
+ * Web browser name.
510
+ */
511
+ browser?: string;
512
+ /**
513
+ * Web browser version.
514
+ */
515
+ browserVer?: string;
516
+ /**
517
+ * Web browser screen resolution.
518
+ */
519
+ screenRes?: string;
520
+ /**
521
+ * Describes whether the user has given consent for Cookies.
522
+ * This is configurable by users to define which cookie to look for marking this flag as true or false.
523
+ * This property is not available in IE8, use getUserConsent() instead
524
+ * v4.3.0 Removed, now always written as false -- use userConsentDetails callback instead
525
+ */
526
+ userConsent?: boolean;
527
+ /**
528
+ * [Optional] A flag that indicates whether the user has explicitly opted in (CCPA) to data Sharing.
529
+ * This value has 3 possible states
530
+ * - Not specified - Do not add (indirectly implies that they have opted in by default
531
+ * - `true` - The user has explicitly opted in to allow DataSharing
532
+ * - `false` - The user has explicitly opted out to allow DataSharing
533
+ * When specified (`true`/`false`) this will add the `GPC_DataSharingOptIn` property to the `ext.web.consentDetails` sent with
534
+ * every event. If you also have specified a `callback.userConsentDetails` this value will be added to the returned and validated
535
+ * `userConsentDetails`.
536
+ * This value is initialized from the properties plugin config.
537
+ */
538
+ gpcDataSharingOptIn?: boolean | null;
539
+ /**
540
+ * function to extract user consent details
541
+ */
542
+ getUserConsentDetails?: () => string;
543
+ /**
544
+ * Describes whether the user has given consent for Cookies.
545
+ * This is configurable by users to define which cookie to look for marking this flag as true or false.
546
+ */
547
+ getUserConsent(): boolean | undefined;
548
+ }
549
+
550
+ /**
551
+ * Loc.ts
552
+ * @author Hector Hernandez (hectorh)
553
+ * @copyright Microsoft 2019
554
+ */
555
+ export declare class Loc {
556
+ /**
557
+ * Time zone on the device (ISO 8601).
558
+ */
559
+ tz: string;
560
+ constructor();
561
+ }
562
+
563
+ export declare const LocExtKeys: {
564
+ tz: "tz";
565
+ 0: "tz";
566
+ };
567
+
568
+ export declare class OperatingSystem implements IOperatingSystemContext {
569
+ /**
570
+ * Operating system name.
571
+ */
572
+ name: string;
573
+ /**
574
+ * Semantic: major.minor where major and minor are decimal numbers. Indicates the major and minor version of the operating system.
575
+ */
576
+ ver: string;
577
+ constructor(propertiesConfig: IPropertyConfiguration, unloadHookContainer?: IUnloadHookContainer);
578
+ }
579
+
580
+ export declare const OSExtKeys: {
581
+ osName: "name";
582
+ ver: "ver";
583
+ 0: "name";
584
+ 1: "ver";
585
+ };
586
+
587
+ export declare class PropertiesPlugin extends BaseTelemetryPlugin {
588
+ identifier: string;
589
+ priority: number;
590
+ version: string;
591
+ constructor();
592
+ initialize(coreConfig: IExtendedConfiguration, core: IAppInsightsCore, extensions: IPlugin[]): void;
593
+ /**
594
+ * Process the event and add part A fields to it.
595
+ * @param event - The event that needs to be stored.
596
+ * @param itemCtx - This is the context for the current request, ITelemetryPlugin instances
597
+ * can optionally use this to access the current core instance or define / pass additional information
598
+ * to later plugins (vs appending items to the telemetry item)
599
+ */
600
+ processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
601
+ /**
602
+ * Get properties context to override or specify specific part A properties
603
+ * @returns the Context
604
+ */
605
+ getPropertiesContext(): TelemetryContext;
606
+ /**
607
+ * Sets a custom property to be sent with every event. IEventProperty can be used to tag the property as
608
+ * pii or customer content.
609
+ * @param name - The name of the property.
610
+ * @param value - The context property's value.
611
+ */
612
+ setProperty(name: string, value: string | number | boolean | string[] | number[] | boolean[] | IEventProperty): void;
613
+ }
614
+
615
+ export declare class Session {
616
+ /**
617
+ * Static constructor, attempt to create accessors
618
+ */
619
+ // private static _staticInit;
620
+ /**
621
+ * Returns or sets the id as known by the logging library.
622
+ * Note: This property will NOT exist in ES3/IE8 environment, if you need IE8 compatibility
623
+ * use the methods {@link Session#getId} and {@link Session#setId} from your code. For ES5+ environment this will be replaced with a
624
+ * property getter only.
625
+ */
626
+ id?: string;
627
+ /**
628
+ * The date at which this guid was genereated.
629
+ * Per the spec the ID will be regenerated if more than acquisitionSpan milliseconds ellapse from this time.
630
+ */
631
+ acquisitionDate?: number;
632
+ /**
633
+ * The date at which this session ID was last reported.
634
+ * This value should be updated whenever telemetry is sent using this ID.
635
+ * Per the spec the ID will be regenerated if more than renewalSpan milliseconds elapse from this time with no activity.
636
+ */
637
+ renewalDate?: number;
638
+ customId: string;
639
+ /**
640
+ * The automatically generated session ID using SessionManager.
641
+ */
642
+ automaticId?: string;
643
+ constructor();
644
+ setId(id: string): void;
645
+ getId(): string;
646
+ }
647
+
648
+ export declare class TelemetryContext {
649
+ app: IAppContext;
650
+ user: IUserContext;
651
+ os: IOperatingSystemContext;
652
+ web: IWebContext;
653
+ session: Session;
654
+ device: Device;
655
+ cloud: Cloud;
656
+ loc: Loc;
657
+ constructor(coreConfig: IExtendedConfiguration, propertiesConfig: IPropertyConfiguration, core: IAppInsightsCore, unloadHookContainer?: IUnloadHookContainer);
658
+ /**
659
+ * Gets the current distributed trace context for this instance if available
660
+ */
661
+ getTraceCtx(): IDistributedTraceContext | null | undefined;
662
+ /**
663
+ * Returns the current session id, if one does not already exist a new one will be attempted to be created.
664
+ * If you have set a specific custom id via session.setId(), this function will return that value.
665
+ */
666
+ getSessionId(): string;
667
+ applyApplicationContext(event: ITelemetryItem): void;
668
+ applyUserContext(event: ITelemetryItem): void;
669
+ applyWebContext(event: ITelemetryItem): void;
670
+ applyOsContext(event: ITelemetryItem): void;
671
+ applySdkContext(event: ITelemetryItem): void;
672
+ applyIntWebContext(event: ITelemetryItem): void;
673
+ applyUtcContext(event: ITelemetryItem): void;
674
+ applyLocContext(event: ITelemetryItem): void;
675
+ applySessionContext(event: ITelemetryItem): void;
676
+ applyDeviceContext(event: ITelemetryItem): void;
677
+ applyCloudContext(event: ITelemetryItem): void;
678
+ applyAITraceContext(event: ITelemetryItem): void;
679
+ applyDistributedTraceContext(event: ITelemetryItem): void;
680
+ }
681
+
682
+ export declare const UserExtensionKeys: {
683
+ locale: "locale";
684
+ localId: "localId";
685
+ id: "id";
686
+ 0: "locale";
687
+ 1: "localId";
688
+ 2: "id";
689
+ };
690
+
691
+ export declare const WebExtensionKeys: {
692
+ domain: "domain";
693
+ browser: "browser";
694
+ browserVer: "browserVer";
695
+ screenRes: "screenRes";
696
+ userConsent: "userConsent";
697
+ consentDetails: "consentDetails";
698
+ 0: "domain";
699
+ 1: "browser";
700
+ 2: "browserVer";
701
+ 3: "screenRes";
702
+ 4: "userConsent";
703
+ 5: "consentDetails";
704
+ };
705
+
706
+ export { }