twenty-sdk 2.31.0-alpha.1 → 2.31.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 (49) hide show
  1. package/dist/billing/index.cjs.map +1 -1
  2. package/dist/billing/index.mjs.map +1 -1
  3. package/dist/{catalog-sync-DNeKMZag.mjs → catalog-sync-Ch6nB5uf.mjs} +1 -1
  4. package/dist/catalog-sync-yH3B_al1.js +1 -0
  5. package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +1 -1
  6. package/dist/cli/utilities/build/common/front-component-build/front-components-watcher.d.ts +40 -0
  7. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/build-shared-dependencies-bundle.d.ts +8 -0
  8. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/create-shared-dependencies-shim-plugin.d.ts +3 -0
  9. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-build-context.type.d.ts +4 -0
  10. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/types/shared-dependencies-export-names.type.d.ts +4 -0
  11. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/enumerate-shared-dependencies-export-names.d.ts +5 -0
  12. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/get-shared-dependencies-entry-source.d.ts +1 -0
  13. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/get-shared-dependencies-namespace-collisions.d.ts +1 -0
  14. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/get-shared-dependencies-shim-source.d.ts +5 -0
  15. package/dist/cli/utilities/build/common/front-component-build/shared-dependencies-build/utils/to-shared-dependencies-namespace-identifier.d.ts +1 -0
  16. package/dist/cli/utilities/build/common/front-component-build/utils/get-front-component-build-plugins.d.ts +2 -0
  17. package/dist/cli/utilities/build/manifest/utils/extract-front-component-shared-dependencies.d.ts +5 -0
  18. package/dist/cli/utilities/build/manifest/utils/normalize-front-component-shared-dependencies.d.ts +1 -0
  19. package/dist/cli.cjs +36 -36
  20. package/dist/cli.mjs +2147 -2051
  21. package/dist/define/index.cjs +1 -1
  22. package/dist/define/index.cjs.map +1 -1
  23. package/dist/define/index.d.ts +9 -0
  24. package/dist/define/index.mjs +4 -3
  25. package/dist/define/index.mjs.map +1 -1
  26. package/dist/front-component/index.cjs.map +1 -1
  27. package/dist/front-component/index.mjs +1 -1
  28. package/dist/front-component/index.mjs.map +1 -1
  29. package/dist/front-component-renderer/build.cjs +1 -1
  30. package/dist/front-component-renderer/build.mjs +1 -1
  31. package/dist/get-front-component-build-plugins-C-Webbfn.js +196 -0
  32. package/dist/get-front-component-build-plugins-DA62IZes.mjs +9849 -0
  33. package/dist/{get-function-input-schema-GNk3NRLJ-DgTZrVOo.mjs → get-function-input-schema-GNk3NRLJ-C5HXalke.mjs} +1 -1
  34. package/dist/get-function-input-schema-GNk3NRLJ-DwfXUGPz.js +1 -0
  35. package/dist/logic-function/index.cjs.map +1 -1
  36. package/dist/logic-function/index.mjs.map +1 -1
  37. package/dist/{login-BtUz3jl-.mjs → login-BHgUJK94.mjs} +5246 -14792
  38. package/dist/login-BzHQgxeV.js +343 -0
  39. package/dist/operations.cjs +1 -1
  40. package/dist/operations.mjs +1 -1
  41. package/dist/utils/index.cjs.map +1 -1
  42. package/dist/utils/index.mjs.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/catalog-sync-Dm-JMzJE.js +0 -1
  45. package/dist/get-front-component-build-plugins-B5IvUvSS.mjs +0 -133
  46. package/dist/get-front-component-build-plugins-TJrFS3_p.js +0 -172
  47. package/dist/get-function-input-schema-GNk3NRLJ-D8x7FINz.js +0 -1
  48. package/dist/isDefined-Dtu5EYqP-Dp026Ry1.js +0 -1
  49. package/dist/login-MKVngbGb.js +0 -365
