-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
chore: enum support for new API #7110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've converted all imports and endpoints to use the new enum types. The only things left are a few apis that use progress events and blob responses.
@@ -29,7 +28,8 @@ | |||
JobName.Migration, | |||
]; | |||
|
|||
function isSystemConfigJobDto(jobName: JobName): jobName is keyof SystemConfigJobDto { | |||
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not much of a Typescript expert. Could this be unkown
to avoid the any
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your changes look good to me! thanks for finishing this up!! |
@jrasm91 has been doing a great job migrating the API over. One of the TODOs from #7103 was enums. I got that setup and working in this PR. I only migrated a single enum as a demonstration to avoid creating merge conflicts with his outstanding PR
Looks like this is causing a bunch of type errors, so there are a bunch of places we'll need to update imports from
@api
to@immich/sdk
. It's probably best to wait for #7103 before doing that. Feel free to take this over as I have a busy day tomorrow or else I'll get back to it later in the week