@pushwoosh/rpc-v2-http-api-data 0.1.839 → 0.1.840

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
@@ -1593,6 +1593,12 @@ export const data = {
1593
1593
  "response": "pushwoosh.accounts.alerts.v1.GetHighestSeverityResponse",
1594
1594
  "method": "get",
1595
1595
  "path": "/api/v1/get-highest-severity"
1596
+ },
1597
+ "Delete": {
1598
+ "request": "pushwoosh.accounts.alerts.v1.DeleteRequest",
1599
+ "response": "pushwoosh.accounts.alerts.v1.DeleteResponse",
1600
+ "method": "delete",
1601
+ "path": "/api/v1/delete"
1596
1602
  }
1597
1603
  }
1598
1604
  },
@@ -1609,6 +1615,10 @@ export const data = {
1609
1615
  "actionLink": {
1610
1616
  "type": "string",
1611
1617
  "optional": true
1618
+ },
1619
+ "actionLinkLabel": {
1620
+ "type": "string",
1621
+ "optional": true
1612
1622
  }
1613
1623
  },
1614
1624
  "oneofs": {}
@@ -1617,10 +1627,15 @@ export const data = {
1617
1627
  "type": "I",
1618
1628
  "fields": {
1619
1629
  "to": {
1620
- "type": "string"
1630
+ "type": "string",
1631
+ "array": true
1621
1632
  },
1622
1633
  "template": {
1623
1634
  "type": "string"
1635
+ },
1636
+ "placeholders": {
1637
+ "type": "any",
1638
+ "mapKeyType": "string"
1624
1639
  }
1625
1640
  }
1626
1641
  },
@@ -1629,7 +1644,8 @@ export const data = {
1629
1644
  "values": [
1630
1645
  "ALERT_TYPE_UNSPECIFIED",
1631
1646
  "ALERT_TYPE_BLOCKING",
1632
- "ALERT_TYPE_DISMISSABLE"
1647
+ "ALERT_TYPE_DISMISSABLE",
1648
+ "ALERT_TYPE_TOP_BANNER"
1633
1649
  ]
1634
1650
  },
1635
1651
  "pushwoosh.accounts.alerts.v1.AlertStatus": {
@@ -1736,6 +1752,10 @@ export const data = {
1736
1752
  "actionLink": {
1737
1753
  "type": "string",
1738
1754
  "optional": true
1755
+ },
1756
+ "actionLinkLabel": {
1757
+ "type": "string",
1758
+ "optional": true
1739
1759
  }
1740
1760
  },
1741
1761
  "oneofs": {}
@@ -1787,6 +1807,10 @@ export const data = {
1787
1807
  "meta": {
1788
1808
  "type": "object",
1789
1809
  "optional": true
1810
+ },
1811
+ "uniqueKey": {
1812
+ "type": "string",
1813
+ "optional": true
1790
1814
  }
1791
1815
  },
1792
1816
  "oneofs": {}
@@ -1838,6 +1862,26 @@ export const data = {
1838
1862
  }
1839
1863
  }
1840
1864
  },
1865
+ "pushwoosh.accounts.alerts.v1.DeleteRequest": {
1866
+ "type": "I",
1867
+ "fields": {
1868
+ "ids": {
1869
+ "type": "number",
1870
+ "array": true
1871
+ },
1872
+ "uniqueKeys": {
1873
+ "type": "string",
1874
+ "array": true
1875
+ },
1876
+ "accountId": {
1877
+ "type": "number"
1878
+ }
1879
+ }
1880
+ },
1881
+ "pushwoosh.accounts.alerts.v1.DeleteResponse": {
1882
+ "type": "I",
1883
+ "fields": {}
1884
+ },
1841
1885
  "pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
1842
1886
  "type": "S",
1843
1887
  "key": "getAuthInfo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.839",
3
+ "version": "0.1.840",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -3,17 +3,20 @@ export interface AlertsService {
3
3
  Send(request: SendRequest): Promise<SendResponse>;
4
4
  UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
5
5
  GetHighestSeverity(request: GetHighestSeverityRequest): Promise<GetHighestSeverityResponse>;
6
+ Delete(request: DeleteRequest): Promise<DeleteResponse>;
6
7
  }
7
8
  export type AlertBanner = {
8
9
  type: AlertType;
9
10
  content?: string;
10
11
  actionLink?: string;
12
+ actionLinkLabel?: string;
11
13
  };
12
14
  export type AlertEmail = {
13
- to: string;
15
+ to: string[];
14
16
  template: string;
17
+ placeholders: Record<string, any>;
15
18
  };
16
- export type AlertType = 'ALERT_TYPE_UNSPECIFIED' | 'ALERT_TYPE_BLOCKING' | 'ALERT_TYPE_DISMISSABLE';
19
+ export type AlertType = 'ALERT_TYPE_UNSPECIFIED' | 'ALERT_TYPE_BLOCKING' | 'ALERT_TYPE_DISMISSABLE' | 'ALERT_TYPE_TOP_BANNER';
17
20
  export type AlertStatus = 'ALERT_STATUS_UNSPECIFIED' | 'ALERT_STATUS_READ' | 'ALERT_STATUS_UNREAD';
18
21
  export type AlertSeverity = 'ALERT_SEVERITY_UNSPECIFIED' | 'ALERT_SEVERITY_INFO' | 'ALERT_SEVERITY_WARNING' | 'ALERT_SEVERITY_CRITICAL';
19
22
  export type OrderBy = 'ORDER_BY_CREATED' | 'ORDER_BY_SEVERITY';
@@ -41,6 +44,7 @@ export type ListResponse_Alert = {
41
44
  applicationId?: number;
42
45
  meta?: object;
43
46
  actionLink?: string;
47
+ actionLinkLabel?: string;
44
48
  };
45
49
  export type ListResponse = {
46
50
  alerts: ListResponse_Alert[];
@@ -57,6 +61,7 @@ export type SendRequest = {
57
61
  email?: AlertEmail;
58
62
  applicationId?: number;
59
63
  meta?: object;
64
+ uniqueKey?: string;
60
65
  };
61
66
  export type UpdateStatusRequest_Alert = {
62
67
  id: number;
@@ -74,3 +79,9 @@ export type GetHighestSeverityRequest = {
74
79
  export type GetHighestSeverityResponse = {
75
80
  severity: AlertSeverity;
76
81
  };
82
+ export type DeleteRequest = {
83
+ ids?: number[];
84
+ uniqueKeys?: string[];
85
+ accountId?: number;
86
+ };
87
+ export type DeleteResponse = {};