prasenjeet-symon / intellectia

Intellectia - Your Guardian Against Misleading AI-Generated Content
MIT License
15 stars 45 forks source link

Addition of response interface #223

Closed Krriishhhhhh closed 9 months ago

Krriishhhhhh commented 10 months ago

Draft PR: #213

All the responses from the API endpoints present in packages/server/src/api and packages/server/src/api_auth are integrated with response interfaces which are present in lib\types\src\api-response.ts.

Krriishhhhhh commented 10 months ago

There are some payloads whose types i coudn't find, can u help me with that @prasenjeet-symon

prasenjeet-symon commented 10 months ago

There are some payloads whose types i coudn't find, can u help me with that @prasenjeet-symon

Is that API endpoint fully implemented?

Krriishhhhhh commented 10 months ago

Yes , except the type of some payloads everthing else is integrated

prasenjeet-symon commented 10 months ago

Yes , except the type of some payloads everthing else is integrated

If that API is not documented in POSTMAN then you can leave that, we have to document the remaining API

Krriishhhhhh commented 10 months ago

They are documented , but i don't know how to get their types as they are some complex nested arrays .... i was using using VS Code hint feature until now to get types but it doesn't work with complex ones

prasenjeet-symon commented 10 months ago

They are documented , but i don't know how to get their types as they are some complex nested arrays .... i was using using VS Code hint feature until now to get types but it doesn't work with complex ones

Ok i see .

prasenjeet-symon commented 10 months ago

@Krriishhhhhh Give me some time to review, there is too much code change.

Krriishhhhhh commented 10 months ago

Yes sure, tell me if anything needs to be changed