twenty-sdk 2.23.0-alpha.1 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -4,7 +4,7 @@ import { fileURLToPath as t } from "node:url";
4
4
  import { dirname as n } from "node:path";
5
5
  e(import.meta.url);
6
6
  const r = t(import.meta.url), i = n(r);
7
- import { $ as a, At as o, B as s, C as c, Ct as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as T, R as E, S as D, St as O, Tt as k, U as A, V as j, W as ee, Z as te, _ as ne, _t as M, a as N, at as P, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, f as le, ft as ue, g as de, gt as fe, h as F, ht as pe, i as me, it as he, jt as ge, k as _e, kt as ve, l as ye, lt as be, m as xe, mt as Se, n as Ce, nt as we, o as Te, ot as Ee, p as De, pt as I, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, vt as Ie, w as Le, wt as Re, x as ze, xt as Be, y as Ve, yt as He, z as Ue } from "./login-CBkilp_U.mjs";
7
+ import { $ as a, At as o, B as s, C as c, Ct as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as T, R as E, S as D, St as O, Tt as k, U as A, V as j, W as ee, Z as te, _ as ne, _t as M, a as N, at as P, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, f as le, ft as ue, g as de, gt as fe, h as F, ht as pe, i as me, it as he, jt as ge, k as _e, kt as ve, l as ye, lt as be, m as xe, mt as Se, n as Ce, nt as we, o as Te, ot as Ee, p as De, pt as I, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, vt as Ie, w as Le, wt as Re, x as ze, xt as Be, y as Ve, yt as He, z as Ue } from "./login-DdR4uqe9.mjs";
8
8
  import We, { dirname as Ge, join as Ke, relative as qe } from "path";
9
9
  import { readFile as Je, readdir as Ye, writeFile as Xe } from "node:fs/promises";
10
10
  import { v4 as Ze } from "uuid";
@@ -3943,7 +3943,7 @@ export default defineViewField({
3943
3943
  file: Bt({ name: t })
3944
3944
  };
3945
3945
  }
3946
- default: He(e);
3946
+ default: Ie(e);
3947
3947
  }
3948
3948
  }
3949
3949
  async promptAndCreateObjectCompanions({ objectName: e, applicationUniversalIdentifier: t, customPath: n }) {
@@ -4363,7 +4363,7 @@ export default defineViewField({
4363
4363
  }
4364
4364
  }), e.command("catalog-sync", { hidden: !0 }).option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
4365
4365
  an("catalog-sync", "dev:catalog-sync");
4366
- let { CatalogSyncCommand: t } = await import("./catalog-sync-DMB2-zfb.mjs");
4366
+ let { CatalogSyncCommand: t } = await import("./catalog-sync-DEkMSrGS.mjs");
4367
4367
  await new t().execute({ remote: e.remote });
4368
4368
  });
4369
4369
  }, sn = class {
@@ -136248,7 +136248,7 @@ ${t.message}`), t;
136248
136248
  }), e.command("dev:add [entityType]").description(`Scaffold a new entity (${Object.values(fe).join("|")})`).option("--path <path>", "Path in which the entity should be created.").action(async (e, t) => {
136249
136249
  await a.execute(e, t?.path);
136250
136250
  }), e.command("dev:catalog-sync").description("Trigger marketplace catalog sync").option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
136251
- let { CatalogSyncCommand: t } = await import("./catalog-sync-DMB2-zfb.mjs");
136251
+ let { CatalogSyncCommand: t } = await import("./catalog-sync-DEkMSrGS.mjs");
136252
136252
  await new t().execute({ remote: e.remote });
136253
136253
  }), e.command("dev:generate-client [appPath]").description("Generate the typed API client from the active remote (no app definition required)").action(async (e) => {
136254
136254
  await o.execute({ appPath: ht(e) });
@@ -136335,7 +136335,7 @@ ${t.message}`), t;
136335
136335
  n("upgrade", "docker:upgrade"), await $r(e, t);
136336
136336
  }), t.command("catalog-sync").option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
136337
136337
  n("catalog-sync", "dev:catalog-sync");
136338
- let { CatalogSyncCommand: t } = await import("./catalog-sync-DMB2-zfb.mjs");
136338
+ let { CatalogSyncCommand: t } = await import("./catalog-sync-DEkMSrGS.mjs");
136339
136339
  await new t().execute({ remote: e.remote });
136340
136340
  });
136341
136341
  }, ti = /^(\d{1,3}\.){3}\d{1,3}$/, ni = (e) => {
@@ -136374,10 +136374,10 @@ ${t.message}`), t;
136374
136374
  return;
136375
136375
  }
136376
136376
  let i = e.url ?? e.apiUrl;
136377
- if (i) i = Ie(i);
136377
+ if (i) i = He(i);
136378
136378
  else {
136379
136379
  let t = await xe();
136380
- e.local ? (t || (console.error(ct.red("No local Twenty server found.\nStart one with: yarn twenty docker:start")), process.exit(1)), console.log(ct.gray(`Found local server at ${t}`)), i = t) : i = Ie((await lt.prompt([{
136380
+ e.local ? (t || (console.error(ct.red("No local Twenty server found.\nStart one with: yarn twenty docker:start")), process.exit(1)), console.log(ct.gray(`Found local server at ${t}`)), i = t) : i = He((await lt.prompt([{
136381
136381
  type: "input",
136382
136382
  name: "serverUrl",
136383
136383
  message: "Twenty server URL:",