@pushwoosh/rpc-v2-http-api-data 0.1.728 → 0.1.730
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 +348 -17
- package/index.d.ts +4 -0
- package/internal_alerts.d.ts +43 -0
- package/internal_alerts.js +2 -0
- package/package.json +1 -1
- package/pushwoosh_accounts_alerts_v1.d.ts +62 -0
- package/pushwoosh_accounts_alerts_v1.js +2 -0
- package/pushwoosh_channels_messagingApi_v2.d.ts +0 -6
package/data.js
CHANGED
|
@@ -1143,6 +1143,232 @@ export const data = {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
},
|
|
1146
|
+
"pushwoosh.accounts.alerts.v1.AlertsService": {
|
|
1147
|
+
"type": "S",
|
|
1148
|
+
"key": "alerts",
|
|
1149
|
+
"methods": {
|
|
1150
|
+
"List": {
|
|
1151
|
+
"request": "pushwoosh.accounts.alerts.v1.ListRequest",
|
|
1152
|
+
"response": "pushwoosh.accounts.alerts.v1.ListResponse",
|
|
1153
|
+
"method": "get",
|
|
1154
|
+
"path": "/api/v1/list"
|
|
1155
|
+
},
|
|
1156
|
+
"Send": {
|
|
1157
|
+
"request": "pushwoosh.accounts.alerts.v1.SendRequest",
|
|
1158
|
+
"response": "pushwoosh.accounts.alerts.v1.SendResponse",
|
|
1159
|
+
"method": "post",
|
|
1160
|
+
"path": "/api/v1/send"
|
|
1161
|
+
},
|
|
1162
|
+
"UpdateStatus": {
|
|
1163
|
+
"request": "pushwoosh.accounts.alerts.v1.UpdateStatusRequest",
|
|
1164
|
+
"response": "pushwoosh.accounts.alerts.v1.UpdateStatusResponse",
|
|
1165
|
+
"method": "put",
|
|
1166
|
+
"path": "/api/v1/update-status"
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"pushwoosh.accounts.alerts.v1.AlertBanner": {
|
|
1171
|
+
"type": "I",
|
|
1172
|
+
"fields": {
|
|
1173
|
+
"type": {
|
|
1174
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
1175
|
+
},
|
|
1176
|
+
"content": {
|
|
1177
|
+
"type": "string",
|
|
1178
|
+
"optional": true
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"oneofs": {}
|
|
1182
|
+
},
|
|
1183
|
+
"pushwoosh.accounts.alerts.v1.AlertEmail": {
|
|
1184
|
+
"type": "I",
|
|
1185
|
+
"fields": {
|
|
1186
|
+
"to": {
|
|
1187
|
+
"type": "string"
|
|
1188
|
+
},
|
|
1189
|
+
"template": {
|
|
1190
|
+
"type": "string"
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
"pushwoosh.accounts.alerts.v1.AlertType": {
|
|
1195
|
+
"type": "E",
|
|
1196
|
+
"values": [
|
|
1197
|
+
"ALERT_TYPE_UNSPECIFIED",
|
|
1198
|
+
"ALERT_TYPE_BLOCKING",
|
|
1199
|
+
"ALERT_TYPE_DISMISSABLE",
|
|
1200
|
+
"ALERT_TYPE_INBOX"
|
|
1201
|
+
]
|
|
1202
|
+
},
|
|
1203
|
+
"pushwoosh.accounts.alerts.v1.AlertStatus": {
|
|
1204
|
+
"type": "E",
|
|
1205
|
+
"values": [
|
|
1206
|
+
"ALERT_STATUS_UNSPECIFIED",
|
|
1207
|
+
"ALERT_STATUS_READ",
|
|
1208
|
+
"ALERT_STATUS_UNREAD"
|
|
1209
|
+
]
|
|
1210
|
+
},
|
|
1211
|
+
"pushwoosh.accounts.alerts.v1.AlertSeverity": {
|
|
1212
|
+
"type": "E",
|
|
1213
|
+
"values": [
|
|
1214
|
+
"ALERT_SEVERITY_UNSPECIFIED",
|
|
1215
|
+
"ALERT_SEVERITY_LOW",
|
|
1216
|
+
"ALERT_SEVERITY_MEDIUM",
|
|
1217
|
+
"ALERT_SEVERITY_CRITICAL",
|
|
1218
|
+
"ALERT_SEVERITY_FATAL"
|
|
1219
|
+
]
|
|
1220
|
+
},
|
|
1221
|
+
"pushwoosh.accounts.alerts.v1.OrderBy": {
|
|
1222
|
+
"type": "E",
|
|
1223
|
+
"values": [
|
|
1224
|
+
"ORDER_BY_CREATED",
|
|
1225
|
+
"ORDER_BY_SEVERITY",
|
|
1226
|
+
"ORDER_BY_EXPIRY"
|
|
1227
|
+
]
|
|
1228
|
+
},
|
|
1229
|
+
"pushwoosh.accounts.alerts.v1.OrderDirection": {
|
|
1230
|
+
"type": "E",
|
|
1231
|
+
"values": [
|
|
1232
|
+
"ORDER_DIRECTION_DESC",
|
|
1233
|
+
"ORDER_DIRECTION_ASC"
|
|
1234
|
+
]
|
|
1235
|
+
},
|
|
1236
|
+
"pushwoosh.accounts.alerts.v1.ListRequest": {
|
|
1237
|
+
"type": "I",
|
|
1238
|
+
"fields": {
|
|
1239
|
+
"type": {
|
|
1240
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
1241
|
+
},
|
|
1242
|
+
"status": {
|
|
1243
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
1244
|
+
},
|
|
1245
|
+
"severity": {
|
|
1246
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
1247
|
+
},
|
|
1248
|
+
"page": {
|
|
1249
|
+
"type": "number"
|
|
1250
|
+
},
|
|
1251
|
+
"perPage": {
|
|
1252
|
+
"type": "number"
|
|
1253
|
+
},
|
|
1254
|
+
"orderBy": {
|
|
1255
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderBy"
|
|
1256
|
+
},
|
|
1257
|
+
"orderDirection": {
|
|
1258
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderDirection"
|
|
1259
|
+
},
|
|
1260
|
+
"accountId": {
|
|
1261
|
+
"type": "number"
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
"pushwoosh.accounts.alerts.v1.ListResponse.Alert": {
|
|
1266
|
+
"type": "I",
|
|
1267
|
+
"fields": {
|
|
1268
|
+
"type": {
|
|
1269
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
1270
|
+
},
|
|
1271
|
+
"status": {
|
|
1272
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
1273
|
+
},
|
|
1274
|
+
"severity": {
|
|
1275
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
1276
|
+
},
|
|
1277
|
+
"title": {
|
|
1278
|
+
"type": "string"
|
|
1279
|
+
},
|
|
1280
|
+
"content": {
|
|
1281
|
+
"type": "string",
|
|
1282
|
+
"optional": true
|
|
1283
|
+
},
|
|
1284
|
+
"created": {
|
|
1285
|
+
"type": "Date",
|
|
1286
|
+
"optional": true
|
|
1287
|
+
},
|
|
1288
|
+
"expiry": {
|
|
1289
|
+
"type": "Date",
|
|
1290
|
+
"optional": true
|
|
1291
|
+
},
|
|
1292
|
+
"uuid": {
|
|
1293
|
+
"type": "string"
|
|
1294
|
+
},
|
|
1295
|
+
"accountId": {
|
|
1296
|
+
"type": "number"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
"oneofs": {}
|
|
1300
|
+
},
|
|
1301
|
+
"pushwoosh.accounts.alerts.v1.ListResponse": {
|
|
1302
|
+
"type": "I",
|
|
1303
|
+
"fields": {
|
|
1304
|
+
"alerts": {
|
|
1305
|
+
"type": "pushwoosh.accounts.alerts.v1.ListResponse.Alert",
|
|
1306
|
+
"array": true
|
|
1307
|
+
},
|
|
1308
|
+
"page": {
|
|
1309
|
+
"type": "number"
|
|
1310
|
+
},
|
|
1311
|
+
"perPage": {
|
|
1312
|
+
"type": "number"
|
|
1313
|
+
},
|
|
1314
|
+
"total": {
|
|
1315
|
+
"type": "number"
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
"pushwoosh.accounts.alerts.v1.SendRequest": {
|
|
1320
|
+
"type": "I",
|
|
1321
|
+
"fields": {
|
|
1322
|
+
"accountId": {
|
|
1323
|
+
"type": "number"
|
|
1324
|
+
},
|
|
1325
|
+
"severity": {
|
|
1326
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
1327
|
+
},
|
|
1328
|
+
"title": {
|
|
1329
|
+
"type": "string"
|
|
1330
|
+
},
|
|
1331
|
+
"expiry": {
|
|
1332
|
+
"type": "Date",
|
|
1333
|
+
"optional": true
|
|
1334
|
+
},
|
|
1335
|
+
"banner": {
|
|
1336
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertBanner"
|
|
1337
|
+
},
|
|
1338
|
+
"email": {
|
|
1339
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertEmail"
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
"oneofs": {}
|
|
1343
|
+
},
|
|
1344
|
+
"pushwoosh.accounts.alerts.v1.UpdateStatusRequest.Alert": {
|
|
1345
|
+
"type": "I",
|
|
1346
|
+
"fields": {
|
|
1347
|
+
"id": {
|
|
1348
|
+
"type": "number"
|
|
1349
|
+
},
|
|
1350
|
+
"status": {
|
|
1351
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
"pushwoosh.accounts.alerts.v1.UpdateStatusRequest": {
|
|
1356
|
+
"type": "I",
|
|
1357
|
+
"fields": {
|
|
1358
|
+
"alerts": {
|
|
1359
|
+
"type": "pushwoosh.accounts.alerts.v1.UpdateStatusRequest.Alert",
|
|
1360
|
+
"array": true
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
"pushwoosh.accounts.alerts.v1.UpdateStatusResponse": {
|
|
1365
|
+
"type": "I",
|
|
1366
|
+
"fields": {}
|
|
1367
|
+
},
|
|
1368
|
+
"pushwoosh.accounts.alerts.v1.SendResponse": {
|
|
1369
|
+
"type": "I",
|
|
1370
|
+
"fields": {}
|
|
1371
|
+
},
|
|
1146
1372
|
"pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
|
|
1147
1373
|
"type": "S",
|
|
1148
1374
|
"key": "getAuthInfo",
|
|
@@ -4549,20 +4775,6 @@ export const data = {
|
|
|
4549
4775
|
}
|
|
4550
4776
|
}
|
|
4551
4777
|
},
|
|
4552
|
-
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesKakao": {
|
|
4553
|
-
"type": "I",
|
|
4554
|
-
"fields": {
|
|
4555
|
-
"content": {
|
|
4556
|
-
"type": "string"
|
|
4557
|
-
},
|
|
4558
|
-
"template": {
|
|
4559
|
-
"type": "string"
|
|
4560
|
-
},
|
|
4561
|
-
"contentVariables": {
|
|
4562
|
-
"type": "string"
|
|
4563
|
-
}
|
|
4564
|
-
}
|
|
4565
|
-
},
|
|
4566
4778
|
"pushwoosh.channels.messagingApi.v2.Content": {
|
|
4567
4779
|
"type": "I",
|
|
4568
4780
|
"fields": {
|
|
@@ -4601,9 +4813,6 @@ export const data = {
|
|
|
4601
4813
|
},
|
|
4602
4814
|
"telegram": {
|
|
4603
4815
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesTelegram"
|
|
4604
|
-
},
|
|
4605
|
-
"kakao": {
|
|
4606
|
-
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesKakao"
|
|
4607
4816
|
}
|
|
4608
4817
|
}
|
|
4609
4818
|
},
|
|
@@ -9259,6 +9468,128 @@ export const data = {
|
|
|
9259
9468
|
}
|
|
9260
9469
|
}
|
|
9261
9470
|
},
|
|
9471
|
+
"pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
|
|
9472
|
+
"type": "S",
|
|
9473
|
+
"key": "internalAlerts",
|
|
9474
|
+
"methods": {
|
|
9475
|
+
"List": {
|
|
9476
|
+
"request": "pushwoosh.rpc_v2.internal_alerts.ListRequest",
|
|
9477
|
+
"response": "pushwoosh.rpc_v2.internal_alerts.ListResponse",
|
|
9478
|
+
"method": "get",
|
|
9479
|
+
"path": "/api/alerts"
|
|
9480
|
+
},
|
|
9481
|
+
"UpdateStatus": {
|
|
9482
|
+
"request": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest",
|
|
9483
|
+
"response": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusResponse",
|
|
9484
|
+
"method": "put",
|
|
9485
|
+
"path": "/api/alerts"
|
|
9486
|
+
}
|
|
9487
|
+
}
|
|
9488
|
+
},
|
|
9489
|
+
"pushwoosh.rpc_v2.internal_alerts.ListRequest": {
|
|
9490
|
+
"type": "I",
|
|
9491
|
+
"fields": {
|
|
9492
|
+
"type": {
|
|
9493
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
9494
|
+
},
|
|
9495
|
+
"status": {
|
|
9496
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
9497
|
+
},
|
|
9498
|
+
"severity": {
|
|
9499
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
9500
|
+
},
|
|
9501
|
+
"page": {
|
|
9502
|
+
"type": "number"
|
|
9503
|
+
},
|
|
9504
|
+
"perPage": {
|
|
9505
|
+
"type": "number"
|
|
9506
|
+
},
|
|
9507
|
+
"orderBy": {
|
|
9508
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderBy"
|
|
9509
|
+
},
|
|
9510
|
+
"orderDirection": {
|
|
9511
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderDirection"
|
|
9512
|
+
}
|
|
9513
|
+
}
|
|
9514
|
+
},
|
|
9515
|
+
"pushwoosh.rpc_v2.internal_alerts.Alert": {
|
|
9516
|
+
"type": "I",
|
|
9517
|
+
"fields": {
|
|
9518
|
+
"type": {
|
|
9519
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
9520
|
+
},
|
|
9521
|
+
"status": {
|
|
9522
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
9523
|
+
},
|
|
9524
|
+
"severity": {
|
|
9525
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
9526
|
+
},
|
|
9527
|
+
"title": {
|
|
9528
|
+
"type": "string"
|
|
9529
|
+
},
|
|
9530
|
+
"content": {
|
|
9531
|
+
"type": "string",
|
|
9532
|
+
"optional": true
|
|
9533
|
+
},
|
|
9534
|
+
"created": {
|
|
9535
|
+
"type": "Date",
|
|
9536
|
+
"optional": true
|
|
9537
|
+
},
|
|
9538
|
+
"expiry": {
|
|
9539
|
+
"type": "Date",
|
|
9540
|
+
"optional": true
|
|
9541
|
+
},
|
|
9542
|
+
"uuid": {
|
|
9543
|
+
"type": "string"
|
|
9544
|
+
},
|
|
9545
|
+
"account": {
|
|
9546
|
+
"type": "string"
|
|
9547
|
+
}
|
|
9548
|
+
},
|
|
9549
|
+
"oneofs": {}
|
|
9550
|
+
},
|
|
9551
|
+
"pushwoosh.rpc_v2.internal_alerts.ListResponse": {
|
|
9552
|
+
"type": "I",
|
|
9553
|
+
"fields": {
|
|
9554
|
+
"alerts": {
|
|
9555
|
+
"type": "pushwoosh.rpc_v2.internal_alerts.Alert",
|
|
9556
|
+
"array": true
|
|
9557
|
+
},
|
|
9558
|
+
"page": {
|
|
9559
|
+
"type": "number"
|
|
9560
|
+
},
|
|
9561
|
+
"perPage": {
|
|
9562
|
+
"type": "number"
|
|
9563
|
+
},
|
|
9564
|
+
"total": {
|
|
9565
|
+
"type": "number"
|
|
9566
|
+
}
|
|
9567
|
+
}
|
|
9568
|
+
},
|
|
9569
|
+
"pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest.AlertStatusUpdate": {
|
|
9570
|
+
"type": "I",
|
|
9571
|
+
"fields": {
|
|
9572
|
+
"uuid": {
|
|
9573
|
+
"type": "string"
|
|
9574
|
+
},
|
|
9575
|
+
"status": {
|
|
9576
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
9577
|
+
}
|
|
9578
|
+
}
|
|
9579
|
+
},
|
|
9580
|
+
"pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest": {
|
|
9581
|
+
"type": "I",
|
|
9582
|
+
"fields": {
|
|
9583
|
+
"alerts": {
|
|
9584
|
+
"type": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest.AlertStatusUpdate",
|
|
9585
|
+
"array": true
|
|
9586
|
+
}
|
|
9587
|
+
}
|
|
9588
|
+
},
|
|
9589
|
+
"pushwoosh.rpc_v2.internal_alerts.UpdateStatusResponse": {
|
|
9590
|
+
"type": "I",
|
|
9591
|
+
"fields": {}
|
|
9592
|
+
},
|
|
9262
9593
|
"pushwoosh.rpc_v2.ios_categories.IOSCategoriesService": {
|
|
9263
9594
|
"type": "S",
|
|
9264
9595
|
"key": "iOSCategories",
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AccountGroupsService as pushwoosh_rpc_v2_account_groups_AccountGroupsSe
|
|
|
2
2
|
import { AccountInvitesService as pushwoosh_rpc_v2_account_invites_AccountInvitesService } from './account_invites';
|
|
3
3
|
import { AccountUsersService as pushwoosh_rpc_v2_account_users_AccountUsersService } from './account_users';
|
|
4
4
|
import { AccountsService as pushwoosh_rpc_v2_accounts_AccountsService } from './accounts';
|
|
5
|
+
import { AlertsService as pushwoosh_accounts_alerts_v1_AlertsService } from './pushwoosh_accounts_alerts_v1';
|
|
5
6
|
import { GetAuthInfoService as pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService } from './accounts_get_auth_info';
|
|
6
7
|
import { ApiTokensService as pushwoosh_rpc_v2_api_tokens_ApiTokensService } from './api_tokens';
|
|
7
8
|
import { ApplicationsService as pushwoosh_rpc_v2_applications_ApplicationsService } from './applications';
|
|
@@ -29,6 +30,7 @@ import { FrequencyCappingService as pushwoosh_rpc_v2_frequency_capping_Frequency
|
|
|
29
30
|
import { GeozonesService as pushwoosh_rpc_v2_geozones_GeozonesService } from './geozones';
|
|
30
31
|
import { GeozonesClustersService as pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService } from './geozones_clusters';
|
|
31
32
|
import { IntegrationsService as pushwoosh_rpc_v2_integrations_IntegrationsService } from './integrations';
|
|
33
|
+
import { InternalAlertsService as pushwoosh_rpc_v2_internal_alerts_InternalAlertsService } from './internal_alerts';
|
|
32
34
|
import { IOSCategoriesService as pushwoosh_rpc_v2_ios_categories_IOSCategoriesService } from './ios_categories';
|
|
33
35
|
import { KakaoPresetsService as pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService } from './kakao_presets';
|
|
34
36
|
import { linePresetsService as pushwoosh_rpc_v2_line_presets_linePresetsService } from './line_presets';
|
|
@@ -56,6 +58,7 @@ export type API = {
|
|
|
56
58
|
accountInvites: pushwoosh_rpc_v2_account_invites_AccountInvitesService;
|
|
57
59
|
accountUsers: pushwoosh_rpc_v2_account_users_AccountUsersService;
|
|
58
60
|
accounts: pushwoosh_rpc_v2_accounts_AccountsService;
|
|
61
|
+
alerts: pushwoosh_accounts_alerts_v1_AlertsService;
|
|
59
62
|
getAuthInfo: pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService;
|
|
60
63
|
apiTokens: pushwoosh_rpc_v2_api_tokens_ApiTokensService;
|
|
61
64
|
applications: pushwoosh_rpc_v2_applications_ApplicationsService;
|
|
@@ -83,6 +86,7 @@ export type API = {
|
|
|
83
86
|
geozones: pushwoosh_rpc_v2_geozones_GeozonesService;
|
|
84
87
|
geozonesClusters: pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService;
|
|
85
88
|
integrations: pushwoosh_rpc_v2_integrations_IntegrationsService;
|
|
89
|
+
internalAlerts: pushwoosh_rpc_v2_internal_alerts_InternalAlertsService;
|
|
86
90
|
iOSCategories: pushwoosh_rpc_v2_ios_categories_IOSCategoriesService;
|
|
87
91
|
kakaoPresets: pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService;
|
|
88
92
|
linePresets: pushwoosh_rpc_v2_line_presets_linePresetsService;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AlertType as pushwoosh_accounts_alerts_v1_AlertType } from './pushwoosh_accounts_alerts_v1';
|
|
2
|
+
import { AlertStatus as pushwoosh_accounts_alerts_v1_AlertStatus } from './pushwoosh_accounts_alerts_v1';
|
|
3
|
+
import { AlertSeverity as pushwoosh_accounts_alerts_v1_AlertSeverity } from './pushwoosh_accounts_alerts_v1';
|
|
4
|
+
import { OrderBy as pushwoosh_accounts_alerts_v1_OrderBy } from './pushwoosh_accounts_alerts_v1';
|
|
5
|
+
import { OrderDirection as pushwoosh_accounts_alerts_v1_OrderDirection } from './pushwoosh_accounts_alerts_v1';
|
|
6
|
+
export interface InternalAlertsService {
|
|
7
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
8
|
+
UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type ListRequest = {
|
|
11
|
+
type?: pushwoosh_accounts_alerts_v1_AlertType;
|
|
12
|
+
status?: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
13
|
+
severity?: pushwoosh_accounts_alerts_v1_AlertSeverity;
|
|
14
|
+
page?: number;
|
|
15
|
+
perPage?: number;
|
|
16
|
+
orderBy?: pushwoosh_accounts_alerts_v1_OrderBy;
|
|
17
|
+
orderDirection?: pushwoosh_accounts_alerts_v1_OrderDirection;
|
|
18
|
+
};
|
|
19
|
+
export type Alert = {
|
|
20
|
+
type: pushwoosh_accounts_alerts_v1_AlertType;
|
|
21
|
+
status: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
22
|
+
severity: pushwoosh_accounts_alerts_v1_AlertSeverity;
|
|
23
|
+
title: string;
|
|
24
|
+
content?: string;
|
|
25
|
+
created?: Date;
|
|
26
|
+
expiry?: Date;
|
|
27
|
+
uuid: string;
|
|
28
|
+
account: string;
|
|
29
|
+
};
|
|
30
|
+
export type ListResponse = {
|
|
31
|
+
alerts: Alert[];
|
|
32
|
+
page: number;
|
|
33
|
+
perPage: number;
|
|
34
|
+
total: number;
|
|
35
|
+
};
|
|
36
|
+
export type UpdateStatusRequest_AlertStatusUpdate = {
|
|
37
|
+
uuid: string;
|
|
38
|
+
status: pushwoosh_accounts_alerts_v1_AlertStatus;
|
|
39
|
+
};
|
|
40
|
+
export type UpdateStatusRequest = {
|
|
41
|
+
alerts?: UpdateStatusRequest_AlertStatusUpdate[];
|
|
42
|
+
};
|
|
43
|
+
export type UpdateStatusResponse = {};
|
package/package.json
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface AlertsService {
|
|
2
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
3
|
+
Send(request: SendRequest): Promise<SendResponse>;
|
|
4
|
+
UpdateStatus(request: UpdateStatusRequest): Promise<UpdateStatusResponse>;
|
|
5
|
+
}
|
|
6
|
+
export type AlertBanner = {
|
|
7
|
+
type: AlertType;
|
|
8
|
+
content?: string;
|
|
9
|
+
};
|
|
10
|
+
export type AlertEmail = {
|
|
11
|
+
to: string;
|
|
12
|
+
template: string;
|
|
13
|
+
};
|
|
14
|
+
export type AlertType = 'ALERT_TYPE_UNSPECIFIED' | 'ALERT_TYPE_BLOCKING' | 'ALERT_TYPE_DISMISSABLE' | 'ALERT_TYPE_INBOX';
|
|
15
|
+
export type AlertStatus = 'ALERT_STATUS_UNSPECIFIED' | 'ALERT_STATUS_READ' | 'ALERT_STATUS_UNREAD';
|
|
16
|
+
export type AlertSeverity = 'ALERT_SEVERITY_UNSPECIFIED' | 'ALERT_SEVERITY_LOW' | 'ALERT_SEVERITY_MEDIUM' | 'ALERT_SEVERITY_CRITICAL' | 'ALERT_SEVERITY_FATAL';
|
|
17
|
+
export type OrderBy = 'ORDER_BY_CREATED' | 'ORDER_BY_SEVERITY' | 'ORDER_BY_EXPIRY';
|
|
18
|
+
export type OrderDirection = 'ORDER_DIRECTION_DESC' | 'ORDER_DIRECTION_ASC';
|
|
19
|
+
export type ListRequest = {
|
|
20
|
+
type?: AlertType;
|
|
21
|
+
status?: AlertStatus;
|
|
22
|
+
severity?: AlertSeverity;
|
|
23
|
+
page?: number;
|
|
24
|
+
perPage?: number;
|
|
25
|
+
orderBy?: OrderBy;
|
|
26
|
+
orderDirection?: OrderDirection;
|
|
27
|
+
accountId?: number;
|
|
28
|
+
};
|
|
29
|
+
export type ListResponse_Alert = {
|
|
30
|
+
type: AlertType;
|
|
31
|
+
status: AlertStatus;
|
|
32
|
+
severity: AlertSeverity;
|
|
33
|
+
title: string;
|
|
34
|
+
content?: string;
|
|
35
|
+
created?: Date;
|
|
36
|
+
expiry?: Date;
|
|
37
|
+
uuid: string;
|
|
38
|
+
accountId: number;
|
|
39
|
+
};
|
|
40
|
+
export type ListResponse = {
|
|
41
|
+
alerts: ListResponse_Alert[];
|
|
42
|
+
page: number;
|
|
43
|
+
perPage: number;
|
|
44
|
+
total: number;
|
|
45
|
+
};
|
|
46
|
+
export type SendRequest = {
|
|
47
|
+
accountId?: number;
|
|
48
|
+
severity?: AlertSeverity;
|
|
49
|
+
title?: string;
|
|
50
|
+
expiry?: Date;
|
|
51
|
+
banner?: AlertBanner;
|
|
52
|
+
email?: AlertEmail;
|
|
53
|
+
};
|
|
54
|
+
export type UpdateStatusRequest_Alert = {
|
|
55
|
+
id: number;
|
|
56
|
+
status: AlertStatus;
|
|
57
|
+
};
|
|
58
|
+
export type UpdateStatusRequest = {
|
|
59
|
+
alerts?: UpdateStatusRequest_Alert[];
|
|
60
|
+
};
|
|
61
|
+
export type UpdateStatusResponse = {};
|
|
62
|
+
export type SendResponse = {};
|
|
@@ -359,11 +359,6 @@ export type Content_PlatformPropertiesSMS = {};
|
|
|
359
359
|
export type Content_PlatformPropertiesTelegram = {
|
|
360
360
|
body: string;
|
|
361
361
|
};
|
|
362
|
-
export type Content_PlatformPropertiesKakao = {
|
|
363
|
-
content: string;
|
|
364
|
-
template: string;
|
|
365
|
-
contentVariables: string;
|
|
366
|
-
};
|
|
367
362
|
export type Content = {
|
|
368
363
|
ios: Content_PlatformPropertiesIos;
|
|
369
364
|
android: Content_PlatformPropertiesAndroid;
|
|
@@ -377,7 +372,6 @@ export type Content = {
|
|
|
377
372
|
ie: Content_PlatformPropertiesIE;
|
|
378
373
|
windows: Content_PlatformPropertiesWindows;
|
|
379
374
|
telegram: Content_PlatformPropertiesTelegram;
|
|
380
|
-
kakao: Content_PlatformPropertiesKakao;
|
|
381
375
|
};
|
|
382
376
|
export type LocalizedContent = {
|
|
383
377
|
localizedContent: Record<string, Content>;
|