@budibase/types 2.29.20 → 2.29.21
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/index.d.ts +1 -0
- package/dist/api/web/app/rowAction.d.ts +15 -0
- package/dist/documents/app/automation.d.ts +14 -1
- package/dist/documents/app/index.d.ts +1 -0
- package/dist/documents/app/rowAction.d.ts +7 -0
- package/dist/documents/document.d.ts +4 -2
- package/dist/index.js +9 -0
- package/dist/index.js.map +3 -3
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/automations/index.d.ts +3 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface RowActionData {
|
|
2
|
+
name: string;
|
|
3
|
+
}
|
|
4
|
+
export interface CreateRowActionRequest extends RowActionData {
|
|
5
|
+
}
|
|
6
|
+
export interface UpdateRowActionRequest extends RowActionData {
|
|
7
|
+
}
|
|
8
|
+
export interface RowActionResponse extends RowActionData {
|
|
9
|
+
id: string;
|
|
10
|
+
tableId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface RowActionsResponse {
|
|
13
|
+
actions: Record<string, RowActionResponse>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -32,7 +32,8 @@ export declare enum AutomationCustomIOType {
|
|
|
32
32
|
WEBHOOK_URL = "webhookUrl",
|
|
33
33
|
AUTOMATION = "automation",
|
|
34
34
|
AUTOMATION_FIELDS = "automationFields",
|
|
35
|
-
MULTI_ATTACHMENTS = "multi_attachments"
|
|
35
|
+
MULTI_ATTACHMENTS = "multi_attachments",
|
|
36
|
+
TRIGGER_FILTER = "trigger_filter"
|
|
36
37
|
}
|
|
37
38
|
export declare enum AutomationTriggerStepId {
|
|
38
39
|
ROW_SAVED = "ROW_SAVED",
|
|
@@ -108,6 +109,15 @@ export interface Automation extends Document {
|
|
|
108
109
|
internal?: boolean;
|
|
109
110
|
type?: string;
|
|
110
111
|
disabled?: boolean;
|
|
112
|
+
testData?: {
|
|
113
|
+
row?: Row;
|
|
114
|
+
meta: {
|
|
115
|
+
[key: string]: unknown;
|
|
116
|
+
};
|
|
117
|
+
id: string;
|
|
118
|
+
revision: string;
|
|
119
|
+
oldRow?: Row;
|
|
120
|
+
};
|
|
111
121
|
}
|
|
112
122
|
interface BaseIOStructure {
|
|
113
123
|
type?: AutomationIOType;
|
|
@@ -171,6 +181,9 @@ export declare enum AutomationStatus {
|
|
|
171
181
|
STOPPED = "stopped",
|
|
172
182
|
STOPPED_ERROR = "stopped_error"
|
|
173
183
|
}
|
|
184
|
+
export declare enum AutomationStoppedReason {
|
|
185
|
+
TRIGGER_FILTER_NOT_MET = "Automation did not run. Filter conditions in trigger were not met."
|
|
186
|
+
}
|
|
174
187
|
export interface AutomationResults {
|
|
175
188
|
automationId?: string;
|
|
176
189
|
status?: AutomationStatus;
|
|
@@ -36,14 +36,16 @@ export declare enum DocumentType {
|
|
|
36
36
|
AUTOMATION_METADATA = "meta_au",
|
|
37
37
|
AUDIT_LOG = "al",
|
|
38
38
|
APP_MIGRATION_METADATA = "_design/migrations",
|
|
39
|
-
SCIM_LOG = "scimlog"
|
|
39
|
+
SCIM_LOG = "scimlog",
|
|
40
|
+
ROW_ACTIONS = "ra"
|
|
40
41
|
}
|
|
41
42
|
export declare const DocumentTypesToImport: DocumentType[];
|
|
42
43
|
export declare enum InternalTable {
|
|
43
44
|
USER_METADATA = "ta_users"
|
|
44
45
|
}
|
|
45
46
|
export declare enum VirtualDocumentType {
|
|
46
|
-
VIEW = "view"
|
|
47
|
+
VIEW = "view",
|
|
48
|
+
ROW_ACTION = "row_action"
|
|
47
49
|
}
|
|
48
50
|
export interface Document {
|
|
49
51
|
_id?: string;
|
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __export(src_exports, {
|
|
|
46
46
|
AutomationStepIdArray: () => AutomationStepIdArray,
|
|
47
47
|
AutomationStepStatus: () => AutomationStepStatus,
|
|
48
48
|
AutomationStepType: () => AutomationStepType,
|
|
49
|
+
AutomationStoppedReason: () => AutomationStoppedReason,
|
|
49
50
|
AutomationTriggerStepId: () => AutomationTriggerStepId,
|
|
50
51
|
BBReferenceFieldSubType: () => BBReferenceFieldSubType,
|
|
51
52
|
BREAKDOWN_QUOTA_NAMES: () => BREAKDOWN_QUOTA_NAMES,
|
|
@@ -877,6 +878,7 @@ var AutomationCustomIOType = /* @__PURE__ */ ((AutomationCustomIOType2) => {
|
|
|
877
878
|
AutomationCustomIOType2["AUTOMATION"] = "automation";
|
|
878
879
|
AutomationCustomIOType2["AUTOMATION_FIELDS"] = "automationFields";
|
|
879
880
|
AutomationCustomIOType2["MULTI_ATTACHMENTS"] = "multi_attachments";
|
|
881
|
+
AutomationCustomIOType2["TRIGGER_FILTER"] = "trigger_filter";
|
|
880
882
|
return AutomationCustomIOType2;
|
|
881
883
|
})(AutomationCustomIOType || {});
|
|
882
884
|
var AutomationTriggerStepId = /* @__PURE__ */ ((AutomationTriggerStepId2) => {
|
|
@@ -937,6 +939,10 @@ var AutomationStatus = /* @__PURE__ */ ((AutomationStatus2) => {
|
|
|
937
939
|
AutomationStatus2["STOPPED_ERROR"] = "stopped_error";
|
|
938
940
|
return AutomationStatus2;
|
|
939
941
|
})(AutomationStatus || {});
|
|
942
|
+
var AutomationStoppedReason = /* @__PURE__ */ ((AutomationStoppedReason2) => {
|
|
943
|
+
AutomationStoppedReason2["TRIGGER_FILTER_NOT_MET"] = "Automation did not run. Filter conditions in trigger were not met.";
|
|
944
|
+
return AutomationStoppedReason2;
|
|
945
|
+
})(AutomationStoppedReason || {});
|
|
940
946
|
var AutomationEventType = /* @__PURE__ */ ((AutomationEventType2) => {
|
|
941
947
|
AutomationEventType2["ROW_SAVE"] = "row:save";
|
|
942
948
|
AutomationEventType2["ROW_UPDATE"] = "row:update";
|
|
@@ -1101,6 +1107,7 @@ var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
|
1101
1107
|
DocumentType2["AUDIT_LOG"] = "al";
|
|
1102
1108
|
DocumentType2["APP_MIGRATION_METADATA"] = "_design/migrations";
|
|
1103
1109
|
DocumentType2["SCIM_LOG"] = "scimlog";
|
|
1110
|
+
DocumentType2["ROW_ACTIONS"] = "ra";
|
|
1104
1111
|
return DocumentType2;
|
|
1105
1112
|
})(DocumentType || {});
|
|
1106
1113
|
var DocumentTypesToImport = [
|
|
@@ -1124,6 +1131,7 @@ var InternalTable = /* @__PURE__ */ ((InternalTable2) => {
|
|
|
1124
1131
|
})(InternalTable || {});
|
|
1125
1132
|
var VirtualDocumentType = /* @__PURE__ */ ((VirtualDocumentType2) => {
|
|
1126
1133
|
VirtualDocumentType2["VIEW"] = "view";
|
|
1134
|
+
VirtualDocumentType2["ROW_ACTION"] = "row_action";
|
|
1127
1135
|
return VirtualDocumentType2;
|
|
1128
1136
|
})(VirtualDocumentType || {});
|
|
1129
1137
|
|
|
@@ -1320,6 +1328,7 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1320
1328
|
AutomationStepIdArray,
|
|
1321
1329
|
AutomationStepStatus,
|
|
1322
1330
|
AutomationStepType,
|
|
1331
|
+
AutomationStoppedReason,
|
|
1323
1332
|
AutomationTriggerStepId,
|
|
1324
1333
|
BBReferenceFieldSubType,
|
|
1325
1334
|
BREAKDOWN_QUOTA_NAMES,
|