Skip to content

Commit 952cc69

Browse files
committed
lint
1 parent 77712e6 commit 952cc69

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

apps/sim/app/(landing)/integrations/data/integrations.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10784,8 +10784,34 @@
1078410784
}
1078510785
],
1078610786
"operationCount": 4,
10787-
"triggers": [],
10788-
"triggerCount": 0,
10787+
"triggers": [
10788+
{
10789+
"id": "servicenow_incident_created",
10790+
"name": "ServiceNow Incident Created",
10791+
"description": "Trigger workflow when a new incident is created in ServiceNow"
10792+
},
10793+
{
10794+
"id": "servicenow_incident_updated",
10795+
"name": "ServiceNow Incident Updated",
10796+
"description": "Trigger workflow when an incident is updated in ServiceNow"
10797+
},
10798+
{
10799+
"id": "servicenow_change_request_created",
10800+
"name": "ServiceNow Change Request Created",
10801+
"description": "Trigger workflow when a new change request is created in ServiceNow"
10802+
},
10803+
{
10804+
"id": "servicenow_change_request_updated",
10805+
"name": "ServiceNow Change Request Updated",
10806+
"description": "Trigger workflow when a change request is updated in ServiceNow"
10807+
},
10808+
{
10809+
"id": "servicenow_webhook",
10810+
"name": "ServiceNow Webhook (All Events)",
10811+
"description": "Trigger workflow on any ServiceNow webhook event"
10812+
}
10813+
],
10814+
"triggerCount": 5,
1078910815
"authType": "none",
1079010816
"category": "tools",
1079110817
"integrationType": "customer-support",

apps/sim/lib/webhooks/providers/servicenow.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { createLogger } from '@sim/logger'
22
import { NextResponse } from 'next/server'
3-
import type { AuthContext, EventMatchContext, WebhookProviderHandler } from '@/lib/webhooks/providers/types'
3+
import type {
4+
AuthContext,
5+
EventMatchContext,
6+
WebhookProviderHandler,
7+
} from '@/lib/webhooks/providers/types'
48
import { verifyTokenAuth } from '@/lib/webhooks/providers/utils'
59

610
const logger = createLogger('WebhookProvider:ServiceNow')

apps/sim/triggers/servicenow/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ export function buildChangeRequestOutputs(): Record<string, TriggerOutput> {
131131
}
132132

133133
function normalizeToken(s: string): string {
134-
return s.trim().toLowerCase().replace(/[\s-]+/g, '_')
134+
return s
135+
.trim()
136+
.toLowerCase()
137+
.replace(/[\s-]+/g, '_')
135138
}
136139

137140
/**

0 commit comments

Comments
 (0)