Feature/invalid credentials (#5120)
* 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
This commit is contained in:
1 parent
03fd546e99
commit
ac9b2d0577
31 files changed
+334
-189
No files matched your search
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
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 };
|
||||
Vendored
+2
-3
@@ -1,6 +1,5 @@
|
||||
import type { Credential } from "@prisma/client";
|
||||
|
||||
import type { EventBusyDate } from "./Calendar";
|
||||
import { CredentialPayload } from "./Credential";
|
||||
|
||||
export interface VideoCallData {
|
||||
type: string;
|
||||
@@ -22,4 +21,4 @@ export type VideoApiAdapter =
|
||||
}
|
||||
| undefined;
|
||||
|
||||
export type VideoApiAdapterFactory = (credential: Credential) => VideoApiAdapter;
|
||||
export type VideoApiAdapterFactory = (credential: CredentialPayload) => VideoApiAdapter;
|
||||
Reference in new issue
Block a user