* Fixing types from handleErrorJson usage and Credential * Replace credential prisma type for a better suitable * Improvements on zoom video adapter * Renamed extendedCredentialType and put it in a best suited file * Frontend display invalid credential * Fix styles and text * Fix type required for fake daily credentials
19 lines
493 B
TypeScript
19 lines
493 B
TypeScript
import { Prisma } from ".prisma/client";
|
|
|
|
/*
|
|
* The logic on this it's just using Credential Type doesn't reflect that some fields can be
|
|
* null sometimes, so with this we should get correct type.
|
|
* Also there may be a better place to save this.
|
|
*/
|
|
export type CredentialPayload = Prisma.CredentialGetPayload<{
|
|
select: {
|
|
id: true;
|
|
appId: true;
|
|
type: true;
|
|
userId: true;
|
|
key: true;
|
|
};
|
|
}>;
|
|
|
|
export type CredentialWithAppName = CredentialPayload & { appName: string };
|