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

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",
@@ -6773,6 +6817,12 @@ export const data = {
6773
6817
  "response": "pushwoosh.rpc_v2.emails_configurations.DeleteCustomTrackingDomainResponse",
6774
6818
  "method": "delete",
6775
6819
  "path": "/api/emails_configurations/custom_tracking_domain"
6820
+ },
6821
+ "VerifyCustomTrackingDomain": {
6822
+ "request": "pushwoosh.rpc_v2.emails_configurations.VerifyCustomTrackingDomainRequest",
6823
+ "response": "pushwoosh.rpc_v2.emails_configurations.VerifyCustomTrackingDomainResponse",
6824
+ "method": "post",
6825
+ "path": "/api/emails_configurations/custom_tracking_domain:verify"
6776
6826
  }
6777
6827
  }
6778
6828
  },
@@ -6917,6 +6967,25 @@ export const data = {
6917
6967
  "type": "I",
6918
6968
  "fields": {}
6919
6969
  },
6970
+ "pushwoosh.rpc_v2.emails_configurations.VerifyCustomTrackingDomainRequest": {
6971
+ "type": "I",
6972
+ "fields": {
6973
+ "customTrackingDomain": {
6974
+ "type": "string"
6975
+ },
6976
+ "application": {
6977
+ "type": "string"
6978
+ }
6979
+ }
6980
+ },
6981
+ "pushwoosh.rpc_v2.emails_configurations.VerifyCustomTrackingDomainResponse": {
6982
+ "type": "I",
6983
+ "fields": {
6984
+ "verified": {
6985
+ "type": "boolean"
6986
+ }
6987
+ }
6988
+ },
6920
6989
  "pushwoosh.rpc.errors.v3.I18NOptions": {
6921
6990
  "type": "I",
6922
6991
  "fields": {
@@ -6,6 +6,7 @@ export interface EmailsConfigurationsService {
6
6
  GetCustomTrackingDomain(request: GetCustomTrackingDomainRequest): Promise<GetCustomTrackingDomainResponse>;
7
7
  UpsertCustomTrackingDomain(request: UpsertCustomTrackingDomainRequest): Promise<UpsertCustomTrackingDomainResponse>;
8
8
  DeleteCustomTrackingDomain(request: DeleteCustomTrackingDomainRequest): Promise<DeleteCustomTrackingDomainResponse>;
9
+ VerifyCustomTrackingDomain(request: VerifyCustomTrackingDomainRequest): Promise<VerifyCustomTrackingDomainResponse>;
9
10
  }
10
11
  export type Domain_CName = {
11
12
  name: string;
@@ -55,3 +56,10 @@ export type DeleteCustomTrackingDomainRequest = {
55
56
  application?: string;
56
57
  };
57
58
  export type DeleteCustomTrackingDomainResponse = {};
59
+ export type VerifyCustomTrackingDomainRequest = {
60
+ customTrackingDomain?: string;
61
+ application?: string;
62
+ };
63
+ export type VerifyCustomTrackingDomainResponse = {
64
+ verified: boolean;
65
+ };
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.841",
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 = {};