@wistia/bottler-helpers 2.4.0 → 2.6.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 +68 -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.6.0",
4
4
  "author": "Wistia",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/schema.graphql CHANGED
@@ -88,7 +88,9 @@ 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
93
+ accountAudienceNewContacts(interval: Interval!): AudienceNewContacts
92
94
  accountMediaBenchmark(contentType: String!, metric: BenchmarkMetric!, days: Int): AccountMediaBenchmark
93
95
  }
94
96
 
@@ -416,6 +418,72 @@ type AudienceViewerDataPoint {
416
418
  uniqueViewers: Int!
417
419
  }
418
420
 
421
+ type AudienceNewContacts {
422
+ aggregate: AudienceNewContactsAggregate
423
+ timeseries: [AudienceNewContactsDataPoint!]
424
+ }
425
+
426
+ type AudienceNewContactsAggregate {
427
+ newContacts: Int!
428
+ }
429
+
430
+ type AudienceNewContactsDataPoint {
431
+ date: Date!
432
+ newContacts: Int!
433
+ }
434
+
435
+ "Which key orders the audience contacts"
436
+ enum AudienceContactSortField {
437
+ TOUCHPOINT_COUNT
438
+ LATEST_ACTIVITY
439
+ }
440
+
441
+ type Audience {
442
+ contacts(pagination: OffsetPagination, orderBy: AudienceContactSortField, order: Order, search: String): AudienceContacts!
443
+ companies(pagination: OffsetPagination): AudienceCompanies!
444
+ touchpointCounts: [TouchpointTypeCount!]!
445
+ }
446
+
447
+ type AudienceContacts {
448
+ pageInfo: OffsetPageInfo!
449
+ totalCount: Int!
450
+ entries: [AudienceContact!]!
451
+ }
452
+
453
+ type AudienceContact {
454
+ uniqueId: String!
455
+ email: String
456
+ firstName: String
457
+ lastName: String
458
+ jobTitle: String
459
+ company: String
460
+ companyId: Int
461
+ firstIdentifiedAt: DateTime
462
+ touchpointCount: Int!
463
+ latestTouchpointAt: DateTime!
464
+ touchpoints: [Touchpoint!]!
465
+ }
466
+
467
+ type AudienceCompanies {
468
+ pageInfo: OffsetPageInfo!
469
+ totalCount: Int!
470
+ entries: [AudienceCompany!]!
471
+ }
472
+
473
+ type AudienceCompany {
474
+ id: Int!
475
+ name: String
476
+ website: String
477
+ contactCount: Int!
478
+ touchpointCount: Int!
479
+ latestTouchpointAt: DateTime!
480
+ }
481
+
482
+ type TouchpointTypeCount {
483
+ type: String!
484
+ count: Int!
485
+ }
486
+
419
487
  type AudienceActivity {
420
488
  contacts: [AudienceActivityContact!]!
421
489
  }