diff --git a/pkg/typescript/generator/generate_test.go b/pkg/typescript/generator/generate_test.go index 156f95f..2de6d1c 100644 --- a/pkg/typescript/generator/generate_test.go +++ b/pkg/typescript/generator/generate_test.go @@ -74,9 +74,13 @@ export interface Item { } export interface PageView { - page_title?: string; - page_referrer?: string; + client_id?: string; + language?: string; + page_encoding?: string; page_location?: string; + page_referrer?: string; + page_title?: string; + user_agent?: string; } ` expectedSesamy = ` @@ -106,6 +110,7 @@ export enum EventName { LevelStart = "level_start", LevelUp = "level_up", Login = "login", + Logout = "logout", PageView = "page_view", PostScore = "post_score", Purchase = "purchase", @@ -118,7 +123,6 @@ export enum EventName { SelectContent = "select_content", SelectItem = "select_item", SelectPromotion = "select_promotion", - SessionStart = "session_start", Share = "share", SignUp = "sign_up", SpendVirtualCurrency = "spend_virtual_currency", diff --git a/sesamy.schema.json b/sesamy.schema.json index d91ecfc..7a38e67 100644 --- a/sesamy.schema.json +++ b/sesamy.schema.json @@ -709,9 +709,25 @@ }, "github.com.foomo.sesamy-cli.pkg.config.MixpanelServerContainer": { "properties": { + "set": { + "$ref": "#/$defs/github.com.foomo.gocontemplate.pkg.contemplate.Config", + "description": "Set events" + }, + "setOnce": { + "$ref": "#/$defs/github.com.foomo.gocontemplate.pkg.contemplate.Config", + "description": "SetOnce events" + }, + "reset": { + "$ref": "#/$defs/github.com.foomo.gocontemplate.pkg.contemplate.Config", + "description": "Reset events" + }, "track": { "$ref": "#/$defs/github.com.foomo.gocontemplate.pkg.contemplate.Config", "description": "Track events" + }, + "identify": { + "$ref": "#/$defs/github.com.foomo.gocontemplate.pkg.contemplate.Config", + "description": "Identify events" } }, "additionalProperties": false,