@pushwoosh/rpc-gateway-statistics-api 1.3.742 → 1.3.743

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.
package/data.js CHANGED
@@ -3286,10 +3286,16 @@ export const data = {
3286
3286
  },
3287
3287
  "GetMessageDeliveryTimeline": {
3288
3288
  "request": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineRequest",
3289
- "response": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse",
3289
+ "response": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse",
3290
3290
  "method": "post",
3291
3291
  "path": "/api/v2/statistics/messages/getDeliveryTimeline"
3292
3292
  },
3293
+ "GetCampaignDeliveryTimeline": {
3294
+ "request": "pushwoosh.statistics.statistics.v2.statistics.GetCampaignDeliveryTimelineRequest",
3295
+ "response": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse",
3296
+ "method": "post",
3297
+ "path": "/api/v2/statistics/messages/getCampaignDeliveryTimeline"
3298
+ },
3293
3299
  "GetActiveAudience": {
3294
3300
  "request": "pushwoosh.statistics.statistics.v2.statistics.GetActiveAudienceRequest",
3295
3301
  "response": "pushwoosh.statistics.statistics.v2.statistics.GetActiveAudienceResponse",
@@ -4351,7 +4357,28 @@ export const data = {
4351
4357
  }
4352
4358
  }
4353
4359
  },
