Skip to content

Commit

Permalink
Add CreateAttributionEvent graphql file and internal data model (#1963)
Browse files Browse the repository at this point in the history
* Add eventAttribution.graphql file and internal data model

* Fix lint
  • Loading branch information
ycheng-kickstarter committed Feb 29, 2024
1 parent 216632b commit 2e0818f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/graphql/eventAttribution.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mutation createAttributionEvent($input: CreateAttributionEventInput!) {
createAttributionEvent(input: $input) {
successful
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.kickstarter.services.mutations

/***
* CreateAttributionEventData is the corresponding internal data model to the GraphQL model
* [CreateAttributionEventInput]
*/
data class CreateAttributionEventData(
val eventName: String,
val eventProperties: Map<String, String>? = null,
val projectId: String? = null,
val clientMutationId: String? = null
)

0 comments on commit 2e0818f

Please sign in to comment.