Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial conversion of frontend-core API client to TS #15096

Draft
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

aptkingston
Copy link
Member

@aptkingston aptkingston commented Nov 29, 2024

Description

This PR contains the initial conversion of the core API client and some endpoints to TS. Endpoints are still being converted, but this PR will complete all required tooling changes to full support TS in frontend core and dependent packages.

As well as the core API client, this PR converts the following client endpoints to TS:

  • AI
  • Analytics
  • App
  • Attachments
  • Audit logs
  • Auth
  • Automations
  • Backups
  • Config
  • Datasource
  • Environment variables
  • Events
  • Flags
  • Groups
  • Layouts
  • Licensing
  • Logs
  • Migrations
  • Other
  • Permissions
  • Plugins
  • Queries
  • Relationships
  • Roles
  • Routes
  • Row actions
  • Rows
  • Screens
  • Self
  • Tables
  • Templates

Along with the TS conversion, certain endpoints have had their arguments flattened and the calling code updated accordingly. Most endpoints have types for the server response, but a certain number do not. These are easily identifiable in any given file as I've split them up into their own section, and they remain typed as any.

My usage of type vs interface is pretty much arbitrary so I welcome any recommendations or changes to that, as well as the location of types.

Copy link

qa-wolf bot commented Nov 29, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant