@pushwoosh/rpc-v2-http-api-data 0.1.755 → 0.1.757

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
@@ -1164,6 +1164,12 @@ export const data = {
1164
1164
  "response": "pushwoosh.accounts.alerts.v1.UpdateStatusResponse",
1165
1165
  "method": "put",
1166
1166
  "path": "/api/v1/update-status"
1167
+ },
1168
+ "GetHighestSeverity": {
1169
+ "request": "pushwoosh.accounts.alerts.v1.GetHighestSeverityRequest",
1170
+ "response": "pushwoosh.accounts.alerts.v1.GetHighestSeverityResponse",
1171
+ "method": "get",
1172
+ "path": "/api/v1/get-highest-severity"
1167
1173
  }
1168
1174
  }
1169
1175
  },
@@ -1366,6 +1372,25 @@ export const data = {
1366
1372
  "type": "I",
1367
1373
  "fields": {}
1368
1374
  },
1375
+ "pushwoosh.accounts.alerts.v1.GetHighestSeverityRequest": {
1376
+ "type": "I",
1377
+ "fields": {
1378
+ "accountId": {
1379
+ "type": "number"
1380
+ },
1381
+ "status": {
1382
+ "type": "pushwoosh.accounts.alerts.v1.AlertStatus"
1383
+ }
1384
+ }
1385
+ },
1386
+ "pushwoosh.accounts.alerts.v1.GetHighestSeverityResponse": {
1387
+ "type": "I",
1388
+ "fields": {
1389
+ "severity": {
1390
+ "type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
1391
+ }
1392
+ }
1393
+ },
1369
1394
  "pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
1370
1395
  "type": "S",
1371
1396
  "key": "getAuthInfo",
@@ -10127,6 +10152,12 @@ export const data = {
10127
10152
  "response": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusResponse",
10128
10153
  "method": "put",
10129
10154
  "path": "/api/alerts"
10155
+ },
10156
+ "GetHighestSeverity": {
10157
+ "request": "pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityRequest",
10158
+ "response": "pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityResponse",
10159
+ "method": "get",
10160
+ "path": "/api/alerts/highest-severity"
10130
10161
  }
10131
10162
  }
10132
10163
  },
@@ -10234,6 +10265,22 @@ export const data = {
10234
10265
  "type": "I",
10235
10266
  "fields": {}
10236
10267
  },
10268
+ "pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityRequest": {
10269
+ "type": "I",
10270
+ "fields": {
10271
+ "status": {
10272
+ "type": "pushwoosh.accounts.alerts.v1.AlertStatus"
10273
+ }
10274
+ }
10275
+ },
10276
+ "pushwoosh.rpc_v2.internal_alerts.GetHighestSeverityResponse": {
10277
+ "type": "I",
10278
+ "fields": {
10279
+ "severity": {
10280
+ "type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
10281
+ }
10282
+ }
10283
+ },
10237
10284
  "pushwoosh.rpc_v2.ios_categories.IOSCategoriesService": {
10238
10285
  "type": "S",
10239
10286
  "key": "iOSCategories",
@@ -22527,9 +22574,6 @@ export const data = {
22527
22574
  },
22528
22575
  "hasRightAceModify": {
22529
22576
  "type": "boolean"
22530
- },
22531
- "encrypted": {
22532
- "type": "boolean"
22533
22577
  }
22534
22578
  }
22535
22579
  },
@@ -22547,9 +22591,6 @@ export const data = {
22547
22591
  },
22548
22592
  "userSpecific": {
22549
22593
  "type": "boolean"
22550
- },
22551
- "encrypted": {
22552
- "type": "boolean"
22553
22594
  }
22554
22595
  }
22555
22596
  },
@@ -6,6 +6,7 @@ import { OrderDirection as pushwoosh_accounts_alerts_v1_OrderDirection } from '.
6
6
  export interface InternalAlertsService {
7
7
  List(request: ListRequest): Promise<ListResponse>;
8
8
  UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
9
+ GetHighestSeverity(request: GetHighestSeverityRequest): Promise<GetHighestSeverityResponse>;
9
10
  }
10
11
  export type ListRequest = {
11
12
  type?: pushwoosh_accounts_alerts_v1_AlertType;
@@ -41,3 +42,9 @@ export type UpdateStatusRequest = {
41
42
  alerts?: UpdateStatusRequest_AlertStatusUpdate[];
42
43
  };
43
44
  export type UpdateStatusResponse = {};
45
+ export type GetHighestSeverityRequest = {
46
+ status?: pushwoosh_accounts_alerts_v1_AlertStatus;
47
+ };
48
+ export type GetHighestSeverityResponse = {
49
+ severity: pushwoosh_accounts_alerts_v1_AlertSeverity;
50
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.755",
3
+ "version": "0.1.757",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -2,6 +2,7 @@ export interface AlertsService {
2
2
  List(request: ListRequest): Promise<ListResponse>;
3
3
  Send(request: SendRequest): Promise<SendResponse>;
4
4
  UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
5
+ GetHighestSeverity(request: GetHighestSeverityRequest): Promise<GetHighestSeverityResponse>;
5
6
  }
6
7
  export type AlertBanner = {
7
8
  type: AlertType;
@@ -60,3 +61,10 @@ export type UpdateStatusRequest = {
60
61
  };
61
62
  export type UpdateStatusResponse = {};
62
63
  export type SendResponse = {};
64
+ export type GetHighestSeverityRequest = {
65
+ accountId?: number;
66
+ status?: AlertStatus;
67
+ };
68
+ export type GetHighestSeverityResponse = {
69
+ severity: AlertSeverity;
70
+ };
package/tags.d.ts CHANGED
@@ -17,14 +17,12 @@ export type Tag = {
17
17
  appSpecific: boolean;
18
18
  userSpecific: boolean;
19
19
  hasRightAceModify: boolean;
20
- encrypted: boolean;
21
20
  };
22
21
  export type CreateTagRequest = {
23
22
  name?: string;
24
23
  type?: Tag_Type;
25
24
  appSpecific?: boolean;
26
25
  userSpecific?: boolean;
27
- encrypted?: boolean;
28
26
  };
29
27
  export type CreateTagResponse = {
30
28
  tag: Tag;