@uipath/maestro-sdk 1.207.0-preview.381 → 1.207.0-preview.382
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/connector-spec/index.js +2 -2
- package/dist/index.js +33 -10
- package/dist/registry/command.js +33 -10
- package/package.json +2 -2
|
@@ -1121,7 +1121,7 @@ var init_package = __esm(() => {
|
|
|
1121
1121
|
name: "@uipath/integrationservice-sdk",
|
|
1122
1122
|
author: "UiPath",
|
|
1123
1123
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1124
|
-
version: "1.207.0-preview.
|
|
1124
|
+
version: "1.207.0-preview.382",
|
|
1125
1125
|
repository: {
|
|
1126
1126
|
type: "git",
|
|
1127
1127
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -265612,4 +265612,4 @@ export {
|
|
|
265612
265612
|
studioCatalogTypeCache
|
|
265613
265613
|
};
|
|
265614
265614
|
|
|
265615
|
-
//# debugId=
|
|
265615
|
+
//# debugId=4EC34B65D0D2B5BB64756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -145072,7 +145072,7 @@ var init_package = __esm(() => {
|
|
|
145072
145072
|
name: "@uipath/integrationservice-sdk",
|
|
145073
145073
|
author: "UiPath",
|
|
145074
145074
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
145075
|
-
version: "1.207.0-preview.
|
|
145075
|
+
version: "1.207.0-preview.382",
|
|
145076
145076
|
repository: {
|
|
145077
145077
|
type: "git",
|
|
145078
145078
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -264201,17 +264201,36 @@ async function getNodesWithCacheFallback() {
|
|
|
264201
264201
|
function isConnectorCatalogType(lowerNodeType) {
|
|
264202
264202
|
return CONNECTOR_CATALOG_PREFIXES.some((prefix) => lowerNodeType.startsWith(prefix));
|
|
264203
264203
|
}
|
|
264204
|
-
|
|
264204
|
+
function withinMissRefreshInterval(at) {
|
|
264205
|
+
const age = typeof at === "number" ? Date.now() - at : -1;
|
|
264206
|
+
return age >= 0 && age < MISS_REFRESH_INTERVAL;
|
|
264207
|
+
}
|
|
264208
|
+
async function refreshOnMiss(kind) {
|
|
264205
264209
|
const scope = loginScope(await readLoginStatus());
|
|
264206
264210
|
if (scope === undefined)
|
|
264207
264211
|
return null;
|
|
264208
264212
|
const [, last] = await catchError(loadMissRefreshAt(scope));
|
|
264209
|
-
|
|
264210
|
-
|
|
264211
|
-
return
|
|
264213
|
+
if (withinMissRefreshInterval(last)) {
|
|
264214
|
+
const [, current] = await catchError(loadScopedNodeIndex(scope));
|
|
264215
|
+
return current ? {
|
|
264216
|
+
result: current.nodes,
|
|
264217
|
+
missingSources: missingSourceNames(current.metadata.missingSources)
|
|
264218
|
+
} : null;
|
|
264219
|
+
}
|
|
264220
|
+
if (kind === "connector-catalogue") {
|
|
264221
|
+
const [, current] = await catchError(loadScopedNodeIndex(scope));
|
|
264222
|
+
if (current && withinMissRefreshInterval(current.metadata.lastSync) && !current.metadata.missingSources?.some((missing) => CONNECTOR_CATALOGUE_SOURCES.has(missing.source))) {
|
|
264223
|
+
return {
|
|
264224
|
+
result: current.nodes,
|
|
264225
|
+
missingSources: missingSourceNames(current.metadata.missingSources)
|
|
264226
|
+
};
|
|
264227
|
+
}
|
|
264212
264228
|
}
|
|
264213
264229
|
await catchError(saveMissRefreshAt(scope, Date.now()));
|
|
264214
|
-
const [error, refreshed] = await catchError(loadCurrentTenantNodes({
|
|
264230
|
+
const [error, refreshed] = await catchError(loadCurrentTenantNodes({
|
|
264231
|
+
force: true,
|
|
264232
|
+
reuseConnectors: kind === "tenant-resource"
|
|
264233
|
+
}));
|
|
264215
264234
|
if (error || refreshed.failures?.length || refreshed.refreshError) {
|
|
264216
264235
|
return null;
|
|
264217
264236
|
}
|
|
@@ -264400,7 +264419,7 @@ async function searchNodeSummariesWithAvailabilityAndDiagnostics(keyword, filter
|
|
|
264400
264419
|
if (found.length > 0 || !snapshot.fromCache || !keyword && !filters) {
|
|
264401
264420
|
return { result: found, missingSources: snapshot.missingSources };
|
|
264402
264421
|
}
|
|
264403
|
-
const refreshed = await refreshOnMiss(
|
|
264422
|
+
const refreshed = await refreshOnMiss("search");
|
|
264404
264423
|
return refreshed ? {
|
|
264405
264424
|
result: searchSummaries(buildSearchIndex(refreshed.result), keyword, filters),
|
|
264406
264425
|
missingSources: refreshed.missingSources
|
|
@@ -264480,7 +264499,7 @@ async function getNodeWithDiagnostics(nodeType, options) {
|
|
|
264480
264499
|
if (node || !snapshot.fromCache || options?.refreshOnMiss === false) {
|
|
264481
264500
|
return { result: node, missingSources: snapshot.missingSources };
|
|
264482
264501
|
}
|
|
264483
|
-
const refreshed = await refreshOnMiss(
|
|
264502
|
+
const refreshed = await refreshOnMiss(isConnectorCatalogType(lowerNodeType) ? "connector-catalogue" : "tenant-resource");
|
|
264484
264503
|
return refreshed ? {
|
|
264485
264504
|
result: findNodeByType(refreshed.result, nodeType),
|
|
264486
264505
|
missingSources: refreshed.missingSources
|
|
@@ -264516,7 +264535,7 @@ async function searchNodesWithFilters(keyword, filters, options) {
|
|
|
264516
264535
|
}
|
|
264517
264536
|
return searchWithFilters(nodes, keyword, filters);
|
|
264518
264537
|
}
|
|
264519
|
-
var MANIFEST_VALIDATION_SOURCE = "manifest validation", MANIFEST_VALIDATION_NEXT_STEP = "Fix or remove the tenant resource named in the validation error, then run 'registry pull' again.", TENANT_MANIFEST_INVALID = "TenantManifestInvalid", TenantManifestInvalidError, TENANT_MANIFEST_UNAVAILABLE = "TenantManifestUnavailable", PartialNodeSourcesError, TenantManifestUnavailableError, SessionExpiredError, MAX_FAILURE_REASON_LENGTH = 500, CACHE_EXPIRATION, ENABLED_MANIFEST_FLAGS, CONNECTOR_CATALOG_PREFIXES, MISS_REFRESH_INTERVAL;
|
|
264538
|
+
var MANIFEST_VALIDATION_SOURCE = "manifest validation", MANIFEST_VALIDATION_NEXT_STEP = "Fix or remove the tenant resource named in the validation error, then run 'registry pull' again.", TENANT_MANIFEST_INVALID = "TenantManifestInvalid", TenantManifestInvalidError, TENANT_MANIFEST_UNAVAILABLE = "TenantManifestUnavailable", PartialNodeSourcesError, TenantManifestUnavailableError, SessionExpiredError, MAX_FAILURE_REASON_LENGTH = 500, CACHE_EXPIRATION, ENABLED_MANIFEST_FLAGS, CONNECTOR_CATALOG_PREFIXES, MISS_REFRESH_INTERVAL, CONNECTOR_CATALOGUE_SOURCES;
|
|
264520
264539
|
var init_node_sync_service = __esm(() => {
|
|
264521
264540
|
init_src3();
|
|
264522
264541
|
init_src2();
|
|
@@ -264589,6 +264608,10 @@ var init_node_sync_service = __esm(() => {
|
|
|
264589
264608
|
AGENT_TOOL_CONNECTOR_NODE_PREFIX
|
|
264590
264609
|
];
|
|
264591
264610
|
MISS_REFRESH_INTERVAL = 60 * 1000;
|
|
264611
|
+
CONNECTOR_CATALOGUE_SOURCES = new Set([
|
|
264612
|
+
"connector nodes",
|
|
264613
|
+
"integration trigger nodes"
|
|
264614
|
+
]);
|
|
264592
264615
|
});
|
|
264593
264616
|
|
|
264594
264617
|
// src/variable-tags/catalog-types.ts
|
|
@@ -289452,4 +289475,4 @@ export {
|
|
|
289452
289475
|
withPimsCall
|
|
289453
289476
|
};
|
|
289454
289477
|
|
|
289455
|
-
//# debugId=
|
|
289478
|
+
//# debugId=EBD87C36470CCFB464756E2164756E21
|
package/dist/registry/command.js
CHANGED
|
@@ -144908,7 +144908,7 @@ var init_package = __esm(() => {
|
|
|
144908
144908
|
name: "@uipath/integrationservice-sdk",
|
|
144909
144909
|
author: "UiPath",
|
|
144910
144910
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
144911
|
-
version: "1.207.0-preview.
|
|
144911
|
+
version: "1.207.0-preview.382",
|
|
144912
144912
|
repository: {
|
|
144913
144913
|
type: "git",
|
|
144914
144914
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -264201,17 +264201,36 @@ async function getNodesWithCacheFallback() {
|
|
|
264201
264201
|
function isConnectorCatalogType(lowerNodeType) {
|
|
264202
264202
|
return CONNECTOR_CATALOG_PREFIXES.some((prefix) => lowerNodeType.startsWith(prefix));
|
|
264203
264203
|
}
|
|
264204
|
-
|
|
264204
|
+
function withinMissRefreshInterval(at) {
|
|
264205
|
+
const age = typeof at === "number" ? Date.now() - at : -1;
|
|
264206
|
+
return age >= 0 && age < MISS_REFRESH_INTERVAL;
|
|
264207
|
+
}
|
|
264208
|
+
async function refreshOnMiss(kind) {
|
|
264205
264209
|
const scope = loginScope(await readLoginStatus());
|
|
264206
264210
|
if (scope === undefined)
|
|
264207
264211
|
return null;
|
|
264208
264212
|
const [, last] = await catchError(loadMissRefreshAt(scope));
|
|
264209
|
-
|
|
264210
|
-
|
|
264211
|
-
return
|
|
264213
|
+
if (withinMissRefreshInterval(last)) {
|
|
264214
|
+
const [, current] = await catchError(loadScopedNodeIndex(scope));
|
|
264215
|
+
return current ? {
|
|
264216
|
+
result: current.nodes,
|
|
264217
|
+
missingSources: missingSourceNames(current.metadata.missingSources)
|
|
264218
|
+
} : null;
|
|
264219
|
+
}
|
|
264220
|
+
if (kind === "connector-catalogue") {
|
|
264221
|
+
const [, current] = await catchError(loadScopedNodeIndex(scope));
|
|
264222
|
+
if (current && withinMissRefreshInterval(current.metadata.lastSync) && !current.metadata.missingSources?.some((missing) => CONNECTOR_CATALOGUE_SOURCES.has(missing.source))) {
|
|
264223
|
+
return {
|
|
264224
|
+
result: current.nodes,
|
|
264225
|
+
missingSources: missingSourceNames(current.metadata.missingSources)
|
|
264226
|
+
};
|
|
264227
|
+
}
|
|
264212
264228
|
}
|
|
264213
264229
|
await catchError(saveMissRefreshAt(scope, Date.now()));
|
|
264214
|
-
const [error, refreshed] = await catchError(loadCurrentTenantNodes({
|
|
264230
|
+
const [error, refreshed] = await catchError(loadCurrentTenantNodes({
|
|
264231
|
+
force: true,
|
|
264232
|
+
reuseConnectors: kind === "tenant-resource"
|
|
264233
|
+
}));
|
|
264215
264234
|
if (error || refreshed.failures?.length || refreshed.refreshError) {
|
|
264216
264235
|
return null;
|
|
264217
264236
|
}
|
|
@@ -264400,7 +264419,7 @@ async function searchNodeSummariesWithAvailabilityAndDiagnostics(keyword, filter
|
|
|
264400
264419
|
if (found.length > 0 || !snapshot.fromCache || !keyword && !filters) {
|
|
264401
264420
|
return { result: found, missingSources: snapshot.missingSources };
|
|
264402
264421
|
}
|
|
264403
|
-
const refreshed = await refreshOnMiss(
|
|
264422
|
+
const refreshed = await refreshOnMiss("search");
|
|
264404
264423
|
return refreshed ? {
|
|
264405
264424
|
result: searchSummaries(buildSearchIndex(refreshed.result), keyword, filters),
|
|
264406
264425
|
missingSources: refreshed.missingSources
|
|
@@ -264480,7 +264499,7 @@ async function getNodeWithDiagnostics(nodeType, options) {
|
|
|
264480
264499
|
if (node || !snapshot.fromCache || options?.refreshOnMiss === false) {
|
|
264481
264500
|
return { result: node, missingSources: snapshot.missingSources };
|
|
264482
264501
|
}
|
|
264483
|
-
const refreshed = await refreshOnMiss(
|
|
264502
|
+
const refreshed = await refreshOnMiss(isConnectorCatalogType(lowerNodeType) ? "connector-catalogue" : "tenant-resource");
|
|
264484
264503
|
return refreshed ? {
|
|
264485
264504
|
result: findNodeByType(refreshed.result, nodeType),
|
|
264486
264505
|
missingSources: refreshed.missingSources
|
|
@@ -264516,7 +264535,7 @@ async function searchNodesWithFilters(keyword, filters, options) {
|
|
|
264516
264535
|
}
|
|
264517
264536
|
return searchWithFilters(nodes, keyword, filters);
|
|
264518
264537
|
}
|
|
264519
|
-
var MANIFEST_VALIDATION_SOURCE = "manifest validation", MANIFEST_VALIDATION_NEXT_STEP = "Fix or remove the tenant resource named in the validation error, then run 'registry pull' again.", TENANT_MANIFEST_INVALID = "TenantManifestInvalid", TenantManifestInvalidError, TENANT_MANIFEST_UNAVAILABLE = "TenantManifestUnavailable", PartialNodeSourcesError, TenantManifestUnavailableError, SessionExpiredError, MAX_FAILURE_REASON_LENGTH = 500, CACHE_EXPIRATION, ENABLED_MANIFEST_FLAGS, CONNECTOR_CATALOG_PREFIXES, MISS_REFRESH_INTERVAL;
|
|
264538
|
+
var MANIFEST_VALIDATION_SOURCE = "manifest validation", MANIFEST_VALIDATION_NEXT_STEP = "Fix or remove the tenant resource named in the validation error, then run 'registry pull' again.", TENANT_MANIFEST_INVALID = "TenantManifestInvalid", TenantManifestInvalidError, TENANT_MANIFEST_UNAVAILABLE = "TenantManifestUnavailable", PartialNodeSourcesError, TenantManifestUnavailableError, SessionExpiredError, MAX_FAILURE_REASON_LENGTH = 500, CACHE_EXPIRATION, ENABLED_MANIFEST_FLAGS, CONNECTOR_CATALOG_PREFIXES, MISS_REFRESH_INTERVAL, CONNECTOR_CATALOGUE_SOURCES;
|
|
264520
264539
|
var init_node_sync_service = __esm(() => {
|
|
264521
264540
|
init_src3();
|
|
264522
264541
|
init_src2();
|
|
@@ -264589,6 +264608,10 @@ var init_node_sync_service = __esm(() => {
|
|
|
264589
264608
|
AGENT_TOOL_CONNECTOR_NODE_PREFIX
|
|
264590
264609
|
];
|
|
264591
264610
|
MISS_REFRESH_INTERVAL = 60 * 1000;
|
|
264611
|
+
CONNECTOR_CATALOGUE_SOURCES = new Set([
|
|
264612
|
+
"connector nodes",
|
|
264613
|
+
"integration trigger nodes"
|
|
264614
|
+
]);
|
|
264592
264615
|
});
|
|
264593
264616
|
|
|
264594
264617
|
// src/registry/command.ts
|
|
@@ -265188,4 +265211,4 @@ export {
|
|
|
265188
265211
|
shownRows
|
|
265189
265212
|
};
|
|
265190
265213
|
|
|
265191
|
-
//# debugId=
|
|
265214
|
+
//# debugId=843B8A3CF9B0B47364756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/maestro-sdk",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.207.0-preview.
|
|
5
|
+
"version": "1.207.0-preview.382",
|
|
6
6
|
"description": "SDK for the UiPath Maestro (PIMS) API — process instance management.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"files": [
|
|
114
114
|
"dist"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "4714e07b10a8e691e8b6ebf6cd9e04ccbecef26e"
|
|
117
117
|
}
|