Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quantum-kittens
GitHub Repository: quantum-kittens/platypus
Path: blob/main/frontend/constants/segment.ts
3855 views
1
/**
2
* IBM Cloud Common schema for Segment events.
3
* Only the properties used in this project are included in this interface.
4
* https://segment-standards.prod.ddp.cis.ibm.net/events/performed-search#IBM%20Cloud%20Common
5
*/
6
interface IbmCloudCommonEventSegmentSchema {
7
category: string
8
productTitle: string
9
uiElement?: string
10
}
11
12
/**
13
* Properties sent to Segment for the event "CTA Clicked".
14
* Only the properties used in this project are included in this interface.
15
* https://segment-standards.prod.ddp.cis.ibm.net/events/cta-clicked
16
*/
17
export interface CtaClickedEventSegmentSchema
18
extends IbmCloudCommonEventSegmentSchema {
19
CTA: string
20
location: string
21
}
22
23
/**
24
* Vue prop with data for the Segment event "CTA Clicked".
25
* Based on the interface CtaClickedEventSegmentSchema.
26
*/
27
export interface CtaClickedEventProp {
28
cta: string
29
location: string
30
}
31
32
/**
33
* Properties sent to Segment for the event "Performed Search".
34
* Only the properties used in this project are included in this interface.
35
* https://segment-standards.prod.ddp.cis.ibm.net/events/performed-search
36
*/
37
export interface PerformedSearchEventSegmentSchema
38
extends IbmCloudCommonEventSegmentSchema {
39
field: string
40
}
41
42
/**
43
* Properties sent to Segment for the event "Updated Object".
44
* Only the properties used in this project are included in this interface.
45
* https://segment-standards.prod.ddp.cis.ibm.net/events/updated-object
46
*/
47
export interface UpdatedObjectEventSegmentSchema
48
extends IbmCloudCommonEventSegmentSchema {
49
object: string
50
objectType: string
51
}
52
53