@@ -55,6 +55,12 @@ type SettingsFrontComponentApplicationManifest = {
55
55
 
56
56
  type UninstallLogicFunctionApplicationManifest = SyncableEntityOptions$1;
57
57
 
58
+ type FrontComponentSharedDependenciesManifest = {
59
+ dependencies: string[];
60
+ builtPath: string;
61
+ builtChecksum: string | null;
62
+ };
63
+
58
64
  declare enum FieldMetadataType {
59
65
  ACTOR = "ACTOR",
60
66
  ADDRESS = "ADDRESS",
@@ -93,6 +99,7 @@ type ApplicationVariableValue = string | number | boolean | string[] | Record<st
93
99
  type TypedApplicationVariable = {
94
100
  type?: ApplicationVariableType;
95
101
  options?: ApplicationVariableOption[];
102
+ isDeprecated?: boolean;
96
103
  };
97
104
  type SecretApplicationVariable = SyncableEntityOptions$1 & TypedApplicationVariable & {
98
105
  description?: string;
@@ -110,6 +117,7 @@ type ServerVariableSchema = {
110
117
  description?: string;
111
118
  isSecret?: boolean;
112
119
  isRequired?: boolean;
120
+ isDeprecated?: boolean;
113
121
  type?: ApplicationVariableType;
114
122
  options?: ApplicationVariableOption[];
115
123
  };
@@ -142,6 +150,7 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
142
150
  preInstallLogicFunction?: PreInstallLogicFunctionApplicationManifest;
143
151
  uninstallLogicFunction?: UninstallLogicFunctionApplicationManifest;
144
152
  settingsFrontComponent?: SettingsFrontComponentApplicationManifest;
153
+ frontComponentSharedDependencies?: FrontComponentSharedDependenciesManifest;
145
154
  /**
146
155
  * @deprecated Use `defineSettingsFrontComponent()` (exposed on the manifest
147
156
  * as `settingsFrontComponent`) instead. This property is ignored.
@@ -9577,7 +9577,7 @@ ad({
9577
9577
  [B.RICH_TEXT, Jf]
9578
9578
  ]);
9579
9579
  //#endregion
9580
- //#region ../twenty-shared/dist/types-CuQBTWgb.mjs
9580
+ //#region ../twenty-shared/dist/types-DqRm8qgD.mjs
9581
9581
  var Yf = {
9582
9582
  UUID: "uuid",
9583
9583
  NOW: "now"
@@ -10068,7 +10068,7 @@ var W = (e) => !o(e) && !n(e), jp = ({ objectNameSingular: e, recordId: t, displ
10068
10068
  B.RAW_JSON
10069
10069
  ]), rp.DAY, rp.WEEK, rp.MONTH, rp.QUARTER, rp.YEAR, B.FILES, B.LINKS, B.TEXT, B.FULL_NAME, B.UUID;
10070
10070
  //#endregion
10071
- //#region ../twenty-shared/dist/constants-CBtUcYrN.mjs
10071
+ //#region ../twenty-shared/dist/constants-Cn1I9uBZ.mjs
10072
10072
  var Pp = [
10073
10073
  "RATING_1",
10074
10074
  "RATING_2",
@@ -57712,7 +57712,7 @@ function Vk() {
57712
57712
  }
57713
57713
  kD();
57714
57714
  //#endregion
57715
- //#region ../twenty-shared/dist/utils-CsdHA8Rz.mjs
57715
+ //#region ../twenty-shared/dist/utils-CC6nJ-Ow.mjs
57716
57716
  var Hk = /* @__PURE__ */ y(gO(), 1);
57717
57717
  _O(), vO(), uk(), hk(), B.TEXT, B.FULL_NAME, B.EMAILS, B.ADDRESS, B.LINKS, B.PHONES, B.RICH_TEXT, B.UUID;
57718
57718
  var Uk = (e) => /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);
@@ -60427,6 +60427,7 @@ var xN = (e) => {
60427
60427
  let n = [], r = [];
60428
60428
  e.universalIdentifier || n.push("Application must have a universalIdentifier"), (!e.displayName || e.displayName.length === 0) && n.push("Application must have a non empty display name");
60429
60429
  for (let [t, r] of Object.entries(e.applicationVariables ?? {})) (r.type === B.SELECT || r.type === B.MULTI_SELECT) && !Wk(r.options) && n.push(`Application variable "${t}" of type ${r.type} must define non-empty options`);
60430
+ for (let [t, n] of Object.entries(e.serverVariables ?? {})) n.isRequired && n.isDeprecated && r.push(`Server variable "${t}" is both required and deprecated. \`isDeprecated\` wins: the variable is excluded from the application configuration check.`);
60430
60431
  e.defaultRoleUniversalIdentifier && r.push("`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead.");
60431
60432
  let { category: i } = e;
60432
60433
  t(i) && !Ap(i) && r.push(`Application category "${i}" is not a known ApplicationCategory (${kp.join(", ")}). Arbitrary category strings are kept for backward compatibility and may be removed. Ask for a new category at https://github.com/twentyhq/twenty.`);