prettier
This commit is contained in:
1 parent
39ae2aed37
commit
1de7bc4146
126 files changed
+1240
-992
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { User, ApiKey } from "@calcom/prisma/client";
|
||||
|
||||
// Base response, used for all responses
|
||||
export type BaseResponse = {
|
||||
message?: string;
|
||||
error?: Error;
|
||||
};
|
||||
// User
|
||||
export type UserResponse = BaseResponse & {
|
||||
data?: Partial<User>;
|
||||
};
|
||||
export type UsersResponse = BaseResponse & {
|
||||
data?: Partial<User>[];
|
||||
};
|
||||
|
||||
// API Key
|
||||
export type ApiKeyResponse = BaseResponse & {
|
||||
data?: Partial<ApiKey>;
|
||||
};
|
||||
export type ApiKeysResponse = BaseResponse & {
|
||||
data?: Partial<ApiKey>[];
|
||||
};
|
||||
Reference in new issue
Block a user