@pushwoosh/rpc-v2-http-api-data 0.1.756 → 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 +47 -0
- package/internal_alerts.d.ts +7 -0
- package/package.json +1 -1
- package/pushwoosh_accounts_alerts_v1.d.ts +8 -0
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",
|
package/internal_alerts.d.ts
CHANGED
|
@@ -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
|
@@ -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
|
+
};
|