@budibase/backend-core 3.2.28 → 3.2.30

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
@@ -16383,6 +16383,7 @@ __export(views_exports, {
16383
16383
  isBasicViewField: () => isBasicViewField,
16384
16384
  isCalculationField: () => isCalculationField,
16385
16385
  isCalculationView: () => isCalculationView,
16386
+ isV2: () => isV2,
16386
16387
  isVisible: () => isVisible
16387
16388
  });
16388
16389
  var import_lodash2 = require("lodash");
@@ -16410,6 +16411,9 @@ function basicFields(view, opts) {
16410
16411
  return !isCalculationField(field) && (!visible || isVisible(field));
16411
16412
  });
16412
16413
  }
16414
+ function isV2(view) {
16415
+ return view.version === 2;
16416
+ }
16413
16417
 
16414
16418
  // ../shared-core/src/helpers/roles.ts
16415
16419
  var roles_exports = {};
@@ -17157,15 +17161,17 @@ function getProdAppID(appId) {
17157
17161
  var automations_exports = {};
17158
17162
  __export(automations_exports, {
17159
17163
  isAppAction: () => isAppAction,
17160
- isRowAction: () => isRowAction
17164
+ isRowAction: () => isRowAction,
17165
+ isWebhookAction: () => isWebhookAction
17161
17166
  });
17162
17167
  function isRowAction(automation) {
17163
- const result = automation.definition.trigger?.stepId === "ROW_ACTION" /* ROW_ACTION */;
17164
- return result;
17168
+ return automation.definition.trigger?.stepId === "ROW_ACTION" /* ROW_ACTION */;
17169
+ }
17170
+ function isWebhookAction(automation) {
17171
+ return automation.definition.trigger?.stepId === "WEBHOOK" /* WEBHOOK */;
17165
17172
  }
17166
17173
  function isAppAction(automation) {
17167
- const result = automation.definition.trigger?.stepId === "APP" /* APP */;
17168
- return result;
17174
+ return automation.definition.trigger?.stepId === "APP" /* APP */;
17169
17175
  }
17170
17176
 
17171
17177
  // ../shared-core/src/sdk/documents/users.ts
@@ -18258,6 +18264,8 @@ __export(utils_exports3, {
18258
18264
  breakRowIdField: () => breakRowIdField,
18259
18265
  buildExternalTableId: () => buildExternalTableId,
18260
18266
  convertRowId: () => convertRowId,
18267
+ encodeTableId: () => encodeTableId,
18268
+ encodeViewId: () => encodeViewId,
18261
18269
  generateRowIdField: () => generateRowIdField,
18262
18270
  getNativeSql: () => getNativeSql,
18263
18271
  isExternalTable: () => isExternalTable,
@@ -21161,10 +21169,17 @@ function isExternalTable(table) {
21161
21169
  return false;
21162
21170
  }
21163
21171
  function buildExternalTableId(datasourceId, tableName) {
21164
- if (tableName.includes(" ")) {
21165
- tableName = encodeURIComponent(tableName);
21172
+ return `${datasourceId}${DOUBLE_SEPARATOR}${encodeURIComponent(tableName)}`;
21173
+ }
21174
+ function encodeTableId(tableId) {
21175
+ if (isExternalTableID(tableId)) {
21176
+ return encodeURIComponent(tableId);
21177
+ } else {
21178
+ return tableId;
21166
21179
  }
21167
- return `${datasourceId}${DOUBLE_SEPARATOR}${tableName}`;
21180
+ }
21181
+ function encodeViewId(viewId) {
21182
+ return encodeURIComponent(viewId);
21168
21183
  }
21169
21184
  function breakExternalTableId(tableId) {
21170
21185
  const parts = tableId.split(DOUBLE_SEPARATOR);