Skip to content

Commit 630192e

Browse files
committed
added back some exports
1 parent d5a9f76 commit 630192e

303 files changed

Lines changed: 1542 additions & 1276 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/sim/app/api/table/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface TableAccessDenied {
2222
reason?: string
2323
}
2424

25-
type TableAccessCheck = TableAccessResult | TableAccessDenied
25+
export type TableAccessCheck = TableAccessResult | TableAccessDenied
2626

2727
export type AccessResult = { ok: true; table: TableDefinition } | { ok: false; status: 404 | 403 }
2828

apps/sim/app/api/tools/onepassword/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const CONNECT_TO_SDK_FIELD_TYPE: Record<string, `${ItemFieldType}`> = {
197197
CREDIT_CARD_TYPE: 'CreditCardType',
198198
}
199199

200-
type ConnectionMode = 'service_account' | 'connect'
200+
export type ConnectionMode = 'service_account' | 'connect'
201201

202202
export interface CredentialParams {
203203
connectionMode?: ConnectionMode | null

apps/sim/app/api/v1/admin/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export type DbWorkflow = InferSelectModel<typeof workflow>
3030
export type DbWorkflowFolder = InferSelectModel<typeof workflowFolder>
3131
export type DbOrganization = InferSelectModel<typeof organization>
3232
export type DbSubscription = InferSelectModel<typeof subscription>
33-
type DbMember = InferSelectModel<typeof member>
34-
type DbUserStats = InferSelectModel<typeof userStats>
33+
export type DbMember = InferSelectModel<typeof member>
34+
export type DbUserStats = InferSelectModel<typeof userStats>
3535

3636
// =============================================================================
3737
// Pagination
@@ -219,7 +219,7 @@ export function toAdminWorkflow(dbWorkflow: DbWorkflow): AdminWorkflow {
219219
// Workflow Variable Types
220220
// =============================================================================
221221

222-
type VariableType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'plain'
222+
export type VariableType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'plain'
223223

224224
export interface WorkflowVariable {
225225
id: string

apps/sim/app/chat/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export const CHAT_ERROR_MESSAGES = {
1212

1313
export const CHAT_REQUEST_TIMEOUT_MS = 300000 // 5 minutes (same as in chat.tsx)
1414

15-
type ChatErrorType = keyof typeof CHAT_ERROR_MESSAGES
15+
export type ChatErrorType = keyof typeof CHAT_ERROR_MESSAGES

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/text-editor-state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type StreamingMode = 'append' | 'replace'
22

3-
type TextEditorContentPhase = 'uninitialized' | 'ready' | 'streaming' | 'reconciling'
3+
export type TextEditorContentPhase = 'uninitialized' | 'ready' | 'streaming' | 'reconciling'
44

55
export interface TextEditorContentState {
66
phase: TextEditorContentPhase
@@ -16,7 +16,7 @@ export interface SyncTextEditorContentStateOptions {
1616
streamingMode: StreamingMode
1717
}
1818

19-
type TextEditorContentAction =
19+
export type TextEditorContentAction =
2020
| ({ type: 'sync-external' } & SyncTextEditorContentStateOptions)
2121
| { type: 'edit'; content: string }
2222
| { type: 'save-success'; content: string }

apps/sim/app/workspace/[workspaceId]/utils/commands-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { GlobalCommand } from '@/app/workspace/[workspaceId]/providers/glob
66
* Components must use these identifiers (via {@link createCommand}) rather than
77
* ad-hoc ids or shortcuts to ensure a single source of truth.
88
*/
9-
type CommandId =
9+
export type CommandId =
1010
| 'accept-diff-changes'
1111
| 'add-agent'
1212
| 'add-workflow'

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type MentionFolderId =
1515
/**
1616
* Menu item category types for mention menu (includes folders + docs item)
1717
*/
18-
type MentionCategory = MentionFolderId | 'docs'
18+
export type MentionCategory = MentionFolderId | 'docs'
1919

2020
/**
2121
* Configuration interface for folder types

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/hooks/use-deploy-readiness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useShallow } from 'zustand/react/shallow'
33
import { useOperationQueueStore } from '@/stores/operation-queue/store'
44
import { useWorkflowDiffStore } from '@/stores/workflow-diff/store'
55

6-
type DeployReadinessStatus =
6+
export type DeployReadinessStatus =
77
| 'ready'
88
| 'missing-workflow'
99
| 'saving'

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/condition-input/condition-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function ConditionInput({
180180
const hasInitializedRef = useRef(false)
181181
const previousBlockIdRef = useRef<string>(blockId)
182182
const shouldPersistRef = useRef<boolean>(false)
183-
const syncTimeoutRef = useRef<ReturnType<typeof setTimeout>>()
183+
const syncTimeoutRef = useRef<ReturnType<typeof setTimeout> | undefined>(undefined)
184184

185185
/**
186186
* Creates default blocks with stable IDs.

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/modal-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export const MODAL_REGISTRY: Readonly<Record<string, ComponentType<ModalSubBlock
2626
'slack-setup-wizard': SlackSetupWizard,
2727
}
2828

29-
type ModalId = keyof typeof MODAL_REGISTRY
29+
export type ModalId = keyof typeof MODAL_REGISTRY

0 commit comments

Comments
 (0)