Skip to content

Commit af1f75a

Browse files
committed
feat: add Telegram and Discord channel management endpoints and UI
- Introduced new API endpoints for fetching Telegram and Discord channels. - Updated Swagger documentation to include new endpoints. - Enhanced the TelegramDiscordBridgePage to support channel selection with modals. - Implemented loading states for channel options. - Improved binding creation logic with validation and error handling. - Updated data contracts to include DTOs for Discord and Telegram channels. - Translated UI elements to Russian for better localization.
1 parent 8845a8f commit af1f75a

29 files changed

+480
-115
lines changed

.yarn/install-state.gz

15 KB
Binary file not shown.

api/swagger_api.json

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5923,6 +5923,64 @@
59235923
}
59245924
}
59255925
},
5926+
"/api/TelegramDiscordBridge/telegram-channels": {
5927+
"get": {
5928+
"tags": [
5929+
"TelegramDiscordBridge"
5930+
],
5931+
"responses": {
5932+
"200": {
5933+
"description": "OK",
5934+
"content": {
5935+
"text/plain": {
5936+
"schema": {
5937+
"$ref": "#/components/schemas/TelegramChannelOptionDtoListOperationResult"
5938+
}
5939+
},
5940+
"application/json": {
5941+
"schema": {
5942+
"$ref": "#/components/schemas/TelegramChannelOptionDtoListOperationResult"
5943+
}
5944+
},
5945+
"text/json": {
5946+
"schema": {
5947+
"$ref": "#/components/schemas/TelegramChannelOptionDtoListOperationResult"
5948+
}
5949+
}
5950+
}
5951+
}
5952+
}
5953+
}
5954+
},
5955+
"/api/TelegramDiscordBridge/discord-channels": {
5956+
"get": {
5957+
"tags": [
5958+
"TelegramDiscordBridge"
5959+
],
5960+
"responses": {
5961+
"200": {
5962+
"description": "OK",
5963+
"content": {
5964+
"text/plain": {
5965+
"schema": {
5966+
"$ref": "#/components/schemas/DiscordChannelOptionDtoListOperationResult"
5967+
}
5968+
},
5969+
"application/json": {
5970+
"schema": {
5971+
"$ref": "#/components/schemas/DiscordChannelOptionDtoListOperationResult"
5972+
}
5973+
},
5974+
"text/json": {
5975+
"schema": {
5976+
"$ref": "#/components/schemas/DiscordChannelOptionDtoListOperationResult"
5977+
}
5978+
}
5979+
}
5980+
}
5981+
}
5982+
}
5983+
},
59265984
"/api/TestLogger/test-warning": {
59275985
"post": {
59285986
"tags": [
@@ -7639,6 +7697,41 @@
76397697
},
76407698
"additionalProperties": false
76417699
},
7700+
"DiscordChannelOptionDto": {
7701+
"required": [
7702+
"guildId",
7703+
"guildName",
7704+
"id",
7705+
"name"
7706+
],
7707+
"type": "object",
7708+
"properties": {
7709+
"id": {
7710+
"type": "integer",
7711+
"format": "int64"
7712+
},
7713+
"name": {
7714+
"type": "string"
7715+
},
7716+
"guildId": {
7717+
"type": "integer",
7718+
"format": "int64"
7719+
},
7720+
"guildName": {
7721+
"type": "string"
7722+
}
7723+
},
7724+
"additionalProperties": false
7725+
},
7726+
"DiscordChannelOptionDtoListOperationResult": {
7727+
"allOf": [
7728+
{
7729+
"$ref": "#/components/schemas/OperationResult"
7730+
}
7731+
],
7732+
"description": "Результат операции с данными типа any",
7733+
"x-generic-type-argument": "any"
7734+
},
76427735
"EnvironmentVariable": {
76437736
"required": [
76447737
"createdAt",
@@ -9700,6 +9793,32 @@
97009793
"description": "Результат операции с данными типа any",
97019794
"x-generic-type-argument": "any"
97029795
},
9796+
"TelegramChannelOptionDto": {
9797+
"required": [
9798+
"id",
9799+
"title"
9800+
],
9801+
"type": "object",
9802+
"properties": {
9803+
"id": {
9804+
"type": "integer",
9805+
"format": "int64"
9806+
},
9807+
"title": {
9808+
"type": "string"
9809+
}
9810+
},
9811+
"additionalProperties": false
9812+
},
9813+
"TelegramChannelOptionDtoListOperationResult": {
9814+
"allOf": [
9815+
{
9816+
"$ref": "#/components/schemas/OperationResult"
9817+
}
9818+
],
9819+
"description": "Результат операции с данными типа any",
9820+
"x-generic-type-argument": "any"
9821+
},
97039822
"TelegramDiscordBindingCreateRequest": {
97049823
"required": [
97059824
"discordChannelId",

0 commit comments

Comments
 (0)