twenty-sdk 2.37.0 → 2.39.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/billing/index.cjs +3 -3
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.d.ts +25 -4
- package/dist/billing/index.mjs +495 -464
- package/dist/billing/index.mjs.map +1 -1
- package/dist/catalog-sync-DjzVoO-K.js +1 -0
- package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-PfHIDnN1.mjs} +4 -4
- package/dist/cli/commands/dev/dev-once.d.ts +1 -0
- package/dist/cli/commands/dev/dev.d.ts +1 -0
- package/dist/cli/commands/dev/pull.d.ts +8 -0
- package/dist/cli/operations/dev-once.d.ts +1 -0
- package/dist/cli/operations/index.d.ts +2 -0
- package/dist/cli/operations/pull.d.ts +22 -0
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/utilities/api/api-service.d.ts +3 -0
- package/dist/cli/utilities/api/application-api.d.ts +3 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
- package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
- package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
- package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
- package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
- package/dist/cli/utilities/pull/application-export-type.d.ts +24 -0
- package/dist/cli/utilities/pull/apply-pull-writes.d.ts +6 -0
- package/dist/cli/utilities/pull/build-pull-entities.d.ts +24 -0
- package/dist/cli/utilities/pull/format-pull-report.d.ts +13 -0
- package/dist/cli/utilities/pull/plan-pull-writes.d.ts +27 -0
- package/dist/cli/utilities/pull/print-typescript-value.d.ts +10 -0
- package/dist/cli/utilities/pull/pull-base-file.d.ts +10 -0
- package/dist/cli/utilities/pull/scan-project-define-files.d.ts +8 -0
- package/dist/cli/utilities/pull/write-define-file.d.ts +13 -0
- package/dist/cli.cjs +82 -78
- package/dist/cli.mjs +8007 -7902
- package/dist/define/index.cjs +14 -14
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +138 -16
- package/dist/define/index.mjs +5784 -5723
- 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 +25 -6
- package/dist/front-component/index.mjs +2 -2
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/front-component-renderer/build.cjs +1 -1
- package/dist/front-component-renderer/build.mjs +1 -1
- package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-BR8EOlIe.js} +8 -8
- package/dist/{get-front-component-build-plugins-WU9ATS3e.mjs → get-front-component-build-plugins-BvcwEryG.mjs} +78 -68
- package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BzSsW_zF.mjs} +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-PouV48BW.js} +1 -1
- package/dist/logic-function/index.cjs +4 -4
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +23 -3
- package/dist/logic-function/index.mjs +26 -12
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-CNByz3vi.mjs → login-CWJ1uQtK.mjs} +6043 -5432
- package/dist/{login-4PI5lTOa.js → login-CXs7z3of.js} +99 -68
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +4 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/catalog-sync-Szx_4267.js +0 -1
|
@@ -9579,7 +9579,7 @@ qu({
|
|
|
9579
9579
|
[Q.RICH_TEXT, zf]
|
|
9580
9580
|
]);
|
|
9581
9581
|
//#endregion
|
|
9582
|
-
//#region ../twenty-shared/dist/types-
|
|
9582
|
+
//#region ../twenty-shared/dist/types-BkKEyuCp.mjs
|
|
9583
9583
|
var Bf = {
|
|
9584
9584
|
UUID: "uuid",
|
|
9585
9585
|
NOW: "now"
|
|
@@ -9600,92 +9600,94 @@ var Vf = /* @__PURE__ */ function(e) {
|
|
|
9600
9600
|
}({}), qf = /* @__PURE__ */ function(e) {
|
|
9601
9601
|
return e.BTREE = "BTREE", e.GIN = "GIN", e;
|
|
9602
9602
|
}({}), Jf = /* @__PURE__ */ function(e) {
|
|
9603
|
-
return e.OPEN = "OPEN", e.APPLICATION = "APPLICATION", e.SYSTEM = "SYSTEM", e;
|
|
9603
|
+
return e.OPEN = "OPEN", e.PRIVATE = "PRIVATE", e.INHERITED = "INHERITED", e.APPLICATION = "APPLICATION", e.SYSTEM = "SYSTEM", e;
|
|
9604
9604
|
}({}), Yf = /* @__PURE__ */ function(e) {
|
|
9605
|
-
return e.
|
|
9605
|
+
return e.OPEN = "OPEN", e.APPLICATION = "APPLICATION", e.SYSTEM = "SYSTEM", e;
|
|
9606
9606
|
}({}), Xf = /* @__PURE__ */ function(e) {
|
|
9607
|
-
return e.
|
|
9607
|
+
return e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e;
|
|
9608
9608
|
}({}), Zf = /* @__PURE__ */ function(e) {
|
|
9609
|
+
return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e.USER_CHOICE = "USER_CHOICE", e;
|
|
9610
|
+
}({}), Qf = /* @__PURE__ */ function(e) {
|
|
9609
9611
|
return e.DAY = "DAY", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.YEAR = "YEAR", e.WEEK = "WEEK", e.DAY_OF_THE_WEEK = "DAY_OF_THE_WEEK", e.MONTH_OF_THE_YEAR = "MONTH_OF_THE_YEAR", e.QUARTER_OF_THE_YEAR = "QUARTER_OF_THE_YEAR", e.NONE = "NONE", e;
|
|
9610
|
-
}({}),
|
|
9612
|
+
}({}), $f = [
|
|
9611
9613
|
"AGGREGATE_CHART",
|
|
9612
9614
|
"PIE_CHART",
|
|
9613
9615
|
"BAR_CHART",
|
|
9614
9616
|
"LINE_CHART"
|
|
9615
|
-
],
|
|
9617
|
+
], ep = /* @__PURE__ */ function(e) {
|
|
9616
9618
|
return e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e;
|
|
9617
|
-
}({}), ep = /* @__PURE__ */ function(e) {
|
|
9618
|
-
return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e;
|
|
9619
9619
|
}({}), tp = /* @__PURE__ */ function(e) {
|
|
9620
|
-
return e.
|
|
9620
|
+
return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e.RECORD_FORM = "RECORD_FORM", e;
|
|
9621
9621
|
}({}), np = /* @__PURE__ */ function(e) {
|
|
9622
|
-
return e.
|
|
9622
|
+
return e.VIEW = "VIEW", e.IFRAME = "IFRAME", e.FIELD = "FIELD", e.FIELDS = "FIELDS", e.GRAPH = "GRAPH", e.STANDALONE_RICH_TEXT = "STANDALONE_RICH_TEXT", e.TIMELINE = "TIMELINE", e.TASKS = "TASKS", e.NOTES = "NOTES", e.FILES = "FILES", e.EMAILS = "EMAILS", e.CALENDAR = "CALENDAR", e.FIELD_RICH_TEXT = "FIELD_RICH_TEXT", e.WORKFLOW = "WORKFLOW", e.WORKFLOW_VERSION = "WORKFLOW_VERSION", e.WORKFLOW_RUN = "WORKFLOW_RUN", e.FRONT_COMPONENT = "FRONT_COMPONENT", e.RECORD_TABLE = "RECORD_TABLE", e.EMAIL_THREAD = "EMAIL_THREAD", e.CALL_RECORDING_SUMMARY = "CALL_RECORDING_SUMMARY", e.CALL_RECORDING_TRANSCRIPT = "CALL_RECORDING_TRANSCRIPT", e.MESSAGE_CAMPAIGN_BODY = "MESSAGE_CAMPAIGN_BODY", e.MESSAGE_CAMPAIGN_DETAILS = "MESSAGE_CAMPAIGN_DETAILS", e.FORM_FIELD = "FORM_FIELD", e;
|
|
9623
9623
|
}({}), rp = /* @__PURE__ */ function(e) {
|
|
9624
|
-
return e.
|
|
9624
|
+
return e.AND = "AND", e.OR = "OR", e;
|
|
9625
9625
|
}({}), ip = /* @__PURE__ */ function(e) {
|
|
9626
|
-
return e.
|
|
9626
|
+
return e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e;
|
|
9627
9627
|
}({}), ap = /* @__PURE__ */ function(e) {
|
|
9628
|
-
return e.
|
|
9628
|
+
return e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e;
|
|
9629
9629
|
}({}), op = /* @__PURE__ */ function(e) {
|
|
9630
|
-
return e.
|
|
9630
|
+
return e.AND = "AND", e.OR = "OR", e;
|
|
9631
9631
|
}({}), sp = /* @__PURE__ */ function(e) {
|
|
9632
|
-
return e.
|
|
9632
|
+
return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
|
|
9633
9633
|
}({}), cp = /* @__PURE__ */ function(e) {
|
|
9634
|
-
return e.
|
|
9634
|
+
return e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e;
|
|
9635
9635
|
}({}), lp = /* @__PURE__ */ function(e) {
|
|
9636
|
-
return e.
|
|
9636
|
+
return e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e;
|
|
9637
9637
|
}({}), up = /* @__PURE__ */ function(e) {
|
|
9638
|
-
return e.
|
|
9638
|
+
return e.IS = "IS", e.IS_NOT_NULL = "IS_NOT_NULL", e.IS_NOT = "IS_NOT", e.LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", e.GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", e.IS_BEFORE = "IS_BEFORE", e.IS_AFTER = "IS_AFTER", e.CONTAINS = "CONTAINS", e.DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", e.IS_EMPTY = "IS_EMPTY", e.IS_NOT_EMPTY = "IS_NOT_EMPTY", e.IS_RELATIVE = "IS_RELATIVE", e.IS_IN_PAST = "IS_IN_PAST", e.IS_IN_FUTURE = "IS_IN_FUTURE", e.IS_TODAY = "IS_TODAY", e.VECTOR_SEARCH = "VECTOR_SEARCH", e;
|
|
9639
9639
|
}({}), dp = /* @__PURE__ */ function(e) {
|
|
9640
|
-
return e.
|
|
9640
|
+
return e.Is = "is", e.IsNotNull = "isNotNull", e.IsNot = "isNot", e.LessThanOrEqual = "lessThan", e.GreaterThanOrEqual = "greaterThan", e.IsBefore = "isBefore", e.IsAfter = "isAfter", e.Contains = "contains", e.DoesNotContain = "doesNotContain", e.IsEmpty = "isEmpty", e.IsNotEmpty = "isNotEmpty", e.IsRelative = "isRelative", e.IsInPast = "isInPast", e.IsInFuture = "isInFuture", e.IsToday = "isToday", e;
|
|
9641
9641
|
}({}), fp = /* @__PURE__ */ function(e) {
|
|
9642
|
-
return e.
|
|
9642
|
+
return e.INDEX = "INDEX", e;
|
|
9643
9643
|
}({}), pp = /* @__PURE__ */ function(e) {
|
|
9644
|
-
return e.
|
|
9644
|
+
return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e;
|
|
9645
9645
|
}({}), mp = /* @__PURE__ */ function(e) {
|
|
9646
|
-
return e.
|
|
9646
|
+
return e.ASC = "ASC", e.DESC = "DESC", e;
|
|
9647
9647
|
}({}), hp = /* @__PURE__ */ function(e) {
|
|
9648
|
+
return e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.LIST = "LIST", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e.KANBAN_WIDGET = "KANBAN_WIDGET", e.LIST_WIDGET = "LIST_WIDGET", e.CALENDAR_WIDGET = "CALENDAR_WIDGET", e;
|
|
9649
|
+
}({}), gp = /* @__PURE__ */ function(e) {
|
|
9648
9650
|
return e.WORKSPACE = "WORKSPACE", e.UNLISTED = "UNLISTED", e;
|
|
9649
|
-
}({}),
|
|
9651
|
+
}({}), _p = "20202020-64aa-4b6f-b003-9c74b97cee20", $ = ({ entityNamespace: e, value: t, applicationUniversalIdentifier: n }) => u(`${e}:${t}`, n), vp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
|
|
9650
9652
|
entityNamespace: "fieldMetadata",
|
|
9651
9653
|
value: `${t}:${n}`,
|
|
9652
9654
|
applicationUniversalIdentifier: e
|
|
9653
|
-
}),
|
|
9655
|
+
}), yp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
|
|
9654
9656
|
entityNamespace: "pageLayout",
|
|
9655
9657
|
value: t ? `${t}:${n}` : n,
|
|
9656
9658
|
applicationUniversalIdentifier: e
|
|
9657
|
-
}),
|
|
9659
|
+
}), bp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutUniversalIdentifier: t, title: n }) => $({
|
|
9658
9660
|
entityNamespace: "pageLayoutTab",
|
|
9659
9661
|
value: `${t}:${n}`,
|
|
9660
9662
|
applicationUniversalIdentifier: e
|
|
9661
|
-
}),
|
|
9663
|
+
}), xp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutTabUniversalIdentifier: t, title: n }) => $({
|
|
9662
9664
|
entityNamespace: "pageLayoutWidget",
|
|
9663
9665
|
value: `${t}:${n}`,
|
|
9664
9666
|
applicationUniversalIdentifier: e
|
|
9665
|
-
}),
|
|
9667
|
+
}), Sp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t }) => yp({
|
|
9666
9668
|
applicationUniversalIdentifier: e,
|
|
9667
9669
|
objectUniversalIdentifier: t,
|
|
9668
|
-
name:
|
|
9669
|
-
}),
|
|
9670
|
+
name: tp.RECORD_PAGE
|
|
9671
|
+
}), Cp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, relationTargetObjectUniversalIdentifier: n }) => $({
|
|
9670
9672
|
entityNamespace: "fieldMetadata",
|
|
9671
9673
|
value: `${t}:systemRelation:${n}`,
|
|
9672
9674
|
applicationUniversalIdentifier: e
|
|
9673
|
-
}),
|
|
9675
|
+
}), wp = ({ objectMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, name: n }) => $({
|
|
9674
9676
|
entityNamespace: "viewFieldGroup",
|
|
9675
9677
|
value: `${t}:${n}`,
|
|
9676
9678
|
applicationUniversalIdentifier: e
|
|
9677
|
-
}),
|
|
9679
|
+
}), Tp = ({ fieldMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, fieldMetadataUniversalIdentifier: n }) => $({
|
|
9678
9680
|
entityNamespace: "viewField",
|
|
9679
9681
|
value: `${t}:${n}`,
|
|
9680
9682
|
applicationUniversalIdentifier: e
|
|
9681
|
-
}),
|
|
9683
|
+
}), Ep = {
|
|
9682
9684
|
INDEX: "INDEX",
|
|
9683
9685
|
FIELDS_WIDGET: "FIELDS_WIDGET"
|
|
9684
|
-
},
|
|
9686
|
+
}, Dp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t, viewKey: n }) => $({
|
|
9685
9687
|
entityNamespace: "view",
|
|
9686
9688
|
value: `${t}:${n}`,
|
|
9687
9689
|
applicationUniversalIdentifier: e
|
|
9688
|
-
}),
|
|
9690
|
+
}), Op = ["MONTH"], kp = (e) => Op.includes(e), Ap = ["WORKSPACE_MEMBER"], jp = (e) => Ap.includes(e), Mp = 1e8, Np = [
|
|
9689
9691
|
"Communication",
|
|
9690
9692
|
"Productivity",
|
|
9691
9693
|
"Product management",
|
|
@@ -9695,32 +9697,40 @@ var Vf = /* @__PURE__ */ function(e) {
|
|
|
9695
9697
|
"Data",
|
|
9696
9698
|
"Search",
|
|
9697
9699
|
"Other"
|
|
9698
|
-
],
|
|
9700
|
+
], Pp = (e) => Np.includes(e);
|
|
9699
9701
|
Q.TEXT, Q.ARRAY, Q.BOOLEAN, Q.DATE, Q.DATE_TIME, Q.NUMBER, Q.NUMERIC, Q.RAW_JSON, Q.RICH_TEXT, Q.SELECT, Q.MULTI_SELECT;
|
|
9700
9702
|
//#endregion
|
|
9701
9703
|
//#region ../twenty-shared/dist/application.mjs
|
|
9702
|
-
var
|
|
9704
|
+
var Fp = "public", Ip = "front-component-shared-dependencies.mjs", Lp = "twenty:front-component-shared-dependencies", Rp = { js: "import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);" }, zp = ".twenty/output", Bp = /* @__PURE__ */ function(e) {
|
|
9703
9705
|
return e.Object = "object", e.Field = "field", e.LogicFunction = "logicFunction", e.FrontComponent = "frontComponent", e.Role = "role", e.Skill = "skill", e.Agent = "agent", e.ConnectionProvider = "connectionProvider", e.View = "view", e.ViewField = "viewField", e.NavigationMenuItem = "navigationMenuItem", e.PageLayout = "pageLayout", e.PageLayoutTab = "pageLayoutTab", e.CommandMenuItem = "commandMenuItem", e.TimelineActivityType = "timelineActivityType", e;
|
|
9704
|
-
}({}),
|
|
9705
|
-
|
|
9706
|
+
}({}), Vp = [
|
|
9707
|
+
"AI_CHAT_TOKEN",
|
|
9708
|
+
"AI_WORKFLOW_TOKEN",
|
|
9709
|
+
"WORKFLOW_EXECUTION",
|
|
9710
|
+
"CODE_EXECUTION",
|
|
9711
|
+
"WEB_SEARCH",
|
|
9712
|
+
"CALL_RECORDING",
|
|
9713
|
+
"EMAIL_SEND"
|
|
9714
|
+
], Hp = (e) => Vp.includes(e), Up = (e) => `__shared_dependencies_${e.replace(/[^A-Za-z0-9]/g, "_")}__`, Wp = ({ specifier: e, exportNames: t }) => {
|
|
9715
|
+
let n = Up(e), r = [`import { ${n} } from ${JSON.stringify(Lp)};`];
|
|
9706
9716
|
for (let [e, i] of t.namedExports.entries()) r.push(`const __sharedDependenciesExport${e} = ${n}[${JSON.stringify(i)}];`, `export { __sharedDependenciesExport${e} as ${JSON.stringify(i)} };`);
|
|
9707
9717
|
return t.hasDefaultExport && r.push(`export default ${n}.default;`), r.join("\n");
|
|
9708
|
-
},
|
|
9718
|
+
}, Gp = "twenty-shared-dependencies-shim", Kp = (e) => ({
|
|
9709
9719
|
name: "twenty-shared-dependencies-shim",
|
|
9710
9720
|
setup: (t) => {
|
|
9711
9721
|
t.onResolve({ filter: /.*/ }, ({ path: t }) => {
|
|
9712
9722
|
let n = e();
|
|
9713
9723
|
if (se(n) && n.exportNamesBySpecifier.has(t)) return {
|
|
9714
9724
|
path: t,
|
|
9715
|
-
namespace:
|
|
9725
|
+
namespace: Gp
|
|
9716
9726
|
};
|
|
9717
9727
|
}), t.onLoad({
|
|
9718
9728
|
filter: /.*/,
|
|
9719
|
-
namespace:
|
|
9729
|
+
namespace: Gp
|
|
9720
9730
|
}, ({ path: t }) => {
|
|
9721
9731
|
let n = e()?.exportNamesBySpecifier.get(t);
|
|
9722
9732
|
if (se(n)) return {
|
|
9723
|
-
contents:
|
|
9733
|
+
contents: Wp({
|
|
9724
9734
|
specifier: t,
|
|
9725
9735
|
exportNames: n
|
|
9726
9736
|
}),
|
|
@@ -9728,19 +9738,19 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
|
|
|
9728
9738
|
};
|
|
9729
9739
|
});
|
|
9730
9740
|
}
|
|
9731
|
-
}),
|
|
9741
|
+
}), qp = (e) => `if (typeof document !== 'undefined') {
|
|
9732
9742
|
const styleElement = document.createElement('style');
|
|
9733
9743
|
document.head.appendChild(styleElement);
|
|
9734
9744
|
styleElement.textContent = ${JSON.stringify(e)};
|
|
9735
|
-
}`,
|
|
9745
|
+
}`, Jp = {
|
|
9736
9746
|
name: "css-injection",
|
|
9737
9747
|
setup: (e) => {
|
|
9738
9748
|
e.onLoad({ filter: /\.css$/ }, async ({ path: e }) => ({
|
|
9739
|
-
contents:
|
|
9749
|
+
contents: qp(await a(e, "utf8")),
|
|
9740
9750
|
loader: "js"
|
|
9741
9751
|
}));
|
|
9742
9752
|
}
|
|
9743
|
-
},
|
|
9753
|
+
}, Yp = "export var customElementMap = globalThis.__HTML_TAG_TO_CUSTOM_ELEMENT_TAG__ || {};\n\nvar _injectedStyleKeys = {};\n\nexport function injectStyleViaHead(cssText) {\n if (!cssText) return;\n var hash = 0;\n for (var i = 0; i < cssText.length; i++) {\n hash = ((hash << 5) - hash + cssText.charCodeAt(i)) | 0;\n }\n var key = 'jsx-style-' + hash;\n if (_injectedStyleKeys[key]) return;\n _injectedStyleKeys[key] = true;\n var el = document.createElement('style');\n el.setAttribute('data-jsx-style', key);\n el.textContent = cssText;\n document.head.appendChild(el);\n}\n\nexport function extractCssText(children) {\n if (typeof children === 'string') return children;\n if (Array.isArray(children))\n return children\n .filter(function (c) { return typeof c === 'string'; })\n .join('');\n return '';\n}\n\nvar _reactToDomEvent = {\n ondoubleclick: 'ondblclick',\n};\n\nfunction _isEventProp(name) {\n return (\n name.length > 2 &&\n name.charCodeAt(0) === 111 &&\n name.charCodeAt(1) === 110 &&\n name.charCodeAt(2) >= 65 &&\n name.charCodeAt(2) <= 90\n );\n}\n\nexport function splitEventProps(props) {\n if (!props) return { cleanProps: props, events: null };\n var events = null;\n var cleanProps = null;\n for (var k in props) {\n if (_isEventProp(k) && typeof props[k] === 'function') {\n if (!events) {\n events = {};\n cleanProps = {};\n for (var j in props) {\n if (j === k) break;\n cleanProps[j] = props[j];\n }\n }\n events[k] = props[k];\n } else if (events) {\n cleanProps[k] = props[k];\n }\n }\n return { cleanProps: cleanProps || props, events: events };\n}\n\nexport function makeEventRef(events, userRef) {\n return function(el) {\n if (el) {\n for (var name in events) {\n var domName = _reactToDomEvent[name.toLowerCase()] || name.toLowerCase();\n el[domName] = events[name];\n }\n }\n if (typeof userRef === 'function') userRef(el);\n else if (userRef != null && typeof userRef === 'object') userRef.current = el;\n };\n}", Xp = "import {\n jsx as _originalJsx,\n jsxs as _originalJsxs,\n Fragment,\n} from '__real_react_jsx_runtime__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nfunction _wrapJsxFactory(originalFactory) {\n return function wrappedJsx(type, props, key) {\n if (typeof type === 'string') {\n if (type === 'style') {\n var css =\n props && props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props && props.children);\n injectStyleViaHead(css);\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var split = splitEventProps(props);\n if (split.events) {\n var cp = split.cleanProps;\n cp.ref = makeEventRef(split.events, cp.ref);\n return originalFactory(customTag, cp, key);\n }\n return originalFactory(customTag, props, key);\n }\n }\n return originalFactory(type, props, key);\n };\n}\n\nexport var jsx = _wrapJsxFactory(_originalJsx);\nexport var jsxs = _wrapJsxFactory(_originalJsxs);\nexport { Fragment };", Zp = "export * from '__real_react__';\nimport _React from '__real_react__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nvar _originalCreateElement = _React.createElement;\n\nfunction createElement(type) {\n var args = arguments;\n if (typeof type === 'string') {\n if (type === 'style') {\n var props = args.length > 1 ? args[1] : null;\n if (props) {\n var css = props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props.children);\n injectStyleViaHead(css);\n }\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var ceProps = args.length > 1 ? args[1] : null;\n var split = splitEventProps(ceProps);\n if (split.events) {\n var cp = split.cleanProps || {};\n cp.ref = makeEventRef(split.events, cp.ref);\n var newArgs = [customTag, cp];\n for (var i = 2; i < args.length; i++) newArgs.push(args[i]);\n return _originalCreateElement.apply(null, newArgs);\n }\n var newArgs2 = [customTag];\n for (var i2 = 1; i2 < args.length; i2++) newArgs2.push(args[i2]);\n return _originalCreateElement.apply(null, newArgs2);\n }\n }\n return _originalCreateElement.apply(null, args);\n}\n\nexport { createElement };\nexport default Object.assign({}, _React, { createElement: createElement });", Qp = (e) => {
|
|
9744
9754
|
let t = e?.usePreact ?? !1, n = t ? "preact/jsx-runtime" : "react/jsx-runtime", r = t ? "preact/compat" : "react";
|
|
9745
9755
|
return {
|
|
9746
9756
|
name: "jsx-runtime-remote-wrapper",
|
|
@@ -9753,7 +9763,7 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
|
|
|
9753
9763
|
filter: /.*/,
|
|
9754
9764
|
namespace: "jsx-shared-helpers"
|
|
9755
9765
|
}, () => ({
|
|
9756
|
-
contents:
|
|
9766
|
+
contents: Yp,
|
|
9757
9767
|
loader: "js"
|
|
9758
9768
|
})), e.onResolve({ filter: /^react\/jsx-runtime$/ }, async (r) => {
|
|
9759
9769
|
if (!r.pluginData?.skipJsxWrapper) return t ||= (await e.resolve(n, {
|
|
@@ -9771,7 +9781,7 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
|
|
|
9771
9781
|
filter: /.*/,
|
|
9772
9782
|
namespace: "jsx-runtime-wrapper"
|
|
9773
9783
|
}, () => ({
|
|
9774
|
-
contents:
|
|
9784
|
+
contents: Xp,
|
|
9775
9785
|
loader: "js"
|
|
9776
9786
|
})), e.onResolve({ filter: /^react$/ }, async (t) => {
|
|
9777
9787
|
if (!t.pluginData?.skipJsxWrapper) return i ||= (await e.resolve(r, {
|
|
@@ -9789,28 +9799,28 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
|
|
|
9789
9799
|
filter: /.*/,
|
|
9790
9800
|
namespace: "react-wrapper"
|
|
9791
9801
|
}, () => ({
|
|
9792
|
-
contents:
|
|
9802
|
+
contents: Zp,
|
|
9793
9803
|
loader: "js"
|
|
9794
9804
|
}));
|
|
9795
9805
|
}
|
|
9796
9806
|
};
|
|
9797
|
-
},
|
|
9798
|
-
let t = e.replace(
|
|
9799
|
-
if (!
|
|
9800
|
-
t = t.replace(
|
|
9801
|
-
let n = t.match(
|
|
9807
|
+
}, $p = /import\s*\{\s*define(?:Settings)?FrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, em = /export\s+default\s+define(?:Settings)?FrontComponent\s*\(/, tm = /component\s*:\s*([A-Za-z_$][\w$]*)\s*[,}]/, nm = "__frontComponentDefinition", rm = (e) => {
|
|
9808
|
+
let t = e.replace($p, "");
|
|
9809
|
+
if (!em.test(t)) return t;
|
|
9810
|
+
t = t.replace(em, `const ${nm} = (`);
|
|
9811
|
+
let n = t.match(tm);
|
|
9802
9812
|
if (n) {
|
|
9803
9813
|
let e = n[1];
|
|
9804
9814
|
t = t.replace(RegExp(`export\\s+(const|function)\\s+${e}\\b`), `$1 ${e}`);
|
|
9805
9815
|
}
|
|
9806
|
-
return "import { createRoot as __createRoot } from 'react-dom/client';\nimport { jsx as __frontComponentJsx } from 'react/jsx-runtime';\n" + t + `\nexport default function __renderFrontComponent(__container) { __createRoot(__container).render(__frontComponentJsx(${
|
|
9807
|
-
},
|
|
9816
|
+
return "import { createRoot as __createRoot } from 'react-dom/client';\nimport { jsx as __frontComponentJsx } from 'react/jsx-runtime';\n" + t + `\nexport default function __renderFrontComponent(__container) { __createRoot(__container).render(__frontComponentJsx(${nm}.component, {})); }\n`;
|
|
9817
|
+
}, im = {
|
|
9808
9818
|
name: "jsx-transform-to-remote-dom-worker-format-plugin",
|
|
9809
9819
|
setup: (e) => {
|
|
9810
9820
|
e.onLoad({ filter: /\.tsx$/ }, async ({ path: e }) => {
|
|
9811
9821
|
try {
|
|
9812
9822
|
return {
|
|
9813
|
-
contents:
|
|
9823
|
+
contents: rm(await a(e, "utf8")),
|
|
9814
9824
|
loader: "tsx"
|
|
9815
9825
|
};
|
|
9816
9826
|
} catch (t) {
|
|
@@ -9821,7 +9831,7 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
|
|
|
9821
9831
|
}
|
|
9822
9832
|
});
|
|
9823
9833
|
}
|
|
9824
|
-
},
|
|
9834
|
+
}, am = () => ({
|
|
9825
9835
|
name: "preact-alias",
|
|
9826
9836
|
setup: (e) => {
|
|
9827
9837
|
let t;
|
|
@@ -9833,25 +9843,25 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
|
|
|
9833
9843
|
resolveDir: t.resolveDir
|
|
9834
9844
|
})).path }));
|
|
9835
9845
|
}
|
|
9836
|
-
}),
|
|
9846
|
+
}), om = /^\/\/.*$\n/gm, sm = {
|
|
9837
9847
|
name: "strip-comments",
|
|
9838
9848
|
setup: (e) => {
|
|
9839
9849
|
e.onEnd(async (e) => {
|
|
9840
9850
|
if (e.errors.length > 0) return;
|
|
9841
9851
|
let t = Object.keys(e.metafile?.outputs ?? {}).filter((e) => e.endsWith(".mjs"));
|
|
9842
9852
|
for (let e of t) {
|
|
9843
|
-
let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(
|
|
9853
|
+
let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(om, "");
|
|
9844
9854
|
r !== n && await o(t, r, "utf-8");
|
|
9845
9855
|
}
|
|
9846
9856
|
});
|
|
9847
9857
|
}
|
|
9848
|
-
},
|
|
9849
|
-
...se(e?.getSharedDependenciesBuildContext) ? [
|
|
9850
|
-
|
|
9851
|
-
...e?.usePreact ? [
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9858
|
+
}, cm = (e) => [
|
|
9859
|
+
...se(e?.getSharedDependenciesBuildContext) ? [Kp(e.getSharedDependenciesBuildContext)] : [],
|
|
9860
|
+
Qp(e?.usePreact ? { usePreact: !0 } : void 0),
|
|
9861
|
+
...e?.usePreact ? [am()] : [],
|
|
9862
|
+
im,
|
|
9863
|
+
Jp,
|
|
9864
|
+
sm
|
|
9855
9865
|
];
|
|
9856
9866
|
//#endregion
|
|
9857
|
-
export {
|
|
9867
|
+
export { jf as $, up as A, se as At, ap as B, _p as C, of as Ct, wp as D, El as Dt, xp as E, Zu as Et, cp as F, ep as G, Wf as H, Vf as I, Af as J, rp as K, lp as L, dp as M, m as Mt, Hf as N, oe as Nt, hp as O, $t as Ot, fp as P, ae as Pt, Jf as Q, Uf as R, Cp as S, qu as St, Dp as T, q as Tt, gp as U, Gf as V, Kf as W, $f as X, Zf as Y, Bf as Z, Pp as _, gu as _t, Rp as a, tp as at, Ep as b, Yu as bt, Np as c, np as ct, Bp as d, pf as dt, Qf as et, jp as f, fd as ft, Fp as g, Cl as gt, kp as h, $u as ht, Ip as i, Yf as it, qf as j, re as jt, op as k, ce as kt, Op as l, mp as lt, Ap as m, Su as mt, Up as n, Q as nt, zp as o, sp as ot, Lp as p, Wu as pt, Xf as q, Vp as r, Of as rt, Hp as s, ip as st, cm as t, kf as tt, Mp as u, vf as ut, Sp as v, Kd as vt, bp as w, ad as wt, vp as x, hu as xt, Tp as y, hd as yt, pp as z };
|
|
@@ -2,7 +2,7 @@ import { createRequire as e } from "node:module";
|
|
|
2
2
|
import { fileURLToPath as t } from "node:url";
|
|
3
3
|
import { dirname as n } from "node:path";
|
|
4
4
|
e(import.meta.url), n(t(import.meta.url));
|
|
5
|
-
import {
|
|
5
|
+
import { At as r } from "./get-front-component-build-plugins-BvcwEryG.mjs";
|
|
6
6
|
import { ScriptTarget as i, SyntaxKind as a, createSourceFile as o } from "typescript";
|
|
7
7
|
//#region ../twenty-shared/dist/get-function-input-schema-GNk3NRLJ.mjs
|
|
8
8
|
var s = "TwentyRecord", c = (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./get-front-component-build-plugins-
|
|
1
|
+
const e=require("./get-front-component-build-plugins-BR8EOlIe.js");let t=require("typescript");var n=`TwentyRecord`,r=n=>{let r=n.typeArguments?.[0];if(e.At(r)&&r.kind===t.SyntaxKind.LiteralType&&r.literal.kind===t.SyntaxKind.StringLiteral)return r.literal.text},i=e=>e.type===`record`?{type:`records`,objectUniversalIdentifier:e.objectUniversalIdentifier}:{type:`array`,items:e},a=o=>{switch(o.kind){case t.SyntaxKind.NumberKeyword:return{type:`number`};case t.SyntaxKind.StringKeyword:return{type:`string`};case t.SyntaxKind.BooleanKeyword:return{type:`boolean`};case t.SyntaxKind.ArrayType:return i(a(o.elementType));case t.SyntaxKind.TypeReference:{let s=o,c=s.typeName.kind===t.SyntaxKind.Identifier?s.typeName.text:void 0;if(c===`Array`||c===`ReadonlyArray`){let t=s.typeArguments?.[0];return i(e.At(t)?a(t):{})}if(c===n){let t=r(s);if(e.At(t))return{type:`record`,objectUniversalIdentifier:t}}return{}}case t.SyntaxKind.ObjectKeyword:return{type:`object`};case t.SyntaxKind.TypeLiteral:{let t={};return o.members.forEach(n=>{if(e.At(n.name)&&e.At(n.type)){let e=n.name.text;t[e]=a(n.type)}}),{type:`object`,properties:t}}case t.SyntaxKind.UnionType:{let e=o,n=[],r=!0;return e.types.forEach(e=>{if(e.kind===t.SyntaxKind.LiteralType){let i=e.literal;i.kind===t.SyntaxKind.StringLiteral?n.push(i.text):r=!1}else r=!1}),r?{type:`string`,enum:n}:{}}default:return{}}},o=(t,n)=>t.parameters.reduce((t,n)=>{let r=n.type;return e.At(r)?[...t,a(r)]:[...t,{}]},n),s=n=>n.kind===t.SyntaxKind.FunctionDeclaration?[n]:n.kind===t.SyntaxKind.VariableStatement?n.declarationList.declarations.filter(n=>e.At(n.initializer)&&n.initializer.kind===t.SyntaxKind.ArrowFunction).map(e=>e.initializer):[],c=e=>{let n=(0,t.createSourceFile)(`temp.ts`,e,t.ScriptTarget.ESNext,!0),r=[];return n.forEachChild(e=>{(e.kind===t.SyntaxKind.FunctionDeclaration||e.kind===t.SyntaxKind.VariableStatement)&&s(e).forEach(e=>{r=o(e,r)})}),r};exports.getFunctionInputSchema=c;
|
|
@@ -55,7 +55,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
55
55
|
success
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
`,va=async e=>{let{runAgent:t}=await Q({query:_a,variables:{input:e},caller:`runAgent`});return t},ya=async e=>{let{enqueueJob:t}=await new r.MetadataApiClient().mutation({enqueueJob:{__args:{input:e},enqueued:!0,logicFunctionUniversalIdentifier:!0}});return t},ba=async e=>{let{enqueueJobs:t}=await new r.MetadataApiClient().mutation({enqueueJobs:{__args:{input:e},enqueued:!0,logicFunctionUniversalIdentifier:!0,enqueuedJobsCount:!0}});return t},xa=e=>(0,t.isNonEmptyString)(e)?e[0].toUpperCase()+e.slice(1):``,
|
|
58
|
+
`,va=async e=>{let{runAgent:t}=await Q({query:_a,variables:{input:e},caller:`runAgent`});return t},ya=async e=>{let{enqueueJob:t}=await new r.MetadataApiClient().mutation({enqueueJob:{__args:{input:e},enqueued:!0,logicFunctionUniversalIdentifier:!0,jobId:!0}});return t},ba=async e=>{let{enqueueJobs:t}=await new r.MetadataApiClient().mutation({enqueueJobs:{__args:{input:e},enqueued:!0,logicFunctionUniversalIdentifier:!0,enqueuedJobsCount:!0,jobIds:!0}});return t},xa=async e=>{let{getJobs:t}=await new r.MetadataApiClient().query({getJobs:{__args:{jobIds:e},jobId:!0,state:!0,attemptsMade:!0,failedReason:!0,enqueuedAt:!0,startedAt:!0,finishedAt:!0}});return t},Sa=e=>(0,t.isNonEmptyString)(e)?e[0].toUpperCase()+e.slice(1):``,Ca=e=>({__args:{paging:{first:e.length},filter:{universalIdentifier:{in:e}}},edges:{node:{id:!0,universalIdentifier:!0,nameSingular:!0}}}),wa=async({timelineActivityTypeUniversalIdentifier:t,targetObjectUniversalIdentifier:n,linkedObjectMetadataUniversalIdentifier:a,targetRecordId:o,...s})=>{let c=[...new Set([n,a].filter(e.t))],{timelineActivityTypes:l,objects:u}=await new r.MetadataApiClient().query({timelineActivityTypes:{id:!0,universalIdentifier:!0,isActive:!0},objects:Ca(c)}),d=l.find(({universalIdentifier:e})=>e===t);if(!e.t(d))throw Error(`Timeline activity type ${t} is not installed`);if(!d.isActive)throw Error(`Timeline activity type ${t} is inactive`);let f=new Map(u.edges.map(({node:e})=>[e.universalIdentifier,e])),p=f.get(n);if(!e.t(p))throw Error(`Timeline activity target object ${n} is not installed`);let m=`target${Sa(p.nameSingular)}Id`,h=e.t(a)?f.get(a):void 0;if(e.t(a)&&!e.t(h))throw Error(`Timeline activity linked object ${a} is not installed`);return(await new i.RestApiClient().post(`/rest/timelineActivities`,{...s,timelineActivityTypeId:d.id,linkedObjectMetadataId:h?.id,[m]:o})).data.createTimelineActivity},Ta=`
|
|
59
59
|
query GetAppKeyValue($key: String!, $scope: AppKeyValueScope) {
|
|
60
60
|
appKeyValue(key: $key, scope: $scope) {
|
|
61
61
|
key
|
|
@@ -63,7 +63,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
63
63
|
scope
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
66
|
+
`,Ea=`
|
|
67
67
|
mutation SetAppKeyValue($input: SetAppKeyValueInput!) {
|
|
68
68
|
setAppKeyValue(input: $input) {
|
|
69
69
|
key
|
|
@@ -71,9 +71,9 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
71
71
|
scope
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`,
|
|
74
|
+
`,Da=`
|
|
75
75
|
mutation DeleteAppKeyValue($key: String!, $scope: AppKeyValueScope) {
|
|
76
76
|
deleteAppKeyValue(key: $key, scope: $scope)
|
|
77
77
|
}
|
|
78
|
-
`,$=`WORKSPACE`,
|
|
78
|
+
`,$=`WORKSPACE`,Oa={async get(e,t){let{appKeyValue:n}=await Q({query:Ta,variables:{key:e,scope:t?.scope??$},caller:`kv.get`});return n?.value??null},async set(e,t,n){await Q({query:Ea,variables:{input:{key:e,value:t,scope:n?.scope??$}},caller:`kv.set`})},async delete(e,t){let{deleteAppKeyValue:n}=await Q({query:Da,variables:{key:e,scope:t?.scope??$},caller:`kv.delete`});return n}},ka=class{constructor(e,t){this.__twentyHttpResponse=!0,this.body=e,this.status=t?.status,this.headers=t?.headers}};exports.AppConnectionAuthFailedError=ie,exports.Response=ka,exports.RetryableLogicFunctionError=re,exports.createTimelineActivity=wa,exports.enqueueJob=ya,exports.enqueueJobs=ba,exports.findConnectionForRequest=ga,exports.getConnection=pa,exports.getJobs=xa,exports.jsonSchemaToInputSchema=l,exports.kv=Oa,exports.listConnections=ha,exports.runAgent=va;
|
|
79
79
|
//# sourceMappingURL=index.cjs.map
|