* Fix app metas * Optimize categories on app store * Remove commented code * Remove console log * Update apps/web/pages/apps/index.tsx Co-authored-by: Omar López <zomars@me.com> * Add categories to missing app metadata * Fix type error * Type fix * Type fixes * More type fixes * Clean up * Fix build error * No leaky please * Remove comment Co-authored-by: Omar López <zomars@me.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Bailey Pumfleet <bailey@pumfleet.co.uk>
25 lines
671 B
TypeScript
25 lines
671 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;
|
|
invalid: true;
|
|
};
|
|
}>;
|
|
|
|
export type CredentialFrontendPayload = Omit<CredentialPayload, "key"> & {
|
|
/** We should type error if keys are leaked to the frontend */
|
|
key?: never;
|
|
};
|
|
|
|
export type CredentialWithAppName = CredentialPayload & { appName: string };
|