@pushwoosh/rpc-gateway-statistics-api 1.3.841 → 1.3.842

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
@@ -1914,6 +1914,18 @@ export const data = {
1914
1914
  }
1915
1915
  }
1916
1916
  },
1917
+ "pushwoosh.statistics.statistics.v1.MessageHistoryChannel": {
1918
+ "type": "E",
1919
+ "values": [
1920
+ "MESSAGE_HISTORY_CHANNEL_UNSPECIFIED",
1921
+ "MESSAGE_HISTORY_CHANNEL_PUSH",
1922
+ "MESSAGE_HISTORY_CHANNEL_INBOX",
1923
+ "MESSAGE_HISTORY_CHANNEL_EMAIL",
1924
+ "MESSAGE_HISTORY_CHANNEL_SMS",
1925
+ "MESSAGE_HISTORY_CHANNEL_WHATSAPP",
1926
+ "MESSAGE_HISTORY_CHANNEL_FB_MESSENGER"
1927
+ ]
1928
+ },
1917
1929
  "pushwoosh.statistics.statistics.v1.GetMessageHistoryFilters": {
1918
1930
  "type": "I",
1919
1931
  "fields": {
@@ -1950,6 +1962,9 @@ export const data = {
1950
1962
  "messageCodes": {
1951
1963
  "type": "string",
1952
1964
  "array": true
1965
+ },
1966
+ "channel": {
1967
+ "type": "pushwoosh.statistics.statistics.v1.MessageHistoryChannel"
1953
1968
  }
1954
1969
  }
1955
1970
  },
@@ -2000,6 +2015,20 @@ export const data = {
2000
2015
  }
2001
2016
  }
2002
2017
  },
2018
+ "pushwoosh.statistics.statistics.v1.MessageHistoryInboxMetric": {
2019
+ "type": "I",
2020
+ "fields": {
2021
+ "read": {
2022
+ "type": "number"
2023
+ },
2024
+ "clicked": {
2025
+ "type": "number"
2026
+ },
2027
+ "clickRate": {
2028
+ "type": "number"
2029
+ }
2030
+ }
2031
+ },
2003
2032
  "pushwoosh.statistics.statistics.v1.MessageHistoryItemMetric": {
2004
2033
  "type": "I",
2005
2034
  "fields": {
@@ -2014,6 +2043,9 @@ export const data = {
2014
2043
  },
2015
2044
  "errors": {
2016
2045
  "type": "number"
2046
+ },
2047
+ "inbox": {
2048
+ "type": "pushwoosh.statistics.statistics.v1.MessageHistoryInboxMetric"
2017
2049
  }
2018
2050
  }
2019
2051
  },
@@ -2080,6 +2112,12 @@ export const data = {
2080
2112
  },
2081
2113
  "smsPresetCode": {
2082
2114
  "type": "string"
2115
+ },
2116
+ "inboxExpiresAt": {
2117
+ "type": "string"
2118
+ },
2119
+ "channel": {
2120
+ "type": "pushwoosh.statistics.statistics.v1.MessageHistoryChannel"
2083
2121
  }
2084
2122
  }
2085
2123
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.841",
3
+ "version": "1.3.842",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -804,6 +804,11 @@ export type MessageHistoryOrderBy = {
804
804
  by: MessageHistoryOrderColumn;
805
805
  order: OrderType;
806
806
  };
807
+ /**
808
+ * MessageHistoryChannel is one tab of the one-time messages listing: a message belongs to
809
+ * exactly one channel, told apart by its source and platforms
810
+ */
811
+ export type MessageHistoryChannel = 'MESSAGE_HISTORY_CHANNEL_UNSPECIFIED' | 'MESSAGE_HISTORY_CHANNEL_PUSH' | 'MESSAGE_HISTORY_CHANNEL_INBOX' | 'MESSAGE_HISTORY_CHANNEL_EMAIL' | 'MESSAGE_HISTORY_CHANNEL_SMS' | 'MESSAGE_HISTORY_CHANNEL_WHATSAPP' | 'MESSAGE_HISTORY_CHANNEL_FB_MESSENGER';
807
812
  export type GetMessageHistoryFilters = {
808
813
  statuses: MessageStatus[];
809
814
  platforms: number[];
@@ -814,6 +819,7 @@ export type GetMessageHistoryFilters = {
814
819
  campaigns: string[];
815
820
  messageIds: number[];
816
821
  messageCodes: string[];
822
+ channel: MessageHistoryChannel;
817
823
  };
818
824
  export type GetMessageHistoryRequest_MessageType = 'UNKNOWN' | 'MARKETING' | 'TRANSACTIONAL';
819
825
  export type GetMessageHistoryRequest = {
@@ -829,11 +835,23 @@ export type GetMessageHistoryRequest = {
829
835
  messageType: GetMessageHistoryRequest_MessageType;
830
836
  checkForMessages: boolean;
831
837
  };
838
+ /**
839
+ * MessageHistoryInboxMetric counts an App Inbox message's entries by what their users did
840
+ * with them; users, not devices, one per entry over its whole lifetime
841
+ */
842
+ export type MessageHistoryInboxMetric = {
843
+ read: number;
844
+ clicked: number;
845
+ /** clicked / recipients, percent */
846
+ clickRate: number;
847
+ };
832
848
  export type MessageHistoryItemMetric = {
833
849
  recipients: number;
834
850
  opened: number;
835
851
  ctr: number;
836
852
  errors: number;
853
+ /** App Inbox messages only */
854
+ inbox: MessageHistoryInboxMetric;
837
855
  };
838
856
  export type MessageHistoryItem = {
839
857
  messageId: number;
@@ -857,6 +875,9 @@ export type MessageHistoryItem = {
857
875
  viberTemplateId: string;
858
876
  whatsappContentId: string;
859
877
  smsPresetCode: string;
878
+ /** App Inbox messages only; when the entries leave the inboxes */
879
+ inboxExpiresAt: string;
880
+ channel: MessageHistoryChannel;
860
881
  };
861
882
  export type GetMessageHistoryResponse = {
862
883
  total: number;