@budibase/types 2.28.7 → 2.29.1
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/rows.d.ts +1 -1
- package/dist/documents/app/automation.d.ts +8 -0
- package/dist/documents/global/tenantInfo.d.ts +2 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +3 -3
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/datasources.d.ts +6 -2
- package/dist/sdk/row.d.ts +1 -0
- package/dist/sdk/search.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ export interface PatchRowResponse extends Row {
|
|
|
14
14
|
}
|
|
15
15
|
export interface SearchRowRequest extends Omit<RowSearchParams, "tableId"> {
|
|
16
16
|
}
|
|
17
|
-
export interface SearchViewRowRequest extends Pick<SearchRowRequest, "sort" | "sortOrder" | "sortType" | "limit" | "bookmark" | "paginate" | "query"> {
|
|
17
|
+
export interface SearchViewRowRequest extends Pick<SearchRowRequest, "sort" | "sortOrder" | "sortType" | "limit" | "bookmark" | "paginate" | "query" | "countRows"> {
|
|
18
18
|
}
|
|
19
19
|
export interface SearchRowResponse {
|
|
20
20
|
rows: any[];
|
|
@@ -5,6 +5,8 @@ import { Document } from "../document";
|
|
|
5
5
|
import { EventEmitter } from "events";
|
|
6
6
|
import { User } from "../global";
|
|
7
7
|
import { ReadStream } from "fs";
|
|
8
|
+
import { Row } from "./row";
|
|
9
|
+
import { Table } from "./table";
|
|
8
10
|
export declare enum AutomationIOType {
|
|
9
11
|
OBJECT = "object",
|
|
10
12
|
STRING = "string",
|
|
@@ -218,4 +220,10 @@ export type BucketedContent = AutomationAttachmentContent & {
|
|
|
218
220
|
bucket: string;
|
|
219
221
|
path: string;
|
|
220
222
|
};
|
|
223
|
+
export type UpdatedRowEventEmitter = {
|
|
224
|
+
row: Row;
|
|
225
|
+
oldRow: Row;
|
|
226
|
+
table: Table;
|
|
227
|
+
appId: string;
|
|
228
|
+
};
|
|
221
229
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Hosting } from "../../sdk";
|
|
1
2
|
import { Document } from "../document";
|
|
2
3
|
export interface TenantInfo extends Document {
|
|
3
4
|
owner: {
|
|
@@ -9,4 +10,5 @@ export interface TenantInfo extends Document {
|
|
|
9
10
|
budibaseUserId?: string;
|
|
10
11
|
};
|
|
11
12
|
tenantId: string;
|
|
13
|
+
hosting: Hosting;
|
|
12
14
|
}
|
package/dist/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __export(src_exports, {
|
|
|
51
51
|
CommandWord: () => CommandWord,
|
|
52
52
|
ConfigType: () => ConfigType,
|
|
53
53
|
ConstantQuotaName: () => ConstantQuotaName,
|
|
54
|
+
DSPlusOperation: () => DSPlusOperation,
|
|
54
55
|
DatasourceFeature: () => DatasourceFeature,
|
|
55
56
|
DatasourceFieldType: () => DatasourceFieldType,
|
|
56
57
|
DocumentType: () => DocumentType,
|
|
@@ -574,7 +575,9 @@ var Operation = /* @__PURE__ */ ((Operation2) => {
|
|
|
574
575
|
Operation2["READ"] = "READ";
|
|
575
576
|
Operation2["UPDATE"] = "UPDATE";
|
|
576
577
|
Operation2["DELETE"] = "DELETE";
|
|
578
|
+
Operation2["COUNT"] = "COUNT";
|
|
577
579
|
Operation2["BULK_CREATE"] = "BULK_CREATE";
|
|
580
|
+
Operation2["BULK_UPSERT"] = "BULK_UPSERT";
|
|
578
581
|
Operation2["CREATE_TABLE"] = "CREATE_TABLE";
|
|
579
582
|
Operation2["UPDATE_TABLE"] = "UPDATE_TABLE";
|
|
580
583
|
Operation2["DELETE_TABLE"] = "DELETE_TABLE";
|
|
@@ -585,7 +588,8 @@ var RowOperations = [
|
|
|
585
588
|
"READ" /* READ */,
|
|
586
589
|
"UPDATE" /* UPDATE */,
|
|
587
590
|
"DELETE" /* DELETE */,
|
|
588
|
-
"BULK_CREATE" /* BULK_CREATE
|
|
591
|
+
"BULK_CREATE" /* BULK_CREATE */,
|
|
592
|
+
"BULK_UPSERT" /* BULK_UPSERT */
|
|
589
593
|
];
|
|
590
594
|
var QueryType = /* @__PURE__ */ ((QueryType2) => {
|
|
591
595
|
QueryType2["SQL"] = "sql";
|
|
@@ -650,6 +654,13 @@ var DatasourceFeature = /* @__PURE__ */ ((DatasourceFeature2) => {
|
|
|
650
654
|
DatasourceFeature2["EXPORT_SCHEMA"] = "export_schema";
|
|
651
655
|
return DatasourceFeature2;
|
|
652
656
|
})(DatasourceFeature || {});
|
|
657
|
+
var DSPlusOperation = /* @__PURE__ */ ((DSPlusOperation2) => {
|
|
658
|
+
DSPlusOperation2["CREATE"] = "create";
|
|
659
|
+
DSPlusOperation2["READ"] = "read";
|
|
660
|
+
DSPlusOperation2["UPDATE"] = "update";
|
|
661
|
+
DSPlusOperation2["DELETE"] = "delete";
|
|
662
|
+
return DSPlusOperation2;
|
|
663
|
+
})(DSPlusOperation || {});
|
|
653
664
|
|
|
654
665
|
// src/sdk/search.ts
|
|
655
666
|
var SearchFilterOperator = /* @__PURE__ */ ((SearchFilterOperator2) => {
|
|
@@ -1291,6 +1302,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1291
1302
|
CommandWord,
|
|
1292
1303
|
ConfigType,
|
|
1293
1304
|
ConstantQuotaName,
|
|
1305
|
+
DSPlusOperation,
|
|
1294
1306
|
DatasourceFeature,
|
|
1295
1307
|
DatasourceFieldType,
|
|
1296
1308
|
DocumentType,
|