@pushwoosh/rpc-gateway-statistics-api 1.3.742 → 1.3.744
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 +40 -29
- package/package.json +1 -1
- package/pushwoosh_statistics_statistics_v2_statistics.d.ts +52 -33
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.
|
|
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",
|
|
@@ -4143,7 +4149,8 @@ export const data = {
|
|
|
4143
4149
|
"values": [
|
|
4144
4150
|
"KIND_UNSPECIFIED",
|
|
4145
4151
|
"KIND_PASSED",
|
|
4146
|
-
"KIND_REASON"
|
|
4152
|
+
"KIND_REASON",
|
|
4153
|
+
"KIND_SUBSET"
|
|
4147
4154
|
]
|
|
4148
4155
|
},
|
|
4149
4156
|
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryFunnelResponse.FunnelState": {
|
|
@@ -4201,9 +4208,6 @@ export const data = {
|
|
|
4201
4208
|
},
|
|
4202
4209
|
"confirmedDeliveries": {
|
|
4203
4210
|
"type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryFunnelResponse.ConfirmedDeliveries"
|
|
4204
|
-
},
|
|
4205
|
-
"emailBounces": {
|
|
4206
|
-
"type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryFunnelResponse.EmailBounces"
|
|
4207
4211
|
}
|
|
4208
4212
|
}
|
|
4209
4213
|
},
|
|
@@ -4286,20 +4290,6 @@ export const data = {
|
|
|
4286
4290
|
}
|
|
4287
4291
|
}
|
|
4288
4292
|
},
|
|
4289
|
-
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryFunnelResponse.EmailBounces": {
|
|
4290
|
-
"type": "I",
|
|
4291
|
-
"fields": {
|
|
4292
|
-
"hard": {
|
|
4293
|
-
"type": "number"
|
|
4294
|
-
},
|
|
4295
|
-
"soft": {
|
|
4296
|
-
"type": "number"
|
|
4297
|
-
},
|
|
4298
|
-
"alsoConfirmed": {
|
|
4299
|
-
"type": "number"
|
|
4300
|
-
}
|
|
4301
|
-
}
|
|
4302
|
-
},
|
|
4303
4293
|
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryFunnelResponse": {
|
|
4304
4294
|
"type": "I",
|
|
4305
4295
|
"fields": {
|
|
@@ -4351,7 +4341,28 @@ export const data = {
|
|
|
4351
4341
|
}
|
|
4352
4342
|
}
|
|
4353
4343
|
},
|
|
4354
|
-
"pushwoosh.statistics.statistics.v2.statistics.
|
|
4344
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetCampaignDeliveryTimelineRequest": {
|
|
4345
|
+
"type": "I",
|
|
4346
|
+
"fields": {
|
|
4347
|
+
"campaignCode": {
|
|
4348
|
+
"type": "string"
|
|
4349
|
+
},
|
|
4350
|
+
"platforms": {
|
|
4351
|
+
"type": "number",
|
|
4352
|
+
"array": true
|
|
4353
|
+
},
|
|
4354
|
+
"interval": {
|
|
4355
|
+
"type": "pushwoosh.statistics.types.TimeInterval"
|
|
4356
|
+
},
|
|
4357
|
+
"from": {
|
|
4358
|
+
"type": "Date"
|
|
4359
|
+
},
|
|
4360
|
+
"to": {
|
|
4361
|
+
"type": "Date"
|
|
4362
|
+
}
|
|
4363
|
+
}
|
|
4364
|
+
},
|
|
4365
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Metric": {
|
|
4355
4366
|
"type": "E",
|
|
4356
4367
|
"values": [
|
|
4357
4368
|
"METRIC_UNSPECIFIED",
|
|
@@ -4362,7 +4373,7 @@ export const data = {
|
|
|
4362
4373
|
"METRIC_OPENED"
|
|
4363
4374
|
]
|
|
4364
4375
|
},
|
|
4365
|
-
"pushwoosh.statistics.statistics.v2.statistics.
|
|
4376
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Point": {
|
|
4366
4377
|
"type": "I",
|
|
4367
4378
|
"fields": {
|
|
4368
4379
|
"bucket": {
|
|
@@ -4373,7 +4384,7 @@ export const data = {
|
|
|
4373
4384
|
}
|
|
4374
4385
|
}
|
|
4375
4386
|
},
|
|
4376
|
-
"pushwoosh.statistics.statistics.v2.statistics.
|
|
4387
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.PlatformSeries": {
|
|
4377
4388
|
"type": "I",
|
|
4378
4389
|
"fields": {
|
|
4379
4390
|
"platform": {
|
|
@@ -4383,31 +4394,31 @@ export const data = {
|
|
|
4383
4394
|
"type": "number"
|
|
4384
4395
|
},
|
|
4385
4396
|
"points": {
|
|
4386
|
-
"type": "pushwoosh.statistics.statistics.v2.statistics.
|
|
4397
|
+
"type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Point",
|
|
4387
4398
|
"array": true
|
|
4388
4399
|
}
|
|
4389
4400
|
}
|
|
4390
4401
|
},
|
|
4391
|
-
"pushwoosh.statistics.statistics.v2.statistics.
|
|
4402
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.MetricSeries": {
|
|
4392
4403
|
"type": "I",
|
|
4393
4404
|
"fields": {
|
|
4394
4405
|
"metric": {
|
|
4395
|
-
"type": "pushwoosh.statistics.statistics.v2.statistics.
|
|
4406
|
+
"type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Metric"
|
|
4396
4407
|
},
|
|
4397
4408
|
"count": {
|
|
4398
4409
|
"type": "number"
|
|
4399
4410
|
},
|
|
4400
4411
|
"platforms": {
|
|
4401
|
-
"type": "pushwoosh.statistics.statistics.v2.statistics.
|
|
4412
|
+
"type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.PlatformSeries",
|
|
4402
4413
|
"array": true
|
|
4403
4414
|
}
|
|
4404
4415
|
}
|
|
4405
4416
|
},
|
|
4406
|
-
"pushwoosh.statistics.statistics.v2.statistics.
|
|
4417
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse": {
|
|
4407
4418
|
"type": "I",
|
|
4408
4419
|
"fields": {
|
|
4409
4420
|
"series": {
|
|
4410
|
-
"type": "pushwoosh.statistics.statistics.v2.statistics.
|
|
4421
|
+
"type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.MetricSeries",
|
|
4411
4422
|
"array": true
|
|
4412
4423
|
},
|
|
4413
4424
|
"windowFrom": {
|
|
@@ -4423,7 +4434,7 @@ export const data = {
|
|
|
4423
4434
|
"type": "pushwoosh.statistics.types.TimeInterval"
|
|
4424
4435
|
},
|
|
4425
4436
|
"eventAxisMetrics": {
|
|
4426
|
-
"type": "pushwoosh.statistics.statistics.v2.statistics.
|
|
4437
|
+
"type": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryTimelineResponse.Metric",
|
|
4427
4438
|
"array": true
|
|
4428
4439
|
}
|
|
4429
4440
|
}
|
package/package.json
CHANGED
|
@@ -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,
|
|
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
|
}
|
|
@@ -597,14 +603,19 @@ export type GetDeliveryFunnelResponse_Stage = 'STAGE_UNSPECIFIED'
|
|
|
597
603
|
*/
|
|
598
604
|
| 'STAGE_INTERACTIONS';
|
|
599
605
|
/**
|
|
600
|
-
* Kind tells how a piece relates to its stage total.
|
|
601
|
-
*
|
|
606
|
+
* Kind tells how a piece relates to its stage total. PASSED and REASON pieces are the
|
|
607
|
+
* stage's own distribution: disjoint, and they add up to its count.
|
|
602
608
|
*/
|
|
603
609
|
export type GetDeliveryFunnelResponse_Kind = 'KIND_UNSPECIFIED'
|
|
604
610
|
/** moved on to the next stage */
|
|
605
611
|
| 'KIND_PASSED'
|
|
606
612
|
/** did not move on, for this reason */
|
|
607
|
-
| 'KIND_REASON'
|
|
613
|
+
| 'KIND_REASON'
|
|
614
|
+
/**
|
|
615
|
+
* KIND_SUBSET cuts across the stage instead of dividing it: it overlaps the PASSED
|
|
616
|
+
* and REASON pieces and is never a summand. Sum PASSED and REASON only.
|
|
617
|
+
*/
|
|
618
|
+
| 'KIND_SUBSET';
|
|
608
619
|
/**
|
|
609
620
|
* FunnelState describes the response before any stage is read: an empty funnel has two
|
|
610
621
|
* very different meanings and one shape.
|
|
@@ -662,8 +673,6 @@ export type GetDeliveryFunnelResponse_ChannelFunnel = {
|
|
|
662
673
|
deliveriesForm: GetDeliveryFunnelResponse_DeliveriesForm;
|
|
663
674
|
basicFormReason: GetDeliveryFunnelResponse_BasicFormReason;
|
|
664
675
|
confirmedDeliveries: GetDeliveryFunnelResponse_ConfirmedDeliveries;
|
|
665
|
-
/** Email only, absent when not measured. Never a stage row — see EmailBounces. */
|
|
666
|
-
emailBounces: GetDeliveryFunnelResponse_EmailBounces;
|
|
667
676
|
};
|
|
668
677
|
/**
|
|
669
678
|
* PlatformCount is one platform's share of the number above it; the parent is always
|
|
@@ -712,21 +721,6 @@ export type GetDeliveryFunnelResponse_ConfirmedDeliveries = {
|
|
|
712
721
|
count: number;
|
|
713
722
|
platforms: GetDeliveryFunnelResponse_PlatformCount[];
|
|
714
723
|
};
|
|
715
|
-
/**
|
|
716
|
-
* EmailBounces is what the mail provider refused, in recipient addresses. It sits beside
|
|
717
|
-
* the stages and belongs to none of them, on purpose and never clamped.
|
|
718
|
-
*/
|
|
719
|
-
export type GetDeliveryFunnelResponse_EmailBounces = {
|
|
720
|
-
/** at least one permanent refusal */
|
|
721
|
-
hard: number;
|
|
722
|
-
/** refused, never permanently */
|
|
723
|
-
soft: number;
|
|
724
|
-
/**
|
|
725
|
-
* Of hard+soft, how many also confirmed delivery, in any order, and so are counted
|
|
726
|
-
* inside CONFIRMED_BY_DEVICE too: the rest, hard + soft - also_confirmed, is not.
|
|
727
|
-
*/
|
|
728
|
-
alsoConfirmed: number;
|
|
729
|
-
};
|
|
730
724
|
/**
|
|
731
725
|
* GetDeliveryFunnelResponse is the shared answer of both funnel methods: a campaign's
|
|
732
726
|
* funnel is the sum of its messages' funnels, so the shape has to be the same one.
|
|
@@ -776,11 +770,32 @@ export type GetMessageDeliveryTimelineRequest = {
|
|
|
776
770
|
from: Date;
|
|
777
771
|
to: Date;
|
|
778
772
|
};
|
|
773
|
+
/**
|
|
774
|
+
* GetCampaignDeliveryTimelineRequest asks for one campaign's metrics over time. Same
|
|
775
|
+
* window rules as the message timeline; the window is the campaign's, not one message's.
|
|
776
|
+
*/
|
|
777
|
+
export type GetCampaignDeliveryTimelineRequest = {
|
|
778
|
+
/** Campaign code, required */
|
|
779
|
+
campaignCode: string;
|
|
780
|
+
/** Optional platform ID filter */
|
|
781
|
+
platforms: number[];
|
|
782
|
+
/**
|
|
783
|
+
* Bucket width. Unset lets the server pick from the window as every other series here
|
|
784
|
+
* does: a year -> month, over a month -> day, over a day -> hour, else minute.
|
|
785
|
+
*/
|
|
786
|
+
interval: pushwoosh_statistics_types_TimeInterval;
|
|
787
|
+
/**
|
|
788
|
+
* The window to read; an unset end is the campaign's own, and narrowing it narrows the
|
|
789
|
+
* counts. A stated `from` rounds down to the minute, `to` clips exactly, derived — a day wide.
|
|
790
|
+
*/
|
|
791
|
+
from: Date;
|
|
792
|
+
to: Date;
|
|
793
|
+
};
|
|
779
794
|
/**
|
|
780
795
|
* Metric is one line of the chart. Metrics, not funnel stages: STAGE_DELIVERIES
|
|
781
796
|
* counts accepted sends, and the number a reader wants there is not a stage at all.
|
|
782
797
|
*/
|
|
783
|
-
export type
|
|
798
|
+
export type GetDeliveryTimelineResponse_Metric = 'METRIC_UNSPECIFIED'
|
|
784
799
|
/** taken into processing */
|
|
785
800
|
| 'METRIC_AUDIENCE'
|
|
786
801
|
/** accepted by the gateway */
|
|
@@ -795,7 +810,7 @@ export type GetMessageDeliveryTimelineResponse_Metric = 'METRIC_UNSPECIFIED'
|
|
|
795
810
|
* Point is one bucket of a series, always UTC. Empty buckets are not emitted: the
|
|
796
811
|
* client draws the axis from the window and the interval.
|
|
797
812
|
*/
|
|
798
|
-
export type
|
|
813
|
+
export type GetDeliveryTimelineResponse_Point = {
|
|
799
814
|
/** start of the interval */
|
|
800
815
|
bucket: Date;
|
|
801
816
|
count: number;
|
|
@@ -804,21 +819,25 @@ export type GetMessageDeliveryTimelineResponse_Point = {
|
|
|
804
819
|
* PlatformSeries is one platform's line: a metric's count is the sum of its platforms,
|
|
805
820
|
* and a platform's points sum to its own count.
|
|
806
821
|
*/
|
|
807
|
-
export type
|
|
822
|
+
export type GetDeliveryTimelineResponse_PlatformSeries = {
|
|
808
823
|
platform: number;
|
|
809
824
|
count: number;
|
|
810
|
-
points:
|
|
825
|
+
points: GetDeliveryTimelineResponse_Point[];
|
|
811
826
|
};
|
|
812
|
-
export type
|
|
813
|
-
metric:
|
|
827
|
+
export type GetDeliveryTimelineResponse_MetricSeries = {
|
|
828
|
+
metric: GetDeliveryTimelineResponse_Metric;
|
|
814
829
|
count: number;
|
|
815
|
-
platforms:
|
|
830
|
+
platforms: GetDeliveryTimelineResponse_PlatformSeries[];
|
|
816
831
|
};
|
|
817
|
-
|
|
818
|
-
|
|
832
|
+
/**
|
|
833
|
+
* GetDeliveryTimelineResponse is the shared answer of both timeline methods: a campaign's
|
|
834
|
+
* series is the same shape as a message's, summed over the campaign's messages.
|
|
835
|
+
*/
|
|
836
|
+
export type GetDeliveryTimelineResponse = {
|
|
837
|
+
series: GetDeliveryTimelineResponse_MetricSeries[];
|
|
819
838
|
/**
|
|
820
|
-
* The window actually read: what the request asked for, clamped to the data,
|
|
821
|
-
*
|
|
839
|
+
* The window actually read: what the request asked for, clamped to the data, or the
|
|
840
|
+
* subject's own window when the request asked for neither end.
|
|
822
841
|
*/
|
|
823
842
|
windowFrom: Date;
|
|
824
843
|
windowTo: Date;
|
|
@@ -836,7 +855,7 @@ export type GetMessageDeliveryTimelineResponse = {
|
|
|
836
855
|
* These metrics are counted when the device answered, the others when we sent. The
|
|
837
856
|
* metrics of one bucket are therefore not a funnel: they reconcile over the window.
|
|
838
857
|
*/
|
|
839
|
-
eventAxisMetrics:
|
|
858
|
+
eventAxisMetrics: GetDeliveryTimelineResponse_Metric[];
|
|
840
859
|
};
|
|
841
860
|
/** ActiveAudienceType specifies the type of active users calculation */
|
|
842
861
|
export type ActiveAudienceType =
|