@budibase/types 2.20.12 → 2.20.14

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.
@@ -25,7 +25,6 @@ export interface FetchDatasourceInfoResponse {
25
25
  tableNames: string[];
26
26
  }
27
27
  export interface UpdateDatasourceRequest extends Datasource {
28
- datasource: Datasource;
29
28
  }
30
29
  export interface BuildSchemaFromSourceRequest {
31
30
  tablesFilter?: string[];
@@ -0,0 +1,3 @@
1
+ import { DocumentDestroyResponse } from "@budibase/nano";
2
+ export interface DeleteAutomationResponse extends DocumentDestroyResponse {
3
+ }
@@ -11,3 +11,5 @@ export * from "./global";
11
11
  export * from "./pagination";
12
12
  export * from "./searchFilter";
13
13
  export * from "./cookies";
14
+ export * from "./automation";
15
+ export * from "./layout";
@@ -0,0 +1,5 @@
1
+ import { Layout } from "../../documents";
2
+ export interface SaveLayoutRequest extends Layout {
3
+ }
4
+ export interface SaveLayoutResponse extends Layout {
5
+ }
@@ -5,6 +5,9 @@ export interface Datasource extends Document {
5
5
  type: string;
6
6
  name?: string;
7
7
  source: SourceName;
8
+ auth?: {
9
+ type: string;
10
+ };
8
11
  config?: Record<string, any>;
9
12
  plus?: boolean;
10
13
  isSQL?: boolean;
@@ -29,6 +32,11 @@ export interface RestAuthConfig {
29
32
  type: RestAuthType;
30
33
  config: RestBasicAuthConfig | RestBearerAuthConfig;
31
34
  }
35
+ export interface DynamicVariable {
36
+ name: string;
37
+ queryId: string;
38
+ value: string;
39
+ }
32
40
  export interface RestConfig {
33
41
  url: string;
34
42
  rejectUnauthorized: boolean;
@@ -40,11 +48,5 @@ export interface RestConfig {
40
48
  staticVariables: {
41
49
  [key: string]: string;
42
50
  };
43
- dynamicVariables: [
44
- {
45
- name: string;
46
- queryId: string;
47
- value: string;
48
- }
49
- ];
51
+ dynamicVariables: DynamicVariable[];
50
52
  }
@@ -1,5 +1,10 @@
1
1
  import { Document } from "../document";
2
2
  export interface Layout extends Document {
3
+ componentLibraries: string[];
4
+ title: string;
5
+ favicon: string;
6
+ stylesheets: string[];
3
7
  props: any;
4
8
  layoutId?: string;
9
+ name?: string;
5
10
  }
@@ -19,4 +19,5 @@ export interface Screen extends Document {
19
19
  routing: ScreenRouting;
20
20
  props: ScreenProps;
21
21
  name?: string;
22
+ pluginAdded?: boolean;
22
23
  }
@@ -3,14 +3,14 @@ export interface RowValue {
3
3
  rev: string;
4
4
  deleted: boolean;
5
5
  }
6
- export interface RowResponse<T extends Document> {
6
+ export interface RowResponse<T extends Document | RowValue> {
7
7
  id: string;
8
8
  key: string;
9
9
  error: string;
10
- value: T | RowValue;
10
+ value: T;
11
11
  doc?: T;
12
12
  }
13
- export interface AllDocsResponse<T extends Document> {
13
+ export interface AllDocsResponse<T extends Document | RowValue> {
14
14
  offset: number;
15
15
  total_rows: number;
16
16
  rows: RowResponse<T>[];
package/dist/index.js CHANGED
@@ -615,6 +615,7 @@ var SourceName = /* @__PURE__ */ ((SourceName2) => {
615
615
  SourceName2["FIRESTORE"] = "FIRESTORE";
616
616
  SourceName2["REDIS"] = "REDIS";
617
617
  SourceName2["SNOWFLAKE"] = "SNOWFLAKE";
618
+ SourceName2["BUDIBASE"] = "BUDIBASE";
618
619
  return SourceName2;
619
620
  })(SourceName || {});
620
621
  var IncludeRelationship = /* @__PURE__ */ ((IncludeRelationship2) => {