Updated on 2026-08-14
This commit is contained in:
parent
4caff5dc00
commit
dd0a223583
5 changed files with 33 additions and 2 deletions
|
|
@ -13,5 +13,6 @@ dependencies {
|
|||
/** Core */
|
||||
implementation(projects.core.decompose)
|
||||
implementation(projects.core.ui)
|
||||
implementation(projects.core.analytics.models)
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.feature.usedesk.api
|
||||
|
||||
import com.tangem.core.analytics.models.AnalyticsParam
|
||||
import com.tangem.core.decompose.factory.ComponentFactory
|
||||
import com.tangem.core.ui.decompose.ComposableContentComponent
|
||||
|
||||
|
|
@ -8,6 +9,13 @@ interface UsedeskComponent : ComposableContentComponent {
|
|||
data class Params(
|
||||
/** User wallet id (hex string) sent to Usedesk as the client email to identify the user. */
|
||||
val userWalletId: String? = null,
|
||||
/**
|
||||
* Source of the chat opening. Drives the analytics source and the Usedesk additional fields,
|
||||
* which the component maps internally (e.g. [AnalyticsParam.ScreensSources.Swap] -> `swap`).
|
||||
*/
|
||||
val source: AnalyticsParam.ScreensSources = AnalyticsParam.ScreensSources.Settings,
|
||||
/** Optional message sent to the chat on behalf of the user right after initialization. */
|
||||
val prefilledMessage: String? = null,
|
||||
)
|
||||
|
||||
interface Factory : ComponentFactory<Params, UsedeskComponent>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue