builder.io 1.12.2 → 1.12.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.
@@ -18,7 +18,7 @@ export declare const runCodeGen: (sys: DevToolsSys, credentials: Credentials, se
18
18
  tags?: object;
19
19
  maxTokens?: number;
20
20
  }, metadata?: any) => Promise<string>;
21
- export declare const getAllDesignSystems: (credentials: Credentials, opts?: {
21
+ interface GetAllDesignSystemsOpts {
22
22
  /**
23
23
  * If true, only design systems that the user has permission to edit will be
24
24
  * returned. If false, all design systems that the user has permission to edit
@@ -31,8 +31,16 @@ export declare const getAllDesignSystems: (credentials: Credentials, opts?: {
31
31
  * Defaults to false.
32
32
  */
33
33
  includeGlobalScopeDesignSystems?: boolean;
34
- }) => Promise<DesignSystem[]>;
35
- export declare const getDisplayDesignSystems: (credentials: Credentials) => Promise<DisplayDesignSystem[]>;
34
+ /**
35
+ * If true, the # of component docs in each design system will also be returned.
36
+ * Defaults to false.
37
+ */
38
+ includeDocumentCount?: boolean;
39
+ }
40
+ export declare function getAllDesignSystems(credentials: Credentials, opts: {
41
+ includeDocumentCount: true;
42
+ } & Omit<GetAllDesignSystemsOpts, "includeDocumentCount">): Promise<DisplayDesignSystem[]>;
43
+ export declare function getAllDesignSystems(credentials: Credentials, opts?: GetAllDesignSystemsOpts): Promise<DesignSystem[]>;
36
44
  export declare const getDesignSystemsByScope: (scope: DesignSystemScope, designSystems: DesignSystem[]) => DesignSystem[];
37
45
  export declare const getDesignSystemByName: (designSystemName: string, designSystems: DesignSystem[]) => DesignSystem | null;
38
46
  export declare const getDesignSystemByNameAndScope: (credentials: Credentials, designSystemName: string, scope: DesignSystemScope, designSystems: DesignSystem[]) => DesignSystem | null;
@@ -45,3 +53,4 @@ export declare const addDesignSystem: (credentials: Credentials, body: {
45
53
  }) => Promise<any>;
46
54
  export declare const updateDesignSystem: (credentials: Credentials, body: UpdateDesignSystemInput) => Promise<any>;
47
55
  export declare const checkRepoIndexingFolder: (sys: DevToolsSys) => Promise<boolean>;
56
+ export {};