@uipath/test-manager-tool 1.205.0-preview.284 → 1.206.0-preview.282

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.
@@ -1,33 +1,3 @@
1
- // ../common/src/singleton.ts
2
- var PREFIX = "@uipath/common/";
3
- var _g = globalThis;
4
- function singleton(ctorOrName) {
5
- const name = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
6
- const key = Symbol.for(PREFIX + name);
7
- return {
8
- get(fallback) {
9
- return _g[key] ?? fallback;
10
- },
11
- set(value) {
12
- _g[key] = value;
13
- },
14
- clear() {
15
- delete _g[key];
16
- },
17
- getOrInit(factory, guard) {
18
- const existing = _g[key];
19
- if (existing != null && typeof existing === "object") {
20
- if (!guard || guard(existing)) {
21
- return existing;
22
- }
23
- }
24
- const instance = factory();
25
- _g[key] = instance;
26
- return instance;
27
- }
28
- };
29
- }
30
-
31
1
  // ../common/src/telemetry/telemetry-dimensions.ts
32
2
  var BaseDimensions = {
33
3
  ApplicationName: "ApplicationName",
@@ -63,6 +33,21 @@ var CommandDimensions = {
63
33
  ProductArea: "ProductArea",
64
34
  Mode: "Mode"
65
35
  };
36
+ var ProjectDimensions = {
37
+ ProjectKey: "ProjectKey",
38
+ ProjectType: "ProjectType",
39
+ ProjectIdentityStatus: "ProjectIdentityStatus",
40
+ SolutionKey: "SolutionKey",
41
+ SolutionProjectKey: "SolutionProjectKey",
42
+ SolutionIdentityStatus: "SolutionIdentityStatus",
43
+ PreviousSolutionKey: "PreviousSolutionKey"
44
+ };
45
+ var GUID_KEY_DIMENSIONS = new Set([
46
+ ProjectDimensions.ProjectKey,
47
+ ProjectDimensions.SolutionKey,
48
+ ProjectDimensions.SolutionProjectKey,
49
+ ProjectDimensions.PreviousSolutionKey
50
+ ]);
66
51
  var ShipDimensions = {
67
52
  ShipKind: "ShipKind",
68
53
  Target: "Target",
@@ -131,6 +116,7 @@ var RESERVED_DIMENSION_NAMES = new Set([
131
116
  ...Object.values(BaseDimensions),
132
117
  ...Object.values(CommandDimensions),
133
118
  ...Object.values(ShipDimensions),
119
+ ...Object.values(ProjectDimensions),
134
120
  ...Object.values(ErrorDimensions),
135
121
  ...Object.values(AuthDimensions),
136
122
  ...Object.values(SkillsDimensions),
@@ -156,7 +142,8 @@ var CURATED_DIMENSIONS = new Set([
156
142
  BaseDimensions.SessionIdSource,
157
143
  BaseDimensions.SessionId,
158
144
  ...Object.values(CommandDimensions),
159
- ...Object.values(ShipDimensions)
145
+ ...Object.values(ShipDimensions),
146
+ ...Object.values(ProjectDimensions)
160
147
  ]);
161
148
  function lowercaseIdDimensionValues(properties) {
162
149
  let changed = false;
@@ -177,10 +164,34 @@ function lowercaseIdDimensionValues(properties) {
177
164
  return changed ? result : properties;
178
165
  }
179
166
 
180
- // ../common/src/telemetry/global-telemetry-properties.ts
181
- var telemetryPropsSlot = singleton("TelemetryDefaultProps");
182
- function getGlobalTelemetryProperties() {
183
- return telemetryPropsSlot.get();
167
+ // ../common/src/singleton.ts
168
+ var PREFIX = "@uipath/common/";
169
+ var _g = globalThis;
170
+ function singleton(ctorOrName) {
171
+ const name = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
172
+ const key = Symbol.for(PREFIX + name);
173
+ return {
174
+ get(fallback) {
175
+ return _g[key] ?? fallback;
176
+ },
177
+ set(value) {
178
+ _g[key] = value;
179
+ },
180
+ clear() {
181
+ delete _g[key];
182
+ },
183
+ getOrInit(factory, guard) {
184
+ const existing = _g[key];
185
+ if (existing != null && typeof existing === "object") {
186
+ if (!guard || guard(existing)) {
187
+ return existing;
188
+ }
189
+ }
190
+ const instance = factory();
191
+ _g[key] = instance;
192
+ return instance;
193
+ }
194
+ };
184
195
  }
185
196
 
186
197
  // ../common/src/telemetry/telemetry-config.ts
@@ -188,6 +199,15 @@ function isTelemetryDisabled() {
188
199
  const value = process.env.UIPATH_TELEMETRY_DISABLED;
189
200
  return value === "1" || value === "true";
190
201
  }
202
+ function isProjectTelemetryDisabled() {
203
+ return isTelemetryDisabled() || process.env.UIPATH_PROJECT_TELEMETRY_DISABLED === "1" || process.env.UIPATH_PROJECT_TELEMETRY_DISABLED === "true";
204
+ }
205
+
206
+ // ../common/src/telemetry/global-telemetry-properties.ts
207
+ var telemetryPropsSlot = singleton("TelemetryDefaultProps");
208
+ function getGlobalTelemetryProperties() {
209
+ return telemetryPropsSlot.get();
210
+ }
191
211
 
192
212
  // ../common/src/sdk-user-agent.ts
193
213
  var USER_AGENT_HEADER = "User-Agent";
@@ -291,6 +311,6 @@ function installSdkCodingAgentHeader(BaseApiClass) {
291
311
  installRequestHeaderForwarding(BaseApiClass, codingAgentPatchKey(), (headers) => addSdkCodingAgentHeader(headers));
292
312
  }
293
313
 
294
- export { singleton, BaseDimensions, CommandDimensions, ErrorDimensions, SkillsDimensions, lowercaseIdDimensionValues, getGlobalTelemetryProperties, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, installSdkCodingAgentHeader };
314
+ export { BaseDimensions, CommandDimensions, ProjectDimensions, GUID_KEY_DIMENSIONS, ErrorDimensions, SkillsDimensions, lowercaseIdDimensionValues, singleton, getGlobalTelemetryProperties, isProjectTelemetryDisabled, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, installSdkCodingAgentHeader };
295
315
 
296
- //# debugId=5705087D3E87E4F964756E2164756E21
316
+ //# debugId=3691E206D1B4E76564756E2164756E21