|
1 | | -import type { Report } from '@objectstack/spec/ui'; |
| 1 | +import type { ReportInput } from '@objectstack/spec/ui'; |
2 | 2 |
|
3 | 3 | // Sales Report - Opportunities by Stage |
4 | | -export const OpportunitiesByStageReport: Report = { |
| 4 | +export const OpportunitiesByStageReport: ReportInput = { |
5 | 5 | name: 'opportunities_by_stage', |
6 | 6 | label: 'Opportunities by Stage', |
7 | 7 | description: 'Summary of opportunities grouped by stage', |
@@ -56,7 +56,7 @@ export const OpportunitiesByStageReport: Report = { |
56 | 56 | }; |
57 | 57 |
|
58 | 58 | // Sales Report - Won Opportunities by Owner |
59 | | -export const WonOpportunitiesByOwnerReport: Report = { |
| 59 | +export const WonOpportunitiesByOwnerReport: ReportInput = { |
60 | 60 | name: 'won_opportunities_by_owner', |
61 | 61 | label: 'Won Opportunities by Owner', |
62 | 62 | description: 'Closed won opportunities grouped by owner', |
@@ -105,7 +105,7 @@ export const WonOpportunitiesByOwnerReport: Report = { |
105 | 105 | }; |
106 | 106 |
|
107 | 107 | // Account Report - Accounts by Industry and Type (Matrix) |
108 | | -export const AccountsByIndustryTypeReport: Report = { |
| 108 | +export const AccountsByIndustryTypeReport: ReportInput = { |
109 | 109 | name: 'accounts_by_industry_type', |
110 | 110 | label: 'Accounts by Industry and Type', |
111 | 111 | description: 'Matrix report showing accounts by industry and type', |
@@ -144,7 +144,7 @@ export const AccountsByIndustryTypeReport: Report = { |
144 | 144 | }; |
145 | 145 |
|
146 | 146 | // Support Report - Cases by Status and Priority |
147 | | -export const CasesByStatusPriorityReport: Report = { |
| 147 | +export const CasesByStatusPriorityReport: ReportInput = { |
148 | 148 | name: 'cases_by_status_priority', |
149 | 149 | label: 'Cases by Status and Priority', |
150 | 150 | description: 'Summary of cases by status and priority', |
@@ -197,7 +197,7 @@ export const CasesByStatusPriorityReport: Report = { |
197 | 197 | }; |
198 | 198 |
|
199 | 199 | // Support Report - SLA Performance |
200 | | -export const SlaPerformanceReport: Report = { |
| 200 | +export const SlaPerformanceReport: ReportInput = { |
201 | 201 | name: 'sla_performance', |
202 | 202 | label: 'SLA Performance Report', |
203 | 203 | description: 'Analysis of SLA compliance', |
@@ -243,7 +243,7 @@ export const SlaPerformanceReport: Report = { |
243 | 243 | }; |
244 | 244 |
|
245 | 245 | // Lead Report - Leads by Source and Status |
246 | | -export const LeadsBySourceReport: Report = { |
| 246 | +export const LeadsBySourceReport: ReportInput = { |
247 | 247 | name: 'leads_by_source', |
248 | 248 | label: 'Leads by Source and Status', |
249 | 249 | description: 'Lead pipeline analysis', |
@@ -291,7 +291,7 @@ export const LeadsBySourceReport: Report = { |
291 | 291 | }; |
292 | 292 |
|
293 | 293 | // Contact Report - Contacts by Account |
294 | | -export const ContactsByAccountReport: Report = { |
| 294 | +export const ContactsByAccountReport: ReportInput = { |
295 | 295 | name: 'contacts_by_account', |
296 | 296 | label: 'Contacts by Account', |
297 | 297 | description: 'List of contacts grouped by account', |
@@ -331,7 +331,7 @@ export const ContactsByAccountReport: Report = { |
331 | 331 | }; |
332 | 332 |
|
333 | 333 | // Activity Report - Tasks by Owner |
334 | | -export const TasksByOwnerReport: Report = { |
| 334 | +export const TasksByOwnerReport: ReportInput = { |
335 | 335 | name: 'tasks_by_owner', |
336 | 336 | label: 'Tasks by Owner', |
337 | 337 | description: 'Task summary by owner', |
|
0 commit comments