twenty-sdk 2.31.0 → 2.33.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.
Files changed (45) hide show
  1. package/dist/billing/index.cjs +1 -1
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.mjs +2 -2
  4. package/dist/billing/index.mjs.map +1 -1
  5. package/dist/{catalog-sync-Ch6nB5uf.mjs → catalog-sync-DUp5hpKi.mjs} +1 -1
  6. package/dist/{catalog-sync-yH3B_al1.js → catalog-sync-DoEI8JO8.js} +1 -1
  7. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
  8. package/dist/cli/utilities/translations/collect-translatable-strings.d.ts +2 -1
  9. package/dist/cli/utilities/translations/compile-application-translations.d.ts +1 -1
  10. package/dist/cli/utilities/translations/compile-catalog-to-message-ids.d.ts +8 -0
  11. package/dist/cli/utilities/translations/locale-catalog-format.d.ts +7 -0
  12. package/dist/cli.cjs +37 -37
  13. package/dist/cli.mjs +3139 -3132
  14. package/dist/define/index.cjs +14 -14
  15. package/dist/define/index.cjs.map +1 -1
  16. package/dist/define/index.d.ts +35 -4
  17. package/dist/define/index.mjs +2745 -2733
  18. package/dist/define/index.mjs.map +1 -1
  19. package/dist/front-component/index.cjs +22 -3
  20. package/dist/front-component/index.cjs.map +1 -1
  21. package/dist/front-component/index.d.ts +48 -5
  22. package/dist/front-component/index.mjs +2026 -655
  23. package/dist/front-component/index.mjs.map +1 -1
  24. package/dist/front-component-renderer/build.cjs +1 -1
  25. package/dist/front-component-renderer/build.mjs +1 -1
  26. package/dist/{get-front-component-build-plugins-DA62IZes.mjs → get-front-component-build-plugins-Cn-MWltl.mjs} +69 -67
  27. package/dist/{get-front-component-build-plugins-C-Webbfn.js → get-front-component-build-plugins-DsfkhD6M.js} +8 -8
  28. package/dist/{get-function-input-schema-GNk3NRLJ-DwfXUGPz.js → get-function-input-schema-GNk3NRLJ-B8zXGirB.js} +1 -1
  29. package/dist/{get-function-input-schema-GNk3NRLJ-C5HXalke.mjs → get-function-input-schema-GNk3NRLJ-CwF3VRY5.mjs} +1 -1
  30. package/dist/logic-function/index.cjs +9 -9
  31. package/dist/logic-function/index.cjs.map +1 -1
  32. package/dist/logic-function/index.d.ts +17 -4
  33. package/dist/logic-function/index.mjs +439 -435
  34. package/dist/logic-function/index.mjs.map +1 -1
  35. package/dist/{login-BHgUJK94.mjs → login-153niBFr.mjs} +5897 -4474
  36. package/dist/{login-BzHQgxeV.js → login-Cl5xmujh.js} +66 -47
  37. package/dist/operations.cjs +1 -1
  38. package/dist/operations.mjs +3 -3
  39. package/dist/utils/index.cjs +1 -1
  40. package/dist/utils/index.cjs.map +1 -1
  41. package/dist/utils/index.mjs +2 -2
  42. package/dist/utils/index.mjs.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/cli/utilities/client/twenty-client-template.d.ts +0 -42
  45. package/dist/cli/utilities/translations/generate-message-id.d.ts +0 -1
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../get-front-component-build-plugins-C-Webbfn.js");exports.getFrontComponentBuildPlugins=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../get-front-component-build-plugins-DsfkhD6M.js");exports.getFrontComponentBuildPlugins=e.t;
@@ -2,5 +2,5 @@ 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 { t as r } from "../get-front-component-build-plugins-DA62IZes.mjs";
5
+ import { t as r } from "../get-front-component-build-plugins-Cn-MWltl.mjs";
6
6
  export { r as getFrontComponentBuildPlugins };
