twenty-sdk 0.6.2 → 0.6.3

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/dist/{AllIcons-CGPKtPQS-CBzLmrUd.mjs → AllIcons-CGPKtPQS-DJFNbeMc.mjs} +4316 -4344
  2. package/dist/{AllIcons-CGPKtPQS-CoHKEEHb.js → AllIcons-CGPKtPQS-Dd8IM9mm.js} +2549 -2569
  3. package/dist/{HtmlTagToRemoteComponent-D_EW5OLu.mjs → HtmlTagToRemoteComponent-CKDJQf1M.mjs} +3 -3
  4. package/dist/{HtmlTagToRemoteComponent-CgtwxDeH.js → HtmlTagToRemoteComponent-Ch6F8pMT.js} +1 -1
  5. package/dist/cli/commands/app/app-dev.d.ts +2 -0
  6. package/dist/cli/utilities/api/api-service.d.ts +22 -2
  7. package/dist/cli/utilities/config/config-service.d.ts +2 -0
  8. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  9. package/dist/cli/utilities/dev/orchestrator/steps/register-app-orchestrator-step.d.ts +23 -0
  10. package/dist/cli/utilities/dev/orchestrator/steps/resolve-application-orchestrator-step.d.ts +1 -0
  11. package/dist/cli.cjs +80 -60
  12. package/dist/cli.mjs +1394 -1243
  13. package/dist/front-component-renderer/index.cjs +1 -1
  14. package/dist/front-component-renderer/index.mjs +1 -1
  15. package/dist/{get-function-input-schema-BZ7_XyUh-DAPandzB.mjs → get-function-input-schema-BZ7_XyUh-BggxZXtl.mjs} +1 -1
  16. package/dist/{get-function-input-schema-BZ7_XyUh-CCSi0u_q.js → get-function-input-schema-BZ7_XyUh-dHQTco6b.js} +1 -1
  17. package/dist/index-CGU9V37s.js +2200 -0
  18. package/dist/{index-DeMzdViF.mjs → index-CaKvLIGl.mjs} +18027 -17832
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.mjs +2 -2
  21. package/dist/ui/index.cjs +1 -1
  22. package/dist/ui/index.mjs +624 -614
  23. package/package.json +4 -4
  24. package/dist/index-CicdakVv.js +0 -2430
  25. package/generated/core/index.ts +0 -406
  26. package/generated/core/runtime/batcher.ts +0 -265
  27. package/generated/core/runtime/createClient.ts +0 -68
  28. package/generated/core/runtime/error.ts +0 -29
  29. package/generated/core/runtime/fetcher.ts +0 -98
  30. package/generated/core/runtime/generateGraphqlOperation.ts +0 -225
  31. package/generated/core/runtime/index.ts +0 -13
  32. package/generated/core/runtime/linkTypeMap.ts +0 -139
  33. package/generated/core/runtime/typeSelection.ts +0 -98
  34. package/generated/core/runtime/types.ts +0 -69
  35. package/generated/core/schema.graphql +0 -36745
  36. package/generated/core/schema.ts +0 -39341
  37. package/generated/core/types.ts +0 -45860
  38. package/generated/index.ts +0 -2
  39. package/generated/metadata/index.ts +0 -469
  40. package/generated/metadata/runtime/batcher.ts +0 -265
  41. package/generated/metadata/runtime/createClient.ts +0 -68
  42. package/generated/metadata/runtime/error.ts +0 -29
  43. package/generated/metadata/runtime/fetcher.ts +0 -98
  44. package/generated/metadata/runtime/generateGraphqlOperation.ts +0 -225
  45. package/generated/metadata/runtime/index.ts +0 -13
  46. package/generated/metadata/runtime/linkTypeMap.ts +0 -139
  47. package/generated/metadata/runtime/typeSelection.ts +0 -98
  48. package/generated/metadata/runtime/types.ts +0 -69
  49. package/generated/metadata/schema.graphql +0 -3971
  50. package/generated/metadata/schema.ts +0 -8357
  51. package/generated/metadata/types.ts +0 -10044
