@uipath/uipath-typescript 1.3.3 → 1.3.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.
@@ -505,6 +505,8 @@ class ErrorFactory {
505
505
 
506
506
  const FOLDER_KEY = 'X-UIPATH-FolderKey';
507
507
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
508
+ const TRACEPARENT = 'traceparent';
509
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
508
510
  /**
509
511
  * Content type constants for HTTP requests/responses
510
512
  */
@@ -558,8 +560,13 @@ class ApiClient {
558
560
  if (isFormData) {
559
561
  delete defaultHeaders['Content-Type'];
560
562
  }
563
+ const traceId = crypto.randomUUID().replace(/-/g, '');
564
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
565
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
561
566
  const headers = {
562
567
  ...defaultHeaders,
568
+ [TRACEPARENT]: traceparentValue,
569
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
563
570
  ...options.headers
564
571
  };
565
572
  // Convert params to URLSearchParams
@@ -1733,7 +1740,7 @@ class BpmnHelpers {
1733
1740
  // Connection string placeholder that will be replaced during build
1734
1741
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1735
1742
  // SDK Version placeholder
1736
- const SDK_VERSION = "1.3.3";
1743
+ const SDK_VERSION = "1.3.4";
1737
1744
  const VERSION = "Version";
1738
1745
  const SERVICE = "Service";
1739
1746
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -506,6 +506,8 @@ class ErrorFactory {
506
506
  }
507
507
 
508
508
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
509
+ const TRACEPARENT = 'traceparent';
510
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
509
511
  /**
510
512
  * Content type constants for HTTP requests/responses
511
513
  */
@@ -559,8 +561,13 @@ class ApiClient {
559
561
  if (isFormData) {
560
562
  delete defaultHeaders['Content-Type'];
561
563
  }
564
+ const traceId = crypto.randomUUID().replace(/-/g, '');
565
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
566
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
562
567
  const headers = {
563
568
  ...defaultHeaders,
569
+ [TRACEPARENT]: traceparentValue,
570
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
564
571
  ...options.headers
565
572
  };
566
573
  // Convert params to URLSearchParams
@@ -1715,7 +1722,7 @@ const PROCESS_ENDPOINTS = {
1715
1722
  // Connection string placeholder that will be replaced during build
1716
1723
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1717
1724
  // SDK Version placeholder
1718
- const SDK_VERSION = "1.3.3";
1725
+ const SDK_VERSION = "1.3.4";
1719
1726
  const VERSION = "Version";
1720
1727
  const SERVICE = "Service";
1721
1728
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -504,6 +504,8 @@ class ErrorFactory {
504
504
  }
505
505
 
506
506
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
507
+ const TRACEPARENT = 'traceparent';
508
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
507
509
  /**
508
510
  * Content type constants for HTTP requests/responses
509
511
  */
@@ -557,8 +559,13 @@ class ApiClient {
557
559
  if (isFormData) {
558
560
  delete defaultHeaders['Content-Type'];
559
561
  }
562
+ const traceId = crypto.randomUUID().replace(/-/g, '');
563
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
564
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
560
565
  const headers = {
561
566
  ...defaultHeaders,
567
+ [TRACEPARENT]: traceparentValue,
568
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
562
569
  ...options.headers
563
570
  };
564
571
  // Convert params to URLSearchParams
@@ -1713,7 +1720,7 @@ const PROCESS_ENDPOINTS = {
1713
1720
  // Connection string placeholder that will be replaced during build
1714
1721
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1715
1722
  // SDK Version placeholder
1716
- const SDK_VERSION = "1.3.3";
1723
+ const SDK_VERSION = "1.3.4";
1717
1724
  const VERSION = "Version";
1718
1725
  const SERVICE = "Service";
1719
1726
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -506,6 +506,8 @@ class ErrorFactory {
506
506
  }
507
507
 
508
508
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
509
+ const TRACEPARENT = 'traceparent';
510
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
509
511
  /**
510
512
  * Content type constants for HTTP requests/responses
511
513
  */
@@ -559,8 +561,13 @@ class ApiClient {
559
561
  if (isFormData) {
560
562
  delete defaultHeaders['Content-Type'];
561
563
  }
564
+ const traceId = crypto.randomUUID().replace(/-/g, '');
565
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
566
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
562
567
  const headers = {
563
568
  ...defaultHeaders,
569
+ [TRACEPARENT]: traceparentValue,
570
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
564
571
  ...options.headers
565
572
  };
566
573
  // Convert params to URLSearchParams
@@ -1679,7 +1686,7 @@ const QueueMap = {
1679
1686
  // Connection string placeholder that will be replaced during build
1680
1687
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1681
1688
  // SDK Version placeholder
1682
- const SDK_VERSION = "1.3.3";
1689
+ const SDK_VERSION = "1.3.4";
1683
1690
  const VERSION = "Version";
1684
1691
  const SERVICE = "Service";
1685
1692
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -504,6 +504,8 @@ class ErrorFactory {
504
504
  }
505
505
 
506
506
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
507
+ const TRACEPARENT = 'traceparent';
508
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
507
509
  /**
508
510
  * Content type constants for HTTP requests/responses
509
511
  */
@@ -557,8 +559,13 @@ class ApiClient {
557
559
  if (isFormData) {
558
560
  delete defaultHeaders['Content-Type'];
559
561
  }
562
+ const traceId = crypto.randomUUID().replace(/-/g, '');
563
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
564
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
560
565
  const headers = {
561
566
  ...defaultHeaders,
567
+ [TRACEPARENT]: traceparentValue,
568
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
562
569
  ...options.headers
563
570
  };
564
571
  // Convert params to URLSearchParams
@@ -1677,7 +1684,7 @@ const QueueMap = {
1677
1684
  // Connection string placeholder that will be replaced during build
1678
1685
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1679
1686
  // SDK Version placeholder
1680
- const SDK_VERSION = "1.3.3";
1687
+ const SDK_VERSION = "1.3.4";
1681
1688
  const VERSION = "Version";
1682
1689
  const SERVICE = "Service";
1683
1690
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -278,7 +278,7 @@ class NetworkError extends UiPathError {
278
278
  // Connection string placeholder that will be replaced during build
279
279
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
280
280
  // SDK Version placeholder
281
- const SDK_VERSION = "1.3.3";
281
+ const SDK_VERSION = "1.3.4";
282
282
  const VERSION = "Version";
283
283
  const SERVICE = "Service";
284
284
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -797,6 +797,8 @@ const BUCKET_TOKEN_PARAMS = {
797
797
  };
798
798
 
799
799
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
800
+ const TRACEPARENT = 'traceparent';
801
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
800
802
  /**
801
803
  * Content type constants for HTTP requests/responses
802
804
  */
@@ -1767,8 +1769,13 @@ class ApiClient {
1767
1769
  if (isFormData) {
1768
1770
  delete defaultHeaders['Content-Type'];
1769
1771
  }
1772
+ const traceId = crypto.randomUUID().replace(/-/g, '');
1773
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
1774
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
1770
1775
  const headers = {
1771
1776
  ...defaultHeaders,
1777
+ [TRACEPARENT]: traceparentValue,
1778
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
1772
1779
  ...options.headers
1773
1780
  };
1774
1781
  // Convert params to URLSearchParams
@@ -276,7 +276,7 @@ class NetworkError extends UiPathError {
276
276
  // Connection string placeholder that will be replaced during build
277
277
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
278
278
  // SDK Version placeholder
279
- const SDK_VERSION = "1.3.3";
279
+ const SDK_VERSION = "1.3.4";
280
280
  const VERSION = "Version";
281
281
  const SERVICE = "Service";
282
282
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -795,6 +795,8 @@ const BUCKET_TOKEN_PARAMS = {
795
795
  };
796
796
 
797
797
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
798
+ const TRACEPARENT = 'traceparent';
799
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
798
800
  /**
799
801
  * Content type constants for HTTP requests/responses
800
802
  */
@@ -1765,8 +1767,13 @@ class ApiClient {
1765
1767
  if (isFormData) {
1766
1768
  delete defaultHeaders['Content-Type'];
1767
1769
  }
1770
+ const traceId = crypto.randomUUID().replace(/-/g, '');
1771
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
1772
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
1768
1773
  const headers = {
1769
1774
  ...defaultHeaders,
1775
+ [TRACEPARENT]: traceparentValue,
1776
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
1770
1777
  ...options.headers
1771
1778
  };
1772
1779
  // Convert params to URLSearchParams
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/uipath-typescript",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "UiPath TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -205,7 +205,7 @@
205
205
  "dotenv": "^17.2.0",
206
206
  "oxlint": "^1.43.0",
207
207
  "rimraf": "^6.0.1",
208
- "rollup": "^4.59.1",
208
+ "rollup": "^4.60.2",
209
209
  "rollup-plugin-dts": "^6.1.0",
210
210
  "tslib": "^2.8.1",
211
211
  "typedoc": "^0.28.13",