builder.io 1.7.29 → 1.7.31
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/cli/index.cjs +331 -331
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +69 -69
- package/server/index.mjs +65 -65
- package/types/cli/backup.d.ts +1 -1
- package/types/cli/codegen.d.ts +12 -0
- package/types/cli/index.d.ts +2 -0
- package/types/cli/repo-indexing/repo-indexing-utils.d.ts +2 -1
- package/types/cli/repo-indexing/repo-indexing.d.ts +5 -2
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/backup.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { GitBackupUploadUrlResult, GitBackupUploadUrlOptions, GitBackupReco
|
|
|
4
4
|
/**
|
|
5
5
|
* Requests a signed upload URL for git backup
|
|
6
6
|
*/
|
|
7
|
-
export declare function requestSignedUploadUrl(credentials: Credentials, body: GitBackupUploadUrlOptions): Promise<GitBackupUploadUrlResult>;
|
|
7
|
+
export declare function requestSignedUploadUrl(credentials: Credentials, body: GitBackupUploadUrlOptions): Promise<GitBackupUploadUrlResult | null>;
|
|
8
8
|
/**
|
|
9
9
|
* Records a successful git backup in Firebase
|
|
10
10
|
*/
|
package/types/cli/codegen.d.ts
CHANGED
|
@@ -101,6 +101,17 @@ export declare class CodeGenSession {
|
|
|
101
101
|
bundleSize?: undefined;
|
|
102
102
|
contentMd5?: undefined;
|
|
103
103
|
error?: undefined;
|
|
104
|
+
} | {
|
|
105
|
+
success: boolean;
|
|
106
|
+
skipped: boolean;
|
|
107
|
+
reason: string;
|
|
108
|
+
lastCommitHash?: undefined;
|
|
109
|
+
empty?: undefined;
|
|
110
|
+
filePath?: undefined;
|
|
111
|
+
expiresAt?: undefined;
|
|
112
|
+
bundleSize?: undefined;
|
|
113
|
+
contentMd5?: undefined;
|
|
114
|
+
error?: undefined;
|
|
104
115
|
} | {
|
|
105
116
|
success: boolean;
|
|
106
117
|
filePath: string;
|
|
@@ -171,6 +182,7 @@ export declare class CodeGenSession {
|
|
|
171
182
|
* Get the current commit hash
|
|
172
183
|
*/
|
|
173
184
|
getCurrentCommitHash(branchName?: string): Promise<string | undefined>;
|
|
185
|
+
getCurrentBranch(): Promise<string>;
|
|
174
186
|
/**
|
|
175
187
|
* Get the feature branch name
|
|
176
188
|
*/
|
package/types/cli/index.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export declare const storeComponentDocs: (credentials: Credentials, body: StoreC
|
|
|
11
11
|
export declare const runCodeGen: (sys: DevToolsSys, credentials: Credentials, sessionId: string, message: GenerateUserMessage, debug?: boolean, designSystemPackage?: string, workspaceConfig?: WorkspaceConfiguration, opts?: {
|
|
12
12
|
tags?: object;
|
|
13
13
|
}) => Promise<string>;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const getAllDesignSystems: (credentials: Credentials) => Promise<DesignSystem[]>;
|
|
15
|
+
export declare const getDesignSystemByName: (credentials: Credentials, designSystemName: string) => Promise<DesignSystem | null>;
|
|
15
16
|
export declare const addDesignSystem: (credentials: Credentials, body: {
|
|
16
17
|
designSystemName: string;
|
|
17
18
|
status: string;
|
|
@@ -2,7 +2,7 @@ import type { DevToolsSys } from "../../types";
|
|
|
2
2
|
import type { CLIArgs } from "../index";
|
|
3
3
|
import { type Credentials } from "../credentials";
|
|
4
4
|
import type { Component } from "./types";
|
|
5
|
-
export declare const displayComponentLibrarySummary: (components: Component[], indexedComponents: Component[], startTime: number, numFailed?: number, isForce?: boolean) => void;
|
|
5
|
+
export declare const displayComponentLibrarySummary: (components: Component[], indexedComponents: Component[], startTime: number, numFailed?: number, isForce?: boolean, designSystemName?: string) => void;
|
|
6
6
|
export interface RepoIndexingDoc {
|
|
7
7
|
name: string;
|
|
8
8
|
content: string | {
|
|
@@ -18,4 +18,7 @@ export interface RepoIndexingDoc {
|
|
|
18
18
|
userId: string;
|
|
19
19
|
}
|
|
20
20
|
export declare const runRepoIndexing: (sys: DevToolsSys, args: CLIArgs) => Promise<void>;
|
|
21
|
-
export declare const isFeatureAllowed: (credentials: Credentials, debug?: boolean) => Promise<
|
|
21
|
+
export declare const isFeatureAllowed: (credentials: Credentials, debug?: boolean) => Promise<{
|
|
22
|
+
isAllowed: boolean;
|
|
23
|
+
reason?: string;
|
|
24
|
+
}>;
|