@pushwoosh/rpc-gateway-statistics-api 1.3.729 → 1.3.730

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
@@ -4105,9 +4105,41 @@ export const data = {
4105
4105
  "BASIC_FORM_REASON_UNSPECIFIED",
4106
4106
  "BASIC_FORM_REASON_RETENTION",
4107
4107
  "BASIC_FORM_REASON_UNAVAILABLE",
4108
- "BASIC_FORM_REASON_NO_DELIVERIES"
4108
+ "BASIC_FORM_REASON_NO_DELIVERIES",
4109
+ "BASIC_FORM_REASON_NOT_APPLICABLE"
4109
4110
  ]
4110
4111
  },
4112
+ "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.Channel": {
4113
+ "type": "E",
4114
+ "values": [
4115
+ "CHANNEL_UNSPECIFIED",
4116
+ "CHANNEL_MOBILE_PUSH",
4117
+ "CHANNEL_WEB_PUSH",
4118
+ "CHANNEL_EMAIL",
4119
+ "CHANNEL_OTHER"
4120
+ ]
4121
+ },
4122
+ "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.ChannelFunnel": {
4123
+ "type": "I",
4124
+ "fields": {
4125
+ "channel": {
4126
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.Channel"
4127
+ },
4128
+ "funnel": {
4129
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.StageItem",
4130
+ "array": true
4131
+ },
4132
+ "deliveriesForm": {
4133
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.DeliveriesForm"
4134
+ },
4135
+ "basicFormReason": {
4136
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.BasicFormReason"
4137
+ },
4138
+ "confirmedDeliveries": {
4139
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.ConfirmedDeliveries"
4140
+ }
4141
+ }
4142
+ },
4111
4143
  "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.PlatformCount": {
4112
4144
  "type": "I",
4113
4145
  "fields": {
@@ -4190,8 +4222,8 @@ export const data = {
4190
4222
  "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse": {
4191
4223
  "type": "I",
4192
4224
  "fields": {
4193
- "funnel": {
4194
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.StageItem",
4225
+ "channels": {
4226
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.ChannelFunnel",
4195
4227
  "array": true
4196
4228
  },
4197
4229
  "windowFrom": {
@@ -4202,15 +4234,6 @@ export const data = {
4202
4234
  },
4203
4235
  "funnelState": {
4204
4236
  "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.FunnelState"
4205
- },
4206
- "deliveriesForm": {
4207
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.DeliveriesForm"
4208
- },
4209
- "basicFormReason": {
4210
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.BasicFormReason"
4211
- },
4212
- "confirmedDeliveries": {
4213
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.ConfirmedDeliveries"
4214
4237
  }
4215
4238
  }
4216
4239
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.729",
3
+ "version": "1.3.730",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -582,7 +582,34 @@ export type GetMessageDeliveryFunnelResponse_BasicFormReason = 'BASIC_FORM_REASO
582
582
  /** system message, account not covered */
583
583
  | 'BASIC_FORM_REASON_UNAVAILABLE'
584
584
  /** nothing accepted yet — say nothing in the UI */
585
- | 'BASIC_FORM_REASON_NO_DELIVERIES';
585
+ | 'BASIC_FORM_REASON_NO_DELIVERIES'
586
+ /**
587
+ * NOT_APPLICABLE: the channel has no alert state at all, so the basic form is what
588
+ * it always carries — not a degradation the client should explain away.
589
+ */
590
+ | 'BASIC_FORM_REASON_NOT_APPLICABLE';
591
+ /**
592
+ * Channel groups platforms by how their funnel reads. Web push is apart from mobile
593
+ * push because its alert state is always on: an ALERTS_DISABLED row could not fill.
594
+ */
595
+ export type GetMessageDeliveryFunnelResponse_Channel = 'CHANNEL_UNSPECIFIED'
596
+ /** iOS, OSX, Android, Amazon, Huawei */
597
+ | 'CHANNEL_MOBILE_PUSH'
598
+ /** Safari, Chrome, Firefox */
599
+ | 'CHANNEL_WEB_PUSH' | 'CHANNEL_EMAIL'
600
+ /** SMS, messengers, Wallet, Windows, Baidu, Xiaomi */
601
+ | 'CHANNEL_OTHER';
602
+ /**
603
+ * ChannelFunnel is one channel's whole funnel. The form belongs here rather than to
604
+ * the response: a message on iOS and Email carries two different ones at once.
605
+ */
606
+ export type GetMessageDeliveryFunnelResponse_ChannelFunnel = {
607
+ channel: GetMessageDeliveryFunnelResponse_Channel;
608
+ funnel: GetMessageDeliveryFunnelResponse_StageItem[];
609
+ deliveriesForm: GetMessageDeliveryFunnelResponse_DeliveriesForm;
610
+ basicFormReason: GetMessageDeliveryFunnelResponse_BasicFormReason;
611
+ confirmedDeliveries: GetMessageDeliveryFunnelResponse_ConfirmedDeliveries;
612
+ };
586
613
  /**
587
614
  * PlatformCount is one platform's share of the number above it; the parent is always
588
615
  * their sum. A platform with nothing to report is absent, which is not a zero.
@@ -631,7 +658,11 @@ export type GetMessageDeliveryFunnelResponse_ConfirmedDeliveries = {
631
658
  platforms: GetMessageDeliveryFunnelResponse_PlatformCount[];
632
659
  };
633
660
  export type GetMessageDeliveryFunnelResponse = {
634
- funnel: GetMessageDeliveryFunnelResponse_StageItem[];
661
+ /**
662
+ * Channels are not ordered; a client looks one up by its channel field, not by
663
+ * position.
664
+ */
665
+ channels: GetMessageDeliveryFunnelResponse_ChannelFunnel[];
635
666
  /**
636
667
  * The window the funnel was computed over, derived from the data: the numbers are
637
668
  * meaningless without it, and the pre-aggregate TTL can cut it short.
@@ -639,9 +670,6 @@ export type GetMessageDeliveryFunnelResponse = {
639
670
  windowFrom: Date;
640
671
  windowTo: Date;
641
672
  funnelState: GetMessageDeliveryFunnelResponse_FunnelState;
642
- deliveriesForm: GetMessageDeliveryFunnelResponse_DeliveriesForm;
643
- basicFormReason: GetMessageDeliveryFunnelResponse_BasicFormReason;
644
- confirmedDeliveries: GetMessageDeliveryFunnelResponse_ConfirmedDeliveries;
645
673
  };
646
674
  /**
647
675
  * GetMessageDeliveryTimelineRequest asks for one message's metrics over time. Unlike