@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.49 → 0.0.1-alpha.50

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.
@@ -18782,7 +18782,10 @@ const A_ = ze.div`
18782
18782
  persistedKeys: Ve,
18783
18783
  properties: G
18784
18784
  };
18785
- Re.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues", ye).then(({ data: dt }) => {
18785
+ Re.post(
18786
+ `/api/clusters/${e}/openapi-bff/forms/formSync/getYamlValuesByFromValues`,
18787
+ ye
18788
+ ).then(({ data: dt }) => {
18786
18789
  const Vt = dt, Et = `/api/clusters/${e}/k8s/${A === "builtin" ? "" : "apis/"}${E}${v ? `/namespaces/${Ne}` : ""}/${O}/${C ? "" : xe}`;
18787
18790
  C ? Wl({ endpoint: Et, body: Vt }).then((lt) => {
18788
18791
  console.log(lt), R && F(R);
@@ -18838,20 +18841,23 @@ const A_ = ze.div`
18838
18841
  persistedKeys: Ve,
18839
18842
  properties: G
18840
18843
  };
18841
- Re.post("/openapi-bff/forms/formSync/getYamlValuesByFromValues", Je).then(({ data: ye }) => ge(ye));
18844
+ Re.post(
18845
+ `/api/clusters/${e}/openapi-bff/forms/formSync/getYamlValuesByFromValues`,
18846
+ Je
18847
+ ).then(({ data: ye }) => ge(ye));
18842
18848
  },
18843
- [B, ge, G, Ve]
18849
+ [B, ge, G, Ve, e]
18844
18850
  ), Oe = Pi(
18845
18851
  (xe) => {
18846
18852
  const Ne = {
18847
18853
  values: xe,
18848
18854
  properties: G
18849
18855
  };
18850
- Re.post("/openapi-bff/forms/formSync/getFormValuesByYaml", Ne).then(({ data: Je }) => {
18856
+ Re.post(`/api/clusters/${e}/openapi-bff/forms/formSync/getFormValuesByYaml`, Ne).then(({ data: Je }) => {
18851
18857
  Je && B.setFieldsValue(Je);
18852
18858
  });
18853
18859
  },
18854
- [B, G]
18860
+ [B, G, e]
18855
18861
  ), Te = Is(() => {
18856
18862
  const xe = {};
18857
18863
  if (C && (Gt.set(xe, ["apiVersion"], E === "api/v1" ? "v1" : E), Gt.set(xe, ["kind"], b)), o && o.spec.values.forEach(({ path: Je, value: ye }) => {
@@ -19022,7 +19028,7 @@ const A_ = ze.div`
19022
19028
  clusterName: t,
19023
19029
  customizationId: a
19024
19030
  };
19025
- Re.post("/openapi-bff/forms/formPrepare/prepareFormProps", _).then(({ data: I }) => {
19031
+ Re.post(`/api/clusters/${t}/openapi-bff/forms/formPrepare/prepareFormProps`, _).then(({ data: I }) => {
19026
19032
  I.isNamespaced && b(!0), I.result === "error" ? (R(I.error), console.log(I.error), P()) : v({
19027
19033
  properties: I.properties,
19028
19034
  required: I.required || [],
@@ -20177,7 +20183,7 @@ const M8 = {
20177
20183
  clusterName: o
20178
20184
  };
20179
20185
  return (await Re.post(
20180
- "/openapi-bff/scopes/filterScopes/filterIfApiNamespaceScoped",
20186
+ `/api/clusters/${o}/openapi-bff/scopes/filterScopes/filterIfApiNamespaceScoped`,
20181
20187
  a
20182
20188
  )).data;
20183
20189
  }, f4 = async ({
@@ -20191,7 +20197,7 @@ const M8 = {
20191
20197
  clusterName: n
20192
20198
  };
20193
20199
  return (await Re.post(
20194
- "/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped",
20200
+ `/api/clusters/${n}/openapi-bff/scopes/filterScopes/filterIfBuiltInNamespaceScoped`,
20195
20201
  i
20196
20202
  )).data;
20197
20203
  }, ok = async ({
@@ -20348,7 +20354,7 @@ const M8 = {
20348
20354
  `/api/clusters/${e}/k8s/apis/apiextensions.k8s.io/${t}/customresourcedefinitions/${n}`
20349
20355
  ), ck = async ({
20350
20356
  clusterName: e
20351
- }) => Re.get(`/openapi-bff/swagger/swagger/${e}`), lk = async ({
20357
+ }) => Re.get(`/api/clusters/${e}/openapi-bff/swagger/swagger/${e}`), lk = async ({
20352
20358
  typeName: e,
20353
20359
  apiGroup: t,
20354
20360
  apiVersion: n,
@@ -20360,7 +20366,7 @@ const M8 = {
20360
20366
  apiVersion: n,
20361
20367
  clusterName: i
20362
20368
  }, { data: a } = await Re.post(
20363
- "/openapi-bff/scopes/checkScopes/checkIfApiNamespaceScoped",
20369
+ `/api/clusters/${i}/openapi-bff/scopes/checkScopes/checkIfApiNamespaceScoped`,
20364
20370
  o
20365
20371
  );
20366
20372
  return a;
@@ -20372,7 +20378,7 @@ const M8 = {
20372
20378
  typeName: e,
20373
20379
  clusterName: t
20374
20380
  }, { data: i } = await Re.post(
20375
- "/openapi-bff/scopes/checkScopes/checkIfBuiltInNamespaceScoped",
20381
+ `/api/clusters/${t}/openapi-bff/scopes/checkScopes/checkIfBuiltInNamespaceScoped`,
20376
20382
  n
20377
20383
  );
20378
20384
  return i;