twenty-sdk 2.3.1 → 2.4.1

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.
@@ -2,12 +2,12 @@ import * as Ln from "fs";
2
2
  import ys from "fs";
3
3
  import { execSync as xt } from "child_process";
4
4
  import * as he from "path";
5
- import B, { join as Ie, dirname as ms, relative as ia, extname as ws, basename as vs } from "path";
5
+ import B, { join as Ie, dirname as ms, relative as na, extname as ws, basename as vs } from "path";
6
6
  import js from "node:http";
7
7
  import { execFile as Vi, execSync as Me, spawnSync as Hi, spawn as Ss } from "node:child_process";
8
8
  import $n from "node:crypto";
9
9
  import ce from "axios";
10
- import ra from "chalk";
10
+ import da from "chalk";
11
11
  import { promisify as Cs } from "node:util";
12
12
  import { mkdir as qi, access as Ot, writeFile as Fe, readFile as fa, readdir as Is, rm as Gt, cp as Ls, mkdtemp as $s } from "node:fs/promises";
13
13
  import * as Qt from "os";
@@ -15,7 +15,7 @@ import ks from "os";
15
15
  import Wt from "crypto";
16
16
  import * as en from "esbuild";
17
17
  import { g as an } from "./get-front-component-build-plugins-BGeVpUW3.mjs";
18
- import { isUndefined as Ys, isNull as Ts, isNonEmptyString as da, isNumber as As, isNonEmptyArray as nn, isString as Ds, isObject as Zs } from "@sniptt/guards";
18
+ import { isUndefined as Ys, isNull as Ts, isNonEmptyString as Ge, isNumber as As, isNonEmptyArray as nn, isString as Ds, isObject as Zs } from "@sniptt/guards";
19
19
  import kn, { dirname as Ps, join as Ms } from "node:path";
20
20
  import { v4 as Js, v5 as $a, validate as Es, version as Ns } from "uuid";
21
21
  import { replaceCoreClient as Fs } from "twenty-client-sdk/generate";
@@ -23,7 +23,7 @@ import { existsSync as Rs } from "node:fs";
23
23
  import Le, { z as K } from "zod";
24
24
  import { createClient as _s } from "graphql-sse";
25
25
  import { getIntrospectionQuery as Hs, buildClientSchema as Xs, printSchema as Bs } from "graphql";
26
- import * as na from "typescript";
26
+ import * as ta from "typescript";
27
27
  import * as xs from "fs/promises";
28
28
  import { createRequire as Os } from "module";
29
29
  import { glob as Kt } from "tinyglobby";
@@ -215,13 +215,15 @@ const Vs = {
215
215
  name: "primaryPhoneCountryCode",
216
216
  type: I.TEXT,
217
217
  hidden: !1,
218
- isRequired: !1
218
+ isRequired: !1,
219
+ isIncludedInUniqueConstraint: !0
219
220
  },
220
221
  {
221
222
  name: "primaryPhoneCallingCode",
222
223
  type: I.TEXT,
223
224
  hidden: !1,
224
- isRequired: !1
225
+ isRequired: !1,
226
+ isIncludedInUniqueConstraint: !0
225
227
  },
