Skip to content

Commit

Permalink
Update to resolve missing endpoint added in previous PR
Browse files Browse the repository at this point in the history
Signed-off-by: Aindriu Lavelle <aindriu.lavelle@aiven.io>
  • Loading branch information
aindriu-aiven committed Jul 27, 2023
1 parent 05c51c5 commit ea62dd3
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 41 deletions.
1 change: 1 addition & 0 deletions coral/src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ const API_PATHS = {
getAclRequests: "/getAclRequests",
getAclRequestsForApprover: "/getAclRequestsForApprover",
getAclCommand: "/getAclCommands",
getTopicRequest: "/getTopicRequests",
} satisfies {
[key in keyof Omit<
ApiOperations,
Expand Down
106 changes: 67 additions & 39 deletions coral/types/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export type paths = {
"/user/{userId}/switchTeamsList": {
get: operations["getSwitchTeams"];
};
"/topic/request/{topicReqId}": {
get: operations["getTopicRequest"];
};
"/testClusterApiConnection": {
get: operations["testClusterApiConnection"];
};
Expand Down Expand Up @@ -497,6 +500,8 @@ export type components = {
appname?: string;
remarks?: string;
requestor?: string;
/** Format: int32 */
requestId?: number;
topicname: string;
schemafull: string;
schemaversion?: string;
Expand Down Expand Up @@ -538,6 +543,8 @@ export type components = {
appname?: string;
remarks?: string;
requestor?: string;
/** Format: int32 */
requestId?: number;
topicname: string;
/** Format: int32 */
topicpartitions: number;
Expand Down Expand Up @@ -738,6 +745,8 @@ export type components = {
appname?: string;
remarks?: string;
requestor?: string;
/** Format: int32 */
requestId?: number;
topicname: string;
/** Format: int32 */
topicpartitions: number;
Expand Down Expand Up @@ -765,6 +774,8 @@ export type components = {
appname?: string;
remarks?: string;
requestor?: string;
/** Format: int32 */
requestId?: number;
connectorName: string;
connectorConfig: string;
description: string;
Expand All @@ -787,6 +798,8 @@ export type components = {
appname?: string;
remarks?: string;
requestor?: string;
/** Format: int32 */
requestId?: number;
topicname: string;
consumergroup?: string;
acl_ip?: (string)[];
Expand Down Expand Up @@ -886,6 +899,45 @@ export type components = {
teammail?: string;
envList?: (string)[];
};
TopicRequestsResponseModel: {
environment: string;
environmentName: string;
requestor: string;
/** Format: int32 */
teamId: number;
teamname: string;
/** @enum {string} */
requestOperationType: "CREATE" | "UPDATE" | "PROMOTE" | "CLAIM" | "DELETE";
/** @enum {string} */
requestStatus: "CREATED" | "DELETED" | "DECLINED" | "APPROVED" | "ALL";
/** Format: date-time */
requesttime: string;
requesttimestring: string;
currentPage: string;
totalNoPages: string;
allPageNos: (string)[];
approvingTeamDetails: string;
approver?: string;
/** Format: date-time */
approvingtime?: string;
remarks?: string;
appname?: string;
otherParams?: string;
topicname: string;
/** Format: int32 */
topicpartitions: number;
replicationfactor: string;
description: string;
/** Format: int32 */
topicid: number;
deleteAssociatedSchema: boolean;
advancedTopicConfigEntries: (components["schemas"]["TopicConfigEntry"])[];
approvingTeamId?: string;
sequence?: string;
possibleTeams?: (string)[];
deletable?: boolean;
editable?: boolean;
};
ConnectivityStatus: {
clusterType?: string;
connectionStatus?: string;
Expand Down Expand Up @@ -986,45 +1038,6 @@ export type components = {
error?: string;
status: boolean;
};
TopicRequestsResponseModel: {
environment: string;
environmentName: string;
requestor: string;
/** Format: int32 */
teamId: number;
teamname: string;
/** @enum {string} */
requestOperationType: "CREATE" | "UPDATE" | "PROMOTE" | "CLAIM" | "DELETE";
/** @enum {string} */
requestStatus: "CREATED" | "DELETED" | "DECLINED" | "APPROVED" | "ALL";
/** Format: date-time */
requesttime: string;
requesttimestring: string;
currentPage: string;
totalNoPages: string;
allPageNos: (string)[];
approvingTeamDetails: string;
approver?: string;
/** Format: date-time */
approvingtime?: string;
remarks?: string;
appname?: string;
otherParams?: string;
topicname: string;
/** Format: int32 */
topicpartitions: number;
replicationfactor: string;
description: string;
/** Format: int32 */
topicid: number;
deleteAssociatedSchema: boolean;
advancedTopicConfigEntries: (components["schemas"]["TopicConfigEntry"])[];
approvingTeamId?: string;
sequence?: string;
possibleTeams?: (string)[];
deletable?: boolean;
editable?: boolean;
};
AclOverviewInfo: {
req_no: string;
aclPatternType: string;
Expand Down Expand Up @@ -2748,6 +2761,21 @@ export type operations = {
};
};
};
getTopicRequest: {
parameters: {
path: {
topicReqId: number;
};
};
responses: {
/** @description OK */
200: {
content: {
"application/json": components["schemas"]["TopicRequestsResponseModel"];
};
};
};
};
testClusterApiConnection: {
parameters: {
query: {
Expand Down
3 changes: 1 addition & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"name" : "Apache 2.0",
"url" : "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version" : "2.5.0"
"version" : "2.4.0"
},
"externalDocs" : {
"description" : "Klaw documentation",
Expand Down Expand Up @@ -50,7 +50,6 @@
}
},
"/user/updateTeam" : {

"post" : {
"tags" : [ "users-teams-controller" ],
"operationId" : "updateUserTeamFromSwitchTeams",
Expand Down

0 comments on commit ea62dd3

Please sign in to comment.