File tree Expand file tree Collapse file tree
packages/destination-actions/src/destinations/klime Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import type { DestinationDefinition } from '@segment/actions-core'
1+ import { defaultValues , DestinationDefinition } from '@segment/actions-core'
22import type { Settings } from './generated-types'
33import track from './track'
44import identify from './identify'
@@ -48,7 +48,30 @@ const destination: DestinationDefinition<Settings> = {
4848 track,
4949 identify,
5050 group
51- }
51+ } ,
52+ presets : [
53+ {
54+ name : 'Track Event' ,
55+ subscribe : 'type = "track"' ,
56+ partnerAction : 'track' ,
57+ mapping : defaultValues ( track . fields ) ,
58+ type : 'automatic'
59+ } ,
60+ {
61+ name : 'Identify User' ,
62+ subscribe : 'type = "identify"' ,
63+ partnerAction : 'identify' ,
64+ mapping : defaultValues ( identify . fields ) ,
65+ type : 'automatic'
66+ } ,
67+ {
68+ name : 'Track Group' ,
69+ subscribe : 'type = "group"' ,
70+ partnerAction : 'group' ,
71+ mapping : defaultValues ( group . fields ) ,
72+ type : 'automatic'
73+ }
74+ ]
5275}
5376
5477export default destination
You can’t perform that action at this time.
0 commit comments