@uipath/uipath-typescript 1.1.2 → 1.1.3
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 +12 -3
- package/dist/assets/index.mjs +12 -3
- package/dist/buckets/index.cjs +12 -3
- package/dist/buckets/index.mjs +12 -3
- package/dist/cases/index.cjs +12 -3
- package/dist/cases/index.mjs +12 -3
- package/dist/conversational-agent/index.cjs +12 -3
- package/dist/conversational-agent/index.mjs +12 -3
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/entities/index.cjs +63 -3
- package/dist/entities/index.d.ts +94 -1
- package/dist/entities/index.mjs +63 -3
- package/dist/index.cjs +63 -3
- package/dist/index.d.ts +95 -2
- package/dist/index.mjs +63 -3
- package/dist/index.umd.js +63 -3
- package/dist/maestro-processes/index.cjs +12 -3
- package/dist/maestro-processes/index.mjs +12 -3
- package/dist/processes/index.cjs +12 -3
- package/dist/processes/index.mjs +12 -3
- package/dist/queues/index.cjs +12 -3
- package/dist/queues/index.mjs +12 -3
- package/dist/tasks/index.cjs +12 -3
- package/dist/tasks/index.mjs +12 -3
- package/package.json +1 -1
|
@@ -563,8 +563,13 @@ class ApiClient {
|
|
|
563
563
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
564
564
|
// Construct URL with org and tenant names
|
|
565
565
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
566
|
+
const isFormData = options.body instanceof FormData;
|
|
567
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
568
|
+
if (isFormData) {
|
|
569
|
+
delete defaultHeaders['Content-Type'];
|
|
570
|
+
}
|
|
566
571
|
const headers = {
|
|
567
|
-
...
|
|
572
|
+
...defaultHeaders,
|
|
568
573
|
...options.headers
|
|
569
574
|
};
|
|
570
575
|
// Convert params to URLSearchParams
|
|
@@ -575,11 +580,15 @@ class ApiClient {
|
|
|
575
580
|
});
|
|
576
581
|
}
|
|
577
582
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
583
|
+
let body = undefined;
|
|
584
|
+
if (options.body) {
|
|
585
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
586
|
+
}
|
|
578
587
|
try {
|
|
579
588
|
const response = await fetch(fullUrl, {
|
|
580
589
|
method,
|
|
581
590
|
headers,
|
|
582
|
-
body
|
|
591
|
+
body,
|
|
583
592
|
signal: options.signal
|
|
584
593
|
});
|
|
585
594
|
if (!response.ok) {
|
|
@@ -1726,7 +1735,7 @@ class BpmnHelpers {
|
|
|
1726
1735
|
// Connection string placeholder that will be replaced during build
|
|
1727
1736
|
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";
|
|
1728
1737
|
// SDK Version placeholder
|
|
1729
|
-
const SDK_VERSION = "1.1.
|
|
1738
|
+
const SDK_VERSION = "1.1.3";
|
|
1730
1739
|
const VERSION = "Version";
|
|
1731
1740
|
const SERVICE = "Service";
|
|
1732
1741
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -561,8 +561,13 @@ class ApiClient {
|
|
|
561
561
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
562
562
|
// Construct URL with org and tenant names
|
|
563
563
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
564
|
+
const isFormData = options.body instanceof FormData;
|
|
565
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
566
|
+
if (isFormData) {
|
|
567
|
+
delete defaultHeaders['Content-Type'];
|
|
568
|
+
}
|
|
564
569
|
const headers = {
|
|
565
|
-
...
|
|
570
|
+
...defaultHeaders,
|
|
566
571
|
...options.headers
|
|
567
572
|
};
|
|
568
573
|
// Convert params to URLSearchParams
|
|
@@ -573,11 +578,15 @@ class ApiClient {
|
|
|
573
578
|
});
|
|
574
579
|
}
|
|
575
580
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
581
|
+
let body = undefined;
|
|
582
|
+
if (options.body) {
|
|
583
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
584
|
+
}
|
|
576
585
|
try {
|
|
577
586
|
const response = await fetch(fullUrl, {
|
|
578
587
|
method,
|
|
579
588
|
headers,
|
|
580
|
-
body
|
|
589
|
+
body,
|
|
581
590
|
signal: options.signal
|
|
582
591
|
});
|
|
583
592
|
if (!response.ok) {
|
|
@@ -1724,7 +1733,7 @@ class BpmnHelpers {
|
|
|
1724
1733
|
// Connection string placeholder that will be replaced during build
|
|
1725
1734
|
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
1735
|
// SDK Version placeholder
|
|
1727
|
-
const SDK_VERSION = "1.1.
|
|
1736
|
+
const SDK_VERSION = "1.1.3";
|
|
1728
1737
|
const VERSION = "Version";
|
|
1729
1738
|
const SERVICE = "Service";
|
|
1730
1739
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/processes/index.cjs
CHANGED
|
@@ -562,8 +562,13 @@ class ApiClient {
|
|
|
562
562
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
563
563
|
// Construct URL with org and tenant names
|
|
564
564
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
565
|
+
const isFormData = options.body instanceof FormData;
|
|
566
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
567
|
+
if (isFormData) {
|
|
568
|
+
delete defaultHeaders['Content-Type'];
|
|
569
|
+
}
|
|
565
570
|
const headers = {
|
|
566
|
-
...
|
|
571
|
+
...defaultHeaders,
|
|
567
572
|
...options.headers
|
|
568
573
|
};
|
|
569
574
|
// Convert params to URLSearchParams
|
|
@@ -574,11 +579,15 @@ class ApiClient {
|
|
|
574
579
|
});
|
|
575
580
|
}
|
|
576
581
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
582
|
+
let body = undefined;
|
|
583
|
+
if (options.body) {
|
|
584
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
585
|
+
}
|
|
577
586
|
try {
|
|
578
587
|
const response = await fetch(fullUrl, {
|
|
579
588
|
method,
|
|
580
589
|
headers,
|
|
581
|
-
body
|
|
590
|
+
body,
|
|
582
591
|
signal: options.signal
|
|
583
592
|
});
|
|
584
593
|
if (!response.ok) {
|
|
@@ -1706,7 +1715,7 @@ const PROCESS_ENDPOINTS = {
|
|
|
1706
1715
|
// Connection string placeholder that will be replaced during build
|
|
1707
1716
|
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";
|
|
1708
1717
|
// SDK Version placeholder
|
|
1709
|
-
const SDK_VERSION = "1.1.
|
|
1718
|
+
const SDK_VERSION = "1.1.3";
|
|
1710
1719
|
const VERSION = "Version";
|
|
1711
1720
|
const SERVICE = "Service";
|
|
1712
1721
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/processes/index.mjs
CHANGED
|
@@ -560,8 +560,13 @@ class ApiClient {
|
|
|
560
560
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
561
561
|
// Construct URL with org and tenant names
|
|
562
562
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
563
|
+
const isFormData = options.body instanceof FormData;
|
|
564
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
565
|
+
if (isFormData) {
|
|
566
|
+
delete defaultHeaders['Content-Type'];
|
|
567
|
+
}
|
|
563
568
|
const headers = {
|
|
564
|
-
...
|
|
569
|
+
...defaultHeaders,
|
|
565
570
|
...options.headers
|
|
566
571
|
};
|
|
567
572
|
// Convert params to URLSearchParams
|
|
@@ -572,11 +577,15 @@ class ApiClient {
|
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
579
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
580
|
+
let body = undefined;
|
|
581
|
+
if (options.body) {
|
|
582
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
583
|
+
}
|
|
575
584
|
try {
|
|
576
585
|
const response = await fetch(fullUrl, {
|
|
577
586
|
method,
|
|
578
587
|
headers,
|
|
579
|
-
body
|
|
588
|
+
body,
|
|
580
589
|
signal: options.signal
|
|
581
590
|
});
|
|
582
591
|
if (!response.ok) {
|
|
@@ -1704,7 +1713,7 @@ const PROCESS_ENDPOINTS = {
|
|
|
1704
1713
|
// Connection string placeholder that will be replaced during build
|
|
1705
1714
|
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";
|
|
1706
1715
|
// SDK Version placeholder
|
|
1707
|
-
const SDK_VERSION = "1.1.
|
|
1716
|
+
const SDK_VERSION = "1.1.3";
|
|
1708
1717
|
const VERSION = "Version";
|
|
1709
1718
|
const SERVICE = "Service";
|
|
1710
1719
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/queues/index.cjs
CHANGED
|
@@ -562,8 +562,13 @@ class ApiClient {
|
|
|
562
562
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
563
563
|
// Construct URL with org and tenant names
|
|
564
564
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
565
|
+
const isFormData = options.body instanceof FormData;
|
|
566
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
567
|
+
if (isFormData) {
|
|
568
|
+
delete defaultHeaders['Content-Type'];
|
|
569
|
+
}
|
|
565
570
|
const headers = {
|
|
566
|
-
...
|
|
571
|
+
...defaultHeaders,
|
|
567
572
|
...options.headers
|
|
568
573
|
};
|
|
569
574
|
// Convert params to URLSearchParams
|
|
@@ -574,11 +579,15 @@ class ApiClient {
|
|
|
574
579
|
});
|
|
575
580
|
}
|
|
576
581
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
582
|
+
let body = undefined;
|
|
583
|
+
if (options.body) {
|
|
584
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
585
|
+
}
|
|
577
586
|
try {
|
|
578
587
|
const response = await fetch(fullUrl, {
|
|
579
588
|
method,
|
|
580
589
|
headers,
|
|
581
|
-
body
|
|
590
|
+
body,
|
|
582
591
|
signal: options.signal
|
|
583
592
|
});
|
|
584
593
|
if (!response.ok) {
|
|
@@ -1670,7 +1679,7 @@ const QueueMap = {
|
|
|
1670
1679
|
// Connection string placeholder that will be replaced during build
|
|
1671
1680
|
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";
|
|
1672
1681
|
// SDK Version placeholder
|
|
1673
|
-
const SDK_VERSION = "1.1.
|
|
1682
|
+
const SDK_VERSION = "1.1.3";
|
|
1674
1683
|
const VERSION = "Version";
|
|
1675
1684
|
const SERVICE = "Service";
|
|
1676
1685
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/queues/index.mjs
CHANGED
|
@@ -560,8 +560,13 @@ class ApiClient {
|
|
|
560
560
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
561
561
|
// Construct URL with org and tenant names
|
|
562
562
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
563
|
+
const isFormData = options.body instanceof FormData;
|
|
564
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
565
|
+
if (isFormData) {
|
|
566
|
+
delete defaultHeaders['Content-Type'];
|
|
567
|
+
}
|
|
563
568
|
const headers = {
|
|
564
|
-
...
|
|
569
|
+
...defaultHeaders,
|
|
565
570
|
...options.headers
|
|
566
571
|
};
|
|
567
572
|
// Convert params to URLSearchParams
|
|
@@ -572,11 +577,15 @@ class ApiClient {
|
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
579
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
580
|
+
let body = undefined;
|
|
581
|
+
if (options.body) {
|
|
582
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
583
|
+
}
|
|
575
584
|
try {
|
|
576
585
|
const response = await fetch(fullUrl, {
|
|
577
586
|
method,
|
|
578
587
|
headers,
|
|
579
|
-
body
|
|
588
|
+
body,
|
|
580
589
|
signal: options.signal
|
|
581
590
|
});
|
|
582
591
|
if (!response.ok) {
|
|
@@ -1668,7 +1677,7 @@ const QueueMap = {
|
|
|
1668
1677
|
// Connection string placeholder that will be replaced during build
|
|
1669
1678
|
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";
|
|
1670
1679
|
// SDK Version placeholder
|
|
1671
|
-
const SDK_VERSION = "1.1.
|
|
1680
|
+
const SDK_VERSION = "1.1.3";
|
|
1672
1681
|
const VERSION = "Version";
|
|
1673
1682
|
const SERVICE = "Service";
|
|
1674
1683
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/tasks/index.cjs
CHANGED
|
@@ -562,8 +562,13 @@ class ApiClient {
|
|
|
562
562
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
563
563
|
// Construct URL with org and tenant names
|
|
564
564
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
565
|
+
const isFormData = options.body instanceof FormData;
|
|
566
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
567
|
+
if (isFormData) {
|
|
568
|
+
delete defaultHeaders['Content-Type'];
|
|
569
|
+
}
|
|
565
570
|
const headers = {
|
|
566
|
-
...
|
|
571
|
+
...defaultHeaders,
|
|
567
572
|
...options.headers
|
|
568
573
|
};
|
|
569
574
|
// Convert params to URLSearchParams
|
|
@@ -574,11 +579,15 @@ class ApiClient {
|
|
|
574
579
|
});
|
|
575
580
|
}
|
|
576
581
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
582
|
+
let body = undefined;
|
|
583
|
+
if (options.body) {
|
|
584
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
585
|
+
}
|
|
577
586
|
try {
|
|
578
587
|
const response = await fetch(fullUrl, {
|
|
579
588
|
method,
|
|
580
589
|
headers,
|
|
581
|
-
body
|
|
590
|
+
body,
|
|
582
591
|
signal: options.signal
|
|
583
592
|
});
|
|
584
593
|
if (!response.ok) {
|
|
@@ -1896,7 +1905,7 @@ const TASK_ENDPOINTS = {
|
|
|
1896
1905
|
// Connection string placeholder that will be replaced during build
|
|
1897
1906
|
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";
|
|
1898
1907
|
// SDK Version placeholder
|
|
1899
|
-
const SDK_VERSION = "1.1.
|
|
1908
|
+
const SDK_VERSION = "1.1.3";
|
|
1900
1909
|
const VERSION = "Version";
|
|
1901
1910
|
const SERVICE = "Service";
|
|
1902
1911
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/tasks/index.mjs
CHANGED
|
@@ -560,8 +560,13 @@ class ApiClient {
|
|
|
560
560
|
const normalizedPath = path.startsWith('/') ? path.substring(1) : path;
|
|
561
561
|
// Construct URL with org and tenant names
|
|
562
562
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
563
|
+
const isFormData = options.body instanceof FormData;
|
|
564
|
+
const defaultHeaders = await this.getDefaultHeaders();
|
|
565
|
+
if (isFormData) {
|
|
566
|
+
delete defaultHeaders['Content-Type'];
|
|
567
|
+
}
|
|
563
568
|
const headers = {
|
|
564
|
-
...
|
|
569
|
+
...defaultHeaders,
|
|
565
570
|
...options.headers
|
|
566
571
|
};
|
|
567
572
|
// Convert params to URLSearchParams
|
|
@@ -572,11 +577,15 @@ class ApiClient {
|
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
579
|
const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
|
|
580
|
+
let body = undefined;
|
|
581
|
+
if (options.body) {
|
|
582
|
+
body = isFormData ? options.body : JSON.stringify(options.body);
|
|
583
|
+
}
|
|
575
584
|
try {
|
|
576
585
|
const response = await fetch(fullUrl, {
|
|
577
586
|
method,
|
|
578
587
|
headers,
|
|
579
|
-
body
|
|
588
|
+
body,
|
|
580
589
|
signal: options.signal
|
|
581
590
|
});
|
|
582
591
|
if (!response.ok) {
|
|
@@ -1894,7 +1903,7 @@ const TASK_ENDPOINTS = {
|
|
|
1894
1903
|
// Connection string placeholder that will be replaced during build
|
|
1895
1904
|
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";
|
|
1896
1905
|
// SDK Version placeholder
|
|
1897
|
-
const SDK_VERSION = "1.1.
|
|
1906
|
+
const SDK_VERSION = "1.1.3";
|
|
1898
1907
|
const VERSION = "Version";
|
|
1899
1908
|
const SERVICE = "Service";
|
|
1900
1909
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|