twenty-sdk 2.6.0 → 2.9.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/README.md +2 -2
- package/dist/catalog-sync-CanLpG9v.js +1 -0
- package/dist/catalog-sync-DyCidT5d.mjs +16 -0
- package/dist/cli/commands/{deploy.d.ts → app/deploy.d.ts} +4 -0
- package/dist/cli/commands/app/index.d.ts +2 -0
- package/dist/cli/commands/{uninstall.d.ts → app/uninstall.d.ts} +1 -1
- package/dist/cli/commands/deprecated.d.ts +2 -0
- package/dist/cli/commands/{dev.d.ts → dev/dev.d.ts} +1 -1
- package/dist/cli/commands/dev/function/index.d.ts +2 -0
- package/dist/cli/commands/dev/index.d.ts +2 -0
- package/dist/cli/utilities/api/api-client.d.ts +3 -0
- package/dist/cli/utilities/api/api-service.d.ts +1 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +4 -0
- package/dist/cli/utilities/build/manifest/utils/validate-view-filter-operands.d.ts +6 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +0 -1
- package/dist/cli.cjs +110 -110
- package/dist/cli.mjs +3045 -2931
- package/dist/define/index.cjs +14 -14
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +68 -553
- package/dist/define/index.mjs +1623 -1977
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +13 -13
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +10 -2
- package/dist/front-component/index.mjs +1420 -1312
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/get-function-input-schema-BZ7_XyUh-COeGJwHh.js +1 -0
- package/dist/{get-function-input-schema-BZ7_XyUh-dQlwid60.mjs → get-function-input-schema-BZ7_XyUh-Dql7-b-j.mjs} +1 -1
- package/dist/logic-function/index.d.ts +2 -7
- package/dist/login-oauth-BESuSxoP.js +298 -0
- package/dist/{uninstall-D3ZmcXyd.mjs → login-oauth-DSC3zo9c.mjs} +4181 -4391
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +8 -8
- package/dist/ui/index.cjs +20 -20
- package/dist/ui/index.mjs +6277 -6170
- package/package.json +2 -2
- package/dist/get-function-input-schema-BZ7_XyUh-DmvaQHSU.js +0 -1
- package/dist/uninstall-BwJTMGOV.js +0 -287
- /package/dist/cli/commands/{install.d.ts → app/install.d.ts} +0 -0
- /package/dist/cli/commands/{publish.d.ts → app/publish.d.ts} +0 -0
- /package/dist/cli/commands/{add.d.ts → dev/add.d.ts} +0 -0
- /package/dist/cli/commands/{build.d.ts → dev/build.d.ts} +0 -0
- /package/dist/cli/commands/{catalog-sync.d.ts → dev/catalog-sync.d.ts} +0 -0
- /package/dist/cli/commands/{dev-once.d.ts → dev/dev-once.d.ts} +0 -0
- /package/dist/cli/commands/{exec.d.ts → dev/exec.d.ts} +0 -0
- /package/dist/cli/commands/{logs.d.ts → dev/logs.d.ts} +0 -0
- /package/dist/cli/commands/{typecheck.d.ts → dev/typecheck.d.ts} +0 -0
- /package/dist/cli/commands/{server.d.ts → docker/index.d.ts} +0 -0
- /package/dist/cli/commands/{app-command.d.ts → index.d.ts} +0 -0
- /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
|
|
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
|
|
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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./login-oauth-BESuSxoP.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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { C as o, A as a } from "./login-oauth-DSC3zo9c.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
|
+
};
|
|
@@ -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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DevModeOrchestrator } from '
|
|
1
|
+
import { DevModeOrchestrator } from '../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator';
|
|
2
2
|
export type AppDevOptions = {
|
|
3
3
|
appPath?: string;
|
|
4
4
|
headless?: boolean;
|
|
@@ -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[];
|