mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-01 21:13:11 +00:00
feat: Add effect of smtp & withWrapperData
This commit is contained in:
13
lib/types.ts
13
lib/types.ts
@@ -133,6 +133,15 @@ export type Daemon = {
|
||||
|
||||
export type HealthStatus = "passing" | "warning" | "failing" | "disabled"
|
||||
|
||||
export type SmtpValue = {
|
||||
server: string
|
||||
port: number
|
||||
from: string
|
||||
login: string
|
||||
password: string | null | undefined
|
||||
tls: boolean
|
||||
}
|
||||
|
||||
export type CommandType<A extends string> =
|
||||
| ValidIfNoStupidEscape<A>
|
||||
| [string, ...string[]]
|
||||
@@ -308,6 +317,10 @@ export type Effects = {
|
||||
callback: (config: unknown, previousConfig: unknown) => void
|
||||
}): Promise<ExtractWrapperData<WrapperData, Path>>
|
||||
|
||||
getSystemSmtp(input: {
|
||||
callback: (config: unknown, previousConfig: unknown) => void
|
||||
}): Promise<SmtpValue>
|
||||
|
||||
/** Used to store values that can be accessed and subscribed to */
|
||||
setWrapperData<WrapperData = never, Path extends string = never>(options: {
|
||||
/** Sets the value for the wrapper at the path, it will override, using the [JsonPath](https://jsonpath.com/) */
|
||||
|
||||
Reference in New Issue
Block a user