@pushwoosh/rpc-v2-http-api-data 0.1.729 → 0.1.731
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/applications_statistics.d.ts +26 -0
- package/data.js +436 -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
|
@@ -2,6 +2,8 @@ export interface ApplicationsStatisticsService {
|
|
|
2
2
|
GetUsersStatistics(request: GetUsersStatisticsRequest): Promise<GetUsersStatisticsResponse>;
|
|
3
3
|
GetMAUStatistics(request: GetMAUStatisticsRequest): Promise<GetMAUStatisticsResponse>;
|
|
4
4
|
GetDAUStatistics(request: GetDAUStatisticsRequest): Promise<GetDAUStatisticsResponse>;
|
|
5
|
+
GetPushApplicationStatistics(request: GetPushApplicationStatisticsRequest): Promise<GetPushApplicationStatisticsResponse>;
|
|
6
|
+
GetEmailApplicationStatistics(request: GetEmailApplicationStatisticsRequest): Promise<GetEmailApplicationStatisticsResponse>;
|
|
5
7
|
}
|
|
6
8
|
export type TimeInterval = 'TIME_INTERVAL_UNSPECIFIED' | 'TIME_INTERVAL_HOUR' | 'TIME_INTERVAL_DAY' | 'TIME_INTERVAL_WEEK' | 'TIME_INTERVAL_MONTH';
|
|
7
9
|
export type GetUsersStatisticsRequest = {
|
|
@@ -26,3 +28,27 @@ export type GetDAUStatisticsResponse = {
|
|
|
26
28
|
timestamps: Date[];
|
|
27
29
|
usersCount: number[];
|
|
28
30
|
};
|
|
31
|
+
export type GetPushApplicationStatisticsRequest = {
|
|
32
|
+
application?: string;
|
|
33
|
+
};
|
|
34
|
+
export type PlatformStatistics = {
|
|
35
|
+
platform: string;
|
|
36
|
+
values: number[];
|
|
37
|
+
};
|
|
38
|
+
export type GetPushApplicationStatisticsResponse = {
|
|
39
|
+
timestamps: Date[];
|
|
40
|
+
totalDevices: PlatformStatistics[];
|
|
41
|
+
sends: PlatformStatistics[];
|
|
42
|
+
openRate: PlatformStatistics[];
|
|
43
|
+
interval: TimeInterval;
|
|
44
|
+
};
|
|
45
|
+
export type GetEmailApplicationStatisticsRequest = {
|
|
46
|
+
application?: string;
|
|
47
|
+
};
|
|
48
|
+
export type GetEmailApplicationStatisticsResponse = {
|
|
49
|
+
timestamps: Date[];
|
|
50
|
+
totalDevices: PlatformStatistics[];
|
|
51
|
+
sends: PlatformStatistics[];
|
|
52
|
+
openRate: PlatformStatistics[];
|
|
53
|
+
interval: TimeInterval;
|
|
54
|
+
};
|
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",
|
|
@@ -3013,6 +3239,18 @@ export const data = {
|
|
|
3013
3239
|
"response": "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsResponse",
|
|
3014
3240
|
"method": "post",
|
|
3015
3241
|
"path": "/api/v2/statistics/messages/getDAUStatistics"
|
|
3242
|
+
},
|
|
3243
|
+
"GetPushApplicationStatistics": {
|
|
3244
|
+
"request": "pushwoosh.rpc_v2.applications_statistics.GetPushApplicationStatisticsRequest",
|
|
3245
|
+
"response": "pushwoosh.rpc_v2.applications_statistics.GetPushApplicationStatisticsResponse",
|
|
3246
|
+
"method": "post",
|
|
3247
|
+
"path": "/api/v2/statistics/messages/getPushApplicationStatistics"
|
|
3248
|
+
},
|
|
3249
|
+
"GetEmailApplicationStatistics": {
|
|
3250
|
+
"request": "pushwoosh.rpc_v2.applications_statistics.GetEmailApplicationStatisticsRequest",
|
|
3251
|
+
"response": "pushwoosh.rpc_v2.applications_statistics.GetEmailApplicationStatisticsResponse",
|
|
3252
|
+
"method": "post",
|
|
3253
|
+
"path": "/api/v2/statistics/messages/getEmailApplicationStatistics"
|
|
3016
3254
|
}
|
|
3017
3255
|
}
|
|
3018
3256
|
},
|
|
@@ -3092,6 +3330,82 @@ export const data = {
|
|
|
3092
3330
|
}
|
|
3093
3331
|
}
|
|
3094
3332
|
},
|
|
3333
|
+
"pushwoosh.rpc_v2.applications_statistics.GetPushApplicationStatisticsRequest": {
|
|
3334
|
+
"type": "I",
|
|
3335
|
+
"fields": {
|
|
3336
|
+
"application": {
|
|
3337
|
+
"type": "string"
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
},
|
|
3341
|
+
"pushwoosh.rpc_v2.applications_statistics.PlatformStatistics": {
|
|
3342
|
+
"type": "I",
|
|
3343
|
+
"fields": {
|
|
3344
|
+
"platform": {
|
|
3345
|
+
"type": "string"
|
|
3346
|
+
},
|
|
3347
|
+
"values": {
|
|
3348
|
+
"type": "number",
|
|
3349
|
+
"array": true
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
"pushwoosh.rpc_v2.applications_statistics.GetPushApplicationStatisticsResponse": {
|
|
3354
|
+
"type": "I",
|
|
3355
|
+
"fields": {
|
|
3356
|
+
"timestamps": {
|
|
3357
|
+
"type": "Date",
|
|
3358
|
+
"array": true
|
|
3359
|
+
},
|
|
3360
|
+
"totalDevices": {
|
|
3361
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.PlatformStatistics",
|
|
3362
|
+
"array": true
|
|
3363
|
+
},
|
|
3364
|
+
"sends": {
|
|
3365
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.PlatformStatistics",
|
|
3366
|
+
"array": true
|
|
3367
|
+
},
|
|
3368
|
+
"openRate": {
|
|
3369
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.PlatformStatistics",
|
|
3370
|
+
"array": true
|
|
3371
|
+
},
|
|
3372
|
+
"interval": {
|
|
3373
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.TimeInterval"
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
"pushwoosh.rpc_v2.applications_statistics.GetEmailApplicationStatisticsRequest": {
|
|
3378
|
+
"type": "I",
|
|
3379
|
+
"fields": {
|
|
3380
|
+
"application": {
|
|
3381
|
+
"type": "string"
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
},
|
|
3385
|
+
"pushwoosh.rpc_v2.applications_statistics.GetEmailApplicationStatisticsResponse": {
|
|
3386
|
+
"type": "I",
|
|
3387
|
+
"fields": {
|
|
3388
|
+
"timestamps": {
|
|
3389
|
+
"type": "Date",
|
|
3390
|
+
"array": true
|
|
3391
|
+
},
|
|
3392
|
+
"totalDevices": {
|
|
3393
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.PlatformStatistics",
|
|
3394
|
+
"array": true
|
|
3395
|
+
},
|
|
3396
|
+
"sends": {
|
|
3397
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.PlatformStatistics",
|
|
3398
|
+
"array": true
|
|
3399
|
+
},
|
|
3400
|
+
"openRate": {
|
|
3401
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.PlatformStatistics",
|
|
3402
|
+
"array": true
|
|
3403
|
+
},
|
|
3404
|
+
"interval": {
|
|
3405
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.TimeInterval"
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
},
|
|
3095
3409
|
"pushwoosh.rpc_v2.autopushes.AutopushesService": {
|
|
3096
3410
|
"type": "S",
|
|
3097
3411
|
"key": "autopushes",
|
|
@@ -4549,20 +4863,6 @@ export const data = {
|
|
|
4549
4863
|
}
|
|
4550
4864
|
}
|
|
4551
4865
|
},
|
|
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
4866
|
"pushwoosh.channels.messagingApi.v2.Content": {
|
|
4567
4867
|
"type": "I",
|
|
4568
4868
|
"fields": {
|
|
@@ -4601,9 +4901,6 @@ export const data = {
|
|
|
4601
4901
|
},
|
|
4602
4902
|
"telegram": {
|
|
4603
4903
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesTelegram"
|
|
4604
|
-
},
|
|
4605
|
-
"kakao": {
|
|
4606
|
-
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesKakao"
|
|
4607
4904
|
}
|
|
4608
4905
|
}
|
|
4609
4906
|
},
|
|
@@ -9259,6 +9556,128 @@ export const data = {
|
|
|
9259
9556
|
}
|
|
9260
9557
|
}
|
|
9261
9558
|
},
|
|
9559
|
+
"pushwoosh.rpc_v2.internal_alerts.InternalAlertsService": {
|
|
9560
|
+
"type": "S",
|
|
9561
|
+
"key": "internalAlerts",
|
|
9562
|
+
"methods": {
|
|
9563
|
+
"List": {
|
|
9564
|
+
"request": "pushwoosh.rpc_v2.internal_alerts.ListRequest",
|
|
9565
|
+
"response": "pushwoosh.rpc_v2.internal_alerts.ListResponse",
|
|
9566
|
+
"method": "get",
|
|
9567
|
+
"path": "/api/alerts"
|
|
9568
|
+
},
|
|
9569
|
+
"UpdateStatus": {
|
|
9570
|
+
"request": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest",
|
|
9571
|
+
"response": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusResponse",
|
|
9572
|
+
"method": "put",
|
|
9573
|
+
"path": "/api/alerts"
|
|
9574
|
+
}
|
|
9575
|
+
}
|
|
9576
|
+
},
|
|
9577
|
+
"pushwoosh.rpc_v2.internal_alerts.ListRequest": {
|
|
9578
|
+
"type": "I",
|
|
9579
|
+
"fields": {
|
|
9580
|
+
"type": {
|
|
9581
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
9582
|
+
},
|
|
9583
|
+
"status": {
|
|
9584
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
9585
|
+
},
|
|
9586
|
+
"severity": {
|
|
9587
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
9588
|
+
},
|
|
9589
|
+
"page": {
|
|
9590
|
+
"type": "number"
|
|
9591
|
+
},
|
|
9592
|
+
"perPage": {
|
|
9593
|
+
"type": "number"
|
|
9594
|
+
},
|
|
9595
|
+
"orderBy": {
|
|
9596
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderBy"
|
|
9597
|
+
},
|
|
9598
|
+
"orderDirection": {
|
|
9599
|
+
"type": "pushwoosh.accounts.alerts.v1.OrderDirection"
|
|
9600
|
+
}
|
|
9601
|
+
}
|
|
9602
|
+
},
|
|
9603
|
+
"pushwoosh.rpc_v2.internal_alerts.Alert": {
|
|
9604
|
+
"type": "I",
|
|
9605
|
+
"fields": {
|
|
9606
|
+
"type": {
|
|
9607
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertType"
|
|
9608
|
+
},
|
|
9609
|
+
"status": {
|
|
9610
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
9611
|
+
},
|
|
9612
|
+
"severity": {
|
|
9613
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertSeverity"
|
|
9614
|
+
},
|
|
9615
|
+
"title": {
|
|
9616
|
+
"type": "string"
|
|
9617
|
+
},
|
|
9618
|
+
"content": {
|
|
9619
|
+
"type": "string",
|
|
9620
|
+
"optional": true
|
|
9621
|
+
},
|
|
9622
|
+
"created": {
|
|
9623
|
+
"type": "Date",
|
|
9624
|
+
"optional": true
|
|
9625
|
+
},
|
|
9626
|
+
"expiry": {
|
|
9627
|
+
"type": "Date",
|
|
9628
|
+
"optional": true
|
|
9629
|
+
},
|
|
9630
|
+
"uuid": {
|
|
9631
|
+
"type": "string"
|
|
9632
|
+
},
|
|
9633
|
+
"account": {
|
|
9634
|
+
"type": "string"
|
|
9635
|
+
}
|
|
9636
|
+
},
|
|
9637
|
+
"oneofs": {}
|
|
9638
|
+
},
|
|
9639
|
+
"pushwoosh.rpc_v2.internal_alerts.ListResponse": {
|
|
9640
|
+
"type": "I",
|
|
9641
|
+
"fields": {
|
|
9642
|
+
"alerts": {
|
|
9643
|
+
"type": "pushwoosh.rpc_v2.internal_alerts.Alert",
|
|
9644
|
+
"array": true
|
|
9645
|
+
},
|
|
9646
|
+
"page": {
|
|
9647
|
+
"type": "number"
|
|
9648
|
+
},
|
|
9649
|
+
"perPage": {
|
|
9650
|
+
"type": "number"
|
|
9651
|
+
},
|
|
9652
|
+
"total": {
|
|
9653
|
+
"type": "number"
|
|
9654
|
+
}
|
|
9655
|
+
}
|
|
9656
|
+
},
|
|
9657
|
+
"pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest.AlertStatusUpdate": {
|
|
9658
|
+
"type": "I",
|
|
9659
|
+
"fields": {
|
|
9660
|
+
"uuid": {
|
|
9661
|
+
"type": "string"
|
|
9662
|
+
},
|
|
9663
|
+
"status": {
|
|
9664
|
+
"type": "pushwoosh.accounts.alerts.v1.AlertStatus"
|
|
9665
|
+
}
|
|
9666
|
+
}
|
|
9667
|
+
},
|
|
9668
|
+
"pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest": {
|
|
9669
|
+
"type": "I",
|
|
9670
|
+
"fields": {
|
|
9671
|
+
"alerts": {
|
|
9672
|
+
"type": "pushwoosh.rpc_v2.internal_alerts.UpdateStatusRequest.AlertStatusUpdate",
|
|
9673
|
+
"array": true
|
|
9674
|
+
}
|
|
9675
|
+
}
|
|
9676
|
+
},
|
|
9677
|
+
"pushwoosh.rpc_v2.internal_alerts.UpdateStatusResponse": {
|
|
9678
|
+
"type": "I",
|
|
9679
|
+
"fields": {}
|
|
9680
|
+
},
|
|
9262
9681
|
"pushwoosh.rpc_v2.ios_categories.IOSCategoriesService": {
|
|
9263
9682
|
"type": "S",
|
|
9264
9683
|
"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>;
|