@budibase/types 2.27.3 → 2.27.5
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/table.d.ts +2 -1
- package/dist/api/web/app/view.d.ts +2 -1
- package/dist/api/web/user.d.ts +1 -0
- package/dist/documents/app/row.d.ts +1 -0
- package/dist/documents/app/sqlite.d.ts +1 -0
- package/dist/documents/app/view.d.ts +5 -5
- package/dist/documents/global/auditLogs.d.ts +2 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +3 -3
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/licensing/feature.d.ts +2 -1
- package/dist/sdk/search.d.ts +15 -1
- package/dist/sdk/view.d.ts +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Row, Table, TableRequest, View
|
|
1
|
+
import { Row, Table, TableRequest, View } from "../../../documents";
|
|
2
|
+
import { ViewV2Enriched } from "../../../sdk";
|
|
2
3
|
export type TableViewsResponse = {
|
|
3
4
|
[key: string]: View | ViewV2Enriched;
|
|
4
5
|
};
|
package/dist/api/web/user.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilter, SortOrder, SortType } from "../../api";
|
|
2
|
-
import {
|
|
2
|
+
import { UIFieldMetadata } from "./table";
|
|
3
3
|
import { Document } from "../document";
|
|
4
4
|
import { DBView } from "../../sdk";
|
|
5
5
|
export type ViewTemplateOpts = {
|
|
@@ -29,6 +29,9 @@ export interface View {
|
|
|
29
29
|
meta?: ViewTemplateOpts;
|
|
30
30
|
groupBy?: string;
|
|
31
31
|
}
|
|
32
|
+
export type ViewUIFieldMetadata = UIFieldMetadata & {
|
|
33
|
+
readonly?: boolean;
|
|
34
|
+
};
|
|
32
35
|
export interface ViewV2 {
|
|
33
36
|
version: 2;
|
|
34
37
|
id: string;
|
|
@@ -41,10 +44,7 @@ export interface ViewV2 {
|
|
|
41
44
|
order?: SortOrder;
|
|
42
45
|
type?: SortType;
|
|
43
46
|
};
|
|
44
|
-
schema?: Record<string,
|
|
45
|
-
}
|
|
46
|
-
export interface ViewV2Enriched extends ViewV2 {
|
|
47
|
-
schema?: TableSchema;
|
|
47
|
+
schema?: Record<string, ViewUIFieldMetadata>;
|
|
48
48
|
}
|
|
49
49
|
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema;
|
|
50
50
|
export interface ViewCountOrSumSchema {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Document } from "../document";
|
|
2
2
|
import { Event } from "../../sdk";
|
|
3
3
|
export declare const AuditLogSystemUser = "SYSTEM";
|
|
4
|
+
export declare const AUDIT_LOG_TYPE = "auditLog";
|
|
4
5
|
export type FallbackInfo = {
|
|
5
6
|
appName?: string;
|
|
6
7
|
email?: string;
|
|
@@ -12,5 +13,6 @@ export interface AuditLogDoc extends Document {
|
|
|
12
13
|
timestamp: string;
|
|
13
14
|
metadata: any;
|
|
14
15
|
name: string;
|
|
16
|
+
type?: "auditLog";
|
|
15
17
|
fallback?: FallbackInfo;
|
|
16
18
|
}
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
APP_QUOTA_NAMES: () => APP_QUOTA_NAMES,
|
|
24
|
+
AUDIT_LOG_TYPE: () => AUDIT_LOG_TYPE,
|
|
24
25
|
AccountSSOProvider: () => AccountSSOProvider,
|
|
25
26
|
AccountSSOProviderType: () => AccountSSOProviderType,
|
|
26
27
|
AnalyticsEvent: () => AnalyticsEvent,
|
|
@@ -71,6 +72,7 @@ __export(src_exports, {
|
|
|
71
72
|
InitType: () => InitType,
|
|
72
73
|
InternalTable: () => InternalTable,
|
|
73
74
|
JsonFieldSubType: () => JsonFieldSubType,
|
|
75
|
+
JsonTypes: () => JsonTypes,
|
|
74
76
|
LockName: () => LockName,
|
|
75
77
|
LockType: () => LockType,
|
|
76
78
|
MaintenanceType: () => MaintenanceType,
|
|
@@ -108,6 +110,7 @@ __export(src_exports, {
|
|
|
108
110
|
SortOrder: () => SortOrder,
|
|
109
111
|
SortType: () => SortType,
|
|
110
112
|
SourceName: () => SourceName,
|
|
113
|
+
SqlClient: () => SqlClient,
|
|
111
114
|
StaticQuotaName: () => StaticQuotaName,
|
|
112
115
|
TableSourceType: () => TableSourceType,
|
|
113
116
|
TenantResolutionStrategy: () => TenantResolutionStrategy,
|
|
@@ -542,6 +545,7 @@ var Feature = /* @__PURE__ */ ((Feature3) => {
|
|
|
542
545
|
Feature3["OFFLINE"] = "offline";
|
|
543
546
|
Feature3["EXPANDED_PUBLIC_API"] = "expandedPublicApi";
|
|
544
547
|
Feature3["VIEW_PERMISSIONS"] = "viewPermissions";
|
|
548
|
+
Feature3["VIEW_READONLY_COLUMNS"] = "viewReadonlyColumns";
|
|
545
549
|
return Feature3;
|
|
546
550
|
})(Feature || {});
|
|
547
551
|
|
|
@@ -673,6 +677,14 @@ var EmptyFilterOption = /* @__PURE__ */ ((EmptyFilterOption2) => {
|
|
|
673
677
|
EmptyFilterOption2["RETURN_NONE"] = "none";
|
|
674
678
|
return EmptyFilterOption2;
|
|
675
679
|
})(EmptyFilterOption || {});
|
|
680
|
+
var SqlClient = /* @__PURE__ */ ((SqlClient2) => {
|
|
681
|
+
SqlClient2["MS_SQL"] = "mssql";
|
|
682
|
+
SqlClient2["POSTGRES"] = "pg";
|
|
683
|
+
SqlClient2["MY_SQL"] = "mysql2";
|
|
684
|
+
SqlClient2["ORACLE"] = "oracledb";
|
|
685
|
+
SqlClient2["SQL_LITE"] = "sqlite3";
|
|
686
|
+
return SqlClient2;
|
|
687
|
+
})(SqlClient || {});
|
|
676
688
|
|
|
677
689
|
// src/sdk/locks.ts
|
|
678
690
|
var LockType = /* @__PURE__ */ ((LockType2) => {
|
|
@@ -956,6 +968,14 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
|
956
968
|
FieldType2["BB_REFERENCE_SINGLE"] = "bb_reference_single";
|
|
957
969
|
return FieldType2;
|
|
958
970
|
})(FieldType || {});
|
|
971
|
+
var JsonTypes = [
|
|
972
|
+
"attachment_single" /* ATTACHMENT_SINGLE */,
|
|
973
|
+
"attachment" /* ATTACHMENTS */,
|
|
974
|
+
// only BB_REFERENCE is JSON, it's an array, BB_REFERENCE_SINGLE is a string type
|
|
975
|
+
"bb_reference" /* BB_REFERENCE */,
|
|
976
|
+
"json" /* JSON */,
|
|
977
|
+
"array" /* ARRAY */
|
|
978
|
+
];
|
|
959
979
|
|
|
960
980
|
// src/documents/app/table/constants.ts
|
|
961
981
|
var RelationshipType = /* @__PURE__ */ ((RelationshipType2) => {
|
|
@@ -1201,6 +1221,7 @@ var isAppBackupMetadata = (type, metadata) => {
|
|
|
1201
1221
|
|
|
1202
1222
|
// src/documents/global/auditLogs.ts
|
|
1203
1223
|
var AuditLogSystemUser = "SYSTEM";
|
|
1224
|
+
var AUDIT_LOG_TYPE = "auditLog";
|
|
1204
1225
|
|
|
1205
1226
|
// src/api/web/analytics.ts
|
|
1206
1227
|
var PingSource = /* @__PURE__ */ ((PingSource2) => {
|
|
@@ -1246,6 +1267,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1246
1267
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1247
1268
|
0 && (module.exports = {
|
|
1248
1269
|
APP_QUOTA_NAMES,
|
|
1270
|
+
AUDIT_LOG_TYPE,
|
|
1249
1271
|
AccountSSOProvider,
|
|
1250
1272
|
AccountSSOProviderType,
|
|
1251
1273
|
AnalyticsEvent,
|
|
@@ -1296,6 +1318,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1296
1318
|
InitType,
|
|
1297
1319
|
InternalTable,
|
|
1298
1320
|
JsonFieldSubType,
|
|
1321
|
+
JsonTypes,
|
|
1299
1322
|
LockName,
|
|
1300
1323
|
LockType,
|
|
1301
1324
|
MaintenanceType,
|
|
@@ -1333,6 +1356,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1333
1356
|
SortOrder,
|
|
1334
1357
|
SortType,
|
|
1335
1358
|
SourceName,
|
|
1359
|
+
SqlClient,
|
|
1336
1360
|
StaticQuotaName,
|
|
1337
1361
|
TableSourceType,
|
|
1338
1362
|
TenantResolutionStrategy,
|