Skip to content

Commit

Permalink
feat: add stream connection lite endpoint and use it from admin liste…
Browse files Browse the repository at this point in the history
…ners page (#295)
  • Loading branch information
ramiroaisen authored Mar 12, 2024
2 parents ed68b8a + aaf3f49 commit 644c9da
Show file tree
Hide file tree
Showing 22 changed files with 1,652 additions and 104 deletions.
352 changes: 352 additions & 0 deletions defs/api/stream-connections-lite/GET/Output.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,352 @@
{
"type": "object",
"required": [
"items",
"limit",
"skip",
"total"
],
"properties": {
"total": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"skip": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"limit": {
"type": "integer",
"format": "int64"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"_id",
"ca",
"ip",
"op",
"st"
],
"properties": {
"_id": {
"type": "string"
},
"dp": {
"type": "string",
"nullable": true
},
"st": {
"type": "string"
},
"op": {
"type": "boolean"
},
"ip": {
"type": "string",
"format": "ip"
},
"cc": {
"type": "string",
"enum": [
"AF",
"AX",
"AL",
"DZ",
"AS",
"AD",
"AO",
"AI",
"AQ",
"AG",
"AR",
"AM",
"AW",
"AU",
"AT",
"AZ",
"BS",
"BH",
"BD",
"BB",
"BY",
"BE",
"BZ",
"BJ",
"BM",
"BT",
"BO",
"BQ",
"BA",
"BW",
"BV",
"BR",
"IO",
"BN",
"BG",
"BF",
"BI",
"CV",
"KH",
"CM",
"CA",
"KY",
"CF",
"TD",
"CL",
"CN",
"CX",
"CC",
"CO",
"KM",
"CG",
"CD",
"CK",
"CR",
"CI",
"HR",
"CU",
"CW",
"CY",
"CZ",
"DK",
"DJ",
"DM",
"DO",
"EC",
"EG",
"EU",
"SV",
"GQ",
"ER",
"EE",
"SZ",
"ET",
"FK",
"FO",
"FJ",
"FI",
"FR",
"GF",
"PF",
"TF",
"GA",
"GM",
"GE",
"DE",
"GH",
"GI",
"GR",
"GL",
"GD",
"GP",
"GU",
"GT",
"GG",
"GN",
"GW",
"GY",
"HT",
"HM",
"VA",
"HN",
"HK",
"HU",
"IS",
"IN",
"ID",
"IR",
"IQ",
"IE",
"IM",
"IL",
"IT",
"JM",
"JP",
"JE",
"JO",
"KZ",
"KE",
"KI",
"KP",
"KR",
"KW",
"KG",
"LA",
"LV",
"LB",
"LS",
"LR",
"LY",
"LI",
"LT",
"LU",
"MO",
"MG",
"MW",
"MY",
"MV",
"ML",
"MT",
"MH",
"MQ",
"MR",
"MU",
"YT",
"MX",
"FM",
"MD",
"MC",
"MN",
"ME",
"MS",
"MA",
"MZ",
"MM",
"NA",
"NR",
"NP",
"NL",
"NC",
"NZ",
"NI",
"NE",
"NG",
"NU",
"NF",
"MK",
"MP",
"NO",
"OM",
"PK",
"PW",
"PS",
"PA",
"PG",
"PY",
"PE",
"PH",
"PN",
"PL",
"PT",
"PR",
"QA",
"RE",
"RO",
"RU",
"RW",
"BL",
"SH",
"KN",
"LC",
"MF",
"PM",
"VC",
"WS",
"SM",
"ST",
"SA",
"SN",
"RS",
"SC",
"SL",
"SG",
"SX",
"SK",
"SI",
"SB",
"SO",
"ZA",
"GS",
"SS",
"ES",
"LK",
"SD",
"SR",
"SJ",
"SE",
"CH",
"SY",
"TW",
"TJ",
"TZ",
"TH",
"TL",
"TG",
"TK",
"TO",
"TT",
"TN",
"TR",
"TM",
"TC",
"TV",
"UG",
"UA",
"AE",
"GB",
"US",
"UM",
"UY",
"UZ",
"VU",
"VE",
"VN",
"VG",
"VI",
"WF",
"EH",
"YE",
"ZM",
"ZW"
],
"nullable": true
},
"du": {
"type": "integer",
"format": "uint64",
"minimum": 0.0,
"nullable": true
},
"by": {
"type": "integer",
"format": "uint64",
"minimum": 0.0,
"nullable": true
},
"br": {
"type": "string",
"nullable": true
},
"do": {
"type": "string",
"nullable": true
},
"os": {
"type": "string",
"nullable": true
},
"ca": {
"type": "string",
"format": "date-time"
},
"re": {
"type": "boolean"
},
"_m": {
"type": "boolean"
},
"cl": {
"type": "string",
"format": "date-time",
"nullable": true
}
}
}
}
}
}
5 changes: 5 additions & 0 deletions defs/api/stream-connections-lite/GET/Output.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Paged } from "../../../Paged.js";
import type { StreamConnectionLite } from "../../../db/StreamConnectionLite.js";

export type Output = Paged<StreamConnectionLite>;
Loading

0 comments on commit 644c9da

Please sign in to comment.