Skip to content

Commit d9cb719

Browse files
author
Mufti Azan Farooqi
committed
fix: user query parameter types
1 parent c08ca8b commit d9cb719

File tree

2 files changed

+90
-89
lines changed

2 files changed

+90
-89
lines changed

Diff for: package-lock.json

+88-88
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/services/user.types.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export type UserUpdateRequest = Omit<UserCreateRequest, "password">;
6565
export type UserType = "admin" | "user";
6666

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

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

284285
/** Request format for user password update */
285286
export interface UserPasswordUpdateRequest {

0 commit comments

Comments
 (0)