@burdenoff/microfe-crewfoundry 2026.719.1 → 2026.719.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -188,8 +188,8 @@ function M() {
188
188
  },
189
189
  {
190
190
  icon: a,
191
- label: "Composition",
192
- value: "Apollo Federation v2",
191
+ label: "Format",
192
+ value: "GraphQL API",
193
193
  color: "text-action-primary-bg"
194
194
  },
195
195
  {
@@ -256,7 +256,7 @@ function M() {
256
256
  })
257
257
  }), /* @__PURE__ */ f("p", {
258
258
  className: "text-xs text-text-secondary",
259
- children: "Requests are authenticated at the gateway edge. Send your session bearer token on every request; the gateway resolves the actor and enforces workspace-scoped RBAC before the subgraph runs."
259
+ children: "Requests are authenticated with your session bearer token. Send it on every request; each request is scoped to your workspace and enforced by role-based access control."
260
260
  })]
261
261
  })] })]
262
262
  }), /* @__PURE__ */ p("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"HelpApiDocumentationPagePage.js","names":[],"sources":["../../../src/crewfoundry/pages/HelpApiDocumentationPagePage.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport {\n Badge,\n Button,\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n EmphasisPanel,\n GradientText,\n IllustratedEmptyState,\n Input,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { useGlobalUi } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Check,\n ChevronRight,\n Code2,\n Copy,\n Database,\n ListTree,\n Lock,\n Network,\n Search,\n} from 'lucide-react';\nimport { useCrewFoundryStore } from '../store/crewfoundryStore';\n\n// The CrewFoundry API is served by wspace-crewfoundry-svc as an Apollo\n// Federation v2 subgraph, reached through the workspaces public GraphQL\n// gateway. There is no separate REST surface — this reference is derived\n// directly from the published subgraph schema.\nconst ENDPOINT = 'https://graphqlworkspaces.burdenoff.com/workspaces/graphql';\n\n// The 13 CrewFoundry-owned domain entities exposed by the subgraph, each with\n// create / update / remove mutations. Marketplace, billing/invoices,\n// notifications, and learning are intentionally served by shared owners.\nconst ENTITIES: { name: string; domain: string }[] = [\n { name: 'Announcement', domain: 'Communications' },\n { name: 'Candidate', domain: 'Hiring' },\n { name: 'Client', domain: 'Finance' },\n { name: 'Department', domain: 'HR' },\n { name: 'Employee', domain: 'HR' },\n { name: 'Interview', domain: 'Hiring' },\n { name: 'JobPosting', domain: 'Hiring' },\n { name: 'LeaveRequest', domain: 'HR' },\n { name: 'PayrollRecord', domain: 'Finance' },\n { name: 'Project', domain: 'Projects' },\n { name: 'Team', domain: 'Teams' },\n { name: 'TimeEntry', domain: 'HR' },\n { name: 'Vendor', domain: 'Finance' },\n];\n\ntype OperationKind = 'Query' | 'Mutation';\n\ntype ApiOperation = {\n kind: OperationKind;\n name: string;\n signature: string;\n description: string;\n};\n\ntype ApiGroup = {\n id: string;\n name: string;\n description: string;\n operations: ApiOperation[];\n};\n\nconst kindColors: Record<OperationKind, string> = {\n Query: 'bg-status-success-bg text-status-success-text',\n Mutation: 'bg-status-info-bg text-status-info-text',\n};\n\nconst humanize = (value: string): string => value.replace(/([a-z])([A-Z])/g, '$1 $2').toLowerCase();\n\nconst copyToClipboard = async (text: string): Promise<boolean> => {\n try {\n if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {\n await navigator.clipboard.writeText(text);\n return true;\n }\n } catch {\n // Fall through to the legacy path for insecure / restricted contexts.\n }\n try {\n if (typeof document === 'undefined') {\n return false;\n }\n const textarea = document.createElement('textarea');\n textarea.value = text;\n textarea.style.position = 'fixed';\n textarea.style.opacity = '0';\n document.body.appendChild(textarea);\n textarea.focus();\n textarea.select();\n const succeeded = document.execCommand('copy');\n document.body.removeChild(textarea);\n return succeeded;\n } catch {\n return false;\n }\n};\n\nexport function HelpApiDocumentationPagePage() {\n const { employees, jobPostings, candidates, payrollRecords, leaveRequests } =\n useCrewFoundryStore();\n const { showToast } = useGlobalUi();\n const [search, setSearch] = useState('');\n const [copied, setCopied] = useState<string | null>(null);\n\n const groups = useMemo<ApiGroup[]>(() => {\n const createOps: ApiOperation[] = ENTITIES.map((entity) => ({\n kind: 'Mutation',\n name: `createCrew${entity.name}`,\n signature: `createCrew${entity.name}(input: CreateCrew${entity.name}Input!): Crew${entity.name}!`,\n description: `Create a ${humanize(entity.name)} record (${entity.domain}).`,\n }));\n const updateOps: ApiOperation[] = ENTITIES.map((entity) => ({\n kind: 'Mutation',\n name: `updateCrew${entity.name}`,\n signature: `updateCrew${entity.name}(id: ID!, input: UpdateCrew${entity.name}Input!): Crew${entity.name}!`,\n description: `Update an existing ${humanize(entity.name)} record (${entity.domain}).`,\n }));\n const removeOps: ApiOperation[] = ENTITIES.map((entity) => ({\n kind: 'Mutation',\n name: `removeCrew${entity.name}`,\n signature: `removeCrew${entity.name}(id: ID!): Boolean!`,\n description: `Delete a ${humanize(entity.name)} record (${entity.domain}).`,\n }));\n\n return [\n {\n id: 'queries',\n name: 'Queries',\n description: 'Read the workspace dataset',\n operations: [\n {\n kind: 'Query',\n name: 'crewfoundryBootstrap',\n signature: 'crewfoundryBootstrap: CrewfoundryBootstrap!',\n description: `Load the full workspace dataset in one call — ${employees.length} employees, ${jobPostings.length} job postings, ${candidates.length} candidates, ${payrollRecords.length} payroll records, ${leaveRequests.length} leave requests, and every other CrewFoundry collection.`,\n },\n ],\n },\n {\n id: 'create',\n name: 'Create mutations',\n description: 'Add new records',\n operations: createOps,\n },\n {\n id: 'update',\n name: 'Update mutations',\n description: 'Modify existing records',\n operations: updateOps,\n },\n {\n id: 'delete',\n name: 'Delete mutations',\n description: 'Remove records',\n operations: removeOps,\n },\n ];\n }, [\n candidates.length,\n employees.length,\n jobPostings.length,\n leaveRequests.length,\n payrollRecords.length,\n ]);\n\n const totalOperations = useMemo(\n () => groups.reduce((sum, group) => sum + group.operations.length, 0),\n [groups]\n );\n\n const filteredGroups = useMemo(() => {\n const term = search.trim().toLowerCase();\n if (!term) {\n return groups;\n }\n return groups\n .map((group) => ({\n ...group,\n operations: group.operations.filter(\n (op) =>\n op.name.toLowerCase().includes(term) ||\n op.signature.toLowerCase().includes(term) ||\n op.description.toLowerCase().includes(term)\n ),\n }))\n .filter((group) => group.operations.length > 0);\n }, [groups, search]);\n\n const handleCopy = async (value: string) => {\n const ok = await copyToClipboard(value);\n if (ok) {\n setCopied(value);\n showToast('Copied to clipboard', 'success');\n window.setTimeout(() => setCopied((current) => (current === value ? null : current)), 1500);\n } else {\n showToast('Unable to copy to clipboard', 'error');\n }\n };\n\n const scrollToGroup = (id: string) => {\n const target = typeof document !== 'undefined' ? document.getElementById(`group-${id}`) : null;\n target?.scrollIntoView({ behavior: 'smooth', block: 'start' });\n };\n\n const statTiles = [\n { icon: Network, label: 'Protocol', value: 'GraphQL', color: 'text-status-info-text' },\n {\n icon: Code2,\n label: 'Composition',\n value: 'Apollo Federation v2',\n color: 'text-action-primary-bg',\n },\n { icon: Lock, label: 'Auth', value: 'Bearer token', color: 'text-status-success-text' },\n {\n icon: ListTree,\n label: 'Operations',\n value: String(totalOperations),\n color: 'text-status-warning-text',\n },\n ];\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex flex-col gap-3 md:flex-row md:items-start md:justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n <GradientText>API Documentation</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary\">\n CrewFoundry GraphQL API reference for integrations\n </p>\n <PagePurpose className=\"mt-1\">\n Browse the CrewFoundry API reference — use it to find operations, understand request\n formats, and integrate CrewFoundry with your own tools.\n </PagePurpose>\n </div>\n <div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"secondary\" className=\"max-w-full truncate font-mono text-[10px]\">\n {ENDPOINT}\n </Badge>\n <Button\n size=\"sm\"\n variant=\"outline\"\n aria-label=\"Copy the GraphQL endpoint URL\"\n onClick={() => void handleCopy(ENDPOINT)}\n >\n {copied === ENDPOINT ? (\n <Check className=\"mr-1 h-3 w-3 text-status-success-text\" />\n ) : (\n <Copy className=\"mr-1 h-3 w-3\" />\n )}\n Copy endpoint\n </Button>\n </div>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-4\">\n {statTiles.map((item) => (\n <Card key={item.label}>\n <CardContent className=\"flex items-center gap-3 pt-6\">\n <item.icon className={`h-5 w-5 ${item.color}`} />\n <div className=\"min-w-0\">\n <p className=\"text-xs text-text-secondary\">{item.label}</p>\n <p className=\"truncate text-sm font-medium\">{item.value}</p>\n </div>\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div className=\"grid gap-6 lg:grid-cols-4\">\n <div className=\"space-y-4\">\n <EmphasisPanel>\n <div className=\"mb-2 text-sm font-semibold\">Jump to</div>\n <div className=\"space-y-2\">\n {groups.map((group) => (\n <button\n key={group.id}\n type=\"button\"\n aria-label={`Jump to ${group.name}`}\n onClick={() => scrollToGroup(group.id)}\n className=\"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-bg-sunken\"\n >\n <ListTree className=\"h-3 w-3 text-text-secondary\" />\n <span>{group.name}</span>\n <Badge variant=\"outline\" className=\"ml-auto text-[10px]\">\n {group.operations.length}\n </Badge>\n <ChevronRight className=\"h-3 w-3 text-text-secondary\" />\n </button>\n ))}\n </div>\n </EmphasisPanel>\n\n <Card>\n <CardHeader>\n <CardTitle className=\"text-sm\">Authentication</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n <div className=\"rounded-md bg-bg-sunken p-3\">\n <code className=\"font-mono text-xs\">Authorization: Bearer {'<token>'}</code>\n </div>\n <p className=\"text-xs text-text-secondary\">\n Requests are authenticated at the gateway edge. Send your session bearer token on\n every request; the gateway resolves the actor and enforces workspace-scoped RBAC\n before the subgraph runs.\n </p>\n </CardContent>\n </Card>\n </div>\n\n <div className=\"space-y-4 lg:col-span-3\">\n <div className=\"relative max-w-md\">\n <Search className=\"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-text-secondary\" />\n <Input\n placeholder=\"Search operations...\"\n className=\"pl-9\"\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n />\n </div>\n\n {filteredGroups.map((group) => (\n <Card key={group.id} id={`group-${group.id}`} className=\"scroll-mt-6\">\n <CardHeader>\n <div className=\"flex items-center gap-2\">\n <Database className=\"h-4 w-4 text-text-secondary\" />\n <CardTitle className=\"text-base\">{group.name}</CardTitle>\n </div>\n <CardDescription>\n {group.description} · {group.operations.length} operations\n </CardDescription>\n </CardHeader>\n <CardContent className=\"p-0\">\n {group.operations.map((op, index) => (\n <div\n key={op.name}\n className={`flex items-center gap-3 px-6 py-3 hover:bg-bg-sunken/50 ${index < group.operations.length - 1 ? 'border-b' : ''}`}\n >\n <Badge\n className={`${kindColors[op.kind]} min-w-[64px] justify-center border-0 font-mono text-[10px]`}\n >\n {op.kind}\n </Badge>\n <div className=\"min-w-0 flex-1\">\n <code className=\"block truncate font-mono text-sm\">{op.signature}</code>\n <span className=\"text-xs text-text-secondary\">{op.description}</span>\n </div>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-6 w-6 shrink-0 p-0\"\n aria-label={`Copy ${op.name} operation name`}\n onClick={() => void handleCopy(op.name)}\n >\n {copied === op.name ? (\n <Check className=\"h-3 w-3 text-status-success-text\" />\n ) : (\n <Copy className=\"h-3 w-3 text-text-secondary\" />\n )}\n </Button>\n </div>\n ))}\n </CardContent>\n </Card>\n ))}\n\n {filteredGroups.length === 0 && (\n <div className=\"py-6\">\n <IllustratedEmptyState\n illustration=\"empty-search\"\n title=\"No operations match\"\n description=\"Try a different search term to find the operation you need.\"\n />\n </div>\n )}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;AAiCA,IAAM,IAAW,8DAKX,IAA+C;CACnD;EAAE,MAAM;EAAgB,QAAQ;EAAkB;CAClD;EAAE,MAAM;EAAa,QAAQ;EAAU;CACvC;EAAE,MAAM;EAAU,QAAQ;EAAW;CACrC;EAAE,MAAM;EAAc,QAAQ;EAAM;CACpC;EAAE,MAAM;EAAY,QAAQ;EAAM;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AAY,QAAQ,EAAG,KAAK;WAC5B,eAAe,KAAK,EAAW,EAAG,KAAK;qBAEtC,MAAW,EAAG,OACb,kBAAC,GAAD,EAAO,WAAU,oCAAqC,CAAA,GAEtD,kBAAC,GAAD,EAAM,WAAU,+BAAgC,CAAA;WAE3C,CAAA;UACL;WAzBC,EAAG,KAyBJ,CACN;QACU,CAAA,CACT;SAzCI,EAAM,GAyCV,CACP;MAED,EAAe,WAAW,KACzB,kBAAC,OAAD;OAAK,WAAU;iBACb,kBAAC,GAAD;QACE,cAAa;QACb,OAAM;QACN,aAAY;QACZ,CAAA;OACE,CAAA;MAEJ;OACF;;GACF"}
1
+ {"version":3,"file":"HelpApiDocumentationPagePage.js","names":[],"sources":["../../../src/crewfoundry/pages/HelpApiDocumentationPagePage.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport {\n Badge,\n Button,\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n EmphasisPanel,\n GradientText,\n IllustratedEmptyState,\n Input,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { useGlobalUi } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Check,\n ChevronRight,\n Code2,\n Copy,\n Database,\n ListTree,\n Lock,\n Network,\n Search,\n} from 'lucide-react';\nimport { useCrewFoundryStore } from '../store/crewfoundryStore';\n\n// The CrewFoundry API is served by wspace-crewfoundry-svc as an Apollo\n// Federation v2 subgraph, reached through the workspaces public GraphQL\n// gateway. There is no separate REST surface — this reference is derived\n// directly from the published subgraph schema.\nconst ENDPOINT = 'https://graphqlworkspaces.burdenoff.com/workspaces/graphql';\n\n// The 13 CrewFoundry-owned domain entities exposed by the subgraph, each with\n// create / update / remove mutations. Marketplace, billing/invoices,\n// notifications, and learning are intentionally served by shared owners.\nconst ENTITIES: { name: string; domain: string }[] = [\n { name: 'Announcement', domain: 'Communications' },\n { name: 'Candidate', domain: 'Hiring' },\n { name: 'Client', domain: 'Finance' },\n { name: 'Department', domain: 'HR' },\n { name: 'Employee', domain: 'HR' },\n { name: 'Interview', domain: 'Hiring' },\n { name: 'JobPosting', domain: 'Hiring' },\n { name: 'LeaveRequest', domain: 'HR' },\n { name: 'PayrollRecord', domain: 'Finance' },\n { name: 'Project', domain: 'Projects' },\n { name: 'Team', domain: 'Teams' },\n { name: 'TimeEntry', domain: 'HR' },\n { name: 'Vendor', domain: 'Finance' },\n];\n\ntype OperationKind = 'Query' | 'Mutation';\n\ntype ApiOperation = {\n kind: OperationKind;\n name: string;\n signature: string;\n description: string;\n};\n\ntype ApiGroup = {\n id: string;\n name: string;\n description: string;\n operations: ApiOperation[];\n};\n\nconst kindColors: Record<OperationKind, string> = {\n Query: 'bg-status-success-bg text-status-success-text',\n Mutation: 'bg-status-info-bg text-status-info-text',\n};\n\nconst humanize = (value: string): string => value.replace(/([a-z])([A-Z])/g, '$1 $2').toLowerCase();\n\nconst copyToClipboard = async (text: string): Promise<boolean> => {\n try {\n if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {\n await navigator.clipboard.writeText(text);\n return true;\n }\n } catch {\n // Fall through to the legacy path for insecure / restricted contexts.\n }\n try {\n if (typeof document === 'undefined') {\n return false;\n }\n const textarea = document.createElement('textarea');\n textarea.value = text;\n textarea.style.position = 'fixed';\n textarea.style.opacity = '0';\n document.body.appendChild(textarea);\n textarea.focus();\n textarea.select();\n const succeeded = document.execCommand('copy');\n document.body.removeChild(textarea);\n return succeeded;\n } catch {\n return false;\n }\n};\n\nexport function HelpApiDocumentationPagePage() {\n const { employees, jobPostings, candidates, payrollRecords, leaveRequests } =\n useCrewFoundryStore();\n const { showToast } = useGlobalUi();\n const [search, setSearch] = useState('');\n const [copied, setCopied] = useState<string | null>(null);\n\n const groups = useMemo<ApiGroup[]>(() => {\n const createOps: ApiOperation[] = ENTITIES.map((entity) => ({\n kind: 'Mutation',\n name: `createCrew${entity.name}`,\n signature: `createCrew${entity.name}(input: CreateCrew${entity.name}Input!): Crew${entity.name}!`,\n description: `Create a ${humanize(entity.name)} record (${entity.domain}).`,\n }));\n const updateOps: ApiOperation[] = ENTITIES.map((entity) => ({\n kind: 'Mutation',\n name: `updateCrew${entity.name}`,\n signature: `updateCrew${entity.name}(id: ID!, input: UpdateCrew${entity.name}Input!): Crew${entity.name}!`,\n description: `Update an existing ${humanize(entity.name)} record (${entity.domain}).`,\n }));\n const removeOps: ApiOperation[] = ENTITIES.map((entity) => ({\n kind: 'Mutation',\n name: `removeCrew${entity.name}`,\n signature: `removeCrew${entity.name}(id: ID!): Boolean!`,\n description: `Delete a ${humanize(entity.name)} record (${entity.domain}).`,\n }));\n\n return [\n {\n id: 'queries',\n name: 'Queries',\n description: 'Read the workspace dataset',\n operations: [\n {\n kind: 'Query',\n name: 'crewfoundryBootstrap',\n signature: 'crewfoundryBootstrap: CrewfoundryBootstrap!',\n description: `Load the full workspace dataset in one call — ${employees.length} employees, ${jobPostings.length} job postings, ${candidates.length} candidates, ${payrollRecords.length} payroll records, ${leaveRequests.length} leave requests, and every other CrewFoundry collection.`,\n },\n ],\n },\n {\n id: 'create',\n name: 'Create mutations',\n description: 'Add new records',\n operations: createOps,\n },\n {\n id: 'update',\n name: 'Update mutations',\n description: 'Modify existing records',\n operations: updateOps,\n },\n {\n id: 'delete',\n name: 'Delete mutations',\n description: 'Remove records',\n operations: removeOps,\n },\n ];\n }, [\n candidates.length,\n employees.length,\n jobPostings.length,\n leaveRequests.length,\n payrollRecords.length,\n ]);\n\n const totalOperations = useMemo(\n () => groups.reduce((sum, group) => sum + group.operations.length, 0),\n [groups]\n );\n\n const filteredGroups = useMemo(() => {\n const term = search.trim().toLowerCase();\n if (!term) {\n return groups;\n }\n return groups\n .map((group) => ({\n ...group,\n operations: group.operations.filter(\n (op) =>\n op.name.toLowerCase().includes(term) ||\n op.signature.toLowerCase().includes(term) ||\n op.description.toLowerCase().includes(term)\n ),\n }))\n .filter((group) => group.operations.length > 0);\n }, [groups, search]);\n\n const handleCopy = async (value: string) => {\n const ok = await copyToClipboard(value);\n if (ok) {\n setCopied(value);\n showToast('Copied to clipboard', 'success');\n window.setTimeout(() => setCopied((current) => (current === value ? null : current)), 1500);\n } else {\n showToast('Unable to copy to clipboard', 'error');\n }\n };\n\n const scrollToGroup = (id: string) => {\n const target = typeof document !== 'undefined' ? document.getElementById(`group-${id}`) : null;\n target?.scrollIntoView({ behavior: 'smooth', block: 'start' });\n };\n\n const statTiles = [\n { icon: Network, label: 'Protocol', value: 'GraphQL', color: 'text-status-info-text' },\n {\n icon: Code2,\n label: 'Format',\n value: 'GraphQL API',\n color: 'text-action-primary-bg',\n },\n { icon: Lock, label: 'Auth', value: 'Bearer token', color: 'text-status-success-text' },\n {\n icon: ListTree,\n label: 'Operations',\n value: String(totalOperations),\n color: 'text-status-warning-text',\n },\n ];\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex flex-col gap-3 md:flex-row md:items-start md:justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n <GradientText>API Documentation</GradientText>\n </h1>\n <p className=\"text-sm text-text-secondary\">\n CrewFoundry GraphQL API reference for integrations\n </p>\n <PagePurpose className=\"mt-1\">\n Browse the CrewFoundry API reference — use it to find operations, understand request\n formats, and integrate CrewFoundry with your own tools.\n </PagePurpose>\n </div>\n <div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"secondary\" className=\"max-w-full truncate font-mono text-[10px]\">\n {ENDPOINT}\n </Badge>\n <Button\n size=\"sm\"\n variant=\"outline\"\n aria-label=\"Copy the GraphQL endpoint URL\"\n onClick={() => void handleCopy(ENDPOINT)}\n >\n {copied === ENDPOINT ? (\n <Check className=\"mr-1 h-3 w-3 text-status-success-text\" />\n ) : (\n <Copy className=\"mr-1 h-3 w-3\" />\n )}\n Copy endpoint\n </Button>\n </div>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-4\">\n {statTiles.map((item) => (\n <Card key={item.label}>\n <CardContent className=\"flex items-center gap-3 pt-6\">\n <item.icon className={`h-5 w-5 ${item.color}`} />\n <div className=\"min-w-0\">\n <p className=\"text-xs text-text-secondary\">{item.label}</p>\n <p className=\"truncate text-sm font-medium\">{item.value}</p>\n </div>\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div className=\"grid gap-6 lg:grid-cols-4\">\n <div className=\"space-y-4\">\n <EmphasisPanel>\n <div className=\"mb-2 text-sm font-semibold\">Jump to</div>\n <div className=\"space-y-2\">\n {groups.map((group) => (\n <button\n key={group.id}\n type=\"button\"\n aria-label={`Jump to ${group.name}`}\n onClick={() => scrollToGroup(group.id)}\n className=\"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-bg-sunken\"\n >\n <ListTree className=\"h-3 w-3 text-text-secondary\" />\n <span>{group.name}</span>\n <Badge variant=\"outline\" className=\"ml-auto text-[10px]\">\n {group.operations.length}\n </Badge>\n <ChevronRight className=\"h-3 w-3 text-text-secondary\" />\n </button>\n ))}\n </div>\n </EmphasisPanel>\n\n <Card>\n <CardHeader>\n <CardTitle className=\"text-sm\">Authentication</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n <div className=\"rounded-md bg-bg-sunken p-3\">\n <code className=\"font-mono text-xs\">Authorization: Bearer {'<token>'}</code>\n </div>\n <p className=\"text-xs text-text-secondary\">\n Requests are authenticated with your session bearer token. Send it on every\n request; each request is scoped to your workspace and enforced by role-based\n access control.\n </p>\n </CardContent>\n </Card>\n </div>\n\n <div className=\"space-y-4 lg:col-span-3\">\n <div className=\"relative max-w-md\">\n <Search className=\"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-text-secondary\" />\n <Input\n placeholder=\"Search operations...\"\n className=\"pl-9\"\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n />\n </div>\n\n {filteredGroups.map((group) => (\n <Card key={group.id} id={`group-${group.id}`} className=\"scroll-mt-6\">\n <CardHeader>\n <div className=\"flex items-center gap-2\">\n <Database className=\"h-4 w-4 text-text-secondary\" />\n <CardTitle className=\"text-base\">{group.name}</CardTitle>\n </div>\n <CardDescription>\n {group.description} · {group.operations.length} operations\n </CardDescription>\n </CardHeader>\n <CardContent className=\"p-0\">\n {group.operations.map((op, index) => (\n <div\n key={op.name}\n className={`flex items-center gap-3 px-6 py-3 hover:bg-bg-sunken/50 ${index < group.operations.length - 1 ? 'border-b' : ''}`}\n >\n <Badge\n className={`${kindColors[op.kind]} min-w-[64px] justify-center border-0 font-mono text-[10px]`}\n >\n {op.kind}\n </Badge>\n <div className=\"min-w-0 flex-1\">\n <code className=\"block truncate font-mono text-sm\">{op.signature}</code>\n <span className=\"text-xs text-text-secondary\">{op.description}</span>\n </div>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-6 w-6 shrink-0 p-0\"\n aria-label={`Copy ${op.name} operation name`}\n onClick={() => void handleCopy(op.name)}\n >\n {copied === op.name ? (\n <Check className=\"h-3 w-3 text-status-success-text\" />\n ) : (\n <Copy className=\"h-3 w-3 text-text-secondary\" />\n )}\n </Button>\n </div>\n ))}\n </CardContent>\n </Card>\n ))}\n\n {filteredGroups.length === 0 && (\n <div className=\"py-6\">\n <IllustratedEmptyState\n illustration=\"empty-search\"\n title=\"No operations match\"\n description=\"Try a different search term to find the operation you need.\"\n />\n </div>\n )}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;AAiCA,IAAM,IAAW,8DAKX,IAA+C;CACnD;EAAE,MAAM;EAAgB,QAAQ;EAAkB;CAClD;EAAE,MAAM;EAAa,QAAQ;EAAU;CACvC;EAAE,MAAM;EAAU,QAAQ;EAAW;CACrC;EAAE,MAAM;EAAc,QAAQ;EAAM;CACpC;EAAE,MAAM;EAAY,QAAQ;EAAM;CAClC;EAAE,MAAM;EAAa,QAAQ;EAAU;CACvC;EAAE,MAAM;EAAc,QAAQ;EAAU;CACxC;EAAE,MAAM;EAAgB,QAAQ;EAAM;CACtC;EAAE,MAAM;EAAiB,QAAQ;EAAW;CAC5C;EAAE,MAAM;EAAW,QAAQ;EAAY;CACvC;EAAE,MAA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CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { create as e } from "zustand";
2
2
  import { graphqlFetch as t } from "@burdenoff/fe-libs/shared/graphql";
3
3
  //#region src/crewfoundry/store/crewfoundryStore.ts
4
- var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n", r = "\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n", i = "\n query CrewfoundryOverlapBilling {\n getBillingAccountsByOrg {\n id\n name\n isDefault\n paymentMethods {\n id\n type\n brand\n last4\n isDefault\n expiryMonth\n expiryYear\n }\n }\n }\n", a = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", o = "mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", c = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", l = "mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", d = "mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", p = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", m = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", g = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", _ = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", v = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", y = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", b = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", S = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", C = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", w = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", ee = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", te = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", ne = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", re = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ie = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ae = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", oe = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", se = "mutation UpdateCrewProject($id: ID!, $input: UpdateCrewProjectInput!) { updateCrewProject(id: $id, input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", ce = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", le = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", ue = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", de = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", fe = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", T = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", E = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", D = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", O = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", k = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", A = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", j = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", M = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", N = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", P = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", F = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", I = "query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", L = "mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", R = "mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", z = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", B = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", V = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", pe = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", me = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", H = (e) => e.toUpperCase().replaceAll("-", "_"), U = (e, t) => /* @__PURE__ */ Error(`${e} is served by ${t}; CrewFoundry no longer owns this backend surface.`), W = {
4
+ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n", r = "\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n", i = "\n query CrewfoundryOverlapBilling {\n getBillingAccountsByOrg {\n id\n name\n isDefault\n paymentMethods {\n id\n type\n brand\n last4\n isDefault\n expiryMonth\n expiryYear\n }\n }\n }\n", a = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", o = "mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", c = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", l = "mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", d = "mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", p = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", m = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", g = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", _ = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", v = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", y = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", b = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", S = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", C = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", w = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", ee = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", te = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", ne = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", re = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ie = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ae = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", oe = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", se = "mutation UpdateCrewProject($id: ID!, $input: UpdateCrewProjectInput!) { updateCrewProject(id: $id, input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", ce = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", le = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", ue = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", de = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", fe = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", T = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", E = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", D = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", O = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", k = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", A = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", j = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", M = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", N = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", P = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", F = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", I = "query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", L = "mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", R = "mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", z = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", B = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", V = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", pe = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", me = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", H = (e) => e.toUpperCase().replaceAll("-", "_"), U = (e) => /* @__PURE__ */ Error(`${e} isn't available in CrewFoundry.`), W = {
5
5
  employee: ["status", "type"],
6
6
  department: ["status"],
7
7
  jobPosting: [
@@ -434,13 +434,13 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
434
434
  await Z(x, { id: t }, n, "Unable to remove interview"), e((e) => ({ interviews: e.interviews.filter((e) => e.id !== t) }));
435
435
  },
436
436
  addInvoice: async () => {
437
- throw U("Invoices", "global-billing-svc");
437
+ throw U("Invoices");
438
438
  },
439
439
  updateInvoice: async () => {
440
- throw U("Invoices", "global-billing-svc");
440
+ throw U("Invoices");
441
441
  },
442
442
  removeInvoice: async () => {
443
- throw U("Invoices", "global-billing-svc");
443
+ throw U("Invoices");
444
444
  },
445
445
  addVendor: async (t) => {
446
446
  let n = $.getState().initParams, r = await Z(S, { input: {
@@ -523,13 +523,13 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
523
523
  await Z(ce, { id: t }, n, "Unable to remove project"), e((e) => ({ projects: e.projects.filter((e) => e.id !== t) }));
524
524
  },
525
525
  addMarketplaceService: async () => {
526
- throw U("Marketplace services", "global-store-svc");
526
+ throw U("Marketplace services");
527
527
  },
528
528
  updateMarketplaceService: async () => {
529
- throw U("Marketplace services", "global-store-svc");
529
+ throw U("Marketplace services");
530
530
  },
531
531
  removeMarketplaceService: async () => {
532
- throw U("Marketplace services", "global-store-svc");
532
+ throw U("Marketplace services");
533
533
  },
534
534
  addDepartment: async (t) => {
535
535
  let n = $.getState().initParams, r = await Z(le, { input: t }, n, "Unable to create department");
@@ -547,25 +547,25 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
547
547
  await Z(de, { id: t }, n, "Unable to remove department"), e((e) => ({ departments: e.departments.filter((e) => e.id !== t) }));
548
548
  },
549
549
  addCourse: async () => {
550
- throw U("Courses", "wspace-learning-svc");
550
+ throw U("Courses");
551
551
  },
552
552
  updateCourse: async () => {
553
- throw U("Courses", "wspace-learning-svc");
553
+ throw U("Courses");
554
554
  },
555
555
  removeCourse: async () => {
556
- throw U("Courses", "wspace-learning-svc");
556
+ throw U("Courses");
557
557
  },
558
558
  enrollCourse: async () => {
559
- throw U("Course enrollment", "wspace-learning-svc");
559
+ throw U("Course enrollment");
560
560
  },
561
561
  addLearningPath: async () => {
562
- throw U("Learning paths", "wspace-learning-svc");
562
+ throw U("Learning paths");
563
563
  },
564
564
  updateLearningPath: async () => {
565
- throw U("Learning paths", "wspace-learning-svc");
565
+ throw U("Learning paths");
566
566
  },
567
567
  removeLearningPath: async () => {
568
- throw U("Learning paths", "wspace-learning-svc");
568
+ throw U("Learning paths");
569
569
  },
570
570
  addPayrollRecord: async (t) => {
571
571
  let n = $.getState().initParams, r = await Z(fe, { input: {
@@ -1 +1 @@
1
- {"version":3,"file":"crewfoundryStore.js","names":[],"sources":["../../../src/crewfoundry/store/crewfoundryStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type { OverviewMetric, WorkItem } from '../types';\n\n// ── Domain Types ────────────────────────────────────────────────\nexport interface Employee {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n department: string;\n position: string;\n status: 'active' | 'inactive' | 'on_leave' | 'terminated';\n type: 'full_time' | 'part_time' | 'contract' | 'intern';\n salary: number;\n startDate: string;\n avatar?: string;\n location: string;\n managerId?: string;\n phone: string;\n performanceScore: number;\n /** Real per-employee skill tags (backend default `[]`). */\n skills: string[];\n /** Exit date for terminated employees; ISO string or null while employed. */\n terminationDate?: string | null;\n}\n\nexport interface Department {\n id: string;\n name: string;\n headId: string;\n headName: string;\n employeeCount: number;\n budget: number;\n location: string;\n status: 'active' | 'restructuring';\n}\n\nexport interface JobPosting {\n id: string;\n title: string;\n department: string;\n location: string;\n type: 'full_time' | 'part_time' | 'contract' | 'remote';\n experienceLevel: 'entry' | 'mid' | 'senior' | 'lead' | 'executive';\n salaryMin: number;\n salaryMax: number;\n status: 'draft' | 'active' | 'paused' | 'closed' | 'filled';\n applicants: number;\n postedDate: string;\n deadline: string;\n description: string;\n requirements: string[];\n benefits: string[];\n}\n\nexport interface Candidate {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n position: string;\n status: 'new' | 'screening' | 'interview' | 'assessment' | 'offer' | 'hired' | 'rejected';\n appliedDate: string;\n resumeUrl?: string;\n rating: number;\n source: string;\n experience: number;\n skills: string[];\n currentCompany: string;\n notes: string;\n /** Date the candidate was hired; ISO string or null until hired. */\n hiredDate?: string | null;\n}\n\nexport interface Interview {\n id: string;\n candidateId: string;\n candidateName: string;\n position: string;\n interviewerName: string;\n date: string;\n time: string;\n type: 'phone' | 'video' | 'onsite' | 'panel' | 'technical';\n status: 'scheduled' | 'completed' | 'cancelled' | 'no_show';\n feedback?: string;\n rating?: number;\n}\n\nexport interface LearningCourse {\n id: string;\n title: string;\n category: string;\n instructor: string;\n duration: string;\n level: 'beginner' | 'intermediate' | 'advanced';\n enrolled: number;\n completed: number;\n rating: number;\n status: 'active' | 'draft' | 'archived';\n thumbnail?: string;\n description: string;\n modules: number;\n skills: string[];\n}\n\nexport interface LearningPath {\n id: string;\n title: string;\n description: string;\n courses: string[];\n duration: string;\n level: string;\n enrolled: number;\n completionRate: number;\n}\n\nexport interface MarketplaceService {\n id: string;\n title: string;\n provider: string;\n category: string;\n price: number;\n priceType: 'hourly' | 'fixed' | 'monthly';\n rating: number;\n reviews: number;\n description: string;\n deliveryTime: string;\n status: 'active' | 'paused' | 'pending';\n skills: string[];\n}\n\nexport interface Announcement {\n id: string;\n title: string;\n content: string;\n author: string;\n authorRole: string;\n category: 'general' | 'hr' | 'it' | 'emergency' | 'event';\n priority: 'low' | 'medium' | 'high' | 'urgent';\n isPinned: boolean;\n createdAt: string;\n viewCount: number;\n tags: string[];\n}\n\nexport interface Team {\n id: string;\n name: string;\n description: string;\n leadId: string;\n leadName: string;\n members: string[];\n memberCount: number;\n department: string;\n status: 'active' | 'forming' | 'disbanded';\n projectCount: number;\n createdAt: string;\n}\n\nexport interface Project {\n id: string;\n name: string;\n description: string;\n status: 'planning' | 'active' | 'on_hold' | 'completed' | 'cancelled';\n priority: 'low' | 'medium' | 'high' | 'critical';\n startDate: string;\n endDate: string;\n progress: number;\n budget: number;\n spent: number;\n teamId: string;\n teamName: string;\n managerId: string;\n managerName: string;\n tasks: number;\n completedTasks: number;\n}\n\nexport interface PayrollRecord {\n id: string;\n employeeId: string;\n employeeName: string;\n department: string;\n period: string;\n grossPay: number;\n deductions: number;\n netPay: number;\n status: 'draft' | 'processing' | 'approved' | 'paid' | 'failed';\n payDate: string;\n paymentMethod: string;\n}\n\nexport interface LeaveRequest {\n id: string;\n employeeId: string;\n employeeName: string;\n department: string;\n type: 'annual' | 'sick' | 'personal' | 'maternity' | 'paternity' | 'unpaid';\n startDate: string;\n endDate: string;\n days: number;\n status: 'pending' | 'approved' | 'rejected' | 'cancelled';\n reason: string;\n approverName?: string;\n}\n\nexport interface TimeEntry {\n id: string;\n employeeId: string;\n employeeName: string;\n date: string;\n clockIn: string;\n clockOut: string;\n totalHours: number;\n overtime: number;\n project: string;\n status: 'pending' | 'approved' | 'rejected';\n /** Whether the logged time is billable to a client (backend default `true`). */\n billable: boolean;\n}\n\nexport interface Notification {\n id: string;\n title: string;\n message: string;\n type: 'info' | 'success' | 'warning' | 'error';\n category: string;\n read: boolean;\n createdAt: string;\n actionUrl?: string;\n}\n\nexport interface Invoice {\n id: string;\n number: string;\n clientName: string;\n amount: number;\n status: 'draft' | 'sent' | 'paid' | 'overdue' | 'cancelled';\n issueDate: string;\n dueDate: string;\n items: { description: string; amount: number }[];\n}\n\nexport interface Vendor {\n id: string;\n name: string;\n category: string;\n contactPerson: string;\n email: string;\n phone: string;\n status: 'active' | 'inactive' | 'pending';\n contractValue: number;\n rating: number;\n}\n\nexport interface Client {\n id: string;\n name: string;\n industry: string;\n contactPerson: string;\n email: string;\n phone: string;\n status: 'active' | 'prospect' | 'churned';\n revenue: number;\n projects: number;\n since: string;\n}\n\n// BOFF-3987 — employee profile Documents tab. The binary + canonical file\n// metadata live in wspace-files-svc; this is just the (employee, file)\n// association crewfoundry owns.\nexport interface CrewEmployeeDocument {\n id: string;\n employeeId: string;\n fileId: string;\n title: string;\n category?: string | null;\n uploadedBy: string;\n uploadedAt: string;\n}\n\n// BOFF-3983 — requisition-to-hire onboarding tracker (mock cf-30).\nexport type OnboardingStage = 'offer' | 'paperwork' | 'it_setup' | 'training' | 'day_one';\nexport type OnboardingStatus = 'not_started' | 'in_progress' | 'completed' | 'cancelled';\n\nexport interface CrewOnboardingTask {\n id: string;\n onboardingId: string;\n stage: OnboardingStage;\n title: string;\n assigneeActorId?: string | null;\n assigneeName?: string | null;\n dueDate?: string | null;\n completedAt?: string | null;\n sortOrder: number;\n}\n\nexport interface CrewOnboarding {\n id: string;\n candidateId?: string | null;\n employeeId?: string | null;\n fullName: string;\n position: string;\n department?: string | null;\n startDate?: string | null;\n status: OnboardingStatus;\n currentStage: OnboardingStage;\n createdAt: string;\n tasks: CrewOnboardingTask[];\n totalTaskCount: number;\n completedTaskCount: number;\n progressPercent: number;\n}\n\nexport interface ExternalPaymentMethod {\n id: string;\n type: 'bank' | 'card';\n name: string;\n bank: string;\n last4: string;\n status: 'primary' | 'active';\n expiry?: string;\n}\n\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';\nimport type { Gateway } from '@burdenoff/fe-libs/shared/config';\n\ntype InitParams = {\n workspaceId?: string;\n authToken?: string;\n apiGatewayUrl?: string;\n actorId?: string;\n};\n\ntype GraphqlResult<T> = {\n data: T | null;\n errors?: Array<{ message: string }>;\n};\n\nconst BOOTSTRAP_QUERY = `\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n`;\n\nconst WORKSPACE_BOOTSTRAP_WITH_OVERLAP_QUERY = `\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n`;\n\nconst OVERLAP_BILLING_QUERY = `\n query CrewfoundryOverlapBilling {\n getBillingAccountsByOrg {\n id\n name\n isDefault\n paymentMethods {\n id\n type\n brand\n last4\n isDefault\n expiryMonth\n expiryYear\n }\n }\n }\n`;\n\nconst CREATE_EMPLOYEE_MUTATION = `mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }`;\nconst UPDATE_EMPLOYEE_MUTATION = `mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }`;\nconst REMOVE_EMPLOYEE_MUTATION = `mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }`;\nconst CREATE_JOB_MUTATION = `mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }`;\nconst UPDATE_JOB_MUTATION = `mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }`;\nconst CREATE_CANDIDATE_MUTATION = `mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }`;\nconst UPDATE_CANDIDATE_MUTATION = `mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }`;\nconst CREATE_ANNOUNCEMENT_MUTATION = `mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }`;\nconst CREATE_LEAVE_MUTATION = `mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }`;\nconst UPDATE_LEAVE_MUTATION = `mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }`;\n// Extra removes / updates for existing entities (delete + edit buttons).\nconst REMOVE_JOB_MUTATION = `mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }`;\nconst REMOVE_CANDIDATE_MUTATION = `mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }`;\nconst UPDATE_ANNOUNCEMENT_MUTATION = `mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }`;\nconst REMOVE_ANNOUNCEMENT_MUTATION = `mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }`;\n\n// Interview\nconst CREATE_INTERVIEW_MUTATION = `mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }`;\nconst UPDATE_INTERVIEW_MUTATION = `mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }`;\nconst REMOVE_INTERVIEW_MUTATION = `mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }`;\n\n// Vendor\nconst CREATE_VENDOR_MUTATION = `mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }`;\nconst UPDATE_VENDOR_MUTATION = `mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }`;\nconst REMOVE_VENDOR_MUTATION = `mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }`;\n\n// Client\nconst CREATE_CLIENT_MUTATION = `mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }`;\nconst UPDATE_CLIENT_MUTATION = `mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }`;\nconst REMOVE_CLIENT_MUTATION = `mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }`;\n\n// Team\nconst CREATE_TEAM_MUTATION = `mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }`;\nconst UPDATE_TEAM_MUTATION = `mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }`;\nconst REMOVE_TEAM_MUTATION = `mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }`;\n\n// Project\nconst CREATE_PROJECT_MUTATION = `mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }`;\nconst UPDATE_PROJECT_MUTATION = `mutation UpdateCrewProject($id: ID!, $input: UpdateCrewProjectInput!) { updateCrewProject(id: $id, input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }`;\nconst REMOVE_PROJECT_MUTATION = `mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }`;\n\n// Department\nconst CREATE_DEPARTMENT_MUTATION = `mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }`;\nconst UPDATE_DEPARTMENT_MUTATION = `mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }`;\nconst REMOVE_DEPARTMENT_MUTATION = `mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }`;\n\n// PayrollRecord\nconst CREATE_PAYROLL_MUTATION = `mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }`;\nconst UPDATE_PAYROLL_MUTATION = `mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }`;\nconst REMOVE_PAYROLL_MUTATION = `mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }`;\n\n// TimeEntry\nconst CREATE_TIME_ENTRY_MUTATION = `mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }`;\nconst UPDATE_TIME_ENTRY_MUTATION = `mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }`;\nconst REMOVE_TIME_ENTRY_MUTATION = `mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }`;\n\n// BOFF-3987 — employee documents\nconst EMPLOYEE_DOCUMENTS_QUERY = `query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }`;\nconst ATTACH_EMPLOYEE_DOCUMENT_MUTATION = `mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }`;\nconst DETACH_EMPLOYEE_DOCUMENT_MUTATION = `mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }`;\n// Files-svc presigned upload dance (same 3-step protocol fe-libs' SaveToFilesButton\n// uses — see ~/products/dev/platform/context/files/), replicated here with the\n// store's own graphqlFetch helper instead of Apollo since this MFE has no Apollo\n// client wired in.\nconst ENSURE_FOLDER_BY_PATH_MUTATION = `mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }`;\nconst INITIATE_UPLOAD_MUTATION = `mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }`;\nconst COMPLETE_UPLOAD_MUTATION = `mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }`;\n\n// BOFF-3983 — onboarding\nconst ONBOARDINGS_QUERY = `query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }`;\nconst CREATE_ONBOARDING_MUTATION = `mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }`;\nconst UPDATE_ONBOARDING_MUTATION = `mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }`;\nconst REMOVE_ONBOARDING_MUTATION = `mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }`;\nconst CREATE_ONBOARDING_TASK_MUTATION = `mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }`;\nconst UPDATE_ONBOARDING_TASK_MUTATION = `mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }`;\nconst REMOVE_ONBOARDING_TASK_MUTATION = `mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }`;\nconst TOGGLE_ONBOARDING_TASK_MUTATION = `mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }`;\n\nconst normalizeStatus = (value: string) => value.toUpperCase().replaceAll('-', '_');\n\nconst sharedOwnerError = (capability: string, owner: string) =>\n new Error(\n `${capability} is served by ${owner}; CrewFoundry no longer owns this backend surface.`\n );\n\n// The backend returns enum values in UPPER_SNAKE case (e.g. \"ACTIVE\", \"FULL_TIME\", \"HIGH\"),\n// but the frontend model + every comparison/filter/badge uses lower_snake ('active', 'full_time').\n// Normalization is per-entity, NOT per-key: fields like `category`/`level` are genuine enums on\n// some entities (Announcement.category, Course.level) yet free text on others (Course.category =\n// \"Programming\", Vendor.category, LearningPath.level) — a global key list would corrupt those.\n// Each list below mirrors exactly the string-literal-union fields declared on that entity's interface.\nconst ENUM_KEYS = {\n employee: ['status', 'type'],\n department: ['status'],\n jobPosting: ['type', 'experienceLevel', 'status'],\n candidate: ['status'],\n interview: ['type', 'status'],\n course: ['level', 'status'],\n marketplaceService: ['priceType', 'status'],\n announcement: ['category', 'priority'],\n team: ['status'],\n project: ['status', 'priority'],\n payrollRecord: ['status'],\n leaveRequest: ['type', 'status'],\n timeEntry: ['status'],\n notification: ['type'],\n paymentMethod: ['type', 'status'],\n invoice: ['status'],\n vendor: ['status'],\n client: ['status'],\n onboarding: ['status', 'currentStage'],\n onboardingTask: ['stage'],\n} as const;\n\n// Lowercase only the given enum keys on an entity read back from the backend; leave every other\n// (free-text) field untouched. Idempotent — safe on already-lowercase values (some subgraphs\n// return lowercase already). This is the read-path inverse of `normalizeStatus`.\nconst lowerEnumKeys = <T>(entity: T, keys: readonly string[]): T => {\n if (!entity || typeof entity !== 'object') return entity;\n const out = { ...(entity as Record<string, unknown>) };\n for (const key of keys) {\n const value = out[key];\n if (typeof value === 'string') out[key] = value.toLowerCase();\n }\n return out as T;\n};\n\n// lowerEnumKeys only lowercases top-level string fields; CrewOnboarding nests\n// a `tasks` array whose own `stage` field also needs the same treatment, so\n// this composes lowerEnumKeys over both levels rather than duplicating it.\nconst lowerOnboarding = (onboarding: CrewOnboarding): CrewOnboarding => {\n const lowered = lowerEnumKeys(onboarding, ENUM_KEYS.onboarding);\n return {\n ...lowered,\n tasks: (onboarding.tasks ?? []).map((task) => lowerEnumKeys(task, ENUM_KEYS.onboardingTask)),\n };\n};\n\nconst toDateOnly = (value?: string | null) => (value ? value.slice(0, 10) : 'TBD');\n\nconst asRecord = (value: unknown): Record<string, unknown> | null => {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n return null;\n }\n return value as Record<string, unknown>;\n};\n\nconst asNumber = (value: unknown): number | null => (typeof value === 'number' ? value : null);\n\nconst asString = (value: unknown): string | null => (typeof value === 'string' ? value : null);\n\nconst mapProjectStatus = (value: string): Project['status'] => {\n const status = value.toLowerCase();\n if (status === 'active') return 'active';\n if (status === 'completed') return 'completed';\n if (status === 'cancelled') return 'cancelled';\n if (status === 'archived') return 'on_hold';\n return 'planning';\n};\n\nconst mapGroupStatus = (value: string): Team['status'] => {\n const status = value.toLowerCase();\n if (status === 'active') return 'active';\n if (status === 'inactive' || status === 'archived' || status === 'deleted') return 'disbanded';\n return 'forming';\n};\n\ntype OverlapWorkspaceResponse = {\n projects: {\n items: Array<{\n id: string;\n name: string;\n key: string;\n creatorId: string;\n status: string;\n config?: unknown;\n archived: boolean;\n createdAt: string;\n updatedAt: string;\n }>;\n };\n groups: {\n edges: Array<{\n node: {\n id: string;\n name: string;\n description?: string | null;\n groupType?: string | null;\n status: string;\n memberCount: number;\n ownerId: string;\n createdAt: string;\n };\n }>;\n };\n conversations: {\n edges: Array<{\n node: {\n id: string;\n title?: string | null;\n description?: string | null;\n state: string;\n unreadCount: number;\n memberCount: number;\n updatedAt: string;\n };\n }>;\n };\n};\n\ntype WorkspaceBootstrapWithOverlapResponse = BootstrapPayload & OverlapWorkspaceResponse;\n\ntype OverlapBillingResponse = {\n getBillingAccountsByOrg: Array<{\n id?: string | null;\n name?: string | null;\n isDefault?: boolean | null;\n paymentMethods?: Array<{\n id: string;\n type: string;\n brand?: string | null;\n last4?: string | null;\n isDefault: boolean;\n expiryMonth?: number | null;\n expiryYear?: number | null;\n } | null> | null;\n }>;\n};\n\ntype BootstrapPayload = {\n crewfoundryBootstrap: {\n employees: Employee[];\n departments: Department[];\n jobPostings: JobPosting[];\n candidates: Candidate[];\n interviews: Interview[];\n announcements: Announcement[];\n teams: Team[];\n projects: Project[];\n payrollRecords: PayrollRecord[];\n leaveRequests: LeaveRequest[];\n timeEntries: TimeEntry[];\n vendors: Vendor[];\n clients: Client[];\n };\n};\n\nconst mapOverlapProjects = (\n projects: OverlapWorkspaceResponse['projects']['items'],\n teams: Team[]\n) =>\n projects.map((project, index): Project => {\n const config = asRecord(project.config);\n const budget = asNumber(config?.budget) ?? 25000 + index * 2500;\n const spent =\n asNumber(config?.spent) ?? Math.round(budget * (project.status === 'COMPLETED' ? 1 : 0.62));\n const progress = asNumber(config?.progress) ?? (project.status === 'COMPLETED' ? 100 : 58);\n const tasks = asNumber(config?.tasks) ?? 20 + (index % 9);\n const completedTasks = asNumber(config?.completedTasks) ?? Math.round((progress / 100) * tasks);\n const team = teams[index % Math.max(teams.length, 1)];\n\n return {\n id: project.id,\n name: project.name,\n description: asString(config?.description) || `${project.key} delivery plan`,\n status: mapProjectStatus(project.status),\n priority: (asString(config?.priority)?.toLowerCase() as Project['priority']) || 'medium',\n startDate: toDateOnly(project.createdAt),\n endDate: toDateOnly(project.updatedAt),\n progress,\n budget,\n spent,\n teamId: team?.id || 'unassigned',\n teamName: team?.name || 'Unassigned Team',\n managerId: project.creatorId,\n managerName: `Lead ${project.creatorId.slice(0, 8)}`,\n tasks,\n completedTasks,\n };\n });\n\nconst mapOverlapTeams = (groups: OverlapWorkspaceResponse['groups']['edges']): Team[] =>\n groups.map(({ node }) => ({\n id: node.id,\n name: node.name,\n description: node.description || `${node.name} team workspace`,\n leadId: node.ownerId,\n leadName: `Lead ${node.ownerId.slice(0, 8)}`,\n members: [],\n memberCount: node.memberCount,\n department: node.groupType?.toLowerCase().replaceAll('_', ' ') || 'operations',\n status: mapGroupStatus(node.status),\n projectCount: 0,\n createdAt: toDateOnly(node.createdAt),\n }));\n\nconst mapConversationNotifications = (\n conversations: OverlapWorkspaceResponse['conversations']['edges']\n): Notification[] =>\n conversations\n .filter(({ node }) => node.unreadCount > 0)\n .map(({ node }) => ({\n id: `conversation-${node.id}`,\n title: node.title || 'Conversation update',\n message: `${node.unreadCount} unread in ${node.memberCount}-member channel`,\n type: node.state.toLowerCase() === 'active' ? 'info' : 'warning',\n category: 'communications',\n read: false,\n createdAt: node.updatedAt,\n actionUrl: `/crewfoundry/communications/messages-page`,\n }));\n\nconst mapBillingMethods = (data: OverlapBillingResponse): ExternalPaymentMethod[] => {\n const account =\n data.getBillingAccountsByOrg.find((item) => item?.isDefault && item?.id) ||\n data.getBillingAccountsByOrg.find((item) => item?.id);\n\n if (!account?.id) {\n return [];\n }\n\n return (account.paymentMethods || [])\n .filter((item): item is NonNullable<typeof item> => Boolean(item))\n .map((method) => {\n const month = method.expiryMonth ? String(method.expiryMonth).padStart(2, '0') : undefined;\n const year = method.expiryYear ? String(method.expiryYear) : undefined;\n const isBank = method.type === 'BANK_TRANSFER' || method.type === 'NETBANKING';\n\n return {\n id: method.id,\n type: isBank ? 'bank' : 'card',\n name: `${account.name || 'Billing'} ${isBank ? 'Bank Account' : 'Card'}`,\n bank: method.brand || account.name || 'Billing Account',\n last4: method.last4 || '0000',\n status: method.isDefault ? 'primary' : 'active',\n expiry: month && year ? `${month}/${year}` : undefined,\n };\n });\n};\n\nconst parseGraphql = <T>(result: GraphqlResult<T>, fallbackMessage: string): T => {\n if (result.errors?.length) {\n throw new Error(result.errors[0]?.message || fallbackMessage);\n }\n if (!result.data) {\n throw new Error(fallbackMessage);\n }\n return result.data;\n};\n\n// Fields that live on the client-side entity objects but are NEVER accepted by\n// any Crew* Create/Update GraphQL input — either a client-generated temp `id`,\n// a server-set timestamp, or a server-derived rollup counter. Sending them makes\n// the gateway reject the whole operation with a GraphQL validation error (which\n// the public gateway masks to a generic INTERNAL_SERVER_ERROR), so no row is\n// ever written. Stripping them centrally keeps every create/update mutation valid\n// without each caller having to hand-pick input fields. (Counters like rating /\n// applicants / viewCount that a few inputs DO accept are safe to drop too — they\n// default server-side, and the UI never lets a user set a derived rollup.)\nconst MUTATION_INPUT_OMIT_KEYS = new Set<string>([\n 'id',\n 'createdAt',\n 'createdOn',\n 'updatedAt',\n 'deletedAt',\n 'employeeCount',\n 'memberCount',\n 'projectCount',\n 'enrolled',\n 'completed',\n 'completionRate',\n 'reviews',\n 'rating',\n 'tasks',\n 'completedTasks',\n 'spent',\n 'progress',\n 'applicants',\n 'viewCount',\n 'revenue',\n 'projects',\n]);\n\nconst sanitizeMutationInput = (\n variables: Record<string, unknown> | undefined\n): Record<string, unknown> | undefined => {\n if (!variables) {\n return variables;\n }\n const input = variables.input;\n if (!input || typeof input !== 'object' || Array.isArray(input)) {\n return variables;\n }\n const cleaned: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(input as Record<string, unknown>)) {\n if (!MUTATION_INPUT_OMIT_KEYS.has(key)) {\n cleaned[key] = value;\n }\n }\n return { ...variables, input: cleaned };\n};\n\nconst runGraphql = async <T>(\n query: string,\n variables: Record<string, unknown> | undefined,\n params: InitParams,\n fallbackMessage: string,\n gateway: Gateway = 'workspace'\n) => {\n const result = await graphqlFetch<T>({\n gateway,\n query,\n variables: sanitizeMutationInput(variables),\n authToken: params.authToken,\n // `apiGatewayUrl` is the workspace gateway base (dev override only). The\n // global gateway (e.g. billing overlap) resolves its own URL from fe-libs\n // config, so never force the workspace base onto a global-gateway call.\n baseUrl: gateway === 'workspace' ? params.apiGatewayUrl : undefined,\n extraHeaders: {\n ...(gateway === 'workspace' && params.workspaceId\n ? { 'x-workspace-id': params.workspaceId }\n : {}),\n },\n });\n return parseGraphql(result as GraphqlResult<T>, fallbackMessage);\n};\n\n// Overlap queries are best-effort: they enrich the crew bootstrap with real\n// wspace/global platform data but must never block the page if a field is\n// unavailable in a given environment. Swallow to null, but surface the reason\n// in dev so schema-arg drift (the historical failure mode) is visible.\n// Vite injects `import.meta.env.DEV`, but this package's tsconfig does not pull\n// in `vite/client` ambient types — narrow through a typed shape instead of `any`.\nconst isDevEnv = (): boolean => Boolean((import.meta as { env?: { DEV?: boolean } }).env?.DEV);\n\nconst runOverlap = async <T>(\n query: string,\n variables: Record<string, unknown> | undefined,\n params: InitParams,\n fallbackMessage: string,\n gateway: Gateway = 'workspace'\n): Promise<T | null> => {\n try {\n return await runGraphql<T>(query, variables, params, fallbackMessage, gateway);\n } catch (error) {\n if (isDevEnv()) {\n console.warn(`[crewfoundry] overlap query skipped: ${fallbackMessage}`, error);\n }\n return null;\n }\n};\n\n// ── Store Interface ─────────────────────────────────────────────\ninterface CrewFoundryState {\n // Overview\n metrics: OverviewMetric[];\n workItems: WorkItem[];\n selectedView: string;\n\n // Domain data\n employees: Employee[];\n departments: Department[];\n jobPostings: JobPosting[];\n candidates: Candidate[];\n interviews: Interview[];\n courses: LearningCourse[];\n learningPaths: LearningPath[];\n marketplaceServices: MarketplaceService[];\n announcements: Announcement[];\n teams: Team[];\n projects: Project[];\n payrollRecords: PayrollRecord[];\n leaveRequests: LeaveRequest[];\n timeEntries: TimeEntry[];\n notifications: Notification[];\n paymentMethods: ExternalPaymentMethod[];\n invoices: Invoice[];\n vendors: Vendor[];\n clients: Client[];\n employeeDocuments: CrewEmployeeDocument[];\n onboardings: CrewOnboarding[];\n onboardingsLoaded: boolean;\n\n // Actions\n initialized: boolean;\n loading: boolean;\n error: string | null;\n initParams: InitParams;\n initializeData: (params: InitParams) => Promise<void>;\n setSelectedView: (view: string) => void;\n setWorkItems: (items: WorkItem[]) => void;\n addEmployee: (employee: Employee) => Promise<void>;\n updateEmployee: (id: string, updates: Partial<Employee>) => Promise<void>;\n removeEmployee: (id: string) => Promise<void>;\n addJobPosting: (job: JobPosting) => Promise<void>;\n updateJobPosting: (id: string, updates: Partial<JobPosting>) => Promise<void>;\n addCandidate: (candidate: Candidate) => Promise<void>;\n updateCandidate: (id: string, updates: Partial<Candidate>) => Promise<void>;\n removeJobPosting: (id: string) => Promise<void>;\n removeCandidate: (id: string) => Promise<void>;\n addAnnouncement: (announcement: Announcement) => Promise<void>;\n updateAnnouncement: (id: string, updates: Partial<Announcement>) => Promise<void>;\n removeAnnouncement: (id: string) => Promise<void>;\n addLeaveRequest: (request: LeaveRequest) => Promise<void>;\n updateLeaveRequest: (id: string, updates: Partial<LeaveRequest>) => Promise<void>;\n addInterview: (interview: Interview) => Promise<void>;\n updateInterview: (id: string, updates: Partial<Interview>) => Promise<void>;\n removeInterview: (id: string) => Promise<void>;\n addInvoice: (invoice: Invoice) => Promise<void>;\n updateInvoice: (id: string, updates: Partial<Invoice>) => Promise<void>;\n removeInvoice: (id: string) => Promise<void>;\n addVendor: (vendor: Vendor) => Promise<void>;\n updateVendor: (id: string, updates: Partial<Vendor>) => Promise<void>;\n removeVendor: (id: string) => Promise<void>;\n addClient: (client: Client) => Promise<void>;\n updateClient: (id: string, updates: Partial<Client>) => Promise<void>;\n removeClient: (id: string) => Promise<void>;\n addTeam: (team: Team) => Promise<void>;\n updateTeam: (id: string, updates: Partial<Team>) => Promise<void>;\n removeTeam: (id: string) => Promise<void>;\n addProject: (project: Project) => Promise<void>;\n updateProject: (id: string, updates: Partial<Project>) => Promise<void>;\n removeProject: (id: string) => Promise<void>;\n addMarketplaceService: (service: MarketplaceService) => Promise<void>;\n updateMarketplaceService: (id: string, updates: Partial<MarketplaceService>) => Promise<void>;\n removeMarketplaceService: (id: string) => Promise<void>;\n addDepartment: (department: Department) => Promise<void>;\n updateDepartment: (id: string, updates: Partial<Department>) => Promise<void>;\n removeDepartment: (id: string) => Promise<void>;\n addCourse: (course: LearningCourse) => Promise<void>;\n updateCourse: (id: string, updates: Partial<LearningCourse>) => Promise<void>;\n removeCourse: (id: string) => Promise<void>;\n enrollCourse: (id: string) => Promise<void>;\n addLearningPath: (path: LearningPath) => Promise<void>;\n updateLearningPath: (id: string, updates: Partial<LearningPath>) => Promise<void>;\n removeLearningPath: (id: string) => Promise<void>;\n addPayrollRecord: (record: PayrollRecord) => Promise<void>;\n updatePayrollRecord: (id: string, updates: Partial<PayrollRecord>) => Promise<void>;\n removePayrollRecord: (id: string) => Promise<void>;\n addTimeEntry: (entry: TimeEntry) => Promise<void>;\n updateTimeEntry: (id: string, updates: Partial<TimeEntry>) => Promise<void>;\n removeTimeEntry: (id: string) => Promise<void>;\n markNotificationRead: (id: string) => Promise<void>;\n markAllNotificationsRead: () => Promise<void>;\n\n // BOFF-3987 — employee documents\n fetchEmployeeDocuments: (employeeId: string) => Promise<void>;\n uploadEmployeeDocument: (params: {\n employeeId: string;\n file: File;\n title: string;\n category?: string;\n }) => Promise<void>;\n detachEmployeeDocument: (id: string) => Promise<void>;\n\n // BOFF-3983 — onboarding\n fetchOnboardings: () => Promise<void>;\n createOnboarding: (input: {\n candidateId?: string;\n employeeId?: string;\n fullName: string;\n position: string;\n department?: string;\n startDate?: string;\n }) => Promise<void>;\n updateOnboarding: (id: string, updates: Partial<CrewOnboarding>) => Promise<void>;\n removeOnboarding: (id: string) => Promise<void>;\n createOnboardingTask: (input: {\n onboardingId: string;\n stage: OnboardingStage;\n title: string;\n assigneeActorId?: string;\n assigneeName?: string;\n dueDate?: string;\n sortOrder?: number;\n }) => Promise<void>;\n updateOnboardingTask: (id: string, updates: Partial<CrewOnboardingTask>) => Promise<void>;\n removeOnboardingTask: (id: string) => Promise<void>;\n toggleOnboardingTask: (id: string, completed: boolean) => Promise<void>;\n}\n\nexport const useCrewFoundryStore = create<CrewFoundryState>((set) => ({\n // Overview\n metrics: [\n { label: 'Total Employees', value: '247', trend: '+5.2%' },\n { label: 'Open Positions', value: '24', trend: '+3 this week' },\n { label: 'Hiring Pipeline', value: '347', trend: '+52 applications' },\n { label: 'Employee Satisfaction', value: '4.6/5', trend: '+0.2' },\n ],\n workItems: [\n {\n id: 'w1',\n title: 'Q1 Performance Review Cycle',\n status: 'active',\n owner: 'HR',\n updatedAt: '2h ago',\n },\n {\n id: 'w2',\n title: 'New Health Benefits Enrollment',\n status: 'active',\n owner: 'Benefits',\n updatedAt: '5h ago',\n },\n {\n id: 'w3',\n title: 'Engineering Headcount Planning',\n status: 'at_risk',\n owner: 'Recruiting',\n updatedAt: '1d ago',\n },\n {\n id: 'w4',\n title: 'Employee Onboarding Automation',\n status: 'completed',\n owner: 'HR Ops',\n updatedAt: '2d ago',\n },\n ],\n selectedView: 'overview',\n initialized: false,\n loading: false,\n error: null,\n initParams: {},\n\n // Domain data\n employees: [],\n departments: [],\n jobPostings: [],\n candidates: [],\n interviews: [],\n courses: [],\n learningPaths: [],\n marketplaceServices: [],\n announcements: [],\n teams: [],\n projects: [],\n payrollRecords: [],\n leaveRequests: [],\n timeEntries: [],\n notifications: [],\n paymentMethods: [],\n invoices: [],\n vendors: [],\n clients: [],\n employeeDocuments: [],\n onboardings: [],\n onboardingsLoaded: false,\n\n // Actions\n initializeData: async (params) => {\n if (!params.workspaceId) {\n return;\n }\n set({ loading: true, error: null, initParams: params });\n try {\n const [workspaceWithOverlapData, billingOverlap] = await Promise.all([\n runOverlap<WorkspaceBootstrapWithOverlapResponse>(\n WORKSPACE_BOOTSTRAP_WITH_OVERLAP_QUERY,\n {\n workspaceId: params.workspaceId,\n projectPagination: { limit: 50, offset: 0 },\n groupFirst: 30,\n conversationFirst: 30,\n },\n params,\n 'Unable to load workspace bootstrap with overlap data'\n ),\n // getBillingAccountsByOrg lives on the GLOBAL supergraph, not wspace —\n // route it to the global gateway (org context comes from the x-org-id\n // header the gateway auto-attaches for global-gateway calls).\n runOverlap<OverlapBillingResponse>(\n OVERLAP_BILLING_QUERY,\n undefined,\n params,\n 'Unable to load overlap billing data',\n 'global'\n ),\n ]);\n\n const bootstrap = workspaceWithOverlapData\n ? workspaceWithOverlapData.crewfoundryBootstrap\n : (\n await runGraphql<BootstrapPayload>(\n BOOTSTRAP_QUERY,\n undefined,\n params,\n 'Unable to load CrewFoundry data'\n )\n ).crewfoundryBootstrap;\n\n const overlapTeams = workspaceWithOverlapData\n ? mapOverlapTeams(workspaceWithOverlapData.groups.edges)\n : [];\n const overlapProjects = workspaceWithOverlapData\n ? mapOverlapProjects(workspaceWithOverlapData.projects.items, overlapTeams)\n : [];\n const overlapNotifications = workspaceWithOverlapData\n ? mapConversationNotifications(workspaceWithOverlapData.conversations.edges)\n : [];\n\n const teams = overlapTeams.length > 0 ? overlapTeams : bootstrap.teams;\n const projects = overlapProjects.length > 0 ? overlapProjects : bootstrap.projects;\n const notifications = overlapNotifications;\n const paymentMethods = billingOverlap ? mapBillingMethods(billingOverlap) : [];\n\n // Normalize enum casing (UPPER_SNAKE from the backend -> lower_snake) once, per entity, so\n // every downstream count/filter/badge and the metrics below all operate on the same casing.\n const nEmployees = bootstrap.employees.map((e) => lowerEnumKeys(e, ENUM_KEYS.employee));\n const nDepartments = bootstrap.departments.map((d) => lowerEnumKeys(d, ENUM_KEYS.department));\n const nJobPostings = bootstrap.jobPostings.map((j) => lowerEnumKeys(j, ENUM_KEYS.jobPosting));\n const nCandidates = bootstrap.candidates.map((c) => lowerEnumKeys(c, ENUM_KEYS.candidate));\n const nInterviews = bootstrap.interviews.map((i) => lowerEnumKeys(i, ENUM_KEYS.interview));\n const nCourses: LearningCourse[] = [];\n const nMarketplaceServices: MarketplaceService[] = [];\n const nAnnouncements = bootstrap.announcements.map((a) =>\n lowerEnumKeys(a, ENUM_KEYS.announcement)\n );\n const nTeams = teams.map((t) => lowerEnumKeys(t, ENUM_KEYS.team));\n const nProjects = projects.map((p) => lowerEnumKeys(p, ENUM_KEYS.project));\n const nPayrollRecords = bootstrap.payrollRecords.map((r) =>\n lowerEnumKeys(r, ENUM_KEYS.payrollRecord)\n );\n const nLeaveRequests = bootstrap.leaveRequests.map((r) =>\n lowerEnumKeys(r, ENUM_KEYS.leaveRequest)\n );\n const nTimeEntries = bootstrap.timeEntries.map((t) => lowerEnumKeys(t, ENUM_KEYS.timeEntry));\n const nNotifications = notifications.map((n) => lowerEnumKeys(n, ENUM_KEYS.notification));\n const nPaymentMethods = paymentMethods.map((m) => lowerEnumKeys(m, ENUM_KEYS.paymentMethod));\n const nInvoices: Invoice[] = [];\n const nVendors = bootstrap.vendors.map((v) => lowerEnumKeys(v, ENUM_KEYS.vendor));\n const nClients = bootstrap.clients.map((c) => lowerEnumKeys(c, ENUM_KEYS.client));\n\n set({\n employees: nEmployees,\n departments: nDepartments,\n jobPostings: nJobPostings,\n candidates: nCandidates,\n interviews: nInterviews,\n courses: nCourses,\n learningPaths: [],\n marketplaceServices: nMarketplaceServices,\n announcements: nAnnouncements,\n teams: nTeams,\n projects: nProjects,\n payrollRecords: nPayrollRecords,\n leaveRequests: nLeaveRequests,\n timeEntries: nTimeEntries,\n notifications: nNotifications,\n paymentMethods: nPaymentMethods,\n invoices: nInvoices,\n vendors: nVendors,\n clients: nClients,\n metrics: [\n { label: 'Total Employees', value: String(nEmployees.length), trend: 'Live' },\n {\n label: 'Open Positions',\n value: String(nJobPostings.filter((j) => j.status === 'active').length),\n trend: 'Live',\n },\n { label: 'Hiring Pipeline', value: String(nCandidates.length), trend: 'Live' },\n {\n label: 'Cross-Team Projects',\n value: String(nProjects.filter((project) => project.status === 'active').length),\n trend: 'Live',\n },\n ],\n initialized: true,\n loading: false,\n });\n } catch (error) {\n set({\n error: error instanceof Error ? error.message : 'Unable to load CrewFoundry data',\n loading: false,\n });\n }\n },\n setSelectedView: (view) => set({ selectedView: view }),\n setWorkItems: (items) => set({ workItems: items }),\n addEmployee: async (employee) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewEmployee: Employee }>(\n CREATE_EMPLOYEE_MUTATION,\n {\n input: {\n ...employee,\n status: normalizeStatus(employee.status),\n type: normalizeStatus(employee.type),\n },\n },\n params,\n 'Unable to create employee'\n );\n set((state) => ({\n employees: [lowerEnumKeys(data.createCrewEmployee, ENUM_KEYS.employee), ...state.employees],\n }));\n },\n updateEmployee: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const payload = {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n ...(updates.type ? { type: normalizeStatus(updates.type) } : {}),\n };\n const data = await runGraphql<{ updateCrewEmployee: Employee }>(\n UPDATE_EMPLOYEE_MUTATION,\n { id, input: payload },\n params,\n 'Unable to update employee'\n );\n set((state) => ({\n employees: state.employees.map((e) =>\n e.id === id ? lowerEnumKeys(data.updateCrewEmployee, ENUM_KEYS.employee) : e\n ),\n }));\n },\n removeEmployee: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewEmployee: boolean }>(\n REMOVE_EMPLOYEE_MUTATION,\n { id },\n params,\n 'Unable to remove employee'\n );\n set((state) => ({ employees: state.employees.filter((e) => e.id !== id) }));\n },\n addJobPosting: async (job) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewJobPosting: JobPosting }>(\n CREATE_JOB_MUTATION,\n {\n input: {\n ...job,\n status: normalizeStatus(job.status),\n },\n },\n params,\n 'Unable to create job posting'\n );\n set((state) => ({\n jobPostings: [\n lowerEnumKeys(data.createCrewJobPosting, ENUM_KEYS.jobPosting),\n ...state.jobPostings,\n ],\n }));\n },\n updateJobPosting: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewJobPosting: JobPosting }>(\n UPDATE_JOB_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update job posting'\n );\n set((state) => ({\n jobPostings: state.jobPostings.map((j) =>\n j.id === id ? lowerEnumKeys(data.updateCrewJobPosting, ENUM_KEYS.jobPosting) : j\n ),\n }));\n },\n addCandidate: async (candidate) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewCandidate: Candidate }>(\n CREATE_CANDIDATE_MUTATION,\n { input: { ...candidate, status: normalizeStatus(candidate.status) } },\n params,\n 'Unable to create candidate'\n );\n set((state) => ({\n candidates: [\n lowerEnumKeys(data.createCrewCandidate, ENUM_KEYS.candidate),\n ...state.candidates,\n ],\n }));\n },\n updateCandidate: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewCandidate: Candidate }>(\n UPDATE_CANDIDATE_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update candidate'\n );\n set((state) => ({\n candidates: state.candidates.map((c) =>\n c.id === id ? lowerEnumKeys(data.updateCrewCandidate, ENUM_KEYS.candidate) : c\n ),\n }));\n },\n addAnnouncement: async (announcement) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewAnnouncement: Announcement }>(\n CREATE_ANNOUNCEMENT_MUTATION,\n { input: announcement },\n params,\n 'Unable to create announcement'\n );\n set((state) => ({\n announcements: [\n lowerEnumKeys(data.createCrewAnnouncement, ENUM_KEYS.announcement),\n ...state.announcements,\n ],\n }));\n },\n addLeaveRequest: async (request) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewLeaveRequest: LeaveRequest }>(\n CREATE_LEAVE_MUTATION,\n {\n input: {\n ...request,\n type: normalizeStatus(request.type),\n status: normalizeStatus(request.status),\n },\n },\n params,\n 'Unable to create leave request'\n );\n set((state) => ({\n leaveRequests: [\n lowerEnumKeys(data.createCrewLeaveRequest, ENUM_KEYS.leaveRequest),\n ...state.leaveRequests,\n ],\n }));\n },\n updateLeaveRequest: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewLeaveRequest: LeaveRequest }>(\n UPDATE_LEAVE_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.type ? { type: normalizeStatus(updates.type) } : {}),\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update leave request'\n );\n set((state) => ({\n leaveRequests: state.leaveRequests.map((l) =>\n l.id === id ? lowerEnumKeys(data.updateCrewLeaveRequest, ENUM_KEYS.leaveRequest) : l\n ),\n }));\n },\n markNotificationRead: async (id) => {\n set((state) => ({\n notifications: state.notifications.map((n) => (n.id === id ? { ...n, read: true } : n)),\n }));\n },\n markAllNotificationsRead: async () => {\n set((state) => ({ notifications: state.notifications.map((n) => ({ ...n, read: true })) }));\n },\n\n // ── Extra removes for existing entities ───────────────────────\n removeJobPosting: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewJobPosting: boolean }>(\n REMOVE_JOB_MUTATION,\n { id },\n params,\n 'Unable to remove job posting'\n );\n set((state) => ({ jobPostings: state.jobPostings.filter((j) => j.id !== id) }));\n },\n removeCandidate: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewCandidate: boolean }>(\n REMOVE_CANDIDATE_MUTATION,\n { id },\n params,\n 'Unable to remove candidate'\n );\n set((state) => ({ candidates: state.candidates.filter((c) => c.id !== id) }));\n },\n updateAnnouncement: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewAnnouncement: Announcement }>(\n UPDATE_ANNOUNCEMENT_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update announcement'\n );\n set((state) => ({\n announcements: state.announcements.map((a) =>\n a.id === id ? lowerEnumKeys(data.updateCrewAnnouncement, ENUM_KEYS.announcement) : a\n ),\n }));\n },\n removeAnnouncement: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewAnnouncement: boolean }>(\n REMOVE_ANNOUNCEMENT_MUTATION,\n { id },\n params,\n 'Unable to remove announcement'\n );\n set((state) => ({ announcements: state.announcements.filter((a) => a.id !== id) }));\n },\n\n // ── Interview (enum: type, status) ────────────────────────────\n addInterview: async (interview) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewInterview: Interview }>(\n CREATE_INTERVIEW_MUTATION,\n {\n input: {\n ...interview,\n type: normalizeStatus(interview.type),\n status: normalizeStatus(interview.status),\n },\n },\n params,\n 'Unable to schedule interview'\n );\n set((state) => ({\n interviews: [\n lowerEnumKeys(data.createCrewInterview, ENUM_KEYS.interview),\n ...state.interviews,\n ],\n }));\n },\n updateInterview: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewInterview: Interview }>(\n UPDATE_INTERVIEW_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.type ? { type: normalizeStatus(updates.type) } : {}),\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update interview'\n );\n set((state) => ({\n interviews: state.interviews.map((i) =>\n i.id === id ? lowerEnumKeys(data.updateCrewInterview, ENUM_KEYS.interview) : i\n ),\n }));\n },\n removeInterview: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewInterview: boolean }>(\n REMOVE_INTERVIEW_MUTATION,\n { id },\n params,\n 'Unable to remove interview'\n );\n set((state) => ({ interviews: state.interviews.filter((i) => i.id !== id) }));\n },\n\n // ── Invoice data is owned by global-billing-svc ───────────────\n addInvoice: async () => {\n throw sharedOwnerError('Invoices', 'global-billing-svc');\n },\n updateInvoice: async () => {\n throw sharedOwnerError('Invoices', 'global-billing-svc');\n },\n removeInvoice: async () => {\n throw sharedOwnerError('Invoices', 'global-billing-svc');\n },\n\n // ── Vendor (enum: status) ─────────────────────────────────────\n addVendor: async (vendor) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewVendor: Vendor }>(\n CREATE_VENDOR_MUTATION,\n { input: { ...vendor, status: normalizeStatus(vendor.status) } },\n params,\n 'Unable to create vendor'\n );\n set((state) => ({\n vendors: [lowerEnumKeys(data.createCrewVendor, ENUM_KEYS.vendor), ...state.vendors],\n }));\n },\n updateVendor: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewVendor: Vendor }>(\n UPDATE_VENDOR_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update vendor'\n );\n set((state) => ({\n vendors: state.vendors.map((v) =>\n v.id === id ? lowerEnumKeys(data.updateCrewVendor, ENUM_KEYS.vendor) : v\n ),\n }));\n },\n removeVendor: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewVendor: boolean }>(\n REMOVE_VENDOR_MUTATION,\n { id },\n params,\n 'Unable to remove vendor'\n );\n set((state) => ({ vendors: state.vendors.filter((v) => v.id !== id) }));\n },\n\n // ── Client (enum: status; `since`) ────────────────────────────\n addClient: async (client) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewClient: Client }>(\n CREATE_CLIENT_MUTATION,\n { input: { ...client, status: normalizeStatus(client.status) } },\n params,\n 'Unable to create client'\n );\n set((state) => ({\n clients: [lowerEnumKeys(data.createCrewClient, ENUM_KEYS.client), ...state.clients],\n }));\n },\n updateClient: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewClient: Client }>(\n UPDATE_CLIENT_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update client'\n );\n set((state) => ({\n clients: state.clients.map((c) =>\n c.id === id ? lowerEnumKeys(data.updateCrewClient, ENUM_KEYS.client) : c\n ),\n }));\n },\n removeClient: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewClient: boolean }>(\n REMOVE_CLIENT_MUTATION,\n { id },\n params,\n 'Unable to remove client'\n );\n set((state) => ({ clients: state.clients.filter((c) => c.id !== id) }));\n },\n\n // ── Team (plain status; not normalized) ───────────────────────\n addTeam: async (team) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewTeam: Team }>(\n CREATE_TEAM_MUTATION,\n { input: team },\n params,\n 'Unable to create team'\n );\n set((state) => ({\n teams: [lowerEnumKeys(data.createCrewTeam, ENUM_KEYS.team), ...state.teams],\n }));\n },\n updateTeam: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewTeam: Team }>(\n UPDATE_TEAM_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update team'\n );\n set((state) => ({\n teams: state.teams.map((t) =>\n t.id === id ? lowerEnumKeys(data.updateCrewTeam, ENUM_KEYS.team) : t\n ),\n }));\n },\n removeTeam: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewTeam: boolean }>(\n REMOVE_TEAM_MUTATION,\n { id },\n params,\n 'Unable to remove team'\n );\n set((state) => ({ teams: state.teams.filter((t) => t.id !== id) }));\n },\n\n // ── Project (enum: status, priority) ──────────────────────────\n addProject: async (project) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewProject: Project }>(\n CREATE_PROJECT_MUTATION,\n {\n input: {\n ...project,\n status: normalizeStatus(project.status),\n priority: normalizeStatus(project.priority),\n },\n },\n params,\n 'Unable to create project'\n );\n set((state) => ({\n projects: [lowerEnumKeys(data.createCrewProject, ENUM_KEYS.project), ...state.projects],\n }));\n },\n updateProject: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewProject: Project }>(\n UPDATE_PROJECT_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n ...(updates.priority ? { priority: normalizeStatus(updates.priority) } : {}),\n },\n },\n params,\n 'Unable to update project'\n );\n set((state) => ({\n projects: state.projects.map((p) =>\n p.id === id ? lowerEnumKeys(data.updateCrewProject, ENUM_KEYS.project) : p\n ),\n }));\n },\n removeProject: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewProject: boolean }>(\n REMOVE_PROJECT_MUTATION,\n { id },\n params,\n 'Unable to remove project'\n );\n set((state) => ({ projects: state.projects.filter((p) => p.id !== id) }));\n },\n\n // ── Marketplace data is owned by global-store-svc ─────────────\n addMarketplaceService: async () => {\n throw sharedOwnerError('Marketplace services', 'global-store-svc');\n },\n updateMarketplaceService: async () => {\n throw sharedOwnerError('Marketplace services', 'global-store-svc');\n },\n removeMarketplaceService: async () => {\n throw sharedOwnerError('Marketplace services', 'global-store-svc');\n },\n\n // ── Department (plain status; not normalized) ─────────────────\n addDepartment: async (department) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewDepartment: Department }>(\n CREATE_DEPARTMENT_MUTATION,\n { input: department },\n params,\n 'Unable to create department'\n );\n set((state) => ({\n departments: [\n lowerEnumKeys(data.createCrewDepartment, ENUM_KEYS.department),\n ...state.departments,\n ],\n }));\n },\n updateDepartment: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewDepartment: Department }>(\n UPDATE_DEPARTMENT_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update department'\n );\n set((state) => ({\n departments: state.departments.map((d) =>\n d.id === id ? lowerEnumKeys(data.updateCrewDepartment, ENUM_KEYS.department) : d\n ),\n }));\n },\n removeDepartment: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewDepartment: boolean }>(\n REMOVE_DEPARTMENT_MUTATION,\n { id },\n params,\n 'Unable to remove department'\n );\n set((state) => ({ departments: state.departments.filter((d) => d.id !== id) }));\n },\n\n // ── Learning data is owned by the shared learning service ─────\n addCourse: async () => {\n throw sharedOwnerError('Courses', 'wspace-learning-svc');\n },\n updateCourse: async () => {\n throw sharedOwnerError('Courses', 'wspace-learning-svc');\n },\n removeCourse: async () => {\n throw sharedOwnerError('Courses', 'wspace-learning-svc');\n },\n enrollCourse: async () => {\n throw sharedOwnerError('Course enrollment', 'wspace-learning-svc');\n },\n addLearningPath: async () => {\n throw sharedOwnerError('Learning paths', 'wspace-learning-svc');\n },\n updateLearningPath: async () => {\n throw sharedOwnerError('Learning paths', 'wspace-learning-svc');\n },\n removeLearningPath: async () => {\n throw sharedOwnerError('Learning paths', 'wspace-learning-svc');\n },\n\n // ── PayrollRecord (enum: status) ──────────────────────────────\n addPayrollRecord: async (record) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewPayrollRecord: PayrollRecord }>(\n CREATE_PAYROLL_MUTATION,\n { input: { ...record, status: normalizeStatus(record.status) } },\n params,\n 'Unable to create payroll record'\n );\n set((state) => ({\n payrollRecords: [\n lowerEnumKeys(data.createCrewPayrollRecord, ENUM_KEYS.payrollRecord),\n ...state.payrollRecords,\n ],\n }));\n },\n updatePayrollRecord: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewPayrollRecord: PayrollRecord }>(\n UPDATE_PAYROLL_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update payroll record'\n );\n set((state) => ({\n payrollRecords: state.payrollRecords.map((p) =>\n p.id === id ? lowerEnumKeys(data.updateCrewPayrollRecord, ENUM_KEYS.payrollRecord) : p\n ),\n }));\n },\n removePayrollRecord: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewPayrollRecord: boolean }>(\n REMOVE_PAYROLL_MUTATION,\n { id },\n params,\n 'Unable to remove payroll record'\n );\n set((state) => ({ payrollRecords: state.payrollRecords.filter((p) => p.id !== id) }));\n },\n\n // ── TimeEntry (plain status; not normalized) ──────────────────\n addTimeEntry: async (entry) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewTimeEntry: TimeEntry }>(\n CREATE_TIME_ENTRY_MUTATION,\n { input: entry },\n params,\n 'Unable to create time entry'\n );\n set((state) => ({\n timeEntries: [\n lowerEnumKeys(data.createCrewTimeEntry, ENUM_KEYS.timeEntry),\n ...state.timeEntries,\n ],\n }));\n },\n updateTimeEntry: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewTimeEntry: TimeEntry }>(\n UPDATE_TIME_ENTRY_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update time entry'\n );\n set((state) => ({\n timeEntries: state.timeEntries.map((t) =>\n t.id === id ? lowerEnumKeys(data.updateCrewTimeEntry, ENUM_KEYS.timeEntry) : t\n ),\n }));\n },\n removeTimeEntry: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewTimeEntry: boolean }>(\n REMOVE_TIME_ENTRY_MUTATION,\n { id },\n params,\n 'Unable to remove time entry'\n );\n set((state) => ({ timeEntries: state.timeEntries.filter((t) => t.id !== id) }));\n },\n\n // ── BOFF-3987: employee documents ──────────────────────────────\n fetchEmployeeDocuments: async (employeeId) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ employeeDocuments: CrewEmployeeDocument[] }>(\n EMPLOYEE_DOCUMENTS_QUERY,\n { employeeId },\n params,\n 'Unable to load employee documents'\n );\n set((state) => ({\n // Replace only this employee's documents; leave any other employee's\n // already-fetched documents in the flat cache untouched.\n employeeDocuments: [\n ...state.employeeDocuments.filter((d) => d.employeeId !== employeeId),\n ...data.employeeDocuments,\n ],\n }));\n },\n uploadEmployeeDocument: async ({ employeeId, file, title, category }) => {\n const params = useCrewFoundryStore.getState().initParams;\n\n const folder = await runGraphql<{ ensureFolderByPath: { id: string } }>(\n ENSURE_FOLDER_BY_PATH_MUTATION,\n { path: '/CrewFoundry/Employee Documents' },\n params,\n 'Unable to resolve the employee documents folder'\n );\n\n const extension = file.name.includes('.')\n ? file.name.substring(file.name.lastIndexOf('.') + 1)\n : '';\n const initiated = await runGraphql<{\n initiateUpload: { session: { id: string }; uploadUrl: string | null };\n }>(\n INITIATE_UPLOAD_MUTATION,\n {\n input: {\n fileName: file.name,\n fileSize: String(file.size),\n mimeType: file.type || 'application/octet-stream',\n extension,\n folderId: folder.ensureFolderByPath.id,\n },\n },\n params,\n 'Unable to start the document upload'\n );\n\n if (initiated.initiateUpload.uploadUrl) {\n const putResponse = await fetch(initiated.initiateUpload.uploadUrl, {\n method: 'PUT',\n headers: { 'Content-Type': file.type || 'application/octet-stream' },\n body: file,\n });\n if (!putResponse.ok) {\n throw new Error(`Failed to upload file bytes (status ${putResponse.status})`);\n }\n }\n\n const completed = await runGraphql<{ completeUpload: { file: { id: string } } }>(\n COMPLETE_UPLOAD_MUTATION,\n {\n input: {\n sessionId: initiated.initiateUpload.session.id,\n fileSize: String(file.size),\n folderId: folder.ensureFolderByPath.id,\n },\n },\n params,\n 'Unable to finish the document upload'\n );\n\n const attached = await runGraphql<{ attachEmployeeDocument: CrewEmployeeDocument }>(\n ATTACH_EMPLOYEE_DOCUMENT_MUTATION,\n {\n input: {\n employeeId,\n fileId: completed.completeUpload.file.id,\n title,\n category: category || undefined,\n },\n },\n params,\n 'Unable to attach the document to this employee'\n );\n\n set((state) => ({\n employeeDocuments: [attached.attachEmployeeDocument, ...state.employeeDocuments],\n }));\n },\n detachEmployeeDocument: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ detachEmployeeDocument: boolean }>(\n DETACH_EMPLOYEE_DOCUMENT_MUTATION,\n { id },\n params,\n 'Unable to remove this document'\n );\n set((state) => ({\n employeeDocuments: state.employeeDocuments.filter((d) => d.id !== id),\n }));\n },\n\n // ── BOFF-3983: onboarding ───────────────────────────────────────\n fetchOnboardings: async () => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ crewOnboardings: CrewOnboarding[] }>(\n ONBOARDINGS_QUERY,\n {},\n params,\n 'Unable to load onboarding'\n );\n set({\n onboardings: data.crewOnboardings.map(lowerOnboarding),\n onboardingsLoaded: true,\n });\n },\n createOnboarding: async (input) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewOnboarding: CrewOnboarding }>(\n CREATE_ONBOARDING_MUTATION,\n { input },\n params,\n 'Unable to start onboarding'\n );\n set((state) => ({\n onboardings: [lowerOnboarding(data.createCrewOnboarding), ...state.onboardings],\n }));\n },\n updateOnboarding: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewOnboarding: CrewOnboarding }>(\n UPDATE_ONBOARDING_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update onboarding'\n );\n set((state) => ({\n onboardings: state.onboardings.map((o) =>\n o.id === id ? lowerOnboarding(data.updateCrewOnboarding) : o\n ),\n }));\n },\n removeOnboarding: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewOnboarding: boolean }>(\n REMOVE_ONBOARDING_MUTATION,\n { id },\n params,\n 'Unable to remove onboarding'\n );\n set((state) => ({ onboardings: state.onboardings.filter((o) => o.id !== id) }));\n },\n createOnboardingTask: async (input) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewOnboardingTask: CrewOnboardingTask }>(\n CREATE_ONBOARDING_TASK_MUTATION,\n { input },\n params,\n 'Unable to create onboarding task'\n );\n const task = lowerEnumKeys(data.createCrewOnboardingTask, ENUM_KEYS.onboardingTask);\n set((state) => ({\n onboardings: state.onboardings.map((o) =>\n o.id === task.onboardingId\n ? {\n ...o,\n tasks: [...o.tasks, task],\n totalTaskCount: o.totalTaskCount + 1,\n }\n : o\n ),\n }));\n },\n updateOnboardingTask: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewOnboardingTask: CrewOnboardingTask }>(\n UPDATE_ONBOARDING_TASK_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update onboarding task'\n );\n const task = lowerEnumKeys(data.updateCrewOnboardingTask, ENUM_KEYS.onboardingTask);\n set((state) => ({\n onboardings: state.onboardings.map((o) =>\n o.id === task.onboardingId\n ? { ...o, tasks: o.tasks.map((t) => (t.id === id ? task : t)) }\n : o\n ),\n }));\n },\n removeOnboardingTask: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewOnboardingTask: boolean }>(\n REMOVE_ONBOARDING_TASK_MUTATION,\n { id },\n params,\n 'Unable to remove onboarding task'\n );\n set((state) => ({\n onboardings: state.onboardings.map((o) => {\n if (!o.tasks.some((t) => t.id === id)) return o;\n return {\n ...o,\n tasks: o.tasks.filter((t) => t.id !== id),\n totalTaskCount: Math.max(0, o.totalTaskCount - 1),\n };\n }),\n }));\n },\n toggleOnboardingTask: async (id, completed) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ toggleCrewOnboardingTask: CrewOnboardingTask }>(\n TOGGLE_ONBOARDING_TASK_MUTATION,\n { id, completed },\n params,\n 'Unable to update onboarding task'\n );\n const task = lowerEnumKeys(data.toggleCrewOnboardingTask, ENUM_KEYS.onboardingTask);\n set((state) => ({\n onboardings: state.onboardings.map((o) => {\n if (o.id !== task.onboardingId) return o;\n const tasks = o.tasks.map((t) => (t.id === id ? task : t));\n const completedTaskCount = tasks.filter((t) => t.completedAt).length;\n return {\n ...o,\n tasks,\n completedTaskCount,\n progressPercent:\n tasks.length === 0 ? 0 : Math.round((completedTaskCount / tasks.length) * 1000) / 10,\n };\n }),\n }));\n },\n}));\n"],"mappings":";;;AAoVA,IAAM,IAAkB,4pDAoBlB,IAAyC,4hFAiEzC,IAAwB,kRAmBxB,IAA2B,gQAC3B,IAA2B,mRAC3B,IAA2B,yEAC3B,IAAsB,+PACtB,IAAsB,kRACtB,IAA4B,qPAC5B,IAA4B,wQAC5B,I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IAAI,KAAK,MAAO,IAAqB,EAAM,SAAU,IAAK,GAAG;IACrF;IACD,EACH,EAAE;;CAEN,EAAE"}
1
+ {"version":3,"file":"crewfoundryStore.js","names":[],"sources":["../../../src/crewfoundry/store/crewfoundryStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type { OverviewMetric, WorkItem } from '../types';\n\n// ── Domain Types ────────────────────────────────────────────────\nexport interface Employee {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n department: string;\n position: string;\n status: 'active' | 'inactive' | 'on_leave' | 'terminated';\n type: 'full_time' | 'part_time' | 'contract' | 'intern';\n salary: number;\n startDate: string;\n avatar?: string;\n location: string;\n managerId?: string;\n phone: string;\n performanceScore: number;\n /** Real per-employee skill tags (backend default `[]`). */\n skills: string[];\n /** Exit date for terminated employees; ISO string or null while employed. */\n terminationDate?: string | null;\n}\n\nexport interface Department {\n id: string;\n name: string;\n headId: string;\n headName: string;\n employeeCount: number;\n budget: number;\n location: string;\n status: 'active' | 'restructuring';\n}\n\nexport interface JobPosting {\n id: string;\n title: string;\n department: string;\n location: string;\n type: 'full_time' | 'part_time' | 'contract' | 'remote';\n experienceLevel: 'entry' | 'mid' | 'senior' | 'lead' | 'executive';\n salaryMin: number;\n salaryMax: number;\n status: 'draft' | 'active' | 'paused' | 'closed' | 'filled';\n applicants: number;\n postedDate: string;\n deadline: string;\n description: string;\n requirements: string[];\n benefits: string[];\n}\n\nexport interface Candidate {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n position: string;\n status: 'new' | 'screening' | 'interview' | 'assessment' | 'offer' | 'hired' | 'rejected';\n appliedDate: string;\n resumeUrl?: string;\n rating: number;\n source: string;\n experience: number;\n skills: string[];\n currentCompany: string;\n notes: string;\n /** Date the candidate was hired; ISO string or null until hired. */\n hiredDate?: string | null;\n}\n\nexport interface Interview {\n id: string;\n candidateId: string;\n candidateName: string;\n position: string;\n interviewerName: string;\n date: string;\n time: string;\n type: 'phone' | 'video' | 'onsite' | 'panel' | 'technical';\n status: 'scheduled' | 'completed' | 'cancelled' | 'no_show';\n feedback?: string;\n rating?: number;\n}\n\nexport interface LearningCourse {\n id: string;\n title: string;\n category: string;\n instructor: string;\n duration: string;\n level: 'beginner' | 'intermediate' | 'advanced';\n enrolled: number;\n completed: number;\n rating: number;\n status: 'active' | 'draft' | 'archived';\n thumbnail?: string;\n description: string;\n modules: number;\n skills: string[];\n}\n\nexport interface LearningPath {\n id: string;\n title: string;\n description: string;\n courses: string[];\n duration: string;\n level: string;\n enrolled: number;\n completionRate: number;\n}\n\nexport interface MarketplaceService {\n id: string;\n title: string;\n provider: string;\n category: string;\n price: number;\n priceType: 'hourly' | 'fixed' | 'monthly';\n rating: number;\n reviews: number;\n description: string;\n deliveryTime: string;\n status: 'active' | 'paused' | 'pending';\n skills: string[];\n}\n\nexport interface Announcement {\n id: string;\n title: string;\n content: string;\n author: string;\n authorRole: string;\n category: 'general' | 'hr' | 'it' | 'emergency' | 'event';\n priority: 'low' | 'medium' | 'high' | 'urgent';\n isPinned: boolean;\n createdAt: string;\n viewCount: number;\n tags: string[];\n}\n\nexport interface Team {\n id: string;\n name: string;\n description: string;\n leadId: string;\n leadName: string;\n members: string[];\n memberCount: number;\n department: string;\n status: 'active' | 'forming' | 'disbanded';\n projectCount: number;\n createdAt: string;\n}\n\nexport interface Project {\n id: string;\n name: string;\n description: string;\n status: 'planning' | 'active' | 'on_hold' | 'completed' | 'cancelled';\n priority: 'low' | 'medium' | 'high' | 'critical';\n startDate: string;\n endDate: string;\n progress: number;\n budget: number;\n spent: number;\n teamId: string;\n teamName: string;\n managerId: string;\n managerName: string;\n tasks: number;\n completedTasks: number;\n}\n\nexport interface PayrollRecord {\n id: string;\n employeeId: string;\n employeeName: string;\n department: string;\n period: string;\n grossPay: number;\n deductions: number;\n netPay: number;\n status: 'draft' | 'processing' | 'approved' | 'paid' | 'failed';\n payDate: string;\n paymentMethod: string;\n}\n\nexport interface LeaveRequest {\n id: string;\n employeeId: string;\n employeeName: string;\n department: string;\n type: 'annual' | 'sick' | 'personal' | 'maternity' | 'paternity' | 'unpaid';\n startDate: string;\n endDate: string;\n days: number;\n status: 'pending' | 'approved' | 'rejected' | 'cancelled';\n reason: string;\n approverName?: string;\n}\n\nexport interface TimeEntry {\n id: string;\n employeeId: string;\n employeeName: string;\n date: string;\n clockIn: string;\n clockOut: string;\n totalHours: number;\n overtime: number;\n project: string;\n status: 'pending' | 'approved' | 'rejected';\n /** Whether the logged time is billable to a client (backend default `true`). */\n billable: boolean;\n}\n\nexport interface Notification {\n id: string;\n title: string;\n message: string;\n type: 'info' | 'success' | 'warning' | 'error';\n category: string;\n read: boolean;\n createdAt: string;\n actionUrl?: string;\n}\n\nexport interface Invoice {\n id: string;\n number: string;\n clientName: string;\n amount: number;\n status: 'draft' | 'sent' | 'paid' | 'overdue' | 'cancelled';\n issueDate: string;\n dueDate: string;\n items: { description: string; amount: number }[];\n}\n\nexport interface Vendor {\n id: string;\n name: string;\n category: string;\n contactPerson: string;\n email: string;\n phone: string;\n status: 'active' | 'inactive' | 'pending';\n contractValue: number;\n rating: number;\n}\n\nexport interface Client {\n id: string;\n name: string;\n industry: string;\n contactPerson: string;\n email: string;\n phone: string;\n status: 'active' | 'prospect' | 'churned';\n revenue: number;\n projects: number;\n since: string;\n}\n\n// BOFF-3987 — employee profile Documents tab. The binary + canonical file\n// metadata live in wspace-files-svc; this is just the (employee, file)\n// association crewfoundry owns.\nexport interface CrewEmployeeDocument {\n id: string;\n employeeId: string;\n fileId: string;\n title: string;\n category?: string | null;\n uploadedBy: string;\n uploadedAt: string;\n}\n\n// BOFF-3983 — requisition-to-hire onboarding tracker (mock cf-30).\nexport type OnboardingStage = 'offer' | 'paperwork' | 'it_setup' | 'training' | 'day_one';\nexport type OnboardingStatus = 'not_started' | 'in_progress' | 'completed' | 'cancelled';\n\nexport interface CrewOnboardingTask {\n id: string;\n onboardingId: string;\n stage: OnboardingStage;\n title: string;\n assigneeActorId?: string | null;\n assigneeName?: string | null;\n dueDate?: string | null;\n completedAt?: string | null;\n sortOrder: number;\n}\n\nexport interface CrewOnboarding {\n id: string;\n candidateId?: string | null;\n employeeId?: string | null;\n fullName: string;\n position: string;\n department?: string | null;\n startDate?: string | null;\n status: OnboardingStatus;\n currentStage: OnboardingStage;\n createdAt: string;\n tasks: CrewOnboardingTask[];\n totalTaskCount: number;\n completedTaskCount: number;\n progressPercent: number;\n}\n\nexport interface ExternalPaymentMethod {\n id: string;\n type: 'bank' | 'card';\n name: string;\n bank: string;\n last4: string;\n status: 'primary' | 'active';\n expiry?: string;\n}\n\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';\nimport type { Gateway } from '@burdenoff/fe-libs/shared/config';\n\ntype InitParams = {\n workspaceId?: string;\n authToken?: string;\n apiGatewayUrl?: string;\n actorId?: string;\n};\n\ntype GraphqlResult<T> = {\n data: T | null;\n errors?: Array<{ message: string }>;\n};\n\nconst BOOTSTRAP_QUERY = `\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n`;\n\nconst WORKSPACE_BOOTSTRAP_WITH_OVERLAP_QUERY = `\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n`;\n\nconst OVERLAP_BILLING_QUERY = `\n query CrewfoundryOverlapBilling {\n getBillingAccountsByOrg {\n id\n name\n isDefault\n paymentMethods {\n id\n type\n brand\n last4\n isDefault\n expiryMonth\n expiryYear\n }\n }\n }\n`;\n\nconst CREATE_EMPLOYEE_MUTATION = `mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }`;\nconst UPDATE_EMPLOYEE_MUTATION = `mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }`;\nconst REMOVE_EMPLOYEE_MUTATION = `mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }`;\nconst CREATE_JOB_MUTATION = `mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }`;\nconst UPDATE_JOB_MUTATION = `mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }`;\nconst CREATE_CANDIDATE_MUTATION = `mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }`;\nconst UPDATE_CANDIDATE_MUTATION = `mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }`;\nconst CREATE_ANNOUNCEMENT_MUTATION = `mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }`;\nconst CREATE_LEAVE_MUTATION = `mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }`;\nconst UPDATE_LEAVE_MUTATION = `mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }`;\n// Extra removes / updates for existing entities (delete + edit buttons).\nconst REMOVE_JOB_MUTATION = `mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }`;\nconst REMOVE_CANDIDATE_MUTATION = `mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }`;\nconst UPDATE_ANNOUNCEMENT_MUTATION = `mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }`;\nconst REMOVE_ANNOUNCEMENT_MUTATION = `mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }`;\n\n// Interview\nconst CREATE_INTERVIEW_MUTATION = `mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }`;\nconst UPDATE_INTERVIEW_MUTATION = `mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }`;\nconst REMOVE_INTERVIEW_MUTATION = `mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }`;\n\n// Vendor\nconst CREATE_VENDOR_MUTATION = `mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }`;\nconst UPDATE_VENDOR_MUTATION = `mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }`;\nconst REMOVE_VENDOR_MUTATION = `mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }`;\n\n// Client\nconst CREATE_CLIENT_MUTATION = `mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }`;\nconst UPDATE_CLIENT_MUTATION = `mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }`;\nconst REMOVE_CLIENT_MUTATION = `mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }`;\n\n// Team\nconst CREATE_TEAM_MUTATION = `mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }`;\nconst UPDATE_TEAM_MUTATION = `mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }`;\nconst REMOVE_TEAM_MUTATION = `mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }`;\n\n// Project\nconst CREATE_PROJECT_MUTATION = `mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }`;\nconst UPDATE_PROJECT_MUTATION = `mutation UpdateCrewProject($id: ID!, $input: UpdateCrewProjectInput!) { updateCrewProject(id: $id, input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }`;\nconst REMOVE_PROJECT_MUTATION = `mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }`;\n\n// Department\nconst CREATE_DEPARTMENT_MUTATION = `mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }`;\nconst UPDATE_DEPARTMENT_MUTATION = `mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }`;\nconst REMOVE_DEPARTMENT_MUTATION = `mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }`;\n\n// PayrollRecord\nconst CREATE_PAYROLL_MUTATION = `mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }`;\nconst UPDATE_PAYROLL_MUTATION = `mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }`;\nconst REMOVE_PAYROLL_MUTATION = `mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }`;\n\n// TimeEntry\nconst CREATE_TIME_ENTRY_MUTATION = `mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }`;\nconst UPDATE_TIME_ENTRY_MUTATION = `mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }`;\nconst REMOVE_TIME_ENTRY_MUTATION = `mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }`;\n\n// BOFF-3987 — employee documents\nconst EMPLOYEE_DOCUMENTS_QUERY = `query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }`;\nconst ATTACH_EMPLOYEE_DOCUMENT_MUTATION = `mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }`;\nconst DETACH_EMPLOYEE_DOCUMENT_MUTATION = `mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }`;\n// Files-svc presigned upload dance (same 3-step protocol fe-libs' SaveToFilesButton\n// uses — see ~/products/dev/platform/context/files/), replicated here with the\n// store's own graphqlFetch helper instead of Apollo since this MFE has no Apollo\n// client wired in.\nconst ENSURE_FOLDER_BY_PATH_MUTATION = `mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }`;\nconst INITIATE_UPLOAD_MUTATION = `mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }`;\nconst COMPLETE_UPLOAD_MUTATION = `mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }`;\n\n// BOFF-3983 — onboarding\nconst ONBOARDINGS_QUERY = `query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }`;\nconst CREATE_ONBOARDING_MUTATION = `mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }`;\nconst UPDATE_ONBOARDING_MUTATION = `mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }`;\nconst REMOVE_ONBOARDING_MUTATION = `mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }`;\nconst CREATE_ONBOARDING_TASK_MUTATION = `mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }`;\nconst UPDATE_ONBOARDING_TASK_MUTATION = `mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }`;\nconst REMOVE_ONBOARDING_TASK_MUTATION = `mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }`;\nconst TOGGLE_ONBOARDING_TASK_MUTATION = `mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }`;\n\nconst normalizeStatus = (value: string) => value.toUpperCase().replaceAll('-', '_');\n\nconst sharedOwnerError = (capability: string) =>\n new Error(`${capability} isn't available in CrewFoundry.`);\n\n// The backend returns enum values in UPPER_SNAKE case (e.g. \"ACTIVE\", \"FULL_TIME\", \"HIGH\"),\n// but the frontend model + every comparison/filter/badge uses lower_snake ('active', 'full_time').\n// Normalization is per-entity, NOT per-key: fields like `category`/`level` are genuine enums on\n// some entities (Announcement.category, Course.level) yet free text on others (Course.category =\n// \"Programming\", Vendor.category, LearningPath.level) — a global key list would corrupt those.\n// Each list below mirrors exactly the string-literal-union fields declared on that entity's interface.\nconst ENUM_KEYS = {\n employee: ['status', 'type'],\n department: ['status'],\n jobPosting: ['type', 'experienceLevel', 'status'],\n candidate: ['status'],\n interview: ['type', 'status'],\n course: ['level', 'status'],\n marketplaceService: ['priceType', 'status'],\n announcement: ['category', 'priority'],\n team: ['status'],\n project: ['status', 'priority'],\n payrollRecord: ['status'],\n leaveRequest: ['type', 'status'],\n timeEntry: ['status'],\n notification: ['type'],\n paymentMethod: ['type', 'status'],\n invoice: ['status'],\n vendor: ['status'],\n client: ['status'],\n onboarding: ['status', 'currentStage'],\n onboardingTask: ['stage'],\n} as const;\n\n// Lowercase only the given enum keys on an entity read back from the backend; leave every other\n// (free-text) field untouched. Idempotent — safe on already-lowercase values (some subgraphs\n// return lowercase already). This is the read-path inverse of `normalizeStatus`.\nconst lowerEnumKeys = <T>(entity: T, keys: readonly string[]): T => {\n if (!entity || typeof entity !== 'object') return entity;\n const out = { ...(entity as Record<string, unknown>) };\n for (const key of keys) {\n const value = out[key];\n if (typeof value === 'string') out[key] = value.toLowerCase();\n }\n return out as T;\n};\n\n// lowerEnumKeys only lowercases top-level string fields; CrewOnboarding nests\n// a `tasks` array whose own `stage` field also needs the same treatment, so\n// this composes lowerEnumKeys over both levels rather than duplicating it.\nconst lowerOnboarding = (onboarding: CrewOnboarding): CrewOnboarding => {\n const lowered = lowerEnumKeys(onboarding, ENUM_KEYS.onboarding);\n return {\n ...lowered,\n tasks: (onboarding.tasks ?? []).map((task) => lowerEnumKeys(task, ENUM_KEYS.onboardingTask)),\n };\n};\n\nconst toDateOnly = (value?: string | null) => (value ? value.slice(0, 10) : 'TBD');\n\nconst asRecord = (value: unknown): Record<string, unknown> | null => {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n return null;\n }\n return value as Record<string, unknown>;\n};\n\nconst asNumber = (value: unknown): number | null => (typeof value === 'number' ? value : null);\n\nconst asString = (value: unknown): string | null => (typeof value === 'string' ? value : null);\n\nconst mapProjectStatus = (value: string): Project['status'] => {\n const status = value.toLowerCase();\n if (status === 'active') return 'active';\n if (status === 'completed') return 'completed';\n if (status === 'cancelled') return 'cancelled';\n if (status === 'archived') return 'on_hold';\n return 'planning';\n};\n\nconst mapGroupStatus = (value: string): Team['status'] => {\n const status = value.toLowerCase();\n if (status === 'active') return 'active';\n if (status === 'inactive' || status === 'archived' || status === 'deleted') return 'disbanded';\n return 'forming';\n};\n\ntype OverlapWorkspaceResponse = {\n projects: {\n items: Array<{\n id: string;\n name: string;\n key: string;\n creatorId: string;\n status: string;\n config?: unknown;\n archived: boolean;\n createdAt: string;\n updatedAt: string;\n }>;\n };\n groups: {\n edges: Array<{\n node: {\n id: string;\n name: string;\n description?: string | null;\n groupType?: string | null;\n status: string;\n memberCount: number;\n ownerId: string;\n createdAt: string;\n };\n }>;\n };\n conversations: {\n edges: Array<{\n node: {\n id: string;\n title?: string | null;\n description?: string | null;\n state: string;\n unreadCount: number;\n memberCount: number;\n updatedAt: string;\n };\n }>;\n };\n};\n\ntype WorkspaceBootstrapWithOverlapResponse = BootstrapPayload & OverlapWorkspaceResponse;\n\ntype OverlapBillingResponse = {\n getBillingAccountsByOrg: Array<{\n id?: string | null;\n name?: string | null;\n isDefault?: boolean | null;\n paymentMethods?: Array<{\n id: string;\n type: string;\n brand?: string | null;\n last4?: string | null;\n isDefault: boolean;\n expiryMonth?: number | null;\n expiryYear?: number | null;\n } | null> | null;\n }>;\n};\n\ntype BootstrapPayload = {\n crewfoundryBootstrap: {\n employees: Employee[];\n departments: Department[];\n jobPostings: JobPosting[];\n candidates: Candidate[];\n interviews: Interview[];\n announcements: Announcement[];\n teams: Team[];\n projects: Project[];\n payrollRecords: PayrollRecord[];\n leaveRequests: LeaveRequest[];\n timeEntries: TimeEntry[];\n vendors: Vendor[];\n clients: Client[];\n };\n};\n\nconst mapOverlapProjects = (\n projects: OverlapWorkspaceResponse['projects']['items'],\n teams: Team[]\n) =>\n projects.map((project, index): Project => {\n const config = asRecord(project.config);\n const budget = asNumber(config?.budget) ?? 25000 + index * 2500;\n const spent =\n asNumber(config?.spent) ?? Math.round(budget * (project.status === 'COMPLETED' ? 1 : 0.62));\n const progress = asNumber(config?.progress) ?? (project.status === 'COMPLETED' ? 100 : 58);\n const tasks = asNumber(config?.tasks) ?? 20 + (index % 9);\n const completedTasks = asNumber(config?.completedTasks) ?? Math.round((progress / 100) * tasks);\n const team = teams[index % Math.max(teams.length, 1)];\n\n return {\n id: project.id,\n name: project.name,\n description: asString(config?.description) || `${project.key} delivery plan`,\n status: mapProjectStatus(project.status),\n priority: (asString(config?.priority)?.toLowerCase() as Project['priority']) || 'medium',\n startDate: toDateOnly(project.createdAt),\n endDate: toDateOnly(project.updatedAt),\n progress,\n budget,\n spent,\n teamId: team?.id || 'unassigned',\n teamName: team?.name || 'Unassigned Team',\n managerId: project.creatorId,\n managerName: `Lead ${project.creatorId.slice(0, 8)}`,\n tasks,\n completedTasks,\n };\n });\n\nconst mapOverlapTeams = (groups: OverlapWorkspaceResponse['groups']['edges']): Team[] =>\n groups.map(({ node }) => ({\n id: node.id,\n name: node.name,\n description: node.description || `${node.name} team workspace`,\n leadId: node.ownerId,\n leadName: `Lead ${node.ownerId.slice(0, 8)}`,\n members: [],\n memberCount: node.memberCount,\n department: node.groupType?.toLowerCase().replaceAll('_', ' ') || 'operations',\n status: mapGroupStatus(node.status),\n projectCount: 0,\n createdAt: toDateOnly(node.createdAt),\n }));\n\nconst mapConversationNotifications = (\n conversations: OverlapWorkspaceResponse['conversations']['edges']\n): Notification[] =>\n conversations\n .filter(({ node }) => node.unreadCount > 0)\n .map(({ node }) => ({\n id: `conversation-${node.id}`,\n title: node.title || 'Conversation update',\n message: `${node.unreadCount} unread in ${node.memberCount}-member channel`,\n type: node.state.toLowerCase() === 'active' ? 'info' : 'warning',\n category: 'communications',\n read: false,\n createdAt: node.updatedAt,\n actionUrl: `/crewfoundry/communications/messages-page`,\n }));\n\nconst mapBillingMethods = (data: OverlapBillingResponse): ExternalPaymentMethod[] => {\n const account =\n data.getBillingAccountsByOrg.find((item) => item?.isDefault && item?.id) ||\n data.getBillingAccountsByOrg.find((item) => item?.id);\n\n if (!account?.id) {\n return [];\n }\n\n return (account.paymentMethods || [])\n .filter((item): item is NonNullable<typeof item> => Boolean(item))\n .map((method) => {\n const month = method.expiryMonth ? String(method.expiryMonth).padStart(2, '0') : undefined;\n const year = method.expiryYear ? String(method.expiryYear) : undefined;\n const isBank = method.type === 'BANK_TRANSFER' || method.type === 'NETBANKING';\n\n return {\n id: method.id,\n type: isBank ? 'bank' : 'card',\n name: `${account.name || 'Billing'} ${isBank ? 'Bank Account' : 'Card'}`,\n bank: method.brand || account.name || 'Billing Account',\n last4: method.last4 || '0000',\n status: method.isDefault ? 'primary' : 'active',\n expiry: month && year ? `${month}/${year}` : undefined,\n };\n });\n};\n\nconst parseGraphql = <T>(result: GraphqlResult<T>, fallbackMessage: string): T => {\n if (result.errors?.length) {\n throw new Error(result.errors[0]?.message || fallbackMessage);\n }\n if (!result.data) {\n throw new Error(fallbackMessage);\n }\n return result.data;\n};\n\n// Fields that live on the client-side entity objects but are NEVER accepted by\n// any Crew* Create/Update GraphQL input — either a client-generated temp `id`,\n// a server-set timestamp, or a server-derived rollup counter. Sending them makes\n// the gateway reject the whole operation with a GraphQL validation error (which\n// the public gateway masks to a generic INTERNAL_SERVER_ERROR), so no row is\n// ever written. Stripping them centrally keeps every create/update mutation valid\n// without each caller having to hand-pick input fields. (Counters like rating /\n// applicants / viewCount that a few inputs DO accept are safe to drop too — they\n// default server-side, and the UI never lets a user set a derived rollup.)\nconst MUTATION_INPUT_OMIT_KEYS = new Set<string>([\n 'id',\n 'createdAt',\n 'createdOn',\n 'updatedAt',\n 'deletedAt',\n 'employeeCount',\n 'memberCount',\n 'projectCount',\n 'enrolled',\n 'completed',\n 'completionRate',\n 'reviews',\n 'rating',\n 'tasks',\n 'completedTasks',\n 'spent',\n 'progress',\n 'applicants',\n 'viewCount',\n 'revenue',\n 'projects',\n]);\n\nconst sanitizeMutationInput = (\n variables: Record<string, unknown> | undefined\n): Record<string, unknown> | undefined => {\n if (!variables) {\n return variables;\n }\n const input = variables.input;\n if (!input || typeof input !== 'object' || Array.isArray(input)) {\n return variables;\n }\n const cleaned: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(input as Record<string, unknown>)) {\n if (!MUTATION_INPUT_OMIT_KEYS.has(key)) {\n cleaned[key] = value;\n }\n }\n return { ...variables, input: cleaned };\n};\n\nconst runGraphql = async <T>(\n query: string,\n variables: Record<string, unknown> | undefined,\n params: InitParams,\n fallbackMessage: string,\n gateway: Gateway = 'workspace'\n) => {\n const result = await graphqlFetch<T>({\n gateway,\n query,\n variables: sanitizeMutationInput(variables),\n authToken: params.authToken,\n // `apiGatewayUrl` is the workspace gateway base (dev override only). The\n // global gateway (e.g. billing overlap) resolves its own URL from fe-libs\n // config, so never force the workspace base onto a global-gateway call.\n baseUrl: gateway === 'workspace' ? params.apiGatewayUrl : undefined,\n extraHeaders: {\n ...(gateway === 'workspace' && params.workspaceId\n ? { 'x-workspace-id': params.workspaceId }\n : {}),\n },\n });\n return parseGraphql(result as GraphqlResult<T>, fallbackMessage);\n};\n\n// Overlap queries are best-effort: they enrich the crew bootstrap with real\n// wspace/global platform data but must never block the page if a field is\n// unavailable in a given environment. Swallow to null, but surface the reason\n// in dev so schema-arg drift (the historical failure mode) is visible.\n// Vite injects `import.meta.env.DEV`, but this package's tsconfig does not pull\n// in `vite/client` ambient types — narrow through a typed shape instead of `any`.\nconst isDevEnv = (): boolean => Boolean((import.meta as { env?: { DEV?: boolean } }).env?.DEV);\n\nconst runOverlap = async <T>(\n query: string,\n variables: Record<string, unknown> | undefined,\n params: InitParams,\n fallbackMessage: string,\n gateway: Gateway = 'workspace'\n): Promise<T | null> => {\n try {\n return await runGraphql<T>(query, variables, params, fallbackMessage, gateway);\n } catch (error) {\n if (isDevEnv()) {\n console.warn(`[crewfoundry] overlap query skipped: ${fallbackMessage}`, error);\n }\n return null;\n }\n};\n\n// ── Store Interface ─────────────────────────────────────────────\ninterface CrewFoundryState {\n // Overview\n metrics: OverviewMetric[];\n workItems: WorkItem[];\n selectedView: string;\n\n // Domain data\n employees: Employee[];\n departments: Department[];\n jobPostings: JobPosting[];\n candidates: Candidate[];\n interviews: Interview[];\n courses: LearningCourse[];\n learningPaths: LearningPath[];\n marketplaceServices: MarketplaceService[];\n announcements: Announcement[];\n teams: Team[];\n projects: Project[];\n payrollRecords: PayrollRecord[];\n leaveRequests: LeaveRequest[];\n timeEntries: TimeEntry[];\n notifications: Notification[];\n paymentMethods: ExternalPaymentMethod[];\n invoices: Invoice[];\n vendors: Vendor[];\n clients: Client[];\n employeeDocuments: CrewEmployeeDocument[];\n onboardings: CrewOnboarding[];\n onboardingsLoaded: boolean;\n\n // Actions\n initialized: boolean;\n loading: boolean;\n error: string | null;\n initParams: InitParams;\n initializeData: (params: InitParams) => Promise<void>;\n setSelectedView: (view: string) => void;\n setWorkItems: (items: WorkItem[]) => void;\n addEmployee: (employee: Employee) => Promise<void>;\n updateEmployee: (id: string, updates: Partial<Employee>) => Promise<void>;\n removeEmployee: (id: string) => Promise<void>;\n addJobPosting: (job: JobPosting) => Promise<void>;\n updateJobPosting: (id: string, updates: Partial<JobPosting>) => Promise<void>;\n addCandidate: (candidate: Candidate) => Promise<void>;\n updateCandidate: (id: string, updates: Partial<Candidate>) => Promise<void>;\n removeJobPosting: (id: string) => Promise<void>;\n removeCandidate: (id: string) => Promise<void>;\n addAnnouncement: (announcement: Announcement) => Promise<void>;\n updateAnnouncement: (id: string, updates: Partial<Announcement>) => Promise<void>;\n removeAnnouncement: (id: string) => Promise<void>;\n addLeaveRequest: (request: LeaveRequest) => Promise<void>;\n updateLeaveRequest: (id: string, updates: Partial<LeaveRequest>) => Promise<void>;\n addInterview: (interview: Interview) => Promise<void>;\n updateInterview: (id: string, updates: Partial<Interview>) => Promise<void>;\n removeInterview: (id: string) => Promise<void>;\n addInvoice: (invoice: Invoice) => Promise<void>;\n updateInvoice: (id: string, updates: Partial<Invoice>) => Promise<void>;\n removeInvoice: (id: string) => Promise<void>;\n addVendor: (vendor: Vendor) => Promise<void>;\n updateVendor: (id: string, updates: Partial<Vendor>) => Promise<void>;\n removeVendor: (id: string) => Promise<void>;\n addClient: (client: Client) => Promise<void>;\n updateClient: (id: string, updates: Partial<Client>) => Promise<void>;\n removeClient: (id: string) => Promise<void>;\n addTeam: (team: Team) => Promise<void>;\n updateTeam: (id: string, updates: Partial<Team>) => Promise<void>;\n removeTeam: (id: string) => Promise<void>;\n addProject: (project: Project) => Promise<void>;\n updateProject: (id: string, updates: Partial<Project>) => Promise<void>;\n removeProject: (id: string) => Promise<void>;\n addMarketplaceService: (service: MarketplaceService) => Promise<void>;\n updateMarketplaceService: (id: string, updates: Partial<MarketplaceService>) => Promise<void>;\n removeMarketplaceService: (id: string) => Promise<void>;\n addDepartment: (department: Department) => Promise<void>;\n updateDepartment: (id: string, updates: Partial<Department>) => Promise<void>;\n removeDepartment: (id: string) => Promise<void>;\n addCourse: (course: LearningCourse) => Promise<void>;\n updateCourse: (id: string, updates: Partial<LearningCourse>) => Promise<void>;\n removeCourse: (id: string) => Promise<void>;\n enrollCourse: (id: string) => Promise<void>;\n addLearningPath: (path: LearningPath) => Promise<void>;\n updateLearningPath: (id: string, updates: Partial<LearningPath>) => Promise<void>;\n removeLearningPath: (id: string) => Promise<void>;\n addPayrollRecord: (record: PayrollRecord) => Promise<void>;\n updatePayrollRecord: (id: string, updates: Partial<PayrollRecord>) => Promise<void>;\n removePayrollRecord: (id: string) => Promise<void>;\n addTimeEntry: (entry: TimeEntry) => Promise<void>;\n updateTimeEntry: (id: string, updates: Partial<TimeEntry>) => Promise<void>;\n removeTimeEntry: (id: string) => Promise<void>;\n markNotificationRead: (id: string) => Promise<void>;\n markAllNotificationsRead: () => Promise<void>;\n\n // BOFF-3987 — employee documents\n fetchEmployeeDocuments: (employeeId: string) => Promise<void>;\n uploadEmployeeDocument: (params: {\n employeeId: string;\n file: File;\n title: string;\n category?: string;\n }) => Promise<void>;\n detachEmployeeDocument: (id: string) => Promise<void>;\n\n // BOFF-3983 — onboarding\n fetchOnboardings: () => Promise<void>;\n createOnboarding: (input: {\n candidateId?: string;\n employeeId?: string;\n fullName: string;\n position: string;\n department?: string;\n startDate?: string;\n }) => Promise<void>;\n updateOnboarding: (id: string, updates: Partial<CrewOnboarding>) => Promise<void>;\n removeOnboarding: (id: string) => Promise<void>;\n createOnboardingTask: (input: {\n onboardingId: string;\n stage: OnboardingStage;\n title: string;\n assigneeActorId?: string;\n assigneeName?: string;\n dueDate?: string;\n sortOrder?: number;\n }) => Promise<void>;\n updateOnboardingTask: (id: string, updates: Partial<CrewOnboardingTask>) => Promise<void>;\n removeOnboardingTask: (id: string) => Promise<void>;\n toggleOnboardingTask: (id: string, completed: boolean) => Promise<void>;\n}\n\nexport const useCrewFoundryStore = create<CrewFoundryState>((set) => ({\n // Overview\n metrics: [\n { label: 'Total Employees', value: '247', trend: '+5.2%' },\n { label: 'Open Positions', value: '24', trend: '+3 this week' },\n { label: 'Hiring Pipeline', value: '347', trend: '+52 applications' },\n { label: 'Employee Satisfaction', value: '4.6/5', trend: '+0.2' },\n ],\n workItems: [\n {\n id: 'w1',\n title: 'Q1 Performance Review Cycle',\n status: 'active',\n owner: 'HR',\n updatedAt: '2h ago',\n },\n {\n id: 'w2',\n title: 'New Health Benefits Enrollment',\n status: 'active',\n owner: 'Benefits',\n updatedAt: '5h ago',\n },\n {\n id: 'w3',\n title: 'Engineering Headcount Planning',\n status: 'at_risk',\n owner: 'Recruiting',\n updatedAt: '1d ago',\n },\n {\n id: 'w4',\n title: 'Employee Onboarding Automation',\n status: 'completed',\n owner: 'HR Ops',\n updatedAt: '2d ago',\n },\n ],\n selectedView: 'overview',\n initialized: false,\n loading: false,\n error: null,\n initParams: {},\n\n // Domain data\n employees: [],\n departments: [],\n jobPostings: [],\n candidates: [],\n interviews: [],\n courses: [],\n learningPaths: [],\n marketplaceServices: [],\n announcements: [],\n teams: [],\n projects: [],\n payrollRecords: [],\n leaveRequests: [],\n timeEntries: [],\n notifications: [],\n paymentMethods: [],\n invoices: [],\n vendors: [],\n clients: [],\n employeeDocuments: [],\n onboardings: [],\n onboardingsLoaded: false,\n\n // Actions\n initializeData: async (params) => {\n if (!params.workspaceId) {\n return;\n }\n set({ loading: true, error: null, initParams: params });\n try {\n const [workspaceWithOverlapData, billingOverlap] = await Promise.all([\n runOverlap<WorkspaceBootstrapWithOverlapResponse>(\n WORKSPACE_BOOTSTRAP_WITH_OVERLAP_QUERY,\n {\n workspaceId: params.workspaceId,\n projectPagination: { limit: 50, offset: 0 },\n groupFirst: 30,\n conversationFirst: 30,\n },\n params,\n 'Unable to load workspace bootstrap with overlap data'\n ),\n // getBillingAccountsByOrg lives on the GLOBAL supergraph, not wspace —\n // route it to the global gateway (org context comes from the x-org-id\n // header the gateway auto-attaches for global-gateway calls).\n runOverlap<OverlapBillingResponse>(\n OVERLAP_BILLING_QUERY,\n undefined,\n params,\n 'Unable to load overlap billing data',\n 'global'\n ),\n ]);\n\n const bootstrap = workspaceWithOverlapData\n ? workspaceWithOverlapData.crewfoundryBootstrap\n : (\n await runGraphql<BootstrapPayload>(\n BOOTSTRAP_QUERY,\n undefined,\n params,\n 'Unable to load CrewFoundry data'\n )\n ).crewfoundryBootstrap;\n\n const overlapTeams = workspaceWithOverlapData\n ? mapOverlapTeams(workspaceWithOverlapData.groups.edges)\n : [];\n const overlapProjects = workspaceWithOverlapData\n ? mapOverlapProjects(workspaceWithOverlapData.projects.items, overlapTeams)\n : [];\n const overlapNotifications = workspaceWithOverlapData\n ? mapConversationNotifications(workspaceWithOverlapData.conversations.edges)\n : [];\n\n const teams = overlapTeams.length > 0 ? overlapTeams : bootstrap.teams;\n const projects = overlapProjects.length > 0 ? overlapProjects : bootstrap.projects;\n const notifications = overlapNotifications;\n const paymentMethods = billingOverlap ? mapBillingMethods(billingOverlap) : [];\n\n // Normalize enum casing (UPPER_SNAKE from the backend -> lower_snake) once, per entity, so\n // every downstream count/filter/badge and the metrics below all operate on the same casing.\n const nEmployees = bootstrap.employees.map((e) => lowerEnumKeys(e, ENUM_KEYS.employee));\n const nDepartments = bootstrap.departments.map((d) => lowerEnumKeys(d, ENUM_KEYS.department));\n const nJobPostings = bootstrap.jobPostings.map((j) => lowerEnumKeys(j, ENUM_KEYS.jobPosting));\n const nCandidates = bootstrap.candidates.map((c) => lowerEnumKeys(c, ENUM_KEYS.candidate));\n const nInterviews = bootstrap.interviews.map((i) => lowerEnumKeys(i, ENUM_KEYS.interview));\n const nCourses: LearningCourse[] = [];\n const nMarketplaceServices: MarketplaceService[] = [];\n const nAnnouncements = bootstrap.announcements.map((a) =>\n lowerEnumKeys(a, ENUM_KEYS.announcement)\n );\n const nTeams = teams.map((t) => lowerEnumKeys(t, ENUM_KEYS.team));\n const nProjects = projects.map((p) => lowerEnumKeys(p, ENUM_KEYS.project));\n const nPayrollRecords = bootstrap.payrollRecords.map((r) =>\n lowerEnumKeys(r, ENUM_KEYS.payrollRecord)\n );\n const nLeaveRequests = bootstrap.leaveRequests.map((r) =>\n lowerEnumKeys(r, ENUM_KEYS.leaveRequest)\n );\n const nTimeEntries = bootstrap.timeEntries.map((t) => lowerEnumKeys(t, ENUM_KEYS.timeEntry));\n const nNotifications = notifications.map((n) => lowerEnumKeys(n, ENUM_KEYS.notification));\n const nPaymentMethods = paymentMethods.map((m) => lowerEnumKeys(m, ENUM_KEYS.paymentMethod));\n const nInvoices: Invoice[] = [];\n const nVendors = bootstrap.vendors.map((v) => lowerEnumKeys(v, ENUM_KEYS.vendor));\n const nClients = bootstrap.clients.map((c) => lowerEnumKeys(c, ENUM_KEYS.client));\n\n set({\n employees: nEmployees,\n departments: nDepartments,\n jobPostings: nJobPostings,\n candidates: nCandidates,\n interviews: nInterviews,\n courses: nCourses,\n learningPaths: [],\n marketplaceServices: nMarketplaceServices,\n announcements: nAnnouncements,\n teams: nTeams,\n projects: nProjects,\n payrollRecords: nPayrollRecords,\n leaveRequests: nLeaveRequests,\n timeEntries: nTimeEntries,\n notifications: nNotifications,\n paymentMethods: nPaymentMethods,\n invoices: nInvoices,\n vendors: nVendors,\n clients: nClients,\n metrics: [\n { label: 'Total Employees', value: String(nEmployees.length), trend: 'Live' },\n {\n label: 'Open Positions',\n value: String(nJobPostings.filter((j) => j.status === 'active').length),\n trend: 'Live',\n },\n { label: 'Hiring Pipeline', value: String(nCandidates.length), trend: 'Live' },\n {\n label: 'Cross-Team Projects',\n value: String(nProjects.filter((project) => project.status === 'active').length),\n trend: 'Live',\n },\n ],\n initialized: true,\n loading: false,\n });\n } catch (error) {\n set({\n error: error instanceof Error ? error.message : 'Unable to load CrewFoundry data',\n loading: false,\n });\n }\n },\n setSelectedView: (view) => set({ selectedView: view }),\n setWorkItems: (items) => set({ workItems: items }),\n addEmployee: async (employee) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewEmployee: Employee }>(\n CREATE_EMPLOYEE_MUTATION,\n {\n input: {\n ...employee,\n status: normalizeStatus(employee.status),\n type: normalizeStatus(employee.type),\n },\n },\n params,\n 'Unable to create employee'\n );\n set((state) => ({\n employees: [lowerEnumKeys(data.createCrewEmployee, ENUM_KEYS.employee), ...state.employees],\n }));\n },\n updateEmployee: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const payload = {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n ...(updates.type ? { type: normalizeStatus(updates.type) } : {}),\n };\n const data = await runGraphql<{ updateCrewEmployee: Employee }>(\n UPDATE_EMPLOYEE_MUTATION,\n { id, input: payload },\n params,\n 'Unable to update employee'\n );\n set((state) => ({\n employees: state.employees.map((e) =>\n e.id === id ? lowerEnumKeys(data.updateCrewEmployee, ENUM_KEYS.employee) : e\n ),\n }));\n },\n removeEmployee: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewEmployee: boolean }>(\n REMOVE_EMPLOYEE_MUTATION,\n { id },\n params,\n 'Unable to remove employee'\n );\n set((state) => ({ employees: state.employees.filter((e) => e.id !== id) }));\n },\n addJobPosting: async (job) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewJobPosting: JobPosting }>(\n CREATE_JOB_MUTATION,\n {\n input: {\n ...job,\n status: normalizeStatus(job.status),\n },\n },\n params,\n 'Unable to create job posting'\n );\n set((state) => ({\n jobPostings: [\n lowerEnumKeys(data.createCrewJobPosting, ENUM_KEYS.jobPosting),\n ...state.jobPostings,\n ],\n }));\n },\n updateJobPosting: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewJobPosting: JobPosting }>(\n UPDATE_JOB_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update job posting'\n );\n set((state) => ({\n jobPostings: state.jobPostings.map((j) =>\n j.id === id ? lowerEnumKeys(data.updateCrewJobPosting, ENUM_KEYS.jobPosting) : j\n ),\n }));\n },\n addCandidate: async (candidate) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewCandidate: Candidate }>(\n CREATE_CANDIDATE_MUTATION,\n { input: { ...candidate, status: normalizeStatus(candidate.status) } },\n params,\n 'Unable to create candidate'\n );\n set((state) => ({\n candidates: [\n lowerEnumKeys(data.createCrewCandidate, ENUM_KEYS.candidate),\n ...state.candidates,\n ],\n }));\n },\n updateCandidate: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewCandidate: Candidate }>(\n UPDATE_CANDIDATE_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update candidate'\n );\n set((state) => ({\n candidates: state.candidates.map((c) =>\n c.id === id ? lowerEnumKeys(data.updateCrewCandidate, ENUM_KEYS.candidate) : c\n ),\n }));\n },\n addAnnouncement: async (announcement) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewAnnouncement: Announcement }>(\n CREATE_ANNOUNCEMENT_MUTATION,\n { input: announcement },\n params,\n 'Unable to create announcement'\n );\n set((state) => ({\n announcements: [\n lowerEnumKeys(data.createCrewAnnouncement, ENUM_KEYS.announcement),\n ...state.announcements,\n ],\n }));\n },\n addLeaveRequest: async (request) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewLeaveRequest: LeaveRequest }>(\n CREATE_LEAVE_MUTATION,\n {\n input: {\n ...request,\n type: normalizeStatus(request.type),\n status: normalizeStatus(request.status),\n },\n },\n params,\n 'Unable to create leave request'\n );\n set((state) => ({\n leaveRequests: [\n lowerEnumKeys(data.createCrewLeaveRequest, ENUM_KEYS.leaveRequest),\n ...state.leaveRequests,\n ],\n }));\n },\n updateLeaveRequest: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewLeaveRequest: LeaveRequest }>(\n UPDATE_LEAVE_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.type ? { type: normalizeStatus(updates.type) } : {}),\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update leave request'\n );\n set((state) => ({\n leaveRequests: state.leaveRequests.map((l) =>\n l.id === id ? lowerEnumKeys(data.updateCrewLeaveRequest, ENUM_KEYS.leaveRequest) : l\n ),\n }));\n },\n markNotificationRead: async (id) => {\n set((state) => ({\n notifications: state.notifications.map((n) => (n.id === id ? { ...n, read: true } : n)),\n }));\n },\n markAllNotificationsRead: async () => {\n set((state) => ({ notifications: state.notifications.map((n) => ({ ...n, read: true })) }));\n },\n\n // ── Extra removes for existing entities ───────────────────────\n removeJobPosting: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewJobPosting: boolean }>(\n REMOVE_JOB_MUTATION,\n { id },\n params,\n 'Unable to remove job posting'\n );\n set((state) => ({ jobPostings: state.jobPostings.filter((j) => j.id !== id) }));\n },\n removeCandidate: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewCandidate: boolean }>(\n REMOVE_CANDIDATE_MUTATION,\n { id },\n params,\n 'Unable to remove candidate'\n );\n set((state) => ({ candidates: state.candidates.filter((c) => c.id !== id) }));\n },\n updateAnnouncement: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewAnnouncement: Announcement }>(\n UPDATE_ANNOUNCEMENT_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update announcement'\n );\n set((state) => ({\n announcements: state.announcements.map((a) =>\n a.id === id ? lowerEnumKeys(data.updateCrewAnnouncement, ENUM_KEYS.announcement) : a\n ),\n }));\n },\n removeAnnouncement: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewAnnouncement: boolean }>(\n REMOVE_ANNOUNCEMENT_MUTATION,\n { id },\n params,\n 'Unable to remove announcement'\n );\n set((state) => ({ announcements: state.announcements.filter((a) => a.id !== id) }));\n },\n\n // ── Interview (enum: type, status) ────────────────────────────\n addInterview: async (interview) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewInterview: Interview }>(\n CREATE_INTERVIEW_MUTATION,\n {\n input: {\n ...interview,\n type: normalizeStatus(interview.type),\n status: normalizeStatus(interview.status),\n },\n },\n params,\n 'Unable to schedule interview'\n );\n set((state) => ({\n interviews: [\n lowerEnumKeys(data.createCrewInterview, ENUM_KEYS.interview),\n ...state.interviews,\n ],\n }));\n },\n updateInterview: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewInterview: Interview }>(\n UPDATE_INTERVIEW_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.type ? { type: normalizeStatus(updates.type) } : {}),\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update interview'\n );\n set((state) => ({\n interviews: state.interviews.map((i) =>\n i.id === id ? lowerEnumKeys(data.updateCrewInterview, ENUM_KEYS.interview) : i\n ),\n }));\n },\n removeInterview: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewInterview: boolean }>(\n REMOVE_INTERVIEW_MUTATION,\n { id },\n params,\n 'Unable to remove interview'\n );\n set((state) => ({ interviews: state.interviews.filter((i) => i.id !== id) }));\n },\n\n // ── Invoice data is owned by global-billing-svc ───────────────\n addInvoice: async () => {\n throw sharedOwnerError('Invoices');\n },\n updateInvoice: async () => {\n throw sharedOwnerError('Invoices');\n },\n removeInvoice: async () => {\n throw sharedOwnerError('Invoices');\n },\n\n // ── Vendor (enum: status) ─────────────────────────────────────\n addVendor: async (vendor) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewVendor: Vendor }>(\n CREATE_VENDOR_MUTATION,\n { input: { ...vendor, status: normalizeStatus(vendor.status) } },\n params,\n 'Unable to create vendor'\n );\n set((state) => ({\n vendors: [lowerEnumKeys(data.createCrewVendor, ENUM_KEYS.vendor), ...state.vendors],\n }));\n },\n updateVendor: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewVendor: Vendor }>(\n UPDATE_VENDOR_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update vendor'\n );\n set((state) => ({\n vendors: state.vendors.map((v) =>\n v.id === id ? lowerEnumKeys(data.updateCrewVendor, ENUM_KEYS.vendor) : v\n ),\n }));\n },\n removeVendor: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewVendor: boolean }>(\n REMOVE_VENDOR_MUTATION,\n { id },\n params,\n 'Unable to remove vendor'\n );\n set((state) => ({ vendors: state.vendors.filter((v) => v.id !== id) }));\n },\n\n // ── Client (enum: status; `since`) ────────────────────────────\n addClient: async (client) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewClient: Client }>(\n CREATE_CLIENT_MUTATION,\n { input: { ...client, status: normalizeStatus(client.status) } },\n params,\n 'Unable to create client'\n );\n set((state) => ({\n clients: [lowerEnumKeys(data.createCrewClient, ENUM_KEYS.client), ...state.clients],\n }));\n },\n updateClient: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewClient: Client }>(\n UPDATE_CLIENT_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update client'\n );\n set((state) => ({\n clients: state.clients.map((c) =>\n c.id === id ? lowerEnumKeys(data.updateCrewClient, ENUM_KEYS.client) : c\n ),\n }));\n },\n removeClient: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewClient: boolean }>(\n REMOVE_CLIENT_MUTATION,\n { id },\n params,\n 'Unable to remove client'\n );\n set((state) => ({ clients: state.clients.filter((c) => c.id !== id) }));\n },\n\n // ── Team (plain status; not normalized) ───────────────────────\n addTeam: async (team) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewTeam: Team }>(\n CREATE_TEAM_MUTATION,\n { input: team },\n params,\n 'Unable to create team'\n );\n set((state) => ({\n teams: [lowerEnumKeys(data.createCrewTeam, ENUM_KEYS.team), ...state.teams],\n }));\n },\n updateTeam: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewTeam: Team }>(\n UPDATE_TEAM_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update team'\n );\n set((state) => ({\n teams: state.teams.map((t) =>\n t.id === id ? lowerEnumKeys(data.updateCrewTeam, ENUM_KEYS.team) : t\n ),\n }));\n },\n removeTeam: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewTeam: boolean }>(\n REMOVE_TEAM_MUTATION,\n { id },\n params,\n 'Unable to remove team'\n );\n set((state) => ({ teams: state.teams.filter((t) => t.id !== id) }));\n },\n\n // ── Project (enum: status, priority) ──────────────────────────\n addProject: async (project) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewProject: Project }>(\n CREATE_PROJECT_MUTATION,\n {\n input: {\n ...project,\n status: normalizeStatus(project.status),\n priority: normalizeStatus(project.priority),\n },\n },\n params,\n 'Unable to create project'\n );\n set((state) => ({\n projects: [lowerEnumKeys(data.createCrewProject, ENUM_KEYS.project), ...state.projects],\n }));\n },\n updateProject: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewProject: Project }>(\n UPDATE_PROJECT_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n ...(updates.priority ? { priority: normalizeStatus(updates.priority) } : {}),\n },\n },\n params,\n 'Unable to update project'\n );\n set((state) => ({\n projects: state.projects.map((p) =>\n p.id === id ? lowerEnumKeys(data.updateCrewProject, ENUM_KEYS.project) : p\n ),\n }));\n },\n removeProject: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewProject: boolean }>(\n REMOVE_PROJECT_MUTATION,\n { id },\n params,\n 'Unable to remove project'\n );\n set((state) => ({ projects: state.projects.filter((p) => p.id !== id) }));\n },\n\n // ── Marketplace data is owned by global-store-svc ─────────────\n addMarketplaceService: async () => {\n throw sharedOwnerError('Marketplace services');\n },\n updateMarketplaceService: async () => {\n throw sharedOwnerError('Marketplace services');\n },\n removeMarketplaceService: async () => {\n throw sharedOwnerError('Marketplace services');\n },\n\n // ── Department (plain status; not normalized) ─────────────────\n addDepartment: async (department) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewDepartment: Department }>(\n CREATE_DEPARTMENT_MUTATION,\n { input: department },\n params,\n 'Unable to create department'\n );\n set((state) => ({\n departments: [\n lowerEnumKeys(data.createCrewDepartment, ENUM_KEYS.department),\n ...state.departments,\n ],\n }));\n },\n updateDepartment: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewDepartment: Department }>(\n UPDATE_DEPARTMENT_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update department'\n );\n set((state) => ({\n departments: state.departments.map((d) =>\n d.id === id ? lowerEnumKeys(data.updateCrewDepartment, ENUM_KEYS.department) : d\n ),\n }));\n },\n removeDepartment: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewDepartment: boolean }>(\n REMOVE_DEPARTMENT_MUTATION,\n { id },\n params,\n 'Unable to remove department'\n );\n set((state) => ({ departments: state.departments.filter((d) => d.id !== id) }));\n },\n\n // ── Learning data is owned by the shared learning service ─────\n addCourse: async () => {\n throw sharedOwnerError('Courses');\n },\n updateCourse: async () => {\n throw sharedOwnerError('Courses');\n },\n removeCourse: async () => {\n throw sharedOwnerError('Courses');\n },\n enrollCourse: async () => {\n throw sharedOwnerError('Course enrollment');\n },\n addLearningPath: async () => {\n throw sharedOwnerError('Learning paths');\n },\n updateLearningPath: async () => {\n throw sharedOwnerError('Learning paths');\n },\n removeLearningPath: async () => {\n throw sharedOwnerError('Learning paths');\n },\n\n // ── PayrollRecord (enum: status) ──────────────────────────────\n addPayrollRecord: async (record) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewPayrollRecord: PayrollRecord }>(\n CREATE_PAYROLL_MUTATION,\n { input: { ...record, status: normalizeStatus(record.status) } },\n params,\n 'Unable to create payroll record'\n );\n set((state) => ({\n payrollRecords: [\n lowerEnumKeys(data.createCrewPayrollRecord, ENUM_KEYS.payrollRecord),\n ...state.payrollRecords,\n ],\n }));\n },\n updatePayrollRecord: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewPayrollRecord: PayrollRecord }>(\n UPDATE_PAYROLL_MUTATION,\n {\n id,\n input: {\n ...updates,\n ...(updates.status ? { status: normalizeStatus(updates.status) } : {}),\n },\n },\n params,\n 'Unable to update payroll record'\n );\n set((state) => ({\n payrollRecords: state.payrollRecords.map((p) =>\n p.id === id ? lowerEnumKeys(data.updateCrewPayrollRecord, ENUM_KEYS.payrollRecord) : p\n ),\n }));\n },\n removePayrollRecord: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewPayrollRecord: boolean }>(\n REMOVE_PAYROLL_MUTATION,\n { id },\n params,\n 'Unable to remove payroll record'\n );\n set((state) => ({ payrollRecords: state.payrollRecords.filter((p) => p.id !== id) }));\n },\n\n // ── TimeEntry (plain status; not normalized) ──────────────────\n addTimeEntry: async (entry) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewTimeEntry: TimeEntry }>(\n CREATE_TIME_ENTRY_MUTATION,\n { input: entry },\n params,\n 'Unable to create time entry'\n );\n set((state) => ({\n timeEntries: [\n lowerEnumKeys(data.createCrewTimeEntry, ENUM_KEYS.timeEntry),\n ...state.timeEntries,\n ],\n }));\n },\n updateTimeEntry: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewTimeEntry: TimeEntry }>(\n UPDATE_TIME_ENTRY_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update time entry'\n );\n set((state) => ({\n timeEntries: state.timeEntries.map((t) =>\n t.id === id ? lowerEnumKeys(data.updateCrewTimeEntry, ENUM_KEYS.timeEntry) : t\n ),\n }));\n },\n removeTimeEntry: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewTimeEntry: boolean }>(\n REMOVE_TIME_ENTRY_MUTATION,\n { id },\n params,\n 'Unable to remove time entry'\n );\n set((state) => ({ timeEntries: state.timeEntries.filter((t) => t.id !== id) }));\n },\n\n // ── BOFF-3987: employee documents ──────────────────────────────\n fetchEmployeeDocuments: async (employeeId) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ employeeDocuments: CrewEmployeeDocument[] }>(\n EMPLOYEE_DOCUMENTS_QUERY,\n { employeeId },\n params,\n 'Unable to load employee documents'\n );\n set((state) => ({\n // Replace only this employee's documents; leave any other employee's\n // already-fetched documents in the flat cache untouched.\n employeeDocuments: [\n ...state.employeeDocuments.filter((d) => d.employeeId !== employeeId),\n ...data.employeeDocuments,\n ],\n }));\n },\n uploadEmployeeDocument: async ({ employeeId, file, title, category }) => {\n const params = useCrewFoundryStore.getState().initParams;\n\n const folder = await runGraphql<{ ensureFolderByPath: { id: string } }>(\n ENSURE_FOLDER_BY_PATH_MUTATION,\n { path: '/CrewFoundry/Employee Documents' },\n params,\n 'Unable to resolve the employee documents folder'\n );\n\n const extension = file.name.includes('.')\n ? file.name.substring(file.name.lastIndexOf('.') + 1)\n : '';\n const initiated = await runGraphql<{\n initiateUpload: { session: { id: string }; uploadUrl: string | null };\n }>(\n INITIATE_UPLOAD_MUTATION,\n {\n input: {\n fileName: file.name,\n fileSize: String(file.size),\n mimeType: file.type || 'application/octet-stream',\n extension,\n folderId: folder.ensureFolderByPath.id,\n },\n },\n params,\n 'Unable to start the document upload'\n );\n\n if (initiated.initiateUpload.uploadUrl) {\n const putResponse = await fetch(initiated.initiateUpload.uploadUrl, {\n method: 'PUT',\n headers: { 'Content-Type': file.type || 'application/octet-stream' },\n body: file,\n });\n if (!putResponse.ok) {\n throw new Error(`Failed to upload file bytes (status ${putResponse.status})`);\n }\n }\n\n const completed = await runGraphql<{ completeUpload: { file: { id: string } } }>(\n COMPLETE_UPLOAD_MUTATION,\n {\n input: {\n sessionId: initiated.initiateUpload.session.id,\n fileSize: String(file.size),\n folderId: folder.ensureFolderByPath.id,\n },\n },\n params,\n 'Unable to finish the document upload'\n );\n\n const attached = await runGraphql<{ attachEmployeeDocument: CrewEmployeeDocument }>(\n ATTACH_EMPLOYEE_DOCUMENT_MUTATION,\n {\n input: {\n employeeId,\n fileId: completed.completeUpload.file.id,\n title,\n category: category || undefined,\n },\n },\n params,\n 'Unable to attach the document to this employee'\n );\n\n set((state) => ({\n employeeDocuments: [attached.attachEmployeeDocument, ...state.employeeDocuments],\n }));\n },\n detachEmployeeDocument: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ detachEmployeeDocument: boolean }>(\n DETACH_EMPLOYEE_DOCUMENT_MUTATION,\n { id },\n params,\n 'Unable to remove this document'\n );\n set((state) => ({\n employeeDocuments: state.employeeDocuments.filter((d) => d.id !== id),\n }));\n },\n\n // ── BOFF-3983: onboarding ───────────────────────────────────────\n fetchOnboardings: async () => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ crewOnboardings: CrewOnboarding[] }>(\n ONBOARDINGS_QUERY,\n {},\n params,\n 'Unable to load onboarding'\n );\n set({\n onboardings: data.crewOnboardings.map(lowerOnboarding),\n onboardingsLoaded: true,\n });\n },\n createOnboarding: async (input) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewOnboarding: CrewOnboarding }>(\n CREATE_ONBOARDING_MUTATION,\n { input },\n params,\n 'Unable to start onboarding'\n );\n set((state) => ({\n onboardings: [lowerOnboarding(data.createCrewOnboarding), ...state.onboardings],\n }));\n },\n updateOnboarding: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewOnboarding: CrewOnboarding }>(\n UPDATE_ONBOARDING_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update onboarding'\n );\n set((state) => ({\n onboardings: state.onboardings.map((o) =>\n o.id === id ? lowerOnboarding(data.updateCrewOnboarding) : o\n ),\n }));\n },\n removeOnboarding: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewOnboarding: boolean }>(\n REMOVE_ONBOARDING_MUTATION,\n { id },\n params,\n 'Unable to remove onboarding'\n );\n set((state) => ({ onboardings: state.onboardings.filter((o) => o.id !== id) }));\n },\n createOnboardingTask: async (input) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ createCrewOnboardingTask: CrewOnboardingTask }>(\n CREATE_ONBOARDING_TASK_MUTATION,\n { input },\n params,\n 'Unable to create onboarding task'\n );\n const task = lowerEnumKeys(data.createCrewOnboardingTask, ENUM_KEYS.onboardingTask);\n set((state) => ({\n onboardings: state.onboardings.map((o) =>\n o.id === task.onboardingId\n ? {\n ...o,\n tasks: [...o.tasks, task],\n totalTaskCount: o.totalTaskCount + 1,\n }\n : o\n ),\n }));\n },\n updateOnboardingTask: async (id, updates) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ updateCrewOnboardingTask: CrewOnboardingTask }>(\n UPDATE_ONBOARDING_TASK_MUTATION,\n { id, input: updates },\n params,\n 'Unable to update onboarding task'\n );\n const task = lowerEnumKeys(data.updateCrewOnboardingTask, ENUM_KEYS.onboardingTask);\n set((state) => ({\n onboardings: state.onboardings.map((o) =>\n o.id === task.onboardingId\n ? { ...o, tasks: o.tasks.map((t) => (t.id === id ? task : t)) }\n : o\n ),\n }));\n },\n removeOnboardingTask: async (id) => {\n const params = useCrewFoundryStore.getState().initParams;\n await runGraphql<{ removeCrewOnboardingTask: boolean }>(\n REMOVE_ONBOARDING_TASK_MUTATION,\n { id },\n params,\n 'Unable to remove onboarding task'\n );\n set((state) => ({\n onboardings: state.onboardings.map((o) => {\n if (!o.tasks.some((t) => t.id === id)) return o;\n return {\n ...o,\n tasks: o.tasks.filter((t) => t.id !== id),\n totalTaskCount: Math.max(0, o.totalTaskCount - 1),\n };\n }),\n }));\n },\n toggleOnboardingTask: async (id, completed) => {\n const params = useCrewFoundryStore.getState().initParams;\n const data = await runGraphql<{ toggleCrewOnboardingTask: CrewOnboardingTask }>(\n TOGGLE_ONBOARDING_TASK_MUTATION,\n { id, completed },\n params,\n 'Unable to update onboarding task'\n );\n const task = lowerEnumKeys(data.toggleCrewOnboardingTask, ENUM_KEYS.onboardingTask);\n set((state) => ({\n onboardings: state.onboardings.map((o) => {\n if (o.id !== task.onboardingId) return o;\n const tasks = o.tasks.map((t) => (t.id === id ? task : t));\n const completedTaskCount = tasks.filter((t) => t.completedAt).length;\n return {\n ...o,\n tasks,\n completedTaskCount,\n progressPercent:\n tasks.length === 0 ? 0 : Math.round((completedTaskCount / tasks.length) * 1000) / 10,\n };\n }),\n }));\n },\n}));\n"],"mappings":";;;AAoVA,IAAM,IAAkB,4pDAoBlB,IAAyC,4hFAiEzC,IAAwB,kRAmBxB,IAA2B,gQAC3B,IAA2B,mRAC3B,IAA2B,yEAC3B,IAAsB,+PACtB,IAAsB,kRACtB,IAA4B,qPAC5B,IAA4B,wQAC5B,IAA+B,8MAC/B,IAAwB,oNACxB,IAAwB,uOAExB,IAAsB,6EACtB,IAA4B,2EAC5B,IAA+B,iOAC/B,IAA+B,iFAG/B,IAA4B,0MAC5B,IAA4B,6NAC5B,IAA4B,2EAG5B,IAAyB,4KACzB,IAAyB,+LACzB,IAAyB,qEAGzB,KAAyB,8KACzB,KAAyB,iMACzB,KAAyB,qEAGzB,KAAuB,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G;GAAE,GAC7D,EACL,EACF,EAAE;;CAEL,sBAAsB,OAAO,MAAO;EAClC,IAAM,IAAS,EAAoB,UAAU,CAAC;AAO9C,EANA,MAAM,EACJ,IACA,EAAE,OAAI,EACN,GACA,mCACD,EACD,GAAK,OAAW,EACd,aAAa,EAAM,YAAY,KAAK,MAC7B,EAAE,MAAM,MAAM,MAAM,EAAE,OAAO,EAAG,GAC9B;GACL,GAAG;GACH,OAAO,EAAE,MAAM,QAAQ,MAAM,EAAE,OAAO,EAAG;GACzC,gBAAgB,KAAK,IAAI,GAAG,EAAE,iBAAiB,EAAE;GAClD,GAL6C,EAM9C,EACH,EAAE;;CAEL,sBAAsB,OAAO,GAAI,MAAc;EAC7C,IAAM,IAAS,EAAoB,UAAU,CAAC,YAOxC,IAAO,GANA,MAAM,EACjB,IACA;GAAE;GAAI;GAAW,EACjB,GACA,mCACD,EAC+B,0BAA0B,EAAU,eAAe;AACnF,KAAK,OAAW,EACd,aAAa,EAAM,YAAY,KAAK,MAAM;AACxC,OAAI,EAAE,OAAO,EAAK,aAAc,QAAO;GACvC,IAAM,IAAQ,EAAE,MAAM,KAAK,MAAO,EAAE,OAAO,IAAK,IAAO,EAAG,EACpD,IAAqB,EAAM,QAAQ,MAAM,EAAE,YAAY,CAAC;AAC9D,UAAO;IACL,GAAG;IACH;IACA;IACA,iBACE,EAAM,WAAW,IAAI,IAAI,KAAK,MAAO,IAAqB,EAAM,SAAU,IAAK,GAAG;IACrF;IACD,EACH,EAAE;;CAEN,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-crewfoundry",
3
- "version": "2026.719.1",
3
+ "version": "2026.719.2",
4
4
  "description": "Burdenoff CrewFoundry Microfrontend",
5
5
  "type": "module",
6
6
  "files": [