-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expand file tree
/
Copy pathapplication_submit.ts
More file actions
41 lines (37 loc) · 1.19 KB
/
Copy pathapplication_submit.ts
File metadata and controls
41 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { AshbyIcon } from '@/components/icons'
import { buildTriggerSubBlocks } from '@/triggers'
import {
ashbySetupInstructions,
ashbyTriggerOptions,
buildApplicationSubmitOutputs,
buildAshbyExtraFields,
} from '@/triggers/ashby/utils'
import type { TriggerConfig } from '@/triggers/types'
/**
* Ashby Application Submitted Trigger
*
* This is the PRIMARY trigger - it includes the dropdown for selecting trigger type.
* Fires when a candidate submits an application or is manually added.
*/
export const ashbyApplicationSubmitTrigger: TriggerConfig = {
id: 'ashby_application_submit',
name: 'Ashby Application Submitted',
provider: 'ashby',
description: 'Trigger workflow when a new application is submitted',
version: '1.0.0',
icon: AshbyIcon,
subBlocks: buildTriggerSubBlocks({
triggerId: 'ashby_application_submit',
triggerOptions: ashbyTriggerOptions,
includeDropdown: true,
setupInstructions: ashbySetupInstructions('Application Submitted'),
extraFields: buildAshbyExtraFields('ashby_application_submit'),
}),
outputs: buildApplicationSubmitOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
},
}