@uipath/flow-tool 1.204.0-preview.255 → 1.205.0-preview.256
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/README.md +9 -9
- package/dist/THIRD-PARTY-NOTICES.md +36 -12
- package/dist/{authoring-bppe07p0.js → authoring-e1k40hyw.js} +6 -5
- package/dist/{binding-service-fw3rzae4.js → binding-service-yw91615m.js} +38 -30
- package/dist/{connector-service-2z7s7qtd.js → connector-service-ttm75a4n.js} +224 -47
- package/dist/de-UZI7FJDO-awjpqfz0.js +200 -0
- package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
- package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
- package/dist/debug-conversation-trigger-xsm3ycqx.js +30 -0
- package/dist/{debug-http-client-p4kf38yt.js → debug-http-client-yqjzsnhw.js} +5 -4
- package/dist/{debug-service-893erynq.js → debug-service-nra3n02y.js} +6 -5
- package/dist/{edge-service-6zr5f09c.js → edge-service-8fv0m681.js} +16 -12
- package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
- package/dist/en-EJCBA3LK-0wb3b1xy.js +146 -0
- package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
- package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
- package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
- package/dist/es-4UBUTCQA-t7hsackg.js +200 -0
- package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
- package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
- package/dist/es-MX-5RELIXKI-jtjbcxbb.js +200 -0
- package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
- package/dist/filter-engine-7ep90g7f.js +11 -0
- package/dist/{flow-api-kjvpsxhw.js → flow-api-sat010z1.js} +16 -10
- package/dist/{flow-debug-service-9q9k756w.js → flow-debug-service-cgawm96k.js} +96 -58
- package/dist/{flow-eval-node-target-zvk7fcb2.js → flow-eval-node-target-dah1gmmh.js} +17 -17
- package/dist/flow-eval-run-api-xdygjzfv.js +13 -0
- package/dist/{flow-eval-run-service-2hfqyadh.js → flow-eval-run-service-03j1szf6.js} +73 -80
- package/dist/{flow-eval-service-m5n2svke.js → flow-eval-service-9j46ta9k.js} +167 -415
- package/dist/{flow-init-sdk-source-z9qx1zkt.js → flow-init-sdk-source-xvdvkq7d.js} +6 -5
- package/dist/{flow-init-service-8y8b76zm.js → flow-init-service-0a4y3a46.js} +19 -15
- package/dist/{flow-io-w11yspjx.js → flow-io-1wabd32s.js} +15 -11
- package/dist/{flow-migrate-service-v7ch4t3h.js → flow-migrate-service-mkqpbwtv.js} +16 -12
- package/dist/{flow-pack-service-xs8v5mba.js → flow-pack-service-7dj2hhyz.js} +47 -38
- package/dist/flow-validate-service-1ktjayjv.js +70 -0
- package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
- package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
- package/dist/fr-VBM5WRC2-707ha692.js +200 -0
- package/dist/{governance-fetcher-18pk0mgv.js → governance-fetcher-76hxssjm.js} +7 -6
- package/dist/{hitl-service-ehnfkwhp.js → hitl-service-vcbhd4cb.js} +15 -11
- package/dist/{index-aaq9rwfv.js → index-1b2je9n2.js} +1088 -233
- package/dist/index-d090f35d.js +66 -0
- package/dist/{index-yj4xk2aw.js → index-dgdnbb2g.js} +7 -5
- package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
- package/dist/{index-9hqj0ee4.js → index-hz008fep.js} +6 -5
- package/dist/{index-vrhcbxnk.js → index-nsn889vf.js} +6 -5
- package/dist/{index-2s8rmmw6.js → index-sqhbn7ew.js} +4 -4
- package/dist/{index-tnz5ks4t.js → index-wycgq0ff.js} +65 -2230
- package/dist/index.js +17 -14
- package/dist/init.js +19 -15
- package/dist/inline-entity-resolver-64pqwk86.js +45 -0
- package/dist/input-reader-n7kzdrev.js +12 -0
- package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
- package/dist/ja-43QL7CGO-h6qfxfay.js +200 -0
- package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
- package/dist/{known-types-q6fcyq2e.js → known-types-3025scz1.js} +5 -5
- package/dist/ko-TLL6Z6CD-ag6gjynr.js +200 -0
- package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
- package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
- package/dist/{maestro-automate-entry-qak46eg0.js → maestro-automate-entry-6f9act3w.js} +2 -2
- package/dist/{node-cvwqsgg0.js → node-hz6cvp9d.js} +29 -15
- package/dist/{node-service-544fv7as.js → node-service-7wz8gx7h.js} +41 -30
- package/dist/{node-strategy-fdnkvq4a.js → node-strategy-1dmmhvf3.js} +1 -1
- package/dist/node-sync-service-yvyf7chw.js +61 -0
- package/dist/packager-tool-10vc8pq4.js +2 -0
- package/dist/{packager-tool-29b6r6eg.js → packager-tool-2h15x2kb.js} +6 -6
- package/dist/{packager-tool-h7cjs093.js → packager-tool-2z0r1f32.js} +668 -57
- package/dist/packager-tool-4kr6g0zw.js +16 -0
- package/dist/packager-tool-4x7tzvv0.js +1176 -0
- package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
- package/dist/packager-tool-7hw344bt.js +107 -0
- package/dist/{packager-tool-pb7wzsn4.js → packager-tool-7wnxyvf9.js} +519 -437
- package/dist/{packager-tool-m8xtf5ej.js → packager-tool-8g5931fz.js} +7 -4
- package/dist/{packager-tool-h9tzz0qd.js → packager-tool-961vsbsc.js} +15 -10
- package/dist/packager-tool-9era57c0.js +28 -0
- package/dist/packager-tool-9gprvfcy.js +23 -0
- package/dist/packager-tool-9jxzgsxc.js +14 -0
- package/dist/{packager-tool-zxp4hya4.js → packager-tool-a5afh1dc.js} +34 -13
- package/dist/{packager-tool-02f63a08.js → packager-tool-apawc11t.js} +88 -762
- package/dist/{packager-tool-tf3d2y8z.js → packager-tool-aw9v0raw.js} +2 -2
- package/dist/packager-tool-cqtsj6yh.js +2 -0
- package/dist/{packager-tool-5nqhxb9e.js → packager-tool-dwd6cc01.js} +16110 -13031
- package/dist/{packager-tool-t605qewm.js → packager-tool-dxgrhfq5.js} +2 -2
- package/dist/{packager-tool-awkq26v0.js → packager-tool-e7kvq8hf.js} +5 -3
- package/dist/{packager-tool-2y2mmdnq.js → packager-tool-fjqpf1y6.js} +6 -24
- package/dist/{packager-tool-3dc9gz35.js → packager-tool-frjt46rb.js} +1 -1
- package/dist/{packager-tool-y8egb0fa.js → packager-tool-gqq3vkgh.js} +2573 -535
- package/dist/{packager-tool-w5a1hhyj.js → packager-tool-hxyjn885.js} +13 -2
- package/dist/packager-tool-j3228zs9.js +35 -0
- package/dist/{packager-tool-hhy1gr2k.js → packager-tool-jgfzfqjm.js} +1 -1
- package/dist/{packager-tool-5csvkk54.js → packager-tool-kb520rm5.js} +172 -71
- package/dist/{packager-tool-k04k2rnq.js → packager-tool-kmv2p8z4.js} +20 -8
- package/dist/{packager-tool-6h69pd2a.js → packager-tool-kn86394c.js} +127 -61
- package/dist/packager-tool-mgcz986r.js +143 -0
- package/dist/{packager-tool-3h2ktz6q.js → packager-tool-myhbp761.js} +11 -1
- package/dist/{packager-tool-5tk1eg46.js → packager-tool-ns9xn7zq.js} +13 -13
- package/dist/{packager-tool-vbfz8k7w.js → packager-tool-p8gab24q.js} +52 -32
- package/dist/{packager-tool-stq8800d.js → packager-tool-pacrqxv2.js} +17 -4
- package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
- package/dist/packager-tool-phw8ydjx.js +331 -0
- package/dist/{packager-tool-mx0gg6yh.js → packager-tool-q8akejne.js} +6 -4
- package/dist/packager-tool-qcqb9hf8.js +26 -0
- package/dist/{packager-tool-n89vrpex.js → packager-tool-skcjythd.js} +10907 -25608
- package/dist/{packager-tool-v37kemg5.js → packager-tool-sphnextf.js} +5 -6
- package/dist/{packager-tool-1ca047de.js → packager-tool-sqpesv2e.js} +12 -56
- package/dist/packager-tool-t7ahhaer.js +877 -0
- package/dist/{packager-tool-zgm9mqrh.js → packager-tool-thnkpqwc.js} +1802 -378
- package/dist/{packager-tool-peawy22c.js → packager-tool-tqjfdpda.js} +53 -8
- package/dist/{packager-tool-gb4sm499.js → packager-tool-vd3rn4fj.js} +463 -327
- package/dist/{packager-tool-5tjzg56t.js → packager-tool-wh660fny.js} +1 -1
- package/dist/{packager-tool-tyg399d6.js → packager-tool-wze74wyk.js} +74 -47
- package/dist/{packager-tool-zbhqrk3p.js → packager-tool-x20684x5.js} +1 -1
- package/dist/packager-tool-xj0agqpk.js +11 -0
- package/dist/packager-tool-xk78j7dz.js +1256 -0
- package/dist/{packager-tool-py93409h.js → packager-tool-ymma2s85.js} +2 -2
- package/dist/packager-tool-z0yxfhdj.js +40 -0
- package/dist/packager-tool.js +13 -10
- package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
- package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
- package/dist/pt-BR-USP2T7GD-rppy42ym.js +200 -0
- package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
- package/dist/pt-RMIAKZB4-t80exmp7.js +200 -0
- package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
- package/dist/ro-GHOBYW2S-4zevc9dy.js +200 -0
- package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
- package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
- package/dist/ru-WBLQ5B2U-dpqvtfwr.js +10 -0
- package/dist/services/connector-request-buckets.d.ts +1 -0
- package/dist/services/flow-eval-file-store.d.ts +1 -11
- package/dist/services/flow-eval-utils.d.ts +1 -32
- package/dist/services/flow-validate-service.d.ts +51 -0
- package/dist/services/inline-entity-resolver.d.ts +22 -0
- package/dist/services/node-service.d.ts +21 -1
- package/dist/services/packaging-utils.d.ts +15 -2
- package/dist/{shared-utils-pnbvyyb2.js → shared-utils-tqnx96mg.js} +4 -3
- package/dist/solution-auth-8qz5pw7z.js +14 -0
- package/dist/solution-discovery-vqravtkh.js +44 -0
- package/dist/{tidy-service-j70ccg27.js → tidy-service-tqjea6g2.js} +143 -39
- package/dist/tool.js +17 -14
- package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
- package/dist/tr-GDTLECMM-kngksm3r.js +200 -0
- package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
- package/dist/utils/flow-io.d.ts +2 -1
- package/dist/validation.js +39 -33
- package/dist/{variable-service-86t2r5m9.js → variable-service-kqnqxmx2.js} +16 -12
- package/dist/{wait-for-flow-job-d8m6mqb4.js → wait-for-flow-job-b0vj8828.js} +15 -12
- package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
- package/dist/zh-CN-I5D7WHBD-ge92tbx9.js +200 -0
- package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
- package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
- package/dist/zh-TW-2AVLM723-xsmap3gk.js +200 -0
- package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
- package/package.json +2 -2
- package/dist/debug-conversation-trigger-hgszjdhx.js +0 -44
- package/dist/flow-eval-run-api-byx3cacw.js +0 -13
- package/dist/flow-validate-service-12v3bz1b.js +0 -64
- package/dist/input-reader-vhar4g0k.js +0 -11
- package/dist/node-sync-service-ccwgtyte.js +0 -40
- package/dist/packager-tool-4g5hk66k.js +0 -454
- package/dist/packager-tool-kg35b9s6.js +0 -15
- package/dist/packager-tool-pz5nqg0s.js +0 -64
- package/dist/packager-tool-t3ysatjd.js +0 -521
- package/dist/packager-tool-vd6jt4n8.js +0 -208
- package/dist/packager-tool-vscvjrhn.js +0 -265
- package/dist/services/flow-debug-service.d.ts +0 -320
- package/dist/services/flow-eval-schema/deterministic-evaluators.d.ts +0 -110
- package/dist/services/flow-eval-schema/evaluator-fields.d.ts +0 -66
- package/dist/services/flow-eval-schema/helpers.d.ts +0 -9
- package/dist/services/flow-eval-schema/index.d.ts +0 -4
- package/dist/services/flow-eval-schema/llm-judge-evaluators.d.ts +0 -174
- package/dist/services/flow-eval-schema/prompts.d.ts +0 -2
- package/dist/services/flow-eval-schema/registry.d.ts +0 -375
- package/dist/services/flow-eval-schema/tool-call-evaluators.d.ts +0 -93
- package/dist/services/flow-eval-schema/types.d.ts +0 -95
- package/dist/services/flow-eval-types.d.ts +0 -6
- package/dist/utils/write-resolved-flow.d.ts +0 -7
- /package/dist/{headless-45dypanh.js → headless-fw8pwyzm.js} +0 -0
- /package/dist/{localization-xecwjpe2.js → localization-d6gjmrsw.js} +0 -0
|
@@ -17857,6 +17857,7 @@ var import_rxjs23 = __toESM(require_cjs(), 1);
|
|
|
17857
17857
|
var import_rxjs24 = __toESM(require_cjs(), 1);
|
|
17858
17858
|
var import_rxjs25 = __toESM(require_cjs(), 1);
|
|
17859
17859
|
var import_rxjs26 = __toESM(require_cjs(), 1);
|
|
17860
|
+
var import_rxjs27 = __toESM(require_cjs(), 1);
|
|
17860
17861
|
|
|
17861
17862
|
// ../../node_modules/base64-js/index.js
|
|
17862
17863
|
var $fromByteArray = fromByteArray;
|
|
@@ -17903,7 +17904,6 @@ function fromByteArray(uint8) {
|
|
|
17903
17904
|
}
|
|
17904
17905
|
|
|
17905
17906
|
// ../../node_modules/@uipath/integration-service-design-time/dist/index.mjs
|
|
17906
|
-
var import_rxjs27 = __toESM(require_cjs(), 1);
|
|
17907
17907
|
var import_rxjs28 = __toESM(require_cjs(), 1);
|
|
17908
17908
|
var import_rxjs29 = __toESM(require_cjs(), 1);
|
|
17909
17909
|
var import_rxjs30 = __toESM(require_cjs(), 1);
|
|
@@ -17915,6 +17915,8 @@ var import_rxjs35 = __toESM(require_cjs(), 1);
|
|
|
17915
17915
|
var import_rxjs36 = __toESM(require_cjs(), 1);
|
|
17916
17916
|
var import_rxjs37 = __toESM(require_cjs(), 1);
|
|
17917
17917
|
var import_rxjs38 = __toESM(require_cjs(), 1);
|
|
17918
|
+
var import_rxjs39 = __toESM(require_cjs(), 1);
|
|
17919
|
+
var import_rxjs40 = __toESM(require_cjs(), 1);
|
|
17918
17920
|
var __defProp = Object.defineProperty;
|
|
17919
17921
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
17920
17922
|
var __require2 = /* @__PURE__ */ ((x) => __require)(function(x) {
|
|
@@ -18121,14 +18123,14 @@ var isPromptWrapped = (value) => {
|
|
|
18121
18123
|
};
|
|
18122
18124
|
var OutputPropertyName = "output";
|
|
18123
18125
|
var AutoGeneratedOutputPropertyName = "__autoGeneratedOutput";
|
|
18124
|
-
var getOrAssignFilterVariableKey = (value,
|
|
18125
|
-
for (const [existingKey, existingValue] of
|
|
18126
|
+
var getOrAssignFilterVariableKey = (value, map23) => {
|
|
18127
|
+
for (const [existingKey, existingValue] of map23) {
|
|
18126
18128
|
if (existingValue === value) {
|
|
18127
18129
|
return existingKey;
|
|
18128
18130
|
}
|
|
18129
18131
|
}
|
|
18130
|
-
const key = `var_${
|
|
18131
|
-
|
|
18132
|
+
const key = `var_${map23.size}`;
|
|
18133
|
+
map23.set(key, value);
|
|
18132
18134
|
return key;
|
|
18133
18135
|
};
|
|
18134
18136
|
var getEmptySet = async (expressionLanguage, forwardExpression) => {
|
|
@@ -22202,19 +22204,19 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
22202
22204
|
});
|
|
22203
22205
|
const disc = cached(() => {
|
|
22204
22206
|
const opts = def.options;
|
|
22205
|
-
const
|
|
22207
|
+
const map23 = /* @__PURE__ */ new Map;
|
|
22206
22208
|
for (const o of opts) {
|
|
22207
22209
|
const values = o._zod.propValues?.[def.discriminator];
|
|
22208
22210
|
if (!values || values.size === 0)
|
|
22209
22211
|
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
22210
22212
|
for (const v of values) {
|
|
22211
|
-
if (
|
|
22213
|
+
if (map23.has(v)) {
|
|
22212
22214
|
throw new Error(`Duplicate discriminator value "${String(v)}"`);
|
|
22213
22215
|
}
|
|
22214
|
-
|
|
22216
|
+
map23.set(v, o);
|
|
22215
22217
|
}
|
|
22216
22218
|
}
|
|
22217
|
-
return
|
|
22219
|
+
return map23;
|
|
22218
22220
|
});
|
|
22219
22221
|
inst._zod.parse = (payload, ctx) => {
|
|
22220
22222
|
const input = payload.value;
|
|
@@ -31563,9 +31565,9 @@ var ZodIssueCode = {
|
|
|
31563
31565
|
invalid_value: "invalid_value",
|
|
31564
31566
|
custom: "custom"
|
|
31565
31567
|
};
|
|
31566
|
-
function setErrorMap(
|
|
31568
|
+
function setErrorMap(map23) {
|
|
31567
31569
|
config({
|
|
31568
|
-
customError:
|
|
31570
|
+
customError: map23
|
|
31569
31571
|
});
|
|
31570
31572
|
}
|
|
31571
31573
|
function getErrorMap() {
|
|
@@ -31710,6 +31712,12 @@ var SystemTypes = {
|
|
|
31710
31712
|
List: "System.Collections.Generic.List",
|
|
31711
31713
|
Dictionary: "System.Collections.Generic.Dictionary"
|
|
31712
31714
|
};
|
|
31715
|
+
var NEWLINE_TOKEN = String.raw`(?:system\.)?environment\.newline` + String.raw`|(?:(?:microsoft\.visualbasic\.)?constants\.)?(?:vbcrlf|vblf|vbcr|vbnewline)` + String.raw`|(?:microsoft\.visualbasic\.)?controlchars\.(?:newline|crlf|lf|cr)` + String.raw`|chrw?\(\s*(?:10|13)\s*\)`;
|
|
31716
|
+
var ANY_QUOTE = "[\"'`]";
|
|
31717
|
+
var NEWLINE_OPERAND_RE = {
|
|
31718
|
+
vb: new RegExp(`^(?:${NEWLINE_TOKEN})$`, "i"),
|
|
31719
|
+
js: new RegExp(String.raw`^(?:${NEWLINE_TOKEN}|${ANY_QUOTE}(?:\\r)?\\n${ANY_QUOTE}|${ANY_QUOTE}\\r${ANY_QUOTE})$`, "i")
|
|
31720
|
+
};
|
|
31713
31721
|
var EntryPointsFileContentSchema = zod_default.object({
|
|
31714
31722
|
$schema: zod_default.string(),
|
|
31715
31723
|
$id: zod_default.literal(ENTRY_POINTS_FILE_NAME),
|
|
@@ -34251,7 +34259,7 @@ var DictionaryWidget2 = class {
|
|
|
34251
34259
|
}
|
|
34252
34260
|
};
|
|
34253
34261
|
var FieldDesign = class _FieldDesign {
|
|
34254
|
-
constructor(displayName, description, displayPattern, isMultiSelect, loadByDefault, enableUserOverride, isHidden, position, fieldActions, component, requiredGroups, textBlocks = null, dictionaryWidget = null, selection = null, solutionResourceKind = null, solutionResourceSubTypes = null, exposeAsSubBinding = null, enableURLInput = null) {
|
|
34262
|
+
constructor(displayName, description, displayPattern, isMultiSelect, loadByDefault, enableUserOverride, isHidden, position, fieldActions, component, requiredGroups, textBlocks = null, dictionaryWidget = null, selection = null, solutionResourceKind = null, solutionResourceSubTypes = null, exposeAsSubBinding = null, enableURLInput = null, delimiter = null, disableInlineResourceCreation = null) {
|
|
34255
34263
|
this.displayName = displayName;
|
|
34256
34264
|
this.description = description;
|
|
34257
34265
|
this.displayPattern = displayPattern;
|
|
@@ -34270,6 +34278,8 @@ var FieldDesign = class _FieldDesign {
|
|
|
34270
34278
|
this.solutionResourceSubTypes = solutionResourceSubTypes;
|
|
34271
34279
|
this.exposeAsSubBinding = exposeAsSubBinding;
|
|
34272
34280
|
this.enableURLInput = enableURLInput;
|
|
34281
|
+
this.delimiter = delimiter;
|
|
34282
|
+
this.disableInlineResourceCreation = disableInlineResourceCreation;
|
|
34273
34283
|
}
|
|
34274
34284
|
static factory(serialized) {
|
|
34275
34285
|
const result = Object.create(_FieldDesign.prototype);
|
|
@@ -34626,9 +34636,9 @@ var ApiConfiguration = class _ApiConfiguration {
|
|
|
34626
34636
|
if (!value || typeof value !== "object") {
|
|
34627
34637
|
return value;
|
|
34628
34638
|
}
|
|
34629
|
-
const
|
|
34639
|
+
const map23 = value instanceof Map ? value : Array.isArray(value) ? new Map(value) : new Map(Object.entries(value));
|
|
34630
34640
|
const converter = new TokenSanitizationConverter;
|
|
34631
|
-
return converter.readJson(
|
|
34641
|
+
return converter.readJson(map23);
|
|
34632
34642
|
}
|
|
34633
34643
|
default:
|
|
34634
34644
|
return value;
|
|
@@ -34772,8 +34782,11 @@ var CustomFieldsRequestDetails = class _CustomFieldsRequestDetails {
|
|
|
34772
34782
|
this.tokenValues = tokenValues;
|
|
34773
34783
|
}
|
|
34774
34784
|
}
|
|
34785
|
+
static resourceKeyToken(fieldId) {
|
|
34786
|
+
return `resourceKey(${fieldId})`;
|
|
34787
|
+
}
|
|
34775
34788
|
static tokenValuesFromResourceSelections(savedResourceSelections) {
|
|
34776
|
-
return new Map(Object.entries(savedResourceSelections).map(([fieldId, resourceKey]) => [
|
|
34789
|
+
return new Map(Object.entries(savedResourceSelections).map(([fieldId, resourceKey]) => [_CustomFieldsRequestDetails.resourceKeyToken(fieldId), resourceKey]));
|
|
34777
34790
|
}
|
|
34778
34791
|
static factory(serialized) {
|
|
34779
34792
|
const result = Object.create(_CustomFieldsRequestDetails.prototype);
|
|
@@ -37247,6 +37260,7 @@ var WidgetHelper = class _WidgetHelper {
|
|
|
37247
37260
|
resourceType: field?.design?.solutionResourceKind,
|
|
37248
37261
|
resourceSubTypes: field?.design?.solutionResourceSubTypes ?? undefined,
|
|
37249
37262
|
expectedProperties: ["key"],
|
|
37263
|
+
createDisabled: field?.design?.disableInlineResourceCreation ?? undefined,
|
|
37250
37264
|
widgetValue: selectedResourceId ? { key: JSON.stringify(selectedResourceId) } : { key: "" }
|
|
37251
37265
|
};
|
|
37252
37266
|
}
|
|
@@ -38518,13 +38532,13 @@ var ConnectionReferenceCacheService = class {
|
|
|
38518
38532
|
};
|
|
38519
38533
|
var FieldDesignExtensions = class {
|
|
38520
38534
|
static override(fieldDesign, methodDesign) {
|
|
38521
|
-
return new FieldDesign(methodDesign.displayName ?? fieldDesign.displayName, methodDesign.description ?? fieldDesign.description, fieldDesign.displayPattern, fieldDesign.isMultiSelect, fieldDesign.loadByDefault, fieldDesign.enableUserOverride, fieldDesign.isHidden, methodDesign.position ?? fieldDesign.position, methodDesign.fieldActions ?? fieldDesign.fieldActions, methodDesign.component ?? fieldDesign.component, methodDesign.requiredGroups ?? fieldDesign.requiredGroups, fieldDesign.textBlocks, fieldDesign.dictionaryWidget, fieldDesign.selection, fieldDesign.solutionResourceKind, fieldDesign.solutionResourceSubTypes, fieldDesign.exposeAsSubBinding, fieldDesign.enableURLInput);
|
|
38535
|
+
return new FieldDesign(methodDesign.displayName ?? fieldDesign.displayName, methodDesign.description ?? fieldDesign.description, fieldDesign.displayPattern, fieldDesign.isMultiSelect, fieldDesign.loadByDefault, fieldDesign.enableUserOverride, fieldDesign.isHidden, methodDesign.position ?? fieldDesign.position, methodDesign.fieldActions ?? fieldDesign.fieldActions, methodDesign.component ?? fieldDesign.component, methodDesign.requiredGroups ?? fieldDesign.requiredGroups, fieldDesign.textBlocks, fieldDesign.dictionaryWidget, fieldDesign.selection, fieldDesign.solutionResourceKind, fieldDesign.solutionResourceSubTypes, fieldDesign.exposeAsSubBinding, fieldDesign.enableURLInput, fieldDesign.delimiter, fieldDesign.disableInlineResourceCreation);
|
|
38522
38536
|
}
|
|
38523
38537
|
static asHidden(fieldDesign) {
|
|
38524
38538
|
if (fieldDesign == null) {
|
|
38525
38539
|
return new FieldDesign(null, null, null, null, null, null, true, null, null, null, null);
|
|
38526
38540
|
}
|
|
38527
|
-
return new FieldDesign(fieldDesign.displayName, fieldDesign.description, fieldDesign.displayPattern, fieldDesign.isMultiSelect, fieldDesign.loadByDefault, fieldDesign.enableUserOverride, true, fieldDesign.position, fieldDesign.fieldActions, fieldDesign.component, fieldDesign.requiredGroups, fieldDesign.textBlocks, fieldDesign.dictionaryWidget, fieldDesign.selection, fieldDesign.solutionResourceKind, fieldDesign.solutionResourceSubTypes, fieldDesign.exposeAsSubBinding, fieldDesign.enableURLInput);
|
|
38541
|
+
return new FieldDesign(fieldDesign.displayName, fieldDesign.description, fieldDesign.displayPattern, fieldDesign.isMultiSelect, fieldDesign.loadByDefault, fieldDesign.enableUserOverride, true, fieldDesign.position, fieldDesign.fieldActions, fieldDesign.component, fieldDesign.requiredGroups, fieldDesign.textBlocks, fieldDesign.dictionaryWidget, fieldDesign.selection, fieldDesign.solutionResourceKind, fieldDesign.solutionResourceSubTypes, fieldDesign.exposeAsSubBinding, fieldDesign.enableURLInput, fieldDesign.delimiter, fieldDesign.disableInlineResourceCreation);
|
|
38528
38542
|
}
|
|
38529
38543
|
};
|
|
38530
38544
|
var FieldExtensions = class _FieldExtensions {
|
|
@@ -38536,8 +38550,11 @@ var FieldExtensions = class _FieldExtensions {
|
|
|
38536
38550
|
configurationField.sampleValue = fieldBase?.sampleValue;
|
|
38537
38551
|
return configurationField;
|
|
38538
38552
|
}
|
|
38553
|
+
static isSolutionResourceField(fieldDesign) {
|
|
38554
|
+
return fieldDesign?.component === "Resources";
|
|
38555
|
+
}
|
|
38539
38556
|
static isSolutionResourceProcessField(fieldDesign) {
|
|
38540
|
-
return fieldDesign
|
|
38557
|
+
return _FieldExtensions.isSolutionResourceField(fieldDesign) && fieldDesign?.solutionResourceKind === SolutionResourceKind.process;
|
|
38541
38558
|
}
|
|
38542
38559
|
static _isRequired(fieldMethod, fieldLocation) {
|
|
38543
38560
|
return fieldLocation !== "output" && fieldMethod?.required === true;
|
|
@@ -38558,76 +38575,6 @@ var RemapFieldsConfiguration = class {
|
|
|
38558
38575
|
this.output = output;
|
|
38559
38576
|
}
|
|
38560
38577
|
};
|
|
38561
|
-
var ConnectorActionInfo = class {
|
|
38562
|
-
constructor(connectorAction, affectedFieldName = null) {
|
|
38563
|
-
this.affectedFieldName = affectedFieldName;
|
|
38564
|
-
this.connectorAction = connectorAction;
|
|
38565
|
-
}
|
|
38566
|
-
};
|
|
38567
|
-
var RuleExtensions = class _RuleExtensions {
|
|
38568
|
-
static isSatisfied(rule, fieldValue, affectingFieldName = null, isButton = false, hasCustomRecordLevelFields = false, isOptional = false) {
|
|
38569
|
-
if (fieldValue.name !== rule.refFieldName) {
|
|
38570
|
-
throw new InvalidOperationException(DapException.getTranslationService().instant("dap.Exception_InvalidRuleArgumentMessage"));
|
|
38571
|
-
}
|
|
38572
|
-
if (StringExtensions.equalsIgnoreCase(rule.customRecordLevelFields, "generated") && !hasCustomRecordLevelFields) {
|
|
38573
|
-
return false;
|
|
38574
|
-
}
|
|
38575
|
-
if (StringExtensions.equalsIgnoreCase(rule.customRecordLevelFields, "notGenerated") && hasCustomRecordLevelFields) {
|
|
38576
|
-
return false;
|
|
38577
|
-
}
|
|
38578
|
-
if (rule.onRefFieldUpdate === true && affectingFieldName !== fieldValue.name) {
|
|
38579
|
-
return false;
|
|
38580
|
-
}
|
|
38581
|
-
if (isButton && affectingFieldName === fieldValue.name) {
|
|
38582
|
-
return true;
|
|
38583
|
-
}
|
|
38584
|
-
if (rule.isCleared === true && !fieldValue.hasValue) {
|
|
38585
|
-
return true;
|
|
38586
|
-
}
|
|
38587
|
-
if (!fieldValue.hasValue && isOptional && rule.refFieldValues?.find((f) => f === Constants.FieldActionsMatchAnyValue) !== undefined) {
|
|
38588
|
-
return true;
|
|
38589
|
-
}
|
|
38590
|
-
return _RuleExtensions._checkValueMatchesRule(rule, fieldValue);
|
|
38591
|
-
}
|
|
38592
|
-
static _checkValueMatchesRule(rule, fieldValue) {
|
|
38593
|
-
const argument = fieldValue.value;
|
|
38594
|
-
if (rule.isWorkflowExpression === true && !fieldValue.isLiteralCompatibleExpression && fieldValue.isWorkflowExpression || rule.isConstantValue === true && (fieldValue.isLiteralCompatibleExpression || fieldValue.isLiteralValue)) {
|
|
38595
|
-
return true;
|
|
38596
|
-
}
|
|
38597
|
-
if (rule.refFieldValues?.length === 1 && rule.refFieldValues[0]?.toString() === Constants.FieldActionsMatchAnyValue && fieldValue.hasValue) {
|
|
38598
|
-
return true;
|
|
38599
|
-
}
|
|
38600
|
-
let value = null;
|
|
38601
|
-
if (fieldValue.type === "fieldArgument" && argument?.isLiteral) {
|
|
38602
|
-
value = argument.value;
|
|
38603
|
-
} else if (fieldValue.type === "fieldLiteral") {
|
|
38604
|
-
value = argument?.value ?? null;
|
|
38605
|
-
if (StringExtensions.isNullOrWhiteSpace(value?.toString())) {
|
|
38606
|
-
value = null;
|
|
38607
|
-
}
|
|
38608
|
-
}
|
|
38609
|
-
if (rule.refFieldValues != null && value != null) {
|
|
38610
|
-
return rule.refFieldValues.find((refValue) => refValue === value) !== undefined;
|
|
38611
|
-
}
|
|
38612
|
-
return false;
|
|
38613
|
-
}
|
|
38614
|
-
};
|
|
38615
|
-
var ConnectorActionExtensions = class {
|
|
38616
|
-
static isSatisfied(action, fieldValues, affectingField = "", isButton = false, hasCustomRecordLevelFields = false) {
|
|
38617
|
-
return action.rules.every((rule) => {
|
|
38618
|
-
let isOptional = false;
|
|
38619
|
-
if (action instanceof ObjectAction) {
|
|
38620
|
-
isOptional = action.apiConfiguration?.optionalParameters?.find((p) => p === rule.refFieldName) !== undefined;
|
|
38621
|
-
}
|
|
38622
|
-
const fieldObject = fieldValues.find((x) => x.name === rule.refFieldName) ?? null;
|
|
38623
|
-
if (fieldObject == null) {
|
|
38624
|
-
const messageTemplate = DapException.getTranslationService().instant("dap.errorCodeMessages._2003");
|
|
38625
|
-
throw new DesigntimeException(2003, StringExtensions.format(messageTemplate, rule.refFieldName));
|
|
38626
|
-
}
|
|
38627
|
-
return RuleExtensions.isSatisfied(rule, fieldObject, affectingField, isButton, hasCustomRecordLevelFields, isOptional);
|
|
38628
|
-
});
|
|
38629
|
-
}
|
|
38630
|
-
};
|
|
38631
38578
|
var FieldObjectHelpers = class _FieldObjectHelpers {
|
|
38632
38579
|
static getFieldArgumentValue(fieldObjects, propertyName) {
|
|
38633
38580
|
const fieldObject = _FieldObjectHelpers.getFieldArgument(fieldObjects, propertyName);
|
|
@@ -38704,6 +38651,139 @@ var FieldObjectHelpers = class _FieldObjectHelpers {
|
|
|
38704
38651
|
return ArrayExtensions.firstOrDefault(fieldObjects, (x) => x.name === companionName);
|
|
38705
38652
|
}
|
|
38706
38653
|
};
|
|
38654
|
+
var ApiConfigurationExtensions = class _ApiConfigurationExtensions {
|
|
38655
|
+
static getRequestParameterNames(apiConfiguration) {
|
|
38656
|
+
const parameters = NamingHelper.extractTokens(apiConfiguration.url);
|
|
38657
|
+
if (apiConfiguration.body != null) {
|
|
38658
|
+
parameters.push(...[...apiConfiguration.body.values()].flatMap((x) => NamingHelper.extractTokens(x)));
|
|
38659
|
+
}
|
|
38660
|
+
return [...new Set(parameters.filter((t) => !t.trimStart().startsWith("=")))];
|
|
38661
|
+
}
|
|
38662
|
+
static getRequestParameterValues(apiConfiguration, fieldObjects, widgetTranslatorService) {
|
|
38663
|
+
const requestParameterValues = new Map(_ApiConfigurationExtensions.getRequestParameterNames(apiConfiguration).map((x) => [x, null]));
|
|
38664
|
+
const optionalParameters = new Set(apiConfiguration.optionalParameters ?? []);
|
|
38665
|
+
for (const key of requestParameterValues.keys()) {
|
|
38666
|
+
const fieldValue = this._getFieldValue(fieldObjects, key, widgetTranslatorService);
|
|
38667
|
+
if (fieldValue == null && !optionalParameters.has(key)) {
|
|
38668
|
+
return null;
|
|
38669
|
+
}
|
|
38670
|
+
requestParameterValues.set(key, fieldValue);
|
|
38671
|
+
}
|
|
38672
|
+
return requestParameterValues;
|
|
38673
|
+
}
|
|
38674
|
+
static _getFieldValue(fieldObjects, propertyName, widgetTranslatorService) {
|
|
38675
|
+
const fieldObject = FieldObjectHelpers.getFieldArgumentOrLiteral(fieldObjects, propertyName);
|
|
38676
|
+
if (fieldObject == null) {
|
|
38677
|
+
return null;
|
|
38678
|
+
}
|
|
38679
|
+
switch (fieldObject.type) {
|
|
38680
|
+
case "fieldArgument":
|
|
38681
|
+
return this._getArgumentValue(fieldObject, widgetTranslatorService);
|
|
38682
|
+
case "fieldLiteral":
|
|
38683
|
+
return this._toLiteralString(fieldObject.value);
|
|
38684
|
+
default:
|
|
38685
|
+
return null;
|
|
38686
|
+
}
|
|
38687
|
+
}
|
|
38688
|
+
static _getArgumentValue(fieldObject, widgetTranslatorService) {
|
|
38689
|
+
if (!(fieldObject.value instanceof WorkflowValue)) {
|
|
38690
|
+
return null;
|
|
38691
|
+
}
|
|
38692
|
+
let result = null;
|
|
38693
|
+
if (fieldObject.value.isLiteral) {
|
|
38694
|
+
result = this._toLiteralString(fieldObject.value.value);
|
|
38695
|
+
} else {
|
|
38696
|
+
const parsed = widgetTranslatorService.parseLiteralExpression(fieldObject.value.value?.toString() ?? StringExtensions.empty);
|
|
38697
|
+
if (parsed.isLiteral) {
|
|
38698
|
+
result = this._toLiteralString(parsed.value);
|
|
38699
|
+
}
|
|
38700
|
+
}
|
|
38701
|
+
return result;
|
|
38702
|
+
}
|
|
38703
|
+
static _toLiteralString(value) {
|
|
38704
|
+
if (value == null) {
|
|
38705
|
+
return null;
|
|
38706
|
+
}
|
|
38707
|
+
const valueType = typeof value;
|
|
38708
|
+
if (valueType === "string" || valueType === "number" || valueType === "boolean") {
|
|
38709
|
+
return value.toString();
|
|
38710
|
+
}
|
|
38711
|
+
if (value instanceof WorkflowValue) {
|
|
38712
|
+
return _ApiConfigurationExtensions._toLiteralString(value.value);
|
|
38713
|
+
}
|
|
38714
|
+
return null;
|
|
38715
|
+
}
|
|
38716
|
+
};
|
|
38717
|
+
var ConnectorActionInfo = class {
|
|
38718
|
+
constructor(connectorAction, affectedFieldName = null) {
|
|
38719
|
+
this.affectedFieldName = affectedFieldName;
|
|
38720
|
+
this.connectorAction = connectorAction;
|
|
38721
|
+
}
|
|
38722
|
+
};
|
|
38723
|
+
var RuleExtensions = class _RuleExtensions {
|
|
38724
|
+
static isSatisfied(rule, fieldValue, affectingFieldName = null, isButton = false, hasCustomRecordLevelFields = false, isOptional = false) {
|
|
38725
|
+
if (fieldValue.name !== rule.refFieldName) {
|
|
38726
|
+
throw new InvalidOperationException(DapException.getTranslationService().instant("dap.Exception_InvalidRuleArgumentMessage"));
|
|
38727
|
+
}
|
|
38728
|
+
if (StringExtensions.equalsIgnoreCase(rule.customRecordLevelFields, "generated") && !hasCustomRecordLevelFields) {
|
|
38729
|
+
return false;
|
|
38730
|
+
}
|
|
38731
|
+
if (StringExtensions.equalsIgnoreCase(rule.customRecordLevelFields, "notGenerated") && hasCustomRecordLevelFields) {
|
|
38732
|
+
return false;
|
|
38733
|
+
}
|
|
38734
|
+
if (rule.onRefFieldUpdate === true && affectingFieldName !== fieldValue.name) {
|
|
38735
|
+
return false;
|
|
38736
|
+
}
|
|
38737
|
+
if (isButton && affectingFieldName === fieldValue.name) {
|
|
38738
|
+
return true;
|
|
38739
|
+
}
|
|
38740
|
+
if (rule.isCleared === true && !fieldValue.hasValue) {
|
|
38741
|
+
return true;
|
|
38742
|
+
}
|
|
38743
|
+
if (!fieldValue.hasValue && isOptional && rule.refFieldValues?.find((f) => f === Constants.FieldActionsMatchAnyValue) !== undefined) {
|
|
38744
|
+
return true;
|
|
38745
|
+
}
|
|
38746
|
+
return _RuleExtensions._checkValueMatchesRule(rule, fieldValue);
|
|
38747
|
+
}
|
|
38748
|
+
static _checkValueMatchesRule(rule, fieldValue) {
|
|
38749
|
+
const argument = fieldValue.value;
|
|
38750
|
+
if (rule.isWorkflowExpression === true && !fieldValue.isLiteralCompatibleExpression && fieldValue.isWorkflowExpression || rule.isConstantValue === true && (fieldValue.isLiteralCompatibleExpression || fieldValue.isLiteralValue)) {
|
|
38751
|
+
return true;
|
|
38752
|
+
}
|
|
38753
|
+
if (rule.refFieldValues?.length === 1 && rule.refFieldValues[0]?.toString() === Constants.FieldActionsMatchAnyValue && fieldValue.hasValue) {
|
|
38754
|
+
return true;
|
|
38755
|
+
}
|
|
38756
|
+
let value = null;
|
|
38757
|
+
if (fieldValue.type === "fieldArgument" && argument?.isLiteral) {
|
|
38758
|
+
value = argument.value;
|
|
38759
|
+
} else if (fieldValue.type === "fieldLiteral") {
|
|
38760
|
+
value = argument?.value ?? null;
|
|
38761
|
+
if (StringExtensions.isNullOrWhiteSpace(value?.toString())) {
|
|
38762
|
+
value = null;
|
|
38763
|
+
}
|
|
38764
|
+
}
|
|
38765
|
+
if (rule.refFieldValues != null && value != null) {
|
|
38766
|
+
return rule.refFieldValues.find((refValue) => refValue === value) !== undefined;
|
|
38767
|
+
}
|
|
38768
|
+
return false;
|
|
38769
|
+
}
|
|
38770
|
+
};
|
|
38771
|
+
var ConnectorActionExtensions = class {
|
|
38772
|
+
static isSatisfied(action, fieldValues, affectingField = "", isButton = false, hasCustomRecordLevelFields = false) {
|
|
38773
|
+
return action.rules.every((rule) => {
|
|
38774
|
+
let isOptional = false;
|
|
38775
|
+
if (action instanceof ObjectAction) {
|
|
38776
|
+
isOptional = action.apiConfiguration?.optionalParameters?.find((p) => p === rule.refFieldName) !== undefined;
|
|
38777
|
+
}
|
|
38778
|
+
const fieldObject = fieldValues.find((x) => x.name === rule.refFieldName) ?? null;
|
|
38779
|
+
if (fieldObject == null) {
|
|
38780
|
+
const messageTemplate = DapException.getTranslationService().instant("dap.errorCodeMessages._2003");
|
|
38781
|
+
throw new DesigntimeException(2003, StringExtensions.format(messageTemplate, rule.refFieldName));
|
|
38782
|
+
}
|
|
38783
|
+
return RuleExtensions.isSatisfied(rule, fieldObject, affectingField, isButton, hasCustomRecordLevelFields, isOptional);
|
|
38784
|
+
});
|
|
38785
|
+
}
|
|
38786
|
+
};
|
|
38707
38787
|
var FieldValueWrapper = class {
|
|
38708
38788
|
constructor(fieldObject) {
|
|
38709
38789
|
this._isLiteralCompatibleExpression = null;
|
|
@@ -38886,6 +38966,14 @@ var ConnectorActionsService = class _ConnectorActionsService {
|
|
|
38886
38966
|
const generalResetActions = this._connectorActionsProcessor.getValidActions(fieldObjects, isButtonPressed, this._hasCustomFields, this._ignoreUnresolvedRefFields).filter((x) => x.connectorAction instanceof ObjectAction).map((x) => x.connectorAction).filter((action) => action.actionType === "reset");
|
|
38887
38967
|
return generalResetActions.length > 0 ? generalResetActions[0] : null;
|
|
38888
38968
|
}
|
|
38969
|
+
getSchemaTriggerFieldsDependingOn(refFieldName) {
|
|
38970
|
+
const triggerFieldIds = new Set(ActivityConfigurationExtensions.getFieldContainer(this._activityConfiguration).getActiveInputFields().filter((f) => f.design?.component === "Button").map((f) => f.id));
|
|
38971
|
+
if (triggerFieldIds.size === 0 || triggerFieldIds.has(refFieldName)) {
|
|
38972
|
+
return [];
|
|
38973
|
+
}
|
|
38974
|
+
const triggerFields = (this._activityConfiguration.objectActions ?? []).filter((action) => action.rules.some((rule) => rule.refFieldName === refFieldName) || action.apiConfiguration != null && ApiConfigurationExtensions.getRequestParameterNames(action.apiConfiguration).includes(refFieldName)).flatMap((action) => action.rules.map((rule) => rule.refFieldName)).filter((name) => triggerFieldIds.has(name));
|
|
38975
|
+
return [...new Set(triggerFields)];
|
|
38976
|
+
}
|
|
38889
38977
|
processFieldActions(refFieldName, designProperties) {
|
|
38890
38978
|
const fieldObjects = this._modelItem.fieldObjects;
|
|
38891
38979
|
if (fieldObjects == null || !this._connectorActionsProcessorField) {
|
|
@@ -40493,6 +40581,185 @@ var JitTypeCreationParameters = class {
|
|
|
40493
40581
|
this.objectMethodKey = objectMethodKey;
|
|
40494
40582
|
}
|
|
40495
40583
|
};
|
|
40584
|
+
var CustomFieldsRequestParameters = class _CustomFieldsRequestParameters {
|
|
40585
|
+
constructor(apiConfiguration, onSuccess, onFailure, parameterValues, customHandlerOptions, fields = null, savedTokenValues = null) {
|
|
40586
|
+
this.solutionResourceConfigurations = null;
|
|
40587
|
+
this.errorHandler = null;
|
|
40588
|
+
this.method = apiConfiguration.method;
|
|
40589
|
+
this.parameterValues = parameterValues;
|
|
40590
|
+
this.tokenValues = /* @__PURE__ */ new Map;
|
|
40591
|
+
const sources = {
|
|
40592
|
+
parameterValues,
|
|
40593
|
+
fields,
|
|
40594
|
+
savedTokenValues,
|
|
40595
|
+
resolvedTokenValues: this.tokenValues
|
|
40596
|
+
};
|
|
40597
|
+
this.url = _CustomFieldsRequestParameters._fillParameters(apiConfiguration.url, sources);
|
|
40598
|
+
if (apiConfiguration.body) {
|
|
40599
|
+
this.body = /* @__PURE__ */ new Map;
|
|
40600
|
+
for (const pair of apiConfiguration.body.entries()) {
|
|
40601
|
+
this.body.set(pair[0], _CustomFieldsRequestParameters._fillParameters(pair[1], sources));
|
|
40602
|
+
}
|
|
40603
|
+
} else {
|
|
40604
|
+
this.body = null;
|
|
40605
|
+
}
|
|
40606
|
+
this.onSuccessConfiguration = onSuccess;
|
|
40607
|
+
this.onFailureConfiguration = onFailure;
|
|
40608
|
+
this.customHandlerOptions = customHandlerOptions;
|
|
40609
|
+
this.solutionResourceIdsByRequestParamValue = _CustomFieldsRequestParameters._getSolutionResourceIdsByRequestParamValue(apiConfiguration, sources);
|
|
40610
|
+
}
|
|
40611
|
+
static _getSolutionResourceIdsByRequestParamValue(apiConfiguration, sources) {
|
|
40612
|
+
const templates = [apiConfiguration.url, ...apiConfiguration.body?.values() ?? []];
|
|
40613
|
+
const idsByRequestParamValue = /* @__PURE__ */ new Map;
|
|
40614
|
+
for (const template of templates) {
|
|
40615
|
+
for (const rawToken of NamingHelper.extractTokens(template)) {
|
|
40616
|
+
const entry = _CustomFieldsRequestParameters._solutionResourceEntry(rawToken, sources);
|
|
40617
|
+
if (entry) {
|
|
40618
|
+
idsByRequestParamValue.set(entry[0], entry[1]);
|
|
40619
|
+
}
|
|
40620
|
+
}
|
|
40621
|
+
}
|
|
40622
|
+
return idsByRequestParamValue;
|
|
40623
|
+
}
|
|
40624
|
+
static _solutionResourceEntry(rawToken, sources) {
|
|
40625
|
+
const token = rawToken.trim();
|
|
40626
|
+
const isExpression = token.startsWith("=");
|
|
40627
|
+
const fieldName = isExpression ? _CustomFieldsRequestParameters.parseExpressionToken(token).fieldName : token;
|
|
40628
|
+
const field = sources.fields?.find((f) => (isExpression ? f.name : f.id) === fieldName) ?? null;
|
|
40629
|
+
if (field != null && !FieldExtensions.isSolutionResourceField(field.design)) {
|
|
40630
|
+
return null;
|
|
40631
|
+
}
|
|
40632
|
+
const paramValue = _CustomFieldsRequestParameters._resolveTokenValue(rawToken, sources);
|
|
40633
|
+
const resourceId = field != null ? field.selectedResourceId : sources.savedTokenValues?.get(CustomFieldsRequestDetails.resourceKeyToken(fieldName)) ?? null;
|
|
40634
|
+
if (StringExtensions.isNullOrEmpty(paramValue) || StringExtensions.isNullOrEmpty(resourceId)) {
|
|
40635
|
+
return null;
|
|
40636
|
+
}
|
|
40637
|
+
return [paramValue, resourceId];
|
|
40638
|
+
}
|
|
40639
|
+
static isEventMetadataUrl(url2) {
|
|
40640
|
+
return url2.startsWith("/metadata");
|
|
40641
|
+
}
|
|
40642
|
+
static parseExpressionToken(raw) {
|
|
40643
|
+
const body = raw.trim().slice(1).trim();
|
|
40644
|
+
const openParen = body.indexOf("(");
|
|
40645
|
+
const closeParen = body.lastIndexOf(")");
|
|
40646
|
+
if (openParen <= 0 || closeParen !== body.length - 1 || closeParen < openParen) {
|
|
40647
|
+
throw new DesigntimeException(2253, `Invalid template expression: {${raw}}`);
|
|
40648
|
+
}
|
|
40649
|
+
return {
|
|
40650
|
+
property: body.slice(0, openParen).trim(),
|
|
40651
|
+
fieldName: body.slice(openParen + 1, closeParen).trim()
|
|
40652
|
+
};
|
|
40653
|
+
}
|
|
40654
|
+
static _fillParameters(template, sources) {
|
|
40655
|
+
let builder = template;
|
|
40656
|
+
for (const key of NamingHelper.extractTokens(template)) {
|
|
40657
|
+
const resolved = _CustomFieldsRequestParameters._resolveTokenValue(key, sources);
|
|
40658
|
+
builder = _CustomFieldsRequestParameters._substituteToken(builder, template, key, resolved);
|
|
40659
|
+
}
|
|
40660
|
+
return builder;
|
|
40661
|
+
}
|
|
40662
|
+
static _resolveTokenValue(key, sources) {
|
|
40663
|
+
if (key.trimStart().startsWith("=")) {
|
|
40664
|
+
const token = key.trim().slice(1).trim();
|
|
40665
|
+
const fromField = _CustomFieldsRequestParameters._resolveExpressionToken(key, sources.fields);
|
|
40666
|
+
const resolved = fromField === undefined ? sources.savedTokenValues?.get(token) ?? null : fromField;
|
|
40667
|
+
if (resolved != null) {
|
|
40668
|
+
sources.resolvedTokenValues.set(token, resolved);
|
|
40669
|
+
}
|
|
40670
|
+
return resolved;
|
|
40671
|
+
}
|
|
40672
|
+
if (!sources.parameterValues.has(key)) {
|
|
40673
|
+
throw new DesigntimeException(2252);
|
|
40674
|
+
}
|
|
40675
|
+
return sources.parameterValues.get(key) ?? null;
|
|
40676
|
+
}
|
|
40677
|
+
static _substituteToken(builder, template, key, value) {
|
|
40678
|
+
if (StringExtensions.isNullOrEmpty(value)) {
|
|
40679
|
+
if (template.includes("?")) {
|
|
40680
|
+
return _CustomFieldsRequestParameters._removeParameterFromUrl(builder, "{" + key + "}");
|
|
40681
|
+
}
|
|
40682
|
+
return builder.replaceAll(`{${key}}`, StringExtensions.empty);
|
|
40683
|
+
}
|
|
40684
|
+
return builder.replaceAll(`{${key}}`, () => value);
|
|
40685
|
+
}
|
|
40686
|
+
static _resolveExpressionToken(raw, fields) {
|
|
40687
|
+
const {
|
|
40688
|
+
property: property2,
|
|
40689
|
+
fieldName
|
|
40690
|
+
} = _CustomFieldsRequestParameters.parseExpressionToken(raw);
|
|
40691
|
+
const field = fields?.find((f) => f.name === fieldName);
|
|
40692
|
+
if (field == null) {
|
|
40693
|
+
return;
|
|
40694
|
+
}
|
|
40695
|
+
const value = field[property2];
|
|
40696
|
+
if (value == null) {
|
|
40697
|
+
return null;
|
|
40698
|
+
}
|
|
40699
|
+
if (typeof value === "string") {
|
|
40700
|
+
return value;
|
|
40701
|
+
}
|
|
40702
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
40703
|
+
return value.toString();
|
|
40704
|
+
}
|
|
40705
|
+
return null;
|
|
40706
|
+
}
|
|
40707
|
+
static _removeParameterFromUrl(builder, tokenValue) {
|
|
40708
|
+
if (StringExtensions.isNullOrWhiteSpace(tokenValue)) {
|
|
40709
|
+
throw new ArgumentNullException("Builder and key cannot be null or empty.");
|
|
40710
|
+
}
|
|
40711
|
+
const builderString = builder;
|
|
40712
|
+
const queryStart = builderString.indexOf("?");
|
|
40713
|
+
if (queryStart >= 0) {
|
|
40714
|
+
const queryString = builderString.substring(queryStart + 1);
|
|
40715
|
+
const parameters = queryString.split("&").filter((p) => {
|
|
40716
|
+
const eqIdx = p.indexOf("=");
|
|
40717
|
+
if (eqIdx < 0) {
|
|
40718
|
+
return true;
|
|
40719
|
+
}
|
|
40720
|
+
return p.substring(eqIdx + 1).toLowerCase() !== tokenValue.toLowerCase();
|
|
40721
|
+
});
|
|
40722
|
+
builder = "";
|
|
40723
|
+
builder += builderString.substring(0, queryStart);
|
|
40724
|
+
if (parameters.length > 0) {
|
|
40725
|
+
builder += "?";
|
|
40726
|
+
builder += parameters.join("&");
|
|
40727
|
+
}
|
|
40728
|
+
}
|
|
40729
|
+
return builder;
|
|
40730
|
+
}
|
|
40731
|
+
};
|
|
40732
|
+
function supportsAllConfigurations(resources) {
|
|
40733
|
+
return typeof resources?.getAllConfigurations === "function";
|
|
40734
|
+
}
|
|
40735
|
+
function httpMethodSupportsRequestBody(method) {
|
|
40736
|
+
const upperCaseMethod = method?.toUpperCase();
|
|
40737
|
+
return upperCaseMethod === "POST" || upperCaseMethod === "PUT" || upperCaseMethod === "PATCH";
|
|
40738
|
+
}
|
|
40739
|
+
function needsSolutionResourceConfigurations(parameters) {
|
|
40740
|
+
return httpMethodSupportsRequestBody(parameters.method) && (parameters.solutionResourceIdsByRequestParamValue?.size ?? 0) > 0;
|
|
40741
|
+
}
|
|
40742
|
+
function getCustomFieldsRequestBody(parameters) {
|
|
40743
|
+
if (!httpMethodSupportsRequestBody(parameters.method)) {
|
|
40744
|
+
return null;
|
|
40745
|
+
}
|
|
40746
|
+
const requestBody = new Map([
|
|
40747
|
+
...parameters.body ?? [],
|
|
40748
|
+
...parameters.solutionResourceConfigurations ?? []
|
|
40749
|
+
]);
|
|
40750
|
+
return requestBody.size > 0 ? requestBody : null;
|
|
40751
|
+
}
|
|
40752
|
+
function readSolutionResourceConfigurations(parameters, resources) {
|
|
40753
|
+
if (!needsSolutionResourceConfigurations(parameters) || !supportsAllConfigurations(resources)) {
|
|
40754
|
+
return import_rxjs17.of(null);
|
|
40755
|
+
}
|
|
40756
|
+
const entries = [...parameters.solutionResourceIdsByRequestParamValue];
|
|
40757
|
+
const resourceIds = [...new Set(entries.map(([, resourceId]) => resourceId))];
|
|
40758
|
+
return import_rxjs17.forkJoin(resourceIds.map((key) => resources.getAllConfigurations({ key }))).pipe(import_rxjs17.map((graphs) => {
|
|
40759
|
+
const graphsById = new Map(resourceIds.map((resourceId, index) => [resourceId, graphs[index].resources]));
|
|
40760
|
+
return new Map(entries.map(([paramValue, resourceId]) => [paramValue, graphsById.get(resourceId) ?? []]));
|
|
40761
|
+
}));
|
|
40762
|
+
}
|
|
40496
40763
|
var FieldsService = class _FieldsService {
|
|
40497
40764
|
constructor(_metadataService, _apiServices, _translationService, _resourcesService) {
|
|
40498
40765
|
this._metadataService = _metadataService;
|
|
@@ -40629,10 +40896,7 @@ var FieldsService = class _FieldsService {
|
|
|
40629
40896
|
}
|
|
40630
40897
|
_getCustomFieldsDetails(connectionId, objectMethodKey, methodParameters, searchableJoins, activityConfiguration, defaultFieldsContainer, customFieldsParameters) {
|
|
40631
40898
|
const telemetryOperation = DesignTimeActivityConfigurationExtensions.createTelemetryOperation(activityConfiguration, connectionId, "GetCustomFieldsDetailsAsync");
|
|
40632
|
-
|
|
40633
|
-
if (customFieldsParameters.customHandlerOptions) {
|
|
40634
|
-
resolver = this._getCustomFieldsForCustomRequestHandler(customFieldsParameters, defaultFieldsContainer, objectMethodKey);
|
|
40635
|
-
}
|
|
40899
|
+
const resolver = customFieldsParameters.customHandlerOptions ? this._getCustomFieldsForCustomRequestHandler(customFieldsParameters, defaultFieldsContainer, objectMethodKey) : this._resolveSolutionResourceConfigurations(customFieldsParameters).pipe(import_rxjs16.switchMap(() => this._metadataService.getCustomFieldsDetails(activityConfiguration, connectionId, customFieldsParameters, telemetryOperation)));
|
|
40636
40900
|
return resolver.pipe(import_rxjs16.switchMap((customFieldsDetails) => {
|
|
40637
40901
|
const fields = Object.values(customFieldsDetails.fields);
|
|
40638
40902
|
const customFieldsContainer = _FieldsService._getRawFieldsContainer(fields, objectMethodKey, searchableJoins, _FieldsService._isFilterBuilderActivity(fields, methodParameters), false);
|
|
@@ -40655,6 +40919,23 @@ var FieldsService = class _FieldsService {
|
|
|
40655
40919
|
return import_rxjs16.of([connectorFieldsContainer, preserveInputFields, preserveOutputFields]);
|
|
40656
40920
|
}));
|
|
40657
40921
|
}
|
|
40922
|
+
clearSolutionResourceConfigurationsCache() {
|
|
40923
|
+
const resourcesService = this._resourcesService;
|
|
40924
|
+
return supportsAllConfigurations(resourcesService) && resourcesService.clearAllConfigurationsCache ? resourcesService.clearAllConfigurationsCache().pipe(import_rxjs16.catchError(() => import_rxjs16.of(undefined))) : import_rxjs16.of(undefined);
|
|
40925
|
+
}
|
|
40926
|
+
resolveEventSolutionResourceConfigurations(eventFieldsRequestParameters) {
|
|
40927
|
+
return CustomFieldsRequestParameters.isEventMetadataUrl(eventFieldsRequestParameters.url) ? import_rxjs16.of(undefined) : this._resolveSolutionResourceConfigurations(eventFieldsRequestParameters);
|
|
40928
|
+
}
|
|
40929
|
+
_resolveSolutionResourceConfigurations(customFieldsParameters) {
|
|
40930
|
+
if (customFieldsParameters.solutionResourceConfigurations != null) {
|
|
40931
|
+
return import_rxjs16.of(undefined);
|
|
40932
|
+
}
|
|
40933
|
+
return readSolutionResourceConfigurations(customFieldsParameters, this._resourcesService).pipe(import_rxjs16.map((configurations) => {
|
|
40934
|
+
if (configurations) {
|
|
40935
|
+
customFieldsParameters.solutionResourceConfigurations = configurations;
|
|
40936
|
+
}
|
|
40937
|
+
}), import_rxjs16.catchError((error46) => import_rxjs16.throwError(() => new DesigntimeException(2253, error46 instanceof Error ? error46.message : undefined))));
|
|
40938
|
+
}
|
|
40658
40939
|
_getCustomFieldsForCustomRequestHandler(customFieldsParameters, defaultFieldsContainer, objectMethodKey) {
|
|
40659
40940
|
if (customFieldsParameters.customHandlerOptions?.requestHandlerType === "solutionResourceByNameRequestHandler" && this._resourcesService) {
|
|
40660
40941
|
const field = defaultFieldsContainer.inputFields.find((f) => FieldExtensions.isSolutionResourceProcessField(f.design));
|
|
@@ -40787,7 +41068,8 @@ var FieldsService = class _FieldsService {
|
|
|
40787
41068
|
const shouldFetchPrimary = activityConfiguration.objectActions == null || eventFieldsRequestParameters != null || isEssentialOnly;
|
|
40788
41069
|
if (shouldFetchPrimary) {
|
|
40789
41070
|
const primaryTelemetry = DesignTimeActivityConfigurationExtensions.createTelemetryOperation(activityConfiguration, connectionId, "GetConnectorObjectEventAsync");
|
|
40790
|
-
|
|
41071
|
+
const primaryConfigurations$ = firstFetchParams == null ? import_rxjs16.of(undefined) : this.resolveEventSolutionResourceConfigurations(firstFetchParams);
|
|
41072
|
+
continuation = primaryConfigurations$.pipe(import_rxjs16.switchMap(() => this._metadataService.getConnectorObjectEvent(activityConfiguration, connectionId, firstFetchParams, primaryTelemetry)), import_rxjs16.switchMap((primaryConnectorObjectEvent) => {
|
|
40791
41073
|
DesignTimeActivityConfigurationExtensions.updateConnectorObjectEvent(activityConfiguration, primaryConnectorObjectEvent);
|
|
40792
41074
|
fields = primaryConnectorObjectEvent.fields ? Object.values(primaryConnectorObjectEvent.fields) : [];
|
|
40793
41075
|
const objectMethodKey = ActivityConfigurationExtensions.tryGetEventOperation(activityConfiguration) ?? StringExtensions.empty;
|
|
@@ -40829,7 +41111,7 @@ var FieldsService = class _FieldsService {
|
|
|
40829
41111
|
}
|
|
40830
41112
|
_overlayCustomEventFields(args) {
|
|
40831
41113
|
const overlayTelemetry = DesignTimeActivityConfigurationExtensions.createTelemetryOperation(args.activityConfiguration, args.connectionId, "GetConnectorObjectEventAsync");
|
|
40832
|
-
return args.primaryOutputs$.pipe(import_rxjs16.switchMap(() => this._metadataService.getConnectorObjectEvent(args.activityConfiguration, args.connectionId, args.eventFieldsRequestParameters, overlayTelemetry)), import_rxjs16.switchMap((customConnectorObjectEvent) => {
|
|
41114
|
+
return args.primaryOutputs$.pipe(import_rxjs16.switchMap(() => this.resolveEventSolutionResourceConfigurations(args.eventFieldsRequestParameters)), import_rxjs16.switchMap(() => this._metadataService.getConnectorObjectEvent(args.activityConfiguration, args.connectionId, args.eventFieldsRequestParameters, overlayTelemetry)), import_rxjs16.switchMap((customConnectorObjectEvent) => {
|
|
40833
41115
|
_FieldsService._mergeCustomFilterCriteria(args.fieldsContainer, customConnectorObjectEvent, args.activityConfiguration);
|
|
40834
41116
|
return _FieldsService._computeOutputEventFields(customConnectorObjectEvent, args.fieldsContainer, args.connectionId, args.jitTypesProvider, args.showEventIdField, args.addBundleHashInInputNamespace, args.objectMethodKey, this._translationService);
|
|
40835
41117
|
}));
|
|
@@ -41205,13 +41487,13 @@ var LookupCacheService = class _LookupCacheService {
|
|
|
41205
41487
|
}
|
|
41206
41488
|
getByIdCachedData(lookupParameters, id) {
|
|
41207
41489
|
if (!lookupParameters.connectionIdIsInitialized) {
|
|
41208
|
-
return
|
|
41490
|
+
return import_rxjs18.of(null);
|
|
41209
41491
|
}
|
|
41210
41492
|
const hydrationUrl = lookupParameters.getHydrationUrl(id);
|
|
41211
41493
|
if (hydrationUrl == null) {
|
|
41212
|
-
return
|
|
41494
|
+
return import_rxjs18.of(null);
|
|
41213
41495
|
}
|
|
41214
|
-
return this._queryService.getData(lookupParameters, hydrationUrl, false, false).pipe(
|
|
41496
|
+
return this._queryService.getData(lookupParameters, hydrationUrl, false, false).pipe(import_rxjs18.map((connectorData) => {
|
|
41215
41497
|
const paginated = _LookupCacheService._mapToCacheValues(lookupParameters.lookupReference, connectorData);
|
|
41216
41498
|
return paginated.cacheValues.length > 0 ? paginated.cacheValues[0] : null;
|
|
41217
41499
|
}));
|
|
@@ -41220,7 +41502,7 @@ var LookupCacheService = class _LookupCacheService {
|
|
|
41220
41502
|
const bucket = _LookupCacheService._getBucketString(lookupParameters);
|
|
41221
41503
|
this._dataCache.delete(bucket);
|
|
41222
41504
|
this._dropPendingLookups(bucket);
|
|
41223
|
-
return
|
|
41505
|
+
return import_rxjs18.of(undefined);
|
|
41224
41506
|
}
|
|
41225
41507
|
clearCacheForConnection(connectionId) {
|
|
41226
41508
|
for (const key of this._dataCache.keys()) {
|
|
@@ -41250,11 +41532,11 @@ var LookupCacheService = class _LookupCacheService {
|
|
|
41250
41532
|
return _LookupCacheService._readPage(pending.collection$, lookupParameters);
|
|
41251
41533
|
}
|
|
41252
41534
|
const id = this._nextLookupId++;
|
|
41253
|
-
const shared$ = this._loadAndCacheData(lookupParameters, lookupUrl, cacheKey, bucket).pipe(
|
|
41535
|
+
const shared$ = this._loadAndCacheData(lookupParameters, lookupUrl, cacheKey, bucket).pipe(import_rxjs18.finalize(() => {
|
|
41254
41536
|
if (this._pendingLookups.get(pendingKey)?.id === id) {
|
|
41255
41537
|
this._pendingLookups.delete(pendingKey);
|
|
41256
41538
|
}
|
|
41257
|
-
}),
|
|
41539
|
+
}), import_rxjs18.shareReplay({
|
|
41258
41540
|
bufferSize: 1,
|
|
41259
41541
|
refCount: false
|
|
41260
41542
|
}));
|
|
@@ -41265,7 +41547,7 @@ var LookupCacheService = class _LookupCacheService {
|
|
|
41265
41547
|
return _LookupCacheService._readPage(shared$, lookupParameters);
|
|
41266
41548
|
}
|
|
41267
41549
|
static _readPage(collection$, lookupParameters) {
|
|
41268
|
-
return collection$.pipe(
|
|
41550
|
+
return collection$.pipe(import_rxjs18.map((collection) => {
|
|
41269
41551
|
lookupParameters.hasNextPage = !StringExtensions.isNullOrEmpty(collection.nextPageToken);
|
|
41270
41552
|
return collection.cacheValues;
|
|
41271
41553
|
}));
|
|
@@ -41280,23 +41562,23 @@ var LookupCacheService = class _LookupCacheService {
|
|
|
41280
41562
|
if (lookupParameters.loadPageBehavior === "forceRefresh" || !cacheValues) {
|
|
41281
41563
|
cacheValuesTask = this._getAndMergeData(lookupParameters, lookupUrl, cacheKey, lookupParameters.loadPageBehavior === "forceRefresh");
|
|
41282
41564
|
} else {
|
|
41283
|
-
cacheValuesTask =
|
|
41565
|
+
cacheValuesTask = import_rxjs18.of(cacheValues);
|
|
41284
41566
|
}
|
|
41285
|
-
return cacheValuesTask.pipe(
|
|
41567
|
+
return cacheValuesTask.pipe(import_rxjs18.switchMap((result) => {
|
|
41286
41568
|
bucketDataCache.set(cacheKey, result);
|
|
41287
41569
|
let completedLoadingAnotherPage = false;
|
|
41288
|
-
return
|
|
41570
|
+
return import_rxjs18.of(result).pipe(import_rxjs18.expand((currentResult) => {
|
|
41289
41571
|
if (!_LookupCacheService._shouldFetchNextPage(lookupParameters, currentResult, completedLoadingAnotherPage)) {
|
|
41290
|
-
return
|
|
41572
|
+
return import_rxjs18.EMPTY;
|
|
41291
41573
|
}
|
|
41292
|
-
return this._getAndMergeData(lookupParameters, lookupUrl, cacheKey, false, result.nextPageToken).pipe(
|
|
41574
|
+
return this._getAndMergeData(lookupParameters, lookupUrl, cacheKey, false, result.nextPageToken).pipe(import_rxjs18.map((nextPageData) => {
|
|
41293
41575
|
result.cacheValues = nextPageData.cacheValues;
|
|
41294
41576
|
result.nextPageToken = nextPageData.nextPageToken;
|
|
41295
41577
|
bucketDataCache.set(cacheKey, result);
|
|
41296
41578
|
completedLoadingAnotherPage = true;
|
|
41297
41579
|
return result;
|
|
41298
41580
|
}));
|
|
41299
|
-
}),
|
|
41581
|
+
}), import_rxjs18.toArray(), import_rxjs18.map(() => result));
|
|
41300
41582
|
}));
|
|
41301
41583
|
}
|
|
41302
41584
|
static _shouldFetchNextPage(lookupParameters, result, completedLoadingAnotherPage) {
|
|
@@ -41321,12 +41603,12 @@ var LookupCacheService = class _LookupCacheService {
|
|
|
41321
41603
|
bucketDataCache = /* @__PURE__ */ new Map;
|
|
41322
41604
|
this._dataCache.set(bucket, bucketDataCache);
|
|
41323
41605
|
}
|
|
41324
|
-
return this._queryService.getData(lookupParameters, lookupUrl, forceRefresh, lookupParameters.paginationDetails.hasPagination, nextPageToken).pipe(
|
|
41606
|
+
return this._queryService.getData(lookupParameters, lookupUrl, forceRefresh, lookupParameters.paginationDetails.hasPagination, nextPageToken).pipe(import_rxjs18.switchMap((connectorData) => {
|
|
41325
41607
|
const paginatedCacheValues = _LookupCacheService._mapToCacheValues(lookupParameters.lookupReference, connectorData);
|
|
41326
41608
|
const cached2 = bucketDataCache.get(cacheKey);
|
|
41327
41609
|
if (!cached2 || forceRefresh) {
|
|
41328
41610
|
bucketDataCache.set(cacheKey, paginatedCacheValues);
|
|
41329
|
-
return
|
|
41611
|
+
return import_rxjs18.of(paginatedCacheValues);
|
|
41330
41612
|
}
|
|
41331
41613
|
for (const item of paginatedCacheValues.cacheValues) {
|
|
41332
41614
|
const existing = cached2.cacheValues.find((c) => c.id === item.id);
|
|
@@ -41337,7 +41619,7 @@ var LookupCacheService = class _LookupCacheService {
|
|
|
41337
41619
|
}
|
|
41338
41620
|
}
|
|
41339
41621
|
cached2.nextPageToken = paginatedCacheValues.nextPageToken;
|
|
41340
|
-
return
|
|
41622
|
+
return import_rxjs18.of(cached2);
|
|
41341
41623
|
}));
|
|
41342
41624
|
}
|
|
41343
41625
|
static _getBucketString(lookupParameters) {
|
|
@@ -41399,27 +41681,27 @@ var LookupService = class _LookupService {
|
|
|
41399
41681
|
this._lookupCacheService = lookupCacheService;
|
|
41400
41682
|
}
|
|
41401
41683
|
getContent(lookupParameters) {
|
|
41402
|
-
return this._lookupCacheService.getCachedData(lookupParameters).pipe(
|
|
41684
|
+
return this._lookupCacheService.getCachedData(lookupParameters).pipe(import_rxjs19.switchMap((cachedData) => {
|
|
41403
41685
|
let lookupValues = _LookupService._getLookupValues(lookupParameters, cachedData, (item, columns, pattern, disabledReason) => new LookupValue(item.id, columns, pattern, disabledReason));
|
|
41404
41686
|
if (lookupParameters.sortData === true) {
|
|
41405
41687
|
lookupValues = lookupValues.sort((lv1, lv2) => lv1.displayName.toLowerCase().localeCompare(lv2.displayName.toLowerCase()));
|
|
41406
41688
|
}
|
|
41407
|
-
return
|
|
41689
|
+
return import_rxjs19.of(lookupValues);
|
|
41408
41690
|
}));
|
|
41409
41691
|
}
|
|
41410
41692
|
getFileContent(lookupParameters) {
|
|
41411
|
-
return this._lookupCacheService.getCachedData(lookupParameters).pipe(
|
|
41693
|
+
return this._lookupCacheService.getCachedData(lookupParameters).pipe(import_rxjs19.switchMap((cachedData) => import_rxjs19.of(_LookupService._getLookupValues(lookupParameters, cachedData, _LookupService._createFileLookupValue))));
|
|
41412
41694
|
}
|
|
41413
41695
|
getChildContent(lookupParameters) {
|
|
41414
|
-
return this._lookupCacheService.getChildCachedData(lookupParameters).pipe(
|
|
41696
|
+
return this._lookupCacheService.getChildCachedData(lookupParameters).pipe(import_rxjs19.switchMap((cachedData) => import_rxjs19.of(_LookupService._getLookupValues(lookupParameters, cachedData, _LookupService._createFileLookupValue))));
|
|
41415
41697
|
}
|
|
41416
41698
|
getFileById(lookupParameters, id) {
|
|
41417
|
-
return this._lookupCacheService.getByIdCachedData(lookupParameters, id).pipe(
|
|
41699
|
+
return this._lookupCacheService.getByIdCachedData(lookupParameters, id).pipe(import_rxjs19.switchMap((cacheValue) => {
|
|
41418
41700
|
if (cacheValue == null) {
|
|
41419
|
-
return
|
|
41701
|
+
return import_rxjs19.of(null);
|
|
41420
41702
|
}
|
|
41421
41703
|
const [mapped] = _LookupService._getLookupValues(lookupParameters, [cacheValue], _LookupService._createFileLookupValue);
|
|
41422
|
-
return
|
|
41704
|
+
return import_rxjs19.of(mapped ?? null);
|
|
41423
41705
|
}));
|
|
41424
41706
|
}
|
|
41425
41707
|
clearCache(lookupParameters) {
|
|
@@ -41782,7 +42064,7 @@ var ConnectorExecuteHelper = class _ConnectorExecuteHelper {
|
|
|
41782
42064
|
},
|
|
41783
42065
|
body: JSON.stringify(request)
|
|
41784
42066
|
};
|
|
41785
|
-
return httpConnectorService.sendRequest(HttpHelper.toRelativeUri(Constants.V4ExecutePath), request.context.connectionId, requestInit, true).pipe(
|
|
42067
|
+
return httpConnectorService.sendRequest(HttpHelper.toRelativeUri(Constants.V4ExecutePath), request.context.connectionId, requestInit, true).pipe(import_rxjs22.switchMap(async (response) => _ConnectorExecuteHelper._parseResponse(response)));
|
|
41786
42068
|
}
|
|
41787
42069
|
static async _parseResponse(response) {
|
|
41788
42070
|
const responseString = await response.text();
|
|
@@ -41870,22 +42152,22 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
41870
42152
|
}
|
|
41871
42153
|
_cachedRequest(cacheKey, sendRequest) {
|
|
41872
42154
|
if (this._dataCache.has(cacheKey)) {
|
|
41873
|
-
return
|
|
42155
|
+
return import_rxjs21.of(this._dataCache.get(cacheKey));
|
|
41874
42156
|
}
|
|
41875
42157
|
const pending = this._pendingRequests.get(cacheKey);
|
|
41876
42158
|
if (pending != null) {
|
|
41877
42159
|
return pending.request$;
|
|
41878
42160
|
}
|
|
41879
42161
|
const id = this._nextRequestId++;
|
|
41880
|
-
const request$ = sendRequest().pipe(
|
|
42162
|
+
const request$ = sendRequest().pipe(import_rxjs21.tap((result) => {
|
|
41881
42163
|
if (this._pendingRequests.get(cacheKey)?.id === id) {
|
|
41882
42164
|
this._dataCache.set(cacheKey, result);
|
|
41883
42165
|
}
|
|
41884
|
-
}),
|
|
42166
|
+
}), import_rxjs21.finalize(() => {
|
|
41885
42167
|
if (this._pendingRequests.get(cacheKey)?.id === id) {
|
|
41886
42168
|
this._pendingRequests.delete(cacheKey);
|
|
41887
42169
|
}
|
|
41888
|
-
}),
|
|
42170
|
+
}), import_rxjs21.shareReplay({
|
|
41889
42171
|
bufferSize: 1,
|
|
41890
42172
|
refCount: false
|
|
41891
42173
|
}));
|
|
@@ -41924,32 +42206,33 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
41924
42206
|
if (provider == null) {
|
|
41925
42207
|
throw new DesigntimeException(1009);
|
|
41926
42208
|
}
|
|
41927
|
-
return provider.getMetadata().pipe(
|
|
42209
|
+
return provider.getMetadata().pipe(import_rxjs21.map((metadata) => ConnectorObject.factory(JSON.stringify(metadata))));
|
|
41928
42210
|
}
|
|
41929
42211
|
getConnectorObjectEvent(activityConfiguration, connectionId, customFieldsRequestParameters, telemetryOperation) {
|
|
41930
42212
|
return this._getObject(activityConfiguration, connectionId, customFieldsRequestParameters, telemetryOperation, ConnectorObjectEvent.factory);
|
|
41931
42213
|
}
|
|
41932
42214
|
getCustomFieldsDetails(activityConfiguration, connectionId, fieldRefreshParameters, telemetryOperation) {
|
|
41933
42215
|
const headers = this._buildMetadataRequestHeaders(telemetryOperation, activityConfiguration.additionalHeaders);
|
|
41934
|
-
return (connectionId === Constants.ImplicitConnectionId ?
|
|
42216
|
+
return (connectionId === Constants.ImplicitConnectionId ? import_rxjs21.of(null) : this._connectionService.getConnection(connectionId)).pipe(import_rxjs21.switchMap((connection) => {
|
|
41935
42217
|
const customFieldsUrl = _MetadataServiceBase._getInstanceRequestUrl(connection?.elementInstanceId.toString() ?? StringExtensions.empty, fieldRefreshParameters.url);
|
|
41936
|
-
const
|
|
42218
|
+
const requestBody = _MetadataServiceBase._getCustomFieldsRequestBody(fieldRefreshParameters);
|
|
42219
|
+
const cacheKey = _MetadataServiceBase._getCustomFieldsCacheKey(connectionId, customFieldsUrl, requestBody);
|
|
41937
42220
|
if (this._dataCache.has(cacheKey)) {
|
|
41938
|
-
return
|
|
42221
|
+
return import_rxjs21.of(this._dataCache.get(cacheKey));
|
|
41939
42222
|
}
|
|
41940
42223
|
const requestHeaders = {
|
|
41941
42224
|
Accept: "application/json",
|
|
41942
42225
|
...Object.fromEntries(headers)
|
|
41943
42226
|
};
|
|
41944
42227
|
const requestInit = {
|
|
41945
|
-
method: fieldRefreshParameters.method,
|
|
42228
|
+
method: fieldRefreshParameters.method?.toUpperCase(),
|
|
41946
42229
|
headers: requestHeaders
|
|
41947
42230
|
};
|
|
41948
|
-
if (
|
|
42231
|
+
if (requestBody != null) {
|
|
41949
42232
|
requestHeaders["Content-Type"] = "application/json";
|
|
41950
|
-
requestInit.body = JSON.stringify(Object.fromEntries(
|
|
42233
|
+
requestInit.body = JSON.stringify(Object.fromEntries(requestBody));
|
|
41951
42234
|
}
|
|
41952
|
-
return this._httpConnectorService.sendRequest(HttpHelper.toRelativeUri(customFieldsUrl), connectionId, requestInit, true).pipe(
|
|
42235
|
+
return this._httpConnectorService.sendRequest(HttpHelper.toRelativeUri(customFieldsUrl), connectionId, requestInit, true).pipe(import_rxjs21.switchMap(async (response) => {
|
|
41953
42236
|
const responseString = await response.text();
|
|
41954
42237
|
if (!response.ok) {
|
|
41955
42238
|
const errorEvent = await TelemetryHelper.getErrorEventFromResponse(response, responseString, 2253, headers, connectionId, "GetCustomFieldsDetails");
|
|
@@ -41979,9 +42262,9 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
41979
42262
|
},
|
|
41980
42263
|
body: JSON.stringify({ url: url2 })
|
|
41981
42264
|
};
|
|
41982
|
-
return (connectionId === Constants.ImplicitConnectionId ?
|
|
42265
|
+
return (connectionId === Constants.ImplicitConnectionId ? import_rxjs21.of(null) : this._connectionService.getConnection(connectionId)).pipe(import_rxjs21.switchMap((connection) => {
|
|
41983
42266
|
const resolveUrl = _MetadataServiceBase._getInstanceRequestUrl(connection?.elementInstanceId.toString() ?? StringExtensions.empty, resolvePath);
|
|
41984
|
-
return this._httpConnectorService.sendRequest(HttpHelper.toRelativeUri(resolveUrl), connectionId, requestInit, true).pipe(
|
|
42267
|
+
return this._httpConnectorService.sendRequest(HttpHelper.toRelativeUri(resolveUrl), connectionId, requestInit, true).pipe(import_rxjs21.switchMap(async (response) => {
|
|
41985
42268
|
const bodyText = await response.text();
|
|
41986
42269
|
if (!response.ok) {
|
|
41987
42270
|
throw new Error(_MetadataServiceBase._extractResolveErrorMessage(bodyText));
|
|
@@ -42002,17 +42285,21 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
42002
42285
|
} catch {}
|
|
42003
42286
|
return bodyText;
|
|
42004
42287
|
}
|
|
42005
|
-
_sendMetadataRequest(url2, connectionId, mediaTypeHeaderValue = null, headerDictionary = null) {
|
|
42288
|
+
_sendMetadataRequest(url2, connectionId, mediaTypeHeaderValue = null, headerDictionary = null, requestBody = null, method = "GET") {
|
|
42006
42289
|
mediaTypeHeaderValue ??= "application/json";
|
|
42007
42290
|
const headers = { Accept: mediaTypeHeaderValue };
|
|
42008
42291
|
headerDictionary?.forEach((value, key) => {
|
|
42009
42292
|
headers[key] = value.toString();
|
|
42010
42293
|
});
|
|
42011
42294
|
const requestInit = {
|
|
42012
|
-
method
|
|
42295
|
+
method,
|
|
42013
42296
|
headers
|
|
42014
42297
|
};
|
|
42015
|
-
|
|
42298
|
+
if (requestBody != null) {
|
|
42299
|
+
headers["Content-Type"] = "application/json";
|
|
42300
|
+
requestInit.body = JSON.stringify(Object.fromEntries(requestBody));
|
|
42301
|
+
}
|
|
42302
|
+
return this._httpConnectorService.sendRequest(HttpHelper.toRelativeUri(url2), connectionId, requestInit, false).pipe(import_rxjs21.switchMap(async (response) => {
|
|
42016
42303
|
const responseString = await response.text();
|
|
42017
42304
|
if (!response.ok) {
|
|
42018
42305
|
const errorEvent = await TelemetryHelper.getErrorEventFromResponse(response, responseString, response.status, headerDictionary, connectionId, "sendMetadataRequest");
|
|
@@ -42041,29 +42328,39 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
42041
42328
|
if (StringExtensions.isNullOrWhiteSpace(activityConfiguration.objectName)) {
|
|
42042
42329
|
throw new InvalidOperationException("Object name is needed to fetch metadata.");
|
|
42043
42330
|
}
|
|
42044
|
-
|
|
42331
|
+
if (_MetadataServiceBase._isTriggerNonEventMetadataRequest(activityConfiguration, customFieldsRequestParameters)) {
|
|
42332
|
+
return _MetadataServiceBase._getInstanceRequestUrl(_MetadataServiceBase._getInstanceId(connection, isImplicitConnection), customFieldsRequestParameters.url);
|
|
42333
|
+
}
|
|
42334
|
+
const baseUrl = _MetadataServiceBase._getObjectMetadataUrlTemplate(activityConfiguration, customFieldsRequestParameters, isImplicitConnection);
|
|
42335
|
+
const eventOperation = ActivityConfigurationExtensions.tryGetEventOperation(activityConfiguration);
|
|
42336
|
+
const urlBuilder = baseUrl.replaceAll("{instanceId}", _MetadataServiceBase._getInstanceId(connection, isImplicitConnection)).replaceAll("{elementKey}", encodeURIComponent(activityConfiguration.instanceParameters.connectorKey)).replaceAll("{operationName}", encodeURIComponent(eventOperation ?? StringExtensions.empty)).replaceAll("{objectName}", encodeURIComponent(activityConfiguration.objectName ?? StringExtensions.empty)).replaceAll("{connectorName}", encodeURIComponent(activityConfiguration.instanceParameters.connectorKey));
|
|
42337
|
+
return urlBuilder;
|
|
42338
|
+
}
|
|
42339
|
+
static _getObjectMetadataUrlTemplate(activityConfiguration, customFieldsRequestParameters, isImplicitConnection) {
|
|
42045
42340
|
if (activityConfiguration instanceof ConnectorActivityConfiguration) {
|
|
42046
42341
|
if (InstanceParametersExtensions.isActivityVersionV4(activityConfiguration.instanceParameters)) {
|
|
42047
|
-
|
|
42048
|
-
} else {
|
|
42049
|
-
baseUrl = isImplicitConnection ? _MetadataServiceBase._noConnectionObjectMetadataUrl : _MetadataServiceBase._objectMetadataUrl;
|
|
42342
|
+
return _MetadataServiceBase._v4ObjectMetadataUrl;
|
|
42050
42343
|
}
|
|
42051
|
-
|
|
42052
|
-
baseUrl = customFieldsRequestParameters == null ? _MetadataServiceBase._eventObjectMetadataUrl : `${_MetadataServiceBase._eventObjectMetadataBaseUrl}${customFieldsRequestParameters.url}`;
|
|
42053
|
-
} else {
|
|
42054
|
-
throw new InvalidOperationException("Cannot fetch object metadata when configuration is of ActivityConfiguration type.");
|
|
42344
|
+
return isImplicitConnection ? _MetadataServiceBase._noConnectionObjectMetadataUrl : _MetadataServiceBase._objectMetadataUrl;
|
|
42055
42345
|
}
|
|
42056
|
-
|
|
42057
|
-
|
|
42058
|
-
|
|
42346
|
+
if (activityConfiguration instanceof TriggerActivityConfiguration) {
|
|
42347
|
+
return customFieldsRequestParameters == null ? _MetadataServiceBase._eventObjectMetadataUrl : `${_MetadataServiceBase._eventObjectMetadataBaseUrl}${customFieldsRequestParameters.url}`;
|
|
42348
|
+
}
|
|
42349
|
+
throw new InvalidOperationException("Cannot fetch object metadata when configuration is of ActivityConfiguration type.");
|
|
42350
|
+
}
|
|
42351
|
+
static _getInstanceId(connection, isImplicitConnection) {
|
|
42352
|
+
return isImplicitConnection ? StringExtensions.empty : connection.elementInstanceId.toString();
|
|
42059
42353
|
}
|
|
42060
42354
|
_getObject(activityConfiguration, connectionId, customFieldsRequestParameters, telemetryOperation, factory = null) {
|
|
42061
42355
|
const headersDictionary = this._buildMetadataRequestHeaders(telemetryOperation, activityConfiguration.additionalHeaders);
|
|
42062
|
-
return (connectionId === Constants.ImplicitConnectionId ?
|
|
42356
|
+
return (connectionId === Constants.ImplicitConnectionId ? import_rxjs21.of(null) : this._connectionService.getConnection(connectionId)).pipe(import_rxjs21.switchMap((connection) => {
|
|
42063
42357
|
const instanceObjectMetadataUrl = _MetadataServiceBase._getInstanceObjectMetadataUrl(connection, activityConfiguration, customFieldsRequestParameters, connectionId === Constants.ImplicitConnectionId);
|
|
42064
|
-
const
|
|
42358
|
+
const nonEventMetadataRequest = _MetadataServiceBase._isTriggerNonEventMetadataRequest(activityConfiguration, customFieldsRequestParameters) ? customFieldsRequestParameters : null;
|
|
42359
|
+
const method = nonEventMetadataRequest?.method?.toUpperCase() ?? "GET";
|
|
42360
|
+
const requestBody = nonEventMetadataRequest == null ? null : _MetadataServiceBase._getCustomFieldsRequestBody(nonEventMetadataRequest);
|
|
42361
|
+
const cacheKey = method === "GET" ? _MetadataServiceBase._getCacheKey(connectionId, instanceObjectMetadataUrl) : _MetadataServiceBase._getCustomFieldsCacheKey(connectionId, instanceObjectMetadataUrl, requestBody);
|
|
42065
42362
|
try {
|
|
42066
|
-
return this._cachedRequest(cacheKey, () => this._sendMetadataRequest(instanceObjectMetadataUrl, connectionId, null, headersDictionary).pipe(
|
|
42363
|
+
return this._cachedRequest(cacheKey, () => this._sendMetadataRequest(instanceObjectMetadataUrl, connectionId, null, headersDictionary, requestBody, method).pipe(import_rxjs21.map((responseString) => factory != null ? factory(responseString) : JSON.parse(responseString)), import_rxjs21.catchError((ex) => {
|
|
42067
42364
|
throw this._getException(ex, activityConfiguration);
|
|
42068
42365
|
})));
|
|
42069
42366
|
} catch (ex) {
|
|
@@ -42116,7 +42413,7 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
42116
42413
|
lookupParameters.additionalHeaders?.forEach((value, key) => {
|
|
42117
42414
|
headers[key] = value.toString();
|
|
42118
42415
|
});
|
|
42119
|
-
return _MetadataServiceBase._resolveScript(lookupParameters).pipe(
|
|
42416
|
+
return _MetadataServiceBase._resolveScript(lookupParameters).pipe(import_rxjs21.switchMap((script) => ConnectorExecuteHelper.execute(this._httpConnectorService, {
|
|
42120
42417
|
context: {
|
|
42121
42418
|
connectionId: lookupParameters.connectionId,
|
|
42122
42419
|
connectorKey: lookupParameters.connectorKey,
|
|
@@ -42128,13 +42425,13 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
42128
42425
|
static _resolveScript(lookupParameters) {
|
|
42129
42426
|
const scriptRef = lookupParameters.scriptRef;
|
|
42130
42427
|
if (!lookupParameters.isInlineActivity) {
|
|
42131
|
-
return
|
|
42428
|
+
return import_rxjs21.of({ reference: scriptRef });
|
|
42132
42429
|
}
|
|
42133
42430
|
const provider = lookupParameters.inlineActivityConfigurationProvider;
|
|
42134
42431
|
if (provider == null) {
|
|
42135
42432
|
throw new DesigntimeException(1008, 'A lookup on an activity with activitySource "inline" requires the host to supply inlineActivityConfigurationProvider.');
|
|
42136
42433
|
}
|
|
42137
|
-
return provider.getScript(scriptRef).pipe(
|
|
42434
|
+
return provider.getScript(scriptRef).pipe(import_rxjs21.map((inlineScript) => {
|
|
42138
42435
|
if (inlineScript == null) {
|
|
42139
42436
|
const template = DapException.getTranslationService().instant("dap.errorCodeMessages._2007");
|
|
42140
42437
|
throw new DesigntimeException(2007, StringExtensions.format(template, scriptRef, lookupParameters.objectName));
|
|
@@ -42142,16 +42439,22 @@ var MetadataServiceBase = class _MetadataServiceBase {
|
|
|
42142
42439
|
return { inlineScript };
|
|
42143
42440
|
}));
|
|
42144
42441
|
}
|
|
42442
|
+
static _isTriggerNonEventMetadataRequest(activityConfiguration, customFieldsRequestParameters) {
|
|
42443
|
+
return activityConfiguration instanceof TriggerActivityConfiguration && customFieldsRequestParameters != null && !CustomFieldsRequestParameters.isEventMetadataUrl(customFieldsRequestParameters.url);
|
|
42444
|
+
}
|
|
42145
42445
|
static _getInstanceRequestUrl(instanceId, relativePath) {
|
|
42146
42446
|
const urlBuilder = `${Constants.V3InstancesPath}${instanceId}${relativePath}`;
|
|
42147
42447
|
return urlBuilder;
|
|
42148
42448
|
}
|
|
42449
|
+
static _getCustomFieldsRequestBody(fieldRefreshParameters) {
|
|
42450
|
+
return getCustomFieldsRequestBody(fieldRefreshParameters);
|
|
42451
|
+
}
|
|
42149
42452
|
static _getCustomFieldsCacheKey(connectionId, url2, body) {
|
|
42150
42453
|
return `${_MetadataServiceBase._getCacheKey(connectionId, url2)}_parameters(${_MetadataServiceBase._extractBodyParameters(body)})`;
|
|
42151
42454
|
}
|
|
42152
42455
|
static _extractBodyParameters(body) {
|
|
42153
42456
|
const entries = [...body?.entries() ?? []];
|
|
42154
|
-
return entries.map(([key, value]) => `${key}=${value}`).join(";");
|
|
42457
|
+
return entries.map(([key, value]) => `${key}=${typeof value === "string" ? value : JSON.stringify(value)}`).join(";");
|
|
42155
42458
|
}
|
|
42156
42459
|
static _getCacheKey(connectionId, url2) {
|
|
42157
42460
|
return `${connectionId}_${url2}`;
|
|
@@ -42199,32 +42502,32 @@ var MetadataService = class _MetadataService extends MetadataServiceBase {
|
|
|
42199
42502
|
const headersDictionary = this._buildMetadataRequestHeaders(telemetryOperation, additionalHeaders);
|
|
42200
42503
|
const connectorConfigUrl = _MetadataService._configurationObjectsUrl.replaceAll("{elementKey}", encodeURIComponent(connectorKey));
|
|
42201
42504
|
const cacheKey = MetadataServiceBase._getCacheKey(connectionId, connectorConfigUrl);
|
|
42202
|
-
return this._cachedRequest(cacheKey, () => this._sendMetadataRequest(connectorConfigUrl, connectionId, "text/plain", headersDictionary).pipe(
|
|
42505
|
+
return this._cachedRequest(cacheKey, () => this._sendMetadataRequest(connectorConfigUrl, connectionId, "text/plain", headersDictionary).pipe(import_rxjs20.map((responseString) => JSON.parse(responseString))));
|
|
42203
42506
|
}
|
|
42204
42507
|
getConnectorDetails(connectorKey, connectionId, additionalHeaders, telemetryOperation) {
|
|
42205
42508
|
const headersDictionary = this._buildMetadataRequestHeaders(telemetryOperation, additionalHeaders);
|
|
42206
|
-
return (connectionId === Constants.ImplicitConnectionId ?
|
|
42509
|
+
return (connectionId === Constants.ImplicitConnectionId ? import_rxjs20.of(null) : this._connectionService.getConnection(connectionId)).pipe(import_rxjs20.switchMap((connection) => {
|
|
42207
42510
|
const connectorVersionUrl = _MetadataService._serviceVersionsUrl.replaceAll("{elementKey}", encodeURIComponent(connectorKey));
|
|
42208
42511
|
const cacheKey = MetadataServiceBase._getCacheKey((connectionId === Constants.ImplicitConnectionId ? Constants.ImplicitConnectionId : connection?.id) ?? connectionId, connectorVersionUrl);
|
|
42209
|
-
return this._cachedRequest(cacheKey, () => this._sendMetadataRequest(connectorVersionUrl, connectionId, null, headersDictionary).pipe(
|
|
42512
|
+
return this._cachedRequest(cacheKey, () => this._sendMetadataRequest(connectorVersionUrl, connectionId, null, headersDictionary).pipe(import_rxjs20.map((responseString) => JSON.parse(responseString))));
|
|
42210
42513
|
}));
|
|
42211
42514
|
}
|
|
42212
42515
|
getHttpObject() {
|
|
42213
42516
|
const cacheKey = MetadataServiceBase._getCacheKey(StringExtensions.empty, _MetadataService._httpProxyObjectFileName);
|
|
42214
42517
|
if (this._dataCache.has(cacheKey)) {
|
|
42215
|
-
return
|
|
42518
|
+
return import_rxjs20.of(this._dataCache.get(cacheKey));
|
|
42216
42519
|
}
|
|
42217
42520
|
const result = ConnectorObject.factory(JSON.stringify(http_proxy_default));
|
|
42218
42521
|
this._dataCache.set(cacheKey, result);
|
|
42219
|
-
return
|
|
42522
|
+
return import_rxjs20.of(result);
|
|
42220
42523
|
}
|
|
42221
42524
|
getHttpRequestPreviewConfig(connectionId, additionalHeaders, telemetryOperation) {
|
|
42222
42525
|
const headersDictionary = this._buildMetadataRequestHeaders(telemetryOperation, additionalHeaders);
|
|
42223
|
-
return this._connectionService.getConnection(connectionId).pipe(
|
|
42526
|
+
return this._connectionService.getConnection(connectionId).pipe(import_rxjs20.switchMap((connection) => {
|
|
42224
42527
|
const httpPreviewUrl = _MetadataService._httpPreviewBaseUrl.replaceAll("{instanceId}", connection.elementInstanceId.toString());
|
|
42225
42528
|
const cacheKey = MetadataServiceBase._getCacheKey(connectionId, httpPreviewUrl);
|
|
42226
42529
|
if (this._dataCache.has(cacheKey)) {
|
|
42227
|
-
return
|
|
42530
|
+
return import_rxjs20.of(this._dataCache.get(cacheKey));
|
|
42228
42531
|
}
|
|
42229
42532
|
const requestInit = {
|
|
42230
42533
|
method: "POST",
|
|
@@ -42234,7 +42537,7 @@ var MetadataService = class _MetadataService extends MetadataServiceBase {
|
|
|
42234
42537
|
},
|
|
42235
42538
|
body: JSON.stringify({})
|
|
42236
42539
|
};
|
|
42237
|
-
return this._httpConnectorService.sendRequest(HttpHelper.toRelativeUri(httpPreviewUrl), connectionId, requestInit, true).pipe(
|
|
42540
|
+
return this._httpConnectorService.sendRequest(HttpHelper.toRelativeUri(httpPreviewUrl), connectionId, requestInit, true).pipe(import_rxjs20.switchMap(async (response) => {
|
|
42238
42541
|
const responseString = await response.text();
|
|
42239
42542
|
if (!response.ok) {
|
|
42240
42543
|
const errorEvent = await TelemetryHelper.getErrorEventFromResponse(response, responseString, 2300, headersDictionary, connectionId, "GetHttpRequestPreviewConfig");
|
|
@@ -42253,21 +42556,21 @@ var MetadataService = class _MetadataService extends MetadataServiceBase {
|
|
|
42253
42556
|
if (!eventOperation) {
|
|
42254
42557
|
throw new InvalidOperationException("event operation does not exist");
|
|
42255
42558
|
}
|
|
42256
|
-
return this._connectionService.getConnection(connectionId).pipe(
|
|
42559
|
+
return this._connectionService.getConnection(connectionId).pipe(import_rxjs20.switchMap((connection) => {
|
|
42257
42560
|
const eventOperationMetadataUrl = _MetadataService._eventOperationUrl.replaceAll("{instanceId}", connection.elementInstanceId.toString()).replaceAll("{elementKey}", activityConfiguration.instanceParameters.connectorKey).replaceAll("{operationName}", eventOperation);
|
|
42258
42561
|
const cacheKey = MetadataServiceBase._getCacheKey(connectionId, eventOperationMetadataUrl);
|
|
42259
42562
|
if (this._dataCache.has(cacheKey)) {
|
|
42260
42563
|
const cached2 = this._dataCache.get(cacheKey);
|
|
42261
|
-
return
|
|
42564
|
+
return import_rxjs20.of(cached2.find((x) => x.name === activityConfiguration.objectName) ?? null);
|
|
42262
42565
|
}
|
|
42263
|
-
return this._sendMetadataRequest(eventOperationMetadataUrl, connectionId, null, headersDictionary).pipe(
|
|
42566
|
+
return this._sendMetadataRequest(eventOperationMetadataUrl, connectionId, null, headersDictionary).pipe(import_rxjs20.switchMap((responseString) => {
|
|
42264
42567
|
const rawResult = JSON.parse(responseString);
|
|
42265
42568
|
if (!Array.isArray(rawResult)) {
|
|
42266
|
-
return
|
|
42569
|
+
return import_rxjs20.of(null);
|
|
42267
42570
|
}
|
|
42268
42571
|
const result = rawResult.map((x) => ConnectorEventOperation.factory(JSON.stringify(x)));
|
|
42269
42572
|
this._dataCache.set(cacheKey, result);
|
|
42270
|
-
return
|
|
42573
|
+
return import_rxjs20.of(result.find((x) => x.name === activityConfiguration.objectName) ?? null);
|
|
42271
42574
|
}));
|
|
42272
42575
|
}));
|
|
42273
42576
|
}
|
|
@@ -42283,24 +42586,24 @@ var MetadataService = class _MetadataService extends MetadataServiceBase {
|
|
|
42283
42586
|
const cacheKey = MetadataServiceBase._getCacheKey(connectionId, fullUrl);
|
|
42284
42587
|
let resultContinuation = null;
|
|
42285
42588
|
if (this._dataCache.has(cacheKey)) {
|
|
42286
|
-
resultContinuation =
|
|
42589
|
+
resultContinuation = import_rxjs20.of(this._dataCache.get(cacheKey));
|
|
42287
42590
|
} else {
|
|
42288
|
-
resultContinuation = this._sendMetadataRequest(fullUrl, connectionId, null, headersDictionary).pipe(
|
|
42591
|
+
resultContinuation = this._sendMetadataRequest(fullUrl, connectionId, null, headersDictionary).pipe(import_rxjs20.switchMap((responseString) => {
|
|
42289
42592
|
const result = JSON.parse(responseString);
|
|
42290
42593
|
this._dataCache.set(cacheKey, result);
|
|
42291
|
-
return
|
|
42292
|
-
}),
|
|
42594
|
+
return import_rxjs20.of(result);
|
|
42595
|
+
}), import_rxjs20.catchError((error46) => {
|
|
42293
42596
|
if (error46 instanceof DapException && (error46.errorCode === 2001 || error46.errorCode === 2000 || error46.errorCode === 2004)) {
|
|
42294
|
-
return
|
|
42597
|
+
return import_rxjs20.of(new WebhookConfig);
|
|
42295
42598
|
}
|
|
42296
|
-
return
|
|
42599
|
+
return import_rxjs20.throwError(() => error46);
|
|
42297
42600
|
}));
|
|
42298
42601
|
}
|
|
42299
|
-
return resultContinuation.pipe(
|
|
42602
|
+
return resultContinuation.pipe(import_rxjs20.map((result) => StringExtensions.isNullOrWhiteSpace(result.webhookUrl) ? null : result));
|
|
42300
42603
|
}
|
|
42301
42604
|
getWebhookConnectionInfo(connectionId, connectorKey, telemetryOperation) {
|
|
42302
42605
|
const op = this._telemetryService.startOperation(telemetryOperation);
|
|
42303
|
-
return this._connectionService.getConnectionSlim(connectionId, true).pipe(
|
|
42606
|
+
return this._connectionService.getConnectionSlim(connectionId, true).pipe(import_rxjs20.switchMap((connection) => this.getWebhookSubscriberConfig(connectionId, connection.elementInstanceId.toString(), connectorKey, telemetryOperation).pipe(import_rxjs20.map((webhookConfig) => new WebhookConnectionInfo(webhookConfig, connection)))), import_rxjs20.finalize(() => op.dispose()));
|
|
42304
42607
|
}
|
|
42305
42608
|
};
|
|
42306
42609
|
var utf8TextDecoder = new TextDecoder("utf-8");
|
|
@@ -42378,8 +42681,8 @@ var QueryService = class {
|
|
|
42378
42681
|
}
|
|
42379
42682
|
getData(lookupParameters, lookupPath, forceRefresh, hasPagination, nextPageToken = null) {
|
|
42380
42683
|
const connectionId = lookupParameters.connectionId;
|
|
42381
|
-
const connectionInfo$ = connectionId !== Constants.ImplicitConnectionId ? this._resolveConnectionResource(connectionId, forceRefresh).pipe(
|
|
42382
|
-
return connectionInfo$.pipe(
|
|
42684
|
+
const connectionInfo$ = connectionId !== Constants.ImplicitConnectionId ? this._resolveConnectionResource(connectionId, forceRefresh).pipe(import_rxjs23.switchMap((connectionResource) => this._connectionService.getConnection(connectionResource.resourceId ?? connectionId))) : import_rxjs23.of(null);
|
|
42685
|
+
return connectionInfo$.pipe(import_rxjs23.switchMap((connection) => this._metadataService.getLookupValue(lookupParameters, connection?.elementInstanceId?.toString() ?? "", lookupPath, forceRefresh, nextPageToken).pipe(import_rxjs23.switchMap(async (response) => {
|
|
42383
42686
|
const responseString = await response.text();
|
|
42384
42687
|
if (!response.ok || StringExtensions.isNullOrEmpty(responseString)) {
|
|
42385
42688
|
let normalizedMessage = FailedRequestMessageHelpers.tryNormalizeMessage(responseString);
|
|
@@ -42450,10 +42753,10 @@ var ConnectionService = class {
|
|
|
42450
42753
|
return this._connectionsService.getConnection(connectionId, includeConfigs);
|
|
42451
42754
|
}
|
|
42452
42755
|
checkConnection(connectionId, resourceKey) {
|
|
42453
|
-
return this._connectionsService.pingConnectionStatus(connectionId, resourceKey).pipe(
|
|
42756
|
+
return this._connectionsService.pingConnectionStatus(connectionId, resourceKey).pipe(import_rxjs24.map((response) => response.status));
|
|
42454
42757
|
}
|
|
42455
42758
|
getCEAccessToken(connectionId, _refresh) {
|
|
42456
|
-
return this._connectionsService.getConnectionInfo(connectionId).pipe(
|
|
42759
|
+
return this._connectionsService.getConnectionInfo(connectionId).pipe(import_rxjs24.map((response) => response.ceToken));
|
|
42457
42760
|
}
|
|
42458
42761
|
getAccessToken(_resource, _refresh) {
|
|
42459
42762
|
throw new Error("Method not implemented.");
|
|
@@ -42462,7 +42765,7 @@ var ConnectionService = class {
|
|
|
42462
42765
|
return this._connectionsService.getConnectionsListUrl?.(connection) ?? null;
|
|
42463
42766
|
}
|
|
42464
42767
|
reloadConnection(connectionId) {
|
|
42465
|
-
return this._connectionsService.reloadConnection?.(connectionId) ??
|
|
42768
|
+
return this._connectionsService.reloadConnection?.(connectionId) ?? import_rxjs24.of(undefined);
|
|
42466
42769
|
}
|
|
42467
42770
|
};
|
|
42468
42771
|
var ConnectorHttpClient = class _ConnectorHttpClient {
|
|
@@ -42517,11 +42820,11 @@ var ConnectorHttpClient = class _ConnectorHttpClient {
|
|
|
42517
42820
|
...request,
|
|
42518
42821
|
headers
|
|
42519
42822
|
};
|
|
42520
|
-
return
|
|
42823
|
+
return import_rxjs26.from(fetch(url2, requestWithHeaders));
|
|
42521
42824
|
}
|
|
42522
42825
|
};
|
|
42523
42826
|
var ConnectorHttpService = class {
|
|
42524
|
-
constructor(connectionsService, uiLanguage, apiBaseService, designerSource$ =
|
|
42827
|
+
constructor(connectionsService, uiLanguage, apiBaseService, designerSource$ = import_rxjs25.of(DESIGNER_SOURCE_DEFAULT), solutionId$ = import_rxjs25.of(null)) {
|
|
42525
42828
|
this._connectionService = connectionsService;
|
|
42526
42829
|
this._uiLanguage = uiLanguage;
|
|
42527
42830
|
this._apiBaseService = apiBaseService;
|
|
@@ -42539,26 +42842,26 @@ var ConnectorHttpService = class {
|
|
|
42539
42842
|
return this._sendRequest(relativeUrl, connectionId, request, clientType);
|
|
42540
42843
|
}
|
|
42541
42844
|
_sendRequest(relativeUrl, connectionId, request, clientType) {
|
|
42542
|
-
return this._getConnectorHttpClient(clientType, connectionId).pipe(
|
|
42845
|
+
return this._getConnectorHttpClient(clientType, connectionId).pipe(import_rxjs25.switchMap((client) => client.send(relativeUrl, request)));
|
|
42543
42846
|
}
|
|
42544
42847
|
_getConnectorHttpClient(clientType, connectionId) {
|
|
42545
|
-
const sourceTask =
|
|
42546
|
-
const tokenTask = connectionId === Constants.ImplicitConnectionId ?
|
|
42547
|
-
return sourceTask.pipe(
|
|
42848
|
+
const sourceTask = import_rxjs25.combineLatest([this._designerSource$, this._solutionId$]).pipe(import_rxjs25.take(1));
|
|
42849
|
+
const tokenTask = connectionId === Constants.ImplicitConnectionId ? import_rxjs25.of(null) : this._connectionService.getCEAccessToken(connectionId, false);
|
|
42850
|
+
return sourceTask.pipe(import_rxjs25.switchMap(([source, solutionId]) => tokenTask.pipe(import_rxjs25.switchMap((ceToken) => {
|
|
42548
42851
|
const httpClient = ConnectorHttpClient.createHttpClient(clientType, this._uiLanguage, source, solutionId);
|
|
42549
42852
|
const apiBaseService = this._apiBaseService;
|
|
42550
42853
|
if (ceToken) {
|
|
42551
42854
|
httpClient.setCeToken(ceToken, "");
|
|
42552
|
-
return
|
|
42855
|
+
return import_rxjs25.of(httpClient);
|
|
42553
42856
|
}
|
|
42554
42857
|
if (apiBaseService) {
|
|
42555
|
-
return apiBaseService.getApiUrl("elements_", "").pipe(
|
|
42858
|
+
return apiBaseService.getApiUrl("elements_", "").pipe(import_rxjs25.take(1), import_rxjs25.map((defaultBaseUrl) => {
|
|
42556
42859
|
httpClient.setCeToken(null, defaultBaseUrl);
|
|
42557
42860
|
return httpClient;
|
|
42558
42861
|
}));
|
|
42559
42862
|
}
|
|
42560
42863
|
httpClient.setCeToken(null);
|
|
42561
|
-
return
|
|
42864
|
+
return import_rxjs25.of(httpClient);
|
|
42562
42865
|
}))));
|
|
42563
42866
|
}
|
|
42564
42867
|
};
|
|
@@ -43049,7 +43352,7 @@ var JitTypesProvider = class _JitTypesProvider {
|
|
|
43049
43352
|
if (parameters?.includeBundleHashInNamespace !== true) {
|
|
43050
43353
|
const type = this._overrideTypes?.find((x) => x.name === typeName);
|
|
43051
43354
|
if (type) {
|
|
43052
|
-
return
|
|
43355
|
+
return import_rxjs28.of(new JitTypeCreationResults(type, false));
|
|
43053
43356
|
}
|
|
43054
43357
|
}
|
|
43055
43358
|
return JitTypesBuilder.generateJitType(typeName, fields, connectionId, this._designerCustomTypesService, parameters, connectorObject, method);
|
|
@@ -43059,7 +43362,7 @@ var JitTypesProvider = class _JitTypesProvider {
|
|
|
43059
43362
|
if (parameters?.includeBundleHashInNamespace !== true) {
|
|
43060
43363
|
const type = this._overrideTypes?.find((x) => x.name === typeName);
|
|
43061
43364
|
if (type) {
|
|
43062
|
-
return
|
|
43365
|
+
return import_rxjs28.of(new JitTypeCreationResults(type, false));
|
|
43063
43366
|
}
|
|
43064
43367
|
}
|
|
43065
43368
|
return JitTypesBuilder.generateJitTypeOverload(typeName, _JitTypesProvider._getEventJitObjectFields(connectorObjectEvent), connectionId, this._designerCustomTypesService, parameters, {
|
|
@@ -43079,16 +43382,16 @@ var JitTypesProvider = class _JitTypesProvider {
|
|
|
43079
43382
|
if (parameters?.includeBundleHashInNamespace !== true) {
|
|
43080
43383
|
const type = this._overrideTypes?.find((x) => x.name === typeName);
|
|
43081
43384
|
if (type) {
|
|
43082
|
-
return
|
|
43385
|
+
return import_rxjs28.of(new JitTypeCreationResults(type, false));
|
|
43083
43386
|
}
|
|
43084
43387
|
}
|
|
43085
|
-
return JitTypesBuilder.generateJitType(typeName, fields, connectionId, this._designerCustomTypesService, parameters, connectorObject, method).pipe(
|
|
43388
|
+
return JitTypesBuilder.generateJitType(typeName, fields, connectionId, this._designerCustomTypesService, parameters, connectorObject, method).pipe(import_rxjs28.switchMap((outputResult) => {
|
|
43086
43389
|
if (inputFields.length === 0) {
|
|
43087
|
-
return
|
|
43390
|
+
return import_rxjs28.of(outputResult);
|
|
43088
43391
|
}
|
|
43089
|
-
return JitTypesBuilder.generateJitType(typeName, inputFields, connectionId, this._designerCustomTypesService, parameters, connectorObject, method).pipe(
|
|
43392
|
+
return JitTypesBuilder.generateJitType(typeName, inputFields, connectionId, this._designerCustomTypesService, parameters, connectorObject, method).pipe(import_rxjs28.switchMap((inputResult) => {
|
|
43090
43393
|
outputResult.inputType = inputResult.type;
|
|
43091
|
-
return
|
|
43394
|
+
return import_rxjs28.of(outputResult);
|
|
43092
43395
|
}));
|
|
43093
43396
|
}));
|
|
43094
43397
|
}
|
|
@@ -43126,7 +43429,7 @@ var JitTypesBuilder = class _JitTypesBuilder {
|
|
|
43126
43429
|
throw new InvalidOperationException("All fields must belong to the same array structure");
|
|
43127
43430
|
}
|
|
43128
43431
|
const jitFields = fields.map((f) => JitField.constructor3(f, f.name.substring(typePrefix.length + 4)));
|
|
43129
|
-
return _JitTypesBuilder._getBulkJitTypeInternal(typeName, jitFields, connectionId, customTypesService, parameters).pipe(
|
|
43432
|
+
return _JitTypesBuilder._getBulkJitTypeInternal(typeName, jitFields, connectionId, customTypesService, parameters).pipe(import_rxjs28.switchMap((jitTypeCreationResults) => import_rxjs28.of(jitTypeCreationResults.type.makeArrayType())));
|
|
43130
43433
|
}
|
|
43131
43434
|
static generateJitType(typeName, fields, connectionId, customTypesService, parameters = null, connectorObject, method = null) {
|
|
43132
43435
|
const jitFields = fields.map((f) => JitField.constructor3(f));
|
|
@@ -43170,31 +43473,31 @@ var JitTypesBuilder = class _JitTypesBuilder {
|
|
|
43170
43473
|
} = _JitTypesBuilder._extractTypesFromFields(typeName, jitFields);
|
|
43171
43474
|
_JitTypesBuilder._indexTypes(typesToGenerate);
|
|
43172
43475
|
const bundle = _JitTypesBuilder._getBusinessEntityBundle(lastElement, true, parameters?.addInputTypeSupport ?? false);
|
|
43173
|
-
return
|
|
43476
|
+
return import_rxjs28.from(_JitTypesBuilder._generateBundleNamingDetails(bundle, typeName, connectionId, parameters)).pipe(import_rxjs28.switchMap(({
|
|
43174
43477
|
bundleName,
|
|
43175
43478
|
bundleHash
|
|
43176
43479
|
}) => {
|
|
43177
|
-
const options = new BundleOptions(bundleName, bundleHash, () =>
|
|
43178
|
-
return customTypesService.replaceCustomType(lastElement.name, options).pipe(
|
|
43480
|
+
const options = new BundleOptions(bundleName, bundleHash, () => import_rxjs28.of(bundle));
|
|
43481
|
+
return customTypesService.replaceCustomType(lastElement.name, options).pipe(import_rxjs28.switchMap(() => {
|
|
43179
43482
|
const existingCustomType = customTypesService.tryGetExistingCustomType(lastElement.name, options);
|
|
43180
43483
|
if (!existingCustomType.success || !existingCustomType.type) {
|
|
43181
43484
|
throw new InvalidOperationException("Could not get the refreshed type");
|
|
43182
43485
|
}
|
|
43183
|
-
return
|
|
43486
|
+
return import_rxjs28.of(existingCustomType.type);
|
|
43184
43487
|
}));
|
|
43185
43488
|
}));
|
|
43186
43489
|
}
|
|
43187
43490
|
_getShallowJitType(typeInfo, connectionId, customTypesService, parameters = null, jsonSchemaInput = null) {
|
|
43188
43491
|
const bundle = _JitTypesBuilder._getBusinessEntityBundle(typeInfo, true, parameters?.addInputTypeSupport ?? false);
|
|
43189
|
-
return
|
|
43492
|
+
return import_rxjs28.from(_JitTypesBuilder._generateBundleNamingDetails(bundle, typeInfo.name, connectionId, parameters)).pipe(import_rxjs28.switchMap(({
|
|
43190
43493
|
bundleName,
|
|
43191
43494
|
bundleHash
|
|
43192
43495
|
}) => {
|
|
43193
43496
|
const existingCustomType = customTypesService.tryGetExistingCustomType(typeInfo.name, new BundleOptions(bundleName));
|
|
43194
43497
|
if (existingCustomType.success && existingCustomType.type) {
|
|
43195
|
-
return
|
|
43498
|
+
return import_rxjs28.of(new JitTypeCreationResults(existingCustomType.type, _JitTypesBuilder._checkIfTypeNeedsRefresh(existingCustomType.type, bundle.types)));
|
|
43196
43499
|
}
|
|
43197
|
-
const options = new BundleOptions(bundleName, bundleHash, () =>
|
|
43500
|
+
const options = new BundleOptions(bundleName, bundleHash, () => import_rxjs28.of(bundle));
|
|
43198
43501
|
let jsonInput = null;
|
|
43199
43502
|
let tsDefinition = null;
|
|
43200
43503
|
let jsonSchema = null;
|
|
@@ -43207,7 +43510,7 @@ var JitTypesBuilder = class _JitTypesBuilder {
|
|
|
43207
43510
|
jsonSchema = convertToJsonSchema(jsonSchemaInput);
|
|
43208
43511
|
}
|
|
43209
43512
|
}
|
|
43210
|
-
return customTypesService.generateCustomType(typeInfo.name, options).pipe(
|
|
43513
|
+
return customTypesService.generateCustomType(typeInfo.name, options).pipe(import_rxjs28.map((type) => new JitTypeCreationResults(type, false, tsDefinition, jsonInput, jsonSchema)));
|
|
43211
43514
|
}));
|
|
43212
43515
|
}
|
|
43213
43516
|
static async _generateBundleNamingDetails(bundle, mainTypeName, connectionId, parameters) {
|
|
@@ -43538,11 +43841,11 @@ var HttpRequestPreviewHelper = class {
|
|
|
43538
43841
|
}
|
|
43539
43842
|
fetchAndRender(connectionId) {
|
|
43540
43843
|
const telemetryOperation = DesignTimeActivityConfigurationExtensions.createTelemetryOperation(this._dependencies.activityConfiguration, "getHttpRequestPreviewConfig");
|
|
43541
|
-
return this._dependencies.metadataService.getHttpRequestPreviewConfig(connectionId, this._dependencies.activityConfiguration.additionalHeaders, telemetryOperation).pipe(
|
|
43844
|
+
return this._dependencies.metadataService.getHttpRequestPreviewConfig(connectionId, this._dependencies.activityConfiguration.additionalHeaders, telemetryOperation).pipe(import_rxjs29.switchMap((previewParameters) => {
|
|
43542
43845
|
this._dependencies.activityConfiguration.requestPreviewParameters = previewParameters;
|
|
43543
43846
|
ActivityStateExtensions.saveConfiguration(this._dependencies.activityState, this._dependencies.activityConfiguration);
|
|
43544
43847
|
this._processPreviewParameters(previewParameters);
|
|
43545
|
-
return
|
|
43848
|
+
return import_rxjs29.of(undefined);
|
|
43546
43849
|
}));
|
|
43547
43850
|
}
|
|
43548
43851
|
clearHttpRequestPreview(dynamicProperties) {
|
|
@@ -43953,13 +44256,13 @@ var FilterGroupOperator = /* @__PURE__ */ ((FilterGroupOperator2) => {
|
|
|
43953
44256
|
})(FilterGroupOperator || {});
|
|
43954
44257
|
var ActivityPreviewJitTypesProvider = class {
|
|
43955
44258
|
getJitType(_connectorObject, _method, _fields, _connectionId, _parameters) {
|
|
43956
|
-
return
|
|
44259
|
+
return import_rxjs31.of(new JitTypeCreationResults(new ClrTypeMock(ClrTypeMock.Object), false));
|
|
43957
44260
|
}
|
|
43958
44261
|
getTriggerJitType(_connectorObjectEvent, _connectionId, _parameters) {
|
|
43959
|
-
return
|
|
44262
|
+
return import_rxjs31.of(new JitTypeCreationResults(new ClrTypeMock(ClrTypeMock.Object), false));
|
|
43960
44263
|
}
|
|
43961
44264
|
generateJitInputArray(_objectName, _suffix, _fields, _connectionId, _parameters) {
|
|
43962
|
-
return
|
|
44265
|
+
return import_rxjs31.of(new ClrTypeMock(ClrTypeMock.ObjectArray));
|
|
43963
44266
|
}
|
|
43964
44267
|
generateJitInputArrayNoObservable(_objectName, _suffix, _fields, _connectionId, _parameters) {
|
|
43965
44268
|
return new ClrTypeMock(ClrTypeMock.ObjectArray);
|
|
@@ -43974,174 +44277,6 @@ var ActivityPreviewJitTypesProvider = class {
|
|
|
43974
44277
|
throw new Error("Method not implemented.");
|
|
43975
44278
|
}
|
|
43976
44279
|
};
|
|
43977
|
-
var ApiConfigurationExtensions = class _ApiConfigurationExtensions {
|
|
43978
|
-
static getRequestParameterValues(apiConfiguration, fieldObjects, widgetTranslatorService) {
|
|
43979
|
-
const parameters = NamingHelper.extractTokens(apiConfiguration.url);
|
|
43980
|
-
if (apiConfiguration.body != null) {
|
|
43981
|
-
parameters.push(...[...apiConfiguration.body.values()].flatMap((x) => NamingHelper.extractTokens(x)));
|
|
43982
|
-
}
|
|
43983
|
-
const plainFieldTokens = parameters.filter((t) => !t.trimStart().startsWith("="));
|
|
43984
|
-
const requestParameterValues = new Map(uniq_default(plainFieldTokens).map((x) => [x, null]));
|
|
43985
|
-
const optionalParameters = new Set(apiConfiguration.optionalParameters ?? []);
|
|
43986
|
-
for (const key of requestParameterValues.keys()) {
|
|
43987
|
-
const fieldValue = this._getFieldValue(fieldObjects, key, widgetTranslatorService);
|
|
43988
|
-
if (fieldValue == null && !optionalParameters.has(key)) {
|
|
43989
|
-
return null;
|
|
43990
|
-
}
|
|
43991
|
-
requestParameterValues.set(key, fieldValue);
|
|
43992
|
-
}
|
|
43993
|
-
return requestParameterValues;
|
|
43994
|
-
}
|
|
43995
|
-
static _getFieldValue(fieldObjects, propertyName, widgetTranslatorService) {
|
|
43996
|
-
const fieldObject = FieldObjectHelpers.getFieldArgumentOrLiteral(fieldObjects, propertyName);
|
|
43997
|
-
if (fieldObject == null) {
|
|
43998
|
-
return null;
|
|
43999
|
-
}
|
|
44000
|
-
switch (fieldObject.type) {
|
|
44001
|
-
case "fieldArgument":
|
|
44002
|
-
return this._getArgumentValue(fieldObject, widgetTranslatorService);
|
|
44003
|
-
case "fieldLiteral":
|
|
44004
|
-
return this._toLiteralString(fieldObject.value);
|
|
44005
|
-
default:
|
|
44006
|
-
return null;
|
|
44007
|
-
}
|
|
44008
|
-
}
|
|
44009
|
-
static _getArgumentValue(fieldObject, widgetTranslatorService) {
|
|
44010
|
-
if (!(fieldObject.value instanceof WorkflowValue)) {
|
|
44011
|
-
return null;
|
|
44012
|
-
}
|
|
44013
|
-
let result = null;
|
|
44014
|
-
if (fieldObject.value.isLiteral) {
|
|
44015
|
-
result = this._toLiteralString(fieldObject.value.value);
|
|
44016
|
-
} else {
|
|
44017
|
-
const parsed = widgetTranslatorService.parseLiteralExpression(fieldObject.value.value?.toString() ?? StringExtensions.empty);
|
|
44018
|
-
if (parsed.isLiteral) {
|
|
44019
|
-
result = this._toLiteralString(parsed.value);
|
|
44020
|
-
}
|
|
44021
|
-
}
|
|
44022
|
-
return result;
|
|
44023
|
-
}
|
|
44024
|
-
static _toLiteralString(value) {
|
|
44025
|
-
if (value == null) {
|
|
44026
|
-
return null;
|
|
44027
|
-
}
|
|
44028
|
-
const valueType = typeof value;
|
|
44029
|
-
if (valueType === "string" || valueType === "number" || valueType === "boolean") {
|
|
44030
|
-
return value.toString();
|
|
44031
|
-
}
|
|
44032
|
-
if (value instanceof WorkflowValue) {
|
|
44033
|
-
return _ApiConfigurationExtensions._toLiteralString(value.value);
|
|
44034
|
-
}
|
|
44035
|
-
return null;
|
|
44036
|
-
}
|
|
44037
|
-
};
|
|
44038
|
-
var CustomFieldsRequestParameters = class _CustomFieldsRequestParameters {
|
|
44039
|
-
constructor(apiConfiguration, onSuccess, onFailure, parameterValues, customHandlerOptions, fields = null, savedTokenValues = null) {
|
|
44040
|
-
this.errorHandler = null;
|
|
44041
|
-
this.method = apiConfiguration.method;
|
|
44042
|
-
this.parameterValues = parameterValues;
|
|
44043
|
-
this.tokenValues = /* @__PURE__ */ new Map;
|
|
44044
|
-
const sources = {
|
|
44045
|
-
parameterValues,
|
|
44046
|
-
fields,
|
|
44047
|
-
savedTokenValues,
|
|
44048
|
-
resolvedTokenValues: this.tokenValues
|
|
44049
|
-
};
|
|
44050
|
-
this.url = _CustomFieldsRequestParameters._fillParameters(apiConfiguration.url, sources);
|
|
44051
|
-
if (apiConfiguration.body) {
|
|
44052
|
-
this.body = /* @__PURE__ */ new Map;
|
|
44053
|
-
for (const pair of apiConfiguration.body.entries()) {
|
|
44054
|
-
this.body.set(pair[0], _CustomFieldsRequestParameters._fillParameters(pair[1], sources));
|
|
44055
|
-
}
|
|
44056
|
-
} else {
|
|
44057
|
-
this.body = null;
|
|
44058
|
-
}
|
|
44059
|
-
this.onSuccessConfiguration = onSuccess;
|
|
44060
|
-
this.onFailureConfiguration = onFailure;
|
|
44061
|
-
this.customHandlerOptions = customHandlerOptions;
|
|
44062
|
-
}
|
|
44063
|
-
static _fillParameters(template, sources) {
|
|
44064
|
-
let builder = template;
|
|
44065
|
-
for (const key of NamingHelper.extractTokens(template)) {
|
|
44066
|
-
const resolved = _CustomFieldsRequestParameters._resolveTokenValue(key, sources);
|
|
44067
|
-
builder = _CustomFieldsRequestParameters._substituteToken(builder, template, key, resolved);
|
|
44068
|
-
}
|
|
44069
|
-
return builder;
|
|
44070
|
-
}
|
|
44071
|
-
static _resolveTokenValue(key, sources) {
|
|
44072
|
-
if (key.trimStart().startsWith("=")) {
|
|
44073
|
-
const token = key.trim().slice(1).trim();
|
|
44074
|
-
const fromField = _CustomFieldsRequestParameters._resolveExpressionToken(key, sources.fields);
|
|
44075
|
-
const resolved = fromField === undefined ? sources.savedTokenValues?.get(token) ?? null : fromField;
|
|
44076
|
-
if (resolved != null) {
|
|
44077
|
-
sources.resolvedTokenValues.set(token, resolved);
|
|
44078
|
-
}
|
|
44079
|
-
return resolved;
|
|
44080
|
-
}
|
|
44081
|
-
if (!sources.parameterValues.has(key)) {
|
|
44082
|
-
throw new DesigntimeException(2252);
|
|
44083
|
-
}
|
|
44084
|
-
return sources.parameterValues.get(key) ?? null;
|
|
44085
|
-
}
|
|
44086
|
-
static _substituteToken(builder, template, key, value) {
|
|
44087
|
-
if (StringExtensions.isNullOrEmpty(value)) {
|
|
44088
|
-
if (template.includes("?")) {
|
|
44089
|
-
return _CustomFieldsRequestParameters._removeParameterFromUrl(builder, "{" + key + "}");
|
|
44090
|
-
}
|
|
44091
|
-
return builder.replaceAll(`{${key}}`, StringExtensions.empty);
|
|
44092
|
-
}
|
|
44093
|
-
return builder.replaceAll(`{${key}}`, value);
|
|
44094
|
-
}
|
|
44095
|
-
static _resolveExpressionToken(raw, fields) {
|
|
44096
|
-
const body = raw.trim().slice(1).trim();
|
|
44097
|
-
const openParen = body.indexOf("(");
|
|
44098
|
-
const closeParen = body.lastIndexOf(")");
|
|
44099
|
-
if (openParen <= 0 || closeParen !== body.length - 1 || closeParen < openParen) {
|
|
44100
|
-
throw new DesigntimeException(2253, `Invalid template expression: {${raw}}`);
|
|
44101
|
-
}
|
|
44102
|
-
const property2 = body.slice(0, openParen).trim();
|
|
44103
|
-
const fieldName = body.slice(openParen + 1, closeParen).trim();
|
|
44104
|
-
const field = fields?.find((f) => f.name === fieldName);
|
|
44105
|
-
if (field == null) {
|
|
44106
|
-
return;
|
|
44107
|
-
}
|
|
44108
|
-
const value = field[property2];
|
|
44109
|
-
if (value == null) {
|
|
44110
|
-
return null;
|
|
44111
|
-
}
|
|
44112
|
-
if (typeof value === "string") {
|
|
44113
|
-
return value;
|
|
44114
|
-
}
|
|
44115
|
-
if (typeof value === "number" || typeof value === "boolean") {
|
|
44116
|
-
return value.toString();
|
|
44117
|
-
}
|
|
44118
|
-
return null;
|
|
44119
|
-
}
|
|
44120
|
-
static _removeParameterFromUrl(builder, tokenValue) {
|
|
44121
|
-
if (StringExtensions.isNullOrWhiteSpace(tokenValue)) {
|
|
44122
|
-
throw new ArgumentNullException("Builder and key cannot be null or empty.");
|
|
44123
|
-
}
|
|
44124
|
-
const builderString = builder;
|
|
44125
|
-
const queryStart = builderString.indexOf("?");
|
|
44126
|
-
if (queryStart >= 0) {
|
|
44127
|
-
const queryString = builderString.substring(queryStart + 1);
|
|
44128
|
-
const parameters = queryString.split("&").filter((p) => {
|
|
44129
|
-
const eqIdx = p.indexOf("=");
|
|
44130
|
-
if (eqIdx < 0) {
|
|
44131
|
-
return true;
|
|
44132
|
-
}
|
|
44133
|
-
return p.substring(eqIdx + 1).toLowerCase() !== tokenValue.toLowerCase();
|
|
44134
|
-
});
|
|
44135
|
-
builder = "";
|
|
44136
|
-
builder += builderString.substring(0, queryStart);
|
|
44137
|
-
if (parameters.length > 0) {
|
|
44138
|
-
builder += "?";
|
|
44139
|
-
builder += parameters.join("&");
|
|
44140
|
-
}
|
|
44141
|
-
}
|
|
44142
|
-
return builder;
|
|
44143
|
-
}
|
|
44144
|
-
};
|
|
44145
44280
|
var ObjectActionExtensions = class {
|
|
44146
44281
|
static getCustomFieldsRequestParameters(objectAction, customFieldsRequestDetails, fields = null) {
|
|
44147
44282
|
const apiConfiguration = objectAction.apiConfiguration;
|
|
@@ -44200,16 +44335,16 @@ var ConnectionPropertiesHelper = class _ConnectionPropertiesHelper {
|
|
|
44200
44335
|
getAllProperties
|
|
44201
44336
|
} = vmResolveConnectionConfig;
|
|
44202
44337
|
const selectedIdentifier = workflowValue.value?.toString() ?? "";
|
|
44203
|
-
const connectionInfo$ = resolveConnectionReference(selectedIdentifier).pipe(
|
|
44338
|
+
const connectionInfo$ = resolveConnectionReference(selectedIdentifier).pipe(import_rxjs32.filter((connectionResource) => typeof connectionResource.resourceId === "string" && connectionResource.resourceId.trim().length > 0), import_rxjs32.switchMap((connectionResource) => connectionService.getConnection(connectionResource.resourceId).pipe(import_rxjs32.map((conn) => ({
|
|
44204
44339
|
realId: connectionResource.resourceId,
|
|
44205
44340
|
folderKey: connectionResource.folderKey,
|
|
44206
44341
|
connectorKey: conn?.connector?.key ?? null
|
|
44207
|
-
})))),
|
|
44342
|
+
})))), import_rxjs32.catchError(() => import_rxjs32.of({
|
|
44208
44343
|
realId: selectedIdentifier,
|
|
44209
44344
|
folderKey: undefined,
|
|
44210
44345
|
connectorKey: null
|
|
44211
44346
|
})));
|
|
44212
|
-
return connectionInfo$.pipe(
|
|
44347
|
+
return connectionInfo$.pipe(import_rxjs32.switchMap(({
|
|
44213
44348
|
realId,
|
|
44214
44349
|
folderKey,
|
|
44215
44350
|
connectorKey
|
|
@@ -44272,12 +44407,12 @@ var ConnectionPropertiesHelper = class _ConnectionPropertiesHelper {
|
|
|
44272
44407
|
const workflowValue = rawValue instanceof WorkflowValue ? rawValue : new WorkflowValue(rawValue, true);
|
|
44273
44408
|
const fieldValueChanged = tryUpdateFieldValue(Constants.ConnectionPropertyName, workflowValue);
|
|
44274
44409
|
if (!property2) {
|
|
44275
|
-
return
|
|
44410
|
+
return import_rxjs32.of(undefined);
|
|
44276
44411
|
}
|
|
44277
44412
|
const connectionId = workflowValue.value?.toString() ?? StringExtensions.empty;
|
|
44278
44413
|
if (StringExtensions.isNullOrWhiteSpace(connectionId)) {
|
|
44279
44414
|
_ConnectionPropertiesHelper.clearConnection(activityState, getAllProperties, partialViewModel.connectorActionsService, isSolution, activityConfiguration, clearHttpRequestPreview);
|
|
44280
|
-
return
|
|
44415
|
+
return import_rxjs32.of(undefined);
|
|
44281
44416
|
}
|
|
44282
44417
|
return _ConnectionPropertiesHelper.resolveConnectionAndUpdateWidget({
|
|
44283
44418
|
isSolution,
|
|
@@ -44604,13 +44739,13 @@ var DesignPropertyRow = class _DesignPropertyRow extends AddPropertyViewModel {
|
|
|
44604
44739
|
return this._attributes;
|
|
44605
44740
|
}
|
|
44606
44741
|
getPropertyForAdd() {
|
|
44607
|
-
return
|
|
44742
|
+
return import_rxjs33.of(this.designProperty);
|
|
44608
44743
|
}
|
|
44609
44744
|
updateAddPropertyAttribute(_attributeName, _value) {
|
|
44610
|
-
return
|
|
44745
|
+
return import_rxjs33.of(undefined);
|
|
44611
44746
|
}
|
|
44612
44747
|
getAddDesignPropertiesChildren() {
|
|
44613
|
-
return
|
|
44748
|
+
return import_rxjs33.of(this.children);
|
|
44614
44749
|
}
|
|
44615
44750
|
getDescendants() {
|
|
44616
44751
|
const result = [];
|
|
@@ -45354,9 +45489,9 @@ var PollingIntervalWidgetHelper = class {
|
|
|
45354
45489
|
static buildWidget(pollingInterval, activityConfiguration, connectionId, connectionService, translationService) {
|
|
45355
45490
|
if (!this._isPollingActivity(activityConfiguration) || !connectionId) {
|
|
45356
45491
|
pollingInterval.isVisible = false;
|
|
45357
|
-
return
|
|
45492
|
+
return import_rxjs34.of(undefined);
|
|
45358
45493
|
}
|
|
45359
|
-
return connectionService.getConnection(connectionId).pipe(
|
|
45494
|
+
return connectionService.getConnection(connectionId).pipe(import_rxjs34.take(1), import_rxjs34.catchError(() => import_rxjs34.of(null)), import_rxjs34.tap((connection) => {
|
|
45360
45495
|
const intervalMinutes = connection?.pollingIntervalInMinutes ?? null;
|
|
45361
45496
|
if (!connection || intervalMinutes == null) {
|
|
45362
45497
|
pollingInterval.isVisible = false;
|
|
@@ -45372,7 +45507,7 @@ var PollingIntervalWidgetHelper = class {
|
|
|
45372
45507
|
level: "info",
|
|
45373
45508
|
linkUnderline: "hover"
|
|
45374
45509
|
});
|
|
45375
|
-
}),
|
|
45510
|
+
}), import_rxjs34.map(() => {
|
|
45376
45511
|
return;
|
|
45377
45512
|
}));
|
|
45378
45513
|
}
|
|
@@ -45408,7 +45543,7 @@ var BrowserService = class _BrowserService {
|
|
|
45408
45543
|
lookupParameters.update("", Number.MAX_VALUE, 0, false, false);
|
|
45409
45544
|
}
|
|
45410
45545
|
getChildren(parent = null, filter3 = null, skip, limit, loadMultipleResultsPages = true) {
|
|
45411
|
-
return this._getChildrenInternal(parent, skip, limit, filter3, false, loadMultipleResultsPages).pipe(
|
|
45546
|
+
return this._getChildrenInternal(parent, skip, limit, filter3, false, loadMultipleResultsPages).pipe(import_rxjs35.map((browserItems) => ({
|
|
45412
45547
|
values: browserItems.slice(skip, skip + limit),
|
|
45413
45548
|
hasNextPage: this._lookupParameters.hasNextPage
|
|
45414
45549
|
})));
|
|
@@ -45423,31 +45558,31 @@ var BrowserService = class _BrowserService {
|
|
|
45423
45558
|
this._sendEventForFileFolderPicker(null, pathParametersWithCustomValues);
|
|
45424
45559
|
this._lookupParameters.processPathParameters();
|
|
45425
45560
|
this._lookupParameters.update(this._lookupParameters.searchText, limit, skip, forceRefresh, loadMultipleResultsPages);
|
|
45426
|
-
return this._lookupService.getFileContent(this._lookupParameters).pipe(
|
|
45561
|
+
return this._lookupService.getFileContent(this._lookupParameters).pipe(import_rxjs35.switchMap((fileLookupValues) => {
|
|
45427
45562
|
browserItems = _BrowserService._toBrowserItems(fileLookupValues, selectedValue);
|
|
45428
|
-
return
|
|
45429
|
-
}),
|
|
45563
|
+
return import_rxjs35.of(browserItems);
|
|
45564
|
+
}), import_rxjs35.catchError((ex) => {
|
|
45430
45565
|
if (!(ex instanceof Error)) {
|
|
45431
45566
|
throw ex;
|
|
45432
45567
|
}
|
|
45433
45568
|
this._telemetryService.trackEvent(TelemetryHelper.getErrorEventFromException(ex, 1154, this._getTelemetryProperties(), this._lookupParameters.connectionIdOrEmpty, "getChildren"));
|
|
45434
45569
|
this._lookupParameters.errorHandler.setErrorMessage(ex instanceof DapException ? ex.message : null, pathParametersWithCustomValues);
|
|
45435
|
-
return
|
|
45570
|
+
return import_rxjs35.of(browserItems);
|
|
45436
45571
|
}));
|
|
45437
45572
|
} else if (!StringExtensions.isNullOrWhiteSpace(this._lookupParameters.lookupReference.childPath)) {
|
|
45438
45573
|
this._sendEventForFileFolderPicker(parent.fullName);
|
|
45439
45574
|
this._lookupParameters.processChildPathParameters(parent.metadata);
|
|
45440
45575
|
this._lookupParameters.update(this._lookupParameters.searchText, limit, skip, forceRefresh, loadMultipleResultsPages);
|
|
45441
|
-
return this._lookupService.getChildContent(this._lookupParameters).pipe(
|
|
45576
|
+
return this._lookupService.getChildContent(this._lookupParameters).pipe(import_rxjs35.switchMap((fileLookupValues) => {
|
|
45442
45577
|
browserItems = _BrowserService._toBrowserItems(fileLookupValues, selectedValue);
|
|
45443
|
-
return
|
|
45444
|
-
}),
|
|
45578
|
+
return import_rxjs35.of(browserItems);
|
|
45579
|
+
}), import_rxjs35.catchError((ex) => {
|
|
45445
45580
|
if (!(ex instanceof Error)) {
|
|
45446
45581
|
throw ex;
|
|
45447
45582
|
}
|
|
45448
45583
|
this._telemetryService.trackEvent(TelemetryHelper.getErrorEventFromException(ex, 1154, this._getTelemetryProperties(), this._lookupParameters.connectionIdOrEmpty, "getChildren"));
|
|
45449
45584
|
this._lookupParameters.errorHandler.setErrorMessage(ex instanceof DapException ? ex.message : null, pathParametersWithCustomValues);
|
|
45450
|
-
return
|
|
45585
|
+
return import_rxjs35.of(browserItems);
|
|
45451
45586
|
}));
|
|
45452
45587
|
}
|
|
45453
45588
|
} catch (ex) {
|
|
@@ -45457,7 +45592,7 @@ var BrowserService = class _BrowserService {
|
|
|
45457
45592
|
this._telemetryService.trackEvent(TelemetryHelper.getErrorEventFromException(ex, 1154, this._getTelemetryProperties(), this._lookupParameters.connectionIdOrEmpty, "getChildren"));
|
|
45458
45593
|
this._lookupParameters.errorHandler.setErrorMessage(ex instanceof DapException ? ex.message : null, pathParametersWithCustomValues);
|
|
45459
45594
|
}
|
|
45460
|
-
return
|
|
45595
|
+
return import_rxjs35.of(browserItems);
|
|
45461
45596
|
}
|
|
45462
45597
|
refresh() {
|
|
45463
45598
|
this._lookupParameters.errorHandler.resetErrorLabel();
|
|
@@ -45465,19 +45600,19 @@ var BrowserService = class _BrowserService {
|
|
|
45465
45600
|
this._lookupParameters.errorHandler.setErrorMessage(this._translationService.instant("dap.General_ForceRefresh_ConnectionNotConfigured"));
|
|
45466
45601
|
return surfaceRefreshFailure(this._lookupParameters.errorHandler, this._translationService);
|
|
45467
45602
|
}
|
|
45468
|
-
return this._lookupService.clearCache(this._lookupParameters).pipe(
|
|
45603
|
+
return this._lookupService.clearCache(this._lookupParameters).pipe(import_rxjs35.switchMap(() => this._getChildrenInternal(null, 0, Number.MAX_VALUE, null, true, true)), import_rxjs35.switchMap(() => surfaceRefreshFailure(this._lookupParameters.errorHandler, this._translationService)));
|
|
45469
45604
|
}
|
|
45470
45605
|
resolveById(id) {
|
|
45471
|
-
return this._lookupService.getFileById(this._lookupParameters, id).pipe(
|
|
45606
|
+
return this._lookupService.getFileById(this._lookupParameters, id).pipe(import_rxjs35.map((fileValue) => {
|
|
45472
45607
|
if (fileValue == null) {
|
|
45473
45608
|
return null;
|
|
45474
45609
|
}
|
|
45475
45610
|
return _BrowserService._toBrowserItem(fileValue);
|
|
45476
|
-
}),
|
|
45611
|
+
}), import_rxjs35.catchError((ex) => {
|
|
45477
45612
|
if (ex instanceof Error) {
|
|
45478
45613
|
this._telemetryService.trackEvent(TelemetryHelper.getErrorEventFromException(ex, 1154, this._getTelemetryProperties(), this._lookupParameters.connectionIdOrEmpty, "resolveById"));
|
|
45479
45614
|
}
|
|
45480
|
-
return
|
|
45615
|
+
return import_rxjs35.of(null);
|
|
45481
45616
|
}));
|
|
45482
45617
|
}
|
|
45483
45618
|
_getTelemetryProperties(pathParametersWithCustomValues = null) {
|
|
@@ -45731,7 +45866,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45731
45866
|
}
|
|
45732
45867
|
const activityProperties = activityPropertiesParameter;
|
|
45733
45868
|
this._initActivityConfiguration(activityProperties);
|
|
45734
|
-
return this._loadFeatureFlags(this._apiServices).pipe(
|
|
45869
|
+
return this._loadFeatureFlags(this._apiServices).pipe(import_rxjs30.switchMap(() => {
|
|
45735
45870
|
this._initConnectionId(activityProperties, this.activityState.instanceParameters.connectorKey === Constants.HTTPConnectorKey);
|
|
45736
45871
|
this._initActivityConfigurationPropertiesInternal(fieldObjects);
|
|
45737
45872
|
if (this.activityConfiguration.hasBreakingChanges === true) {
|
|
@@ -45745,15 +45880,15 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45745
45880
|
}
|
|
45746
45881
|
}
|
|
45747
45882
|
return this._onInitializeConfigured();
|
|
45748
|
-
}),
|
|
45883
|
+
}), import_rxjs30.catchError((ex) => {
|
|
45749
45884
|
if (ex instanceof DapException && ex.shouldRenderOnCanvas()) {
|
|
45750
45885
|
this._setBreakingChangeLabel(ex);
|
|
45751
|
-
return
|
|
45886
|
+
return import_rxjs30.of(undefined);
|
|
45752
45887
|
}
|
|
45753
45888
|
ExceptionExtensions.logException(ex);
|
|
45754
45889
|
const telemetryProperties = this._activityConfigurationField != null ? /* @__PURE__ */ new Map([["ActivityConfiguration", this._activityConfigurationField]]) : null;
|
|
45755
45890
|
this._telemetryService.trackEvent(TelemetryHelper.getErrorEventFromException(ex, null, telemetryProperties, null, "initialize"));
|
|
45756
|
-
return
|
|
45891
|
+
return import_rxjs30.throwError(() => ex);
|
|
45757
45892
|
}));
|
|
45758
45893
|
} catch (ex) {
|
|
45759
45894
|
if (!(ex instanceof Error)) {
|
|
@@ -45761,7 +45896,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45761
45896
|
}
|
|
45762
45897
|
if (ex instanceof DapException && ex.shouldRenderOnCanvas()) {
|
|
45763
45898
|
this._setBreakingChangeLabel(ex);
|
|
45764
|
-
return
|
|
45899
|
+
return import_rxjs30.of(undefined);
|
|
45765
45900
|
}
|
|
45766
45901
|
ExceptionExtensions.logException(ex);
|
|
45767
45902
|
const telemetryProperties = this._activityConfigurationField != null ? /* @__PURE__ */ new Map([["ActivityConfiguration", this._activityConfigurationField]]) : null;
|
|
@@ -45771,9 +45906,9 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45771
45906
|
}
|
|
45772
45907
|
onAfterInitialize() {
|
|
45773
45908
|
if (this._processViewModelAfterAdd) {
|
|
45774
|
-
return this._processViewModelRefresh(Constants.ImplicitConnectionId, Constants.ObjectNamePropertyName, new JitTypesProvider(this._designerCustomTypesService, null), { alwaysRefresh: true }).pipe(
|
|
45909
|
+
return this._processViewModelRefresh(Constants.ImplicitConnectionId, Constants.ObjectNamePropertyName, new JitTypesProvider(this._designerCustomTypesService, null), { alwaysRefresh: true }).pipe(import_rxjs30.finalize(() => this.getProperties()), import_rxjs30.map(() => true));
|
|
45775
45910
|
}
|
|
45776
|
-
return
|
|
45911
|
+
return import_rxjs30.of(false);
|
|
45777
45912
|
}
|
|
45778
45913
|
_onInitializeConfigured() {
|
|
45779
45914
|
if (this.activityConfiguration.instanceParameters.connectorKey === Constants.HTTPConnectorKey) {
|
|
@@ -45782,34 +45917,34 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45782
45917
|
return this._processViewModelRefresh(Constants.ImplicitConnectionId, Constants.ObjectNamePropertyName, new JitTypesProvider(this._designerCustomTypesService, null), { alwaysRefresh: true });
|
|
45783
45918
|
}
|
|
45784
45919
|
}
|
|
45785
|
-
return
|
|
45920
|
+
return import_rxjs30.of(undefined);
|
|
45786
45921
|
}
|
|
45787
45922
|
_isConnectionWidgetVisible(implicitConnection) {
|
|
45788
45923
|
return !implicitConnection;
|
|
45789
45924
|
}
|
|
45790
45925
|
ensureConnectionProcessed() {
|
|
45791
45926
|
if (this._connectionWasProcessed || StringExtensions.isNullOrEmpty(this.activityState.connectionId)) {
|
|
45792
|
-
return
|
|
45927
|
+
return import_rxjs30.EMPTY;
|
|
45793
45928
|
}
|
|
45794
|
-
return this.update(Constants.ConnectionIdPropertyName, this.connectionId.value).pipe(
|
|
45929
|
+
return this.update(Constants.ConnectionIdPropertyName, this.connectionId.value).pipe(import_rxjs30.map(() => {
|
|
45795
45930
|
return;
|
|
45796
|
-
}),
|
|
45931
|
+
}), import_rxjs30.catchError((ex) => {
|
|
45797
45932
|
this._telemetryService.trackEvent(TelemetryHelper.getErrorEventFromException(ex, null, null, this.activityState.connectionId, "ensureConnectionProcessed"));
|
|
45798
|
-
return
|
|
45933
|
+
return import_rxjs30.EMPTY;
|
|
45799
45934
|
}));
|
|
45800
45935
|
}
|
|
45801
45936
|
refreshSolutionConnection(resourceKey, refreshedBindings) {
|
|
45802
45937
|
if (!this.isSolution || this.activityState.connectionResourceId !== resourceKey) {
|
|
45803
|
-
return
|
|
45938
|
+
return import_rxjs30.EMPTY;
|
|
45804
45939
|
}
|
|
45805
45940
|
this._resetConnectionProcessed();
|
|
45806
45941
|
this._refreshedConnectionBindings = refreshedBindings;
|
|
45807
|
-
return this.update(Constants.ConnectionIdPropertyName, this.connectionId.value).pipe(
|
|
45942
|
+
return this.update(Constants.ConnectionIdPropertyName, this.connectionId.value).pipe(import_rxjs30.map(() => {
|
|
45808
45943
|
return;
|
|
45809
|
-
}),
|
|
45944
|
+
}), import_rxjs30.catchError((ex) => {
|
|
45810
45945
|
this._telemetryService.trackEvent(TelemetryHelper.getErrorEventFromException(ex, null, null, this.activityState.connectionId, "refreshSolutionConnection"));
|
|
45811
|
-
return
|
|
45812
|
-
}),
|
|
45946
|
+
return import_rxjs30.EMPTY;
|
|
45947
|
+
}), import_rxjs30.finalize(() => this._refreshedConnectionBindings = undefined));
|
|
45813
45948
|
}
|
|
45814
45949
|
_resolveConnectionReference(resourceKey, refresh = false) {
|
|
45815
45950
|
const solutionResourcesService = this.isSolution ? this._solutionResourcesService : null;
|
|
@@ -45830,9 +45965,9 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45830
45965
|
connectionIdLiteralString = InArgumentExtensions.convertLiteralArgumentToStringValue(value);
|
|
45831
45966
|
}
|
|
45832
45967
|
this.activityState.connectionId = connectionIdLiteralString;
|
|
45833
|
-
return
|
|
45968
|
+
return import_rxjs30.of(propertyName);
|
|
45834
45969
|
}
|
|
45835
|
-
let continuation =
|
|
45970
|
+
let continuation = import_rxjs30.of({});
|
|
45836
45971
|
switch (propertyName) {
|
|
45837
45972
|
case Constants.ConnectionIdPropertyName: {
|
|
45838
45973
|
const oldConnectionId = this.activityState.connectionResourceId;
|
|
@@ -45840,7 +45975,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45840
45975
|
if (!StringExtensions.isNullOrWhiteSpace(oldConnectionId)) {
|
|
45841
45976
|
ActivityStateExtensions.setConnectionError(this.activityState);
|
|
45842
45977
|
}
|
|
45843
|
-
return
|
|
45978
|
+
return import_rxjs30.of(StringExtensions.empty);
|
|
45844
45979
|
}
|
|
45845
45980
|
const connectionIdValue = value;
|
|
45846
45981
|
const selectedConnectionId = InArgumentExtensions.convertLiteralArgumentToStringValue(connectionIdValue);
|
|
@@ -45850,16 +45985,16 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45850
45985
|
if (selectedConnectionId !== oldConnectionId) {
|
|
45851
45986
|
this.pollingInterval.isVisible = false;
|
|
45852
45987
|
}
|
|
45853
|
-
continuation = this._resolveConnectionReference(selectedConnectionId, true).pipe(
|
|
45988
|
+
continuation = this._resolveConnectionReference(selectedConnectionId, true).pipe(import_rxjs30.switchMap((connectionResource) => {
|
|
45854
45989
|
this.activityState.realConnectionId = connectionResource.resourceId;
|
|
45855
45990
|
this.activityState.connectionFolderKey = connectionResource.folderKey ?? null;
|
|
45856
45991
|
const realConnectionId = connectionResource.resourceId ?? selectedConnectionId;
|
|
45857
|
-
return this._connectionService.checkConnection(realConnectionId, selectedConnectionId).pipe(
|
|
45992
|
+
return this._connectionService.checkConnection(realConnectionId, selectedConnectionId).pipe(import_rxjs30.switchMap((connectionStatus) => {
|
|
45858
45993
|
if (connectionStatus !== Constants.ConnectionEnabled) {
|
|
45859
45994
|
this.activityState.connectionId = realConnectionId;
|
|
45860
45995
|
this.activityState.connectionResourceId = selectedConnectionId;
|
|
45861
45996
|
this._resetConnectionProcessed();
|
|
45862
|
-
return
|
|
45997
|
+
return import_rxjs30.of({ stopProcessingPropertyName: StringExtensions.empty });
|
|
45863
45998
|
}
|
|
45864
45999
|
this._initialConnectionWasSet = true;
|
|
45865
46000
|
const resolvedConnectionChanged = realConnectionId !== this.activityState.connectionId;
|
|
@@ -45883,14 +46018,14 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45883
46018
|
objectDataSourceBuilder.getDynamicDataSource(StringExtensions.empty, Number.MAX_VALUE, 0).subscribe();
|
|
45884
46019
|
}
|
|
45885
46020
|
}
|
|
45886
|
-
return
|
|
46021
|
+
return import_rxjs30.of({});
|
|
45887
46022
|
}));
|
|
45888
46023
|
}));
|
|
45889
46024
|
break;
|
|
45890
46025
|
}
|
|
45891
46026
|
case Constants.ObjectNamePropertyName:
|
|
45892
46027
|
if (!(value instanceof WorkflowValue) || StringExtensions.isNullOrWhiteSpace(value.value?.toString()) || value.value?.toString() === this.activityConfiguration.objectName) {
|
|
45893
|
-
return
|
|
46028
|
+
return import_rxjs30.of(StringExtensions.empty);
|
|
45894
46029
|
}
|
|
45895
46030
|
if (StringExtensions.isNullOrEmpty(this.activityState.connectionId)) {
|
|
45896
46031
|
break;
|
|
@@ -45904,7 +46039,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45904
46039
|
break;
|
|
45905
46040
|
case "DisplayName":
|
|
45906
46041
|
this.activityState.displayName = value?.toString() ?? StringExtensions.empty;
|
|
45907
|
-
return
|
|
46042
|
+
return import_rxjs30.of(propertyName);
|
|
45908
46043
|
default:
|
|
45909
46044
|
if (propertyName === Constants.ConnectionPropertyName || propertyName === Constants.AuthenticationPropertyName || propertyName === Constants.ConnectorPropertyName) {
|
|
45910
46045
|
const connectionContinuation = ConnectionPropertiesHelper.handleAuthConnectionPropertyUpdate({
|
|
@@ -45922,7 +46057,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45922
46057
|
connectorActionsService: this._connectorObjectActionsService
|
|
45923
46058
|
});
|
|
45924
46059
|
if (connectionContinuation != null) {
|
|
45925
|
-
return connectionContinuation.pipe(
|
|
46060
|
+
return connectionContinuation.pipe(import_rxjs30.map(() => propertyName));
|
|
45926
46061
|
}
|
|
45927
46062
|
}
|
|
45928
46063
|
if (!this._activityConfigurationIsInitialized) {
|
|
@@ -45951,7 +46086,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45951
46086
|
const selection = field?.design?.selection;
|
|
45952
46087
|
if (selection && parsed.value) {
|
|
45953
46088
|
const selectedResourceKey = parsed.value;
|
|
45954
|
-
continuation = this._solutionResourcesService.getResource({ key: selectedResourceKey }).pipe(
|
|
46089
|
+
continuation = this._solutionResourcesService.getResource({ key: selectedResourceKey }).pipe(import_rxjs30.switchMap((resourceReference) => {
|
|
45955
46090
|
const resourceResolveObject = {
|
|
45956
46091
|
resourceName: resourceReference?.name ?? "",
|
|
45957
46092
|
resourceKey: resourceReference?.key ?? "",
|
|
@@ -45966,7 +46101,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45966
46101
|
displayPattern
|
|
45967
46102
|
} = replaceStringCombinedPattern(nameRegexDictionary, selection, (key) => resourceResolveObject?.[key] ?? null);
|
|
45968
46103
|
const formattedValue = formatPatternWithValues(displayPattern, argumentValues);
|
|
45969
|
-
return this._solutionResourcesService.getDebugReference({ key: selectedResourceKey }).pipe(
|
|
46104
|
+
return this._solutionResourcesService.getDebugReference({ key: selectedResourceKey }).pipe(import_rxjs30.map((debugRef) => debugRef?.folderKey ?? StringExtensions.empty), import_rxjs30.catchError(() => import_rxjs30.of(null)), import_rxjs30.map((folderKey) => {
|
|
45970
46105
|
if (field.selectedResourceId !== selectedResourceKey) {
|
|
45971
46106
|
return { stopProcessingPropertyName: StringExtensions.empty };
|
|
45972
46107
|
}
|
|
@@ -45979,9 +46114,9 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45979
46114
|
}
|
|
45980
46115
|
}
|
|
45981
46116
|
}
|
|
45982
|
-
return continuation.pipe(
|
|
46117
|
+
return continuation.pipe(import_rxjs30.switchMap((result) => {
|
|
45983
46118
|
if (result.stopProcessingPropertyName !== undefined) {
|
|
45984
|
-
return
|
|
46119
|
+
return import_rxjs30.of(result.stopProcessingPropertyName);
|
|
45985
46120
|
}
|
|
45986
46121
|
const fieldValueChanged = result.valueToUpdate != null ? this._tryUpdateFieldValue(propertyName, result.valueToUpdate) : this._tryUpdateFieldValue(propertyName, value);
|
|
45987
46122
|
const dataSourceBuilder = property2?.dataSourceBuilder;
|
|
@@ -45989,18 +46124,18 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
45989
46124
|
DesignTimeActivityConfigurationExtensions.cacheLookupValues(this.activityConfiguration, dataSourceBuilder, propertyName, value);
|
|
45990
46125
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
45991
46126
|
}
|
|
45992
|
-
let customFieldsContinuation =
|
|
46127
|
+
let customFieldsContinuation = import_rxjs30.of(undefined);
|
|
45993
46128
|
if (this._staticProperties.every((x) => x.name !== propertyName)) {
|
|
45994
46129
|
customFieldsContinuation = this._handleCustomFieldActionUpdate(propertyName, value, fieldValueChanged);
|
|
45995
46130
|
}
|
|
45996
|
-
return customFieldsContinuation.pipe(
|
|
45997
|
-
}),
|
|
46131
|
+
return customFieldsContinuation.pipe(import_rxjs30.switchMap(() => import_rxjs30.of(propertyName)));
|
|
46132
|
+
}), import_rxjs30.catchError((ex) => {
|
|
45998
46133
|
if (!(ex instanceof Error)) {
|
|
45999
|
-
return
|
|
46134
|
+
return import_rxjs30.throwError(() => ex);
|
|
46000
46135
|
}
|
|
46001
46136
|
ExceptionExtensions.logException(ex);
|
|
46002
46137
|
this._telemetryService.trackEvent(TelemetryHelper.getViewModelErrorEvent(ex, 2102, propertyName, value, this.activityConfiguration, "_updateInternal"));
|
|
46003
|
-
return
|
|
46138
|
+
return import_rxjs30.throwError(() => ex);
|
|
46004
46139
|
}));
|
|
46005
46140
|
} catch (ex) {
|
|
46006
46141
|
if (!(ex instanceof Error)) {
|
|
@@ -46015,26 +46150,66 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46015
46150
|
_handleCustomFieldActionUpdate(propertyName, value, fieldValueChanged) {
|
|
46016
46151
|
const connectionId = this.activityState.connectionId;
|
|
46017
46152
|
const isButtonClick = ActivityConfigurationExtensions.getFieldContainer(this.activityConfiguration).getActiveInputFields().find((f) => f.id === propertyName)?.design?.component === "Button";
|
|
46018
|
-
if (
|
|
46153
|
+
if (StringExtensions.isNullOrEmpty(connectionId)) {
|
|
46154
|
+
return import_rxjs30.of(undefined);
|
|
46155
|
+
}
|
|
46156
|
+
let customFieldsContinuation = import_rxjs30.of(undefined);
|
|
46157
|
+
if (isButtonClick || _ConnectorActivityBaseViewModel._isNotArgument(value) || fieldValueChanged) {
|
|
46019
46158
|
const customFieldsAction = this._connectorObjectActionsService.getCustomFieldsObjectAction(propertyName);
|
|
46020
46159
|
if (customFieldsAction != null) {
|
|
46021
|
-
|
|
46022
|
-
|
|
46023
|
-
|
|
46024
|
-
|
|
46025
|
-
|
|
46026
|
-
|
|
46027
|
-
|
|
46028
|
-
|
|
46029
|
-
|
|
46030
|
-
|
|
46031
|
-
|
|
46032
|
-
|
|
46033
|
-
|
|
46034
|
-
|
|
46160
|
+
customFieldsContinuation = this._executeCustomFieldsAction(connectionId, propertyName, customFieldsAction);
|
|
46161
|
+
}
|
|
46162
|
+
}
|
|
46163
|
+
return isButtonClick ? customFieldsContinuation : customFieldsContinuation.pipe(import_rxjs30.switchMap(() => this._autoGenerateSchema(connectionId, propertyName)));
|
|
46164
|
+
}
|
|
46165
|
+
_executeCustomFieldsAction(connectionId, propertyName, customFieldsAction) {
|
|
46166
|
+
const errorMessage = this._translationService.instant("dap.WarningCustomFieldsRequestFailed");
|
|
46167
|
+
const errorHandler = new PropertyErrorHandler(propertyName, errorMessage);
|
|
46168
|
+
const connectionResolverTask = this._resolveConnectionReference(this.activityState.connectionResourceId ?? connectionId);
|
|
46169
|
+
return connectionResolverTask.pipe(import_rxjs30.switchMap((connectionResource) => this._processCustomFieldsRequestAction(connectionResource.resourceId ?? connectionId, customFieldsAction, errorHandler).pipe(import_rxjs30.switchMap((apiCallExecuted) => {
|
|
46170
|
+
if (!apiCallExecuted) {
|
|
46171
|
+
return import_rxjs30.of(undefined);
|
|
46172
|
+
}
|
|
46173
|
+
const childActions = (errorHandler.errorTriggered ? customFieldsAction.onFailure?.actions : customFieldsAction.onSuccess?.actions) ?? null;
|
|
46174
|
+
this._connectorObjectActionsService.executeChildActions(childActions, this._getDynamicDesignProperties(false, false), errorHandler.getErrorMessage());
|
|
46175
|
+
if (errorHandler.errorTriggered && customFieldsAction.onFailure?.actions?.some((x) => x.actionType === "showMessages") === true) {
|
|
46176
|
+
errorHandler.resetErrorLabel();
|
|
46177
|
+
}
|
|
46178
|
+
return import_rxjs30.of(undefined);
|
|
46179
|
+
}))));
|
|
46180
|
+
}
|
|
46181
|
+
_autoGenerateSchema(connectionId, propertyName) {
|
|
46182
|
+
if (this.hostCapabilities.supportsGenerateSchemaButton === true) {
|
|
46183
|
+
return import_rxjs30.of(undefined);
|
|
46184
|
+
}
|
|
46185
|
+
return this._connectorObjectActionsService.getSchemaTriggerFieldsDependingOn(propertyName).reduce((previous, triggerFieldName) => previous.pipe(import_rxjs30.switchMap(() => {
|
|
46186
|
+
const action = this._connectorObjectActionsService.getCustomFieldsObjectAction(triggerFieldName);
|
|
46187
|
+
if (action?.apiConfiguration == null || action.actionType === "reset") {
|
|
46188
|
+
return import_rxjs30.of(undefined);
|
|
46035
46189
|
}
|
|
46190
|
+
const parameters = ApiConfigurationExtensions.getRequestParameterValues(action.apiConfiguration, this.activityState.fieldObjects ?? [], this._widgetTranslatorService);
|
|
46191
|
+
if (parameters == null || this._isCachedCustomFieldsRequest(action.name, parameters)) {
|
|
46192
|
+
return import_rxjs30.of(undefined);
|
|
46193
|
+
}
|
|
46194
|
+
return this._executeCustomFieldsAction(connectionId, propertyName, action);
|
|
46195
|
+
})), import_rxjs30.of(undefined)).pipe(import_rxjs30.catchError((ex) => this._handleAutoGenerateSchemaError(ex, propertyName)));
|
|
46196
|
+
}
|
|
46197
|
+
_handleAutoGenerateSchemaError(ex, propertyName) {
|
|
46198
|
+
if (ex instanceof Error) {
|
|
46199
|
+
ExceptionExtensions.logException(ex);
|
|
46200
|
+
this._telemetryService.trackEvent(TelemetryHelper.getViewModelErrorEvent(ex, 2253, propertyName, null, this.activityConfiguration, "_autoGenerateSchema"));
|
|
46201
|
+
}
|
|
46202
|
+
const designProperty = this.getAllProperties().find((p) => p.name === propertyName);
|
|
46203
|
+
if (designProperty != null) {
|
|
46204
|
+
const errorHandler = new PropertyErrorHandler(propertyName, this._translationService.instant("dap.WarningCustomFieldsRequestFailed"));
|
|
46205
|
+
errorHandler.setDesignProperties(designProperty, this._getOrAddErrorLabel(designProperty, true));
|
|
46206
|
+
errorHandler.setErrorMessage(ex instanceof Error ? ex.message : null);
|
|
46036
46207
|
}
|
|
46037
|
-
return
|
|
46208
|
+
return import_rxjs30.of(undefined);
|
|
46209
|
+
}
|
|
46210
|
+
_isCachedCustomFieldsRequest(actionName, parameters) {
|
|
46211
|
+
const cached2 = this.activityConfiguration.customFieldsRequestDetails;
|
|
46212
|
+
return cached2?.objectActionName === actionName && cached2.parameterValues.size === parameters.size && [...parameters].every(([key, parameterValue]) => cached2.parameterValues.get(key) === parameterValue);
|
|
46038
46213
|
}
|
|
46039
46214
|
static _isNotArgument(updateValue) {
|
|
46040
46215
|
return updateValue != null && !(updateValue instanceof WorkflowValue);
|
|
@@ -46044,19 +46219,19 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46044
46219
|
this.activityState.connectionResourceId = null;
|
|
46045
46220
|
this.activityState.realConnectionId = null;
|
|
46046
46221
|
this.activityState.connectionFolderKey = null;
|
|
46047
|
-
return
|
|
46222
|
+
return import_rxjs30.of(StringExtensions.empty);
|
|
46048
46223
|
}
|
|
46049
46224
|
getBrowsableProperties() {
|
|
46050
|
-
return
|
|
46225
|
+
return import_rxjs30.of(this.getAllProperties(true));
|
|
46051
46226
|
}
|
|
46052
46227
|
getProperties() {
|
|
46053
|
-
return
|
|
46228
|
+
return import_rxjs30.of(this.getAllProperties());
|
|
46054
46229
|
}
|
|
46055
46230
|
getPropertyByName(name) {
|
|
46056
|
-
return
|
|
46231
|
+
return import_rxjs30.of(this.getAllProperties().find((p) => p.name === name) ?? null);
|
|
46057
46232
|
}
|
|
46058
46233
|
refresh(_activityProperties = null) {
|
|
46059
|
-
return
|
|
46234
|
+
return import_rxjs30.of(undefined);
|
|
46060
46235
|
}
|
|
46061
46236
|
getAllProperties(_excludeAdditionalProperties = false) {
|
|
46062
46237
|
return this._staticProperties;
|
|
@@ -46107,10 +46282,10 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46107
46282
|
}
|
|
46108
46283
|
_tryGetConnectorDetails(connectionId) {
|
|
46109
46284
|
if (InstanceParametersExtensions.isGenericActivity(this.activityConfiguration.instanceParameters) && StringExtensions.isNullOrEmpty(this.activityConfiguration.objectName)) {
|
|
46110
|
-
return
|
|
46285
|
+
return import_rxjs30.of(null);
|
|
46111
46286
|
}
|
|
46112
46287
|
if (connectionId == null) {
|
|
46113
|
-
return
|
|
46288
|
+
return import_rxjs30.of(null);
|
|
46114
46289
|
}
|
|
46115
46290
|
const telemetryOperation = DesignTimeActivityConfigurationExtensions.createTelemetryOperation(this.activityConfiguration, connectionId, "GetConnectorDetails");
|
|
46116
46291
|
return this._metadataService.getConnectorDetails(this.activityConfiguration.instanceParameters.connectorKey, connectionId, this.activityConfiguration.additionalHeaders, telemetryOperation);
|
|
@@ -46159,7 +46334,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46159
46334
|
}
|
|
46160
46335
|
_onFieldActionsProcessed() {}
|
|
46161
46336
|
_onConnectionResolved(_realConnectionId) {
|
|
46162
|
-
return
|
|
46337
|
+
return import_rxjs30.of(undefined);
|
|
46163
46338
|
}
|
|
46164
46339
|
_resetErrorLabels() {
|
|
46165
46340
|
this._errors = [];
|
|
@@ -46177,7 +46352,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46177
46352
|
}
|
|
46178
46353
|
const passId = this._nextConnectionRefreshId++;
|
|
46179
46354
|
const isCurrentPass = () => !canShare || this._connectionRefreshInFlight?.id === passId;
|
|
46180
|
-
const pass$ = this._saveProperties(connectionId, options.alwaysRefresh, propertyName, jitTypesProvider, options.propagateErrors).pipe(
|
|
46355
|
+
const pass$ = this._saveProperties(connectionId, options.alwaysRefresh, propertyName, jitTypesProvider, options.propagateErrors).pipe(import_rxjs30.switchMap(() => this._buildPollingIntervalWidget()), import_rxjs30.tap(() => {
|
|
46181
46356
|
if (!isCurrentPass()) {
|
|
46182
46357
|
return;
|
|
46183
46358
|
}
|
|
@@ -46189,11 +46364,11 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46189
46364
|
if (!canShare) {
|
|
46190
46365
|
return pass$;
|
|
46191
46366
|
}
|
|
46192
|
-
const shared$ = pass$.pipe(
|
|
46367
|
+
const shared$ = pass$.pipe(import_rxjs30.finalize(() => {
|
|
46193
46368
|
if (this._connectionRefreshInFlight?.id === passId) {
|
|
46194
46369
|
this._connectionRefreshInFlight = undefined;
|
|
46195
46370
|
}
|
|
46196
|
-
}),
|
|
46371
|
+
}), import_rxjs30.shareReplay({
|
|
46197
46372
|
bufferSize: 1,
|
|
46198
46373
|
refCount: false
|
|
46199
46374
|
}));
|
|
@@ -46366,7 +46541,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46366
46541
|
property: designProperty,
|
|
46367
46542
|
workflowValue,
|
|
46368
46543
|
fieldValueChanged: true
|
|
46369
|
-
}).pipe(
|
|
46544
|
+
}).pipe(import_rxjs30.take(1)).subscribe();
|
|
46370
46545
|
}
|
|
46371
46546
|
}
|
|
46372
46547
|
}
|
|
@@ -46396,7 +46571,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46396
46571
|
const fieldArguments = this.activityState.fieldObjects ?? [];
|
|
46397
46572
|
const parameters = ApiConfigurationExtensions.getRequestParameterValues(customFieldsAction.apiConfiguration, fieldArguments, this._widgetTranslatorService);
|
|
46398
46573
|
if (parameters == null) {
|
|
46399
|
-
return
|
|
46574
|
+
return import_rxjs30.of(false);
|
|
46400
46575
|
}
|
|
46401
46576
|
newRequestDetails = new CustomFieldsRequestDetails(customFieldsAction.name, parameters);
|
|
46402
46577
|
customFieldsRequestParameters = ObjectActionExtensions.getCustomFieldsRequestParameters(customFieldsAction, newRequestDetails, ActivityConfigurationExtensions.getFieldContainer(this.activityConfiguration).getAllConfigurationFields());
|
|
@@ -46413,7 +46588,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46413
46588
|
status: "Processing custom fields"
|
|
46414
46589
|
});
|
|
46415
46590
|
this._resetErrorLabels();
|
|
46416
|
-
return this._refreshFields(connectionId, true, customFieldsRequestParameters, new JitTypesProvider(this._designerCustomTypesService)).pipe(
|
|
46591
|
+
return this._refreshFields(connectionId, true, customFieldsRequestParameters, new JitTypesProvider(this._designerCustomTypesService)).pipe(import_rxjs30.switchMap(() => {
|
|
46417
46592
|
this._connectorObjectActionsService.refreshActions(this._getDynamicDesignProperties(false, false));
|
|
46418
46593
|
if (customFieldsRequestParameters?.errorHandler?.errorTriggered === true && (customFieldsRequestParameters.onFailureConfiguration?.output === "unset" || customFieldsRequestParameters.onFailureConfiguration?.input === "unset")) {
|
|
46419
46594
|
this.activityConfiguration.customFieldsRequestDetails = null;
|
|
@@ -46423,8 +46598,8 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46423
46598
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
46424
46599
|
}
|
|
46425
46600
|
this._telemetryService.trackEvent(DesignTimeActivityConfigurationExtensions.createTelemetryEvent(this.activityConfiguration, `Fired custom fields action '${customFieldsAction.name}'`, null, null, "ProcessCustomFieldsRequestAction"));
|
|
46426
|
-
return
|
|
46427
|
-
}),
|
|
46601
|
+
return import_rxjs30.of(newRequestDetails != null);
|
|
46602
|
+
}), import_rxjs30.finalize(() => {
|
|
46428
46603
|
if (sessionId != null) {
|
|
46429
46604
|
this._busyService.end({
|
|
46430
46605
|
idRef: this.id,
|
|
@@ -46617,7 +46792,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46617
46792
|
_refreshMetadata() {
|
|
46618
46793
|
const connectionId = this.activityState.connectionId;
|
|
46619
46794
|
if (StringExtensions.isNullOrEmpty(connectionId)) {
|
|
46620
|
-
return
|
|
46795
|
+
return import_rxjs30.of(undefined);
|
|
46621
46796
|
}
|
|
46622
46797
|
const sessionId = getUuid();
|
|
46623
46798
|
this._metadataService.clearCacheForConnection(connectionId);
|
|
@@ -46626,10 +46801,10 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46626
46801
|
this.activityConfiguration.cachedLookupValues.clear();
|
|
46627
46802
|
this.activityConfiguration.cachedPropertyMappings.clear();
|
|
46628
46803
|
this._resetConnectionProcessed();
|
|
46629
|
-
return this.
|
|
46804
|
+
return this._fieldsService.clearSolutionResourceConfigurationsCache().pipe(import_rxjs30.switchMap(() => this._connectionService.reloadConnection(connectionId)), import_rxjs30.switchMap(() => this._processViewModelRefresh(connectionId, Constants.ConnectionIdPropertyName, new JitTypesProvider(this._designerCustomTypesService), {
|
|
46630
46805
|
alwaysRefresh: true,
|
|
46631
46806
|
propagateErrors: true
|
|
46632
|
-
})),
|
|
46807
|
+
})), import_rxjs30.tap({
|
|
46633
46808
|
subscribe: () => {
|
|
46634
46809
|
this._busyService.begin({
|
|
46635
46810
|
idRef: this.id,
|
|
@@ -46647,12 +46822,12 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46647
46822
|
next: () => {
|
|
46648
46823
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
46649
46824
|
}
|
|
46650
|
-
}),
|
|
46825
|
+
}), import_rxjs30.catchError((error46) => {
|
|
46651
46826
|
if (error46 instanceof DapException && error46.shouldRenderOnCanvas()) {
|
|
46652
46827
|
this._setBreakingChangeLabel(error46);
|
|
46653
|
-
return
|
|
46828
|
+
return import_rxjs30.of(undefined);
|
|
46654
46829
|
}
|
|
46655
|
-
return
|
|
46830
|
+
return import_rxjs30.throwError(() => error46);
|
|
46656
46831
|
}));
|
|
46657
46832
|
}
|
|
46658
46833
|
_pushObjectNameWidgetFromCache() {
|
|
@@ -46676,33 +46851,33 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46676
46851
|
});
|
|
46677
46852
|
};
|
|
46678
46853
|
if (!InstanceParametersExtensions.isGenericActivity(this.activityConfiguration.instanceParameters)) {
|
|
46679
|
-
return
|
|
46854
|
+
return import_rxjs30.of(undefined);
|
|
46680
46855
|
}
|
|
46681
46856
|
const objectName = this.activityConfiguration.objectName;
|
|
46682
46857
|
if (objectName == null || StringExtensions.isNullOrWhiteSpace(objectName)) {
|
|
46683
|
-
return
|
|
46858
|
+
return import_rxjs30.of(undefined);
|
|
46684
46859
|
}
|
|
46685
46860
|
if (StringExtensions.isNullOrEmpty(this.activityState.connectionId)) {
|
|
46686
|
-
return
|
|
46861
|
+
return import_rxjs30.of(undefined);
|
|
46687
46862
|
}
|
|
46688
46863
|
const existing = this.activityConfiguration.cachedLookupValues.get(Constants.ObjectNamePropertyName);
|
|
46689
46864
|
if (existing != null && existing.length > 0 && existing[0].id === objectName) {
|
|
46690
46865
|
pushFromCache();
|
|
46691
|
-
return
|
|
46866
|
+
return import_rxjs30.of(undefined);
|
|
46692
46867
|
}
|
|
46693
46868
|
const builder = this.objectName.dataSourceBuilder;
|
|
46694
46869
|
if (!(builder instanceof DynamicDataSourceBuilder)) {
|
|
46695
|
-
return
|
|
46870
|
+
return import_rxjs30.of(undefined);
|
|
46696
46871
|
}
|
|
46697
46872
|
builder.setDynamicQueryState(true);
|
|
46698
|
-
return builder.resolveById(objectName).pipe(
|
|
46873
|
+
return builder.resolveById(objectName).pipe(import_rxjs30.take(1), import_rxjs30.tap((resolved) => {
|
|
46699
46874
|
if (resolved && resolved.length > 0) {
|
|
46700
46875
|
this.activityConfiguration.cachedLookupValues.set(Constants.ObjectNamePropertyName, resolved);
|
|
46701
46876
|
pushFromCache();
|
|
46702
46877
|
}
|
|
46703
|
-
}),
|
|
46878
|
+
}), import_rxjs30.map(() => {
|
|
46704
46879
|
return;
|
|
46705
|
-
}),
|
|
46880
|
+
}), import_rxjs30.catchError(() => import_rxjs30.of(undefined)));
|
|
46706
46881
|
}
|
|
46707
46882
|
_createObjectDataSourceBuilder() {
|
|
46708
46883
|
const errorMessage = this._translationService.instant("dap.ValidationError_CouldNotLoadLookupValues");
|
|
@@ -46778,19 +46953,19 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46778
46953
|
const errorHandler = new PropertyErrorHandler(field.id, StringExtensions.empty, StringExtensions.empty);
|
|
46779
46954
|
const lookupParameters = LookupPropertyHelper.buildFieldLookupParameters(this.activityConfiguration, field, errorHandler, this.activityContext, false);
|
|
46780
46955
|
const browserService = new BrowserService(this._serviceProvider, lookupParameters, this.activityConfiguration.instanceParameters);
|
|
46781
|
-
tasks.push(browserService.resolveById(savedId).pipe(
|
|
46956
|
+
tasks.push(browserService.resolveById(savedId).pipe(import_rxjs30.take(1), import_rxjs30.tap((browserItem) => {
|
|
46782
46957
|
if (browserItem != null) {
|
|
46783
46958
|
this.activityConfiguration.cachedBrowserItems.set(field.id, browserItem);
|
|
46784
46959
|
}
|
|
46785
|
-
}),
|
|
46960
|
+
}), import_rxjs30.catchError(() => import_rxjs30.of(null))));
|
|
46786
46961
|
} else if (field.lookup != null && !this.activityConfiguration.cachedLookupValues.has(field.id)) {
|
|
46787
46962
|
tasks.push(this._fetchLookupForField(field, savedId));
|
|
46788
46963
|
}
|
|
46789
46964
|
}
|
|
46790
46965
|
if (tasks.length === 0) {
|
|
46791
|
-
return
|
|
46966
|
+
return import_rxjs30.of(undefined);
|
|
46792
46967
|
}
|
|
46793
|
-
return
|
|
46968
|
+
return import_rxjs30.forkJoin(tasks).pipe(import_rxjs30.map(() => {
|
|
46794
46969
|
return;
|
|
46795
46970
|
}));
|
|
46796
46971
|
}
|
|
@@ -46815,21 +46990,21 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46815
46990
|
return null;
|
|
46816
46991
|
}
|
|
46817
46992
|
builder.setDynamicQueryState(true);
|
|
46818
|
-
return builder.resolveById(objectName).pipe(
|
|
46993
|
+
return builder.resolveById(objectName).pipe(import_rxjs30.take(1), import_rxjs30.tap((resolved) => {
|
|
46819
46994
|
if (resolved && resolved.length > 0) {
|
|
46820
46995
|
this.activityConfiguration.cachedLookupValues.set(Constants.ObjectNamePropertyName, resolved);
|
|
46821
46996
|
}
|
|
46822
|
-
}),
|
|
46997
|
+
}), import_rxjs30.catchError(() => import_rxjs30.of(null)));
|
|
46823
46998
|
}
|
|
46824
46999
|
_fetchLookupForField(field, savedId) {
|
|
46825
47000
|
const errorHandler = new PropertyErrorHandler(field.id, StringExtensions.empty, StringExtensions.empty);
|
|
46826
47001
|
const lookupParameters = LookupPropertyHelper.buildFieldLookupParameters(this.activityConfiguration, field, errorHandler, this.activityContext, false);
|
|
46827
47002
|
const builder = new DynamicDataSourceBuilder(this._serviceProvider, lookupParameters, this.activityConfiguration.instanceParameters);
|
|
46828
|
-
return builder.resolveById(savedId).pipe(
|
|
47003
|
+
return builder.resolveById(savedId).pipe(import_rxjs30.take(1), import_rxjs30.tap((resolved) => {
|
|
46829
47004
|
if (resolved && resolved.length > 0) {
|
|
46830
47005
|
this.activityConfiguration.cachedLookupValues.set(field.id, resolved);
|
|
46831
47006
|
}
|
|
46832
|
-
}),
|
|
47007
|
+
}), import_rxjs30.catchError(() => import_rxjs30.of(null)));
|
|
46833
47008
|
}
|
|
46834
47009
|
_createBrowserFieldLookup(designProperty, field, fieldObjectValue = null) {
|
|
46835
47010
|
if (DesignTimeConfigurationFieldExtensions.shouldUseBrowserWidget(field)) {
|
|
@@ -46945,7 +47120,7 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46945
47120
|
this.activityState.addFieldObject(fieldObject);
|
|
46946
47121
|
}
|
|
46947
47122
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
46948
|
-
return
|
|
47123
|
+
return import_rxjs30.of(undefined);
|
|
46949
47124
|
}
|
|
46950
47125
|
_switchRetainsFieldObject(field) {
|
|
46951
47126
|
if (field.resolvedUrl != null && field.urlValidationStatus === "valid") {
|
|
@@ -46964,6 +47139,14 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
46964
47139
|
ActivityStateExtensions.removeFieldObjectModelItem(this.activityState, field.id);
|
|
46965
47140
|
this.activityState.addFieldObject(new FieldObject(field.id, new WorkflowValue(resolvedValue, true), "fieldLiteral"));
|
|
46966
47141
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
47142
|
+
const details = this.activityConfiguration.customFieldsRequestDetails;
|
|
47143
|
+
if (details?.parameterValues.has(field.id) === true) {
|
|
47144
|
+
this.activityConfiguration.customFieldsRequestDetails = null;
|
|
47145
|
+
}
|
|
47146
|
+
}
|
|
47147
|
+
clearResolvedValue(field) {
|
|
47148
|
+
ActivityStateExtensions.removeFieldObjectModelItem(this.activityState, field.id);
|
|
47149
|
+
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
46967
47150
|
}
|
|
46968
47151
|
_setObjectNameVisibilityOnInit() {
|
|
46969
47152
|
this.objectName.isRequired = true;
|
|
@@ -47145,41 +47328,41 @@ var ConnectorActivityBaseViewModel = class _ConnectorActivityBaseViewModel {
|
|
|
47145
47328
|
if (StringExtensions.isNullOrEmpty(connectionId)) {
|
|
47146
47329
|
throw new InvalidOperationException("Cannot refresh type of activity with null ConnectionId.");
|
|
47147
47330
|
}
|
|
47148
|
-
return this._refreshJitType(connectionId).pipe(
|
|
47331
|
+
return this._refreshJitType(connectionId).pipe(import_rxjs30.switchMap((refreshedType) => this._refreshViewModelWithJitTypes([refreshedType]).pipe(import_rxjs30.switchMap(() => {
|
|
47149
47332
|
ActivityConfigurationExtensions.getFieldContainer(this.activityConfiguration).jitTypeNeedsRefresh = false;
|
|
47150
47333
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
47151
|
-
return
|
|
47334
|
+
return import_rxjs30.of(undefined);
|
|
47152
47335
|
}))));
|
|
47153
47336
|
}
|
|
47154
47337
|
refreshCustomTypes(refreshCustomTypesOptions) {
|
|
47155
47338
|
const jitFields = ActivityConfigurationExtensions.getFieldContainer(this.activityConfiguration).getAllConfigurationFields().filter((x) => x.isJitField);
|
|
47156
47339
|
const newTypes = refreshCustomTypesOptions.customTypeSubstitutions.flatMap((x) => x.newAssembly.getTypes());
|
|
47157
47340
|
if (!jitFields.some((f) => newTypes.some((t) => DesignTimeConfigurationFieldExtensions.isCompatibleWithType(f, t)))) {
|
|
47158
|
-
return
|
|
47341
|
+
return import_rxjs30.of(new RefreshCustomTypesResult(false));
|
|
47159
47342
|
}
|
|
47160
|
-
return this._refreshViewModelWithJitTypes(newTypes).pipe(
|
|
47343
|
+
return this._refreshViewModelWithJitTypes(newTypes).pipe(import_rxjs30.switchMap(() => import_rxjs30.of(new RefreshCustomTypesResult(true))));
|
|
47161
47344
|
}
|
|
47162
47345
|
_refreshViewModelWithJitTypes(newTypes) {
|
|
47163
47346
|
const connectionId = this.activityState.connectionId;
|
|
47164
47347
|
if (StringExtensions.isNullOrEmpty(connectionId)) {
|
|
47165
|
-
return
|
|
47348
|
+
return import_rxjs30.of(undefined);
|
|
47166
47349
|
}
|
|
47167
47350
|
const connectionResolverTask = this._resolveConnectionReference(this.activityState.connectionResourceId ?? connectionId);
|
|
47168
|
-
return connectionResolverTask.pipe(
|
|
47351
|
+
return connectionResolverTask.pipe(import_rxjs30.switchMap((connectionResource) => {
|
|
47169
47352
|
this.activityState.realConnectionId = connectionResource.resourceId;
|
|
47170
47353
|
this.activityState.connectionFolderKey = connectionResource.folderKey ?? null;
|
|
47171
|
-
return this._processViewModelRefresh(connectionResource.resourceId ?? connectionId, Constants.ConnectionIdPropertyName, new JitTypesProvider(this._designerCustomTypesService, newTypes), { alwaysRefresh: true }).pipe(
|
|
47354
|
+
return this._processViewModelRefresh(connectionResource.resourceId ?? connectionId, Constants.ConnectionIdPropertyName, new JitTypesProvider(this._designerCustomTypesService, newTypes), { alwaysRefresh: true }).pipe(import_rxjs30.switchMap(() => {
|
|
47172
47355
|
ActivityConfigurationExtensions.getFieldContainer(this.activityConfiguration).jitTypeNeedsRefresh = false;
|
|
47173
47356
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
47174
47357
|
this.jitTypeRefreshLabel.isVisible = false;
|
|
47175
|
-
return
|
|
47358
|
+
return import_rxjs30.of(undefined);
|
|
47176
47359
|
}));
|
|
47177
47360
|
}));
|
|
47178
47361
|
}
|
|
47179
47362
|
_loadFeatureFlags(workflowDesignApiServices) {
|
|
47180
|
-
return this._featureFlagService.getFeatureFlags(workflowDesignApiServices.getHostName()).pipe(
|
|
47363
|
+
return this._featureFlagService.getFeatureFlags(workflowDesignApiServices.getHostName()).pipe(import_rxjs30.switchMap((featureFlags) => {
|
|
47181
47364
|
this._featureFlags = featureFlags ?? /* @__PURE__ */ new Map;
|
|
47182
|
-
return
|
|
47365
|
+
return import_rxjs30.of(undefined);
|
|
47183
47366
|
}));
|
|
47184
47367
|
}
|
|
47185
47368
|
isFeatureEnabled(key, defaultValue = false) {
|
|
@@ -47214,16 +47397,16 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47214
47397
|
return super.activityConfiguration;
|
|
47215
47398
|
}
|
|
47216
47399
|
onAfterInitialize(isFromOtherSWConsumer = false) {
|
|
47217
|
-
return super.onAfterInitialize().pipe(
|
|
47400
|
+
return super.onAfterInitialize().pipe(import_rxjs27.switchMap((processed) => {
|
|
47218
47401
|
if (!processed) {
|
|
47219
|
-
return
|
|
47402
|
+
return import_rxjs27.of(false);
|
|
47220
47403
|
}
|
|
47221
47404
|
const connectionId = this.activityState.connectionId;
|
|
47222
47405
|
if (this.activityConfiguration.instanceParameters.connectorKey !== Constants.HTTPConnectorKey || !isFromOtherSWConsumer || !connectionId || connectionId === Constants.ImplicitConnectionId) {
|
|
47223
|
-
return
|
|
47406
|
+
return import_rxjs27.of(processed);
|
|
47224
47407
|
}
|
|
47225
|
-
return this._httpPreviewHelperFn.fetchAndRender(connectionId).pipe(
|
|
47226
|
-
}),
|
|
47408
|
+
return this._httpPreviewHelperFn.fetchAndRender(connectionId).pipe(import_rxjs27.map(() => true));
|
|
47409
|
+
}), import_rxjs27.map(() => true));
|
|
47227
47410
|
}
|
|
47228
47411
|
get validationErrors() {
|
|
47229
47412
|
const errors = super.validationErrors;
|
|
@@ -47250,10 +47433,10 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47250
47433
|
update(propertyName, value) {
|
|
47251
47434
|
if (this._retryProperties?.owns(propertyName)) {
|
|
47252
47435
|
this.activityState.retry = this._retryProperties.applyUpdate(propertyName, value, this.activityState.retry);
|
|
47253
|
-
return
|
|
47436
|
+
return import_rxjs27.of({});
|
|
47254
47437
|
}
|
|
47255
47438
|
try {
|
|
47256
|
-
return super._updateInternal(propertyName, value).pipe(
|
|
47439
|
+
return super._updateInternal(propertyName, value).pipe(import_rxjs27.switchMap((updatedProperty) => {
|
|
47257
47440
|
const connectionId = this.activityState.connectionResourceId;
|
|
47258
47441
|
if (value instanceof WorkflowValue && value.value instanceof FilterTree) {
|
|
47259
47442
|
DesignTimeActivityConfigurationExtensions.setFilterBuilder(this.activityConfiguration, propertyName, value.value, this.activityState);
|
|
@@ -47267,30 +47450,30 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47267
47450
|
}
|
|
47268
47451
|
if (alwaysRefresh || updatedProperty === Constants.ConnectionIdPropertyName) {
|
|
47269
47452
|
if (StringExtensions.isNullOrEmpty(connectionId)) {
|
|
47270
|
-
return
|
|
47453
|
+
return import_rxjs27.of({});
|
|
47271
47454
|
}
|
|
47272
47455
|
const skipActionsApply = this.activityConfiguration.fieldsContainer.inputMode === "jitObject";
|
|
47273
|
-
return this._resolveConnectionReference(connectionId).pipe(
|
|
47456
|
+
return this._resolveConnectionReference(connectionId).pipe(import_rxjs27.switchMap((connectionResource) => {
|
|
47274
47457
|
this.activityState.realConnectionId = connectionResource.resourceId;
|
|
47275
47458
|
this.activityState.connectionFolderKey = connectionResource.folderKey ?? null;
|
|
47276
47459
|
return super._processViewModelRefresh(connectionResource.resourceId ?? connectionId, propertyName, new JitTypesProvider(super._designerCustomTypesService), {
|
|
47277
47460
|
alwaysRefresh,
|
|
47278
47461
|
skipActionsApply
|
|
47279
|
-
}).pipe(
|
|
47462
|
+
}).pipe(import_rxjs27.switchMap(() => import_rxjs27.of({})));
|
|
47280
47463
|
}));
|
|
47281
47464
|
}
|
|
47282
|
-
return
|
|
47283
|
-
}),
|
|
47465
|
+
return import_rxjs27.of({});
|
|
47466
|
+
}), import_rxjs27.catchError((ex) => {
|
|
47284
47467
|
if (!(ex instanceof Error)) {
|
|
47285
|
-
return
|
|
47468
|
+
return import_rxjs27.throwError(() => ex);
|
|
47286
47469
|
}
|
|
47287
47470
|
if (!(ex instanceof DapException) || !ex.shouldRenderOnCanvas()) {
|
|
47288
47471
|
ExceptionExtensions.logException(ex);
|
|
47289
47472
|
this._telemetryService.trackEvent(TelemetryHelper.getViewModelErrorEvent(ex, 2102, propertyName, value, this.activityConfiguration, "update"));
|
|
47290
|
-
return
|
|
47473
|
+
return import_rxjs27.throwError(() => ex);
|
|
47291
47474
|
}
|
|
47292
47475
|
super._setBreakingChangeLabel(ex, propertyName);
|
|
47293
|
-
return
|
|
47476
|
+
return import_rxjs27.of({});
|
|
47294
47477
|
}));
|
|
47295
47478
|
} catch (ex) {
|
|
47296
47479
|
if (!(ex instanceof Error)) {
|
|
@@ -47303,7 +47486,7 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47303
47486
|
}
|
|
47304
47487
|
super._setBreakingChangeLabel(ex, propertyName);
|
|
47305
47488
|
}
|
|
47306
|
-
return
|
|
47489
|
+
return import_rxjs27.of({});
|
|
47307
47490
|
}
|
|
47308
47491
|
getAllProperties(excludeAdditionalProperties = false) {
|
|
47309
47492
|
return [
|
|
@@ -47317,9 +47500,9 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47317
47500
|
}
|
|
47318
47501
|
_onConnectionResolved(realConnectionId) {
|
|
47319
47502
|
if (!realConnectionId) {
|
|
47320
|
-
return
|
|
47503
|
+
return import_rxjs27.of(undefined);
|
|
47321
47504
|
}
|
|
47322
|
-
return this._httpPreviewHelperFn.fetchAndRender(realConnectionId).pipe(
|
|
47505
|
+
return this._httpPreviewHelperFn.fetchAndRender(realConnectionId).pipe(import_rxjs27.catchError(() => import_rxjs27.of(undefined)));
|
|
47323
47506
|
}
|
|
47324
47507
|
_getDynamicDesignProperties(excludeAdditionalProperties = false, excludeErrorMessageProperties = false) {
|
|
47325
47508
|
let resultProperties = this._mainCanvasProperties;
|
|
@@ -47377,32 +47560,32 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47377
47560
|
status: "Saving properties"
|
|
47378
47561
|
});
|
|
47379
47562
|
this._resetErrorLabels();
|
|
47380
|
-
let connectorDetailsTask =
|
|
47563
|
+
let connectorDetailsTask = import_rxjs27.of(null);
|
|
47381
47564
|
if (alwaysRefresh || !this._connectionWasProcessed) {
|
|
47382
47565
|
connectorDetailsTask = this._tryGetConnectorDetails(connectionId);
|
|
47383
47566
|
}
|
|
47384
|
-
return connectorDetailsTask.pipe(
|
|
47567
|
+
return connectorDetailsTask.pipe(import_rxjs27.switchMap((connectorDetails) => {
|
|
47385
47568
|
if (connectorDetails == null) {
|
|
47386
|
-
return
|
|
47569
|
+
return import_rxjs27.of(undefined);
|
|
47387
47570
|
}
|
|
47388
47571
|
const shouldRefreshMetadata = alwaysRefresh || this._fieldsService.shouldRefreshFields(this.activityConfiguration, connectorDetails, this._uiLanguage);
|
|
47389
47572
|
if (!shouldRefreshMetadata) {
|
|
47390
|
-
let result =
|
|
47573
|
+
let result = import_rxjs27.of(undefined);
|
|
47391
47574
|
if (!this._connectionWasProcessed) {
|
|
47392
47575
|
result = this._refreshFields(connectionId, shouldRefreshMetadata, null, jitTypesProvider);
|
|
47393
47576
|
}
|
|
47394
47577
|
return result;
|
|
47395
47578
|
}
|
|
47396
|
-
return this._activityConfigurationService.updateActivityConfiguration(this.activityConfiguration, connectionId, propertyName === Constants.ObjectNamePropertyName, true, this.activityContext).pipe(
|
|
47579
|
+
return this._activityConfigurationService.updateActivityConfiguration(this.activityConfiguration, connectionId, propertyName === Constants.ObjectNamePropertyName, true, this.activityContext).pipe(import_rxjs27.switchMap(() => {
|
|
47397
47580
|
const telemetryOperation = DesignTimeActivityConfigurationExtensions.createTelemetryOperation(this.activityConfiguration, null, "GetConnectorObject");
|
|
47398
|
-
return this._metadataService.getConnectorObject(this.activityConfiguration, connectionId, telemetryOperation, this.activityContext).pipe(
|
|
47581
|
+
return this._metadataService.getConnectorObject(this.activityConfiguration, connectionId, telemetryOperation, this.activityContext).pipe(import_rxjs27.switchMap((connectorObject) => {
|
|
47399
47582
|
this._connectorObject = connectorObject;
|
|
47400
47583
|
return this._refreshFields(connectionId, shouldRefreshMetadata, this._recoverCustomFields(propertyName), jitTypesProvider);
|
|
47401
47584
|
}));
|
|
47402
47585
|
}));
|
|
47403
|
-
}),
|
|
47586
|
+
}), import_rxjs27.take(1), import_rxjs27.catchError((error46) => {
|
|
47404
47587
|
if (propagateErrors) {
|
|
47405
|
-
return
|
|
47588
|
+
return import_rxjs27.throwError(() => error46);
|
|
47406
47589
|
}
|
|
47407
47590
|
if (sessionId != null) {
|
|
47408
47591
|
this._busyService.end({
|
|
@@ -47414,8 +47597,8 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47414
47597
|
if (error46 instanceof DapException && error46.shouldRenderOnCanvas()) {
|
|
47415
47598
|
this._setBreakingChangeLabel(error46);
|
|
47416
47599
|
}
|
|
47417
|
-
return
|
|
47418
|
-
}),
|
|
47600
|
+
return import_rxjs27.of(undefined);
|
|
47601
|
+
}), import_rxjs27.finalize(() => {
|
|
47419
47602
|
if (sessionId != null) {
|
|
47420
47603
|
this._busyService.end({
|
|
47421
47604
|
idRef: this.id,
|
|
@@ -47431,9 +47614,9 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47431
47614
|
const oldFieldsInputMode = this.activityConfiguration.fieldsContainer.inputMode ?? this.activityConfiguration.savedInputMode ?? null;
|
|
47432
47615
|
let configurationFields = existingConfigurationFields;
|
|
47433
47616
|
let existingValues = this.activityState.fieldObjects ?? [];
|
|
47434
|
-
let refreshMetadataTask =
|
|
47617
|
+
let refreshMetadataTask = import_rxjs27.of(undefined);
|
|
47435
47618
|
if (shouldRefreshMetadata) {
|
|
47436
|
-
refreshMetadataTask = this._fieldsService.getFields(connectionId, this.activityConfiguration, customFieldsParameters, jitTypesProvider, this.activityContext, this.hostCapabilities.populateOutputFields).pipe(
|
|
47619
|
+
refreshMetadataTask = this._fieldsService.getFields(connectionId, this.activityConfiguration, customFieldsParameters, jitTypesProvider, this.activityContext, this.hostCapabilities.populateOutputFields).pipe(import_rxjs27.switchMap((newFieldsContainer) => {
|
|
47437
47620
|
if (newFieldsContainer.jitInputField != null) {
|
|
47438
47621
|
newFieldsContainer.inputMode = oldFieldsInputMode;
|
|
47439
47622
|
}
|
|
@@ -47507,10 +47690,10 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47507
47690
|
}
|
|
47508
47691
|
this._clearDataMappingConfiguration(jitField.clrType, this.activityConfiguration.operation?.toString() ?? StringExtensions.empty);
|
|
47509
47692
|
}
|
|
47510
|
-
return
|
|
47693
|
+
return import_rxjs27.of(undefined);
|
|
47511
47694
|
}));
|
|
47512
47695
|
}
|
|
47513
|
-
return refreshMetadataTask.pipe(
|
|
47696
|
+
return refreshMetadataTask.pipe(import_rxjs27.switchMap(() => this._prebuildResolvedCaches(configurationFields, existingValues)), import_rxjs27.switchMap(() => {
|
|
47514
47697
|
this._clearProperties();
|
|
47515
47698
|
this._initializeDesignProperties(configurationFields, existingValues, true);
|
|
47516
47699
|
customFieldsParameters?.errorHandler?.setDesignPropertiesOverload(this._labelCanvasProperties, this.getAllProperties());
|
|
@@ -47643,7 +47826,7 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47643
47826
|
if (this._isImplicitConnection) {
|
|
47644
47827
|
this._renderPreviewParameters();
|
|
47645
47828
|
}
|
|
47646
|
-
return
|
|
47829
|
+
return import_rxjs27.of(undefined);
|
|
47647
47830
|
}
|
|
47648
47831
|
_getMatchingFieldObjects(configurationFields) {
|
|
47649
47832
|
return this.activityState.fieldObjects?.filter((x) => configurationFields.some((f) => f.id === x.name)) ?? [];
|
|
@@ -47681,17 +47864,17 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47681
47864
|
}
|
|
47682
47865
|
getAddPropertyViewModels() {
|
|
47683
47866
|
this._managedPropertyRowsTreeRoot.sortTree();
|
|
47684
|
-
return
|
|
47867
|
+
return import_rxjs27.of(this._managedPropertyRowsTreeRoot.children);
|
|
47685
47868
|
}
|
|
47686
47869
|
getDynamicProperties() {
|
|
47687
|
-
return
|
|
47870
|
+
return import_rxjs27.of(this._additionalCanvasProperties);
|
|
47688
47871
|
}
|
|
47689
47872
|
getAddPropertyViewModel(addPropertyViewModelKey) {
|
|
47690
47873
|
const firstDescendant = this._managedPropertyRowsTreeRoot.getDescendants().find((x) => x.id === addPropertyViewModelKey);
|
|
47691
47874
|
if (firstDescendant == null) {
|
|
47692
47875
|
throw new InvalidOperationException("AddPropertyViewModel not found");
|
|
47693
47876
|
}
|
|
47694
|
-
return
|
|
47877
|
+
return import_rxjs27.of(firstDescendant);
|
|
47695
47878
|
}
|
|
47696
47879
|
setVisibleDynamicProperties(visiblePropertiesViewModelsIds) {
|
|
47697
47880
|
const managedProperties = this._managedPropertyRowsTreeRoot.getDescendants();
|
|
@@ -47708,7 +47891,7 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47708
47891
|
const telemetryInfo = _ConnectorActivityViewModel._getManagedPropertiesTelemetryInfoFromFields(newlySelectedRows, newlyDeselectedRows);
|
|
47709
47892
|
this._telemetryService.trackEvent(DesignTimeActivityConfigurationExtensions.createTelemetryEvent(this.activityConfiguration, "Managed Properties", telemetryInfo, null, "SetVisibleDynamicProperties"));
|
|
47710
47893
|
this._initializeInputModeSwitchAction();
|
|
47711
|
-
return
|
|
47894
|
+
return import_rxjs27.of(undefined);
|
|
47712
47895
|
}
|
|
47713
47896
|
removeDynamicProperties(visiblePropertiesViewModelsIds) {
|
|
47714
47897
|
const propertyToRemove = this._additionalCanvasProperties.find((x) => visiblePropertiesViewModelsIds === x.id);
|
|
@@ -47720,7 +47903,7 @@ var ConnectorActivityViewModel = class _ConnectorActivityViewModel extends Conne
|
|
|
47720
47903
|
this._disableDesignPropertyRow(additionalPropertyRow);
|
|
47721
47904
|
ActivityStateExtensions.saveConfiguration(this.activityState, this.activityConfiguration);
|
|
47722
47905
|
this._initializeInputModeSwitchAction();
|
|
47723
|
-
return
|
|
47906
|
+
return import_rxjs27.of(undefined);
|
|
47724
47907
|
}
|
|
47725
47908
|
supportsDynamicProperties() {
|
|
47726
47909
|
if (!this._activityConfigurationIsInitialized || StringExtensions.isNullOrEmpty(this.activityState.connectionId) || this.errorLabel.isVisible) {
|
|
@@ -47935,7 +48118,7 @@ var HttpActivityViewModel = class {
|
|
|
47935
48118
|
update(propertyName, value) {
|
|
47936
48119
|
const modelProperty = this._getCorrespondingModelProperty(propertyName);
|
|
47937
48120
|
modelProperty.value = value;
|
|
47938
|
-
return
|
|
48121
|
+
return import_rxjs37.of({});
|
|
47939
48122
|
}
|
|
47940
48123
|
};
|
|
47941
48124
|
var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel extends HttpActivityViewModel {
|
|
@@ -48030,10 +48213,10 @@ var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel exten
|
|
|
48030
48213
|
isWarning: false
|
|
48031
48214
|
});
|
|
48032
48215
|
}
|
|
48033
|
-
return
|
|
48216
|
+
return import_rxjs36.of(undefined);
|
|
48034
48217
|
}
|
|
48035
48218
|
update(propertyName, value) {
|
|
48036
|
-
let continuation =
|
|
48219
|
+
let continuation = import_rxjs36.of(undefined);
|
|
48037
48220
|
switch (propertyName) {
|
|
48038
48221
|
case Constants.ConnectionIdPropertyName: {
|
|
48039
48222
|
const oldConnectionId = this.activityState.connectionResourceId;
|
|
@@ -48041,7 +48224,7 @@ var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel exten
|
|
|
48041
48224
|
if (!StringExtensions.isNullOrWhiteSpace(oldConnectionId)) {
|
|
48042
48225
|
ActivityStateExtensions.setConnectionError(this.activityState);
|
|
48043
48226
|
}
|
|
48044
|
-
return
|
|
48227
|
+
return import_rxjs36.of({});
|
|
48045
48228
|
}
|
|
48046
48229
|
const newConnectionId = InArgumentExtensions.convertLiteralArgumentToStringValue(value);
|
|
48047
48230
|
if (oldConnectionId === newConnectionId && this._initialConnectionWasSet || newConnectionId == null) {
|
|
@@ -48051,15 +48234,15 @@ var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel exten
|
|
|
48051
48234
|
if (solutionResourcesService != null) {
|
|
48052
48235
|
this._connectionReferenceCacheService.invalidate(newConnectionId);
|
|
48053
48236
|
}
|
|
48054
|
-
continuation = (solutionResourcesService != null ? this._connectionReferenceCacheService.resolve(newConnectionId, solutionResourcesService) : SolutionResourceHelper.resolveConnectionId(newConnectionId, null)).pipe(
|
|
48237
|
+
continuation = (solutionResourcesService != null ? this._connectionReferenceCacheService.resolve(newConnectionId, solutionResourcesService) : SolutionResourceHelper.resolveConnectionId(newConnectionId, null)).pipe(import_rxjs36.switchMap((connectionResource) => {
|
|
48055
48238
|
this.activityState.realConnectionId = connectionResource.resourceId;
|
|
48056
48239
|
this.activityState.connectionFolderKey = connectionResource.folderKey ?? null;
|
|
48057
48240
|
const realConnectionId = connectionResource.resourceId ?? newConnectionId;
|
|
48058
|
-
return this._connectionService.checkConnection(realConnectionId, newConnectionId).pipe(
|
|
48241
|
+
return this._connectionService.checkConnection(realConnectionId, newConnectionId).pipe(import_rxjs36.switchMap((connectionStatus) => {
|
|
48059
48242
|
if (connectionStatus !== Constants.ConnectionEnabled) {
|
|
48060
48243
|
this.activityState.connectionId = realConnectionId;
|
|
48061
48244
|
this.activityState.connectionResourceId = newConnectionId;
|
|
48062
|
-
return
|
|
48245
|
+
return import_rxjs36.of(StringExtensions.empty);
|
|
48063
48246
|
}
|
|
48064
48247
|
const sessionId = getUuid();
|
|
48065
48248
|
this._serviceProvider.getRequiredService("IBusyService").begin({
|
|
@@ -48071,10 +48254,10 @@ var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel exten
|
|
|
48071
48254
|
this.activityState.connectionId = realConnectionId;
|
|
48072
48255
|
this.activityState.connectionResourceId = newConnectionId;
|
|
48073
48256
|
this._initialConnectionWasSet = true;
|
|
48074
|
-
return this._processNewFields().pipe(
|
|
48257
|
+
return this._processNewFields().pipe(import_rxjs36.switchMap(() => this._httpPreviewHelperFn.fetchAndRender(realConnectionId).pipe(import_rxjs36.switchMap(() => {
|
|
48075
48258
|
this._actionsService.refreshActions(this._staticProperties);
|
|
48076
|
-
return
|
|
48077
|
-
}))),
|
|
48259
|
+
return import_rxjs36.of(undefined);
|
|
48260
|
+
}))), import_rxjs36.finalize(() => {
|
|
48078
48261
|
this._serviceProvider.getRequiredService("IBusyService").end({
|
|
48079
48262
|
idRef: this.id,
|
|
48080
48263
|
sessionId
|
|
@@ -48088,22 +48271,22 @@ var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel exten
|
|
|
48088
48271
|
this.activityState.displayName = value?.toString() ?? StringExtensions.empty;
|
|
48089
48272
|
break;
|
|
48090
48273
|
default: {
|
|
48091
|
-
return super.update(propertyName, value).pipe(
|
|
48274
|
+
return super.update(propertyName, value).pipe(import_rxjs36.switchMap((updateViewModelResult) => {
|
|
48092
48275
|
this._actionsService.processFieldActions(propertyName, this._staticProperties);
|
|
48093
|
-
return
|
|
48276
|
+
return import_rxjs36.of(updateViewModelResult);
|
|
48094
48277
|
}));
|
|
48095
48278
|
}
|
|
48096
48279
|
}
|
|
48097
|
-
return continuation.pipe(
|
|
48280
|
+
return continuation.pipe(import_rxjs36.map(() => ({})));
|
|
48098
48281
|
}
|
|
48099
48282
|
getBrowsableProperties() {
|
|
48100
|
-
return
|
|
48283
|
+
return import_rxjs36.of(this._getAllReadOnlyProperties());
|
|
48101
48284
|
}
|
|
48102
48285
|
getProperties() {
|
|
48103
|
-
return
|
|
48286
|
+
return import_rxjs36.of(this._getAllReadOnlyProperties());
|
|
48104
48287
|
}
|
|
48105
48288
|
getPropertyByName(name) {
|
|
48106
|
-
return
|
|
48289
|
+
return import_rxjs36.of(this._getAllReadOnlyProperties().find((p) => p.name === name) ?? null);
|
|
48107
48290
|
}
|
|
48108
48291
|
getAllProperties() {
|
|
48109
48292
|
return this._staticProperties;
|
|
@@ -48168,7 +48351,7 @@ var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel exten
|
|
|
48168
48351
|
_processNewFields() {
|
|
48169
48352
|
const existingConfigurationFields = this.activityConfiguration.fieldsContainer.getAllConfigurationFields();
|
|
48170
48353
|
let fieldObjects = this.activityState.fieldObjects ?? [];
|
|
48171
|
-
return this._fieldsService.getFieldsOverload(this.activityConfiguration).pipe(
|
|
48354
|
+
return this._fieldsService.getFieldsOverload(this.activityConfiguration).pipe(import_rxjs36.switchMap((newConfigurationFieldsContainer) => {
|
|
48172
48355
|
const newConfigurationFields = newConfigurationFieldsContainer.getAllConfigurationFields();
|
|
48173
48356
|
if (existingConfigurationFields.length > 0) {
|
|
48174
48357
|
fieldObjects = this._fieldsService.applyFieldsMigration(fieldObjects, existingConfigurationFields, newConfigurationFields, false);
|
|
@@ -48190,7 +48373,7 @@ var ConnectorHttpActivityViewModel = class _ConnectorHttpActivityViewModel exten
|
|
|
48190
48373
|
this._buildDesignProperties(newConfigurationFields, newFieldObjectsCollection);
|
|
48191
48374
|
this._httpPreviewHelperFn.render(this.activityConfiguration.requestPreviewParameters);
|
|
48192
48375
|
this._actionsService.refreshActions(this._staticProperties);
|
|
48193
|
-
return
|
|
48376
|
+
return import_rxjs36.of(undefined);
|
|
48194
48377
|
}));
|
|
48195
48378
|
}
|
|
48196
48379
|
_buildDesignProperties(fields, fieldObjects) {
|
|
@@ -48368,7 +48551,6 @@ var JmesHelper = class _JmesHelper {
|
|
|
48368
48551
|
static _buildJmesPathExpression(fieldName, filterOperator, value, filterCriterion, translationConfiguration) {
|
|
48369
48552
|
const isArray2 = FieldTypeHelper.isArrayType(fieldName);
|
|
48370
48553
|
const type = filterCriterion.clrType;
|
|
48371
|
-
const isNumericValue = FilterHelper.supportsNumericFilter(type) || FilterHelper.isNumericFieldType(filterCriterion.type);
|
|
48372
48554
|
switch (filterOperator) {
|
|
48373
48555
|
case "IsEmpty":
|
|
48374
48556
|
return isArray2 ? _JmesHelper.composeArrayJmesPathExpression(fieldName, "Equals", value?.value, type) : _JmesHelper.isEmpty(fieldName);
|
|
@@ -48380,10 +48562,10 @@ var JmesHelper = class _JmesHelper {
|
|
|
48380
48562
|
return isArray2 ? _JmesHelper.composeArrayJmesPathExpression(fieldName, "NotEquals", true, type) : _JmesHelper.isNot(fieldName, true);
|
|
48381
48563
|
case "In":
|
|
48382
48564
|
case "IsOneOf":
|
|
48383
|
-
return
|
|
48565
|
+
return _JmesHelper._composeInExpression(fieldName, value, filterCriterion, false, translationConfiguration);
|
|
48384
48566
|
case "NotIn":
|
|
48385
48567
|
case "IsNotOneOf":
|
|
48386
|
-
return
|
|
48568
|
+
return _JmesHelper._composeInExpression(fieldName, value, filterCriterion, true, translationConfiguration);
|
|
48387
48569
|
default:
|
|
48388
48570
|
return isArray2 ? _JmesHelper.composeArrayJmesPathExpression(fieldName, filterOperator, value?.value, type, filterCriterion.mask) : _JmesHelper.composeJmesPathExpression(fieldName, filterOperator, value, type, filterCriterion.mask, translationConfiguration);
|
|
48389
48571
|
}
|
|
@@ -48434,6 +48616,39 @@ var JmesHelper = class _JmesHelper {
|
|
|
48434
48616
|
static isNotOneOf(field, valuesExpression) {
|
|
48435
48617
|
return `${_JmesHelper.functionMappings.get("NotContains")}(${valuesExpression}, ${field})`;
|
|
48436
48618
|
}
|
|
48619
|
+
static _composeInExpression(fieldName, value, filterCriterion, negate, translationConfiguration) {
|
|
48620
|
+
const delimiter = _JmesHelper._getMultiSelectDelimiter(fieldName, filterCriterion);
|
|
48621
|
+
if (delimiter != null && value?.isLiteral) {
|
|
48622
|
+
return _JmesHelper.delimitedIsOneOf(fieldName, delimiter, value, negate);
|
|
48623
|
+
}
|
|
48624
|
+
const isNumericValue = FilterHelper.supportsNumericFilter(filterCriterion.clrType) || FilterHelper.isNumericFieldType(filterCriterion.type);
|
|
48625
|
+
const collection = _JmesHelper._resolveInCollection(value, isNumericValue, translationConfiguration);
|
|
48626
|
+
if (FieldTypeHelper.isArrayType(fieldName)) {
|
|
48627
|
+
return _JmesHelper.composeArrayInExpression(fieldName, collection, negate);
|
|
48628
|
+
}
|
|
48629
|
+
return negate ? _JmesHelper.isNotOneOf(fieldName, collection) : _JmesHelper.isOneOf(fieldName, collection);
|
|
48630
|
+
}
|
|
48631
|
+
static _getMultiSelectDelimiter(fieldName, field) {
|
|
48632
|
+
const delimiter = field.design?.delimiter;
|
|
48633
|
+
if (FieldTypeHelper.isArrayType(fieldName) || field.type?.toLowerCase() !== "string" || StringExtensions.isNullOrEmpty(delimiter)) {
|
|
48634
|
+
return null;
|
|
48635
|
+
}
|
|
48636
|
+
return delimiter ?? null;
|
|
48637
|
+
}
|
|
48638
|
+
static delimitedIsOneOf(field, delimiter, value, negate) {
|
|
48639
|
+
const separator = "'" + delimiter.replaceAll("'", String.raw`\'`) + "'";
|
|
48640
|
+
const contains = _JmesHelper.functionMappings.get("Contains");
|
|
48641
|
+
const wrappedField = `join('', [${separator}, ${field} || '', ${separator}])`;
|
|
48642
|
+
const matches = FilterHelper.resolveValuesCollection(value).map((v) => {
|
|
48643
|
+
const wrappedValue = JSON.stringify(delimiter + String(v) + delimiter);
|
|
48644
|
+
return `${contains}(${wrappedField}, \`${wrappedValue}\`)`;
|
|
48645
|
+
});
|
|
48646
|
+
const anyMatch = matches.join(" || ");
|
|
48647
|
+
if (negate) {
|
|
48648
|
+
return `!(${anyMatch})`;
|
|
48649
|
+
}
|
|
48650
|
+
return matches.length > 1 ? `(${anyMatch})` : anyMatch;
|
|
48651
|
+
}
|
|
48437
48652
|
static _resolveInCollection(value, isNumeric, translationConfiguration) {
|
|
48438
48653
|
if (value?.isLiteral === false && value.value != null) {
|
|
48439
48654
|
const wrapped = addExpressionWrapper(value.value.toString(), translationConfiguration);
|
|
@@ -48525,7 +48740,7 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48525
48740
|
}
|
|
48526
48741
|
update(propertyName, value) {
|
|
48527
48742
|
try {
|
|
48528
|
-
return super._updateInternal(propertyName, value).pipe(
|
|
48743
|
+
return super._updateInternal(propertyName, value).pipe(import_rxjs38.switchMap((updatedProperty) => {
|
|
48529
48744
|
const connectionId = this.activityState.connectionResourceId;
|
|
48530
48745
|
const alwaysRefresh = updatedProperty === Constants.ObjectNamePropertyName;
|
|
48531
48746
|
if (updatedProperty === Constants.ConnectionIdPropertyName) {
|
|
@@ -48533,31 +48748,31 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48533
48748
|
}
|
|
48534
48749
|
if (alwaysRefresh || updatedProperty === Constants.ConnectionIdPropertyName && !this._connectionWasProcessed) {
|
|
48535
48750
|
if (StringExtensions.isNullOrEmpty(connectionId)) {
|
|
48536
|
-
return
|
|
48751
|
+
return import_rxjs38.of({});
|
|
48537
48752
|
}
|
|
48538
|
-
return this._resolveConnectionReference(connectionId).pipe(
|
|
48753
|
+
return this._resolveConnectionReference(connectionId).pipe(import_rxjs38.switchMap((connectionResource) => {
|
|
48539
48754
|
this.activityState.realConnectionId = connectionResource.resourceId;
|
|
48540
48755
|
this.activityState.connectionFolderKey = connectionResource.folderKey ?? null;
|
|
48541
|
-
return this._processViewModelRefresh(connectionResource.resourceId ?? connectionId, propertyName, new JitTypesProvider(super._designerCustomTypesService), { alwaysRefresh }).pipe(
|
|
48756
|
+
return this._processViewModelRefresh(connectionResource.resourceId ?? connectionId, propertyName, new JitTypesProvider(super._designerCustomTypesService), { alwaysRefresh }).pipe(import_rxjs38.switchMap(() => import_rxjs38.of({})));
|
|
48542
48757
|
}));
|
|
48543
48758
|
}
|
|
48544
48759
|
if (propertyName === Constants.FilterPropertyName) {
|
|
48545
48760
|
const filterTree = value?.value;
|
|
48546
48761
|
this._setFilterValue(filterTree);
|
|
48547
|
-
return
|
|
48762
|
+
return import_rxjs38.of({});
|
|
48548
48763
|
}
|
|
48549
|
-
return
|
|
48550
|
-
}),
|
|
48764
|
+
return import_rxjs38.of({});
|
|
48765
|
+
}), import_rxjs38.catchError((ex) => {
|
|
48551
48766
|
if (!(ex instanceof Error)) {
|
|
48552
|
-
return
|
|
48767
|
+
return import_rxjs38.throwError(() => ex);
|
|
48553
48768
|
}
|
|
48554
48769
|
if (!(ex instanceof DapException) || !ex.shouldRenderOnCanvas()) {
|
|
48555
48770
|
ExceptionExtensions.logException(ex);
|
|
48556
48771
|
this._telemetryService.trackEvent(TelemetryHelper.getViewModelErrorEvent(ex, 2102, propertyName, value, this.activityConfiguration, "update"));
|
|
48557
|
-
return
|
|
48772
|
+
return import_rxjs38.throwError(() => ex);
|
|
48558
48773
|
}
|
|
48559
48774
|
super._setBreakingChangeLabel(ex, propertyName);
|
|
48560
|
-
return
|
|
48775
|
+
return import_rxjs38.of({});
|
|
48561
48776
|
}));
|
|
48562
48777
|
} catch (ex) {
|
|
48563
48778
|
if (!(ex instanceof Error)) {
|
|
@@ -48570,7 +48785,7 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48570
48785
|
}
|
|
48571
48786
|
super._setBreakingChangeLabel(ex, propertyName);
|
|
48572
48787
|
}
|
|
48573
|
-
return
|
|
48788
|
+
return import_rxjs38.of({});
|
|
48574
48789
|
}
|
|
48575
48790
|
_getDynamicDesignProperties(_excludeAdditionalProperties = false, _excludeErrorMessageProperties = false) {
|
|
48576
48791
|
let resultProperties = this._mainCanvasProperties;
|
|
@@ -48599,7 +48814,7 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48599
48814
|
return [...this._staticProperties, ...this._getDynamicDesignProperties(excludeAdditionalProperties)];
|
|
48600
48815
|
}
|
|
48601
48816
|
_processViewModelRefresh(connectionId, propertyName, jitTypesProvider, options) {
|
|
48602
|
-
return super._processViewModelRefresh(connectionId, propertyName, jitTypesProvider, options).pipe(
|
|
48817
|
+
return super._processViewModelRefresh(connectionId, propertyName, jitTypesProvider, options).pipe(import_rxjs38.tap(() => this._buildFilterWidget()));
|
|
48603
48818
|
}
|
|
48604
48819
|
_buildFilterWidget() {
|
|
48605
48820
|
if (this.activityConfiguration.obsoleteEventFields) {
|
|
@@ -48660,23 +48875,24 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48660
48875
|
sessionId,
|
|
48661
48876
|
status: "Saving properties"
|
|
48662
48877
|
});
|
|
48663
|
-
return this._tryGetConnectorDetails(connectionId).pipe(
|
|
48878
|
+
return this._tryGetConnectorDetails(connectionId).pipe(import_rxjs38.switchMap((connectorDetails) => {
|
|
48664
48879
|
if (connectorDetails == null) {
|
|
48665
|
-
return
|
|
48880
|
+
return import_rxjs38.of(undefined);
|
|
48666
48881
|
}
|
|
48667
48882
|
const shouldRefreshMetadata = alwaysRefresh || this._fieldsService.shouldRefreshFields(this.activityConfiguration, connectorDetails, this._uiLanguage);
|
|
48668
48883
|
if (!shouldRefreshMetadata && this._connectionWasProcessed) {
|
|
48669
|
-
return
|
|
48884
|
+
return import_rxjs38.of(undefined);
|
|
48670
48885
|
}
|
|
48671
48886
|
const isEssentialOnly = this.activityConfiguration.isEssentialOnly;
|
|
48672
48887
|
const initialCustomFieldsParameters = isEssentialOnly ? null : this._recoverCustomFields(propertyName);
|
|
48673
|
-
|
|
48888
|
+
const initialConfigurations$ = initialCustomFieldsParameters == null ? import_rxjs38.of(undefined) : this._fieldsService.resolveEventSolutionResourceConfigurations(initialCustomFieldsParameters);
|
|
48889
|
+
return initialConfigurations$.pipe(import_rxjs38.switchMap(() => this._activityConfigurationService.updateTriggerConfiguration(this.activityConfiguration, initialCustomFieldsParameters, connectionId)), import_rxjs38.switchMap(() => {
|
|
48674
48890
|
const customFieldsParameters = isEssentialOnly ? this._recoverCustomFields(propertyName) : initialCustomFieldsParameters;
|
|
48675
48891
|
return this._refreshFields(connectionId, shouldRefreshMetadata, customFieldsParameters, jitTypesProvider);
|
|
48676
48892
|
}));
|
|
48677
|
-
}),
|
|
48893
|
+
}), import_rxjs38.take(1), import_rxjs38.catchError((error46) => {
|
|
48678
48894
|
if (propagateErrors) {
|
|
48679
|
-
return
|
|
48895
|
+
return import_rxjs38.throwError(() => error46);
|
|
48680
48896
|
}
|
|
48681
48897
|
if (sessionId != null) {
|
|
48682
48898
|
this._busyService.end({
|
|
@@ -48688,8 +48904,8 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48688
48904
|
if (error46 instanceof DapException && error46.shouldRenderOnCanvas()) {
|
|
48689
48905
|
this._setBreakingChangeLabel(error46);
|
|
48690
48906
|
}
|
|
48691
|
-
return
|
|
48692
|
-
}),
|
|
48907
|
+
return import_rxjs38.of(undefined);
|
|
48908
|
+
}), import_rxjs38.finalize(() => {
|
|
48693
48909
|
if (sessionId != null) {
|
|
48694
48910
|
this._busyService.end({
|
|
48695
48911
|
idRef: this.id,
|
|
@@ -48700,7 +48916,7 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48700
48916
|
}));
|
|
48701
48917
|
}
|
|
48702
48918
|
_refreshFields(connectionId, shouldRefreshMetadata, customFieldsParameters, jitTypesProvider) {
|
|
48703
|
-
return this._fieldsService.getEventFields(connectionId, this.activityConfiguration, customFieldsParameters, jitTypesProvider, this.hostCapabilities.populateOutputFields).pipe(
|
|
48919
|
+
return this._fieldsService.getEventFields(connectionId, this.activityConfiguration, customFieldsParameters, jitTypesProvider, this.hostCapabilities.populateOutputFields).pipe(import_rxjs38.switchMap((newFieldsContainer) => {
|
|
48704
48920
|
const filterValue = this.filter.value?.value ?? new FilterTree(0, 0, [], getUuid());
|
|
48705
48921
|
if (!this.activityConfiguration.hasStaticLeftOperandFilterBuilder && newFieldsContainer.eventFields.length > 0 && !this.activityConfiguration.isEssentialOnly) {
|
|
48706
48922
|
this.activityConfiguration.filterNeedsRefresh = this.activityConfiguration.filterNeedsRefresh || !this._fieldsService.checkFilterIsValid(filterValue, this.activityConfiguration.fieldsContainer.eventFields, newFieldsContainer.eventFields);
|
|
@@ -48753,7 +48969,7 @@ var ConnectorTriggerViewModel = class _ConnectorTriggerViewModel extends Connect
|
|
|
48753
48969
|
configurationFields = newFields;
|
|
48754
48970
|
}
|
|
48755
48971
|
this._clearProperties();
|
|
48756
|
-
return this._prebuildResolvedCaches(configurationFields, existingValues).pipe(
|
|
48972
|
+
return this._prebuildResolvedCaches(configurationFields, existingValues).pipe(import_rxjs38.switchMap(() => {
|
|
48757
48973
|
this._initializeDesignProperties(configurationFields, existingValues, true);
|
|
48758
48974
|
const filterConfigurationFields = this.activityConfiguration.fieldsContainer.eventFields.map((s2) => EventFieldExtensions.toConfigurationField(s2));
|
|
48759
48975
|
if (!this.activityConfiguration.hasStaticLeftOperandFilterBuilder) {
|
|
@@ -48839,7 +49055,7 @@ var UnifiedHttpActivityViewModel = class extends ConnectorActivityViewModel {
|
|
|
48839
49055
|
return this._processViewModelRefresh(Constants.ImplicitConnectionId, Constants.ObjectNamePropertyName, new JitTypesProvider(this._designerCustomTypesService, null), { alwaysRefresh: true });
|
|
48840
49056
|
}
|
|
48841
49057
|
this._processViewModelAfterAdd = true;
|
|
48842
|
-
return
|
|
49058
|
+
return import_rxjs39.of(undefined);
|
|
48843
49059
|
}
|
|
48844
49060
|
};
|
|
48845
49061
|
var ConnectorActivityFactory = class _ConnectorActivityFactory {
|
|
@@ -49133,7 +49349,7 @@ var ConnectorActivity = class _ConnectorActivity extends WorkflowActivityBase {
|
|
|
49133
49349
|
if (request.customValueOptions?.isCustomValue) {
|
|
49134
49350
|
const customProperty = this._viewModel.getAllProperties(false).find((p) => p.name === request.propertyName);
|
|
49135
49351
|
if (!customProperty) {
|
|
49136
|
-
return this.getPropertiesWithOutput()
|
|
49352
|
+
return this.getPropertiesWithOutput();
|
|
49137
49353
|
}
|
|
49138
49354
|
const workflowValue2 = new WorkflowValue(request.value ?? null, true);
|
|
49139
49355
|
return this._viewModel.update(request.propertyName, workflowValue2).pipe(import_rxjs6.switchMap(() => {
|
|
@@ -49518,11 +49734,11 @@ var ConnectorActivity = class _ConnectorActivity extends WorkflowActivityBase {
|
|
|
49518
49734
|
}
|
|
49519
49735
|
if (!_ConnectorActivity._isResolvableUrl(url2)) {
|
|
49520
49736
|
field.urlValidationError = this._translationService.instant("dap.UrlValidationInvalidFormat");
|
|
49521
|
-
return this._persistInvalidUrl(field, request.propertyName, url2);
|
|
49737
|
+
return this._persistInvalidUrl(viewModel, field, request.propertyName, url2);
|
|
49522
49738
|
}
|
|
49523
49739
|
const resolvePath = field.lookup?.urlResolution?.url;
|
|
49524
49740
|
if (!resolvePath) {
|
|
49525
|
-
return this._persistInvalidUrl(field, request.propertyName, url2);
|
|
49741
|
+
return this._persistInvalidUrl(viewModel, field, request.propertyName, url2);
|
|
49526
49742
|
}
|
|
49527
49743
|
field.urlValidationStatus = "validating";
|
|
49528
49744
|
const connectionId = viewModel.activityState.connectionId ?? Constants.ImplicitConnectionId;
|
|
@@ -49532,15 +49748,15 @@ var ConnectorActivity = class _ConnectorActivity extends WorkflowActivityBase {
|
|
|
49532
49748
|
return import_rxjs6.of(null);
|
|
49533
49749
|
}), import_rxjs6.switchMap((result) => {
|
|
49534
49750
|
if (result == null || StringExtensions.isNullOrWhiteSpace(result.resolvedValue) || result.resolvedValue === url2) {
|
|
49535
|
-
return this._persistInvalidUrl(field, request.propertyName, url2);
|
|
49751
|
+
return this._persistInvalidUrl(viewModel, field, request.propertyName, url2);
|
|
49536
49752
|
}
|
|
49537
49753
|
const resolvedValue = result.resolvedValue ?? null;
|
|
49538
49754
|
field.urlValidationStatus = "valid";
|
|
49539
49755
|
field.urlValidationError = null;
|
|
49540
49756
|
field.resolvedUrl = url2;
|
|
49541
49757
|
this._setUrlErrorLabel(field, null);
|
|
49758
|
+
viewModel.persistResolvedValue(field, resolvedValue);
|
|
49542
49759
|
return viewModel.update(request.propertyName, new WorkflowValue(resolvedValue, true)).pipe(import_rxjs6.switchMap(() => {
|
|
49543
|
-
viewModel.persistResolvedValue(field, resolvedValue);
|
|
49544
49760
|
viewModel.activityConfiguration.cachedPropertyMappings.set(request.propertyName, {
|
|
49545
49761
|
mappingType: "CustomValue",
|
|
49546
49762
|
displayName: url2
|
|
@@ -49566,20 +49782,19 @@ var ConnectorActivity = class _ConnectorActivity extends WorkflowActivityBase {
|
|
|
49566
49782
|
}
|
|
49567
49783
|
return parsed.protocol === "http:" || parsed.protocol === "https:";
|
|
49568
49784
|
}
|
|
49569
|
-
_persistInvalidUrl(field, propertyName, url2) {
|
|
49785
|
+
_persistInvalidUrl(viewModel, field, propertyName, url2) {
|
|
49570
49786
|
field.urlValidationStatus = "invalid";
|
|
49571
49787
|
field.urlValidationError ??= this._translationService.instant("dap.UrlValidationFailed");
|
|
49572
49788
|
field.resolvedUrl = url2;
|
|
49573
|
-
|
|
49574
|
-
|
|
49575
|
-
|
|
49576
|
-
|
|
49577
|
-
|
|
49578
|
-
|
|
49579
|
-
|
|
49580
|
-
|
|
49581
|
-
|
|
49582
|
-
}));
|
|
49789
|
+
viewModel.clearResolvedValue(field);
|
|
49790
|
+
viewModel.activityConfiguration.cachedPropertyMappings.set(propertyName, {
|
|
49791
|
+
mappingType: "CustomValue",
|
|
49792
|
+
displayName: url2
|
|
49793
|
+
});
|
|
49794
|
+
ActivityStateExtensions.saveConfiguration(viewModel.activityState, viewModel.activityConfiguration);
|
|
49795
|
+
this._setUrlErrorLabel(field, field.urlValidationError);
|
|
49796
|
+
this._syncUrlDisplay(field, propertyName);
|
|
49797
|
+
return this._rerenderProperties();
|
|
49583
49798
|
}
|
|
49584
49799
|
_setUrlErrorLabel(field, message) {
|
|
49585
49800
|
const labelName = DesignPropertyExtensions.getErrorLabelNameOverload(field.id);
|
|
@@ -49600,7 +49815,7 @@ var ConnectorActivity = class _ConnectorActivity extends WorkflowActivityBase {
|
|
|
49600
49815
|
}
|
|
49601
49816
|
}
|
|
49602
49817
|
_rerenderProperties() {
|
|
49603
|
-
return this.getPropertiesWithOutput().pipe(import_rxjs6.
|
|
49818
|
+
return this.getPropertiesWithOutput().pipe(import_rxjs6.tap((grid) => this._propertiesUpdatedSubject$.next(grid.properties)));
|
|
49604
49819
|
}
|
|
49605
49820
|
updateWidget(request) {
|
|
49606
49821
|
return this.getPropertiesWithOutput().pipe(import_rxjs6.map((propertiesGrid) => {
|
|
@@ -49940,6 +50155,9 @@ var ConnectorActivity = class _ConnectorActivity extends WorkflowActivityBase {
|
|
|
49940
50155
|
getActivityState() {
|
|
49941
50156
|
return this._viewModel.activityState;
|
|
49942
50157
|
}
|
|
50158
|
+
getFieldsContainer() {
|
|
50159
|
+
return ActivityConfigurationExtensions.getFieldContainer(this._viewModel.activityConfiguration);
|
|
50160
|
+
}
|
|
49943
50161
|
getCompiledFilter(propertyName) {
|
|
49944
50162
|
if (this._viewModel instanceof ConnectorTriggerViewModel) {
|
|
49945
50163
|
return buildTriggerFilterExpression(this._viewModel.activityConfiguration, this._viewModel.activityState, this._widgetTranslatorService.translationConfiguration, { rebuildUserFilter: false }) ?? StringExtensions.empty;
|
|
@@ -50647,6 +50865,114 @@ var ConnectorActivity = class _ConnectorActivity extends WorkflowActivityBase {
|
|
|
50647
50865
|
};
|
|
50648
50866
|
}
|
|
50649
50867
|
};
|
|
50868
|
+
function routeTriggerObjectAction(apiConfiguration, target) {
|
|
50869
|
+
if (!CustomFieldsRequestParameters.isEventMetadataUrl(apiConfiguration.url)) {
|
|
50870
|
+
return apiConfiguration;
|
|
50871
|
+
}
|
|
50872
|
+
const route = `/elements/${encodeURIComponent(target.connectorKey)}/events/operations/${encodeURIComponent(target.operation)}/objects/${encodeURIComponent(target.objectName)}`;
|
|
50873
|
+
return {
|
|
50874
|
+
...apiConfiguration,
|
|
50875
|
+
method: "GET",
|
|
50876
|
+
url: `${route}${apiConfiguration.url}`,
|
|
50877
|
+
body: null
|
|
50878
|
+
};
|
|
50879
|
+
}
|
|
50880
|
+
function buildCustomFieldsRequest(input) {
|
|
50881
|
+
const parameters = createCustomFieldsRequestParameters(input);
|
|
50882
|
+
return toCustomFieldsRequest(parameters, httpMethodSupportsRequestBody(parameters.method) ? parameters.body : null);
|
|
50883
|
+
}
|
|
50884
|
+
function toCustomFieldsRequest(parameters, body) {
|
|
50885
|
+
return {
|
|
50886
|
+
method: parameters.method,
|
|
50887
|
+
url: parameters.url,
|
|
50888
|
+
body: body ? Object.fromEntries(body) : null,
|
|
50889
|
+
solutionResourceKeysByRequestParamValue: Object.fromEntries(parameters.solutionResourceIdsByRequestParamValue)
|
|
50890
|
+
};
|
|
50891
|
+
}
|
|
50892
|
+
function adaptConfigurationsProvider(provider) {
|
|
50893
|
+
return ({ key }) => import_rxjs40.defer(() => import_rxjs40.from(provider.getAllConfigurations(key)));
|
|
50894
|
+
}
|
|
50895
|
+
function createCustomFieldsRequestParameters(input) {
|
|
50896
|
+
const {
|
|
50897
|
+
apiConfiguration,
|
|
50898
|
+
fieldValues,
|
|
50899
|
+
resourceSelections
|
|
50900
|
+
} = input;
|
|
50901
|
+
const api = ApiConfiguration.factory(JSON.stringify({
|
|
50902
|
+
method: apiConfiguration.method,
|
|
50903
|
+
url: apiConfiguration.url,
|
|
50904
|
+
body: apiConfiguration.body ?? null,
|
|
50905
|
+
optionalParameters: null
|
|
50906
|
+
}));
|
|
50907
|
+
const designName = (name) => NamingHelper.getValidDesignPropertyName(name);
|
|
50908
|
+
const parameterValues = new Map(Object.entries(fieldValues).map(([name, value]) => [designName(name), value ?? null]));
|
|
50909
|
+
const savedTokenValues = new Map(Object.entries(resourceSelections ?? {}).map(([name, selection]) => [
|
|
50910
|
+
CustomFieldsRequestDetails.resourceKeyToken(designName(name)),
|
|
50911
|
+
selection.key
|
|
50912
|
+
]));
|
|
50913
|
+
return new CustomFieldsRequestParameters(api, new RemapFieldsConfiguration("replace", "noop"), null, parameterValues, null, null, savedTokenValues);
|
|
50914
|
+
}
|
|
50915
|
+
async function buildCustomFieldsRequestAsync(input, configurationsProvider) {
|
|
50916
|
+
const parameters = createCustomFieldsRequestParameters(input);
|
|
50917
|
+
const resources = configurationsProvider ? { getAllConfigurations: adaptConfigurationsProvider(configurationsProvider) } : null;
|
|
50918
|
+
const configurations = await import_rxjs40.firstValueFrom(readSolutionResourceConfigurations(parameters, resources));
|
|
50919
|
+
if (configurations) {
|
|
50920
|
+
parameters.solutionResourceConfigurations = configurations;
|
|
50921
|
+
}
|
|
50922
|
+
return toCustomFieldsRequest(parameters, getCustomFieldsRequestBody(parameters));
|
|
50923
|
+
}
|
|
50924
|
+
function getResourceFieldsFromMetadata(parameters) {
|
|
50925
|
+
return parameters.flatMap((parameter) => {
|
|
50926
|
+
const design = parameter.design;
|
|
50927
|
+
if (typeof parameter.name !== "string" || !FieldExtensions.isSolutionResourceField(design ?? null)) {
|
|
50928
|
+
return [];
|
|
50929
|
+
}
|
|
50930
|
+
const kind = String(design?.solutionResourceKind ?? "");
|
|
50931
|
+
if (kind === "" || kind === Constants.ConnectionResourceType) {
|
|
50932
|
+
return [];
|
|
50933
|
+
}
|
|
50934
|
+
const subTypes = Array.isArray(design?.solutionResourceSubTypes) ? design.solutionResourceSubTypes.filter((t) => typeof t === "string") : [];
|
|
50935
|
+
const selection = design?.selection;
|
|
50936
|
+
return [{
|
|
50937
|
+
name: parameter.name,
|
|
50938
|
+
kind,
|
|
50939
|
+
...subTypes.length > 0 ? { subTypes } : {},
|
|
50940
|
+
...typeof selection === "string" ? { selection } : {}
|
|
50941
|
+
}];
|
|
50942
|
+
});
|
|
50943
|
+
}
|
|
50944
|
+
function getCustomFieldsRequestTokens(apiConfiguration) {
|
|
50945
|
+
const templates = [apiConfiguration.url, ...Object.values(apiConfiguration.body ?? {})];
|
|
50946
|
+
const tokens = /* @__PURE__ */ new Map;
|
|
50947
|
+
for (const template of templates) {
|
|
50948
|
+
for (const raw of NamingHelper.extractTokens(template)) {
|
|
50949
|
+
if (tokens.has(raw)) {
|
|
50950
|
+
continue;
|
|
50951
|
+
}
|
|
50952
|
+
const trimmed = raw.trim();
|
|
50953
|
+
if (trimmed.startsWith("=")) {
|
|
50954
|
+
const {
|
|
50955
|
+
property: property2,
|
|
50956
|
+
fieldName
|
|
50957
|
+
} = CustomFieldsRequestParameters.parseExpressionToken(raw);
|
|
50958
|
+
tokens.set(raw, {
|
|
50959
|
+
token: raw,
|
|
50960
|
+
fieldName,
|
|
50961
|
+
expression: property2
|
|
50962
|
+
});
|
|
50963
|
+
} else {
|
|
50964
|
+
tokens.set(raw, {
|
|
50965
|
+
token: raw,
|
|
50966
|
+
fieldName: trimmed
|
|
50967
|
+
});
|
|
50968
|
+
}
|
|
50969
|
+
}
|
|
50970
|
+
}
|
|
50971
|
+
return [...tokens.values()];
|
|
50972
|
+
}
|
|
50973
|
+
function solutionResourceFolderKeyFieldName(fieldName) {
|
|
50974
|
+
return NamingHelper.solutionResourceFolderKeyFieldName(fieldName);
|
|
50975
|
+
}
|
|
50650
50976
|
var EXPRESSION_VALUE_MARKER = "=js:";
|
|
50651
50977
|
var CLIENT_HOST_CAPABILITIES = {
|
|
50652
50978
|
isFromExternalUbConsumer: true,
|
|
@@ -50657,9 +50983,9 @@ var CLIENT_HOST_CAPABILITIES = {
|
|
|
50657
50983
|
};
|
|
50658
50984
|
var isResourceSelection = (value) => typeof value === "object" && value != null && typeof value.key === "string" && typeof value.name === "string";
|
|
50659
50985
|
var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
50660
|
-
constructor(hostCapabilities, connectionsProvider) {
|
|
50986
|
+
constructor(hostCapabilities, connectionsProvider, solutionResourceConfigurationsProvider) {
|
|
50661
50987
|
this._resourceSelections = /* @__PURE__ */ new Map;
|
|
50662
|
-
this._services = _DesignTimeActivityClient._buildServices(connectionsProvider, (key) => this._resourceSelections.get(key));
|
|
50988
|
+
this._services = _DesignTimeActivityClient._buildServices(connectionsProvider, (key) => this._resourceSelections.get(key), solutionResourceConfigurationsProvider);
|
|
50663
50989
|
this._hasConnectionsProvider = connectionsProvider != null;
|
|
50664
50990
|
this._widgetTranslator = new WidgetTranslatorService("javascript");
|
|
50665
50991
|
this._hostCapabilities = {
|
|
@@ -50668,7 +50994,7 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50668
50994
|
};
|
|
50669
50995
|
}
|
|
50670
50996
|
static async initiate(input, options) {
|
|
50671
|
-
const client = new _DesignTimeActivityClient(options?.hostCapabilities, options?.connectionsProvider);
|
|
50997
|
+
const client = new _DesignTimeActivityClient(options?.hostCapabilities, options?.connectionsProvider, options?.solutionResourceConfigurationsProvider);
|
|
50672
50998
|
client._connectorKey = input.instanceParameters.connectorKey;
|
|
50673
50999
|
const connectorConfiguration = JSON.stringify(input.instanceParameters);
|
|
50674
51000
|
const activity = client._construct(connectorConfiguration, input.uiPathActivityTypeId, options?.displayName, options?.uiLanguage);
|
|
@@ -50715,7 +51041,7 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50715
51041
|
}
|
|
50716
51042
|
}
|
|
50717
51043
|
async setFieldValues(values) {
|
|
50718
|
-
const activity = this.
|
|
51044
|
+
const activity = this._requireMetadata("setFieldValues");
|
|
50719
51045
|
const { properties } = await import_rxjs4.firstValueFrom(activity.getProperties());
|
|
50720
51046
|
const propertiesByName = new Map(properties.map((property2) => [property2.name, property2]));
|
|
50721
51047
|
for (const [fieldName, value] of Object.entries(values)) {
|
|
@@ -50736,7 +51062,7 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50736
51062
|
}
|
|
50737
51063
|
}
|
|
50738
51064
|
async getResourceFields() {
|
|
50739
|
-
const activity = this.
|
|
51065
|
+
const activity = this._requireMetadata("getResourceFields");
|
|
50740
51066
|
const { properties } = await import_rxjs4.firstValueFrom(activity.getProperties());
|
|
50741
51067
|
return properties.flatMap((property2) => {
|
|
50742
51068
|
const widget = property2.widget;
|
|
@@ -50744,9 +51070,11 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50744
51070
|
return [];
|
|
50745
51071
|
}
|
|
50746
51072
|
const kind = String(widget.resourceType ?? "");
|
|
51073
|
+
const subTypes = (widget.resourceSubTypes ?? []).map(String);
|
|
50747
51074
|
return kind === "" || kind === Constants.ConnectionResourceType ? [] : [{
|
|
50748
51075
|
name: property2.name,
|
|
50749
|
-
kind
|
|
51076
|
+
kind,
|
|
51077
|
+
...subTypes.length > 0 ? { subTypes } : {}
|
|
50750
51078
|
}];
|
|
50751
51079
|
});
|
|
50752
51080
|
}
|
|
@@ -50847,6 +51175,13 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50847
51175
|
}
|
|
50848
51176
|
return this._activity;
|
|
50849
51177
|
}
|
|
51178
|
+
_requireMetadata(method) {
|
|
51179
|
+
const activity = this._requireActivity(method);
|
|
51180
|
+
if (!this._metadataResolved()) {
|
|
51181
|
+
throw new Error(`DesignTimeActivityClient.${method} called before updateConnection(); the connector's metadata is not loaded yet.`);
|
|
51182
|
+
}
|
|
51183
|
+
return activity;
|
|
51184
|
+
}
|
|
50850
51185
|
_metadataResolved() {
|
|
50851
51186
|
const configuration = this._activity?.getActivityState().configuration;
|
|
50852
51187
|
if (configuration == null) {
|
|
@@ -50872,11 +51207,11 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50872
51207
|
return { essentialConfiguration };
|
|
50873
51208
|
}
|
|
50874
51209
|
getCompiledFilter(propertyName) {
|
|
50875
|
-
const activity = this.
|
|
51210
|
+
const activity = this._requireMetadata("getCompiledFilter");
|
|
50876
51211
|
return activity.getCompiledFilter(propertyName);
|
|
50877
51212
|
}
|
|
50878
51213
|
async getValidationErrors() {
|
|
50879
|
-
const activity = this.
|
|
51214
|
+
const activity = this._requireMetadata("getValidationErrors");
|
|
50880
51215
|
const { validationResults } = await import_rxjs4.firstValueFrom(activity.getValidationResults());
|
|
50881
51216
|
const toIssue = (issue2, severity) => ({
|
|
50882
51217
|
...issue2.propertyName ? { propertyName: issue2.propertyName } : {},
|
|
@@ -50888,8 +51223,32 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50888
51223
|
...validationResults.warnings.map((issue2) => toIssue(issue2, "warning"))
|
|
50889
51224
|
];
|
|
50890
51225
|
}
|
|
51226
|
+
getFields() {
|
|
51227
|
+
const activity = this._requireMetadata("getFields");
|
|
51228
|
+
const container = activity.getFieldsContainer();
|
|
51229
|
+
const toField = (field) => ({
|
|
51230
|
+
name: field.name,
|
|
51231
|
+
displayName: field.displayName,
|
|
51232
|
+
type: field.type,
|
|
51233
|
+
required: field.required,
|
|
51234
|
+
location: field.fieldLocation
|
|
51235
|
+
});
|
|
51236
|
+
const eventFields = container instanceof TriggerFieldsContainer ? container.eventFields : [];
|
|
51237
|
+
return {
|
|
51238
|
+
inputFields: container.getActiveInputFields().map(toField),
|
|
51239
|
+
outputFields: container.outputFields.map(toField),
|
|
51240
|
+
eventFields: eventFields.map((field) => ({
|
|
51241
|
+
name: field.name,
|
|
51242
|
+
displayName: field.displayName,
|
|
51243
|
+
type: field.type,
|
|
51244
|
+
required: false,
|
|
51245
|
+
location: "event"
|
|
51246
|
+
})),
|
|
51247
|
+
outputJsonSchema: container.outputJsonSchema ?? null
|
|
51248
|
+
};
|
|
51249
|
+
}
|
|
50891
51250
|
getBindings() {
|
|
50892
|
-
const activity = this.
|
|
51251
|
+
const activity = this._requireMetadata("getBindings");
|
|
50893
51252
|
const bindings = activity.getBindings();
|
|
50894
51253
|
_DesignTimeActivityClient._assertBindingsComplete(bindings);
|
|
50895
51254
|
return bindings;
|
|
@@ -50932,7 +51291,7 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50932
51291
|
};
|
|
50933
51292
|
return new ConnectorActivity(params);
|
|
50934
51293
|
}
|
|
50935
|
-
static _buildServices(connectionsProvider, resolveResource) {
|
|
51294
|
+
static _buildServices(connectionsProvider, resolveResource, configurationsProvider) {
|
|
50936
51295
|
const connectionsService = connectionsProvider ? _DesignTimeActivityClient._adaptConnectionsProvider(connectionsProvider) : _DesignTimeActivityClient._inertConnectionsService();
|
|
50937
51296
|
const translationService = { instant: (key) => key };
|
|
50938
51297
|
const busyService = {
|
|
@@ -50949,9 +51308,9 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50949
51308
|
solutionId: null,
|
|
50950
51309
|
solutionId$: import_rxjs4.of(null)
|
|
50951
51310
|
};
|
|
50952
|
-
return new ConnectorServicesContext(new WorkflowDesignApi, connectionsService, _DesignTimeActivityClient._unsupportedHostService("IDesignerCustomTypesService"), _DesignTimeActivityClient._unsupportedHostService("IDataMapperConfigurationService"), translationService, busyService, _DesignTimeActivityClient._pickedResourcesService(resolveResource), storeState, _DesignTimeActivityClient._unsupportedHostService("IExpressionEvaluatorService"), undefined, undefined, undefined);
|
|
51311
|
+
return new ConnectorServicesContext(new WorkflowDesignApi, connectionsService, _DesignTimeActivityClient._unsupportedHostService("IDesignerCustomTypesService"), _DesignTimeActivityClient._unsupportedHostService("IDataMapperConfigurationService"), translationService, busyService, _DesignTimeActivityClient._pickedResourcesService(resolveResource, configurationsProvider), storeState, _DesignTimeActivityClient._unsupportedHostService("IExpressionEvaluatorService"), undefined, undefined, undefined);
|
|
50953
51312
|
}
|
|
50954
|
-
static _pickedResourcesService(resolveResource) {
|
|
51313
|
+
static _pickedResourcesService(resolveResource, configurationsProvider) {
|
|
50955
51314
|
const pickedResource = (key) => {
|
|
50956
51315
|
const selection = resolveResource(key);
|
|
50957
51316
|
if (!selection) {
|
|
@@ -50982,7 +51341,9 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
50982
51341
|
folderFullyQualifiedName: folder(selection),
|
|
50983
51342
|
folderPath: folder(selection)
|
|
50984
51343
|
});
|
|
50985
|
-
})
|
|
51344
|
+
}),
|
|
51345
|
+
getAllConfigurations: configurationsProvider ? adaptConfigurationsProvider(configurationsProvider) : undefined,
|
|
51346
|
+
clearAllConfigurationsCache: undefined
|
|
50986
51347
|
});
|
|
50987
51348
|
}
|
|
50988
51349
|
static _unsupportedHostService(name, members = {}) {
|
|
@@ -51031,7 +51392,14 @@ var DesignTimeActivityClient = class _DesignTimeActivityClient {
|
|
|
51031
51392
|
};
|
|
51032
51393
|
var DesignTimeActivityClient2 = DesignTimeActivityClient;
|
|
51033
51394
|
export {
|
|
51034
|
-
DesignTimeActivityClient2 as DesignTimeActivityClient
|
|
51395
|
+
DesignTimeActivityClient2 as DesignTimeActivityClient,
|
|
51396
|
+
buildCustomFieldsRequest,
|
|
51397
|
+
buildCustomFieldsRequestAsync,
|
|
51398
|
+
getCustomFieldsRequestTokens,
|
|
51399
|
+
getResourceFieldsFromMetadata,
|
|
51400
|
+
httpMethodSupportsRequestBody,
|
|
51401
|
+
routeTriggerObjectAction,
|
|
51402
|
+
solutionResourceFolderKeyFieldName
|
|
51035
51403
|
};
|
|
51036
51404
|
|
|
51037
|
-
//# debugId=
|
|
51405
|
+
//# debugId=B8BD4D21AD0E27E264756E2164756E21
|