@budibase/types 2.32.13 → 2.32.15
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/documents/app/row.d.ts +4 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/db.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -117,6 +117,10 @@ export declare enum FieldType {
|
|
|
117
117
|
BB_REFERENCE_SINGLE = "bb_reference_single"
|
|
118
118
|
}
|
|
119
119
|
export declare const JsonTypes: FieldType[];
|
|
120
|
+
export declare const NumericTypes: FieldType[];
|
|
121
|
+
export declare function isNumeric(type: FieldType): boolean;
|
|
122
|
+
export declare const GroupByTypes: FieldType[];
|
|
123
|
+
export declare function canGroupBy(type: FieldType): boolean;
|
|
120
124
|
export interface RowAttachment {
|
|
121
125
|
size: number;
|
|
122
126
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -71,6 +71,7 @@ __export(src_exports, {
|
|
|
71
71
|
FilterGroupLogicalOperator: () => FilterGroupLogicalOperator,
|
|
72
72
|
FilterType: () => FilterType,
|
|
73
73
|
FormulaType: () => FormulaType,
|
|
74
|
+
GroupByTypes: () => GroupByTypes,
|
|
74
75
|
GroupType: () => GroupType,
|
|
75
76
|
Hosting: () => Hosting,
|
|
76
77
|
HttpMethod: () => HttpMethod,
|
|
@@ -90,6 +91,7 @@ __export(src_exports, {
|
|
|
90
91
|
MigrationName: () => MigrationName,
|
|
91
92
|
MigrationType: () => MigrationType,
|
|
92
93
|
MonthlyQuotaName: () => MonthlyQuotaName,
|
|
94
|
+
NumericTypes: () => NumericTypes,
|
|
93
95
|
Operation: () => Operation,
|
|
94
96
|
PASSWORD_REPLACEMENT: () => PASSWORD_REPLACEMENT,
|
|
95
97
|
PLUGIN_TYPE_ARR: () => PLUGIN_TYPE_ARR,
|
|
@@ -132,6 +134,7 @@ __export(src_exports, {
|
|
|
132
134
|
ViewV2Type: () => ViewV2Type,
|
|
133
135
|
VirtualDocumentType: () => VirtualDocumentType,
|
|
134
136
|
WebhookActionType: () => WebhookActionType,
|
|
137
|
+
canGroupBy: () => canGroupBy,
|
|
135
138
|
isAIConfig: () => isAIConfig,
|
|
136
139
|
isAppBackupMetadata: () => isAppBackupMetadata,
|
|
137
140
|
isCloudAccount: () => isCloudAccount,
|
|
@@ -143,6 +146,7 @@ __export(src_exports, {
|
|
|
143
146
|
isManyToMany: () => isManyToMany,
|
|
144
147
|
isManyToOne: () => isManyToOne,
|
|
145
148
|
isMonthlyQuota: () => isMonthlyQuota,
|
|
149
|
+
isNumeric: () => isNumeric,
|
|
146
150
|
isOIDCConfig: () => isOIDCConfig,
|
|
147
151
|
isOneToMany: () => isOneToMany,
|
|
148
152
|
isPasswordAccount: () => isPasswordAccount,
|
|
@@ -1069,6 +1073,22 @@ var JsonTypes = [
|
|
|
1069
1073
|
"json" /* JSON */,
|
|
1070
1074
|
"array" /* ARRAY */
|
|
1071
1075
|
];
|
|
1076
|
+
var NumericTypes = ["number" /* NUMBER */, "bigint" /* BIGINT */];
|
|
1077
|
+
function isNumeric(type) {
|
|
1078
|
+
return NumericTypes.includes(type);
|
|
1079
|
+
}
|
|
1080
|
+
var GroupByTypes = [
|
|
1081
|
+
"string" /* STRING */,
|
|
1082
|
+
"longform" /* LONGFORM */,
|
|
1083
|
+
"options" /* OPTIONS */,
|
|
1084
|
+
"number" /* NUMBER */,
|
|
1085
|
+
"boolean" /* BOOLEAN */,
|
|
1086
|
+
"datetime" /* DATETIME */,
|
|
1087
|
+
"bigint" /* BIGINT */
|
|
1088
|
+
];
|
|
1089
|
+
function canGroupBy(type) {
|
|
1090
|
+
return GroupByTypes.includes(type);
|
|
1091
|
+
}
|
|
1072
1092
|
|
|
1073
1093
|
// src/documents/app/table/constants.ts
|
|
1074
1094
|
var RelationshipType = /* @__PURE__ */ ((RelationshipType2) => {
|
|
@@ -1426,6 +1446,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1426
1446
|
FilterGroupLogicalOperator,
|
|
1427
1447
|
FilterType,
|
|
1428
1448
|
FormulaType,
|
|
1449
|
+
GroupByTypes,
|
|
1429
1450
|
GroupType,
|
|
1430
1451
|
Hosting,
|
|
1431
1452
|
HttpMethod,
|
|
@@ -1445,6 +1466,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1445
1466
|
MigrationName,
|
|
1446
1467
|
MigrationType,
|
|
1447
1468
|
MonthlyQuotaName,
|
|
1469
|
+
NumericTypes,
|
|
1448
1470
|
Operation,
|
|
1449
1471
|
PASSWORD_REPLACEMENT,
|
|
1450
1472
|
PLUGIN_TYPE_ARR,
|
|
@@ -1487,6 +1509,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1487
1509
|
ViewV2Type,
|
|
1488
1510
|
VirtualDocumentType,
|
|
1489
1511
|
WebhookActionType,
|
|
1512
|
+
canGroupBy,
|
|
1490
1513
|
isAIConfig,
|
|
1491
1514
|
isAppBackupMetadata,
|
|
1492
1515
|
isCloudAccount,
|
|
@@ -1498,6 +1521,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1498
1521
|
isManyToMany,
|
|
1499
1522
|
isManyToOne,
|
|
1500
1523
|
isMonthlyQuota,
|
|
1524
|
+
isNumeric,
|
|
1501
1525
|
isOIDCConfig,
|
|
1502
1526
|
isOneToMany,
|
|
1503
1527
|
isPasswordAccount,
|