226
228
  {
227
229
  name: "additionalPhones",
@@ -252,9 +254,9 @@ K.object({
252
254
  markdown: K.string().nullable()
253
255
  });
254
256
  I.LINKS, I.CURRENCY, I.FULL_NAME, I.ADDRESS, I.ACTOR, I.EMAILS, I.PHONES, I.RICH_TEXT;
255
- var Vt = /* @__PURE__ */ ((e) => (e.COPY = "COPY", e.OPEN_LINK = "OPEN_LINK", e.OPEN_IN_APP = "OPEN_IN_APP", e))(Vt || {}), qt = /* @__PURE__ */ ((e) => (e.FLOAT = "float", e.INT = "int", e.BIGINT = "bigint", e))(qt || {}), eo = /* @__PURE__ */ ((e) => (e.RELATIVE = "RELATIVE", e.USER_SETTINGS = "USER_SETTINGS", e.CUSTOM = "CUSTOM", e))(eo || {}), me = /* @__PURE__ */ ((e) => (e.ProfilePicture = "profile-picture", e.WorkspaceLogo = "workspace-logo", e.Attachment = "attachment", e.PersonPicture = "person-picture", e.CorePicture = "core-picture", e.File = "file", e.AgentChat = "agent-chat", e.BuiltLogicFunction = "built-logic-function", e.BuiltFrontComponent = "built-front-component", e.PublicAsset = "public-asset", e.Source = "source", e.FilesField = "files-field", e.Dependencies = "dependencies", e.Workflow = "workflow", e.EmailAttachment = "email-attachment", e.AppTarball = "app-tarball", e.GeneratedSdkClient = "generated-sdk-client", e))(me || {}), ao = /* @__PURE__ */ ((e) => (e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e))(ao || {}), io = /* @__PURE__ */ ((e) => (e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e))(io || {}), no = /* @__PURE__ */ ((e) => (e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e))(no || {}), tn = /* @__PURE__ */ ((e) => (e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e))(tn || {}), Ge = /* @__PURE__ */ ((e) => (e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e))(Ge || {}), to = /* @__PURE__ */ ((e) => (e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e))(to || {}), oo = /* @__PURE__ */ ((e) => (e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e))(oo || {}), so = /* @__PURE__ */ ((e) => (e.INDEX = "INDEX", e))(so || {}), uo = /* @__PURE__ */ ((e) => (e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e))(uo || {}), ta = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(ta || {}), ro = /* @__PURE__ */ ((e) => (e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e))(ro || {}), lo = /* @__PURE__ */ ((e) => (e.WORKSPACE = "WORKSPACE", e.UNLISTED = "UNLISTED", e))(lo || {});
257
+ var Vt = /* @__PURE__ */ ((e) => (e.COPY = "COPY", e.OPEN_LINK = "OPEN_LINK", e.OPEN_IN_APP = "OPEN_IN_APP", e))(Vt || {}), qt = /* @__PURE__ */ ((e) => (e.FLOAT = "float", e.INT = "int", e.BIGINT = "bigint", e))(qt || {}), eo = /* @__PURE__ */ ((e) => (e.RELATIVE = "RELATIVE", e.USER_SETTINGS = "USER_SETTINGS", e.CUSTOM = "CUSTOM", e))(eo || {}), me = /* @__PURE__ */ ((e) => (e.ProfilePicture = "profile-picture", e.WorkspaceLogo = "workspace-logo", e.Attachment = "attachment", e.PersonPicture = "person-picture", e.CorePicture = "core-picture", e.File = "file", e.AgentChat = "agent-chat", e.BuiltLogicFunction = "built-logic-function", e.BuiltFrontComponent = "built-front-component", e.PublicAsset = "public-asset", e.Source = "source", e.FilesField = "files-field", e.Dependencies = "dependencies", e.Workflow = "workflow", e.EmailAttachment = "email-attachment", e.AppTarball = "app-tarball", e.GeneratedSdkClient = "generated-sdk-client", e))(me || {}), ao = /* @__PURE__ */ ((e) => (e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e))(ao || {}), io = /* @__PURE__ */ ((e) => (e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e))(io || {}), no = /* @__PURE__ */ ((e) => (e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e))(no || {}), tn = /* @__PURE__ */ ((e) => (e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e))(tn || {}), Qe = /* @__PURE__ */ ((e) => (e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e))(Qe || {}), to = /* @__PURE__ */ ((e) => (e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e))(to || {}), oo = /* @__PURE__ */ ((e) => (e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e))(oo || {}), so = /* @__PURE__ */ ((e) => (e.INDEX = "INDEX", e))(so || {}), uo = /* @__PURE__ */ ((e) => (e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e))(uo || {}), oa = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(oa || {}), ro = /* @__PURE__ */ ((e) => (e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e))(ro || {}), lo = /* @__PURE__ */ ((e) => (e.WORKSPACE = "WORKSPACE", e.UNLISTED = "UNLISTED", e))(lo || {});
256
258
  const He = (e) => !Ys(e) && !Ts(e);
257
- var ge = "INUMBER", pa = "IOP1", ba = "IOP2", ya = "IOP3", Ze = "IVAR", Qe = "IVARNAME", ga = "IFUNCALL", pi = "IFUNDEF", ue = "IEXPR", on = "IEXPREVAL", We = "IMEMBER", bi = "IENDSTATEMENT", ha = "IARRAY";
259
+ var ge = "INUMBER", pa = "IOP1", ba = "IOP2", ya = "IOP3", Ze = "IVAR", We = "IVARNAME", ga = "IFUNCALL", pi = "IFUNDEF", ue = "IEXPR", on = "IEXPREVAL", Ke = "IMEMBER", bi = "IENDSTATEMENT", ha = "IARRAY";
258
260
  function E(e, a) {
259
261
  this.type = e, this.value = a ?? 0;
260
262
  }
@@ -265,7 +267,7 @@ E.prototype.toString = function() {
265
267
  case ba:
266
268
  case ya:
267
269
  case Ze:
268
- case Qe:
270
+ case We:
269
271
  case bi:
270
272
  return this.value;
271
273
  case ga:
@@ -274,7 +276,7 @@ E.prototype.toString = function() {
274
276
  return "DEF " + this.value;
275
277
  case ha:
276
278
  return "ARRAY " + this.value;
277
- case We:
279
+ case Ke:
278
280
  return "." + this.value;
279
281
  default:
280
282
  return "Invalid Instruction";
@@ -292,7 +294,7 @@ function go(e) {
292
294
  function Bi(e, a, i, n, u) {
293
295
  for (var r = [], l = [], g, h, c, d, p = 0; p < e.length; p++) {
294
296
  var o = e[p], s = o.type;
295
- if (s === ge || s === Qe)
297
+ if (s === ge || s === We)
296
298
  Array.isArray(o.value) ? r.push.apply(r, Bi(o.value.map(function(t) {
297
299
  return new E(ge, t);
298
300
  }).concat(new E(ha, o.value.length)), a, i, n, u)) : r.push(o);
@@ -308,7 +310,7 @@ function Bi(e, a, i, n, u) {
308
310
  for (; r.length > 0; )
309
311
  l.push(r.shift());
310
312
  l.push(new E(ue, Bi(o.value, a, i, n, u)));
311
- } else if (s === We && r.length > 0)
313
+ } else if (s === Ke && r.length > 0)
312
314
  g = r.pop(), r.push(new E(ge, g.value[o.value]));
313
315
  else {
314
316
  for (; r.length > 0; )
@@ -389,7 +391,7 @@ function xe(e, a, i) {
389
391
  return Ye(e, i);
390
392
  for (var d = e.length, p = 0; p < d; p++) {
391
393
  var o = e[p], s = o.type;
392
- if (s === ge || s === Qe)
394
+ if (s === ge || s === We)
393
395
  n.push(o.value);
394
396
  else if (s === ba)
395
397
  r = n.pop(), u = n.pop(), o.value === "and" ? n.push(u ? !!xe(r, a, i) : !1) : o.value === "or" ? n.push(u ? !0 : !!xe(r, a, i)) : o.value === "=" ? (g = a.binaryOps[o.value], n.push(g(u, xe(r, a, i), i))) : (g = a.binaryOps[o.value], n.push(g(Ye(u, i), Ye(r, i))));
@@ -437,7 +439,7 @@ function xe(e, a, i) {
437
439
  n.push(ou(o, a));
438
440
  else if (s === on)
439
441
  n.push(o);
440
- else if (s === We) {
442
+ else if (s === Ke) {
441
443
  if (u = n.pop(), /^__proto__|prototype|constructor$/.test(o.value))
442
444
  throw new Error("prototype access detected in MEMBER");
443
445
  if (typeof u == "object" && typeof u[o.value] == "function" && !Li(u[o.value], a, i))
@@ -482,7 +484,7 @@ function un(e, a) {
482
484
  i.push("(" + n + " ? " + u + " : " + r + ")");
483
485
  else
484
486
  throw new Error("invalid Expression");
485
- else if (p === Ze || p === Qe)
487
+ else if (p === Ze || p === We)
486
488
  i.push(d.value);
487
489
  else if (p === pa)
488
490
  n = i.pop(), l = d.value, l === "-" || l === "+" ? i.push("(" + l + n + ")") : a ? l === "not" ? i.push("(!" + n + ")") : l === "!" ? i.push("fac(" + n + ")") : i.push(l + "(" + n + ")") : l === "!" ? i.push("(" + n + "!)") : i.push("(" + l + " " + n + ")");
@@ -494,7 +496,7 @@ function un(e, a) {
494
496
  for (u = i.pop(), h = d.value, g = []; h-- > 0; )
495
497
  g.unshift(i.pop());
496
498
  n = i.pop(), a ? i.push("(" + n + " = function(" + g.join(", ") + ") { return " + u + " })") : i.push("(" + n + "(" + g.join(", ") + ") = " + u + ")");
497
- } else if (p === We)
499
+ } else if (p === Ke)
498
500
  n = i.pop(), i.push(n + "." + d.value);
499
501
  else if (p === ha) {
500
502
  for (h = d.value, g = []; h-- > 0; )
@@ -509,7 +511,7 @@ function un(e, a) {
509
511
  function Yn(e) {
510
512
  return typeof e == "string" ? JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") : e;
511
513
  }
512
- function oa(e, a) {
514
+ function sa(e, a) {
513
515
  for (var i = 0; i < e.length; i++)
514
516
  if (e[i] === a)
515
517
  return !0;
@@ -519,9 +521,9 @@ function rn(e, a, i) {
519
521
  i = i || {};
520
522
  for (var n = !!i.withMembers, u = null, r = 0; r < e.length; r++) {
521
523
  var l = e[r];
522
- l.type === Ze || l.type === Qe ? !n && !oa(a, l.value) ? a.push(l.value) : (u !== null && (oa(a, u) || a.push(u)), u = l.value) : l.type === We && n && u !== null ? u += "." + l.value : l.type === ue ? rn(l.value, a, i) : u !== null && (oa(a, u) || a.push(u), u = null);
524
+ l.type === Ze || l.type === We ? !n && !sa(a, l.value) ? a.push(l.value) : (u !== null && (sa(a, u) || a.push(u)), u = l.value) : l.type === Ke && n && u !== null ? u += "." + l.value : l.type === ue ? rn(l.value, a, i) : u !== null && (sa(a, u) || a.push(u), u = null);
523
525
  }
524
- u !== null && !oa(a, u) && a.push(u);
526
+ u !== null && !sa(a, u) && a.push(u);
525
527
  }
526
528
  function ve(e, a) {
527
529
  this.tokens = e, this.parser = a, this.unaryOps = a.unaryOps, this.binaryOps = a.binaryOps, this.ternaryOps = a.ternaryOps, this.functions = a.functions;
@@ -805,7 +807,7 @@ _.prototype.next = function() {
805
807
  return this.current = this.nextToken, this.nextToken = this.tokens.next();
806
808
  };
807
809
  _.prototype.tokenMatches = function(e, a) {
808
- return typeof a > "u" ? !0 : Array.isArray(a) ? oa(a, e.value) : typeof a == "function" ? a(e) : e.value === a;
810
+ return typeof a > "u" ? !0 : Array.isArray(a) ? sa(a, e.value) : typeof a == "function" ? a(e) : e.value === a;
809
811
  };
810
812
  _.prototype.save = function() {
811
813
  this.savedCurrent = this.current, this.savedNextToken = this.nextToken, this.tokens.save();
@@ -870,14 +872,14 @@ _.prototype.parseVariableAssignmentExpression = function(e) {
870
872
  throw new Error("function definition is not permitted");
871
873
  for (var u = 0, r = a.value + 1; u < r; u++) {
872
874
  var l = n - u;
873
- e[l].type === Ze && (e[l] = new E(Qe, e[l].value));
875
+ e[l].type === Ze && (e[l] = new E(We, e[l].value));
874
876
  }
875
877
  this.parseVariableAssignmentExpression(i), e.push(new E(ue, i)), e.push(new E(pi, a.value));
876
878
  continue;
877
879
  }
878
- if (a.type !== Ze && a.type !== We)
880
+ if (a.type !== Ze && a.type !== Ke)
879
881
  throw new Error("expected variable for assignment");
880
- this.parseVariableAssignmentExpression(i), e.push(new E(Qe, a.value)), e.push(new E(ue, i)), e.push(Je("="));
882
+ this.parseVariableAssignmentExpression(i), e.push(new E(We, a.value)), e.push(new E(ue, i)), e.push(Je("="));
881
883
  }
882
884
  };
883
885
  _.prototype.parseConditionalExpression = function(e) {
@@ -976,7 +978,7 @@ _.prototype.parseMemberExpression = function(e) {
976
978
  if (a.value === ".") {
977
979
  if (!this.allowMemberAccess)
978
980
  throw new Error('unexpected ".", member access is not permitted');
979
- this.expect(dn), e.push(new E(We, this.current.value));
981
+ this.expect(dn), e.push(new E(Ke, this.current.value));
980
982
  } else if (a.value === "[") {
981
983
  if (!this.tokens.isOperatorEnabled("["))
982
984
  throw new Error('unexpected "[]", arrays are disabled');
@@ -1028,7 +1030,7 @@ function Cu(e, a) {
1028
1030
  return !!(e || a);
1029
1031
  }
1030
1032
  function Iu(e, a) {
1031
- return oa(a, e);
1033
+ return sa(a, e);
1032
1034
  }
1033
1035
  function Lu(e) {
1034
1036
  return (Math.exp(e) - Math.exp(-e)) / 2;
@@ -1198,7 +1200,7 @@ function qu(e) {
1198
1200
  return a + Number(i);
1199
1201
  }, 0);
1200
1202
  }
1201
- function Ke(e) {
1203
+ function Ue(e) {
1202
1204
  this.options = e || {}, this.unaryOps = {
1203
1205
  sin: Math.sin,
1204
1206
  cos: Math.cos,
@@ -1280,7 +1282,7 @@ function Ke(e) {
1280
1282
  false: !1
1281
1283
  };
1282
1284
  }
1283
- Ke.prototype.parse = function(e) {
1285
+ Ue.prototype.parse = function(e) {
1284
1286
  var a = [], i = new _(
1285
1287
  this,
1286
1288
  new O(this, e),
@@ -1288,14 +1290,14 @@ Ke.prototype.parse = function(e) {
1288
1290
  );
1289
1291
  return i.parseExpression(a), i.expect(Ya, "EOF"), new ve(a, this);
1290
1292
  };
1291
- Ke.prototype.evaluate = function(e, a) {
1293
+ Ue.prototype.evaluate = function(e, a) {
1292
1294
  return this.parse(e).evaluate(a);
1293
1295
  };
1294
- var po = new Ke();
1295
- Ke.parse = function(e) {
1296
+ var po = new Ue();
1297
+ Ue.parse = function(e) {
1296
1298
  return po.parse(e);
1297
1299
  };
1298
- Ke.evaluate = function(e, a) {
1300
+ Ue.evaluate = function(e, a) {
1299
1301
  return po.parse(e).evaluate(a);
1300
1302
  };
1301
1303
  var Mn = {
@@ -1325,7 +1327,7 @@ var Mn = {
1325
1327
  function er(e) {
1326
1328
  return Object.hasOwn(Mn, e) ? Mn[e] : e;
1327
1329
  }
1328
- Ke.prototype.isOperatorEnabled = function(e) {
1330
+ Ue.prototype.isOperatorEnabled = function(e) {
1329
1331
  var a = er(e), i = this.options.operators || {};
1330
1332
  return !(a in i) || !!i[a];
1331
1333
  };
@@ -1651,10 +1653,10 @@ function yo() {
1651
1653
  a.default = n, e.exports = a.default;
1652
1654
  })(Qa, Qa.exports)), Qa.exports;
1653
1655
  }
1654
- var qe = {}, Wn;
1656
+ var ea = {}, Wn;
1655
1657
  function mo() {
1656
- if (Wn) return qe;
1657
- Wn = 1, qe.__esModule = !0, qe.createProtoAccessControl = r, qe.resultIsAllowed = l, qe.resetLoggedProperties = c;
1658
+ if (Wn) return ea;
1659
+ Wn = 1, ea.__esModule = !0, ea.createProtoAccessControl = r, ea.resultIsAllowed = l, ea.resetLoggedProperties = c;
1658
1660
  function e(d) {
1659
1661
  return d && d.__esModule ? d : { default: d };
1660
1662
  }
@@ -1690,7 +1692,7 @@ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-contr
1690
1692
  delete u[d];
1691
1693
  });
1692
1694
  }
1693
- return qe;
1695
+ return ea;
1694
1696
  }
1695
1697
  var Kn;
1696
1698
  function hn() {
@@ -2046,7 +2048,7 @@ function vo() {
2046
2048
  a.default = i, e.exports = a.default;
2047
2049
  })(za, za.exports)), za.exports;
2048
2050
  }
2049
- var ea = {}, Va = { exports: {} }, it;
2051
+ var aa = {}, Va = { exports: {} }, it;
2050
2052
  function fr() {
2051
2053
  return it || (it = 1, (function(e, a) {
2052
2054
  a.__esModule = !0;
@@ -2866,8 +2868,8 @@ function br() {
2866
2868
  }
2867
2869
  var st;
2868
2870
  function yr() {
2869
- if (st) return ea;
2870
- st = 1, ea.__esModule = !0, ea.parseWithoutProcessing = o, ea.parse = s;
2871
+ if (st) return aa;
2872
+ st = 1, aa.__esModule = !0, aa.parseWithoutProcessing = o, aa.parse = s;
2871
2873
  function e(y) {
2872
2874
  if (y && y.__esModule)
2873
2875
  return y;
@@ -2881,7 +2883,7 @@ function yr() {
2881
2883
  return y && y.__esModule ? y : { default: y };
2882
2884
  }
2883
2885
  var i = fr(), n = a(i), u = pr(), r = a(u), l = br(), g = e(l), h = fe(), c = a(h), d = re();
2884
- ea.parser = n.default;
2886
+ aa.parser = n.default;
2885
2887
  var p = {};
2886
2888
  d.extend(p, g);
2887
2889
  function o(y, m) {
@@ -2929,12 +2931,12 @@ function yr() {
2929
2931
  function b(y) {
2930
2932
  return typeof y == "number" && isFinite(y) && Math.floor(y) === y && y >= 0;
2931
2933
  }
2932
- return ea;
2934
+ return aa;
2933
2935
  }
2934
- var aa = {}, ut;
2936
+ var ia = {}, ut;
2935
2937
  function mr() {
2936
- if (ut) return aa;
2937
- ut = 1, aa.__esModule = !0, aa.Compiler = g, aa.precompile = h, aa.compile = c;
2938
+ if (ut) return ia;
2939
+ ut = 1, ia.__esModule = !0, ia.Compiler = g, ia.precompile = h, ia.compile = c;
2938
2940
  function e(o) {
2939
2941
  return o && o.__esModule ? o : { default: o };
2940
2942
  }
@@ -3176,7 +3178,7 @@ function mr() {
3176
3178
  };
3177
3179
  }
3178
3180
  }
3179
- return aa;
3181
+ return ia;
3180
3182
  }
3181
3183
  var ai = { exports: {} }, ii = { exports: {} }, Ca = {}, ki = {}, ni = {}, ti = {}, rt;
3182
3184
  function wr() {
@@ -5143,14 +5145,14 @@ function Zr() {
5143
5145
  return T?.[J];
5144
5146
  };
5145
5147
  }
5146
- var ze = $e(V);
5148
+ var Ve = $e(V);
5147
5149
  function ja(T) {
5148
5150
  return N.test(T);
5149
5151
  }
5150
5152
  function Ii(T) {
5151
5153
  return pe.test(T);
5152
5154
  }
5153
- function Ve(T) {
5155
+ function qe(T) {
5154
5156
  return ja(T) ? as(T) : Q(T);
5155
5157
  }
5156
5158
  function as(T) {
@@ -5182,7 +5184,7 @@ function Zr() {
5182
5184
  function rs(T) {
5183
5185
  return function(J) {
5184
5186
  J = Pa(J);
5185
- var R = ja(J) ? Ve(J) : void 0, ke = R ? R[0] : J.charAt(0), ne = R ? us(R, 1).join("") : J.slice(1);
5187
+ var R = ja(J) ? qe(J) : void 0, ke = R ? R[0] : J.charAt(0), ne = R ? us(R, 1).join("") : J.slice(1);
5186
5188
  return ke[T]() + ne;
5187
5189
  };
5188
5190
  }
@@ -5207,7 +5209,7 @@ function Zr() {
5207
5209
  return ps(Pa(T).toLowerCase());
5208
5210
  }
5209
5211
  function fs(T) {
5210
- return T = Pa(T), T && T.replace(i, ze).replace(Ci, "");
5212
+ return T = Pa(T), T && T.replace(i, Ve).replace(Ci, "");
5211
5213
  }
5212
5214
  var ps = rs("toUpperCase");
5213
5215
  function bs(T, J, R) {
@@ -5748,37 +5750,37 @@ const Ni = (e) => !!(Array.isArray(e) && As(e.length) && e.length > 0), Ur = (e,
5748
5750
  n = n[u];
5749
5751
  }
5750
5752
  return n;
5751
- }, Ue = (e, a) => (i, n) => nn(i) ? i[e](
5753
+ }, ze = (e, a) => (i, n) => nn(i) ? i[e](
5752
5754
  (u) => a(Ao(u, n))
5753
5755
  ) : !1, ma = (e, a) => (i, n, u) => nn(i) ? i[e](
5754
5756
  (r) => a(Ao(r, n), u)
5755
- ) : !1, U = new Ke();
5757
+ ) : !1, U = new Ue();
5756
5758
  U.functions.isDefined = (e) => He(e);
5757
- U.functions.isNonEmptyString = (e) => da(e);
5759
+ U.functions.isNonEmptyString = (e) => Ge(e);
5758
5760
  U.functions.includes = (e, a) => Array.isArray(e) && e.includes(a);
5759
5761
  U.functions.arrayLength = (e) => Array.isArray(e) ? e.length : 0;
5760
- U.functions.every = Ue(
5762
+ U.functions.every = ze(
5761
5763
  "every",
5762
5764
  Boolean
5763
5765
  );
5764
- U.functions.everyDefined = Ue(
5766
+ U.functions.everyDefined = ze(
5765
5767
  "every",
5766
5768
  He
5767
5769
  );
5768
- U.functions.some = Ue(
5770
+ U.functions.some = ze(
5769
5771
  "some",
5770
5772
  Boolean
5771
5773
  );
5772
- U.functions.someDefined = Ue(
5774
+ U.functions.someDefined = ze(
5773
5775
  "some",
5774
5776
  He
5775
5777
  );
5776
- U.functions.someNonEmptyString = Ue("some", da);
5777
- U.functions.none = Ue(
5778
+ U.functions.someNonEmptyString = ze("some", Ge);
5779
+ U.functions.none = ze(
5778
5780
  "every",
5779
5781
  (e) => !e
5780
5782
  );
5781
- U.functions.noneDefined = Ue(
5783
+ U.functions.noneDefined = ze(
5782
5784
  "every",
5783
5785
  (e) => !He(e)
5784
5786
  );
@@ -5806,7 +5808,7 @@ U.functions.includesNone = ma(
5806
5808
  "every",
5807
5809
  (e, a) => Array.isArray(e) && !e.includes(a)
5808
5810
  );
5809
- const gi = (e) => da(e) ? e[0].toUpperCase() + e.slice(1) : "", Vr = (e) => gi(Mr(e));
5811
+ const gi = (e) => Ge(e) ? e[0].toUpperCase() + e.slice(1) : "", Vr = (e) => gi(Mr(e));
5810
5812
  I.NUMBER, I.NUMERIC, I.CURRENCY, I.RATING, I.POSITION;
5811
5813
  I.TEXT, I.RICH_TEXT;
5812
5814
  Object.entries(
@@ -6055,7 +6057,7 @@ const fn = async (e) => {
6055
6057
  return [];
6056
6058
  const a = [];
6057
6059
  for (const i of e)
6058
- da(i.label) || a.push("Field must have a label"), da(i.name) || a.push(`Field "${i.label}" must have a name`), da(i.universalIdentifier) || a.push(`Field "${i.label}" must have a universalIdentifier`), (i.type === I.SELECT || i.type === I.MULTI_SELECT) && (!Array.isArray(i.options) || i.options.length === 0) && a.push(
6060
+ Ge(i.label) || a.push("Field must have a label"), Ge(i.name) || a.push(`Field "${i.label}" must have a name`), Ge(i.universalIdentifier) || a.push(`Field "${i.label}" must have a universalIdentifier`), (i.type === I.SELECT || i.type === I.MULTI_SELECT) && (!Array.isArray(i.options) || i.options.length === 0) && a.push(
6059
6061
  `Field "${i.label}" is a SELECT/MULTI_SELECT type and must have options`
6060
6062
  ), i.isUnique === !0 && (i.type === I.RELATION || i.type === I.MORPH_RELATION || i.type === I.FILES) && a.push(
6061
6063
  `Field "${i.label}" of type ${i.type} cannot be unique`
@@ -6307,9 +6309,9 @@ class Mo {
6307
6309
  return g.length && (u = this.replaceString(u, g)), u;
6308
6310
  }
6309
6311
  }
6310
- const Ad = Object.assign(Object.assign({}, se(Wi)), { allowedChars: "a-zA-Z0-9-_.~", lowercase: !0, separator: "-", uppercase: !1, fixChineseSpacing: !0 }), sa = new Mo(), Pt = sa.transliterate.bind(sa);
6311
- Pt.config = sa.config.bind(sa), Pt.setData = sa.setData.bind(sa);
6312
- const ua = new class extends Mo {
6312
+ const Ad = Object.assign(Object.assign({}, se(Wi)), { allowedChars: "a-zA-Z0-9-_.~", lowercase: !0, separator: "-", uppercase: !1, fixChineseSpacing: !0 }), ua = new Mo(), Pt = ua.transliterate.bind(ua);
6313
+ Pt.config = ua.config.bind(ua), Pt.setData = ua.setData.bind(ua);
6314
+ const ra = new class extends Mo {
6313
6315
  get options() {
6314
6316
  return se(Object.assign(Object.assign({}, Ad), this.confOptions));
6315
6317
  }
@@ -6322,8 +6324,8 @@ const ua = new class extends Mo {
6322
6324
  let u = this.transliterate(e, i);
6323
6325
  return u = Po(u, RegExp(`[^${i.allowedChars}]+`, "g"), i.separator, i.ignore), n && (u = u.replace(RegExp(`^${n}+|${n}$`, "g"), "")), i.lowercase && (u = u.toLowerCase()), i.uppercase && (u = u.toUpperCase()), u;
6324
6326
  }
6325
- }(), Mt = ua.slugify.bind(ua);
6326
- Mt.config = ua.config.bind(ua), Mt.setData = ua.setData.bind(ua);
6327
+ }(), Mt = ra.slugify.bind(ra);
6328
+ Mt.config = ra.config.bind(ra), Mt.setData = ra.setData.bind(ra);
6327
6329
  const _e = {
6328
6330
  attachment: {
6329
6331
  universalIdentifier: "20202020-bd3d-4c60-8dca-571c71d4447a",
@@ -9596,8 +9598,8 @@ const Md = (e) => {
9596
9598
  i.universalIdentifier || a.push("ViewFieldGroup must have a universalIdentifier");
9597
9599
  if (e.sorts)
9598
9600
  for (const i of e.sorts)
9599
- i.universalIdentifier || a.push("ViewSort must have a universalIdentifier"), i.fieldMetadataUniversalIdentifier || a.push("ViewSort must have a fieldMetadataUniversalIdentifier"), i.direction !== ta.ASC && i.direction !== ta.DESC && a.push(
9600
- `ViewSort direction must be '${ta.ASC}' or '${ta.DESC}'`
9601
+ i.universalIdentifier || a.push("ViewSort must have a universalIdentifier"), i.fieldMetadataUniversalIdentifier || a.push("ViewSort must have a fieldMetadataUniversalIdentifier"), i.direction !== oa.ASC && i.direction !== oa.DESC && a.push(
9602
+ `ViewSort direction must be '${oa.ASC}' or '${oa.DESC}'`
9601
9603
  );
9602
9604
  return z({ config: e, errors: a });
9603
9605
  }, Ed = (e) => {
@@ -9627,7 +9629,7 @@ const Md = (e) => {
9627
9629
  OnDeleteAction: tn,
9628
9630
  PageLayoutTabLayoutMode: no,
9629
9631
  PermissionFlag: Eo,
9630
- RelationType: Ge,
9632
+ RelationType: Qe,
9631
9633
  STANDARD_OBJECT: _e,
9632
9634
  STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS: _e,
9633
9635
  ViewCalendarLayout: to,
@@ -9635,7 +9637,7 @@ const Md = (e) => {
9635
9637
  ViewFilterOperand: P,
9636
9638
  ViewKey: so,
9637
9639
  ViewOpenRecordIn: uo,
9638
- ViewSortDirection: ta,
9640
+ ViewSortDirection: oa,
9639
9641
  ViewType: ro,
9640
9642
  ViewVisibility: lo,
9641
9643
  createValidationResult: z,
@@ -10007,23 +10009,23 @@ const Kd = {
10007
10009
  defineCommandMenuItem: "commandMenuItems"
10008
10010
  /* CommandMenuItems */
10009
10011
  }, Ud = (e) => {
10010
- if (!na.isCallExpression(e))
10012
+ if (!ta.isCallExpression(e))
10011
10013
  return;
10012
10014
  const a = e.expression;
10013
- if (na.isIdentifier(a) && Object.values(ka).includes(a.text))
10015
+ if (ta.isIdentifier(a) && Object.values(ka).includes(a.text))
10014
10016
  return a.text;
10015
10017
  }, zd = (e) => {
10016
- const a = na.createSourceFile(
10018
+ const a = ta.createSourceFile(
10017
10019
  "temp.ts",
10018
10020
  e,
10019
- na.ScriptTarget.Latest,
10021
+ ta.ScriptTarget.Latest,
10020
10022
  !0
10021
10023
  ), i = [];
10022
- na.forEachChild(a, (n) => {
10024
+ ta.forEachChild(a, (n) => {
10023
10025
  i.push(n);
10024
10026
  });
10025
10027
  for (const n of i)
10026
- if (na.isExportAssignment(n)) {
10028
+ if (ta.isExportAssignment(n)) {
10027
10029
  if (n.isExportEquals || !n.expression)
10028
10030
  return;
10029
10031
  const u = Ud(n.expression);
@@ -10331,7 +10333,7 @@ const Kd = {
10331
10333
  icon: e.targetIcon,
10332
10334
  isNullable: !0,
10333
10335
  universalSettings: {
10334
- relationType: Ge.MANY_TO_ONE,
10336
+ relationType: Qe.MANY_TO_ONE,
10335
10337
  onDelete: tn.SET_NULL,
10336
10338
  joinColumnName: `target${gi(i.nameSingular)}Id`
10337
10339
  },
@@ -10364,7 +10366,7 @@ const Kd = {
10364
10366
  icon: n.icon,
10365
10367
  isNullable: n.isNullable,
10366
10368
  type: I.RELATION,
10367
- universalSettings: { relationType: Ge.ONE_TO_MANY },
10369
+ universalSettings: { relationType: Qe.ONE_TO_MANY },
10368
10370
  universalIdentifier: r,
10369
10371
  relationTargetFieldMetadataUniversalIdentifier: l,
10370
10372
  relationTargetObjectMetadataUniversalIdentifier: u.universalIdentifier
@@ -10388,7 +10390,7 @@ const Kd = {
10388
10390
  type: "object",
10389
10391
  properties: {}
10390
10392
  }, pl = async (e) => {
10391
- const { getFunctionInputSchema: a } = await import("./get-function-input-schema-BZ7_XyUh-BLUL3vy8.mjs"), i = a(e)[0];
10393
+ const { getFunctionInputSchema: a } = await import("./get-function-input-schema-BZ7_XyUh-KX7PWzdV.mjs"), i = a(e)[0];
10392
10394
  return i?.type === "object" && He(i.properties) ? {
10393
10395
  type: "object",
10394
10396
  properties: i.properties
@@ -10422,7 +10424,7 @@ const Kd = {
10422
10424
  }
10423
10425
  return Array.isArray(e.enum) && (a.enum = e.enum.filter(
10424
10426
  (i) => typeof i == "string"
10425
- )), e.multiline === !0 && (a.multiline = !0), a;
10427
+ )), e.multiline === !0 && (a.multiline = !0), Ge(e.label) && (a.label = e.label), a;
10426
10428
  }, bl = (e) => [Ki(e)], yl = async (e) => await Kt(["**/*.ts", "**/*.tsx"], {
10427
10429
  cwd: e,
10428
10430
  absolute: !0,
@@ -10437,7 +10439,7 @@ const Kd = {
10437
10439
  let u;
10438
10440
  const r = [], l = [], g = [], h = [], c = [], d = [], p = [], o = [], s = [], t = [], f = [], b = [], y = [], m = [], j = [], v = [], w = [], C = [], S = [], Y = [], D = [], Z = [], k = [], L = [], $ = [], M = [], H = [], x = [], ae = [], Ne = [], wa = [], Aa = [];
10439
10441
  for (const N of a) {
10440
- const pe = await fa(N, "utf-8"), V = ia(e, N), Xe = zd(pe);
10442
+ const pe = await fa(N, "utf-8"), V = na(e, N), Xe = zd(pe);
10441
10443
  if (!Xe)
10442
10444
  continue;
10443
10445
  switch (Kd[Xe]) {
@@ -10456,7 +10458,7 @@ const Kd = {
10456
10458
  }), {
10457
10459
  objectFields: W,
10458
10460
  fields: Q
10459
- } = cl(A.config), Ce = A.config.labelIdentifierFieldMetadataUniversalIdentifier ?? W.find((ze) => ze.name === "name")?.universalIdentifier;
10461
+ } = cl(A.config), Ce = A.config.labelIdentifierFieldMetadataUniversalIdentifier ?? W.find((Ve) => Ve.name === "name")?.universalIdentifier;
10460
10462
  if (!Ce) {
10461
10463
  i.push(
10462
10464
  `No label identifier field found for object ${A.config.nameSingular}. Please add a field with name "name" to your object.`
@@ -10519,7 +10521,7 @@ const Kd = {
10519
10521
  filePath: N
10520
10522
  });
10521
10523
  i.push(...A.errors), n.push(...A.warnings ?? []);
10522
- const { handler: W, ...Q } = A.config, Ce = ia(e, N), $e = Q.toolTriggerSettings && !Q.toolTriggerSettings.inputSchema || Q.workflowActionTriggerSettings && !Q.workflowActionTriggerSettings.inputSchema ? await pl(pe) : null, ze = Q.toolTriggerSettings ? {
10524
+ const { handler: W, ...Q } = A.config, Ce = na(e, N), $e = Q.toolTriggerSettings && !Q.toolTriggerSettings.inputSchema || Q.workflowActionTriggerSettings && !Q.workflowActionTriggerSettings.inputSchema ? await pl(pe) : null, Ve = Q.toolTriggerSettings ? {
10523
10525
  ...Q.toolTriggerSettings,
10524
10526
  inputSchema: Q.toolTriggerSettings.inputSchema ?? $e ?? void 0
10525
10527
  } : void 0, ja = Q.workflowActionTriggerSettings ? {
@@ -10527,7 +10529,7 @@ const Kd = {
10527
10529
  inputSchema: Q.workflowActionTriggerSettings.inputSchema ?? ($e ? bl($e) : void 0)
10528
10530
  } : void 0, Ii = {
10529
10531
  ...Q,
10530
- ...ze ? { toolTriggerSettings: ze } : {},
10532
+ ...Ve ? { toolTriggerSettings: Ve } : {},
10531
10533
  ...ja ? { workflowActionTriggerSettings: ja } : {},
10532
10534
  handlerName: "default.config.handler",
10533
10535
  sourceHandlerPath: Ce,
@@ -10535,18 +10537,18 @@ const Kd = {
10535
10537
  builtHandlerChecksum: "[default-checksum]"
10536
10538
  };
10537
10539
  if (p.push(Ii), $.push(V), Xe === ka.DefinePostInstallLogicFunction) {
10538
- const Ve = A.config;
10540
+ const qe = A.config;
10539
10541
  j.push({
10540
10542
  universalIdentifier: A.config.universalIdentifier,
10541
- shouldRunOnVersionUpgrade: Ve.shouldRunOnVersionUpgrade ?? !1,
10542
- shouldRunSynchronously: Ve.shouldRunSynchronously ?? !1
10543
+ shouldRunOnVersionUpgrade: qe.shouldRunOnVersionUpgrade ?? !1,
10544
+ shouldRunSynchronously: qe.shouldRunSynchronously ?? !1
10543
10545
  });
10544
10546
  }
10545
10547
  if (Xe === ka.DefinePreInstallLogicFunction) {
10546
- const Ve = A.config;
10548
+ const qe = A.config;
10547
10549
  v.push({
10548
10550
  universalIdentifier: A.config.universalIdentifier,
10549
- shouldRunOnVersionUpgrade: Ve.shouldRunOnVersionUpgrade ?? !1
10551
+ shouldRunOnVersionUpgrade: qe.shouldRunOnVersionUpgrade ?? !1
10550
10552
  });
10551
10553
  }
10552
10554
  break;
@@ -10557,7 +10559,7 @@ const Kd = {
10557
10559
  filePath: N
10558
10560
  });
10559
10561
  i.push(...A.errors), n.push(...A.warnings ?? []);
10560
- const { component: W, ...Q } = A.config, Ce = ia(e, N), $e = {
10562
+ const { component: W, ...Q } = A.config, Ce = na(e, N), $e = {
10561
10563
  ...Q,
10562
10564
  componentName: W.name,
10563
10565
  sourceComponentPath: Ce,
@@ -10624,7 +10626,7 @@ const Kd = {
10624
10626
  }
10625
10627
  const Da = await ml(e);
10626
10628
  for (const N of Da) {
10627
- const pe = ia(e, N);
10629
+ const pe = na(e, N);
10628
10630
  s.push({
10629
10631
  filePath: pe,
10630
10632
  fileName: vs(N),
@@ -10688,8 +10690,8 @@ const Kd = {
10688
10690
  I.RELATION,
10689
10691
  I.MORPH_RELATION
10690
10692
  ], Ri = [
10691
- Ge.MANY_TO_ONE,
10692
- Ge.ONE_TO_MANY
10693
+ Qe.MANY_TO_ONE,
10694
+ Qe.ONE_TO_MANY
10693
10695
  ], vl = (e) => {
10694
10696
  const a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
10695
10697
  for (const n of e)
@@ -10720,7 +10722,7 @@ const Kd = {
10720
10722
  );
10721
10723
  continue;
10722
10724
  }
10723
- n.relationType === Ge.MANY_TO_ONE && !n.joinColumnName && a.push(
10725
+ n.relationType === Qe.MANY_TO_ONE && !n.joinColumnName && a.push(
10724
10726
  `MANY_TO_ONE relation field "${i.name}" is missing joinColumnName. MANY_TO_ONE relations must declare a joinColumnName in universalSettings.`
10725
10727
  );
10726
10728
  }
@@ -10778,7 +10780,7 @@ const Kd = {
10778
10780
  n,
10779
10781
  { fileFolder: u, checksum: r }
10780
10782
  ] of a.entries()) {
10781
- const l = ia(we, n);
10783
+ const l = na(we, n);
10782
10784
  if (u === me.BuiltLogicFunction) {
10783
10785
  const g = i.logicFunctions, h = g.findIndex(
10784
10786
  (c) => c.builtHandlerPath === l
@@ -10858,6 +10860,7 @@ const Kd = {
10858
10860
  TYPECHECK_FAILED: "TYPECHECK_FAILED",
10859
10861
  DEPLOY_FAILED: "DEPLOY_FAILED"
10860
10862
  }, De = {
10863
+ DOCKER_NOT_INSTALLED: "DOCKER_NOT_INSTALLED",
10861
10864
  DOCKER_NOT_RUNNING: "DOCKER_NOT_RUNNING",
10862
10865
  CONTAINER_START_FAILED: "CONTAINER_START_FAILED",
10863
10866
  HEALTH_TIMEOUT: "HEALTH_TIMEOUT",
@@ -10922,7 +10925,7 @@ ${p.join(`
10922
10925
  d.tarballPath = B.join(c, o);
10923
10926
  }
10924
10927
  return { success: !0, data: d };
10925
- }, Ll = (e) => je(() => Il(e), X.BUILD_FAILED), $l = "2.3.1", kl = {
10928
+ }, Ll = (e) => je(() => Il(e), X.BUILD_FAILED), $l = "2.4.1", kl = {
10926
10929
  version: $l
10927
10930
  }, _t = he.join(Qt.homedir(), ".twenty"), li = (e = !1) => e || process.env.NODE_ENV === "test" ? he.join(_t, "config.test.json") : he.join(_t, "config.json"), _i = 1, ye = "local", fi = class fi {
10928
10931
  constructor(a) {
@@ -11057,15 +11060,15 @@ class Yl {
11057
11060
  (l) => l,
11058
11061
  async (l) => {
11059
11062
  throw l.response?.status === 401 ? console.error(
11060
- ra.red(
11063
+ da.red(
11061
11064
  "Authentication failed. Run `yarn twenty remote add` to authenticate."
11062
11065
  )
11063
11066
  ) : l.response?.status === 403 ? console.error(
11064
- ra.red(
11067
+ da.red(
11065
11068
  "Access denied. Check your API key and workspace permissions."
11066
11069
  )
11067
11070
  ) : l.code === "ECONNREFUSED" && console.error(
11068
- ra.red("Cannot connect to Twenty server. Is it running?")
11071
+ da.red("Cannot connect to Twenty server. Is it running?")
11069
11072
  ), l;
11070
11073
  }
11071
11074
  );
@@ -11874,7 +11877,7 @@ class El {
11874
11877
  });
11875
11878
  }
11876
11879
  }
11877
- const Nl = [2020, 3e3], Go = async (e) => {
11880
+ const Nl = [2020], Go = async (e) => {
11878
11881
  const a = new AbortController(), i = setTimeout(() => a.abort(), 2e3);
11879
11882
  try {
11880
11883
  return (await (await fetch(`http://localhost:${e}/healthz`, {
@@ -12082,7 +12085,7 @@ class Kl {
12082
12085
  builtPath: a,
12083
12086
  fileFolder: i
12084
12087
  }) {
12085
- const n = ia(we, a);
12088
+ const n = na(we, a);
12086
12089
  return await this.apiService.uploadFile({
12087
12090
  filePath: B.join(this.appPath, a),
12088
12091
  builtHandlerPath: n,
@@ -12285,10 +12288,10 @@ const Se = "twenty-app-dev", Si = "twenty-app-dev-test", Ul = "twentycrm/twenty-
12285
12288
  }, fg = 7, pg = async (e = Se) => {
12286
12289
  const a = await cg(e);
12287
12290
  a.localServerVersion === null || a.latestServerVersion === null || !a.isMinorOrMajorBehind || a.daysBehind === null || a.daysBehind <= fg || (console.warn(
12288
- ra.yellow(
12291
+ da.yellow(
12289
12292
  `⚠ Local Twenty server is v${a.localServerVersion} (${a.daysBehind} days behind v${a.latestServerVersion}).`
12290
12293
  )
12291
- ), console.warn(ra.dim(" Update with: yarn twenty server upgrade")), console.warn(""));
12294
+ ), console.warn(da.dim(" Update with: yarn twenty server upgrade")), console.warn(""));
12292
12295
  }, mn = async (e) => {
12293
12296
  const a = B.join(e, we);
12294
12297
  await Ae(a);
@@ -12644,7 +12647,7 @@ ${p.toString()}
12644
12647
  d.close();
12645
12648
  }
12646
12649
  }, ch = (e) => je(() => Yg(e), Oe.AUTH_FAILED), Tg = 2e3, Ag = 180 * 1e3, Xt = "==> START ", Dg = "==> DONE", Bt = async (e, a) => {
12647
- const i = Date.now(), n = (c) => process.stdout.write(ra.gray(c)), u = Ss(
12650
+ const i = Date.now(), n = (c) => process.stdout.write(da.gray(c)), u = Ss(
12648
12651
  "docker",
12649
12652
  ["logs", "-f", "--since", "1s", a],
12650
12653
  { stdio: ["ignore", "pipe", "pipe"] }
@@ -13092,12 +13095,12 @@ export {
13092
13095
  Fl as l,
13093
13096
  dh as m,
13094
13097
  ql as n,
13095
- eg as o,
13096
- Vl as p,
13097
- ph as q,
13098
+ He as o,
13099
+ eg as p,
13100
+ Vl as q,
13098
13101
  je as r,
13099
13102
  fh as s,
13100
- He as t,
13103
+ ph as t,
13101
13104
  Re as u,
13102
13105
  fn as v,
13103
13106
  Ae as w,