mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
fix types
This commit is contained in:
@@ -247,10 +247,7 @@ export type SmtpSelection =
|
|||||||
* Zod schema for persisting SMTP selection in a store file model.
|
* Zod schema for persisting SMTP selection in a store file model.
|
||||||
* Use this instead of `smtpInputSpec.validator` to avoid cross-zod-instance issues.
|
* Use this instead of `smtpInputSpec.validator` to avoid cross-zod-instance issues.
|
||||||
*/
|
*/
|
||||||
export const smtpShape: {
|
export const smtpShape: z.ZodType<SmtpSelection> = z
|
||||||
parse(data: unknown): SmtpSelection
|
|
||||||
_output: SmtpSelection
|
|
||||||
} = z
|
|
||||||
.discriminatedUnion('selection', [
|
.discriminatedUnion('selection', [
|
||||||
z.object({
|
z.object({
|
||||||
selection: z.literal('disabled'),
|
selection: z.literal('disabled'),
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import * as patterns from '../../base/lib/util/patterns'
|
|||||||
import { Backups } from './backup/Backups'
|
import { Backups } from './backup/Backups'
|
||||||
import {
|
import {
|
||||||
smtpInputSpec,
|
smtpInputSpec,
|
||||||
smtpShape,
|
|
||||||
systemSmtpSpec,
|
systemSmtpSpec,
|
||||||
customSmtp,
|
customSmtp,
|
||||||
smtpProviderVariants,
|
smtpProviderVariants,
|
||||||
@@ -409,7 +408,6 @@ export class StartSdk<Manifest extends T.SDKManifest> {
|
|||||||
},
|
},
|
||||||
inputSpecConstants: {
|
inputSpecConstants: {
|
||||||
smtpInputSpec,
|
smtpInputSpec,
|
||||||
smtpShape,
|
|
||||||
systemSmtpSpec,
|
systemSmtpSpec,
|
||||||
customSmtp,
|
customSmtp,
|
||||||
smtpProviderVariants,
|
smtpProviderVariants,
|
||||||
|
|||||||
@@ -30,6 +30,10 @@ export { SubContainer } from './util/SubContainer'
|
|||||||
export { StartSdk } from './StartSdk'
|
export { StartSdk } from './StartSdk'
|
||||||
export { setupManifest, buildManifest } from './manifest/setupManifest'
|
export { setupManifest, buildManifest } from './manifest/setupManifest'
|
||||||
export { FileHelper } from './util/fileHelper'
|
export { FileHelper } from './util/fileHelper'
|
||||||
|
export {
|
||||||
|
smtpShape,
|
||||||
|
type SmtpSelection,
|
||||||
|
} from '../../base/lib/actions/input/inputSpecConstants'
|
||||||
|
|
||||||
export * as actions from '../../base/lib/actions'
|
export * as actions from '../../base/lib/actions'
|
||||||
export * as backup from './backup'
|
export * as backup from './backup'
|
||||||
|
|||||||
Reference in New Issue
Block a user