@@ -9364,7 +9364,7 @@ var Q = /* @__PURE__ */ function(e) {
9364
9364
  }({}), Of = /* @__PURE__ */ function(e) {
9365
9365
  return e.MIN = "MIN", e.MAX = "MAX", e.AVG = "AVG", e.SUM = "SUM", e.COUNT = "COUNT", e.COUNT_UNIQUE_VALUES = "COUNT_UNIQUE_VALUES", e.COUNT_EMPTY = "COUNT_EMPTY", e.COUNT_NOT_EMPTY = "COUNT_NOT_EMPTY", e.COUNT_TRUE = "COUNT_TRUE", e.COUNT_FALSE = "COUNT_FALSE", e.PERCENTAGE_EMPTY = "PERCENTAGE_EMPTY", e.PERCENTAGE_NOT_EMPTY = "PERCENTAGE_NOT_EMPTY", e;
9366
9366
  }({}), kf = /* @__PURE__ */ function(e) {
9367
- return e.Verify = "/verify", e.VerifyEmail = "/verify-email", e.SignInUp = "/welcome", e.Invite = "/invite/:workspaceInviteHash", e.ResetPassword = "/reset-password/:passwordResetToken", e.WorkspaceActivation = "/workspace-activation", e.CreateProfile = "/create/profile", e.SyncEmails = "/sync/emails", e.InstallApps = "/install-apps", e.InviteTeam = "/invite-team", e.PlanRequired = "/plan-required", e.PlanRequiredSuccess = "/plan-required/payment-success", e.BookCall = "/book-call", e.AiChat = "/chat/:threadId?", e.Index = "/", e.TasksPage = "/objects/tasks", e.OpportunitiesPage = "/objects/opportunities", e.RecordIndexPage = "/objects/:objectNamePlural", e.RecordShowPage = "/object/:objectNameSingular/:objectRecordId", e.PageLayoutPage = "/page/:pageLayoutId", e.Settings = "settings", e.SettingsCatchAll = "/settings/*", e.Developers = "developers", e.DevelopersCatchAll = "/developers/*", e.Authorize = "/authorize", e.Dpa = "/dpa", e.NotFoundWildcard = "*", e.NotFound = "/not-found", e;
9367
+ return e.Verify = "/verify", e.VerifyEmail = "/verify-email", e.SignInUp = "/welcome", e.Invite = "/invite/:workspaceInviteHash", e.ResetPassword = "/reset-password/:passwordResetToken", e.WorkspaceActivation = "/workspace-activation", e.CreateProfile = "/create/profile", e.SyncEmails = "/sync/emails", e.InstallApps = "/install-apps", e.InviteTeam = "/invite-team", e.PlanRequired = "/plan-required", e.PlanRequiredSuccess = "/plan-required/payment-success", e.BookCall = "/book-call", e.AiChat = "/chat/:threadId?", e.Index = "/", e.Home = "/home", e.TasksPage = "/objects/tasks", e.OpportunitiesPage = "/objects/opportunities", e.RecordIndexPage = "/objects/:objectNamePlural", e.RecordShowPage = "/object/:objectNameSingular/:objectRecordId", e.PageLayoutPage = "/page/:pageLayoutId", e.WorkflowCoreIndexPage = "/workflow-core", e.Settings = "settings", e.SettingsCatchAll = "/settings/*", e.Developers = "developers", e.DevelopersCatchAll = "/developers/*", e.Authorize = "/authorize", e.Dpa = "/dpa", e.NotFoundWildcard = "*", e.NotFound = "/not-found", e;
9368
9368
  }({}), Af = /* @__PURE__ */ function(e) {
9369
9369
  return e.EMAIL = "EMAIL", e.CALENDAR = "CALENDAR", e.WORKFLOW = "WORKFLOW", e.AGENT = "AGENT", e.API = "API", e.IMPORT = "IMPORT", e.MANUAL = "MANUAL", e.SYSTEM = "SYSTEM", e.WEBHOOK = "WEBHOOK", e.APPLICATION = "APPLICATION", e;
9370
9370
  }({}), jf = {
@@ -9577,7 +9577,7 @@ qu({
9577
9577
  [Q.RICH_TEXT, Rf]
9578
9578
  ]);
9579
9579
  //#endregion
9580
- //#region ../twenty-shared/dist/types-DqRm8qgD.mjs
9580
+ //#region ../twenty-shared/dist/types-C6rmvVia.mjs
9581
9581
  var zf = {
9582
9582
  UUID: "uuid",
9583
9583
  NOW: "now"
@@ -9596,88 +9596,90 @@ var Bf = /* @__PURE__ */ function(e) {
9596
9596
  }({}), Gf = /* @__PURE__ */ function(e) {
9597
9597
  return e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e;
9598
9598
  }({}), Kf = /* @__PURE__ */ function(e) {
9599
- return e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e;
9599
+ return e.OPEN = "OPEN", e.APPLICATION = "APPLICATION", e.SYSTEM = "SYSTEM", e;
9600
9600
  }({}), qf = /* @__PURE__ */ function(e) {
9601
- return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e.USER_CHOICE = "USER_CHOICE", e;
9601
+ return e.VIEW = "VIEW", e.FOLDER = "FOLDER", e.LINK = "LINK", e.OBJECT = "OBJECT", e.RECORD = "RECORD", e.PAGE_LAYOUT = "PAGE_LAYOUT", e;
9602
9602
  }({}), Jf = /* @__PURE__ */ function(e) {
9603
+ return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e.USER_CHOICE = "USER_CHOICE", e;
9604
+ }({}), Yf = /* @__PURE__ */ function(e) {
9603
9605
  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;
9604
- }({}), Yf = [
9606
+ }({}), Xf = [
9605
9607
  "AGGREGATE_CHART",
9606
9608
  "PIE_CHART",
9607
9609
  "BAR_CHART",
9608
9610
  "LINE_CHART"
9609
- ], Xf = /* @__PURE__ */ function(e) {
9611
+ ], Zf = /* @__PURE__ */ function(e) {
9610
9612
  return e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e;
9611
- }({}), Zf = /* @__PURE__ */ function(e) {
9612
- return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e;
9613
9613
  }({}), Qf = /* @__PURE__ */ function(e) {
9614
- return e.AND = "AND", e.OR = "OR", e;
9614
+ return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e;
9615
9615
  }({}), $f = /* @__PURE__ */ function(e) {
9616
- return e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e;
9616
+ return e.AND = "AND", e.OR = "OR", e;
9617
9617
  }({}), ep = /* @__PURE__ */ function(e) {
9618
- return e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e;
9618
+ return e.CASCADE = "CASCADE", e.RESTRICT = "RESTRICT", e.SET_NULL = "SET_NULL", e.NO_ACTION = "NO_ACTION", e;
9619
9619
  }({}), tp = /* @__PURE__ */ function(e) {
9620
- return e.AND = "AND", e.OR = "OR", e;
9620
+ return e.MANY_TO_ONE = "MANY_TO_ONE", e.ONE_TO_MANY = "ONE_TO_MANY", e;
9621
9621
  }({}), np = /* @__PURE__ */ function(e) {
9622
- 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;
9622
+ return e.AND = "AND", e.OR = "OR", e;
9623
9623
  }({}), rp = /* @__PURE__ */ function(e) {
9624
- return e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e;
9624
+ 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;
9625
9625
  }({}), ip = /* @__PURE__ */ function(e) {
9626
- return e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e;
9626
+ return e.DAY = "DAY", e.WEEK = "WEEK", e.MONTH = "MONTH", e;
9627
9627
  }({}), ap = /* @__PURE__ */ function(e) {
9628
- 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;
9628
+ return e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e;
9629
9629
  }({}), op = /* @__PURE__ */ function(e) {
9630
- 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;
9630
+ 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;
9631
9631
  }({}), sp = /* @__PURE__ */ function(e) {
9632
- return e.INDEX = "INDEX", e;
9632
+ 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;
9633
9633
  }({}), cp = /* @__PURE__ */ function(e) {
9634
- return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e;
9634
+ return e.INDEX = "INDEX", e;
9635
9635
  }({}), lp = /* @__PURE__ */ function(e) {
9636
- return e.ASC = "ASC", e.DESC = "DESC", e;
9636
+ return e.SIDE_PANEL = "SIDE_PANEL", e.RECORD_PAGE = "RECORD_PAGE", e;
9637
9637
  }({}), up = /* @__PURE__ */ function(e) {
9638
- 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;
9638
+ return e.ASC = "ASC", e.DESC = "DESC", e;
9639
9639
  }({}), dp = /* @__PURE__ */ function(e) {
9640
+ 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;
9641
+ }({}), fp = /* @__PURE__ */ function(e) {
9640
9642
  return e.WORKSPACE = "WORKSPACE", e.UNLISTED = "UNLISTED", e;
9641
- }({}), fp = "20202020-64aa-4b6f-b003-9c74b97cee20", $ = ({ entityNamespace: e, value: t, applicationUniversalIdentifier: n }) => u(`${e}:${t}`, n), pp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9643
+ }({}), pp = "20202020-64aa-4b6f-b003-9c74b97cee20", $ = ({ entityNamespace: e, value: t, applicationUniversalIdentifier: n }) => u(`${e}:${t}`, n), mp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9642
9644
  entityNamespace: "fieldMetadata",
9643
9645
  value: `${t}:${n}`,
9644
9646
  applicationUniversalIdentifier: e
9645
- }), mp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9647
+ }), hp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, name: n }) => $({
9646
9648
  entityNamespace: "pageLayout",
9647
9649
  value: t ? `${t}:${n}` : n,
9648
9650
  applicationUniversalIdentifier: e
9649
- }), hp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutUniversalIdentifier: t, title: n }) => $({
9651
+ }), gp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutUniversalIdentifier: t, title: n }) => $({
9650
9652
  entityNamespace: "pageLayoutTab",
9651
9653
  value: `${t}:${n}`,
9652
9654
  applicationUniversalIdentifier: e
9653
- }), gp = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutTabUniversalIdentifier: t, title: n }) => $({
9655
+ }), _p = ({ objectMetadataApplicationUniversalIdentifier: e, pageLayoutTabUniversalIdentifier: t, title: n }) => $({
9654
9656
  entityNamespace: "pageLayoutWidget",
9655
9657
  value: `${t}:${n}`,
9656
9658
  applicationUniversalIdentifier: e
9657
- }), _p = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t }) => mp({
9659
+ }), vp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t }) => hp({
9658
9660
  applicationUniversalIdentifier: e,
9659
9661
  objectUniversalIdentifier: t,
9660
- name: Zf.RECORD_PAGE
9661
- }), vp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, relationTargetObjectUniversalIdentifier: n }) => $({
9662
+ name: Qf.RECORD_PAGE
9663
+ }), yp = ({ applicationUniversalIdentifier: e, objectUniversalIdentifier: t, relationTargetObjectUniversalIdentifier: n }) => $({
9662
9664
  entityNamespace: "fieldMetadata",
9663
9665
  value: `${t}:systemRelation:${n}`,
9664
9666
  applicationUniversalIdentifier: e
9665
- }), yp = ({ objectMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, name: n }) => $({
9667
+ }), bp = ({ objectMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, name: n }) => $({
9666
9668
  entityNamespace: "viewFieldGroup",
9667
9669
  value: `${t}:${n}`,
9668
9670
  applicationUniversalIdentifier: e
9669
- }), bp = ({ fieldMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, fieldMetadataUniversalIdentifier: n }) => $({
9671
+ }), xp = ({ fieldMetadataApplicationUniversalIdentifier: e, viewUniversalIdentifier: t, fieldMetadataUniversalIdentifier: n }) => $({
9670
9672
  entityNamespace: "viewField",
9671
9673
  value: `${t}:${n}`,
9672
9674
  applicationUniversalIdentifier: e
9673
- }), xp = {
9675
+ }), Sp = {
9674
9676
  INDEX: "INDEX",
9675
9677
  FIELDS_WIDGET: "FIELDS_WIDGET"
9676
- }, Sp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t, viewKey: n }) => $({
9678
+ }, Cp = ({ objectMetadataApplicationUniversalIdentifier: e, objectUniversalIdentifier: t, viewKey: n }) => $({
9677
9679
  entityNamespace: "view",
9678
9680
  value: `${t}:${n}`,
9679
9681
  applicationUniversalIdentifier: e
9680
- }), Cp = [
9682
+ }), wp = [
9681
9683
  "Communication",
9682
9684
  "Productivity",
9683
9685
  "Product management",
@@ -9687,32 +9689,32 @@ var Bf = /* @__PURE__ */ function(e) {
9687
9689
  "Data",
9688
9690
  "Search",
9689
9691
  "Other"
9690
- ], wp = (e) => Cp.includes(e);
9692
+ ], Tp = (e) => wp.includes(e);
9691
9693
  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;
