* add tenant config table * add encryption/decryption + env vars * generate secret and validate iv position is number * expect errors * remove TWILIO env vars * settings page impl * update schema definitions after Mostaphas Tenant impl * load user env * just return empty config * add Settings menu item * check if settings are present and provide warning if not * correct form item names * use correct locals value * ree * give twilio its own table * lock prisma version * event url is the correct param * load twilio config from db * commit migration * use test script not bun command
24 lines
451 B
TypeScript
24 lines
451 B
TypeScript
// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
|
|
import type { Tenant, User } from '@prisma/client';
|
|
|
|
// for information about these interfaces
|
|
declare global {
|
|
namespace App {
|
|
// interface Error {}
|
|
interface Locals {
|
|
auth: {
|
|
userId?: string;
|
|
orgId?: string | null;
|
|
sessionId?: string;
|
|
};
|
|
user: User;
|
|
tenant: Tenant;
|
|
}
|
|
// interface PageData {}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {};
|