@budibase/types 2.23.12 → 2.24.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.
@@ -120,13 +120,3 @@ export interface Row extends Document {
120
120
  _viewId?: string;
121
121
  [key: string]: any;
122
122
  }
123
- export declare enum FieldSubtype {
124
- USER = "user",
125
- USERS = "users"
126
- }
127
- export declare const FieldTypeSubtypes: {
128
- BB_REFERENCE: {
129
- USER: FieldSubtype.USER;
130
- USERS: FieldSubtype.USERS;
131
- };
132
- };
@@ -20,3 +20,7 @@ export declare enum FormulaType {
20
20
  STATIC = "static",
21
21
  DYNAMIC = "dynamic"
22
22
  }
23
+ export declare enum BBReferenceFieldSubType {
24
+ USER = "user",
25
+ USERS = "users"
26
+ }
@@ -1,5 +1,5 @@
1
- import { FieldSubtype, FieldType } from "../row";
2
- import { AutoFieldSubType, AutoReason, FormulaType, JsonFieldSubType, RelationshipType } from "./constants";
1
+ import { FieldType } from "../row";
2
+ import { AutoFieldSubType, AutoReason, BBReferenceFieldSubType, FormulaType, JsonFieldSubType, RelationshipType } from "./constants";
3
3
  export interface UIFieldMetadata {
4
4
  order?: number;
5
5
  width?: number;
@@ -74,7 +74,7 @@ export interface FormulaFieldMetadata extends BaseFieldSchema {
74
74
  }
75
75
  export interface BBReferenceFieldMetadata extends Omit<BaseFieldSchema, "subtype"> {
76
76
  type: FieldType.BB_REFERENCE;
77
- subtype: FieldSubtype.USER | FieldSubtype.USERS;
77
+ subtype: BBReferenceFieldSubType.USER | BBReferenceFieldSubType.USERS;
78
78
  relationshipType?: RelationshipType;
79
79
  }
80
80
  export interface AttachmentFieldMetadata extends BaseFieldSchema {
package/dist/index.js CHANGED
@@ -44,6 +44,7 @@ __export(src_exports, {
44
44
  AutomationStepStatus: () => AutomationStepStatus,
45
45
  AutomationStepType: () => AutomationStepType,
46
46
  AutomationTriggerStepId: () => AutomationTriggerStepId,
47
+ BBReferenceFieldSubType: () => BBReferenceFieldSubType,
47
48
  BREAKDOWN_QUOTA_NAMES: () => BREAKDOWN_QUOTA_NAMES,
48
49
  BreakdownQuotaName: () => BreakdownQuotaName,
49
50
  CommandWord: () => CommandWord,
@@ -58,9 +59,7 @@ __export(src_exports, {
58
59
  EventPublishType: () => EventPublishType,
59
60
  Feature: () => Feature,
60
61
  FeatureFlag: () => FeatureFlag,
61
- FieldSubtype: () => FieldSubtype,
62
62
  FieldType: () => FieldType,
63
- FieldTypeSubtypes: () => FieldTypeSubtypes,
64
63
  FilterType: () => FilterType,
65
64
  FormulaType: () => FormulaType,
66
65
  GroupType: () => GroupType,
@@ -473,6 +472,7 @@ var PlanType = /* @__PURE__ */ ((PlanType3) => {
473
472
  PlanType3["PREMIUM_PLUS_TRIAL"] = "premium_plus_trial";
474
473
  PlanType3["BUSINESS"] = "business";
475
474
  PlanType3["ENTERPRISE_BASIC"] = "enterprise_basic";
475
+ PlanType3["ENTERPRISE_BASIC_TRIAL"] = "enterprise_basic_trial";
476
476
  PlanType3["ENTERPRISE"] = "enterprise";
477
477
  return PlanType3;
478
478
  })(PlanType || {});
@@ -957,17 +957,6 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
957
957
  FieldType2["BB_REFERENCE"] = "bb_reference";
958
958
  return FieldType2;
959
959
  })(FieldType || {});
960
- var FieldSubtype = /* @__PURE__ */ ((FieldSubtype3) => {
961
- FieldSubtype3["USER"] = "user";
962
- FieldSubtype3["USERS"] = "users";
963
- return FieldSubtype3;
964
- })(FieldSubtype || {});
965
- var FieldTypeSubtypes = {
966
- BB_REFERENCE: {
967
- USER: "user" /* USER */,
968
- USERS: "users" /* USERS */
969
- }
970
- };
971
960
 
972
961
  // src/documents/app/table/constants.ts
973
962
  var RelationshipType = /* @__PURE__ */ ((RelationshipType2) => {
@@ -997,6 +986,11 @@ var FormulaType = /* @__PURE__ */ ((FormulaType3) => {
997
986
  FormulaType3["DYNAMIC"] = "dynamic";
998
987
  return FormulaType3;
999
988
  })(FormulaType || {});
989
+ var BBReferenceFieldSubType = /* @__PURE__ */ ((BBReferenceFieldSubType3) => {
990
+ BBReferenceFieldSubType3["USER"] = "user";
991
+ BBReferenceFieldSubType3["USERS"] = "users";
992
+ return BBReferenceFieldSubType3;
993
+ })(BBReferenceFieldSubType || {});
1000
994
 
1001
995
  // src/documents/app/table/schema.ts
1002
996
  function isRelationshipField(field) {
@@ -1282,6 +1276,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
1282
1276
  AutomationStepStatus,
1283
1277
  AutomationStepType,
1284
1278
  AutomationTriggerStepId,
1279
+ BBReferenceFieldSubType,
1285
1280
  BREAKDOWN_QUOTA_NAMES,
1286
1281
  BreakdownQuotaName,
1287
1282
  CommandWord,
@@ -1296,9 +1291,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
1296
1291
  EventPublishType,
1297
1292
  Feature,
1298
1293
  FeatureFlag,
1299
- FieldSubtype,
1300
1294
  FieldType,
1301
- FieldTypeSubtypes,
1302
1295
  FilterType,
1303
1296
  FormulaType,
1304
1297
  GroupType,