Skip to content

Commit 2b61812

Browse files
STRATCONN-6563 - [Klime] - adding presets for Klime (#3651)
1 parent 183fbb8 commit 2b61812

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

  • packages/destination-actions/src/destinations/klime

packages/destination-actions/src/destinations/klime/index.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { DestinationDefinition } from '@segment/actions-core'
1+
import { defaultValues, DestinationDefinition } from '@segment/actions-core'
22
import type { Settings } from './generated-types'
33
import track from './track'
44
import 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

5477
export default destination

0 commit comments

Comments
 (0)