Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apis/getCaseDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SELECT
${caseDetailsFields.join('\n , ')}
FROM salesforce.case
WHERE id = $1 OR case_number = $1
LIMIT 0
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops!

LIMIT 1
`,
[case_id_or_number],
);
Expand Down
10 changes: 10 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,10 @@ export type CaseRow = {
cloud_region_c: string | null;
cloud_project_id_c: string | null;
cloud_service_id_c: string | null;
customer_slack_thread_c: string | null;
cloud_impact_c: string | null;
cloud_is_production_c: boolean | null;
eon_slack_thread_c: string | null;
product_area_c: string | null;
platform_name_c: string | null;
impact_c: string | null;
Expand Down Expand Up @@ -338,6 +340,14 @@ const zCaseDetails = z.object({
.describe('The account ID associated with the case'),
created_date: z.string().nullish().describe('When the case was created'),
closed_date: z.string().nullish().describe('When the case was closed'),
customer_slack_thread_c: z
.string()
.nullish()
.describe('The permalink to the customer facing Slack thread for case.'),
eon_slack_thread_c: z
.string()
.nullish()
.describe('The permalink to the internal eon-initiated case thread.'),

// Cloud-related fields
cloud_region_c: z.string().nullish().describe('Cloud region'),
Expand Down
Loading