From d9eb7eaa552523a46d09c38f6fc379dcec347a5c Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 13 Jan 2025 13:34:09 +0100 Subject: [PATCH] Type constants --- .../src/constants/backend/{automations.js => automations.ts} | 0 .../builder/src/constants/backend/{backups.js => backups.ts} | 0 packages/builder/src/constants/backend/{index.js => index.ts} | 3 ++- 3 files changed, 2 insertions(+), 1 deletion(-) rename packages/builder/src/constants/backend/{automations.js => automations.ts} (100%) rename packages/builder/src/constants/backend/{backups.js => backups.ts} (100%) rename packages/builder/src/constants/backend/{index.js => index.ts} (98%) diff --git a/packages/builder/src/constants/backend/automations.js b/packages/builder/src/constants/backend/automations.ts similarity index 100% rename from packages/builder/src/constants/backend/automations.js rename to packages/builder/src/constants/backend/automations.ts diff --git a/packages/builder/src/constants/backend/backups.js b/packages/builder/src/constants/backend/backups.ts similarity index 100% rename from packages/builder/src/constants/backend/backups.js rename to packages/builder/src/constants/backend/backups.ts diff --git a/packages/builder/src/constants/backend/index.js b/packages/builder/src/constants/backend/index.ts similarity index 98% rename from packages/builder/src/constants/backend/index.js rename to packages/builder/src/constants/backend/index.ts index 6ddf4c2138..c28416ac3e 100644 --- a/packages/builder/src/constants/backend/index.js +++ b/packages/builder/src/constants/backend/index.ts @@ -4,6 +4,7 @@ import { INTERNAL_TABLE_SOURCE_ID, AutoFieldSubType, Hosting, + FieldSubType, } from "@budibase/types" import { Constants } from "@budibase/frontend-core" @@ -209,7 +210,7 @@ export const Roles = { BUILDER: "BUILDER", } -export function isAutoColumnUserRelationship(subtype) { +export function isAutoColumnUserRelationship(subtype: FieldSubType) { return ( subtype === AUTO_COLUMN_SUB_TYPES.CREATED_BY || subtype === AUTO_COLUMN_SUB_TYPES.UPDATED_BY