@wistia/bottler-helpers 1.28.0 → 1.30.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 +45 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/bottler-helpers",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "author": "Wistia",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/schema.graphql CHANGED
@@ -8,6 +8,36 @@ input Interval {
8
8
  endDate: Date
9
9
  }
10
10
 
11
+ type MediaAudienceResult {
12
+ identifiedViewerCount: Int!
13
+ audienceEntryCount: Int!
14
+ newContactCount: Int!
15
+ pageInfo: PageInfo!
16
+ entries: [MediaAudienceEntry]
17
+ }
18
+
19
+ type MediaAudienceEntry {
20
+ id: String!
21
+ visitorKey: String
22
+ uniqueId: String
23
+ email: String!
24
+ firstName: String
25
+ lastName: String
26
+ company: String
27
+ jobTitle: String
28
+ phoneNumber: String
29
+ country: String
30
+ submittedAt: DateTime!
31
+ referrerUrl: String
32
+ referrerDomain: String
33
+ utmCampaign: String
34
+ utmContent: String
35
+ utmMedium: String
36
+ utmSource: String
37
+ utmTerm: String
38
+ touchpointCount: Int
39
+ }
40
+
11
41
  type RootQueryType {
12
42
  channel(channelHashedId: String!, interval: Interval): Channel
13
43
  channels(channelGlobalIds: [String]!): [ChannelMetrics!]!
@@ -27,6 +57,7 @@ type RootQueryType {
27
57
  liveStreamEventsAccountAggregate(limit: Int, interval: Interval): LiveStreamEventAccountAggregate!
28
58
  liveEventContacts(liveStreamEventId: Int!, filters: LiveFilters): LiveEventContacts
29
59
  mediaFormConversions(mediaGlobalId: String!, interval: Interval!, pagination: Pagination): MediaFormAggregateResult
60
+ mediaAudience(mediaGlobalId: String!, interval: Interval!, pagination: Pagination, search: String): MediaAudienceResult
30
61
  relativeMediaEvents(relativePeriod: RelativePeriod!, searchFilter: SearchFilter): RelativeMediaEvents
31
62
  exportStatus(exportId: Int!): ExportStatus
32
63
  contactTouchpointHistory(email: String!, filters: ContactTouchpointHistoryFilters, sort: Order): ContactTouchpointHistory
@@ -35,7 +66,7 @@ type RootQueryType {
35
66
 
36
67
  type RootMutationType {
37
68
  exportMedia(
38
- contactId: Int!, interval: Interval, searchFilter: SearchFilter, aggregate: ExportAggregate, shouldSkipEmailNotification: Boolean
69
+ contactId: Int!, interval: Interval, searchFilter: SearchFilter, search: String, mediaAudienceFilter: MediaAudienceExportFilter, aggregate: ExportAggregate, shouldSkipEmailNotification: Boolean
39
70
  ): ExportStatus
40
71
  exportRelativeMedia(contactId: Int!, relativePeriod: RelativePeriod!, searchFilter: SearchFilter): ExportStatus
41
72
  accountDigest(contactId: Int!, interval: Interval!, overrideEmail: String): AccountDigestStatus
@@ -852,6 +883,7 @@ enum ExportAggregate {
852
883
  CHANNEL_EPISODE
853
884
  PODCAST_EPISODE
854
885
  MEDIA_FORM_CONVERSION
886
+ MEDIA_AUDIENCE
855
887
  MEDIA_COMPARISON
856
888
  }
857
889
 
@@ -891,6 +923,13 @@ enum WistiaLeadType {
891
923
  UNKNOWN
892
924
  }
893
925
 
926
+ "Filter media audience exports by contact status"
927
+ enum MediaAudienceContactStatusFilter {
928
+ ALL
929
+ NEW
930
+ RETURNING
931
+ }
932
+
894
933
  "Which way to paginate from a cursor"
895
934
  enum CursorDirection {
896
935
  BEFORE
@@ -922,10 +961,14 @@ input Pagination {
922
961
  direction: CursorDirection
923
962
  }
924
963
 
964
+ input MediaAudienceExportFilter {
965
+ contactStatus: MediaAudienceContactStatusFilter
966
+ }
967
+
925
968
  type MediaEvents {
926
969
  aggregate(typeFilter: TypeFilter): MediaEventAggregate
927
970
  timeseries(
928
- for: MediaEventMetric!, over: MediaEventDimension!, granularity: Granularity!, typeFilter: TypeFilter, limit: Int
971
+ for: MediaEventMetric!, over: MediaEventDimension!, granularity: Granularity!, typeFilter: TypeFilter, limit: Int, filters: [Filter]
929
972
  ): [MediaEventDatapoint]
930
973
  orderedEntries(
931
974
  groupBy: MediaEventDimension!, orderBy: MediaEventMetric!, order: Order!, limit: Int!, excludeAggregatesWithoutStats: Boolean, filters: [Filter]