@wistia/bottler-helpers 2.4.0 → 2.5.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 +53 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/bottler-helpers",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "author": "Wistia",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/schema.graphql CHANGED
@@ -88,6 +88,7 @@ type RootQueryType {
88
88
  ): ContactTouchpointHistory
89
89
  anonymousTouchpointHistory(visitorKey: String!, filters: AnonymousTouchpointHistoryFilters, sort: Order, limit: Int): AnonymousTouchpointHistory
90
90
  audienceActivity(interval: Interval!, limit: Int!): AudienceActivity
91
+ audience(interval: Interval!): Audience
91
92
  accountAudienceViewers(interval: Interval!): AudienceViewers
92
93
  accountMediaBenchmark(contentType: String!, metric: BenchmarkMetric!, days: Int): AccountMediaBenchmark
93
94
  }
@@ -416,6 +417,58 @@ type AudienceViewerDataPoint {
416
417
  uniqueViewers: Int!
417
418
  }
418
419
 
420
+ "Which key orders the audience contacts"
421
+ enum AudienceContactSortField {
422
+ TOUCHPOINT_COUNT
423
+ LATEST_ACTIVITY
424
+ }
425
+
426
+ type Audience {
427
+ contacts(pagination: OffsetPagination, orderBy: AudienceContactSortField, order: Order, search: String): AudienceContacts!
428
+ companies(pagination: OffsetPagination): AudienceCompanies!
429
+ touchpointCounts: [TouchpointTypeCount!]!
430
+ }
431
+
432
+ type AudienceContacts {
433
+ pageInfo: OffsetPageInfo!
434
+ totalCount: Int!
435
+ entries: [AudienceContact!]!
436
+ }
437
+
438
+ type AudienceContact {
439
+ uniqueId: String!
440
+ email: String
441
+ firstName: String
442
+ lastName: String
443
+ jobTitle: String
444
+ company: String
445
+ companyId: Int
446
+ firstIdentifiedAt: DateTime
447
+ touchpointCount: Int!
448
+ latestTouchpointAt: DateTime!
449
+ touchpoints: [Touchpoint!]!
450
+ }
451
+
452
+ type AudienceCompanies {
453
+ pageInfo: OffsetPageInfo!
454
+ totalCount: Int!
455
+ entries: [AudienceCompany!]!
456
+ }
457
+
458
+ type AudienceCompany {
459
+ id: Int!
460
+ name: String
461
+ website: String
462
+ contactCount: Int!
463
+ touchpointCount: Int!
464
+ latestTouchpointAt: DateTime!
465
+ }
466
+
467
+ type TouchpointTypeCount {
468
+ type: String!
469
+ count: Int!
470
+ }
471
+
419
472
  type AudienceActivity {
420
473
  contacts: [AudienceActivityContact!]!
421
474
  }