@uipath/uipath-typescript 1.1.0 → 1.1.2

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.
@@ -548,15 +548,6 @@ class ApiClient {
548
548
  async getDefaultHeaders() {
549
549
  // Get headers from execution context first
550
550
  const contextHeaders = this.executionContext.getHeaders();
551
- // If Authorization header is already set in context, use that
552
- if (contextHeaders['Authorization']) {
553
- return {
554
- ...contextHeaders,
555
- 'Content-Type': CONTENT_TYPES.JSON,
556
- ...this.defaultHeaders,
557
- ...this.clientConfig.headers
558
- };
559
- }
560
551
  const token = await this.getValidToken();
561
552
  return {
562
553
  ...contextHeaders,
@@ -683,6 +674,7 @@ function filterUndefined(obj) {
683
674
  * Checks if code is running in a browser environment
684
675
  */
685
676
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
677
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
686
678
 
687
679
  /**
688
680
  * Base64 encoding/decoding
@@ -1677,7 +1669,7 @@ const AssetMap = {
1677
1669
  // Connection string placeholder that will be replaced during build
1678
1670
  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
1671
  // SDK Version placeholder
1680
- const SDK_VERSION = "1.1.0";
1672
+ const SDK_VERSION = "1.1.2";
1681
1673
  const VERSION = "Version";
1682
1674
  const SERVICE = "Service";
1683
1675
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -546,15 +546,6 @@ class ApiClient {
546
546
  async getDefaultHeaders() {
547
547
  // Get headers from execution context first
548
548
  const contextHeaders = this.executionContext.getHeaders();
549
- // If Authorization header is already set in context, use that
550
- if (contextHeaders['Authorization']) {
551
- return {
552
- ...contextHeaders,
553
- 'Content-Type': CONTENT_TYPES.JSON,
554
- ...this.defaultHeaders,
555
- ...this.clientConfig.headers
556
- };
557
- }
558
549
  const token = await this.getValidToken();
559
550
  return {
560
551
  ...contextHeaders,
@@ -681,6 +672,7 @@ function filterUndefined(obj) {
681
672
  * Checks if code is running in a browser environment
682
673
  */
683
674
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
675
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
684
676
 
685
677
  /**
686
678
  * Base64 encoding/decoding
@@ -1675,7 +1667,7 @@ const AssetMap = {
1675
1667
  // Connection string placeholder that will be replaced during build
1676
1668
  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";
1677
1669
  // SDK Version placeholder
1678
- const SDK_VERSION = "1.1.0";
1670
+ const SDK_VERSION = "1.1.2";
1679
1671
  const VERSION = "Version";
1680
1672
  const SERVICE = "Service";
1681
1673
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -548,15 +548,6 @@ class ApiClient {
548
548
  async getDefaultHeaders() {
549
549
  // Get headers from execution context first
550
550
  const contextHeaders = this.executionContext.getHeaders();
551
- // If Authorization header is already set in context, use that
552
- if (contextHeaders['Authorization']) {
553
- return {
554
- ...contextHeaders,
555
- 'Content-Type': CONTENT_TYPES.JSON,
556
- ...this.defaultHeaders,
557
- ...this.clientConfig.headers
558
- };
559
- }
560
551
  const token = await this.getValidToken();
561
552
  return {
562
553
  ...contextHeaders,
@@ -683,6 +674,7 @@ function filterUndefined(obj) {
683
674
  * Checks if code is running in a browser environment
684
675
  */
685
676
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
677
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
686
678
 
687
679
  /**
688
680
  * Base64 encoding/decoding
@@ -1724,7 +1716,7 @@ const BucketMap = {
1724
1716
  // Connection string placeholder that will be replaced during build
1725
1717
  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";
1726
1718
  // SDK Version placeholder
1727
- const SDK_VERSION = "1.1.0";
1719
+ const SDK_VERSION = "1.1.2";
1728
1720
  const VERSION = "Version";
1729
1721
  const SERVICE = "Service";
1730
1722
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -546,15 +546,6 @@ class ApiClient {
546
546
  async getDefaultHeaders() {
547
547
  // Get headers from execution context first
548
548
  const contextHeaders = this.executionContext.getHeaders();
549
- // If Authorization header is already set in context, use that
550
- if (contextHeaders['Authorization']) {
551
- return {
552
- ...contextHeaders,
553
- 'Content-Type': CONTENT_TYPES.JSON,
554
- ...this.defaultHeaders,
555
- ...this.clientConfig.headers
556
- };
557
- }
558
549
  const token = await this.getValidToken();
559
550
  return {
560
551
  ...contextHeaders,
@@ -681,6 +672,7 @@ function filterUndefined(obj) {
681
672
  * Checks if code is running in a browser environment
682
673
  */
683
674
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
675
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
684
676
 
685
677
  /**
686
678
  * Base64 encoding/decoding
@@ -1722,7 +1714,7 @@ const BucketMap = {
1722
1714
  // Connection string placeholder that will be replaced during build
1723
1715
  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";
1724
1716
  // SDK Version placeholder
1725
- const SDK_VERSION = "1.1.0";
1717
+ const SDK_VERSION = "1.1.2";
1726
1718
  const VERSION = "Version";
1727
1719
  const SERVICE = "Service";
1728
1720
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -561,15 +561,6 @@ class ApiClient {
561
561
  async getDefaultHeaders() {
562
562
  // Get headers from execution context first
563
563
  const contextHeaders = this.executionContext.getHeaders();
564
- // If Authorization header is already set in context, use that
565
- if (contextHeaders['Authorization']) {
566
- return {
567
- ...contextHeaders,
568
- 'Content-Type': CONTENT_TYPES.JSON,
569
- ...this.defaultHeaders,
570
- ...this.clientConfig.headers
571
- };
572
- }
573
564
  const token = await this.getValidToken();
574
565
  return {
575
566
  ...contextHeaders,
@@ -715,6 +706,7 @@ function processODataArrayResponse(oDataResponse, successData) {
715
706
  * Checks if code is running in a browser environment
716
707
  */
717
708
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
709
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
718
710
 
719
711
  /**
720
712
  * Base64 encoding/decoding
@@ -1832,7 +1824,7 @@ const MAESTRO_ENDPOINTS = {
1832
1824
  // Connection string placeholder that will be replaced during build
1833
1825
  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";
1834
1826
  // SDK Version placeholder
1835
- const SDK_VERSION = "1.1.0";
1827
+ const SDK_VERSION = "1.1.2";
1836
1828
  const VERSION = "Version";
1837
1829
  const SERVICE = "Service";
1838
1830
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -559,15 +559,6 @@ class ApiClient {
559
559
  async getDefaultHeaders() {
560
560
  // Get headers from execution context first
561
561
  const contextHeaders = this.executionContext.getHeaders();
562
- // If Authorization header is already set in context, use that
563
- if (contextHeaders['Authorization']) {
564
- return {
565
- ...contextHeaders,
566
- 'Content-Type': CONTENT_TYPES.JSON,
567
- ...this.defaultHeaders,
568
- ...this.clientConfig.headers
569
- };
570
- }
571
562
  const token = await this.getValidToken();
572
563
  return {
573
564
  ...contextHeaders,
@@ -713,6 +704,7 @@ function processODataArrayResponse(oDataResponse, successData) {
713
704
  * Checks if code is running in a browser environment
714
705
  */
715
706
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
707
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
716
708
 
717
709
  /**
718
710
  * Base64 encoding/decoding
@@ -1830,7 +1822,7 @@ const MAESTRO_ENDPOINTS = {
1830
1822
  // Connection string placeholder that will be replaced during build
1831
1823
  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";
1832
1824
  // SDK Version placeholder
1833
- const SDK_VERSION = "1.1.0";
1825
+ const SDK_VERSION = "1.1.2";
1834
1826
  const VERSION = "Version";
1835
1827
  const SERVICE = "Service";
1836
1828
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -51,7 +51,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
51
51
  // Connection string placeholder that will be replaced during build
52
52
  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";
53
53
  // SDK Version placeholder
54
- const SDK_VERSION = "1.1.0";
54
+ const SDK_VERSION = "1.1.2";
55
55
  const VERSION = "Version";
56
56
  const SERVICE = "Service";
57
57
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -831,15 +831,6 @@ class ApiClient {
831
831
  async getDefaultHeaders() {
832
832
  // Get headers from execution context first
833
833
  const contextHeaders = this.executionContext.getHeaders();
834
- // If Authorization header is already set in context, use that
835
- if (contextHeaders['Authorization']) {
836
- return {
837
- ...contextHeaders,
838
- 'Content-Type': CONTENT_TYPES.JSON,
839
- ...this.defaultHeaders,
840
- ...this.clientConfig.headers
841
- };
842
- }
843
834
  const token = await this.getValidToken();
844
835
  return {
845
836
  ...contextHeaders,
@@ -966,6 +957,7 @@ function filterUndefined(obj) {
966
957
  * Checks if code is running in a browser environment
967
958
  */
968
959
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
960
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
969
961
 
970
962
  /**
971
963
  * Base64 encoding/decoding
@@ -49,7 +49,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
49
49
  // Connection string placeholder that will be replaced during build
50
50
  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";
51
51
  // SDK Version placeholder
52
- const SDK_VERSION = "1.1.0";
52
+ const SDK_VERSION = "1.1.2";
53
53
  const VERSION = "Version";
54
54
  const SERVICE = "Service";
55
55
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -829,15 +829,6 @@ class ApiClient {
829
829
  async getDefaultHeaders() {
830
830
  // Get headers from execution context first
831
831
  const contextHeaders = this.executionContext.getHeaders();
832
- // If Authorization header is already set in context, use that
833
- if (contextHeaders['Authorization']) {
834
- return {
835
- ...contextHeaders,
836
- 'Content-Type': CONTENT_TYPES.JSON,
837
- ...this.defaultHeaders,
838
- ...this.clientConfig.headers
839
- };
840
- }
841
832
  const token = await this.getValidToken();
842
833
  return {
843
834
  ...contextHeaders,
@@ -964,6 +955,7 @@ function filterUndefined(obj) {
964
955
  * Checks if code is running in a browser environment
965
956
  */
966
957
  const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
958
+ isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
967
959
 
968
960
  /**
969
961
  * Base64 encoding/decoding