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:
@@ -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": "",
|
||||
|
12
packages/sdk/types/schema.d.ts
vendored
12
packages/sdk/types/schema.d.ts
vendored
@@ -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?: {
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user