twenty-sdk 2.3.1 → 2.4.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.cjs +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +2 -0
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-BdGyao4P.js → get-function-input-schema-BZ7_XyUh-DT3stfoz.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-BLUL3vy8.mjs → get-function-input-schema-BZ7_XyUh-OrMskPPC.mjs} +1 -1
- package/dist/logic-function/index.d.ts +2 -0
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/{uninstall-x1qK0SyR.js → uninstall-BIllVz44.js} +9 -9
- package/dist/{uninstall-CWhPoI1i.mjs → uninstall-XLw7db6v.mjs} +117 -117
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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";
|
|
@@ -252,9 +252,9 @@ K.object({
|
|
|
252
252
|
markdown: K.string().nullable()
|
|
253
253
|
});
|
|
254
254
|
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 || {}),
|
|
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 || {}), 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
256
|
const He = (e) => !Ys(e) && !Ts(e);
|
|
257
|
-
var ge = "INUMBER", pa = "IOP1", ba = "IOP2", ya = "IOP3", Ze = "IVAR",
|
|
257
|
+
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
258
|
function E(e, a) {
|
|
259
259
|
this.type = e, this.value = a ?? 0;
|
|
260
260
|
}
|
|
@@ -265,7 +265,7 @@ E.prototype.toString = function() {
|
|
|
265
265
|
case ba:
|
|
266
266
|
case ya:
|
|
267
267
|
case Ze:
|
|
268
|
-
case
|
|
268
|
+
case We:
|
|
269
269
|
case bi:
|
|
270
270
|
return this.value;
|
|
271
271
|
case ga:
|
|
@@ -274,7 +274,7 @@ E.prototype.toString = function() {
|
|
|
274
274
|
return "DEF " + this.value;
|
|
275
275
|
case ha:
|
|
276
276
|
return "ARRAY " + this.value;
|
|
277
|
-
case
|
|
277
|
+
case Ke:
|
|
278
278
|
return "." + this.value;
|
|
279
279
|
default:
|
|
280
280
|
return "Invalid Instruction";
|
|
@@ -292,7 +292,7 @@ function go(e) {
|
|
|
292
292
|
function Bi(e, a, i, n, u) {
|
|
293
293
|
for (var r = [], l = [], g, h, c, d, p = 0; p < e.length; p++) {
|
|
294
294
|
var o = e[p], s = o.type;
|
|
295
|
-
if (s === ge || s ===
|
|
295
|
+
if (s === ge || s === We)
|
|
296
296
|
Array.isArray(o.value) ? r.push.apply(r, Bi(o.value.map(function(t) {
|
|
297
297
|
return new E(ge, t);
|
|
298
298
|
}).concat(new E(ha, o.value.length)), a, i, n, u)) : r.push(o);
|
|
@@ -308,7 +308,7 @@ function Bi(e, a, i, n, u) {
|
|
|
308
308
|
for (; r.length > 0; )
|
|
309
309
|
l.push(r.shift());
|
|
310
310
|
l.push(new E(ue, Bi(o.value, a, i, n, u)));
|
|
311
|
-
} else if (s ===
|
|
311
|
+
} else if (s === Ke && r.length > 0)
|
|
312
312
|
g = r.pop(), r.push(new E(ge, g.value[o.value]));
|
|
313
313
|
else {
|
|
314
314
|
for (; r.length > 0; )
|
|
@@ -389,7 +389,7 @@ function xe(e, a, i) {
|
|
|
389
389
|
return Ye(e, i);
|
|
390
390
|
for (var d = e.length, p = 0; p < d; p++) {
|
|
391
391
|
var o = e[p], s = o.type;
|
|
392
|
-
if (s === ge || s ===
|
|
392
|
+
if (s === ge || s === We)
|
|
393
393
|
n.push(o.value);
|
|
394
394
|
else if (s === ba)
|
|
395
395
|
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 +437,7 @@ function xe(e, a, i) {
|
|
|
437
437
|
n.push(ou(o, a));
|
|
438
438
|
else if (s === on)
|
|
439
439
|
n.push(o);
|
|
440
|
-
else if (s ===
|
|
440
|
+
else if (s === Ke) {
|
|
441
441
|
if (u = n.pop(), /^__proto__|prototype|constructor$/.test(o.value))
|
|
442
442
|
throw new Error("prototype access detected in MEMBER");
|
|
443
443
|
if (typeof u == "object" && typeof u[o.value] == "function" && !Li(u[o.value], a, i))
|
|
@@ -482,7 +482,7 @@ function un(e, a) {
|
|
|
482
482
|
i.push("(" + n + " ? " + u + " : " + r + ")");
|
|
483
483
|
else
|
|
484
484
|
throw new Error("invalid Expression");
|
|
485
|
-
else if (p === Ze || p ===
|
|
485
|
+
else if (p === Ze || p === We)
|
|
486
486
|
i.push(d.value);
|
|
487
487
|
else if (p === pa)
|
|
488
488
|
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 +494,7 @@ function un(e, a) {
|
|
|
494
494
|
for (u = i.pop(), h = d.value, g = []; h-- > 0; )
|
|
495
495
|
g.unshift(i.pop());
|
|
496
496
|
n = i.pop(), a ? i.push("(" + n + " = function(" + g.join(", ") + ") { return " + u + " })") : i.push("(" + n + "(" + g.join(", ") + ") = " + u + ")");
|
|
497
|
-
} else if (p ===
|
|
497
|
+
} else if (p === Ke)
|
|
498
498
|
n = i.pop(), i.push(n + "." + d.value);
|
|
499
499
|
else if (p === ha) {
|
|
500
500
|
for (h = d.value, g = []; h-- > 0; )
|
|
@@ -509,7 +509,7 @@ function un(e, a) {
|
|
|
509
509
|
function Yn(e) {
|
|
510
510
|
return typeof e == "string" ? JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") : e;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function sa(e, a) {
|
|
513
513
|
for (var i = 0; i < e.length; i++)
|
|
514
514
|
if (e[i] === a)
|
|
515
515
|
return !0;
|
|
@@ -519,9 +519,9 @@ function rn(e, a, i) {
|
|
|
519
519
|
i = i || {};
|
|
520
520
|
for (var n = !!i.withMembers, u = null, r = 0; r < e.length; r++) {
|
|
521
521
|
var l = e[r];
|
|
522
|
-
l.type === Ze || l.type ===
|
|
522
|
+
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
523
|
}
|
|
524
|
-
u !== null && !
|
|
524
|
+
u !== null && !sa(a, u) && a.push(u);
|
|
525
525
|
}
|
|
526
526
|
function ve(e, a) {
|
|
527
527
|
this.tokens = e, this.parser = a, this.unaryOps = a.unaryOps, this.binaryOps = a.binaryOps, this.ternaryOps = a.ternaryOps, this.functions = a.functions;
|
|
@@ -805,7 +805,7 @@ _.prototype.next = function() {
|
|
|
805
805
|
return this.current = this.nextToken, this.nextToken = this.tokens.next();
|
|
806
806
|
};
|
|
807
807
|
_.prototype.tokenMatches = function(e, a) {
|
|
808
|
-
return typeof a > "u" ? !0 : Array.isArray(a) ?
|
|
808
|
+
return typeof a > "u" ? !0 : Array.isArray(a) ? sa(a, e.value) : typeof a == "function" ? a(e) : e.value === a;
|
|
809
809
|
};
|
|
810
810
|
_.prototype.save = function() {
|
|
811
811
|
this.savedCurrent = this.current, this.savedNextToken = this.nextToken, this.tokens.save();
|
|
@@ -870,14 +870,14 @@ _.prototype.parseVariableAssignmentExpression = function(e) {
|
|
|
870
870
|
throw new Error("function definition is not permitted");
|
|
871
871
|
for (var u = 0, r = a.value + 1; u < r; u++) {
|
|
872
872
|
var l = n - u;
|
|
873
|
-
e[l].type === Ze && (e[l] = new E(
|
|
873
|
+
e[l].type === Ze && (e[l] = new E(We, e[l].value));
|
|
874
874
|
}
|
|
875
875
|
this.parseVariableAssignmentExpression(i), e.push(new E(ue, i)), e.push(new E(pi, a.value));
|
|
876
876
|
continue;
|
|
877
877
|
}
|
|
878
|
-
if (a.type !== Ze && a.type !==
|
|
878
|
+
if (a.type !== Ze && a.type !== Ke)
|
|
879
879
|
throw new Error("expected variable for assignment");
|
|
880
|
-
this.parseVariableAssignmentExpression(i), e.push(new E(
|
|
880
|
+
this.parseVariableAssignmentExpression(i), e.push(new E(We, a.value)), e.push(new E(ue, i)), e.push(Je("="));
|
|
881
881
|
}
|
|
882
882
|
};
|
|
883
883
|
_.prototype.parseConditionalExpression = function(e) {
|
|
@@ -976,7 +976,7 @@ _.prototype.parseMemberExpression = function(e) {
|
|
|
976
976
|
if (a.value === ".") {
|
|
977
977
|
if (!this.allowMemberAccess)
|
|
978
978
|
throw new Error('unexpected ".", member access is not permitted');
|
|
979
|
-
this.expect(dn), e.push(new E(
|
|
979
|
+
this.expect(dn), e.push(new E(Ke, this.current.value));
|
|
980
980
|
} else if (a.value === "[") {
|
|
981
981
|
if (!this.tokens.isOperatorEnabled("["))
|
|
982
982
|
throw new Error('unexpected "[]", arrays are disabled');
|
|
@@ -1028,7 +1028,7 @@ function Cu(e, a) {
|
|
|
1028
1028
|
return !!(e || a);
|
|
1029
1029
|
}
|
|
1030
1030
|
function Iu(e, a) {
|
|
1031
|
-
return
|
|
1031
|
+
return sa(a, e);
|
|
1032
1032
|
}
|
|
1033
1033
|
function Lu(e) {
|
|
1034
1034
|
return (Math.exp(e) - Math.exp(-e)) / 2;
|
|
@@ -1198,7 +1198,7 @@ function qu(e) {
|
|
|
1198
1198
|
return a + Number(i);
|
|
1199
1199
|
}, 0);
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Ue(e) {
|
|
1202
1202
|
this.options = e || {}, this.unaryOps = {
|
|
1203
1203
|
sin: Math.sin,
|
|
1204
1204
|
cos: Math.cos,
|
|
@@ -1280,7 +1280,7 @@ function Ke(e) {
|
|
|
1280
1280
|
false: !1
|
|
1281
1281
|
};
|
|
1282
1282
|
}
|
|
1283
|
-
|
|
1283
|
+
Ue.prototype.parse = function(e) {
|
|
1284
1284
|
var a = [], i = new _(
|
|
1285
1285
|
this,
|
|
1286
1286
|
new O(this, e),
|
|
@@ -1288,14 +1288,14 @@ Ke.prototype.parse = function(e) {
|
|
|
1288
1288
|
);
|
|
1289
1289
|
return i.parseExpression(a), i.expect(Ya, "EOF"), new ve(a, this);
|
|
1290
1290
|
};
|
|
1291
|
-
|
|
1291
|
+
Ue.prototype.evaluate = function(e, a) {
|
|
1292
1292
|
return this.parse(e).evaluate(a);
|
|
1293
1293
|
};
|
|
1294
|
-
var po = new
|
|
1295
|
-
|
|
1294
|
+
var po = new Ue();
|
|
1295
|
+
Ue.parse = function(e) {
|
|
1296
1296
|
return po.parse(e);
|
|
1297
1297
|
};
|
|
1298
|
-
|
|
1298
|
+
Ue.evaluate = function(e, a) {
|
|
1299
1299
|
return po.parse(e).evaluate(a);
|
|
1300
1300
|
};
|
|
1301
1301
|
var Mn = {
|
|
@@ -1325,7 +1325,7 @@ var Mn = {
|
|
|
1325
1325
|
function er(e) {
|
|
1326
1326
|
return Object.hasOwn(Mn, e) ? Mn[e] : e;
|
|
1327
1327
|
}
|
|
1328
|
-
|
|
1328
|
+
Ue.prototype.isOperatorEnabled = function(e) {
|
|
1329
1329
|
var a = er(e), i = this.options.operators || {};
|
|
1330
1330
|
return !(a in i) || !!i[a];
|
|
1331
1331
|
};
|
|
@@ -1651,10 +1651,10 @@ function yo() {
|
|
|
1651
1651
|
a.default = n, e.exports = a.default;
|
|
1652
1652
|
})(Qa, Qa.exports)), Qa.exports;
|
|
1653
1653
|
}
|
|
1654
|
-
var
|
|
1654
|
+
var ea = {}, Wn;
|
|
1655
1655
|
function mo() {
|
|
1656
|
-
if (Wn) return
|
|
1657
|
-
Wn = 1,
|
|
1656
|
+
if (Wn) return ea;
|
|
1657
|
+
Wn = 1, ea.__esModule = !0, ea.createProtoAccessControl = r, ea.resultIsAllowed = l, ea.resetLoggedProperties = c;
|
|
1658
1658
|
function e(d) {
|
|
1659
1659
|
return d && d.__esModule ? d : { default: d };
|
|
1660
1660
|
}
|
|
@@ -1690,7 +1690,7 @@ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-contr
|
|
|
1690
1690
|
delete u[d];
|
|
1691
1691
|
});
|
|
1692
1692
|
}
|
|
1693
|
-
return
|
|
1693
|
+
return ea;
|
|
1694
1694
|
}
|
|
1695
1695
|
var Kn;
|
|
1696
1696
|
function hn() {
|
|
@@ -2046,7 +2046,7 @@ function vo() {
|
|
|
2046
2046
|
a.default = i, e.exports = a.default;
|
|
2047
2047
|
})(za, za.exports)), za.exports;
|
|
2048
2048
|
}
|
|
2049
|
-
var
|
|
2049
|
+
var aa = {}, Va = { exports: {} }, it;
|
|
2050
2050
|
function fr() {
|
|
2051
2051
|
return it || (it = 1, (function(e, a) {
|
|
2052
2052
|
a.__esModule = !0;
|
|
@@ -2866,8 +2866,8 @@ function br() {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
var st;
|
|
2868
2868
|
function yr() {
|
|
2869
|
-
if (st) return
|
|
2870
|
-
st = 1,
|
|
2869
|
+
if (st) return aa;
|
|
2870
|
+
st = 1, aa.__esModule = !0, aa.parseWithoutProcessing = o, aa.parse = s;
|
|
2871
2871
|
function e(y) {
|
|
2872
2872
|
if (y && y.__esModule)
|
|
2873
2873
|
return y;
|
|
@@ -2881,7 +2881,7 @@ function yr() {
|
|
|
2881
2881
|
return y && y.__esModule ? y : { default: y };
|
|
2882
2882
|
}
|
|
2883
2883
|
var i = fr(), n = a(i), u = pr(), r = a(u), l = br(), g = e(l), h = fe(), c = a(h), d = re();
|
|
2884
|
-
|
|
2884
|
+
aa.parser = n.default;
|
|
2885
2885
|
var p = {};
|
|
2886
2886
|
d.extend(p, g);
|
|
2887
2887
|
function o(y, m) {
|
|
@@ -2929,12 +2929,12 @@ function yr() {
|
|
|
2929
2929
|
function b(y) {
|
|
2930
2930
|
return typeof y == "number" && isFinite(y) && Math.floor(y) === y && y >= 0;
|
|
2931
2931
|
}
|
|
2932
|
-
return
|
|
2932
|
+
return aa;
|
|
2933
2933
|
}
|
|
2934
|
-
var
|
|
2934
|
+
var ia = {}, ut;
|
|
2935
2935
|
function mr() {
|
|
2936
|
-
if (ut) return
|
|
2937
|
-
ut = 1,
|
|
2936
|
+
if (ut) return ia;
|
|
2937
|
+
ut = 1, ia.__esModule = !0, ia.Compiler = g, ia.precompile = h, ia.compile = c;
|
|
2938
2938
|
function e(o) {
|
|
2939
2939
|
return o && o.__esModule ? o : { default: o };
|
|
2940
2940
|
}
|
|
@@ -3176,7 +3176,7 @@ function mr() {
|
|
|
3176
3176
|
};
|
|
3177
3177
|
}
|
|
3178
3178
|
}
|
|
3179
|
-
return
|
|
3179
|
+
return ia;
|
|
3180
3180
|
}
|
|
3181
3181
|
var ai = { exports: {} }, ii = { exports: {} }, Ca = {}, ki = {}, ni = {}, ti = {}, rt;
|
|
3182
3182
|
function wr() {
|
|
@@ -5143,14 +5143,14 @@ function Zr() {
|
|
|
5143
5143
|
return T?.[J];
|
|
5144
5144
|
};
|
|
5145
5145
|
}
|
|
5146
|
-
var
|
|
5146
|
+
var Ve = $e(V);
|
|
5147
5147
|
function ja(T) {
|
|
5148
5148
|
return N.test(T);
|
|
5149
5149
|
}
|
|
5150
5150
|
function Ii(T) {
|
|
5151
5151
|
return pe.test(T);
|
|
5152
5152
|
}
|
|
5153
|
-
function
|
|
5153
|
+
function qe(T) {
|
|
5154
5154
|
return ja(T) ? as(T) : Q(T);
|
|
5155
5155
|
}
|
|
5156
5156
|
function as(T) {
|
|
@@ -5182,7 +5182,7 @@ function Zr() {
|
|
|
5182
5182
|
function rs(T) {
|
|
5183
5183
|
return function(J) {
|
|
5184
5184
|
J = Pa(J);
|
|
5185
|
-
var R = ja(J) ?
|
|
5185
|
+
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
5186
|
return ke[T]() + ne;
|
|
5187
5187
|
};
|
|
5188
5188
|
}
|
|
@@ -5207,7 +5207,7 @@ function Zr() {
|
|
|
5207
5207
|
return ps(Pa(T).toLowerCase());
|
|
5208
5208
|
}
|
|
5209
5209
|
function fs(T) {
|
|
5210
|
-
return T = Pa(T), T && T.replace(i,
|
|
5210
|
+
return T = Pa(T), T && T.replace(i, Ve).replace(Ci, "");
|
|
5211
5211
|
}
|
|
5212
5212
|
var ps = rs("toUpperCase");
|
|
5213
5213
|
function bs(T, J, R) {
|
|
@@ -5748,37 +5748,37 @@ const Ni = (e) => !!(Array.isArray(e) && As(e.length) && e.length > 0), Ur = (e,
|
|
|
5748
5748
|
n = n[u];
|
|
5749
5749
|
}
|
|
5750
5750
|
return n;
|
|
5751
|
-
},
|
|
5751
|
+
}, ze = (e, a) => (i, n) => nn(i) ? i[e](
|
|
5752
5752
|
(u) => a(Ao(u, n))
|
|
5753
5753
|
) : !1, ma = (e, a) => (i, n, u) => nn(i) ? i[e](
|
|
5754
5754
|
(r) => a(Ao(r, n), u)
|
|
5755
|
-
) : !1, U = new
|
|
5755
|
+
) : !1, U = new Ue();
|
|
5756
5756
|
U.functions.isDefined = (e) => He(e);
|
|
5757
|
-
U.functions.isNonEmptyString = (e) =>
|
|
5757
|
+
U.functions.isNonEmptyString = (e) => Ge(e);
|
|
5758
5758
|
U.functions.includes = (e, a) => Array.isArray(e) && e.includes(a);
|
|
5759
5759
|
U.functions.arrayLength = (e) => Array.isArray(e) ? e.length : 0;
|
|
5760
|
-
U.functions.every =
|
|
5760
|
+
U.functions.every = ze(
|
|
5761
5761
|
"every",
|
|
5762
5762
|
Boolean
|
|
5763
5763
|
);
|
|
5764
|
-
U.functions.everyDefined =
|
|
5764
|
+
U.functions.everyDefined = ze(
|
|
5765
5765
|
"every",
|
|
5766
5766
|
He
|
|
5767
5767
|
);
|
|
5768
|
-
U.functions.some =
|
|
5768
|
+
U.functions.some = ze(
|
|
5769
5769
|
"some",
|
|
5770
5770
|
Boolean
|
|
5771
5771
|
);
|
|
5772
|
-
U.functions.someDefined =
|
|
5772
|
+
U.functions.someDefined = ze(
|
|
5773
5773
|
"some",
|
|
5774
5774
|
He
|
|
5775
5775
|
);
|
|
5776
|
-
U.functions.someNonEmptyString =
|
|
5777
|
-
U.functions.none =
|
|
5776
|
+
U.functions.someNonEmptyString = ze("some", Ge);
|
|
5777
|
+
U.functions.none = ze(
|
|
5778
5778
|
"every",
|
|
5779
5779
|
(e) => !e
|
|
5780
5780
|
);
|
|
5781
|
-
U.functions.noneDefined =
|
|
5781
|
+
U.functions.noneDefined = ze(
|
|
5782
5782
|
"every",
|
|
5783
5783
|
(e) => !He(e)
|
|
5784
5784
|
);
|
|
@@ -5806,7 +5806,7 @@ U.functions.includesNone = ma(
|
|
|
5806
5806
|
"every",
|
|
5807
5807
|
(e, a) => Array.isArray(e) && !e.includes(a)
|
|
5808
5808
|
);
|
|
5809
|
-
const gi = (e) =>
|
|
5809
|
+
const gi = (e) => Ge(e) ? e[0].toUpperCase() + e.slice(1) : "", Vr = (e) => gi(Mr(e));
|
|
5810
5810
|
I.NUMBER, I.NUMERIC, I.CURRENCY, I.RATING, I.POSITION;
|
|
5811
5811
|
I.TEXT, I.RICH_TEXT;
|
|
5812
5812
|
Object.entries(
|
|
@@ -6055,7 +6055,7 @@ const fn = async (e) => {
|
|
|
6055
6055
|
return [];
|
|
6056
6056
|
const a = [];
|
|
6057
6057
|
for (const i of e)
|
|
6058
|
-
|
|
6058
|
+
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
6059
|
`Field "${i.label}" is a SELECT/MULTI_SELECT type and must have options`
|
|
6060
6060
|
), i.isUnique === !0 && (i.type === I.RELATION || i.type === I.MORPH_RELATION || i.type === I.FILES) && a.push(
|
|
6061
6061
|
`Field "${i.label}" of type ${i.type} cannot be unique`
|
|
@@ -6307,9 +6307,9 @@ class Mo {
|
|
|
6307
6307
|
return g.length && (u = this.replaceString(u, g)), u;
|
|
6308
6308
|
}
|
|
6309
6309
|
}
|
|
6310
|
-
const Ad = Object.assign(Object.assign({}, se(Wi)), { allowedChars: "a-zA-Z0-9-_.~", lowercase: !0, separator: "-", uppercase: !1, fixChineseSpacing: !0 }),
|
|
6311
|
-
Pt.config =
|
|
6312
|
-
const
|
|
6310
|
+
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);
|
|
6311
|
+
Pt.config = ua.config.bind(ua), Pt.setData = ua.setData.bind(ua);
|
|
6312
|
+
const ra = new class extends Mo {
|
|
6313
6313
|
get options() {
|
|
6314
6314
|
return se(Object.assign(Object.assign({}, Ad), this.confOptions));
|
|
6315
6315
|
}
|
|
@@ -6322,8 +6322,8 @@ const ua = new class extends Mo {
|
|
|
6322
6322
|
let u = this.transliterate(e, i);
|
|
6323
6323
|
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
6324
|
}
|
|
6325
|
-
}(), Mt =
|
|
6326
|
-
Mt.config =
|
|
6325
|
+
}(), Mt = ra.slugify.bind(ra);
|
|
6326
|
+
Mt.config = ra.config.bind(ra), Mt.setData = ra.setData.bind(ra);
|
|
6327
6327
|
const _e = {
|
|
6328
6328
|
attachment: {
|
|
6329
6329
|
universalIdentifier: "20202020-bd3d-4c60-8dca-571c71d4447a",
|
|
@@ -9596,8 +9596,8 @@ const Md = (e) => {
|
|
|
9596
9596
|
i.universalIdentifier || a.push("ViewFieldGroup must have a universalIdentifier");
|
|
9597
9597
|
if (e.sorts)
|
|
9598
9598
|
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 !==
|
|
9600
|
-
`ViewSort direction must be '${
|
|
9599
|
+
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(
|
|
9600
|
+
`ViewSort direction must be '${oa.ASC}' or '${oa.DESC}'`
|
|
9601
9601
|
);
|
|
9602
9602
|
return z({ config: e, errors: a });
|
|
9603
9603
|
}, Ed = (e) => {
|
|
@@ -9627,7 +9627,7 @@ const Md = (e) => {
|
|
|
9627
9627
|
OnDeleteAction: tn,
|
|
9628
9628
|
PageLayoutTabLayoutMode: no,
|
|
9629
9629
|
PermissionFlag: Eo,
|
|
9630
|
-
RelationType:
|
|
9630
|
+
RelationType: Qe,
|
|
9631
9631
|
STANDARD_OBJECT: _e,
|
|
9632
9632
|
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS: _e,
|
|
9633
9633
|
ViewCalendarLayout: to,
|
|
@@ -9635,7 +9635,7 @@ const Md = (e) => {
|
|
|
9635
9635
|
ViewFilterOperand: P,
|
|
9636
9636
|
ViewKey: so,
|
|
9637
9637
|
ViewOpenRecordIn: uo,
|
|
9638
|
-
ViewSortDirection:
|
|
9638
|
+
ViewSortDirection: oa,
|
|
9639
9639
|
ViewType: ro,
|
|
9640
9640
|
ViewVisibility: lo,
|
|
9641
9641
|
createValidationResult: z,
|
|
@@ -10007,23 +10007,23 @@ const Kd = {
|
|
|
10007
10007
|
defineCommandMenuItem: "commandMenuItems"
|
|
10008
10008
|
/* CommandMenuItems */
|
|
10009
10009
|
}, Ud = (e) => {
|
|
10010
|
-
if (!
|
|
10010
|
+
if (!ta.isCallExpression(e))
|
|
10011
10011
|
return;
|
|
10012
10012
|
const a = e.expression;
|
|
10013
|
-
if (
|
|
10013
|
+
if (ta.isIdentifier(a) && Object.values(ka).includes(a.text))
|
|
10014
10014
|
return a.text;
|
|
10015
10015
|
}, zd = (e) => {
|
|
10016
|
-
const a =
|
|
10016
|
+
const a = ta.createSourceFile(
|
|
10017
10017
|
"temp.ts",
|
|
10018
10018
|
e,
|
|
10019
|
-
|
|
10019
|
+
ta.ScriptTarget.Latest,
|
|
10020
10020
|
!0
|
|
10021
10021
|
), i = [];
|
|
10022
|
-
|
|
10022
|
+
ta.forEachChild(a, (n) => {
|
|
10023
10023
|
i.push(n);
|
|
10024
10024
|
});
|
|
10025
10025
|
for (const n of i)
|
|
10026
|
-
if (
|
|
10026
|
+
if (ta.isExportAssignment(n)) {
|
|
10027
10027
|
if (n.isExportEquals || !n.expression)
|
|
10028
10028
|
return;
|
|
10029
10029
|
const u = Ud(n.expression);
|
|
@@ -10331,7 +10331,7 @@ const Kd = {
|
|
|
10331
10331
|
icon: e.targetIcon,
|
|
10332
10332
|
isNullable: !0,
|
|
10333
10333
|
universalSettings: {
|
|
10334
|
-
relationType:
|
|
10334
|
+
relationType: Qe.MANY_TO_ONE,
|
|
10335
10335
|
onDelete: tn.SET_NULL,
|
|
10336
10336
|
joinColumnName: `target${gi(i.nameSingular)}Id`
|
|
10337
10337
|
},
|
|
@@ -10364,7 +10364,7 @@ const Kd = {
|
|
|
10364
10364
|
icon: n.icon,
|
|
10365
10365
|
isNullable: n.isNullable,
|
|
10366
10366
|
type: I.RELATION,
|
|
10367
|
-
universalSettings: { relationType:
|
|
10367
|
+
universalSettings: { relationType: Qe.ONE_TO_MANY },
|
|
10368
10368
|
universalIdentifier: r,
|
|
10369
10369
|
relationTargetFieldMetadataUniversalIdentifier: l,
|
|
10370
10370
|
relationTargetObjectMetadataUniversalIdentifier: u.universalIdentifier
|
|
@@ -10388,7 +10388,7 @@ const Kd = {
|
|
|
10388
10388
|
type: "object",
|
|
10389
10389
|
properties: {}
|
|
10390
10390
|
}, pl = async (e) => {
|
|
10391
|
-
const { getFunctionInputSchema: a } = await import("./get-function-input-schema-BZ7_XyUh-
|
|
10391
|
+
const { getFunctionInputSchema: a } = await import("./get-function-input-schema-BZ7_XyUh-OrMskPPC.mjs"), i = a(e)[0];
|
|
10392
10392
|
return i?.type === "object" && He(i.properties) ? {
|
|
10393
10393
|
type: "object",
|
|
10394
10394
|
properties: i.properties
|
|
@@ -10422,7 +10422,7 @@ const Kd = {
|
|
|
10422
10422
|
}
|
|
10423
10423
|
return Array.isArray(e.enum) && (a.enum = e.enum.filter(
|
|
10424
10424
|
(i) => typeof i == "string"
|
|
10425
|
-
)), e.multiline === !0 && (a.multiline = !0), a;
|
|
10425
|
+
)), e.multiline === !0 && (a.multiline = !0), Ge(e.label) && (a.label = e.label), a;
|
|
10426
10426
|
}, bl = (e) => [Ki(e)], yl = async (e) => await Kt(["**/*.ts", "**/*.tsx"], {
|
|
10427
10427
|
cwd: e,
|
|
10428
10428
|
absolute: !0,
|
|
@@ -10437,7 +10437,7 @@ const Kd = {
|
|
|
10437
10437
|
let u;
|
|
10438
10438
|
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
10439
|
for (const N of a) {
|
|
10440
|
-
const pe = await fa(N, "utf-8"), V =
|
|
10440
|
+
const pe = await fa(N, "utf-8"), V = na(e, N), Xe = zd(pe);
|
|
10441
10441
|
if (!Xe)
|
|
10442
10442
|
continue;
|
|
10443
10443
|
switch (Kd[Xe]) {
|
|
@@ -10456,7 +10456,7 @@ const Kd = {
|
|
|
10456
10456
|
}), {
|
|
10457
10457
|
objectFields: W,
|
|
10458
10458
|
fields: Q
|
|
10459
|
-
} = cl(A.config), Ce = A.config.labelIdentifierFieldMetadataUniversalIdentifier ?? W.find((
|
|
10459
|
+
} = cl(A.config), Ce = A.config.labelIdentifierFieldMetadataUniversalIdentifier ?? W.find((Ve) => Ve.name === "name")?.universalIdentifier;
|
|
10460
10460
|
if (!Ce) {
|
|
10461
10461
|
i.push(
|
|
10462
10462
|
`No label identifier field found for object ${A.config.nameSingular}. Please add a field with name "name" to your object.`
|
|
@@ -10519,7 +10519,7 @@ const Kd = {
|
|
|
10519
10519
|
filePath: N
|
|
10520
10520
|
});
|
|
10521
10521
|
i.push(...A.errors), n.push(...A.warnings ?? []);
|
|
10522
|
-
const { handler: W, ...Q } = A.config, Ce =
|
|
10522
|
+
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
10523
|
...Q.toolTriggerSettings,
|
|
10524
10524
|
inputSchema: Q.toolTriggerSettings.inputSchema ?? $e ?? void 0
|
|
10525
10525
|
} : void 0, ja = Q.workflowActionTriggerSettings ? {
|
|
@@ -10527,7 +10527,7 @@ const Kd = {
|
|
|
10527
10527
|
inputSchema: Q.workflowActionTriggerSettings.inputSchema ?? ($e ? bl($e) : void 0)
|
|
10528
10528
|
} : void 0, Ii = {
|
|
10529
10529
|
...Q,
|
|
10530
|
-
...
|
|
10530
|
+
...Ve ? { toolTriggerSettings: Ve } : {},
|
|
10531
10531
|
...ja ? { workflowActionTriggerSettings: ja } : {},
|
|
10532
10532
|
handlerName: "default.config.handler",
|
|
10533
10533
|
sourceHandlerPath: Ce,
|
|
@@ -10535,18 +10535,18 @@ const Kd = {
|
|
|
10535
10535
|
builtHandlerChecksum: "[default-checksum]"
|
|
10536
10536
|
};
|
|
10537
10537
|
if (p.push(Ii), $.push(V), Xe === ka.DefinePostInstallLogicFunction) {
|
|
10538
|
-
const
|
|
10538
|
+
const qe = A.config;
|
|
10539
10539
|
j.push({
|
|
10540
10540
|
universalIdentifier: A.config.universalIdentifier,
|
|
10541
|
-
shouldRunOnVersionUpgrade:
|
|
10542
|
-
shouldRunSynchronously:
|
|
10541
|
+
shouldRunOnVersionUpgrade: qe.shouldRunOnVersionUpgrade ?? !1,
|
|
10542
|
+
shouldRunSynchronously: qe.shouldRunSynchronously ?? !1
|
|
10543
10543
|
});
|
|
10544
10544
|
}
|
|
10545
10545
|
if (Xe === ka.DefinePreInstallLogicFunction) {
|
|
10546
|
-
const
|
|
10546
|
+
const qe = A.config;
|
|
10547
10547
|
v.push({
|
|
10548
10548
|
universalIdentifier: A.config.universalIdentifier,
|
|
10549
|
-
shouldRunOnVersionUpgrade:
|
|
10549
|
+
shouldRunOnVersionUpgrade: qe.shouldRunOnVersionUpgrade ?? !1
|
|
10550
10550
|
});
|
|
10551
10551
|
}
|
|
10552
10552
|
break;
|
|
@@ -10557,7 +10557,7 @@ const Kd = {
|
|
|
10557
10557
|
filePath: N
|
|
10558
10558
|
});
|
|
10559
10559
|
i.push(...A.errors), n.push(...A.warnings ?? []);
|
|
10560
|
-
const { component: W, ...Q } = A.config, Ce =
|
|
10560
|
+
const { component: W, ...Q } = A.config, Ce = na(e, N), $e = {
|
|
10561
10561
|
...Q,
|
|
10562
10562
|
componentName: W.name,
|
|
10563
10563
|
sourceComponentPath: Ce,
|
|
@@ -10624,7 +10624,7 @@ const Kd = {
|
|
|
10624
10624
|
}
|
|
10625
10625
|
const Da = await ml(e);
|
|
10626
10626
|
for (const N of Da) {
|
|
10627
|
-
const pe =
|
|
10627
|
+
const pe = na(e, N);
|
|
10628
10628
|
s.push({
|
|
10629
10629
|
filePath: pe,
|
|
10630
10630
|
fileName: vs(N),
|
|
@@ -10688,8 +10688,8 @@ const Kd = {
|
|
|
10688
10688
|
I.RELATION,
|
|
10689
10689
|
I.MORPH_RELATION
|
|
10690
10690
|
], Ri = [
|
|
10691
|
-
|
|
10692
|
-
|
|
10691
|
+
Qe.MANY_TO_ONE,
|
|
10692
|
+
Qe.ONE_TO_MANY
|
|
10693
10693
|
], vl = (e) => {
|
|
10694
10694
|
const a = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
10695
10695
|
for (const n of e)
|
|
@@ -10720,7 +10720,7 @@ const Kd = {
|
|
|
10720
10720
|
);
|
|
10721
10721
|
continue;
|
|
10722
10722
|
}
|
|
10723
|
-
n.relationType ===
|
|
10723
|
+
n.relationType === Qe.MANY_TO_ONE && !n.joinColumnName && a.push(
|
|
10724
10724
|
`MANY_TO_ONE relation field "${i.name}" is missing joinColumnName. MANY_TO_ONE relations must declare a joinColumnName in universalSettings.`
|
|
10725
10725
|
);
|
|
10726
10726
|
}
|
|
@@ -10778,7 +10778,7 @@ const Kd = {
|
|
|
10778
10778
|
n,
|
|
10779
10779
|
{ fileFolder: u, checksum: r }
|
|
10780
10780
|
] of a.entries()) {
|
|
10781
|
-
const l =
|
|
10781
|
+
const l = na(we, n);
|
|
10782
10782
|
if (u === me.BuiltLogicFunction) {
|
|
10783
10783
|
const g = i.logicFunctions, h = g.findIndex(
|
|
10784
10784
|
(c) => c.builtHandlerPath === l
|
|
@@ -10922,7 +10922,7 @@ ${p.join(`
|
|
|
10922
10922
|
d.tarballPath = B.join(c, o);
|
|
10923
10923
|
}
|
|
10924
10924
|
return { success: !0, data: d };
|
|
10925
|
-
}, Ll = (e) => je(() => Il(e), X.BUILD_FAILED), $l = "2.
|
|
10925
|
+
}, Ll = (e) => je(() => Il(e), X.BUILD_FAILED), $l = "2.4.0", kl = {
|
|
10926
10926
|
version: $l
|
|
10927
10927
|
}, _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
10928
|
constructor(a) {
|
|
@@ -11057,15 +11057,15 @@ class Yl {
|
|
|
11057
11057
|
(l) => l,
|
|
11058
11058
|
async (l) => {
|
|
11059
11059
|
throw l.response?.status === 401 ? console.error(
|
|
11060
|
-
|
|
11060
|
+
da.red(
|
|
11061
11061
|
"Authentication failed. Run `yarn twenty remote add` to authenticate."
|
|
11062
11062
|
)
|
|
11063
11063
|
) : l.response?.status === 403 ? console.error(
|
|
11064
|
-
|
|
11064
|
+
da.red(
|
|
11065
11065
|
"Access denied. Check your API key and workspace permissions."
|
|
11066
11066
|
)
|
|
11067
11067
|
) : l.code === "ECONNREFUSED" && console.error(
|
|
11068
|
-
|
|
11068
|
+
da.red("Cannot connect to Twenty server. Is it running?")
|
|
11069
11069
|
), l;
|
|
11070
11070
|
}
|
|
11071
11071
|
);
|
|
@@ -12082,7 +12082,7 @@ class Kl {
|
|
|
12082
12082
|
builtPath: a,
|
|
12083
12083
|
fileFolder: i
|
|
12084
12084
|
}) {
|
|
12085
|
-
const n =
|
|
12085
|
+
const n = na(we, a);
|
|
12086
12086
|
return await this.apiService.uploadFile({
|
|
12087
12087
|
filePath: B.join(this.appPath, a),
|
|
12088
12088
|
builtHandlerPath: n,
|
|
@@ -12285,10 +12285,10 @@ const Se = "twenty-app-dev", Si = "twenty-app-dev-test", Ul = "twentycrm/twenty-
|
|
|
12285
12285
|
}, fg = 7, pg = async (e = Se) => {
|
|
12286
12286
|
const a = await cg(e);
|
|
12287
12287
|
a.localServerVersion === null || a.latestServerVersion === null || !a.isMinorOrMajorBehind || a.daysBehind === null || a.daysBehind <= fg || (console.warn(
|
|
12288
|
-
|
|
12288
|
+
da.yellow(
|
|
12289
12289
|
`⚠ Local Twenty server is v${a.localServerVersion} (${a.daysBehind} days behind v${a.latestServerVersion}).`
|
|
12290
12290
|
)
|
|
12291
|
-
), console.warn(
|
|
12291
|
+
), console.warn(da.dim(" Update with: yarn twenty server upgrade")), console.warn(""));
|
|
12292
12292
|
}, mn = async (e) => {
|
|
12293
12293
|
const a = B.join(e, we);
|
|
12294
12294
|
await Ae(a);
|
|
@@ -12644,7 +12644,7 @@ ${p.toString()}
|
|
|
12644
12644
|
d.close();
|
|
12645
12645
|
}
|
|
12646
12646
|
}, 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(
|
|
12647
|
+
const i = Date.now(), n = (c) => process.stdout.write(da.gray(c)), u = Ss(
|
|
12648
12648
|
"docker",
|
|
12649
12649
|
["logs", "-f", "--since", "1s", a],
|
|
12650
12650
|
{ stdio: ["ignore", "pipe", "pipe"] }
|
|
@@ -13041,25 +13041,25 @@ ${m.join(`
|
|
|
13041
13041
|
export {
|
|
13042
13042
|
cg as $,
|
|
13043
13043
|
Oe as A,
|
|
13044
|
-
|
|
13044
|
+
Ee as B,
|
|
13045
13045
|
G as C,
|
|
13046
|
-
|
|
13047
|
-
|
|
13046
|
+
hd as D,
|
|
13047
|
+
Bo as E,
|
|
13048
13048
|
di as F,
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13049
|
+
Ql as G,
|
|
13050
|
+
Wl as H,
|
|
13051
|
+
we as I,
|
|
13052
|
+
gd as J,
|
|
13053
|
+
Gi as K,
|
|
13054
|
+
Od as L,
|
|
13055
|
+
oh as M,
|
|
13056
|
+
sh as N,
|
|
13057
|
+
me as O,
|
|
13058
|
+
xo as P,
|
|
13059
|
+
Oo as Q,
|
|
13060
13060
|
I as R,
|
|
13061
13061
|
De as S,
|
|
13062
|
-
|
|
13062
|
+
ro as T,
|
|
13063
13063
|
Qo as U,
|
|
13064
13064
|
La as V,
|
|
13065
13065
|
Kl as W,
|
|
@@ -13103,5 +13103,5 @@ export {
|
|
|
13103
13103
|
Ae as w,
|
|
13104
13104
|
Ks as x,
|
|
13105
13105
|
Ur as y,
|
|
13106
|
-
|
|
13106
|
+
kl as z
|
|
13107
13107
|
};
|