@budibase/types 2.23.11 → 2.24.0
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/automation.d.ts +9 -2
- package/dist/documents/app/row.d.ts +0 -10
- package/dist/documents/app/table/constants.d.ts +4 -0
- package/dist/documents/app/table/schema.d.ts +3 -3
- package/dist/index.js +10 -15
- package/dist/index.js.map +3 -3
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/licensing/plan.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,8 @@ export declare enum AutomationIOType {
|
|
|
9
9
|
NUMBER = "number",
|
|
10
10
|
ARRAY = "array",
|
|
11
11
|
JSON = "json",
|
|
12
|
-
DATE = "date"
|
|
12
|
+
DATE = "date",
|
|
13
|
+
ATTACHMENT = "attachment"
|
|
13
14
|
}
|
|
14
15
|
export declare enum AutomationCustomIOType {
|
|
15
16
|
TABLE = "table",
|
|
@@ -28,7 +29,8 @@ export declare enum AutomationCustomIOType {
|
|
|
28
29
|
CRON = "cron",
|
|
29
30
|
WEBHOOK_URL = "webhookUrl",
|
|
30
31
|
AUTOMATION = "automation",
|
|
31
|
-
AUTOMATION_FIELDS = "automationFields"
|
|
32
|
+
AUTOMATION_FIELDS = "automationFields",
|
|
33
|
+
MULTI_ATTACHMENTS = "multi_attachments"
|
|
32
34
|
}
|
|
33
35
|
export declare enum AutomationTriggerStepId {
|
|
34
36
|
ROW_SAVED = "ROW_SAVED",
|
|
@@ -73,6 +75,10 @@ export interface EmailInvite {
|
|
|
73
75
|
location?: string;
|
|
74
76
|
url?: string;
|
|
75
77
|
}
|
|
78
|
+
export interface EmailAttachment {
|
|
79
|
+
url: string;
|
|
80
|
+
filename: string;
|
|
81
|
+
}
|
|
76
82
|
export interface SendEmailOpts {
|
|
77
83
|
workspaceId?: string;
|
|
78
84
|
user: User;
|
|
@@ -84,6 +90,7 @@ export interface SendEmailOpts {
|
|
|
84
90
|
bcc?: boolean;
|
|
85
91
|
automation?: boolean;
|
|
86
92
|
invite?: EmailInvite;
|
|
93
|
+
attachments?: EmailAttachment[];
|
|
87
94
|
}
|
|
88
95
|
export declare const AutomationStepIdArray: (AutomationActionStepId | AutomationTriggerStepId)[];
|
|
89
96
|
export interface Automation extends Document {
|
|
@@ -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
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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 || {});
|
|
@@ -827,6 +827,7 @@ var AutomationIOType = /* @__PURE__ */ ((AutomationIOType2) => {
|
|
|
827
827
|
AutomationIOType2["ARRAY"] = "array";
|
|
828
828
|
AutomationIOType2["JSON"] = "json";
|
|
829
829
|
AutomationIOType2["DATE"] = "date";
|
|
830
|
+
AutomationIOType2["ATTACHMENT"] = "attachment";
|
|
830
831
|
return AutomationIOType2;
|
|
831
832
|
})(AutomationIOType || {});
|
|
832
833
|
var AutomationCustomIOType = /* @__PURE__ */ ((AutomationCustomIOType2) => {
|
|
@@ -847,6 +848,7 @@ var AutomationCustomIOType = /* @__PURE__ */ ((AutomationCustomIOType2) => {
|
|
|
847
848
|
AutomationCustomIOType2["WEBHOOK_URL"] = "webhookUrl";
|
|
848
849
|
AutomationCustomIOType2["AUTOMATION"] = "automation";
|
|
849
850
|
AutomationCustomIOType2["AUTOMATION_FIELDS"] = "automationFields";
|
|
851
|
+
AutomationCustomIOType2["MULTI_ATTACHMENTS"] = "multi_attachments";
|
|
850
852
|
return AutomationCustomIOType2;
|
|
851
853
|
})(AutomationCustomIOType || {});
|
|
852
854
|
var AutomationTriggerStepId = /* @__PURE__ */ ((AutomationTriggerStepId2) => {
|
|
@@ -955,17 +957,6 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
|
955
957
|
FieldType2["BB_REFERENCE"] = "bb_reference";
|
|
956
958
|
return FieldType2;
|
|
957
959
|
})(FieldType || {});
|
|
958
|
-
var FieldSubtype = /* @__PURE__ */ ((FieldSubtype3) => {
|
|
959
|
-
FieldSubtype3["USER"] = "user";
|
|
960
|
-
FieldSubtype3["USERS"] = "users";
|
|
961
|
-
return FieldSubtype3;
|
|
962
|
-
})(FieldSubtype || {});
|
|
963
|
-
var FieldTypeSubtypes = {
|
|
964
|
-
BB_REFERENCE: {
|
|
965
|
-
USER: "user" /* USER */,
|
|
966
|
-
USERS: "users" /* USERS */
|
|
967
|
-
}
|
|
968
|
-
};
|
|
969
960
|
|
|
970
961
|
// src/documents/app/table/constants.ts
|
|
971
962
|
var RelationshipType = /* @__PURE__ */ ((RelationshipType2) => {
|
|
@@ -995,6 +986,11 @@ var FormulaType = /* @__PURE__ */ ((FormulaType3) => {
|
|
|
995
986
|
FormulaType3["DYNAMIC"] = "dynamic";
|
|
996
987
|
return FormulaType3;
|
|
997
988
|
})(FormulaType || {});
|
|
989
|
+
var BBReferenceFieldSubType = /* @__PURE__ */ ((BBReferenceFieldSubType3) => {
|
|
990
|
+
BBReferenceFieldSubType3["USER"] = "user";
|
|
991
|
+
BBReferenceFieldSubType3["USERS"] = "users";
|
|
992
|
+
return BBReferenceFieldSubType3;
|
|
993
|
+
})(BBReferenceFieldSubType || {});
|
|
998
994
|
|
|
999
995
|
// src/documents/app/table/schema.ts
|
|
1000
996
|
function isRelationshipField(field) {
|
|
@@ -1280,6 +1276,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1280
1276
|
AutomationStepStatus,
|
|
1281
1277
|
AutomationStepType,
|
|
1282
1278
|
AutomationTriggerStepId,
|
|
1279
|
+
BBReferenceFieldSubType,
|
|
1283
1280
|
BREAKDOWN_QUOTA_NAMES,
|
|
1284
1281
|
BreakdownQuotaName,
|
|
1285
1282
|
CommandWord,
|
|
@@ -1294,9 +1291,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1294
1291
|
EventPublishType,
|
|
1295
1292
|
Feature,
|
|
1296
1293
|
FeatureFlag,
|
|
1297
|
-
FieldSubtype,
|
|
1298
1294
|
FieldType,
|
|
1299
|
-
FieldTypeSubtypes,
|
|
1300
1295
|
FilterType,
|
|
1301
1296
|
FormulaType,
|
|
1302
1297
|
GroupType,
|