Skip to content

Commit bd75cea

Browse files
API codegen update (#6)
Co-authored-by: dyakovri <5656720+dyakovri@users.noreply.github.com>
1 parent 5a2597b commit bd75cea

File tree

2 files changed

+23
-253
lines changed

2 files changed

+23
-253
lines changed

src/openapi/services.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ export interface components {
163163
* @description Иконка кнопки
164164
*/
165165
icon: string;
166+
/**
167+
* Is Hidden
168+
* @description Спрятана ли кнопка от пользователя
169+
* @default false
170+
*/
171+
is_hidden: boolean;
166172
/**
167173
* Link
168174
* @description Ссылка, на которую перенаправляет кнопка
@@ -175,12 +181,12 @@ export interface components {
175181
name: string;
176182
/**
177183
* Optional Scopes
178-
* @description Каким скоупы желательны
184+
* @description Какиеп скоупы желательны
179185
*/
180186
optional_scopes?: string[] | null;
181187
/**
182188
* Required Scopes
183-
* @description Каким скоупы нужны, чтобы кнопка была доступна
189+
* @description Какие скоупы нужны, чтобы кнопка была доступна
184190
*/
185191
required_scopes?: string[] | null;
186192
/** @description Тип открываемой ссылки (Ссылка приложения/Браузер в приложении/Браузер */
@@ -244,6 +250,11 @@ export interface components {
244250
* @description Иконка кнопки
245251
*/
246252
icon?: string | null;
253+
/**
254+
* Is Hidden
255+
* @description Спрятана ли кнопка от пользователя
256+
*/
257+
is_hidden?: boolean | null;
247258
/**
248259
* Link
249260
* @description Ссылка, на которую перенаправляет кнопка
@@ -256,7 +267,7 @@ export interface components {
256267
name?: string | null;
257268
/**
258269
* Optional Scopes
259-
* @description Каким скоупы желательны
270+
* @description Какие скоупы желательны
260271
*/
261272
optional_scopes?: string[] | null;
262273
/**
@@ -266,7 +277,7 @@ export interface components {
266277
order?: number | null;
267278
/**
268279
* Required Scopes
269-
* @description Каким скоупы нужны, чтобы кнопка была доступна
280+
* @description Какие скоупы нужны, чтобы кнопка была доступна
270281
*/
271282
required_scopes?: string[] | null;
272283
/** @description Тип открываемой ссылки (Ссылка приложения/Браузер в приложении/Браузер */
@@ -276,7 +287,7 @@ export interface components {
276287
* ButtonView
277288
* @enum {string}
278289
*/
279-
ButtonView: "active" | "blocked";
290+
ButtonView: "active" | "blocked" | "hidden";
280291
/** CategoryCreate */
281292
CategoryCreate: {
282293
/**

src/openapi/timetable.ts

Lines changed: 7 additions & 248 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,9 @@ export interface paths {
211211
path?: never;
212212
cookie?: never;
213213
};
214-
/** Get All Lecturer Comments */
215-
get: operations["get_all_lecturer_comments_lecturer__lecturer_id__comment__get"];
214+
get?: never;
216215
put?: never;
217-
/** Comment Lecturer */
218-
post: operations["comment_lecturer_lecturer__lecturer_id__comment__post"];
216+
post?: never;
219217
delete?: never;
220218
options?: never;
221219
head?: never;
@@ -229,16 +227,13 @@ export interface paths {
229227
path?: never;
230228
cookie?: never;
231229
};
232-
/** Get Comment */
233-
get: operations["get_comment_lecturer__lecturer_id__comment__id__get"];
230+
get?: never;
234231
put?: never;
235232
post?: never;
236-
/** Delete Comment */
237-
delete: operations["delete_comment_lecturer__lecturer_id__comment__id__delete"];
233+
delete?: never;
238234
options?: never;
239235
head?: never;
240-
/** Update Comment Lecturer */
241-
patch: operations["update_comment_lecturer_lecturer__lecturer_id__comment__id__patch"];
236+
patch?: never;
242237
trace?: never;
243238
};
244239
"/timetable/lecturer/{lecturer_id}/comment/{id}/review/": {
@@ -250,8 +245,7 @@ export interface paths {
250245
};
251246
get?: never;
252247
put?: never;
253-
/** Review Comment */
254-
post: operations["review_comment_lecturer__lecturer_id__comment__id__review__post"];
248+
post?: never;
255249
delete?: never;
256250
options?: never;
257251
head?: never;
@@ -265,8 +259,7 @@ export interface paths {
265259
path?: never;
266260
cookie?: never;
267261
};
268-
/** Get Unreviewed Comments */
269-
get: operations["get_unreviewed_comments_lecturer__lecturer_id__comment_review__get"];
262+
get?: never;
270263
put?: never;
271264
post?: never;
272265
delete?: never;
@@ -1587,240 +1580,6 @@ export interface operations {
15871580
};
15881581
};
15891582
};
1590-
get_all_lecturer_comments_lecturer__lecturer_id__comment__get: {
1591-
parameters: {
1592-
query?: {
1593-
limit?: number;
1594-
offset?: number;
1595-
};
1596-
header?: never;
1597-
path: {
1598-
lecturer_id: number;
1599-
};
1600-
cookie?: never;
1601-
};
1602-
requestBody?: never;
1603-
responses: {
1604-
/** @description Successful Response */
1605-
200: {
1606-
headers: {
1607-
[name: string]: unknown;
1608-
};
1609-
content: {
1610-
"application/json": components["schemas"]["LecturerComments"];
1611-
};
1612-
};
1613-
/** @description Validation Error */
1614-
422: {
1615-
headers: {
1616-
[name: string]: unknown;
1617-
};
1618-
content: {
1619-
"application/json": components["schemas"]["HTTPValidationError"];
1620-
};
1621-
};
1622-
};
1623-
};
1624-
comment_lecturer_lecturer__lecturer_id__comment__post: {
1625-
parameters: {
1626-
query?: never;
1627-
header?: never;
1628-
path: {
1629-
lecturer_id: number;
1630-
};
1631-
cookie?: never;
1632-
};
1633-
requestBody: {
1634-
content: {
1635-
"application/json": components["schemas"]["LecturerCommentPost"];
1636-
};
1637-
};
1638-
responses: {
1639-
/** @description Successful Response */
1640-
200: {
1641-
headers: {
1642-
[name: string]: unknown;
1643-
};
1644-
content: {
1645-
"application/json": components["schemas"]["CommentLecturer"];
1646-
};
1647-
};
1648-
/** @description Validation Error */
1649-
422: {
1650-
headers: {
1651-
[name: string]: unknown;
1652-
};
1653-
content: {
1654-
"application/json": components["schemas"]["HTTPValidationError"];
1655-
};
1656-
};
1657-
};
1658-
};
1659-
get_comment_lecturer__lecturer_id__comment__id__get: {
1660-
parameters: {
1661-
query?: never;
1662-
header?: never;
1663-
path: {
1664-
id: number;
1665-
lecturer_id: number;
1666-
};
1667-
cookie?: never;
1668-
};
1669-
requestBody?: never;
1670-
responses: {
1671-
/** @description Successful Response */
1672-
200: {
1673-
headers: {
1674-
[name: string]: unknown;
1675-
};
1676-
content: {
1677-
"application/json": components["schemas"]["CommentLecturer"];
1678-
};
1679-
};
1680-
/** @description Validation Error */
1681-
422: {
1682-
headers: {
1683-
[name: string]: unknown;
1684-
};
1685-
content: {
1686-
"application/json": components["schemas"]["HTTPValidationError"];
1687-
};
1688-
};
1689-
};
1690-
};
1691-
delete_comment_lecturer__lecturer_id__comment__id__delete: {
1692-
parameters: {
1693-
query?: never;
1694-
header?: never;
1695-
path: {
1696-
id: number;
1697-
lecturer_id: number;
1698-
};
1699-
cookie?: never;
1700-
};
1701-
requestBody?: never;
1702-
responses: {
1703-
/** @description Successful Response */
1704-
200: {
1705-
headers: {
1706-
[name: string]: unknown;
1707-
};
1708-
content: {
1709-
"application/json": unknown;
1710-
};
1711-
};
1712-
/** @description Validation Error */
1713-
422: {
1714-
headers: {
1715-
[name: string]: unknown;
1716-
};
1717-
content: {
1718-
"application/json": components["schemas"]["HTTPValidationError"];
1719-
};
1720-
};
1721-
};
1722-
};
1723-
update_comment_lecturer_lecturer__lecturer_id__comment__id__patch: {
1724-
parameters: {
1725-
query?: never;
1726-
header?: never;
1727-
path: {
1728-
id: number;
1729-
lecturer_id: number;
1730-
};
1731-
cookie?: never;
1732-
};
1733-
requestBody: {
1734-
content: {
1735-
"application/json": components["schemas"]["LecturerCommentPatch"];
1736-
};
1737-
};
1738-
responses: {
1739-
/** @description Successful Response */
1740-
200: {
1741-
headers: {
1742-
[name: string]: unknown;
1743-
};
1744-
content: {
1745-
"application/json": components["schemas"]["CommentLecturer"];
1746-
};
1747-
};
1748-
/** @description Validation Error */
1749-
422: {
1750-
headers: {
1751-
[name: string]: unknown;
1752-
};
1753-
content: {
1754-
"application/json": components["schemas"]["HTTPValidationError"];
1755-
};
1756-
};
1757-
};
1758-
};
1759-
review_comment_lecturer__lecturer_id__comment__id__review__post: {
1760-
parameters: {
1761-
query?: {
1762-
action?: "Approved" | "Declined";
1763-
};
1764-
header?: never;
1765-
path: {
1766-
id: number;
1767-
lecturer_id: number;
1768-
};
1769-
cookie?: never;
1770-
};
1771-
requestBody?: never;
1772-
responses: {
1773-
/** @description Successful Response */
1774-
200: {
1775-
headers: {
1776-
[name: string]: unknown;
1777-
};
1778-
content: {
1779-
"application/json": components["schemas"]["CommentLecturer"];
1780-
};
1781-
};
1782-
/** @description Validation Error */
1783-
422: {
1784-
headers: {
1785-
[name: string]: unknown;
1786-
};
1787-
content: {
1788-
"application/json": components["schemas"]["HTTPValidationError"];
1789-
};
1790-
};
1791-
};
1792-
};
1793-
get_unreviewed_comments_lecturer__lecturer_id__comment_review__get: {
1794-
parameters: {
1795-
query?: never;
1796-
header?: never;
1797-
path: {
1798-
lecturer_id: number;
1799-
};
1800-
cookie?: never;
1801-
};
1802-
requestBody?: never;
1803-
responses: {
1804-
/** @description Successful Response */
1805-
200: {
1806-
headers: {
1807-
[name: string]: unknown;
1808-
};
1809-
content: {
1810-
"application/json": components["schemas"]["CommentLecturer"][];
1811-
};
1812-
};
1813-
/** @description Validation Error */
1814-
422: {
1815-
headers: {
1816-
[name: string]: unknown;
1817-
};
1818-
content: {
1819-
"application/json": components["schemas"]["HTTPValidationError"];
1820-
};
1821-
};
1822-
};
1823-
};
18241583
get_lecturer_photos_lecturer__lecturer_id__photo_get: {
18251584
parameters: {
18261585
query?: {

0 commit comments

Comments
 (0)