ee6989a575
* refactor: add server and client raqbUtils modules Add two new modules to split RAQB utilities: - raqbUtils.server.ts: Server-safe utilities without RAQB runtime - raqbUtils.client.ts: Client-only utilities requiring RAQB runtime This enables server-side code to import RAQB utilities without pulling in the react-awesome-query-builder runtime library. Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com> * refactor: update imports to use server/client raqbUtils modules and fix lint warnings Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com> * fix: fix type errors in getLuckyUser.ts and remove dead code in RouteBuilder.tsx Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
/**
|
|
* Barrel file that re-exports from both server and client modules for backward compatibility.
|
|
*
|
|
* IMPORTANT: This file imports from raqbUtils.client.ts which requires the react-awesome-query-builder runtime.
|
|
* For server-side code (cron jobs, API routes, etc.), import directly from raqbUtils.server.ts instead
|
|
* to avoid pulling in the client-only RAQB library.
|
|
*
|
|
* Server-side imports should use:
|
|
* import { acrossQueryValueCompatiblity, raqbQueryValueUtils } from "@calcom/app-store/_utils/raqb/raqbUtils.server";
|
|
*
|
|
* Client-side imports can use this file or import directly from raqbUtils.client.ts:
|
|
* import { buildStateFromQueryValue, buildEmptyQueryValue } from "@calcom/app-store/_utils/raqb/raqbUtils.client";
|
|
*/
|
|
|
|
// Re-export server-safe utilities
|
|
export {
|
|
raqbQueryValueUtils,
|
|
getValueOfAttributeOption,
|
|
getAttributesQueryBuilderConfigHavingListofLabels,
|
|
acrossQueryValueCompatiblity,
|
|
} from "./raqbUtils.server";
|
|
|
|
// Re-export client-only utilities (requires react-awesome-query-builder runtime)
|
|
export { buildEmptyQueryValue, buildStateFromQueryValue } from "./raqbUtils.client";
|