Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions 6 .changeset/nine-planets-raise.md

This file was deleted.

5 changes: 0 additions & 5 deletions 5 .changeset/quick-hairs-punch.md

This file was deleted.

Binary file modified BIN -20.3 KB (81%) apps/docs/images/webhook-url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions 4 apps/docs/triggers/scheduled.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Run a workflow on a recurring schedule"
This job will run every 5 minutes, starting 5 minutes after this code is first run on your server (that includes running locally).

```ts
import { Trigger, schedule } from "@trigger.dev/sdk";
import { Trigger, scheduleEvent } from "@trigger.dev/sdk";

new Trigger({
id: "scheduled-workflow",
Expand All @@ -34,7 +34,7 @@ new Trigger({
This job will run at 2:30pm every Monday. You can get help with [CRON syntax](https://crontab.guru/).

```ts
import { Trigger, schedule } from "@trigger.dev/sdk";
import { Trigger, scheduleEvent } from "@trigger.dev/sdk";

new Trigger({
id: "cron-scheduled-workflow",
Expand Down
Binary file modified BIN +70 Bytes (100%) apps/webapp/app/assets/images/triggers/event-bridge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified BIN +44 Bytes (100%) apps/webapp/app/assets/images/triggers/http-endpoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified BIN +11 Bytes (100%) apps/webapp/app/assets/images/triggers/http-polling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified BIN +9 Bytes (100%) apps/webapp/app/assets/images/triggers/schedule.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions 6 apps/webapp/app/components/CopyTextButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CopyText } from "./CopyText";
const variantStyle = {
slate:
"bg-slate-800 text-white rounded px-2 py-1 transition hover:text-slate-700 hover:bg-slate-700 hover:bg-slate-700 hover:text-slate-100 active:bg-slate-800 active:text-slate-300 focus-visible:outline-slate-900",
blue: "bg-indigo-600 rounded px-2 py-1 transition text-white hover:bg-indigo-500 active:bg-indigo-800 active:text-indigo-100 focus-visible:outline-indigo-600",
blue: "text-sm bg-indigo-700 rounded px-3 py-2 transition text-white hover:bg-indigo-600 active:bg-indigo-800 active:text-indigo-100 focus-visible:outline-indigo-600",
darkTransparent:
"bg-black/10 text-slate-900 rounded px-2 py-1 transition hover:bg-blue-50 active:bg-blue-200 active:text-slate-600 focus-visible:outline-white",
lightTransparent:
Expand Down Expand Up @@ -37,7 +37,7 @@ export function CopyTextButton({
{copied ? (
<div
className={classNames(
"flex items-center hover:cursor-pointer",
"flex items-center hover:cursor-pointer",
variantStyle[variant]
)}
>
Expand All @@ -46,7 +46,7 @@ export function CopyTextButton({
) : (
<div
className={classNames(
"flex items-center hover:cursor-pointer",
"flex items-center hover:cursor-pointer",
variantStyle[variant]
)}
>
Expand Down
7 changes: 2 additions & 5 deletions 7 apps/webapp/app/components/triggers/TriggerIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ApiLogoIcon } from "../code/ApiLogoIcon";
import CustomEvent from "../../assets/images/triggers/custom-event.png";
import HttpEndpoint from "../../assets/images/triggers/http-endpoint.png";
import Schedule from "../../assets/images/triggers/schedule.png";
import Webhook from "../../assets/images/triggers/webhook.png";
import { triggerLabel } from "./triggerLabel";

type TriggerType = Workflow["type"];
Expand Down Expand Up @@ -49,11 +50,7 @@ export function TriggerTypeIcon({
);
case "WEBHOOK":
return (
<img
src={CustomEvent}
alt={triggerLabel(type)}
className={iconClasses}
/>
<img src={Webhook} alt={triggerLabel(type)} className={iconClasses} />
);
default:
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,50 +93,45 @@ export default function Page() {
eventRule.trigger.type === "WEBHOOK" &&
eventRule.trigger.manualRegistration &&
workflow.externalSourceUrl ? (
<PanelInfo className="mb-6">
<PanelInfo className="mb-6 pb-4">
<div className="flex flex-col">
<Body className="mb-6">
<Body className="mb-4">
Use these details to register your webhook – this usually
involves logging in to the developer section of the service.
</Body>
<div className="flex gap-8">
<div className="flex items-center gap-2">
<div className="flex flex-col gap-2">
<Body
size="extra-small"
className="text-slate-300 uppercase tracking-wide"
>
URL
</Body>
<div className="flex items-center gap-2">
<Input value={workflow.externalSourceUrl} />
<CopyTextButton
value={workflow.externalSourceUrl}
></CopyTextButton>
</div>
</div>
<div className="flex flex-col gap-2">
<Body
size="extra-small"
className="text-slate-300 uppercase tracking-wide"
>
URL
</Body>
<div className="flex items-center gap-2 mb-4">
<Input value={workflow.externalSourceUrl} />
<CopyTextButton
value={workflow.externalSourceUrl}
></CopyTextButton>
</div>
{workflow.externalSourceSecret && (
<div className="flex flex-col">
<Body
size="extra-small"
className="text-slate-300 uppercase tracking-wide"
>
Secret
</Body>
<div className="flex items-center gap-2">
<Input
type="password"
value={workflow.externalSourceSecret}
className="mt-2"
/>
<CopyTextButton
value={workflow.externalSourceSecret}
></CopyTextButton>
</div>
</div>
)}
</div>
{workflow.externalSourceSecret && (
<div className="flex flex-col gap-2">
<Body
size="extra-small"
className="text-slate-300 uppercase tracking-wide"
>
Secret
</Body>
<div className="flex items-center gap-2">
<Input
type="password"
value={workflow.externalSourceSecret}
/>
<CopyTextButton
value={workflow.externalSourceSecret}
></CopyTextButton>
</div>
</div>
)}
</div>
</PanelInfo>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class RegisterExternalSource {
externalSource.secret ?? crypto.randomBytes(32).toString("hex");

const webhookUrl = buildExternalSourceUrl(
externalSource,
externalSource.id,
connection.apiIdentifier
);

Expand Down
Binary file removed BIN -5.93 KB apps/webapp/public/integrations/Webhook.png
Binary file not shown.
18 changes: 18 additions & 0 deletions 18 packages/trigger-integrations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @trigger.dev/integrations

## 0.1.12

### Patch Changes

- 039321f: Improved types for the Resend integration
- Updated dependencies [039321f]
- @trigger.dev/providers@0.1.7
- @trigger.dev/sdk@0.2.9

## 0.1.11

### Patch Changes

- ddf4255: Added support for webhookEvent trigger
- Updated dependencies [ddf4255]
- Updated dependencies [2fd9e4f]
- @trigger.dev/sdk@0.2.8

## 0.1.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 2 packages/trigger-integrations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/integrations",
"version": "0.1.10",
"version": "0.1.12",
"description": "trigger.dev integrations",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions 6 packages/trigger-providers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @trigger.dev/providers

## 0.1.7

### Patch Changes

- 039321f: Improved types for the Resend integration

## 0.1.6

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion 3 packages/trigger-providers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/providers",
"version": "0.1.6",
"version": "0.1.7",
"description": "trigger.dev API providers with schemas",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -20,6 +20,7 @@
"devDependencies": {
"@trigger.dev/tsconfig": "workspace:*",
"@types/node": "16",
"@types/react": "^18.0.26",
"rimraf": "^3.0.2",
"tsup": "^6.5.0",
"typescript": "^4.9.4"
Expand Down
9 changes: 3 additions & 6 deletions 9 packages/trigger-providers/src/providers/resend/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { ReactElement } from "react";
import { z } from "zod";

const SimplifiedReactElementSchema = z.object({
type: z.any(),
props: z.any(),
key: z.union([z.string(), z.number()]).nullable(),
});
const ReactElementSchema = z.custom<ReactElement>();

export const BaseSendFieldsSchema = z.object({
from: z.string(),
Expand All @@ -19,7 +16,7 @@ export const SendEmailOptionsSchema = z
.object({
text: z.string().optional(),
html: z.string().optional(),
react: SimplifiedReactElementSchema.optional(),
react: ReactElementSchema.optional(),
})
.and(BaseSendFieldsSchema);

Expand Down
11 changes: 10 additions & 1 deletion 11 packages/trigger-providers/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ export default defineConfig([
bundle: true,
splitting: false,
dts: true,
external: ["http", "https", "util", "events", "tty", "os", "timers"],
external: [
"http",
"https",
"util",
"events",
"tty",
"os",
"timers",
"react",
],
esbuildPlugins: [],
},
]);
13 changes: 13 additions & 0 deletions 13 packages/trigger-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @trigger.dev/sdk

## 0.2.9

### Patch Changes

- 039321f: Improved types for the Resend integration

## 0.2.8

### Patch Changes

- ddf4255: Added support for webhookEvent trigger
- 2fd9e4f: Added retry options to fetch

## 0.2.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 2 packages/trigger-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/sdk",
"version": "0.2.7",
"version": "0.2.9",
"description": "trigger.dev Node.JS SDK",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions 2 pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.