@uipath/conversational-tool 1.201.0-preview.115 → 1.201.0-preview.121
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.
|
@@ -2117,7 +2117,7 @@ var require_commander = __commonJS((exports) => {
|
|
|
2117
2117
|
var package_default = {
|
|
2118
2118
|
name: "@uipath/conversational-tool",
|
|
2119
2119
|
license: "MIT",
|
|
2120
|
-
version: "1.201.0-preview.
|
|
2120
|
+
version: "1.201.0-preview.121",
|
|
2121
2121
|
description: "Handle conversations with deployed UiPath conversational processes.",
|
|
2122
2122
|
type: "module",
|
|
2123
2123
|
main: "./dist/tool.js",
|
|
@@ -2143,7 +2143,7 @@ var package_default = {
|
|
|
2143
2143
|
"@uipath/common": "workspace:*",
|
|
2144
2144
|
"@uipath/auth": "workspace:*",
|
|
2145
2145
|
"@uipath/filesystem": "workspace:*",
|
|
2146
|
-
"@uipath/uipath-typescript": "^1.
|
|
2146
|
+
"@uipath/uipath-typescript": "^1.6.1",
|
|
2147
2147
|
"@types/node": "^25.5.2",
|
|
2148
2148
|
typescript: "^7.0.2"
|
|
2149
2149
|
}
|
|
@@ -2202,6 +2202,7 @@ var TLS_ERROR_CODES = new Set([
|
|
|
2202
2202
|
]);
|
|
2203
2203
|
var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
|
|
2204
2204
|
var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
|
|
2205
|
+
var LOCAL_PERMISSION_ERROR_CODES = new Set(["EACCES", "EPERM", "EROFS"]);
|
|
2205
2206
|
function extractErrorMessageSync(error) {
|
|
2206
2207
|
if (error instanceof Error) {
|
|
2207
2208
|
return error.message;
|
|
@@ -3393,6 +3394,7 @@ var CLI_ERROR_CODES = [
|
|
|
3393
3394
|
"invalid_argument",
|
|
3394
3395
|
"authentication_required",
|
|
3395
3396
|
"permission_denied",
|
|
3397
|
+
"local_permission_denied",
|
|
3396
3398
|
"not_found",
|
|
3397
3399
|
"rate_limited",
|
|
3398
3400
|
"network_error",
|
|
@@ -3828,12 +3830,16 @@ function defaultErrorCodeForHttpStatus(status) {
|
|
|
3828
3830
|
return "server_error";
|
|
3829
3831
|
return;
|
|
3830
3832
|
}
|
|
3833
|
+
var LOCAL_PERMISSION_TEXT_PATTERN = /(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;
|
|
3831
3834
|
function defaultErrorCodeForFailure(data) {
|
|
3832
3835
|
if (data.Result === RESULTS.Failure) {
|
|
3833
3836
|
const status = data.Context?.httpStatus ?? parseHttpStatusFromMessage(data.Message);
|
|
3834
3837
|
const errorCode = defaultErrorCodeForHttpStatus(status);
|
|
3835
3838
|
if (errorCode)
|
|
3836
3839
|
return errorCode;
|
|
3840
|
+
if (status === undefined && (LOCAL_PERMISSION_TEXT_PATTERN.test(data.Message) || LOCAL_PERMISSION_TEXT_PATTERN.test(data.Instructions))) {
|
|
3841
|
+
return "local_permission_denied";
|
|
3842
|
+
}
|
|
3837
3843
|
}
|
|
3838
3844
|
return defaultErrorCodeForResult(data.Result);
|
|
3839
3845
|
}
|
|
@@ -4364,11 +4370,10 @@ var ScreenLogger;
|
|
|
4364
4370
|
})(ScreenLogger ||= {});
|
|
4365
4371
|
// ../common/src/sdk-user-agent.ts
|
|
4366
4372
|
var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
4367
|
-
// ../common/src/tool-provider.ts
|
|
4368
|
-
var factorySlot = singleton("PackagerFactoryProvider");
|
|
4369
|
-
var moduleSlot = singleton("ToolModuleProvider");
|
|
4370
4373
|
// ../common/src/telemetry/ship-succeeded.ts
|
|
4371
4374
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
4375
|
+
// ../common/src/tool-provider.ts
|
|
4376
|
+
var factorySlot = singleton("PackagerFactoryProvider");
|
|
4372
4377
|
// ../auth/src/config.ts
|
|
4373
4378
|
var DEFAULT_CLIENT_ID = "36dea5b8-e8bb-423d-8e7b-c808df8f1c00";
|
|
4374
4379
|
var AUTH_FILE_CONFIG_KEY = Symbol.for("@uipath/auth/AuthFileConfig");
|
|
@@ -5609,6 +5614,9 @@ function normalizeTokenRefreshUnavailableFailure() {
|
|
|
5609
5614
|
function errorMessage(error) {
|
|
5610
5615
|
return error instanceof Error ? error.message : String(error);
|
|
5611
5616
|
}
|
|
5617
|
+
// ../auth/src/tenantSelection.ts
|
|
5618
|
+
var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
|
|
5619
|
+
|
|
5612
5620
|
// ../auth/src/selectTenant.ts
|
|
5613
5621
|
var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
|
|
5614
5622
|
var INVALID_TENANT_CODE = "INVALID_TENANT";
|
|
@@ -9537,7 +9545,23 @@ var TASK_ENDPOINTS = {
|
|
|
9537
9545
|
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
9538
9546
|
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
9539
9547
|
GET_GENERIC_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataById`,
|
|
9540
|
-
|
|
9548
|
+
GET_GENERIC_TASK_BY_KEY: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataByKey`,
|
|
9549
|
+
GET_APP_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/AppTasks/GetAppTaskById`,
|
|
9550
|
+
SAVE_TASK_TAGS: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/SaveTaskTags`,
|
|
9551
|
+
SAVE_TASK_DATA: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/SaveTaskData`,
|
|
9552
|
+
SAVE_FORM_TASK_DATA: `${ORCHESTRATOR_BASE}/forms/TaskForms/SaveTaskData`,
|
|
9553
|
+
SAVE_APP_TASK_DATA: `${ORCHESTRATOR_BASE}/tasks/AppTasks/SaveAppTasksData`,
|
|
9554
|
+
EDIT_TASK_METADATA: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.EditTaskMetadata`
|
|
9555
|
+
};
|
|
9556
|
+
var TASK_CATALOG_ENDPOINTS = {
|
|
9557
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/TaskCatalogs`,
|
|
9558
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/TaskCatalogs(${id})`,
|
|
9559
|
+
CREATE: `${ORCHESTRATOR_BASE}/odata/TaskCatalogs/UiPath.Server.Configuration.OData.CreateTaskCatalog`,
|
|
9560
|
+
UPDATE: (id) => `${ORCHESTRATOR_BASE}/odata/TaskCatalogs(${id})/UiPath.Server.Configuration.OData.UpdateTaskCatalog`
|
|
9561
|
+
};
|
|
9562
|
+
var TASK_NOTE_ENDPOINTS = {
|
|
9563
|
+
GET_BY_TASK_ID: (taskId) => `${ORCHESTRATOR_BASE}/odata/TaskNotes/UiPath.Server.Configuration.OData.GetByTaskId(taskId=${taskId})`,
|
|
9564
|
+
CREATE: `${ORCHESTRATOR_BASE}/odata/TaskNotes/UiPath.Server.Configuration.OData.CreateTaskNote`
|
|
9541
9565
|
};
|
|
9542
9566
|
var BUCKET_ENDPOINTS = {
|
|
9543
9567
|
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
@@ -9564,7 +9588,11 @@ var JOB_ENDPOINTS = {
|
|
|
9564
9588
|
GET_BY_KEY: (identifier) => `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier=${identifier})`,
|
|
9565
9589
|
STOP: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StopJobs`,
|
|
9566
9590
|
RESUME: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.ResumeJob`,
|
|
9567
|
-
RESTART: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.RestartJob
|
|
9591
|
+
RESTART: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.RestartJob`,
|
|
9592
|
+
ATTACHMENTS: {
|
|
9593
|
+
GET_BY_JOB_KEY: `${ORCHESTRATOR_BASE}/api/JobAttachments/GetByJobKey`,
|
|
9594
|
+
LINK: `${ORCHESTRATOR_BASE}/api/JobAttachments/Post`
|
|
9595
|
+
}
|
|
9568
9596
|
};
|
|
9569
9597
|
var ASSET_ENDPOINTS = {
|
|
9570
9598
|
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
@@ -9572,7 +9600,8 @@ var ASSET_ENDPOINTS = {
|
|
|
9572
9600
|
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`
|
|
9573
9601
|
};
|
|
9574
9602
|
var ORCHESTRATOR_ATTACHMENT_ENDPOINTS = {
|
|
9575
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Attachments(${id})
|
|
9603
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Attachments(${id})`,
|
|
9604
|
+
CREATE: `${ORCHESTRATOR_BASE}/odata/Attachments`
|
|
9576
9605
|
};
|
|
9577
9606
|
var MAESTRO_ENDPOINTS = {
|
|
9578
9607
|
PROCESSES: {
|
|
@@ -9635,6 +9664,7 @@ var DATA_FABRIC_ENDPOINTS = {
|
|
|
9635
9664
|
DELETE: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
9636
9665
|
UPDATE_METADATA: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}/metadata`,
|
|
9637
9666
|
QUERY_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/query`,
|
|
9667
|
+
QUERY_BY_NAME: (entityName) => `${DATAFABRIC_BASE}/api/EntityService/${entityName}/query`,
|
|
9638
9668
|
BULK_UPLOAD_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/bulk-upload`,
|
|
9639
9669
|
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
9640
9670
|
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
@@ -9877,7 +9907,7 @@ class EmbeddedTokenManager {
|
|
|
9877
9907
|
this.cancelRefresh?.();
|
|
9878
9908
|
}
|
|
9879
9909
|
}
|
|
9880
|
-
var SDK_VERSION = "1.
|
|
9910
|
+
var SDK_VERSION = "1.6.1";
|
|
9881
9911
|
var CLOUD_ROLE_NAME = "uipath-ts-sdk";
|
|
9882
9912
|
var SDK_SERVICE_NAME = "UiPath.TypeScript.Sdk";
|
|
9883
9913
|
var SDK_LOGGER_NAME = "uipath-ts-sdk-telemetry";
|
|
@@ -10156,11 +10186,9 @@ class TokenManager {
|
|
|
10156
10186
|
return token;
|
|
10157
10187
|
}
|
|
10158
10188
|
}
|
|
10159
|
-
var GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
10160
10189
|
|
|
10161
10190
|
class AuthService {
|
|
10162
10191
|
constructor(config2, executionContext) {
|
|
10163
|
-
this.skipAcrValues = false;
|
|
10164
10192
|
const isCallback = AuthService.isInOAuthCallback();
|
|
10165
10193
|
const storedContext = isCallback ? AuthService.getStoredOAuthContext() : null;
|
|
10166
10194
|
if (!isCallback) {
|
|
@@ -10223,9 +10251,6 @@ class AuthService {
|
|
|
10223
10251
|
getTokenManager() {
|
|
10224
10252
|
return this.tokenManager;
|
|
10225
10253
|
}
|
|
10226
|
-
setMultiLogin() {
|
|
10227
|
-
this.skipAcrValues = true;
|
|
10228
|
-
}
|
|
10229
10254
|
async authenticate(config2) {
|
|
10230
10255
|
if (!isBrowser2) {
|
|
10231
10256
|
return false;
|
|
@@ -10341,9 +10366,6 @@ class AuthService {
|
|
|
10341
10366
|
}
|
|
10342
10367
|
}
|
|
10343
10368
|
getAuthorizationUrl(params) {
|
|
10344
|
-
const orgName = this.config.orgName;
|
|
10345
|
-
const isGuid = GUID_REGEX.test(orgName);
|
|
10346
|
-
const acrValues = isGuid ? `tenant:${orgName}` : `tenantName:${orgName}`;
|
|
10347
10369
|
const queryParams = new URLSearchParams({
|
|
10348
10370
|
response_type: "code",
|
|
10349
10371
|
client_id: params.clientId,
|
|
@@ -10353,8 +10375,7 @@ class AuthService {
|
|
|
10353
10375
|
scope: params.scope + " offline_access",
|
|
10354
10376
|
state: params.state || this.generateCodeVerifier().slice(0, 16)
|
|
10355
10377
|
});
|
|
10356
|
-
|
|
10357
|
-
return this.skipAcrValues ? authorizeUrl : `${authorizeUrl}&acr_values=${acrValues}`;
|
|
10378
|
+
return `${this.config.baseUrl}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}`;
|
|
10358
10379
|
}
|
|
10359
10380
|
async _getAccessToken(params) {
|
|
10360
10381
|
const body = new URLSearchParams({
|
|
@@ -10518,7 +10539,6 @@ var _UiPath_config;
|
|
|
10518
10539
|
var _UiPath_authService;
|
|
10519
10540
|
var _UiPath_initialized;
|
|
10520
10541
|
var _UiPath_partialConfig;
|
|
10521
|
-
var _UiPath_multiLogin;
|
|
10522
10542
|
var _UiPath_metaFolderKey;
|
|
10523
10543
|
var _UiPath_metaOrgId;
|
|
10524
10544
|
var _UiPath_metaTenantId;
|
|
@@ -10531,7 +10551,6 @@ var UiPath$1 = class UiPath {
|
|
|
10531
10551
|
_UiPath_authService.set(this, undefined);
|
|
10532
10552
|
_UiPath_initialized.set(this, false);
|
|
10533
10553
|
_UiPath_partialConfig.set(this, undefined);
|
|
10534
|
-
_UiPath_multiLogin.set(this, false);
|
|
10535
10554
|
_UiPath_metaFolderKey.set(this, undefined);
|
|
10536
10555
|
_UiPath_metaOrgId.set(this, undefined);
|
|
10537
10556
|
_UiPath_metaTenantId.set(this, undefined);
|
|
@@ -10573,10 +10592,6 @@ var UiPath$1 = class UiPath {
|
|
|
10573
10592
|
throw new Error(`Failed to initialize UiPath SDK: ${errorMessage2}`);
|
|
10574
10593
|
}
|
|
10575
10594
|
}
|
|
10576
|
-
setMultiLogin() {
|
|
10577
|
-
__classPrivateFieldSet(this, _UiPath_multiLogin, true, "f");
|
|
10578
|
-
__classPrivateFieldGet(this, _UiPath_authService, "f")?.setMultiLogin();
|
|
10579
|
-
}
|
|
10580
10595
|
isInitialized() {
|
|
10581
10596
|
return __classPrivateFieldGet(this, _UiPath_initialized, "f");
|
|
10582
10597
|
}
|
|
@@ -10623,7 +10638,7 @@ var UiPath$1 = class UiPath {
|
|
|
10623
10638
|
__classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
|
|
10624
10639
|
}
|
|
10625
10640
|
};
|
|
10626
|
-
_UiPath_config = new WeakMap, _UiPath_authService = new WeakMap, _UiPath_initialized = new WeakMap, _UiPath_partialConfig = new WeakMap,
|
|
10641
|
+
_UiPath_config = new WeakMap, _UiPath_authService = new WeakMap, _UiPath_initialized = new WeakMap, _UiPath_partialConfig = new WeakMap, _UiPath_metaFolderKey = new WeakMap, _UiPath_metaOrgId = new WeakMap, _UiPath_metaTenantId = new WeakMap, _UiPath_instances = new WeakSet, _UiPath_initializeWithConfig = function _UiPath_initializeWithConfig2(config2) {
|
|
10627
10642
|
validateConfig(config2);
|
|
10628
10643
|
const hasSecretAuth = hasSecretConfig(config2);
|
|
10629
10644
|
const hasOAuthAuth = hasOAuthConfig(config2);
|
|
@@ -10638,9 +10653,6 @@ _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap, _UiPath_initial
|
|
|
10638
10653
|
});
|
|
10639
10654
|
const executionContext = new ExecutionContext;
|
|
10640
10655
|
__classPrivateFieldSet(this, _UiPath_authService, new AuthService(internalConfig, executionContext), "f");
|
|
10641
|
-
if (__classPrivateFieldGet(this, _UiPath_multiLogin, "f")) {
|
|
10642
|
-
__classPrivateFieldGet(this, _UiPath_authService, "f").setMultiLogin();
|
|
10643
|
-
}
|
|
10644
10656
|
__classPrivateFieldSet(this, _UiPath_config, internalConfig, "f");
|
|
10645
10657
|
SDKInternalsRegistry.set(this, {
|
|
10646
10658
|
config: internalConfig,
|
|
@@ -10780,7 +10792,7 @@ class ErrorResponseParser {
|
|
|
10780
10792
|
}
|
|
10781
10793
|
async parse(response) {
|
|
10782
10794
|
try {
|
|
10783
|
-
const errorBody = await response.json();
|
|
10795
|
+
const errorBody = await response.clone().json();
|
|
10784
10796
|
const strategy = this.strategies.find((s) => s.canParse(errorBody));
|
|
10785
10797
|
return strategy.parse(errorBody, response);
|
|
10786
10798
|
} catch {
|
|
@@ -10865,22 +10877,20 @@ class ApiClient {
|
|
|
10865
10877
|
async getValidToken() {
|
|
10866
10878
|
return this.tokenManager.getValidToken();
|
|
10867
10879
|
}
|
|
10868
|
-
async getDefaultHeaders() {
|
|
10880
|
+
async getDefaultHeaders(includeDefaultContentType) {
|
|
10869
10881
|
const token = await this.getValidToken();
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
"Content-Type"
|
|
10873
|
-
|
|
10874
|
-
};
|
|
10882
|
+
const base = { Authorization: `Bearer ${token}` };
|
|
10883
|
+
if (includeDefaultContentType) {
|
|
10884
|
+
base["Content-Type"] = CONTENT_TYPES.JSON;
|
|
10885
|
+
}
|
|
10886
|
+
return { ...base, ...this.clientConfig.headers };
|
|
10875
10887
|
}
|
|
10876
10888
|
async request(method, path, options = {}) {
|
|
10877
10889
|
const normalizedPath = path.startsWith("/") ? path.substring(1) : path;
|
|
10878
10890
|
const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
|
|
10879
10891
|
const isFormData = options.body instanceof FormData;
|
|
10880
|
-
const
|
|
10881
|
-
|
|
10882
|
-
delete defaultHeaders["Content-Type"];
|
|
10883
|
-
}
|
|
10892
|
+
const isBodyless = isFormData || method === "GET" || method === "HEAD";
|
|
10893
|
+
const defaultHeaders = await this.getDefaultHeaders(!isBodyless);
|
|
10884
10894
|
const traceId = crypto.randomUUID().replace(/-/g, "");
|
|
10885
10895
|
const spanId = crypto.randomUUID().replace(/-/g, "").slice(0, 16);
|
|
10886
10896
|
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
@@ -11797,6 +11807,7 @@ var DataDirectionType;
|
|
|
11797
11807
|
var JoinType;
|
|
11798
11808
|
(function(JoinType2) {
|
|
11799
11809
|
JoinType2["LeftJoin"] = "LeftJoin";
|
|
11810
|
+
JoinType2["InnerJoin"] = "InnerJoin";
|
|
11800
11811
|
})(JoinType || (JoinType = {}));
|
|
11801
11812
|
function createParams(paramsObj = {}) {
|
|
11802
11813
|
const params = {};
|
|
@@ -11838,7 +11849,8 @@ var EntityMap = {
|
|
|
11838
11849
|
createTime: "createdTime",
|
|
11839
11850
|
updateTime: "updatedTime",
|
|
11840
11851
|
sqlType: "fieldDataType",
|
|
11841
|
-
fieldDefinition: "fieldMetaData"
|
|
11852
|
+
fieldDefinition: "fieldMetaData",
|
|
11853
|
+
isInsightsEnabled: "isAnalyticsEnabled"
|
|
11842
11854
|
};
|
|
11843
11855
|
var EntitySchemaFieldTypeMap = {
|
|
11844
11856
|
[EntityFieldDataType.UUID]: { sqlTypeName: SqlFieldType.UNIQUEIDENTIFIER, fieldDisplayType: FieldDisplayType.Basic },
|
|
@@ -11929,6 +11941,21 @@ var EntityFieldTypeMap = {
|
|
|
11929
11941
|
[SqlFieldType.MULTILINE]: EntityFieldDataType.MULTILINE_TEXT,
|
|
11930
11942
|
[SqlFieldType.MULTILINE_MAX]: EntityFieldDataType.MULTILINE_MAX
|
|
11931
11943
|
};
|
|
11944
|
+
var JOIN_TYPE_WIRE = {
|
|
11945
|
+
[JoinType.LeftJoin]: "LEFT",
|
|
11946
|
+
[JoinType.InnerJoin]: "INNER"
|
|
11947
|
+
};
|
|
11948
|
+
var qualifyJoinField = (entityName, field) => field.includes(".") ? field : `${entityName}.${field}`;
|
|
11949
|
+
function toWireJoin(join, baseEntityName) {
|
|
11950
|
+
return {
|
|
11951
|
+
type: JOIN_TYPE_WIRE[join.joinType ?? JoinType.LeftJoin],
|
|
11952
|
+
entity: join.relatedEntityName,
|
|
11953
|
+
on: {
|
|
11954
|
+
left: qualifyJoinField(join.entityName ?? baseEntityName, join.joinFieldName),
|
|
11955
|
+
right: qualifyJoinField(join.relatedEntityName, join.relatedFieldName)
|
|
11956
|
+
}
|
|
11957
|
+
};
|
|
11958
|
+
}
|
|
11932
11959
|
|
|
11933
11960
|
class EntityService extends BaseService {
|
|
11934
11961
|
async getById(id, options) {
|
|
@@ -12035,11 +12062,22 @@ class EntityService extends BaseService {
|
|
|
12035
12062
|
message: `A maximum of ${MAX_QUERY_JOINS} joins is supported per query (received ${options.joins.length})`
|
|
12036
12063
|
});
|
|
12037
12064
|
}
|
|
12065
|
+
if (options?.joins && options.joins.length > 0 && !options.selectedFields?.length && !options.aggregates?.length) {
|
|
12066
|
+
throw new ValidationError({
|
|
12067
|
+
message: 'Join queries require selectedFields or aggregates — reference fields as "<EntityName>.<FieldName>" (e.g. "Customer.name")'
|
|
12068
|
+
});
|
|
12069
|
+
}
|
|
12038
12070
|
const { folderKey, expansionLevel, ...rest } = options ?? {};
|
|
12071
|
+
let getEndpoint = () => DATA_FABRIC_ENDPOINTS.ENTITY.QUERY_BY_ID(id);
|
|
12072
|
+
if (options?.joins && options.joins.length > 0) {
|
|
12073
|
+
const baseEntityName = await this.resolveEntityName(id, folderKey);
|
|
12074
|
+
rest.joins = options.joins.map((join) => toWireJoin(join, baseEntityName));
|
|
12075
|
+
getEndpoint = () => DATA_FABRIC_ENDPOINTS.ENTITY.QUERY_BY_NAME(baseEntityName);
|
|
12076
|
+
}
|
|
12039
12077
|
const downstreamOptions = options === undefined ? undefined : rest;
|
|
12040
12078
|
return PaginationHelpers.getAll({
|
|
12041
12079
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
12042
|
-
getEndpoint
|
|
12080
|
+
getEndpoint,
|
|
12043
12081
|
method: HTTP_METHODS.POST,
|
|
12044
12082
|
headers: createHeaders({ [FOLDER_KEY]: folderKey }),
|
|
12045
12083
|
queryParams: createParams({ expansionLevel }),
|
|
@@ -12142,7 +12180,7 @@ class EntityService extends BaseService {
|
|
|
12142
12180
|
const raw = entityResponse.data;
|
|
12143
12181
|
let fields = (raw.fields ?? []).filter((f) => !f.isSystemField && !f.isPrimaryKey);
|
|
12144
12182
|
if (options.removeFields?.length) {
|
|
12145
|
-
const removeSet = new Set(options.removeFields.map((r) => r.
|
|
12183
|
+
const removeSet = new Set(options.removeFields.map((r) => r.name));
|
|
12146
12184
|
fields = fields.filter((f) => !removeSet.has(f.name));
|
|
12147
12185
|
}
|
|
12148
12186
|
if (options.updateFields?.length) {
|
|
@@ -12198,6 +12236,10 @@ class EntityService extends BaseService {
|
|
|
12198
12236
|
}
|
|
12199
12237
|
}, { headers: folderHeaders });
|
|
12200
12238
|
}
|
|
12239
|
+
async resolveEntityName(id, folderKey) {
|
|
12240
|
+
const response = await this.get(DATA_FABRIC_ENDPOINTS.ENTITY.GET_BY_ID(id), { headers: createHeaders({ [FOLDER_KEY]: folderKey }) });
|
|
12241
|
+
return transformData(response.data, EntityMap).name;
|
|
12242
|
+
}
|
|
12201
12243
|
applyFieldMappings(metadata) {
|
|
12202
12244
|
this.mapFieldTypes(metadata);
|
|
12203
12245
|
this.mapExternalFields(metadata);
|
|
@@ -12280,20 +12322,20 @@ class EntityService extends BaseService {
|
|
|
12280
12322
|
}
|
|
12281
12323
|
buildSchemaFieldPayload(field, refMeta) {
|
|
12282
12324
|
const fieldType = field.type ?? EntityFieldDataType.STRING;
|
|
12283
|
-
this.validateFieldConstraints(fieldType, field, field.
|
|
12325
|
+
this.validateFieldConstraints(fieldType, field, field.name);
|
|
12284
12326
|
const isRelationship = fieldType === EntityFieldDataType.RELATIONSHIP;
|
|
12285
12327
|
const isFile = fieldType === EntityFieldDataType.FILE;
|
|
12286
12328
|
if (isRelationship && (!field.referenceEntityId || !field.referenceFieldId)) {
|
|
12287
12329
|
throw new ValidationError({
|
|
12288
|
-
message: `Field '${field.
|
|
12330
|
+
message: `Field '${field.name}' of type ${fieldType} requires both referenceEntityId and referenceFieldId (UUIDs of the target entity and field).`
|
|
12289
12331
|
});
|
|
12290
12332
|
}
|
|
12291
12333
|
const mapping = EntitySchemaFieldTypeMap[fieldType];
|
|
12292
12334
|
const referenceEntityBody = refMeta?.referenceEntity ?? (field.referenceEntityId === undefined ? undefined : { id: field.referenceEntityId });
|
|
12293
12335
|
const referenceChoiceSetBody = refMeta?.referenceChoiceSet;
|
|
12294
12336
|
return {
|
|
12295
|
-
name: field.
|
|
12296
|
-
displayName: field.displayName ?? field.
|
|
12337
|
+
name: field.name,
|
|
12338
|
+
displayName: field.displayName ?? field.name,
|
|
12297
12339
|
sqlType: {
|
|
12298
12340
|
name: mapping.sqlTypeName,
|
|
12299
12341
|
...this.buildSqlTypeConstraints(fieldType, field)
|
|
@@ -13112,6 +13154,13 @@ function createCaseInstanceMethods(instanceData, service) {
|
|
|
13112
13154
|
if (!instanceData.instanceId)
|
|
13113
13155
|
throw new Error("Case instance ID is undefined");
|
|
13114
13156
|
return service.getStagesSlaSummary({ caseInstanceId: instanceData.instanceId });
|
|
13157
|
+
},
|
|
13158
|
+
async getVariables(options) {
|
|
13159
|
+
if (!instanceData.instanceId)
|
|
13160
|
+
throw new Error("Case instance ID is undefined");
|
|
13161
|
+
if (!instanceData.folderKey)
|
|
13162
|
+
throw new Error("Case instance folder key is undefined");
|
|
13163
|
+
return service.getVariables(instanceData.instanceId, instanceData.folderKey, options);
|
|
13115
13164
|
}
|
|
13116
13165
|
};
|
|
13117
13166
|
}
|
|
@@ -13248,6 +13297,100 @@ class BpmnHelpers {
|
|
|
13248
13297
|
};
|
|
13249
13298
|
}
|
|
13250
13299
|
}
|
|
13300
|
+
var INPUT_OUTPUT_REGEX = /<uipath:inputOutput\s+([^/]+?)(?:\/(?:>)?|>[\s\S]*?<\/uipath:inputOutput>)/g;
|
|
13301
|
+
var BPMN_ELEMENT_REGEX = /<bpmn:\w+\s+([^>]+)/g;
|
|
13302
|
+
function getVariableSource(bpmnXml) {
|
|
13303
|
+
const elementNameMap = new Map;
|
|
13304
|
+
const elementMatches = bpmnXml.matchAll(BPMN_ELEMENT_REGEX);
|
|
13305
|
+
for (const match of elementMatches) {
|
|
13306
|
+
const attributes = match[1];
|
|
13307
|
+
const idMatch = attributes.match(/id="([^"]+)"/);
|
|
13308
|
+
const nameMatch = attributes.match(/name="([^"]+)"/);
|
|
13309
|
+
if (idMatch && nameMatch) {
|
|
13310
|
+
elementNameMap.set(idMatch[1], nameMatch[1]);
|
|
13311
|
+
}
|
|
13312
|
+
}
|
|
13313
|
+
return elementNameMap;
|
|
13314
|
+
}
|
|
13315
|
+
function parseBpmnVariables(bpmnXml) {
|
|
13316
|
+
const variableMap = new Map;
|
|
13317
|
+
const variableSourceMap = getVariableSource(bpmnXml);
|
|
13318
|
+
const inputOutputMatches = bpmnXml.matchAll(INPUT_OUTPUT_REGEX);
|
|
13319
|
+
for (const match of inputOutputMatches) {
|
|
13320
|
+
const attributes = match[1];
|
|
13321
|
+
const idMatch = attributes.match(/id="([^"]+)"/);
|
|
13322
|
+
const nameMatch = attributes.match(/name="([^"]+)"/);
|
|
13323
|
+
const typeMatch = attributes.match(/type="([^"]+)"/);
|
|
13324
|
+
const elementIdMatch = attributes.match(/elementId="([^"]+)"/);
|
|
13325
|
+
if (idMatch && nameMatch && typeMatch && elementIdMatch) {
|
|
13326
|
+
const elementId = elementIdMatch[1];
|
|
13327
|
+
const sourceName = variableSourceMap.get(elementId) || elementId;
|
|
13328
|
+
const metadata = {
|
|
13329
|
+
id: idMatch[1],
|
|
13330
|
+
name: nameMatch[1],
|
|
13331
|
+
type: typeMatch[1],
|
|
13332
|
+
elementId,
|
|
13333
|
+
source: sourceName
|
|
13334
|
+
};
|
|
13335
|
+
variableMap.set(metadata.id, metadata);
|
|
13336
|
+
}
|
|
13337
|
+
}
|
|
13338
|
+
return variableMap;
|
|
13339
|
+
}
|
|
13340
|
+
function transformGlobalVariables(globals, variableMetadata) {
|
|
13341
|
+
const enrichedGlobalVariables = [];
|
|
13342
|
+
if (globals && typeof globals === "object") {
|
|
13343
|
+
for (const [variableId, value] of Object.entries(globals)) {
|
|
13344
|
+
const metadata = variableMetadata.get(variableId);
|
|
13345
|
+
if (metadata) {
|
|
13346
|
+
enrichedGlobalVariables.push({
|
|
13347
|
+
id: metadata.id,
|
|
13348
|
+
name: metadata.name,
|
|
13349
|
+
type: metadata.type,
|
|
13350
|
+
elementId: metadata.elementId,
|
|
13351
|
+
source: metadata.source,
|
|
13352
|
+
value
|
|
13353
|
+
});
|
|
13354
|
+
}
|
|
13355
|
+
}
|
|
13356
|
+
}
|
|
13357
|
+
return enrichedGlobalVariables;
|
|
13358
|
+
}
|
|
13359
|
+
async function fetchInstanceVariables(httpGet, instanceId, folderKey, options) {
|
|
13360
|
+
const queryParams = options?.parentElementId ? { parentElementId: options.parentElementId } : undefined;
|
|
13361
|
+
const [bpmnResult, variablesResult] = await Promise.allSettled([
|
|
13362
|
+
httpGet(MAESTRO_ENDPOINTS.INSTANCES.GET_BPMN(instanceId), {
|
|
13363
|
+
headers: createHeaders({
|
|
13364
|
+
[FOLDER_KEY]: folderKey,
|
|
13365
|
+
Accept: CONTENT_TYPES.XML
|
|
13366
|
+
})
|
|
13367
|
+
}),
|
|
13368
|
+
httpGet(MAESTRO_ENDPOINTS.INSTANCES.GET_VARIABLES(instanceId), {
|
|
13369
|
+
headers: createHeaders({ [FOLDER_KEY]: folderKey }),
|
|
13370
|
+
params: queryParams
|
|
13371
|
+
})
|
|
13372
|
+
]);
|
|
13373
|
+
if (variablesResult.status === "rejected") {
|
|
13374
|
+
throw variablesResult.reason;
|
|
13375
|
+
}
|
|
13376
|
+
const response = variablesResult.value;
|
|
13377
|
+
let variableMetadata = new Map;
|
|
13378
|
+
try {
|
|
13379
|
+
if (bpmnResult.status === "rejected") {
|
|
13380
|
+
throw bpmnResult.reason;
|
|
13381
|
+
}
|
|
13382
|
+
variableMetadata = parseBpmnVariables(bpmnResult.value.data);
|
|
13383
|
+
} catch (error) {
|
|
13384
|
+
console.warn(`Failed to fetch BPMN metadata for instance ${instanceId} :`, error);
|
|
13385
|
+
}
|
|
13386
|
+
const enrichedGlobalVariables = transformGlobalVariables(response.data.globals, variableMetadata);
|
|
13387
|
+
return {
|
|
13388
|
+
elements: response.data.elements,
|
|
13389
|
+
globalVariables: enrichedGlobalVariables,
|
|
13390
|
+
instanceId: response.data.instanceId,
|
|
13391
|
+
parentElementId: response.data.parentElementId
|
|
13392
|
+
};
|
|
13393
|
+
}
|
|
13251
13394
|
var ProcessInstanceMap = {
|
|
13252
13395
|
startedTimeUtc: "startedTime",
|
|
13253
13396
|
completedTimeUtc: "completedTime",
|
|
@@ -13368,85 +13511,8 @@ class ProcessInstancesService extends BaseService {
|
|
|
13368
13511
|
data: response.data
|
|
13369
13512
|
};
|
|
13370
13513
|
}
|
|
13371
|
-
parseBpmnVariables(bpmnXml) {
|
|
13372
|
-
const variableMap = new Map;
|
|
13373
|
-
const variableSourceMap = this.getVariableSource(bpmnXml);
|
|
13374
|
-
const inputOutputRegex = /<uipath:inputOutput\s+([^/]+?)(?:\/(?:>)?|>[\s\S]*?<\/uipath:inputOutput>)/g;
|
|
13375
|
-
const inputOutputMatches = bpmnXml.matchAll(inputOutputRegex);
|
|
13376
|
-
for (const match of inputOutputMatches) {
|
|
13377
|
-
const attributes = match[1];
|
|
13378
|
-
const idMatch = attributes.match(/id="([^"]+)"/);
|
|
13379
|
-
const nameMatch = attributes.match(/name="([^"]+)"/);
|
|
13380
|
-
const typeMatch = attributes.match(/type="([^"]+)"/);
|
|
13381
|
-
const elementIdMatch = attributes.match(/elementId="([^"]+)"/);
|
|
13382
|
-
if (idMatch && nameMatch && typeMatch && elementIdMatch) {
|
|
13383
|
-
const elementId = elementIdMatch[1];
|
|
13384
|
-
const sourceName = variableSourceMap.get(elementId) || elementId;
|
|
13385
|
-
const metadata = {
|
|
13386
|
-
id: idMatch[1],
|
|
13387
|
-
name: nameMatch[1],
|
|
13388
|
-
type: typeMatch[1],
|
|
13389
|
-
elementId,
|
|
13390
|
-
source: sourceName
|
|
13391
|
-
};
|
|
13392
|
-
variableMap.set(metadata.id, metadata);
|
|
13393
|
-
}
|
|
13394
|
-
}
|
|
13395
|
-
return variableMap;
|
|
13396
|
-
}
|
|
13397
|
-
getVariableSource(bpmnXml) {
|
|
13398
|
-
const elementNameMap = new Map;
|
|
13399
|
-
const elementRegex = /<bpmn:\w+\s+([^>]*id="([^"]+)"[^>]*name="([^"]+)"[^>]*)/g;
|
|
13400
|
-
const elementMatches = bpmnXml.matchAll(elementRegex);
|
|
13401
|
-
for (const match of elementMatches) {
|
|
13402
|
-
const elementId = match[2];
|
|
13403
|
-
const elementName = match[3];
|
|
13404
|
-
if (elementId && elementName) {
|
|
13405
|
-
elementNameMap.set(elementId, elementName);
|
|
13406
|
-
}
|
|
13407
|
-
}
|
|
13408
|
-
return elementNameMap;
|
|
13409
|
-
}
|
|
13410
|
-
transformGlobalVariables(globals, variableMetadata) {
|
|
13411
|
-
const enrichedGlobalVariables = [];
|
|
13412
|
-
if (globals && typeof globals === "object") {
|
|
13413
|
-
for (const [variableId, value] of Object.entries(globals)) {
|
|
13414
|
-
const metadata = variableMetadata.get(variableId);
|
|
13415
|
-
if (metadata) {
|
|
13416
|
-
enrichedGlobalVariables.push({
|
|
13417
|
-
id: metadata.id,
|
|
13418
|
-
name: metadata.name,
|
|
13419
|
-
type: metadata.type,
|
|
13420
|
-
elementId: metadata.elementId,
|
|
13421
|
-
source: metadata.source,
|
|
13422
|
-
value
|
|
13423
|
-
});
|
|
13424
|
-
}
|
|
13425
|
-
}
|
|
13426
|
-
}
|
|
13427
|
-
return enrichedGlobalVariables;
|
|
13428
|
-
}
|
|
13429
13514
|
async getVariables(instanceId, folderKey, options) {
|
|
13430
|
-
|
|
13431
|
-
try {
|
|
13432
|
-
const bpmnXml = await this.getBpmn(instanceId, folderKey);
|
|
13433
|
-
variableMetadata = this.parseBpmnVariables(bpmnXml);
|
|
13434
|
-
} catch (error) {
|
|
13435
|
-
console.warn(`Failed to fetch BPMN metadata for instance ${instanceId} :`, error);
|
|
13436
|
-
}
|
|
13437
|
-
const queryParams = options?.parentElementId ? { parentElementId: options.parentElementId } : undefined;
|
|
13438
|
-
const response = await this.get(MAESTRO_ENDPOINTS.INSTANCES.GET_VARIABLES(instanceId), {
|
|
13439
|
-
headers: createHeaders({ [FOLDER_KEY]: folderKey }),
|
|
13440
|
-
params: queryParams
|
|
13441
|
-
});
|
|
13442
|
-
const enrichedGlobalVariables = this.transformGlobalVariables(response.data.globals, variableMetadata);
|
|
13443
|
-
const variablesResponse = {
|
|
13444
|
-
elements: response.data.elements,
|
|
13445
|
-
globalVariables: enrichedGlobalVariables,
|
|
13446
|
-
instanceId: response.data.instanceId,
|
|
13447
|
-
parentElementId: response.data.parentElementId
|
|
13448
|
-
};
|
|
13449
|
-
return variablesResponse;
|
|
13515
|
+
return fetchInstanceVariables((path, opts) => this.get(path, opts ?? {}), instanceId, folderKey, options);
|
|
13450
13516
|
}
|
|
13451
13517
|
async getIncidents(instanceId, folderKey) {
|
|
13452
13518
|
const rawResponse = await this.get(MAESTRO_ENDPOINTS.INCIDENTS.GET_BY_INSTANCE(instanceId), {
|
|
@@ -13768,15 +13834,141 @@ function createTaskMethods(taskData, service) {
|
|
|
13768
13834
|
data: options.data,
|
|
13769
13835
|
action: options.action
|
|
13770
13836
|
}, folderId);
|
|
13837
|
+
},
|
|
13838
|
+
async saveData(data, options) {
|
|
13839
|
+
if (!taskData.id)
|
|
13840
|
+
throw new Error("Task ID is undefined");
|
|
13841
|
+
return service.saveData(taskData.id, data, resolveTaskFolder({ ...options, type: taskData.type }, taskData.folderId));
|
|
13842
|
+
},
|
|
13843
|
+
async saveTags(tags, options) {
|
|
13844
|
+
if (!taskData.id)
|
|
13845
|
+
throw new Error("Task ID is undefined");
|
|
13846
|
+
return service.saveTags(taskData.id, tags, resolveTaskFolder(options, taskData.folderId));
|
|
13847
|
+
},
|
|
13848
|
+
async editMetadata(options) {
|
|
13849
|
+
if (!taskData.id)
|
|
13850
|
+
throw new Error("Task ID is undefined");
|
|
13851
|
+
return service.editMetadata(taskData.id, resolveTaskFolder(options, taskData.folderId));
|
|
13852
|
+
},
|
|
13853
|
+
getComments(options) {
|
|
13854
|
+
if (!taskData.id)
|
|
13855
|
+
throw new Error("Task ID is undefined");
|
|
13856
|
+
return service.getComments(taskData.id, resolveTaskFolder(options, taskData.folderId));
|
|
13857
|
+
},
|
|
13858
|
+
async createComment(text, options) {
|
|
13859
|
+
if (!taskData.id)
|
|
13860
|
+
throw new Error("Task ID is undefined");
|
|
13861
|
+
return service.createComment(taskData.id, text, resolveTaskFolder(options, taskData.folderId));
|
|
13771
13862
|
}
|
|
13772
13863
|
};
|
|
13773
13864
|
}
|
|
13865
|
+
function resolveTaskFolder(options, folderId) {
|
|
13866
|
+
if (options && (options.folderId !== undefined || options.folderKey !== undefined || options.folderPath !== undefined)) {
|
|
13867
|
+
return options;
|
|
13868
|
+
}
|
|
13869
|
+
return { ...options, folderId };
|
|
13870
|
+
}
|
|
13774
13871
|
function createTaskWithMethods(taskData, service) {
|
|
13775
13872
|
const methods = createTaskMethods(taskData, service);
|
|
13776
13873
|
return Object.assign({}, taskData, methods);
|
|
13777
13874
|
}
|
|
13875
|
+
function resolveFolderHeaders(input) {
|
|
13876
|
+
const { folderId, folderKey, folderPath, resourceType, fallbackFolderKey } = input;
|
|
13877
|
+
const trimmedKey = folderKey?.trim();
|
|
13878
|
+
const trimmedPath = folderPath?.trim();
|
|
13879
|
+
const headers = {};
|
|
13880
|
+
if (folderId !== undefined) {
|
|
13881
|
+
headers[FOLDER_ID] = folderId;
|
|
13882
|
+
}
|
|
13883
|
+
if (trimmedKey) {
|
|
13884
|
+
headers[FOLDER_KEY] = trimmedKey;
|
|
13885
|
+
}
|
|
13886
|
+
if (trimmedPath) {
|
|
13887
|
+
headers[FOLDER_PATH_ENCODED] = encodeFolderPathHeader(trimmedPath);
|
|
13888
|
+
}
|
|
13889
|
+
if (Object.keys(headers).length === 0) {
|
|
13890
|
+
if (!fallbackFolderKey) {
|
|
13891
|
+
throw new ValidationError({
|
|
13892
|
+
message: `${resourceType} requires folder context: pass \`folderId\`, \`folderKey\`, or \`folderPath\`, or initialize the SDK with a folder context.`
|
|
13893
|
+
});
|
|
13894
|
+
}
|
|
13895
|
+
headers[FOLDER_KEY] = fallbackFolderKey;
|
|
13896
|
+
}
|
|
13897
|
+
return createHeaders(headers);
|
|
13898
|
+
}
|
|
13899
|
+
function validateName(resourceType, name) {
|
|
13900
|
+
if (!name) {
|
|
13901
|
+
throw new ValidationError({
|
|
13902
|
+
message: `${resourceType} name is required and cannot be empty.`
|
|
13903
|
+
});
|
|
13904
|
+
}
|
|
13905
|
+
const trimmed = name.trim();
|
|
13906
|
+
if (!trimmed) {
|
|
13907
|
+
throw new ValidationError({
|
|
13908
|
+
message: `${resourceType} name is required and cannot be empty.`
|
|
13909
|
+
});
|
|
13910
|
+
}
|
|
13911
|
+
return trimmed;
|
|
13912
|
+
}
|
|
13913
|
+
var SINGLE_QUOTE_RE = /'/g;
|
|
13914
|
+
|
|
13915
|
+
class FolderScopedService extends BaseService {
|
|
13916
|
+
async _getByFolder(endpoint, folderId, options = {}, transformFn) {
|
|
13917
|
+
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
13918
|
+
const keysToPrefix = Object.keys(options);
|
|
13919
|
+
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
13920
|
+
const response = await this.get(endpoint, {
|
|
13921
|
+
params: apiOptions,
|
|
13922
|
+
headers
|
|
13923
|
+
});
|
|
13924
|
+
if (transformFn) {
|
|
13925
|
+
return response.data?.value.map(transformFn);
|
|
13926
|
+
}
|
|
13927
|
+
return response.data?.value;
|
|
13928
|
+
}
|
|
13929
|
+
async getByNameLookup(resourceType, endpoint, name, options, transform2, responseFieldMap) {
|
|
13930
|
+
const validatedName = validateName(resourceType, name);
|
|
13931
|
+
const { folderId, folderKey, folderPath, ...queryOptions } = options;
|
|
13932
|
+
const headers = resolveFolderHeaders({
|
|
13933
|
+
folderId,
|
|
13934
|
+
folderKey,
|
|
13935
|
+
folderPath,
|
|
13936
|
+
resourceType: `${resourceType}.getByName`,
|
|
13937
|
+
fallbackFolderKey: this.config.folderKey
|
|
13938
|
+
});
|
|
13939
|
+
const apiFieldOptions = responseFieldMap ? transformOptions(queryOptions, responseFieldMap) : queryOptions;
|
|
13940
|
+
const apiOptions = {
|
|
13941
|
+
...addPrefixToKeys(apiFieldOptions, ODATA_PREFIX, Object.keys(apiFieldOptions)),
|
|
13942
|
+
$filter: `Name eq '${validatedName.replace(SINGLE_QUOTE_RE, "''")}'`,
|
|
13943
|
+
$top: "1"
|
|
13944
|
+
};
|
|
13945
|
+
const response = await this.get(endpoint, {
|
|
13946
|
+
headers,
|
|
13947
|
+
params: apiOptions
|
|
13948
|
+
});
|
|
13949
|
+
const items = response.data?.value;
|
|
13950
|
+
if (!items?.length) {
|
|
13951
|
+
const folderHint = describeFolderForError(folderId, folderKey, folderPath);
|
|
13952
|
+
throw new NotFoundError({
|
|
13953
|
+
message: `${resourceType} '${validatedName}' not found${folderHint}.`
|
|
13954
|
+
});
|
|
13955
|
+
}
|
|
13956
|
+
return transform2(items[0]);
|
|
13957
|
+
}
|
|
13958
|
+
}
|
|
13959
|
+
function describeFolderForError(folderId, folderKey, folderPath) {
|
|
13960
|
+
const path = folderPath?.trim();
|
|
13961
|
+
if (path)
|
|
13962
|
+
return ` in folder '${path}'`;
|
|
13963
|
+
const key = folderKey?.trim();
|
|
13964
|
+
if (key)
|
|
13965
|
+
return ` in folder (key: ${key})`;
|
|
13966
|
+
if (typeof folderId === "number")
|
|
13967
|
+
return ` in folder (id: ${folderId})`;
|
|
13968
|
+
return "";
|
|
13969
|
+
}
|
|
13778
13970
|
|
|
13779
|
-
class TaskService extends
|
|
13971
|
+
class TaskService extends FolderScopedService {
|
|
13780
13972
|
constructor() {
|
|
13781
13973
|
super(...arguments);
|
|
13782
13974
|
this.processTaskParameters = (options, folderId) => {
|
|
@@ -13919,6 +14111,113 @@ class TaskService extends BaseService {
|
|
|
13919
14111
|
data: options
|
|
13920
14112
|
};
|
|
13921
14113
|
}
|
|
14114
|
+
async getDataById(id, options) {
|
|
14115
|
+
if (!id) {
|
|
14116
|
+
throw new ValidationError({ message: "id is required for getDataById" });
|
|
14117
|
+
}
|
|
14118
|
+
const headers = this.resolveFolder(options, "Tasks.getDataById");
|
|
14119
|
+
return this.fetchTaskData(TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID, { taskId: id }, headers);
|
|
14120
|
+
}
|
|
14121
|
+
async getDataByKey(key, options) {
|
|
14122
|
+
if (!key) {
|
|
14123
|
+
throw new ValidationError({ message: "key is required for getDataByKey" });
|
|
14124
|
+
}
|
|
14125
|
+
const headers = this.resolveFolder(options, "Tasks.getDataByKey");
|
|
14126
|
+
return this.fetchTaskData(TASK_ENDPOINTS.GET_GENERIC_TASK_BY_KEY, { taskKey: key }, headers);
|
|
14127
|
+
}
|
|
14128
|
+
async fetchTaskData(endpoint, params, headers) {
|
|
14129
|
+
const response = await this.get(endpoint, { params, headers });
|
|
14130
|
+
const { data: userPayload, ...systemFields } = response.data;
|
|
14131
|
+
const transformed = transformData(systemFields, TaskMap);
|
|
14132
|
+
const withStatus = applyDataTransforms(transformed, { field: "status", valueMap: TaskStatusMap });
|
|
14133
|
+
return { ...withStatus, data: userPayload ?? null };
|
|
14134
|
+
}
|
|
14135
|
+
async saveData(taskId, data, options) {
|
|
14136
|
+
if (!taskId) {
|
|
14137
|
+
throw new ValidationError({ message: "taskId is required for saveData" });
|
|
14138
|
+
}
|
|
14139
|
+
const headers = this.resolveFolder(options, "Tasks.saveData");
|
|
14140
|
+
let type = options?.type;
|
|
14141
|
+
if (!type) {
|
|
14142
|
+
const task = await this.fetchTaskData(TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID, { taskId }, headers);
|
|
14143
|
+
type = task.type;
|
|
14144
|
+
}
|
|
14145
|
+
let endpoint;
|
|
14146
|
+
switch (type) {
|
|
14147
|
+
case TaskType.Form:
|
|
14148
|
+
endpoint = TASK_ENDPOINTS.SAVE_FORM_TASK_DATA;
|
|
14149
|
+
break;
|
|
14150
|
+
case TaskType.App:
|
|
14151
|
+
endpoint = TASK_ENDPOINTS.SAVE_APP_TASK_DATA;
|
|
14152
|
+
break;
|
|
14153
|
+
default:
|
|
14154
|
+
endpoint = TASK_ENDPOINTS.SAVE_TASK_DATA;
|
|
14155
|
+
break;
|
|
14156
|
+
}
|
|
14157
|
+
await this.put(endpoint, { TaskId: taskId, Data: data }, { headers });
|
|
14158
|
+
}
|
|
14159
|
+
async saveTags(taskId, tags, options) {
|
|
14160
|
+
if (!taskId) {
|
|
14161
|
+
throw new ValidationError({ message: "taskId is required for saveTags" });
|
|
14162
|
+
}
|
|
14163
|
+
const headers = this.resolveFolder(options, "Tasks.saveTags");
|
|
14164
|
+
const body = { TaskId: taskId, Tags: tags.map((tag) => camelToPascalCaseKeys(tag)) };
|
|
14165
|
+
await this.put(TASK_ENDPOINTS.SAVE_TASK_TAGS, body, { headers });
|
|
14166
|
+
}
|
|
14167
|
+
async editMetadata(taskId, options) {
|
|
14168
|
+
if (!taskId) {
|
|
14169
|
+
throw new ValidationError({ message: "taskId is required for editMetadata" });
|
|
14170
|
+
}
|
|
14171
|
+
const { folderId, folderKey, folderPath, expand: _expand, select: _select, unlinkTaskCatalog, ...metadata } = options ?? {};
|
|
14172
|
+
const headers = resolveFolderHeaders({ folderId, folderKey, folderPath, resourceType: "Tasks.editMetadata", fallbackFolderKey: this.config.folderKey });
|
|
14173
|
+
const body = { taskId, ...metadata, ...unlinkTaskCatalog !== undefined ? { unsetTaskCatalog: unlinkTaskCatalog } : {} };
|
|
14174
|
+
await this.post(TASK_ENDPOINTS.EDIT_TASK_METADATA, camelToPascalCaseKeys(body), { headers });
|
|
14175
|
+
}
|
|
14176
|
+
async getComments(taskId, options) {
|
|
14177
|
+
if (!taskId) {
|
|
14178
|
+
throw new ValidationError({ message: "taskId is required for getComments" });
|
|
14179
|
+
}
|
|
14180
|
+
const { folderId, folderKey, folderPath, ...queryOptions } = options ?? {};
|
|
14181
|
+
const headers = resolveFolderHeaders({ folderId, folderKey, folderPath, resourceType: "Tasks.getComments", fallbackFolderKey: this.config.folderKey });
|
|
14182
|
+
const transformComment = (comment) => transformData(pascalToCamelCaseKeys(comment), TaskMap);
|
|
14183
|
+
const apiOptions = transformOptions(queryOptions, TaskMap);
|
|
14184
|
+
return PaginationHelpers.getAll({
|
|
14185
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
14186
|
+
getEndpoint: () => TASK_NOTE_ENDPOINTS.GET_BY_TASK_ID(taskId),
|
|
14187
|
+
headers,
|
|
14188
|
+
transformFn: transformComment,
|
|
14189
|
+
pagination: {
|
|
14190
|
+
paginationType: PaginationType.OFFSET,
|
|
14191
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
14192
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
14193
|
+
paginationParams: {
|
|
14194
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
14195
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
14196
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM
|
|
14197
|
+
}
|
|
14198
|
+
}
|
|
14199
|
+
}, apiOptions);
|
|
14200
|
+
}
|
|
14201
|
+
async createComment(taskId, text, options) {
|
|
14202
|
+
if (!taskId) {
|
|
14203
|
+
throw new ValidationError({ message: "taskId is required for createComment" });
|
|
14204
|
+
}
|
|
14205
|
+
if (!text) {
|
|
14206
|
+
throw new ValidationError({ message: "text is required for createComment" });
|
|
14207
|
+
}
|
|
14208
|
+
const headers = this.resolveFolder(options, "Tasks.createComment");
|
|
14209
|
+
const response = await this.post(TASK_NOTE_ENDPOINTS.CREATE, camelToPascalCaseKeys({ taskId, text }), { headers });
|
|
14210
|
+
return transformData(pascalToCamelCaseKeys(response.data), TaskMap);
|
|
14211
|
+
}
|
|
14212
|
+
resolveFolder(options, resourceType) {
|
|
14213
|
+
return resolveFolderHeaders({
|
|
14214
|
+
folderId: options?.folderId,
|
|
14215
|
+
folderKey: options?.folderKey,
|
|
14216
|
+
folderPath: options?.folderPath,
|
|
14217
|
+
resourceType,
|
|
14218
|
+
fallbackFolderKey: this.config.folderKey
|
|
14219
|
+
});
|
|
14220
|
+
}
|
|
13922
14221
|
getByTaskType(id, folderId, taskType, options = {}) {
|
|
13923
14222
|
const endpoint = TASK_TYPE_ENDPOINTS[taskType];
|
|
13924
14223
|
const extraParams = taskType === TaskType.Form ? { expandOnFormLayout: true, ...options } : options;
|
|
@@ -13966,6 +14265,27 @@ __decorate([
|
|
|
13966
14265
|
__decorate([
|
|
13967
14266
|
track("Tasks.Complete")
|
|
13968
14267
|
], TaskService.prototype, "complete", null);
|
|
14268
|
+
__decorate([
|
|
14269
|
+
track("Tasks.GetDataById")
|
|
14270
|
+
], TaskService.prototype, "getDataById", null);
|
|
14271
|
+
__decorate([
|
|
14272
|
+
track("Tasks.GetDataByKey")
|
|
14273
|
+
], TaskService.prototype, "getDataByKey", null);
|
|
14274
|
+
__decorate([
|
|
14275
|
+
track("Tasks.SaveData")
|
|
14276
|
+
], TaskService.prototype, "saveData", null);
|
|
14277
|
+
__decorate([
|
|
14278
|
+
track("Tasks.SaveTags")
|
|
14279
|
+
], TaskService.prototype, "saveTags", null);
|
|
14280
|
+
__decorate([
|
|
14281
|
+
track("Tasks.EditMetadata")
|
|
14282
|
+
], TaskService.prototype, "editMetadata", null);
|
|
14283
|
+
__decorate([
|
|
14284
|
+
track("Tasks.GetComments")
|
|
14285
|
+
], TaskService.prototype, "getComments", null);
|
|
14286
|
+
__decorate([
|
|
14287
|
+
track("Tasks.CreateComment")
|
|
14288
|
+
], TaskService.prototype, "createComment", null);
|
|
13969
14289
|
|
|
13970
14290
|
class CaseInstancesService extends BaseService {
|
|
13971
14291
|
constructor(instance) {
|
|
@@ -14118,6 +14438,9 @@ class CaseInstancesService extends BaseService {
|
|
|
14118
14438
|
}
|
|
14119
14439
|
return transformedResponse;
|
|
14120
14440
|
}
|
|
14441
|
+
async getVariables(instanceId, folderKey, options) {
|
|
14442
|
+
return fetchInstanceVariables((path, opts) => this.get(path, opts ?? {}), instanceId, folderKey, options);
|
|
14443
|
+
}
|
|
14121
14444
|
async getStages(caseInstanceId, folderKey) {
|
|
14122
14445
|
const [executionHistoryResponse, caseJsonResponse] = await Promise.allSettled([
|
|
14123
14446
|
this.getExecutionHistory(caseInstanceId, folderKey),
|
|
@@ -14270,6 +14593,9 @@ __decorate([
|
|
|
14270
14593
|
__decorate([
|
|
14271
14594
|
track("CaseInstances.GetExecutionHistory")
|
|
14272
14595
|
], CaseInstancesService.prototype, "getExecutionHistory", null);
|
|
14596
|
+
__decorate([
|
|
14597
|
+
track("CaseInstances.GetVariables")
|
|
14598
|
+
], CaseInstancesService.prototype, "getVariables", null);
|
|
14273
14599
|
__decorate([
|
|
14274
14600
|
track("CaseInstances.GetStages")
|
|
14275
14601
|
], CaseInstancesService.prototype, "getStages", null);
|
|
@@ -14282,101 +14608,6 @@ __decorate([
|
|
|
14282
14608
|
__decorate([
|
|
14283
14609
|
track("CaseInstances.GetStagesSlaSummary")
|
|
14284
14610
|
], CaseInstancesService.prototype, "getStagesSlaSummary", null);
|
|
14285
|
-
function validateName(resourceType, name) {
|
|
14286
|
-
if (!name) {
|
|
14287
|
-
throw new ValidationError({
|
|
14288
|
-
message: `${resourceType} name is required and cannot be empty.`
|
|
14289
|
-
});
|
|
14290
|
-
}
|
|
14291
|
-
const trimmed = name.trim();
|
|
14292
|
-
if (!trimmed) {
|
|
14293
|
-
throw new ValidationError({
|
|
14294
|
-
message: `${resourceType} name is required and cannot be empty.`
|
|
14295
|
-
});
|
|
14296
|
-
}
|
|
14297
|
-
return trimmed;
|
|
14298
|
-
}
|
|
14299
|
-
function resolveFolderHeaders(input) {
|
|
14300
|
-
const { folderId, folderKey, folderPath, resourceType, fallbackFolderKey } = input;
|
|
14301
|
-
const trimmedKey = folderKey?.trim();
|
|
14302
|
-
const trimmedPath = folderPath?.trim();
|
|
14303
|
-
const headers = {};
|
|
14304
|
-
if (folderId !== undefined) {
|
|
14305
|
-
headers[FOLDER_ID] = folderId;
|
|
14306
|
-
}
|
|
14307
|
-
if (trimmedKey) {
|
|
14308
|
-
headers[FOLDER_KEY] = trimmedKey;
|
|
14309
|
-
}
|
|
14310
|
-
if (trimmedPath) {
|
|
14311
|
-
headers[FOLDER_PATH_ENCODED] = encodeFolderPathHeader(trimmedPath);
|
|
14312
|
-
}
|
|
14313
|
-
if (Object.keys(headers).length === 0) {
|
|
14314
|
-
if (!fallbackFolderKey) {
|
|
14315
|
-
throw new ValidationError({
|
|
14316
|
-
message: `${resourceType} requires folder context: pass \`folderId\`, \`folderKey\`, or \`folderPath\`, or initialize the SDK with a folder context.`
|
|
14317
|
-
});
|
|
14318
|
-
}
|
|
14319
|
-
headers[FOLDER_KEY] = fallbackFolderKey;
|
|
14320
|
-
}
|
|
14321
|
-
return createHeaders(headers);
|
|
14322
|
-
}
|
|
14323
|
-
var SINGLE_QUOTE_RE = /'/g;
|
|
14324
|
-
|
|
14325
|
-
class FolderScopedService extends BaseService {
|
|
14326
|
-
async _getByFolder(endpoint, folderId, options = {}, transformFn) {
|
|
14327
|
-
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
14328
|
-
const keysToPrefix = Object.keys(options);
|
|
14329
|
-
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
14330
|
-
const response = await this.get(endpoint, {
|
|
14331
|
-
params: apiOptions,
|
|
14332
|
-
headers
|
|
14333
|
-
});
|
|
14334
|
-
if (transformFn) {
|
|
14335
|
-
return response.data?.value.map(transformFn);
|
|
14336
|
-
}
|
|
14337
|
-
return response.data?.value;
|
|
14338
|
-
}
|
|
14339
|
-
async getByNameLookup(resourceType, endpoint, name, options, transform2, responseFieldMap) {
|
|
14340
|
-
const validatedName = validateName(resourceType, name);
|
|
14341
|
-
const { folderId, folderKey, folderPath, ...queryOptions } = options;
|
|
14342
|
-
const headers = resolveFolderHeaders({
|
|
14343
|
-
folderId,
|
|
14344
|
-
folderKey,
|
|
14345
|
-
folderPath,
|
|
14346
|
-
resourceType: `${resourceType}.getByName`,
|
|
14347
|
-
fallbackFolderKey: this.config.folderKey
|
|
14348
|
-
});
|
|
14349
|
-
const apiFieldOptions = responseFieldMap ? transformOptions(queryOptions, responseFieldMap) : queryOptions;
|
|
14350
|
-
const apiOptions = {
|
|
14351
|
-
...addPrefixToKeys(apiFieldOptions, ODATA_PREFIX, Object.keys(apiFieldOptions)),
|
|
14352
|
-
$filter: `Name eq '${validatedName.replace(SINGLE_QUOTE_RE, "''")}'`,
|
|
14353
|
-
$top: "1"
|
|
14354
|
-
};
|
|
14355
|
-
const response = await this.get(endpoint, {
|
|
14356
|
-
headers,
|
|
14357
|
-
params: apiOptions
|
|
14358
|
-
});
|
|
14359
|
-
const items = response.data?.value;
|
|
14360
|
-
if (!items?.length) {
|
|
14361
|
-
const folderHint = describeFolderForError(folderId, folderKey, folderPath);
|
|
14362
|
-
throw new NotFoundError({
|
|
14363
|
-
message: `${resourceType} '${validatedName}' not found${folderHint}.`
|
|
14364
|
-
});
|
|
14365
|
-
}
|
|
14366
|
-
return transform2(items[0]);
|
|
14367
|
-
}
|
|
14368
|
-
}
|
|
14369
|
-
function describeFolderForError(folderId, folderKey, folderPath) {
|
|
14370
|
-
const path = folderPath?.trim();
|
|
14371
|
-
if (path)
|
|
14372
|
-
return ` in folder '${path}'`;
|
|
14373
|
-
const key = folderKey?.trim();
|
|
14374
|
-
if (key)
|
|
14375
|
-
return ` in folder (key: ${key})`;
|
|
14376
|
-
if (typeof folderId === "number")
|
|
14377
|
-
return ` in folder (id: ${folderId})`;
|
|
14378
|
-
return "";
|
|
14379
|
-
}
|
|
14380
14611
|
var AssetValueScope;
|
|
14381
14612
|
(function(AssetValueScope2) {
|
|
14382
14613
|
AssetValueScope2["Global"] = "Global";
|
|
@@ -14823,6 +15054,20 @@ function createJobMethods(jobData, service) {
|
|
|
14823
15054
|
if (!jobData.folderId)
|
|
14824
15055
|
throw new Error("Job folderId is undefined");
|
|
14825
15056
|
return service.restart(jobData.key, jobData.folderId);
|
|
15057
|
+
},
|
|
15058
|
+
async getAttachments() {
|
|
15059
|
+
if (!jobData.key)
|
|
15060
|
+
throw new Error("Job key is undefined");
|
|
15061
|
+
if (!jobData.folderId)
|
|
15062
|
+
throw new Error("Job folderId is undefined");
|
|
15063
|
+
return service.getAttachments(jobData.key, jobData.folderId);
|
|
15064
|
+
},
|
|
15065
|
+
async linkAttachment(attachmentId, options) {
|
|
15066
|
+
if (!jobData.key)
|
|
15067
|
+
throw new Error("Job key is undefined");
|
|
15068
|
+
if (!jobData.folderId)
|
|
15069
|
+
throw new Error("Job folderId is undefined");
|
|
15070
|
+
return service.linkAttachment(attachmentId, jobData.key, jobData.folderId, options);
|
|
14826
15071
|
}
|
|
14827
15072
|
};
|
|
14828
15073
|
}
|
|
@@ -14860,10 +15105,51 @@ class AttachmentService extends BaseService {
|
|
|
14860
15105
|
camelCased.blobFileAccess = transformData(camelCased.blobFileAccess, BucketMap);
|
|
14861
15106
|
return transformData(camelCased, AttachmentsMap);
|
|
14862
15107
|
}
|
|
15108
|
+
async create(name, content, options) {
|
|
15109
|
+
if (!name) {
|
|
15110
|
+
throw new ValidationError({ message: "name is required for create" });
|
|
15111
|
+
}
|
|
15112
|
+
if (!content) {
|
|
15113
|
+
throw new ValidationError({ message: "content is required for create" });
|
|
15114
|
+
}
|
|
15115
|
+
const response = await this.post(ORCHESTRATOR_ATTACHMENT_ENDPOINTS.CREATE, camelToPascalCaseKeys({
|
|
15116
|
+
name,
|
|
15117
|
+
jobKey: options?.jobKey,
|
|
15118
|
+
attachmentCategory: options?.category
|
|
15119
|
+
}), { headers: createHeaders({ [FOLDER_ID]: options?.folderId }) });
|
|
15120
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
15121
|
+
camelCased.blobFileAccess = transformData(camelCased.blobFileAccess, BucketMap);
|
|
15122
|
+
const attachment = transformData(camelCased, AttachmentsMap);
|
|
15123
|
+
await this.uploadContent(attachment.blobFileAccess, content);
|
|
15124
|
+
const { blobFileAccess: _blobFileAccess, "@odata.context": _odataContext, ...created } = attachment;
|
|
15125
|
+
return created;
|
|
15126
|
+
}
|
|
15127
|
+
async uploadContent(blobFileAccess, content) {
|
|
15128
|
+
if (!blobFileAccess?.uri) {
|
|
15129
|
+
throw new ServerError({ message: "Attachment upload URI missing from the create response" });
|
|
15130
|
+
}
|
|
15131
|
+
const rawHeaders = blobFileAccess.headers;
|
|
15132
|
+
const requestHeaders = rawHeaders && "keys" in rawHeaders && "values" in rawHeaders ? arrayDictionaryToRecord(rawHeaders) : { ...rawHeaders };
|
|
15133
|
+
if (blobFileAccess.requiresAuth) {
|
|
15134
|
+
requestHeaders["Authorization"] = `Bearer ${await this.getValidAuthToken()}`;
|
|
15135
|
+
}
|
|
15136
|
+
const response = await fetch(blobFileAccess.uri, {
|
|
15137
|
+
method: "PUT",
|
|
15138
|
+
body: content,
|
|
15139
|
+
headers: createHeaders(requestHeaders)
|
|
15140
|
+
});
|
|
15141
|
+
if (!response.ok) {
|
|
15142
|
+
const errorInfo = await errorResponseParser.parse(response);
|
|
15143
|
+
throw ErrorFactory.createFromHttpStatus(response.status, errorInfo);
|
|
15144
|
+
}
|
|
15145
|
+
}
|
|
14863
15146
|
}
|
|
14864
15147
|
__decorate([
|
|
14865
15148
|
track("Attachments.GetById")
|
|
14866
15149
|
], AttachmentService.prototype, "getById", null);
|
|
15150
|
+
__decorate([
|
|
15151
|
+
track("Attachments.Create")
|
|
15152
|
+
], AttachmentService.prototype, "create", null);
|
|
14867
15153
|
var PackageType;
|
|
14868
15154
|
(function(PackageType2) {
|
|
14869
15155
|
PackageType2["Undefined"] = "Undefined";
|
|
@@ -15108,6 +15394,38 @@ class JobService extends FolderScopedService {
|
|
|
15108
15394
|
const rawJob = transformData(pascalToCamelCaseKeys(response.data), JobMap);
|
|
15109
15395
|
return createJobWithMethods(rawJob, this);
|
|
15110
15396
|
}
|
|
15397
|
+
async getAttachments(jobKey, folderId) {
|
|
15398
|
+
if (!jobKey) {
|
|
15399
|
+
throw new ValidationError({ message: "jobKey is required for getAttachments" });
|
|
15400
|
+
}
|
|
15401
|
+
if (!folderId) {
|
|
15402
|
+
throw new ValidationError({ message: "folderId is required for getAttachments" });
|
|
15403
|
+
}
|
|
15404
|
+
const response = await this.get(JOB_ENDPOINTS.ATTACHMENTS.GET_BY_JOB_KEY, {
|
|
15405
|
+
params: { jobKey },
|
|
15406
|
+
headers: createHeaders({ [FOLDER_ID]: folderId })
|
|
15407
|
+
});
|
|
15408
|
+
return transformData(response.data, JobMap);
|
|
15409
|
+
}
|
|
15410
|
+
async linkAttachment(attachmentId, jobKey, folderId, options) {
|
|
15411
|
+
if (!attachmentId) {
|
|
15412
|
+
throw new ValidationError({ message: "attachmentId is required for linkAttachment" });
|
|
15413
|
+
}
|
|
15414
|
+
if (!jobKey) {
|
|
15415
|
+
throw new ValidationError({ message: "jobKey is required for linkAttachment" });
|
|
15416
|
+
}
|
|
15417
|
+
if (!folderId) {
|
|
15418
|
+
throw new ValidationError({ message: "folderId is required for linkAttachment" });
|
|
15419
|
+
}
|
|
15420
|
+
const response = await this.post(JOB_ENDPOINTS.ATTACHMENTS.LINK, {
|
|
15421
|
+
attachmentId,
|
|
15422
|
+
jobKey,
|
|
15423
|
+
category: options?.category
|
|
15424
|
+
}, {
|
|
15425
|
+
headers: createHeaders({ [FOLDER_ID]: folderId })
|
|
15426
|
+
});
|
|
15427
|
+
return transformData(response.data, JobMap);
|
|
15428
|
+
}
|
|
15111
15429
|
async downloadOutputFile(outputFileKey) {
|
|
15112
15430
|
const attachment = await this.attachmentService.getById(outputFileKey);
|
|
15113
15431
|
const blobAccess = attachment.blobFileAccess;
|
|
@@ -15183,6 +15501,12 @@ __decorate([
|
|
|
15183
15501
|
__decorate([
|
|
15184
15502
|
track("Jobs.Restart")
|
|
15185
15503
|
], JobService.prototype, "restart", null);
|
|
15504
|
+
__decorate([
|
|
15505
|
+
track("Jobs.GetAttachments")
|
|
15506
|
+
], JobService.prototype, "getAttachments", null);
|
|
15507
|
+
__decorate([
|
|
15508
|
+
track("Jobs.LinkAttachment")
|
|
15509
|
+
], JobService.prototype, "linkAttachment", null);
|
|
15186
15510
|
var JobSubState;
|
|
15187
15511
|
(function(JobSubState2) {
|
|
15188
15512
|
JobSubState2["WithFaults"] = "WITH_FAULTS";
|
|
@@ -15356,6 +15680,112 @@ __decorate([
|
|
|
15356
15680
|
__decorate([
|
|
15357
15681
|
track("Queues.GetById")
|
|
15358
15682
|
], QueueService.prototype, "getById", null);
|
|
15683
|
+
var TaskCatalogMap = {
|
|
15684
|
+
creationTime: "createdTime",
|
|
15685
|
+
lastModificationTime: "lastModifiedTime"
|
|
15686
|
+
};
|
|
15687
|
+
var TaskCatalogRetentionAction;
|
|
15688
|
+
(function(TaskCatalogRetentionAction2) {
|
|
15689
|
+
TaskCatalogRetentionAction2["Delete"] = "Delete";
|
|
15690
|
+
TaskCatalogRetentionAction2["Archive"] = "Archive";
|
|
15691
|
+
TaskCatalogRetentionAction2["None"] = "None";
|
|
15692
|
+
})(TaskCatalogRetentionAction || (TaskCatalogRetentionAction = {}));
|
|
15693
|
+
|
|
15694
|
+
class TaskCatalogService extends FolderScopedService {
|
|
15695
|
+
async getAll(options) {
|
|
15696
|
+
const { folderId, folderKey, folderPath, ...queryOptions } = options ?? {};
|
|
15697
|
+
const headers = resolveFolderHeaders({ folderId, folderKey, folderPath, resourceType: "TaskCatalogs.getAll", fallbackFolderKey: this.config.folderKey });
|
|
15698
|
+
const transformCatalog = (catalog) => transformData(pascalToCamelCaseKeys(catalog), TaskCatalogMap);
|
|
15699
|
+
const apiOptions = transformOptions(queryOptions, TaskCatalogMap);
|
|
15700
|
+
return PaginationHelpers.getAll({
|
|
15701
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
15702
|
+
getEndpoint: () => TASK_CATALOG_ENDPOINTS.GET_ALL,
|
|
15703
|
+
headers,
|
|
15704
|
+
transformFn: transformCatalog,
|
|
15705
|
+
pagination: {
|
|
15706
|
+
paginationType: PaginationType.OFFSET,
|
|
15707
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
15708
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
15709
|
+
paginationParams: {
|
|
15710
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
15711
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
15712
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM
|
|
15713
|
+
}
|
|
15714
|
+
}
|
|
15715
|
+
}, apiOptions);
|
|
15716
|
+
}
|
|
15717
|
+
async getById(id, options = {}) {
|
|
15718
|
+
return this.fetchById(id, options);
|
|
15719
|
+
}
|
|
15720
|
+
async fetchById(id, options = {}) {
|
|
15721
|
+
const { folderId, folderKey, folderPath, ...queryOptions } = options;
|
|
15722
|
+
const headers = resolveFolderHeaders({ folderId, folderKey, folderPath, resourceType: "TaskCatalogs.getById", fallbackFolderKey: this.config.folderKey });
|
|
15723
|
+
const apiFieldOptions = transformOptions(queryOptions, TaskCatalogMap);
|
|
15724
|
+
const apiOptions = addPrefixToKeys(apiFieldOptions, ODATA_PREFIX, Object.keys(apiFieldOptions));
|
|
15725
|
+
const response = await this.get(TASK_CATALOG_ENDPOINTS.GET_BY_ID(id), { headers, params: apiOptions });
|
|
15726
|
+
return transformData(pascalToCamelCaseKeys(response.data), TaskCatalogMap);
|
|
15727
|
+
}
|
|
15728
|
+
async getByName(name, options = {}) {
|
|
15729
|
+
return this.getByNameLookup("TaskCatalog", TASK_CATALOG_ENDPOINTS.GET_ALL, name, options, (raw) => transformData(pascalToCamelCaseKeys(raw), TaskCatalogMap), TaskCatalogMap);
|
|
15730
|
+
}
|
|
15731
|
+
async create(name, options = {}) {
|
|
15732
|
+
if (!name) {
|
|
15733
|
+
throw new ValidationError({ message: "name is required for create" });
|
|
15734
|
+
}
|
|
15735
|
+
const { folderId, folderKey, folderPath, expand: _expand, select: _select, ...fields } = options;
|
|
15736
|
+
const headers = resolveFolderHeaders({ folderId, folderKey, folderPath, resourceType: "TaskCatalogs.create", fallbackFolderKey: this.config.folderKey });
|
|
15737
|
+
const response = await this.post(TASK_CATALOG_ENDPOINTS.CREATE, camelToPascalCaseKeys({ name, ...fields }), { headers });
|
|
15738
|
+
return transformData(pascalToCamelCaseKeys(response.data), TaskCatalogMap);
|
|
15739
|
+
}
|
|
15740
|
+
async updateById(id, options = {}) {
|
|
15741
|
+
if (!id) {
|
|
15742
|
+
throw new ValidationError({ message: "id is required for updateById" });
|
|
15743
|
+
}
|
|
15744
|
+
const { folderId, folderKey, folderPath } = options;
|
|
15745
|
+
const current = await this.fetchById(id, { folderId, folderKey, folderPath });
|
|
15746
|
+
return this.update(current, options);
|
|
15747
|
+
}
|
|
15748
|
+
async updateByName(name, options = {}) {
|
|
15749
|
+
if (!name) {
|
|
15750
|
+
throw new ValidationError({ message: "name is required for updateByName" });
|
|
15751
|
+
}
|
|
15752
|
+
const { folderId, folderKey, folderPath } = options;
|
|
15753
|
+
const current = await this.getByNameLookup("TaskCatalog", TASK_CATALOG_ENDPOINTS.GET_ALL, name, { folderId, folderKey, folderPath }, (raw) => transformData(pascalToCamelCaseKeys(raw), TaskCatalogMap), TaskCatalogMap);
|
|
15754
|
+
return this.update(current, options);
|
|
15755
|
+
}
|
|
15756
|
+
async update(current, options) {
|
|
15757
|
+
const { folderId, folderKey, folderPath } = options;
|
|
15758
|
+
const headers = resolveFolderHeaders({ folderId, folderKey, folderPath, resourceType: "TaskCatalogs.update", fallbackFolderKey: this.config.folderKey });
|
|
15759
|
+
const body = camelToPascalCaseKeys({
|
|
15760
|
+
name: options.name ?? current.name,
|
|
15761
|
+
description: options.description ?? current.description,
|
|
15762
|
+
encrypted: current.encrypted,
|
|
15763
|
+
retentionAction: options.retentionAction ?? (current.retentionAction === TaskCatalogRetentionAction.None ? null : current.retentionAction),
|
|
15764
|
+
retentionPeriod: options.retentionPeriod ?? current.retentionPeriod,
|
|
15765
|
+
retentionBucketId: options.retentionBucketId ?? current.retentionBucketId,
|
|
15766
|
+
...options.tags !== undefined ? { tags: options.tags } : {}
|
|
15767
|
+
});
|
|
15768
|
+
await this.post(TASK_CATALOG_ENDPOINTS.UPDATE(current.id), body, { headers });
|
|
15769
|
+
}
|
|
15770
|
+
}
|
|
15771
|
+
__decorate([
|
|
15772
|
+
track("TaskCatalogs.GetAll")
|
|
15773
|
+
], TaskCatalogService.prototype, "getAll", null);
|
|
15774
|
+
__decorate([
|
|
15775
|
+
track("TaskCatalogs.GetById")
|
|
15776
|
+
], TaskCatalogService.prototype, "getById", null);
|
|
15777
|
+
__decorate([
|
|
15778
|
+
track("TaskCatalogs.GetByName")
|
|
15779
|
+
], TaskCatalogService.prototype, "getByName", null);
|
|
15780
|
+
__decorate([
|
|
15781
|
+
track("TaskCatalogs.Create")
|
|
15782
|
+
], TaskCatalogService.prototype, "create", null);
|
|
15783
|
+
__decorate([
|
|
15784
|
+
track("TaskCatalogs.UpdateById")
|
|
15785
|
+
], TaskCatalogService.prototype, "updateById", null);
|
|
15786
|
+
__decorate([
|
|
15787
|
+
track("TaskCatalogs.UpdateByName")
|
|
15788
|
+
], TaskCatalogService.prototype, "updateByName", null);
|
|
15359
15789
|
|
|
15360
15790
|
class UiPath2 extends UiPath$1 {
|
|
15361
15791
|
constructor() {
|
|
@@ -15404,6 +15834,14 @@ class UiPath2 extends UiPath$1 {
|
|
|
15404
15834
|
return this.getService(AssetService);
|
|
15405
15835
|
}
|
|
15406
15836
|
}
|
|
15837
|
+
var FunctionHttpMethod;
|
|
15838
|
+
(function(FunctionHttpMethod2) {
|
|
15839
|
+
FunctionHttpMethod2["Get"] = "Get";
|
|
15840
|
+
FunctionHttpMethod2["Post"] = "Post";
|
|
15841
|
+
FunctionHttpMethod2["Put"] = "Put";
|
|
15842
|
+
FunctionHttpMethod2["Patch"] = "Patch";
|
|
15843
|
+
FunctionHttpMethod2["Delete"] = "Delete";
|
|
15844
|
+
})(FunctionHttpMethod || (FunctionHttpMethod = {}));
|
|
15407
15845
|
var CommonFieldMap = {
|
|
15408
15846
|
createdAt: "createdTime",
|
|
15409
15847
|
updatedAt: "updatedTime"
|
|
@@ -15734,6 +16172,17 @@ var PolicyEvaluationResult;
|
|
|
15734
16172
|
PolicyEvaluationResult2["SimulatedAllow"] = "SimulatedAllow";
|
|
15735
16173
|
PolicyEvaluationResult2["SimulatedDeny"] = "SimulatedDeny";
|
|
15736
16174
|
})(PolicyEvaluationResult || (PolicyEvaluationResult = {}));
|
|
16175
|
+
var PlatformSettingKey;
|
|
16176
|
+
(function(PlatformSettingKey2) {
|
|
16177
|
+
PlatformSettingKey2["UserLanguage"] = "UserLanguage.Language";
|
|
16178
|
+
PlatformSettingKey2["UserLanguageDate"] = "UserLanguage.Date";
|
|
16179
|
+
PlatformSettingKey2["UserTheme"] = "UserTheme.Theme";
|
|
16180
|
+
PlatformSettingKey2["UserAccessibility"] = "UserAccessibility.Accessibility";
|
|
16181
|
+
PlatformSettingKey2["UserAlert"] = "UserAlert.AlertDuration";
|
|
16182
|
+
PlatformSettingKey2["UserCaseAppOrder"] = "UserCase.AppOrderByTenant";
|
|
16183
|
+
PlatformSettingKey2["UserCasePinnedInstancesByTenant"] = "UserCase.PinnedInstancesByTenant";
|
|
16184
|
+
PlatformSettingKey2["UserCaseInstancesTableFiltersByTenant"] = "UserCase.InstancesTableFiltersByTenant";
|
|
16185
|
+
})(PlatformSettingKey || (PlatformSettingKey = {}));
|
|
15737
16186
|
var SpanStatus;
|
|
15738
16187
|
(function(SpanStatus2) {
|
|
15739
16188
|
SpanStatus2["Unset"] = "Unset";
|
|
@@ -15871,7 +16320,7 @@ var registerAgentsCommand = (program2) => {
|
|
|
15871
16320
|
processContext.exit(1);
|
|
15872
16321
|
return;
|
|
15873
16322
|
}
|
|
15874
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16323
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
15875
16324
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
15876
16325
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
15877
16326
|
});
|
|
@@ -15902,7 +16351,7 @@ var registerAgentsCommand = (program2) => {
|
|
|
15902
16351
|
processContext.exit(1);
|
|
15903
16352
|
return;
|
|
15904
16353
|
}
|
|
15905
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16354
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
15906
16355
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
15907
16356
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
15908
16357
|
});
|
|
@@ -16107,7 +16556,7 @@ var registerChatCommand = (program2) => {
|
|
|
16107
16556
|
processContext.exit(1);
|
|
16108
16557
|
return;
|
|
16109
16558
|
}
|
|
16110
|
-
const { ConversationalAgentService, MessageRole: MessageRole2 } = await import("./index-
|
|
16559
|
+
const { ConversationalAgentService, MessageRole: MessageRole2 } = await import("./index-e7t9q971.js");
|
|
16111
16560
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16112
16561
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16113
16562
|
});
|
|
@@ -16178,7 +16627,7 @@ var registerConversationsCommand = (program2) => {
|
|
|
16178
16627
|
processContext.exit(1);
|
|
16179
16628
|
return;
|
|
16180
16629
|
}
|
|
16181
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16630
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
16182
16631
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16183
16632
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16184
16633
|
});
|
|
@@ -16229,7 +16678,7 @@ var registerConversationsCommand = (program2) => {
|
|
|
16229
16678
|
processContext.exit(1);
|
|
16230
16679
|
return;
|
|
16231
16680
|
}
|
|
16232
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16681
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
16233
16682
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16234
16683
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16235
16684
|
});
|
|
@@ -16263,7 +16712,7 @@ var registerConversationsCommand = (program2) => {
|
|
|
16263
16712
|
processContext.exit(1);
|
|
16264
16713
|
return;
|
|
16265
16714
|
}
|
|
16266
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16715
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
16267
16716
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16268
16717
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16269
16718
|
});
|
|
@@ -16321,7 +16770,7 @@ var registerConversationsCommand = (program2) => {
|
|
|
16321
16770
|
processContext.exit(1);
|
|
16322
16771
|
return;
|
|
16323
16772
|
}
|
|
16324
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16773
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
16325
16774
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16326
16775
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16327
16776
|
});
|
|
@@ -16354,7 +16803,7 @@ var registerConversationsCommand = (program2) => {
|
|
|
16354
16803
|
processContext.exit(1);
|
|
16355
16804
|
return;
|
|
16356
16805
|
}
|
|
16357
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16806
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
16358
16807
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16359
16808
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16360
16809
|
});
|
|
@@ -16387,7 +16836,7 @@ var registerConversationsCommand = (program2) => {
|
|
|
16387
16836
|
processContext.exit(1);
|
|
16388
16837
|
return;
|
|
16389
16838
|
}
|
|
16390
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16839
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
16391
16840
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16392
16841
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16393
16842
|
});
|
|
@@ -16430,7 +16879,7 @@ var registerConversationsCommand = (program2) => {
|
|
|
16430
16879
|
processContext.exit(1);
|
|
16431
16880
|
return;
|
|
16432
16881
|
}
|
|
16433
|
-
const { ConversationalAgentService } = await import("./index-
|
|
16882
|
+
const { ConversationalAgentService } = await import("./index-e7t9q971.js");
|
|
16434
16883
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
16435
16884
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16436
16885
|
});
|
|
@@ -16475,7 +16924,7 @@ var registerExchangesCommand = (program2) => {
|
|
|
16475
16924
|
processContext.exit(1);
|
|
16476
16925
|
return;
|
|
16477
16926
|
}
|
|
16478
|
-
const { ExchangeService } = await import("./index-
|
|
16927
|
+
const { ExchangeService } = await import("./index-e7t9q971.js");
|
|
16479
16928
|
const exchangeSvc = new ExchangeService(sdk, {
|
|
16480
16929
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16481
16930
|
});
|
|
@@ -16509,7 +16958,7 @@ var registerExchangesCommand = (program2) => {
|
|
|
16509
16958
|
processContext.exit(1);
|
|
16510
16959
|
return;
|
|
16511
16960
|
}
|
|
16512
|
-
const { ExchangeService } = await import("./index-
|
|
16961
|
+
const { ExchangeService } = await import("./index-e7t9q971.js");
|
|
16513
16962
|
const exchangeSvc = new ExchangeService(sdk, {
|
|
16514
16963
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16515
16964
|
});
|
|
@@ -16549,7 +16998,7 @@ var registerExchangesCommand = (program2) => {
|
|
|
16549
16998
|
processContext.exit(1);
|
|
16550
16999
|
return;
|
|
16551
17000
|
}
|
|
16552
|
-
const { ExchangeService, FeedbackRating: FeedbackRating2 } = await import("./index-
|
|
17001
|
+
const { ExchangeService, FeedbackRating: FeedbackRating2 } = await import("./index-e7t9q971.js");
|
|
16553
17002
|
const exchangeSvc = new ExchangeService(sdk, {
|
|
16554
17003
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16555
17004
|
});
|
|
@@ -16588,7 +17037,7 @@ var registerMessagesCommand = (program2) => {
|
|
|
16588
17037
|
processContext.exit(1);
|
|
16589
17038
|
return;
|
|
16590
17039
|
}
|
|
16591
|
-
const { MessageService } = await import("./index-
|
|
17040
|
+
const { MessageService } = await import("./index-e7t9q971.js");
|
|
16592
17041
|
const msgSvc = new MessageService(sdk, {
|
|
16593
17042
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16594
17043
|
});
|
|
@@ -16619,7 +17068,7 @@ var registerMessagesCommand = (program2) => {
|
|
|
16619
17068
|
processContext.exit(1);
|
|
16620
17069
|
return;
|
|
16621
17070
|
}
|
|
16622
|
-
const { MessageService } = await import("./index-
|
|
17071
|
+
const { MessageService } = await import("./index-e7t9q971.js");
|
|
16623
17072
|
const msgSvc = new MessageService(sdk, {
|
|
16624
17073
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16625
17074
|
});
|
|
@@ -16662,7 +17111,7 @@ var registerUserSettingsCommand = (program2) => {
|
|
|
16662
17111
|
processContext.exit(1);
|
|
16663
17112
|
return;
|
|
16664
17113
|
}
|
|
16665
|
-
const { UserSettingsService } = await import("./index-
|
|
17114
|
+
const { UserSettingsService } = await import("./index-e7t9q971.js");
|
|
16666
17115
|
const userSvc = new UserSettingsService(sdk, {
|
|
16667
17116
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16668
17117
|
});
|
|
@@ -16717,7 +17166,7 @@ var registerUserSettingsCommand = (program2) => {
|
|
|
16717
17166
|
processContext.exit(1);
|
|
16718
17167
|
return;
|
|
16719
17168
|
}
|
|
16720
|
-
const { UserSettingsService } = await import("./index-
|
|
17169
|
+
const { UserSettingsService } = await import("./index-e7t9q971.js");
|
|
16721
17170
|
const userSvc = new UserSettingsService(sdk, {
|
|
16722
17171
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
16723
17172
|
});
|
|
@@ -16757,4 +17206,4 @@ var registerCommands = async (program2) => {
|
|
|
16757
17206
|
|
|
16758
17207
|
export { Command, metadata, registerCommands };
|
|
16759
17208
|
|
|
16760
|
-
//# debugId=
|
|
17209
|
+
//# debugId=1C7AB02559AB2D0364756E2164756E21
|