@budibase/backend-core 2.29.19 → 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/index.js CHANGED
@@ -54551,6 +54551,7 @@ var AutomationCustomIOType = /* @__PURE__ */ ((AutomationCustomIOType2) => {
54551
54551
  AutomationCustomIOType2["AUTOMATION"] = "automation";
54552
54552
  AutomationCustomIOType2["AUTOMATION_FIELDS"] = "automationFields";
54553
54553
  AutomationCustomIOType2["MULTI_ATTACHMENTS"] = "multi_attachments";
54554
+ AutomationCustomIOType2["TRIGGER_FILTER"] = "trigger_filter";
54554
54555
  return AutomationCustomIOType2;
54555
54556
  })(AutomationCustomIOType || {});
54556
54557
  var AutomationTriggerStepId = /* @__PURE__ */ ((AutomationTriggerStepId2) => {
@@ -54644,6 +54645,7 @@ var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
54644
54645
  DocumentType2["AUDIT_LOG"] = "al";
54645
54646
  DocumentType2["APP_MIGRATION_METADATA"] = "_design/migrations";
54646
54647
  DocumentType2["SCIM_LOG"] = "scimlog";
54648
+ DocumentType2["ROW_ACTIONS"] = "ra";
54647
54649
  return DocumentType2;
54648
54650
  })(DocumentType || {});
54649
54651
  var InternalTable = /* @__PURE__ */ ((InternalTable2) => {
@@ -66891,7 +66893,8 @@ __export(joi_validator_exports, {
66891
66893
  params: () => params
66892
66894
  });
66893
66895
  var import_joi = __toESM(require("joi"));
66894
- function validate2(schema, property, opts = { errorPrefix: `Invalid ${property}` }) {
66896
+ function validate2(schema, property, opts) {
66897
+ const errorPrefix = opts?.errorPrefix ?? `Invalid ${property}`;
66895
66898
  return (ctx, next) => {
66896
66899
  if (!schema) {
66897
66900
  return next();
@@ -66909,10 +66912,12 @@ function validate2(schema, property, opts = { errorPrefix: `Invalid ${property}`
66909
66912
  updatedAt: import_joi.default.any().optional()
66910
66913
  });
66911
66914
  }
66912
- const { error } = schema.validate(params2);
66915
+ const { error } = schema.validate(params2, {
66916
+ allowUnknown: opts?.allowUnknown
66917
+ });
66913
66918
  if (error) {
66914
66919
  let message = error.message;
66915
- if (opts.errorPrefix) {
66920
+ if (errorPrefix) {
66916
66921
  message = `Invalid ${property} - ${message}`;
66917
66922
  }
66918
66923
  ctx.throw(400, message);