twenty-sdk 2.6.0 → 2.8.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 (51) hide show
  1. package/README.md +2 -2
  2. package/dist/catalog-sync-C3eVfUoF.mjs +16 -0
  3. package/dist/catalog-sync-CPVoL1dR.js +1 -0
  4. package/dist/cli/commands/{deploy.d.ts → app/deploy.d.ts} +4 -0
  5. package/dist/cli/commands/app/index.d.ts +2 -0
  6. package/dist/cli/commands/{uninstall.d.ts → app/uninstall.d.ts} +1 -1
  7. package/dist/cli/commands/deprecated.d.ts +2 -0
  8. package/dist/cli/commands/{dev.d.ts → dev/dev.d.ts} +1 -1
  9. package/dist/cli/commands/dev/function/index.d.ts +2 -0
  10. package/dist/cli/commands/dev/index.d.ts +2 -0
  11. package/dist/cli/utilities/api/api-client.d.ts +3 -0
  12. package/dist/cli/utilities/api/api-service.d.ts +1 -0
  13. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +4 -0
  14. package/dist/cli/utilities/build/manifest/utils/validate-view-filter-operands.d.ts +6 -0
  15. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +0 -1
  16. package/dist/cli.cjs +110 -110
  17. package/dist/cli.mjs +3045 -2931
  18. package/dist/define/index.cjs +14 -14
  19. package/dist/define/index.cjs.map +1 -1
  20. package/dist/define/index.d.ts +68 -553
  21. package/dist/define/index.mjs +1623 -1977
  22. package/dist/define/index.mjs.map +1 -1
  23. package/dist/front-component/index.cjs +13 -13
  24. package/dist/front-component/index.cjs.map +1 -1
  25. package/dist/front-component/index.d.ts +10 -2
  26. package/dist/front-component/index.mjs +1420 -1312
  27. package/dist/front-component/index.mjs.map +1 -1
  28. package/dist/{get-function-input-schema-BZ7_XyUh-dQlwid60.mjs → get-function-input-schema-BZ7_XyUh-CTltddyp.mjs} +1 -1
  29. package/dist/get-function-input-schema-BZ7_XyUh-CsGwFW9C.js +1 -0
  30. package/dist/logic-function/index.d.ts +2 -7
  31. package/dist/login-oauth-Bjd38X4F.js +298 -0
  32. package/dist/{uninstall-D3ZmcXyd.mjs → login-oauth-DxrMUIpb.mjs} +4181 -4391
  33. package/dist/operations.cjs +1 -1
  34. package/dist/operations.mjs +8 -8
  35. package/dist/ui/index.cjs +20 -20
  36. package/dist/ui/index.mjs +6277 -6170
  37. package/package.json +2 -2
  38. package/dist/get-function-input-schema-BZ7_XyUh-DmvaQHSU.js +0 -1
  39. package/dist/uninstall-BwJTMGOV.js +0 -287
  40. /package/dist/cli/commands/{install.d.ts → app/install.d.ts} +0 -0
  41. /package/dist/cli/commands/{publish.d.ts → app/publish.d.ts} +0 -0
  42. /package/dist/cli/commands/{add.d.ts → dev/add.d.ts} +0 -0
  43. /package/dist/cli/commands/{build.d.ts → dev/build.d.ts} +0 -0
  44. /package/dist/cli/commands/{catalog-sync.d.ts → dev/catalog-sync.d.ts} +0 -0
  45. /package/dist/cli/commands/{dev-once.d.ts → dev/dev-once.d.ts} +0 -0
  46. /package/dist/cli/commands/{exec.d.ts → dev/exec.d.ts} +0 -0
  47. /package/dist/cli/commands/{logs.d.ts → dev/logs.d.ts} +0 -0
  48. /package/dist/cli/commands/{typecheck.d.ts → dev/typecheck.d.ts} +0 -0
  49. /package/dist/cli/commands/{server.d.ts → docker/index.d.ts} +0 -0
  50. /package/dist/cli/commands/{app-command.d.ts → index.d.ts} +0 -0
  51. /package/dist/cli/commands/{remote.d.ts → remote/index.d.ts} +0 -0
package/README.md CHANGED
@@ -54,11 +54,11 @@ Run `yarn twenty help` to see all available commands.
54
54
 
55
55
  ## Configuration
56
56
 
57
- The CLI stores credentials per remote in `~/.twenty/config.json`. Run `yarn twenty remote add` to configure a remote, or `yarn twenty remote list` to see existing ones.
57
+ The CLI stores credentials per remote in `~/.twenty/config.json`. Run `yarn twenty remote:add` to configure a remote, or `yarn twenty remote:list` to see existing ones.
58
58
 
59
59
  ## Troubleshooting
60
60
 
61
- - Auth errors: run `yarn twenty remote add` to re-authenticate.
61
+ - Auth errors: run `yarn twenty remote:add` to re-authenticate.
62
62
  - Typings out of date: restart `yarn twenty dev` to refresh the client and types.
63
63
  - Not seeing changes in dev: make sure dev mode is running (`yarn twenty dev`).
64
64
 
