@wistia/bottler-helpers 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.graphql +41 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/bottler-helpers",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "author": "Wistia",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/schema.graphql CHANGED
@@ -76,6 +76,7 @@ type RootQueryType {
76
76
  liveEventContacts(liveStreamEventId: Int!, filters: LiveFilters): LiveEventContacts
77
77
  mediaFormConversions(mediaGlobalId: String!, interval: Interval!, pagination: Pagination): MediaFormAggregateResult
78
78
  mediaAudience(mediaGlobalId: String!, interval: Interval!, pagination: Pagination, search: String): MediaAudienceResult
79
+ mediaEngagement(mediaGlobalId: String!, interval: Interval!): MediaEngagementResult
79
80
  mediaAudienceWithAnonymous(
80
81
  mediaGlobalId: String!, interval: Interval!, pagination: OffsetPagination, orderBy: MediaAudienceSortField, order: Order, filters: MediaAudienceFilters
81
82
  ): MediaAudienceWithAnonymousResult
@@ -114,6 +115,46 @@ response as an ISO8601 formatted string, without a time component.
114
115
  """
115
116
  scalar Date
116
117
 
118
+ enum EngagementDimension {
119
+ VIEWER_SCREEN_SIZE
120
+ VIEWER_TYPE
121
+ REFERRER_DOMAIN
122
+ }
123
+
124
+ type EngagementSummary {
125
+ plays: Int!
126
+ uniqueViewers: Int!
127
+ playedTime: Int!
128
+ engagementRate: Float!
129
+ completionRate: Float!
130
+ }
131
+
132
+ type EngagementGroup {
133
+ value: String!
134
+ viewerShare: Float!
135
+ engagementRate: Float!
136
+ plays: Int!
137
+ }
138
+
139
+ type MediaInteraction {
140
+ key: String!
141
+ type: String!
142
+ time: Float
143
+ impressions: Int!
144
+ conversions: Int!
145
+ }
146
+
147
+ type MediaEngagement {
148
+ bucketCount: Int!
149
+ playsHistogram: [Int!]!
150
+ replayedHistogram: [Int!]!
151
+ summary: EngagementSummary!
152
+ groups(dimension: EngagementDimension!): [EngagementGroup!]!
153
+ interactions: [MediaInteraction!]!
154
+ }
155
+
156
+ union MediaEngagementResult = MediaEngagement | AggregateError
157
+
117
158
  "Filters audience members by whether they resolved to a contact"
118
159
  enum MediaAudienceViewerTypeFilter {
119
160
  ALL