@uipath/rules-tool 1.204.0-preview.249 → 1.204.0-preview.254
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/DmnFactory-VWZOSZHH-jkpbxz3n.js +42 -0
- package/dist/DmnModelTypes-ATR7FVKZ-jp35cecy.js +18 -0
- package/dist/KieDmnMarshaller-6TTUU5B4-47q50gk4.js +20 -0
- package/dist/THIRD-PARTY-NOTICES.md +1085 -0
- package/dist/business-rules-bnr581tz.js +26 -0
- package/dist/{constants-za5vbzp8.js → constants-9pa118cj.js} +17 -10
- package/dist/{embedded-file-reader-wmsg31a8.js → embedded-file-reader-rf2g1kfj.js} +4 -1
- package/dist/first-party-service-sd8yaf73.js +27 -0
- package/dist/hitPolicyResult-4WDHTX4A-gk103w84.js +33 -0
- package/dist/index-2hzp9b97.js +116 -0
- package/dist/index-34pj9f36.js +48 -0
- package/dist/{index-zdwhfpt1.js → index-4c4exdzw.js} +370 -406
- package/dist/index-dqa169gp.js +25 -0
- package/dist/{index-we6zjs66.js → index-fs1nd5ap.js} +40 -4
- package/dist/{index-nzr4mx5p.js → index-sby22td6.js} +22 -2
- package/dist/{index-7wc0g78k.js → index-t4mx1a5e.js} +5 -2
- package/dist/index.js +9 -8
- package/dist/{jmespath-ab6tdc42.js → jmespath-231m3hyn.js} +1 -1
- package/dist/{js-yaml-a2bk27p6.js → js-yaml-88tdqrtd.js} +3 -1
- package/dist/rule-catalog-5gzpe93c.js +46 -0
- package/dist/rules-command-error-20gp2dv9.js +14 -0
- package/dist/{rules-debug-service-h1ahd6p3.js → rules-debug-service-yvh448xp.js} +36 -35
- package/dist/{rules-init-service-y678kjje.js → rules-init-service-ewahc0vh.js} +16 -12
- package/dist/{rules-refresh-service-btn64j8j.js → rules-refresh-service-jgk2kq9d.js} +14 -13
- package/dist/{rules-validate-service-sppr4x13.js → rules-validate-service-mr2fk58k.js} +13 -10
- package/dist/{tool-97x3zjcm.js → tool-19b4ect0.js} +158 -113
- package/dist/{tool-epsr41wx.js → tool-1de529jm.js} +3 -12
- package/dist/{tool-7xmarr97.js → tool-2cky8jwp.js} +2578 -1777
- package/dist/{tool-x67kek1m.js → tool-2qj74g14.js} +12 -652
- package/dist/{tool-0bthsb3x.js → tool-4dfpdepw.js} +15 -15
- package/dist/tool-53w8skv5.js +262 -0
- package/dist/tool-7haj67tr.js +19 -0
- package/dist/{tool-e1mmqsjr.js → tool-8h4er38s.js} +411 -396
- package/dist/{tool-2trg1fpx.js → tool-8qy8pkp4.js} +8 -8
- package/dist/tool-av4mmsef.js +73 -0
- package/dist/{tool-6sqt4zrx.js → tool-cgmy94zt.js} +32 -29
- package/dist/{tool-8j9f6ns5.js → tool-eymjx05p.js} +11 -11
- package/dist/{tool-mm1x18d6.js → tool-gdtpsdn7.js} +28 -223
- package/dist/tool-m41px07w.js +49 -0
- package/dist/{tool-k2s349kn.js → tool-mkn83w88.js} +17 -14
- package/dist/tool-pm3ewdxc.js +1115 -0
- package/dist/{tool-6rp0gx98.js → tool-tkcx6png.js} +107 -127
- package/dist/{tool-1dycs173.js → tool-wmh645tm.js} +202 -194
- package/dist/tool.js +8 -7
- package/package.json +2 -15
- package/dist/DmnFactory-SG3RP3T3-cr8e7mxz.js +0 -8
- package/dist/DmnFactory-VWZOSZHH-azx0zqcn.js +0 -8
- package/dist/DmnModelTypes-ATR7FVKZ-vkv7n0jn.js +0 -8
- package/dist/KieDmnMarshaller-6TTUU5B4-rsxhvw7a.js +0 -8
- package/dist/business-rules-d51977r1.js +0 -25
- package/dist/business-rules-dekge24t.js +0 -23
- package/dist/business-rules-ew76mbwg.js +0 -25
- package/dist/business-rules-jmwx05k2.js +0 -25
- package/dist/business-rules-zpzqxyce.js +0 -26
- package/dist/constants-4r8pfr16.js +0 -22
- package/dist/embedded-file-reader-0228j82a.js +0 -111
- package/dist/first-party-service-1qa6cp4d.js +0 -8
- package/dist/first-party-service-28dkctkz.js +0 -8
- package/dist/first-party-service-4fsz3cnj.js +0 -8
- package/dist/first-party-service-ahcc6xc6.js +0 -8
- package/dist/first-party-service-y1ccmsvp.js +0 -8
- package/dist/first-party-service-zpr1q3nd.js +0 -8
- package/dist/hitPolicyResult-4WDHTX4A-dbtkgpqp.js +0 -12
- package/dist/index-2zxy6zgp.js +0 -23
- package/dist/index-3nx77wfh.js +0 -23
- package/dist/index-43zg1wqe.js +0 -19621
- package/dist/index-47jera73.js +0 -23
- package/dist/index-70jn7cz1.js +0 -19631
- package/dist/index-8kb5kc5y.js +0 -24
- package/dist/index-97yad7ms.js +0 -8
- package/dist/index-dfn83hxf.js +0 -14
- package/dist/index-e301h23h.js +0 -24
- package/dist/index-frd259yv.js +0 -24
- package/dist/index-gc7cw2jh.js +0 -23
- package/dist/index-gya2v502.js +0 -8
- package/dist/index-hb3gk1wf.js +0 -24
- package/dist/index-nsnfdqd5.js +0 -24
- package/dist/index-vffktc0w.js +0 -166
- package/dist/index-xymrydfw.js +0 -3095
- package/dist/index-z2qk2qn6.js +0 -24
- package/dist/index-zecwgvg7.js +0 -23
- package/dist/rule-catalog-a5w86qns.js +0 -43
- package/dist/rule-catalog-etpf962f.js +0 -69
- package/dist/rule-catalog-q5cr17hf.js +0 -58
- package/dist/rule-catalog-vc98yg4n.js +0 -43
- package/dist/rule-catalog-z3h66kh5.js +0 -56
- package/dist/rules-command-error-10qmb5w7.js +0 -13
- package/dist/rules-command-error-5bdv4bcx.js +0 -13
- package/dist/rules-command-error-cmssf0w4.js +0 -13
- package/dist/rules-command-error-fsm3b1mv.js +0 -13
- package/dist/rules-debug-service-5rcdh3pj.js +0 -192
- package/dist/rules-debug-service-8q7mkd0r.js +0 -199
- package/dist/rules-debug-service-b9j29ejz.js +0 -192
- package/dist/rules-debug-service-v3jr3r1n.js +0 -192
- package/dist/rules-init-service-3c2yfa7p.js +0 -687
- package/dist/rules-init-service-3wgd9cqp.js +0 -100
- package/dist/rules-init-service-8fqytxq0.js +0 -685
- package/dist/rules-init-service-pspt7sje.js +0 -100
- package/dist/rules-init-service-sbtzw93j.js +0 -102
- package/dist/rules-init-service-x7paqa63.js +0 -687
- package/dist/rules-init-service-y7qzmxx0.js +0 -102
- package/dist/rules-refresh-service-4xxj6ex6.js +0 -65
- package/dist/rules-refresh-service-ba5jk1y9.js +0 -65
- package/dist/rules-refresh-service-qkmphj53.js +0 -65
- package/dist/rules-validate-service-dmgnfne7.js +0 -60
- package/dist/rules-validate-service-hk2d006t.js +0 -60
- package/dist/rules-validate-service-xp05n2d9.js +0 -60
- package/dist/tool-1pkqxwwd.js +0 -17472
- package/dist/tool-24mr6g8c.js +0 -1556
- package/dist/tool-39fmkx2d.js +0 -611
- package/dist/tool-3e2q1x2y.js +0 -6578
- package/dist/tool-3j0747gg.js +0 -17077
- package/dist/tool-4z7zcq4z.js +0 -6058
- package/dist/tool-56smnjrh.js +0 -73
- package/dist/tool-5qygptrc.js +0 -6171
- package/dist/tool-5xx6x8pe.js +0 -6596
- package/dist/tool-7fkrd618.js +0 -1556
- package/dist/tool-89xzeteg.js +0 -361
- package/dist/tool-911s9czz.js +0 -570
- package/dist/tool-9bz2x04j.js +0 -40
- package/dist/tool-akh7nnqs.js +0 -704
- package/dist/tool-axfzew45.js +0 -1555
- package/dist/tool-b71jq9pt.js +0 -389
- package/dist/tool-bfj846v8.js +0 -141
- package/dist/tool-bvmc017m.js +0 -96
- package/dist/tool-bykz5ryf.js +0 -454
- package/dist/tool-c76qb8ap.js +0 -17052
- package/dist/tool-ca15515v.js +0 -570
- package/dist/tool-f9qs255w.js +0 -70
- package/dist/tool-ga79rety.js +0 -389
- package/dist/tool-gb547mcn.js +0 -141
- package/dist/tool-gta9rr4h.js +0 -68
- package/dist/tool-h2dfnxdq.js +0 -6486
- package/dist/tool-hg6vr5y9.js +0 -3769
- package/dist/tool-hgvnm4vh.js +0 -1843
- package/dist/tool-hjbf9aay.js +0 -571
- package/dist/tool-k5jm64n3.js +0 -5650
- package/dist/tool-ketztpgf.js +0 -73
- package/dist/tool-n1d88ryb.js +0 -6396
- package/dist/tool-nmqpwh9m.js +0 -6166
- package/dist/tool-pb80pswx.js +0 -73
- package/dist/tool-pcsgwpfw.js +0 -40
- package/dist/tool-q3c1bjyb.js +0 -454
- package/dist/tool-rwp1skmf.js +0 -40
- package/dist/tool-s3fbt22r.js +0 -454
- package/dist/tool-tmbst1r8.js +0 -68
- package/dist/tool-v6w109p0.js +0 -455
- package/dist/tool-w2js05qv.js +0 -389
- package/dist/tool-x89947ah.js +0 -17052
- package/dist/tool-xhksjdka.js +0 -4005
- package/dist/tool-yv3t4gg5.js +0 -108
- package/dist/tool-zbyb1ttx.js +0 -5650
- /package/dist/{tool-fbqnqf9k.js → tool-jd313s2x.js} +0 -0
- /package/dist/{tool-vyx8fpft.js → tool-qgqscsjc.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-names.js
|
|
2
|
-
var
|
|
2
|
+
var JsonSerializerNames = {
|
|
3
3
|
DefaultCaseInsensitive: "DefaultCaseInsensitive",
|
|
4
4
|
CaseInsensitive: "CaseInsensitive",
|
|
5
5
|
Indented: "Indented",
|
|
@@ -21,7 +21,7 @@ var JsonSerializerNames2 = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer.js
|
|
24
|
-
class
|
|
24
|
+
class JsonSerializer {
|
|
25
25
|
serialize(value) {
|
|
26
26
|
if (value == null)
|
|
27
27
|
return null;
|
|
@@ -154,16 +154,16 @@ class JsonSerializer2 {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/pascal-case-enum-properties.js
|
|
157
|
-
var
|
|
157
|
+
var CAMEL_CASE_ENUM_PROPERTIES = [
|
|
158
158
|
"scope",
|
|
159
159
|
"replaceOption",
|
|
160
160
|
"lookupStrategy",
|
|
161
161
|
"folderType"
|
|
162
162
|
];
|
|
163
|
-
var
|
|
163
|
+
var SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES = [
|
|
164
164
|
"propertyCategory"
|
|
165
165
|
];
|
|
166
|
-
var
|
|
166
|
+
var RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES = [
|
|
167
167
|
"ValidationState.errorSeverity",
|
|
168
168
|
"ValidationState.errorType",
|
|
169
169
|
"AddOrUpdateResourceToSolutionResponse.status",
|
|
@@ -171,13 +171,13 @@ var RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES2 = [
|
|
|
171
171
|
"OverwriteValidationError.severity",
|
|
172
172
|
"ProjectResourceDescriptor.provisionType"
|
|
173
173
|
];
|
|
174
|
-
var
|
|
175
|
-
...
|
|
176
|
-
...
|
|
174
|
+
var PASCAL_CASE_ENUM_PROPERTIES = [
|
|
175
|
+
...SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES,
|
|
176
|
+
...RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES
|
|
177
177
|
];
|
|
178
178
|
|
|
179
179
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-factory.js
|
|
180
|
-
class
|
|
180
|
+
class JsonSerializerFactory {
|
|
181
181
|
get() {
|
|
182
182
|
return this.defaultSerializer;
|
|
183
183
|
}
|
|
@@ -192,44 +192,44 @@ class JsonSerializerFactory2 {
|
|
|
192
192
|
return serializer;
|
|
193
193
|
}
|
|
194
194
|
initializePredefinedSerializers() {
|
|
195
|
-
for (const name of
|
|
195
|
+
for (const name of JsonSerializerNames.AllNames)
|
|
196
196
|
this.namedSerializers.set(name, this.createNamedSerializer(name));
|
|
197
197
|
}
|
|
198
198
|
createNamedSerializer(name) {
|
|
199
199
|
const options = this.createOptionsForName(name);
|
|
200
|
-
return new
|
|
200
|
+
return new JsonSerializer(options);
|
|
201
201
|
}
|
|
202
202
|
createOptionsForName(name) {
|
|
203
203
|
const options = {
|
|
204
204
|
...this.baseOptions
|
|
205
205
|
};
|
|
206
206
|
switch (name) {
|
|
207
|
-
case
|
|
207
|
+
case JsonSerializerNames.DefaultCaseInsensitive:
|
|
208
208
|
return {
|
|
209
209
|
caseInsensitive: true
|
|
210
210
|
};
|
|
211
|
-
case
|
|
211
|
+
case JsonSerializerNames.CaseInsensitive:
|
|
212
212
|
options.caseInsensitive = true;
|
|
213
213
|
break;
|
|
214
|
-
case
|
|
214
|
+
case JsonSerializerNames.Indented:
|
|
215
215
|
options.indented = true;
|
|
216
216
|
break;
|
|
217
|
-
case
|
|
217
|
+
case JsonSerializerNames.CamelCase:
|
|
218
218
|
options.camelCase = true;
|
|
219
219
|
break;
|
|
220
|
-
case
|
|
220
|
+
case JsonSerializerNames.CaseInsensitiveIndented:
|
|
221
221
|
options.caseInsensitive = true;
|
|
222
222
|
options.indented = true;
|
|
223
223
|
break;
|
|
224
|
-
case
|
|
224
|
+
case JsonSerializerNames.IndentedIgnoreNull:
|
|
225
225
|
options.indented = true;
|
|
226
226
|
options.ignoreNull = true;
|
|
227
227
|
break;
|
|
228
|
-
case
|
|
228
|
+
case JsonSerializerNames.PreservePropertyNames:
|
|
229
229
|
options.preservePropertyNames = true;
|
|
230
230
|
options.camelCase = false;
|
|
231
231
|
break;
|
|
232
|
-
case
|
|
232
|
+
case JsonSerializerNames.CamelCaseIndented:
|
|
233
233
|
options.indented = true;
|
|
234
234
|
options.camelCase = true;
|
|
235
235
|
options.ignoreNull = true;
|
|
@@ -243,21 +243,21 @@ class JsonSerializerFactory2 {
|
|
|
243
243
|
const defaults = {
|
|
244
244
|
camelCase: true,
|
|
245
245
|
enumCamelCase: true,
|
|
246
|
-
camelCaseEnumProperties:
|
|
247
|
-
pascalCaseEnumProperties:
|
|
246
|
+
camelCaseEnumProperties: CAMEL_CASE_ENUM_PROPERTIES,
|
|
247
|
+
pascalCaseEnumProperties: PASCAL_CASE_ENUM_PROPERTIES
|
|
248
248
|
};
|
|
249
249
|
this.baseOptions = options ? {
|
|
250
250
|
...defaults,
|
|
251
251
|
...options
|
|
252
252
|
} : defaults;
|
|
253
|
-
this.defaultSerializer = new
|
|
253
|
+
this.defaultSerializer = new JsonSerializer(this.baseOptions);
|
|
254
254
|
this.namedSerializers = new Map;
|
|
255
255
|
this.initializePredefinedSerializers();
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/serializer-proxy.js
|
|
260
|
-
class
|
|
260
|
+
class JsonSerializerProxy {
|
|
261
261
|
serialize(value) {
|
|
262
262
|
return this.jsonSerializer.serialize(value);
|
|
263
263
|
}
|
|
@@ -302,16 +302,16 @@ class JsonSerializerProxy2 {
|
|
|
302
302
|
}
|
|
303
303
|
constructor(jsonSerializerFactory, loggerFactory) {
|
|
304
304
|
this.jsonSerializer = jsonSerializerFactory.get();
|
|
305
|
-
this.caseInsensitiveSerializer = jsonSerializerFactory.getByName(
|
|
305
|
+
this.caseInsensitiveSerializer = jsonSerializerFactory.getByName(JsonSerializerNames.CaseInsensitive);
|
|
306
306
|
this.logger = loggerFactory.create("JsonSerializerProxy");
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/stream-serializer.js
|
|
311
|
-
class
|
|
311
|
+
class StreamSerializer {
|
|
312
312
|
async serializeAsync(data, cancellationToken) {
|
|
313
313
|
cancellationToken?.throwIfAborted?.();
|
|
314
|
-
const serializer = this.jsonSerializerFactory.getByName(
|
|
314
|
+
const serializer = this.jsonSerializerFactory.getByName(JsonSerializerNames.PreservePropertyNames);
|
|
315
315
|
const serializedContent = serializer.serialize(data);
|
|
316
316
|
const encoder = new TextEncoder;
|
|
317
317
|
const bytes = serializedContent ? encoder.encode(serializedContent) : new Uint8Array(0);
|
|
@@ -337,201 +337,6 @@ class StreamSerializer2 {
|
|
|
337
337
|
this.disposeStream = disposeStream;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
class HttpClient {
|
|
342
|
-
encodeQueryParam(key, value) {
|
|
343
|
-
const encodedKey = encodeURIComponent(key);
|
|
344
|
-
return `${encodedKey}=${encodeURIComponent(typeof value == "number" ? value : `${value}`)}`;
|
|
345
|
-
}
|
|
346
|
-
addQueryParam(query, key) {
|
|
347
|
-
return this.encodeQueryParam(key, query[key]);
|
|
348
|
-
}
|
|
349
|
-
addArrayQueryParam(query, key) {
|
|
350
|
-
const value = query[key];
|
|
351
|
-
return value.map((v) => this.encodeQueryParam(key, v)).join("&");
|
|
352
|
-
}
|
|
353
|
-
toQueryString(rawQuery) {
|
|
354
|
-
const query = rawQuery || {};
|
|
355
|
-
const keys = Object.keys(query).filter((key) => query[key] !== undefined);
|
|
356
|
-
return keys.map((key) => Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)).join("&");
|
|
357
|
-
}
|
|
358
|
-
addQueryParams(rawQuery) {
|
|
359
|
-
const queryString = this.toQueryString(rawQuery);
|
|
360
|
-
return queryString ? `?${queryString}` : "";
|
|
361
|
-
}
|
|
362
|
-
mergeRequestParams(params1, params2) {
|
|
363
|
-
return {
|
|
364
|
-
...this.baseApiParams,
|
|
365
|
-
...params1,
|
|
366
|
-
...params2 || {},
|
|
367
|
-
headers: {
|
|
368
|
-
...this.baseApiParams.headers || {},
|
|
369
|
-
...params1.headers || {},
|
|
370
|
-
...params2 && params2.headers || {}
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
constructor(apiConfig = {}) {
|
|
375
|
-
this.baseUrl = "https://localhost:7008";
|
|
376
|
-
this.securityData = null;
|
|
377
|
-
this.abortControllers = new Map;
|
|
378
|
-
this.customFetch = (...fetchParams) => fetch(...fetchParams);
|
|
379
|
-
this.baseApiParams = {
|
|
380
|
-
credentials: "same-origin",
|
|
381
|
-
headers: {},
|
|
382
|
-
redirect: "follow",
|
|
383
|
-
referrerPolicy: "no-referrer"
|
|
384
|
-
};
|
|
385
|
-
this.setSecurityData = (data) => {
|
|
386
|
-
this.securityData = data;
|
|
387
|
-
};
|
|
388
|
-
this.contentFormatters = {
|
|
389
|
-
["application/json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
|
|
390
|
-
["application/vnd.api+json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
|
|
391
|
-
["text/plain"]: (input) => input !== null && typeof input != "string" ? JSON.stringify(input) : input,
|
|
392
|
-
["multipart/form-data"]: (input) => {
|
|
393
|
-
if (input instanceof FormData)
|
|
394
|
-
return input;
|
|
395
|
-
return Object.keys(input || {}).reduce((formData, key) => {
|
|
396
|
-
const property = input[key];
|
|
397
|
-
formData.append(key, property instanceof Blob ? property : typeof property == "object" && property !== null ? JSON.stringify(property) : `${property}`);
|
|
398
|
-
return formData;
|
|
399
|
-
}, new FormData);
|
|
400
|
-
},
|
|
401
|
-
["application/x-www-form-urlencoded"]: (input) => this.toQueryString(input)
|
|
402
|
-
};
|
|
403
|
-
this.createAbortSignal = (cancelToken) => {
|
|
404
|
-
if (this.abortControllers.has(cancelToken)) {
|
|
405
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
406
|
-
if (abortController)
|
|
407
|
-
return abortController.signal;
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
const abortController = new AbortController;
|
|
411
|
-
this.abortControllers.set(cancelToken, abortController);
|
|
412
|
-
return abortController.signal;
|
|
413
|
-
};
|
|
414
|
-
this.abortRequest = (cancelToken) => {
|
|
415
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
416
|
-
if (abortController) {
|
|
417
|
-
abortController.abort();
|
|
418
|
-
this.abortControllers.delete(cancelToken);
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
this.request = async ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }) => {
|
|
422
|
-
const secureParams = (typeof secure == "boolean" ? secure : this.baseApiParams.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
|
|
423
|
-
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
424
|
-
const queryString = query && this.toQueryString(query);
|
|
425
|
-
const payloadFormatter = this.contentFormatters[type || "application/json"];
|
|
426
|
-
const responseFormat = format || requestParams.format;
|
|
427
|
-
return this.customFetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, {
|
|
428
|
-
...requestParams,
|
|
429
|
-
headers: {
|
|
430
|
-
...requestParams.headers || {},
|
|
431
|
-
...type && type !== "multipart/form-data" ? {
|
|
432
|
-
"Content-Type": type
|
|
433
|
-
} : {}
|
|
434
|
-
},
|
|
435
|
-
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
|
|
436
|
-
body: body == null ? null : payloadFormatter(body)
|
|
437
|
-
}).then(async (response) => {
|
|
438
|
-
const r = response;
|
|
439
|
-
r.data = null;
|
|
440
|
-
r.error = null;
|
|
441
|
-
const responseToParse = responseFormat ? response.clone() : response;
|
|
442
|
-
const data = responseFormat ? await responseToParse[responseFormat]().then((data) => {
|
|
443
|
-
if (r.ok)
|
|
444
|
-
r.data = data;
|
|
445
|
-
else
|
|
446
|
-
r.error = data;
|
|
447
|
-
return r;
|
|
448
|
-
}).catch((e) => {
|
|
449
|
-
r.error = e;
|
|
450
|
-
return r;
|
|
451
|
-
}) : r;
|
|
452
|
-
if (cancelToken)
|
|
453
|
-
this.abortControllers.delete(cancelToken);
|
|
454
|
-
if (!response.ok)
|
|
455
|
-
throw data;
|
|
456
|
-
return data.data;
|
|
457
|
-
});
|
|
458
|
-
};
|
|
459
|
-
Object.assign(this, apiConfig);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
class FirstPartyServiceApi2 extends HttpClient {
|
|
464
|
-
constructor(...args) {
|
|
465
|
-
super(...args), this.v2 = {
|
|
466
|
-
automationSolutionsGetMetadata: (params = {}) => this.request({
|
|
467
|
-
path: "/v2/automationsolutions/metadata",
|
|
468
|
-
method: "GET",
|
|
469
|
-
...params
|
|
470
|
-
}),
|
|
471
|
-
automationSolutionsHeadMetadata: (params = {}) => this.request({
|
|
472
|
-
path: "/v2/automationsolutions/metadata",
|
|
473
|
-
method: "HEAD",
|
|
474
|
-
...params
|
|
475
|
-
}),
|
|
476
|
-
automationSolutionsSetState: (data, query, params = {}) => this.request({
|
|
477
|
-
path: "/v2/automationsolutions",
|
|
478
|
-
method: "PATCH",
|
|
479
|
-
query,
|
|
480
|
-
body: data,
|
|
481
|
-
type: "application/json",
|
|
482
|
-
...params
|
|
483
|
-
}),
|
|
484
|
-
automationSolutionsInstall: (data, query, params = {}) => this.request({
|
|
485
|
-
path: "/v2/automationsolutions",
|
|
486
|
-
method: "PUT",
|
|
487
|
-
query,
|
|
488
|
-
body: data,
|
|
489
|
-
format: "json",
|
|
490
|
-
...params
|
|
491
|
-
}),
|
|
492
|
-
automationSolutionsUninstall: (data, query, params = {}) => this.request({
|
|
493
|
-
path: "/v2/automationsolutions",
|
|
494
|
-
method: "DELETE",
|
|
495
|
-
query,
|
|
496
|
-
body: data,
|
|
497
|
-
type: "application/json",
|
|
498
|
-
format: "json",
|
|
499
|
-
...params
|
|
500
|
-
}),
|
|
501
|
-
automationSolutionsExport: (data, params = {}) => this.request({
|
|
502
|
-
path: "/v2/automationsolutions/export",
|
|
503
|
-
method: "POST",
|
|
504
|
-
body: data,
|
|
505
|
-
type: "application/json",
|
|
506
|
-
format: "json",
|
|
507
|
-
...params
|
|
508
|
-
}),
|
|
509
|
-
automationSolutionsGetTranslations: (query, params = {}) => this.request({
|
|
510
|
-
path: "/v2/automationsolutions/translations",
|
|
511
|
-
method: "GET",
|
|
512
|
-
query,
|
|
513
|
-
format: "json",
|
|
514
|
-
...params
|
|
515
|
-
}),
|
|
516
|
-
automationSolutionsValidate: (data, query, params = {}) => this.request({
|
|
517
|
-
path: "/v2/automationsolutions/validate",
|
|
518
|
-
method: "POST",
|
|
519
|
-
query,
|
|
520
|
-
body: data,
|
|
521
|
-
type: "application/json",
|
|
522
|
-
format: "json",
|
|
523
|
-
...params
|
|
524
|
-
}),
|
|
525
|
-
automationSolutionsLookup: (query, params = {}) => this.request({
|
|
526
|
-
path: "/v2/automationsolutions/lookup",
|
|
527
|
-
method: "GET",
|
|
528
|
-
query,
|
|
529
|
-
format: "json",
|
|
530
|
-
...params
|
|
531
|
-
})
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
export { JsonSerializerNames2, JsonSerializer2, CAMEL_CASE_ENUM_PROPERTIES2, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES2, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES2, PASCAL_CASE_ENUM_PROPERTIES2, JsonSerializerFactory2, JsonSerializerProxy2, StreamSerializer2, FirstPartyServiceApi2 };
|
|
340
|
+
export { JsonSerializerNames, JsonSerializer, CAMEL_CASE_ENUM_PROPERTIES, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES, PASCAL_CASE_ENUM_PROPERTIES, JsonSerializerFactory, JsonSerializerProxy, StreamSerializer };
|
|
536
341
|
|
|
537
|
-
//# debugId=
|
|
342
|
+
//# debugId=B9E68BD7718EF2DB64756E2164756E21
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-RAUOUCZL.js
|
|
2
|
+
var u = String.raw`\"`;
|
|
3
|
+
var o = (e) => e.length >= 2 && e.startsWith('"') && e.endsWith('"');
|
|
4
|
+
var d = (e) => {
|
|
5
|
+
if (!o(e))
|
|
6
|
+
return e;
|
|
7
|
+
try {
|
|
8
|
+
let n = JSON.parse(e);
|
|
9
|
+
return typeof n == "string" ? n : e;
|
|
10
|
+
} catch {
|
|
11
|
+
return e.slice(1, -1).replaceAll(u, '"');
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var l = (e) => {
|
|
15
|
+
let n = [], s = "", t = false;
|
|
16
|
+
for (let r = 0;r < e.length; r += 1) {
|
|
17
|
+
let i = e[r];
|
|
18
|
+
if (t && i === "\\" && r + 1 < e.length) {
|
|
19
|
+
s += i + e[r + 1], r += 1;
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
if (i === '"' && (t = !t), i === "," && !t) {
|
|
23
|
+
n.push(s), s = "";
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
s += i;
|
|
27
|
+
}
|
|
28
|
+
return n.push(s), n;
|
|
29
|
+
};
|
|
30
|
+
var c = (e) => l(e).map((n) => n.trim()).filter((n) => n.length > 0).map(d);
|
|
31
|
+
var g = (e, n) => {
|
|
32
|
+
let s = l(e.text).map((t) => t.trim()).filter(Boolean);
|
|
33
|
+
if (s.length === 0)
|
|
34
|
+
return false;
|
|
35
|
+
switch (n ?? "string") {
|
|
36
|
+
case "string":
|
|
37
|
+
return s.every(o);
|
|
38
|
+
case "number":
|
|
39
|
+
return s.every((t) => /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/.test(t));
|
|
40
|
+
case "boolean":
|
|
41
|
+
return s.every((t) => t === "true" || t === "false");
|
|
42
|
+
default:
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { c, g };
|
|
48
|
+
|
|
49
|
+
//# debugId=DAEF337C4DCC9E1C64756E2164756E21
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./tool-
|
|
2
|
+
RulesCommandError,
|
|
3
|
+
isJsonObject
|
|
4
|
+
} from "./tool-8qy8pkp4.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./tool-
|
|
6
|
+
catchError,
|
|
7
|
+
getFileSystem
|
|
8
|
+
} from "./tool-tkcx6png.js";
|
|
9
|
+
import {
|
|
10
|
+
__require
|
|
11
|
+
} from "./tool-1de529jm.js";
|
|
9
12
|
|
|
10
13
|
// ../packager/packager-tool-businessrules/src/entry-point-id.ts
|
|
11
14
|
var EntryPointIdSalt = "uipath:business-rules:entry-point";
|
|
@@ -48,7 +51,7 @@ async function readRuleProjectAsync(projectPath) {
|
|
|
48
51
|
contents: await fs.readFile(fs.path.join(projectDir, name), "utf-8") ?? ""
|
|
49
52
|
})));
|
|
50
53
|
if (dmnFiles.length === 0) {
|
|
51
|
-
throw new
|
|
54
|
+
throw new RulesCommandError(`No .dmn file found in ${projectDir}.`, "not_found", "Add the rule's .dmn file at the top level of the project, or run 'uip rules init <name>' to scaffold one.");
|
|
52
55
|
}
|
|
53
56
|
return {
|
|
54
57
|
projectDir,
|
|
@@ -58,7 +61,7 @@ async function readRuleProjectAsync(projectPath) {
|
|
|
58
61
|
};
|
|
59
62
|
}
|
|
60
63
|
async function buildRuleEntryPointsAsync(dmnFiles, publishedEntryPoints, ruleName) {
|
|
61
|
-
const { buildBusinessRulePackagingFiles } = await import("./index-
|
|
64
|
+
const { buildBusinessRulePackagingFiles } = await import("./index-fs1nd5ap.js");
|
|
62
65
|
const packaging = await buildBusinessRulePackagingFiles(dmnFiles, publishedEntryPoints, true);
|
|
63
66
|
if (publishedEntryPoints != null || ruleName === undefined) {
|
|
64
67
|
return packaging;
|
|
@@ -78,10 +81,10 @@ async function readRulesProjectNameAsync(projectDir) {
|
|
|
78
81
|
const raw = await fs.readFile(filePath, "utf-8");
|
|
79
82
|
const project = raw === null ? undefined : parseJson(raw);
|
|
80
83
|
if (raw !== null && project === undefined) {
|
|
81
|
-
throw new
|
|
84
|
+
throw new RulesCommandError(`Could not read ${filePath}: it is not valid JSON.`, "invalid_argument", "Fix the project file, or run 'uip rules init <name> --force' to recreate it.");
|
|
82
85
|
}
|
|
83
|
-
if (!
|
|
84
|
-
throw new
|
|
86
|
+
if (!isJsonObject(project) || project.ProjectType !== "BusinessRules") {
|
|
87
|
+
throw new RulesCommandError(`${projectDir} is not a business rules project.`, "invalid_argument", "Pass the folder that holds the rules project's project.uiproj, created by 'uip rules init'.");
|
|
85
88
|
}
|
|
86
89
|
return typeof project.Name === "string" ? project.Name : "";
|
|
87
90
|
}
|
|
@@ -93,8 +96,8 @@ async function readPublishedEntryPoints(projectDir) {
|
|
|
93
96
|
return;
|
|
94
97
|
}
|
|
95
98
|
const published = parseJson(raw);
|
|
96
|
-
if (!
|
|
97
|
-
throw new
|
|
99
|
+
if (!isJsonObject(published) || !Array.isArray(published.entryPoints)) {
|
|
100
|
+
throw new RulesCommandError(`${filePath} is not an entry-points document: it needs an "entryPoints" array.`, "invalid_argument", `Fix or delete ${ENTRY_POINTS_FILE}; deleting it gives every entry point a new uniqueId, which breaks the consumers bound to the old ones.`);
|
|
98
101
|
}
|
|
99
102
|
return published;
|
|
100
103
|
}
|
|
@@ -105,4 +108,4 @@ function parseJson(raw) {
|
|
|
105
108
|
|
|
106
109
|
export { ENTRY_POINTS_FILE, BINDINGS_FILE, readRuleProjectAsync, buildRuleEntryPointsAsync, readRulesProjectNameAsync };
|
|
107
110
|
|
|
108
|
-
//# debugId=
|
|
111
|
+
//# debugId=1C1501D8026EDA3B64756E2164756E21
|