@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.
- package/dist/api/web/app/datasource.d.ts +0 -1
- package/dist/api/web/automation.d.ts +3 -0
- package/dist/api/web/index.d.ts +2 -0
- package/dist/api/web/layout.d.ts +5 -0
- package/dist/documents/app/datasource.d.ts +9 -7
- package/dist/documents/app/layout.d.ts +5 -0
- package/dist/documents/app/screen.d.ts +1 -0
- package/dist/documents/pouch.d.ts +3 -3
- package/dist/index.js +1 -0
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/datasources.d.ts +2 -1
- package/dist/sdk/db.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/api/web/index.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -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
|
|
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) => {
|