Skip to content

Commit

Permalink
change add error definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 19, 2024
1 parent ca69bd2 commit c04e581
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/models/components/steptypeenum.md
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"
```
44 changes: 44 additions & 0 deletions src/models/components/steptypeenum.ts
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;
}

0 comments on commit c04e581

Please sign in to comment.