@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
package/dist/entities/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
|
|
@@ -1889,7 +1881,7 @@ const EntityFieldTypeMap = {
|
|
|
1889
1881
|
// Connection string placeholder that will be replaced during build
|
|
1890
1882
|
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";
|
|
1891
1883
|
// SDK Version placeholder
|
|
1892
|
-
const SDK_VERSION = "1.1.
|
|
1884
|
+
const SDK_VERSION = "1.1.2";
|
|
1893
1885
|
const VERSION = "Version";
|
|
1894
1886
|
const SERVICE = "Service";
|
|
1895
1887
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/entities/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
|
|
@@ -1887,7 +1879,7 @@ const EntityFieldTypeMap = {
|
|
|
1887
1879
|
// Connection string placeholder that will be replaced during build
|
|
1888
1880
|
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";
|
|
1889
1881
|
// SDK Version placeholder
|
|
1890
|
-
const SDK_VERSION = "1.1.
|
|
1882
|
+
const SDK_VERSION = "1.1.2";
|
|
1891
1883
|
const VERSION = "Version";
|
|
1892
1884
|
const SERVICE = "Service";
|
|
1893
1885
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|