@uipath/maestro-tool 1.197.0 → 1.198.0-preview.80
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/packager-tool.js +91 -22
- package/dist/tool.js +1704 -414
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -20382,6 +20382,7 @@ var init_src2 = __esm(() => {
|
|
|
20382
20382
|
init_constants();
|
|
20383
20383
|
init_oidc();
|
|
20384
20384
|
init_config();
|
|
20385
|
+
init_constants();
|
|
20385
20386
|
init_envAuth();
|
|
20386
20387
|
init_refreshCircuitBreaker();
|
|
20387
20388
|
init_selectTenant();
|
|
@@ -20427,8 +20428,15 @@ function settlePromiseLike2(thenable) {
|
|
|
20427
20428
|
|
|
20428
20429
|
// ../common/src/error-handler.ts
|
|
20429
20430
|
function describeConnectivityError(error) {
|
|
20430
|
-
|
|
20431
|
-
|
|
20431
|
+
const queue = [error];
|
|
20432
|
+
const seen = new Set;
|
|
20433
|
+
for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
|
|
20434
|
+
const current = queue.shift();
|
|
20435
|
+
if (current === null || typeof current !== "object")
|
|
20436
|
+
continue;
|
|
20437
|
+
if (seen.has(current))
|
|
20438
|
+
continue;
|
|
20439
|
+
seen.add(current);
|
|
20432
20440
|
const cur = current;
|
|
20433
20441
|
const code = typeof cur.code === "string" ? cur.code : undefined;
|
|
20434
20442
|
const message = typeof cur.message === "string" ? cur.message : undefined;
|
|
@@ -20448,7 +20456,10 @@ function describeConnectivityError(error) {
|
|
|
20448
20456
|
instructions: NETWORK_INSTRUCTIONS
|
|
20449
20457
|
};
|
|
20450
20458
|
}
|
|
20451
|
-
|
|
20459
|
+
if (cur.cause !== undefined)
|
|
20460
|
+
queue.push(cur.cause);
|
|
20461
|
+
if (Array.isArray(cur.errors))
|
|
20462
|
+
queue.push(...cur.errors);
|
|
20452
20463
|
}
|
|
20453
20464
|
return;
|
|
20454
20465
|
}
|
|
@@ -27857,11 +27868,12 @@ function getOutputFormat() {
|
|
|
27857
27868
|
function getOutputFilter() {
|
|
27858
27869
|
return filterSlot.get();
|
|
27859
27870
|
}
|
|
27860
|
-
var formatSlot, formatExplicitSlot, filterSlot;
|
|
27871
|
+
var formatSlot, formatExplicitSlot, helpRequestedSlot, filterSlot;
|
|
27861
27872
|
var init_output_format_context = __esm(() => {
|
|
27862
27873
|
init_singleton();
|
|
27863
27874
|
formatSlot = singleton("OutputFormat");
|
|
27864
27875
|
formatExplicitSlot = singleton("OutputFormatExplicit");
|
|
27876
|
+
helpRequestedSlot = singleton("HelpRequested");
|
|
27865
27877
|
filterSlot = singleton("OutputFilter");
|
|
27866
27878
|
});
|
|
27867
27879
|
|
|
@@ -29003,6 +29015,9 @@ var init_formatter = __esm(() => {
|
|
|
29003
29015
|
if (opts?.warning) {
|
|
29004
29016
|
data.Warning = opts.warning;
|
|
29005
29017
|
}
|
|
29018
|
+
if (opts?.pagination) {
|
|
29019
|
+
data.Pagination = opts.pagination;
|
|
29020
|
+
}
|
|
29006
29021
|
success(data);
|
|
29007
29022
|
}
|
|
29008
29023
|
OutputFormatter.emitList = emitList;
|
|
@@ -29552,11 +29567,12 @@ var init_error_instructions = __esm(() => {
|
|
|
29552
29567
|
var init_guid = () => {};
|
|
29553
29568
|
|
|
29554
29569
|
// ../common/src/interactivity-context.ts
|
|
29555
|
-
var modeSlot;
|
|
29570
|
+
var modeSlot, interactiveFlagSlot;
|
|
29556
29571
|
var init_interactivity_context = __esm(() => {
|
|
29557
29572
|
init_output_context();
|
|
29558
29573
|
init_singleton();
|
|
29559
29574
|
modeSlot = singleton("InteractivityMode");
|
|
29575
|
+
interactiveFlagSlot = singleton("InteractiveFlag");
|
|
29560
29576
|
});
|
|
29561
29577
|
|
|
29562
29578
|
// ../common/src/option-aliases.ts
|
|
@@ -125102,7 +125118,7 @@ var init_package = __esm(() => {
|
|
|
125102
125118
|
package_default2 = {
|
|
125103
125119
|
name: "@uipath/integrationservice-sdk",
|
|
125104
125120
|
license: "MIT",
|
|
125105
|
-
version: "1.
|
|
125121
|
+
version: "1.198.0-preview.80",
|
|
125106
125122
|
repository: {
|
|
125107
125123
|
type: "git",
|
|
125108
125124
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -132474,6 +132490,16 @@ var init_apis2 = __esm(() => {
|
|
|
132474
132490
|
});
|
|
132475
132491
|
|
|
132476
132492
|
// ../integrationservice-sdk/src/client-factory.ts
|
|
132493
|
+
function baseApiClassName(name2) {
|
|
132494
|
+
let end = name2.length;
|
|
132495
|
+
while (end > 0 && name2[end - 1] >= "0" && name2[end - 1] <= "9") {
|
|
132496
|
+
end--;
|
|
132497
|
+
}
|
|
132498
|
+
return name2.slice(0, end);
|
|
132499
|
+
}
|
|
132500
|
+
function resolveApiDomain(ApiClass) {
|
|
132501
|
+
return API_DOMAIN_MAP.get(ApiClass) ?? API_DOMAIN_BY_NAME.get(baseApiClassName(ApiClass.name));
|
|
132502
|
+
}
|
|
132477
132503
|
async function getValidatedAuthContext(options) {
|
|
132478
132504
|
const ctx = await getAuthContext({
|
|
132479
132505
|
tenant: options?.tenant,
|
|
@@ -132510,14 +132536,14 @@ async function createElementsConfig(options) {
|
|
|
132510
132536
|
});
|
|
132511
132537
|
}
|
|
132512
132538
|
async function createApiClient(ApiClass, options) {
|
|
132513
|
-
const domain3 =
|
|
132539
|
+
const domain3 = resolveApiDomain(ApiClass);
|
|
132514
132540
|
if (!domain3) {
|
|
132515
132541
|
throw new Error(`Unknown API class: ${ApiClass.name}`);
|
|
132516
132542
|
}
|
|
132517
132543
|
const config3 = domain3 === "connections" ? await createConnectionsConfig(options) : await createElementsConfig(options);
|
|
132518
132544
|
return new ApiClass(config3);
|
|
132519
132545
|
}
|
|
132520
|
-
var API_DOMAIN_MAP;
|
|
132546
|
+
var API_DOMAIN_MAP, API_DOMAIN_BY_NAME;
|
|
132521
132547
|
var init_client_factory2 = __esm(() => {
|
|
132522
132548
|
init_src2();
|
|
132523
132549
|
init_sdk_user_agent();
|
|
@@ -132536,6 +132562,10 @@ var init_client_factory2 = __esm(() => {
|
|
|
132536
132562
|
[SessionsApi, "connections"],
|
|
132537
132563
|
[ElementsApi, "elements"]
|
|
132538
132564
|
]);
|
|
132565
|
+
API_DOMAIN_BY_NAME = new Map([...API_DOMAIN_MAP].map(([ApiClass, domain3]) => [
|
|
132566
|
+
baseApiClassName(ApiClass.name),
|
|
132567
|
+
domain3
|
|
132568
|
+
]));
|
|
132539
132569
|
});
|
|
132540
132570
|
|
|
132541
132571
|
// ../integrationservice-sdk/src/dap/essential-config.ts
|
|
@@ -133777,7 +133807,6 @@ var init_dap = __esm(() => {
|
|
|
133777
133807
|
init_validation();
|
|
133778
133808
|
init_filter_builder();
|
|
133779
133809
|
});
|
|
133780
|
-
|
|
133781
133810
|
// ../integrationservice-sdk/src/index.ts
|
|
133782
133811
|
var init_src5 = __esm(() => {
|
|
133783
133812
|
init_user_agent();
|
|
@@ -134742,7 +134771,9 @@ var init_node_sync_service = __esm(() => {
|
|
|
134742
134771
|
MANIFEST_FEATURE_FLAGS.CONNECTOR_NODES,
|
|
134743
134772
|
MANIFEST_FEATURE_FLAGS.EXTRACT_DOCUMENT,
|
|
134744
134773
|
MANIFEST_FEATURE_FLAGS.HITL,
|
|
134745
|
-
MANIFEST_FEATURE_FLAGS.LOOP_CONTAINER
|
|
134774
|
+
MANIFEST_FEATURE_FLAGS.LOOP_CONTAINER,
|
|
134775
|
+
MANIFEST_FEATURE_FLAGS.BATCH_TRANSFORM,
|
|
134776
|
+
MANIFEST_FEATURE_FLAGS.SUMMARIZE
|
|
134746
134777
|
]);
|
|
134747
134778
|
});
|
|
134748
134779
|
|
|
@@ -135429,7 +135460,7 @@ var init_package2 = __esm(() => {
|
|
|
135429
135460
|
package_default3 = {
|
|
135430
135461
|
name: "@uipath/orchestrator-sdk",
|
|
135431
135462
|
license: "MIT",
|
|
135432
|
-
version: "1.
|
|
135463
|
+
version: "1.198.0",
|
|
135433
135464
|
repository: {
|
|
135434
135465
|
type: "git",
|
|
135435
135466
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -145862,7 +145893,7 @@ var init_package3 = __esm(() => {
|
|
|
145862
145893
|
package_default4 = {
|
|
145863
145894
|
name: "@uipath/solution-sdk",
|
|
145864
145895
|
license: "MIT",
|
|
145865
|
-
version: "1.
|
|
145896
|
+
version: "1.198.0-preview.80",
|
|
145866
145897
|
repository: {
|
|
145867
145898
|
type: "git",
|
|
145868
145899
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -147658,7 +147689,27 @@ function querystringSingleKey5(key, value, keyPrefix = "") {
|
|
|
147658
147689
|
}
|
|
147659
147690
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
147660
147691
|
}
|
|
147661
|
-
|
|
147692
|
+
function canConsumeForm2(consumes) {
|
|
147693
|
+
for (const consume of consumes) {
|
|
147694
|
+
if (consume.contentType === "multipart/form-data") {
|
|
147695
|
+
return true;
|
|
147696
|
+
}
|
|
147697
|
+
}
|
|
147698
|
+
return false;
|
|
147699
|
+
}
|
|
147700
|
+
|
|
147701
|
+
class JSONApiResponse5 {
|
|
147702
|
+
raw;
|
|
147703
|
+
transformer;
|
|
147704
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
147705
|
+
this.raw = raw;
|
|
147706
|
+
this.transformer = transformer;
|
|
147707
|
+
}
|
|
147708
|
+
async value() {
|
|
147709
|
+
return this.transformer(await this.raw.json());
|
|
147710
|
+
}
|
|
147711
|
+
}
|
|
147712
|
+
var BASE_PATH5, DefaultConfig5, BaseAPI5, ResponseError5, FetchError5, RequiredError5;
|
|
147662
147713
|
var init_runtime5 = __esm(() => {
|
|
147663
147714
|
BASE_PATH5 = "https://alpha.uipath.com/studio_/backend".replace(/\/+$/, "");
|
|
147664
147715
|
DefaultConfig5 = new Configuration5;
|
|
@@ -147800,31 +147851,119 @@ var init_runtime5 = __esm(() => {
|
|
|
147800
147851
|
this.cause = cause;
|
|
147801
147852
|
}
|
|
147802
147853
|
};
|
|
147854
|
+
RequiredError5 = class RequiredError5 extends Error {
|
|
147855
|
+
field;
|
|
147856
|
+
name = "RequiredError";
|
|
147857
|
+
constructor(field, msg) {
|
|
147858
|
+
super(msg);
|
|
147859
|
+
this.field = field;
|
|
147860
|
+
}
|
|
147861
|
+
};
|
|
147803
147862
|
});
|
|
147804
147863
|
|
|
147805
147864
|
// ../studioweb-sdk/generated/src/models/AccessStatus.ts
|
|
147865
|
+
function AccessStatusFromJSON(json3) {
|
|
147866
|
+
return AccessStatusFromJSONTyped(json3, false);
|
|
147867
|
+
}
|
|
147868
|
+
function AccessStatusFromJSONTyped(json3, ignoreDiscriminator) {
|
|
147869
|
+
return json3;
|
|
147870
|
+
}
|
|
147806
147871
|
var init_AccessStatus = () => {};
|
|
147807
147872
|
|
|
147808
147873
|
// ../studioweb-sdk/generated/src/models/PinnedProject.ts
|
|
147874
|
+
function PinnedProjectFromJSON(json3) {
|
|
147875
|
+
return PinnedProjectFromJSONTyped(json3, false);
|
|
147876
|
+
}
|
|
147877
|
+
function PinnedProjectFromJSONTyped(json3, ignoreDiscriminator) {
|
|
147878
|
+
if (json3 == null) {
|
|
147879
|
+
return json3;
|
|
147880
|
+
}
|
|
147881
|
+
return {
|
|
147882
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
147883
|
+
projectDbModelId: json3["projectDbModelId"] == null ? undefined : json3["projectDbModelId"],
|
|
147884
|
+
userId: json3["userId"] == null ? undefined : json3["userId"],
|
|
147885
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"]),
|
|
147886
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
147887
|
+
};
|
|
147888
|
+
}
|
|
147809
147889
|
var init_PinnedProject = __esm(() => {
|
|
147810
147890
|
init_ProjectDbModel();
|
|
147811
147891
|
});
|
|
147812
147892
|
|
|
147813
147893
|
// ../studioweb-sdk/generated/src/models/ProjectStructure.ts
|
|
147894
|
+
function ProjectStructureFromJSON(json3) {
|
|
147895
|
+
return ProjectStructureFromJSONTyped(json3, false);
|
|
147896
|
+
}
|
|
147897
|
+
function ProjectStructureFromJSONTyped(json3, ignoreDiscriminator) {
|
|
147898
|
+
return json3;
|
|
147899
|
+
}
|
|
147814
147900
|
var init_ProjectStructure = () => {};
|
|
147815
147901
|
|
|
147816
147902
|
// ../studioweb-sdk/generated/src/models/ProjectAppliedProfileModel.ts
|
|
147903
|
+
function ProjectAppliedProfileModelFromJSON(json3) {
|
|
147904
|
+
return ProjectAppliedProfileModelFromJSONTyped(json3, false);
|
|
147905
|
+
}
|
|
147906
|
+
function ProjectAppliedProfileModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
147907
|
+
if (json3 == null) {
|
|
147908
|
+
return json3;
|
|
147909
|
+
}
|
|
147910
|
+
return {
|
|
147911
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
147912
|
+
workflowId: json3["workflowId"] == null ? undefined : json3["workflowId"],
|
|
147913
|
+
userProfileId: json3["userProfileId"] == null ? undefined : json3["userProfileId"],
|
|
147914
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"]),
|
|
147915
|
+
profile: json3["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json3["profile"])
|
|
147916
|
+
};
|
|
147917
|
+
}
|
|
147817
147918
|
var init_ProjectAppliedProfileModel = __esm(() => {
|
|
147818
147919
|
init_UserBindingProfileModel();
|
|
147819
147920
|
init_ProjectDbModel();
|
|
147820
147921
|
});
|
|
147821
147922
|
|
|
147822
147923
|
// ../studioweb-sdk/generated/src/models/PropertyBindingModel.ts
|
|
147924
|
+
function PropertyBindingModelFromJSON(json3) {
|
|
147925
|
+
return PropertyBindingModelFromJSONTyped(json3, false);
|
|
147926
|
+
}
|
|
147927
|
+
function PropertyBindingModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
147928
|
+
if (json3 == null) {
|
|
147929
|
+
return json3;
|
|
147930
|
+
}
|
|
147931
|
+
return {
|
|
147932
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
147933
|
+
profileId: json3["profileId"] == null ? undefined : json3["profileId"],
|
|
147934
|
+
workflowId: json3["workflowId"] == null ? undefined : json3["workflowId"],
|
|
147935
|
+
activityIdRef: json3["activityIdRef"] == null ? undefined : json3["activityIdRef"],
|
|
147936
|
+
propertyName: json3["propertyName"] == null ? undefined : json3["propertyName"],
|
|
147937
|
+
contractName: json3["contractName"] == null ? undefined : json3["contractName"],
|
|
147938
|
+
resourceKey: json3["resourceKey"] == null ? undefined : json3["resourceKey"],
|
|
147939
|
+
propertyValue: json3["propertyValue"] == null ? undefined : json3["propertyValue"],
|
|
147940
|
+
profile: json3["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json3["profile"])
|
|
147941
|
+
};
|
|
147942
|
+
}
|
|
147823
147943
|
var init_PropertyBindingModel = __esm(() => {
|
|
147824
147944
|
init_UserBindingProfileModel();
|
|
147825
147945
|
});
|
|
147826
147946
|
|
|
147827
147947
|
// ../studioweb-sdk/generated/src/models/UserBindingProfileModel.ts
|
|
147948
|
+
function UserBindingProfileModelFromJSON(json3) {
|
|
147949
|
+
return UserBindingProfileModelFromJSONTyped3(json3, false);
|
|
147950
|
+
}
|
|
147951
|
+
function UserBindingProfileModelFromJSONTyped3(json3, ignoreDiscriminator) {
|
|
147952
|
+
if (json3 == null) {
|
|
147953
|
+
return json3;
|
|
147954
|
+
}
|
|
147955
|
+
return {
|
|
147956
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
147957
|
+
userId: json3["userId"] == null ? undefined : json3["userId"],
|
|
147958
|
+
tenantId: json3["tenantId"] == null ? undefined : json3["tenantId"],
|
|
147959
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
147960
|
+
workflowId: json3["workflowId"] == null ? undefined : json3["workflowId"],
|
|
147961
|
+
bindingsJson: json3["bindingsJson"] == null ? undefined : json3["bindingsJson"],
|
|
147962
|
+
userPropertyBindings: json3["userPropertyBindings"] == null ? undefined : json3["userPropertyBindings"].map(PropertyBindingModelFromJSON),
|
|
147963
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"]),
|
|
147964
|
+
appliedTo: json3["appliedTo"] == null ? undefined : ProjectAppliedProfileModelFromJSON(json3["appliedTo"])
|
|
147965
|
+
};
|
|
147966
|
+
}
|
|
147828
147967
|
var init_UserBindingProfileModel = __esm(() => {
|
|
147829
147968
|
init_ProjectAppliedProfileModel();
|
|
147830
147969
|
init_PropertyBindingModel();
|
|
@@ -147832,46 +147971,181 @@ var init_UserBindingProfileModel = __esm(() => {
|
|
|
147832
147971
|
});
|
|
147833
147972
|
|
|
147834
147973
|
// ../studioweb-sdk/generated/src/models/ProjectAppModel.ts
|
|
147974
|
+
function ProjectAppModelFromJSON(json3) {
|
|
147975
|
+
return ProjectAppModelFromJSONTyped(json3, false);
|
|
147976
|
+
}
|
|
147977
|
+
function ProjectAppModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
147978
|
+
if (json3 == null) {
|
|
147979
|
+
return json3;
|
|
147980
|
+
}
|
|
147981
|
+
return {
|
|
147982
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
147983
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
147984
|
+
appId: json3["appId"] == null ? undefined : json3["appId"],
|
|
147985
|
+
isFileSystemEnabled: json3["isFileSystemEnabled"] == null ? undefined : json3["isFileSystemEnabled"],
|
|
147986
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
147987
|
+
};
|
|
147988
|
+
}
|
|
147835
147989
|
var init_ProjectAppModel = __esm(() => {
|
|
147836
147990
|
init_ProjectDbModel();
|
|
147837
147991
|
});
|
|
147838
147992
|
|
|
147839
147993
|
// ../studioweb-sdk/generated/src/models/ProjectLockModel.ts
|
|
147994
|
+
function ProjectLockModelFromJSON(json3) {
|
|
147995
|
+
return ProjectLockModelFromJSONTyped(json3, false);
|
|
147996
|
+
}
|
|
147997
|
+
function ProjectLockModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
147998
|
+
if (json3 == null) {
|
|
147999
|
+
return json3;
|
|
148000
|
+
}
|
|
148001
|
+
return {
|
|
148002
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148003
|
+
key: json3["key"] == null ? undefined : json3["key"],
|
|
148004
|
+
userId: json3["userId"] == null ? undefined : json3["userId"],
|
|
148005
|
+
expirationDate: json3["expirationDate"] == null ? undefined : new Date(json3["expirationDate"]),
|
|
148006
|
+
rowVersion: json3["rowVersion"] == null ? undefined : json3["rowVersion"],
|
|
148007
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"]),
|
|
148008
|
+
solutionId: json3["solutionId"] == null ? undefined : json3["solutionId"]
|
|
148009
|
+
};
|
|
148010
|
+
}
|
|
147840
148011
|
var init_ProjectLockModel = __esm(() => {
|
|
147841
148012
|
init_ProjectDbModel();
|
|
147842
148013
|
});
|
|
147843
148014
|
|
|
147844
148015
|
// ../studioweb-sdk/generated/src/models/TestManagerMetadataModel.ts
|
|
148016
|
+
function TestManagerMetadataModelFromJSON(json3) {
|
|
148017
|
+
return TestManagerMetadataModelFromJSONTyped(json3, false);
|
|
148018
|
+
}
|
|
148019
|
+
function TestManagerMetadataModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148020
|
+
if (json3 == null) {
|
|
148021
|
+
return json3;
|
|
148022
|
+
}
|
|
148023
|
+
return {
|
|
148024
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148025
|
+
studioWebProjectId: json3["studioWebProjectId"] == null ? undefined : json3["studioWebProjectId"],
|
|
148026
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"]),
|
|
148027
|
+
testManagerProjectId: json3["testManagerProjectId"] == null ? undefined : json3["testManagerProjectId"],
|
|
148028
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"])
|
|
148029
|
+
};
|
|
148030
|
+
}
|
|
147845
148031
|
var init_TestManagerMetadataModel = __esm(() => {
|
|
147846
148032
|
init_ProjectDbModel();
|
|
147847
148033
|
});
|
|
147848
148034
|
|
|
147849
148035
|
// ../studioweb-sdk/generated/src/models/TargetFramework.ts
|
|
148036
|
+
function TargetFrameworkFromJSON(json3) {
|
|
148037
|
+
return TargetFrameworkFromJSONTyped(json3, false);
|
|
148038
|
+
}
|
|
148039
|
+
function TargetFrameworkFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148040
|
+
return json3;
|
|
148041
|
+
}
|
|
147850
148042
|
var init_TargetFramework = () => {};
|
|
147851
148043
|
|
|
147852
148044
|
// ../studioweb-sdk/generated/src/models/ProjectStatus.ts
|
|
148045
|
+
function ProjectStatusFromJSON(json3) {
|
|
148046
|
+
return ProjectStatusFromJSONTyped(json3, false);
|
|
148047
|
+
}
|
|
148048
|
+
function ProjectStatusFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148049
|
+
return json3;
|
|
148050
|
+
}
|
|
147853
148051
|
var init_ProjectStatus = () => {};
|
|
147854
148052
|
|
|
147855
148053
|
// ../studioweb-sdk/generated/src/models/SharingPermissions.ts
|
|
148054
|
+
function SharingPermissionsFromJSON(json3) {
|
|
148055
|
+
return SharingPermissionsFromJSONTyped(json3, false);
|
|
148056
|
+
}
|
|
148057
|
+
function SharingPermissionsFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148058
|
+
return json3;
|
|
148059
|
+
}
|
|
147856
148060
|
var init_SharingPermissions = () => {};
|
|
147857
148061
|
|
|
147858
148062
|
// ../studioweb-sdk/generated/src/models/SharedProject.ts
|
|
148063
|
+
function SharedProjectFromJSON(json3) {
|
|
148064
|
+
return SharedProjectFromJSONTyped(json3, false);
|
|
148065
|
+
}
|
|
148066
|
+
function SharedProjectFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148067
|
+
if (json3 == null) {
|
|
148068
|
+
return json3;
|
|
148069
|
+
}
|
|
148070
|
+
return {
|
|
148071
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148072
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148073
|
+
entityId: json3["entityId"] == null ? undefined : json3["entityId"],
|
|
148074
|
+
organizationId: json3["organizationId"] == null ? undefined : json3["organizationId"],
|
|
148075
|
+
isHidden: json3["isHidden"] == null ? undefined : json3["isHidden"],
|
|
148076
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"]),
|
|
148077
|
+
isGroup: json3["isGroup"] == null ? undefined : json3["isGroup"],
|
|
148078
|
+
permissions: json3["permissions"] == null ? undefined : SharingPermissionsFromJSON(json3["permissions"]),
|
|
148079
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
148080
|
+
};
|
|
148081
|
+
}
|
|
147859
148082
|
var init_SharedProject = __esm(() => {
|
|
147860
148083
|
init_SharingPermissions();
|
|
147861
148084
|
init_ProjectDbModel();
|
|
147862
148085
|
});
|
|
147863
148086
|
|
|
147864
148087
|
// ../studioweb-sdk/generated/src/models/UserMessageDbModel.ts
|
|
148088
|
+
function UserMessageDbModelFromJSON(json3) {
|
|
148089
|
+
return UserMessageDbModelFromJSONTyped(json3, false);
|
|
148090
|
+
}
|
|
148091
|
+
function UserMessageDbModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148092
|
+
if (json3 == null) {
|
|
148093
|
+
return json3;
|
|
148094
|
+
}
|
|
148095
|
+
return {
|
|
148096
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148097
|
+
message: json3["message"] == null ? undefined : json3["message"],
|
|
148098
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"]),
|
|
148099
|
+
projectDbModelId: json3["projectDbModelId"] == null ? undefined : json3["projectDbModelId"],
|
|
148100
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
148101
|
+
};
|
|
148102
|
+
}
|
|
147865
148103
|
var init_UserMessageDbModel = __esm(() => {
|
|
147866
148104
|
init_ProjectDbModel();
|
|
147867
148105
|
});
|
|
147868
148106
|
|
|
147869
148107
|
// ../studioweb-sdk/generated/src/models/ProjectConnectionModel.ts
|
|
148108
|
+
function ProjectConnectionModelFromJSON(json3) {
|
|
148109
|
+
return ProjectConnectionModelFromJSONTyped(json3, false);
|
|
148110
|
+
}
|
|
148111
|
+
function ProjectConnectionModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148112
|
+
if (json3 == null) {
|
|
148113
|
+
return json3;
|
|
148114
|
+
}
|
|
148115
|
+
return {
|
|
148116
|
+
connectionId: json3["connectionId"] == null ? undefined : json3["connectionId"],
|
|
148117
|
+
connector: json3["connector"] == null ? undefined : json3["connector"],
|
|
148118
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148119
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"]),
|
|
148120
|
+
usedInWorkflow: json3["usedInWorkflow"] == null ? undefined : json3["usedInWorkflow"],
|
|
148121
|
+
usedInTrigger: json3["usedInTrigger"] == null ? undefined : json3["usedInTrigger"],
|
|
148122
|
+
workflowFileId: json3["workflowFileId"] == null ? undefined : json3["workflowFileId"]
|
|
148123
|
+
};
|
|
148124
|
+
}
|
|
147870
148125
|
var init_ProjectConnectionModel = __esm(() => {
|
|
147871
148126
|
init_ProjectDbModel();
|
|
147872
148127
|
});
|
|
147873
148128
|
|
|
147874
148129
|
// ../studioweb-sdk/generated/src/models/TriggerMetadataModel.ts
|
|
148130
|
+
function TriggerMetadataModelFromJSON(json3) {
|
|
148131
|
+
return TriggerMetadataModelFromJSONTyped(json3, false);
|
|
148132
|
+
}
|
|
148133
|
+
function TriggerMetadataModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148134
|
+
if (json3 == null) {
|
|
148135
|
+
return json3;
|
|
148136
|
+
}
|
|
148137
|
+
return {
|
|
148138
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148139
|
+
connectionId: json3["connectionId"] == null ? undefined : json3["connectionId"],
|
|
148140
|
+
connection: json3["connection"] == null ? undefined : ConnectionMetadataModelFromJSON(json3["connection"]),
|
|
148141
|
+
projectConnection: json3["projectConnection"] == null ? undefined : ProjectConnectionModelFromJSON(json3["projectConnection"]),
|
|
148142
|
+
operation: json3["operation"] == null ? undefined : json3["operation"],
|
|
148143
|
+
triggerId: json3["triggerId"] == null ? undefined : json3["triggerId"],
|
|
148144
|
+
defaultDisplayName: json3["defaultDisplayName"] == null ? undefined : json3["defaultDisplayName"],
|
|
148145
|
+
displayName: json3["displayName"] == null ? undefined : json3["displayName"],
|
|
148146
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
148147
|
+
};
|
|
148148
|
+
}
|
|
147875
148149
|
var init_TriggerMetadataModel = __esm(() => {
|
|
147876
148150
|
init_ConnectionMetadataModel();
|
|
147877
148151
|
init_ProjectConnectionModel();
|
|
@@ -147879,36 +148153,183 @@ var init_TriggerMetadataModel = __esm(() => {
|
|
|
147879
148153
|
});
|
|
147880
148154
|
|
|
147881
148155
|
// ../studioweb-sdk/generated/src/models/ConnectionMetadataModel.ts
|
|
148156
|
+
function ConnectionMetadataModelFromJSON(json3) {
|
|
148157
|
+
return ConnectionMetadataModelFromJSONTyped2(json3, false);
|
|
148158
|
+
}
|
|
148159
|
+
function ConnectionMetadataModelFromJSONTyped2(json3, ignoreDiscriminator) {
|
|
148160
|
+
if (json3 == null) {
|
|
148161
|
+
return json3;
|
|
148162
|
+
}
|
|
148163
|
+
return {
|
|
148164
|
+
connectionId: json3["connectionId"] == null ? undefined : json3["connectionId"],
|
|
148165
|
+
connector: json3["connector"] == null ? undefined : json3["connector"],
|
|
148166
|
+
projects: json3["projects"] == null ? undefined : json3["projects"].map(ProjectDbModelFromJSON),
|
|
148167
|
+
triggers: json3["triggers"] == null ? undefined : json3["triggers"].map(TriggerMetadataModelFromJSON)
|
|
148168
|
+
};
|
|
148169
|
+
}
|
|
147882
148170
|
var init_ConnectionMetadataModel = __esm(() => {
|
|
147883
148171
|
init_TriggerMetadataModel();
|
|
147884
148172
|
init_ProjectDbModel();
|
|
147885
148173
|
});
|
|
147886
148174
|
|
|
147887
148175
|
// ../studioweb-sdk/generated/src/models/ProjectMetadataModel.ts
|
|
148176
|
+
function ProjectMetadataModelFromJSON(json3) {
|
|
148177
|
+
return ProjectMetadataModelFromJSONTyped(json3, false);
|
|
148178
|
+
}
|
|
148179
|
+
function ProjectMetadataModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148180
|
+
if (json3 == null) {
|
|
148181
|
+
return json3;
|
|
148182
|
+
}
|
|
148183
|
+
return {
|
|
148184
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148185
|
+
hasTestCases: json3["hasTestCases"] == null ? undefined : json3["hasTestCases"],
|
|
148186
|
+
mcIgnorableApplied: json3["mcIgnorableApplied"] == null ? undefined : new Date(json3["mcIgnorableApplied"]),
|
|
148187
|
+
lastScanDate: json3["lastScanDate"] == null ? undefined : new Date(json3["lastScanDate"]),
|
|
148188
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
148189
|
+
};
|
|
148190
|
+
}
|
|
147888
148191
|
var init_ProjectMetadataModel = __esm(() => {
|
|
147889
148192
|
init_ProjectDbModel();
|
|
147890
148193
|
});
|
|
147891
148194
|
|
|
147892
148195
|
// ../studioweb-sdk/generated/src/models/PublishStatus.ts
|
|
148196
|
+
function PublishStatusFromJSON(json3) {
|
|
148197
|
+
return PublishStatusFromJSONTyped(json3, false);
|
|
148198
|
+
}
|
|
148199
|
+
function PublishStatusFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148200
|
+
return json3;
|
|
148201
|
+
}
|
|
147893
148202
|
var init_PublishStatus = () => {};
|
|
147894
148203
|
|
|
147895
148204
|
// ../studioweb-sdk/generated/src/models/PublishResultModel.ts
|
|
148205
|
+
function PublishResultModelFromJSON(json3) {
|
|
148206
|
+
return PublishResultModelFromJSONTyped(json3, false);
|
|
148207
|
+
}
|
|
148208
|
+
function PublishResultModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148209
|
+
if (json3 == null) {
|
|
148210
|
+
return json3;
|
|
148211
|
+
}
|
|
148212
|
+
return {
|
|
148213
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148214
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148215
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"]),
|
|
148216
|
+
status: json3["status"] == null ? undefined : PublishStatusFromJSON(json3["status"]),
|
|
148217
|
+
message: json3["message"] == null ? undefined : json3["message"],
|
|
148218
|
+
tenantId: json3["tenantId"] == null ? undefined : json3["tenantId"],
|
|
148219
|
+
feedId: json3["feedId"] == null ? undefined : json3["feedId"],
|
|
148220
|
+
version: json3["version"] == null ? undefined : json3["version"],
|
|
148221
|
+
userId: json3["userId"] == null ? undefined : json3["userId"],
|
|
148222
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"]),
|
|
148223
|
+
iconUrl: json3["iconUrl"] == null ? undefined : json3["iconUrl"]
|
|
148224
|
+
};
|
|
148225
|
+
}
|
|
147896
148226
|
var init_PublishResultModel = __esm(() => {
|
|
147897
148227
|
init_ProjectDbModel();
|
|
147898
148228
|
init_PublishStatus();
|
|
147899
148229
|
});
|
|
147900
148230
|
|
|
147901
148231
|
// ../studioweb-sdk/generated/src/models/SapContext.ts
|
|
148232
|
+
function SapContextFromJSON(json3) {
|
|
148233
|
+
return SapContextFromJSONTyped(json3, false);
|
|
148234
|
+
}
|
|
148235
|
+
function SapContextFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148236
|
+
if (json3 == null) {
|
|
148237
|
+
return json3;
|
|
148238
|
+
}
|
|
148239
|
+
return {
|
|
148240
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148241
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148242
|
+
tenantId: json3["tenantId"] == null ? undefined : json3["tenantId"],
|
|
148243
|
+
isPrimaryProject: json3["isPrimaryProject"] == null ? undefined : json3["isPrimaryProject"],
|
|
148244
|
+
externalProjectId: json3["externalProjectId"] == null ? undefined : json3["externalProjectId"],
|
|
148245
|
+
baseCallbackPath: json3["baseCallbackPath"] == null ? undefined : json3["baseCallbackPath"],
|
|
148246
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
148247
|
+
};
|
|
148248
|
+
}
|
|
147902
148249
|
var init_SapContext = __esm(() => {
|
|
147903
148250
|
init_ProjectDbModel();
|
|
147904
148251
|
});
|
|
147905
148252
|
|
|
147906
148253
|
// ../studioweb-sdk/generated/src/models/ProjectPackageModel.ts
|
|
148254
|
+
function ProjectPackageModelFromJSON(json3) {
|
|
148255
|
+
return ProjectPackageModelFromJSONTyped(json3, false);
|
|
148256
|
+
}
|
|
148257
|
+
function ProjectPackageModelFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148258
|
+
if (json3 == null) {
|
|
148259
|
+
return json3;
|
|
148260
|
+
}
|
|
148261
|
+
return {
|
|
148262
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148263
|
+
name: json3["name"] == null ? undefined : json3["name"],
|
|
148264
|
+
version: json3["version"] == null ? undefined : json3["version"],
|
|
148265
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"])
|
|
148266
|
+
};
|
|
148267
|
+
}
|
|
147907
148268
|
var init_ProjectPackageModel = __esm(() => {
|
|
147908
148269
|
init_ProjectDbModel();
|
|
147909
148270
|
});
|
|
147910
148271
|
|
|
147911
148272
|
// ../studioweb-sdk/generated/src/models/ProjectDbModel.ts
|
|
148273
|
+
function ProjectDbModelFromJSON(json3) {
|
|
148274
|
+
return ProjectDbModelFromJSONTyped16(json3, false);
|
|
148275
|
+
}
|
|
148276
|
+
function ProjectDbModelFromJSONTyped16(json3, ignoreDiscriminator) {
|
|
148277
|
+
if (json3 == null) {
|
|
148278
|
+
return json3;
|
|
148279
|
+
}
|
|
148280
|
+
return {
|
|
148281
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148282
|
+
designId: json3["designId"] == null ? undefined : json3["designId"],
|
|
148283
|
+
previousProjectId: json3["previousProjectId"] == null ? undefined : json3["previousProjectId"],
|
|
148284
|
+
userId: json3["userId"] == null ? undefined : json3["userId"],
|
|
148285
|
+
organisationId: json3["organisationId"] == null ? undefined : json3["organisationId"],
|
|
148286
|
+
name: json3["name"] == null ? undefined : json3["name"],
|
|
148287
|
+
solutionId: json3["solutionId"] == null ? undefined : json3["solutionId"],
|
|
148288
|
+
deletionDate: json3["deletionDate"] == null ? undefined : new Date(json3["deletionDate"]),
|
|
148289
|
+
status: json3["status"] == null ? undefined : ProjectStatusFromJSON(json3["status"]),
|
|
148290
|
+
fakeProjectTemplateEdit: json3["fakeProjectTemplateEdit"] == null ? undefined : json3["fakeProjectTemplateEdit"],
|
|
148291
|
+
isHidden: json3["isHidden"] == null ? undefined : json3["isHidden"],
|
|
148292
|
+
targetFramework: json3["targetFramework"] == null ? undefined : TargetFrameworkFromJSON(json3["targetFramework"]),
|
|
148293
|
+
projectType: json3["projectType"] == null ? undefined : json3["projectType"],
|
|
148294
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"]),
|
|
148295
|
+
lastModifiedTime: json3["lastModifiedTime"] == null ? undefined : new Date(json3["lastModifiedTime"]),
|
|
148296
|
+
expressionLanguage: json3["expressionLanguage"] == null ? undefined : json3["expressionLanguage"],
|
|
148297
|
+
nameLower: json3["nameLower"] == null ? undefined : json3["nameLower"],
|
|
148298
|
+
description: json3["description"] == null ? undefined : json3["description"],
|
|
148299
|
+
descriptionLower: json3["descriptionLower"] == null ? undefined : json3["descriptionLower"],
|
|
148300
|
+
jitVersion: json3["jitVersion"] == null ? undefined : json3["jitVersion"],
|
|
148301
|
+
dependencies: json3["dependencies"] == null ? undefined : json3["dependencies"].map(ProjectPackageModelFromJSON),
|
|
148302
|
+
pinDate: json3["pinDate"] == null ? undefined : new Date(json3["pinDate"]),
|
|
148303
|
+
lock: json3["lock"] == null ? undefined : ProjectLockModelFromJSON(json3["lock"]),
|
|
148304
|
+
hasTrigger: json3["hasTrigger"] == null ? undefined : json3["hasTrigger"],
|
|
148305
|
+
tenantId: json3["tenantId"] == null ? undefined : json3["tenantId"],
|
|
148306
|
+
sapContext: json3["sapContext"] == null ? undefined : SapContextFromJSON(json3["sapContext"]),
|
|
148307
|
+
rowVersion: json3["rowVersion"] == null ? undefined : json3["rowVersion"],
|
|
148308
|
+
disableAutoUpdateUntilDate: json3["disableAutoUpdateUntilDate"] == null ? undefined : new Date(json3["disableAutoUpdateUntilDate"]),
|
|
148309
|
+
structure: json3["structure"] == null ? undefined : ProjectStructureFromJSON(json3["structure"]),
|
|
148310
|
+
userMessage: json3["userMessage"] == null ? undefined : UserMessageDbModelFromJSON(json3["userMessage"]),
|
|
148311
|
+
triggerType: json3["triggerType"] == null ? undefined : json3["triggerType"],
|
|
148312
|
+
trigger: json3["trigger"] == null ? undefined : TriggerMetadataModelFromJSON(json3["trigger"]),
|
|
148313
|
+
connections: json3["connections"] == null ? undefined : json3["connections"].map(ConnectionMetadataModelFromJSON),
|
|
148314
|
+
pins: json3["pins"] == null ? undefined : json3["pins"].map(PinnedProjectFromJSON),
|
|
148315
|
+
bindingProfiles: json3["bindingProfiles"] == null ? undefined : json3["bindingProfiles"].map(UserBindingProfileModelFromJSON),
|
|
148316
|
+
lastAppliedProfileId: json3["lastAppliedProfileId"] == null ? undefined : json3["lastAppliedProfileId"],
|
|
148317
|
+
lastAppliedProfile: json3["lastAppliedProfile"] == null ? undefined : UserBindingProfileModelFromJSON(json3["lastAppliedProfile"]),
|
|
148318
|
+
hasDefaultName: json3["hasDefaultName"] == null ? undefined : json3["hasDefaultName"],
|
|
148319
|
+
projectAppliedProfiles: json3["projectAppliedProfiles"] == null ? undefined : json3["projectAppliedProfiles"].map(ProjectAppliedProfileModelFromJSON),
|
|
148320
|
+
projectConnections: json3["projectConnections"] == null ? undefined : json3["projectConnections"].map(ProjectConnectionModelFromJSON),
|
|
148321
|
+
additionalBindingProperties: json3["additionalBindingProperties"] == null ? undefined : json3["additionalBindingProperties"].map(AdditionalBindingPropertiesFromJSON),
|
|
148322
|
+
publishHistory: json3["publishHistory"] == null ? undefined : json3["publishHistory"].map(PublishResultModelFromJSON),
|
|
148323
|
+
projectAppMetadata: json3["projectAppMetadata"] == null ? undefined : ProjectAppModelFromJSON(json3["projectAppMetadata"]),
|
|
148324
|
+
testManagerMetadata: json3["testManagerMetadata"] == null ? undefined : TestManagerMetadataModelFromJSON(json3["testManagerMetadata"]),
|
|
148325
|
+
shares: json3["shares"] == null ? undefined : json3["shares"].map(SharedProjectFromJSON),
|
|
148326
|
+
metadata: json3["metadata"] == null ? undefined : ProjectMetadataModelFromJSON(json3["metadata"]),
|
|
148327
|
+
isPreview: json3["isPreview"] == null ? undefined : json3["isPreview"],
|
|
148328
|
+
errorList: json3["errorList"] == null ? undefined : json3["errorList"],
|
|
148329
|
+
requirePreprocessing: json3["requirePreprocessing"] == null ? undefined : json3["requirePreprocessing"],
|
|
148330
|
+
relativePath: json3["relativePath"] == null ? undefined : json3["relativePath"]
|
|
148331
|
+
};
|
|
148332
|
+
}
|
|
147912
148333
|
var init_ProjectDbModel = __esm(() => {
|
|
147913
148334
|
init_PinnedProject();
|
|
147914
148335
|
init_ProjectStructure();
|
|
@@ -147932,41 +148353,310 @@ var init_ProjectDbModel = __esm(() => {
|
|
|
147932
148353
|
});
|
|
147933
148354
|
|
|
147934
148355
|
// ../studioweb-sdk/generated/src/models/AdditionalBindingProperties.ts
|
|
148356
|
+
function AdditionalBindingPropertiesFromJSON(json3) {
|
|
148357
|
+
return AdditionalBindingPropertiesFromJSONTyped2(json3, false);
|
|
148358
|
+
}
|
|
148359
|
+
function AdditionalBindingPropertiesFromJSONTyped2(json3, ignoreDiscriminator) {
|
|
148360
|
+
if (json3 == null) {
|
|
148361
|
+
return json3;
|
|
148362
|
+
}
|
|
148363
|
+
return {
|
|
148364
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"],
|
|
148365
|
+
project: json3["project"] == null ? undefined : ProjectDbModelFromJSON(json3["project"]),
|
|
148366
|
+
workflowFileId: json3["workflowFileId"] == null ? undefined : json3["workflowFileId"],
|
|
148367
|
+
resourceType: json3["resourceType"] == null ? undefined : json3["resourceType"],
|
|
148368
|
+
resourceKey: json3["resourceKey"] == null ? undefined : json3["resourceKey"],
|
|
148369
|
+
purpose: json3["purpose"] == null ? undefined : json3["purpose"]
|
|
148370
|
+
};
|
|
148371
|
+
}
|
|
147935
148372
|
var init_AdditionalBindingProperties = __esm(() => {
|
|
147936
148373
|
init_ProjectDbModel();
|
|
147937
148374
|
});
|
|
148375
|
+
|
|
148376
|
+
// ../studioweb-sdk/generated/src/models/AdditionalBindingPropertiesDto.ts
|
|
148377
|
+
function AdditionalBindingPropertiesDtoFromJSON(json3) {
|
|
148378
|
+
return AdditionalBindingPropertiesDtoFromJSONTyped(json3, false);
|
|
148379
|
+
}
|
|
148380
|
+
function AdditionalBindingPropertiesDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148381
|
+
if (json3 == null) {
|
|
148382
|
+
return json3;
|
|
148383
|
+
}
|
|
148384
|
+
return {
|
|
148385
|
+
resourceType: json3["resourceType"] == null ? undefined : json3["resourceType"],
|
|
148386
|
+
resourceKey: json3["resourceKey"] == null ? undefined : json3["resourceKey"],
|
|
148387
|
+
purpose: json3["purpose"] == null ? undefined : json3["purpose"],
|
|
148388
|
+
workflowFileId: json3["workflowFileId"] == null ? undefined : json3["workflowFileId"]
|
|
148389
|
+
};
|
|
148390
|
+
}
|
|
148391
|
+
|
|
147938
148392
|
// ../studioweb-sdk/generated/src/models/AppUsageType.ts
|
|
148393
|
+
function AppUsageTypeFromJSON(json3) {
|
|
148394
|
+
return AppUsageTypeFromJSONTyped(json3, false);
|
|
148395
|
+
}
|
|
148396
|
+
function AppUsageTypeFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148397
|
+
return json3;
|
|
148398
|
+
}
|
|
147939
148399
|
var init_AppUsageType = () => {};
|
|
147940
148400
|
|
|
147941
148401
|
// ../studioweb-sdk/generated/src/models/FileType.ts
|
|
148402
|
+
function FileTypeFromJSON(json3) {
|
|
148403
|
+
return FileTypeFromJSONTyped(json3, false);
|
|
148404
|
+
}
|
|
148405
|
+
function FileTypeFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148406
|
+
return json3;
|
|
148407
|
+
}
|
|
147942
148408
|
var init_FileType = () => {};
|
|
147943
148409
|
|
|
147944
148410
|
// ../studioweb-sdk/generated/src/models/FileDto.ts
|
|
148411
|
+
function FileDtoFromJSON(json3) {
|
|
148412
|
+
return FileDtoFromJSONTyped(json3, false);
|
|
148413
|
+
}
|
|
148414
|
+
function FileDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148415
|
+
if (json3 == null) {
|
|
148416
|
+
return json3;
|
|
148417
|
+
}
|
|
148418
|
+
return {
|
|
148419
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148420
|
+
name: json3["name"] == null ? undefined : json3["name"],
|
|
148421
|
+
isMain: json3["isMain"] == null ? undefined : json3["isMain"],
|
|
148422
|
+
fileType: json3["fileType"] == null ? undefined : FileTypeFromJSON(json3["fileType"]),
|
|
148423
|
+
isEntryPoint: json3["isEntryPoint"] == null ? undefined : json3["isEntryPoint"],
|
|
148424
|
+
ignoredFromPublish: json3["ignoredFromPublish"] == null ? undefined : json3["ignoredFromPublish"],
|
|
148425
|
+
appFormId: json3["appFormId"] == null ? undefined : json3["appFormId"],
|
|
148426
|
+
externalAutomationId: json3["externalAutomationId"] == null ? undefined : json3["externalAutomationId"],
|
|
148427
|
+
testCaseId: json3["testCaseId"] == null ? undefined : json3["testCaseId"],
|
|
148428
|
+
contentSignature: json3["contentSignature"] == null ? undefined : json3["contentSignature"]
|
|
148429
|
+
};
|
|
148430
|
+
}
|
|
147945
148431
|
var init_FileDto = __esm(() => {
|
|
147946
148432
|
init_FileType();
|
|
147947
148433
|
});
|
|
147948
148434
|
|
|
147949
148435
|
// ../studioweb-sdk/generated/src/models/SpecialFolderType.ts
|
|
148436
|
+
function SpecialFolderTypeFromJSON(json3) {
|
|
148437
|
+
return SpecialFolderTypeFromJSONTyped(json3, false);
|
|
148438
|
+
}
|
|
148439
|
+
function SpecialFolderTypeFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148440
|
+
return json3;
|
|
148441
|
+
}
|
|
147950
148442
|
var init_SpecialFolderType = () => {};
|
|
147951
148443
|
|
|
147952
148444
|
// ../studioweb-sdk/generated/src/models/FolderDto.ts
|
|
148445
|
+
function FolderDtoFromJSON2(json3) {
|
|
148446
|
+
return FolderDtoFromJSONTyped4(json3, false);
|
|
148447
|
+
}
|
|
148448
|
+
function FolderDtoFromJSONTyped4(json3, ignoreDiscriminator) {
|
|
148449
|
+
if (json3 == null) {
|
|
148450
|
+
return json3;
|
|
148451
|
+
}
|
|
148452
|
+
return {
|
|
148453
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148454
|
+
name: json3["name"] == null ? undefined : json3["name"],
|
|
148455
|
+
folders: json3["folders"] == null ? undefined : json3["folders"].map(FolderDtoFromJSON2),
|
|
148456
|
+
files: json3["files"] == null ? undefined : json3["files"].map(FileDtoFromJSON),
|
|
148457
|
+
folderType: json3["folderType"] == null ? undefined : SpecialFolderTypeFromJSON(json3["folderType"])
|
|
148458
|
+
};
|
|
148459
|
+
}
|
|
147953
148460
|
var init_FolderDto2 = __esm(() => {
|
|
147954
148461
|
init_FileDto();
|
|
147955
148462
|
init_SpecialFolderType();
|
|
147956
148463
|
});
|
|
148464
|
+
|
|
148465
|
+
// ../studioweb-sdk/generated/src/models/MetadataConnectionDto.ts
|
|
148466
|
+
function MetadataConnectionDtoFromJSON(json3) {
|
|
148467
|
+
return MetadataConnectionDtoFromJSONTyped(json3, false);
|
|
148468
|
+
}
|
|
148469
|
+
function MetadataConnectionDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148470
|
+
if (json3 == null) {
|
|
148471
|
+
return json3;
|
|
148472
|
+
}
|
|
148473
|
+
return {
|
|
148474
|
+
connectionId: json3["connectionId"] == null ? undefined : json3["connectionId"],
|
|
148475
|
+
connector: json3["connector"] == null ? undefined : json3["connector"],
|
|
148476
|
+
purpose: json3["purpose"] == null ? undefined : json3["purpose"],
|
|
148477
|
+
workflowFileId: json3["workflowFileId"] == null ? undefined : json3["workflowFileId"]
|
|
148478
|
+
};
|
|
148479
|
+
}
|
|
148480
|
+
|
|
147957
148481
|
// ../studioweb-sdk/generated/src/models/MetadataTriggerDto.ts
|
|
148482
|
+
function MetadataTriggerDtoFromJSON(json3) {
|
|
148483
|
+
return MetadataTriggerDtoFromJSONTyped(json3, false);
|
|
148484
|
+
}
|
|
148485
|
+
function MetadataTriggerDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148486
|
+
if (json3 == null) {
|
|
148487
|
+
return json3;
|
|
148488
|
+
}
|
|
148489
|
+
return {
|
|
148490
|
+
connection: json3["connection"] == null ? undefined : MetadataConnectionDtoFromJSON(json3["connection"]),
|
|
148491
|
+
operation: json3["operation"] == null ? undefined : json3["operation"],
|
|
148492
|
+
triggerId: json3["triggerId"] == null ? undefined : json3["triggerId"],
|
|
148493
|
+
defaultDisplayName: json3["defaultDisplayName"] == null ? undefined : json3["defaultDisplayName"],
|
|
148494
|
+
displayName: json3["displayName"] == null ? undefined : json3["displayName"]
|
|
148495
|
+
};
|
|
148496
|
+
}
|
|
147958
148497
|
var init_MetadataTriggerDto = () => {};
|
|
148498
|
+
|
|
148499
|
+
// ../studioweb-sdk/generated/src/models/PackageDto.ts
|
|
148500
|
+
function PackageDtoFromJSON(json3) {
|
|
148501
|
+
return PackageDtoFromJSONTyped(json3, false);
|
|
148502
|
+
}
|
|
148503
|
+
function PackageDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148504
|
+
if (json3 == null) {
|
|
148505
|
+
return json3;
|
|
148506
|
+
}
|
|
148507
|
+
return {
|
|
148508
|
+
name: json3["name"],
|
|
148509
|
+
version: json3["version"],
|
|
148510
|
+
isRestricted: json3["isRestricted"] == null ? undefined : json3["isRestricted"]
|
|
148511
|
+
};
|
|
148512
|
+
}
|
|
148513
|
+
|
|
148514
|
+
// ../studioweb-sdk/generated/src/models/TestManagerMetadataDto.ts
|
|
148515
|
+
function TestManagerMetadataDtoFromJSON(json3) {
|
|
148516
|
+
return TestManagerMetadataDtoFromJSONTyped(json3, false);
|
|
148517
|
+
}
|
|
148518
|
+
function TestManagerMetadataDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148519
|
+
if (json3 == null) {
|
|
148520
|
+
return json3;
|
|
148521
|
+
}
|
|
148522
|
+
return {
|
|
148523
|
+
testManagerProjectId: json3["testManagerProjectId"] == null ? undefined : json3["testManagerProjectId"],
|
|
148524
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"])
|
|
148525
|
+
};
|
|
148526
|
+
}
|
|
148527
|
+
|
|
147959
148528
|
// ../studioweb-sdk/generated/src/models/ProjectErrorCode.ts
|
|
148529
|
+
function ProjectErrorCodeFromJSON(json3) {
|
|
148530
|
+
return ProjectErrorCodeFromJSONTyped(json3, false);
|
|
148531
|
+
}
|
|
148532
|
+
function ProjectErrorCodeFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148533
|
+
return json3;
|
|
148534
|
+
}
|
|
147960
148535
|
var init_ProjectErrorCode = () => {};
|
|
147961
148536
|
|
|
147962
148537
|
// ../studioweb-sdk/generated/src/models/ProjectErrorInformation.ts
|
|
148538
|
+
function ProjectErrorInformationFromJSON(json3) {
|
|
148539
|
+
return ProjectErrorInformationFromJSONTyped(json3, false);
|
|
148540
|
+
}
|
|
148541
|
+
function ProjectErrorInformationFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148542
|
+
if (json3 == null) {
|
|
148543
|
+
return json3;
|
|
148544
|
+
}
|
|
148545
|
+
return {
|
|
148546
|
+
errorCode: json3["errorCode"] == null ? undefined : ProjectErrorCodeFromJSON(json3["errorCode"]),
|
|
148547
|
+
metadata: json3["metadata"] == null ? undefined : json3["metadata"],
|
|
148548
|
+
errorMessage: json3["errorMessage"] == null ? undefined : json3["errorMessage"],
|
|
148549
|
+
locationId: json3["locationId"] == null ? undefined : json3["locationId"],
|
|
148550
|
+
isSpecialLocation: json3["isSpecialLocation"] == null ? undefined : json3["isSpecialLocation"]
|
|
148551
|
+
};
|
|
148552
|
+
}
|
|
147963
148553
|
var init_ProjectErrorInformation = __esm(() => {
|
|
147964
148554
|
init_ProjectErrorCode();
|
|
147965
148555
|
});
|
|
148556
|
+
|
|
148557
|
+
// ../studioweb-sdk/generated/src/models/SapContextDto.ts
|
|
148558
|
+
function SapContextDtoFromJSON(json3) {
|
|
148559
|
+
return SapContextDtoFromJSONTyped(json3, false);
|
|
148560
|
+
}
|
|
148561
|
+
function SapContextDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148562
|
+
if (json3 == null) {
|
|
148563
|
+
return json3;
|
|
148564
|
+
}
|
|
148565
|
+
return {
|
|
148566
|
+
tenantId: json3["tenantId"] == null ? undefined : json3["tenantId"],
|
|
148567
|
+
isPrimaryProject: json3["isPrimaryProject"] == null ? undefined : json3["isPrimaryProject"],
|
|
148568
|
+
externalProjectId: json3["externalProjectId"] == null ? undefined : json3["externalProjectId"]
|
|
148569
|
+
};
|
|
148570
|
+
}
|
|
148571
|
+
|
|
148572
|
+
// ../studioweb-sdk/generated/src/models/WorkflowUiState.ts
|
|
148573
|
+
function WorkflowUiStateFromJSON(json3) {
|
|
148574
|
+
return WorkflowUiStateFromJSONTyped(json3, false);
|
|
148575
|
+
}
|
|
148576
|
+
function WorkflowUiStateFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148577
|
+
if (json3 == null) {
|
|
148578
|
+
return json3;
|
|
148579
|
+
}
|
|
148580
|
+
return {
|
|
148581
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148582
|
+
workflowId: json3["workflowId"] == null ? undefined : json3["workflowId"],
|
|
148583
|
+
json: json3["json"] == null ? undefined : json3["json"],
|
|
148584
|
+
projectId: json3["projectId"] == null ? undefined : json3["projectId"]
|
|
148585
|
+
};
|
|
148586
|
+
}
|
|
148587
|
+
|
|
147966
148588
|
// ../studioweb-sdk/generated/src/models/TargetPlatform.ts
|
|
148589
|
+
function TargetPlatformFromJSON(json3) {
|
|
148590
|
+
return TargetPlatformFromJSONTyped(json3, false);
|
|
148591
|
+
}
|
|
148592
|
+
function TargetPlatformFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148593
|
+
return json3;
|
|
148594
|
+
}
|
|
147967
148595
|
var init_TargetPlatform = () => {};
|
|
147968
148596
|
|
|
147969
148597
|
// ../studioweb-sdk/generated/src/models/ProjectDto.ts
|
|
148598
|
+
function ProjectDtoFromJSON2(json3) {
|
|
148599
|
+
return ProjectDtoFromJSONTyped(json3, false);
|
|
148600
|
+
}
|
|
148601
|
+
function ProjectDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148602
|
+
if (json3 == null) {
|
|
148603
|
+
return json3;
|
|
148604
|
+
}
|
|
148605
|
+
return {
|
|
148606
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148607
|
+
designId: json3["designId"] == null ? undefined : json3["designId"],
|
|
148608
|
+
expressionLanguage: json3["expressionLanguage"] == null ? undefined : json3["expressionLanguage"],
|
|
148609
|
+
projectType: json3["projectType"] == null ? undefined : json3["projectType"],
|
|
148610
|
+
name: json3["name"] == null ? undefined : json3["name"],
|
|
148611
|
+
description: json3["description"] == null ? undefined : json3["description"],
|
|
148612
|
+
tenantId: json3["tenantId"] == null ? undefined : json3["tenantId"],
|
|
148613
|
+
status: json3["status"] == null ? undefined : ProjectStatusFromJSON(json3["status"]),
|
|
148614
|
+
message: json3["message"] == null ? undefined : json3["message"],
|
|
148615
|
+
lastModifiedTime: json3["lastModifiedTime"] == null ? undefined : new Date(json3["lastModifiedTime"]),
|
|
148616
|
+
pinDate: json3["pinDate"] == null ? undefined : new Date(json3["pinDate"]),
|
|
148617
|
+
triggerType: json3["triggerType"] == null ? undefined : json3["triggerType"],
|
|
148618
|
+
trigger: json3["trigger"] == null ? undefined : MetadataTriggerDtoFromJSON(json3["trigger"]),
|
|
148619
|
+
connections: json3["connections"] == null ? undefined : json3["connections"].map(MetadataConnectionDtoFromJSON),
|
|
148620
|
+
lockedBy: json3["lockedBy"] == null ? undefined : json3["lockedBy"],
|
|
148621
|
+
isSharedByMe: json3["isSharedByMe"] == null ? undefined : json3["isSharedByMe"],
|
|
148622
|
+
isSharedWithMe: json3["isSharedWithMe"] == null ? undefined : json3["isSharedWithMe"],
|
|
148623
|
+
projectAppId: json3["projectAppId"] == null ? undefined : json3["projectAppId"],
|
|
148624
|
+
isSwFileSystemEnabledForApps: json3["isSwFileSystemEnabledForApps"] == null ? undefined : json3["isSwFileSystemEnabledForApps"],
|
|
148625
|
+
ownerId: json3["ownerId"] == null ? undefined : json3["ownerId"],
|
|
148626
|
+
sapContext: json3["sapContext"] == null ? undefined : SapContextDtoFromJSON(json3["sapContext"]),
|
|
148627
|
+
hasDefaultName: json3["hasDefaultName"] == null ? undefined : json3["hasDefaultName"],
|
|
148628
|
+
errorList: json3["errorList"] == null ? undefined : json3["errorList"].map(ProjectErrorInformationFromJSON),
|
|
148629
|
+
solutionId: json3["solutionId"] == null ? undefined : json3["solutionId"],
|
|
148630
|
+
testManagerMetadata: json3["testManagerMetadata"] == null ? undefined : TestManagerMetadataDtoFromJSON(json3["testManagerMetadata"]),
|
|
148631
|
+
isPreview: json3["isPreview"] == null ? undefined : json3["isPreview"],
|
|
148632
|
+
lastPublishedVersion: json3["lastPublishedVersion"] == null ? undefined : PublishResultModelFromJSON(json3["lastPublishedVersion"]),
|
|
148633
|
+
publishedToFeeds: json3["publishedToFeeds"] == null ? undefined : json3["publishedToFeeds"],
|
|
148634
|
+
sortIndex: json3["sortIndex"] == null ? undefined : json3["sortIndex"],
|
|
148635
|
+
hasTestCases: json3["hasTestCases"] == null ? undefined : json3["hasTestCases"],
|
|
148636
|
+
isApp: json3["isApp"] == null ? undefined : json3["isApp"],
|
|
148637
|
+
targetPlatform: json3["targetPlatform"] == null ? undefined : TargetPlatformFromJSON(json3["targetPlatform"]),
|
|
148638
|
+
creationTime: json3["creationTime"] == null ? undefined : new Date(json3["creationTime"]),
|
|
148639
|
+
userId: json3["userId"] == null ? undefined : json3["userId"],
|
|
148640
|
+
rootFolder: json3["rootFolder"] == null ? undefined : FolderDtoFromJSON2(json3["rootFolder"]),
|
|
148641
|
+
dependencies: json3["dependencies"] == null ? undefined : json3["dependencies"].map(PackageDtoFromJSON),
|
|
148642
|
+
uiStateWorkflows: json3["uiStateWorkflows"] == null ? undefined : json3["uiStateWorkflows"].map(WorkflowUiStateFromJSON),
|
|
148643
|
+
hasTrigger: json3["hasTrigger"] == null ? undefined : json3["hasTrigger"],
|
|
148644
|
+
disableAutoUpdate: json3["disableAutoUpdate"] == null ? undefined : json3["disableAutoUpdate"],
|
|
148645
|
+
userAccessStatus: json3["userAccessStatus"] == null ? undefined : AccessStatusFromJSON(json3["userAccessStatus"]),
|
|
148646
|
+
hasUnsavedEdits: json3["hasUnsavedEdits"] == null ? undefined : json3["hasUnsavedEdits"],
|
|
148647
|
+
projectJson: json3["projectJson"] == null ? undefined : json3["projectJson"],
|
|
148648
|
+
isReadOnly: json3["isReadOnly"] == null ? undefined : json3["isReadOnly"],
|
|
148649
|
+
version: json3["version"] == null ? undefined : json3["version"],
|
|
148650
|
+
additionalBindingProperties: json3["additionalBindingProperties"] == null ? undefined : json3["additionalBindingProperties"].map(AdditionalBindingPropertiesDtoFromJSON),
|
|
148651
|
+
workflowsWithErrors: json3["workflowsWithErrors"] == null ? undefined : json3["workflowsWithErrors"],
|
|
148652
|
+
requirePreprocessing: json3["requirePreprocessing"] == null ? undefined : json3["requirePreprocessing"],
|
|
148653
|
+
permissions: json3["permissions"] == null ? undefined : SharingPermissionsFromJSON(json3["permissions"]),
|
|
148654
|
+
projectSubType: json3["projectSubType"] == null ? undefined : json3["projectSubType"],
|
|
148655
|
+
appUsageType: json3["appUsageType"] == null ? undefined : AppUsageTypeFromJSON(json3["appUsageType"]),
|
|
148656
|
+
parentProjectId: json3["parentProjectId"] == null ? undefined : json3["parentProjectId"],
|
|
148657
|
+
jitVersion: json3["jitVersion"] == null ? undefined : json3["jitVersion"]
|
|
148658
|
+
};
|
|
148659
|
+
}
|
|
147970
148660
|
var init_ProjectDto2 = __esm(() => {
|
|
147971
148661
|
init_SharingPermissions();
|
|
147972
148662
|
init_ProjectErrorInformation();
|
|
@@ -147980,12 +148670,50 @@ var init_ProjectDto2 = __esm(() => {
|
|
|
147980
148670
|
});
|
|
147981
148671
|
|
|
147982
148672
|
// ../studioweb-sdk/generated/src/models/SolutionStatus.ts
|
|
148673
|
+
function SolutionStatusFromJSON(json3) {
|
|
148674
|
+
return SolutionStatusFromJSONTyped(json3, false);
|
|
148675
|
+
}
|
|
148676
|
+
function SolutionStatusFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148677
|
+
return json3;
|
|
148678
|
+
}
|
|
147983
148679
|
var init_SolutionStatus = () => {};
|
|
147984
148680
|
|
|
147985
148681
|
// ../studioweb-sdk/generated/src/models/SolutionPublishStatus.ts
|
|
148682
|
+
function SolutionPublishStatusFromJSON(json3) {
|
|
148683
|
+
return SolutionPublishStatusFromJSONTyped(json3, false);
|
|
148684
|
+
}
|
|
148685
|
+
function SolutionPublishStatusFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148686
|
+
return json3;
|
|
148687
|
+
}
|
|
147986
148688
|
var init_SolutionPublishStatus = () => {};
|
|
147987
148689
|
|
|
147988
148690
|
// ../studioweb-sdk/generated/src/models/SolutionDto.ts
|
|
148691
|
+
function SolutionDtoFromJSON(json3) {
|
|
148692
|
+
return SolutionDtoFromJSONTyped(json3, false);
|
|
148693
|
+
}
|
|
148694
|
+
function SolutionDtoFromJSONTyped(json3, ignoreDiscriminator) {
|
|
148695
|
+
if (json3 == null) {
|
|
148696
|
+
return json3;
|
|
148697
|
+
}
|
|
148698
|
+
return {
|
|
148699
|
+
id: json3["id"] == null ? undefined : json3["id"],
|
|
148700
|
+
name: json3["name"] == null ? undefined : json3["name"],
|
|
148701
|
+
description: json3["description"] == null ? undefined : json3["description"],
|
|
148702
|
+
userId: json3["userId"] == null ? undefined : json3["userId"],
|
|
148703
|
+
organizationId: json3["organizationId"] == null ? undefined : json3["organizationId"],
|
|
148704
|
+
status: json3["status"] == null ? undefined : SolutionStatusFromJSON(json3["status"]),
|
|
148705
|
+
projects: json3["projects"] == null ? undefined : json3["projects"].map(ProjectDtoFromJSON2),
|
|
148706
|
+
isSharedWithMe: json3["isSharedWithMe"] == null ? undefined : json3["isSharedWithMe"],
|
|
148707
|
+
isSharedByMe: json3["isSharedByMe"] == null ? undefined : json3["isSharedByMe"],
|
|
148708
|
+
permissions: json3["permissions"] == null ? undefined : SharingPermissionsFromJSON(json3["permissions"]),
|
|
148709
|
+
lastModifiedTime: json3["lastModifiedTime"] == null ? undefined : new Date(json3["lastModifiedTime"]),
|
|
148710
|
+
resourcesLastModifiedTime: json3["resourcesLastModifiedTime"] == null ? undefined : new Date(json3["resourcesLastModifiedTime"]),
|
|
148711
|
+
hasDraftEdits: json3["hasDraftEdits"] == null ? undefined : json3["hasDraftEdits"],
|
|
148712
|
+
publishStatus: json3["publishStatus"] == null ? undefined : SolutionPublishStatusFromJSON(json3["publishStatus"]),
|
|
148713
|
+
lastAccessedTenantId: json3["lastAccessedTenantId"] == null ? undefined : json3["lastAccessedTenantId"],
|
|
148714
|
+
automationHubIdeaUrl: json3["automationHubIdeaUrl"] == null ? undefined : json3["automationHubIdeaUrl"]
|
|
148715
|
+
};
|
|
148716
|
+
}
|
|
147989
148717
|
var init_SolutionDto = __esm(() => {
|
|
147990
148718
|
init_ProjectDto2();
|
|
147991
148719
|
init_SolutionStatus();
|
|
@@ -148035,9 +148763,154 @@ var init_models5 = __esm(() => {
|
|
|
148035
148763
|
});
|
|
148036
148764
|
|
|
148037
148765
|
// ../studioweb-sdk/generated/src/apis/SolutionApi.ts
|
|
148766
|
+
var SolutionApi;
|
|
148038
148767
|
var init_SolutionApi = __esm(() => {
|
|
148039
148768
|
init_runtime5();
|
|
148040
148769
|
init_models5();
|
|
148770
|
+
SolutionApi = class SolutionApi extends BaseAPI5 {
|
|
148771
|
+
async solutionGetSolutionRaw(requestParameters, initOverrides) {
|
|
148772
|
+
if (requestParameters["solutionId"] == null) {
|
|
148773
|
+
throw new RequiredError5("solutionId", 'Required parameter "solutionId" was null or undefined when calling solutionGetSolution().');
|
|
148774
|
+
}
|
|
148775
|
+
const queryParameters = {};
|
|
148776
|
+
if (requestParameters["includeReconciliationContext"] != null) {
|
|
148777
|
+
queryParameters["includeReconciliationContext"] = requestParameters["includeReconciliationContext"];
|
|
148778
|
+
}
|
|
148779
|
+
if (requestParameters["apiVersion"] != null) {
|
|
148780
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
148781
|
+
}
|
|
148782
|
+
const headerParameters = {};
|
|
148783
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148784
|
+
const token = this.configuration.accessToken;
|
|
148785
|
+
const tokenString = await token("Bearer", []);
|
|
148786
|
+
if (tokenString) {
|
|
148787
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
148788
|
+
}
|
|
148789
|
+
}
|
|
148790
|
+
let urlPath = `/api/Solution/{solutionId}`;
|
|
148791
|
+
urlPath = urlPath.replace(`{${"solutionId"}}`, encodeURIComponent(String(requestParameters["solutionId"])));
|
|
148792
|
+
const response = await this.request({
|
|
148793
|
+
path: urlPath,
|
|
148794
|
+
method: "GET",
|
|
148795
|
+
headers: headerParameters,
|
|
148796
|
+
query: queryParameters
|
|
148797
|
+
}, initOverrides);
|
|
148798
|
+
return new JSONApiResponse5(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
148799
|
+
}
|
|
148800
|
+
async solutionGetSolution(requestParameters, initOverrides) {
|
|
148801
|
+
const response = await this.solutionGetSolutionRaw(requestParameters, initOverrides);
|
|
148802
|
+
return await response.value();
|
|
148803
|
+
}
|
|
148804
|
+
async solutionImportSolutionRaw(requestParameters, initOverrides) {
|
|
148805
|
+
if (requestParameters["uploadFile"] == null) {
|
|
148806
|
+
throw new RequiredError5("uploadFile", 'Required parameter "uploadFile" was null or undefined when calling solutionImportSolution().');
|
|
148807
|
+
}
|
|
148808
|
+
const queryParameters = {};
|
|
148809
|
+
if (requestParameters["apiVersion"] != null) {
|
|
148810
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
148811
|
+
}
|
|
148812
|
+
const headerParameters = {};
|
|
148813
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148814
|
+
const token = this.configuration.accessToken;
|
|
148815
|
+
const tokenString = await token("Bearer", []);
|
|
148816
|
+
if (tokenString) {
|
|
148817
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
148818
|
+
}
|
|
148819
|
+
}
|
|
148820
|
+
const consumes = [
|
|
148821
|
+
{ contentType: "multipart/form-data" }
|
|
148822
|
+
];
|
|
148823
|
+
const canConsumeForm3 = canConsumeForm2(consumes);
|
|
148824
|
+
let formParams;
|
|
148825
|
+
let useForm = false;
|
|
148826
|
+
useForm = canConsumeForm3;
|
|
148827
|
+
if (useForm) {
|
|
148828
|
+
formParams = new FormData;
|
|
148829
|
+
} else {
|
|
148830
|
+
formParams = new URLSearchParams;
|
|
148831
|
+
}
|
|
148832
|
+
if (requestParameters["uploadFile"] != null) {
|
|
148833
|
+
formParams.append("uploadFile", requestParameters["uploadFile"]);
|
|
148834
|
+
}
|
|
148835
|
+
if (requestParameters["isHidden"] != null) {
|
|
148836
|
+
formParams.append("isHidden", requestParameters["isHidden"]);
|
|
148837
|
+
}
|
|
148838
|
+
if (requestParameters["createSnapshot"] != null) {
|
|
148839
|
+
formParams.append("createSnapshot", requestParameters["createSnapshot"]);
|
|
148840
|
+
}
|
|
148841
|
+
let urlPath = `/api/Solution/Import`;
|
|
148842
|
+
const response = await this.request({
|
|
148843
|
+
path: urlPath,
|
|
148844
|
+
method: "POST",
|
|
148845
|
+
headers: headerParameters,
|
|
148846
|
+
query: queryParameters,
|
|
148847
|
+
body: formParams
|
|
148848
|
+
}, initOverrides);
|
|
148849
|
+
return new JSONApiResponse5(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
148850
|
+
}
|
|
148851
|
+
async solutionImportSolution(requestParameters, initOverrides) {
|
|
148852
|
+
const response = await this.solutionImportSolutionRaw(requestParameters, initOverrides);
|
|
148853
|
+
return await response.value();
|
|
148854
|
+
}
|
|
148855
|
+
async solutionOverwriteSolutionRaw(requestParameters, initOverrides) {
|
|
148856
|
+
if (requestParameters["solutionId"] == null) {
|
|
148857
|
+
throw new RequiredError5("solutionId", 'Required parameter "solutionId" was null or undefined when calling solutionOverwriteSolution().');
|
|
148858
|
+
}
|
|
148859
|
+
if (requestParameters["uploadFile"] == null) {
|
|
148860
|
+
throw new RequiredError5("uploadFile", 'Required parameter "uploadFile" was null or undefined when calling solutionOverwriteSolution().');
|
|
148861
|
+
}
|
|
148862
|
+
const queryParameters = {};
|
|
148863
|
+
if (requestParameters["apiVersion"] != null) {
|
|
148864
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
148865
|
+
}
|
|
148866
|
+
const headerParameters = {};
|
|
148867
|
+
if (requestParameters["xUiPathSWLockKey"] != null) {
|
|
148868
|
+
headerParameters["x-UiPath-SW-LockKey"] = String(requestParameters["xUiPathSWLockKey"]);
|
|
148869
|
+
}
|
|
148870
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148871
|
+
const token = this.configuration.accessToken;
|
|
148872
|
+
const tokenString = await token("Bearer", []);
|
|
148873
|
+
if (tokenString) {
|
|
148874
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
148875
|
+
}
|
|
148876
|
+
}
|
|
148877
|
+
const consumes = [
|
|
148878
|
+
{ contentType: "multipart/form-data" }
|
|
148879
|
+
];
|
|
148880
|
+
const canConsumeForm3 = canConsumeForm2(consumes);
|
|
148881
|
+
let formParams;
|
|
148882
|
+
let useForm = false;
|
|
148883
|
+
useForm = canConsumeForm3;
|
|
148884
|
+
if (useForm) {
|
|
148885
|
+
formParams = new FormData;
|
|
148886
|
+
} else {
|
|
148887
|
+
formParams = new URLSearchParams;
|
|
148888
|
+
}
|
|
148889
|
+
if (requestParameters["uploadFile"] != null) {
|
|
148890
|
+
formParams.append("uploadFile", requestParameters["uploadFile"]);
|
|
148891
|
+
}
|
|
148892
|
+
if (requestParameters["isHidden"] != null) {
|
|
148893
|
+
formParams.append("isHidden", requestParameters["isHidden"]);
|
|
148894
|
+
}
|
|
148895
|
+
if (requestParameters["createSnapshot"] != null) {
|
|
148896
|
+
formParams.append("createSnapshot", requestParameters["createSnapshot"]);
|
|
148897
|
+
}
|
|
148898
|
+
let urlPath = `/api/Solution/{solutionId}/Overwrite`;
|
|
148899
|
+
urlPath = urlPath.replace(`{${"solutionId"}}`, encodeURIComponent(String(requestParameters["solutionId"])));
|
|
148900
|
+
const response = await this.request({
|
|
148901
|
+
path: urlPath,
|
|
148902
|
+
method: "POST",
|
|
148903
|
+
headers: headerParameters,
|
|
148904
|
+
query: queryParameters,
|
|
148905
|
+
body: formParams
|
|
148906
|
+
}, initOverrides);
|
|
148907
|
+
return new JSONApiResponse5(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
148908
|
+
}
|
|
148909
|
+
async solutionOverwriteSolution(requestParameters, initOverrides) {
|
|
148910
|
+
const response = await this.solutionOverwriteSolutionRaw(requestParameters, initOverrides);
|
|
148911
|
+
return await response.value();
|
|
148912
|
+
}
|
|
148913
|
+
};
|
|
148041
148914
|
});
|
|
148042
148915
|
|
|
148043
148916
|
// ../studioweb-sdk/generated/src/apis/index.ts
|
|
@@ -148053,6 +148926,23 @@ var init_src10 = __esm(() => {
|
|
|
148053
148926
|
});
|
|
148054
148927
|
|
|
148055
148928
|
// ../studioweb-sdk/src/client.ts
|
|
148929
|
+
function studioWebBasePath(config3, organizationName) {
|
|
148930
|
+
return `${config3.baseUrl}/${organizationName}/studio_/backend`;
|
|
148931
|
+
}
|
|
148932
|
+
function buildStudioWebConfiguration(config3, organizationName) {
|
|
148933
|
+
const headers = {};
|
|
148934
|
+
if (config3.tenantId) {
|
|
148935
|
+
headers["x-uipath-tenantid"] = config3.tenantId;
|
|
148936
|
+
}
|
|
148937
|
+
return new Configuration5({
|
|
148938
|
+
basePath: studioWebBasePath(config3, organizationName),
|
|
148939
|
+
accessToken: config3.authToken,
|
|
148940
|
+
headers
|
|
148941
|
+
});
|
|
148942
|
+
}
|
|
148943
|
+
function createSolutionApi(config3, organizationName) {
|
|
148944
|
+
return new SolutionApi(buildStudioWebConfiguration(config3, organizationName));
|
|
148945
|
+
}
|
|
148056
148946
|
var init_client2 = __esm(() => {
|
|
148057
148947
|
init_src10();
|
|
148058
148948
|
});
|
|
@@ -148063,6 +148953,34 @@ var init_src11 = __esm(() => {
|
|
|
148063
148953
|
init_src10();
|
|
148064
148954
|
});
|
|
148065
148955
|
|
|
148956
|
+
// ../solution-sdk/src/solution-info.ts
|
|
148957
|
+
async function getStudioWebSolutionProjects(config3, organizationName, solutionId) {
|
|
148958
|
+
const api3 = createSolutionApi(config3, organizationName);
|
|
148959
|
+
try {
|
|
148960
|
+
const solution = await api3.solutionGetSolution({ solutionId });
|
|
148961
|
+
return (solution.projects ?? []).flatMap((project) => project.id ? [
|
|
148962
|
+
{
|
|
148963
|
+
id: project.id,
|
|
148964
|
+
designId: project.designId ?? undefined,
|
|
148965
|
+
name: project.name ?? undefined,
|
|
148966
|
+
projectType: project.projectType ?? undefined
|
|
148967
|
+
}
|
|
148968
|
+
] : []);
|
|
148969
|
+
} catch (error90) {
|
|
148970
|
+
if (error90 instanceof ResponseError5) {
|
|
148971
|
+
if (error90.response.status === 404) {
|
|
148972
|
+
return;
|
|
148973
|
+
}
|
|
148974
|
+
const text = await error90.response.text().catch(() => "");
|
|
148975
|
+
throw new Error(`Studio Web solution lookup failed (${error90.response.status}): ${text}`);
|
|
148976
|
+
}
|
|
148977
|
+
throw error90;
|
|
148978
|
+
}
|
|
148979
|
+
}
|
|
148980
|
+
var init_solution_info = __esm(() => {
|
|
148981
|
+
init_src11();
|
|
148982
|
+
});
|
|
148983
|
+
|
|
148066
148984
|
// ../solution-sdk/src/upload-service.ts
|
|
148067
148985
|
async function importSolution(config3, organizationName, fileBuffer, fileName) {
|
|
148068
148986
|
const importUrl = `${config3.baseUrl}/${organizationName}/studio_/backend/api/Solution/Import?desktopJit=true&useFileRest=true&enableUnifiedBuild=true`;
|
|
@@ -148166,6 +149084,7 @@ var init_src12 = __esm(() => {
|
|
|
148166
149084
|
init_user_agent3();
|
|
148167
149085
|
init_bundle_service();
|
|
148168
149086
|
init_solution_file();
|
|
149087
|
+
init_solution_info();
|
|
148169
149088
|
init_upload_service();
|
|
148170
149089
|
init_user_agent3();
|
|
148171
149090
|
init_zip_utils();
|
|
@@ -155127,7 +156046,6 @@ var init_tool_error_code = () => {};
|
|
|
155127
156046
|
var init_tool_result = __esm(() => {
|
|
155128
156047
|
init_tool_error_code();
|
|
155129
156048
|
});
|
|
155130
|
-
|
|
155131
156049
|
// ../packager/packager-core/src/models/index.ts
|
|
155132
156050
|
var init_models6 = __esm(() => {
|
|
155133
156051
|
init_build_configuration();
|
|
@@ -155423,7 +156341,7 @@ var init_package4 = __esm(() => {
|
|
|
155423
156341
|
package_default5 = {
|
|
155424
156342
|
name: "@uipath/flow-tool",
|
|
155425
156343
|
license: "MIT",
|
|
155426
|
-
version: "1.
|
|
156344
|
+
version: "1.198.0-preview.80",
|
|
155427
156345
|
description: "Create, debug, and run UiPath Flow projects and jobs.",
|
|
155428
156346
|
private: false,
|
|
155429
156347
|
repository: {
|
|
@@ -156404,6 +157322,10 @@ class ProjectTool2 {
|
|
|
156404
157322
|
this.logger.info("Pack operation is a noop");
|
|
156405
157323
|
return ToolResult2.success();
|
|
156406
157324
|
}
|
|
157325
|
+
async cleanupAsync(_options, _cancellationToken) {
|
|
157326
|
+
this.logger.info("Cleanup operation is a noop");
|
|
157327
|
+
return ToolResult2.success();
|
|
157328
|
+
}
|
|
156407
157329
|
async getUiProjectAsync(projectPath) {
|
|
156408
157330
|
const filePath = Path2.join(projectPath, ProjectTool2.ProjectFileName);
|
|
156409
157331
|
if (!await this.fileSystem.exists(filePath)) {
|
|
@@ -242631,7 +243553,7 @@ var package_default6;
|
|
|
242631
243553
|
var init_package5 = __esm(() => {
|
|
242632
243554
|
package_default6 = {
|
|
242633
243555
|
name: "@uipath/packager-tool-flow",
|
|
242634
|
-
version: "1.
|
|
243556
|
+
version: "1.198.0-preview.80",
|
|
242635
243557
|
description: "UiPath Flow tool implementation",
|
|
242636
243558
|
type: "module",
|
|
242637
243559
|
exports: {
|
|
@@ -254852,6 +255774,9 @@ var init_agents = __esm(() => {
|
|
|
254852
255774
|
function isProcessNode(nodeType) {
|
|
254853
255775
|
return PROCESS_NODE_PREFIXES.some((prefix2) => nodeType?.startsWith(prefix2));
|
|
254854
255776
|
}
|
|
255777
|
+
function isConnectorToolNode(nodeType) {
|
|
255778
|
+
return nodeType?.startsWith(CONNECTOR_TOOL_PREFIX) ?? false;
|
|
255779
|
+
}
|
|
254855
255780
|
function extractProcessGuid(nodeType) {
|
|
254856
255781
|
const match = nodeType.match(/^(?:uipath\.core\.rpa-workflow|uipath\.agent\.resource\.tool\.process|uipath\.core\.agent|uipath\.core\.api-workflow)\.([0-9a-f-]+)$/i);
|
|
254857
255782
|
if (!match) {
|
|
@@ -254903,13 +255828,50 @@ function resolveContextPlaceholders(context, storedName, storedFolder) {
|
|
|
254903
255828
|
}
|
|
254904
255829
|
}
|
|
254905
255830
|
}
|
|
255831
|
+
function createConnectorToolBindings(node2, definition97) {
|
|
255832
|
+
const model = definition97.model;
|
|
255833
|
+
const detail = node2.inputs?.detail;
|
|
255834
|
+
const connectionId = detail?.connectionId ?? "";
|
|
255835
|
+
const connectionFolderKey = detail?.connectionFolderKey ?? "";
|
|
255836
|
+
const values = model?.bindings?.values ?? [];
|
|
255837
|
+
const connValue = values.find((v2) => v2.propertyAttribute === "ConnectionId");
|
|
255838
|
+
const folderValue = values.find((v2) => v2.propertyAttribute === "FolderKey");
|
|
255839
|
+
const connectionBinding = createBinding({
|
|
255840
|
+
name: connValue?.name ?? "connection",
|
|
255841
|
+
value: connectionId,
|
|
255842
|
+
resource: "Connection",
|
|
255843
|
+
resourceKey: connectionId,
|
|
255844
|
+
propertyAttribute: "ConnectionId"
|
|
255845
|
+
});
|
|
255846
|
+
const folderKeyBinding = createBinding({
|
|
255847
|
+
name: folderValue?.name ?? "FolderKey",
|
|
255848
|
+
value: connectionFolderKey,
|
|
255849
|
+
resource: "Connection",
|
|
255850
|
+
resourceKey: connectionId,
|
|
255851
|
+
propertyAttribute: "FolderKey"
|
|
255852
|
+
});
|
|
255853
|
+
return { connectionBinding, folderKeyBinding };
|
|
255854
|
+
}
|
|
255855
|
+
function resolveConnectorContextPlaceholders(context, storedConnection, storedFolderKey) {
|
|
255856
|
+
if (!context)
|
|
255857
|
+
return;
|
|
255858
|
+
for (const entry of context) {
|
|
255859
|
+
if (typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)) {
|
|
255860
|
+
if (entry.name === "connection") {
|
|
255861
|
+
entry.default = storedConnection.default;
|
|
255862
|
+
entry.value = `=bindings.${storedConnection.id}`;
|
|
255863
|
+
} else if (entry.name === "folderKey") {
|
|
255864
|
+
entry.default = storedFolderKey.default;
|
|
255865
|
+
entry.value = `=bindings.${storedFolderKey.id}`;
|
|
255866
|
+
}
|
|
255867
|
+
}
|
|
255868
|
+
}
|
|
255869
|
+
}
|
|
254906
255870
|
function ensureProcessBindings(workflow, logger3) {
|
|
254907
255871
|
const nodes = workflow.nodes ?? [];
|
|
254908
255872
|
const definitions = workflow.definitions ?? [];
|
|
254909
255873
|
let bindingsCreated = 0;
|
|
254910
255874
|
for (const node2 of nodes) {
|
|
254911
|
-
if (!isProcessNode(node2.type))
|
|
254912
|
-
continue;
|
|
254913
255875
|
const nodeModel = node2.model;
|
|
254914
255876
|
const defModel = definitions.find((d2) => d2.nodeType === node2.type)?.model;
|
|
254915
255877
|
const hasUnresolved = [nodeModel, defModel].some((m2) => m2?.context?.some((entry) => typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)));
|
|
@@ -254918,32 +255880,56 @@ function ensureProcessBindings(workflow, logger3) {
|
|
|
254918
255880
|
const definition97 = definitions.find((d2) => d2.nodeType === node2.type);
|
|
254919
255881
|
if (!definition97)
|
|
254920
255882
|
continue;
|
|
254921
|
-
|
|
254922
|
-
|
|
254923
|
-
|
|
254924
|
-
|
|
254925
|
-
|
|
254926
|
-
|
|
255883
|
+
if (isProcessNode(node2.type)) {
|
|
255884
|
+
let nameBinding;
|
|
255885
|
+
let folderBinding;
|
|
255886
|
+
try {
|
|
255887
|
+
({ nameBinding, folderBinding } = createProcessBindings(definition97));
|
|
255888
|
+
} catch (err2) {
|
|
255889
|
+
logger3.warn(`Skipping binding resolution for node "${node2.id}": ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
255890
|
+
continue;
|
|
255891
|
+
}
|
|
255892
|
+
const beforeCount = workflow.bindings?.length ?? 0;
|
|
255893
|
+
addBinding(workflow, nameBinding);
|
|
255894
|
+
addBinding(workflow, folderBinding);
|
|
255895
|
+
const storedBindings = workflow.bindings;
|
|
255896
|
+
const storedName = storedBindings.find((b3) => b3.resourceKey === nameBinding.resourceKey && b3.propertyAttribute === nameBinding.propertyAttribute) ?? nameBinding;
|
|
255897
|
+
const storedFolder = storedBindings.find((b3) => b3.resourceKey === folderBinding.resourceKey && b3.propertyAttribute === folderBinding.propertyAttribute) ?? folderBinding;
|
|
255898
|
+
resolveContextPlaceholders(nodeModel?.context, storedName, storedFolder);
|
|
255899
|
+
resolveContextPlaceholders(defModel?.context, storedName, storedFolder);
|
|
255900
|
+
const added = (workflow.bindings?.length ?? 0) - beforeCount;
|
|
255901
|
+
bindingsCreated += added;
|
|
255902
|
+
logger3.info(`Resolved process bindings for node "${node2.id}" (${node2.type})`);
|
|
254927
255903
|
continue;
|
|
254928
255904
|
}
|
|
254929
|
-
|
|
254930
|
-
|
|
254931
|
-
|
|
254932
|
-
|
|
254933
|
-
|
|
254934
|
-
|
|
254935
|
-
|
|
254936
|
-
|
|
254937
|
-
|
|
254938
|
-
|
|
254939
|
-
|
|
255905
|
+
if (isConnectorToolNode(node2.type)) {
|
|
255906
|
+
let connectionBinding;
|
|
255907
|
+
let folderKeyBinding;
|
|
255908
|
+
try {
|
|
255909
|
+
({ connectionBinding, folderKeyBinding } = createConnectorToolBindings(node2, definition97));
|
|
255910
|
+
} catch (err2) {
|
|
255911
|
+
logger3.warn(`Skipping connector binding resolution for node "${node2.id}": ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
255912
|
+
continue;
|
|
255913
|
+
}
|
|
255914
|
+
const beforeCount = workflow.bindings?.length ?? 0;
|
|
255915
|
+
addBinding(workflow, connectionBinding);
|
|
255916
|
+
addBinding(workflow, folderKeyBinding);
|
|
255917
|
+
const storedBindings = workflow.bindings;
|
|
255918
|
+
const storedConn = storedBindings.find((b3) => b3.resourceKey === connectionBinding.resourceKey && b3.propertyAttribute === connectionBinding.propertyAttribute) ?? connectionBinding;
|
|
255919
|
+
const storedFk = storedBindings.find((b3) => b3.resourceKey === folderKeyBinding.resourceKey && b3.propertyAttribute === folderKeyBinding.propertyAttribute) ?? folderKeyBinding;
|
|
255920
|
+
resolveConnectorContextPlaceholders(nodeModel?.context, storedConn, storedFk);
|
|
255921
|
+
resolveConnectorContextPlaceholders(defModel?.context, storedConn, storedFk);
|
|
255922
|
+
const added = (workflow.bindings?.length ?? 0) - beforeCount;
|
|
255923
|
+
bindingsCreated += added;
|
|
255924
|
+
logger3.info(`Resolved connector bindings for node "${node2.id}" (${node2.type})`);
|
|
255925
|
+
}
|
|
254940
255926
|
}
|
|
254941
255927
|
if (bindingsCreated > 0) {
|
|
254942
255928
|
logger3.info(`ensureProcessBindings: created ${bindingsCreated} binding(s) for directly-authored nodes`);
|
|
254943
255929
|
}
|
|
254944
255930
|
return bindingsCreated;
|
|
254945
255931
|
}
|
|
254946
|
-
var PROCESS_NODE_PREFIXES, UNRESOLVED_BINDING_PATTERN;
|
|
255932
|
+
var PROCESS_NODE_PREFIXES, CONNECTOR_TOOL_PREFIX = "uipath.agent.resource.tool.connector.", UNRESOLVED_BINDING_PATTERN;
|
|
254947
255933
|
var init_ensure_process_bindings = __esm(() => {
|
|
254948
255934
|
init_dist8();
|
|
254949
255935
|
PROCESS_NODE_PREFIXES = [
|
|
@@ -254952,7 +255938,7 @@ var init_ensure_process_bindings = __esm(() => {
|
|
|
254952
255938
|
"uipath.core.agent.",
|
|
254953
255939
|
"uipath.core.api-workflow."
|
|
254954
255940
|
];
|
|
254955
|
-
UNRESOLVED_BINDING_PATTERN = /^<bindings
|
|
255941
|
+
UNRESOLVED_BINDING_PATTERN = /^<bindings\.[^>]+>$/;
|
|
254956
255942
|
});
|
|
254957
255943
|
|
|
254958
255944
|
// ../packager/packager-tool-flow/src/exporter-version.ts
|
|
@@ -257202,6 +258188,66 @@ var init_flow_io2 = __esm(() => {
|
|
|
257202
258188
|
init_src14();
|
|
257203
258189
|
});
|
|
257204
258190
|
|
|
258191
|
+
// ../flow-tool/src/services/flow-eval-file-store.ts
|
|
258192
|
+
async function ensureDirectory(fs9, path4) {
|
|
258193
|
+
if (await fs9.exists(path4)) {
|
|
258194
|
+
return;
|
|
258195
|
+
}
|
|
258196
|
+
const parent = fs9.path.dirname(path4);
|
|
258197
|
+
if (parent && parent !== path4 && !await fs9.exists(parent)) {
|
|
258198
|
+
await ensureDirectory(fs9, parent);
|
|
258199
|
+
}
|
|
258200
|
+
const [error95] = await catchError2(fs9.mkdir(path4));
|
|
258201
|
+
if (error95 && !await fs9.exists(path4)) {
|
|
258202
|
+
throw error95;
|
|
258203
|
+
}
|
|
258204
|
+
}
|
|
258205
|
+
|
|
258206
|
+
class FlowEvalFileStore {
|
|
258207
|
+
fs;
|
|
258208
|
+
constructor(fs9) {
|
|
258209
|
+
this.fs = fs9;
|
|
258210
|
+
}
|
|
258211
|
+
async readJsonFiles(dir3) {
|
|
258212
|
+
const [readDirError, files] = await catchError2(this.fs.readdir(dir3));
|
|
258213
|
+
if (readDirError) {
|
|
258214
|
+
return [];
|
|
258215
|
+
}
|
|
258216
|
+
const items = [];
|
|
258217
|
+
for (const file5 of files) {
|
|
258218
|
+
if (!file5.endsWith(".json")) {
|
|
258219
|
+
continue;
|
|
258220
|
+
}
|
|
258221
|
+
const filePath = this.fs.path.join(dir3, file5);
|
|
258222
|
+
const [readError, raw] = await catchError2(this.fs.readFile(filePath, "utf-8"));
|
|
258223
|
+
if (readError) {
|
|
258224
|
+
throw new Error(`Failed to read JSON file "${filePath}": ${readError.message}`);
|
|
258225
|
+
}
|
|
258226
|
+
if (raw === null) {
|
|
258227
|
+
continue;
|
|
258228
|
+
}
|
|
258229
|
+
const [parseError, data] = catchError2(() => JSON.parse(String(raw)));
|
|
258230
|
+
if (parseError) {
|
|
258231
|
+
throw new Error(`Invalid JSON in "${filePath}": ${parseError.message}`);
|
|
258232
|
+
}
|
|
258233
|
+
data.fileName = file5;
|
|
258234
|
+
items.push(data);
|
|
258235
|
+
}
|
|
258236
|
+
return items;
|
|
258237
|
+
}
|
|
258238
|
+
async writeJsonFile(path4, value) {
|
|
258239
|
+
await ensureDirectory(this.fs, this.fs.path.dirname(path4));
|
|
258240
|
+
await this.fs.writeFile(path4, `${JSON.stringify(value, null, 2)}
|
|
258241
|
+
`);
|
|
258242
|
+
}
|
|
258243
|
+
async remove(path4) {
|
|
258244
|
+
await this.fs.rm(path4);
|
|
258245
|
+
}
|
|
258246
|
+
}
|
|
258247
|
+
var init_flow_eval_file_store = __esm(() => {
|
|
258248
|
+
init_src3();
|
|
258249
|
+
});
|
|
258250
|
+
|
|
257205
258251
|
// ../flow-tool/src/services/packaging-utils.ts
|
|
257206
258252
|
function readInlineAgentSource(node2) {
|
|
257207
258253
|
const candidates = [
|
|
@@ -257234,6 +258280,110 @@ function fileNodesToPackagingNodes(nodes) {
|
|
|
257234
258280
|
...node2.model ? { model: node2.model } : {}
|
|
257235
258281
|
}));
|
|
257236
258282
|
}
|
|
258283
|
+
function isRecord4(value) {
|
|
258284
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
258285
|
+
}
|
|
258286
|
+
function toResourceList(value) {
|
|
258287
|
+
if (!Array.isArray(value))
|
|
258288
|
+
return;
|
|
258289
|
+
const resources = value.filter(isRecord4);
|
|
258290
|
+
return resources.length === value.length ? resources : undefined;
|
|
258291
|
+
}
|
|
258292
|
+
function normalizePackagingBindingsJson(value) {
|
|
258293
|
+
if (!isRecord4(value))
|
|
258294
|
+
return;
|
|
258295
|
+
const resources = toResourceList(value.resources);
|
|
258296
|
+
if (!resources)
|
|
258297
|
+
return;
|
|
258298
|
+
return {
|
|
258299
|
+
...value,
|
|
258300
|
+
version: typeof value.version === "string" ? value.version : "2.0",
|
|
258301
|
+
resources
|
|
258302
|
+
};
|
|
258303
|
+
}
|
|
258304
|
+
function emptyPackagingBindingsJson() {
|
|
258305
|
+
return { version: "2.0", resources: [] };
|
|
258306
|
+
}
|
|
258307
|
+
function mergePackagingBindingsJson(bindingsJsons) {
|
|
258308
|
+
const first = bindingsJsons.find((bindingsJson) => bindingsJson !== undefined);
|
|
258309
|
+
return {
|
|
258310
|
+
...first ?? emptyPackagingBindingsJson(),
|
|
258311
|
+
resources: mergeBindingResources(bindingsJsons.flatMap((bindingsJson) => bindingsJson?.resources ?? []))
|
|
258312
|
+
};
|
|
258313
|
+
}
|
|
258314
|
+
async function readBindingsJsonFile(fs9, filePath) {
|
|
258315
|
+
if (!await fs9.exists(filePath))
|
|
258316
|
+
return;
|
|
258317
|
+
const [readErr, raw] = await catchError2(fs9.readFile(filePath, "utf-8"));
|
|
258318
|
+
if (readErr || typeof raw !== "string")
|
|
258319
|
+
return;
|
|
258320
|
+
const [parseErr, parsed] = catchError2(() => JSON.parse(raw));
|
|
258321
|
+
if (parseErr) {
|
|
258322
|
+
logger.warn(`Could not parse ${filePath}: ${parseErr.message}`);
|
|
258323
|
+
return;
|
|
258324
|
+
}
|
|
258325
|
+
const bindingsJson = normalizePackagingBindingsJson(parsed);
|
|
258326
|
+
if (!bindingsJson) {
|
|
258327
|
+
logger.warn(`Ignoring invalid bindings file ${filePath}`);
|
|
258328
|
+
return;
|
|
258329
|
+
}
|
|
258330
|
+
return bindingsJson;
|
|
258331
|
+
}
|
|
258332
|
+
async function readInlineAgentBindingsJson(fs9, agentDir) {
|
|
258333
|
+
for (const filePath of [
|
|
258334
|
+
fs9.path.join(agentDir, ".agent-builder", "bindings.json"),
|
|
258335
|
+
fs9.path.join(agentDir, "bindings.json")
|
|
258336
|
+
]) {
|
|
258337
|
+
const bindingsJson = await readBindingsJsonFile(fs9, filePath);
|
|
258338
|
+
if (bindingsJson)
|
|
258339
|
+
return bindingsJson;
|
|
258340
|
+
}
|
|
258341
|
+
return;
|
|
258342
|
+
}
|
|
258343
|
+
async function readInlineAgentResourcesAndFeatures(fs9, agentDir) {
|
|
258344
|
+
const readJsonDir = async (dir3, fileName, discriminator) => {
|
|
258345
|
+
const [dirErr, folders] = await catchError2(fs9.readdir(dir3));
|
|
258346
|
+
if (dirErr || !folders)
|
|
258347
|
+
return [];
|
|
258348
|
+
const out = [];
|
|
258349
|
+
for (const folder of folders) {
|
|
258350
|
+
const file5 = fs9.path.join(dir3, folder, fileName);
|
|
258351
|
+
const [readErr, raw] = await catchError2(fs9.readFile(file5, "utf-8"));
|
|
258352
|
+
if (readErr || !raw)
|
|
258353
|
+
continue;
|
|
258354
|
+
const [parseErr, parsed] = await catchError2(Promise.resolve(raw).then((s2) => JSON.parse(s2)));
|
|
258355
|
+
if (parseErr || !parsed?.[discriminator])
|
|
258356
|
+
continue;
|
|
258357
|
+
out.push(parsed);
|
|
258358
|
+
}
|
|
258359
|
+
return out;
|
|
258360
|
+
};
|
|
258361
|
+
const resources = await readJsonDir(fs9.path.join(agentDir, "resources"), "resource.json", "$resourceType");
|
|
258362
|
+
const features = await readJsonDir(fs9.path.join(agentDir, "features"), "feature.json", "$featureType");
|
|
258363
|
+
return { resources, features };
|
|
258364
|
+
}
|
|
258365
|
+
async function readInlineAgentJson(fs9, projectDir, source) {
|
|
258366
|
+
const agentJsonPath = fs9.path.join(projectDir, source, "agent.json");
|
|
258367
|
+
if (!await fs9.exists(agentJsonPath))
|
|
258368
|
+
return;
|
|
258369
|
+
const [readErr, raw] = await catchError2(fs9.readFile(agentJsonPath, "utf-8"));
|
|
258370
|
+
if (readErr || !raw)
|
|
258371
|
+
return;
|
|
258372
|
+
const [parseErr, agent] = await catchError2(Promise.resolve(raw).then((s2) => JSON.parse(s2)));
|
|
258373
|
+
if (parseErr || !agent)
|
|
258374
|
+
return;
|
|
258375
|
+
return agent;
|
|
258376
|
+
}
|
|
258377
|
+
function asRecordList(value) {
|
|
258378
|
+
return Array.isArray(value) ? value : [];
|
|
258379
|
+
}
|
|
258380
|
+
function mergeNamedItems(fileItems, inlineItems) {
|
|
258381
|
+
const fileNames = new Set(fileItems.map((item) => item.name));
|
|
258382
|
+
return [
|
|
258383
|
+
...fileItems,
|
|
258384
|
+
...inlineItems.filter((item) => !fileNames.has(item.name))
|
|
258385
|
+
];
|
|
258386
|
+
}
|
|
257237
258387
|
async function packageInlineAgents(fs9, projectDir, nodes) {
|
|
257238
258388
|
const result = [];
|
|
257239
258389
|
for (const node2 of nodes) {
|
|
@@ -257244,14 +258394,8 @@ async function packageInlineAgents(fs9, projectDir, nodes) {
|
|
|
257244
258394
|
continue;
|
|
257245
258395
|
if (/[/\\.]/.test(source))
|
|
257246
258396
|
continue;
|
|
257247
|
-
const
|
|
257248
|
-
if (!
|
|
257249
|
-
continue;
|
|
257250
|
-
const [readErr, raw] = await catchError2(fs9.readFile(agentJsonPath, "utf-8"));
|
|
257251
|
-
if (readErr || !raw)
|
|
257252
|
-
continue;
|
|
257253
|
-
const [parseErr, agent] = await catchError2(Promise.resolve(raw).then((s2) => JSON.parse(s2)));
|
|
257254
|
-
if (parseErr || !agent)
|
|
258397
|
+
const agent = await readInlineAgentJson(fs9, projectDir, source);
|
|
258398
|
+
if (!agent)
|
|
257255
258399
|
continue;
|
|
257256
258400
|
const inputSchema = agent.inputSchema ?? {
|
|
257257
258401
|
type: "object",
|
|
@@ -257261,6 +258405,10 @@ async function packageInlineAgents(fs9, projectDir, nodes) {
|
|
|
257261
258405
|
type: "object",
|
|
257262
258406
|
properties: {}
|
|
257263
258407
|
};
|
|
258408
|
+
const { resources: fileResources, features: fileFeatures } = await readInlineAgentResourcesAndFeatures(fs9, fs9.path.join(projectDir, source));
|
|
258409
|
+
agent.resources = mergeNamedItems(fileResources, asRecordList(agent.resources));
|
|
258410
|
+
agent.features = mergeNamedItems(fileFeatures, asRecordList(agent.features));
|
|
258411
|
+
const bindingsJson = await readInlineAgentBindingsJson(fs9, fs9.path.join(projectDir, source));
|
|
257264
258412
|
result.push({
|
|
257265
258413
|
source,
|
|
257266
258414
|
entryPoint: {
|
|
@@ -257271,12 +258419,32 @@ async function packageInlineAgents(fs9, projectDir, nodes) {
|
|
|
257271
258419
|
output: outputSchema,
|
|
257272
258420
|
displayName: agent.name ?? "Agent"
|
|
257273
258421
|
},
|
|
257274
|
-
agentJson: agent
|
|
258422
|
+
agentJson: agent,
|
|
258423
|
+
...bindingsJson ? { bindingsJson } : {}
|
|
257275
258424
|
});
|
|
257276
258425
|
logger.info(`Packaged inline agent "${source}" for entry-points`);
|
|
257277
258426
|
}
|
|
257278
258427
|
return result;
|
|
257279
258428
|
}
|
|
258429
|
+
async function stageInlineAgentPackageFiles(fs9, sourceProjectPath, stagingProjectDir, inlineAgents, formatLogMessage) {
|
|
258430
|
+
for (const agent of inlineAgents) {
|
|
258431
|
+
const srcDir = fs9.path.join(sourceProjectPath, agent.source);
|
|
258432
|
+
const destDir = fs9.path.join(stagingProjectDir, agent.source);
|
|
258433
|
+
if (await fs9.exists(srcDir)) {
|
|
258434
|
+
await fs9.copyDirectory(srcDir, destDir);
|
|
258435
|
+
}
|
|
258436
|
+
const agentBuilderDir = fs9.path.join(destDir, ".agent-builder");
|
|
258437
|
+
await ensureDirectory(fs9, agentBuilderDir);
|
|
258438
|
+
await fs9.writeFile(fs9.path.join(agentBuilderDir, "agent.json"), JSON.stringify({
|
|
258439
|
+
...agent.agentJson,
|
|
258440
|
+
resources: agent.agentJson.resources ?? [],
|
|
258441
|
+
features: agent.agentJson.features ?? []
|
|
258442
|
+
}, null, 2));
|
|
258443
|
+
await fs9.writeFile(fs9.path.join(agentBuilderDir, "bindings.json"), `${JSON.stringify(agent.bindingsJson ?? emptyPackagingBindingsJson(), null, 2)}
|
|
258444
|
+
`);
|
|
258445
|
+
logger.info(formatLogMessage(agent.source));
|
|
258446
|
+
}
|
|
258447
|
+
}
|
|
257280
258448
|
function buildInlineAgentDescriptors(nodes) {
|
|
257281
258449
|
const out = [];
|
|
257282
258450
|
for (const node2 of nodes) {
|
|
@@ -257295,17 +258463,30 @@ function buildInlineAgentDescriptors(nodes) {
|
|
|
257295
258463
|
}
|
|
257296
258464
|
return out;
|
|
257297
258465
|
}
|
|
257298
|
-
async function writePackagingArtifacts(fs9, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = []) {
|
|
257299
|
-
const entryPoints =
|
|
258466
|
+
async function writePackagingArtifacts(fs9, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
|
|
258467
|
+
const { entryPoints } = await writePackagingArtifactsDetailed(fs9, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions, options);
|
|
258468
|
+
return entryPoints;
|
|
258469
|
+
}
|
|
258470
|
+
async function writePackagingArtifactsDetailed(fs9, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
|
|
258471
|
+
const flowEntryPoints = getEntryPoints(bpmnFileName, packagingNodes, variables, definitions, ProjectType.Flow);
|
|
258472
|
+
const entryPoints = [
|
|
258473
|
+
...flowEntryPoints,
|
|
258474
|
+
...options.additionalEntryPoints ?? []
|
|
258475
|
+
];
|
|
257300
258476
|
await fs9.writeFile(fs9.path.join(projectDir, "entry-points.json"), `${JSON.stringify(generateEntryPointsJson(entryPoints), null, 2)}
|
|
257301
258477
|
`);
|
|
257302
258478
|
const bindingResources = getBindingResources(packagingNodes, bindings, definitions);
|
|
257303
|
-
|
|
258479
|
+
const bindingsJson = normalizePackagingBindingsJson(generateBindingsJson(bindingResources)) ?? emptyPackagingBindingsJson();
|
|
258480
|
+
const stagedBindingsJson = mergePackagingBindingsJson([
|
|
258481
|
+
bindingsJson,
|
|
258482
|
+
...options.additionalBindingsJsons ?? []
|
|
258483
|
+
]);
|
|
258484
|
+
await fs9.writeFile(fs9.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(stagedBindingsJson, null, 2)}
|
|
257304
258485
|
`);
|
|
257305
258486
|
const mainEntryPoint = `/${bpmnFileName}#${startEventId}`;
|
|
257306
258487
|
await fs9.writeFile(fs9.path.join(projectDir, "operate.json"), `${JSON.stringify(generateOperateJson(projectId, mainEntryPoint), null, 2)}
|
|
257307
258488
|
`);
|
|
257308
|
-
const packageDescriptorJson = {
|
|
258489
|
+
const packageDescriptorJson = options.packageDescriptorJson ?? {
|
|
257309
258490
|
$schema: "https://cloud.uipath.com/draft/2024-12/package-descriptor",
|
|
257310
258491
|
files: {
|
|
257311
258492
|
"operate.json": "operate.json",
|
|
@@ -257317,7 +258498,7 @@ async function writePackagingArtifacts(fs9, projectDir, projectId, packagingNode
|
|
|
257317
258498
|
};
|
|
257318
258499
|
await fs9.writeFile(fs9.path.join(projectDir, "package-descriptor.json"), `${JSON.stringify(packageDescriptorJson, null, 2)}
|
|
257319
258500
|
`);
|
|
257320
|
-
return entryPoints;
|
|
258501
|
+
return { entryPoints, bindingsJson: stagedBindingsJson };
|
|
257321
258502
|
}
|
|
257322
258503
|
function backfillNodeModelsFromDefinitions(nodes, definitions) {
|
|
257323
258504
|
if (definitions.length === 0)
|
|
@@ -257356,6 +258537,7 @@ var AUTONOMOUS_AGENT_NODE_TYPE2 = "uipath.agent.autonomous", CONVERSATIONAL_AGEN
|
|
|
257356
258537
|
var init_packaging_utils = __esm(() => {
|
|
257357
258538
|
init_src3();
|
|
257358
258539
|
init_dist3();
|
|
258540
|
+
init_flow_eval_file_store();
|
|
257359
258541
|
INLINE_AGENT_TYPES = [
|
|
257360
258542
|
AUTONOMOUS_AGENT_NODE_TYPE2,
|
|
257361
258543
|
CONVERSATIONAL_AGENT_NODE_TYPE2
|
|
@@ -258640,12 +259822,15 @@ class FlowDebugService {
|
|
|
258640
259822
|
await this.writeFlowProjectPackage(projectStagingDir, flowData, bpmnXml, flowFileName);
|
|
258641
259823
|
logger.info(`Generated BPMN package for sibling flow "${flowFileName.replace(/\.flow$/i, "")}"`);
|
|
258642
259824
|
}
|
|
258643
|
-
async writeFlowProjectPackage(projectDir, flowData, bpmnXml, flowFileName) {
|
|
259825
|
+
async writeFlowProjectPackage(projectDir, flowData, bpmnXml, flowFileName, inlineAgentPackages = []) {
|
|
258644
259826
|
const bpmnFileName = `${flowFileName.replace(/\.flow$/i, "")}.bpmn`;
|
|
258645
259827
|
await writeFlowWorkflow(this.fs.path.join(projectDir, flowFileName), flowData);
|
|
258646
259828
|
await this.fs.writeFile(this.fs.path.join(projectDir, bpmnFileName), bpmnXml);
|
|
258647
259829
|
const startEventId = extractStartEventId(bpmnXml);
|
|
258648
|
-
const entryPoints = await
|
|
259830
|
+
const { entryPoints } = await writePackagingArtifactsDetailed(this.fs, projectDir, flowData.id, fileNodesToPackagingNodes(flowData.nodes), flowData.bindings ?? [], flowData.variables ?? {}, bpmnFileName, startEventId, flowFileName, flowData.definitions ?? [], {
|
|
259831
|
+
additionalEntryPoints: inlineAgentPackages.map((agent) => agent.entryPoint),
|
|
259832
|
+
additionalBindingsJsons: inlineAgentPackages.map((agent) => agent.bindingsJson)
|
|
259833
|
+
});
|
|
258649
259834
|
await writeResolvedFlow(this.fs, projectDir, flowFileName.replace(/\.flow$/i, ""), flowData);
|
|
258650
259835
|
return { bpmnFileName, startEventId, entryPoints };
|
|
258651
259836
|
}
|
|
@@ -258776,31 +259961,10 @@ class FlowDebugService {
|
|
|
258776
259961
|
const stagingProjectDir = this.fs.path.join(stagingDir, flowProjectRelDir);
|
|
258777
259962
|
await this.fs.mkdir(stagingProjectDir);
|
|
258778
259963
|
await this.fs.writeFile(this.fs.path.join(stagingProjectDir, "project.uiproj"), projectUiprojContent);
|
|
258779
|
-
const { bpmnFileName, startEventId, entryPoints } = await this.writeFlowProjectPackage(stagingProjectDir, flowData, bpmnXml, `${safeName}.flow`);
|
|
258780
259964
|
const inlineAgentPackages = await packageInlineAgents(this.fs, absoluteProjectPath, flowData.nodes);
|
|
258781
|
-
|
|
258782
|
-
const srcDir = this.fs.path.join(absoluteProjectPath, agent.source);
|
|
258783
|
-
const destDir = this.fs.path.join(stagingProjectDir, agent.source);
|
|
258784
|
-
if (await this.fs.exists(srcDir)) {
|
|
258785
|
-
await this.fs.copyDirectory(srcDir, destDir);
|
|
258786
|
-
}
|
|
258787
|
-
const agentBuilderDir = this.fs.path.join(destDir, ".agent-builder");
|
|
258788
|
-
await this.fs.mkdir(agentBuilderDir);
|
|
258789
|
-
await this.fs.writeFile(this.fs.path.join(agentBuilderDir, "agent.json"), JSON.stringify({
|
|
258790
|
-
...agent.agentJson,
|
|
258791
|
-
resources: agent.agentJson.resources ?? [],
|
|
258792
|
-
features: agent.agentJson.features ?? []
|
|
258793
|
-
}, null, 2));
|
|
258794
|
-
await this.fs.writeFile(this.fs.path.join(agentBuilderDir, "bindings.json"), JSON.stringify({ version: "2.0", resources: [] }, null, 2));
|
|
258795
|
-
logger.info(`Staged inline agent "${agent.source}" for debug`);
|
|
258796
|
-
}
|
|
259965
|
+
const { bpmnFileName, startEventId, entryPoints } = await this.writeFlowProjectPackage(stagingProjectDir, flowData, bpmnXml, `${safeName}.flow`, inlineAgentPackages);
|
|
258797
259966
|
if (inlineAgentPackages.length > 0) {
|
|
258798
|
-
|
|
258799
|
-
...entryPoints,
|
|
258800
|
-
...inlineAgentPackages.map((a2) => a2.entryPoint)
|
|
258801
|
-
];
|
|
258802
|
-
await this.fs.writeFile(this.fs.path.join(stagingProjectDir, "entry-points.json"), `${JSON.stringify(generateEntryPointsJson(allEntryPoints), null, 2)}
|
|
258803
|
-
`);
|
|
259967
|
+
await stageInlineAgentPackageFiles(this.fs, absoluteProjectPath, stagingProjectDir, inlineAgentPackages, (source) => `Staged inline agent "${source}" for debug`);
|
|
258804
259968
|
}
|
|
258805
259969
|
const inlineAgents = buildInlineAgentDescriptors(flowData.nodes);
|
|
258806
259970
|
const startNodeId = entryPoints[0]?.filePath.split("#")[1] ?? startEventId;
|
|
@@ -259036,6 +260200,10 @@ function buildHttpFailureOutput(err2) {
|
|
|
259036
260200
|
Context: Context2
|
|
259037
260201
|
};
|
|
259038
260202
|
}
|
|
260203
|
+
function summarizePlatformBody(body) {
|
|
260204
|
+
const trimmed = body.trim().replace(/\s+/g, " ");
|
|
260205
|
+
return trimmed.length > 200 ? `${trimmed.slice(0, 200)}…` : trimmed;
|
|
260206
|
+
}
|
|
259039
260207
|
function pickInstructions(err2) {
|
|
259040
260208
|
const isOpaque5xx = err2.httpStatus >= 500 && err2.httpStatus < 600 && (err2.parsedErrorCode === undefined || err2.parsedErrorCode === "0");
|
|
259041
260209
|
if (isOpaque5xx && err2.parsedTraceId) {
|
|
@@ -259045,7 +260213,14 @@ function pickInstructions(err2) {
|
|
|
259045
260213
|
return `Authentication/authorization rejected by ${err2.method} ${err2.endpoint}. ` + `Run 'uip login' and verify the active tenant has access.`;
|
|
259046
260214
|
}
|
|
259047
260215
|
if (err2.httpStatus === 404) {
|
|
259048
|
-
|
|
260216
|
+
const isStructured = err2.parsedErrorMessage !== undefined || err2.parsedErrorCode !== undefined;
|
|
260217
|
+
if (!isStructured) {
|
|
260218
|
+
const body = summarizePlatformBody(err2.body);
|
|
260219
|
+
const bodySuffix = body ? ` Platform response: "${body}".` : "";
|
|
260220
|
+
return `${err2.method} ${err2.endpoint} returned 404 during '${err2.stage ?? "request"}', ` + `but the response was not a structured Orchestrator error — the request likely ` + `did not reach the tenant. This usually means the organization or tenant in your ` + `login session is wrong or was renamed. Run 'uip login tenant list' to see the ` + `current tenant names, re-select with 'uip login tenant set <name>' (or re-run ` + `'uip login'), then retry. Do not create a new workspace or retry as-is — the ` + `resource likely exists under the current tenant name.${bodySuffix}`;
|
|
260221
|
+
}
|
|
260222
|
+
const detail2 = err2.parsedErrorMessage ? ` Backend reported: "${err2.parsedErrorMessage}".` : "";
|
|
260223
|
+
return `${err2.method} ${err2.endpoint} returned 404 during '${err2.stage ?? "request"}'. ` + `The target resource may not exist — verify upstream IDs (solutionId, instanceId) ` + `and re-run.${detail2}`;
|
|
259049
260224
|
}
|
|
259050
260225
|
const detail = err2.parsedErrorMessage ? ` Backend reported: "${err2.parsedErrorMessage}".` : "";
|
|
259051
260226
|
return `${err2.method} ${err2.endpoint} failed with HTTP ${err2.httpStatus} during ` + `'${err2.stage ?? "request"}'.${detail} Inspect the response body for details ` + `and retry once before reporting.`;
|
|
@@ -259837,66 +261012,6 @@ var init_edge = __esm(() => {
|
|
|
259837
261012
|
];
|
|
259838
261013
|
});
|
|
259839
261014
|
|
|
259840
|
-
// ../flow-tool/src/services/flow-eval-file-store.ts
|
|
259841
|
-
async function ensureDirectory(fs9, path4) {
|
|
259842
|
-
if (await fs9.exists(path4)) {
|
|
259843
|
-
return;
|
|
259844
|
-
}
|
|
259845
|
-
const parent = fs9.path.dirname(path4);
|
|
259846
|
-
if (parent && parent !== path4 && !await fs9.exists(parent)) {
|
|
259847
|
-
await ensureDirectory(fs9, parent);
|
|
259848
|
-
}
|
|
259849
|
-
const [error95] = await catchError2(fs9.mkdir(path4));
|
|
259850
|
-
if (error95 && !await fs9.exists(path4)) {
|
|
259851
|
-
throw error95;
|
|
259852
|
-
}
|
|
259853
|
-
}
|
|
259854
|
-
|
|
259855
|
-
class FlowEvalFileStore {
|
|
259856
|
-
fs;
|
|
259857
|
-
constructor(fs9) {
|
|
259858
|
-
this.fs = fs9;
|
|
259859
|
-
}
|
|
259860
|
-
async readJsonFiles(dir3) {
|
|
259861
|
-
const [readDirError, files] = await catchError2(this.fs.readdir(dir3));
|
|
259862
|
-
if (readDirError) {
|
|
259863
|
-
return [];
|
|
259864
|
-
}
|
|
259865
|
-
const items = [];
|
|
259866
|
-
for (const file5 of files) {
|
|
259867
|
-
if (!file5.endsWith(".json")) {
|
|
259868
|
-
continue;
|
|
259869
|
-
}
|
|
259870
|
-
const filePath = this.fs.path.join(dir3, file5);
|
|
259871
|
-
const [readError, raw] = await catchError2(this.fs.readFile(filePath, "utf-8"));
|
|
259872
|
-
if (readError) {
|
|
259873
|
-
throw new Error(`Failed to read JSON file "${filePath}": ${readError.message}`);
|
|
259874
|
-
}
|
|
259875
|
-
if (raw === null) {
|
|
259876
|
-
continue;
|
|
259877
|
-
}
|
|
259878
|
-
const [parseError, data] = catchError2(() => JSON.parse(String(raw)));
|
|
259879
|
-
if (parseError) {
|
|
259880
|
-
throw new Error(`Invalid JSON in "${filePath}": ${parseError.message}`);
|
|
259881
|
-
}
|
|
259882
|
-
data.fileName = file5;
|
|
259883
|
-
items.push(data);
|
|
259884
|
-
}
|
|
259885
|
-
return items;
|
|
259886
|
-
}
|
|
259887
|
-
async writeJsonFile(path4, value) {
|
|
259888
|
-
await ensureDirectory(this.fs, this.fs.path.dirname(path4));
|
|
259889
|
-
await this.fs.writeFile(path4, `${JSON.stringify(value, null, 2)}
|
|
259890
|
-
`);
|
|
259891
|
-
}
|
|
259892
|
-
async remove(path4) {
|
|
259893
|
-
await this.fs.rm(path4);
|
|
259894
|
-
}
|
|
259895
|
-
}
|
|
259896
|
-
var init_flow_eval_file_store = __esm(() => {
|
|
259897
|
-
init_src3();
|
|
259898
|
-
});
|
|
259899
|
-
|
|
259900
261015
|
// ../flow-tool/src/services/flow-eval-files.ts
|
|
259901
261016
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
259902
261017
|
|
|
@@ -260399,7 +261514,7 @@ var init_flow_eval_schema = __esm(() => {
|
|
|
260399
261514
|
});
|
|
260400
261515
|
|
|
260401
261516
|
// ../flow-tool/src/services/flow-eval-utils.ts
|
|
260402
|
-
function
|
|
261517
|
+
function isRecord5(value) {
|
|
260403
261518
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
260404
261519
|
}
|
|
260405
261520
|
function isUUID(value) {
|
|
@@ -260441,7 +261556,7 @@ function buildDefaultCriteria(evaluators, expectedOutput, searchText) {
|
|
|
260441
261556
|
criterias[key] = { searchText };
|
|
260442
261557
|
} else {
|
|
260443
261558
|
const defaultCriteria = evaluator.evaluatorConfig.defaultEvaluationCriteria;
|
|
260444
|
-
criterias[key] =
|
|
261559
|
+
criterias[key] = isRecord5(defaultCriteria) ? defaultCriteria : null;
|
|
260445
261560
|
}
|
|
260446
261561
|
}
|
|
260447
261562
|
return criterias;
|
|
@@ -260489,13 +261604,13 @@ function readFlowGlobalsAsInputs(flowContent) {
|
|
|
260489
261604
|
} catch {
|
|
260490
261605
|
return inputs;
|
|
260491
261606
|
}
|
|
260492
|
-
if (!
|
|
261607
|
+
if (!isRecord5(parsed)) {
|
|
260493
261608
|
return inputs;
|
|
260494
261609
|
}
|
|
260495
|
-
const variables =
|
|
261610
|
+
const variables = isRecord5(parsed.variables) ? parsed.variables : undefined;
|
|
260496
261611
|
const globals = Array.isArray(variables?.globals) ? variables.globals : [];
|
|
260497
261612
|
for (const entry of globals) {
|
|
260498
|
-
if (!
|
|
261613
|
+
if (!isRecord5(entry)) {
|
|
260499
261614
|
continue;
|
|
260500
261615
|
}
|
|
260501
261616
|
if (entry.direction !== "in" || typeof entry.id !== "string") {
|
|
@@ -260535,7 +261650,7 @@ function readWorkflowId(flowContent) {
|
|
|
260535
261650
|
if (parseError) {
|
|
260536
261651
|
return;
|
|
260537
261652
|
}
|
|
260538
|
-
if (!
|
|
261653
|
+
if (!isRecord5(parsed) || typeof parsed.id !== "string") {
|
|
260539
261654
|
return;
|
|
260540
261655
|
}
|
|
260541
261656
|
if (parsed.id === "" || parsed.id.includes("/") || parsed.id.includes("\\") || parsed.id.includes("..")) {
|
|
@@ -260651,20 +261766,20 @@ class FlowEvalPathResolver {
|
|
|
260651
261766
|
}
|
|
260652
261767
|
function readStartNodeId(flowContent) {
|
|
260653
261768
|
const parsed = JSON.parse(flowContent);
|
|
260654
|
-
if (!
|
|
261769
|
+
if (!isRecord5(parsed) || !Array.isArray(parsed.nodes)) {
|
|
260655
261770
|
return;
|
|
260656
261771
|
}
|
|
260657
|
-
const nodes = parsed.nodes.filter(
|
|
261772
|
+
const nodes = parsed.nodes.filter(isRecord5);
|
|
260658
261773
|
const defaultEntry = nodes.find((node2) => {
|
|
260659
|
-
const inputs =
|
|
261774
|
+
const inputs = isRecord5(node2.inputs) ? node2.inputs : undefined;
|
|
260660
261775
|
if (inputs?.isDefaultEntryPoint === true) {
|
|
260661
261776
|
return true;
|
|
260662
261777
|
}
|
|
260663
|
-
const model =
|
|
261778
|
+
const model = isRecord5(node2.model) ? node2.model : undefined;
|
|
260664
261779
|
return model?.isDefaultEntryPoint === true;
|
|
260665
261780
|
});
|
|
260666
261781
|
const startNode = defaultEntry ?? nodes.find((node2) => {
|
|
260667
|
-
const model =
|
|
261782
|
+
const model = isRecord5(node2.model) ? node2.model : undefined;
|
|
260668
261783
|
return model?.type === "bpmn:StartEvent" || node2.type === "core.trigger.manual";
|
|
260669
261784
|
}) ?? nodes[0];
|
|
260670
261785
|
return typeof startNode?.id === "string" ? startNode.id : undefined;
|
|
@@ -260983,12 +262098,12 @@ function readFlowGlobalsAsOutputs(flowContent) {
|
|
|
260983
262098
|
} catch {
|
|
260984
262099
|
return outputs;
|
|
260985
262100
|
}
|
|
260986
|
-
if (!
|
|
262101
|
+
if (!isRecord5(parsed))
|
|
260987
262102
|
return outputs;
|
|
260988
|
-
const variables =
|
|
262103
|
+
const variables = isRecord5(parsed.variables) ? parsed.variables : undefined;
|
|
260989
262104
|
const globals = Array.isArray(variables?.globals) ? variables.globals : [];
|
|
260990
262105
|
for (const entry of globals) {
|
|
260991
|
-
if (!
|
|
262106
|
+
if (!isRecord5(entry))
|
|
260992
262107
|
continue;
|
|
260993
262108
|
if (entry.direction !== "out")
|
|
260994
262109
|
continue;
|
|
@@ -261027,11 +262142,11 @@ function extractNodeOutputSchema(flowContent, componentId, wrapAllOutputs) {
|
|
|
261027
262142
|
} catch {
|
|
261028
262143
|
return { schema: undefined, nodeFound: false };
|
|
261029
262144
|
}
|
|
261030
|
-
if (!
|
|
262145
|
+
if (!isRecord5(parsed)) {
|
|
261031
262146
|
return { schema: undefined, nodeFound: false };
|
|
261032
262147
|
}
|
|
261033
262148
|
const nodes = Array.isArray(parsed.nodes) ? parsed.nodes : [];
|
|
261034
|
-
const node2 = nodes.find((n) =>
|
|
262149
|
+
const node2 = nodes.find((n) => isRecord5(n) && n.id === componentId);
|
|
261035
262150
|
if (!node2) {
|
|
261036
262151
|
return { schema: undefined, nodeFound: false };
|
|
261037
262152
|
}
|
|
@@ -261048,7 +262163,7 @@ function extractNodeOutputSchema(flowContent, componentId, wrapAllOutputs) {
|
|
|
261048
262163
|
return { schema: schema70, nodeFound: true };
|
|
261049
262164
|
}
|
|
261050
262165
|
}
|
|
261051
|
-
const outputs =
|
|
262166
|
+
const outputs = isRecord5(node2.outputs) ? node2.outputs : undefined;
|
|
261052
262167
|
if (outputs && Object.keys(outputs).length > 0) {
|
|
261053
262168
|
if (!wrapAllOutputs && "output" in outputs) {
|
|
261054
262169
|
return { schema: outputs.output, nodeFound: true };
|
|
@@ -261061,37 +262176,37 @@ function extractNodeOutputSchema(flowContent, componentId, wrapAllOutputs) {
|
|
|
261061
262176
|
return { schema: undefined, nodeFound: true };
|
|
261062
262177
|
}
|
|
261063
262178
|
function extractConnectorOutputSchema(node2) {
|
|
261064
|
-
if (!
|
|
262179
|
+
if (!isRecord5(node2.inputs))
|
|
261065
262180
|
return;
|
|
261066
262181
|
const detail = node2.inputs.detail;
|
|
261067
262182
|
let detailObj;
|
|
261068
262183
|
if (typeof detail === "string") {
|
|
261069
262184
|
try {
|
|
261070
262185
|
const parsed = JSON.parse(detail);
|
|
261071
|
-
if (!
|
|
262186
|
+
if (!isRecord5(parsed))
|
|
261072
262187
|
return;
|
|
261073
262188
|
detailObj = parsed;
|
|
261074
262189
|
} catch {
|
|
261075
262190
|
return;
|
|
261076
262191
|
}
|
|
261077
|
-
} else if (
|
|
262192
|
+
} else if (isRecord5(detail)) {
|
|
261078
262193
|
detailObj = detail;
|
|
261079
262194
|
} else {
|
|
261080
262195
|
return;
|
|
261081
262196
|
}
|
|
261082
|
-
const config5 =
|
|
262197
|
+
const config5 = isRecord5(detailObj.configuration) ? detailObj.configuration : undefined;
|
|
261083
262198
|
if (!config5)
|
|
261084
262199
|
return;
|
|
261085
|
-
const fieldsContainer =
|
|
262200
|
+
const fieldsContainer = isRecord5(config5.fieldsContainer) ? config5.fieldsContainer : undefined;
|
|
261086
262201
|
if (!fieldsContainer)
|
|
261087
262202
|
return;
|
|
261088
262203
|
const schema70 = fieldsContainer.outputJsonSchema;
|
|
261089
|
-
if (!schema70 || !
|
|
262204
|
+
if (!schema70 || !isRecord5(schema70))
|
|
261090
262205
|
return;
|
|
261091
262206
|
return schema70;
|
|
261092
262207
|
}
|
|
261093
262208
|
function extractAgentOutputSchema(node2) {
|
|
261094
|
-
if (!
|
|
262209
|
+
if (!isRecord5(node2.inputs))
|
|
261095
262210
|
return;
|
|
261096
262211
|
const agentOutputVariables = node2.inputs.agentOutputVariables;
|
|
261097
262212
|
if (!Array.isArray(agentOutputVariables) || agentOutputVariables.length === 0) {
|
|
@@ -261099,10 +262214,10 @@ function extractAgentOutputSchema(node2) {
|
|
|
261099
262214
|
}
|
|
261100
262215
|
const properties = {};
|
|
261101
262216
|
for (const v2 of agentOutputVariables) {
|
|
261102
|
-
if (!
|
|
262217
|
+
if (!isRecord5(v2) || typeof v2.id !== "string")
|
|
261103
262218
|
continue;
|
|
261104
262219
|
const type = typeof v2.type === "string" ? v2.type : "string";
|
|
261105
|
-
if (
|
|
262220
|
+
if (isRecord5(v2.schema)) {
|
|
261106
262221
|
properties[v2.id] = v2.schema;
|
|
261107
262222
|
} else {
|
|
261108
262223
|
properties[v2.id] = { type };
|
|
@@ -261117,20 +262232,20 @@ function cleanOutputSchema(schema70) {
|
|
|
261117
262232
|
return unwrapOutputProperty(stripped);
|
|
261118
262233
|
}
|
|
261119
262234
|
function stripAnnotations(value) {
|
|
261120
|
-
if (!
|
|
262235
|
+
if (!isRecord5(value))
|
|
261121
262236
|
return value;
|
|
261122
262237
|
const result = {};
|
|
261123
262238
|
for (const [k2, v2] of Object.entries(value)) {
|
|
261124
262239
|
if (ANNOTATION_KEYS.has(k2))
|
|
261125
262240
|
continue;
|
|
261126
|
-
result[k2] = Array.isArray(v2) ? v2.map(stripAnnotations) :
|
|
262241
|
+
result[k2] = Array.isArray(v2) ? v2.map(stripAnnotations) : isRecord5(v2) ? stripAnnotations(v2) : v2;
|
|
261127
262242
|
}
|
|
261128
262243
|
return result;
|
|
261129
262244
|
}
|
|
261130
262245
|
function unwrapOutputProperty(schema70) {
|
|
261131
|
-
if (!
|
|
262246
|
+
if (!isRecord5(schema70))
|
|
261132
262247
|
return schema70;
|
|
261133
|
-
const props =
|
|
262248
|
+
const props = isRecord5(schema70.properties) ? schema70.properties : undefined;
|
|
261134
262249
|
if (!props || !("output" in props))
|
|
261135
262250
|
return schema70;
|
|
261136
262251
|
return props.output;
|
|
@@ -261404,20 +262519,20 @@ function asRecordArray(value, label) {
|
|
|
261404
262519
|
throw new Error(`${label} response must be an array`);
|
|
261405
262520
|
}
|
|
261406
262521
|
return value.map((item, index) => {
|
|
261407
|
-
if (!
|
|
262522
|
+
if (!isRecord5(item)) {
|
|
261408
262523
|
throw new Error(`${label} response item ${index} must be an object`);
|
|
261409
262524
|
}
|
|
261410
262525
|
return item;
|
|
261411
262526
|
});
|
|
261412
262527
|
}
|
|
261413
262528
|
function readRecord(value) {
|
|
261414
|
-
return
|
|
262529
|
+
return isRecord5(value) ? value : undefined;
|
|
261415
262530
|
}
|
|
261416
262531
|
function readRecordArray(value) {
|
|
261417
262532
|
if (!Array.isArray(value)) {
|
|
261418
262533
|
return;
|
|
261419
262534
|
}
|
|
261420
|
-
return value.filter(
|
|
262535
|
+
return value.filter(isRecord5);
|
|
261421
262536
|
}
|
|
261422
262537
|
function optionalNumber(value) {
|
|
261423
262538
|
return typeof value === "number" ? value : null;
|
|
@@ -261509,7 +262624,7 @@ function readRemoteEvalRun(record5) {
|
|
|
261509
262624
|
}
|
|
261510
262625
|
];
|
|
261511
262626
|
}),
|
|
261512
|
-
error: typeof record5.error === "string" ||
|
|
262627
|
+
error: typeof record5.error === "string" || isRecord5(record5.error) ? record5.error : null,
|
|
261513
262628
|
errorMessage: typeof record5.errorMessage === "string" ? record5.errorMessage : null,
|
|
261514
262629
|
createdAt: typeof record5.createdAt === "string" ? record5.createdAt : undefined,
|
|
261515
262630
|
updatedAt: typeof record5.updatedAt === "string" ? record5.updatedAt : undefined
|
|
@@ -261533,7 +262648,7 @@ class FlowEvalRunApi {
|
|
|
261533
262648
|
}
|
|
261534
262649
|
async getEvalSetRun(config5, workloadId, evalSetRunId) {
|
|
261535
262650
|
const response = await this.requestJson(config5, `/unifiedEvals/workloads/${encodeURIComponent(workloadId)}/evalSetRuns/${encodeURIComponent(evalSetRunId)}?workloadType=Flow`, { method: "GET" });
|
|
261536
|
-
if (!
|
|
262651
|
+
if (!isRecord5(response)) {
|
|
261537
262652
|
throw new Error("Eval set run response must be an object");
|
|
261538
262653
|
}
|
|
261539
262654
|
return readRemoteEvalSetRun(response);
|
|
@@ -261730,36 +262845,13 @@ class FlowLocalWorkspaceEvalPreparer {
|
|
|
261730
262845
|
const bindings = flowData.bindings ?? [];
|
|
261731
262846
|
const workflowVariables = flowData.variables ?? {};
|
|
261732
262847
|
const definitions = flowData.definitions ?? [];
|
|
261733
|
-
const entryPoints = await writePackagingArtifacts(this.fs, stagingProjectDir, flowData.id, packagingNodes, bindings, workflowVariables, bpmnFileName, startEventId, flowFileName, definitions);
|
|
261734
|
-
await writeResolvedFlow(this.fs, stagingProjectDir, flowBaseName, flowData);
|
|
261735
|
-
await this.stageInlineAgents(stagingProjectDir, sourceProjectPath, flowData, entryPoints);
|
|
261736
|
-
}
|
|
261737
|
-
async stageInlineAgents(stagingProjectDir, sourceProjectPath, flowData, entryPoints) {
|
|
261738
262848
|
const inlineAgentPackages = await packageInlineAgents(this.fs, sourceProjectPath, flowData.nodes);
|
|
261739
|
-
|
|
261740
|
-
|
|
261741
|
-
|
|
261742
|
-
|
|
261743
|
-
|
|
261744
|
-
|
|
261745
|
-
const agentBuilderDir = this.fs.path.join(destDir, ".agent-builder");
|
|
261746
|
-
await ensureDirectory(this.fs, agentBuilderDir);
|
|
261747
|
-
await this.fs.writeFile(this.fs.path.join(agentBuilderDir, "agent.json"), JSON.stringify({
|
|
261748
|
-
...agent.agentJson,
|
|
261749
|
-
resources: agent.agentJson.resources ?? [],
|
|
261750
|
-
features: agent.agentJson.features ?? []
|
|
261751
|
-
}, null, 2));
|
|
261752
|
-
await this.fs.writeFile(this.fs.path.join(agentBuilderDir, "bindings.json"), JSON.stringify({ version: "2.0", resources: [] }, null, 2));
|
|
261753
|
-
logger.info(`Staged inline agent "${agent.source}" for eval debug`);
|
|
261754
|
-
}
|
|
261755
|
-
if (inlineAgentPackages.length > 0) {
|
|
261756
|
-
const allEntryPoints = [
|
|
261757
|
-
...entryPoints,
|
|
261758
|
-
...inlineAgentPackages.map((agent) => agent.entryPoint)
|
|
261759
|
-
];
|
|
261760
|
-
await this.fs.writeFile(this.fs.path.join(stagingProjectDir, "entry-points.json"), `${JSON.stringify(generateEntryPointsJson(allEntryPoints), null, 2)}
|
|
261761
|
-
`);
|
|
261762
|
-
}
|
|
262849
|
+
await writePackagingArtifactsDetailed(this.fs, stagingProjectDir, flowData.id, packagingNodes, bindings, workflowVariables, bpmnFileName, startEventId, flowFileName, definitions, {
|
|
262850
|
+
additionalEntryPoints: inlineAgentPackages.map((agent) => agent.entryPoint),
|
|
262851
|
+
additionalBindingsJsons: inlineAgentPackages.map((agent) => agent.bindingsJson)
|
|
262852
|
+
});
|
|
262853
|
+
await writeResolvedFlow(this.fs, stagingProjectDir, flowBaseName, flowData);
|
|
262854
|
+
await stageInlineAgentPackageFiles(this.fs, sourceProjectPath, stagingProjectDir, inlineAgentPackages, (source) => `Staged inline agent "${source}" for eval debug`);
|
|
261763
262855
|
}
|
|
261764
262856
|
createApiConfig(config5) {
|
|
261765
262857
|
return {
|
|
@@ -261823,7 +262915,7 @@ function firstString(values) {
|
|
|
261823
262915
|
}
|
|
261824
262916
|
function readFlowStringProperty(flowContent, property) {
|
|
261825
262917
|
const [parseError, parsed] = catchError2(() => JSON.parse(flowContent));
|
|
261826
|
-
if (parseError || !
|
|
262918
|
+
if (parseError || !isRecord5(parsed)) {
|
|
261827
262919
|
return;
|
|
261828
262920
|
}
|
|
261829
262921
|
const value = parsed[property];
|
|
@@ -261879,15 +262971,15 @@ function withInlineAgentExecutorInfo(project) {
|
|
|
261879
262971
|
}
|
|
261880
262972
|
function extractInlineAgentProjects(flowContent, currentProjectId) {
|
|
261881
262973
|
const parsed = JSON.parse(flowContent);
|
|
261882
|
-
if (!
|
|
262974
|
+
if (!isRecord5(parsed) || !Array.isArray(parsed.nodes)) {
|
|
261883
262975
|
return [];
|
|
261884
262976
|
}
|
|
261885
262977
|
const seen = new Set;
|
|
261886
|
-
return parsed.nodes.filter(
|
|
262978
|
+
return parsed.nodes.filter(isRecord5).flatMap((node2) => {
|
|
261887
262979
|
const nodeType = typeof node2.type === "string" ? node2.type : "";
|
|
261888
|
-
const model =
|
|
261889
|
-
const inputs =
|
|
261890
|
-
const display =
|
|
262980
|
+
const model = isRecord5(node2.model) ? node2.model : undefined;
|
|
262981
|
+
const inputs = isRecord5(node2.inputs) ? node2.inputs : undefined;
|
|
262982
|
+
const display = isRecord5(node2.display) ? node2.display : undefined;
|
|
261891
262983
|
const serviceType = typeof model?.serviceType === "string" ? model.serviceType.toLowerCase() : "";
|
|
261892
262984
|
const lowerType = nodeType.toLowerCase();
|
|
261893
262985
|
const isAgent = lowerType.startsWith("uipath.agent") || serviceType.includes("agent");
|
|
@@ -261928,7 +263020,7 @@ class FlowEvalRunContextResolver {
|
|
|
261928
263020
|
this.pathResolver = pathResolver;
|
|
261929
263021
|
this.localWorkspacePreparer = localWorkspacePreparer;
|
|
261930
263022
|
}
|
|
261931
|
-
async resolveTarget(projectPath, evalSet, options, requireSolutionId) {
|
|
263023
|
+
async resolveTarget(projectPath, evalSet, options, requireSolutionId, config5) {
|
|
261932
263024
|
const absoluteProjectPath = await this.pathResolver.resolveFlowProjectPath(projectPath);
|
|
261933
263025
|
const solutionDir = this.fs.path.dirname(absoluteProjectPath);
|
|
261934
263026
|
const projectRelDir = toForwardSlash2(this.fs.path.relative(solutionDir, absoluteProjectPath));
|
|
@@ -261946,17 +263038,23 @@ class FlowEvalRunContextResolver {
|
|
|
261946
263038
|
throw new Error("Could not resolve Flow project metadata from a parent .uipx or SolutionStorage.json file. Use a flow project extracted with 'uip solution download --extract', or provide --project-id.");
|
|
261947
263039
|
}
|
|
261948
263040
|
const localProjectDebugId = await this.readLocalProjectId(absoluteProjectPath);
|
|
261949
|
-
|
|
263041
|
+
let studioWebProjectId = options.projectId ?? (localWorkspaceMarker ? storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? uipxProject?.Id ?? localProjectDebugId : isVsixLocalProject ? flowProjectId ?? localProjectDebugId ?? storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? uipxProject?.Id : localProjectDebugId ?? storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? uipxProject?.Id);
|
|
263042
|
+
const projectIdFromUipxManifest = options.projectId === undefined && localWorkspaceMarker === undefined && !isVsixLocalProject && localProjectDebugId === undefined && storageProject?.CloudProjectId === undefined && storageProject?.ProjectId === undefined && uipxProject?.Id !== undefined;
|
|
261950
263043
|
const isLocalWorkspace = localWorkspaceMarker !== undefined;
|
|
261951
263044
|
const solutionId = options.solutionId ?? (isLocalWorkspace ? localWorkspaceMarker.SolutionId ?? solutionStorage?.SolutionId ?? uipxResult?.uipx.SolutionId : isVsixLocalProject ? vsixLocalSolutionId ?? solutionStorage?.SolutionId ?? uipxResult?.uipx.SolutionId : solutionStorage?.SolutionId ?? uipxResult?.uipx.SolutionId);
|
|
261952
263045
|
if (!studioWebProjectId) {
|
|
261953
263046
|
throw new Error("Could not resolve Flow project ID. Provide --project-id or run from a project listed in the parent .uipx or SolutionStorage.json file.");
|
|
261954
263047
|
}
|
|
263048
|
+
let cloudProjects;
|
|
263049
|
+
if (projectIdFromUipxManifest && config5 && solutionId) {
|
|
263050
|
+
cloudProjects = await this.fetchCloudProjects(config5, solutionId);
|
|
263051
|
+
studioWebProjectId = this.mapDesignIdToCloudProjectId(cloudProjects, studioWebProjectId, this.fs.path.basename(absoluteProjectPath), solutionId);
|
|
263052
|
+
}
|
|
261955
263053
|
const workloadId = readWorkflowId(flowContent) ?? studioWebProjectId;
|
|
261956
263054
|
if (requireSolutionId && !solutionId) {
|
|
261957
263055
|
throw new Error("Could not resolve solution ID. Provide --solution-id or run from a project whose parent directory contains a .uipx or SolutionStorage.json file.");
|
|
261958
263056
|
}
|
|
261959
|
-
const additionalProjects = await this.resolveAdditionalProjects(studioWebProjectId, flowContent, uipxResult?.uipx.Projects ?? [], solutionStorage, uipxProject?.Id);
|
|
263057
|
+
const additionalProjects = await this.resolveAdditionalProjects(studioWebProjectId, flowContent, uipxResult?.uipx.Projects ?? [], solutionStorage, uipxProject?.Id, cloudProjects);
|
|
261960
263058
|
return {
|
|
261961
263059
|
projectPath: absoluteProjectPath,
|
|
261962
263060
|
evalSet,
|
|
@@ -262041,7 +263139,22 @@ class FlowEvalRunContextResolver {
|
|
|
262041
263139
|
};
|
|
262042
263140
|
});
|
|
262043
263141
|
}
|
|
262044
|
-
async
|
|
263142
|
+
async fetchCloudProjects(config5, solutionId) {
|
|
263143
|
+
const cloudProjects = await getStudioWebSolutionProjects(config5, config5.organizationName, solutionId);
|
|
263144
|
+
if (cloudProjects === undefined) {
|
|
263145
|
+
throw new Error(`Solution ${solutionId} was not found in Studio Web. Upload it first with 'uip solution upload', or pass --solution-id and --project-id explicitly.`);
|
|
263146
|
+
}
|
|
263147
|
+
return cloudProjects;
|
|
263148
|
+
}
|
|
263149
|
+
mapDesignIdToCloudProjectId(cloudProjects, designProjectId, projectName, solutionId) {
|
|
263150
|
+
const match = cloudProjects.find((project) => project.designId === designProjectId) ?? cloudProjects.find((project) => project.name === projectName);
|
|
263151
|
+
if (!match) {
|
|
263152
|
+
const available = cloudProjects.map((project) => `${project.name ?? "?"} (${project.id})`).join(", ");
|
|
263153
|
+
throw new Error(`Project "${projectName}" (design ID ${designProjectId}) is not part of solution ${solutionId} in Studio Web. Available projects: ${available || "none"}. Re-upload the solution with 'uip solution upload' or pass --project-id.`);
|
|
263154
|
+
}
|
|
263155
|
+
return match.id;
|
|
263156
|
+
}
|
|
263157
|
+
async resolveAdditionalProjects(currentProjectId, flowContent, uipxProjects, solutionStorage, currentDesignProjectId, cloudProjects) {
|
|
262045
263158
|
const byId = new Map;
|
|
262046
263159
|
for (const project of extractInlineAgentProjects(flowContent, currentProjectId)) {
|
|
262047
263160
|
byId.set(project.id, project);
|
|
@@ -262051,7 +263164,7 @@ class FlowEvalRunContextResolver {
|
|
|
262051
263164
|
continue;
|
|
262052
263165
|
}
|
|
262053
263166
|
const storageProject = solutionStorage?.Projects?.find((storage) => storage.ProjectId === project.Id || storage.ProjectRelativePath === project.ProjectRelativePath);
|
|
262054
|
-
const id2 = storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? project.Id;
|
|
263167
|
+
const id2 = storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? cloudProjects?.find((cloudProject) => cloudProject.designId === project.Id)?.id ?? project.Id;
|
|
262055
263168
|
if (id2 === currentProjectId || byId.has(id2)) {
|
|
262056
263169
|
continue;
|
|
262057
263170
|
}
|
|
@@ -262084,7 +263197,7 @@ class FlowEvalRunContextResolver {
|
|
|
262084
263197
|
return;
|
|
262085
263198
|
}
|
|
262086
263199
|
const [parseError, parsed] = catchError2(() => JSON.parse(String(content)));
|
|
262087
|
-
if (parseError || !
|
|
263200
|
+
if (parseError || !isRecord5(parsed)) {
|
|
262088
263201
|
return;
|
|
262089
263202
|
}
|
|
262090
263203
|
return typeof parsed.projectId === "string" && isUUID(parsed.projectId) ? parsed.projectId : undefined;
|
|
@@ -262113,10 +263226,10 @@ class FlowEvalRunContextResolver {
|
|
|
262113
263226
|
}
|
|
262114
263227
|
const content = await this.fs.readFile(storagePath, "utf-8");
|
|
262115
263228
|
const parsed = JSON.parse(String(content));
|
|
262116
|
-
if (!
|
|
263229
|
+
if (!isRecord5(parsed)) {
|
|
262117
263230
|
throw new Error("SolutionStorage.json must be a JSON object");
|
|
262118
263231
|
}
|
|
262119
|
-
const projects = Array.isArray(parsed.Projects) ? parsed.Projects.filter(
|
|
263232
|
+
const projects = Array.isArray(parsed.Projects) ? parsed.Projects.filter(isRecord5).map((project) => ({
|
|
262120
263233
|
ProjectId: typeof project.ProjectId === "string" ? project.ProjectId : undefined,
|
|
262121
263234
|
ProjectRelativePath: typeof project.ProjectRelativePath === "string" ? project.ProjectRelativePath : undefined,
|
|
262122
263235
|
CloudProjectId: typeof project.CloudProjectId === "string" ? project.CloudProjectId : undefined
|
|
@@ -262151,13 +263264,13 @@ class FlowEvalRunService {
|
|
|
262151
263264
|
this.pathResolver = new FlowEvalPathResolver(fs9);
|
|
262152
263265
|
this.contextResolver = new FlowEvalRunContextResolver(fs9, this.pathResolver);
|
|
262153
263266
|
}
|
|
262154
|
-
async resolveRemoteEvalTarget(projectPath, setIdOrName, options = {}, requireSolutionId = false) {
|
|
263267
|
+
async resolveRemoteEvalTarget(projectPath, setIdOrName, options = {}, requireSolutionId = false, config5) {
|
|
262155
263268
|
const absoluteProjectPath = await this.pathResolver.resolveFlowProjectPath(projectPath);
|
|
262156
263269
|
const evalSet = await this.requireEvalSet(absoluteProjectPath, setIdOrName);
|
|
262157
|
-
return this.contextResolver.resolveTarget(absoluteProjectPath, evalSet, options, requireSolutionId);
|
|
263270
|
+
return this.contextResolver.resolveTarget(absoluteProjectPath, evalSet, options, requireSolutionId, config5);
|
|
262158
263271
|
}
|
|
262159
263272
|
async resolveRemoteEvalContext(projectPath, setIdOrName, config5, options = {}) {
|
|
262160
|
-
const target = await this.resolveRemoteEvalTarget(projectPath, setIdOrName, options, true);
|
|
263273
|
+
const target = await this.resolveRemoteEvalTarget(projectPath, setIdOrName, options, true, config5);
|
|
262161
263274
|
const context = await this.contextResolver.buildExecutionContext(target, config5, options);
|
|
262162
263275
|
return {
|
|
262163
263276
|
evalSet: target.evalSet,
|
|
@@ -262399,11 +263512,11 @@ async function exportRows(exportFormat, rows) {
|
|
|
262399
263512
|
}
|
|
262400
263513
|
throw new Error(`Unknown export format "${exportFormat}". Use "json" or "csv".`);
|
|
262401
263514
|
}
|
|
262402
|
-
async function resolveRemoteTarget(service, options, requireSolutionId = false) {
|
|
263515
|
+
async function resolveRemoteTarget(service, options, config5, requireSolutionId = false) {
|
|
262403
263516
|
return service.resolveRemoteEvalTarget(options.path, options.set, {
|
|
262404
263517
|
solutionId: options.solutionId,
|
|
262405
263518
|
projectId: options.projectId
|
|
262406
|
-
}, requireSolutionId);
|
|
263519
|
+
}, requireSolutionId, config5);
|
|
262407
263520
|
}
|
|
262408
263521
|
function registerEvalRunCommand(evalCmd) {
|
|
262409
263522
|
const runCmd = evalCmd.command("run").description("Run Flow evaluation sets in Studio Web");
|
|
@@ -262442,7 +263555,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
262442
263555
|
const [error95] = await catchError2((async () => {
|
|
262443
263556
|
const config5 = await resolveStudioWebConfig();
|
|
262444
263557
|
const service = new FlowEvalRunService;
|
|
262445
|
-
const target = await resolveRemoteTarget(service, options);
|
|
263558
|
+
const target = await resolveRemoteTarget(service, options, config5);
|
|
262446
263559
|
const [run, evaluators] = await Promise.all([
|
|
262447
263560
|
service.getRemoteEvalSetRun(config5, target.workloadId, evalSetRunId),
|
|
262448
263561
|
service.listEvaluators(target.projectPath)
|
|
@@ -262467,7 +263580,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
262467
263580
|
const [error95] = await catchError2((async () => {
|
|
262468
263581
|
const config5 = await resolveStudioWebConfig();
|
|
262469
263582
|
const service = new FlowEvalRunService;
|
|
262470
|
-
const target = await resolveRemoteTarget(service, options);
|
|
263583
|
+
const target = await resolveRemoteTarget(service, options, config5);
|
|
262471
263584
|
let evalRuns = await service.getRemoteEvalRuns(config5, target.workloadId, evalSetRunId);
|
|
262472
263585
|
if (options.onlyFailed) {
|
|
262473
263586
|
evalRuns = evalRuns.filter(isFailedRemoteRun);
|
|
@@ -262500,7 +263613,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
262500
263613
|
const [error95] = await catchError2((async () => {
|
|
262501
263614
|
const config5 = await resolveStudioWebConfig();
|
|
262502
263615
|
const service = new FlowEvalRunService;
|
|
262503
|
-
const target = await resolveRemoteTarget(service, options);
|
|
263616
|
+
const target = await resolveRemoteTarget(service, options, config5);
|
|
262504
263617
|
const runs = await service.listRemoteEvalSetRuns(config5, target.workloadId, target.evalSet.id);
|
|
262505
263618
|
if (runs.length === 0) {
|
|
262506
263619
|
OutputFormatter.success({
|
|
@@ -262525,7 +263638,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
262525
263638
|
const [error95] = await catchError2((async () => {
|
|
262526
263639
|
const config5 = await resolveStudioWebConfig();
|
|
262527
263640
|
const service = new FlowEvalRunService;
|
|
262528
|
-
const target = await resolveRemoteTarget(service, options);
|
|
263641
|
+
const target = await resolveRemoteTarget(service, options, config5);
|
|
262529
263642
|
const [runsA, runsB, runMetaA, runMetaB] = await Promise.all([
|
|
262530
263643
|
service.getRemoteEvalRuns(config5, target.workloadId, evalSetRunId),
|
|
262531
263644
|
service.getRemoteEvalRuns(config5, target.workloadId, options.compareTo),
|
|
@@ -263053,20 +264166,6 @@ function typeToFieldType(type) {
|
|
|
263053
264166
|
};
|
|
263054
264167
|
return map6[type] ?? "text";
|
|
263055
264168
|
}
|
|
263056
|
-
function typeToVariableType(type) {
|
|
263057
|
-
const normalized = type ?? "string";
|
|
263058
|
-
const map6 = {
|
|
263059
|
-
text: "string",
|
|
263060
|
-
date: "string",
|
|
263061
|
-
string: "string",
|
|
263062
|
-
number: "number",
|
|
263063
|
-
boolean: "boolean",
|
|
263064
|
-
object: "object",
|
|
263065
|
-
array: "array",
|
|
263066
|
-
file: "file"
|
|
263067
|
-
};
|
|
263068
|
-
return map6[normalized] ?? "string";
|
|
263069
|
-
}
|
|
263070
264169
|
function toVariableId(name3) {
|
|
263071
264170
|
const words = name3.match(/[a-zA-Z0-9]+/g) ?? [];
|
|
263072
264171
|
const [first, ...rest] = words;
|
|
@@ -263079,12 +264178,6 @@ function toVariableId(name3) {
|
|
|
263079
264178
|
...rest.map((word) => `${word.charAt(0).toUpperCase()}${word.slice(1)}`)
|
|
263080
264179
|
].join("");
|
|
263081
264180
|
}
|
|
263082
|
-
function assertValidVariableId(variableId, fieldName) {
|
|
263083
|
-
const error95 = validateIdentifier(variableId, []);
|
|
263084
|
-
if (error95) {
|
|
263085
|
-
throw new Error(`Invalid HITL output variable '${variableId}' for schema field '${fieldName}': ${error95}`);
|
|
263086
|
-
}
|
|
263087
|
-
}
|
|
263088
264181
|
function toOutputVariableId(field) {
|
|
263089
264182
|
return field.variable ?? toVariableId(field.name);
|
|
263090
264183
|
}
|
|
@@ -263098,19 +264191,22 @@ function toRuntimeSchema(schema70) {
|
|
|
263098
264191
|
direction: "input"
|
|
263099
264192
|
};
|
|
263100
264193
|
if (f2.binding) {
|
|
263101
|
-
|
|
263102
|
-
field.binding = expr;
|
|
263103
|
-
field.variable = expr;
|
|
264194
|
+
field.binding = `=js:$vars.${f2.binding}`;
|
|
263104
264195
|
}
|
|
263105
264196
|
fields.push(field);
|
|
263106
264197
|
}
|
|
263107
264198
|
for (const f2 of schema70.outputs ?? []) {
|
|
264199
|
+
const variableId = toOutputVariableId(f2);
|
|
264200
|
+
const validationError = validateIdentifier(variableId, []);
|
|
264201
|
+
if (validationError) {
|
|
264202
|
+
throw new Error(`Invalid HITL output variable '${variableId}' for schema field '${f2.name}': ${validationError}`);
|
|
264203
|
+
}
|
|
263108
264204
|
const field = {
|
|
263109
264205
|
id: toSlug(f2.name),
|
|
263110
264206
|
label: f2.name,
|
|
263111
264207
|
type: typeToFieldType(f2.type ?? "string"),
|
|
263112
264208
|
direction: "output",
|
|
263113
|
-
variable:
|
|
264209
|
+
variable: variableId
|
|
263114
264210
|
};
|
|
263115
264211
|
if (f2.required !== undefined) {
|
|
263116
264212
|
field.required = f2.required;
|
|
@@ -263118,12 +264214,19 @@ function toRuntimeSchema(schema70) {
|
|
|
263118
264214
|
fields.push(field);
|
|
263119
264215
|
}
|
|
263120
264216
|
for (const f2 of schema70.inOuts ?? []) {
|
|
263121
|
-
|
|
264217
|
+
const field = {
|
|
263122
264218
|
id: toSlug(f2.name),
|
|
263123
264219
|
label: f2.name,
|
|
263124
264220
|
type: typeToFieldType(f2.type ?? "string"),
|
|
263125
264221
|
direction: "inOut"
|
|
263126
|
-
}
|
|
264222
|
+
};
|
|
264223
|
+
if (f2.binding) {
|
|
264224
|
+
field.binding = `=js:$vars.${f2.binding}`;
|
|
264225
|
+
}
|
|
264226
|
+
if (f2.variable) {
|
|
264227
|
+
field.variable = f2.variable;
|
|
264228
|
+
}
|
|
264229
|
+
fields.push(field);
|
|
263127
264230
|
}
|
|
263128
264231
|
const rawOutcomes = schema70.outcomes ?? [{ name: "Submit" }];
|
|
263129
264232
|
const outcomes = rawOutcomes.map((o2, index) => ({
|
|
@@ -263139,27 +264242,9 @@ function toRuntimeSchema(schema70) {
|
|
|
263139
264242
|
outcomes
|
|
263140
264243
|
};
|
|
263141
264244
|
}
|
|
263142
|
-
function materializeHitlOutputVariables(workflow, schema70) {
|
|
263143
|
-
const globals = workflow.variables?.globals ?? [];
|
|
263144
|
-
const existingIds = new Set(globals.map((variable) => variable.id));
|
|
263145
|
-
const pendingIds = new Set;
|
|
263146
|
-
for (const field of schema70.outputs ?? []) {
|
|
263147
|
-
const variableId = toOutputVariableId(field);
|
|
263148
|
-
assertValidVariableId(variableId, field.name);
|
|
263149
|
-
if (existingIds.has(variableId) || pendingIds.has(variableId)) {
|
|
263150
|
-
continue;
|
|
263151
|
-
}
|
|
263152
|
-
addVariable(workflow, createWorkflowVariable({
|
|
263153
|
-
id: variableId,
|
|
263154
|
-
direction: "out",
|
|
263155
|
-
type: typeToVariableType(field.type)
|
|
263156
|
-
}));
|
|
263157
|
-
pendingIds.add(variableId);
|
|
263158
|
-
}
|
|
263159
|
-
}
|
|
263160
264245
|
function buildHitlManifest(label) {
|
|
263161
264246
|
return {
|
|
263162
|
-
nodeType: "uipath.human-in-the-loop",
|
|
264247
|
+
nodeType: "uipath.human-in-the-loop.quick-form",
|
|
263163
264248
|
version: "1.0",
|
|
263164
264249
|
sortOrder: 50,
|
|
263165
264250
|
category: "human-task",
|
|
@@ -263204,32 +264289,21 @@ function buildHitlManifest(label) {
|
|
|
263204
264289
|
}
|
|
263205
264290
|
};
|
|
263206
264291
|
}
|
|
263207
|
-
function buildHitlOutputs(
|
|
263208
|
-
|
|
263209
|
-
output: {
|
|
263210
|
-
|
|
263211
|
-
|
|
263212
|
-
|
|
263213
|
-
|
|
263214
|
-
|
|
263215
|
-
|
|
263216
|
-
|
|
263217
|
-
|
|
263218
|
-
|
|
264292
|
+
function buildHitlOutputs() {
|
|
264293
|
+
return {
|
|
264294
|
+
output: {
|
|
264295
|
+
type: "object",
|
|
264296
|
+
source: "=result",
|
|
264297
|
+
var: "output",
|
|
264298
|
+
description: "Task result data"
|
|
264299
|
+
},
|
|
264300
|
+
status: {
|
|
264301
|
+
type: "string",
|
|
264302
|
+
source: "=result.Action",
|
|
264303
|
+
var: "status",
|
|
264304
|
+
description: "Task completion outcome"
|
|
263219
264305
|
}
|
|
263220
|
-
|
|
263221
|
-
if (!varName || RESERVED.has(varName))
|
|
263222
|
-
continue;
|
|
263223
|
-
if (validateIdentifier(varName, []))
|
|
263224
|
-
continue;
|
|
263225
|
-
outputs[varName] = {
|
|
263226
|
-
type: typeToVariableType(field.type ?? "string"),
|
|
263227
|
-
source: `=result.${field.id}`,
|
|
263228
|
-
var: varName,
|
|
263229
|
-
custom: true
|
|
263230
|
-
};
|
|
263231
|
-
}
|
|
263232
|
-
return outputs;
|
|
264306
|
+
};
|
|
263233
264307
|
}
|
|
263234
264308
|
function buildAssignee(assignee) {
|
|
263235
264309
|
return {
|
|
@@ -263246,7 +264320,6 @@ async function addHitlNode(filePath, options) {
|
|
|
263246
264320
|
const manifest = buildHitlManifest(displayLabel);
|
|
263247
264321
|
const node2 = addNode(workflow, manifest, id2, options.position ?? { x: 0, y: 0 }, displayLabel);
|
|
263248
264322
|
const runtimeSchema = toRuntimeSchema(options.schema ?? {});
|
|
263249
|
-
materializeHitlOutputVariables(workflow, options.schema ?? {});
|
|
263250
264323
|
node2.inputs = {
|
|
263251
264324
|
...node2.inputs,
|
|
263252
264325
|
type: "quick",
|
|
@@ -263259,16 +264332,16 @@ async function addHitlNode(filePath, options) {
|
|
|
263259
264332
|
},
|
|
263260
264333
|
priority: options.priority ?? "Low"
|
|
263261
264334
|
};
|
|
263262
|
-
node2.outputs = buildHitlOutputs(
|
|
264335
|
+
node2.outputs = buildHitlOutputs();
|
|
263263
264336
|
await writeWorkflow(filePath, workflow);
|
|
263264
264337
|
return {
|
|
263265
264338
|
nodeId: id2,
|
|
263266
|
-
nodeType: "uipath.human-in-the-loop",
|
|
264339
|
+
nodeType: "uipath.human-in-the-loop.quick-form",
|
|
263267
264340
|
label: displayLabel,
|
|
263268
264341
|
definitionAdded: (workflow.definitions ?? []).length > definitionsBefore
|
|
263269
264342
|
};
|
|
263270
264343
|
}
|
|
263271
|
-
var HITL_HANDLES
|
|
264344
|
+
var HITL_HANDLES;
|
|
263272
264345
|
var init_hitl_service = __esm(() => {
|
|
263273
264346
|
init_dist8();
|
|
263274
264347
|
HITL_HANDLES = [
|
|
@@ -263302,7 +264375,6 @@ var init_hitl_service = __esm(() => {
|
|
|
263302
264375
|
visible: true
|
|
263303
264376
|
}
|
|
263304
264377
|
];
|
|
263305
|
-
PLACEHOLDER_RE = /^field_\d+$/;
|
|
263306
264378
|
});
|
|
263307
264379
|
|
|
263308
264380
|
// ../flow-tool/src/commands/hitl.ts
|
|
@@ -263970,6 +265042,74 @@ var init_job = __esm(() => {
|
|
|
263970
265042
|
];
|
|
263971
265043
|
});
|
|
263972
265044
|
|
|
265045
|
+
// ../flow-tool/src/services/flow-migration-check.ts
|
|
265046
|
+
function captureMigrationIssues() {
|
|
265047
|
+
const paths = [];
|
|
265048
|
+
const tracker = {
|
|
265049
|
+
trackError: (_error, _severity, details) => {
|
|
265050
|
+
if (!("issues" in details))
|
|
265051
|
+
return;
|
|
265052
|
+
const issues = details.issues;
|
|
265053
|
+
if (!Array.isArray(issues))
|
|
265054
|
+
return;
|
|
265055
|
+
for (const issue6 of issues) {
|
|
265056
|
+
if (!issue6 || typeof issue6 !== "object")
|
|
265057
|
+
continue;
|
|
265058
|
+
if (!("path" in issue6))
|
|
265059
|
+
continue;
|
|
265060
|
+
const path4 = issue6.path;
|
|
265061
|
+
if (Array.isArray(path4) && path4.length > 0) {
|
|
265062
|
+
paths.push(path4.map(String).join("."));
|
|
265063
|
+
}
|
|
265064
|
+
}
|
|
265065
|
+
}
|
|
265066
|
+
};
|
|
265067
|
+
return { tracker, fieldPaths: () => [...new Set(paths)] };
|
|
265068
|
+
}
|
|
265069
|
+
function formatMigrationFailureMessage(step, rawMessage, fieldPaths) {
|
|
265070
|
+
const parts = [`Workflow migration failed at ${step}: ${rawMessage}.`];
|
|
265071
|
+
if (fieldPaths.length > 0) {
|
|
265072
|
+
const shown = fieldPaths.slice(0, 10);
|
|
265073
|
+
const extra = fieldPaths.length > shown.length ? `, +${fieldPaths.length - shown.length} more` : "";
|
|
265074
|
+
parts.push(`Offending field(s): ${shown.join(", ")}${extra}.`);
|
|
265075
|
+
}
|
|
265076
|
+
parts.push("Fix the flagged field(s) or re-scaffold the affected node, then re-run.");
|
|
265077
|
+
return parts.join(" ");
|
|
265078
|
+
}
|
|
265079
|
+
function checkForwardMigration(rawWorkflow) {
|
|
265080
|
+
const { tracker, fieldPaths } = captureMigrationIssues();
|
|
265081
|
+
let result;
|
|
265082
|
+
try {
|
|
265083
|
+
result = migrateWorkflow(migrations40, rawWorkflow, currentVersion9, tracker);
|
|
265084
|
+
} catch {
|
|
265085
|
+
return { ok: true };
|
|
265086
|
+
}
|
|
265087
|
+
if (!result.error)
|
|
265088
|
+
return { ok: true };
|
|
265089
|
+
const paths = fieldPaths();
|
|
265090
|
+
return {
|
|
265091
|
+
ok: false,
|
|
265092
|
+
step: result.error.step,
|
|
265093
|
+
rawMessage: result.error.message,
|
|
265094
|
+
message: formatMigrationFailureMessage(result.error.step, result.error.message, paths),
|
|
265095
|
+
fieldPaths: paths
|
|
265096
|
+
};
|
|
265097
|
+
}
|
|
265098
|
+
var init_flow_migration_check = __esm(() => {
|
|
265099
|
+
init_dist13();
|
|
265100
|
+
init_i18next();
|
|
265101
|
+
if (!instance.isInitialized) {
|
|
265102
|
+
instance.init({
|
|
265103
|
+
lng: "en",
|
|
265104
|
+
fallbackLng: "en",
|
|
265105
|
+
defaultNS: "validation",
|
|
265106
|
+
resources: {},
|
|
265107
|
+
interpolation: { escapeValue: false }
|
|
265108
|
+
});
|
|
265109
|
+
}
|
|
265110
|
+
registerFlowMigrationsI18n(instance);
|
|
265111
|
+
});
|
|
265112
|
+
|
|
263973
265113
|
// ../flow-tool/src/services/flow-migrate-service.ts
|
|
263974
265114
|
var buildNodeMigrationRegistry = () => {
|
|
263975
265115
|
const registry7 = {};
|
|
@@ -263984,7 +265124,11 @@ var buildNodeMigrationRegistry = () => {
|
|
|
263984
265124
|
const raw = await fs9.readFile(filePath, "utf-8");
|
|
263985
265125
|
const workflow = JSON.parse(raw);
|
|
263986
265126
|
const fromVersion = String(workflow.version ?? "");
|
|
263987
|
-
const
|
|
265127
|
+
const { tracker, fieldPaths } = captureMigrationIssues();
|
|
265128
|
+
const wfResult = migrateWorkflow(migrations40, workflow, currentVersion9, tracker);
|
|
265129
|
+
if (wfResult.error) {
|
|
265130
|
+
throw new Error(formatMigrationFailureMessage(wfResult.error.step, wfResult.error.message, fieldPaths()));
|
|
265131
|
+
}
|
|
263988
265132
|
const migrated = wfResult.migrated ? wfResult.workflow : workflow;
|
|
263989
265133
|
const workflowSteps = wfResult.steps.map((s2) => `${s2.from} -> ${s2.to}`);
|
|
263990
265134
|
const registry7 = buildNodeMigrationRegistry();
|
|
@@ -264021,6 +265165,7 @@ var init_flow_migrate_service = __esm(() => {
|
|
|
264021
265165
|
init_src();
|
|
264022
265166
|
init_manifest();
|
|
264023
265167
|
init_dist13();
|
|
265168
|
+
init_flow_migration_check();
|
|
264024
265169
|
});
|
|
264025
265170
|
|
|
264026
265171
|
// ../flow-tool/src/commands/migrate.ts
|
|
@@ -264532,6 +265677,36 @@ function patchOutputTypeToFile(definitions, nodeType) {
|
|
|
264532
265677
|
def.outputDefinition.output.type = "file";
|
|
264533
265678
|
}
|
|
264534
265679
|
}
|
|
265680
|
+
function buildAgentToolParamsFromMetadata(metadata, method) {
|
|
265681
|
+
const fieldsRaw = metadata.fields ?? {};
|
|
265682
|
+
const fields = Array.isArray(fieldsRaw) ? fieldsRaw : Object.values(fieldsRaw);
|
|
265683
|
+
const httpMethod = normalizeHttpMethod(method);
|
|
265684
|
+
const methodMap = metadata.metadata?.method ?? {};
|
|
265685
|
+
const methodInfo = methodMap[method] ?? Object.values(methodMap).find((m2) => m2.method === httpMethod);
|
|
265686
|
+
const prompt = (f2) => `{{prompt: "${f2.description || f2.displayName || f2.name}"}}`;
|
|
265687
|
+
const bodyParameters = {};
|
|
265688
|
+
for (const field of fields) {
|
|
265689
|
+
const fm = field.method?.[method] ?? field.method?.[httpMethod];
|
|
265690
|
+
if (!fm || !fm.request && !fm.requestCurated)
|
|
265691
|
+
continue;
|
|
265692
|
+
const enumArr = field.enum && Array.isArray(field.enum) ? field.enum : [];
|
|
265693
|
+
if (enumArr.length === 1) {
|
|
265694
|
+
const only = enumArr[0];
|
|
265695
|
+
bodyParameters[field.name] = typeof only === "string" ? only : only.value ?? only.name;
|
|
265696
|
+
} else {
|
|
265697
|
+
bodyParameters[field.name] = prompt(field);
|
|
265698
|
+
}
|
|
265699
|
+
}
|
|
265700
|
+
const queryParameters = {};
|
|
265701
|
+
const pathParameters = {};
|
|
265702
|
+
for (const param of methodInfo?.parameters ?? []) {
|
|
265703
|
+
if (param.type !== "query" && param.type !== "path")
|
|
265704
|
+
continue;
|
|
265705
|
+
const value = param.defaultValue != null && param.defaultValue !== "" ? param.defaultValue : prompt(param);
|
|
265706
|
+
(param.type === "query" ? queryParameters : pathParameters)[param.name] = value;
|
|
265707
|
+
}
|
|
265708
|
+
return { bodyParameters, queryParameters, pathParameters };
|
|
265709
|
+
}
|
|
264535
265710
|
async function configureActivity(workflow, node2, config5) {
|
|
264536
265711
|
const definitions = workflow.definitions ?? [];
|
|
264537
265712
|
const context = getModelContext(node2, definitions);
|
|
@@ -264599,7 +265774,17 @@ async function configureActivity(workflow, node2, config5) {
|
|
|
264599
265774
|
[filterInputName]: result.ceqlExpression
|
|
264600
265775
|
};
|
|
264601
265776
|
}
|
|
264602
|
-
|
|
265777
|
+
const configObj = buildActivityEssentialConfiguration(resolvedInstanceParameters, methodInfo, savedFilterTrees, config5.customFieldsRequestDetails ?? null);
|
|
265778
|
+
if ((node2.type ?? "").startsWith("uipath.agent.resource.tool.connector.")) {
|
|
265779
|
+
const { bodyParameters, queryParameters, pathParameters } = buildAgentToolParamsFromMetadata(metadata, config5.method);
|
|
265780
|
+
if (!detail.bodyParameters && Object.keys(bodyParameters).length > 0)
|
|
265781
|
+
detail.bodyParameters = bodyParameters;
|
|
265782
|
+
if (!detail.queryParameters && Object.keys(queryParameters).length > 0)
|
|
265783
|
+
detail.queryParameters = queryParameters;
|
|
265784
|
+
if (!detail.pathParameters && Object.keys(pathParameters).length > 0)
|
|
265785
|
+
detail.pathParameters = pathParameters;
|
|
265786
|
+
}
|
|
265787
|
+
detail.configuration = `=jsonString:${JSON.stringify(configObj)}`;
|
|
264603
265788
|
const params = methodInfo.parameters ?? [];
|
|
264604
265789
|
const rawMultipartParams = extractMultipartParameters(params);
|
|
264605
265790
|
const { multipartParams, bodyParameters: cleanedBodyParameters } = inlineMultipartFileValues(rawMultipartParams, detail.bodyParameters);
|
|
@@ -264731,7 +265916,7 @@ async function configureConnectorNode(filePath, nodeId, rawDetail) {
|
|
|
264731
265916
|
detailPopulated: true
|
|
264732
265917
|
};
|
|
264733
265918
|
}
|
|
264734
|
-
if (!nodeType.startsWith("uipath.connector")) {
|
|
265919
|
+
if (!nodeType.startsWith("uipath.connector") && !nodeType.startsWith("uipath.agent.resource.tool.connector.")) {
|
|
264735
265920
|
throw new Error(`Node '${nodeId}' is not a connector type node, no operation done.`);
|
|
264736
265921
|
}
|
|
264737
265922
|
if (isEventDrivenConnectorType(nodeType)) {
|
|
@@ -265187,6 +266372,7 @@ __export(exports_node, {
|
|
|
265187
266372
|
ProjectPackager: () => ProjectPackager,
|
|
265188
266373
|
ProjectPackOptions: () => ProjectPackOptions,
|
|
265189
266374
|
ProjectLoader: () => ProjectLoader,
|
|
266375
|
+
ProjectCleanupOptions: () => ProjectCleanupOptions,
|
|
265190
266376
|
ProjectBuildOptionsValidator: () => ProjectBuildOptionsValidator,
|
|
265191
266377
|
ProjectBuildOptions: () => ProjectBuildOptions,
|
|
265192
266378
|
PackagerParametersValidator: () => PackagerParametersValidator,
|
|
@@ -265678,18 +266864,18 @@ function getOutputFormat2() {
|
|
|
265678
266864
|
function getOutputFilter2() {
|
|
265679
266865
|
return filterSlot2.get();
|
|
265680
266866
|
}
|
|
265681
|
-
function
|
|
266867
|
+
function isRecord6(value) {
|
|
265682
266868
|
return value !== null && typeof value === "object";
|
|
265683
266869
|
}
|
|
265684
266870
|
function stringField2(value, field) {
|
|
265685
|
-
if (!
|
|
266871
|
+
if (!isRecord6(value)) {
|
|
265686
266872
|
return;
|
|
265687
266873
|
}
|
|
265688
266874
|
const raw = value[field];
|
|
265689
266875
|
return typeof raw === "string" ? raw : undefined;
|
|
265690
266876
|
}
|
|
265691
266877
|
function numberField2(value, field) {
|
|
265692
|
-
if (!
|
|
266878
|
+
if (!isRecord6(value)) {
|
|
265693
266879
|
return;
|
|
265694
266880
|
}
|
|
265695
266881
|
const raw = value[field];
|
|
@@ -265721,7 +266907,7 @@ function isCancellationError2(error95, exitCode, pollSignal) {
|
|
|
265721
266907
|
if (exitCode === 130) {
|
|
265722
266908
|
return true;
|
|
265723
266909
|
}
|
|
265724
|
-
if (!
|
|
266910
|
+
if (!isRecord6(error95)) {
|
|
265725
266911
|
return false;
|
|
265726
266912
|
}
|
|
265727
266913
|
if (numberField2(error95, "exitCode") === 130) {
|
|
@@ -266702,32 +267888,6 @@ function exitCodeFromProcess2(fallback) {
|
|
|
266702
267888
|
function isPreviewBuild2() {
|
|
266703
267889
|
return previewSlot2.get(false) ?? false;
|
|
266704
267890
|
}
|
|
266705
|
-
function splitUserAgentTokens2(value) {
|
|
266706
|
-
return value?.trim().split(/\s+/).filter(Boolean) ?? [];
|
|
266707
|
-
}
|
|
266708
|
-
function appendUserAgentToken2(value, userAgent) {
|
|
266709
|
-
const tokens = splitUserAgentTokens2(value);
|
|
266710
|
-
const seen = new Set(tokens);
|
|
266711
|
-
for (const token of splitUserAgentTokens2(userAgent)) {
|
|
266712
|
-
if (!seen.has(token)) {
|
|
266713
|
-
tokens.push(token);
|
|
266714
|
-
seen.add(token);
|
|
266715
|
-
}
|
|
266716
|
-
}
|
|
266717
|
-
return tokens.join(" ");
|
|
266718
|
-
}
|
|
266719
|
-
function getEffectiveUserAgent2(userAgent) {
|
|
266720
|
-
return appendUserAgentToken2(sdkUserAgentHostToken2.get(), userAgent);
|
|
266721
|
-
}
|
|
266722
|
-
function getHeaderName2(headers, headerName) {
|
|
266723
|
-
return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
|
|
266724
|
-
}
|
|
266725
|
-
function addSdkUserAgentHeader2(headers, userAgent) {
|
|
266726
|
-
const result = { ...headers ?? {} };
|
|
266727
|
-
const headerName = getHeaderName2(result, USER_AGENT_HEADER2);
|
|
266728
|
-
result[headerName ?? USER_AGENT_HEADER2] = appendUserAgentToken2(headerName ? result[headerName] : undefined, getEffectiveUserAgent2(userAgent));
|
|
266729
|
-
return result;
|
|
266730
|
-
}
|
|
266731
267891
|
|
|
266732
267892
|
class ConsoleTelemetryProvider2 {
|
|
266733
267893
|
async trackEvent(eventName, _properties) {
|
|
@@ -266847,6 +268007,7 @@ class BaseNodePackagerFactory {
|
|
|
266847
268007
|
class PackagerParameters {
|
|
266848
268008
|
inputPath;
|
|
266849
268009
|
downloadUrl;
|
|
268010
|
+
projectId;
|
|
266850
268011
|
logLevel = LogLevel2.Warn;
|
|
266851
268012
|
outputPath;
|
|
266852
268013
|
targetFramework;
|
|
@@ -267186,6 +268347,7 @@ class PackagerParametersValidator {
|
|
|
267186
268347
|
class ProjectLoader {
|
|
267187
268348
|
fileSystem;
|
|
267188
268349
|
static WebAppManifestFileName = "webAppManifest.json";
|
|
268350
|
+
static ProjectJsonFileName = "project.json";
|
|
267189
268351
|
constructor(fileSystem) {
|
|
267190
268352
|
this.fileSystem = fileSystem;
|
|
267191
268353
|
}
|
|
@@ -267198,6 +268360,10 @@ class ProjectLoader {
|
|
|
267198
268360
|
if (projectFileExists) {
|
|
267199
268361
|
return await this.loadFromProjectFile(projectPath, projectFilePath);
|
|
267200
268362
|
}
|
|
268363
|
+
const projectJsonPath = Path2.join(projectPath, ProjectLoader.ProjectJsonFileName);
|
|
268364
|
+
if (await this.fileSystem.exists(projectJsonPath)) {
|
|
268365
|
+
return await this.loadFromProjectFile(projectPath, projectJsonPath, true);
|
|
268366
|
+
}
|
|
267201
268367
|
const webAppManifestPath = Path2.join(projectPath, ProjectLoader.WebAppManifestFileName);
|
|
267202
268368
|
const webAppManifestExists = await this.fileSystem.exists(webAppManifestPath);
|
|
267203
268369
|
if (webAppManifestExists) {
|
|
@@ -267205,11 +268371,12 @@ class ProjectLoader {
|
|
|
267205
268371
|
}
|
|
267206
268372
|
throw new Error(translate2.t("solutionpackager.projectLoader.errors.noProjectFile", {
|
|
267207
268373
|
projectFile: ProjectTool2.ProjectFileName,
|
|
268374
|
+
projectJsonFile: ProjectLoader.ProjectJsonFileName,
|
|
267208
268375
|
manifestFile: ProjectLoader.WebAppManifestFileName,
|
|
267209
268376
|
path: projectPath
|
|
267210
268377
|
}));
|
|
267211
268378
|
}
|
|
267212
|
-
async loadFromProjectFile(projectPath, projectFilePath) {
|
|
268379
|
+
async loadFromProjectFile(projectPath, projectFilePath, useProjectJson = false) {
|
|
267213
268380
|
const fileContent = await this.fileSystem.readFile(projectFilePath);
|
|
267214
268381
|
if (!fileContent) {
|
|
267215
268382
|
throw new Error(translate2.t("solutionpackager.projectLoader.errors.readFailed", {
|
|
@@ -267218,7 +268385,8 @@ class ProjectLoader {
|
|
|
267218
268385
|
}
|
|
267219
268386
|
const json5 = typeof fileContent === "string" ? fileContent : new TextDecoder("utf-8").decode(fileContent);
|
|
267220
268387
|
const projectData = JSON.parse(json5);
|
|
267221
|
-
const
|
|
268388
|
+
const outputType = useProjectJson ? projectData.designOptions?.outputType : undefined;
|
|
268389
|
+
const projectType = outputType ?? (projectData?.ProjectType || projectData?.type);
|
|
267222
268390
|
if (!projectData || !projectType) {
|
|
267223
268391
|
throw new Error(translate2.t("solutionpackager.projectLoader.errors.invalidProject", {
|
|
267224
268392
|
path: projectFilePath
|
|
@@ -267311,6 +268479,12 @@ class ProjectToolExecutor {
|
|
|
267311
268479
|
projectType: project.Type
|
|
267312
268480
|
}));
|
|
267313
268481
|
}
|
|
268482
|
+
async cleanupAsync(options, project, context, cancellationToken) {
|
|
268483
|
+
return await this.executeToolOperationAsync(project, context, (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Cleanup", project.Type, async () => tool.cleanupAsync(options, cancellationToken), {
|
|
268484
|
+
projectId: project.Id,
|
|
268485
|
+
projectType: project.Type
|
|
268486
|
+
}));
|
|
268487
|
+
}
|
|
267314
268488
|
async executeToolOperationAsync(project, context, operation) {
|
|
267315
268489
|
try {
|
|
267316
268490
|
const tool = await this.toolsFactory.createProjectToolAsync(project, context);
|
|
@@ -267421,7 +268595,8 @@ class ProjectPackager {
|
|
|
267421
268595
|
logLevel: options.logLevel,
|
|
267422
268596
|
outputPath: options.outputPath
|
|
267423
268597
|
};
|
|
267424
|
-
|
|
268598
|
+
const context = this.createOperationContext(options, uiPathProject);
|
|
268599
|
+
return await this.projectExecutor.restoreAsync(restoreOptions, uiPathProject, context, cancellationToken);
|
|
267425
268600
|
}, cancellationToken);
|
|
267426
268601
|
}
|
|
267427
268602
|
async validateProjectAsync(options, cancellationToken) {
|
|
@@ -267519,6 +268694,20 @@ class ProjectPackager {
|
|
|
267519
268694
|
}
|
|
267520
268695
|
});
|
|
267521
268696
|
}
|
|
268697
|
+
async cleanupProjectAsync(options, cancellationToken) {
|
|
268698
|
+
return await this.executeProjectOperationAsync(options, "Cleanup", "ProjectPackager.Cleanup", async (uiPathProject, loadedProject) => {
|
|
268699
|
+
const cleanupOptions = {
|
|
268700
|
+
projectPath: loadedProject.projectPath,
|
|
268701
|
+
excludeConfiguredSources: options.excludeConfiguredSources ?? false,
|
|
268702
|
+
nuGetSourcesConfigPath: options.nuGetSourcesConfigPath,
|
|
268703
|
+
logLevel: options.logLevel,
|
|
268704
|
+
dryRun: options.dryRun ?? false,
|
|
268705
|
+
skipImports: options.skipImports ?? false
|
|
268706
|
+
};
|
|
268707
|
+
const context = this.createOperationContext(options, uiPathProject);
|
|
268708
|
+
return await this.projectExecutor.cleanupAsync(cleanupOptions, uiPathProject, context, cancellationToken);
|
|
268709
|
+
}, cancellationToken);
|
|
268710
|
+
}
|
|
267522
268711
|
async getPackageStreamsAsync(result) {
|
|
267523
268712
|
if (!result.isSuccess) {
|
|
267524
268713
|
throw new Error(translate2.t("solutionpackager.packager.errors.failedToGetStreams", {
|
|
@@ -267573,6 +268762,7 @@ class ProjectPackager {
|
|
|
267573
268762
|
id: crypto.randomUUID(),
|
|
267574
268763
|
projects: [uiPathProject],
|
|
267575
268764
|
downloadUrl: options.downloadUrl,
|
|
268765
|
+
projectId: options.projectId,
|
|
267576
268766
|
targetFramework: options.targetFramework ?? TargetFramework3.Portable,
|
|
267577
268767
|
connection: options.connection,
|
|
267578
268768
|
logger: this.logger,
|
|
@@ -267752,6 +268942,58 @@ class NugetFeedPublisher {
|
|
|
267752
268942
|
}
|
|
267753
268943
|
}
|
|
267754
268944
|
}
|
|
268945
|
+
function singleton22(ctorOrName) {
|
|
268946
|
+
const name3 = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
|
|
268947
|
+
const key = Symbol.for(PREFIX22 + name3);
|
|
268948
|
+
return {
|
|
268949
|
+
get(fallback) {
|
|
268950
|
+
return _g22[key] ?? fallback;
|
|
268951
|
+
},
|
|
268952
|
+
set(value) {
|
|
268953
|
+
_g22[key] = value;
|
|
268954
|
+
},
|
|
268955
|
+
clear() {
|
|
268956
|
+
delete _g22[key];
|
|
268957
|
+
},
|
|
268958
|
+
getOrInit(factory, guard) {
|
|
268959
|
+
const existing = _g22[key];
|
|
268960
|
+
if (existing != null && typeof existing === "object") {
|
|
268961
|
+
if (!guard || guard(existing)) {
|
|
268962
|
+
return existing;
|
|
268963
|
+
}
|
|
268964
|
+
}
|
|
268965
|
+
const instance3 = factory();
|
|
268966
|
+
_g22[key] = instance3;
|
|
268967
|
+
return instance3;
|
|
268968
|
+
}
|
|
268969
|
+
};
|
|
268970
|
+
}
|
|
268971
|
+
function splitUserAgentTokens2(value) {
|
|
268972
|
+
return value?.trim().split(/\s+/).filter(Boolean) ?? [];
|
|
268973
|
+
}
|
|
268974
|
+
function appendUserAgentToken2(value, userAgent) {
|
|
268975
|
+
const tokens = splitUserAgentTokens2(value);
|
|
268976
|
+
const seen = new Set(tokens);
|
|
268977
|
+
for (const token of splitUserAgentTokens2(userAgent)) {
|
|
268978
|
+
if (!seen.has(token)) {
|
|
268979
|
+
tokens.push(token);
|
|
268980
|
+
seen.add(token);
|
|
268981
|
+
}
|
|
268982
|
+
}
|
|
268983
|
+
return tokens.join(" ");
|
|
268984
|
+
}
|
|
268985
|
+
function getEffectiveUserAgent2(userAgent) {
|
|
268986
|
+
return appendUserAgentToken2(sdkUserAgentHostToken22.get(), userAgent);
|
|
268987
|
+
}
|
|
268988
|
+
function getHeaderName2(headers, headerName) {
|
|
268989
|
+
return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
|
|
268990
|
+
}
|
|
268991
|
+
function addSdkUserAgentHeader2(headers, userAgent) {
|
|
268992
|
+
const result = { ...headers ?? {} };
|
|
268993
|
+
const headerName = getHeaderName2(result, USER_AGENT_HEADER2);
|
|
268994
|
+
result[headerName ?? USER_AGENT_HEADER2] = appendUserAgentToken2(headerName ? result[headerName] : undefined, getEffectiveUserAgent2(userAgent));
|
|
268995
|
+
return result;
|
|
268996
|
+
}
|
|
267755
268997
|
|
|
267756
268998
|
class OrchestratorFeedsService {
|
|
267757
268999
|
logger;
|
|
@@ -270212,7 +271454,7 @@ var de_default10, en4, es_default10, es_MX_default6, fr_default10, ja_default10,
|
|
|
270212
271454
|
}, __toESM22 = (mod22, isNodeMode, target) => (target = mod22 != null ? __create22(__getProtoOf22(mod22)) : {}, __copyProps2(isNodeMode || !mod22 || !mod22.__esModule ? __defProp22(target, "default", {
|
|
270213
271455
|
value: mod22,
|
|
270214
271456
|
enumerable: true
|
|
270215
|
-
}) : target, mod22)), require_common2, require_exception2, require_snippet2, require_type2, require_schema2, require_str2, require_seq2, require_map3, require_failsafe2, require_null2, require_bool2, require_int2, require_float2, require_json2, require_core4, require_timestamp2, require_merge3, require_binary2, require_omap2, require_pairs3, require_set2, require_default2, require_loader2, require_dumper2, import_js_yaml2, Type2, Schema2, FAILSAFE_SCHEMA2, JSON_SCHEMA2, CORE_SCHEMA2, DEFAULT_SCHEMA2, load2, loadAll2, dump2, YAMLException2, types4, safeLoad2, safeLoadAll2, safeDump2, index_vite_proxy_tmp_default2, logFilePathSlot2, LogLevel3, DEFAULT_LOG_LEVEL2 = 3, SimpleLogger2, loggerSingleton2, logger3, formatSlot2, formatExplicitSlot2, filterSlot2, recordedFailureSlot2, AUTH_ERROR_CODES2, VALIDATION_ERROR_CODES2, NETWORK_HTTP_ERROR_CODES2, TIMEOUT_ERROR_CODES2, NETWORK_OS_ERROR_CODES2, TIMEOUT_OS_ERROR_CODES2, TLS_ERROR_CODES22, MISSING_DEPENDENCY_CODES2, INTERNAL_ERROR_NAMES2, CommonTelemetryEvents2, KNOWN_AGENTS2, LOCAL_HOSTS2, authSignalSlot2, isTruthy2 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual2 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES2, TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY2 = "session_id", telemetrySessionIdSlot2, telemetryPropsSlot2, providerSlot2, telemetryInstanceSlot2, DEFAULT_AI_CONNECTION_STRING2, _localTelemetryInstance2, telemetry2, CLI_ERROR_CODES2, RETRY_HINTS2, RESULTS2, EXIT_CODES2, FilterEvaluationError2, OutputFormatter2, LEGACY_SKILL_NAMESPACE2 = "uipath:", MAX_SKILL_NAME_LENGTH2 = 80, SKILL_NAME_PATTERN2, SKILL_ATTRIBUTION2, KNOWN_SKILL_NAMES2, COMMAND_ATTRIBUTION2, REDACTED2 = "[REDACTED]", MAX_VALUE_LENGTH2 = 200, SENSITIVE_NAME_TOKENS2, SENSITIVE_KEY_PREFIXES2, UUID_PATTERN3, EMAIL_PATTERN2, JWT_PATTERN2, LONG_TOKEN_PATTERN2, USER_HOME_PATTERN2, URL_PATTERN2, URL_TRAILING_PUNCT2, pollSignalSlot2, cliErrorCodeValues2, retryHintValues2, guardInstalledSlot2, savedOriginalsSlot2, DEFAULT_AUTH_TIMEOUT_MS3, modeSlot2, PollOutcome2, REASON_BY_OUTCOME2, TERMINAL_STATUSES2, FAILURE_STATUSES2, previewSlot2, ScreenLogger2,
|
|
271457
|
+
}) : target, mod22)), require_common2, require_exception2, require_snippet2, require_type2, require_schema2, require_str2, require_seq2, require_map3, require_failsafe2, require_null2, require_bool2, require_int2, require_float2, require_json2, require_core4, require_timestamp2, require_merge3, require_binary2, require_omap2, require_pairs3, require_set2, require_default2, require_loader2, require_dumper2, import_js_yaml2, Type2, Schema2, FAILSAFE_SCHEMA2, JSON_SCHEMA2, CORE_SCHEMA2, DEFAULT_SCHEMA2, load2, loadAll2, dump2, YAMLException2, types4, safeLoad2, safeLoadAll2, safeDump2, index_vite_proxy_tmp_default2, logFilePathSlot2, LogLevel3, DEFAULT_LOG_LEVEL2 = 3, SimpleLogger2, loggerSingleton2, logger3, formatSlot2, formatExplicitSlot2, helpRequestedSlot2, filterSlot2, recordedFailureSlot2, AUTH_ERROR_CODES2, VALIDATION_ERROR_CODES2, NETWORK_HTTP_ERROR_CODES2, TIMEOUT_ERROR_CODES2, NETWORK_OS_ERROR_CODES2, TIMEOUT_OS_ERROR_CODES2, TLS_ERROR_CODES22, MISSING_DEPENDENCY_CODES2, INTERNAL_ERROR_NAMES2, CommonTelemetryEvents2, KNOWN_AGENTS2, LOCAL_HOSTS2, authSignalSlot2, isTruthy2 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual2 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES2, TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY2 = "session_id", telemetrySessionIdSlot2, telemetryPropsSlot2, providerSlot2, telemetryInstanceSlot2, DEFAULT_AI_CONNECTION_STRING2, _localTelemetryInstance2, telemetry2, CLI_ERROR_CODES2, RETRY_HINTS2, RESULTS2, EXIT_CODES2, FilterEvaluationError2, OutputFormatter2, LEGACY_SKILL_NAMESPACE2 = "uipath:", MAX_SKILL_NAME_LENGTH2 = 80, SKILL_NAME_PATTERN2, SKILL_ATTRIBUTION2, KNOWN_SKILL_NAMES2, COMMAND_ATTRIBUTION2, REDACTED2 = "[REDACTED]", MAX_VALUE_LENGTH2 = 200, SENSITIVE_NAME_TOKENS2, SENSITIVE_KEY_PREFIXES2, UUID_PATTERN3, EMAIL_PATTERN2, JWT_PATTERN2, LONG_TOKEN_PATTERN2, USER_HOME_PATTERN2, URL_PATTERN2, URL_TRAILING_PUNCT2, pollSignalSlot2, cliErrorCodeValues2, retryHintValues2, guardInstalledSlot2, savedOriginalsSlot2, DEFAULT_AUTH_TIMEOUT_MS3, modeSlot2, interactiveFlagSlot2, PollOutcome2, REASON_BY_OUTCOME2, TERMINAL_STATUSES2, FAILURE_STATUSES2, previewSlot2, ScreenLogger2, sdkUserAgentHostToken2, shippedKeysSlot2, factorySlot2, globalLogHandler = (logMessage) => {
|
|
270216
271458
|
const formattedMessage = logMessage.toFormattedString();
|
|
270217
271459
|
switch (logMessage.logLevel) {
|
|
270218
271460
|
case LogLevel2.Debug:
|
|
@@ -270228,7 +271470,7 @@ var de_default10, en4, es_default10, es_MX_default6, fr_default10, ja_default10,
|
|
|
270228
271470
|
console.error(formattedMessage);
|
|
270229
271471
|
break;
|
|
270230
271472
|
}
|
|
270231
|
-
}, RulesConfigFileType, ProjectRestoreOptions, ProjectValidateOptions, ProjectBuildOptions, ProjectPackOptions, TelemetryNames, LICENSE_TYPES, DEFAULT_PROFILE_KEY = "StudioWeb", ACQUIRE_LICENSE_PATH = "/orchestrator_/api/StudioWeb/AcquireLicense", GOVERNANCE_SUBFOLDER = "governance", GOVERNANCE_FILE_NAME = "governance-policy.json", errorMessage2 = (error95) => error95 instanceof Error ? error95.message : String(error95), t14 = (key, params) => translate2.t(`solutionpackager.governance.${key}`, params), ProjectBuildOptionsValidator, ProjectPackOptionsValidator, ProjectValidateOptionsValidator, NodeProjectPackagerFactory, PublishDestinationKind, NUGET_V3_PACKAGE_PUBLISH_TYPE = "PackagePublish/2.0.0", PackageFeedDtoPurposeEnum, PackageFeedDtoAuthenticationTypeEnum, ExtendedFolderDtoFeedTypeEnum, package_default7, HEADER_TENANT_ID = "X-UIPATH-TenantId", FEEDS_PATH = "/api/PackageFeeds/GetFeeds", FOLDERS_PATH = "/api/FoldersNavigation/GetAllFoldersForCurrentUser", SDK_USER_AGENT4, OrchestratorResponseError, HEADER_FOLDER_ID = "X-UIPATH-OrganizationUnitId", HEADER_TENANT_ID2 = "X-UIPATH-TenantId", HEADER_NUGET_API_KEY = "X-NuGet-ApiKey", ORCHESTRATOR_RELATIVE_URL = "/orchestrator_", PROCESSES_UPLOAD_PATH = "/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage", LIBRARIES_UPLOAD_PATH = "/odata/Libraries/UiPath.Server.Configuration.OData.UploadPackage", NodeProjectPublisherFactory;
|
|
271473
|
+
}, RulesConfigFileType, ProjectRestoreOptions, ProjectValidateOptions, ProjectBuildOptions, ProjectCleanupOptions, ProjectPackOptions, TelemetryNames, LICENSE_TYPES, DEFAULT_PROFILE_KEY = "StudioWeb", ACQUIRE_LICENSE_PATH = "/orchestrator_/api/StudioWeb/AcquireLicense", GOVERNANCE_SUBFOLDER = "governance", GOVERNANCE_FILE_NAME = "governance-policy.json", errorMessage2 = (error95) => error95 instanceof Error ? error95.message : String(error95), t14 = (key, params) => translate2.t(`solutionpackager.governance.${key}`, params), ProjectBuildOptionsValidator, ProjectPackOptionsValidator, ProjectValidateOptionsValidator, NodeProjectPackagerFactory, PublishDestinationKind, NUGET_V3_PACKAGE_PUBLISH_TYPE = "PackagePublish/2.0.0", PackageFeedDtoPurposeEnum, PackageFeedDtoAuthenticationTypeEnum, ExtendedFolderDtoFeedTypeEnum, PREFIX22 = "@uipath/common/", _g22, telemetryPropsSlot22, USER_AGENT_HEADER2 = "User-Agent", sdkUserAgentHostToken22, package_default7, HEADER_TENANT_ID = "X-UIPATH-TenantId", FEEDS_PATH = "/api/PackageFeeds/GetFeeds", FOLDERS_PATH = "/api/FoldersNavigation/GetAllFoldersForCurrentUser", SDK_USER_AGENT4, OrchestratorResponseError, HEADER_FOLDER_ID = "X-UIPATH-OrganizationUnitId", HEADER_TENANT_ID2 = "X-UIPATH-TenantId", HEADER_NUGET_API_KEY = "X-NuGet-ApiKey", ORCHESTRATOR_RELATIVE_URL = "/orchestrator_", PROCESSES_UPLOAD_PATH = "/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage", LIBRARIES_UPLOAD_PATH = "/odata/Libraries/UiPath.Server.Configuration.OData.UploadPackage", NodeProjectPublisherFactory;
|
|
270232
271474
|
var init_node4 = __esm(() => {
|
|
270233
271475
|
init_dist9();
|
|
270234
271476
|
init_dist12();
|
|
@@ -270252,7 +271494,7 @@ var init_node4 = __esm(() => {
|
|
|
270252
271494
|
projectLoader: {
|
|
270253
271495
|
errors: {
|
|
270254
271496
|
pathRequired: "Project directory path is required",
|
|
270255
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
271497
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270256
271498
|
readFailed: "Failed to read project file: {path}",
|
|
270257
271499
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270258
271500
|
}
|
|
@@ -270333,7 +271575,7 @@ var init_node4 = __esm(() => {
|
|
|
270333
271575
|
projectLoader: {
|
|
270334
271576
|
errors: {
|
|
270335
271577
|
pathRequired: "Project directory path is required",
|
|
270336
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
271578
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270337
271579
|
readFailed: "Failed to read project file: {path}",
|
|
270338
271580
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270339
271581
|
}
|
|
@@ -270414,7 +271656,7 @@ var init_node4 = __esm(() => {
|
|
|
270414
271656
|
projectLoader: {
|
|
270415
271657
|
errors: {
|
|
270416
271658
|
pathRequired: "Project directory path is required",
|
|
270417
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
271659
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270418
271660
|
readFailed: "Failed to read project file: {path}",
|
|
270419
271661
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270420
271662
|
}
|
|
@@ -270495,7 +271737,7 @@ var init_node4 = __esm(() => {
|
|
|
270495
271737
|
projectLoader: {
|
|
270496
271738
|
errors: {
|
|
270497
271739
|
pathRequired: "Project directory path is required",
|
|
270498
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
271740
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270499
271741
|
readFailed: "Failed to read project file: {path}",
|
|
270500
271742
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270501
271743
|
}
|
|
@@ -270576,7 +271818,7 @@ var init_node4 = __esm(() => {
|
|
|
270576
271818
|
projectLoader: {
|
|
270577
271819
|
errors: {
|
|
270578
271820
|
pathRequired: "Project directory path is required",
|
|
270579
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
271821
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270580
271822
|
readFailed: "Failed to read project file: {path}",
|
|
270581
271823
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270582
271824
|
}
|
|
@@ -270657,7 +271899,7 @@ var init_node4 = __esm(() => {
|
|
|
270657
271899
|
projectLoader: {
|
|
270658
271900
|
errors: {
|
|
270659
271901
|
pathRequired: "Project directory path is required",
|
|
270660
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
271902
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270661
271903
|
readFailed: "Failed to read project file: {path}",
|
|
270662
271904
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270663
271905
|
}
|
|
@@ -270738,7 +271980,7 @@ var init_node4 = __esm(() => {
|
|
|
270738
271980
|
projectLoader: {
|
|
270739
271981
|
errors: {
|
|
270740
271982
|
pathRequired: "Project directory path is required",
|
|
270741
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
271983
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270742
271984
|
readFailed: "Failed to read project file: {path}",
|
|
270743
271985
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270744
271986
|
}
|
|
@@ -270819,7 +272061,7 @@ var init_node4 = __esm(() => {
|
|
|
270819
272061
|
projectLoader: {
|
|
270820
272062
|
errors: {
|
|
270821
272063
|
pathRequired: "Project directory path is required",
|
|
270822
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272064
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270823
272065
|
readFailed: "Failed to read project file: {path}",
|
|
270824
272066
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270825
272067
|
}
|
|
@@ -270900,7 +272142,7 @@ var init_node4 = __esm(() => {
|
|
|
270900
272142
|
projectLoader: {
|
|
270901
272143
|
errors: {
|
|
270902
272144
|
pathRequired: "Project directory path is required",
|
|
270903
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272145
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270904
272146
|
readFailed: "Failed to read project file: {path}",
|
|
270905
272147
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270906
272148
|
}
|
|
@@ -270981,7 +272223,7 @@ var init_node4 = __esm(() => {
|
|
|
270981
272223
|
projectLoader: {
|
|
270982
272224
|
errors: {
|
|
270983
272225
|
pathRequired: "Project directory path is required",
|
|
270984
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272226
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
270985
272227
|
readFailed: "Failed to read project file: {path}",
|
|
270986
272228
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
270987
272229
|
}
|
|
@@ -271062,7 +272304,7 @@ var init_node4 = __esm(() => {
|
|
|
271062
272304
|
projectLoader: {
|
|
271063
272305
|
errors: {
|
|
271064
272306
|
pathRequired: "Project directory path is required",
|
|
271065
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272307
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
271066
272308
|
readFailed: "Failed to read project file: {path}",
|
|
271067
272309
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
271068
272310
|
}
|
|
@@ -271143,7 +272385,7 @@ var init_node4 = __esm(() => {
|
|
|
271143
272385
|
projectLoader: {
|
|
271144
272386
|
errors: {
|
|
271145
272387
|
pathRequired: "Project directory path is required",
|
|
271146
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272388
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
271147
272389
|
readFailed: "Failed to read project file: {path}",
|
|
271148
272390
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
271149
272391
|
}
|
|
@@ -271224,7 +272466,7 @@ var init_node4 = __esm(() => {
|
|
|
271224
272466
|
projectLoader: {
|
|
271225
272467
|
errors: {
|
|
271226
272468
|
pathRequired: "Project directory path is required",
|
|
271227
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272469
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
271228
272470
|
readFailed: "Failed to read project file: {path}",
|
|
271229
272471
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
271230
272472
|
}
|
|
@@ -271305,7 +272547,7 @@ var init_node4 = __esm(() => {
|
|
|
271305
272547
|
projectLoader: {
|
|
271306
272548
|
errors: {
|
|
271307
272549
|
pathRequired: "Project directory path is required",
|
|
271308
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272550
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
271309
272551
|
readFailed: "Failed to read project file: {path}",
|
|
271310
272552
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
271311
272553
|
}
|
|
@@ -271386,7 +272628,7 @@ var init_node4 = __esm(() => {
|
|
|
271386
272628
|
projectLoader: {
|
|
271387
272629
|
errors: {
|
|
271388
272630
|
pathRequired: "Project directory path is required",
|
|
271389
|
-
noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
|
|
272631
|
+
noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
|
|
271390
272632
|
readFailed: "Failed to read project file: {path}",
|
|
271391
272633
|
invalidProject: "Invalid project file: {path}. Missing ProjectType field."
|
|
271392
272634
|
}
|
|
@@ -276732,6 +277974,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
276732
277974
|
logger3 = SimpleLogger2.getInstance();
|
|
276733
277975
|
formatSlot2 = singleton3("OutputFormat");
|
|
276734
277976
|
formatExplicitSlot2 = singleton3("OutputFormatExplicit");
|
|
277977
|
+
helpRequestedSlot2 = singleton3("HelpRequested");
|
|
276735
277978
|
filterSlot2 = singleton3("OutputFilter");
|
|
276736
277979
|
recordedFailureSlot2 = singleton3("CommandTelemetryFailure");
|
|
276737
277980
|
AUTH_ERROR_CODES2 = new Set([
|
|
@@ -276968,6 +278211,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
276968
278211
|
if (opts?.warning) {
|
|
276969
278212
|
data.Warning = opts.warning;
|
|
276970
278213
|
}
|
|
278214
|
+
if (opts?.pagination) {
|
|
278215
|
+
data.Pagination = opts.pagination;
|
|
278216
|
+
}
|
|
276971
278217
|
success5(data);
|
|
276972
278218
|
}
|
|
276973
278219
|
OutputFormatter22.emitList = emitList;
|
|
@@ -277187,6 +278433,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
277187
278433
|
savedOriginalsSlot2 = singleton3("ConsoleGuardOriginals");
|
|
277188
278434
|
DEFAULT_AUTH_TIMEOUT_MS3 = 5 * 60 * 1000;
|
|
277189
278435
|
modeSlot2 = singleton3("InteractivityMode");
|
|
278436
|
+
interactiveFlagSlot2 = singleton3("InteractiveFlag");
|
|
277190
278437
|
PollOutcome2 = {
|
|
277191
278438
|
Completed: "completed",
|
|
277192
278439
|
Timeout: "timeout",
|
|
@@ -277251,6 +278498,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
277251
278498
|
ProjectBuildOptions = class ProjectBuildOptions extends ProjectValidateOptions {
|
|
277252
278499
|
outputType;
|
|
277253
278500
|
};
|
|
278501
|
+
ProjectCleanupOptions = class ProjectCleanupOptions extends PackagerParameters {
|
|
278502
|
+
dryRun = false;
|
|
278503
|
+
skipImports = false;
|
|
278504
|
+
};
|
|
277254
278505
|
ProjectPackOptions = class ProjectPackOptions extends ProjectBuildOptions {
|
|
277255
278506
|
destinationPath;
|
|
277256
278507
|
package;
|
|
@@ -277262,10 +278513,12 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
277262
278513
|
TelemetryNames2["ProjectToolRestore"] = "ProjectPackager.Tool.Restore";
|
|
277263
278514
|
TelemetryNames2["ProjectToolValidate"] = "ProjectPackager.Tool.Validate";
|
|
277264
278515
|
TelemetryNames2["ProjectToolBuild"] = "ProjectPackager.Tool.Build";
|
|
278516
|
+
TelemetryNames2["ProjectToolCleanup"] = "ProjectPackager.Tool.Cleanup";
|
|
277265
278517
|
TelemetryNames2["ProjectPackagerPack"] = "ProjectPackager.Pack";
|
|
277266
278518
|
TelemetryNames2["ProjectPackagerRestore"] = "ProjectPackager.Restore";
|
|
277267
278519
|
TelemetryNames2["ProjectPackagerValidate"] = "ProjectPackager.Validate";
|
|
277268
278520
|
TelemetryNames2["ProjectPackagerBuild"] = "ProjectPackager.Build";
|
|
278521
|
+
TelemetryNames2["ProjectPackagerCleanup"] = "ProjectPackager.Cleanup";
|
|
277269
278522
|
TelemetryNames2["ProjectPackagerProjectLoaded"] = "ProjectPackager.ProjectLoaded";
|
|
277270
278523
|
})(TelemetryNames ||= {});
|
|
277271
278524
|
LICENSE_TYPES = {
|
|
@@ -277339,10 +278592,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
277339
278592
|
PersonalWorkspace: "PersonalWorkspace",
|
|
277340
278593
|
FolderHierarchy: "FolderHierarchy"
|
|
277341
278594
|
};
|
|
278595
|
+
_g22 = globalThis;
|
|
278596
|
+
telemetryPropsSlot22 = singleton22("TelemetryDefaultProps");
|
|
278597
|
+
sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
|
|
277342
278598
|
package_default7 = {
|
|
277343
278599
|
name: "@uipath/project-packager",
|
|
277344
278600
|
license: "MIT",
|
|
277345
|
-
version: "1.
|
|
278601
|
+
version: "1.198.0-preview.80",
|
|
277346
278602
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
277347
278603
|
type: "module",
|
|
277348
278604
|
main: "./dist/index.js",
|
|
@@ -277558,41 +278814,21 @@ Packing flow project...
|
|
|
277558
278814
|
const packagingNodes = fileNodesToPackagingNodes(flowContent.nodes);
|
|
277559
278815
|
const startEventId = extractStartEventId(bpmn);
|
|
277560
278816
|
const projectId = flowContent.id || await ensureProjectId(projectPath, this.fs);
|
|
277561
|
-
const entryPoints = await writePackagingArtifacts(this.fs, stagingDir, projectId, packagingNodes, flowContent.bindings ?? [], flowContent.variables ?? {}, bpmnFileName, startEventId, `${safeName}.flow`, flowContent.definitions ?? []);
|
|
277562
|
-
await writeResolvedFlow(this.fs, stagingDir, safeName, flowContent);
|
|
277563
278817
|
const inlineAgents = await packageInlineAgents(this.fs, projectPath, flowContent.nodes);
|
|
277564
278818
|
if (inlineAgents.length > 0) {
|
|
277565
278819
|
logger.info(`Found ${inlineAgents.length} inline agent(s) to package`);
|
|
277566
278820
|
}
|
|
277567
|
-
|
|
277568
|
-
|
|
277569
|
-
|
|
277570
|
-
|
|
277571
|
-
|
|
277572
|
-
|
|
277573
|
-
|
|
277574
|
-
|
|
277575
|
-
|
|
277576
|
-
...agent.agentJson,
|
|
277577
|
-
resources: agent.agentJson.resources ?? [],
|
|
277578
|
-
features: agent.agentJson.features ?? []
|
|
277579
|
-
};
|
|
277580
|
-
await this.fs.writeFile(this.fs.path.join(agentBuilderDir, "agent.json"), JSON.stringify(builderAgent, null, 2));
|
|
277581
|
-
await this.fs.writeFile(this.fs.path.join(agentBuilderDir, "bindings.json"), JSON.stringify({ version: "2.0", resources: [] }, null, 2));
|
|
277582
|
-
logger.info(`Packaged inline agent "${agent.source}"`);
|
|
277583
|
-
}
|
|
278821
|
+
const packageDescriptorJson = inlineAgents.length > 0 ? generatePackageDescriptor([{ name: bpmnFileName }], [{ name: `${safeName}.flow` }], inlineAgents.map((agent) => ({
|
|
278822
|
+
name: `${agent.source}/agent.json`
|
|
278823
|
+
}))) : undefined;
|
|
278824
|
+
await writePackagingArtifactsDetailed(this.fs, stagingDir, projectId, packagingNodes, flowContent.bindings ?? [], flowContent.variables ?? {}, bpmnFileName, startEventId, `${safeName}.flow`, flowContent.definitions ?? [], {
|
|
278825
|
+
additionalEntryPoints: inlineAgents.map((agent) => agent.entryPoint),
|
|
278826
|
+
additionalBindingsJsons: inlineAgents.map((agent) => agent.bindingsJson),
|
|
278827
|
+
...packageDescriptorJson ? { packageDescriptorJson } : {}
|
|
278828
|
+
});
|
|
278829
|
+
await writeResolvedFlow(this.fs, stagingDir, safeName, flowContent);
|
|
277584
278830
|
if (inlineAgents.length > 0) {
|
|
277585
|
-
|
|
277586
|
-
...entryPoints,
|
|
277587
|
-
...inlineAgents.map((a2) => a2.entryPoint)
|
|
277588
|
-
];
|
|
277589
|
-
await this.fs.writeFile(this.fs.path.join(stagingDir, "entry-points.json"), `${JSON.stringify(generateEntryPointsJson(allEntryPoints), null, 2)}
|
|
277590
|
-
`);
|
|
277591
|
-
const agentFiles = inlineAgents.map((a2) => ({
|
|
277592
|
-
name: `${a2.source}/agent.json`
|
|
277593
|
-
}));
|
|
277594
|
-
await this.fs.writeFile(this.fs.path.join(stagingDir, "package-descriptor.json"), `${JSON.stringify(generatePackageDescriptor([{ name: bpmnFileName }], [{ name: `${safeName}.flow` }], agentFiles), null, 2)}
|
|
277595
|
-
`);
|
|
278831
|
+
await stageInlineAgentPackageFiles(this.fs, projectPath, stagingDir, inlineAgents, (source) => `Packaged inline agent "${source}"`);
|
|
277596
278832
|
const operateContent = await this.fs.readFile(this.fs.path.join(stagingDir, "operate.json"), "utf-8");
|
|
277597
278833
|
if (operateContent) {
|
|
277598
278834
|
const operateJson = JSON.parse(operateContent);
|
|
@@ -371995,6 +373231,7 @@ Validating: ${absolutePath}
|
|
|
371995
373231
|
const currentManifests = this.validateCurrentManifests ? await this.loadCurrentManifestMap() : new Map;
|
|
371996
373232
|
const flowDir = this.fs.path.dirname(absolutePath);
|
|
371997
373233
|
const hydrationDiagnoses = await this.resolveAgentPrompts(workflow.nodes, flowDir);
|
|
373234
|
+
issues.push(...this.validateForwardMigration(content));
|
|
371998
373235
|
issues.push(...this.validateGraph(workflow, "", rawDefErrorHandling, currentManifests));
|
|
371999
373236
|
issues.push(...this.validateGlobalVariableUniqueness(workflow, ""));
|
|
372000
373237
|
issues.push(...this.validateGlobalTriggerBindings(workflow, ""));
|
|
@@ -372030,6 +373267,26 @@ Validating: ${absolutePath}
|
|
|
372030
373267
|
issues
|
|
372031
373268
|
};
|
|
372032
373269
|
}
|
|
373270
|
+
validateForwardMigration(content) {
|
|
373271
|
+
let raw;
|
|
373272
|
+
try {
|
|
373273
|
+
raw = JSON.parse(content);
|
|
373274
|
+
} catch {
|
|
373275
|
+
return [];
|
|
373276
|
+
}
|
|
373277
|
+
if (!raw || typeof raw !== "object")
|
|
373278
|
+
return [];
|
|
373279
|
+
const check5 = checkForwardMigration(raw);
|
|
373280
|
+
if (check5.ok)
|
|
373281
|
+
return [];
|
|
373282
|
+
return [
|
|
373283
|
+
{
|
|
373284
|
+
path: "version",
|
|
373285
|
+
message: `[MIGRATION] ${check5.message}`,
|
|
373286
|
+
severity: "error"
|
|
373287
|
+
}
|
|
373288
|
+
];
|
|
373289
|
+
}
|
|
372033
373290
|
async resolveAgentPrompts(nodes, flowDir) {
|
|
372034
373291
|
const diagnoses = new Map;
|
|
372035
373292
|
for (const node2 of nodes) {
|
|
@@ -372816,6 +374073,7 @@ var init_flow_validate_service = __esm(() => {
|
|
|
372816
374073
|
init_i18next();
|
|
372817
374074
|
init_handle_expansion();
|
|
372818
374075
|
init_connector_binding_validator();
|
|
374076
|
+
init_flow_migration_check();
|
|
372819
374077
|
init_node_service();
|
|
372820
374078
|
init_node_validators();
|
|
372821
374079
|
if (!instance.isInitialized) {
|
|
@@ -373067,7 +374325,7 @@ var init_package6 = __esm(() => {
|
|
|
373067
374325
|
package_default8 = {
|
|
373068
374326
|
name: "@uipath/agent-sdk",
|
|
373069
374327
|
license: "MIT",
|
|
373070
|
-
version: "1.
|
|
374328
|
+
version: "1.198.0-preview.80",
|
|
373071
374329
|
description: "SDK for the UiPath Agent Runtime API — evaluation execution and debug sessions.",
|
|
373072
374330
|
repository: {
|
|
373073
374331
|
type: "git",
|
|
@@ -374663,8 +375921,15 @@ function settlePromiseLike4(thenable) {
|
|
|
374663
375921
|
]);
|
|
374664
375922
|
}
|
|
374665
375923
|
function describeConnectivityError2(error95) {
|
|
374666
|
-
|
|
374667
|
-
|
|
375924
|
+
const queue = [error95];
|
|
375925
|
+
const seen = new Set;
|
|
375926
|
+
for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
|
|
375927
|
+
const current = queue.shift();
|
|
375928
|
+
if (current === null || typeof current !== "object")
|
|
375929
|
+
continue;
|
|
375930
|
+
if (seen.has(current))
|
|
375931
|
+
continue;
|
|
375932
|
+
seen.add(current);
|
|
374668
375933
|
const cur = current;
|
|
374669
375934
|
const code = typeof cur.code === "string" ? cur.code : undefined;
|
|
374670
375935
|
const message = typeof cur.message === "string" ? cur.message : undefined;
|
|
@@ -374684,7 +375949,10 @@ function describeConnectivityError2(error95) {
|
|
|
374684
375949
|
instructions: NETWORK_INSTRUCTIONS3
|
|
374685
375950
|
};
|
|
374686
375951
|
}
|
|
374687
|
-
|
|
375952
|
+
if (cur.cause !== undefined)
|
|
375953
|
+
queue.push(cur.cause);
|
|
375954
|
+
if (Array.isArray(cur.errors))
|
|
375955
|
+
queue.push(...cur.errors);
|
|
374688
375956
|
}
|
|
374689
375957
|
return;
|
|
374690
375958
|
}
|
|
@@ -374988,18 +376256,18 @@ function getOutputFormat3() {
|
|
|
374988
376256
|
function getOutputFilter3() {
|
|
374989
376257
|
return filterSlot3.get();
|
|
374990
376258
|
}
|
|
374991
|
-
function
|
|
376259
|
+
function isRecord7(value) {
|
|
374992
376260
|
return value !== null && typeof value === "object";
|
|
374993
376261
|
}
|
|
374994
376262
|
function stringField3(value, field) {
|
|
374995
|
-
if (!
|
|
376263
|
+
if (!isRecord7(value)) {
|
|
374996
376264
|
return;
|
|
374997
376265
|
}
|
|
374998
376266
|
const raw = value[field];
|
|
374999
376267
|
return typeof raw === "string" ? raw : undefined;
|
|
375000
376268
|
}
|
|
375001
376269
|
function numberField3(value, field) {
|
|
375002
|
-
if (!
|
|
376270
|
+
if (!isRecord7(value)) {
|
|
375003
376271
|
return;
|
|
375004
376272
|
}
|
|
375005
376273
|
const raw = value[field];
|
|
@@ -375031,7 +376299,7 @@ function isCancellationError3(error95, exitCode, pollSignal) {
|
|
|
375031
376299
|
if (exitCode === 130) {
|
|
375032
376300
|
return true;
|
|
375033
376301
|
}
|
|
375034
|
-
if (!
|
|
376302
|
+
if (!isRecord7(error95)) {
|
|
375035
376303
|
return false;
|
|
375036
376304
|
}
|
|
375037
376305
|
if (numberField3(error95, "exitCode") === 130) {
|
|
@@ -392170,6 +393438,16 @@ function WebhookSpecFromJSONTyped2(json32, ignoreDiscriminator) {
|
|
|
392170
393438
|
objects: json32["objects"] == null ? undefined : json32["objects"]
|
|
392171
393439
|
};
|
|
392172
393440
|
}
|
|
393441
|
+
function baseApiClassName2(name22) {
|
|
393442
|
+
let end = name22.length;
|
|
393443
|
+
while (end > 0 && name22[end - 1] >= "0" && name22[end - 1] <= "9") {
|
|
393444
|
+
end--;
|
|
393445
|
+
}
|
|
393446
|
+
return name22.slice(0, end);
|
|
393447
|
+
}
|
|
393448
|
+
function resolveApiDomain2(ApiClass) {
|
|
393449
|
+
return API_DOMAIN_MAP2.get(ApiClass) ?? API_DOMAIN_BY_NAME2.get(baseApiClassName2(ApiClass.name));
|
|
393450
|
+
}
|
|
392173
393451
|
async function getValidatedAuthContext2(options) {
|
|
392174
393452
|
const ctx = await getAuthContext3({
|
|
392175
393453
|
tenant: options?.tenant,
|
|
@@ -392206,7 +393484,7 @@ async function createElementsConfig2(options) {
|
|
|
392206
393484
|
});
|
|
392207
393485
|
}
|
|
392208
393486
|
async function createApiClient4(ApiClass, options) {
|
|
392209
|
-
const domain32 =
|
|
393487
|
+
const domain32 = resolveApiDomain2(ApiClass);
|
|
392210
393488
|
if (!domain32) {
|
|
392211
393489
|
throw new Error(`Unknown API class: ${ApiClass.name}`);
|
|
392212
393490
|
}
|
|
@@ -393928,9 +395206,9 @@ function UserRoleDtoFromJSONTyped6(json32, ignoreDiscriminator) {
|
|
|
393928
395206
|
};
|
|
393929
395207
|
}
|
|
393930
395208
|
function FolderDtoFromJSON3(json32) {
|
|
393931
|
-
return
|
|
395209
|
+
return FolderDtoFromJSONTyped6(json32, false);
|
|
393932
395210
|
}
|
|
393933
|
-
function
|
|
395211
|
+
function FolderDtoFromJSONTyped6(json32, ignoreDiscriminator) {
|
|
393934
395212
|
if (json32 == null) {
|
|
393935
395213
|
return json32;
|
|
393936
395214
|
}
|
|
@@ -406048,7 +407326,7 @@ return {
|
|
|
406048
407326
|
}, __toESM23 = (mod22, isNodeMode, target) => (target = mod22 != null ? __create23(__getProtoOf23(mod22)) : {}, __copyProps3(isNodeMode || !mod22 || !mod22.__esModule ? __defProp23(target, "default", {
|
|
406049
407327
|
value: mod22,
|
|
406050
407328
|
enumerable: true
|
|
406051
|
-
}) : target, mod22)), require_common3, require_exception3, require_snippet3, require_type3, require_schema3, require_str3, require_seq3, require_map4, require_failsafe3, require_null3, require_bool3, require_int3, require_float3, require_json3, require_core5, require_timestamp3, require_merge4, require_binary3, require_omap3, require_pairs4, require_set3, require_default3, require_loader3, require_dumper3, import_js_yaml3, Type3, Schema3, FAILSAFE_SCHEMA3, JSON_SCHEMA3, CORE_SCHEMA3, DEFAULT_SCHEMA3, load3, loadAll3, dump3, YAMLException3, types5, safeLoad3, safeLoadAll3, safeDump3, index_vite_proxy_tmp_default3, logFilePathSlot3, DEFAULT_LOG_LEVEL3 = 3, SimpleLogger3, loggerSingleton3, logger4, formatSlot3, formatExplicitSlot3, filterSlot3, recordedFailureSlot3, AUTH_ERROR_CODES3, VALIDATION_ERROR_CODES3, NETWORK_HTTP_ERROR_CODES3, TIMEOUT_ERROR_CODES3, NETWORK_OS_ERROR_CODES3, TIMEOUT_OS_ERROR_CODES3, TLS_ERROR_CODES23, MISSING_DEPENDENCY_CODES3, INTERNAL_ERROR_NAMES3, CommonTelemetryEvents3, KNOWN_AGENTS3, LOCAL_HOSTS3, authSignalSlot3, isTruthy3 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual3 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES3, TELEMETRY_SESSION_ID_ENV3 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY3 = "session_id", telemetrySessionIdSlot3, telemetryPropsSlot3, providerSlot3, telemetryInstanceSlot3, DEFAULT_AI_CONNECTION_STRING3, _localTelemetryInstance3, telemetry3, CLI_ERROR_CODES3, RETRY_HINTS3, RESULTS3, EXIT_CODES3, FilterEvaluationError3, OutputFormatter3, LEGACY_SKILL_NAMESPACE3 = "uipath:", MAX_SKILL_NAME_LENGTH3 = 80, SKILL_NAME_PATTERN3, SKILL_ATTRIBUTION3, KNOWN_SKILL_NAMES3, COMMAND_ATTRIBUTION3, REDACTED3 = "[REDACTED]", MAX_VALUE_LENGTH3 = 200, SENSITIVE_NAME_TOKENS3, SENSITIVE_KEY_PREFIXES3, UUID_PATTERN4, EMAIL_PATTERN3, JWT_PATTERN3, LONG_TOKEN_PATTERN3, USER_HOME_PATTERN3, URL_PATTERN3, URL_TRAILING_PUNCT3, pollSignalSlot3, cliErrorCodeValues3, retryHintValues3, processContext2, guardInstalledSlot3, savedOriginalsSlot3, DEFAULT_PAGE_SIZE2 = 50, DEFAULT_AUTH_TIMEOUT_MS4, GENERIC2 = "Check authentication and parameters", modeSlot3, TENANT_SWITCH_COMMAND2 = "uip login tenant set <tenant>", PollOutcome3, REASON_BY_OUTCOME3, TERMINAL_STATUSES3, FAILURE_STATUSES3, previewSlot3, ScreenLogger3, USER_AGENT_HEADER3 = "User-Agent", sdkUserAgentHostToken3, shippedKeysSlot3, factorySlot3, VALID_TASK_ENTRY_RULE_TYPES, VALID_STAGE_ENTRY_RULE_TYPES, VALID_STAGE_COMPLETION_RULE_TYPES, VALID_STAGE_EXIT_RULE_TYPES, VALID_CASE_COMPLETION_RULE_TYPES, VALID_CASE_EXIT_RULE_TYPES, DEFAULT_TRIGGER_ID = "trigger_1", DEFAULT_TRIGGER_LABEL = "Trigger 1", ALPHANUMERIC = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", getRandomBytes = (n) => globalThis.crypto.getRandomValues(new Uint8Array(n)), CASE_EXIT_CONDITIONS_ADD_EXAMPLES, CASE_EXIT_CONDITIONS_EDIT_EXAMPLES, CASE_EXIT_CONDITIONS_GET_EXAMPLES, CASE_EXIT_CONDITIONS_REMOVE_EXAMPLES, registerCaseExitConditionsCommand = (program22) => {
|
|
407329
|
+
}) : target, mod22)), require_common3, require_exception3, require_snippet3, require_type3, require_schema3, require_str3, require_seq3, require_map4, require_failsafe3, require_null3, require_bool3, require_int3, require_float3, require_json3, require_core5, require_timestamp3, require_merge4, require_binary3, require_omap3, require_pairs4, require_set3, require_default3, require_loader3, require_dumper3, import_js_yaml3, Type3, Schema3, FAILSAFE_SCHEMA3, JSON_SCHEMA3, CORE_SCHEMA3, DEFAULT_SCHEMA3, load3, loadAll3, dump3, YAMLException3, types5, safeLoad3, safeLoadAll3, safeDump3, index_vite_proxy_tmp_default3, logFilePathSlot3, DEFAULT_LOG_LEVEL3 = 3, SimpleLogger3, loggerSingleton3, logger4, formatSlot3, formatExplicitSlot3, helpRequestedSlot3, filterSlot3, recordedFailureSlot3, AUTH_ERROR_CODES3, VALIDATION_ERROR_CODES3, NETWORK_HTTP_ERROR_CODES3, TIMEOUT_ERROR_CODES3, NETWORK_OS_ERROR_CODES3, TIMEOUT_OS_ERROR_CODES3, TLS_ERROR_CODES23, MISSING_DEPENDENCY_CODES3, INTERNAL_ERROR_NAMES3, CommonTelemetryEvents3, KNOWN_AGENTS3, LOCAL_HOSTS3, authSignalSlot3, isTruthy3 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual3 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES3, TELEMETRY_SESSION_ID_ENV3 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY3 = "session_id", telemetrySessionIdSlot3, telemetryPropsSlot3, providerSlot3, telemetryInstanceSlot3, DEFAULT_AI_CONNECTION_STRING3, _localTelemetryInstance3, telemetry3, CLI_ERROR_CODES3, RETRY_HINTS3, RESULTS3, EXIT_CODES3, FilterEvaluationError3, OutputFormatter3, LEGACY_SKILL_NAMESPACE3 = "uipath:", MAX_SKILL_NAME_LENGTH3 = 80, SKILL_NAME_PATTERN3, SKILL_ATTRIBUTION3, KNOWN_SKILL_NAMES3, COMMAND_ATTRIBUTION3, REDACTED3 = "[REDACTED]", MAX_VALUE_LENGTH3 = 200, SENSITIVE_NAME_TOKENS3, SENSITIVE_KEY_PREFIXES3, UUID_PATTERN4, EMAIL_PATTERN3, JWT_PATTERN3, LONG_TOKEN_PATTERN3, USER_HOME_PATTERN3, URL_PATTERN3, URL_TRAILING_PUNCT3, pollSignalSlot3, cliErrorCodeValues3, retryHintValues3, processContext2, guardInstalledSlot3, savedOriginalsSlot3, DEFAULT_PAGE_SIZE2 = 50, DEFAULT_AUTH_TIMEOUT_MS4, GENERIC2 = "Check authentication and parameters", modeSlot3, interactiveFlagSlot3, TENANT_SWITCH_COMMAND2 = "uip login tenant set <tenant>", PollOutcome3, REASON_BY_OUTCOME3, TERMINAL_STATUSES3, FAILURE_STATUSES3, previewSlot3, ScreenLogger3, USER_AGENT_HEADER3 = "User-Agent", sdkUserAgentHostToken3, shippedKeysSlot3, factorySlot3, VALID_TASK_ENTRY_RULE_TYPES, VALID_STAGE_ENTRY_RULE_TYPES, VALID_STAGE_COMPLETION_RULE_TYPES, VALID_STAGE_EXIT_RULE_TYPES, VALID_CASE_COMPLETION_RULE_TYPES, VALID_CASE_EXIT_RULE_TYPES, DEFAULT_TRIGGER_ID = "trigger_1", DEFAULT_TRIGGER_LABEL = "Trigger 1", ALPHANUMERIC = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", getRandomBytes = (n) => globalThis.crypto.getRandomValues(new Uint8Array(n)), CASE_EXIT_CONDITIONS_ADD_EXAMPLES, CASE_EXIT_CONDITIONS_EDIT_EXAMPLES, CASE_EXIT_CONDITIONS_GET_EXAMPLES, CASE_EXIT_CONDITIONS_REMOVE_EXAMPLES, registerCaseExitConditionsCommand = (program22) => {
|
|
406052
407330
|
const caseExitConditions = program22.command("case-exit-conditions").description("Manage exit conditions on a case within a case management definition JSON file");
|
|
406053
407331
|
caseExitConditions.command("add").description("Add an exit condition to a case").argument("<file>", "Path to the case management JSON file").option("-d, --display-name <name>", "Display name for the condition").option("--marks-case-complete <bool>", "Whether this condition marks the case complete (true or false)").option("--rule-type <type>", `Initial rule type: For completion: ${VALID_CASE_COMPLETION_RULE_TYPES.join(", ")}, For exit: ${VALID_CASE_EXIT_RULE_TYPES.join(", ")}`).option("--condition-expression <expr>", "Condition expression for the initial rule").option("--selected-stage-id <id>", "Stage ID for selected-stage-* initial rules").examples(CASE_EXIT_CONDITIONS_ADD_EXAMPLES).trackedAction(processContext2, async (file5, options) => {
|
|
406054
407332
|
if (options.ruleType !== undefined && (options.marksCaseComplete === "false" || options.marksCaseComplete === undefined) && !VALID_CASE_EXIT_RULE_TYPES.includes(options.ruleType)) {
|
|
@@ -418217,7 +419495,7 @@ return {
|
|
|
418217
419495
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
418218
419496
|
};
|
|
418219
419497
|
}
|
|
418220
|
-
}, KNOWN_SDK_NODES2, KNOWN_SDK_NODE_TYPES2, BASE_PATH7, DefaultConfig7, BaseAPI7, ResponseError7, FetchError7, RequiredError7, BASE_PATH22, DefaultConfig22, BaseAPI22, ResponseError22, FetchError22, RequiredError22, package_default22, SDK_USER_AGENT6, ConnectionOperationsApi3, ConnectionsApi3, ConnectorsApi3, SessionsApi4, ElementsApi3, API_DOMAIN_MAP2, JIT_INPUT_OPERATIONS2, rnds82, byteToHex2, v4_default2, ClrTypeMock2, InvalidOperationException2, ArgumentNullException2, CeqlHelper2, JmesHelper2, FilterNotSupportedError2, FieldLocation2, FieldObjectType2, DEFAULT_MAX_PAGE_SIZE2 = 1000, counter2 = 0, VALID_HTTP_METHODS3, OPERATION_TO_METHOD2, DEFAULT_RULES2, ENABLED_MANIFEST_FLAGS2, BASE_PATH32, DefaultConfig32, BaseAPI32, ResponseError32, FetchError32, RequiredError32, package_default32, SDK_USER_AGENT22, FoldersApi3, JobsApi3, ReleasesApi3, UUID_REGEX2, VALID_DEBUG_MODES2, VALID_SIMULATION_MODES2, NETWORK_ERROR_CODES22, registerSharedIncidentCommands2 = (program22, config32) => {
|
|
419498
|
+
}, KNOWN_SDK_NODES2, KNOWN_SDK_NODE_TYPES2, BASE_PATH7, DefaultConfig7, BaseAPI7, ResponseError7, FetchError7, RequiredError7, BASE_PATH22, DefaultConfig22, BaseAPI22, ResponseError22, FetchError22, RequiredError22, package_default22, SDK_USER_AGENT6, ConnectionOperationsApi3, ConnectionsApi3, ConnectorsApi3, SessionsApi4, ElementsApi3, API_DOMAIN_MAP2, API_DOMAIN_BY_NAME2, JIT_INPUT_OPERATIONS2, rnds82, byteToHex2, v4_default2, ClrTypeMock2, InvalidOperationException2, ArgumentNullException2, CeqlHelper2, JmesHelper2, FilterNotSupportedError2, FieldLocation2, FieldObjectType2, DEFAULT_MAX_PAGE_SIZE2 = 1000, counter2 = 0, VALID_HTTP_METHODS3, OPERATION_TO_METHOD2, DEFAULT_RULES2, ENABLED_MANIFEST_FLAGS2, BASE_PATH32, DefaultConfig32, BaseAPI32, ResponseError32, FetchError32, RequiredError32, package_default32, SDK_USER_AGENT22, FoldersApi3, JobsApi3, ReleasesApi3, UUID_REGEX2, VALID_DEBUG_MODES2, VALID_SIMULATION_MODES2, NETWORK_ERROR_CODES22, registerSharedIncidentCommands2 = (program22, config32) => {
|
|
418221
419499
|
const { toolLabel } = config32;
|
|
418222
419500
|
const incident = program22.command("incident").description(`Manage ${toolLabel} incidents`);
|
|
418223
419501
|
incident.command("summary").description(`Get ${toolLabel} incident summaries across processes`).option("--folder-key <key>", "Folder key").option("-l, --limit <number>", "Number of items to return (1-10000)", parseLimit2).option("--offset <number>", "Number of items to skip (0-1000000)", parseOffset2, 0).option("--process-key <process-key>", "Filter by process key").option("--status <status>", "Filter by incident status").option("--severity <severity>", "Filter by incident severity").trackedAction(processContext2, async (options) => {
|
|
@@ -541924,7 +543202,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
541924
543202
|
};
|
|
541925
543203
|
}
|
|
541926
543204
|
});
|
|
541927
|
-
var
|
|
543205
|
+
var singleton222;
|
|
541928
543206
|
var FixedOffsetZone;
|
|
541929
543207
|
var init_fixedOffsetZone = __esm22({
|
|
541930
543208
|
"node_modules/luxon/src/zones/fixedOffsetZone.js"() {
|
|
@@ -541932,13 +543210,13 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
541932
543210
|
init_appConfig_shim();
|
|
541933
543211
|
init_util4();
|
|
541934
543212
|
init_zone();
|
|
541935
|
-
|
|
543213
|
+
singleton222 = null;
|
|
541936
543214
|
FixedOffsetZone = class _FixedOffsetZone extends Zone {
|
|
541937
543215
|
static get utcInstance() {
|
|
541938
|
-
if (
|
|
541939
|
-
|
|
543216
|
+
if (singleton222 === null) {
|
|
543217
|
+
singleton222 = new _FixedOffsetZone(0);
|
|
541940
543218
|
}
|
|
541941
|
-
return
|
|
543219
|
+
return singleton222;
|
|
541942
543220
|
}
|
|
541943
543221
|
static instance(offset2) {
|
|
541944
543222
|
return offset2 === 0 ? _FixedOffsetZone.utcInstance : new _FixedOffsetZone(offset2);
|
|
@@ -643353,7 +644631,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
643353
644631
|
if (!FE(r5, t54))
|
|
643354
644632
|
return W9(e5, r5, t54);
|
|
643355
644633
|
const n5 = r5[t54];
|
|
643356
|
-
return e5.finalized_ || !ps2(n5) ? n5 : n5 === xg2(e5.base_, t54) ? (
|
|
644634
|
+
return e5.finalized_ || !ps2(n5) ? n5 : n5 === xg2(e5.base_, t54) ? (_g23(e5), e5.copy_[t54] = RE(n5, e5)) : n5;
|
|
643357
644635
|
},
|
|
643358
644636
|
has(e5, t54) {
|
|
643359
644637
|
return t54 in _a33(e5);
|
|
@@ -643371,12 +644649,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
643371
644649
|
return e5.copy_[t54] = r5, e5.assigned_[t54] = false, true;
|
|
643372
644650
|
if (R9(r5, s5) && (r5 !== undefined || FE(e5.base_, t54)))
|
|
643373
644651
|
return true;
|
|
643374
|
-
|
|
644652
|
+
_g23(e5), kE(e5);
|
|
643375
644653
|
}
|
|
643376
644654
|
return e5.copy_[t54] === r5 && (r5 !== undefined || (t54 in e5.copy_)) || Number.isNaN(r5) && Number.isNaN(e5.copy_[t54]) || (e5.copy_[t54] = r5, e5.assigned_[t54] = true), true;
|
|
643377
644655
|
},
|
|
643378
644656
|
deleteProperty(e5, t54) {
|
|
643379
|
-
return xg2(e5.base_, t54) !== undefined || t54 in e5.base_ ? (e5.assigned_[t54] = false,
|
|
644657
|
+
return xg2(e5.base_, t54) !== undefined || t54 in e5.base_ ? (e5.assigned_[t54] = false, _g23(e5), kE(e5)) : delete e5.assigned_[t54], e5.copy_ && delete e5.copy_[t54], true;
|
|
643380
644658
|
},
|
|
643381
644659
|
getOwnPropertyDescriptor(e5, t54) {
|
|
643382
644660
|
const r5 = _a33(e5), n5 = Reflect.getOwnPropertyDescriptor(r5, t54);
|
|
@@ -643431,7 +644709,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
643431
644709
|
function kE(e5) {
|
|
643432
644710
|
e5.modified_ || (e5.modified_ = true, e5.parent_ && kE(e5.parent_));
|
|
643433
644711
|
}
|
|
643434
|
-
function
|
|
644712
|
+
function _g23(e5) {
|
|
643435
644713
|
e5.copy_ || (e5.copy_ = xE(e5.base_, e5.scope_.immer_.useStrictShallowCopy_));
|
|
643436
644714
|
}
|
|
643437
644715
|
var $9 = class {
|
|
@@ -685161,7 +686439,7 @@ return { upsertKeys: allEventsUpdatedKeys, deleteKeys: [...exitedStageKeysToDele
|
|
|
685161
686439
|
};
|
|
685162
686440
|
var MAX_EXPRESSION = 200;
|
|
685163
686441
|
function requiredOptions(o2) {
|
|
685164
|
-
var _a33, _b2, _c2, _d2, _e2, _f2,
|
|
686442
|
+
var _a33, _b2, _c2, _d2, _e2, _f2, _g23, _h, _j, _k, _l2, _m, _o2, _p2, _q, _r2, _s2, _t2, _u2, _v, _w, _x, _y, _z, _0;
|
|
685165
686443
|
const s2 = o2.strict;
|
|
685166
686444
|
const _optz = (_a33 = o2.code) === null || _a33 === undefined ? undefined : _a33.optimize;
|
|
685167
686445
|
const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;
|
|
@@ -685169,7 +686447,7 @@ return { upsertKeys: allEventsUpdatedKeys, deleteKeys: [...exitedStageKeysToDele
|
|
|
685169
686447
|
const uriResolver = (_d2 = o2.uriResolver) !== null && _d2 !== undefined ? _d2 : uri_1.default;
|
|
685170
686448
|
return {
|
|
685171
686449
|
strictSchema: (_f2 = (_e2 = o2.strictSchema) !== null && _e2 !== undefined ? _e2 : s2) !== null && _f2 !== undefined ? _f2 : true,
|
|
685172
|
-
strictNumbers: (_h = (
|
|
686450
|
+
strictNumbers: (_h = (_g23 = o2.strictNumbers) !== null && _g23 !== undefined ? _g23 : s2) !== null && _h !== undefined ? _h : true,
|
|
685173
686451
|
strictTypes: (_k = (_j = o2.strictTypes) !== null && _j !== undefined ? _j : s2) !== null && _k !== undefined ? _k : "log",
|
|
685174
686452
|
strictTuples: (_m = (_l2 = o2.strictTuples) !== null && _l2 !== undefined ? _l2 : s2) !== null && _m !== undefined ? _m : "log",
|
|
685175
686453
|
strictRequired: (_p2 = (_o2 = o2.strictRequired) !== null && _o2 !== undefined ? _o2 : s2) !== null && _p2 !== undefined ? _p2 : false,
|
|
@@ -703635,7 +704913,7 @@ return { upsertKeys: allEventsUpdatedKeys, deleteKeys: [...exitedStageKeysToDele
|
|
|
703635
704913
|
package_default9 = {
|
|
703636
704914
|
name: "@uipath/case-tool",
|
|
703637
704915
|
license: "MIT",
|
|
703638
|
-
version: "1.
|
|
704916
|
+
version: "1.198.0-preview.80",
|
|
703639
704917
|
description: "Manage Case Management instances, processes, and incidents.",
|
|
703640
704918
|
private: false,
|
|
703641
704919
|
repository: {
|
|
@@ -706737,6 +708015,7 @@ return { upsertKeys: allEventsUpdatedKeys, deleteKeys: [...exitedStageKeysToDele
|
|
|
706737
708015
|
logger4 = SimpleLogger3.getInstance();
|
|
706738
708016
|
formatSlot3 = singleton4("OutputFormat");
|
|
706739
708017
|
formatExplicitSlot3 = singleton4("OutputFormatExplicit");
|
|
708018
|
+
helpRequestedSlot3 = singleton4("HelpRequested");
|
|
706740
708019
|
filterSlot3 = singleton4("OutputFilter");
|
|
706741
708020
|
recordedFailureSlot3 = singleton4("CommandTelemetryFailure");
|
|
706742
708021
|
AUTH_ERROR_CODES3 = new Set([
|
|
@@ -706973,6 +708252,9 @@ return { upsertKeys: allEventsUpdatedKeys, deleteKeys: [...exitedStageKeysToDele
|
|
|
706973
708252
|
if (opts?.warning) {
|
|
706974
708253
|
data.Warning = opts.warning;
|
|
706975
708254
|
}
|
|
708255
|
+
if (opts?.pagination) {
|
|
708256
|
+
data.Pagination = opts.pagination;
|
|
708257
|
+
}
|
|
706976
708258
|
success5(data);
|
|
706977
708259
|
}
|
|
706978
708260
|
OutputFormatter4.emitList = emitList;
|
|
@@ -707200,6 +708482,7 @@ return { upsertKeys: allEventsUpdatedKeys, deleteKeys: [...exitedStageKeysToDele
|
|
|
707200
708482
|
savedOriginalsSlot3 = singleton4("ConsoleGuardOriginals");
|
|
707201
708483
|
DEFAULT_AUTH_TIMEOUT_MS4 = 5 * 60 * 1000;
|
|
707202
708484
|
modeSlot3 = singleton4("InteractivityMode");
|
|
708485
|
+
interactiveFlagSlot3 = singleton4("InteractiveFlag");
|
|
707203
708486
|
PollOutcome3 = {
|
|
707204
708487
|
Completed: "completed",
|
|
707205
708488
|
Timeout: "timeout",
|
|
@@ -707503,6 +708786,7 @@ The identity server that issued this token is not the one you pointed --authorit
|
|
|
707503
708786
|
"ENOTDIR",
|
|
707504
708787
|
"EUNKNOWN"
|
|
707505
708788
|
]);
|
|
708789
|
+
init_constants3();
|
|
707506
708790
|
init_src17();
|
|
707507
708791
|
TENANT_SELECTION_CODES2 = new Set([
|
|
707508
708792
|
TENANT_SELECTION_REQUIRED_CODE2,
|
|
@@ -751649,7 +752933,7 @@ return {
|
|
|
751649
752933
|
package_default22 = {
|
|
751650
752934
|
name: "@uipath/integrationservice-sdk",
|
|
751651
752935
|
license: "MIT",
|
|
751652
|
-
version: "1.
|
|
752936
|
+
version: "1.198.0-preview.80",
|
|
751653
752937
|
repository: {
|
|
751654
752938
|
type: "git",
|
|
751655
752939
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -753864,6 +755148,10 @@ return {
|
|
|
753864
755148
|
[SessionsApi4, "connections"],
|
|
753865
755149
|
[ElementsApi3, "elements"]
|
|
753866
755150
|
]);
|
|
755151
|
+
API_DOMAIN_BY_NAME2 = new Map([...API_DOMAIN_MAP2].map(([ApiClass, domain32]) => [
|
|
755152
|
+
baseApiClassName2(ApiClass.name),
|
|
755153
|
+
domain32
|
|
755154
|
+
]));
|
|
753867
755155
|
JIT_INPUT_OPERATIONS2 = new Set(["create", "update", "replace"]);
|
|
753868
755156
|
rnds82 = new Uint8Array(16);
|
|
753869
755157
|
byteToHex2 = [];
|
|
@@ -754263,7 +755551,9 @@ return {
|
|
|
754263
755551
|
MANIFEST_FEATURE_FLAGS3.CONNECTOR_NODES,
|
|
754264
755552
|
MANIFEST_FEATURE_FLAGS3.EXTRACT_DOCUMENT,
|
|
754265
755553
|
MANIFEST_FEATURE_FLAGS3.HITL,
|
|
754266
|
-
MANIFEST_FEATURE_FLAGS3.LOOP_CONTAINER
|
|
755554
|
+
MANIFEST_FEATURE_FLAGS3.LOOP_CONTAINER,
|
|
755555
|
+
MANIFEST_FEATURE_FLAGS3.BATCH_TRANSFORM,
|
|
755556
|
+
MANIFEST_FEATURE_FLAGS3.SUMMARIZE
|
|
754267
755557
|
]);
|
|
754268
755558
|
BASE_PATH32 = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
|
|
754269
755559
|
DefaultConfig32 = new Configuration32;
|
|
@@ -754416,7 +755706,7 @@ return {
|
|
|
754416
755706
|
package_default32 = {
|
|
754417
755707
|
name: "@uipath/orchestrator-sdk",
|
|
754418
755708
|
license: "MIT",
|
|
754419
|
-
version: "1.
|
|
755709
|
+
version: "1.198.0",
|
|
754420
755710
|
repository: {
|
|
754421
755711
|
type: "git",
|
|
754422
755712
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -757539,7 +758829,7 @@ return {
|
|
|
757539
758829
|
package_default42 = {
|
|
757540
758830
|
name: "@uipath/solution-sdk",
|
|
757541
758831
|
license: "MIT",
|
|
757542
|
-
version: "1.
|
|
758832
|
+
version: "1.198.0-preview.80",
|
|
757543
758833
|
repository: {
|
|
757544
758834
|
type: "git",
|
|
757545
758835
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -760151,7 +761441,7 @@ import"./packager-tool.js";
|
|
|
760151
761441
|
var package_default = {
|
|
760152
761442
|
name: "@uipath/maestro-tool",
|
|
760153
761443
|
license: "MIT",
|
|
760154
|
-
version: "1.
|
|
761444
|
+
version: "1.198.0-preview.80",
|
|
760155
761445
|
description: "Create, debug, and run Maestro projects and jobs.",
|
|
760156
761446
|
private: false,
|
|
760157
761447
|
repository: {
|
|
@@ -763224,4 +764514,4 @@ export {
|
|
|
763224
764514
|
metadata3 as metadata
|
|
763225
764515
|
};
|
|
763226
764516
|
|
|
763227
|
-
//# debugId=
|
|
764517
|
+
//# debugId=9D88DD08FE2CC6CA64756E2164756E21
|