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

Function transformUser

apps/sim/tools/jira/utils.ts:76–95  ·  view source on GitHub ↗
(user: any)

Source from the content-addressed store, hash-verified

74 * Returns null if user data is falsy.
75 */
76export function transformUser(user: any): {
77 accountId: string
78 displayName: string
79 active: boolean | null
80 emailAddress: string | null
81 avatarUrl: string | null
82 accountType: string | null
83 timeZone: string | null
84} | null {
85 if (!user) return null
86 return {
87 accountId: user.accountId ?? '',
88 displayName: user.displayName ?? '',
89 active: user.active ?? null,
90 emailAddress: user.emailAddress ?? null,
91 avatarUrl: user.avatarUrls?.['48x48'] ?? null,
92 accountType: user.accountType ?? null,
93 timeZone: user.timeZone ?? null,
94 }
95}
96
97/**
98 * Downloads Jira attachment file content given attachment metadata and an access token.

Callers 10

transformCommentResponseFunction · 0.90
transformCommentFunction · 0.90
transformWorklogResponseFunction · 0.90
transformIssueDataFunction · 0.90
transformAttachmentFunction · 0.90
transformWorklogFunction · 0.90
search_users.tsFile · 0.90
transformWorklogResponseFunction · 0.90
transformSearchIssueFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected