@kong-ui-public/entities-gateway-services 3.6.3 → 3.6.4
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.
|
@@ -315,33 +315,33 @@ function Ur() {
|
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
const
|
|
318
|
+
const ut = {
|
|
319
319
|
useI18n: Br,
|
|
320
320
|
usePortFromProtocol: Ur
|
|
321
|
-
},
|
|
321
|
+
}, lt = "/v2/control-planes/{controlPlaneId}/core-entities", st = "/{workspace}", Xe = {
|
|
322
322
|
list: {
|
|
323
323
|
konnect: {
|
|
324
|
-
all: `${
|
|
324
|
+
all: `${lt}/services`
|
|
325
325
|
},
|
|
326
326
|
kongManager: {
|
|
327
|
-
all: `${
|
|
327
|
+
all: `${st}/services`
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
form: {
|
|
331
331
|
konnect: {
|
|
332
|
-
create: `${nt}/services`,
|
|
333
|
-
validate: `${nt}/v1/schemas/json/service/validate`,
|
|
334
|
-
edit: `${nt}/services/{id}`
|
|
335
|
-
},
|
|
336
|
-
kongManager: {
|
|
337
332
|
create: `${lt}/services`,
|
|
338
|
-
validate: `${lt}/schemas/
|
|
333
|
+
validate: `${lt}/v1/schemas/json/service/validate`,
|
|
339
334
|
edit: `${lt}/services/{id}`
|
|
335
|
+
},
|
|
336
|
+
kongManager: {
|
|
337
|
+
create: `${st}/services`,
|
|
338
|
+
validate: `${st}/schemas/services/validate`,
|
|
339
|
+
edit: `${st}/services/{id}`
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
var hi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e))(hi || {}), St = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(St || {}), Me = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Me || {}),
|
|
344
|
-
const yt = Object.values(
|
|
343
|
+
var hi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e))(hi || {}), St = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(St || {}), Me = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Me || {}), at = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Other = "other", e))(at || {});
|
|
344
|
+
const yt = Object.values(at);
|
|
345
345
|
var te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ce || {});
|
|
346
346
|
function Kr() {
|
|
347
347
|
return {
|
|
@@ -1865,7 +1865,7 @@ var Hi = new se("tag:yaml.org,2002:set", {
|
|
|
1865
1865
|
zi,
|
|
1866
1866
|
Hi
|
|
1867
1867
|
]
|
|
1868
|
-
}), Oe = Object.prototype.hasOwnProperty,
|
|
1868
|
+
}), Oe = Object.prototype.hasOwnProperty, dt = 1, Gi = 2, Ji = 3, pt = 4, Ct = 1, Ko = 2, Yt = 3, Ro = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Po = /[\x85\u2028\u2029]/, Do = /[,\[\]\{\}]/, Wi = /^(?:!|!!|![a-z\-]+!)$/i, Yi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1869
1869
|
function Zt(e) {
|
|
1870
1870
|
return Object.prototype.toString.call(e);
|
|
1871
1871
|
}
|
|
@@ -1921,13 +1921,13 @@ function Xi(e, t) {
|
|
|
1921
1921
|
function V(e, t) {
|
|
1922
1922
|
throw Xi(e, t);
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function ft(e, t) {
|
|
1925
1925
|
e.onWarning && e.onWarning.call(null, Xi(e, t));
|
|
1926
1926
|
}
|
|
1927
1927
|
var Xt = {
|
|
1928
1928
|
YAML: function(e, t, i) {
|
|
1929
1929
|
var a, r, o;
|
|
1930
|
-
e.version !== null && V(e, "duplication of %YAML directive"), i.length !== 1 && V(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), a === null && V(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), o = parseInt(a[2], 10), r !== 1 && V(e, "unacceptable YAML version of the document"), e.version = i[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 &&
|
|
1930
|
+
e.version !== null && V(e, "duplication of %YAML directive"), i.length !== 1 && V(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), a === null && V(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), o = parseInt(a[2], 10), r !== 1 && V(e, "unacceptable YAML version of the document"), e.version = i[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && ft(e, "unsupported YAML version of the document");
|
|
1931
1931
|
},
|
|
1932
1932
|
TAG: function(e, t, i) {
|
|
1933
1933
|
var a, r;
|
|
@@ -1993,7 +1993,7 @@ function re(e, t, i) {
|
|
|
1993
1993
|
else
|
|
1994
1994
|
break;
|
|
1995
1995
|
}
|
|
1996
|
-
return i !== -1 && a !== 0 && e.lineIndent < i &&
|
|
1996
|
+
return i !== -1 && a !== 0 && e.lineIndent < i && ft(e, "deficient indentation"), a;
|
|
1997
1997
|
}
|
|
1998
1998
|
function ht(e) {
|
|
1999
1999
|
var t = e.position, i;
|
|
@@ -2077,7 +2077,7 @@ function Xo(e, t) {
|
|
|
2077
2077
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), O = e.input.charCodeAt(++e.position); O !== 0; ) {
|
|
2078
2078
|
if (re(e, !0, t), O = e.input.charCodeAt(e.position), O === p)
|
|
2079
2079
|
return e.position++, e.tag = n, e.anchor = l, e.kind = y ? "mapping" : "sequence", e.result = s, !0;
|
|
2080
|
-
i ? O === 44 && V(e, "expected the node content, but found ','") : V(e, "missed comma between flow collection entries"), k = T = N = null, u = w = !1, O === 63 && (d = e.input.charCodeAt(e.position + 1), me(d) && (u = w = !0, e.position++, re(e, !0, t))), a = e.line, r = e.lineStart, o = e.position, ze(e, t,
|
|
2080
|
+
i ? O === 44 && V(e, "expected the node content, but found ','") : V(e, "missed comma between flow collection entries"), k = T = N = null, u = w = !1, O === 63 && (d = e.input.charCodeAt(e.position + 1), me(d) && (u = w = !0, e.position++, re(e, !0, t))), a = e.line, r = e.lineStart, o = e.position, ze(e, t, dt, !1, !0), k = e.tag, T = e.result, re(e, !0, t), O = e.input.charCodeAt(e.position), (w || e.line === a) && O === 58 && (u = !0, O = e.input.charCodeAt(++e.position), re(e, !0, t), ze(e, t, dt, !1, !0), N = e.result), y ? Pe(e, s, _, k, T, N, a, r, o) : u ? s.push(Pe(e, null, _, k, T, N, a, r, o)) : s.push(T), re(e, !0, t), O = e.input.charCodeAt(e.position), O === 44 ? (i = !0, O = e.input.charCodeAt(++e.position)) : i = !1;
|
|
2081
2081
|
}
|
|
2082
2082
|
V(e, "unexpected end of the stream within a flow collection");
|
|
2083
2083
|
}
|
|
@@ -2166,7 +2166,7 @@ function tn(e, t, i) {
|
|
|
2166
2166
|
else
|
|
2167
2167
|
return e.tag = d, e.anchor = p, !0;
|
|
2168
2168
|
}
|
|
2169
|
-
if ((e.line === o || e.lineIndent > t) && (k && (n = e.line, s = e.lineStart, l = e.position), ze(e, t,
|
|
2169
|
+
if ((e.line === o || e.lineIndent > t) && (k && (n = e.line, s = e.lineStart, l = e.position), ze(e, t, pt, !0, r) && (k ? _ = e.result : T = e.result), k || (Pe(e, u, w, y, _, T, n, s, l), y = _ = T = null), re(e, !0, -1), O = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && O !== 0)
|
|
2170
2170
|
V(e, "bad indentation of a mapping entry");
|
|
2171
2171
|
else if (e.lineIndent < t)
|
|
2172
2172
|
break;
|
|
@@ -2210,10 +2210,10 @@ function on(e) {
|
|
|
2210
2210
|
}
|
|
2211
2211
|
function ze(e, t, i, a, r) {
|
|
2212
2212
|
var o, n, s, l = 1, d = !1, p = !1, u, w, y, _, T, k;
|
|
2213
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = n = s =
|
|
2213
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = n = s = pt === i || Ji === i, a && re(e, !0, -1) && (d = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
2214
2214
|
for (; rn(e) || an(e); )
|
|
2215
2215
|
re(e, !0, -1) ? (d = !0, s = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
|
|
2216
|
-
if (s && (s = d || r), (l === 1 ||
|
|
2216
|
+
if (s && (s = d || r), (l === 1 || pt === i) && (dt === i || Gi === i ? T = t : T = t + 1, k = e.position - e.lineStart, l === 1 ? s && (ti(e, k) || tn(e, k, T)) || Xo(e, T) ? p = !0 : (n && en(e, T) || Zo(e, T) || Qo(e, T) ? p = !0 : on(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && V(e, "alias node should not have any properties")) : Yo(e, T, dt === i) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (p = s && ti(e, k))), e.tag === null)
|
|
2217
2217
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2218
2218
|
else if (e.tag === "?") {
|
|
2219
2219
|
for (e.result !== null && e.kind !== "scalar" && V(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, w = e.implicitTypes.length; u < w; u += 1)
|
|
@@ -2253,9 +2253,9 @@ function nn(e) {
|
|
|
2253
2253
|
n = e.input.charCodeAt(++e.position);
|
|
2254
2254
|
r.push(e.input.slice(i, e.position));
|
|
2255
2255
|
}
|
|
2256
|
-
n !== 0 && Ft(e), Oe.call(Xt, a) ? Xt[a](e, a, r) :
|
|
2256
|
+
n !== 0 && Ft(e), Oe.call(Xt, a) ? Xt[a](e, a, r) : ft(e, 'unknown document directive "' + a + '"');
|
|
2257
2257
|
}
|
|
2258
|
-
if (re(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, re(e, !0, -1)) : o && V(e, "directives end mark is expected"), ze(e, e.lineIndent - 1,
|
|
2258
|
+
if (re(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, re(e, !0, -1)) : o && V(e, "directives end mark is expected"), ze(e, e.lineIndent - 1, pt, !1, !0), re(e, !0, -1), e.checkLineBreaks && Po.test(e.input.slice(t, e.position)) && ft(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ht(e)) {
|
|
2259
2259
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, re(e, !0, -1));
|
|
2260
2260
|
return;
|
|
2261
2261
|
}
|
|
@@ -2293,7 +2293,7 @@ function sn(e, t) {
|
|
|
2293
2293
|
var cn = ln, un = sn, tr = {
|
|
2294
2294
|
loadAll: cn,
|
|
2295
2295
|
load: un
|
|
2296
|
-
}, ir = Object.prototype.toString, rr = Object.prototype.hasOwnProperty, Lt = 65279, dn = 9, tt = 10, pn = 13, fn = 32, gn = 33, mn = 34, At = 35, yn = 37, vn = 38, hn = 39, bn = 42, ar = 44, wn = 45,
|
|
2296
|
+
}, ir = Object.prototype.toString, rr = Object.prototype.hasOwnProperty, Lt = 65279, dn = 9, tt = 10, pn = 13, fn = 32, gn = 33, mn = 34, At = 35, yn = 37, vn = 38, hn = 39, bn = 42, ar = 44, wn = 45, gt = 58, _n = 61, kn = 62, Cn = 63, Sn = 64, or = 91, nr = 93, xn = 96, lr = 123, An = 124, sr = 125, ue = {};
|
|
2297
2297
|
ue[0] = "\\0";
|
|
2298
2298
|
ue[7] = "\\a";
|
|
2299
2299
|
ue[8] = "\\b";
|
|
@@ -2368,7 +2368,7 @@ function Mn(e, t) {
|
|
|
2368
2368
|
return !0;
|
|
2369
2369
|
return !1;
|
|
2370
2370
|
}
|
|
2371
|
-
function
|
|
2371
|
+
function mt(e) {
|
|
2372
2372
|
return e === fn || e === dn;
|
|
2373
2373
|
}
|
|
2374
2374
|
function rt(e) {
|
|
@@ -2378,20 +2378,20 @@ function ri(e) {
|
|
|
2378
2378
|
return rt(e) && e !== Lt && e !== pn && e !== tt;
|
|
2379
2379
|
}
|
|
2380
2380
|
function ai(e, t, i) {
|
|
2381
|
-
var a = ri(e), r = a && !
|
|
2381
|
+
var a = ri(e), r = a && !mt(e);
|
|
2382
2382
|
return (
|
|
2383
2383
|
// ns-plain-safe
|
|
2384
2384
|
(i ? (
|
|
2385
2385
|
// c = flow-in
|
|
2386
2386
|
a
|
|
2387
|
-
) : a && e !== ar && e !== or && e !== nr && e !== lr && e !== sr) && e !== At && !(t ===
|
|
2387
|
+
) : a && e !== ar && e !== or && e !== nr && e !== lr && e !== sr) && e !== At && !(t === gt && !r) || ri(t) && !mt(t) && e === At || t === gt && r
|
|
2388
2388
|
);
|
|
2389
2389
|
}
|
|
2390
2390
|
function En(e) {
|
|
2391
|
-
return rt(e) && e !== Lt && !
|
|
2391
|
+
return rt(e) && e !== Lt && !mt(e) && e !== wn && e !== Cn && e !== gt && e !== ar && e !== or && e !== nr && e !== lr && e !== sr && e !== At && e !== vn && e !== bn && e !== gn && e !== An && e !== _n && e !== kn && e !== hn && e !== mn && e !== yn && e !== Sn && e !== xn;
|
|
2392
2392
|
}
|
|
2393
2393
|
function Vn(e) {
|
|
2394
|
-
return !
|
|
2394
|
+
return !mt(e) && e !== gt;
|
|
2395
2395
|
}
|
|
2396
2396
|
function Qe(e, t) {
|
|
2397
2397
|
var i = e.charCodeAt(t), a;
|
|
@@ -2671,22 +2671,25 @@ const sl = { class: "yaml-config" }, fr = /* @__PURE__ */ Q({
|
|
|
2671
2671
|
type: String,
|
|
2672
2672
|
required: !0,
|
|
2673
2673
|
validator: (e) => yt.includes(e)
|
|
2674
|
+
},
|
|
2675
|
+
credentialType: {
|
|
2676
|
+
type: String,
|
|
2677
|
+
default: ""
|
|
2674
2678
|
}
|
|
2675
2679
|
},
|
|
2676
2680
|
setup(e) {
|
|
2677
2681
|
const t = e, i = (s, l) => {
|
|
2678
2682
|
const d = de;
|
|
2679
2683
|
let p = "";
|
|
2680
|
-
return typeof s == "string" ? p +=
|
|
2681
|
-
|
|
2682
|
-
|
|
2684
|
+
return typeof s == "string" ? p += `${d}${l} = "${s}"
|
|
2685
|
+
` : p += `${d}${l} = ${String(s ?? "")}
|
|
2686
|
+
`, p;
|
|
2683
2687
|
}, a = (s, l, d = "") => {
|
|
2684
2688
|
if (typeof s != "object")
|
|
2685
2689
|
return "Invalid object";
|
|
2686
2690
|
const p = de + d;
|
|
2687
2691
|
let u = "";
|
|
2688
|
-
if (l && (u +=
|
|
2689
|
-
${p}${l} = {
|
|
2692
|
+
if (l && (u += `${p}${l} = {
|
|
2690
2693
|
`), s === null)
|
|
2691
2694
|
return l ? u += `${p}}` : u = "{}", u;
|
|
2692
2695
|
const w = Object.fromEntries(Object.entries(s).filter(([, _]) => _ !== null));
|
|
@@ -2696,14 +2699,14 @@ ${p}${l} = {
|
|
|
2696
2699
|
`, y += r(T, void 0, p), y += `${p}${de}]`) : T && typeof T == "object" ? (y = `{
|
|
2697
2700
|
`, y += a(T, void 0, p), y += `${p}${de}}`) : y = String(T ?? ""), typeof T == "string" && (y = `"${y}"`), u += `${p}${de}${_} = ${y}
|
|
2698
2701
|
`;
|
|
2699
|
-
return l ? u += `${p}}
|
|
2702
|
+
return l ? u += `${p}}
|
|
2703
|
+
` : u;
|
|
2700
2704
|
}, r = (s, l, d = "") => {
|
|
2701
2705
|
if (!Array.isArray(s))
|
|
2702
2706
|
return "Invalid array";
|
|
2703
2707
|
const p = de + d;
|
|
2704
2708
|
let u = "";
|
|
2705
|
-
l && (s.length === 0 ? u += `${p}${l} = [` : u +=
|
|
2706
|
-
${p}${l} = [
|
|
2709
|
+
l && (s.length === 0 ? u += `${p}${l} = [` : u += `${p}${l} = [
|
|
2707
2710
|
`);
|
|
2708
2711
|
for (let w = 0; w < s.length; w++) {
|
|
2709
2712
|
const y = s[w];
|
|
@@ -2711,7 +2714,9 @@ ${p}${l} = [
|
|
|
2711
2714
|
`, u += a(y, void 0, p), u += `${p}${de}}`) : typeof y == "string" ? u += `${p}${de}"${y}"` : u += `${p}${de}${String(y ?? "")}`, w < s.length - 1 && (u += ","), u += `
|
|
2712
2715
|
`;
|
|
2713
2716
|
}
|
|
2714
|
-
return l && (s.length === 0 ? u +=
|
|
2717
|
+
return l && (s.length === 0 ? u += `]
|
|
2718
|
+
` : u += `${p}]
|
|
2719
|
+
`), u;
|
|
2715
2720
|
}, o = (s) => {
|
|
2716
2721
|
let l = "";
|
|
2717
2722
|
for (const [d, p] of Object.entries(s))
|
|
@@ -2724,15 +2729,15 @@ ${p}${l} = [
|
|
|
2724
2729
|
return "";
|
|
2725
2730
|
delete _.id;
|
|
2726
2731
|
let k = "", N = "";
|
|
2727
|
-
if ((l = _.service) != null && l.id ? (N = "service", delete _.service) : (d = _.route) != null && d.id ? (N = "route", delete _.route) : (p = _.consumer) != null && p.id ? (N = "consumer", delete _.consumer) : (u = _.consumer_group) != null && u.id ? (N = "consumer_group", delete _.consumer_group) : (w = _.certificate) != null && w.id ? (N = "certificate", delete _.certificate) : (y = _.
|
|
2728
|
-
const O = (_.name + "").replace(/-/g, "_");
|
|
2729
|
-
delete _.name, k += `resource "konnect_gateway_plugin_${O}" "my_${O}" {
|
|
2732
|
+
if ((l = _.service) != null && l.id ? (N = "service", delete _.service) : (d = _.route) != null && d.id ? (N = "route", delete _.route) : (p = _.consumer) != null && p.id ? (N = "consumer", delete _.consumer) : (u = _.consumer_group) != null && u.id ? (N = "consumer_group", delete _.consumer_group) : (w = _.certificate) != null && w.id ? (N = "certificate", delete _.certificate) : (y = _.set) != null && y.id && (N = "set", delete _.set), t.entityType === "plugin") {
|
|
2733
|
+
const O = t.credentialType.replace(/-/g, "_") || (_.name + "").replace(/-/g, "_");
|
|
2734
|
+
delete _.name, k += `resource "konnect_gateway_plugin_${O}" "my_${O}" {
|
|
2735
|
+
`;
|
|
2730
2736
|
} else
|
|
2731
|
-
k += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
`, N && (k +=
|
|
2735
|
-
${de}${N} = {
|
|
2737
|
+
k += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
|
|
2738
|
+
`;
|
|
2739
|
+
return k += o(_), k += `${de}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2740
|
+
`, N && (k += `${de}${N} = {
|
|
2736
2741
|
`, k += `${de}${de}id = konnect_gateway_${N}.my_${N}.id
|
|
2737
2742
|
`, k += `${de}}
|
|
2738
2743
|
`), k += `}
|
|
@@ -2858,7 +2863,7 @@ ${de}${N} = {
|
|
|
2858
2863
|
}, null, 8, ["entity-record", "entity-type"])) : G("", !0)
|
|
2859
2864
|
], 64));
|
|
2860
2865
|
}
|
|
2861
|
-
}), gl = /* @__PURE__ */ he(fl, [["__scopeId", "data-v-d15be7fe"]]), _e = "24px",
|
|
2866
|
+
}), gl = /* @__PURE__ */ he(fl, [["__scopeId", "data-v-d15be7fe"]]), _e = "24px", ot = (e, t) => {
|
|
2862
2867
|
const i = e.__vccOpts || e;
|
|
2863
2868
|
for (const [a, r] of t)
|
|
2864
2869
|
i[a] = r;
|
|
@@ -2963,7 +2968,7 @@ ${de}${N} = {
|
|
|
2963
2968
|
_: 1
|
|
2964
2969
|
}, 8, ["aria-hidden", "style"]));
|
|
2965
2970
|
}
|
|
2966
|
-
}), wl = /* @__PURE__ */
|
|
2971
|
+
}), wl = /* @__PURE__ */ ot(bl, [["__scopeId", "data-v-c1f7c39c"]]), _l = (e) => (Ge("data-v-fbe6ddff"), e = e(), Je(), e), kl = ["aria-hidden"], Cl = {
|
|
2967
2972
|
key: 0,
|
|
2968
2973
|
"data-testid": "kui-icon-svg-title"
|
|
2969
2974
|
}, Sl = /* @__PURE__ */ _l(() => /* @__PURE__ */ E("path", {
|
|
@@ -3063,7 +3068,7 @@ ${de}${N} = {
|
|
|
3063
3068
|
_: 1
|
|
3064
3069
|
}, 8, ["aria-hidden", "style"]));
|
|
3065
3070
|
}
|
|
3066
|
-
}), Al = /* @__PURE__ */
|
|
3071
|
+
}), Al = /* @__PURE__ */ ot(xl, [["__scopeId", "data-v-fbe6ddff"]]), Il = (e) => (Ge("data-v-745761f6"), e = e(), Je(), e), Tl = ["aria-hidden"], $l = {
|
|
3067
3072
|
key: 0,
|
|
3068
3073
|
"data-testid": "kui-icon-svg-title"
|
|
3069
3074
|
}, Ol = /* @__PURE__ */ Il(() => /* @__PURE__ */ E("path", {
|
|
@@ -3163,7 +3168,7 @@ ${de}${N} = {
|
|
|
3163
3168
|
_: 1
|
|
3164
3169
|
}, 8, ["aria-hidden", "style"]));
|
|
3165
3170
|
}
|
|
3166
|
-
}), Nl = /* @__PURE__ */
|
|
3171
|
+
}), Nl = /* @__PURE__ */ ot(jl, [["__scopeId", "data-v-745761f6"]]), Ml = (e) => (Ge("data-v-863d10eb"), e = e(), Je(), e), El = ["aria-hidden"], Vl = {
|
|
3167
3172
|
key: 0,
|
|
3168
3173
|
"data-testid": "kui-icon-svg-title"
|
|
3169
3174
|
}, Fl = /* @__PURE__ */ Ml(() => /* @__PURE__ */ E("path", {
|
|
@@ -3263,7 +3268,7 @@ ${de}${N} = {
|
|
|
3263
3268
|
_: 1
|
|
3264
3269
|
}, 8, ["aria-hidden", "style"]));
|
|
3265
3270
|
}
|
|
3266
|
-
}), Ll = /* @__PURE__ */
|
|
3271
|
+
}), Ll = /* @__PURE__ */ ot(ql, [["__scopeId", "data-v-863d10eb"]]), Bl = (e) => (Ge("data-v-d9894a05"), e = e(), Je(), e), Ul = ["aria-hidden"], Kl = {
|
|
3267
3272
|
key: 0,
|
|
3268
3273
|
"data-testid": "kui-icon-svg-title"
|
|
3269
3274
|
}, Rl = /* @__PURE__ */ Bl(() => /* @__PURE__ */ E("path", {
|
|
@@ -3363,7 +3368,7 @@ ${de}${N} = {
|
|
|
3363
3368
|
_: 1
|
|
3364
3369
|
}, 8, ["aria-hidden", "style"]));
|
|
3365
3370
|
}
|
|
3366
|
-
}), Dl = /* @__PURE__ */
|
|
3371
|
+
}), Dl = /* @__PURE__ */ ot(Pl, [["__scopeId", "data-v-d9894a05"]]), zl = {
|
|
3367
3372
|
class: "config-card-title",
|
|
3368
3373
|
"data-testid": "config-card-title"
|
|
3369
3374
|
}, Hl = { class: "config-card-actions" }, Gl = ["href"], Jl = { class: "config-card-details-section" }, Wl = /* @__PURE__ */ Q({
|
|
@@ -3809,7 +3814,7 @@ ${de}${N} = {
|
|
|
3809
3814
|
hash: "#yaml"
|
|
3810
3815
|
}
|
|
3811
3816
|
]);
|
|
3812
|
-
return r.enableTerraform && L.value.splice(1, 0, {
|
|
3817
|
+
return r.enableTerraform && r.entityType !== at.Other && L.value.splice(1, 0, {
|
|
3813
3818
|
title: n("baseForm.configuration.terraform"),
|
|
3814
3819
|
hash: "#terraform"
|
|
3815
3820
|
}), Se(() => d.value, (c) => {
|
|
@@ -3939,7 +3944,7 @@ ${de}${N} = {
|
|
|
3939
3944
|
});
|
|
3940
3945
|
};
|
|
3941
3946
|
}
|
|
3942
|
-
}), es = /* @__PURE__ */ he(Xl, [["__scopeId", "data-v-
|
|
3947
|
+
}), es = /* @__PURE__ */ he(Xl, [["__scopeId", "data-v-40338dce"]]), ts = ["data-truncate"], is = /* @__PURE__ */ Q({
|
|
3943
3948
|
__name: "EntityBaseTableCell",
|
|
3944
3949
|
props: {
|
|
3945
3950
|
keyName: {
|
|
@@ -4781,12 +4786,12 @@ ${de}${N} = {
|
|
|
4781
4786
|
}) : G("", !0);
|
|
4782
4787
|
}
|
|
4783
4788
|
});
|
|
4784
|
-
let
|
|
4789
|
+
let ct;
|
|
4785
4790
|
const Os = new Uint8Array(16);
|
|
4786
4791
|
function js() {
|
|
4787
|
-
if (!
|
|
4792
|
+
if (!ct && (ct = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ct))
|
|
4788
4793
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4789
|
-
return
|
|
4794
|
+
return ct(Os);
|
|
4790
4795
|
}
|
|
4791
4796
|
const le = [];
|
|
4792
4797
|
for (let e = 0; e < 256; ++e)
|
|
@@ -4933,7 +4938,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
4933
4938
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
4934
4939
|
setup(e, { emit: t }) {
|
|
4935
4940
|
var f;
|
|
4936
|
-
const i = t, a = e, { i18n: { t: r } } =
|
|
4941
|
+
const i = t, a = e, { i18n: { t: r } } = ut.useI18n(), o = Nt(), { axiosInstance: n } = mr((f = a.config) == null ? void 0 : f.axiosRequestConfig), s = q(1), l = A(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
|
|
4937
4942
|
// the Name column is non-hidable
|
|
4938
4943
|
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
4939
4944
|
...a.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
@@ -5037,14 +5042,14 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5037
5042
|
to: a.config.getEditRoute(m)
|
|
5038
5043
|
}), ae = q(void 0), je = q(!1), Ve = q(!1), Fe = q(""), bt = Ks(a.config, u.value), We = (m) => {
|
|
5039
5044
|
ae.value = m, je.value = !0, Fe.value = "";
|
|
5040
|
-
},
|
|
5045
|
+
}, nt = () => {
|
|
5041
5046
|
je.value = !1, ae.value = void 0;
|
|
5042
5047
|
}, Ne = async () => {
|
|
5043
5048
|
var m, M, H;
|
|
5044
5049
|
if ((m = ae.value) != null && m.id) {
|
|
5045
5050
|
Ve.value = !0;
|
|
5046
5051
|
try {
|
|
5047
|
-
await n.delete(bt(ae.value.id)), i("delete:success", ae.value),
|
|
5052
|
+
await n.delete(bt(ae.value.id)), i("delete:success", ae.value), nt(), s.value++;
|
|
5048
5053
|
} catch (J) {
|
|
5049
5054
|
Fe.value = ((H = (M = J.response) == null ? void 0 : M.data) == null ? void 0 : H.message) || J.message || r("errors.delete"), i("error", J);
|
|
5050
5055
|
} finally {
|
|
@@ -5270,7 +5275,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5270
5275
|
error: Fe.value,
|
|
5271
5276
|
title: g(r)("actions.delete.title"),
|
|
5272
5277
|
visible: je.value,
|
|
5273
|
-
onCancel:
|
|
5278
|
+
onCancel: nt,
|
|
5274
5279
|
onProceed: Ne
|
|
5275
5280
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
5276
5281
|
]);
|
|
@@ -5335,7 +5340,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5335
5340
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
5336
5341
|
setup(e, { expose: t, emit: i }) {
|
|
5337
5342
|
var Le;
|
|
5338
|
-
const a = i, r = e, o = q(!0), n = Nt(), { i18nT: s, i18n: { t: l } } =
|
|
5343
|
+
const a = i, r = e, o = q(!0), n = Nt(), { i18nT: s, i18n: { t: l } } = ut.useI18n(), { getMessageFromError: d } = Rs(), { axiosInstance: p } = mr((Le = r.config) == null ? void 0 : Le.axiosRequestConfig), u = Hs(), w = A(() => Xe.form[r.config.app].edit), y = A(() => r.gatewayServiceId ? St.Edit : St.Create), _ = q(!1), T = A(() => !!r.gatewayServiceId), k = q(T.value ? "protocol" : "url"), N = ut.usePortFromProtocol(), O = q(""), L = A(() => !!O.value), c = Ut({
|
|
5339
5344
|
fields: {
|
|
5340
5345
|
name: "",
|
|
5341
5346
|
protocol: "http",
|
|
@@ -5476,7 +5481,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5476
5481
|
var m, M;
|
|
5477
5482
|
let f = `${r.config.apiBaseUrl}${Xe.form[r.config.app][y.value]}`;
|
|
5478
5483
|
return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((m = r.config) == null ? void 0 : m.controlPlaneId) || "") : r.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (M = r.config) != null && M.workspace ? `/${r.config.workspace}` : "")), f = f.replace(/{id}/gi, r.gatewayServiceId), f;
|
|
5479
|
-
}),
|
|
5484
|
+
}), nt = (f) => {
|
|
5480
5485
|
let m = "";
|
|
5481
5486
|
f.url && (m = new URL(f.url).protocol), (["https", "wss", "tls"].includes(f.protocol) || ["https", "wss", "tls"].includes(m)) && (f.tls_verify = f.tls_verify_enabled ? f.tls_verify_value : null), delete f.tls_verify_enabled, delete f.tls_verify_value;
|
|
5482
5487
|
}, Ne = A(() => {
|
|
@@ -5504,7 +5509,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5504
5509
|
try {
|
|
5505
5510
|
c.isReadonly = !0, U();
|
|
5506
5511
|
const J = Ne.value;
|
|
5507
|
-
|
|
5512
|
+
nt(J);
|
|
5508
5513
|
let ee;
|
|
5509
5514
|
if (await p.post(bt.value, J), y.value === "create" ? ee = await p.post(We.value, J) : y.value === "edit" && (ee = ((f = r.config) == null ? void 0 : f.app) === "konnect" ? await p.put(We.value, J) : await p.patch(We.value, J)), ee) {
|
|
5510
5515
|
const { data: C } = ee;
|
|
@@ -5537,7 +5542,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5537
5542
|
config: e.config,
|
|
5538
5543
|
"edit-id": e.gatewayServiceId,
|
|
5539
5544
|
"enable-terraform": e.enableTerraform,
|
|
5540
|
-
"entity-type": g(
|
|
5545
|
+
"entity-type": g(at).GatewayService,
|
|
5541
5546
|
"error-message": c.errorMessage,
|
|
5542
5547
|
"fetch-url": w.value,
|
|
5543
5548
|
"form-fields": Ne.value,
|
|
@@ -5929,7 +5934,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5929
5934
|
},
|
|
5930
5935
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
5931
5936
|
setup(e) {
|
|
5932
|
-
const t = e, { i18n: { t: i }, i18nT: a } =
|
|
5937
|
+
const t = e, { i18n: { t: i }, i18nT: a } = ut.useI18n(), r = A(() => Xe.form[t.config.app].edit), { getPropValue: o } = Ds(), n = (l, d) => o(l, d) === !0 ? i("gateway_services.form.fields.tls_verify_option.true.display") : i("gateway_services.form.fields.tls_verify_option.false.display"), s = q({
|
|
5933
5938
|
id: {},
|
|
5934
5939
|
name: {
|
|
5935
5940
|
tooltip: i("gateway_services.form.fields.name.tooltip")
|
|
@@ -5995,7 +6000,7 @@ const Vs = ["aria-labelledby"], Fs = { class: "form-section-wrapper" }, qs = {
|
|
|
5995
6000
|
"config-card-doc": e.configCardDoc,
|
|
5996
6001
|
"config-schema": s.value,
|
|
5997
6002
|
"enable-terraform": e.enableTerraform,
|
|
5998
|
-
"entity-type": g(
|
|
6003
|
+
"entity-type": g(at).GatewayService,
|
|
5999
6004
|
"fetch-url": r.value,
|
|
6000
6005
|
"hide-title": e.hideTitle,
|
|
6001
6006
|
"onFetch:error": d[0] || (d[0] = (p) => l.$emit("fetch:error", p)),
|