twenty-sdk 2.27.0 → 2.29.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/{catalog-sync-Bh6piElD.js → catalog-sync-4aA_KNKt.js} +1 -1
- package/dist/{catalog-sync-DV73gNDG.mjs → catalog-sync-iMUPp5Zl.mjs} +1 -1
- package/dist/cli.cjs +114 -114
- package/dist/cli.mjs +118 -97
- package/dist/define/index.cjs +15 -10
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +9 -2
- package/dist/define/index.mjs +3292 -3002
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +2 -1
- package/dist/front-component/index.mjs +2 -2
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-CVWRriuo.mjs → get-function-input-schema-GNk3NRLJ-CVLFFqWb.mjs} +1 -1
- package/dist/logic-function/index.d.ts +11 -1
- package/dist/{login-wTIo0AV7.js → login-CJAHe6Nd.js} +59 -57
- package/dist/{login-DhEE-uFP.mjs → login-rRUKuleo.mjs} +6330 -6043
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +1 -1
- package/package.json +3 -3
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, Mt as x, N as S, O as C, Ot as w, P as T, Q as E, R as D, S as O, St as k, Tt as A, U as ee, V as j, W as M, Z as te, _ as ne, _t as N, a as P, at as F, 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 I, 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 Oe, rt as ke, s as Ae, st as je, t as Me, tt as Ne, u as Pe, ut as Fe, v as Ie, vt as Le, w as Re, wt as ze, x as Be, xt as Ve, y as He, yt as Ue, z as We } from "./login-
|
|
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, Mt as x, N as S, O as C, Ot as w, P as T, Q as E, R as D, S as O, St as k, Tt as A, U as ee, V as j, W as M, Z as te, _ as ne, _t as N, a as P, at as F, 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 I, 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 Oe, rt as ke, s as Ae, st as je, t as Me, tt as Ne, u as Pe, ut as Fe, v as Ie, vt as Le, w as Re, wt as ze, x as Be, xt as Ve, y as He, yt as Ue, z as We } from "./login-rRUKuleo.mjs";
|
|
8
8
|
import Ge, { dirname as Ke, join as qe, relative as Je } from "path";
|
|
9
9
|
import { readFile as Ye, readdir as Xe, writeFile as Ze } from "node:fs/promises";
|
|
10
10
|
import { v4 as Qe } from "uuid";
|
|
@@ -3605,7 +3605,7 @@ export default defineCommandMenuItem({
|
|
|
3605
3605
|
availabilityType: 'GLOBAL',
|
|
3606
3606
|
});
|
|
3607
3607
|
`, Ht = ({ name: e, type: t }) => {
|
|
3608
|
-
let n = t ===
|
|
3608
|
+
let n = t === A.DASHBOARD ? ze.GRID : ze.VERTICAL_LIST;
|
|
3609
3609
|
return `import {
|
|
3610
3610
|
definePageLayout,
|
|
3611
3611
|
PageLayoutTabLayoutMode,
|
|
@@ -3928,7 +3928,7 @@ export default defineViewField({
|
|
|
3928
3928
|
type: "select",
|
|
3929
3929
|
name: "type",
|
|
3930
3930
|
message: "Select the page layout type:",
|
|
3931
|
-
choices: Object.values(
|
|
3931
|
+
choices: Object.values(A)
|
|
3932
3932
|
}]);
|
|
3933
3933
|
return {
|
|
3934
3934
|
name: t,
|
|
@@ -3952,7 +3952,7 @@ export default defineViewField({
|
|
|
3952
3952
|
file: Vt({ name: t })
|
|
3953
3953
|
};
|
|
3954
3954
|
}
|
|
3955
|
-
default:
|
|
3955
|
+
default: Ue(e);
|
|
3956
3956
|
}
|
|
3957
3957
|
}
|
|
3958
3958
|
async promptAndCreateObjectCompanions({ objectName: e, applicationUniversalIdentifier: t, customPath: n }) {
|
|
@@ -3976,49 +3976,49 @@ export default defineViewField({
|
|
|
3976
3976
|
}] : []
|
|
3977
3977
|
}), c = n ? qe(o, n) : qe(o, Qt, this.getFolderName(pe.View));
|
|
3978
3978
|
await be(c);
|
|
3979
|
-
let
|
|
3980
|
-
if (await Fe(
|
|
3979
|
+
let l = qe(c, `all-${It(e)}.ts`);
|
|
3980
|
+
if (await Fe(l)) {
|
|
3981
3981
|
let { overwrite: e } = await this.handleFileExist();
|
|
3982
3982
|
if (!e) return;
|
|
3983
3983
|
}
|
|
3984
|
-
await Ze(
|
|
3985
|
-
let
|
|
3984
|
+
await Ze(l, s), console.log(lt.green("✓ Created view:"), lt.cyan(Je(o, l)));
|
|
3985
|
+
let u = this.buildRecordPageFieldsViewFields(this.lastNameFieldUniversalIdentifier), d = Xt({
|
|
3986
3986
|
name: `${It(e)}-record-page-fields`,
|
|
3987
3987
|
universalIdentifier: a,
|
|
3988
3988
|
objectUniversalIdentifier: this.lastObjectUniversalIdentifier,
|
|
3989
3989
|
applicationUniversalIdentifier: t,
|
|
3990
|
-
type:
|
|
3991
|
-
fields:
|
|
3992
|
-
}),
|
|
3993
|
-
if (await Fe(
|
|
3990
|
+
type: k.FIELDS_WIDGET,
|
|
3991
|
+
fields: u
|
|
3992
|
+
}), f = qe(c, `${It(e)}-record-page-fields.ts`);
|
|
3993
|
+
if (await Fe(f)) {
|
|
3994
3994
|
let { overwrite: e } = await this.handleFileExist();
|
|
3995
3995
|
if (!e) return;
|
|
3996
3996
|
}
|
|
3997
|
-
await Ze(
|
|
3998
|
-
let
|
|
3997
|
+
await Ze(f, d), console.log(lt.green("✓ Created record-page-fields view:"), lt.cyan(Je(o, f)));
|
|
3998
|
+
let p = zt({
|
|
3999
3999
|
name: e,
|
|
4000
4000
|
type: "OBJECT",
|
|
4001
4001
|
targetObjectUniversalIdentifier: this.lastObjectUniversalIdentifier
|
|
4002
|
-
}),
|
|
4003
|
-
await be(
|
|
4004
|
-
let
|
|
4005
|
-
if (await Fe(
|
|
4002
|
+
}), m = n ? qe(o, n) : qe(o, Qt, this.getFolderName(pe.NavigationMenuItem));
|
|
4003
|
+
await be(m);
|
|
4004
|
+
let h = qe(m, `${It(e)}.ts`);
|
|
4005
|
+
if (await Fe(h)) {
|
|
4006
4006
|
let { overwrite: e } = await this.handleFileExist();
|
|
4007
4007
|
if (!e) return;
|
|
4008
4008
|
}
|
|
4009
|
-
await Ze(
|
|
4010
|
-
let
|
|
4009
|
+
await Ze(h, p), console.log(lt.green("✓ Created navigation menu item:"), lt.cyan(Je(o, h)));
|
|
4010
|
+
let g = Wt({
|
|
4011
4011
|
objectLabelSingular: this.lastObjectLabelSingular ?? e,
|
|
4012
4012
|
objectUniversalIdentifier: this.lastObjectUniversalIdentifier,
|
|
4013
4013
|
fieldsWidgetViewUniversalIdentifier: a
|
|
4014
|
-
}),
|
|
4015
|
-
await be(
|
|
4016
|
-
let
|
|
4017
|
-
if (await Fe(
|
|
4014
|
+
}), _ = n ? qe(o, n) : qe(o, Qt, this.getFolderName(pe.PageLayout));
|
|
4015
|
+
await be(_);
|
|
4016
|
+
let v = qe(_, `${It(e)}-record-page-layout.ts`);
|
|
4017
|
+
if (await Fe(v)) {
|
|
4018
4018
|
let { overwrite: e } = await this.handleFileExist();
|
|
4019
4019
|
if (!e) return;
|
|
4020
4020
|
}
|
|
4021
|
-
await Ze(
|
|
4021
|
+
await Ze(v, g), console.log(lt.green("✓ Created record page layout:"), lt.cyan(Je(o, v)));
|
|
4022
4022
|
}
|
|
4023
4023
|
async registerConnectionProviderServerVariables(e) {
|
|
4024
4024
|
let t = It(e).toUpperCase().replace(/-/g, "_"), n = [{
|
|
@@ -4152,16 +4152,16 @@ export default defineViewField({
|
|
|
4152
4152
|
type: "select",
|
|
4153
4153
|
name: "relationType",
|
|
4154
4154
|
message: "Select the relation type:",
|
|
4155
|
-
choices: Object.values(
|
|
4156
|
-
default:
|
|
4155
|
+
choices: Object.values(f),
|
|
4156
|
+
default: f.ONE_TO_MANY,
|
|
4157
4157
|
when: (t) => e(t.type)
|
|
4158
4158
|
},
|
|
4159
4159
|
{
|
|
4160
4160
|
type: "select",
|
|
4161
4161
|
name: "onDelete",
|
|
4162
4162
|
message: "Select the onDelete behavior:",
|
|
4163
|
-
choices: Object.values(
|
|
4164
|
-
default:
|
|
4163
|
+
choices: Object.values(u),
|
|
4164
|
+
default: u.CASCADE,
|
|
4165
4165
|
when: (t) => e(t.type)
|
|
4166
4166
|
}
|
|
4167
4167
|
]);
|
|
@@ -4376,7 +4376,7 @@ export default defineViewField({
|
|
|
4376
4376
|
}
|
|
4377
4377
|
}), e.command("catalog-sync", { hidden: !0 }).option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
|
|
4378
4378
|
on("catalog-sync", "dev:catalog-sync");
|
|
4379
|
-
let { CatalogSyncCommand: t } = await import("./catalog-sync-
|
|
4379
|
+
let { CatalogSyncCommand: t } = await import("./catalog-sync-iMUPp5Zl.mjs");
|
|
4380
4380
|
await new t().execute({ remote: e.remote });
|
|
4381
4381
|
});
|
|
4382
4382
|
}, cn = class {
|
|
@@ -4698,7 +4698,7 @@ export default defineViewField({
|
|
|
4698
4698
|
async startAssetWatcher() {
|
|
4699
4699
|
this.assetWatcher = new V({
|
|
4700
4700
|
appPath: this.state.appPath,
|
|
4701
|
-
fileFolder:
|
|
4701
|
+
fileFolder: l.PublicAsset,
|
|
4702
4702
|
watchPaths: [fe],
|
|
4703
4703
|
handleFileBuilt: this.handleFileBuilt.bind(this)
|
|
4704
4704
|
}), await this.assetWatcher.start();
|
|
@@ -4706,7 +4706,7 @@ export default defineViewField({
|
|
|
4706
4706
|
async startDependencyWatcher() {
|
|
4707
4707
|
this.dependencyWatcher = new V({
|
|
4708
4708
|
appPath: this.state.appPath,
|
|
4709
|
-
fileFolder:
|
|
4709
|
+
fileFolder: l.Dependencies,
|
|
4710
4710
|
watchPaths: ["package.json", "yarn.lock"],
|
|
4711
4711
|
handleFileBuilt: this.handleFileBuilt.bind(this)
|
|
4712
4712
|
}), this.dependencyWatcher.start();
|
|
@@ -117287,99 +117287,120 @@ ${t.message}`), t;
|
|
|
117287
117287
|
}
|
|
117288
117288
|
})), Cr = /* @__PURE__ */ ge(((e, t) => {
|
|
117289
117289
|
var n = Sr();
|
|
117290
|
-
t.exports =
|
|
117291
|
-
var r = "\0SLASH" + Math.random() + "\0", i = "\0OPEN" + Math.random() + "\0", a = "\0CLOSE" + Math.random() + "\0", o = "\0COMMA" + Math.random() + "\0", s = "\0PERIOD" + Math.random() + "\0";
|
|
117292
|
-
function
|
|
117290
|
+
t.exports = m;
|
|
117291
|
+
var r = "\0SLASH" + Math.random() + "\0", i = "\0OPEN" + Math.random() + "\0", a = "\0CLOSE" + Math.random() + "\0", o = "\0COMMA" + Math.random() + "\0", s = "\0PERIOD" + Math.random() + "\0", c = 1e5, l = 4e6;
|
|
117292
|
+
function u(e) {
|
|
117293
117293
|
return parseInt(e, 10) == e ? parseInt(e, 10) : e.charCodeAt(0);
|
|
117294
117294
|
}
|
|
117295
|
-
function
|
|
117295
|
+
function d(e) {
|
|
117296
117296
|
return e.split("\\\\").join(r).split("\\{").join(i).split("\\}").join(a).split("\\,").join(o).split("\\.").join(s);
|
|
117297
117297
|
}
|
|
117298
|
-
function
|
|
117298
|
+
function f(e) {
|
|
117299
117299
|
return e.split(r).join("\\").split(i).join("{").split(a).join("}").split(o).join(",").split(s).join(".");
|
|
117300
117300
|
}
|
|
117301
|
-
function
|
|
117301
|
+
function p(e) {
|
|
117302
117302
|
if (!e) return [""];
|
|
117303
117303
|
var t = [], r = n("{", "}", e);
|
|
117304
117304
|
if (!r) return e.split(",");
|
|
117305
117305
|
var i = r.pre, a = r.body, o = r.post, s = i.split(",");
|
|
117306
117306
|
s[s.length - 1] += "{" + a + "}";
|
|
117307
|
-
var c =
|
|
117307
|
+
var c = p(o);
|
|
117308
117308
|
return o.length && (s[s.length - 1] += c.shift(), s.push.apply(s, c)), t.push.apply(t, s), t;
|
|
117309
117309
|
}
|
|
117310
|
-
function
|
|
117310
|
+
function m(e, t) {
|
|
117311
117311
|
if (!e) return [];
|
|
117312
117312
|
t ||= {};
|
|
117313
|
-
var n = t.max == null ?
|
|
117314
|
-
return e.substr(0, 2) === "{}" && (e = "\\{\\}" + e.substr(2)),
|
|
117313
|
+
var n = t.max == null ? c : t.max, r = t.maxLength == null ? l : t.maxLength;
|
|
117314
|
+
return e.substr(0, 2) === "{}" && (e = "\\{\\}" + e.substr(2)), x(d(e), n, r, !0).map(f);
|
|
117315
117315
|
}
|
|
117316
|
-
function
|
|
117316
|
+
function h(e) {
|
|
117317
117317
|
return "{" + e + "}";
|
|
117318
117318
|
}
|
|
117319
|
-
function
|
|
117319
|
+
function g(e) {
|
|
117320
117320
|
return /^-?0\d/.test(e);
|
|
117321
117321
|
}
|
|
117322
|
-
function
|
|
117322
|
+
function _(e, t) {
|
|
117323
117323
|
return e <= t;
|
|
117324
117324
|
}
|
|
117325
|
-
function
|
|
117325
|
+
function v(e, t) {
|
|
117326
117326
|
return e >= t;
|
|
117327
117327
|
}
|
|
117328
|
-
function
|
|
117329
|
-
for (var
|
|
117330
|
-
|
|
117331
|
-
|
|
117332
|
-
|
|
117333
|
-
|
|
117334
|
-
|
|
117335
|
-
|
|
117336
|
-
|
|
117337
|
-
|
|
117328
|
+
function y(e, t, n, r, i, a) {
|
|
117329
|
+
for (var o = [], s = 0, c = 0; c < e.length; c++) for (var l = 0; l < n.length; l++) {
|
|
117330
|
+
if (o.length >= r) return o;
|
|
117331
|
+
var u = e[c] + t + n[l];
|
|
117332
|
+
if (!(a && !u)) {
|
|
117333
|
+
if (s + u.length > i) return o;
|
|
117334
|
+
o.push(u), s += u.length;
|
|
117335
|
+
}
|
|
117336
|
+
}
|
|
117337
|
+
return o;
|
|
117338
|
+
}
|
|
117339
|
+
function b(e, t, n, r) {
|
|
117340
|
+
var i = e.split(/\.\./), a = [];
|
|
117341
|
+
/* c8 ignore start */
|
|
117342
|
+
if (i[0] === void 0 || i[1] === void 0) return a;
|
|
117343
|
+
/* c8 ignore stop */
|
|
117344
|
+
var o = u(i[0]), s = u(i[1]), c = Math.max(i[0].length, i[1].length), l = i.length === 3 && i[2] !== void 0 ? Math.max(Math.abs(u(i[2])), 1) : 1, d = _;
|
|
117345
|
+
s < o && (l *= -1, d = v);
|
|
117346
|
+
for (var f = i.some(g), p = 0, m = o; d(m, s) && a.length < n; m += l) {
|
|
117347
|
+
var h;
|
|
117348
|
+
if (t) h = String.fromCharCode(m), h === "\\" && (h = "");
|
|
117349
|
+
else if (h = String(m), f) {
|
|
117350
|
+
var y = c - h.length;
|
|
117351
|
+
if (y > 0) {
|
|
117352
|
+
var b = Array(y + 1).join("0");
|
|
117353
|
+
h = m < 0 ? "-" + b + h.slice(1) : b + h;
|
|
117338
117354
|
}
|
|
117339
|
-
return i;
|
|
117340
117355
|
}
|
|
117341
|
-
|
|
117342
|
-
|
|
117343
|
-
|
|
117344
|
-
|
|
117356
|
+
if (p + h.length > r) break;
|
|
117357
|
+
a.push(h), p += h.length;
|
|
117358
|
+
}
|
|
117359
|
+
return a;
|
|
117360
|
+
}
|
|
117361
|
+
function x(e, t, r, i) {
|
|
117362
|
+
for (var o = [""], s = !1, c = !0;;) {
|
|
117363
|
+
let D = n("{", "}", e);
|
|
117364
|
+
if (!D) return y(o, e, [""], t, r, s);
|
|
117365
|
+
let O = D.pre;
|
|
117366
|
+
if (/\$$/.test(O)) {
|
|
117367
|
+
if (o = y(o, O + "{" + D.body + "}", [""], t, r, s && !D.post.length), c = !1, !D.post.length) break;
|
|
117368
|
+
e = D.post;
|
|
117369
|
+
continue;
|
|
117370
|
+
}
|
|
117371
|
+
var l = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body), u = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body), d = l || u, f = D.body.indexOf(",") >= 0;
|
|
117372
|
+
if (!d && !f) {
|
|
117373
|
+
if (D.post.match(/,(?!,).*\}/)) {
|
|
117374
|
+
e = D.pre + "{" + D.body + a + D.post, i = !0;
|
|
117345
117375
|
continue;
|
|
117346
117376
|
}
|
|
117347
|
-
return [
|
|
117377
|
+
return y(o, O + "{" + D.body + "}" + D.post, [""], t, r, s);
|
|
117348
117378
|
}
|
|
117349
|
-
|
|
117350
|
-
var
|
|
117351
|
-
if (
|
|
117352
|
-
else
|
|
117353
|
-
|
|
117354
|
-
|
|
117355
|
-
|
|
117356
|
-
|
|
117357
|
-
|
|
117358
|
-
|
|
117359
|
-
var
|
|
117360
|
-
|
|
117361
|
-
|
|
117362
|
-
|
|
117363
|
-
|
|
117364
|
-
|
|
117365
|
-
|
|
117366
|
-
|
|
117367
|
-
|
|
117368
|
-
E = T < 0 ? "-" + O + E.slice(1) : O + E;
|
|
117369
|
-
}
|
|
117370
|
-
}
|
|
117371
|
-
v.push(E);
|
|
117379
|
+
c &&= (s = i && !d, !1);
|
|
117380
|
+
var m;
|
|
117381
|
+
if (d) m = b(D.body, u, t, r);
|
|
117382
|
+
else {
|
|
117383
|
+
var g = p(D.body);
|
|
117384
|
+
if (g.length === 1 && g[0] !== void 0 && (g = x(g[0], t, r, !1).map(h), g.length === 1)) {
|
|
117385
|
+
if (o = y(o, O + g[0], [""], t, r, s && !D.post.length), !D.post.length) break;
|
|
117386
|
+
e = D.post;
|
|
117387
|
+
continue;
|
|
117388
|
+
}
|
|
117389
|
+
for (var _ = s && !D.post.length && !O, v = 0; _ && v < o.length; v++) o[v] && (_ = !1);
|
|
117390
|
+
m = [];
|
|
117391
|
+
var S = 0;
|
|
117392
|
+
outer: for (var C = 0; C < g.length; C++) for (var w = x(g[C], t, r, !1), T = 0; T < w.length; T++) {
|
|
117393
|
+
var E = w[T];
|
|
117394
|
+
if (!(_ && !E)) {
|
|
117395
|
+
if (m.length >= t || S + E.length > r) break outer;
|
|
117396
|
+
m.push(E), S += E.length;
|
|
117397
|
+
}
|
|
117372
117398
|
}
|
|
117373
|
-
} else {
|
|
117374
|
-
v = [];
|
|
117375
|
-
for (var k = 0; k < f.length; k++) v.push.apply(v, _(f[k], t, !1));
|
|
117376
|
-
}
|
|
117377
|
-
for (var k = 0; k < v.length; k++) for (var A = 0; A < te.length && i.length < t; A++) {
|
|
117378
|
-
var ee = M + v[k] + te[A];
|
|
117379
|
-
(!r || l || ee) && i.push(ee);
|
|
117380
117399
|
}
|
|
117381
|
-
|
|
117400
|
+
if (o = y(o, O, m, t, r, s && !D.post.length), !D.post.length) break;
|
|
117401
|
+
e = D.post;
|
|
117382
117402
|
}
|
|
117403
|
+
return o;
|
|
117383
117404
|
}
|
|
117384
117405
|
})), wr = /* @__PURE__ */ ge(((e) => {
|
|
117385
117406
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assertValidPattern = void 0;
|
|
@@ -136272,7 +136293,7 @@ ${t.message}`), t;
|
|
|
136272
136293
|
}), e.command("dev:add [entityType]").description(`Scaffold a new entity (${Object.values(pe).join("|")})`).option("--path <path>", "Path in which the entity should be created.").action(async (e, t) => {
|
|
136273
136294
|
await a.execute(e, t?.path);
|
|
136274
136295
|
}), e.command("dev:catalog-sync").description("Trigger marketplace catalog sync").option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
|
|
136275
|
-
let { CatalogSyncCommand: t } = await import("./catalog-sync-
|
|
136296
|
+
let { CatalogSyncCommand: t } = await import("./catalog-sync-iMUPp5Zl.mjs");
|
|
136276
136297
|
await new t().execute({ remote: e.remote });
|
|
136277
136298
|
}), e.command("dev:generate-client [appPath]").description("Generate the typed API client from the active remote (no app definition required)").action(async (e) => {
|
|
136278
136299
|
await o.execute({ appPath: gt(e) });
|
|
@@ -136359,7 +136380,7 @@ ${t.message}`), t;
|
|
|
136359
136380
|
n("upgrade", "docker:upgrade"), await ei(e, t);
|
|
136360
136381
|
}), t.command("catalog-sync").option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
|
|
136361
136382
|
n("catalog-sync", "dev:catalog-sync");
|
|
136362
|
-
let { CatalogSyncCommand: t } = await import("./catalog-sync-
|
|
136383
|
+
let { CatalogSyncCommand: t } = await import("./catalog-sync-iMUPp5Zl.mjs");
|
|
136363
136384
|
await new t().execute({ remote: e.remote });
|
|
136364
136385
|
});
|
|
136365
136386
|
}, ni = /^(\d{1,3}\.){3}\d{1,3}$/, ri = (e) => {
|
|
@@ -136398,10 +136419,10 @@ ${t.message}`), t;
|
|
|
136398
136419
|
return;
|
|
136399
136420
|
}
|
|
136400
136421
|
let i = e.url ?? e.apiUrl;
|
|
136401
|
-
if (i) i =
|
|
136422
|
+
if (i) i = Le(i);
|
|
136402
136423
|
else {
|
|
136403
136424
|
let t = await xe();
|
|
136404
|
-
e.local ? (t || (console.error(lt.red("No local Twenty server found.\nStart one with: yarn twenty docker:start")), process.exit(1)), console.log(lt.gray(`Found local server at ${t}`)), i = t) : i =
|
|
136425
|
+
e.local ? (t || (console.error(lt.red("No local Twenty server found.\nStart one with: yarn twenty docker:start")), process.exit(1)), console.log(lt.gray(`Found local server at ${t}`)), i = t) : i = Le((await ut.prompt([{
|
|
136405
136426
|
type: "input",
|
|
136406
136427
|
name: "serverUrl",
|
|
136407
136428
|
message: "Twenty server URL:",
|