@pushwoosh/rpc-v2-http-api-data 0.2.149 → 0.2.151
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/applications_alerts.d.ts +1 -1
- package/data.js +411 -2
- package/internal_alerts.d.ts +8 -0
- package/package.json +1 -1
- package/pushwoosh_accounts_alerts_v1.d.ts +143 -2
package/applications_alerts.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type AlertError = 'ALERT_ERROR_UNSPECIFIED'
|
|
|
9
9
|
/** warnings */
|
|
10
10
|
| 'SUBSCRIBERS_QUOTA_ALMOST_REACHED' | 'EMAIL_QUOTA_ALMOST_REACHED'
|
|
11
11
|
/** errors */
|
|
12
|
-
| 'EMAIL_QUOTA_REACHED' | 'SUSPENDED_ACCOUNT' | 'MANUALLY_SUSPENDED_ACCOUNT' | 'APPLE_CERTIFICATE_EXPIRED' | 'PAYMENT_FAILED' | 'PLATFORM_DISABLED' | 'PAYMENT_OVERDUE' | 'PAYMENT_ATTEMPT_FAILED' | 'EMAIL_CONFIGURATION_NOT_COMPLETED'
|
|
12
|
+
| 'EMAIL_QUOTA_REACHED' | 'SUSPENDED_ACCOUNT' | 'MANUALLY_SUSPENDED_ACCOUNT' | 'APPLE_CERTIFICATE_EXPIRED' | 'PAYMENT_FAILED' | 'PLATFORM_DISABLED' | 'PAYMENT_OVERDUE' | 'PAYMENT_ATTEMPT_FAILED' | 'EMAIL_CONFIGURATION_NOT_COMPLETED' | 'EMAIL_SENDING_PAUSED_COMPLAINT_RATE' | 'EMAIL_SENDING_PAUSED_HARD_BOUNCE_RATE' | 'EMAIL_SENDING_PAUSED_BOTH_RATES'
|
|
13
13
|
/** recommendation */
|
|
14
14
|
| 'SDK_INTEGRATION' | 'THIRD_PARTY_INTEGRATION';
|
|
15
15
|
export type Alert = {
|
package/data.js
CHANGED
|
@@ -1599,6 +1599,36 @@ export const data = {
|
|
|
1599
1599
|
"response": "pushwoosh.accounts.alerts.v1.DeleteResponse",
|
|
1600
1600
|
"method": "delete",
|
|
1601
1601
|
"path": "/api/v1/delete"
|
|
1602
|
+
},
|
|
1603
|
+
"Get": {
|
|
1604
|
+
"request": "pushwoosh.accounts.alerts.v1.GetRequest",
|
|
1605
|
+
"response": "pushwoosh.accounts.alerts.v1.GetResponse",
|
|
1606
|
+
"method": "get",
|
|
1607
|
+
"path": "/api/v1/get"
|
|
1608
|
+
},
|
|
1609
|
+
"ListGroup": {
|
|
1610
|
+
"request": "pushwoosh.accounts.alerts.v1.ListGroupRequest",
|
|
1611
|
+
"response": "pushwoosh.accounts.alerts.v1.ListGroupResponse",
|
|
1612
|
+
"method": "get",
|
|
1613
|
+
"path": "/api/v1/list-group"
|
|
1614
|
+
},
|
|
1615
|
+
"UpdateUnread": {
|
|
1616
|
+
"request": "pushwoosh.accounts.alerts.v1.UpdateUnreadRequest",
|
|
1617
|
+
"response": "pushwoosh.accounts.alerts.v1.UpdateUnreadResponse",
|
|
1618
|
+
"method": "put",
|
|
1619
|
+
"path": "/api/v1/update-unread"
|
|
1620
|
+
},
|
|
1621
|
+
"Recall": {
|
|
1622
|
+
"request": "pushwoosh.accounts.alerts.v1.RecallRequest",
|
|
1623
|
+
"response": "pushwoosh.accounts.alerts.v1.RecallResponse",
|
|
1624
|
+
"method": "post",
|
|
1625
|
+
"path": "/api/v1/recall"
|
|
1626
|
+
},
|
|
1627
|
+
"UpdateGroup": {
|
|
1628
|
+
"request": "pushwoosh.accounts.alerts.v1.UpdateGroupRequest",
|
|
1629
|
+
"response": "pushwoosh.accounts.alerts.v1.UpdateGroupResponse",
|
|
1630
|
+
"method": "put",
|
|
1631
|
+
"path": "/api/v1/update-group"
|
|
1602
1632
|
}
|
|
1603
1633
|
}
|
|
1604
1634
|
},
|
|
@@ -1619,6 +1649,18 @@ export const data = {
|
|
|
1619
1649
|
"actionLinkLabel": {
|
|
1620
1650
|
"type": "string",
|
|
1621
1651
|
"optional": true
|
|
1652
|
+
},
|
|
1653
|
+
"imageUrl": {
|
|
1654
|
+
"type": "string",
|
|
1655
|
+
"optional": true
|
|
1656
|
+
},
|
|
1657
|
+
"secondaryActionLink": {
|
|
1658
|
+
"type": "string",
|
|
1659
|
+
"optional": true
|
|
1660
|
+
},
|
|
1661
|
+
"secondaryActionLinkLabel": {
|
|
1662
|
+
"type": "string",
|
|
1663
|
+
"optional": true
|
|
1622
1664
|
}
|
|
1623
1665
|
}
|
|
1624
1666
|
},
|
|
@@ -1644,7 +1686,8 @@ export const data = {
|
|
|
1644
1686
|
"ALERT_TYPE_UNSPECIFIED",
|
|
1645
1687
|
"ALERT_TYPE_BLOCKING",
|
|
1646
1688
|
"ALERT_TYPE_DISMISSABLE",
|
|
1647
|
-
"ALERT_TYPE_TOP_BANNER"
|
|
1689
|
+
"ALERT_TYPE_TOP_BANNER",
|
|
1690
|
+
"ALERT_TYPE_PRODUCT_UPDATE"
|
|
1648
1691
|
]
|
|
1649
1692
|
},
|
|
1650
1693
|
"pushwoosh.accounts.alerts.v1.AlertStatus": {
|
|
@@ -1704,6 +1747,13 @@ export const data = {
|
|
|
1704
1747
|
},
|
|
1705
1748
|
"accountId": {
|
|
1706
1749
|
"type": "number"
|
|
1750
|
+
},
|
|
1751
|
+
"userId": {
|
|
1752
|
+
"type": "number"
|
|
1753
|
+
},
|
|
1754
|
+
"excludeTypes": {
|
|
1755
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType",
|
|
1756
|
+
"array": true
|
|
1707
1757
|
}
|
|
1708
1758
|
}
|
|
1709
1759
|
},
|
|
@@ -1755,6 +1805,18 @@ export const data = {
|
|
|
1755
1805
|
"actionLinkLabel": {
|
|
1756
1806
|
"type": "string",
|
|
1757
1807
|
"optional": true
|
|
1808
|
+
},
|
|
1809
|
+
"imageUrl": {
|
|
1810
|
+
"type": "string",
|
|
1811
|
+
"optional": true
|
|
1812
|
+
},
|
|
1813
|
+
"secondaryActionLink": {
|
|
1814
|
+
"type": "string",
|
|
1815
|
+
"optional": true
|
|
1816
|
+
},
|
|
1817
|
+
"secondaryActionLinkLabel": {
|
|
1818
|
+
"type": "string",
|
|
1819
|
+
"optional": true
|
|
1758
1820
|
}
|
|
1759
1821
|
}
|
|
1760
1822
|
},
|
|
@@ -1809,6 +1871,13 @@ export const data = {
|
|
|
1809
1871
|
"uniqueKey": {
|
|
1810
1872
|
"type": "string",
|
|
1811
1873
|
"optional": true
|
|
1874
|
+
},
|
|
1875
|
+
"accountIds": {
|
|
1876
|
+
"type": "number",
|
|
1877
|
+
"array": true
|
|
1878
|
+
},
|
|
1879
|
+
"allAccounts": {
|
|
1880
|
+
"type": "boolean"
|
|
1812
1881
|
}
|
|
1813
1882
|
}
|
|
1814
1883
|
},
|
|
@@ -1829,6 +1898,9 @@ export const data = {
|
|
|
1829
1898
|
"alerts": {
|
|
1830
1899
|
"type": "pushwoosh.accounts.alerts.v1.UpdateStatusRequest.Alert",
|
|
1831
1900
|
"array": true
|
|
1901
|
+
},
|
|
1902
|
+
"userId": {
|
|
1903
|
+
"type": "number"
|
|
1832
1904
|
}
|
|
1833
1905
|
}
|
|
1834
1906
|
},
|
|
@@ -1838,7 +1910,226 @@ export const data = {
|
|
|
1838
1910
|
},
|
|
1839
1911
|
"pushwoosh.accounts.alerts.v1.SendResponse": {
|
|
1840
1912
|
"type": "I",
|
|
1841
|
-
"fields": {
|
|
1913
|
+
"fields": {
|
|
1914
|
+
"groupUuid": {
|
|
1915
|
+
"type": "string"
|
|
1916
|
+
},
|
|
1917
|
+
"created": {
|
|
1918
|
+
"type": "number"
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
},
|
|
1922
|
+
"pushwoosh.accounts.alerts.v1.UpdateUnreadRequest": {
|
|
1923
|
+
"type": "I",
|
|
1924
|
+
"fields": {
|
|
1925
|
+
"groupUuid": {
|
|
1926
|
+
"type": "string"
|
|
1927
|
+
},
|
|
1928
|
+
"title": {
|
|
1929
|
+
"type": "string",
|
|
1930
|
+
"optional": true
|
|
1931
|
+
},
|
|
1932
|
+
"content": {
|
|
1933
|
+
"type": "string",
|
|
1934
|
+
"optional": true
|
|
1935
|
+
},
|
|
1936
|
+
"actionLink": {
|
|
1937
|
+
"type": "string",
|
|
1938
|
+
"optional": true
|
|
1939
|
+
},
|
|
1940
|
+
"actionLinkLabel": {
|
|
1941
|
+
"type": "string",
|
|
1942
|
+
"optional": true
|
|
1943
|
+
},
|
|
1944
|
+
"severity": {
|
|
1945
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity",
|
|
1946
|
+
"optional": true
|
|
1947
|
+
},
|
|
1948
|
+
"expiry": {
|
|
1949
|
+
"type": "Date",
|
|
1950
|
+
"optional": true
|
|
1951
|
+
},
|
|
1952
|
+
"imageUrl": {
|
|
1953
|
+
"type": "string",
|
|
1954
|
+
"optional": true
|
|
1955
|
+
},
|
|
1956
|
+
"secondaryActionLink": {
|
|
1957
|
+
"type": "string",
|
|
1958
|
+
"optional": true
|
|
1959
|
+
},
|
|
1960
|
+
"secondaryActionLinkLabel": {
|
|
1961
|
+
"type": "string",
|
|
1962
|
+
"optional": true
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
},
|
|
1966
|
+
"pushwoosh.accounts.alerts.v1.UpdateUnreadResponse": {
|
|
1967
|
+
"type": "I",
|
|
1968
|
+
"fields": {
|
|
1969
|
+
"updated": {
|
|
1970
|
+
"type": "number"
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
"pushwoosh.accounts.alerts.v1.UpdateGroupRequest": {
|
|
1975
|
+
"type": "I",
|
|
1976
|
+
"fields": {
|
|
1977
|
+
"groupUuid": {
|
|
1978
|
+
"type": "string"
|
|
1979
|
+
},
|
|
1980
|
+
"title": {
|
|
1981
|
+
"type": "string",
|
|
1982
|
+
"optional": true
|
|
1983
|
+
},
|
|
1984
|
+
"content": {
|
|
1985
|
+
"type": "string",
|
|
1986
|
+
"optional": true
|
|
1987
|
+
},
|
|
1988
|
+
"actionLink": {
|
|
1989
|
+
"type": "string",
|
|
1990
|
+
"optional": true
|
|
1991
|
+
},
|
|
1992
|
+
"actionLinkLabel": {
|
|
1993
|
+
"type": "string",
|
|
1994
|
+
"optional": true
|
|
1995
|
+
},
|
|
1996
|
+
"severity": {
|
|
1997
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity",
|
|
1998
|
+
"optional": true
|
|
1999
|
+
},
|
|
2000
|
+
"expiry": {
|
|
2001
|
+
"type": "Date",
|
|
2002
|
+
"optional": true
|
|
2003
|
+
},
|
|
2004
|
+
"imageUrl": {
|
|
2005
|
+
"type": "string",
|
|
2006
|
+
"optional": true
|
|
2007
|
+
},
|
|
2008
|
+
"secondaryActionLink": {
|
|
2009
|
+
"type": "string",
|
|
2010
|
+
"optional": true
|
|
2011
|
+
},
|
|
2012
|
+
"secondaryActionLinkLabel": {
|
|
2013
|
+
"type": "string",
|
|
2014
|
+
"optional": true
|
|
2015
|
+
},
|
|
2016
|
+
"type": {
|
|
2017
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType",
|
|
2018
|
+
"optional": true
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
"pushwoosh.accounts.alerts.v1.UpdateGroupResponse": {
|
|
2023
|
+
"type": "I",
|
|
2024
|
+
"fields": {
|
|
2025
|
+
"updated": {
|
|
2026
|
+
"type": "number"
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
"pushwoosh.accounts.alerts.v1.ListGroupRequest": {
|
|
2031
|
+
"type": "I",
|
|
2032
|
+
"fields": {
|
|
2033
|
+
"status": {
|
|
2034
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
2035
|
+
},
|
|
2036
|
+
"titleSearch": {
|
|
2037
|
+
"type": "string",
|
|
2038
|
+
"optional": true
|
|
2039
|
+
},
|
|
2040
|
+
"page": {
|
|
2041
|
+
"type": "number"
|
|
2042
|
+
},
|
|
2043
|
+
"perPage": {
|
|
2044
|
+
"type": "number"
|
|
2045
|
+
},
|
|
2046
|
+
"orderBy": {
|
|
2047
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderBy"
|
|
2048
|
+
},
|
|
2049
|
+
"orderDirection": {
|
|
2050
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderDirection"
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
"pushwoosh.accounts.alerts.v1.ListGroupResponse.AlertGroup": {
|
|
2055
|
+
"type": "I",
|
|
2056
|
+
"fields": {
|
|
2057
|
+
"groupUuid": {
|
|
2058
|
+
"type": "string"
|
|
2059
|
+
},
|
|
2060
|
+
"type": {
|
|
2061
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
2062
|
+
},
|
|
2063
|
+
"severity": {
|
|
2064
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
2065
|
+
},
|
|
2066
|
+
"title": {
|
|
2067
|
+
"type": "string"
|
|
2068
|
+
},
|
|
2069
|
+
"content": {
|
|
2070
|
+
"type": "string",
|
|
2071
|
+
"optional": true
|
|
2072
|
+
},
|
|
2073
|
+
"created": {
|
|
2074
|
+
"type": "Date",
|
|
2075
|
+
"optional": true
|
|
2076
|
+
},
|
|
2077
|
+
"expiry": {
|
|
2078
|
+
"type": "Date",
|
|
2079
|
+
"optional": true
|
|
2080
|
+
},
|
|
2081
|
+
"actionLink": {
|
|
2082
|
+
"type": "string",
|
|
2083
|
+
"optional": true
|
|
2084
|
+
},
|
|
2085
|
+
"actionLinkLabel": {
|
|
2086
|
+
"type": "string",
|
|
2087
|
+
"optional": true
|
|
2088
|
+
},
|
|
2089
|
+
"recipientsCount": {
|
|
2090
|
+
"type": "number"
|
|
2091
|
+
},
|
|
2092
|
+
"unreadCount": {
|
|
2093
|
+
"type": "number"
|
|
2094
|
+
},
|
|
2095
|
+
"readCount": {
|
|
2096
|
+
"type": "number"
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
"pushwoosh.accounts.alerts.v1.ListGroupResponse": {
|
|
2101
|
+
"type": "I",
|
|
2102
|
+
"fields": {
|
|
2103
|
+
"groups": {
|
|
2104
|
+
"type": "pushwoosh.accounts.alerts.v1.ListGroupResponse.AlertGroup",
|
|
2105
|
+
"array": true
|
|
2106
|
+
},
|
|
2107
|
+
"page": {
|
|
2108
|
+
"type": "number"
|
|
2109
|
+
},
|
|
2110
|
+
"perPage": {
|
|
2111
|
+
"type": "number"
|
|
2112
|
+
},
|
|
2113
|
+
"total": {
|
|
2114
|
+
"type": "number"
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
},
|
|
2118
|
+
"pushwoosh.accounts.alerts.v1.RecallRequest": {
|
|
2119
|
+
"type": "I",
|
|
2120
|
+
"fields": {
|
|
2121
|
+
"groupUuid": {
|
|
2122
|
+
"type": "string"
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
},
|
|
2126
|
+
"pushwoosh.accounts.alerts.v1.RecallResponse": {
|
|
2127
|
+
"type": "I",
|
|
2128
|
+
"fields": {
|
|
2129
|
+
"recalled": {
|
|
2130
|
+
"type": "number"
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
1842
2133
|
},
|
|
1843
2134
|
"pushwoosh.accounts.alerts.v1.GetHighestSeverityRequest": {
|
|
1844
2135
|
"type": "I",
|
|
@@ -1848,6 +2139,13 @@ export const data = {
|
|
|
1848
2139
|
},
|
|
1849
2140
|
"status": {
|
|
1850
2141
|
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
2142
|
+
},
|
|
2143
|
+
"userId": {
|
|
2144
|
+
"type": "number"
|
|
2145
|
+
},
|
|
2146
|
+
"excludeTypes": {
|
|
2147
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType",
|
|
2148
|
+
"array": true
|
|
1851
2149
|
}
|
|
1852
2150
|
}
|
|
1853
2151
|
},
|
|
@@ -1879,6 +2177,94 @@ export const data = {
|
|
|
1879
2177
|
"type": "I",
|
|
1880
2178
|
"fields": {}
|
|
1881
2179
|
},
|
|
2180
|
+
"pushwoosh.accounts.alerts.v1.GetRequest": {
|
|
2181
|
+
"type": "I",
|
|
2182
|
+
"fields": {
|
|
2183
|
+
"uuid": {
|
|
2184
|
+
"type": "string"
|
|
2185
|
+
},
|
|
2186
|
+
"uniqueKey": {
|
|
2187
|
+
"type": "string"
|
|
2188
|
+
},
|
|
2189
|
+
"accountId": {
|
|
2190
|
+
"type": "number"
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
"pushwoosh.accounts.alerts.v1.GetResponse.Alert": {
|
|
2195
|
+
"type": "I",
|
|
2196
|
+
"fields": {
|
|
2197
|
+
"type": {
|
|
2198
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
2199
|
+
},
|
|
2200
|
+
"status": {
|
|
2201
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
2202
|
+
},
|
|
2203
|
+
"severity": {
|
|
2204
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
2205
|
+
},
|
|
2206
|
+
"title": {
|
|
2207
|
+
"type": "string"
|
|
2208
|
+
},
|
|
2209
|
+
"content": {
|
|
2210
|
+
"type": "string",
|
|
2211
|
+
"optional": true
|
|
2212
|
+
},
|
|
2213
|
+
"created": {
|
|
2214
|
+
"type": "Date",
|
|
2215
|
+
"optional": true
|
|
2216
|
+
},
|
|
2217
|
+
"expiry": {
|
|
2218
|
+
"type": "Date",
|
|
2219
|
+
"optional": true
|
|
2220
|
+
},
|
|
2221
|
+
"uuid": {
|
|
2222
|
+
"type": "string"
|
|
2223
|
+
},
|
|
2224
|
+
"uniqueKey": {
|
|
2225
|
+
"type": "string"
|
|
2226
|
+
},
|
|
2227
|
+
"accountId": {
|
|
2228
|
+
"type": "number"
|
|
2229
|
+
},
|
|
2230
|
+
"applicationId": {
|
|
2231
|
+
"type": "number",
|
|
2232
|
+
"optional": true
|
|
2233
|
+
},
|
|
2234
|
+
"meta": {
|
|
2235
|
+
"type": "object",
|
|
2236
|
+
"optional": true
|
|
2237
|
+
},
|
|
2238
|
+
"actionLink": {
|
|
2239
|
+
"type": "string",
|
|
2240
|
+
"optional": true
|
|
2241
|
+
},
|
|
2242
|
+
"actionLinkLabel": {
|
|
2243
|
+
"type": "string",
|
|
2244
|
+
"optional": true
|
|
2245
|
+
},
|
|
2246
|
+
"imageUrl": {
|
|
2247
|
+
"type": "string",
|
|
2248
|
+
"optional": true
|
|
2249
|
+
},
|
|
2250
|
+
"secondaryActionLink": {
|
|
2251
|
+
"type": "string",
|
|
2252
|
+
"optional": true
|
|
2253
|
+
},
|
|
2254
|
+
"secondaryActionLinkLabel": {
|
|
2255
|
+
"type": "string",
|
|
2256
|
+
"optional": true
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
"pushwoosh.accounts.alerts.v1.GetResponse": {
|
|
2261
|
+
"type": "I",
|
|
2262
|
+
"fields": {
|
|
2263
|
+
"alert": {
|
|
2264
|
+
"type": "pushwoosh.accounts.alerts.v1.GetResponse.Alert"
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
1882
2268
|
"pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
|
|
1883
2269
|
"type": "S",
|
|
1884
2270
|
"key": "getAuthInfo",
|
|
@@ -5428,6 +5814,9 @@ export const data = {
|
|
|
5428
5814
|
"PAYMENT_OVERDUE",
|
|
5429
5815
|
"PAYMENT_ATTEMPT_FAILED",
|
|
5430
5816
|
"EMAIL_CONFIGURATION_NOT_COMPLETED",
|
|
5817
|
+
"EMAIL_SENDING_PAUSED_COMPLAINT_RATE",
|
|
5818
|
+
"EMAIL_SENDING_PAUSED_HARD_BOUNCE_RATE",
|
|
5819
|
+
"EMAIL_SENDING_PAUSED_BOTH_RATES",
|
|
5431
5820
|
"SDK_INTEGRATION",
|
|
5432
5821
|
"THIRD_PARTY_INTEGRATION"
|
|
5433
5822
|
]
|
|
@@ -16385,6 +16774,10 @@ export const data = {
|
|
|
16385
16774
|
},
|
|
16386
16775
|
"orderDirection": {
|
|
16387
16776
|
"type": "pushwoosh.accounts.alerts.v1.OrderDirection"
|
|
16777
|
+
},
|
|
16778
|
+
"excludeTypes": {
|
|
16779
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType",
|
|
16780
|
+
"array": true
|
|
16388
16781
|
}
|
|
16389
16782
|
}
|
|
16390
16783
|
},
|
|
@@ -16432,6 +16825,18 @@ export const data = {
|
|
|
16432
16825
|
"actionLinkLabel": {
|
|
16433
16826
|
"type": "string",
|
|
16434
16827
|
"optional": true
|
|
16828
|
+
},
|
|
16829
|
+
"imageUrl": {
|
|
16830
|
+
"type": "string",
|
|
16831
|
+
"optional": true
|
|
16832
|
+
},
|
|
16833
|
+
"secondaryActionLink": {
|
|
16834
|
+
"type": "string",
|
|
16835
|
+
"optional": true
|
|
16836
|
+
},
|
|
16837
|
+
"secondaryActionLinkLabel": {
|
|
16838
|
+
"type": "string",
|
|
16839
|
+
"optional": true
|
|
16435
16840
|
}
|
|
16436
16841
|
}
|
|
16437
16842
|
},
|
|
@@ -16482,6 +16887,10 @@ export const data = {
|
|
|
16482
16887
|
"fields": {
|
|
16483
16888
|
"status": {
|
|
16484
16889
|
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
16890
|
+
},
|
|
16891
|
+
"excludeTypes": {
|
|
16892
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType",
|
|
16893
|
+
"array": true
|
|
16485
16894
|
}
|
|
16486
16895
|
}
|
|
16487
16896
|
},
|
package/internal_alerts.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export type ListRequest = {
|
|
|
30
30
|
orderBy?: pushwoosh_accounts_alerts_v1_OrderBy;
|
|
31
31
|
/** Ascending or descending order. */
|
|
32
32
|
orderDirection?: pushwoosh_accounts_alerts_v1_OrderDirection;
|
|
33
|
+
/** Optional filter: drop alerts of these types from the result. */
|
|
34
|
+
excludeTypes?: pushwoosh_accounts_alerts_v1_AlertType[];
|
|
33
35
|
};
|
|
34
36
|
export type Alert = {
|
|
35
37
|
type: pushwoosh_accounts_alerts_v1_AlertType;
|
|
@@ -44,6 +46,10 @@ export type Alert = {
|
|
|
44
46
|
application?: string;
|
|
45
47
|
actionLink?: string;
|
|
46
48
|
actionLinkLabel?: string;
|
|
49
|
+
/** Illustration of a product update card; empty means the client draws its own fallback. */
|
|
50
|
+
imageUrl?: string;
|
|
51
|
+
secondaryActionLink?: string;
|
|
52
|
+
secondaryActionLinkLabel?: string;
|
|
47
53
|
};
|
|
48
54
|
export type ListResponse = {
|
|
49
55
|
alerts: Alert[];
|
|
@@ -65,6 +71,8 @@ export type UpdateStatusResponse = {};
|
|
|
65
71
|
export type GetHighestSeverityRequest = {
|
|
66
72
|
/** Optional filter: consider only alerts in this status (e.g. read/unread). */
|
|
67
73
|
status?: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
74
|
+
/** Optional filter: ignore alerts of these types when picking the severity. */
|
|
75
|
+
excludeTypes?: pushwoosh_accounts_alerts_v1_AlertType[];
|
|
68
76
|
};
|
|
69
77
|
export type GetHighestSeverityResponse = {
|
|
70
78
|
severity: pushwoosh_accounts_alerts_v1_AlertSeverity;
|
package/package.json
CHANGED
|
@@ -4,25 +4,38 @@ export type AlertsService_Send = RpcMethod<SendRequest, SendResponse>;
|
|
|
4
4
|
export type AlertsService_UpdateStatus = RpcMethod<UpdateStatusRequest, UpdateStatusResponse>;
|
|
5
5
|
export type AlertsService_GetHighestSeverity = RpcMethod<GetHighestSeverityRequest, GetHighestSeverityResponse>;
|
|
6
6
|
export type AlertsService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
|
|
7
|
+
export type AlertsService_Get = RpcMethod<GetRequest, GetResponse>;
|
|
8
|
+
export type AlertsService_ListGroup = RpcMethod<ListGroupRequest, ListGroupResponse>;
|
|
9
|
+
export type AlertsService_UpdateUnread = RpcMethod<UpdateUnreadRequest, UpdateUnreadResponse>;
|
|
10
|
+
export type AlertsService_Recall = RpcMethod<RecallRequest, RecallResponse>;
|
|
11
|
+
export type AlertsService_UpdateGroup = RpcMethod<UpdateGroupRequest, UpdateGroupResponse>;
|
|
7
12
|
export interface AlertsService {
|
|
8
13
|
List: AlertsService_List;
|
|
9
14
|
Send: AlertsService_Send;
|
|
10
15
|
UpdateStatus: AlertsService_UpdateStatus;
|
|
11
16
|
GetHighestSeverity: AlertsService_GetHighestSeverity;
|
|
12
17
|
Delete: AlertsService_Delete;
|
|
18
|
+
Get: AlertsService_Get;
|
|
19
|
+
ListGroup: AlertsService_ListGroup;
|
|
20
|
+
UpdateUnread: AlertsService_UpdateUnread;
|
|
21
|
+
Recall: AlertsService_Recall;
|
|
22
|
+
UpdateGroup: AlertsService_UpdateGroup;
|
|
13
23
|
}
|
|
14
24
|
export type AlertBanner = {
|
|
15
25
|
type: AlertType;
|
|
16
26
|
content?: string;
|
|
17
27
|
actionLink?: string;
|
|
18
28
|
actionLinkLabel?: string;
|
|
29
|
+
imageUrl?: string;
|
|
30
|
+
secondaryActionLink?: string;
|
|
31
|
+
secondaryActionLinkLabel?: string;
|
|
19
32
|
};
|
|
20
33
|
export type AlertEmail = {
|
|
21
34
|
to: string[];
|
|
22
35
|
template: string;
|
|
23
36
|
placeholders: Record<string, any>;
|
|
24
37
|
};
|
|
25
|
-
export type AlertType = 'ALERT_TYPE_UNSPECIFIED' | 'ALERT_TYPE_BLOCKING' | 'ALERT_TYPE_DISMISSABLE' | 'ALERT_TYPE_TOP_BANNER';
|
|
38
|
+
export type AlertType = 'ALERT_TYPE_UNSPECIFIED' | 'ALERT_TYPE_BLOCKING' | 'ALERT_TYPE_DISMISSABLE' | 'ALERT_TYPE_TOP_BANNER' | 'ALERT_TYPE_PRODUCT_UPDATE';
|
|
26
39
|
export type AlertStatus = 'ALERT_STATUS_UNSPECIFIED' | 'ALERT_STATUS_READ' | 'ALERT_STATUS_UNREAD';
|
|
27
40
|
export type AlertSeverity = 'ALERT_SEVERITY_UNSPECIFIED' | 'ALERT_SEVERITY_INFO' | 'ALERT_SEVERITY_WARNING' | 'ALERT_SEVERITY_CRITICAL';
|
|
28
41
|
export type OrderBy = 'ORDER_BY_CREATED' | 'ORDER_BY_SEVERITY';
|
|
@@ -36,6 +49,10 @@ export type ListRequest = {
|
|
|
36
49
|
orderBy?: OrderBy;
|
|
37
50
|
orderDirection?: OrderDirection;
|
|
38
51
|
accountId?: number;
|
|
52
|
+
/** Read state is resolved for this user; 0 keeps the account-wide read flag. */
|
|
53
|
+
userId?: number;
|
|
54
|
+
/** Drops alerts of these types from the result; `type` above still selects a single type. */
|
|
55
|
+
excludeTypes?: AlertType[];
|
|
39
56
|
};
|
|
40
57
|
export type ListResponse_Alert = {
|
|
41
58
|
type: AlertType;
|
|
@@ -51,6 +68,9 @@ export type ListResponse_Alert = {
|
|
|
51
68
|
meta?: object;
|
|
52
69
|
actionLink?: string;
|
|
53
70
|
actionLinkLabel?: string;
|
|
71
|
+
imageUrl?: string;
|
|
72
|
+
secondaryActionLink?: string;
|
|
73
|
+
secondaryActionLinkLabel?: string;
|
|
54
74
|
};
|
|
55
75
|
export type ListResponse = {
|
|
56
76
|
alerts: ListResponse_Alert[];
|
|
@@ -69,6 +89,16 @@ export type SendRequest = {
|
|
|
69
89
|
meta?: object;
|
|
70
90
|
/** check unique alert within the `unique_key` in the provided request */
|
|
71
91
|
uniqueKey?: string;
|
|
92
|
+
/**
|
|
93
|
+
* When non-empty, takes precedence over `account_id` and one alert is created per id.
|
|
94
|
+
* Server generates a shared `group_id` (UUID) so the batch can be patched / recalled later.
|
|
95
|
+
*/
|
|
96
|
+
accountIds?: number[];
|
|
97
|
+
/**
|
|
98
|
+
* When true, the server enumerates all active accounts itself and creates one alert
|
|
99
|
+
* per account (shared group_uuid), ignoring `account_id` and `account_ids`.
|
|
100
|
+
*/
|
|
101
|
+
allAccounts?: boolean;
|
|
72
102
|
};
|
|
73
103
|
export type UpdateStatusRequest_Alert = {
|
|
74
104
|
id: number;
|
|
@@ -76,12 +106,92 @@ export type UpdateStatusRequest_Alert = {
|
|
|
76
106
|
};
|
|
77
107
|
export type UpdateStatusRequest = {
|
|
78
108
|
alerts?: UpdateStatusRequest_Alert[];
|
|
109
|
+
/** Marks the alerts read/unread for this user; 0 keeps the account-wide read flag. */
|
|
110
|
+
userId?: number;
|
|
79
111
|
};
|
|
80
112
|
export type UpdateStatusResponse = {};
|
|
81
|
-
export type SendResponse = {
|
|
113
|
+
export type SendResponse = {
|
|
114
|
+
groupUuid: string;
|
|
115
|
+
created: number;
|
|
116
|
+
};
|
|
117
|
+
export type UpdateUnreadRequest = {
|
|
118
|
+
groupUuid?: string;
|
|
119
|
+
/** Patch fields. Only set fields are applied. */
|
|
120
|
+
title?: string;
|
|
121
|
+
content?: string;
|
|
122
|
+
actionLink?: string;
|
|
123
|
+
actionLinkLabel?: string;
|
|
124
|
+
severity?: AlertSeverity;
|
|
125
|
+
expiry?: Date;
|
|
126
|
+
imageUrl?: string;
|
|
127
|
+
secondaryActionLink?: string;
|
|
128
|
+
secondaryActionLinkLabel?: string;
|
|
129
|
+
};
|
|
130
|
+
export type UpdateUnreadResponse = {
|
|
131
|
+
updated: number;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* UpdateGroup patches every alert of the group, read ones included, unlike UpdateUnread.
|
|
135
|
+
* Content-only edits (picture, CTA, type) stay correct after a user has seen the card.
|
|
136
|
+
*/
|
|
137
|
+
export type UpdateGroupRequest = {
|
|
138
|
+
groupUuid?: string;
|
|
139
|
+
/** Patch fields. Only set fields are applied. */
|
|
140
|
+
title?: string;
|
|
141
|
+
content?: string;
|
|
142
|
+
actionLink?: string;
|
|
143
|
+
actionLinkLabel?: string;
|
|
144
|
+
severity?: AlertSeverity;
|
|
145
|
+
expiry?: Date;
|
|
146
|
+
imageUrl?: string;
|
|
147
|
+
secondaryActionLink?: string;
|
|
148
|
+
secondaryActionLinkLabel?: string;
|
|
149
|
+
type?: AlertType;
|
|
150
|
+
};
|
|
151
|
+
export type UpdateGroupResponse = {
|
|
152
|
+
updated: number;
|
|
153
|
+
};
|
|
154
|
+
export type ListGroupRequest = {
|
|
155
|
+
status?: AlertStatus;
|
|
156
|
+
titleSearch?: string;
|
|
157
|
+
page?: number;
|
|
158
|
+
perPage?: number;
|
|
159
|
+
orderBy?: OrderBy;
|
|
160
|
+
orderDirection?: OrderDirection;
|
|
161
|
+
};
|
|
162
|
+
export type ListGroupResponse_AlertGroup = {
|
|
163
|
+
groupUuid: string;
|
|
164
|
+
type: AlertType;
|
|
165
|
+
severity: AlertSeverity;
|
|
166
|
+
title: string;
|
|
167
|
+
content?: string;
|
|
168
|
+
created?: Date;
|
|
169
|
+
expiry?: Date;
|
|
170
|
+
actionLink?: string;
|
|
171
|
+
actionLinkLabel?: string;
|
|
172
|
+
recipientsCount: number;
|
|
173
|
+
unreadCount: number;
|
|
174
|
+
readCount: number;
|
|
175
|
+
};
|
|
176
|
+
export type ListGroupResponse = {
|
|
177
|
+
groups: ListGroupResponse_AlertGroup[];
|
|
178
|
+
page: number;
|
|
179
|
+
perPage: number;
|
|
180
|
+
total: number;
|
|
181
|
+
};
|
|
182
|
+
export type RecallRequest = {
|
|
183
|
+
groupUuid?: string;
|
|
184
|
+
};
|
|
185
|
+
export type RecallResponse = {
|
|
186
|
+
recalled: number;
|
|
187
|
+
};
|
|
82
188
|
export type GetHighestSeverityRequest = {
|
|
83
189
|
accountId?: number;
|
|
84
190
|
status?: AlertStatus;
|
|
191
|
+
/** Read state is resolved for this user; 0 keeps the account-wide read flag. */
|
|
192
|
+
userId?: number;
|
|
193
|
+
/** Drops alerts of these types before picking the highest severity. */
|
|
194
|
+
excludeTypes?: AlertType[];
|
|
85
195
|
};
|
|
86
196
|
export type GetHighestSeverityResponse = {
|
|
87
197
|
severity: AlertSeverity;
|
|
@@ -93,3 +203,34 @@ export type DeleteRequest = {
|
|
|
93
203
|
accountId?: number;
|
|
94
204
|
};
|
|
95
205
|
export type DeleteResponse = {};
|
|
206
|
+
export type GetRequest = {
|
|
207
|
+
/**
|
|
208
|
+
* any of identifier
|
|
209
|
+
* uuid has highest prior
|
|
210
|
+
*/
|
|
211
|
+
uuid?: string;
|
|
212
|
+
uniqueKey?: string;
|
|
213
|
+
accountId?: number;
|
|
214
|
+
};
|
|
215
|
+
export type GetResponse_Alert = {
|
|
216
|
+
type: AlertType;
|
|
217
|
+
status: AlertStatus;
|
|
218
|
+
severity: AlertSeverity;
|
|
219
|
+
title: string;
|
|
220
|
+
content?: string;
|
|
221
|
+
created?: Date;
|
|
222
|
+
expiry?: Date;
|
|
223
|
+
uuid: string;
|
|
224
|
+
uniqueKey: string;
|
|
225
|
+
accountId: number;
|
|
226
|
+
applicationId?: number;
|
|
227
|
+
meta?: object;
|
|
228
|
+
actionLink?: string;
|
|
229
|
+
actionLinkLabel?: string;
|
|
230
|
+
imageUrl?: string;
|
|
231
|
+
secondaryActionLink?: string;
|
|
232
|
+
secondaryActionLinkLabel?: string;
|
|
233
|
+
};
|
|
234
|
+
export type GetResponse = {
|
|
235
|
+
alert: GetResponse_Alert;
|
|
236
|
+
};
|