@@ -1,3 +1,4 @@
1
+ import { DevModeOrchestrator } from '../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator';
1
2
  export type AppDevOptions = {
2
3
  appPath?: string;
3
4
  };
@@ -5,6 +6,7 @@ export declare class AppDevCommand {
5
6
  private orchestrator;
6
7
  private unmountUI;
7
8
  close(): Promise<void>;
9
+ getOrchestrator(): DevModeOrchestrator | null;
8
10
  execute(options: AppDevOptions): Promise<void>;
9
11
  private setupGracefulShutdown;
10
12
  }
@@ -1,6 +1,6 @@
1
+ import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
1
2
  import { type Manifest } from 'twenty-shared/application';
2
3
  import { type FileFolder } from 'twenty-shared/types';
3
- import { type ApiResponse } from '../../../cli/utilities/api/api-response-type';
4
4
  export declare class ApiService {
5
5
  private client;
6
6
  private configService;
@@ -35,7 +35,27 @@ export declare class ApiService {
35
35
  expiresAt: string;
36
36
  };
37
37
  }>>;
38
- createApplication(manifest: Manifest): Promise<ApiResponse<{
38
+ findApplicationRegistrationByUniversalIdentifier(universalIdentifier: string): Promise<ApiResponse<{
39
+ id: string;
40
+ universalIdentifier: string;
41
+ name: string;
42
+ oAuthClientId: string;
43
+ } | null>>;
44
+ createApplicationRegistration(input: {
45
+ name: string;
46
+ description?: string;
47
+ universalIdentifier: string;
48
+ }): Promise<ApiResponse<{
49
+ applicationRegistration: {
50
+ id: string;
51
+ universalIdentifier: string;
52
+ oAuthClientId: string;
53
+ };
54
+ clientSecret: string;
55
+ }>>;
56
+ createApplication(manifest: Manifest, options?: {
57
+ applicationRegistrationId?: string;
58
+ }): Promise<ApiResponse<{
39
59
  id: string;
40
60
  universalIdentifier: string;
41
61
  }>>;
@@ -3,6 +3,8 @@ export type TwentyConfig = {
3
3
  apiKey?: string;
4
4
  applicationAccessToken?: string;
5
5
  applicationRefreshToken?: string;
6
+ oauthClientId?: string;
7
+ oauthClientSecret?: string;
6
8
  };
7
9
  export declare class ConfigService {
8
10
  private readonly configPath;
@@ -13,6 +13,7 @@ export declare class DevModeOrchestrator {
13
13
  private checkServerStep;
14
14
  private ensureValidTokensStep;
15
15
  private buildManifestStep;
16
+ private registerAppStep;
16
17
  private resolveApplicationStep;
17
18
  private uploadFilesStep;
18
19
  private generateApiClientStep;
@@ -0,0 +1,23 @@
1
+ import { type ApiService } from '../../../../../cli/utilities/api/api-service';
2
+ import { type ConfigService } from '../../../../../cli/utilities/config/config-service';
3
+ import { type OrchestratorState } from '../../../../../cli/utilities/dev/orchestrator/dev-mode-orchestrator-state';
4
+ import { type Manifest } from 'twenty-shared/application';
5
+ export type RegisterAppOrchestratorStepOutput = {
6
+ applicationRegistrationId: string | null;
7
+ clientId: string | null;
8
+ };
9
+ export declare class RegisterAppOrchestratorStep {
10
+ private apiService;
11
+ private configService;
12
+ private state;
13
+ private notify;
14
+ constructor({ apiService, configService, state, notify }: {
15
+ apiService: ApiService;
16
+ configService: ConfigService;
17
+ state: OrchestratorState;
18
+ notify: () => void;
19
+ });
20
+ execute(input: {
21
+ manifest: Manifest;
22
+ }): Promise<RegisterAppOrchestratorStepOutput>;
23
+ }
@@ -16,5 +16,6 @@ export declare class ResolveApplicationOrchestratorStep {
16
16
  });
17
17
  execute(input: {
18
18
  manifest: Manifest;
19
+ applicationRegistrationId?: string;
19
20
  }): Promise<ResolveApplicationOrchestratorStepOutput>;
20
21
  }