@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.
- package/lib/Verbs/AddDataSource.js +19 -13
- package/lib/Verbs/AddDataSource.js.map +1 -1
- package/lib/Verbs/DeleteDataSource.js +3 -3
- package/lib/Verbs/DeleteDataSource.js.map +1 -1
- package/lib/Verbs/Init.d.ts.map +1 -1
- package/lib/Verbs/Init.js +20 -0
- package/lib/Verbs/Init.js.map +1 -1
- package/lib-cjs/Verbs/AddDataSource.js +38 -43
- package/lib-cjs/Verbs/AddDataSource.js.map +1 -1
- package/lib-cjs/Verbs/DeleteDataSource.js +11 -19
- package/lib-cjs/Verbs/DeleteDataSource.js.map +1 -1
- package/lib-cjs/Verbs/Init.d.ts.map +1 -1
- package/lib-cjs/Verbs/Init.js +39 -8
- package/lib-cjs/Verbs/Init.js.map +1 -1
- package/node_modules/@microsoft/1ds-properties-js/README.md +193 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js +4844 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js +7 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.integrity.json +46 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js +4848 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js +7 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js +4844 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js +7 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.integrity.json +46 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js +4848 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js +7 -0
- package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js +4827 -0
- package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js +7 -0
- package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js +13 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js +95 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js +16 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js +30 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js +200 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js +168 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js +286 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js +106 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js +178 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js +17 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js +17 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js +58 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js +29 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js +176 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js +71 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js +47 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js +36 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js +102 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js +64 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js +274 -0
- package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js.map +1 -0
- package/node_modules/@microsoft/1ds-properties-js/package.json +65 -0
- package/node_modules/@microsoft/1ds-properties-js/tsconfig.json +27 -0
- package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.d.ts +706 -0
- package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.namespaced.d.ts +2908 -0
- package/node_modules/@microsoft/powerapps-data/package.json +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js +31 -25
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts +6 -4
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js +11 -5
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js +3 -3
- package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts +16 -11
- package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js +104 -86
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts +6 -4
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js +26 -4
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js +52 -46
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts +16 -11
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js.map +1 -1
- package/node_modules/@microsoft/powerapps-player-actions/package.json +1 -1
- package/node_modules/@pa-client/powerapps-player-services/package.json +69 -69
- package/package.json +5 -3
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
ArtifactType: npm package.
|
|
3
|
+
Documentation: https://eng.ms/docs/products/geneva/collect/instrument/1ds/javascriptsdk/getting-started
|
|
4
|
+
Language: typescript
|
|
5
|
+
Platform: various
|
|
6
|
+
Stackoverflow: N/A
|
|
7
|
+
Tags: 1DSJSSDK
|
|
8
|
+
ms.reviewedAt: 02/21/2019
|
|
9
|
+
ms.reviewedBy: ramthi
|
|
10
|
+
---
|
|
11
|
+
# Microsoft 1DS Web SDK Properties Plugin
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
1DS Web SDK Properties Plugin is used to enhance telemetry events, adding following properties:
|
|
15
|
+
|
|
16
|
+
### Part A properties
|
|
17
|
+
|
|
18
|
+
| Property | Description
|
|
19
|
+
|-------------|------------------
|
|
20
|
+
| ver|major.minor where major and minor are decimal numbers. Indicates the major and minor version of the envelope. Major version is only incremented for breaking changes. Minor version changes indicate additive changes.
|
|
21
|
+
|
|
22
|
+
### Part A Extensions
|
|
23
|
+
|
|
24
|
+
#### [sdk](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/sdk.md&_a=preview)
|
|
25
|
+
|
|
26
|
+
| Property | Description
|
|
27
|
+
|-------------|------------------
|
|
28
|
+
| ver|SDK version (major.minor.build.revision).
|
|
29
|
+
| seq|ID incremented for each event.
|
|
30
|
+
| installId|ID created on first-time SDK initialization.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
#### [os](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/os.md&_a=preview)
|
|
34
|
+
|
|
35
|
+
| Property | Description
|
|
36
|
+
|-------------|------------------
|
|
37
|
+
| name|Operating system name.
|
|
38
|
+
| ver|Semantic: major.minor where major and minor are decimal numbers. Indicates the major and minor version of the operating system.
|
|
39
|
+
|
|
40
|
+
#### [web](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/web.md&_a=preview)
|
|
41
|
+
|
|
42
|
+
| Property | Description
|
|
43
|
+
|-------------|------------------
|
|
44
|
+
| domain|Domain of the page.
|
|
45
|
+
| browser|Web browser name.
|
|
46
|
+
| browserVersion|Web browser version.
|
|
47
|
+
| screenRes|Screen resolution.
|
|
48
|
+
| userConsent| From v4.3.0 we now always write this as `false` as the value is now fully deprecated. ~~Describes whether the user has given consent for Cookies.~~
|
|
49
|
+
| consentDetails|User consent details string.
|
|
50
|
+
|
|
51
|
+
#### [intweb](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/intWeb.md&_a=preview)
|
|
52
|
+
|
|
53
|
+
| Property | Description
|
|
54
|
+
|-------------|------------------
|
|
55
|
+
| msfpc|Anonymous visitor Id in hosting domain.
|
|
56
|
+
| anid|ANON - MSA Anonymous ID.
|
|
57
|
+
| serviceName|Service name.
|
|
58
|
+
|
|
59
|
+
#### [utc](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/utc.md&_a=preview)
|
|
60
|
+
|
|
61
|
+
| Property | Description
|
|
62
|
+
|-------------|------------------
|
|
63
|
+
| popSample|The effective sample rate for this event at the time it was generated by a client (either the default value specified in the event definition, the system default or a dynamic override from the Settings Service). The valid range is from a minimum value of one out of every 100 million devices which is "0.000001", all the way up to all devices which is "100". If this field does not exist then you should assume its value is 100.
|
|
64
|
+
| eventFlags|Event flags. (https://osgwiki.com/wiki/CommonSchema/flags)
|
|
65
|
+
|
|
66
|
+
#### [loc](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/loc.md&_a=preview)
|
|
67
|
+
|
|
68
|
+
| Property | Description
|
|
69
|
+
|-------------|------------------
|
|
70
|
+
| tz|Time zone on the device (ISO 8601).
|
|
71
|
+
|
|
72
|
+
#### [user](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/user.md&_a=preview)
|
|
73
|
+
|
|
74
|
+
| Property | Description
|
|
75
|
+
|-------------|------------------
|
|
76
|
+
| localId|The userId as known by telemetry SDK library client-side. Check the wiki on User ID for more detailed information. The format of this string is that it starts with a CSI (prefix and a colon) and then a value. The prefix must be one of the valid [user prefixes..](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/Types/UserId.md&_a=preview)
|
|
77
|
+
| locale|Language and region (IETF language tag).
|
|
78
|
+
|
|
79
|
+
#### [device](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/device.md&_a=preview)
|
|
80
|
+
|
|
81
|
+
| Property | Description
|
|
82
|
+
|-------------|------------------
|
|
83
|
+
| model|The device model.
|
|
84
|
+
| make|The device make.
|
|
85
|
+
| deviceClass|The device class.
|
|
86
|
+
| localId|This is the deviceId as known by the client. A namespace prefix has been added; in 2.0 there was no prefix since this was always the SQM ID. In 2.1 there is always a prefix to indicate which type of device ID is it. The format of this string is that it starts with a CSI (prefix and a colon) and then a value. The prefix must be one of the valid [device prefixes](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/Types/DeviceId.md&_a=preview).
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
#### [app](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/app.md&_a=preview)
|
|
90
|
+
|
|
91
|
+
| Property | Description
|
|
92
|
+
|-------------|------------------
|
|
93
|
+
| id|Unique identifier of the client application currently loaded in the process producing the event; used to group events together and understand usage pattern, errors by application.
|
|
94
|
+
| ver|App version. The version number of the application specified in ClientAppId. Used to understand errors by Version, Usage by Version across an App.
|
|
95
|
+
| name|App name if specified by the app.
|
|
96
|
+
| sesId|Identifier to mark session. Unless overriden, a session cookie will be used to set this value based on 30 min inactivity.
|
|
97
|
+
| locale|App locale (IETF tag, set by app on some platforms).
|
|
98
|
+
| env|The application environment.
|
|
99
|
+
| expId|The application experiment Id.
|
|
100
|
+
|
|
101
|
+
#### [dt](https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/dt.md&_a=preview)
|
|
102
|
+
|
|
103
|
+
Only sent when the `enableDistributedTracing` configuration value is `true`, Since v3.2.3
|
|
104
|
+
|
|
105
|
+
| Property | Description
|
|
106
|
+
|-------------|------------------
|
|
107
|
+
| traceId | A unique identifier for a trace. All spans from the same trace share the same traceId. Must be read from incoming headers or generated according to the [W3C TraceContext specification](https://www.w3.org/TR/trace-context/#trace-id), in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID
|
|
108
|
+
| spanId | Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array.
|
|
109
|
+
| traceFlags | An integer representation of the [W3C TraceContext trace-flags.](https://www.w3.org/TR/trace-context/#trace-flags)
|
|
110
|
+
|
|
111
|
+
## npm
|
|
112
|
+
|
|
113
|
+
Packages available [here](https://msazure.visualstudio.com/One/_artifacts/feed/1ds-sdk-js/Npm/%40microsoft%2F1ds-properties-js/overview/4.3.9).
|
|
114
|
+
|
|
115
|
+
## Basic Usage
|
|
116
|
+
|
|
117
|
+
### Setup
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
import { AppInsightsCore, IExtendedConfiguration } from '@microsoft/1ds-core-js';
|
|
121
|
+
import { PropertiesPlugin, IPropertyConfiguration } from '@microsoft/1ds-properties-js';
|
|
122
|
+
import { PostChannel } from "@microsoft/1ds-post-js";
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
```js
|
|
126
|
+
var appInsightsCore: AppInsightsCore = new AppInsightsCore();
|
|
127
|
+
var propertiesPlugin: PropertiesPlugin = new PropertiesPlugin();
|
|
128
|
+
var postChannel: PostChannel = new PostChannel();
|
|
129
|
+
|
|
130
|
+
var coreConfig: IExtendedConfiguration = {
|
|
131
|
+
instrumentationKey: "YOUR_TENANT_KEY",
|
|
132
|
+
extensions: [
|
|
133
|
+
propertiesPlugin,
|
|
134
|
+
postChannel
|
|
135
|
+
]
|
|
136
|
+
};
|
|
137
|
+
var propertiesPluginConfig: IPropertyConfiguration = {
|
|
138
|
+
userAgent: "Custom User Agent"
|
|
139
|
+
};
|
|
140
|
+
coreConfig.extensionConfig[propertiesPlugin.identifier] = propertiesPluginConfig;
|
|
141
|
+
//Initialize SDK
|
|
142
|
+
appInsightsCore.initialize(coreConfig, []);
|
|
143
|
+
|
|
144
|
+
// Update part A properties for all events
|
|
145
|
+
propertiesPlugin.getPropertiesContext().app.name = "Test App";
|
|
146
|
+
propertiesPlugin.getPropertiesContext().cloud.role = "Test Cloud Role";
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Configuration
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### [IPropertyConfiguration](https://msazure.visualstudio.com/One/_git/1DS.JavaScript?path=/docs/webSdk/typedoc/ext/properties/interfaces/IPropertyConfiguration.md)
|
|
154
|
+
|
|
155
|
+
| Config | Description | Type
|
|
156
|
+
|----------------|----------------------------------------|----
|
|
157
|
+
| populateBrowserInfo |Flag to allow client side population of browser information in web extension.| boolean
|
|
158
|
+
| populateOperatingSystemInfo |Flag to allow client side population of os extension.| boolean
|
|
159
|
+
| userAgent |A string that contains the user agent parsed for auto collection in case the userAgent can't be obtained from the DOM.| string
|
|
160
|
+
| userConsentCookieName |Names the cookie used by your site to track user consent. Default is "MSCC".| string
|
|
161
|
+
| ~~userConsented~~ | From v4.3.0 this field is no longer used and is always written as false. ~~Used to manually set the value of the "userConsent" field.~~| boolean
|
|
162
|
+
| sessionRenewalMs |A session is logged if the user is inactive for this time in milliseconds.Default 30 mins.| number
|
|
163
|
+
| sessionExpirationMs |A session is logged if it has continued for this time in milliseconds.Default 24h.| number
|
|
164
|
+
| sessionAsGuid | Use a guid value to identify the automatic session rather than the 6 digit value, you may also define the Guid Style to use. Defaults is false (no guid) and when true the Guid format is GuildStyle.Digits "00000000-0000-0000-0000-000000000000". | boolean or GuildStyle
|
|
165
|
+
| cookieDomain | Override the global instance cookie domain, It is recommended to set this as part of the primary cookieCfg rather than specifically on the properties configuration to ensure that all cookies are allocated to the same domain. | string
|
|
166
|
+
| serviceName |Field to add the name of services or SDKs in the events.| string
|
|
167
|
+
| env |Environment is captured from meta tag. This is used to override the value or bypass defining meta tags.| string
|
|
168
|
+
| expId |Experiment id is captured from the experiment cookie. This is used to override the value or bypass defining meta tags.| string
|
|
169
|
+
| hashIdentifiers |Hashes the identifiable Part A fields https://osgwiki.com/wiki/CommonSchema/flags, ext.user.localId and ext.device.localId need to be hashed if being sent and using "d:" prefix when this setting is enabled | bool
|
|
170
|
+
| dropIdentifiers |Removes the identifiable Part A fields https://osgwiki.com/wiki/CommonSchema/flags, ext.user.localId and ext.device.localId need use "r:" prefix when if being sent and this setting is enabled | bool
|
|
171
|
+
| callback |Callbacks configuration. | IValueCallback
|
|
172
|
+
| enableDistributedTracing<br /><sub>(Since v3.2.3)</sub> | [Optional] Enable adding the distributed tracing values to the envelope (ext.dt), defaults to false for v3.2.x for backward compatibility this will change in a future release | boolean
|
|
173
|
+
| gpcDataSharingOptIn<br/><sub>(Since v3.2.12 and 4.0.2)</sub> | [Optional] A flag that indicates whether the user has explicitly opted in (CCPA) to data Sharing. This value has 3 possible states<br/> - Not specified - Do not add, indirectly implies that they have opted in by default<br/> - `true` - The user has explicitly opted in to allow DataSharing<br/>- `false` - The user has explicitly opted out to allow DataSharing<br/>When specified (`true`/`false`) this will add the `GPC_DataSharingOptIn` property to the `ext.web.consentDetails` sent with every event. If you also have specified a `callback.userConsentDetails` this value will be added to the returned and validated `userConsentDetails`.<br/>This value may be changed after initialization by `oneDs.getPropertyManager().getPropertiesContext().web.gpcDataSharingOptIn = true;` The values can be `true` / `false` or `null`, do NOT delete the property or set to `undefined.`<br/>With version 4.x and the dynamic configuration changes you can also just update the config `oneDs.core.config.extensionConfig.SystemPropertiesCollector.gpcDataSharingOptIn = true`, the change will take effect on the next JavaScript execution cycle (all dynamic configuration change notifications occur via a setTimeout with 0ms so all changes are batched together), once the change notification is processed the value of `oneDs.getPropertyManager().getPropertyContext().web.gpcDataSharingOptIn` is also changed. | boolean or null
|
|
174
|
+
|
|
175
|
+
### IValueCallback
|
|
176
|
+
|
|
177
|
+
| Config | Description | Type
|
|
178
|
+
|----------------|----------------------------------------|----
|
|
179
|
+
| userConsentDetails |Function to configure user consent details in web extension. | Function
|
|
180
|
+
|
|
181
|
+
## Sample App
|
|
182
|
+
|
|
183
|
+
[React sample App](https://msazure.visualstudio.com/One/_git/1DS.JavaScript?path=/examples/ReactSample/README.md).
|
|
184
|
+
|
|
185
|
+
[React Native sample App](https://msazure.visualstudio.com/One/_git/1DS.JavaScript.SampleApps.ReactNative?path=%2FREADME.md&version=GBmaster&_a=preview).
|
|
186
|
+
|
|
187
|
+
## Learn More
|
|
188
|
+
|
|
189
|
+
You can learn more in [1DS First party getting started](https://eng.ms/docs/products/geneva/collect/instrument/1ds/javascriptsdk/getting-started).
|
|
190
|
+
|
|
191
|
+
## API documentation
|
|
192
|
+
|
|
193
|
+
[Typedoc generated API docs](https://msazure.visualstudio.com/One/_git/1DS.JavaScript?path=/docs/webSdk/typedoc/ext/properties/README.md&anchor=api-documentation)
|