Skip to content

Commit

Permalink
fix: user query parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mufti Azan Farooqi committed Oct 25, 2023
1 parent c08ca8b commit d9cb719
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 89 deletions.
176 changes: 88 additions & 88 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/services/user.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export type UserUpdateRequest = Omit<UserCreateRequest, "password">;
export type UserType = "admin" | "user";

/** Supported query parameters for listing users */
export type UserListQueryParameters = {
type _UserListQueryParameters = {
/** Matches role that is equal to the specified value. */
"role[eq]": string;

Expand Down Expand Up @@ -280,6 +280,7 @@ export type UserListQueryParameters = {
/** Matches last seen date that is less than or equal to the specified value. */
"lastSeenAt[lte]": string;
};
export type UserListQueryParameters = Partial<_UserListQueryParameters>;

/** Request format for user password update */
export interface UserPasswordUpdateRequest {
Expand Down

0 comments on commit d9cb719

Please sign in to comment.