9692
9694
  //#endregion
9693
9695
  //#region ../twenty-shared/dist/application.mjs
9694
- var Tp = "public", Ep = "front-component-shared-dependencies.mjs", Dp = "twenty:front-component-shared-dependencies", Op = { js: "import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);" }, kp = ".twenty/output", Ap = /* @__PURE__ */ function(e) {
9696
+ var Ep = "public", Dp = "front-component-shared-dependencies.mjs", Op = "twenty:front-component-shared-dependencies", kp = { js: "import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);" }, Ap = ".twenty/output", jp = /* @__PURE__ */ function(e) {
9695
9697
  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;
9696
- }({}), jp = (e) => `__shared_dependencies_${e.replace(/[^A-Za-z0-9]/g, "_")}__`, Mp = ({ specifier: e, exportNames: t }) => {
9697
- let n = jp(e), r = [`import { ${n} } from ${JSON.stringify(Dp)};`];
9698
+ }({}), Mp = (e) => `__shared_dependencies_${e.replace(/[^A-Za-z0-9]/g, "_")}__`, Np = ({ specifier: e, exportNames: t }) => {
9699
+ let n = Mp(e), r = [`import { ${n} } from ${JSON.stringify(Op)};`];
9698
9700
  for (let [e, i] of t.namedExports.entries()) r.push(`const __sharedDependenciesExport${e} = ${n}[${JSON.stringify(i)}];`, `export { __sharedDependenciesExport${e} as ${JSON.stringify(i)} };`);
9699
9701
  return t.hasDefaultExport && r.push(`export default ${n}.default;`), r.join("\n");
9700
- }, Np = "twenty-shared-dependencies-shim", Pp = (e) => ({
9702
+ }, Pp = "twenty-shared-dependencies-shim", Fp = (e) => ({
9701
9703
  name: "twenty-shared-dependencies-shim",
9702
9704
  setup: (t) => {
9703
9705
  t.onResolve({ filter: /.*/ }, ({ path: t }) => {
9704
9706
  let n = e();
9705
9707
  if (se(n) && n.exportNamesBySpecifier.has(t)) return {
9706
9708
  path: t,
9707
- namespace: Np
9709
+ namespace: Pp
9708
9710
  };
9709
9711
  }), t.onLoad({
9710
9712
  filter: /.*/,
9711
- namespace: Np
9713
+ namespace: Pp
9712
9714
  }, ({ path: t }) => {
9713
9715
  let n = e()?.exportNamesBySpecifier.get(t);
9714
9716
  if (se(n)) return {
9715
- contents: Mp({
9717
+ contents: Np({
9716
9718
  specifier: t,
9717
9719
  exportNames: n
9718
9720
  }),
@@ -9720,19 +9722,19 @@ var Tp = "public", Ep = "front-component-shared-dependencies.mjs", Dp = "twenty:
9720
9722
  };
9721
9723
  });
9722
9724
  }
9723
- }), Fp = (e) => `if (typeof document !== 'undefined') {
9725
+ }), Ip = (e) => `if (typeof document !== 'undefined') {
9724
9726
  const styleElement = document.createElement('style');
9725
9727
  document.head.appendChild(styleElement);
9726
9728
  styleElement.textContent = ${JSON.stringify(e)};
9727
- }`, Ip = {
9729
+ }`, Lp = {
9728
9730
  name: "css-injection",
9729
9731
  setup: (e) => {
9730
9732
  e.onLoad({ filter: /\.css$/ }, async ({ path: e }) => ({
9731
- contents: Fp(await a(e, "utf8")),
9733
+ contents: Ip(await a(e, "utf8")),
9732
9734
  loader: "js"
9733
9735
  }));
9734
9736
  }
9735
- }, Lp = "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}", Rp = "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 });", Bp = (e) => {
9737
+ }, Rp = "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}", zp = "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 };", Bp = "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 });", Vp = (e) => {
9736
9738
  let t = e?.usePreact ?? !1, n = t ? "preact/jsx-runtime" : "react/jsx-runtime", r = t ? "preact/compat" : "react";
9737
9739
  return {
9738
9740
  name: "jsx-runtime-remote-wrapper",
@@ -9745,7 +9747,7 @@ var Tp = "public", Ep = "front-component-shared-dependencies.mjs", Dp = "twenty:
9745
9747
  filter: /.*/,
9746
9748
  namespace: "jsx-shared-helpers"
9747
9749
  }, () => ({
9748
- contents: Lp,
9750
+ contents: Rp,
9749
9751
  loader: "js"
9750
9752
  })), e.onResolve({ filter: /^react\/jsx-runtime$/ }, async (r) => {
9751
9753
  if (!r.pluginData?.skipJsxWrapper) return t ||= (await e.resolve(n, {
@@ -9763,7 +9765,7 @@ var Tp = "public", Ep = "front-component-shared-dependencies.mjs", Dp = "twenty:
9763
9765
  filter: /.*/,
9764
9766
  namespace: "jsx-runtime-wrapper"
9765
9767
  }, () => ({
9766
- contents: Rp,
9768
+ contents: zp,
9767
9769
  loader: "js"
9768
9770
  })), e.onResolve({ filter: /^react$/ }, async (t) => {
9769
9771
  if (!t.pluginData?.skipJsxWrapper) return i ||= (await e.resolve(r, {
@@ -9781,28 +9783,28 @@ var Tp = "public", Ep = "front-component-shared-dependencies.mjs", Dp = "twenty:
9781
9783
  filter: /.*/,
9782
9784
  namespace: "react-wrapper"
9783
9785
  }, () => ({
9784
- contents: zp,
9786
+ contents: Bp,
9785
9787
  loader: "js"
9786
9788
  }));
9787
9789
  }
9788
9790
  };
9789
- }, Vp = /import\s*\{\s*define(?:Settings)?FrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, Hp = /export\s+default\s+define(?:Settings)?FrontComponent\s*\(/, Up = /component\s*:\s*([A-Za-z_$][\w$]*)\s*[,}]/, Wp = "__frontComponentDefinition", Gp = (e) => {
9790
- let t = e.replace(Vp, "");
9791
- if (!Hp.test(t)) return t;
9792
- t = t.replace(Hp, `const ${Wp} = (`);
9793
- let n = t.match(Up);
9791
+ }, Hp = /import\s*\{\s*define(?:Settings)?FrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, Up = /export\s+default\s+define(?:Settings)?FrontComponent\s*\(/, Wp = /component\s*:\s*([A-Za-z_$][\w$]*)\s*[,}]/, Gp = "__frontComponentDefinition", Kp = (e) => {
9792
+ let t = e.replace(Hp, "");
9793
+ if (!Up.test(t)) return t;
9794
+ t = t.replace(Up, `const ${Gp} = (`);
9795
+ let n = t.match(Wp);
9794
9796
  if (n) {
9795
9797
  let e = n[1];
9796
9798
  t = t.replace(RegExp(`export\\s+(const|function)\\s+${e}\\b`), `$1 ${e}`);
9797
9799
  }
9798
- 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(${Wp}.component, {})); }\n`;
9799
- }, Kp = {
9800
+ 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(${Gp}.component, {})); }\n`;
9801
+ }, qp = {
9800
9802
  name: "jsx-transform-to-remote-dom-worker-format-plugin",
9801
9803
  setup: (e) => {
9802
9804
  e.onLoad({ filter: /\.tsx$/ }, async ({ path: e }) => {
9803
9805
  try {
9804
9806
  return {
9805
- contents: Gp(await a(e, "utf8")),
9807
+ contents: Kp(await a(e, "utf8")),
9806
9808
  loader: "tsx"
9807
9809
  };
9808
9810
  } catch (t) {
@@ -9813,7 +9815,7 @@ var Tp = "public", Ep = "front-component-shared-dependencies.mjs", Dp = "twenty:
9813
9815
  }
9814
9816
  });
9815
9817
  }
9816
- }, qp = () => ({
9818
+ }, Jp = () => ({
9817
9819
  name: "preact-alias",
9818
9820
  setup: (e) => {
9819
9821
  let t;
@@ -9825,25 +9827,25 @@ var Tp = "public", Ep = "front-component-shared-dependencies.mjs", Dp = "twenty:
9825
9827
  resolveDir: t.resolveDir
9826
9828
  })).path }));
9827
9829
  }
9828
- }), Jp = /^\/\/.*$\n/gm, Yp = {
9830
+ }), Yp = /^\/\/.*$\n/gm, Xp = {
9829
9831
  name: "strip-comments",
9830
9832
  setup: (e) => {
9831
9833
  e.onEnd(async (e) => {
9832
9834
  if (e.errors.length > 0) return;
9833
9835
  let t = Object.keys(e.metafile?.outputs ?? {}).filter((e) => e.endsWith(".mjs"));
9834
9836
  for (let e of t) {
9835
- let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(Jp, "");
9837
+ let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(Yp, "");
9836
9838
  r !== n && await o(t, r, "utf-8");
9837
9839
  }
9838
9840
  });
9839
9841
  }
9840
- }, Xp = (e) => [
9841
- ...se(e?.getSharedDependenciesBuildContext) ? [Pp(e.getSharedDependenciesBuildContext)] : [],
9842
- Bp(e?.usePreact ? { usePreact: !0 } : void 0),
9843
- ...e?.usePreact ? [qp()] : [],
9844
- Kp,
9845
- Ip,
9846
- Yp
9842
+ }, Zp = (e) => [
9843
+ ...se(e?.getSharedDependenciesBuildContext) ? [Fp(e.getSharedDependenciesBuildContext)] : [],
9844
+ Vp(e?.usePreact ? { usePreact: !0 } : void 0),
9845
+ ...e?.usePreact ? [Jp()] : [],
9846
+ qp,
9847
+ Lp,
9848
+ Xp
9847
9849
  ];
9848
9850
  //#endregion
9849
- export { pf as $, ap as A, Zf as B, ip as C, Bf as D, Hf as E, Of as F, op as G, ep as H, Kf as I, qf as J, $f as K, Jf as L, Uf as M, Gf as N, lp as O, np as P, vf as Q, Xf as R, Wf as S, ae as St, Vf as T, cp as U, tp as V, zf as W, Q as X, Qf as Y, Yf as Z, hp as _, ce as _t, Tp as a, gu as at, yp as b, m as bt, Ap as c, Yu as ct, _p as d, of as dt, fd as et, bp as f, ad as ft, fp as g, $t as gt, vp as h, El as ht, kp as i, Cl as it, dp as j, up as k, Op as l, hu as lt, pp as m, Zu as mt, jp as n, Su as nt, wp as o, Kd as ot, xp as p, q as pt, kf as q, Dp as r, $u as rt, Cp as s, hd as st, Xp as t, Wu as tt, Ep as u, qu as ut, Sp as v, se as vt, rp as w, sp as x, oe as xt, gp as y, re as yt, Af as z };
9851
+ export { vf as $, ap as A, tp as B, ip as C, ae as Ct, Bf as D, Hf as E, Of as F, Yf as G, cp as H, Kf as I, qf as J, $f as K, Xf as L, Uf as M, Gf as N, lp as O, np as P, rp as Q, Af as R, Wf as S, oe as St, fp as T, zf as U, ep as V, op as W, Q as X, Qf as Y, Jf as Z, gp as _, $t as _t, Dp as a, Cl as at, bp as b, re as bt, jp as c, hd as ct, vp as d, qu as dt, pf as et, xp as f, of as ft, pp as g, El as gt, yp as h, Zu as ht, Ap as i, $u as it, dp as j, up as k, Tp as l, Yu as lt, mp as m, q as mt, Mp as n, Wu as nt, kp as o, gu as ot, Sp as p, ad as pt, kf as q, Op as r, Su as rt, Ep as s, Kd as st, Zp as t, fd as tt, wp as u, hu as ut, Cp as v, ce as vt, Vf as w, sp as x, m as xt, _p as y, se as yt, Zf as z };