4354
- "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.Metric": {
4360
+ "pushwoosh.statistics.statistics.v2.statistics.GetCampaignDeliveryTimelineRequest": {
4361
+ "type": "I",
4362
+ "fields": {
4363
+ "campaignCode": {
4364
+ "type": "string"
4365
+ },
4366
+ "platforms": {
4367
+ "type": "number",
4368
+ "array": true
4369
+ },
4370
+ "interval": {
4371
+ "type": "pushwoosh.statistics.types.TimeInterval"
4372
+ },
4373
+ "from": {
4374
+ "type": "Date"
4375
+ },
4376
+ "to": {
4377
+ "type": "Date"
4378
+ }
4379
+ }
4380
+ },
4381
+ "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Metric": {
4355
4382
  "type": "E",
4356
4383
  "values": [
4357
4384
  "METRIC_UNSPECIFIED",
@@ -4362,7 +4389,7 @@ export const data = {
4362
4389
  "METRIC_OPENED"
4363
4390
  ]
4364
4391
  },
4365
- "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.Point": {
4392
+ "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Point": {
4366
4393
  "type": "I",
4367
4394
  "fields": {
4368
4395
  "bucket": {
@@ -4373,7 +4400,7 @@ export const data = {
4373
4400
  }
4374
4401
  }
4375
4402
  },
4376
- "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.PlatformSeries": {
4403
+ "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.PlatformSeries": {
4377
4404
  "type": "I",
4378
4405
  "fields": {
4379
4406
  "platform": {
@@ -4383,31 +4410,31 @@ export const data = {
4383
4410
  "type": "number"
4384
4411
  },
4385
4412
  "points": {
4386
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.Point",
4413
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Point",
4387
4414
  "array": true
4388
4415
  }
4389
4416
  }
4390
4417
  },
4391
- "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.MetricSeries": {
4418
+ "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.MetricSeries": {
4392
4419
  "type": "I",
4393
4420
  "fields": {
4394
4421
  "metric": {
4395
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.Metric"
4422
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Metric"
4396
4423
  },
4397
4424
  "count": {
4398
4425
  "type": "number"
4399
4426
  },
4400
4427
  "platforms": {
4401
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.PlatformSeries",
4428
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.PlatformSeries",
4402
4429
  "array": true
4403
4430
  }
4404
4431
  }
4405
4432
  },
4406
- "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse": {
4433
+ "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse": {
4407
4434
  "type": "I",
4408
4435
  "fields": {
4409
4436
  "series": {
4410
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.MetricSeries",
4437
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.MetricSeries",
4411
4438
  "array": true
4412
4439
  },
4413
4440
  "windowFrom": {
@@ -4423,7 +4450,7 @@ export const data = {
4423
4450
  "type": "pushwoosh.statistics.types.TimeInterval"
4424
4451
  },
4425
4452
  "eventAxisMetrics": {
4426
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryTimelineResponse.Metric",
4453
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Metric",
4427
4454
  "array": true
4428
4455
  }
4429
4456
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.742",
3
+ "version": "1.3.743",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -14,7 +14,8 @@ export type StatisticsService_GetPushApplicationStatistics = RpcMethod<GetPushAp
14
14
  export type StatisticsService_GetEmailApplicationStatistics = RpcMethod<GetEmailApplicationStatisticsRequest, GetEmailApplicationStatisticsResponse>;
15
15
  export type StatisticsService_GetMessageDeliveryFunnel = RpcMethod<GetMessageDeliveryFunnelRequest, GetDeliveryFunnelResponse>;
16
16
  export type StatisticsService_GetCampaignDeliveryFunnel = RpcMethod<GetCampaignDeliveryFunnelRequest, GetDeliveryFunnelResponse>;
17
- export type StatisticsService_GetMessageDeliveryTimeline = RpcMethod<GetMessageDeliveryTimelineRequest, GetMessageDeliveryTimelineResponse>;
17
+ export type StatisticsService_GetMessageDeliveryTimeline = RpcMethod<GetMessageDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
18
+ export type StatisticsService_GetCampaignDeliveryTimeline = RpcMethod<GetCampaignDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
18
19
  export type StatisticsService_GetActiveAudience = RpcMethod<GetActiveAudienceRequest, GetActiveAudienceResponse>;
19
20
  /** StatisticsService provides various statistics operations */
20
21
  export interface StatisticsService {
@@ -57,6 +58,11 @@ export interface StatisticsService {
57
58
  * answers "how many", this answers "when".
58
59
  */
59
60
  GetMessageDeliveryTimeline: StatisticsService_GetMessageDeliveryTimeline;
61
+ /**
62
+ * GetCampaignDeliveryTimeline is GetMessageDeliveryTimeline over a campaign's messages.
63
+ * Uniques stay unique within a message, so one subscriber can count more than once.
64
+ */
65
+ GetCampaignDeliveryTimeline: StatisticsService_GetCampaignDeliveryTimeline;
60
66
  /** GetActiveAudience returns active users and active devices groped by application and platform */
61
67
  GetActiveAudience: StatisticsService_GetActiveAudience;
62
68
  }
@@ -776,11 +782,32 @@ export type GetMessageDeliveryTimelineRequest = {
776
782
  from: Date;
777
783
  to: Date;
778
784
  };
785
+ /**
786
+ * GetCampaignDeliveryTimelineRequest asks for one campaign's metrics over time. Same
787
+ * window rules as the message timeline; the window is the campaign's, not one message's.
788
+ */
789
+ export type GetCampaignDeliveryTimelineRequest = {
790
+ /** Campaign code, required */
791
+ campaignCode: string;
792
+ /** Optional platform ID filter */
793
+ platforms: number[];
794
+ /**
795
+ * Bucket width. Unset lets the server pick from the window as every other series here
796
+ * does: a year -> month, over a month -> day, over a day -> hour, else minute.
797
+ */
798
+ interval: pushwoosh_statistics_types_TimeInterval;
799
+ /**
800
+ * The window to read; an unset end is the campaign's own, and narrowing it narrows the
801
+ * counts. A stated `from` rounds down to the minute, `to` clips exactly, derived — a day wide.
802
+ */
803
+ from: Date;
804
+ to: Date;
805
+ };
779
806
  /**
780
807
  * Metric is one line of the chart. Metrics, not funnel stages: STAGE_DELIVERIES
781
808
  * counts accepted sends, and the number a reader wants there is not a stage at all.
782
809
  */
783
- export type GetMessageDeliveryTimelineResponse_Metric = 'METRIC_UNSPECIFIED'
810
+ export type GetDeliveryTimelineResponse_Metric = 'METRIC_UNSPECIFIED'
784
811
  /** taken into processing */
785
812
  | 'METRIC_AUDIENCE'
786
813
  /** accepted by the gateway */
@@ -795,7 +822,7 @@ export type GetMessageDeliveryTimelineResponse_Metric = 'METRIC_UNSPECIFIED'
795
822
  * Point is one bucket of a series, always UTC. Empty buckets are not emitted: the
796
823
  * client draws the axis from the window and the interval.
797
824
  */
798
- export type GetMessageDeliveryTimelineResponse_Point = {
825
+ export type GetDeliveryTimelineResponse_Point = {
799
826
  /** start of the interval */
800
827
  bucket: Date;
801
828
  count: number;
@@ -804,21 +831,25 @@ export type GetMessageDeliveryTimelineResponse_Point = {
804
831
  * PlatformSeries is one platform's line: a metric's count is the sum of its platforms,
805
832
  * and a platform's points sum to its own count.
806
833
  */
807
- export type GetMessageDeliveryTimelineResponse_PlatformSeries = {
834
+ export type GetDeliveryTimelineResponse_PlatformSeries = {
808
835
  platform: number;
809
836
  count: number;
810
- points: GetMessageDeliveryTimelineResponse_Point[];
837
+ points: GetDeliveryTimelineResponse_Point[];
811
838
  };
812
- export type GetMessageDeliveryTimelineResponse_MetricSeries = {
813
- metric: GetMessageDeliveryTimelineResponse_Metric;
839
+ export type GetDeliveryTimelineResponse_MetricSeries = {
840
+ metric: GetDeliveryTimelineResponse_Metric;
814
841
  count: number;
815
- platforms: GetMessageDeliveryTimelineResponse_PlatformSeries[];
842
+ platforms: GetDeliveryTimelineResponse_PlatformSeries[];
816
843
  };
817
- export type GetMessageDeliveryTimelineResponse = {
818
- series: GetMessageDeliveryTimelineResponse_MetricSeries[];
844
+ /**
845
+ * GetDeliveryTimelineResponse is the shared answer of both timeline methods: a campaign's
846
+ * series is the same shape as a message's, summed over the campaign's messages.
847
+ */
848
+ export type GetDeliveryTimelineResponse = {
849
+ series: GetDeliveryTimelineResponse_MetricSeries[];
819
850
  /**
820
- * The window actually read: what the request asked for, clamped to the data,
821
- * or the message's own window when the request asked for neither end.
851
+ * The window actually read: what the request asked for, clamped to the data, or the
852
+ * subject's own window when the request asked for neither end.
822
853
  */
823
854
  windowFrom: Date;
824
855
  windowTo: Date;
@@ -836,7 +867,7 @@ export type GetMessageDeliveryTimelineResponse = {
836
867
  * These metrics are counted when the device answered, the others when we sent. The
837
868
  * metrics of one bucket are therefore not a funnel: they reconcile over the window.
838
869
  */
839
- eventAxisMetrics: GetMessageDeliveryTimelineResponse_Metric[];
870
+ eventAxisMetrics: GetDeliveryTimelineResponse_Metric[];
840
871
  };
841
872
  /** ActiveAudienceType specifies the type of active users calculation */
842
873
  export type ActiveAudienceType =