@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.
- package/dist/assets/index.cjs +2 -10
- package/dist/assets/index.mjs +2 -10
- package/dist/buckets/index.cjs +2 -10
- package/dist/buckets/index.mjs +2 -10
- package/dist/cases/index.cjs +2 -10
- package/dist/cases/index.mjs +2 -10
- package/dist/conversational-agent/index.cjs +2 -10
- package/dist/conversational-agent/index.mjs +2 -10
- package/dist/core/index.cjs +437 -82
- package/dist/core/index.d.ts +125 -9
- package/dist/core/index.mjs +420 -83
- package/dist/entities/index.cjs +2 -10
- package/dist/entities/index.mjs +2 -10
- package/dist/index.cjs +437 -90
- package/dist/index.d.ts +109 -11
- package/dist/index.mjs +435 -91
- package/dist/index.umd.js +437 -90
- package/dist/maestro-processes/index.cjs +2 -10
- package/dist/maestro-processes/index.mjs +2 -10
- package/dist/processes/index.cjs +2 -10
- package/dist/processes/index.mjs +2 -10
- package/dist/queues/index.cjs +2 -10
- package/dist/queues/index.mjs +2 -10
- package/dist/tasks/index.cjs +2 -10
- package/dist/tasks/index.mjs +2 -10
- package/package.json +1 -1
|
@@ -549,15 +549,6 @@ class ApiClient {
|
|
|
549
549
|
async getDefaultHeaders() {
|
|
550
550
|
// Get headers from execution context first
|
|
551
551
|
const contextHeaders = this.executionContext.getHeaders();
|
|
552
|
-
// If Authorization header is already set in context, use that
|
|
553
|
-
if (contextHeaders['Authorization']) {
|
|
554
|
-
return {
|
|
555
|
-
...contextHeaders,
|
|
556
|
-
'Content-Type': CONTENT_TYPES.JSON,
|
|
557
|
-
...this.defaultHeaders,
|
|
558
|
-
...this.clientConfig.headers
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
552
|
const token = await this.getValidToken();
|
|
562
553
|
return {
|
|
563
554
|
...contextHeaders,
|
|
@@ -684,6 +675,7 @@ function filterUndefined(obj) {
|
|
|
684
675
|
* Checks if code is running in a browser environment
|
|
685
676
|
*/
|
|
686
677
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
678
|
+
isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
|
|
687
679
|
|
|
688
680
|
/**
|
|
689
681
|
* Base64 encoding/decoding
|
|
@@ -1734,7 +1726,7 @@ class BpmnHelpers {
|
|
|
1734
1726
|
// Connection string placeholder that will be replaced during build
|
|
1735
1727
|
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";
|
|
1736
1728
|
// SDK Version placeholder
|
|
1737
|
-
const SDK_VERSION = "1.1.
|
|
1729
|
+
const SDK_VERSION = "1.1.2";
|
|
1738
1730
|
const VERSION = "Version";
|
|
1739
1731
|
const SERVICE = "Service";
|
|
1740
1732
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -547,15 +547,6 @@ class ApiClient {
|
|
|
547
547
|
async getDefaultHeaders() {
|
|
548
548
|
// Get headers from execution context first
|
|
549
549
|
const contextHeaders = this.executionContext.getHeaders();
|
|
550
|
-
// If Authorization header is already set in context, use that
|
|
551
|
-
if (contextHeaders['Authorization']) {
|
|
552
|
-
return {
|
|
553
|
-
...contextHeaders,
|
|
554
|
-
'Content-Type': CONTENT_TYPES.JSON,
|
|
555
|
-
...this.defaultHeaders,
|
|
556
|
-
...this.clientConfig.headers
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
550
|
const token = await this.getValidToken();
|
|
560
551
|
return {
|
|
561
552
|
...contextHeaders,
|
|
@@ -682,6 +673,7 @@ function filterUndefined(obj) {
|
|
|
682
673
|
* Checks if code is running in a browser environment
|
|
683
674
|
*/
|
|
684
675
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
676
|
+
isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
|
|
685
677
|
|
|
686
678
|
/**
|
|
687
679
|
* Base64 encoding/decoding
|
|
@@ -1732,7 +1724,7 @@ class BpmnHelpers {
|
|
|
1732
1724
|
// Connection string placeholder that will be replaced during build
|
|
1733
1725
|
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";
|
|
1734
1726
|
// SDK Version placeholder
|
|
1735
|
-
const SDK_VERSION = "1.1.
|
|
1727
|
+
const SDK_VERSION = "1.1.2";
|
|
1736
1728
|
const VERSION = "Version";
|
|
1737
1729
|
const SERVICE = "Service";
|
|
1738
1730
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/processes/index.cjs
CHANGED
|
@@ -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
|
|
@@ -1714,7 +1706,7 @@ const PROCESS_ENDPOINTS = {
|
|
|
1714
1706
|
// Connection string placeholder that will be replaced during build
|
|
1715
1707
|
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";
|
|
1716
1708
|
// SDK Version placeholder
|
|
1717
|
-
const SDK_VERSION = "1.1.
|
|
1709
|
+
const SDK_VERSION = "1.1.2";
|
|
1718
1710
|
const VERSION = "Version";
|
|
1719
1711
|
const SERVICE = "Service";
|
|
1720
1712
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/processes/index.mjs
CHANGED
|
@@ -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
|
|
@@ -1712,7 +1704,7 @@ const PROCESS_ENDPOINTS = {
|
|
|
1712
1704
|
// Connection string placeholder that will be replaced during build
|
|
1713
1705
|
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";
|
|
1714
1706
|
// SDK Version placeholder
|
|
1715
|
-
const SDK_VERSION = "1.1.
|
|
1707
|
+
const SDK_VERSION = "1.1.2";
|
|
1716
1708
|
const VERSION = "Version";
|
|
1717
1709
|
const SERVICE = "Service";
|
|
1718
1710
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/queues/index.cjs
CHANGED
|
@@ -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
|
|
@@ -1678,7 +1670,7 @@ const QueueMap = {
|
|
|
1678
1670
|
// Connection string placeholder that will be replaced during build
|
|
1679
1671
|
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";
|
|
1680
1672
|
// SDK Version placeholder
|
|
1681
|
-
const SDK_VERSION = "1.1.
|
|
1673
|
+
const SDK_VERSION = "1.1.2";
|
|
1682
1674
|
const VERSION = "Version";
|
|
1683
1675
|
const SERVICE = "Service";
|
|
1684
1676
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/queues/index.mjs
CHANGED
|
@@ -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
|
|
@@ -1676,7 +1668,7 @@ const QueueMap = {
|
|
|
1676
1668
|
// Connection string placeholder that will be replaced during build
|
|
1677
1669
|
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";
|
|
1678
1670
|
// SDK Version placeholder
|
|
1679
|
-
const SDK_VERSION = "1.1.
|
|
1671
|
+
const SDK_VERSION = "1.1.2";
|
|
1680
1672
|
const VERSION = "Version";
|
|
1681
1673
|
const SERVICE = "Service";
|
|
1682
1674
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/tasks/index.cjs
CHANGED
|
@@ -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,
|
|
@@ -702,6 +693,7 @@ function processODataArrayResponse(oDataResponse, successData) {
|
|
|
702
693
|
* Checks if code is running in a browser environment
|
|
703
694
|
*/
|
|
704
695
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
696
|
+
isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
|
|
705
697
|
|
|
706
698
|
/**
|
|
707
699
|
* Base64 encoding/decoding
|
|
@@ -1904,7 +1896,7 @@ const TASK_ENDPOINTS = {
|
|
|
1904
1896
|
// Connection string placeholder that will be replaced during build
|
|
1905
1897
|
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";
|
|
1906
1898
|
// SDK Version placeholder
|
|
1907
|
-
const SDK_VERSION = "1.1.
|
|
1899
|
+
const SDK_VERSION = "1.1.2";
|
|
1908
1900
|
const VERSION = "Version";
|
|
1909
1901
|
const SERVICE = "Service";
|
|
1910
1902
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/tasks/index.mjs
CHANGED
|
@@ -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,
|
|
@@ -700,6 +691,7 @@ function processODataArrayResponse(oDataResponse, successData) {
|
|
|
700
691
|
* Checks if code is running in a browser environment
|
|
701
692
|
*/
|
|
702
693
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
694
|
+
isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
|
|
703
695
|
|
|
704
696
|
/**
|
|
705
697
|
* Base64 encoding/decoding
|
|
@@ -1902,7 +1894,7 @@ const TASK_ENDPOINTS = {
|
|
|
1902
1894
|
// Connection string placeholder that will be replaced during build
|
|
1903
1895
|
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";
|
|
1904
1896
|
// SDK Version placeholder
|
|
1905
|
-
const SDK_VERSION = "1.1.
|
|
1897
|
+
const SDK_VERSION = "1.1.2";
|
|
1906
1898
|
const VERSION = "Version";
|
|
1907
1899
|
const SERVICE = "Service";
|
|
1908
1900
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|