@@ -0,0 +1,16 @@
1
+ import { C as o, A as a } from "./login-oauth-DxrMUIpb.mjs";
2
+ import r from "chalk";
3
+ class n {
4
+ async execute(c) {
5
+ c.remote && o.setActiveRemote(c.remote), console.log(r.blue("Syncing marketplace catalog..."));
6
+ const e = await new a().syncMarketplaceCatalog();
7
+ e.success || (console.error(
8
+ r.red(
9
+ `Catalog sync failed: ${e.error instanceof Error ? e.error.message : String(e.error)}`
10
+ )
11
+ ), process.exit(1)), console.log(r.green("✓ Marketplace catalog synced successfully"));
12
+ }
13
+ }
14
+ export {
15
+ n as CatalogSyncCommand
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./login-oauth-Bjd38X4F.js"),r=require("chalk"),l=e=>e&&e.__esModule?e:{default:e},t=l(r);class s{async execute(c){c.remote&&o.ConfigService.setActiveRemote(c.remote),console.log(t.default.blue("Syncing marketplace catalog..."));const a=await new o.ApiService().syncMarketplaceCatalog();a.success||(console.error(t.default.red(`Catalog sync failed: ${a.error instanceof Error?a.error.message:String(a.error)}`)),process.exit(1)),console.log(t.default.green("✓ Marketplace catalog synced successfully"))}}exports.CatalogSyncCommand=s;
@@ -1,7 +1,11 @@
1
1
  export type DeployCommandOptions = {
2
2
  appPath?: string;
3
3
  remote?: string;
4
+ private?: boolean;
5
+ tag?: string;
4
6
  };
5
7
  export declare class DeployCommand {
6
8
  execute(options: DeployCommandOptions): Promise<void>;
9
+ private executeNpm;
10
+ private executePrivate;
7
11
  }
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerAppCommands: (program: Command) => void;
@@ -1,4 +1,4 @@
1
- import { type ApiResponse } from '../../cli/utilities/api/api-response-type';
1
+ import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
2
2
  export declare class AppUninstallCommand {
3
3
  execute({ appPath, askForConfirmation }: {
4
4
  appPath?: string;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerDeprecatedCommands: (program: Command) => void;
@@ -1,4 +1,4 @@
1
- import { DevModeOrchestrator } from '../../cli/utilities/dev/orchestrator/dev-mode-orchestrator';
1
+ import { DevModeOrchestrator } from '../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator';
2
2
  export type AppDevOptions = {
3
3
  appPath?: string;
4
4
  headless?: boolean;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerDevFunctionCommands: (program: Command) => void;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare const registerDevCommands: (program: Command) => void;
@@ -11,6 +11,9 @@ export declare class ApiClient {
11
11
  token?: string;
12
12
  skipAuth?: boolean;
13
13
  });
14
+ getFrontendUrl(): Promise<string | null>;
15
+ getWorkspaceFrontendUrl(): Promise<string | null>;
16
+ private getCurrentWorkspaceFrontendUrl;
14
17
  validateAuth(): Promise<{
15
18
  authValid: boolean;
16
19
  serverUp: boolean;
@@ -20,6 +20,7 @@ export declare class ApiService {
20
20
  authValid: boolean;
21
21
  serverUp: boolean;
22
22
  }>;
23
+ getWorkspaceFrontendUrl(): Promise<string | null>;
23
24
  refreshToken(): Promise<string | null>;
24
25
  findApplicationRegistrationByUniversalIdentifier(...args: Parameters<ApplicationApi['findApplicationRegistrationByUniversalIdentifier']>): Promise<ApiResponse<{
25
26
  id: string;
@@ -2,10 +2,12 @@ export declare enum TargetFunction {
2
2
  DefineApplication = "defineApplication",
3
3
  DefineApplicationRole = "defineApplicationRole",
4
4
  DefineField = "defineField",
5
+ DefineIndex = "defineIndex",
5
6
  DefineLogicFunction = "defineLogicFunction",
6
7
  DefinePostInstallLogicFunction = "definePostInstallLogicFunction",
7
8
  DefinePreInstallLogicFunction = "definePreInstallLogicFunction",
8
9
  DefineObject = "defineObject",
10
+ DefinePermissionFlag = "definePermissionFlag",
9
11
  DefineRole = "defineRole",
10
12
  DefineSkill = "defineSkill",
11
13
  DefineAgent = "defineAgent",
@@ -20,8 +22,10 @@ export declare enum TargetFunction {
20
22
  export declare enum ManifestEntityKey {
21
23
  Application = "application",
22
24
  Fields = "fields",
25
+ Indexes = "indexes",
23
26
  LogicFunctions = "logicFunctions",
24
27
  Objects = "objects",
28
+ PermissionFlags = "permissionFlags",
25
29
  Roles = "roles",
26
30
  Skills = "skills",
27
31
  Agents = "agents",
@@ -0,0 +1,6 @@
1
+ import { type FieldManifest, type ObjectManifest, type ViewManifest } from 'twenty-shared/application';
2
+ export declare const validateViewFilterOperands: ({ views, objects, fields, }: {
3
+ views: ViewManifest[];
4
+ objects: ObjectManifest[];
5
+ fields: FieldManifest[];
6
+ }) => string[];
@@ -66,7 +66,6 @@ export declare class OrchestratorState {
66
66
  onChange?: () => void;
67
67
  constructor(options: {
68
68
  appPath: string;
69
- frontendUrl?: string;
70
69
  });
71
70
  setVersionInfo(versionInfo: VersionInfo): void;
72
71
  notify(): void;