-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# StepTypeEnum | ||
|
||
Channels of the notification | ||
|
||
## Example Usage | ||
|
||
```typescript | ||
import { StepTypeEnum } from "@novu/api/models/components"; | ||
|
||
let value: StepTypeEnum = "custom"; | ||
``` | ||
|
||
## Values | ||
|
||
```typescript | ||
"in_app" | "email" | "sms" | "chat" | "push" | "digest" | "trigger" | "delay" | "custom" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. | ||
*/ | ||
|
||
import * as z from "zod"; | ||
import { ClosedEnum } from "../../types/enums.js"; | ||
|
||
/** | ||
* Channels of the notification | ||
*/ | ||
export const StepTypeEnum = { | ||
InApp: "in_app", | ||
Email: "email", | ||
Sms: "sms", | ||
Chat: "chat", | ||
Push: "push", | ||
Digest: "digest", | ||
Trigger: "trigger", | ||
Delay: "delay", | ||
Custom: "custom", | ||
} as const; | ||
/** | ||
* Channels of the notification | ||
*/ | ||
export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>; | ||
|
||
/** @internal */ | ||
export const StepTypeEnum$inboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> = | ||
z.nativeEnum(StepTypeEnum); | ||
|
||
/** @internal */ | ||
export const StepTypeEnum$outboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> = | ||
StepTypeEnum$inboundSchema; | ||
|
||
/** | ||
* @internal | ||
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. | ||
*/ | ||
export namespace StepTypeEnum$ { | ||
/** @deprecated use `StepTypeEnum$inboundSchema` instead. */ | ||
export const inboundSchema = StepTypeEnum$inboundSchema; | ||
/** @deprecated use `StepTypeEnum$outboundSchema` instead. */ | ||
export const outboundSchema = StepTypeEnum$outboundSchema; | ||
} |