@budibase/shared-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/helpers/views.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicViewFieldMetadata, ViewCalculationFieldMetadata, ViewFieldMetadata, ViewV2 } from "@budibase/types";
|
|
1
|
+
import { BasicViewFieldMetadata, View, ViewCalculationFieldMetadata, ViewFieldMetadata, ViewV2 } from "@budibase/types";
|
|
2
2
|
export declare function isCalculationField(field: ViewFieldMetadata): field is ViewCalculationFieldMetadata;
|
|
3
3
|
export declare function isBasicViewField(field: ViewFieldMetadata): field is BasicViewFieldMetadata;
|
|
4
4
|
type UnsavedViewV2 = Omit<ViewV2, "id" | "version">;
|
|
@@ -9,4 +9,5 @@ export declare function isVisible(field: ViewFieldMetadata): boolean;
|
|
|
9
9
|
export declare function basicFields(view: UnsavedViewV2, opts?: {
|
|
10
10
|
visible?: boolean;
|
|
11
11
|
}): import("lodash").Dictionary<ViewFieldMetadata>;
|
|
12
|
+
export declare function isV2(view: View | ViewV2): view is ViewV2;
|
|
12
13
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -22004,6 +22004,7 @@ __export(views_exports, {
|
|
|
22004
22004
|
isBasicViewField: () => isBasicViewField,
|
|
22005
22005
|
isCalculationField: () => isCalculationField,
|
|
22006
22006
|
isCalculationView: () => isCalculationView,
|
|
22007
|
+
isV2: () => isV2,
|
|
22007
22008
|
isVisible: () => isVisible
|
|
22008
22009
|
});
|
|
22009
22010
|
var import_lodash2 = __toESM(require_lodash());
|
|
@@ -22031,6 +22032,9 @@ function basicFields(view, opts) {
|
|
|
22031
22032
|
return !isCalculationField(field) && (!visible || isVisible(field));
|
|
22032
22033
|
});
|
|
22033
22034
|
}
|
|
22035
|
+
function isV2(view) {
|
|
22036
|
+
return view.version === 2;
|
|
22037
|
+
}
|
|
22034
22038
|
|
|
22035
22039
|
// src/helpers/roles.ts
|
|
22036
22040
|
var roles_exports = {};
|
|
@@ -22778,15 +22782,17 @@ function getProdAppID(appId) {
|
|
|
22778
22782
|
var automations_exports = {};
|
|
22779
22783
|
__export(automations_exports, {
|
|
22780
22784
|
isAppAction: () => isAppAction,
|
|
22781
|
-
isRowAction: () => isRowAction
|
|
22785
|
+
isRowAction: () => isRowAction,
|
|
22786
|
+
isWebhookAction: () => isWebhookAction
|
|
22782
22787
|
});
|
|
22783
22788
|
function isRowAction(automation) {
|
|
22784
|
-
|
|
22785
|
-
|
|
22789
|
+
return automation.definition.trigger?.stepId === "ROW_ACTION" /* ROW_ACTION */;
|
|
22790
|
+
}
|
|
22791
|
+
function isWebhookAction(automation) {
|
|
22792
|
+
return automation.definition.trigger?.stepId === "WEBHOOK" /* WEBHOOK */;
|
|
22786
22793
|
}
|
|
22787
22794
|
function isAppAction(automation) {
|
|
22788
|
-
|
|
22789
|
-
return result;
|
|
22795
|
+
return automation.definition.trigger?.stepId === "APP" /* APP */;
|
|
22790
22796
|
}
|
|
22791
22797
|
|
|
22792
22798
|
// src/sdk/documents/users.ts
|