MCPcopy Index your code
hub / github.com/simstudioai/sim / mapGeneralSettingsResponse

Function mapGeneralSettingsResponse

apps/sim/hooks/queries/general-settings.ts:46–60  ·  view source on GitHub ↗
(data: UserSettingsApi)

Source from the content-addressed store, hash-verified

44 * Shared by both client fetch and server prefetch to prevent shape drift.
45 */
46export function mapGeneralSettingsResponse(data: UserSettingsApi): GeneralSettings {
47 return {
48 autoConnect: data.autoConnect,
49 showTrainingControls: data.showTrainingControls,
50 superUserModeEnabled: data.superUserModeEnabled,
51 mothershipEnvironment: data.mothershipEnvironment,
52 theme: data.theme,
53 telemetryEnabled: data.telemetryEnabled,
54 billingUsageNotificationsEnabled: data.billingUsageNotificationsEnabled,
55 errorNotificationsEnabled: data.errorNotificationsEnabled,
56 snapToGridSize: data.snapToGridSize,
57 showActionBar: data.showActionBar,
58 timezone: data.timezone ?? null,
59 }
60}
61
62/**
63 * Fetch general settings from API

Callers 2

prefetchGeneralSettingsFunction · 0.90
fetchGeneralSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected