Improve Self host setup (#30)

* Add self host setup

* Improve blunders

* Move to bull mq

* More changes

* Add example code for sending test emails
This commit is contained in:
KM Koushik
2024-06-24 08:21:37 +10:00
committed by GitHub
parent 8a2769621c
commit f77a8829be
67 changed files with 1771 additions and 688 deletions

View File

@@ -9,7 +9,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint . --max-warnings 0",
"build": "rm -rf dist && tsup index.ts --format esm,cjs --dts",
"publish-sdk": "pnpm run build && pnpm publish"
"publish-sdk": "pnpm run build && pnpm publish",
"openapi-typegen": "openapi-typescript ../../apps/docs/api-reference/openapi.json -o types/schema.d.ts"
},
"keywords": [],
"author": "",

View File

@@ -60,7 +60,10 @@ export interface paths {
"application/json": {
id: string;
teamId: number;
to: string;
to: string | string[];
replyTo?: string | string[];
cc?: string | string[];
bcc?: string | string[];
from: string;
subject: string;
html: string | null;
@@ -85,12 +88,13 @@ export interface paths {
requestBody: {
content: {
"application/json": {
/** Format: email */
to: string;
to: string | string[];
/** Format: email */
from: string;
subject: string;
replyTo?: string;
replyTo?: string | string[];
cc?: string | string[];
bcc?: string | string[];
text?: string;
html?: string;
attachments?: {

View File

@@ -11,13 +11,16 @@ import { ClipboardCopy, Check } from "lucide-react";
import { useState } from "react";
import { cn } from "../lib/utils";
type Language = "js" | "ruby" | "php" | "python" | "curl";
export type Language = "js" | "ruby" | "php" | "python" | "curl";
export type CodeBlock = {
language: Language;
title?: string;
code: string;
};
type CodeProps = {
codeBlocks: {
language: Language;
code: string;
}[];
codeBlocks: CodeBlock[];
codeClassName?: string;
};
@@ -57,7 +60,7 @@ export const Code: React.FC<CodeProps> = ({ codeBlocks, codeClassName }) => {
value={block.language}
className="data-[state=active]:bg-accent py-0.5 px-4 "
>
{block.language}
{block.title || block.language}
</TabsTrigger>
))}
</div>