Compare commits

...

1992 Commits

Author SHA1 Message Date
Matt Aitken 5dec3ed4e6 Latest lockfile 2023-08-16 15:56:30 +01:00
github-actions[bot] 955961eb5f chore: Update version for release (#329)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-16 15:53:53 +01:00
Matt Aitken 33184a8130 Add subtasks to the schema/types when getting an individual run (#343)
* Add subtasks to the schema/types when getting an individual run

* Added a changeset
2023-08-16 15:49:08 +01:00
Eric Allam 5611768854 Improve the job reference 2023-08-15 10:20:30 +01:00
Eric Allam d0e6442872 Add additional sendEvent exampels 2023-08-14 22:04:40 +01:00
Matt Aitken 1e374d30d0 Latest lockfile… 2023-08-14 16:54:40 +01:00
Matt Aitken 9f649d2a27 Lock prisma to 5.1.1 2023-08-14 16:52:30 +01:00
Chigala 0a20b6e05a chore: updated prisma from version 4.16.0 to 5.1.0 (#254)
* chore: update prisma from version 4.16.0 to 5.1.0

* fixed the ts-errors due to the prisma update

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2023-08-14 16:36:40 +01:00
Eric Allam 78e2d0e9f9 Fix SSE causing app crashes when inner async loop takes too long
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-14 16:21:45 +01:00
Eric Allam 12de1b0d34 Update docs to reference @trigger.dev/react@latest instead of @next 2023-08-14 13:46:58 +01:00
Eric Allam b62df731fc Fixed the example Job trigger file import path when using Pages Router with no path alias 2023-08-14 13:40:59 +01:00
Liran Tal e347389b64 docs: Update integrations.mdx (#328)
* Update integrations.mdx

The first sentence in this paragraph for `### API Keys and Tokens` was missing a word or two and it wasn't entirely clear what did the original author of this docs page intended.

I've entered what seems to be the missing context but happy to re-phrase too if another wording makes better sense here.

* Made it clear that API keys are provided by you in your code

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2023-08-14 13:24:31 +01:00
Liran Tal 10f92a6124 docs: Update runs.mdx (#327)
* docs: Update runs.mdx

From what I can tell, it is expected for run functions to return with some sort of payload. Providing an example here as a reference and guideline.

* Made it clear returning data is optional and added some more detail below

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2023-08-14 13:22:14 +01:00
Eric Allam b957aa1752 Remove deprecated invitation-code route 2023-08-14 09:41:05 +01:00
Arshad Jamal a998d6c505 Corrected clone link for Windows (#319) 2023-08-12 06:23:45 +01:00
James Ritchie 5f739ee312 Removed ts-ignore and added types 2023-08-11 16:11:27 +01:00
James Ritchie fccba7db98 Upgraded the confetti to fireworks 2023-08-11 16:09:47 +01:00
Eric Allam 0f7b7ff6d6 Fix pnpm lock
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-11 15:52:52 +01:00
nicktrn 603ffbc426 docs: add supabase guide (#297)
* docs: add supabase guide

* feat: add support for external connection poolers

* chore: use .env symlink in database package

* chore: remove database .env.example

* docs: finish supabase pooling section

* docs: fix small typo

* docs: replace prisma with app wording

* docs: fix up supabase pooling section

* fix: deleted too much in contributing docs

* docs: change pooling heading

* docs: reduce linux shaming

* docs: include direct connection url in fly.io
2023-08-11 15:51:54 +01:00
github-actions[bot] beef7769c6 chore: Update version for release (#304)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11 15:48:41 +01:00
Eric Allam e9088cf08c Supabase quickstart guide (#311)
* Added docs images for supabase

* Compressed some existing images

* Improved some of the main quickstart wording

* First draft of the Supabase quickstart

* Tweaks to the Supabase quickstart and the supabase integration docs

---------

Co-authored-by: James Ritchie <james@jamesritchie.co.uk>
2023-08-11 15:29:53 +01:00
Eric Allam 390bed0b9a Some tweaks to the Event Filter guide 2023-08-11 14:38:43 +01:00
Eric Allam e3e3dab525 Fixed missing } in the express package 2023-08-11 14:34:31 +01:00
Chigala b884a0ab53 doc: added a new documentation for event filters (#300)
* doc: added a new documentation for event filters

* removed typos from the event filter doc and formatted it better.

* made new changes

- moved the eventfilter doc to the guides section
- linked the old eventfilter doc to the new one

* updated the eventfilter doc based on the requested changes
2023-08-11 14:25:04 +01:00
Liran Tal 871d6e1d52 fix: support express jsonParser middleware if used in the Express app (#309)
* fix: support express jsonParser middleware if used in the Express app

* Create sixty-windows-run.md

---------

Co-authored-by: Eric Allam <eallam@icloud.com>
2023-08-11 14:23:29 +01:00
Liran Tal 7daa82fc7a fix: avoid crashing the Node.js app on uncaught exceptions (#307)
* fix: avoid crashing the Node.js app on uncaught exceptions

* Create smooth-dodos-obey.md

---------

Co-authored-by: Eric Allam <eallam@icloud.com>
2023-08-11 14:18:31 +01:00
Eric Allam 9dd7fb2748 Improved the onboarding experience
- Automatically refresh the jobs page when there are no jobs
 - Celebrate 🎊
2023-08-11 14:08:39 +01:00
James Ritchie c246578a81 Made the CLI error more helpful if you’re not running your Next.js app 2023-08-11 11:24:52 +01:00
Chigala d395b95762 fix: Handle ngrok config upgrade error in createTunnel function (#295)
* fix: Handle ngrok config upgrade error in createTunnel function

* Improved the output when upgrading the ngrok configuration

* Create three-flies-sneeze.md

---------

Co-authored-by: Eric Allam <eallam@icloud.com>
2023-08-11 10:39:58 +01:00
Eric Allam f3bda59617 Fixed the sendgrid tsconfig 2023-08-11 10:16:24 +01:00
Eric Allam ef8b52c20f Fixed outdated lockfile issue 2023-08-11 10:15:08 +01:00
Chigala 2bedc779b9 feature: initial work for sendgrid integration (#264)
* feature: initial work for sendgrid integration

* fix: fixed the ts-error and added sendgrid integration to the job-catalogue

* SendGrid added to dependencies

* Made the from email an env var so it can be tested by non-Trigger.dev team members

* Refactor: Modify sendEmail function to return void and remove SendEmailResponse type

Co-authored-by: Matt Aitken <matt@mattaitken.com>

* Create funny-kangaroos-glow.md

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
Co-authored-by: Eric Allam <eallam@icloud.com>
2023-08-11 10:12:19 +01:00
Eric Allam a5b5912270 Change the default max concurrent runs from 100 to 1000
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-10 17:21:37 +01:00
D-K-P 275318d2df Docs updates, including added Supabase to the examples table 2023-08-10 14:54:03 +01:00
nicktrn 8d48ebdee8 docs: supabase guide without pooling section (#299)
* docs: add supabase guide

* docs: add supabase to mint.json

* docs: change supabase schema from public

* docs: supabase pooling coming soon
2023-08-10 14:16:54 +01:00
Eric Allam 7ef0fe79b5 Update manual.mdx - spelling mistake 2023-08-10 11:21:06 +01:00
Yaswanth 921957958e Adds Missing syntax highlight to manual setup documentation (#298) 2023-08-10 10:30:22 +01:00
Eric Allam 73721fc55c Remove private beta mention in the docs 2023-08-10 09:33:50 +01:00
Eric Allam 4fcec3bd0d Organized imports
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-09 21:19:57 +01:00
Eric Allam 7f4b6b9974 Remove the invite code guard 2023-08-09 21:19:25 +01:00
Eric Allam 950ab24e7f Add the placeholder supabase quickstart 2023-08-09 21:14:34 +01:00
James Ritchie c4da1b4a9a Updated the discord link
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-09 16:09:33 +01:00
Eric Allam 24debf0cee Slight change to the supabase job catalog 2023-08-09 16:02:31 +01:00
James Ritchie 645643ea41 Improved onboarding (#292)
* Only show the Example Jobs list when you have 1 job

* Updated the logic for displaying the different information depending on the no. of jobs you have

* Removed some unnecessary markup

* Clicking on a radio option toggles the content

* Improved the centering of the help panel

* Conetent updates to the 2 onboarding paths

* Added a prompt so you click through to run your job

* More content updates to the help panel

* Only show the prompt if the Job has never been run

* Added back in the help panel which shows the examples table if you have > 0 jobs

* Added a dialog for the I am Stuck button

* Added the new ‘new-next-app’ text for the cli command

* Refactored the ternary logic so it’s simpler

* Removed I’m stuck button and cleaned up imports

* Added in feedback button

* Added margin bottom to the Callout on the Test popover

* WIP adding a new radio button variant that takes an icon

* Added a new step to create a new next app

* The state of the tabs is stored as a URL param

* Small shadow tweak to the side panel

* Added a Discord button to the feedback menu

* Added new icons to the Named icons component

* Added a gradient to the background of the jobs page

* Made the icons take on color outside of component

* Added another NamedIcon for tree

* Fixed number

* Improved some of the typography styles

* Updated the icons

* Fixed issue with radio buttons alignment

* Added a missing step to the new next app onboarding

* Refactored example code and added all the examples to the panel

* Small icon update

* Made the title white again

* Added an icon to the storybook radiogroup

* Added a badges storybook

* Chevron table cell now takes children

* import cleanup

* Changed the background image from an arbirary value to an import

* Added a NEW badge which shows if you have a new job

* Improved the copy on the Examples help panel and updated some of the layout

* Removed defaultOpen on the help panel

* Stop the icons getting smaller

---------

Co-authored-by: D-K-P <dkp.github@pm.me>
2023-08-09 15:00:08 +01:00
Eric Allam 321378db4f Run pnpm i to fix lock file
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-09 12:40:48 +01:00
github-actions[bot] c8b10ce188 chore: Update version for release (#291)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-09 12:40:15 +01:00
Eric Allam 57ed2b2d0d Fixed cli type errors 2023-08-09 12:37:22 +01:00
Eric Allam fa3a22eb78 Added an $isNull EventFilter condition matcher 2023-08-09 12:35:47 +01:00
Dan a1bc15d18b Updated the example job (#288)
* Changed the example job to include a delay

* Improved the example job copy and added ‘in a separate terminal’ to 2.

* Create kind-eggs-pump.md

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2023-08-09 12:21:46 +01:00
Yaswanth 3f48dd0a68 [TRI-945]: Adds manual project setup guide to the docs (#286)
Co-authored-by: Crossover <crossover@MacBook-Pro.local>
2023-08-09 12:18:05 +01:00
Eric Allam 5c71868a73 Fix the examples in the supabase integration 2023-08-09 12:16:27 +01:00
Chigala 3ce6decef4 Feat/scaffold job catalog file (#283)
* feat: adds a job catalog file when an integration is created via the CLI

* added a changeset

* fix: create-integration CLI throws an error when it tries to install dependencies

* Update getUserPkgManager.ts to main

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2023-08-09 10:42:20 +01:00
Eric Allam ab007f2708 Fix the CLI typecheck error 2023-08-09 10:41:06 +01:00
Eric Allam 8412680863 Adding createImageEdit and createImageVariation tasks to openai 2023-08-09 10:39:17 +01:00
Matt Aitken a90908df6e CLI init fixes: don't ask for endpoint slug, fix for next.config and package manager artifact issue (#287)
* If an endpointId isn’t in the arguments or package, then use the project slug. Don’t ask for it.

* Should await the package artifact detection

* Catch error thrown if there’s no next.config file when detecting the type of Next project

* Create long-carrots-camp.md
2023-08-09 10:37:10 +01:00
Eric Allam a82b86210f Fix pnpm lock file for package release 2023-08-08 22:08:40 +01:00
github-actions[bot] 0367a92731 chore: Update version for release (#281)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-08 22:08:12 +01:00
Eric Allam d230cf622f Treat @trigger.dev/sdk the same as @trigger.dev/core in the webapp
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-08 15:52:14 +01:00
Eric Allam a1bf073b43 Trigger another release run 2023-08-08 15:18:13 +01:00
Eric Allam 5588108b97 Add unit test running to the public CI 2023-08-08 15:04:15 +01:00
Eric Allam b9bcecffe3 Added some Supabase storage and auth triggers to the job catalog 2023-08-08 15:02:07 +01:00
Eric Allam 59075f5fc2 EventFilter now supports more complex condition filters #271 2023-08-08 15:02:07 +01:00
Sai Hari fa942fc9f5 feat: 🎸 add end-to-end test harness (#253)
* feat: 🎸 add end-to-end test harness

* Address PR comments
2023-08-08 13:55:25 +01:00
D-K-P 47a8a557cf Replaced all the screenshots of the environments page 2023-08-08 11:47:25 +01:00
Yaswanth b51d0b5399 Fix:[TRI-879]-Hides help panel when endpoints exists on the Environme… (#256)
* Fix:[TRI-879]-Hides help panel when endpoints exists on the Environments & API Keys page

* fix: adds check for fully configured client

g

---------

Co-authored-by: Crossover <crossover@MacBook-Pro.local>
2023-08-08 11:15:58 +01:00
D-K-P 763c84e3b3 Replaced api key screenshot and text 2023-08-08 10:41:33 +01:00
Eric Allam dfb00e84e9 Fixing pnpm lock file 2023-08-08 07:35:25 +01:00
github-actions[bot] b5a64545bb chore: Update version for release (#273)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-08 07:32:24 +01:00
Eric Allam 3cf3eaff48 @trigger.dev/supabase: You can now trigger on multiple database events in the same job 2023-08-07 17:27:49 +01:00
Matt Aitken 4ca758a3de job-catalog: added initial setup and CLI build step
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-07 15:07:58 +01:00
Matt Aitken da81537009 Update job-catalog instructions
`pnpm run trigger:dev` should be `pnpm run dev:trigger`
2023-08-07 14:57:08 +01:00
Eric Allam 7c1b13ba3b Increase webhook delivery attempts to the max 25 attempts over 3 days 2023-08-07 14:25:23 +01:00
D-K-P 4b654e5b3b Fixed broken docs link 2023-08-07 13:29:11 +01:00
Eric Allam 726a50ace7 Point to the workspace version of @trigger.dev/sdk 2023-08-07 13:17:36 +01:00
github-actions[bot] 9deffb67c4 chore: Update version for release (#267)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 13:08:27 +01:00
Matt Aitken ff04bf44ee CLI: detect package manager using artifacts if they exist (#261)
* Detect package manager from artifacts (e.g. package-lock.json) and fallback to process.env.npm_config_user_agent

* Added a changeset
2023-08-07 13:01:22 +01:00
Matt Aitken e740297829 Cli: improve Next.js project detection (#262)
* Detect presence of a “next” dependency

* Use a strict undefined check instead

* Changeset: Detect Next.js project by looking at dependencies, not next.config.js

* Read a package json file

* First check for next.config file, otherwise use next dependency

* Update changeset description
2023-08-07 13:01:03 +01:00
D-K-P a31705e198 Added text summarizer / github issue reminder jobs to the examples table 2023-08-07 12:58:43 +01:00
Eric Allam f0bdf53364 Auto index production endpoints every 10 minutes 2023-08-07 12:49:37 +01:00
Matt Aitken 9638499163 Add your first endpoint in the dashboard (#269)
* Created the sheet

* Started work on the resource route

* Created ValidateCreateEndpointService and the EndpointValidateApi (name TBC)

* The TriggerClient responds with the id

* Tidied some stuff up

* Alternative: EndpointApi doesn’t take endpointSlug. Instead just Ping() does

* Create cool-snakes-deny.md

---------

Co-authored-by: Eric Allam <eallam@icloud.com>
2023-08-07 11:28:34 +01:00
Matt Aitken 9104c252b7 Telemetry (new user) (#268)
* Removed old telemetry

* Started adding TriggerClient telemetry

* Added a log if the telemetry client is created, event renamed to “user.created”
2023-08-07 11:28:13 +01:00
Matt Aitken 72cf345602 Added “thumbsRating” to docs pages 2023-08-07 10:50:02 +01:00
jemiluv8 d5b8f8299d update cli init to create index file in examples folder (#225)
* update cli init to create index file in examples folder

* add patch changeset

* Create silly-baboons-join.md

* remove comment in router file
add comment in jobs index to instruct them to

* rename examplesIndex to examplesIndexFileName

* import jobs module in routeContent for createTriggerPageRoute just as we did for createTriggerAppRoute

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2023-08-06 16:42:32 +01:00
Matt Aitken dd22b88d25 Latest lockfile… 🙄 2023-08-03 22:52:46 +01:00
github-actions[bot] 62b9c5879c chore: Update version for release (#248) 2023-08-03 22:47:23 +01:00
Eric Allam 1b0973fbc1 Fixed error when configuring a new endpoint failed and fixed ping to now throw an error when parsing JSON
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-03 16:02:16 +01:00
Eric Allam fc78854ed4 @trigger.dev/cli: Don't require the TRIGGER_API_URL to be set (it has a default) 2023-08-03 14:49:46 +01:00
Eric Allam ed15bb0618 Another small supabase tweak 2023-08-03 13:09:56 +01:00
Eric Allam ced9034428 Another small supabase doc fix 2023-08-03 13:08:42 +01:00
Eric Allam 7ec329d5d6 Fixed broken image in supabase docs 2023-08-03 13:06:23 +01:00
Eric Allam 81180999de The dev command should use a POST request when doing the PING to the local server 2023-08-03 13:01:08 +01:00
Eric Allam feaa79ecf3 @trigger.dev/supabase: Automatically enable database webhooks when using triggers 2023-08-03 13:00:29 +01:00
Eric Allam d34dc0847c More OpenAI examples 2023-08-03 09:55:07 +01:00
Eric Allam 1b7c7520b4 new Job -> client.defineJob 2023-08-03 09:53:15 +01:00
Eric Allam 34d77e830c Incorporate improved OpenAI docs from old repo 2023-08-03 09:51:25 +01:00
Eric Allam 87c302bf26 Document how to enable supabase database webhooks 2023-08-03 09:39:58 +01:00
Eric Allam d462c901f5 A couple of quickstart tweaks 2023-08-02 17:16:39 +01:00
D-K-P 55c3d79cc8 Deleted the info box on the integration pages 2023-08-02 17:11:41 +01:00
Eric Allam ce901c92e4 Update @trigger.dev/supabase to the latest supabase-management-js 2023-08-02 17:01:02 +01:00
Matt Aitken 0fd409c6dc Latest lockfile 2023-08-02 16:08:50 +01:00
github-actions[bot] f4e7379768 chore: Update version for release (#247)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-02 16:06:27 +01:00
Matt Aitken ee99191fb4 Sync all package version numbers 2023-08-02 15:58:56 +01:00
Matt Aitken 18124ae32a Sync all of the package version numbers 2023-08-02 15:45:20 +01:00
Eric Allam de3373b8f9 Fixed pnpm lock file
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-02 15:40:26 +01:00
Eric Allam bdb4e6e2bd Only publish latest docker images when tagged with v.docker.x.y.z 2023-08-02 15:38:53 +01:00
Matt Aitken 0a790de2c1 core version changed to 1.0.0. Dependencies for core set to ^1.0.0 2023-08-02 15:21:19 +01:00
Eric Allam ffb55bfde6 Add react package docs 2023-08-02 15:18:03 +01:00
github-actions[bot] c0fbe56f79 chore: Update version for release (#246)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-02 15:10:36 +01:00
Eric Allam 342ab0d471 Adding docs back into this repo 2023-08-02 15:09:35 +01:00
Matt Aitken aa9fe7d408 core made public, react and sdk now have it as a dependency (not dev) 2023-08-02 15:07:14 +01:00
Eric Allam f499c10f09 Run pnpm i to fix pnpm-lock
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-08-02 14:19:46 +01:00
github-actions[bot] 45ed7cdf38 chore: Update version for release (#238)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-02 14:18:12 +01:00
Eric Allam fa271aaed2 Tweaked the SDK package readme 2023-08-02 13:42:45 +01:00
Eric Allam 8883476dcb Specify limited paths that will cause our github workflows to run 2023-08-02 13:27:44 +01:00
Eric Allam c1755ff85b Removed error logging from the stripe integration 2023-08-02 11:53:42 +01:00
Eric Allam 6d04f6c62a Added default retry settings for all integration tasks 2023-08-02 11:53:09 +01:00
Eric Allam 53363711bb Fixed type errors in the cli 2023-08-02 11:50:50 +01:00
Eric Allam 442ee45e97 Upgrade to Remix 1.19.2-pre.0 to try and fix premature close issue
https://github.com/remix-run/remix/issues/4993#issuecomment-1661221726
2023-08-02 11:49:04 +01:00
Eric Allam 8405b337f9 Fix seed files by copying any .node query engine file in entrypoint.sh 2023-08-02 10:21:41 +01:00
Matt Aitken facae926ce Added telemetry to the CLI (#242)
* Basic CLI telemetry

* Telemetry for init command

* Better error handling

* Fix for “Module not found: Can't resolve 'encoding' in” node-fetch warning

* Telemetry for dev and tidied up init

* Minor improvements to the telemetry

* Latest package lock file

* Set the PostHog key to the prod one

* Changesets

* Formatted
2023-08-02 09:47:08 +01:00
Eric Allam 9544624e00 Adding compound triggers to Stripe and added a WIP express adapter 2023-08-01 16:06:42 +01:00
Matt Aitken a489fd465f @trigger.dev/init and @trigger.dev/internal references updated to the new package names 2023-08-01 12:10:49 +01:00
Matt Aitken 9ff4c0dbd5 Project-wide Prettier setup (#237)
* Setup project-wide prettier

* Remove old workspace file

* Remove old debugging directives

* New top-level .prettierignore

* Updated Prettier config settings

* Contrubuting guide: Fix for some bad code blocks

* Added more ignores

* Improved the format script command

* printWidth set to 100

* Formatted entire repo (pnpm run format)
2023-08-01 10:21:22 +01:00
Eric Allam 36ec16babe feat: encrypt values in SecretStore using an encryption key (#240)
* feat: encrypt values in SecretStore using an encryption key and `aes-256-gcm`

* Stopped using apiCors in the connectionId API endpoint
2023-08-01 10:11:47 +01:00
Matt Aitken 92233f2e90 Core package and move to @latest (#235)
* Changeset should ignore the example projects

* Removed note in Contributing instructions about not adding a changeset for internal

* Renamed @trigger.dev/internal to @trigger.dev/core. Set sdk and internal to be ES2020, so we don’t get errors about private identifiers

* Env vars in nextjs-example use square bracket syntax to avoid Turbo Repo errors

* Set the tsconfigs back for core and sdk

* @examples/nextjs compile error with undefined tasks

* Set the example projects to use ES2015 to avoid private modifier complaints

* package-tester example, which will use built packages

* package-tester package.json

* Created a readme for the package-tester

* Added all the packages to package-tester

* Create .env.local.example and readme instructions

* Added name to the package.json

* Upgraded @types/react and @types/react-dom everywhrre, so we can use server actions

* Upgraded @types/react and @types/react-dom everywhrre, so we can use server actions

* Reworked the react package build, so it generates separate files

* The SDK no longer bundles core

* package-tester setup with a server action and react hooks

* Added new SDK methods with logging

* Working tsup settings for client and server

* Explicit react hooks return types

* Added all the hooks for testing

* Added OpenAI step to the job to check types are still ok in integrations

* Get rid of rogue Changeset ignores

* Changeset: @trigger.dev/core is now a separate package

* Exited prerelease mode, added a changeset

* Changed @next to @latest

* Deleted seed.js, this shouldn’t be committed

* Ignore seed.js

* The webapp was importing @trigger.dev/core with a folder path rather package name…

* More webapp imports instead of @trigger.dev/core were a folder path

* Accidentally edited Stripe internal API url in the comment

* Added “sideEffects”: false so @trigger.dev/core is tree shaken by Remix
2023-07-31 18:47:34 +01:00
Ashutosh Bhadauriya efd590976c Feat: Detect if a Next.js project is running on the specified port before opening a tunnel (#214)
* Feat: Detect nextjs project

* Add check before opening tunnel

* Update dev.ts

* Add changeset
2023-07-31 16:43:44 +01:00
Matt Aitken 463cbed7df Merge pull request #226 from Chigala/feature/multiple-eventname-support
Feature/multiple eventname support in eventDispatcher
2023-07-31 16:14:25 +01:00
Matt Aitken 9138976dad Changeset: Multiple eventname support in eventDispatcher 2023-07-31 16:13:35 +01:00
Matt Aitken ace4d5f6ce Merge pull request #228 from jemiluv8/migration-contribution-guide
chore: add instructions for adding migrations to the project
2023-07-31 16:07:05 +01:00
Matt Aitken b09ecb0b06 Update CONTRIBUTING.md 2023-07-31 16:06:39 +01:00
Matt Aitken 10fef0f667 Improved the migration instructions 2023-07-31 16:06:12 +01:00
Eric Allam 3e5945fb9e Stop storing github access tokens for github authenticated users 2023-07-31 15:41:44 +01:00
Akhil fdf1b2148c feat: added git database tasks for github integration (#204)
* feat: added git database tasks for github integration

* feat: added examples for git database tasks
2023-07-31 09:50:41 +01:00
Eric Allam 7e4d72f959 Made the migration non-destructive and fixed other typechecking issues 2023-07-28 18:19:41 +01:00
Chigala 3e203ea967 Merge branch 'main' into feature/multiple-eventname-support 2023-07-28 17:53:31 +01:00
github-actions[bot] af56598a58 chore: Update version for release (next) (#234)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-28 16:27:36 +01:00
Eric Allam 1fef1fa5f8 Adding native property to get access to underlying client in local auth only integrations 2023-07-28 16:12:41 +01:00
github-actions[bot] bd2f68a51d chore: Update version for release (next) (#233)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-28 14:48:57 +01:00
Eric Allam 64477f6b3a @trigger.dev/sdk: Adding some type helpers for getting the payload and IO types from jobs and triggers 2023-07-28 14:42:28 +01:00
Eric Allam 8b09dfd697 Fix pnpm lock file 2023-07-27 22:14:40 +01:00
github-actions[bot] f330673143 chore: Update version for release (next) (#232)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-27 22:14:06 +01:00
Eric Allam 9351c05126 Initial @trigger.dev/stripe integration, with support for triggers and tasks (#231)
* Initial Stripe integration, with support for triggers and tasks

* Adding stripe integration to the catalog
2023-07-27 22:09:07 +01:00
Matt Aitken af722e54d8 Made the integration items capable of fitting more text 2023-07-27 19:59:20 +01:00
Matt Aitken 1eb89844f4 Added a description to the Supabase Management integration so the differences are obvious 2023-07-27 19:57:03 +01:00
Matt Aitken 004423aea3 Merge pull request #229 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-27 17:14:03 +01:00
github-actions[bot] 369c6245ab chore: Update version for release (next) 2023-07-27 16:07:50 +00:00
Matt Aitken b8ae937966 TSUP working properly 2023-07-27 17:05:43 +01:00
Matt Aitken 3b510a4f3d Put paths back 2023-07-27 16:30:56 +01:00
Matt Aitken b3e609d53d Experimenting with bundling 2023-07-27 16:10:19 +01:00
Matt Aitken 2f07a792e9 Removed some unused vars 2023-07-27 16:10:05 +01:00
Matt Aitken 078bf2bc9c React package bundling changed 2023-07-27 15:14:01 +01:00
Matt Aitken a7c8f0b90e Merge pull request #227 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-27 11:18:56 +01:00
Jemilu Mohammed 495acf4319 modify step 3 of migrations instructions 2023-07-27 10:17:40 +00:00
Jemilu Mohammed dce86119d4 add instructions for adding migrations to the project 2023-07-27 10:14:49 +00:00
github-actions[bot] 2c70b7a360 chore: Update version for release (next) 2023-07-27 10:00:21 +00:00
Matt Aitken c518185947 Merge pull request #221 from triggerdotdev/react-hooks
Get the status of runs and events, using the SDK or @trigger.dev/react hooks
2023-07-27 10:58:37 +01:00
Matt Aitken b314178de2 SDK Changeset: Added getEvent(), getRun() and getRuns() methods to the client 2023-07-27 10:22:52 +01:00
Chigala e0a2cec978 Chore: Modified eventTrigger to accept a string and an array of strings. 2023-07-27 00:09:03 +01:00
Matt Aitken d3608be1a0 Improved the environments help text – it now references server API keys 2023-07-26 22:00:16 +01:00
Matt Aitken 4c79129242 authenticateApiRequest() now returns an object with the apiKey, type and environment 2023-07-26 21:54:20 +01:00
Chigala 8ac83f1d59 added multiple event name support to the eventDispatcher 2023-07-26 21:18:03 +01:00
Matt Aitken 17e6d42989 Removed unused const in RunPresenter 2023-07-26 20:49:09 +01:00
Matt Aitken 0a3bbc1caf Merge remote-tracking branch 'origin/main' into react-hooks
# Conflicts:
#	apps/webapp/app/presenters/RunPresenter.server.ts
#	examples/nextjs-example/src/app/api/trigger/route.ts
#	examples/nextjs-example/tsconfig.json
2023-07-26 20:47:07 +01:00
Matt Aitken 89e1331e49 Better error handling for the job runs endpoint 2023-07-26 18:57:11 +01:00
Matt Aitken d934a53e6d Better error handling for the runs endpoint 2023-07-26 18:57:02 +01:00
Matt Aitken 2398d60b1a Added noExternal for the @trigger.dev/internal package 2023-07-26 18:54:12 +01:00
Matt Aitken 1bd755b628 Example project: Use POST for the test event 2023-07-26 18:52:07 +01:00
Eric Allam 861d5fa1b9 Fixed pnpm lock why does this happen 2023-07-26 18:22:20 +01:00
github-actions[bot] 0239fc6773 chore: Update version for release (next) (#222)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-26 18:20:42 +01:00
Eric Allam de57592d79 @trigger.dev/resend now retries failed email sends 2023-07-26 18:17:27 +01:00
Eric Allam f70f3a0a5d Fixed doubling of the params option 2023-07-26 18:14:07 +01:00
Matt Aitken 6c96b331dd Event API endpoint safe parsing and better error handling/responses 2023-07-26 18:03:32 +01:00
Eric Allam 767e09ee18 New integration: @trigger.dev/supabase (#203)
* WIP supabase integration

* supabase oauth working

* Supabase database triggers

* Specify postgres:14

* Limit refreshOAuthToken jobs to 10 attempts

* Better displaying types and removing onChange for now

* WIP on the supabase db client

* Finishing the supabase-js integration

* Adding changeset

* Added supabase to the integration catalogs, and added an optional icon to Integrations

* Reworking how we handle types for the triggers (wip)

* Update fully over to the new way to define supabase triggers

* Go back to using the type for the event name

* Add back in the icon to the JobListPresenter since it was moved from the ProjectPresenter

* Remove unused import
2023-07-26 18:01:27 +01:00
Matt Aitken b2f3ade7c7 Renamed Secret API keys to Server API keys 2023-07-26 17:55:34 +01:00
alubọsa 8f050b40c1 chore(docs): add changeset guide to contributing.md (#219)
* chore(docs): add changeset guide to contributing.md

* chore: text changes to changeset guide

* Update CONTRIBUTING.md

---------

Co-authored-by: Eric Allam <eallam@icloud.com>
2023-07-26 17:30:58 +01:00
Ashutosh Bhadauriya 3cf01ff14c Add testing CLI changes guide to contributing.md (#220)
* Add testing CLI changes guide to contributing.md

* Update backticks
2023-07-26 17:18:42 +01:00
Matt Aitken 73e0084125 New lock file after main merge 2023-07-26 16:44:37 +01:00
Matt Aitken 093c9ec015 Merge remote-tracking branch 'origin/main' into react-hooks
# Conflicts:
#	pnpm-lock.yaml
2023-07-26 16:44:09 +01:00
Matt Aitken 475dddfbe4 Added private API keys to the environment page, with some explanatory text 2023-07-26 16:41:17 +01:00
Matt Aitken 188e4f2740 Added an outline styled for badges 2023-07-26 16:40:51 +01:00
Matt Aitken 4dc2b3184b Fix for missing pkApiKey in seedCloud script 2023-07-26 16:23:40 +01:00
Matt Aitken 139d541d86 Return the pkApiKey and sort the environments correctly (dev, preview, staging, prod) 2023-07-26 15:32:35 +01:00
Eric Allam 10798c0a05 Fixed the pnpm lock file 2023-07-26 14:45:42 +01:00
Matt Aitken 9c6ad11479 Latest lockfile 2023-07-26 14:43:54 +01:00
Matt Aitken 5527ef17f4 Merge remote-tracking branch 'origin/main' into react-hooks 2023-07-26 14:38:55 +01:00
Matt Aitken 981f4010a9 Shortened the delays in the hooks example to make it less annoying when testing 2023-07-26 14:38:05 +01:00
github-actions[bot] db7e8923c0 chore: Update version for release (next) (#212)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-26 14:37:48 +01:00
Hans Bignon K. Tognon 0eef5c2f01 Adds steps to contributing guide for running some jobs locally (#209)
* chore(contrib): added a few jobs

* chore(contrib): adds sample jobs for repo setup

* chore(contrib): refactor examples/jobs-starter

* docs(contrib): add steps to add starter jobs

* fix(contrib): typo

* chore(contrib): minor edits

* chore(contrib): update guide and starter code
2023-07-26 14:27:27 +01:00
Matt Aitken 08901f2e8a Merge remote-tracking branch 'origin/main' into react-hooks 2023-07-26 14:07:09 +01:00
Matt Aitken 51b365226d In the Job list, show the latest run across all environments
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-26 13:37:48 +01:00
Matt Aitken 0b89ee7eb5 ProjectsMenu truncates long titles and the badge is right-aligned 2023-07-26 13:37:18 +01:00
Sai Hari d7c4b24203 chore: 🤖 replace tsconfig package with tsconfck package (#218) 2023-07-26 07:22:16 +01:00
Matt Aitken d7352867ec Merge pull request #215 from katrieltsepelevish/fix/contributing-readme-running
Fix: Updated contributing README for running in development
2023-07-25 20:31:43 +01:00
Matt Aitken a2b97bd918 First changeset for the react package 2023-07-25 20:08:54 +01:00
Matt Aitken 5991a767f7 TriggerClient method for getRuns with a jobSlug. This will only work with the private API key 2023-07-25 20:00:19 +01:00
Matt Aitken 643eba263e Default to returning 20 tasks and set max to 50 2023-07-25 19:59:42 +01:00
Matt Aitken 4db8a3992b We don’t need the environmentId 2023-07-25 19:26:34 +01:00
Matt Aitken 03f7156749 API endpoint for getting the latest runs 2023-07-25 19:15:15 +01:00
Matt Aitken d9912e5548 jsdocs for the getEvent output 2023-07-25 18:13:14 +01:00
Matt Aitken 3c85c985d9 Added getEvent and getRun methods to TriggerClient. Added JSDocs to the types 2023-07-25 18:11:28 +01:00
Matt Aitken 0cf848b9b9 Show the job output in the example 2023-07-25 17:52:49 +01:00
Matt Aitken ef4056abde Only allow showing the task details if it’s a private API key 2023-07-25 17:52:40 +01:00
Matt Aitken 3a6c25d42d API authentication updated to work correctly with public and private keys 2023-07-25 17:52:20 +01:00
Matt Aitken 642c95027c Return an output from the hook test job 2023-07-25 17:51:25 +01:00
Matt Aitken 8a66a5c6c7 Migrate: Make the pkApiKey unique and non-null 2023-07-25 17:51:14 +01:00
Katriel Tsepelevish 7dcc55a083 Updated README 2023-07-25 19:33:16 +03:00
Matt Aitken 6989fec9d0 New API keys (public or private) now have 20 random characters 2023-07-25 17:06:01 +01:00
Matt Aitken bba190e4e9 Use apiCors function for the event endpoint too 2023-07-25 16:36:19 +01:00
Matt Aitken 6f670c8cc6 Use v5 react-query so we don’t need a QueryClientProvider. Improved the retrying behaviour 2023-07-25 16:36:09 +01:00
Katriel Tsepelevish d8626c624f Updated contributing README 2023-07-25 18:35:18 +03:00
D-K-P 454ad25b1d Updated the ID question in the CLI 2023-07-25 16:30:28 +01:00
D-K-P 4dce703b20 Changed the create a job in code callout from Quick start to Create a Job 2023-07-25 16:17:57 +01:00
D-K-P ce1e911c90 Fixed the github link on the examples job table 2023-07-25 16:13:08 +01:00
D-K-P f84f4dcee6 Updated the blank jobs page instructions 2023-07-25 16:02:03 +01:00
D-K-P bfa3757ee0 Updated the help & feedback copy 2023-07-25 15:16:33 +01:00
Matt Aitken 1fea5d7af3 React hooks are working in the example 2023-07-25 14:38:39 +01:00
Matt Aitken dd33bbf6a8 Reworked the next-js project to just have the app directory 2023-07-25 13:38:46 +01:00
Matt Aitken 74640b1a82 Custom react query context for the package 2023-07-25 13:38:32 +01:00
Eric Allam 51e6a74eda Lock turborepo to a specific version (1.10.10 breaks our Docker builds) 2023-07-25 13:37:40 +01:00
alubọsa 27a9812194 chore: use endpointId if it exists in package.json (#200)
* chore: use endpointId if package.json has it

* minor

* add changeset

* chore: include changeset

* chore: add proper summary to changeset

* chore: remove redundant changeset file
2023-07-25 13:27:35 +01:00
Eric Allam ba03a9ed20 Merge pull request #207 from jemiluv8/js-support-for-init-command
feat: Add Javascript support for init command
2023-07-25 13:09:56 +01:00
Matt Aitken f5c1c62a09 export SentEvent from the SDK 2023-07-24 17:48:07 +01:00
Matt Aitken 420e719db2 useEventRunDetails combines the two hooks 2023-07-24 17:23:32 +01:00
Matt Aitken c448f53964 Run hook fixes 2023-07-24 17:12:16 +01:00
Matt Aitken 72230f67d8 Improved the hook 2023-07-24 17:03:11 +01:00
Matt Aitken 4bdc28d7fc apiCors has 5 min maxAge 2023-07-24 17:03:02 +01:00
Matt Aitken eb5195768b Moved the run query to runs/$runId, instead of /tasks 2023-07-24 13:28:33 +01:00
Matt Aitken 5b6539d799 Improved the display of the react hooks in the example 2023-07-24 13:13:19 +01:00
Matt Aitken b1b471cf63 Removed the optional stuff from react zodfetch function 2023-07-24 13:13:09 +01:00
Matt Aitken bcd80463f3 Removed the parentId from the RunTaskSchema 2023-07-24 13:12:34 +01:00
Matt Aitken e2781cb090 Don’t return the task details unless they’re asked for, fix so the child tasks aren’t returned if they’re not asked for 2023-07-24 13:12:19 +01:00
D-K-P 09f906f7a1 Updated the invitation code page copy 2023-07-24 10:18:11 +01:00
Jemilu Mohammed 706ab20ced add "patch" change set for feature to support nextjs projects using javascript 2023-07-23 19:04:18 +00:00
Jemilu Mohammed 1dde615686 add change set for feature to support nextjs projects using javascript 2023-07-23 18:49:14 +00:00
Matt Aitken dda8be1fd0 Remove log 2023-07-23 19:26:25 +01:00
Matt Aitken 2888877463 Missed a cors response wrapper 2023-07-23 19:26:13 +01:00
Matt Aitken ac4253a187 Only refetch the run if it’s not complete 2023-07-23 19:26:00 +01:00
Matt Aitken a6f79d77d1 Run hook 2023-07-23 19:18:19 +01:00
Matt Aitken 4ca841a1d5 Query to get environment from either the apiKey or the pkApiKey 2023-07-23 19:06:34 +01:00
Matt Aitken 4d2a8728be Getting events is allowed with allowPublicKey 2023-07-23 19:06:18 +01:00
Matt Aitken ae3afdfc7e Allow public key api requests, if the flag is passed 2023-07-23 19:05:30 +01:00
Matt Aitken e135b06e2c Show errors, not working properly yet 2023-07-23 18:42:36 +01:00
Matt Aitken 106843be09 Checks for the correct public key format 2023-07-23 18:42:20 +01:00
Matt Aitken 022021dc4b Allow CORS for the GET events endpoint 2023-07-23 18:27:23 +01:00
Matt Aitken 8815b1608e Set the api url to localhost:3030 2023-07-23 18:26:59 +01:00
Matt Aitken 3dcd7743be Requests are happening but failing CORS 2023-07-23 18:03:39 +01:00
Matt Aitken 66fd838085 Setup the Nextjs example homepage with the TriggerProvider 2023-07-23 17:51:24 +01:00
Matt Aitken b04852c98c useQueryEvent 2023-07-23 17:51:03 +01:00
Matt Aitken ad19bfa283 Added zod fetch function 2023-07-23 17:50:51 +01:00
Matt Aitken ee86910caa Pass in default api url 2023-07-23 17:50:36 +01:00
Matt Aitken 9a4daaf024 Better errors for api key 2023-07-23 17:40:04 +01:00
Matt Aitken fcf1202af3 Added React package to Next.js example project 2023-07-23 17:36:55 +01:00
Matt Aitken 43c402ccae Initial React package with provider 2023-07-23 17:36:20 +01:00
Matt Aitken 24334a1e78 API client methods for getting event and run data 2023-07-23 16:25:13 +01:00
Matt Aitken 37e27510de Return some run info as well 2023-07-23 16:24:11 +01:00
Matt Aitken fe35e8ea39 Return the updatedAt time as well 2023-07-23 16:03:15 +01:00
Matt Aitken db49879584 API endpoint for getting event details 2023-07-23 16:02:02 +01:00
Matt Aitken df68305f28 Don’t get subtasks by default when using GET on API tasks 2023-07-23 15:41:13 +01:00
Matt Aitken 078b10ccea API endpoint for getting tasks changed to return more selective info. Use taskListToTree 2023-07-23 15:34:05 +01:00
Matt Aitken 1f8a36efb4 Changed task query from getting children to creating tree afterwards from all the tasks 2023-07-23 14:27:31 +01:00
Jemilu Mohammed b0c386ff87 fix bug when detecting app dir for js project
fix typo in createTriggerAppRoute
2023-07-22 20:38:10 +00:00
Jemilu Mohammed 8b69e06f79 rely on jsconfig.json file if javascript project revert unnecessary workarounds 2023-07-22 17:39:19 +00:00
Jemilu Mohammed 24aa4c7406 fix error in jobsPathPrefix and routePathPrefix for Javascript projects 2023-07-22 16:38:24 +00:00
Jemilu Mohammed 621c45aaf1 remove redundant Job import from @trigger.dev/sdk in jobsContent template string 2023-07-22 16:09:16 +00:00
Jemilu Mohammed 9f67b83bc5 fix formatting 2023-07-22 16:03:03 +00:00
Jemilu Mohammed da7dfd4bca revert files added wrongly 2023-07-22 16:01:44 +00:00
Jemilu Mohammed 07250f4ace Add support for Javascript nextjs projects in
removed assertion for whether the next project is using typescript
modify getPathAlias to work with non ts projects
2023-07-22 15:58:42 +00:00
Jemilu Mohammed 8b5055d9d3 initial commit for js example 2023-07-22 14:50:22 +00:00
Eric Allam ec36918061 Merge pull request #188 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-21 09:34:04 +01:00
github-actions[bot] c895722ffc chore: Update version for release (next) 2023-07-21 08:26:49 +00:00
James Ritchie 7df34db36b Merge remote-tracking branch 'origin/blank-jobs-page-improvements' 2023-07-21 09:25:14 +01:00
James Ritchie 3008909f02 Moved the example jobs list to the left column and only shows when 1 job is visible 2023-07-20 18:37:01 +01:00
D-K-P 8af381729c Added example projects to the blank jobs page 2023-07-20 17:36:23 +01:00
D-K-P 8ca0aeb1bd Updated the side panel copy 2023-07-20 14:48:33 +01:00
Eric Allam 99f8ec935b Fixed pnpm lock 2023-07-20 14:39:42 +01:00
Eric Allam d07cfe8fdb Merge pull request #194 from dylanrod21/main
[TRI-699] using pathToFileURL on path used in detectPagesOrAppDir
2023-07-20 14:37:36 +01:00
Dylan Rodriguez 2f1b2a32c3 adding changeset 2023-07-20 09:09:21 -04:00
D-K-P b6fd62eb54 Changed ‘Send us feedback’ to ‘Help & feedback’ 2023-07-20 12:17:34 +01:00
Eric Allam 1dfe7e0ab5 Updated dev-compose.yml and added some scripts to run it in package.json 2023-07-20 10:31:39 +01:00
Eric Allam 17c7e9765e Merge pull request #197 from SSHari/patch-700
chore: 🤖 improve migrations for docker container startup
2023-07-20 10:31:22 +01:00
Eric Allam 0ae03477df Merge pull request #196 from SSHari/patch-702
feat: 🎸 filter organization > project > jobs to internal=false
2023-07-20 10:11:48 +01:00
Eric Allam 2348e95b6c Merge pull request #195 from SSHari/patch-701
feat: 🎸 add project job count pill to breadcrumb project menu
2023-07-20 10:10:47 +01:00
SSHari 439ecf4a7f chore: 🤖 improve migrations for docker container startup 2023-07-19 21:34:16 -04:00
Dylan Rodriguez 68750da731 Revert "adding where condition on job count"
This reverts commit 61de39712a.
2023-07-19 19:23:40 -04:00
Dylan Rodriguez 61de39712a adding where condition on job count 2023-07-19 19:11:57 -04:00
SSHari d32e6f9839 feat: 🎸 filter organization > project > jobs to internal=false 2023-07-19 19:05:37 -04:00
SSHari 0cda4621c7 feat: 🎸 add project count pill to breadcrumb project menu 2023-07-19 18:48:07 -04:00
Eric Allam 4bcd654e49 Merge pull request #185 from SSHari/patch-573
feat: 🎸 move get project jobs to lower level in app hierarchy
2023-07-19 22:22:37 +01:00
Dylan Rodriguez bf0a0a17a0 normalizing path in detectPagesOrAppDir 2023-07-19 17:14:25 -04:00
SSHari ca59b6b236 Fix requested changes 2023-07-19 12:24:31 -04:00
Eric Allam 2a6cd98d4e Merge pull request #187 from SSHari/patch-445
feat: 🎸 update Docker image to use best practices
2023-07-19 16:56:36 +01:00
Matt Aitken d4da2f322b Added GitHub getIssue Task (with example Job) 2023-07-19 16:31:55 +01:00
SSHari 04ce02bb5d feat: 🎸 update Docker image to use best practices 2023-07-18 16:10:13 -04:00
SSHari 62e3bb93c1 feat: 🎸 move get project jobs to lower level in app hierarchy 2023-07-18 12:10:45 -04:00
Eric Allam 7da6b94daf Add linux header 2023-07-18 16:14:43 +01:00
Eric Allam e95bd3b6fe Rename docker-setup to DOCKER_INSTALLATION and link to our Docker repo 2023-07-18 16:13:42 +01:00
Eric Allam 8e4c70468d Merge pull request #182 from kaf-lamed-beyt/docker-setup
chore(docs): docker-setup guide
2023-07-18 16:11:07 +01:00
Eric Allam 1ea5082314 Use the typesafe env vars instead of process.env directly
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-18 15:43:27 +01:00
Eric Allam 267cbc751c Automatically re-write endpoint url from localhost to host.docker.internal when running in Docker Compose
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-18 14:20:52 +01:00
James Ritchie 5e522e1f3e Updated the yarn install to yarn dlx 2023-07-18 10:51:50 +01:00
Eric Allam ba7ef25bcb Merge pull request #184 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-17 17:20:37 +01:00
github-actions[bot] e132ea33f2 chore: Update version for release (next) 2023-07-17 16:18:09 +00:00
Eric Allam d0b19d50e4 @trigger.dev/cli: Add option to specify the path to the handler function in the dev command 2023-07-17 17:16:24 +01:00
Eric Allam 226ded6156 Merge pull request #183 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-17 16:47:31 +01:00
github-actions[bot] 8f5abfd0a6 chore: Update version for release (next) 2023-07-17 15:47:03 +00:00
Eric Allam 1bf2802b67 @trigger.dev/cli: Parse .env files using dotenv instead of hand-parsing 2023-07-17 16:45:12 +01:00
Eric Allam b95826840a Merge pull request #181 from triggerdotdev/changeset-release/main
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
chore: Update version for release (next)
2023-07-17 16:34:23 +01:00
github-actions[bot] 584e2b3ffb chore: Update version for release (next) 2023-07-17 15:29:22 +00:00
Eric Allam 69af845ad1 Make isRetry context property backwards compatible and add it to the TriggerContext type 2023-07-17 16:27:53 +01:00
Eric Allam fba8eec319 Don’t include application/json Content-Type when pinging with no body (fastify doesn’t like that) 2023-07-17 16:23:50 +01:00
Eric Allam 01c0f9b324 Allow the CLI dev command to work outside of a Next.js project 2023-07-17 16:21:21 +01:00
Matt Aitken 86e8ccbbd6 If the run info is missing then don’t render that part of the breadcrumb
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-17 14:08:35 +01:00
Eric Allam 0b45338300 Remove the bad RESEND_API_KEY from .env.example 2023-07-17 13:00:38 +01:00
kaf-lamed-beyt eafe6a0d7b chore(docs): add docker setup guide. remove prev code implementation 2023-07-17 12:17:09 +01:00
Eric Allam 3fb41f68fb Merge pull request #180 from SSHari/patch-409
feat: 🎸 add live refreshing to Environments & API key page
2023-07-17 11:52:15 +01:00
Eric Allam f5c819a489 Merge pull request #177 from akhill10/feat/isRetry-on-context-run
feat: added isRetry in context.run
2023-07-17 11:48:33 +01:00
Eric Allam 5336317dbb Merge pull request #176 from akhill10/feat/client-define-job
feat: added defineJob method in TriggerClient
2023-07-17 11:40:44 +01:00
kaf-lamed-beyt 6099e06a71 update JobPresenter query to use findFirst. 2023-07-16 15:21:19 +01:00
Akhil 0066971b77 chore: added changeset 2023-07-16 10:36:27 +00:00
Akhil c417a7f9ab feat: added isRetry in jobRunExecution 2023-07-16 07:19:37 +00:00
Akhil 1961b994d7 chore: added changeset 2023-07-16 05:19:30 +00:00
SSHari 5288ca3840 feat: 🎸 add live refreshing to Environments & API key page 2023-07-15 18:24:33 -04:00
Akhil f985dc93aa fix: defineJob with generic for triggerType 2023-07-15 16:30:11 +00:00
Akhil d6e43c40c9 feat: added defineJob method in TriggerClient 2023-07-15 15:55:53 +00:00
kaf-lamed-beyt 184c24cace refactor: use userId instaed of jobId in JobsPresenter 2023-07-15 13:41:44 +01:00
kaf-lamed-beyt 9861cb9aa7 refactor: rewrite JobsPresenter to return a list of Jobs for the project and direct new contributors to the docker setup guide 2023-07-14 19:23:51 +01:00
Matt Aitken 2d722b94bd Latest lockfile 2023-07-14 17:33:24 +01:00
Matt Aitken 2db67e3b4d Merge pull request #171 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-14 17:29:43 +01:00
github-actions[bot] 6290232858 chore: Update version for release (next) 2023-07-14 16:22:31 +00:00
Matt Aitken 7f6bf992a2 Better visibility into webhook registering, fix for Typeform SDK updating webhook 2023-07-14 17:16:28 +01:00
James Ritchie 1f5bd8d6bb Added some copy and a link to let people join the waitlist if they find themselves on cloud.trigger.dev 2023-07-14 16:59:18 +01:00
kaf-lamed-beyt 46383e57d2 chore: update guide 2023-07-14 16:55:00 +01:00
kaf-lamed-beyt 2611b2c171 chore(docs): add docker setup guideline 2023-07-14 16:49:46 +01:00
kaf-lamed-beyt 229207c8f8 chore: create and consume JobPresenter class 2023-07-14 16:40:06 +01:00
Matt Aitken 2eb0b3abce Merge pull request #168 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-14 15:33:44 +01:00
github-actions[bot] 8b6909b486 chore: Update version for release (next) 2023-07-14 14:32:26 +00:00
Matt Aitken dbb9fe44d8 Fix #158 – @trigger.dev/typeform: Check that webhook has a matching url 2023-07-14 15:30:56 +01:00
James Ritchie bb11001fb7 Added 2 buttons below the list of Integrations
2 CTA to request a missing API and to link to the docs to create your own integration
2023-07-13 18:07:19 +01:00
James Ritchie b35457bb53 export type and fixed typo 2023-07-13 18:07:19 +01:00
James Ritchie 1ea0d39fa2 Added an iconClassName to the NamedIcon component so you can override the colour 2023-07-13 18:07:19 +01:00
Matt Aitken 9193b3c90b Merge pull request #157 from triggerdotdev/changeset-release/main
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
chore: Update version for release (next)
2023-07-13 16:38:10 +01:00
github-actions[bot] c349b50164 chore: Update version for release (next) 2023-07-13 15:36:48 +00:00
Matt Aitken fe3bc6efe4 Missing token/apikey error improved for display in Next.js logs 2023-07-13 16:35:21 +01:00
Matt Aitken df138ee96e Latest lockfile 2023-07-13 16:11:37 +01:00
Matt Aitken d0b8e560c9 Merge pull request #153 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-13 16:09:51 +01:00
github-actions[bot] 537409cec1 chore: Update version for release (next) 2023-07-13 14:36:23 +00:00
Matt Aitken bac8ad1040 Throw if the clients are passed an undefined apikey or token 2023-07-13 15:34:35 +01:00
James Ritchie cc26cbeb7b Fixed nintendo related typo 2023-07-13 15:23:37 +01:00
James Ritchie 3b6c2bd0e8 Update CONTRIBUTING.md to include new steps to login when developing locally 2023-07-13 13:50:46 +01:00
Eric Allam 0b004fbcaf Print out emails instead of sending them through resend if missing resend API key 2023-07-13 12:20:54 +01:00
Eric Allam c72c21e2a9 Only retry runs when the response is a non-400 2023-07-13 11:21:14 +01:00
Eric Allam d6310a79fa @trigger.dev/nextjs and @trigger.dev/sdk: Set duplex "half" when creating fetch based Request objects when they have a body 2023-07-12 21:40:13 +01:00
Eric Allam 953354f367 @trigger.dev/typeform: Update how tasks are exported 2023-07-12 21:01:34 +01:00
James Ritchie f8ddb21510 Added env var instructions to CONTRIBUTING.md 2023-07-12 17:53:09 +01:00
Matt Aitken 761e89108b Docker prisma generate uses the same semver as the package.json 2023-07-12 17:35:27 +01:00
James Ritchie ec34a84d6d Removed the Development guide and pointing to CONTRIBUTING.md instead 2023-07-12 16:45:36 +01:00
Eric Allam 9cb5e6847b Update CONTRIBUTING.md
Remove the Next.js prereq
2023-07-12 16:44:28 +01:00
James Ritchie 43f0c6f7f2 Deleted old file 2023-07-12 16:40:52 +01:00
James Ritchie ffcad81498 Deleted old file 2023-07-12 16:40:28 +01:00
James Ritchie f16a337c50 Created a CONTRIBUTING.md guide 2023-07-12 16:39:19 +01:00
Matt Aitken 30e5303c36 Removed eventTrigger.example idea from the example 2023-07-12 16:36:12 +01:00
Matt Aitken 19d5cb596f Merge remote-tracking branch 'origin/triggers-page' 2023-07-12 15:45:54 +01:00
Matt Aitken ff58925606 The Project side menu now shows an error icon on Triggers and Integrations if action is required 2023-07-12 15:44:13 +01:00
Matt Aitken 12b16a0030 Removed unused imports/code 2023-07-12 15:43:54 +01:00
Matt Aitken b08c10a716 Warnings are triangles, errors are circles 2023-07-12 15:43:40 +01:00
Matt Aitken b878561f65 Added custom ErrorIcon that has a white exclamation so it can be seen on busy backgrounds 2023-07-12 15:43:28 +01:00
Eric Allam 5e36ad961f @trigger.dev/cli: create-integration - Generate the README.md file 2023-07-12 15:34:33 +01:00
Matt Aitken 3dc2f0cfff Scheduled Triggers table 2023-07-12 15:06:52 +01:00
Matt Aitken 073c4fb76e TextLink moved to a separate file, and added a secondary style to it 2023-07-12 15:06:46 +01:00
Matt Aitken cef0bd172d Scheduled Triggers tab 2023-07-12 14:43:48 +01:00
Matt Aitken 23eed197ee Don’t show other user’s Dev external triggers 2023-07-12 14:43:33 +01:00
Matt Aitken 3f8f76df76 Interval Trigger icon is a clock, instead of a calendar to differentiate from CRON 2023-07-12 14:43:16 +01:00
Matt Aitken b047023d9c When registering a ScheduleSource you can associate a DynamicTrigger 2023-07-12 14:43:02 +01:00
Matt Aitken 420655f231 Database migration: relationship between ScheduleSource and DynamicTrigger 2023-07-12 14:42:35 +01:00
Eric Allam 520ab88a97 Adding the create-integration command to scaffold out new integration packages (inside or outside of the monorepo) 2023-07-12 13:38:43 +01:00
Eric Allam f96da50e6a Update the typeform integration package
Now uses a dependency free tsconfig file, and updated the typescript and tsup dev deps
2023-07-12 13:35:19 +01:00
Matt Aitken 1dc42daed4 Added SDK and API support to stop runs when they’re canceled 2023-07-12 13:14:23 +01:00
Matt Aitken 0a80e2f5ec Added CANCELED TaskStatus to the server 2023-07-12 09:18:59 +01:00
Matt Aitken 4661d2019c Canceling runs 2023-07-11 19:50:06 +01:00
Matt Aitken 4e4e7b705d Rerun moved to a resource route 2023-07-11 18:49:00 +01:00
Matt Aitken bae1b0be72 Added action to retry registration 2023-07-11 18:06:42 +01:00
Matt Aitken e890ee01a3 renamed pathBuilder functions to external 2023-07-11 18:06:36 +01:00
Matt Aitken af4b0757a9 Improved spacing and copy 2023-07-11 16:30:39 +01:00
Matt Aitken 6ef62d82c4 You can add containerClassName to a Table 2023-07-11 16:27:05 +01:00
Matt Aitken 44df509b62 Added a code comment to explain the complicated breadcrumb for the extrnal trigger page 2023-07-11 15:56:18 +01:00
Matt Aitken 5d3fe2a5ea Changed paths from “triggersources” to “external” 2023-07-11 15:53:15 +01:00
Matt Aitken 076e6dce73 Cloud seed updates existing secret store values 2023-07-11 15:35:04 +01:00
Matt Aitken f745320456 Added DynamicTrigger column 2023-07-11 14:46:26 +01:00
Matt Aitken 6e64aaa1ee Better explanations of triggers 2023-07-11 14:46:21 +01:00
Matt Aitken 8b68edfc05 Get only the required DynamicTrigger info 2023-07-11 14:46:06 +01:00
Matt Aitken 0a7bae4dac Use the handle to determine if the side menu is expanded 2023-07-11 14:35:14 +01:00
Matt Aitken b925a573f3 Added paginated runs 2023-07-11 13:24:38 +01:00
Eric Allam 0012bb21ce All logs are now structured logs 2023-07-11 13:11:30 +01:00
Matt Aitken 3b3ec9fc4a Run streaming logic moved to a presenter, shared with the External Trigger run page 2023-07-11 13:04:56 +01:00
Matt Aitken 396663d65c Hooks can use passed in matches. Breadcrumb updated to be in the route 2023-07-11 12:46:39 +01:00
Eric Allam f275b47755 Fixed pnpm lock 2023-07-11 11:31:42 +01:00
Eric Allam cfb7481d7e Merge pull request #152 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-11 11:22:55 +01:00
github-actions[bot] 57fcce90d9 chore: Update version for release (next) 2023-07-11 10:22:13 +00:00
Eric Allam 2c0ea0c108 Published packages now work with 16.8 and above 2023-07-11 11:20:47 +01:00
Eric Allam e81317b72c Loosen the @trigger.dev/nextjs next version 2023-07-11 11:04:21 +01:00
Matt Aitken 686cf9dc7e Trigger registration runs displaying 2023-07-10 16:35:48 +01:00
Matt Aitken a9e7cda37d Run page turned into components so it can be shared 2023-07-10 15:47:13 +01:00
Matt Aitken eae0b8a95e The Run page now uses a component so it can be shared 2023-07-10 15:20:01 +01:00
Matt Aitken 1b65b1d596 Deleted legal pages from the app 2023-07-10 15:19:45 +01:00
Matt Aitken d85b1fe2fd Moved components to the components/run folder ready for sharing 2023-07-10 15:02:03 +01:00
Matt Aitken f00006af1b Run summary title made the same size as the others 2023-07-10 14:58:01 +01:00
Matt Aitken 75a07fe4ef RunsTable displaying for registration attempts 2023-07-10 14:40:10 +01:00
James Ritchie 946e429906 Merge pull request #151 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-10 13:44:20 +01:00
github-actions[bot] 2e5a401ff7 chore: Update version for release (next) 2023-07-10 12:42:38 +00:00
James Ritchie b8b84d8d16 CLI: Improved the endpoint prompt 2023-07-10 13:41:04 +01:00
Matt Aitken 4373538476 ClipboardField changed to spans so it can work inside a paragraph 2023-07-10 12:24:11 +01:00
Matt Aitken af79ea2f72 Triggers page now has tabs 2023-07-10 11:49:19 +01:00
Matt Aitken aab859bc20 Added scheduled path 2023-07-10 11:48:58 +01:00
Matt Aitken c692c16183 Trigger red table row and added slug to the Integration 2023-07-10 11:07:08 +01:00
Matt Aitken cb59808be2 Better type for LabelValueStack variations 2023-07-10 11:06:51 +01:00
Matt Aitken 039777bf63 Merge pull request #150 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-10 10:59:15 +01:00
github-actions[bot] 3547ec13c3 chore: Update version for release (next) 2023-07-10 09:58:47 +00:00
Matt Aitken 3763577451 CLI dev: improved spinner and made port clear in logs 2023-07-10 10:57:10 +01:00
Matt Aitken c6618049f2 Merge pull request #149 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-10 10:35:07 +01:00
github-actions[bot] 28d6aa9885 chore: Update version for release (next) 2023-07-10 09:33:29 +00:00
Matt Aitken 568786e4f6 Fix when setting the url as an option 2023-07-10 10:32:07 +01:00
Matt Aitken 2aad2d29de Early work on Trigger detail page 2023-07-10 10:16:44 +01:00
Matt Aitken 400354ee9e Improved the layout 2023-07-09 21:12:46 +01:00
Matt Aitken ea3ba78d1a Started the Triggers page 2023-07-09 20:56:33 +01:00
Eric Allam 38614ee526 Update pnpm lockfile 2023-07-09 20:43:27 +01:00
Eric Allam 15ad6bb5f8 Merge pull request #148 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-09 20:41:41 +01:00
github-actions[bot] 15f431ada6 chore: Update version for release (next) 2023-07-09 18:48:48 +00:00
Matt Aitken 5163acc6ef Plain changed to @latest
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-09 19:47:32 +01:00
Matt Aitken f9297d783a Added Plain to the integration catalog 2023-07-08 22:17:58 +01:00
Eric Allam c34a02c06f Improved OpenAI integration task errors
And also now allowing runTask.onError to also return an Error by itself if it wants to not retry the task
2023-07-08 22:14:27 +01:00
Eric Allam 61ed1fb202 Added support for output properties on tasks 2023-07-08 22:14:27 +01:00
Eric Allam 87638ba6c5 Merge pull request #147 from owen-duncan-snobel/main
Update README.md
2023-07-07 21:51:36 +01:00
owen-duncan-snobel 26b4100bb0 Update README.md
Use the permanent link to the discord
2023-07-07 15:26:34 -04:00
Matt Aitken 1157c2adf6 Merge pull request #144 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-07 19:05:26 +01:00
github-actions[bot] 8613d3288b chore: Update version for release (next) 2023-07-07 18:05:13 +00:00
Matt Aitken ab008fbdff Typeform example formId is optional 2023-07-07 19:03:17 +01:00
Matt Aitken 0b30197280 Set schema for passing in the formId 2023-07-07 19:03:17 +01:00
Matt Aitken 89a121f21e Typeform SDK getAllResponses fixed 2023-07-07 19:03:17 +01:00
Matt Aitken 045a8c56af Subtasks are now ordered correctly 2023-07-07 19:03:17 +01:00
Eric Allam d83c11db8c Add back in npm-run-all
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-07 16:39:29 +01:00
Eric Allam 7efe14b835 Logging in via github should work even after changing your email address 2023-07-07 16:34:41 +01:00
Matt Aitken 37116aecf9 Latest lockfile 2023-07-07 15:37:51 +01:00
Matt Aitken 9a606e8f2a Merge pull request #143 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-07 15:35:00 +01:00
github-actions[bot] b1e65ed500 chore: Update version for release (next) 2023-07-07 14:34:41 +00:00
Matt Aitken 26f3dbff06 Typeform: safeBodyParse webhook import fixed 2023-07-07 15:32:45 +01:00
Eric Allam 5ee0b188bd Improve the error display when a run cannot connect to an endpoint 2023-07-07 15:32:19 +01:00
Matt Aitken 4692cd6a55 Latest lockfile 2023-07-07 15:20:42 +01:00
Matt Aitken 7ad8c01853 Merge pull request #142 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-07 15:19:13 +01:00
github-actions[bot] bc27b45fd7 chore: Update version for release (next) 2023-07-07 14:18:55 +00:00
Matt Aitken 94cc28d377 Changeset: integration-kit uses webhook package 2023-07-07 15:17:32 +01:00
Matt Aitken 19e80cef3b Removed “internal-queue” from indexEndpoint 2023-07-07 15:16:18 +01:00
James Ritchie 5397cd3194 Added environment labels to the enironment and api keys help panel 2023-07-07 14:51:44 +01:00
Eric Allam f01af9c0ec Remove a bunch of unused webapp deps and upgrade packages to zod 3.21.4 2023-07-07 14:47:28 +01:00
James Ritchie a288010d02 Added a new help panel to the api and endpoints page 2023-07-07 14:20:35 +01:00
James Ritchie b9a7a1c32b Label component now uses the correct <label> html element 2023-07-07 14:20:35 +01:00
James Ritchie 65b9a0dce5 Improved the Header component to make it easier to add more props 2023-07-07 14:20:35 +01:00
Eric Allam 7464006e19 Associated trigger sources and dynamic triggers with their registration job 2023-07-07 13:47:19 +01:00
Matt Aitken 590d56b7e7 Merge pull request #141 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-07 12:18:57 +01:00
github-actions[bot] c75cb1e87e chore: Update version for release (next) 2023-07-07 11:16:51 +00:00
Matt Aitken 597b2f4a6f Plain example Job 2023-07-07 12:15:16 +01:00
Matt Aitken 2e84c6bbb2 Plain: Added upsertCustomTimelineEntry Task and exported the components from the plain package 2023-07-07 12:15:16 +01:00
Matt Aitken 06c0cd5297 Import plain jobs file so it gets run, also alphabetized them 2023-07-07 12:15:16 +01:00
Eric Allam 79eab3d62f Cleanup unused graphile tasks 2023-07-07 11:46:56 +01:00
Eric Allam 6527723a0e Refactor index endpoint to work sequentially so we can add associations between sources and jobs 2023-07-07 11:36:01 +01:00
Eric Allam 3d6652f132 WIP plain integration 2023-07-07 10:59:36 +01:00
Matt Aitken da5d9779d4 Check if the Highlight id is defined before attempting to send the error 2023-07-06 21:03:20 +01:00
Matt Aitken 865399e753 Enabled tracing so we can track down errors between frontend and backend 2023-07-06 20:56:50 +01:00
Matt Aitken 960ea6c8dd Removed the throw button from the NavBar… obvs should never have been committed ;) 2023-07-06 20:56:35 +01:00
Matt Aitken 39ab48f0cb Highlight server-side error tracking 2023-07-06 20:45:20 +01:00
Matt Aitken 7341b4cf61 Highlight identifies users 2023-07-06 20:45:00 +01:00
Matt Aitken 28c5acc6af Added Highlight to the project, with basic client-side tracking 2023-07-06 19:34:53 +01:00
Matt Aitken 4366eefc66 Removed unused import 2023-07-06 19:34:05 +01:00
Matt Aitken cb95e761c1 Added an error boundary to the _app route 2023-07-06 19:33:32 +01:00
Matt Aitken 7136748463 Added an error boundary to org 2023-07-06 19:29:42 +01:00
Matt Aitken b0cacfd75c Added an error boundary to project 2023-07-06 19:29:32 +01:00
Matt Aitken 81f03dac79 Better error when a job isn’t found 2023-07-06 19:29:17 +01:00
Matt Aitken e37d1eadcd Breadcrumb null checks in case error boundaries are hit deep in the app 2023-07-06 19:29:00 +01:00
Matt Aitken 23fb310374 Reusable ErrorDisplay 2023-07-06 19:28:36 +01:00
Matt Aitken 797a1732d2 Organize imports on ProjectSideMenu 2023-07-06 19:08:06 +01:00
Matt Aitken c405a417e9 If an error boundary is hit the meta function can return undefined… 2023-07-06 19:07:46 +01:00
James Ritchie 808deb1d77 Added data attributes to the side menu items 2023-07-06 17:50:44 +01:00
Eric Allam 6ac1473ec3 Merge pull request #139 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-06 15:31:53 +01:00
github-actions[bot] 9c183abf4b chore: Update version for release (next) 2023-07-06 14:27:36 +00:00
Eric Allam 33c33faae9 Adding the typeform integration to the catalog 2023-07-06 15:26:02 +01:00
Matt Aitken 4cccbc2039 PostHog updated to change hooks, also added “job” group 2023-07-06 14:58:29 +01:00
Matt Aitken cc061dedf8 Change hooks for User, Org, Project, Job 2023-07-06 14:58:29 +01:00
Matt Aitken 402ce2210f New hook that lets you trigger an action when an object changes 2023-07-06 14:58:29 +01:00
Matt Aitken 329c5c4070 Updated posthogjs 2023-07-06 14:58:29 +01:00
Matt Aitken 878aeb7a8c useOrganizationChanged 2023-07-06 14:58:29 +01:00
Eric Allam 3ee396d788 Adding the typeform integration with webhook support 2023-07-06 13:42:49 +01:00
Eric Allam 090037602c WIP create-integration CLI command 2023-07-06 13:42:49 +01:00
Matt Aitken bee77051e7 Added UI to guide you to fixing unconfigured integrations 2023-07-06 11:56:19 +01:00
Matt Aitken be6741a4a8 Example Job that has an unconfigured Integration (for testing) 2023-07-06 11:56:19 +01:00
Matt Aitken 3e9b440322 NamedIcon uses the new type 2023-07-06 11:56:19 +01:00
Matt Aitken dfea5bc77c The connection-alert trigger type has an amber icon so it doesn’t look like an error 2023-07-06 11:56:19 +01:00
Matt Aitken 1eef30e298 Callout uses to and supports internal and external links 2023-07-06 11:56:19 +01:00
James Ritchie e5b9a9de3f Noun’d up Job 2023-07-06 11:36:13 +01:00
Matt Aitken dfedd3a6e8 Consistently use “Log in” everywhere 2023-07-06 10:08:09 +01:00
Matt Aitken a19845b4ca Added a jsdoc markr to the source id 2023-07-06 09:32:15 +01:00
Matt Aitken 094f6f5a7a jsdocs for DynamicTrigger and DynamicSchedule changeset 2023-07-06 00:37:01 +01:00
Matt Aitken fa60edce2b jsdocs for DynamicTrigger and DynamicSchedule 2023-07-06 00:36:08 +01:00
Matt Aitken ba44652457 intervalTrigger() jsdocs 2023-07-05 20:17:09 +01:00
Matt Aitken 931be39912 cronTrigger jsdocs 2023-07-05 19:32:35 +01:00
James Ritchie 5048a27acb Capital J for Job 2023-07-05 18:27:04 +01:00
Matt Aitken 71fc615b31 Fix for the profile photo sizing being weird 2023-07-05 18:05:41 +01:00
Eric Allam 20ed4e22ef Implement the cloud private beta invite form
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-05 17:27:59 +01:00
Matt Aitken fc2d337a39 Optional trailing icon on a <TextLink> 2023-07-05 17:22:53 +01:00
Matt Aitken 31d96f3862 External icon uses the small version 2023-07-05 17:22:44 +01:00
Matt Aitken 7b43853ec6 Help content for the Job page 2023-07-05 17:11:45 +01:00
Matt Aitken 40fa913272 TextLink can have a to or an href 2023-07-05 17:10:34 +01:00
Matt Aitken cdd5482aad Capitalized Runs 2023-07-05 17:10:17 +01:00
Matt Aitken 4a3fa20ee7 Export the callout styles 2023-07-05 17:10:10 +01:00
Matt Aitken d49ed4cd47 Fix for div inside paragraph error 2023-07-05 17:09:53 +01:00
James Ritchie db3cf77f5b Updated the pagination buttons style 2023-07-05 17:08:35 +01:00
James Ritchie c4a08961d6 Added a Help Panel to the Jobs list page 2023-07-05 17:08:35 +01:00
James Ritchie 5ba1643d46 Added a new qr code named icon 2023-07-05 16:57:33 +01:00
Eric Allam d189f425e8 Limit access to the cloud product to people who have invite codes 2023-07-05 16:31:41 +01:00
Matt Aitken 0fe6fb83ac The test help panel is open when you load the page 2023-07-05 16:09:20 +01:00
Matt Aitken f15ae41f48 Help lightbulb is always yellow 2023-07-05 16:09:20 +01:00
Eric Allam 46a07fc72e Merge pull request #138 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-05 15:59:30 +01:00
github-actions[bot] 83af317739 chore: Update version for release (next) 2023-07-05 14:57:17 +00:00
Eric Allam f4db1b2735 @trigger.dev/cli init - Create a better file structure 2023-07-05 15:54:58 +01:00
Eric Allam 6d4922f419 api.trigger.dev is now the default cloud url 2023-07-05 14:47:41 +01:00
Eric Allam 6af098ee8a Default the apiUrl to cloud.trigger.dev 2023-07-05 12:29:48 +01:00
Eric Allam 1dcb2ebcac Update pnpm lock file 2023-07-05 12:25:10 +01:00
Eric Allam f65cb463cc Merge pull request #137 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-05 12:20:43 +01:00
github-actions[bot] 2b4ce97f8a chore: Update version for release (next) 2023-07-05 11:12:37 +00:00
Eric Allam 25abf319ab PageInfoProperty not puts the value inside a paragraph even if it’s a react node
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-05 12:11:12 +01:00
James Ritchie 77807ab42a Changed ‘Clients’ to ‘Endpoints’ on the API keys page and reordered URL in table 2023-07-05 11:38:06 +01:00
Eric Allam f21990b14f Removed the datetime logging
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-05 11:36:44 +01:00
Eric Allam 1873d10e95 Normalize the whitespace characters in formatted date times 2023-07-05 11:13:26 +01:00
Matt Aitken 32ff3f3136 @trigger.dev/github: Fixed some properties that had API urls instead of HTML urls 2023-07-05 11:12:27 +01:00
Matt Aitken 354b0aefb0 “This Run returned nothing.” 2023-07-05 10:59:37 +01:00
Matt Aitken aaa70a9aab eventTrigger() jsdocs 2023-07-05 10:59:37 +01:00
Eric Allam 3b90739087 Rework the DateTime component to use a Fragment and render the correct datetime timezone in a useEffect 2023-07-05 10:51:08 +01:00
Matt Aitken acaae993a5 Run context jsdocs 2023-07-04 22:55:49 +01:00
Eric Allam a74f0322e2 Attempt to fix the prisma “Transaction already closed: Could not perform operation” error
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
- Removes the transaction stuff from StartRunService (can try putting it back more granularly)
- Uses $transaction in TestJobService
- Better queue names for the startRun and deliverEvent worker job
2023-07-04 22:11:53 +01:00
Matt Aitken 1a0286f6b0 Run pnpm i 2023-07-04 18:52:54 +01:00
Matt Aitken 64182483e2 Merge pull request #136 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-04 18:37:46 +01:00
github-actions[bot] 87a25fba62 chore: Update version for release (next) 2023-07-04 17:34:44 +00:00
Matt Aitken 12803536fa OpenAI integration: listModels returns the response.data instead of response.data.data 2023-07-04 18:33:27 +01:00
Matt Aitken f160b34b34 isTriggerError jsdocs 2023-07-04 16:28:58 +01:00
Matt Aitken cca7da9da2 Better docs for io.try 2023-07-04 16:15:47 +01:00
Matt Aitken 01cf5f3bdc io.try jsdocs 2023-07-04 16:14:31 +01:00
Matt Aitken 33a928a9ea Removed new job examples from general 2023-07-04 15:30:56 +01:00
Matt Aitken c83443a41a io.runTask and io.registerTrigger jsdocs 2023-07-04 15:30:06 +01:00
Eric Allam 374007bffd Fixed incorrectly scoping job test runs to the specific selected project
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-07-04 15:23:19 +01:00
Eric Allam 092382f319 Cleanup some of the date times 2023-07-04 15:14:45 +01:00
Eric Allam 79a0532e1d Handle OS signals in the docker container
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
2023-07-04 14:36:59 +01:00
Eric Allam 56c7c8b1ee Better handle interactive transaction errors and adding increased timeouts 2023-07-04 14:36:59 +01:00
Matt Aitken 722fe7b71e registerCron and unregisterCron jsdocs 2023-07-04 12:48:32 +01:00
Eric Allam 759793b2e3 Fix hydration errors by using the LocaleProvider for all rendered dates, and always use UTC to prevent timezone mismatches 2023-07-04 12:36:42 +01:00
Matt Aitken 99c6cd0371 io.registerInterval and io.unregisterInterval jsdocs 2023-07-04 11:22:28 +01:00
Eric Allam 9fbc5ab8de Adding logging to investigate hydration errors 2023-07-04 11:09:47 +01:00
Eric Allam 75ac2c9961 Scheduled triggers are now disabled on dev env by default
Also added pk api key to the environments now
2023-07-04 10:59:05 +01:00
Eric Allam 87330dd863 Merge pull request #135 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-04 10:50:18 +01:00
github-actions[bot] 38fe9302cf chore: Update version for release (next) 2023-07-04 09:36:25 +00:00
Eric Allam 33a455c593 pnpm i 2023-07-04 10:34:29 +01:00
Eric Allam 37db0ac58d Remove @trigger.dev/internal changeset 2023-07-04 10:33:00 +01:00
Eric Allam 2cbf50b1cc @trigger.dev/sdk: deliverAt and timestamp event properties are now dates 2023-07-04 10:32:08 +01:00
Matt Aitken e26923eb19 backgroundFetch jsdocs 2023-07-04 10:31:44 +01:00
Eric Allam 3e63bcfb11 Merge pull request #134 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-03 22:50:55 +01:00
github-actions[bot] 1e1c18c4a1 chore: Update version for release (next) 2023-07-03 21:49:48 +00:00
Eric Allam 953e7fc918 Allow scheduled jobs to have their schedule updated
Also added human readable cron property to cron triggers
2023-07-03 22:48:03 +01:00
Matt Aitken 8e147dbe0c io.sendEvent jsdocs 2023-07-03 19:19:56 +01:00
Matt Aitken 86dbd5d1dc Added JSdocs for io.wait and io.logger 2023-07-03 19:02:58 +01:00
Eric Allam e85ecfacba Remove the commented out jobs 2023-07-03 17:49:00 +01:00
Eric Allam f210532870 @trigger.dev/slack: Added joinConversation task, and automatically try and join a public conversation if the bot is not in it when posting a message 2023-07-03 17:48:14 +01:00
James Ritchie 6c9ca686cb Tweaked callout icon margin 2023-07-03 16:39:21 +01:00
James Ritchie 35b556d4a3 Using the path builder for URLs on the Jobs page 2023-07-03 16:39:21 +01:00
James Ritchie c83339404a Using the path builder for the integration docs URL 2023-07-03 16:39:21 +01:00
James Ritchie 4172def1a3 Added a docs root path to the path builder 2023-07-03 16:39:21 +01:00
James Ritchie c99481ea8d Added a callout to link to the docs 2023-07-03 16:39:21 +01:00
Matt Aitken a11ddf6564 Added JSDocs related to logging 2023-07-03 16:21:14 +01:00
Matt Aitken 917a70fbe9 Docs for the Job constructor() 2023-07-03 16:12:21 +01:00
Eric Allam 486d6818ba SDK: IO Logging now respects the job and client logLevel, and only outputs locally when ioLogLocalEnabled is true 2023-07-03 16:00:18 +01:00
Matt Aitken 807b9d4c45 SDK changeset: Added jsdocs for TriggerClient() and sendEvent() 2023-07-03 15:37:36 +01:00
Matt Aitken 0013e78b1a CLI changeset: Export the client from the generated code and added code comments 2023-07-03 15:37:25 +01:00
Matt Aitken 9dd46c83fd Added code comments to the CLI generated code, and exported the client 2023-07-03 15:35:40 +01:00
Matt Aitken 1eb6bb8aa9 Added JSDocs for TriggerCient() and client.sendEvent() 2023-07-03 15:35:40 +01:00
Eric Allam 6c86946614 SDK: Fixes issue with PING response
CLI: improves how the dev command handles register errors, also doesn’t create a tunnel when hitting local trigger.dev, and improves the dev command output
2023-07-03 15:33:44 +01:00
Eric Allam 612b016a15 When registering a schedule source < 60 seconds, make it 60 seconds 2023-07-03 14:00:46 +01:00
Eric Allam be8beacaec chore: update to Remix 1.18.1 2023-07-03 13:53:38 +01:00
Eric Allam 4d316c5524 Fixed the OAuth2 callback urls by constructing URL using x-forwarded-proto header 2023-07-03 13:47:58 +01:00
Eric Allam 7fee5d6a87 Remove logging of headers and replace integration list date with DateTime component 2023-07-03 13:26:53 +01:00
Eric Allam 0dd1aa5a5b Log out the server locale context 2023-07-03 13:11:32 +01:00
Eric Allam ed65ba4a73 isManagedCloud should be true when in the test cloud 2023-07-03 11:53:23 +01:00
Matt Aitken d39020370c Merge pull request #133 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-07-03 11:43:28 +01:00
github-actions[bot] c18ba11819 chore: Update version for release (next) 2023-07-03 10:29:42 +00:00
Matt Aitken 5fbd7226eb Changeset: @trigger.dev/cli: Added retrying and better messaging 2023-07-03 11:28:22 +01:00
Matt Aitken c9e27fd586 Improved the loading state of the CLI dev command. Fail after 10 connection attempts 2023-07-03 11:27:36 +01:00
Matt Aitken 51b80eb09b Deleted old CLI createProject file 2023-07-03 11:27:22 +01:00
Matt Aitken f409e9f329 Improved the messaging when it’s connecting with a retry 2023-07-02 18:54:25 +01:00
Matt Aitken 304e6aaad5 Only triggers a refresh when a relevant file is changed, retries with exponential backoff 2023-07-02 18:45:34 +01:00
Eric Allam 3c5d02043e Merge pull request #132 from triggerdotdev/changeset-release/main 2023-06-30 22:07:19 +01:00
github-actions[bot] 63980f63d4 chore: Update version for release (next) 2023-06-30 18:45:02 +00:00
Eric Allam facd2b2131 Update lockfile 2023-06-30 19:43:20 +01:00
Matt Aitken 25452588cc Update the sdk version in peer dependencies of @trigger.dev/nextjs 2023-06-30 18:05:53 +01:00
Matt Aitken 195d8c42fc Updated posthog-js to the latest 2023-06-30 18:02:03 +01:00
Matt Aitken fe04b9d32d Next.js changeset: adaptors no longer take an options object 2023-06-30 17:44:55 +01:00
Matt Aitken d03b3aeb5f Latets lockfile 2023-06-30 17:29:04 +01:00
Matt Aitken 2ee33e70f7 Fixed Slack help line highlighting 2023-06-30 17:25:57 +01:00
Matt Aitken e9209629f7 Show contextual help for an Integration 2023-06-30 17:24:55 +01:00
Matt Aitken fa1e6bf5e6 The new fields from the Integration catalog are now in the database 2023-06-30 17:24:40 +01:00
Matt Aitken 93c3b10bf7 Improved the help text some more
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-06-30 15:43:45 +01:00
Matt Aitken 56cb2e3b07 Updated the in-app quick start instructions 2023-06-30 15:38:40 +01:00
Eric Allam eabfb2457a Remove pushing to ECR 2023-06-30 15:35:20 +01:00
Eric Allam 317ab442ee Merge pull request #131 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-06-30 15:12:43 +01:00
github-actions[bot] 2b24b36da6 chore: Update version for release (next) 2023-06-30 14:10:09 +00:00
Eric Allam 161d59d01d Added better Next Steps in the init cli command 2023-06-30 15:07:46 +01:00
Eric Allam 821b75ed26 Merge pull request #130 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-06-30 14:30:38 +01:00
github-actions[bot] 1f901e68d3 chore: Update version for release (next) 2023-06-30 13:27:31 +00:00
Eric Allam 46d94a6a8f Fixed type errors 2023-06-30 14:26:07 +01:00
Eric Allam 44c2146505 Merge pull request #129 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-06-30 14:14:32 +01:00
Matt Aitken ec2f1f5931 Support for Integrations that are incomplete on the integrations page 2023-06-30 14:13:23 +01:00
Matt Aitken e86c59f4ec If logging is on show Posthogs logs 2023-06-30 14:13:23 +01:00
James Ritchie 6df6813a17 Styled scroll bar for the test json 2023-06-30 14:06:10 +01:00
James Ritchie f73679e2a6 Updated help image 2023-06-30 14:06:10 +01:00
Eric Allam 68b866921a Remove triggering a test deploy on publishing 2023-06-30 13:48:08 +01:00
James Ritchie 35364d615a Custom scrollbars now on the Job and Project navbar menus 2023-06-30 13:18:13 +01:00
Matt Aitken f64dd2a99c Added nice scrollbar, commented out missing integration stuff for now 2023-06-30 12:56:10 +01:00
Matt Aitken a309a75a4d NamedIcon now gives autocomplete in the editor (but also accepts any string) 2023-06-30 12:18:19 +01:00
Matt Aitken c2e2f7cad9 CLI: removed —tunnel param as we currently just support ngrok 2023-06-30 12:18:19 +01:00
Matt Aitken f69b92b153 Uncommented the jobs 2023-06-30 12:18:19 +01:00
Matt Aitken f8760fdd6b Moved the jobs so they’re imported and can be easily commented out 2023-06-30 12:18:19 +01:00
Matt Aitken caa4daabe2 Use the id as the temporary name 2023-06-30 12:18:19 +01:00
github-actions[bot] 67f685af26 chore: Update version for release (next) 2023-06-30 11:11:54 +00:00
Eric Allam b2a8b5653f Adding changeset for the new dev command 2023-06-30 12:10:30 +01:00
Eric Allam 9232f019e1 Fixed a couple type errors in the @trigger.dev/cli 2023-06-30 11:29:25 +01:00
Eric Allam ac371664af Better handle input for the --trigger-url option 2023-06-30 11:26:46 +01:00
Matt Aitken e4cca81124 Integrations page: added a Connections column and deal with local auth better 2023-06-30 11:11:28 +01:00
Matt Aitken d76d2b86d2 Indexing endpoints happens in a transaction 2023-06-30 11:11:28 +01:00
Matt Aitken fcd2d6eea2 Integrations now have a setupStatus and can be missing fields 2023-06-30 11:11:28 +01:00
Matt Aitken 067064d19c Include Slack jobs 2023-06-30 11:11:28 +01:00
Matt Aitken 52cdfb98a4 Added extra error checking to the refresh endpoint call 2023-06-30 11:11:28 +01:00
Eric Allam 41261afcc4 Fix the pnpm lock file AGAIN 2023-06-30 11:10:13 +01:00
James Ritchie 77f71fdeb7 WIP adding 2 links below the api list 2023-06-30 11:09:15 +01:00
James Ritchie ce0032e7e5 Minor copy tweaks 2023-06-30 10:33:05 +01:00
Matt Aitken c97ca350ad The endpoint gets automatically refreshed when files are changed, with a throttle 2023-06-29 22:19:55 +01:00
Matt Aitken 90abcb2cf7 Improved messages 2023-06-29 21:53:16 +01:00
Matt Aitken 8626172faa Installed packages 2023-06-29 21:53:09 +01:00
Matt Aitken 44ef97c656 Set the nextjs-example packages to workspace again 🤦‍♂️ 2023-06-29 21:53:05 +01:00
Matt Aitken 7661fe5309 CLI dev command is creating a tunnel and attempting to connect to the API 2023-06-29 21:29:28 +01:00
Matt Aitken beb02c871d Added the CLI to the nextjs-example project 2023-06-29 21:12:21 +01:00
Matt Aitken 8a47320272 WIP on dev CLI command 2023-06-29 20:32:07 +01:00
Matt Aitken 114c8990a3 Change the main header to h1 to stop eslint complaining 2023-06-29 19:34:00 +01:00
Eric Allam 7e2d48ac6a Adding SDK changeset for trigger client url 2023-06-29 18:26:53 +01:00
Eric Allam dbb6667889 Couple of changes for matt 2023-06-29 18:25:31 +01:00
Eric Allam 29a02131d2 WIP converting the init into a multi-command CLI to support dev 2023-06-29 18:15:19 +01:00
James Ritchie 5d887f1cfb Improved the sheet style 2023-06-29 17:29:46 +01:00
James Ritchie 18f0e73ed4 Added yarn and pnpm options for installing the package 2023-06-29 16:41:19 +01:00
James Ritchie c4c1425c9b WIP making the 2 styles of dropdowns similar. Bare minimum for now for launch. 2023-06-29 15:55:15 +01:00
James Ritchie 00bb3934ad import cleanup 2023-06-29 15:27:59 +01:00
James Ritchie 324096e14e typo 2023-06-29 15:27:48 +01:00
James Ritchie 9cad2bb308 scopes title style update 2023-06-29 15:15:13 +01:00
James Ritchie eec537135a fixed radio button alignment 2023-06-29 15:13:04 +01:00
James Ritchie 53e42d3350 Integration page layout now uses 2 and 1 col grid layout 2023-06-29 15:01:00 +01:00
James Ritchie e74122977a logo alignment fix 2023-06-29 15:00:10 +01:00
James Ritchie f32c3ebe2c higher res help images 2023-06-29 14:48:58 +01:00
James Ritchie d07ac4fef0 Added a callout link to the docs 2023-06-29 14:42:49 +01:00
James Ritchie 183761b01f Aligned the callout icon top 2023-06-29 14:42:39 +01:00
James Ritchie 361ef70ce8 api key fields not fullwidth 2023-06-29 14:42:31 +01:00
James Ritchie 2bac0a4e5b Added content to the Test help panel and made the -t dynamic 2023-06-29 14:35:34 +01:00
James Ritchie b89a68bb9c Added a hook for appOrigin 2023-06-29 14:35:34 +01:00
James Ritchie 496dadebbd Fixed the page layout to work with 1 or 2 col grid layout 2023-06-29 14:35:34 +01:00
Eric Allam 155a4eecd4 Merge pull request #128 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-06-29 14:02:45 +01:00
github-actions[bot] 5eec1b6f7b chore: Update version for release (next) 2023-06-29 12:39:46 +00:00
Eric Allam e2ce9472cf @trigger.dev/init: a number of improvements
- Detect middleware usage and warn about how it could conflict with Trigger.dev and with a link to the docs
- Lookup package versions and use the latest versions
- Better error messages when registering an endpoint doesn't work
2023-06-29 13:37:58 +01:00
James Ritchie 06f0b69cfb Small copy correction 2023-06-29 11:52:06 +01:00
James Ritchie 0ae43fde72 Added pnpm and yarn CLI install options 2023-06-29 11:50:17 +01:00
James Ritchie 32f5b7e5c4 Updated the ngrok image 2023-06-29 11:50:04 +01:00
James Ritchie e3a804ca64 Added mac and windows tab options to the ngrok install step 2023-06-29 11:07:48 +01:00
James Ritchie 6a3ee289b3 Styled the client tabs component 2023-06-29 11:07:48 +01:00
James Ritchie 02a8605fec step number takes a classname 2023-06-29 11:07:48 +01:00
James Ritchie dbd72e6bbf Added some margin to the bottom of the scopes list so it doesn’t crop the last entries 2023-06-29 11:07:48 +01:00
Matt Aitken d629c95daf Added Resend to integrations list, got rid of Airtable (for now) 2023-06-29 10:52:55 +01:00
Eric Allam 04d6e8e7f0 Set the package manager to pnpm 7.18.1 2023-06-29 10:35:22 +01:00
James Ritchie 7caf95158d Improvements to the Jobs help text 2023-06-29 10:08:52 +01:00
James Ritchie 8245448f29 Added a new image for the Jobs help text 2023-06-29 10:08:52 +01:00
Matt Aitken 4d85bcd60e OAuth slug/id field is now visible (must be unique, errors if it’s not) 2023-06-28 22:43:13 +01:00
Matt Aitken d8d156adac Connect integration button now locked to the bottom of the sheet 2023-06-28 22:07:48 +01:00
Matt Aitken 7d02c84c47 Latest package install 2023-06-28 22:07:32 +01:00
Matt Aitken a5d70b8c37 Added Slack jobs file 2023-06-28 22:00:08 +01:00
Matt Aitken d42cd9ffac New star sends Slack message 2023-06-28 22:00:00 +01:00
Matt Aitken 1b19c83998 Changesd “Slug” to “ID” on the integration page. We call it id in the code 2023-06-28 19:21:12 +01:00
Matt Aitken c0be8bef23 Added ID to the connected integrations list 2023-06-28 19:21:12 +01:00
James Ritchie 90bc2d0b60 Added more brand colours to the confetti 2023-06-28 18:00:45 +01:00
Eric Allam 1c747f69f5 Fixing pnpm lock once again 2023-06-28 17:57:28 +01:00
Eric Allam 57914c7488 Merge pull request #127 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-06-28 17:56:11 +01:00
James Ritchie 1939222d31 Obfuscate the API key in the input 2023-06-28 17:55:44 +01:00
James Ritchie c29f5fab7a Clipboard component can now be full width or fit the content (default is full width) 2023-06-28 17:55:44 +01:00
James Ritchie adb2cda614 Copy updates to the Job help panel 2023-06-28 17:55:44 +01:00
James Ritchie c462441f9e Added a todo for the confetti 2023-06-28 17:55:44 +01:00
James Ritchie 2681f6897d Added some confetti to the Jobs page 2023-06-28 17:55:44 +01:00
github-actions[bot] 2322c67aff chore: Update version for release (next) 2023-06-28 16:55:39 +00:00
Eric Allam f645663fd8 Fixed the lockfile 2023-06-28 17:54:18 +01:00
Eric Allam f2f4d4b827 @trigger.dev/sdk, webapp: Adding more granular error messages around unauthorized requests 2023-06-28 17:53:40 +01:00
Eric Allam 85108cfcb5 @trigger.dev/init: Remove the localhost default for endpoint URL 2023-06-28 17:11:35 +01:00
Matt Aitken 308bd355e2 ClipboardField allows passing in a secure string 2023-06-28 17:05:05 +01:00
Matt Aitken 4ab032c717 Latest lockfile 2023-06-28 17:04:56 +01:00
Eric Allam 17a117d1ee Merge pull request #126 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-06-28 16:53:29 +01:00
github-actions[bot] bc43cc232d chore: Update version for release (next) 2023-06-28 15:40:08 +00:00
Eric Allam 94ae9e65f4 Fixed an issue in @trigger.dev/init that cause environment variables to be incorrectly added to .env.local 2023-06-28 16:38:51 +01:00
James Ritchie 2ed7158cf1 Fleshed out the ngrok section some more 2023-06-28 16:14:41 +01:00
James Ritchie 9d8a21a3de Added an ngrok image 2023-06-28 16:14:41 +01:00
Eric Allam d313eaa742 Update the performRunExecution import 2023-06-28 15:50:02 +01:00
Eric Allam c5d91e7cca Adding the resend package and fixing issues with the webapp 2023-06-28 15:48:23 +01:00
James Ritchie cc668a1624 Added a refresh page button 2023-06-28 15:34:31 +01:00
James Ritchie d17173ec0a Added another namedIcon 2023-06-28 15:34:21 +01:00
James Ritchie ebcd886d20 More Jobs help content 2023-06-28 15:15:48 +01:00
James Ritchie 4976bd1889 Show a callout link to the docs when you have 0 or >0 Jobs 2023-06-28 15:15:48 +01:00
James Ritchie 9da6d92fb3 useEnvironments hook now works as intended 2023-06-28 15:15:48 +01:00
Eric Allam 9dee5429d5 Move error formatting to a server file 2023-06-28 14:28:11 +01:00
James Ritchie ebe90aac5c WIP writing the setup Project help text 2023-06-28 14:08:35 +01:00
James Ritchie 289d69c79d Show 3 different CTAs for creating a Job depending on how many Jobs you currently have 2023-06-28 14:08:35 +01:00
James Ritchie 5bdaf4f662 Added a new namedIcon 2023-06-28 14:08:35 +01:00
James Ritchie 67f47bc3df Removed the Jobs skeleton and added a dashed outline version 2023-06-28 14:08:35 +01:00
James Ritchie 67ddd76ff3 Optionally set an isOpen conditional for when the Help panel is toggled open 2023-06-28 14:08:35 +01:00
James Ritchie 95de883879 Updated the terms links 2023-06-28 14:08:35 +01:00
James Ritchie 3227da122e If the integration connection is local, don’t show the irrelevant tabs 2023-06-28 14:08:35 +01:00
Eric Allam ae243c783a Merge pull request #125 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
2023-06-28 14:01:17 +01:00
github-actions[bot] eb3b7f5146 chore: Update version for release (next) 2023-06-28 12:31:20 +00:00
Eric Allam 414439cac9 Upgrade to Remix 1.18.0 and try out the new dev server 2023-06-28 13:29:46 +01:00
Eric Allam 7dacccb70e Tag the main html title with the app env 2023-06-28 13:16:15 +01:00
Eric Allam a5e1d0595e Trigger a test deploy if a push to main happens 2023-06-28 12:13:44 +01:00
Eric Allam 7e8c6e92a2 Fixed seeding the cloud user github integration connection 2023-06-28 12:07:47 +01:00
Eric Allam 24542d4e21 Adding support for trigger source in the run context 2023-06-28 12:07:47 +01:00
Eric Allam b975125af5 Merge pull request #124 from triggerdotdev/changeset-release/main 2023-06-27 19:36:36 +01:00
github-actions[bot] cc8c60605b chore: Update version for release (next) 2023-06-27 16:43:11 +00:00
Eric Allam 23adc15ce3 Fixed the broken export issue with two of the new github tasks 2023-06-27 17:41:49 +01:00
Eric Allam 7204aa0c9a Push commit hash image tag to ECR
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-06-27 16:37:39 +01:00
Eric Allam 6750429cd4 Fixed the slack env vars for oauth2User 2023-06-27 16:24:10 +01:00
James Ritchie cfe0a6cbb8 Copy changes 2023-06-27 15:44:46 +01:00
James Ritchie a9f95971e8 Added an integration button image 2023-06-27 15:44:46 +01:00
James Ritchie d7eee844b7 Callout now has a docs variant which can take an href 2023-06-27 15:44:46 +01:00
James Ritchie 4c52731d16 Exported the integration icon to use in the help text 2023-06-27 15:44:46 +01:00
James Ritchie e53447d0bf Replaced all the inline help content on the route pages with components 2023-06-27 15:44:46 +01:00
James Ritchie 53ed23ac58 Initial setup for localising the help content into one component 2023-06-27 15:44:46 +01:00
Eric Allam 226fb4a349 Fallback to using the url passed in if the appHostEnvName isn’t in the environment 2023-06-27 15:30:01 +01:00
Eric Allam d89632eb9d Create latest and tagged images if in a versioned tag 2023-06-27 14:11:16 +01:00
Eric Allam 4621196993 Revert "Try publishing to ECR using good ole fashioned aws credentials"
This reverts commit 988e753c74.
2023-06-27 13:52:43 +01:00
Eric Allam 988e753c74 Try publishing to ECR using good ole fashioned aws credentials 2023-06-27 13:51:20 +01:00
Eric Allam aa49b2ca76 Do docker commands manually in publish.yml 2023-06-27 13:37:52 +01:00
Eric Allam fdcd2fdb27 Try removing logging in to the Github Container registry 2023-06-27 13:13:40 +01:00
Eric Allam 62f94206bb Fixed CLI showing undefined when not specifying a trigger-url flag 2023-06-27 13:00:06 +01:00
Eric Allam 7b6647cfd4 Fixed syntax error with publish.yml 2023-06-27 12:44:50 +01:00
Eric Allam 73828c5db7 Add a docker/login-action for logging into ECR 2023-06-27 12:36:03 +01:00
Eric Allam e1d942bb3a Add pnpm run db:studio command to open prisma studio 2023-06-27 11:27:31 +01:00
Eric Allam a764cf64b3 Remove docker hub container push and try to fix ECR 2023-06-27 11:20:16 +01:00
Eric Allam 018d51993a Need to login to ECR before pushing 2023-06-27 10:30:11 +01:00
Eric Allam 4ce51291de Try pushing to a private ECR registry 2023-06-27 09:56:34 +01:00
Eric Allam e0cd68787d Adding publishing docker images to a public ECR registry 2023-06-27 09:40:39 +01:00
James Ritchie 6601f4c505 Deleted empty old folders and files 2023-06-26 17:59:15 +01:00
James Ritchie 6f62f0e2f1 Updated docs links to the new docs URL 2023-06-26 16:53:56 +01:00
James Ritchie c00026e203 Fixed some issues with the developing readme guide 2023-06-26 16:43:55 +01:00
James Ritchie 38ac365953 Added a database .env example file 2023-06-26 16:40:30 +01:00
James Ritchie 7cfb0f7d2d Improvements to the readme, including better headings 2023-06-26 16:17:51 +01:00
James Ritchie bae194f366 Updated the README to include a development guide 2023-06-26 15:40:17 +01:00
Eric Allam 398d95528d Adding back in multiplatform support 2023-06-26 15:33:05 +01:00
Eric Allam d1b2ee5490 Remove multi-platform for now to test something 2023-06-26 15:20:22 +01:00
James Ritchie d39b9bc060 Made the default port 3030 2023-06-26 15:10:10 +01:00
James Ritchie 0c0b7d86ee Deleted old infisical files 2023-06-26 15:10:10 +01:00
Eric Allam 03c4d9504f Cleanup the docker compose services stuff 2023-06-26 15:09:31 +01:00
Eric Allam 0737bfc5fe Add QEMU for multi-arch builds 2023-06-26 14:45:21 +01:00
James Ritchie 80b4916094 docker .env links to root .env 2023-06-26 14:45:03 +01:00
James Ritchie 00845b43b4 Renamed the .example env file and added instructions for getting your Resend API 2023-06-26 14:31:27 +01:00
James Ritchie 83a74808d5 Added an example .env 2023-06-26 13:30:34 +01:00
Eric Allam 951679cc10 Fix pnpm i 2023-06-26 12:10:55 +01:00
D-K-P 3cd95f06b2 Added new companyicons 2023-06-26 11:54:15 +01:00
Eric Allam de00fa91ae Generate db client before typecheck 2023-06-26 11:53:31 +01:00
Eric Allam 25d4f0b347 Fixed CLI typescript errors 2023-06-26 11:49:01 +01:00
Eric Allam 413aa28594 Fixed typescript error 2023-06-26 11:45:50 +01:00
Eric Allam 29e153bc54 Fixed pnpm lock file OUTDATED 2023-06-26 11:42:35 +01:00
Eric Allam 7b1a2f60d0 Adding changesets workflow to automatically version/release package changes 2023-06-26 11:41:40 +01:00
Matt Aitken 2302626703 Added line highlighting to the API Key code samples 2023-06-26 11:18:26 +01:00
Matt Aitken 28b3193743 Docs links use the pathBuilder 2023-06-26 11:18:26 +01:00
Eric Allam 0fdf8d0f6a Another fix for the CI docker build caching 2023-06-26 11:17:09 +01:00
D-K-P 890c93a820 Added Resend 2023-06-26 11:16:35 +01:00
Eric Allam 3bfcde99dc Update LICENSE to Apache 2.0 2023-06-26 10:42:07 +01:00
Eric Allam d5a8d19b66 Trying to fix the cache 2023-06-26 10:18:39 +01:00
Eric Allam 7a3a9a6f7c CI: Docker improvements
- Multiple arches in the docker image
- Use the docker@metadata-action github action to create the tags and labels
- Push to Docker Hub and Github Container Repository
2023-06-24 10:15:52 +01:00
Eric Allam a816c52699 Update docs link 2023-06-23 17:32:10 +01:00
Eric Allam bdd3157a45 Merge branch 'main' into dev-q22023 2023-06-23 17:27:48 +01:00
Eric Allam 7337e75d1e Add link to the fly.io repo 2023-06-23 17:10:40 +01:00
Eric Allam b39f1694c3 Fixed the version of the @trigger.dev/nextjs package 2023-06-23 17:02:39 +01:00
Eric Allam b3a919293c Update the devDependency on nextjs to be more permissive 2023-06-23 16:59:55 +01:00
D-K-P 927eb1d0ba changed green to toxic 2023-06-23 15:27:07 +01:00
D-K-P b812c6d984 Updated gradient 2023-06-23 15:25:16 +01:00
Eric Allam 6a768c3f84 Create LICENSE 2023-06-23 15:11:00 +01:00
Eric Allam 83f4e65bc3 Remove license and update README 2023-06-23 15:08:37 +01:00
Eric Allam ad33abe6bc Use the REMIX_APP_PORT for the Remix app server port when developing locally 2023-06-23 14:53:41 +01:00
Eric Allam 2e1624235c Improved the CLI prompts 2023-06-23 14:41:58 +01:00
Eric Allam 647f09f2f3 Remove staging from flightcontrol.json and only deploy prod on pushes to v1 branch 2023-06-23 12:32:35 +01:00
Eric Allam d0ad2bd38b Fixed the init help text 2023-06-23 12:22:35 +01:00
Eric Allam 3ae4e11bbe Changeset: version 2023-06-23 12:20:20 +01:00
Eric Allam 6f19a3e750 Fix for the init CLI for next.js projects that use the src directory 2023-06-23 12:20:06 +01:00
Eric Allam e8442eedad Commenting these out for now because they break build 2023-06-23 11:59:30 +01:00
Eric Allam a606db25f6 Changeset: version 2023-06-23 11:41:11 +01:00
Eric Allam 82f715bab6 Removed cli package from todo-example 2023-06-23 11:40:53 +01:00
Eric Allam 28914b878c Adding the @trigger.dev/init CLI package 2023-06-23 11:40:26 +01:00
Eric Allam 3c2f1709cc Remove welcome email (need to add back in for cloud) 2023-06-22 22:57:09 +01:00
Eric Allam 40ffde33b6 Add isManagedCloud feature, remove sentry, and require custom oauth app on self-hosting 2023-06-22 22:48:57 +01:00
Eric Allam 8184c21a80 Build the oauth2 callback url from the server (and use env.APP_ORIGIN) 2023-06-22 21:54:01 +01:00
Eric Allam 5c13d0c2df Fixed pnpm lock file again 2023-06-22 21:37:09 +01:00
Eric Allam fd8fd22bdc Fixed https missing from url 2023-06-22 21:35:49 +01:00
Eric Allam 31d8669c9d Make github auth optional and better name the env vars 2023-06-22 17:42:51 +01:00
D-K-P 59e1fbf565 Removed import 2023-06-22 17:10:10 +01:00
D-K-P 80c9bb0317 Added new components to the to do page and lots of improvements 2023-06-22 17:09:42 +01:00
Matt Aitken 6c71bad8ef Update Job in app folder to use owner + repo 2023-06-22 17:08:10 +01:00
Eric Allam 0e82f6287a Try and fix the fly entrypoint issues 2023-06-22 16:54:14 +01:00
Matt Aitken 52aacc1e1d OpenAI: createEmbedding 2023-06-22 16:29:00 +01:00
Eric Allam 909b4a5432 More fly work 2023-06-22 16:26:55 +01:00
Matt Aitken b48b724c01 OpenAI: createImage 2023-06-22 16:12:02 +01:00
Matt Aitken 91ac1567d4 OpenAI: createEdit 2023-06-22 16:12:02 +01:00
Eric Allam c034035aba Working on deploying to fly 2023-06-22 16:09:08 +01:00
Matt Aitken cd852f9563 OpenAI: retrieveModel 2023-06-22 15:51:31 +01:00
Matt Aitken 010ac6e5b6 OpenAI tasks: createFineTune, listFineTunes, retrieveFineTune, cancelFineTune, listFineTuneEvents, deleteFineTune 2023-06-22 15:45:09 +01:00
Eric Allam 0a3cf46068 Try this for publishing public images 2023-06-22 15:17:27 +01:00
Matt Aitken 2bbeeb860d Fixed gitignore for tmp folders 2023-06-22 15:10:19 +01:00
Matt Aitken b74045fe55 Ignore tmp folders 2023-06-22 15:10:19 +01:00
Matt Aitken a940102d83 Max lines before scrolling on the task input is 35 lines 2023-06-22 15:10:19 +01:00
Matt Aitken 74e9d5eb3c New OpenAI tasks: listModels, createFile, listFiles, createFineTuneFile 2023-06-22 15:10:19 +01:00
Matt Aitken b256d66374 Subtasks should always be set to last=false so you get the line at the bottom 2023-06-22 15:10:19 +01:00
Matt Aitken 5b23e60b04 Created an OpenAI example file 2023-06-22 15:10:19 +01:00
Eric Allam 4cd71decbc Starting to build fly demo 2023-06-22 15:03:13 +01:00
Eric Allam 1ba372e2c3 Unbreak the build 2023-06-22 14:33:08 +01:00
Eric Allam d88f8c87f6 Don’t cancel in progress runs 2023-06-22 14:31:52 +01:00
D-K-P ff02ab2aa0 Updated pnpm 2023-06-22 14:29:33 +01:00
D-K-P 38c71bdb3b Added logo / to do icon and style updates 2023-06-22 14:29:33 +01:00
Eric Allam b68ce9695c Try and fix the cache-from cause of Adam 2023-06-22 14:28:15 +01:00
Eric Allam 0d3e7bd996 Use docker/build-push-action 2023-06-22 14:17:30 +01:00
Eric Allam 1e0acf4ce8 Add back in the build:server script to webapp 2023-06-22 14:05:47 +01:00
Eric Allam b9e8e084a8 chmod the wait-for-it script 2023-06-22 13:54:47 +01:00
Eric Allam 1701d4253d Remove prisma config in package.json 2023-06-22 13:53:46 +01:00
Eric Allam ff60b71321 Quiet npx output 2023-06-22 13:48:19 +01:00
Eric Allam f68439b936 Adopt buildjet for faster CI builds 2023-06-22 13:46:34 +01:00
D-K-P a3fe3944b7 Style updates 2023-06-22 13:37:03 +01:00
D-K-P 9cf44777e1 Added to do custom input 2023-06-22 13:37:03 +01:00
D-K-P 5206c2c971 Removed shadcn input 2023-06-22 13:37:03 +01:00
Eric Allam 294fd10304 Use pnpm 7.18 in the docker workflow 2023-06-22 13:36:00 +01:00
Eric Allam 32650f8b9a Fix lockfile 2023-06-22 13:34:27 +01:00
Eric Allam c5d96db9a8 WIP docker github workflow 2023-06-22 13:11:43 +01:00
D-K-P d04c66006b Updated companyicons package 2023-06-22 12:03:13 +01:00
Matt Aitken d43529dce9 Added some GitHub property helpers 2023-06-22 12:02:08 +01:00
Matt Aitken 5ba95f3cbc Link to the run trigger, so it’s selected 2023-06-22 12:02:08 +01:00
Matt Aitken 7381e5b393 GitHub addIssueAssignees and addIssueLabels 2023-06-22 12:02:08 +01:00
Eric Allam b62f00dfd7 Implemented seeding the cloud based on env vars 2023-06-22 12:00:18 +01:00
Matt Aitken 95787fcc66 Make the tasks user a separate owner and repo too 2023-06-22 10:49:50 +01:00
Matt Aitken 4ef76f72dc Separate GitHub repo into owner and repo, to match official SDK/API 2023-06-22 10:49:50 +01:00
Matt Aitken 939f33e791 Added scrolling to the Jobs menu (I have a ton) 2023-06-22 10:49:50 +01:00
D-K-P e15ade91d4 Added Trigger sync card and made lots of general improvements 2023-06-21 21:54:53 +01:00
Matt Aitken 0776cc884d Pull request review 2023-06-21 19:50:20 +01:00
Matt Aitken 0ad09eb11f Pull request event 2023-06-21 19:41:33 +01:00
Matt Aitken 9e8b37c6cf Added push event 2023-06-21 19:29:02 +01:00
Matt Aitken c2839934b4 Added branch and tag events 2023-06-21 19:04:14 +01:00
Matt Aitken e2e3c3a9b3 Latest lock file 2023-06-21 19:04:03 +01:00
Matt Aitken 9b3f4bc1a3 Next generates a weird .next/package.json when running, so need to restrict example workspaces 2023-06-21 19:03:53 +01:00
Matt Aitken cf9c34950f Show more of the comment body 2023-06-21 18:44:08 +01:00
Matt Aitken d4a2927279 Fix for integration-kit issues 2023-06-21 18:43:58 +01:00
Matt Aitken 56172b1e5c Star examples 2023-06-21 18:24:38 +01:00
Matt Aitken 7def5437fd Try and bundle up the integration-kit with the github package 2023-06-21 18:24:38 +01:00
D-K-P d21e364f11 Added trigger cards wip 2023-06-21 18:05:26 +01:00
D-K-P 7c6440fd9a Added cards / input / button / accordian and updated page 2023-06-21 18:05:04 +01:00
Matt Aitken 0b61207ecf Latest installs 2023-06-21 17:55:16 +01:00
Matt Aitken fff2f40924 Added issue commented example job 2023-06-21 17:55:16 +01:00
Matt Aitken 2166929fa8 Issue commented event, not working properly because of truncate function issue 2023-06-21 17:55:16 +01:00
Matt Aitken 5aa53da864 Next.js project using the latest eslint setup that Vercel recommend 2023-06-21 17:55:16 +01:00
Matt Aitken 21d7ff2f74 Added a function to truncate a string with an ellipsis 2023-06-21 17:55:16 +01:00
Eric Allam 8bba30e290 Initial Docker and docker compose setup 2023-06-21 17:07:17 +01:00
Eric Allam fd94a32b95 Removing a bunch of old stuff 2023-06-21 17:07:17 +01:00
Matt Aitken 25f9aa8c2d Started fleshing out GitHub events with examples and more events 2023-06-21 17:00:29 +01:00
Matt Aitken 172bb4527c Export the EventSpecificationExample type so it can be used in integrations 2023-06-21 17:00:15 +01:00
Matt Aitken 8ad769569c Spaced the properties out a bit vertically 2023-06-21 16:59:55 +01:00
Matt Aitken 32eba22628 Remove old oauth files 2023-06-21 16:59:32 +01:00
Matt Aitken 8d4179b5df Improved the coming soon billing description 2023-06-21 14:49:20 +01:00
Matt Aitken b7385825b6 Added missing auth param to GitHub integration 2023-06-21 14:11:52 +01:00
Matt Aitken 5a20528cc8 @trigger.dev/github package now uses integration-kit 2023-06-21 14:02:16 +01:00
Matt Aitken 324cf161ec Added @trigger.dev/integration-kit package 2023-06-21 14:02:16 +01:00
D-K-P 9f84e77f57 Replaced the fire icon with the td triangle on the integrations page 2023-06-21 13:56:11 +01:00
Matt Aitken beaf0a9ecb Coming soon is now nicer 2023-06-21 13:09:46 +01:00
Matt Aitken fb308e8038 Sent a notification when the feedback form is submitted, even if that custoemr is already active 2023-06-21 13:04:38 +01:00
Matt Aitken d2d15dae9f Added coming soon pages 2023-06-21 13:04:26 +01:00
Matt Aitken 977f064157 Added “background” icon 2023-06-21 10:53:46 +01:00
Matt Aitken 8d23dd0186 Set the user id in Plain 2023-06-21 10:53:41 +01:00
Matt Aitken 90ae06df2a Improved the feedback form 2023-06-21 10:33:01 +01:00
D-K-P 2cf253a914 Added new integrations / icons 2023-06-21 10:18:59 +01:00
D-K-P 9e462cc329 Minor updates 2023-06-21 10:17:59 +01:00
Matt Aitken 36ae8910b6 Added the help type 2023-06-20 22:45:09 +01:00
Matt Aitken fe0ed0bc9a The Plain feedback form is working 2023-06-20 22:43:33 +01:00
Matt Aitken ec738515b7 Initial work on feedback form 2023-06-20 22:21:36 +01:00
Matt Aitken 287b6c6bc7 Remove user agent/platform logging 2023-06-20 21:04:09 +01:00
Matt Aitken aad93b9147 Updated the replacement data format 2023-06-20 20:15:47 +01:00
Matt Aitken 31176245bd Changed the format slightly, added timestamps as further examples 2023-06-20 20:15:39 +01:00
Matt Aitken da45c7e2b9 Added support for replacements in examples, added __CURRENT_DATE__ to start 2023-06-20 20:11:06 +01:00
Matt Aitken 3c73cb3fed Example payloads are now any so we can do replacements 2023-06-20 20:10:34 +01:00
Matt Aitken 275d01421e Improved Windows shortcut modifier display 2023-06-20 17:51:19 +01:00
Matt Aitken 75edfccc31 Shortcut keys are working 2023-06-20 17:45:24 +01:00
Matt Aitken 1d230d9fed Nicely formatted shortcut in buttons 2023-06-20 15:17:29 +01:00
Matt Aitken 7d87dbf2ed Updated packages 2023-06-20 14:48:10 +01:00
Matt Aitken 44467331a2 Improved the ShortcutKey display 2023-06-20 14:47:47 +01:00
Matt Aitken 29cbfd4fb3 Use ClipboardField for Integration package installation 2023-06-20 13:48:34 +01:00
Matt Aitken d946408105 Integration sheet: show “View docs” button and the description 2023-06-20 13:48:21 +01:00
Matt Aitken 6101372ba8 Added OpenAI integration 2023-06-20 13:48:04 +01:00
Matt Aitken 4993860a18 Added optional description to an integration 2023-06-20 13:47:56 +01:00
Matt Aitken 5e29119e83 You can now only show integrations in the integrations list 2023-06-20 13:38:54 +01:00
Matt Aitken fe14664cfd Moved the logo-icon to be in alphabetical order 2023-06-20 13:38:54 +01:00
Matt Aitken f871817a2f Use geometricPrecision on Company icon svgs 2023-06-20 13:38:54 +01:00
Matt Aitken 6ccacaa92e Switch labels now supported and more complete styling 2023-06-20 13:38:54 +01:00
D-K-P 24e0f04aca Updated pnpm-lock file 2023-06-20 13:34:32 +01:00
D-K-P f878d499a7 Added ToDoRow component 2023-06-20 13:34:02 +01:00
D-K-P c24cd1c02b Added HeroIcons 2023-06-20 13:34:01 +01:00
D-K-P c6028fca44 Updated Paragraph and TextStyling 2023-06-20 13:33:45 +01:00
Matt Aitken 25daa5b358 Added Switch component with small and large variants 2023-06-20 12:20:03 +01:00
Matt Aitken 0503a2a517 Moved ClipboardField into primities 2023-06-20 12:04:49 +01:00
Matt Aitken 28fd3d9b18 Fix for re-runs linking to the incorrect detail panels 2023-06-20 12:00:17 +01:00
Matt Aitken 1a9af1dee4 Fix for Retry table not having key and header row 2023-06-20 11:55:28 +01:00
Matt Aitken ce27de1af6 Removed todo that has been done 2023-06-20 11:55:16 +01:00
Matt Aitken c9d5334a38 Improved the style of the “Rerun job” popover 2023-06-20 11:51:03 +01:00
Matt Aitken bd20b7b8e0 Show the event name in the Run Trigger cell on the left 2023-06-20 11:39:44 +01:00
Matt Aitken 52f40c8c26 Only show the retries table if there was > 1 2023-06-20 11:33:05 +01:00
Matt Aitken 622dd6aba4 Show a table of Task retries if there were some 2023-06-20 11:30:07 +01:00
Matt Aitken 969a6a1f2c Fix for the final retry 2023-06-20 11:29:51 +01:00
Matt Aitken 08eab9622d Improved the webhook instruction text 2023-06-20 10:41:37 +01:00
Matt Aitken 107960b67c Endpoint sheet shows the webhook URL 2023-06-20 10:40:01 +01:00
Matt Aitken b394f5e43f ClipboardField works when full width, has scrolling if the content is too large 2023-06-20 10:39:43 +01:00
Matt Aitken 4d71a5c9d4 Refreshing endpoints is working 2023-06-20 10:26:35 +01:00
Matt Aitken 59e2216861 Streaming working for the endpoint sheet 2023-06-20 10:26:35 +01:00
Matt Aitken 2fba5da04e sse function makes it much easier to do ServerSentEvents 2023-06-20 10:26:35 +01:00
Matt Aitken efbe2ddbf7 The AbortController approach causes the stream endpoint to be called all the time 2023-06-20 10:26:35 +01:00
Matt Aitken 7f353723eb Improved the environments form/page 2023-06-20 10:26:35 +01:00
Matt Aitken a94d50f3cd Made the sheet wider 2023-06-20 10:26:35 +01:00
Eric Allam ae66e6f01a Run pnpm i 2023-06-19 17:22:53 +01:00
Eric Allam e4b0b1e305 Add support for background task operations, starting with fetch 2023-06-19 17:22:18 +01:00
D-K-P 65ca2560fc Started adding the first col to the page 2023-06-19 17:19:16 +01:00
D-K-P bdbf04efe9 Added clsx / tailwind-merge to the package.json 2023-06-19 17:18:55 +01:00
D-K-P 4b56671d2d Added tailwind config / clsx / tailwind-merge 2023-06-19 17:18:35 +01:00
D-K-P f2b190b21a Replaced to-do folder with a blank nextjs project 2023-06-19 16:38:30 +01:00
D-K-P 4f5cf931be Duplicated the nextjs example folder for the to-do app 2023-06-19 15:28:03 +01:00
D-K-P 68beefdaf2 Added new integration logos and upped the companyicons package number 2023-06-19 15:05:15 +01:00
Matt Aitken 4a52fd2edc Added errors in the form if creating the endpoint fails 2023-06-19 12:17:58 +01:00
Matt Aitken 47fdfb344d Progress displaying endpoints and editing them 2023-06-19 11:48:33 +01:00
Matt Aitken ebbbc85d7b Added a success Callout variant 2023-06-19 11:48:14 +01:00
Matt Aitken 22ff2c36d9 Open a sheet when you click a row 2023-06-16 19:33:40 +01:00
Matt Aitken 5db2a1bb84 Improved the spacing 2023-06-16 19:19:10 +01:00
Matt Aitken 8a4ae0df20 WIP on the Environment clients 2023-06-16 19:17:30 +01:00
Matt Aitken 80c3e48f5c Tables can now have onClick events 2023-06-16 19:17:11 +01:00
Matt Aitken a7244032e4 Updated the variant for the CLipboardField 2023-06-16 16:37:50 +01:00
Matt Aitken 7fc3ff26bc Rejigged database migrate deploy scripts 2023-06-16 16:30:35 +01:00
Matt Aitken 0648d230fc WIP on environment page 2023-06-16 16:30:35 +01:00
Matt Aitken 2626608200 Renamed “Environments” to “Environments & API Keys” 2023-06-16 16:30:35 +01:00
Matt Aitken 081ef45047 Deleted org environment page, they are at the Project level 2023-06-16 16:30:35 +01:00
James Ritchie 9aa9ebc23f Minor tweak to the button min width 2023-06-16 16:26:58 +01:00
James Ritchie f664a10024 Final style improvements for the clipboard component 2023-06-16 16:22:33 +01:00
James Ritchie 52beb2f012 Removed borders on the icon 2023-06-16 16:14:03 +01:00
James Ritchie 149e3c2d84 Style updates and you can now click the icon to focus the field 2023-06-16 16:06:50 +01:00
James Ritchie 223965757c Making the clipboard component work with icons and larger sizes 2023-06-16 15:04:03 +01:00
James Ritchie 27c1d2516b More variants to the clipboard field 2023-06-16 15:04:03 +01:00
James Ritchie 014a97fcdc improved the env labels 2023-06-16 15:04:03 +01:00
James Ritchie eb85cc5c14 Adding new variants to the clipboard component 2023-06-16 15:04:03 +01:00
James Ritchie b1d49d71ea Removed import 2023-06-16 15:04:03 +01:00
James Ritchie 9a0a6305e7 Added a clipboard field story 2023-06-16 15:04:03 +01:00
James Ritchie a218bce73b Added prisma migrate deploy to package 2023-06-16 15:04:03 +01:00
Eric Allam c94ca54aff Add chat completion task 2023-06-16 15:02:24 +01:00
Eric Allam 2e8cd805fd Fixed for the new integrations stuff 2023-06-16 14:49:52 +01:00
Eric Allam 1a9bb4ddc5 Fix for seeds 2023-06-16 14:49:37 +01:00
Eric Allam e7f7c0704a Revamped the integration schema and local only integrations now work in the UI 2023-06-16 14:15:17 +01:00
Matt Aitken b5e0fb0e97 Tightened up the API grid 2023-06-16 11:53:13 +01:00
Matt Aitken f555989a5c Added a full stop 2023-06-16 11:53:03 +01:00
Matt Aitken 2e0ea4520c Updated to the latest @trigger.dev/companyicons package 2023-06-16 11:41:38 +01:00
Matt Aitken 31a9164df1 Added API integration voting functionality 2023-06-16 11:32:38 +01:00
Matt Aitken b363a1e60d Remove coming soon message from the OAuth form 2023-06-16 11:32:26 +01:00
Matt Aitken e5714f9047 Call them APIs in the list 2023-06-16 11:32:13 +01:00
Matt Aitken e9b9c77edc Added a NoIntegrationSheet 2023-06-16 10:10:06 +01:00
Matt Aitken acd49994bd WIP on showing APIs we don’t yet have an integration for 2023-06-15 17:38:56 +01:00
Matt Aitken 5264674cda Improved the spacing of the LabelValueStack 2023-06-15 17:22:49 +01:00
Matt Aitken 2825925781 Removed a ton of unused imports 2023-06-15 17:22:38 +01:00
Matt Aitken 083bd7f1cf Limit the height of the run output in the left-hand column 2023-06-15 17:03:57 +01:00
Matt Aitken 3f90fe04b4 The OAuth form is back and a coming soon for end-user OAuth 2023-06-15 17:03:57 +01:00
Matt Aitken a63a247b22 The flow is now roughly setup 2023-06-15 17:03:57 +01:00
Matt Aitken 7bb589b8f7 Multiple samples for API Keys 2023-06-15 17:03:57 +01:00
Matt Aitken 7c94ea3ec5 Added CustomHelp 2023-06-15 17:03:57 +01:00
Matt Aitken 5789ae3c73 Sheet scrolling should now work properly… painful 2023-06-15 17:03:57 +01:00
Matt Aitken 95fad3deb8 API auth help 2023-06-15 17:03:57 +01:00
Matt Aitken 2b5b8d7931 Added Paragraph spacing 2023-06-15 17:03:57 +01:00
Matt Aitken 96e0fb81ae Updated packages 2023-06-15 17:03:57 +01:00
Matt Aitken e5a568f510 Improved the radio button styling 2023-06-15 17:03:57 +01:00
Matt Aitken 8cb3155ea6 WIP on new integration flow 2023-06-15 17:03:57 +01:00
Matt Aitken 52c5d93449 Added a RadioGroup component with the same variants as Checkbox 2023-06-15 17:03:57 +01:00
Matt Aitken 5e3502f589 Removed badge prop from Checkbox (it had badges already) 2023-06-15 17:03:56 +01:00
Matt Aitken f1fd36d3a1 Checkbox description style doesn’t use mono font 2023-06-15 17:03:56 +01:00
Eric Allam 9f49b7f4c0 Move prisma to an internal database package 2023-06-15 14:18:34 +01:00
Eric Allam eca89e538b Convert to useTypedRouteLoaderData and improve the hydrateDates function 2023-06-14 21:53:04 +01:00
Eric Allam bbac63e162 Use /trigger to select the trigger details pane, and no longer redirecting when you land on the run page (can just link directly to /trigger if we want to) 2023-06-14 21:42:39 +01:00
Eric Allam ed3123470a Replaced manual hydration with using remix-typedjson (fixes error on run page) 2023-06-14 18:04:28 +01:00
Eric Allam 170bda3158 Only show the retry job button when status is failed 2023-06-14 17:09:19 +01:00
Eric Allam b5a8eec650 Implement the continue run service 2023-06-14 17:03:15 +01:00
Eric Allam 817b4ed133 Endpoint registration and indexing now is only initiated outside of clients 2023-06-14 16:07:10 +01:00
Matt Aitken e4837cea9d Run left-hand scrollbar now positioned better 2023-06-14 15:48:06 +01:00
Matt Aitken e1cdeb284f Created the ContinueRunService for Eric to implement 2023-06-14 14:18:28 +01:00
Matt Aitken f195933cb6 Rerunning from scratch is working 2023-06-14 14:16:44 +01:00
Matt Aitken 6e1d91b413 Moved the ReRunPopover to a component to make the page easier to work with 2023-06-14 12:47:52 +01:00
Matt Aitken d4e39de67e WIP on Rerun/continue functionality 2023-06-14 12:46:17 +01:00
Matt Aitken 4903cfc689 Don’t let Callout icons shrink when the space is small 2023-06-14 12:45:56 +01:00
Matt Aitken 54a8e26c7c Organized imports 2023-06-14 12:02:17 +01:00
Matt Aitken 4cc9006c8e Added test help panel. Defaults open if there haven’t been any test runs yet 2023-06-14 12:00:43 +01:00
Matt Aitken bc6492b1c4 Improved the test layout so the examples are more obvious 2023-06-14 11:52:11 +01:00
Matt Aitken afd05f93fc Tried to improve the environment label but it’s a bit fooked 2023-06-14 11:52:11 +01:00
Matt Aitken e83f5e7cca Fix for DynamicTriggerIcon non camelCase attributes 2023-06-14 11:52:11 +01:00
Matt Aitken 7b8e02023e Default icon for an example is the beaker 2023-06-14 11:52:11 +01:00
Matt Aitken 3882f531cf Environment is now in the rounded rectangle so it’s consistent 2023-06-14 11:52:11 +01:00
Matt Aitken 0ce58b5c0f Better spacing for PageHeader buttons 2023-06-14 11:52:11 +01:00
Eric Allam f36a1c60f4 Changeset: version nextjs 2023-06-14 09:55:02 +01:00
Eric Allam 98fcc5d2d4 Make sure nextjs app routes have the correct types 2023-06-14 09:55:02 +01:00
Matt Aitken 6ff2ee23f8 Hide the test button if you’re on the /test page 2023-06-14 09:15:19 +01:00
Matt Aitken e1405b140f Better test layout 2023-06-14 09:13:15 +01:00
Matt Aitken 04ab709ddd Better test styling 2023-06-14 09:09:43 +01:00
Eric Allam 0736c68d77 Fixed duplicate export issue 2023-06-14 08:08:52 +01:00
Eric Allam 34ccf345cd Changeset version: implement task errors and retrying 2023-06-14 08:07:19 +01:00
Matt Aitken 605a38d8ab Trying to make a good layout for the test page 2023-06-13 18:16:07 +01:00
Matt Aitken c9fd8ccae2 Running tests is working 2023-06-13 16:33:42 +01:00
Matt Aitken 43482b1b96 Get some errors if you’ve used invalid JSON 2023-06-13 15:52:58 +01:00
Matt Aitken 81912b2530 Test page is working with a ref 2023-06-13 15:52:58 +01:00
Matt Aitken 2db2e7a369 First version of the Test page with example and environment selection 2023-06-13 15:52:58 +01:00
Eric Allam 3589d26fb3 Implement task retrying to recording task attempts 2023-06-13 15:48:07 +01:00
Matt Aitken e5282fb264 Get the example data for the test page 2023-06-13 11:48:39 +01:00
Matt Aitken 61fddbb8af Added name and icon to the EventExamples 2023-06-13 11:48:27 +01:00
Matt Aitken e141aa3ff4 Added an GitHub Issue opened example 2023-06-13 10:57:06 +01:00
Matt Aitken 2fa1536315 EventExamples are now in a separate table (upserted on job register) 2023-06-13 10:56:57 +01:00
Matt Aitken 5607dcfae9 Created useFilterJobs which also searches the job slug 2023-06-13 10:11:34 +01:00
Eric Allam bd103802f9 Better logging of errors so we can debug delivery issues to hosts 2023-06-12 21:11:44 +01:00
Matt Aitken 0cbf427a58 Added “Test” to the breadcrumb 2023-06-12 18:18:23 +01:00
Matt Aitken e53cd477f9 Added a dynamic property to the Job page header 2023-06-12 18:15:45 +01:00
Matt Aitken df61f29a02 Added Dynamic markers to the jobs table 2023-06-12 18:12:52 +01:00
Matt Aitken feda01ab3b Don’t count internal or other project jobs in the integration table 2023-06-12 16:28:42 +01:00
Matt Aitken fb2684c0b3 Added the placeholder for help using an integration 2023-06-12 16:19:52 +01:00
Matt Aitken 89e4b80e65 Added integration breadcrumbs 2023-06-12 16:12:07 +01:00
Matt Aitken d55fe2d100 Added scopes page 2023-06-12 15:59:34 +01:00
Matt Aitken 49a510aaf9 Client Connections page is working 2023-06-12 15:34:51 +01:00
Matt Aitken 16a5504a32 Connection client jobs page 2023-06-12 14:47:47 +01:00
Matt Aitken b720c27c2a Show the slug in a ClipboardField 2023-06-12 14:12:51 +01:00
Matt Aitken cad3453e32 Created the ClipboardField 2023-06-12 14:05:38 +01:00
Matt Aitken afe0a8a159 Run page streaming runs just once if run is completed 2023-06-12 12:04:36 +01:00
Matt Aitken 2487e815a3 Use zod for integration client page params parsing 2023-06-12 12:04:36 +01:00
Eric Allam 771348dd5e Handle task errors and update the task status and add errors to the task output 2023-06-12 09:31:47 +01:00
Matt Aitken 1f76e1228a Added connection client Jobs table 2023-06-12 09:26:15 +01:00
Eric Allam fe782e5ff8 Scope finding projects and runs by the project and org 2023-06-09 21:14:40 +01:00
Eric Allam b4167a38f2 Fixed the event trigger name 2023-06-09 21:14:15 +01:00
Matt Aitken 61459a197f Started working on the Integration client page 2023-06-09 19:23:53 +01:00
Matt Aitken 30b6cc646a Improved the integrations page layout 2023-06-09 17:53:02 +01:00
Matt Aitken df95d4e29f Changed to using the job slug in the urls 2023-06-09 17:26:52 +01:00
Eric Allam 5090b64e57 Store the graphile job ID on the executions to be able to fast-forward delayed tasks 2023-06-09 16:56:45 +01:00
Matt Aitken 12d188d85a When accepting an invite it creates the RuntimeEnvironment for each project 2023-06-09 16:51:26 +01:00
Matt Aitken ab3e45d933 Import tidying 2023-06-09 16:40:47 +01:00
Matt Aitken 8c979cabd7 Added the realtime duration to the detail panel 2023-06-09 16:39:15 +01:00
Matt Aitken a617922c1d Handles closing out the realtime connection better 2023-06-09 16:37:18 +01:00
Matt Aitken fec7cd65a7 The Run page now live updates 2023-06-09 16:21:36 +01:00
Matt Aitken 10cfdb2fa2 Tweaked the countdown 2023-06-09 16:21:36 +01:00
Eric Allam 43a62d8bec Always create environments when creating a project 2023-06-09 15:40:18 +01:00
Matt Aitken 7b32b7ecd6 Delays display well now with countdowns 2023-06-09 15:25:34 +01:00
Eric Allam 2fcd166d32 Upgrade nextjs package to not require a specific next version 2023-06-09 14:42:50 +01:00
Eric Allam d8c673157b Changset: versions 2023-06-09 14:42:50 +01:00
Eric Allam 99316df879 Adding changeset for v2 2023-06-09 14:42:50 +01:00
Matt Aitken 5a4fa3d2b3 Return data from schedule job 2 2023-06-09 12:11:38 +01:00
Matt Aitken 71ececd7ce Added completed detail panel, improved panels 2023-06-09 12:09:28 +01:00
Matt Aitken 74519c08f0 Task errors are now parsed and displayed using the error component 2023-06-09 11:42:15 +01:00
Matt Aitken a85f19e016 The schedule job throws a task error 2023-06-09 11:41:58 +01:00
Matt Aitken cfe887341d Latest lockfile from running pnpm i 2023-06-09 11:22:07 +01:00
Matt Aitken eab17c3467 Added a state when there are no tasks 2023-06-09 11:20:15 +01:00
Matt Aitken 87c598627f Added a TaskCardSkeleton, it needs making good 2023-06-09 11:20:15 +01:00
Matt Aitken 30dc840144 Export the RunBasicStatus 2023-06-09 11:20:15 +01:00
Matt Aitken dd0e2d0bd2 Improved the run output 2023-06-09 11:20:15 +01:00
Eric Allam bf0da9ccff More renaming element to property 2023-06-09 11:08:21 +01:00
Eric Allam f430bcf54a Renamed elements to properties 2023-06-09 11:04:22 +01:00
Eric Allam ec4ef9ab7e Cleanup zodWorker a bit 2023-06-09 10:39:33 +01:00
Matt Aitken d01432e742 Added basic info to the completed panel 2023-06-09 10:24:15 +01:00
Matt Aitken cbb3e17e5d Added RunPanelError. Added Run complete panel with error 2023-06-09 10:10:57 +01:00
Matt Aitken 618bc927e9 Export ErrorWIthStack type 2023-06-09 10:10:57 +01:00
Matt Aitken 047c4f4baa Improved Callout 2023-06-09 10:10:57 +01:00
Eric Allam 3aea158edc Turn off bodyParser for realz 2023-06-08 17:29:06 +01:00
Eric Allam ed3b93493d Improved nextjs function names 2023-06-08 17:17:36 +01:00
Eric Allam 410efe1192 Implement @trigger.dev/nextjs package and make it work with the Next.js 13 app dir 2023-06-08 17:15:05 +01:00
Matt Aitken 58473f1cce Added properties to the event detail 2023-06-08 16:07:41 +01:00
Matt Aitken 399c9df1f3 Fix for LabelValue value just saying “value” if it didn’t have a link… 2023-06-08 16:07:32 +01:00
Matt Aitken cdfb2d1263 Added an external link icon and show the url on hover 2023-06-08 16:03:02 +01:00
Matt Aitken 9073a60ce6 Added links to properties with underline 2023-06-08 15:53:01 +01:00
Matt Aitken e9295bee2e Added a code comment explaining a redirect 2023-06-08 15:34:53 +01:00
Matt Aitken d1321106c2 Added description and improved no params for DetailView 2023-06-08 15:34:44 +01:00
Matt Aitken 8d2dec28e8 The run detail column is now a separate outlet with event and task routes 2023-06-08 15:09:08 +01:00
Matt Aitken ea426965de Remove date-fns, not being used 2023-06-08 14:20:48 +01:00
Matt Aitken 86dfeae727 Styled the subtasks and added a very simple animation 2023-06-08 00:26:58 +01:00
Matt Aitken 861cd6acee Use accurate times in the detail view 2023-06-08 00:08:43 +01:00
Matt Aitken e9055f0914 Selection is working with subtasks 2023-06-08 00:04:40 +01:00
Matt Aitken 9e4ada241c Recursive task cards are now working 2023-06-07 23:58:39 +01:00
Matt Aitken b13fc5cfe8 Added lots of subtasks to the 60s CRON job 2023-06-07 19:53:27 +01:00
Matt Aitken 35641e3af6 Added parentId and filter by it at the top-level 2023-06-07 19:53:10 +01:00
Matt Aitken df86706199 Moved TaskCard to a separate file to make it easier to work on the subtasks 2023-06-07 19:53:01 +01:00
Matt Aitken 1f3251ceea “Event name” not jiust “Name” 2023-06-07 19:03:28 +01:00
Matt Aitken a1917da1b1 Use the id logo for the Trigger name 2023-06-07 19:03:01 +01:00
Matt Aitken e9208bdeaa The trigger should be selected on page load 2023-06-07 19:02:37 +01:00
Matt Aitken 9ad86e6a62 Added the Run detail view for Triggers 2023-06-07 18:59:45 +01:00
Matt Aitken a9bcb00d8b Added new JobRunStatus cases to switches 2023-06-07 16:55:30 +01:00
Matt Aitken 1a0b2aeee1 Added Trigger elements 2023-06-07 16:51:49 +01:00
Matt Aitken 7d45996bf1 Updated Job to a new repo/id 2023-06-07 16:46:41 +01:00
Matt Aitken 594d7f94a2 Added the id icon 2023-06-07 16:40:21 +01:00
Matt Aitken 5252da6abb Merge the run and version elements 2023-06-07 16:40:16 +01:00
Matt Aitken 4fa3b2161f Display the Trigger elements 2023-06-07 16:40:01 +01:00
Matt Aitken 87732f25ba Added the Job id to the header 2023-06-07 16:39:33 +01:00
Matt Aitken a4a0958ba4 Allow a ReactNode to be used in a PopoverMenuItem 2023-06-07 16:22:51 +01:00
Matt Aitken e2c8b82ed2 Job menu now has the slug as well as the Job title 2023-06-07 16:22:38 +01:00
Matt Aitken 8f060f6868 Allow any string for popover and button icons 2023-06-07 16:07:02 +01:00
Matt Aitken 6ae783c03e Fix for the company icon collapsing to 0x0 pixels 2023-06-07 16:06:46 +01:00
Matt Aitken ed1d9d88de Added a created at column to the Runs table 2023-06-07 16:06:34 +01:00
Matt Aitken f6565eb8ea Removed blank line 2023-06-07 15:08:40 +01:00
Matt Aitken a47cdb5a15 Improved the filtered empty state for the Jobs table 2023-06-07 15:01:07 +01:00
Matt Aitken 6d45c9966e Deleted old png icons 2023-06-07 14:48:42 +01:00
Matt Aitken 77753aa5d7 Use @trigger.dev/companyicons for API icons 2023-06-07 14:48:38 +01:00
Matt Aitken 9e00992387 Jobs are now shown in a table 2023-06-07 14:33:53 +01:00
Eric Allam 2ef99d8383 Re-architect pre-processing and executing jobs, and gather run elements 2023-06-07 13:12:02 +01:00
Matt Aitken a03912b804 Added minimal styling for tasks 2023-06-06 18:19:31 +01:00
Matt Aitken d0ffedfef7 If a task succeeeded don’t show the tick 2023-06-06 17:59:58 +01:00
Matt Aitken d68f093c90 Tidied up imports 2023-06-06 17:59:45 +01:00
Matt Aitken 2fc948de76 Added log icon 2023-06-06 17:59:37 +01:00
Matt Aitken 1dc4783459 Moved the task.connection to the presenter 2023-06-06 17:40:09 +01:00
Matt Aitken 18a22001bd Job filtering now uses the filter hook too 2023-06-06 17:33:14 +01:00
Matt Aitken 1e4bf3043c Use the Filter hook for scope filtering 2023-06-06 17:30:29 +01:00
Matt Aitken ad48f9bb19 slate-1000 and slate-950 replaced with midnight-900 and midnight-850 2023-06-06 17:25:14 +01:00
Matt Aitken 0349f949c4 Improved the connection filtering 2023-06-06 16:50:33 +01:00
Matt Aitken 9b2f741df0 Added text filtering and improved the integrations page 2023-06-06 16:48:35 +01:00
Matt Aitken 0da4b43d25 Created reusable useTextFilter hook 2023-06-06 16:48:25 +01:00
Matt Aitken c8f46ed760 Fix for Tailwind config and missing slate[1000]s 2023-06-06 16:48:07 +01:00
Matt Aitken fb036e0712 Table of connected integrations 2023-06-06 15:59:53 +01:00
Matt Aitken ed966f0d18 The table now correctly scrolls horizontally if its parent is constrained and has overflow on it 2023-06-06 15:59:53 +01:00
James Ritchie 05c4076a5f A new midnight color palette for the app 2023-06-06 14:22:49 +01:00
Matt Aitken ac054705a1 Added TableCellChevron and the ability to hide a header cell label 2023-06-06 14:16:43 +01:00
Matt Aitken ab66372ebc Improved the run table blank state 2023-06-06 14:07:31 +01:00
Matt Aitken 2ff093e0ff Use smaller icons for the callout, they look a lot clearer 2023-06-06 14:07:31 +01:00
D-K-P 3a13a22f8a Updated the readme 2023-06-06 14:05:29 +01:00
Matt Aitken 24d2739480 Added loading state to the runs table 2023-06-06 13:16:52 +01:00
Matt Aitken 7f15cee11a RunsTable now uses the Table primitives 2023-06-06 12:55:45 +01:00
Matt Aitken c389fdce04 Initial work on reusable Table components 2023-06-06 12:48:22 +01:00
Matt Aitken e87d926a5a Created a presenter for the integrations page, updated the Integrations page to use it 2023-06-06 11:22:50 +01:00
Matt Aitken 0bbbc91e53 Removed getAllClients() from APIAuthenticationRepository 2023-06-06 11:22:33 +01:00
Matt Aitken d0edb4489c Custom Custom OAuth clients are working 2023-06-06 10:32:46 +01:00
Matt Aitken 4bff8b98db More work on the custom client id/secret 2023-06-05 19:15:33 +01:00
Matt Aitken 03d832ddc1 WIP on custom OAuth client 2023-06-05 19:15:33 +01:00
Matt Aitken ab01ef855b Started adding the extra fields for connections 2023-06-05 19:15:33 +01:00
Matt Aitken 9e2b2d3b42 Export the ApiConnectionType type 2023-06-05 19:15:33 +01:00
Matt Aitken ce749a0f11 Added validation to the custom OAuth app 2023-06-05 19:15:33 +01:00
Eric Allam d0e52f6186 Added style to tasks and made logs and wait minimal 2023-06-05 17:14:17 +01:00
Eric Allam 6cc5808139 Link the task to the RunConnection instead of storing the connection key 2023-06-05 17:03:37 +01:00
Eric Allam 8a2cd974fd Remove comboTrigger and add elements to JobVersion 2023-06-05 16:43:32 +01:00
Eric Allam 8e189cbf2b Rename sendEvent to sendCustomEvent and don’t use private class fields in IO because Proxy breaks 2023-06-05 14:26:03 +01:00
Matt Aitken 83b7eb8163 Created Callout component and added Storybook 2023-06-05 14:17:29 +01:00
Matt Aitken eb8350647e APIConnectionClient: added clientType and renamed credentialsReference 2023-06-05 13:35:25 +01:00
Matt Aitken 69e0f43326 The duration is calculated from the start and completed time 2023-06-05 12:05:11 +01:00
Matt Aitken 7c81259d76 Removed unused Slack scope annotations 2023-06-05 12:04:07 +01:00
Matt Aitken b1868a7e62 Removed color from the scope annotation type 2023-06-02 17:38:39 +01:00
Matt Aitken 63156f5140 Removed unnecessary tags on the Slack scopes 2023-06-02 17:36:20 +01:00
Matt Aitken 40bf79a5a2 Removed BasicConnectButton 2023-06-02 17:33:43 +01:00
James Ritchie 621350e0fc Improved the org and account page and added a logout button 2023-06-02 17:31:51 +01:00
James Ritchie b698da85d1 Badge doesn’t wrap 2023-06-02 17:31:51 +01:00
James Ritchie 36c1b30910 Added a the boxshadow colours from the marketing site 2023-06-02 17:31:51 +01:00
James Ritchie c6b208b577 Cleaned up imports 2023-06-02 17:31:51 +01:00
James Ritchie 6940e8c9c1 Small tweak to the login magic link form 2023-06-02 17:31:51 +01:00
James Ritchie 575875e807 Layout mprovements to the login 2023-06-02 17:31:51 +01:00
Matt Aitken 158504b5c9 Better error when there are no aliases in a job 2023-06-02 17:21:51 +01:00
Matt Aitken 611505d43c Prevent environments from getting deleted when team members leave 2023-06-02 17:21:20 +01:00
Matt Aitken 244efd2ae3 Prevent environments from getting deleted when team members leave 2023-06-02 17:21:02 +01:00
Matt Aitken 7cd2fae578 Fix the import of OAuthConnectSheet 2023-06-02 16:50:54 +01:00
Matt Aitken 6fa22bb7e4 Improved the error display a lot 2023-06-02 16:50:28 +01:00
Matt Aitken d0c04275f6 Renamed ConnectButton to OAuthConnectSheet 2023-06-02 16:04:14 +01:00
Matt Aitken d62eaa2e30 Check for already taken emails on the account form 2023-06-02 15:43:25 +01:00
Matt Aitken 09a40b8d36 Trimmed imports 2023-06-02 15:43:14 +01:00
Matt Aitken 9eb194bac2 Fix for incorrect message 2023-06-02 15:30:47 +01:00
Matt Aitken 1113cac7ff Confirming details prevents you from submitting an already taken email address 2023-06-02 15:29:17 +01:00
Matt Aitken 769068e93c Remove log 2023-06-02 15:29:17 +01:00
James Ritchie 881689e497 Minor fix on the login page 2023-06-02 15:01:17 +01:00
James Ritchie 1af6530888 Improvements to the magic email login page layout 2023-06-02 15:01:17 +01:00
Matt Aitken 003fa52793 Set confirmed basic details to true 2023-06-02 14:59:46 +01:00
Matt Aitken a54552c451 FormTitle can have a component icon 2023-06-02 14:58:31 +01:00
Matt Aitken 26c3a84bfd Added some named icons 2023-06-02 14:58:31 +01:00
Matt Aitken be3c060f38 Can update user with optional marketing email field 2023-06-02 14:58:31 +01:00
Matt Aitken 435f67c5ab Confirming details works 2023-06-02 14:58:31 +01:00
Matt Aitken 1ea3f3d755 Added a special big of magic 2023-06-02 14:58:31 +01:00
Matt Aitken 8a2dde52f8 Invite toasts display until closed 2023-06-02 14:58:31 +01:00
Matt Aitken 7622f48c00 WIP on user basic details 2023-06-02 14:58:31 +01:00
Matt Aitken 4876d76a49 Toast now has an option to display until closed 2023-06-02 14:58:31 +01:00
James Ritchie 0b05355e25 Fixed the layout for when you have multiple team members 2023-06-02 14:37:30 +01:00
James Ritchie 89690d76b5 Fixed name of email field 2023-06-02 14:21:23 +01:00
James Ritchie a9cf074d82 Improved the invitation accept page 2023-06-02 14:15:06 +01:00
James Ritchie 86f46f5162 Changed the icon colour 2023-06-02 14:14:46 +01:00
James Ritchie 693abac7fc Change icon to NamedIcon 2023-06-02 14:14:29 +01:00
James Ritchie f79d90bfc3 Copy tweak 2023-06-02 14:14:19 +01:00
James Ritchie bf347aa5d3 Improvements to the layout of members and pending invites 2023-06-02 13:31:26 +01:00
James Ritchie b2f350f3f7 Improvements to the members and pending invites list 2023-06-02 12:24:12 +01:00
James Ritchie d5f359d59d Renamed invite-accept file 2023-06-02 12:21:24 +01:00
James Ritchie ab4cb6d484 Fixed the focus states on input fields 2023-06-02 11:56:18 +01:00
Matt Aitken 33517b2c0e Resending invites working 2023-06-02 11:31:14 +01:00
Matt Aitken a9193cfe15 Added (You) to team page and improved the not allowed to leave team UX 2023-06-02 11:12:05 +01:00
Matt Aitken 10c2870d8a Button hover bg changes use group 2023-06-02 11:12:05 +01:00
James Ritchie 6894965575 Improved the Organization item on the Orgs and Account page 2023-06-02 10:58:40 +01:00
James Ritchie 8631a8c559 Added a back link to the Org page 2023-06-02 10:58:40 +01:00
James Ritchie a0418c7f5c Added a notification heading on accounts page 2023-06-02 10:58:40 +01:00
Matt Aitken ad86902073 User profile avatar has padding so it matches the hero icons 2023-06-02 10:51:56 +01:00
Matt Aitken c7d274117c Joining and declining invites is working 2023-06-02 10:44:24 +01:00
Matt Aitken 67606e7cee Accepting invites is working 2023-06-02 09:26:16 +01:00
Matt Aitken e0baafeb7d Improved the layout 2023-06-01 22:05:27 +01:00
Matt Aitken 795577ede0 Show the pending invites on the team page 2023-06-01 22:04:22 +01:00
Matt Aitken 9a4094d115 /accept-invite redirects with messages based on the invite and logged in status 2023-06-01 21:40:28 +01:00
Matt Aitken b3ccfeb015 A lot of work on email invites 2023-06-01 19:12:58 +01:00
Matt Aitken bfaf75c8dd Invite form with expanding fields is working 2023-06-01 17:19:30 +01:00
Matt Aitken 35b669eae8 WIP adding invite page 2023-06-01 17:19:30 +01:00
Matt Aitken 1893afbdbb Improved the remove user messaging 2023-06-01 17:19:30 +01:00
James Ritchie 17430fb921 Stop selecting the text inside a checkbox 2023-06-01 16:38:49 +01:00
James Ritchie f09d7254a7 Added a search bar to the scopes list 2023-06-01 16:36:30 +01:00
James Ritchie 4fe10eb8fa Built out the integration form 2023-06-01 15:58:17 +01:00
James Ritchie 562ba869e2 Segmented controller now has onChange prop 2023-06-01 15:58:17 +01:00
James Ritchie bcf5313498 Small form error style fix 2023-06-01 15:58:17 +01:00
James Ritchie 97bf4d00b1 Fieldset style improvement 2023-06-01 15:58:17 +01:00
James Ritchie 37486dc87e Checkbox has onChange and another style available 2023-06-01 15:58:17 +01:00
James Ritchie 2b15edb75a Added a small variant to form label 2023-06-01 15:58:17 +01:00
James Ritchie 926a9c7c78 Form labels can now have 2 sizes 2023-06-01 15:58:17 +01:00
James Ritchie 07f146e86d Added another input size per the design 2023-06-01 15:58:17 +01:00
James Ritchie cb6d412002 Improved checkbox description font size 2023-06-01 15:58:17 +01:00
James Ritchie d4fcf043ad Fixed alignment of segmented controller 2023-06-01 15:58:17 +01:00
James Ritchie 6947292adf Inline code component now has size variants to match the paragraph it’s inlined with 2023-06-01 15:58:17 +01:00
Matt Aitken 2270fcdc67 Made the form reusable for kicking other members 2023-06-01 14:42:26 +01:00
Matt Aitken cff0498646 Leaving a team works 2023-06-01 14:34:46 +01:00
Matt Aitken 62c7db3650 Made the <Button> a forwardRef so it can work with things like Alert 2023-06-01 12:23:23 +01:00
Matt Aitken 3a91f03340 Created the Org projects page 2023-06-01 11:44:21 +01:00
Matt Aitken 7bcd0b350e Added a cancel button to the New project page 2023-06-01 10:21:13 +01:00
James Ritchie 99fb735b5b input group can be full width 2023-06-01 08:47:47 +01:00
Matt Aitken 8e25e3f9a0 Improved the layout of the Help component 2023-05-31 21:51:34 +01:00
Matt Aitken a43512b117 Added help placeholder content 2023-05-31 21:47:36 +01:00
Matt Aitken da67607eda Added filtering to the Job list 2023-05-31 21:45:51 +01:00
Matt Aitken 8e98810682 No jobs blank state 2023-05-31 21:29:01 +01:00
Matt Aitken eb1804339c Added Active jobs property the the job list 2023-05-31 21:17:53 +01:00
Matt Aitken f63df323cf When creating an org, show a toast 2023-05-31 21:13:08 +01:00
Matt Aitken 468487d815 The divider in the project popover is clearer 2023-05-31 21:13:00 +01:00
Matt Aitken 0ff8f72668 Added a success toast to project creation 2023-05-31 21:09:35 +01:00
Matt Aitken 8df7018b4f Create project page working 2023-05-31 21:08:12 +01:00
Matt Aitken b5cc1b4c6d FormTitle now supports a description too (per design) 2023-05-31 21:08:05 +01:00
Matt Aitken 2b655707e4 Fix for The JobItem tooltip throwing error about div in p 2023-05-31 20:47:09 +01:00
Matt Aitken 853132453e Improve the logic for showing the background gradient 2023-05-31 20:46:53 +01:00
Matt Aitken a922f28e86 Added a dismiss button and improved the text 2023-05-31 20:14:27 +01:00
Matt Aitken 26e4f2b9f7 Styling on the toast 2023-05-31 20:11:23 +01:00
Matt Aitken 1030662c93 Tightened up the animation 2023-05-31 19:55:27 +01:00
Matt Aitken db3de3841f Updating account, including marketing prefs is working 2023-05-31 19:53:10 +01:00
Matt Aitken 3d9d6982e4 The user’s account image shouldn’t be in NamedIcon 2023-05-31 19:53:09 +01:00
Matt Aitken d8a5ad7107 Update lucide-react icons… 2023-05-31 19:53:09 +01:00
Matt Aitken e9b9bd8ff9 Restructured the routes so Orgs and Account are at the top-level under tabs 2023-05-31 19:53:09 +01:00
James Ritchie 43a94bfa2c segmented controller now takes label, value and name props 2023-05-31 18:28:53 +01:00
James Ritchie b75401bc7b New segmented control form component 2023-05-31 17:35:50 +01:00
James Ritchie 1cebf76b85 Changed the way badges work so they can be mapped over 2023-05-31 16:34:54 +01:00
James Ritchie c113e78c33 Addded an optional className 2023-05-31 15:48:08 +01:00
James Ritchie 4abdc51934 Improved the badge 2023-05-31 15:37:17 +01:00
James Ritchie a7c10e1c80 Improved the disabled and default checked checkbox 2023-05-31 15:37:09 +01:00
James Ritchie a9bb37416a Improved the way the checkbox logic works 2023-05-31 13:49:04 +01:00
James Ritchie 400836841a Got the checkbox behaviour working and new styles for the variants in 2023-05-31 13:03:09 +01:00
James Ritchie 81b37f3408 Small style update to the side menu buttons 2023-05-31 09:53:44 +01:00
James Ritchie 7fa663f1af Improved the integration button states 2023-05-31 09:05:44 +01:00
Matt Aitken b6b6005c7d Added Trigger panel, but it’s a bit light on content right now 2023-05-30 19:03:58 +01:00
James Ritchie 4015a4eac7 More WIP on the checkbox 2023-05-30 18:19:28 +01:00
Matt Aitken b458316bef Added Run breadcrumb 2023-05-30 17:57:22 +01:00
James Ritchie ec819c66d8 WIP new checkbox component 2023-05-30 17:45:32 +01:00
James Ritchie c4d678c439 Fixed shortcut positioning inside small buttons 2023-05-30 17:45:32 +01:00
Matt Aitken 6edbafff47 Fix for RunPanel title type 2023-05-30 17:43:42 +01:00
Matt Aitken 5439611d83 Slate colours updated 2023-05-30 17:43:16 +01:00
Matt Aitken b0f9fe9265 Major layout shifts to deal with scrollable areas 2023-05-30 17:32:55 +01:00
Matt Aitken f10501b9cc Added message element to slack post message 2023-05-30 16:50:15 +01:00
Matt Aitken 3400d6c9ab Detail view fleshed out 2023-05-30 16:50:05 +01:00
Matt Aitken 8aeead7e5e Padding for task description improved 2023-05-30 16:16:04 +01:00
Matt Aitken 41d9498999 Add a Task description 2023-05-30 16:14:46 +01:00
Matt Aitken 284f217163 Added a todo because logging isn’t working in the run function 2023-05-30 16:14:46 +01:00
James Ritchie b35d5e35fe Improved Sheet background visibility 2023-05-30 16:05:11 +01:00
James Ritchie 499ae4213a Made the Sheet header match the design 2023-05-30 15:59:12 +01:00
James Ritchie 9f1681a89c Improvements to positioning of the Sheet and footer button placement 2023-05-30 15:50:16 +01:00
Matt Aitken baeb11d7fb Layout improvements with flowing content 2023-05-30 15:45:28 +01:00
Matt Aitken c1907d4e00 Improved the task display with connections and task icon 2023-05-30 15:35:11 +01:00
Matt Aitken 0a898900bf Added connectionKey to Task so we can tell which connection is associated with a task 2023-05-30 14:57:33 +01:00
Matt Aitken 0258c394b6 Display the elements from the task 2023-05-29 13:19:21 +01:00
Matt Aitken 9b6991504c Moved the key to the right place 2023-05-27 19:14:38 +01:00
Matt Aitken 18d0de2366 Attempt at elements, but layout is funky 2023-05-27 19:12:12 +01:00
Matt Aitken 5f6352b123 Deal with the delay slightly differently, not sure if this is best or not 2023-05-27 18:39:55 +01:00
Matt Aitken 9a5c8cbbb7 Added TaskSeparator 2023-05-27 18:34:21 +01:00
Matt Aitken 9d7cfb39aa More progress on run page 2023-05-27 18:19:22 +01:00
Matt Aitken f3f65068fa Started work on the run page panels 2023-05-27 18:00:24 +01:00
Matt Aitken c74a456168 Status first as it’s most important 2023-05-27 13:50:54 +01:00
Matt Aitken 5806c687b6 Run header in, except the rerun button 2023-05-27 13:49:45 +01:00
Matt Aitken 3436a5ec8e Started building up the run header 2023-05-27 13:34:32 +01:00
Matt Aitken e6de29a5ab Basic run page header 2023-05-27 13:25:50 +01:00
Matt Aitken 7e2b134991 Can’t use the nested layoutless routing because it scrubs all the loading data. So instead conditional hide the Job header 2023-05-27 13:22:46 +01:00
Matt Aitken 288a891c8a useRun hook 2023-05-27 13:18:39 +01:00
Matt Aitken 25fbc80dd7 Run page placeholder 2023-05-27 13:06:07 +01:00
Matt Aitken 3e032e4fca Move the DirectionSchema so it can be accessed client-side 2023-05-27 13:04:58 +01:00
Matt Aitken b391b81209 Moved the pagination components to a separate file alongside the route 2023-05-26 18:45:10 +01:00
Matt Aitken bbd0d9d31f Pagination working with controls 2023-05-26 18:23:24 +01:00
Matt Aitken b8c09f6784 NamedIcons: chevron-left and chevron-right 2023-05-26 18:23:17 +01:00
Matt Aitken d217535fcd Added tabs for Trigger and Settings. They 404 for now 2023-05-26 16:55:40 +01:00
Matt Aitken f9b106642d PageContainer now takes up the full height 2023-05-26 16:36:29 +01:00
Matt Aitken 1dac117ed3 JobItem integrations aren’t optional 2023-05-26 16:35:14 +01:00
Matt Aitken 0392c7c6c6 Added WAITING_ON_CONNECTIONS status to the components 2023-05-26 16:24:21 +01:00
Eric Allam 5ba72a59c4 Use reverse DNS for all internal events 2023-05-26 16:18:47 +01:00
Matt Aitken bfdd3bc361 Oops I’d flipped isTest while… testing. Irony 2023-05-26 16:15:01 +01:00
Matt Aitken e06b4cfc84 Test column looked weird with zero ticks 2023-05-26 16:14:06 +01:00
Matt Aitken 0153c4f900 Nice status and environment components 2023-05-26 16:10:14 +01:00
Eric Allam 85f74ce761 Gracefully handle missing run connections and resume runs once the connections have been created 2023-05-26 16:00:04 +01:00
Matt Aitken 639c88d3c9 Nice duration formatter 2023-05-26 15:38:48 +01:00
Matt Aitken 4aac1f9662 Improved styles, using pathBuilder 2023-05-26 15:01:50 +01:00
Matt Aitken 38244b8f98 Added integrations to the Job page header 2023-05-26 14:51:34 +01:00
Matt Aitken 593372a508 useOptionalJob in Breadcrumb 2023-05-26 14:47:41 +01:00
Matt Aitken c24a9695b6 Fixed the “Rubs” breadcrumb link 2023-05-26 14:43:08 +01:00
Matt Aitken f7516db415 Very ugly run table working 2023-05-26 14:40:28 +01:00
Matt Aitken 3d520a8867 Removed extra border when showing the PageTabs 2023-05-26 13:40:30 +01:00
Matt Aitken 3a152d0d80 PageTabs have padding for use in the header 2023-05-26 13:40:08 +01:00
Matt Aitken 787cc20028 Fix for Project side menu hover area being too large when minimised 2023-05-26 13:39:55 +01:00
Matt Aitken 6d28e5f7f0 Created routing tabs that have an animating underline when page switching 2023-05-26 13:34:30 +01:00
Matt Aitken e57769d90c Renamed Tabs to ClientTabs, they’re only to be used for client side tabs 2023-05-26 13:04:30 +01:00
Matt Aitken b65aa5f9cf Improved Job page header 2023-05-26 13:04:10 +01:00
Matt Aitken a95e3855c0 Added PageHeader property display 2023-05-26 12:54:14 +01:00
Matt Aitken 50a3868c67 useJob and useOptionalJob hooks 2023-05-26 12:28:57 +01:00
Matt Aitken 4f3e314063 Split into useProject and useOptionalProject 2023-05-26 12:26:43 +01:00
Matt Aitken 885aeb542a Renamed useCurrentProject to useProject 2023-05-26 12:22:43 +01:00
Matt Aitken 933e91e45c We now have useOrganization and useOptionalOrganization hooks 2023-05-26 12:22:08 +01:00
Matt Aitken 3b8ea9b712 Renamed useCurrentOrganization to useOrganization 2023-05-26 11:58:13 +01:00
Matt Aitken 09e67dfba9 Added useOptionalOrganizations hook 2023-05-26 11:57:21 +01:00
Matt Aitken a12f464c4a Added notes for the implementation of the run list 2023-05-26 11:52:08 +01:00
Matt Aitken 08bd69ddf8 Fixed the conditional hook error in ProjectSideMenu 2023-05-26 11:51:31 +01:00
Matt Aitken 3862cc069c Started adding PageInfo rows and groups 2023-05-26 11:51:15 +01:00
Matt Aitken cb37705085 Start on the Job page 2023-05-25 19:20:06 +01:00
Matt Aitken 06785525eb Jobs menu working 2023-05-25 19:08:06 +01:00
Matt Aitken b046e4a110 Breadcrumb improvements. Also added temporary job page ready to build 2023-05-25 18:21:14 +01:00
Matt Aitken 92fba7b0b8 Added the missing icons for the different trigger types 2023-05-25 17:57:12 +01:00
Matt Aitken 976c56a6bb Upgraded Remix to 1.16.1 2023-05-25 17:45:43 +01:00
Matt Aitken 50ddfb8a2e Remove the log of the project 2023-05-25 17:30:45 +01:00
Matt Aitken 84f41eb69f The JobList is displaying 2023-05-25 17:30:33 +01:00
Matt Aitken bb18f18d22 The JobList is displaying, needs icons hooking up 2023-05-25 16:56:05 +01:00
Matt Aitken 94d17dd033 Added icon to the EventSpecificationSchema 2023-05-25 16:56:05 +01:00
Eric Allam e340abd386 Run jobs as users (custom events, and dynamic triggers/schedules) 2023-05-25 13:57:07 +01:00
Matt Aitken 2231fc23e1 Updated Sentry and Posthog to the latest 2023-05-25 13:00:46 +01:00
Matt Aitken f73ecb6898 Cast the cloned logger args 2023-05-25 13:00:34 +01:00
Matt Aitken fc33d3e2ca Cast the PostHog Sentry plugin because it’s causing typecheck issues 2023-05-25 13:00:22 +01:00
Matt Aitken 88c249299f Remove unused CacheService 2023-05-25 12:54:15 +01:00
Matt Aitken 224e5e412a Fix for JSONEditor errors 2023-05-25 12:54:09 +01:00
Matt Aitken c6545d5d6f Deleted old files (RunsTable and JobsMenu) 2023-05-25 12:53:30 +01:00
Matt Aitken e0b1e021ec Added Project slug, WIP on Jobs/Runs presenters 2023-05-25 12:53:16 +01:00
Matt Aitken 235dc6cd02 Updated the seed script so the DATABASE provider is correct and has project slugs 2023-05-25 12:52:29 +01:00
Matt Aitken 2858d742e1 Comment out unused GitHub connectiom 2023-05-25 12:52:01 +01:00
Matt Aitken df26167474 Added @uiw/react-codemirror back, we’ll need it for the Test code editor 2023-05-25 12:47:20 +01:00
Matt Aitken a11dea6e7f Added icon to the GitHub events 2023-05-25 12:46:58 +01:00
Matt Aitken 6d705e5db7 Added icon to the EventSpecification 2023-05-25 12:46:58 +01:00
Eric Allam d636360ec5 Only ever trigger scheduled events that are in the future 2023-05-25 09:59:19 +01:00
Eric Allam 3693df7ad2 Fixed getting access to the raw integration client 2023-05-24 12:59:47 +01:00
Eric Allam d15b6ac79f Dynamic schedules 2023-05-23 15:59:06 +01:00
Eric Allam 786f2e16ef Static scheduled triggers are working, and now adding graphile worker jobs are done in prisma txs 2023-05-23 14:00:26 +01:00
Eric Allam 7c5eb6a3a3 Fixed dynamic triggers to be unregisterable (and a start on scheduled triggers) 2023-05-22 11:02:58 +01:00
Eric Allam af258acf3a Dynamic triggers can now be initialize via the API 2023-05-19 11:57:41 +01:00
James Ritchie 21e6f8668d Using the simple tooltip component instead 2023-05-19 11:39:56 +01:00
Eric Allam d123d1cddd Move all API routes to v1 from v3 2023-05-19 10:08:00 +01:00
James Ritchie e4aa66e213 Integrations now have a tooltip to show the names on hover 2023-05-19 09:55:03 +01:00
Eric Allam 8e8c6641aa Adding back in the ctx functions to IO 2023-05-19 09:53:12 +01:00
James Ritchie 9e3b5707cf Added integrations into the job item 2023-05-18 17:47:10 +01:00
James Ritchie bc1e0bed1d Renamed RunStatus file 2023-05-18 17:12:25 +01:00
James Ritchie 2306650aa5 Added some responsivness to the Job item 2023-05-18 17:08:26 +01:00
James Ritchie 5136dd6698 Wrapped storybook in LocalContextProvider 2023-05-18 17:08:26 +01:00
James Ritchie 50622ff917 removed imports 2023-05-18 17:08:26 +01:00
Matt Aitken 1f217ed4a5 Connection form, lots of improvements to Sheet 2023-05-18 16:40:50 +01:00
Matt Aitken 8666358722 Improvements to the integration auth method selector 2023-05-18 16:40:50 +01:00
Eric Allam 70b850140d Refactor event dispatching to work with dynamic triggers 2023-05-18 16:25:29 +01:00
James Ritchie 2d411b4924 Data props now accessible in the Job Item component 2023-05-18 14:27:54 +01:00
James Ritchie 4a15d0e822 Removed leading overrides from paragraph component 2023-05-18 14:27:54 +01:00
James Ritchie 258c027b2d removed margin bottom from paragraph text 2023-05-18 14:27:54 +01:00
James Ritchie 114c23ab09 Removed margin bottom from headers 2023-05-18 14:27:54 +01:00
Eric Allam 396206ca03 Dynamic triggers now can be registered at runtime and trigger jobs 2023-05-18 14:00:54 +01:00
James Ritchie 1412feba15 Adding new job list and item components 2023-05-18 12:32:59 +01:00
Matt Aitken 4b1fcb7ec6 Help panel can now be undismissable 2023-05-18 08:47:32 +01:00
James Ritchie e927f5df5e small animation tweaks 2023-05-17 17:46:00 +01:00
James Ritchie f238d6bfb9 Hover state added for the popover 2023-05-17 17:31:02 +01:00
James Ritchie 2c0f3ac905 Style improvements to the select component 2023-05-17 16:58:47 +01:00
James Ritchie 7f08400432 select menus take a size and width 2023-05-17 15:35:47 +01:00
Matt Aitken f16c2ea0cf Added help panel to the integrations page 2023-05-17 15:07:28 +01:00
Matt Aitken c2d61f1011 Revert "Experiment building a Radix like component for help"
This reverts commit b50c3d8378916435d6e3d52ccaff379235e76588.
2023-05-17 15:07:28 +01:00
Matt Aitken c458ee780b Experiment building a Radix like component for help 2023-05-17 15:07:28 +01:00
Matt Aitken 10674786e2 WIP on help component 2023-05-17 15:07:28 +01:00
James Ritchie 65aa12de02 Added styling for a select component 2023-05-17 14:03:06 +01:00
James Ritchie df29a37c6c Fix for extra tailwind colors in the config 2023-05-17 14:03:06 +01:00
Eric Allam 6cafe077b4 Rename job connections to job integrations and get local integration triggers working 2023-05-17 13:52:03 +01:00
Matt Aitken 7a0c33cd49 Layout fixes for the integrations page 2023-05-17 11:00:20 +01:00
Matt Aitken 4b7c16641b More work on the integrations page 2023-05-17 09:30:13 +01:00
Matt Aitken 5cfd895f0e Updated the header for the integrations page 2023-05-16 18:49:37 +01:00
Matt Aitken 08e8ccb3f0 Integrations route moved to project path, add breadcrumb 2023-05-16 18:42:44 +01:00
Matt Aitken 973bb8a076 Fix for changes to Label and FormError 2023-05-16 18:42:44 +01:00
James Ritchie efe84d6a0c Improvements to the popover menu 2023-05-16 18:36:44 +01:00
James Ritchie 7823041b4c Improved the all caps style and font sizing 2023-05-16 18:36:44 +01:00
Eric Allam 055b742b66 Add description to clients and add orgid to params 2023-05-16 18:21:51 +01:00
Eric Allam fa0c9015ae Update the auth repository to work with the new client/connection split 2023-05-16 18:00:51 +01:00
Matt Aitken c6372bfc0b ProjectsMenu now uses some reusable components 2023-05-16 18:00:37 +01:00
Matt Aitken a46bb7c2f7 Added autodocs to a couple of Storybook pages 2023-05-16 18:00:27 +01:00
Matt Aitken 1a010b7f12 Breadcrumb changed to a component and simplified the page to just a slug 2023-05-16 17:12:39 +01:00
Matt Aitken da7b020dbb Added an animation when showing form errors, hide totally when undefined/null 2023-05-16 16:54:29 +01:00
Matt Aitken f88952d8f6 Remove log of email 2023-05-16 16:54:29 +01:00
Matt Aitken 064cbce172 Redirect to new org form if the user has no orgs 2023-05-16 16:54:29 +01:00
James Ritchie a42a1b231e Fixed button disabled states 2023-05-16 16:50:35 +01:00
Eric Allam e0e618ac1c Get webhook deliveries working again 2023-05-16 16:34:51 +01:00
Eric Allam f6ea37381a Re-work how triggers work to better support dynamic triggers 2023-05-16 16:34:51 +01:00
Eric Allam 214546d17a WIP new stuff 2023-05-16 16:34:51 +01:00
James Ritchie e851cefb39 fixed text colour 2023-05-16 16:33:42 +01:00
James Ritchie 7030acfa77 Added leading to paragraph text 2023-05-16 16:33:35 +01:00
James Ritchie efe23c01a7 Label component not using cva anymore 2023-05-16 16:27:25 +01:00
James Ritchie 45e4bf0b97 improved the field labels 2023-05-16 16:17:38 +01:00
James Ritchie b679539c0f added field hover states 2023-05-16 16:03:04 +01:00
James Ritchie de8421d966 Fix for a merge conflict 2023-05-16 15:57:58 +01:00
James Ritchie 8c6f8c3b01 Inputs now have size variants 2023-05-16 15:52:21 +01:00
Matt Aitken 504682e9bf Remove old internal event when a user was created 2023-05-16 15:31:06 +01:00
Matt Aitken f0090ca7b5 Force the User profile icon to be square 2023-05-16 14:56:41 +01:00
Matt Aitken fb862123db Delete old user menu 2023-05-16 14:56:28 +01:00
Matt Aitken 89981810d1 Login pages styled 2023-05-16 14:51:34 +01:00
Matt Aitken cd916fdca2 Lazy load integration icons 2023-05-16 13:18:00 +01:00
Matt Aitken a3ccb9950f Add NavBar to the error boundary 2023-05-16 12:21:13 +01:00
Matt Aitken 036bb523bd v2 errors and made a nicer error page 2023-05-16 12:19:28 +01:00
Matt Aitken b24317bf9b Enabled remix v2_normalizeFormMethod future flag 2023-05-16 12:19:27 +01:00
Matt Aitken 354e3090bf Remove unused useProject code 2023-05-16 12:19:27 +01:00
James Ritchie 337a0b9cb5 More Named icons 2023-05-16 11:56:39 +01:00
James Ritchie 626ee69dea Forms can take an optional shortcut icon 2023-05-16 11:56:39 +01:00
Matt Aitken bd2727415f Collapsing is determined correctly, not by a click on the menu 2023-05-16 11:34:05 +01:00
Matt Aitken ec541338b6 Tailwind formatted 2023-05-16 11:33:04 +01:00
Matt Aitken c4fbd92b49 Added a tooltip when the side menu is collapsed. Refined the icon padding 2023-05-16 11:28:02 +01:00
James Ritchie e49a392e8e Added an icon to the form error 2023-05-16 11:11:50 +01:00
James Ritchie 6374ef5e6d Inputs take an optional leading icon 2023-05-16 11:11:50 +01:00
James Ritchie c8e3894559 Updated the form focus color 2023-05-16 11:11:50 +01:00
Matt Aitken f4216b98ec Use framer motion for the menu collapsing 2023-05-16 11:09:07 +01:00
Matt Aitken 3dfecdf5d2 Installed framer motion 2023-05-16 11:08:58 +01:00
Matt Aitken fbcbd456e3 The Jobs side menu item active state works differently as it’s the root 2023-05-16 10:51:22 +01:00
Matt Aitken 18afbdec46 Use NavLink for the ProjectSideMenu 2023-05-16 10:09:27 +01:00
Matt Aitken 7db43b91f1 Created the Environments page stub 2023-05-16 10:09:18 +01:00
Matt Aitken 4071a8c280 Added NavLinkButton 2023-05-16 10:08:00 +01:00
Matt Aitken 3b7028618c Renamed handle.breadcrumb to handle.useBreadcrumbElement to stop the annoying hook naming warnings 2023-05-16 10:07:47 +01:00
Matt Aitken 0715fdaaba Added some structure to the path builder file 2023-05-16 10:07:12 +01:00
Matt Aitken 888810c5ae Removed @react-email package from webapp 2023-05-16 10:06:58 +01:00
Matt Aitken 5cef31f1bd Stripped whitespace 2023-05-16 09:17:55 +01:00
Matt Aitken 3d0ae35156 Added @typescript-eslint/strict-boolean-expressions rule for booleans, string and numbers 2023-05-16 09:17:55 +01:00
James Ritchie a3d03bdb35 Created a login form 2023-05-15 18:22:30 +01:00
James Ritchie 5d52b206c4 The divider on the form title is now optional 2023-05-15 18:22:30 +01:00
James Ritchie f05a8cd823 Added an anchor tag component 2023-05-15 18:22:30 +01:00
Matt Aitken 664f2e6623 Breadcrumb now uses the route handle 2023-05-15 17:49:10 +01:00
Matt Aitken 389d6fe9c6 Started building out the side menu 2023-05-15 16:45:19 +01:00
James Ritchie d3c767362c NamedIcons now have padding like hero icons 2023-05-15 15:35:20 +01:00
Matt Aitken 2892e3b36f Initial work on project page with side menu 2023-05-15 15:34:52 +01:00
Matt Aitken b17de99331 Set the popover background color 2023-05-15 15:34:52 +01:00
James Ritchie 9d8557fbed Added disabled button examples to storybook 2023-05-15 14:47:54 +01:00
James Ritchie 35c3a4e613 Menu items can be disabled or selected 2023-05-15 14:38:19 +01:00
Matt Aitken 00c9da8de9 Form story updated 2023-05-15 14:20:18 +01:00
Matt Aitken dfc5fec14a Storybook no longer opens a new browser window when run 2023-05-15 14:20:06 +01:00
Matt Aitken 85eca607a1 Fix for spinner white name change 2023-05-15 14:07:36 +01:00
Matt Aitken 8973001ec8 WIP on new org form 2023-05-15 14:07:05 +01:00
Matt Aitken 5a1e7412d2 Paragraph accepts all props a <p> accepts 2023-05-15 14:06:31 +01:00
Matt Aitken 8095612d30 Use a NamedIcon in the org grid 2023-05-15 14:06:31 +01:00
Matt Aitken 2259b812a2 Don’t create an org when a user first registers 2023-05-15 14:06:31 +01:00
Matt Aitken 5af6549a0f Added conform package 2023-05-15 14:06:31 +01:00
Matt Aitken 6d3a590ce8 Fix for hover states on the page header back button 2023-05-15 14:06:31 +01:00
Matt Aitken ce5be558e3 Don’t duplicate the orgs grid items 2023-05-15 14:06:31 +01:00
Matt Aitken eb6f1dadd1 Fixed the page backgrounds 2023-05-15 14:06:31 +01:00
Matt Aitken 2ed7e9f724 Show a background gradient if it’s a top-level page 2023-05-15 14:06:31 +01:00
James Ritchie ecea028fc0 Added another spinner variant to namedIcons 2023-05-15 13:57:35 +01:00
James Ritchie c76a7343f9 spinner now takes a colour 2023-05-15 13:52:50 +01:00
James Ritchie 1281a5e9aa Added loading buttons and improved the disabled states 2023-05-15 13:52:40 +01:00
James Ritchie 763d09b952 Added reduce motion support for spinner 2023-05-15 12:12:04 +01:00
James Ritchie 6d3b96aa20 Removed unused styles 2023-05-15 11:42:34 +01:00
James Ritchie 7f9447f403 Buttons now have selected state 2023-05-15 11:33:32 +01:00
James Ritchie 37836b938b Fixed icon hover state on the secondary large button 2023-05-15 11:09:16 +01:00
Matt Aitken b8605f82a8 Org grid item headers are clickable 2023-05-12 18:46:14 +01:00
Matt Aitken c81b5931c8 Brighter gradient 2023-05-12 18:43:34 +01:00
Matt Aitken 3d4aa61a3d Extended the gradient a bit 2023-05-12 18:43:16 +01:00
Matt Aitken 21ee76b6b2 Use simplur to deal with singular/plurals 2023-05-12 18:42:31 +01:00
Matt Aitken c4b65e0b96 Updated button to “menu-item” 2023-05-12 18:34:17 +01:00
Matt Aitken 11e2d2d0e1 Org grid looking ok 2023-05-12 18:33:11 +01:00
James Ritchie 149a849a7e Added a large button set and more styling for the menu item buttons 2023-05-12 18:31:58 +01:00
James Ritchie 18c4ede771 Added new menu item button 2023-05-12 17:31:19 +01:00
Matt Aitken 6c3cb7f5d1 Early org grid 2023-05-12 17:25:48 +01:00
Matt Aitken 945854c671 Upgraded Tailwind to 3.3.2 – gradient stop position support 2023-05-12 17:25:35 +01:00
James Ritchie 52460e5977 icon and style improvements to the popover 2023-05-12 16:52:38 +01:00
James Ritchie 60d571198f WIP new menu item button 2023-05-12 16:52:38 +01:00
James Ritchie 54f73a5fd5 added a menu item button to storybook 2023-05-12 16:52:38 +01:00
James Ritchie ac6d7d7a7a Improvements to the nav bar styling 2023-05-12 16:52:38 +01:00
James Ritchie 9c35cae103 added back in the shadcn background variable 2023-05-12 16:52:38 +01:00
James Ritchie ae358f9d41 Added 2 more colours for background and dividers between sections as separate variables 2023-05-12 16:52:38 +01:00
James Ritchie 786731b4e1 Increased stroke width of breadcrumb divider icon 2023-05-12 16:52:38 +01:00
James Ritchie 3af3db6a4a Added a min width do the shortcuts so narrow characters stay in a square 2023-05-12 16:52:38 +01:00
James Ritchie 4c889cf6f0 Changed the icon in the code block for copy/paste 2023-05-12 16:52:38 +01:00
Matt Aitken 89aa546b42 Added PageBody 2023-05-12 16:46:31 +01:00
Matt Aitken 695c4a928d Removed old layout components 2023-05-12 16:46:22 +01:00
Matt Aitken ec24dbeef2 Tweaked Storybook to work with <Link> elements. Added PageHeaders storybook page 2023-05-12 16:23:10 +01:00
Matt Aitken 43dc022675 Added Create new org button 2023-05-12 15:24:35 +01:00
Matt Aitken b3486a9b7f Orgs page layout started 2023-05-12 15:11:48 +01:00
Matt Aitken 46c1d2484a PageHeader supports a title, back and set of buttons 2023-05-12 15:11:48 +01:00
James Ritchie c9e402be57 Updated all buttons to use the new component props and children 2023-05-12 14:45:17 +01:00
James Ritchie cfb9fffb47 Better storybook layout for buttons 2023-05-12 14:45:17 +01:00
James Ritchie 9a531dd7f6 Improved the line height on the shortcut icno 2023-05-12 14:45:17 +01:00
James Ritchie 1f7b581208 Named icons inside buttons keep their specified colours 2023-05-12 14:45:17 +01:00
James Ritchie 7a474d45c6 Reformatted the button in Stories to take updated children 2023-05-12 14:45:17 +01:00
James Ritchie ea04d13a60 Shortcut icon style improvement 2023-05-12 14:45:17 +01:00
James Ritchie ec825ebb9d More button improvements 2023-05-12 14:45:17 +01:00
James Ritchie a873d6dfca Improved the image inside a button 2023-05-12 14:45:17 +01:00
James Ritchie fb687f3760 Added a button with an image inside 2023-05-12 14:45:17 +01:00
James Ritchie f00cf33c3a Fixed Storybook tailwind 2023-05-12 14:45:17 +01:00
James Ritchie 61a8768f9f Updated the buttons component inline with the designs 2023-05-12 14:45:17 +01:00
James Ritchie 07b4a4af73 Updated typography to use new bright/dimmed colours 2023-05-12 14:45:17 +01:00
James Ritchie 14e2829635 Added new colours to the config: “dimmed” and “bright” 2023-05-12 14:45:17 +01:00
James Ritchie 23d721a5ed WIP setting up the app buttons 2023-05-12 14:45:17 +01:00
Matt Aitken 8dc78776b3 Added breadcrumb to the nav 2023-05-12 14:14:38 +01:00
Matt Aitken 722b4b8e2d BreadcrumbIcon 2023-05-12 14:10:27 +01:00
Matt Aitken 260ed6ed8c Created MainContainer 2023-05-12 14:10:17 +01:00
Matt Aitken 4710e31c45 Added slate-650 2023-05-12 14:09:26 +01:00
Matt Aitken a1585dfa17 Hide the project menu on the Organization list page 2023-05-12 13:49:02 +01:00
Matt Aitken 34dfedd2e0 Use the pathBuilder for org/project paths 2023-05-12 13:17:36 +01:00
Matt Aitken f08c4e2354 Move path building to a file so we don’t have lots of them floating around 2023-05-12 13:17:21 +01:00
Matt Aitken 482760aeed Added a todo to the ProjectsMenu 2023-05-12 12:52:49 +01:00
Matt Aitken 5814b60370 Project menu functionality 2023-05-12 12:14:31 +01:00
Matt Aitken 21c2a7da25 Popover style with arrow 2023-05-12 11:00:26 +01:00
Matt Aitken d7e32348ee Logic for the ProjectsMenu working 2023-05-12 09:17:42 +01:00
Matt Aitken e0a824cf40 Removed useMatches log 2023-05-11 17:18:09 +01:00
Matt Aitken a85509ea80 Stripped out more old files, updated env vars file 2023-05-11 17:13:14 +01:00
Matt Aitken 5193fe0775 Updated routing to v2 2023-05-11 16:44:12 +01:00
Matt Aitken 6078d15aa1 Upgraded Remix, using new Tailwind compilation 2023-05-11 15:56:46 +01:00
Matt Aitken d6622accce Removed Nango 2023-05-11 15:31:31 +01:00
Matt Aitken 9805721498 Updated Remix packages 2023-05-11 15:10:29 +01:00
Matt Aitken 8f9a5e7009 More updated files 2023-05-11 15:04:04 +01:00
Matt Aitken 37bae77faa Deleted more old stuff 2023-05-11 14:59:52 +01:00
Matt Aitken cca8c60fbf Lots of compile fixes and deleted old stuff 2023-05-11 14:55:09 +01:00
Matt Aitken a30cc3332a Fixed some compile errors 2023-05-11 13:43:52 +01:00
Matt Aitken 77046470ea Added optional chrome to the CodeBlock 2023-05-11 13:43:42 +01:00
Matt Aitken 27c9e63e46 Fancy animated code highlight 2023-05-11 11:50:22 +01:00
James Ritchie ebe1fb516c More typography improvments 2023-05-11 11:49:14 +01:00
James Ritchie 5fda10806d Fixed tailwindMerge to work with the additional xxs font size 2023-05-11 11:49:14 +01:00
James Ritchie 92a8927162 Added more styles to Storybook 2023-05-11 11:49:14 +01:00
Eric Allam bcbb63f585 Removed trigger variants (moving to dynamic triggers instead) 2023-05-11 11:34:11 +01:00
Matt Aitken c67a465e3e Example of a CodeBlock that changes the highlighted range using buttons 2023-05-11 11:25:03 +01:00
Matt Aitken 83b79610af Line highlighting now takes ranges 2023-05-11 10:50:57 +01:00
Matt Aitken 4fa3ea2491 Improved size of clipboard icon 2023-05-11 09:48:06 +01:00
Matt Aitken 7a4742a314 Made inline code sky blue 2023-05-11 09:48:06 +01:00
Matt Aitken b24df76fca Started refactoring the index page 2023-05-11 09:48:06 +01:00
Matt Aitken 9e30d7a117 Tooltip story and created SimpleTooltip 2023-05-11 09:48:06 +01:00
Matt Aitken 789fab5b96 Added extension to the Tailwind merge plugin 2023-05-11 09:48:06 +01:00
Matt Aitken 07fa597755 Deleted old template presenters 2023-05-11 09:48:06 +01:00
Matt Aitken 62dd433de4 Zod is only being used as a type 2023-05-11 09:48:06 +01:00
Matt Aitken 713e85347c Cleaned up some hooks 2023-05-11 09:48:06 +01:00
Matt Aitken 13c2ba7dcd Deleted cloud projects folder 2023-05-11 09:48:06 +01:00
Matt Aitken 9b4d4090d7 Moved more components 2023-05-11 09:48:06 +01:00
James Ritchie f662e02cb1 Added a new xxs font size 2023-05-11 09:20:58 +01:00
Matt Aitken 35fce5a89d Inline code style updated and created a story 2023-05-11 08:38:14 +01:00
Matt Aitken 39bbf108a3 Updated more old components 2023-05-11 08:31:45 +01:00
Matt Aitken b1cf4cc042 Created a form story 2023-05-10 19:37:56 +01:00
Matt Aitken c24faa2e52 Delete old Copy buttons 2023-05-10 19:37:56 +01:00
James Ritchie 777f38a5ee Added new heading and paragraph styles 2023-05-10 19:03:18 +01:00
James Ritchie a79eb76fa9 Removed Poppins font from the import 2023-05-10 19:03:18 +01:00
Matt Aitken 22c3584988 One liner code looks good too 2023-05-10 18:46:07 +01:00
Matt Aitken 85f7ad871d You can set the max lines to display on a CodeBlock 2023-05-10 18:44:15 +01:00
Matt Aitken bfac524c75 Getting the copy button to work well 2023-05-10 18:20:30 +01:00
Matt Aitken 2a93c10828 Set the default language to TypeScript 2023-05-10 17:45:54 +01:00
Matt Aitken 833c509606 CodeBlock working well, except syntax highlighting is broken somehow 2023-05-10 17:44:49 +01:00
Matt Aitken 1b010571c9 CodeBlock is working with the @mantine/prism package 2023-05-10 15:39:40 +01:00
Matt Aitken 2765fe12cd Tidied up more old components 2023-05-10 08:44:45 +01:00
Matt Aitken 6f35b2e17d Merge pull request #123 from alexdanilowicz/patch-1
Fix storybook root alias by removing trailing slashes
2023-05-10 10:43:52 +03:00
Alex Danilowicz 35261ffc75 Fix storybook root alias by removing trailing slashes 2023-05-09 11:57:18 -07:00
Matt Aitken 60309677fe Deleted a ton of old components, started tidying things up 2023-05-09 18:50:46 +01:00
Matt Aitken 1f1cf0cb74 Added Storybook to turbo so you can call it from the root folder 2023-05-09 15:04:30 +01:00
Matt Aitken 0a1d3ed5ef Removed generate-integrations 2023-05-09 14:42:38 +01:00
Matt Aitken ab46981182 Updated pnpm-lock from the q2 branch 2023-05-09 14:36:38 +01:00
Matt Aitken b0f609dc15 Merge pull request #122 from Teddarific/teddy/storybook
Adding a component playground via Storybook
2023-05-09 16:34:41 +03:00
Matt Aitken 7ee305dfc6 Merge branch 'dev-q22023' into teddy/storybook 2023-05-09 16:34:30 +03:00
Matt Aitken 3f51835bea pnpm-lock.yaml from the q2 branch 2023-05-09 14:33:42 +01:00
Eric Allam 0a7ad96dcc Variants working in the new internal job system 2023-05-05 16:46:38 +01:00
Eric Allam 6d7f20b527 Moved over external source preparing and handling events into the internal job system 2023-05-05 16:09:42 +01:00
Eric Allam 8b7d847291 Added job queue system (needed for internal jobs but useful for our users as well) 2023-05-05 12:34:14 +01:00
Eric Allam c77dfae653 WIP new internal job system 2023-05-04 21:18:19 +01:00
Eric Allam 3e87e832c7 WIP trigger variants 2023-05-04 10:06:06 +01:00
Eric Allam eb83f941d2 Fixed Connection generic 2023-05-02 14:59:43 +01:00
Eric Allam b1a6ada443 Implement GitHub oauth and add it to the github integration 2023-05-02 13:53:37 +01:00
teddarific dc3306fb95 Lock file update 2023-05-01 11:01:02 -07:00
Alex Danilowicz faaaf253b2 Merge pull request #2 from Teddarific/alex/storybook
Clean up storybook gitignore
2023-05-01 10:58:23 -07:00
alexdanilowicz 2242ca3bf0 Cleanup gitignore 2023-05-01 10:53:40 -07:00
teddarific 258eda5bdb Storybook 2023-05-01 10:26:30 -07:00
teddarific 95ed5bacaa Initial implementation 2023-05-01 10:11:19 -07:00
Eric Allam a87fd6d4bd Create a single ApiCatalog (and keep the Api naming consistent) 2023-04-29 17:27:06 +01:00
Matt Aitken ea6bb4b467 Added a badge to indicate the name of the authentication method 2023-04-28 21:36:37 +01:00
Matt Aitken eb5d960f3a Use pointers to get data from token, support different scope param name 2023-04-28 21:30:57 +01:00
Matt Aitken 844c99ddc7 Split Slack into two separate auth methods. Added UI support for this with a popover. 2023-04-28 21:11:18 +01:00
Matt Aitken 232b9e97eb Added the User/Bot badges to the scopes list 2023-04-28 18:39:32 +01:00
Matt Aitken c288397048 Added Shadcn Badge component 2023-04-28 18:39:23 +01:00
Matt Aitken 7ec084c1a9 Added scope annotations to Slack 2023-04-28 18:29:11 +01:00
Matt Aitken b37d2a0ea2 Improved the NamedIcon to use an object and not use the API Store 2023-04-28 18:29:11 +01:00
Eric Allam 26d537867e Integrate with the new ApiConnection system to authenticate with Slack using OAuth 2023-04-28 16:44:52 +01:00
Matt Aitken c98ec1f1a8 Deal with APIs that reuse AccessTokens (like Slack)
- Re-use the same SecretReference and the actual stored secret
- Update any existing ApiConnections that are using the existing AccessToken
2023-04-28 15:27:33 +01:00
Matt Aitken ed0bc153da Added some js-doc annotations explaining when to use database secret store 2023-04-28 13:59:04 +01:00
Eric Allam 7ec4584d71 Added slug to ApiConnection (and renamed APIConnection to ApiConnection) 2023-04-28 13:49:19 +01:00
Eric Allam d75ee3a3dd 6 layers of child tasks 2023-04-28 09:30:18 +01:00
Matt Aitken ad722f1c8c Created Paragraph component with variant functionality 2023-04-27 18:30:38 +01:00
Matt Aitken 5ed5e8352d Getting credentials (with refreshing) 2023-04-27 17:28:40 +01:00
Eric Allam 51dd20424c Implemented subtasks 2023-04-27 17:25:19 +01:00
Eric Allam 1bba822e20 Added projects, moved envs to projects, and renamed executions to runs 2023-04-27 13:50:22 +01:00
Matt Aitken a119e79a49 Tokens are refreshing in a background job 2023-04-27 13:48:17 +01:00
Matt Aitken 52f9b16003 Added expiresAt column to the APIConnection table for refresh job 2023-04-26 19:31:20 +01:00
Matt Aitken 44dba712d1 Added Airtable 2023-04-26 18:17:57 +01:00
Matt Aitken e28a3566b6 Moved slack to its own file 2023-04-26 15:58:13 +01:00
Matt Aitken eb4f272d80 Add metadata and scopes to the connection 2023-04-26 14:43:50 +01:00
Eric Allam 3d38b95276 Continuing nextjs support, as well as moving event matching up to the server to support tasks that can wait for a trigger 2023-04-26 14:27:34 +01:00
Eric Allam 38e0460878 nextjs support WIP 2023-04-26 14:27:34 +01:00
Matt Aitken d8e29a9fa7 Added PKCE support (default on) 2023-04-26 11:58:42 +01:00
Matt Aitken fb36b68179 Setup the Shadcn styles, but not using CSS vars 2023-04-25 21:48:51 +01:00
Matt Aitken e14a2554ad Update Slack scope separator to be a comma 2023-04-25 19:52:17 +01:00
Matt Aitken b91a6548cb Delete credential file that was just a list of todos 2023-04-25 19:52:02 +01:00
Matt Aitken ee8aedea73 expires_in key fix 2023-04-25 18:04:04 +01:00
Matt Aitken 1fa39c875b Added scope description and use expiresIn for token payload 2023-04-25 18:03:39 +01:00
Matt Aitken 06741e14b7 db.server uses process.env directly 2023-04-25 14:26:46 +01:00
Matt Aitken 8e1929dbec Removed optional fields for Slack in app catalog 2023-04-25 14:26:39 +01:00
Matt Aitken 08abc86201 Token being stored correctly in the secret store with refresh and expire info where relevant 2023-04-25 14:08:28 +01:00
Matt Aitken 01a4ff387f The API connection icon is now visible 2023-04-24 18:35:23 +01:00
Matt Aitken cb026c51f3 OAuth connections are getting made and tokens are being stored 2023-04-24 18:34:09 +01:00
Matt Aitken 3fdb894296 Connection attempts are being created with redirects and errors 2023-04-23 15:29:07 -07:00
Eric Allam da0290e494 Adding support for connections, integrations, webhooks 2023-04-22 09:52:45 -07:00
Matt Aitken 5d081b2ef0 We’re now redirecting to the OAuth provider 2023-04-21 17:24:27 -07:00
Matt Aitken b087b5cdee More progress on oauth and started on the api UI 2023-04-21 16:00:25 -07:00
Matt Aitken cb18ee94bf WIP on oauth authorization 2023-04-19 21:05:46 +01:00
Matt Aitken 3142891b6a Stubs for authentication 2023-04-19 15:28:55 +01:00
Matt Aitken 7191697d70 Updated db schema for APIConnection and added Secret related tables 2023-04-19 15:27:42 +01:00
Matt Aitken 88f4ac7bc2 Added simple-oauth2 package 2023-04-19 15:24:39 +01:00
Matt Aitken fd9fc1f471 API store and stubs for the authentication service 2023-04-18 15:53:02 +01:00
Matt Aitken 3f6ee25fc4 First version of the info required to do OAuth2 for an external API 2023-04-18 13:42:54 +01:00
Matt Aitken c7c0f5e7f9 Removed fetch from the SDK 2023-04-18 11:45:26 +01:00
Eric Allam 98c8893046 WIP connections with authenticated tasks and http triggers 2023-04-06 16:15:17 +01:00
Eric Allam d0b8f827aa Implement better cursor pagination 2023-04-01 20:32:44 +01:00
Eric Allam d4eac626ec Removed ts in favor of ulid’s, and starting to implement the task list api #117 2023-03-31 16:38:30 +01:00
Eric Allam 43ca0b7e2a Implement sendEvent using the new Tasks API (#113 ) 2023-03-31 15:45:52 +01:00
Eric Allam 2d5c2394c8 Initial commit of the new serverless execution runtime 2023-03-31 14:32:00 +01:00
Eric Allam 746e4ae088 New serverless execution WIP 2023-03-23 20:35:56 +00:00
Eric Allam 1e12366e5a Merge pull request #81 from triggerdotdev/dev
Environment improvements
2023-03-23 10:37:41 +00:00
Eric Allam 98978a9992 Add a message about test events still working 2023-03-23 09:58:35 +00:00
Eric Allam d7dcb1bf61 Couple of copy tweats 2023-03-23 09:54:07 +00:00
James Ritchie 3bece03c7f Fixed ‘Configure connected github accounts’ button 2023-03-23 09:41:56 +00:00
James Ritchie 60fdde1919 Fixed the Request workflow and Integration typeforms on the integration page 2023-03-23 09:32:03 +00:00
James Ritchie c42d03a4a6 Made the copy text more obvious for the api key 2023-03-22 18:25:29 +00:00
James Ritchie 58a6ef436a Added a test page blank state 2023-03-22 18:19:45 +00:00
James Ritchie 3ab542b03f Small style improvements to the environments menu items 2023-03-22 17:47:40 +00:00
Eric Allam 2a760f1f2a Added conditional for test blank slate 2023-03-22 16:23:57 +00:00
Eric Allam 0a06e84350 Implement new env specific API key copy menu item 2023-03-22 16:20:27 +00:00
James Ritchie f2c07c1a31 Added a Testing message if you haven’t connected your workflow to Live yet 2023-03-22 16:14:36 +00:00
James Ritchie 829b851588 Small style tweak to the environments 2023-03-22 16:09:33 +00:00
James Ritchie 8f524f8c21 Style tweak to the environment banner 2023-03-22 15:44:50 +00:00
James Ritchie 0e2a7313c6 Toggle switch now clearer when disabled 2023-03-22 15:42:17 +00:00
Eric Allam 9ab7530070 Current environment is now workflow specific 2023-03-22 15:11:37 +00:00
Eric Allam f4833d3c1c Only show the “how to deploy cloud” section for enabled customers 2023-03-22 15:10:29 +00:00
Eric Allam 6d01f2ab0c Better logging when dispatching events 2023-03-22 15:10:29 +00:00
James Ritchie 6b5ebe79f4 Removed the Live and Cloud Deployed badges from the Workflows list 2023-03-22 12:20:50 +00:00
James Ritchie 83dece4617 Added a copy/paste api key button to the side menu of a workflow 2023-03-22 11:55:52 +00:00
James Ritchie 0b66a9ab37 Added API Keys into the Org menu if you don’t have a workflow 2023-03-21 13:01:30 +00:00
Eric Allam 4b50bf777f Prevent scheduled events from getting sent multiple times 2023-03-21 11:12:55 +00:00
Eric Allam 77a8505098 Don’t paginate logs 2023-03-21 11:12:55 +00:00
Eric Allam 1da4797835 Update server.ts 2023-03-21 11:12:55 +00:00
Eric Allam 410b282d38 Update zodPublisher to try and flush out retrying messages 2023-03-21 11:12:55 +00:00
Eric Allam 5d012a483d Prevent scheduled events from getting sent multiple times 2023-03-21 11:12:13 +00:00
Eric Allam 0feb793ce5 Don’t paginate logs 2023-03-21 11:11:33 +00:00
Eric Allam 26cccd15f9 Update server.ts 2023-03-20 23:40:09 +00:00
Eric Allam be4da5661e Update zodPublisher to try and flush out retrying messages 2023-03-20 23:03:08 +00:00
James Ritchie e5717080f2 Removed pulse animation from dropdown 2023-03-20 14:48:36 +00:00
James Ritchie de87d71e63 Made the enable workflow switcher disabled state more obvious 2023-03-20 14:05:52 +00:00
James Ritchie e93ecf4f8d Removed import 2023-03-20 14:05:23 +00:00
James Ritchie dae3edd3cd Mobile dropdown menus now work 2023-03-20 13:43:22 +00:00
James Ritchie af445a8f6d added padding to the public templates page 2023-03-20 13:16:51 +00:00
James Ritchie 02d114d6f0 Removed import 2023-03-20 12:59:18 +00:00
James Ritchie 8518531cf4 WIP added a new Cloud concertina panel to the Workflow Overview page 2023-03-17 17:29:33 +00:00
James Ritchie 192aad66b3 Moved up the API Keys page to the org level 2023-03-17 15:53:54 +00:00
James Ritchie 872b4a5e4d Added an environment disable/enable switcher to the side nav 2023-03-17 15:44:46 +00:00
James Ritchie 63a11f3f1b Added a Cloud Deployed badge to the workflows liist 2023-03-17 14:06:13 +00:00
James Ritchie 6d1bb15d46 Tools tips now takes Classname prop 2023-03-17 13:46:46 +00:00
James Ritchie aba95aaa04 Added a Live banner to the Workflows list 2023-03-17 13:46:22 +00:00
James Ritchie 338c0f0d4e Better organized the info on the repo settings screen 2023-03-16 19:40:55 +00:00
James Ritchie fd61a002a9 Moved the configure Github accounts button up to the top 2023-03-16 18:43:34 +00:00
James Ritchie fec7a0c96f Moved an if statement below the hooks 2023-03-16 17:28:15 +00:00
James Ritchie d06e9194c9 Removed the API keys from the org page 2023-03-16 16:56:11 +00:00
James Ritchie f8374783c1 Updated the layout of the Live overview page 2023-03-16 16:21:18 +00:00
James Ritchie 6f3be0138d Added the environment banner to the api key page 2023-03-16 16:13:02 +00:00
James Ritchie 15e527456d Moved API keys to their own page 2023-03-16 16:02:05 +00:00
James Ritchie 7d7e7ba078 Updated the colours for the environments (trying pink for dev) 2023-03-16 14:52:15 +00:00
D-K-P 1af020f8b8 Updated buttons from ‘grant access’ to ‘grant repo access’ 2023-03-16 14:20:30 +00:00
Eric Allam 79a1f5daea Set a max height on the KV step output 2023-03-15 16:29:57 +00:00
Eric Allam cee489025f Set a max height on the KV step output 2023-03-15 16:29:40 +00:00
Eric Allam e00a048afc Add new env vars to production env 2023-03-15 15:50:31 +00:00
Eric Allam 0ecebabd3f Add new env vars to production env 2023-03-15 15:50:12 +00:00
Eric Allam a9591ca396 Merge pull request #80 from triggerdotdev/dev
Technology Preview: Live repositories
2023-03-15 15:31:28 +00:00
Eric Allam db6be0f7cb Changeset: back to normal and cutting version @trigger.dev/sdk v0.2.22
- ab512157: Fixed an error message
- 1673d452: Added kv storage to persist data in between runs and between workflows
- 0b67b51a: Fix ESM error by dynamically importing ESM packages (chalk, terminal-link, etc.)
- f39bc44e: SDK now passes through the project ID from the env var
2023-03-15 15:05:43 +00:00
Eric Allam 683f24d4e4 Getting ready to update all templates to the newest SDK after it’s released 2023-03-15 15:05:43 +00:00
James Ritchie c4249d9e78 Made the progress icons on a deployment solid 2023-03-15 15:03:57 +00:00
James Ritchie e714b69896 Added the Refresh page button to a Pending workflow run 2023-03-15 14:56:51 +00:00
Eric Allam 378a7e390e Adding in good structured logging for the projects feature 2023-03-15 14:48:39 +00:00
James Ritchie 96a5ccd715 Fixed a layout issue with the main Org page 2023-03-15 14:25:41 +00:00
James Ritchie d3be9dc294 Fixed a bug with the layout on some pages 2023-03-15 14:23:35 +00:00
Eric Allam 3f60917d17 Disable scheduled triggers in development by default 2023-03-15 11:44:20 +00:00
James Ritchie 8430820faf Typo fixes in the custom event md files 2023-03-15 11:26:08 +00:00
D-K-P 7f5151dcf2 Added case sensitive comment to gh issues to slack 2023-03-15 11:13:44 +00:00
Eric Allam 8725a80d78 Better handle publishing messages to pulsar with a retry and better logging 2023-03-15 10:00:35 +00:00
Eric Allam fd85667515 Add UID to the workflow overview page to make my life easier 2023-03-15 09:05:17 +00:00
Eric Allam 16107fa5e6 Fixed staging webapp/wss CPU settings 2023-03-15 09:01:28 +00:00
Eric Allam ec727646fe Try out 2 min instances on staging 2023-03-15 08:59:47 +00:00
Eric Allam a7f4362a8b Unsubscribe from run command responses when a run is complete 2023-03-15 08:58:04 +00:00
James Ritchie 7c5d97c603 Uppercased a word 2023-03-14 22:11:19 +00:00
D-K-P f7850c14f9 Added more instructions to the Notion readme 2023-03-14 22:02:22 +00:00
James Ritchie a4813fe141 Changed the dev env colour back to green 2023-03-14 21:35:20 +00:00
Eric Allam 5e45309b81 Add the fixed live TRIGGER_API_KEY to project settings 2023-03-14 21:09:39 +00:00
Eric Allam 5f0cebc879 Don’t accidentally re-enable a disabled workflow if it’s registered again 2023-03-14 21:03:30 +00:00
James Ritchie 122020e66b added an environment banner to the top of every workflow page 2023-03-14 19:00:05 +00:00
Eric Allam c166ca6aa5 Show deploy logs when stopped and stopping 2023-03-14 18:49:00 +00:00
Eric Allam 7bbe42935e Got typecheck to pass 2023-03-14 18:46:25 +00:00
Eric Allam decb17c1ab Improve blank state copy (thanks to GPT-4) 2023-03-14 18:42:09 +00:00
Eric Allam 61246dcfb4 Filter out undefined steps after the Promise.all returns 2023-03-14 18:36:40 +00:00
Eric Allam 9625258394 Only show the environment picker on the workflow side menu 2023-03-14 18:27:44 +00:00
James Ritchie c051aa284a Moved the environment dropdown into the sidebar 2023-03-14 17:04:27 +00:00
Eric Allam b605ecdaaa Add sentry to WSS 2023-03-14 16:05:34 +00:00
James Ritchie 27d8742829 Fixed a Safari bug with missing arrow 2023-03-14 15:05:42 +00:00
Eric Allam 7cb350e37b Show last 3 deploys on project overview, and move deploys above workflows 2023-03-14 14:55:12 +00:00
James Ritchie e400d2f1fb Improved the header on mobile 2023-03-14 14:35:16 +00:00
Eric Allam 221370ba9e Fixed issue with handling installation.deleted github events 2023-03-14 14:32:50 +00:00
Eric Allam a446367514 Better handle redelivering messages instead of swalloing them up 2023-03-14 14:26:24 +00:00
James Ritchie 50e6d37780 Fixed 2 broken login links 2023-03-14 14:23:31 +00:00
James Ritchie 4803ad3c9a Small UI update to the Build logs layout 2023-03-14 14:18:24 +00:00
Eric Allam 7db68764ac Structure debug logs and retry workflow registration up to 4 times 2023-03-14 13:57:25 +00:00
Eric Allam ef48592a73 WorkflowRunSteps can be created in an “incomplete” state, so let’s not throw an exception when in that state 2023-03-14 12:43:31 +00:00
Eric Allam d0dd3d5acf Implement logout user tooltip 2023-03-14 11:55:51 +00:00
James Ritchie 0c74035a8f Added the username to the logout button and added a logout to the main org page 2023-03-14 11:50:59 +00:00
Eric Allam 213012b66e Implement repo blank state conditional 2023-03-14 11:27:45 +00:00
James Ritchie 2022d0ba56 Added a new state for connecting your github account to the main repo page 2023-03-14 11:16:09 +00:00
Eric Allam ae68825306 Decorate workflow registered logs 2023-03-14 10:51:32 +00:00
Eric Allam aa575b0d79 Better dockerfile 2023-03-14 10:21:50 +00:00
Eric Allam 4e83ef642d Update prerelease template deps script 2023-03-14 09:15:12 +00:00
Eric Allam e6740b5451 Remove org template code for when a workflow is created 2023-03-14 09:15:01 +00:00
Eric Allam 2e0a820518 Disable deploy buttons while the action is submitting 2023-03-13 20:46:35 +00:00
Eric Allam b5e47b7d60 Remove log logging 2023-03-13 20:28:14 +00:00
Eric Allam 3d328aeaaf Implement duration 2023-03-13 20:26:35 +00:00
Eric Allam 952fa6bc9e Handle deploying old templates with broken SDKs when built 2023-03-13 20:09:27 +00:00
Eric Allam 7d3bc03594 Allow admins to create as many projects as they wish 2023-03-13 20:09:27 +00:00
James Ritchie 19baf3f04a Updated link styling for logs blank state 2023-03-13 18:57:50 +00:00
James Ritchie 73d488f97d Added duration time to Deploy page 2023-03-13 18:54:02 +00:00
James Ritchie d6d8ca67a8 Tooltip modal colour fix 2023-03-13 18:42:24 +00:00
James Ritchie 9a93b0fee7 Fixed side nav height issue 2023-03-13 18:40:13 +00:00
James Ritchie 900eece37d Added Typeforms for request a workflow and integration 2023-03-13 18:36:52 +00:00
James Ritchie 20711ce4b2 Logout moved to the side menu 2023-03-13 17:55:20 +00:00
Eric Allam d9a43dc579 Implement the multiple hosted repo waitlist feature 2023-03-13 17:47:57 +00:00
James Ritchie f2aac62611 Small side menu width fix 2023-03-13 17:41:52 +00:00
James Ritchie 26d2392ac2 Added a cloud modal when trying to deploy a second repo 2023-03-13 17:30:57 +00:00
Eric Allam 64585b3393 Make sure repos can deploy if they are in error state 2023-03-13 17:00:17 +00:00
Eric Allam 58d919efdc Added build logs and make sure build logs are all captured 2023-03-13 16:37:18 +00:00
Eric Allam 5eeb275b32 Release template deps script 2023-03-13 15:33:23 +00:00
Eric Allam 629ee14b55 Show the latest commit in a project (even if it’s not deployed). Don’t deploy on pushes when all env vars haven’t been set 2023-03-13 15:33:23 +00:00
James Ritchie 113752e3e9 Showing a Spinner when new deploys are pending or building 2023-03-13 14:50:49 +00:00
James Ritchie 758fad8447 Removed the URL and made the Name a link instead 2023-03-13 14:29:10 +00:00
James Ritchie 3967befabd Added tooltip label to logo with a secondary nav 2023-03-13 14:17:55 +00:00
James Ritchie cbff0baf15 Fixed public page layouts 2023-03-13 13:36:30 +00:00
Eric Allam b0cccc059a Update lockfile 2023-03-13 13:36:14 +00:00
Eric Allam c879f48109 Better error message when trying to deploy an unsupported repository 2023-03-13 13:29:38 +00:00
Eric Allam fce52cee6b Changeset: prerelease next packages 2023-03-13 13:29:38 +00:00
James Ritchie aedf7e7295 Fixed layout of New Org page 2023-03-13 12:28:59 +00:00
James Ritchie c593132663 Reimplemented the impersonation banner 2023-03-13 12:23:45 +00:00
Eric Allam ff7bdd7619 Add cloud related env vars to staging env 2023-03-13 11:41:40 +00:00
Eric Allam c229fa31fc Setup posthog site feedback widget 2023-03-13 11:28:22 +00:00
James Ritchie 632f76cbb9 Added the Org nav to the Repo Coming Soon page 2023-03-13 11:27:12 +00:00
Eric Allam 5dae509aa9 Fixed up a bunch of nav issues 2023-03-13 11:22:54 +00:00
James Ritchie 1b902dabfa Updated the repository coming soon page 2023-03-13 11:01:38 +00:00
Eric Allam a1043a3b28 Added coming soon page for the cloud hosting 2023-03-13 10:35:19 +00:00
James Ritchie 22c682bf4c Added a new Org side menu 2023-03-13 10:29:04 +00:00
Eric Allam 0b67b51ae4 Fix ESM error by dynamically importing ESM packages (chalk, terminal-link, etc.) 2023-03-12 20:35:57 +00:00
Eric Allam 1673d4527a Added KV store feature 2023-03-12 20:12:18 +00:00
James Ritchie 5e762a9cbf Moved request integration button to top right of page 2023-03-12 10:26:27 +00:00
Eric Allam 406be0107e A couple side menu fixes 2023-03-11 21:16:30 +00:00
James Ritchie 4ab4174cb2 Improved the layout of the settings page 2023-03-11 18:35:54 +00:00
James Ritchie 78e6ed9bfc Added some messaging for blank states 2023-03-11 18:27:31 +00:00
James Ritchie f813e59b0c Improved the state if you haven’t granted access to github yet 2023-03-11 18:16:26 +00:00
James Ritchie 2992a855f9 Added active states to the collapsed side menu 2023-03-11 17:53:28 +00:00
James Ritchie f172a0ee1a Added titles on hover for the compact menu 2023-03-11 17:38:15 +00:00
James Ritchie 3c74e4f5f6 organized imports 2023-03-11 17:38:04 +00:00
James Ritchie bf4eefe4fd Long titles now ellipsis in the menu header 2023-03-11 17:13:21 +00:00
James Ritchie 2e81d6fe20 Fixed page layouts when they have the secondary nav in them 2023-03-11 17:07:43 +00:00
James Ritchie 77f243a14a Fixed the app layout width 2023-03-11 16:37:46 +00:00
James Ritchie 4245c21248 Added a section title to the side menu 2023-03-11 16:37:35 +00:00
James Ritchie e6d276de03 Added a title to the top of the nav 2023-03-11 16:13:26 +00:00
Eric Allam 3c09c1704d Add single run API endpoint 2023-03-11 15:40:01 +00:00
Eric Allam 0e3c3a78d7 Add single run API endpoint 2023-03-11 15:39:34 +00:00
Eric Allam fa28005f40 Move around stuff for the new nav structure 2023-03-11 15:33:03 +00:00
Eric Allam 3a956c2718 Add runs JSON endpoint 2023-03-10 18:41:10 +00:00
Eric Allam a21e9e9838 Fixes an issue where the trigger workflow ttl guard was preventing workflow runs from resuming after being disconnected 2023-03-10 18:41:10 +00:00
Eric Allam c109a9f31c Add runs JSON endpoint 2023-03-10 18:38:46 +00:00
James Ritchie c1dd5e92fe Moved the github connect button to top right 2023-03-10 18:25:26 +00:00
James Ritchie 441183975c Updated the select repo page 2023-03-10 18:23:30 +00:00
Eric Allam 0f9c0a8d06 Improve the select repo experience a little bit 2023-03-10 17:58:32 +00:00
Eric Allam 5beba8f12e Fixes an issue where the trigger workflow ttl guard was preventing workflow runs from resuming after being disconnected 2023-03-10 17:58:32 +00:00
James Ritchie 9b7102605f Fixed the create new workflow page layout 2023-03-10 17:10:12 +00:00
James Ritchie 0618cd0d7a Improved the visibility of the copy CLI text button 2023-03-10 17:09:59 +00:00
James Ritchie bc7f11fb57 Improved the API Key messaging 2023-03-10 17:06:15 +00:00
James Ritchie 19d731eebb removed unused imports 2023-03-10 16:53:32 +00:00
James Ritchie e2b183bd96 Added better buttons to the header 2023-03-10 16:53:11 +00:00
James Ritchie 80709c5415 Improved button focus states 2023-03-10 16:52:54 +00:00
James Ritchie 22e3c7f5f2 Fixed height of AppBody 2023-03-10 16:38:37 +00:00
James Ritchie 843231c410 WIP Improving the side navigation for the app 2023-03-10 16:13:40 +00:00
James Ritchie 1a33bdd3ae Updated the side menu - removed redundant items 2023-03-10 16:13:40 +00:00
Eric Allam c0300c6bec Deal with project settings and environment vars, and disabling projects 2023-03-10 15:43:40 +00:00
James Ritchie bffa5ef0e2 Improvements to the Logs page 2023-03-09 18:52:31 +00:00
James Ritchie 4e95232d59 improved the markup for the deploy page info panel 2023-03-09 18:40:32 +00:00
James Ritchie ca64356f12 Select repo now has a state for ‘relevant’ 2023-03-09 18:38:25 +00:00
James Ritchie c2c1b0feb4 Improvement to the repo page 2023-03-09 16:30:06 +00:00
James Ritchie 57afaf1995 Improvements to the repo details panel 2023-03-09 16:05:27 +00:00
Eric Allam 4c965ed5a2 Fixed issue with pending project endlessly revalidating 2023-03-09 16:01:03 +00:00
James Ritchie 0462141e1b Improvements to the Overview and deploy pages 2023-03-09 15:52:29 +00:00
Eric Allam ce39397c57 Better format log dates 2023-03-09 15:39:07 +00:00
Eric Allam 55cb81f7af Implement the log page along with the log links 2023-03-09 15:31:38 +00:00
James Ritchie f7a4e69025 status icon improvements 2023-03-09 14:23:38 +00:00
Eric Allam 55ac0019b7 Couple tweaks to the logs 2023-03-09 14:22:35 +00:00
Eric Allam b87a3dd2ba More logging work and buttons for stoppping or cancelling a deployment 2023-03-09 14:02:03 +00:00
Eric Allam 41c751c081 Changing on logs are polled, and now polling for build logs as well 2023-03-09 14:01:28 +00:00
Eric Allam 1f34a22bd8 Update how we poll for logs and add build logs back in 2023-03-09 14:01:28 +00:00
James Ritchie 10ef03eee0 Coloured the log red if it’s an error 2023-03-09 13:17:33 +00:00
James Ritchie bef6de13db Added a new logs table 2023-03-09 13:10:29 +00:00
D-K-P bd356663cc Removed .dev from Acme 2023-03-09 11:53:01 +00:00
James Ritchie 1670c3e19b Compressed the info in the overview panel 2023-03-09 11:03:35 +00:00
James Ritchie aa35555356 Added a Stop button 2023-03-09 10:48:18 +00:00
James Ritchie 1520be20c4 Added a view build logs with disabled property 2023-03-09 10:33:03 +00:00
James Ritchie 9cd49a40d5 Show spinner if status is deploying, pending, building. Also added live reload indicator 2023-03-09 10:17:21 +00:00
James Ritchie d27f11e26c More status colour updates 2023-03-09 09:51:17 +00:00
James Ritchie 9aff64183b Updated status colours 2023-03-09 09:48:49 +00:00
James Ritchie 5e32c8498b New layout for the deployment page 2023-03-09 09:42:11 +00:00
Eric Allam bd2f2d442d Implement the select repo grouping by gtihub account 2023-03-09 09:11:27 +00:00
James Ritchie 328ff206d7 Updated deployListStatus 2023-03-09 09:07:25 +00:00
James Ritchie 774a0fe9e3 Added a Header 2023-03-08 20:52:23 +00:00
James Ritchie 3eb76739cc Added type=submit 2023-03-08 20:52:05 +00:00
James Ritchie f00f6ae1bd Improvements to the deployment overview page 2023-03-08 20:32:52 +00:00
James Ritchie 7798c0166d Added a set of icons, loading indicators and titles to use for the deployment status 2023-03-08 20:28:02 +00:00
James Ritchie 9c63687d56 Initial clean up of the deploy page 2023-03-08 20:28:01 +00:00
Eric Allam 28cad34c5f Deployment logs 2023-03-08 18:19:07 +00:00
James Ritchie 86d345bffc Improved the layout for the list of github repos 2023-03-08 15:07:15 +00:00
James Ritchie 9cdab61eaf Showing a conditional state if you have no repos connected yet 2023-03-08 14:00:37 +00:00
James Ritchie 48b35c47b4 Improvements to the Repository list 2023-03-08 13:00:57 +00:00
Eric Allam 349d7f38cc Added deploy and project list (live WIP) 2023-03-07 22:13:37 +00:00
Eric Allam 7cbc279407 Manual deploy and added a deployment version number 2023-03-07 16:24:32 +00:00
Eric Allam 301d500c3d Fixing the re-exporting of routes 2023-03-07 15:37:55 +00:00
Eric Allam 4150ba8786 If a repo is already in a project, then just link to it from the select repo page 2023-03-07 15:19:43 +00:00
Eric Allam f39bc44eec Projects
- Deploy a new VM when a push event comes through
- Live updating project overview page
2023-03-07 15:12:42 +00:00
Eric Allam 4fabd481e6 The repos that are included in a workflow are the most relevant repos 2023-03-07 15:12:42 +00:00
D-K-P a374338ac5 Added repo rename instructions to gh issues to slack / gh stars to slack 2023-03-07 10:05:33 +00:00
D-K-P a7337478d0 Added Resend queue jump instructions to the readme 2023-03-07 10:03:58 +00:00
James Ritchie a7b37e9f7b impersonate banner style fix 2023-03-03 15:14:35 +00:00
James Ritchie 48e0cff123 Lots of improvements to the app layout behaviour
Main improvements:

- You can have different footer if logged in or out
- Footers aren’t fixed to the bottom of the page if logged out
2023-03-03 15:14:35 +00:00
James Ritchie 8a4cc312a1 Templates and overview pages now viewable on logged in mobile 2023-03-03 15:14:35 +00:00
Eric Allam f008f803b8 Updating github app configuration works, and paginating all repos for an installation as well, and displaying a list of repos to deploy 2023-03-03 14:35:43 +00:00
Eric Allam b43224c353 Upgrade to remix v1.11.0 for streaming and defer support 2023-03-03 14:35:43 +00:00
Eric Allam 8bb9798ff4 Fire off an app installation callback 2023-03-03 14:35:43 +00:00
James Ritchie 86ae6f927a Fixed safari bug where h-full was shunting content off the screen 2023-03-03 11:53:35 +00:00
Eric Allam c0693ac508 Cleanup old github app stuff and octokit and prepare for installing new github app for cloud 2023-03-03 11:13:07 +00:00
Eric Allam ab512157a5 Added ability to patch all template repos and push the changes 2023-03-03 08:34:15 +00:00
Eric Allam 86475d4e3c Changeset: version (@trigger.dev/sdk v0.2.21) 2023-03-02 22:31:44 +00:00
Eric Allam c5084209eb Fix for metadata capture when using npm/yarn 2023-03-02 22:30:43 +00:00
Eric Allam eada69040c Bump notion 2023-03-02 22:30:43 +00:00
Eric Allam 6deabb21ba Bump notion 2023-03-02 22:30:43 +00:00
James Ritchie 2bb324752e Removed the Product Hunt Banner but kept it commented out for later 2023-03-02 18:05:59 +00:00
Eric Allam 174954511e Changeset: version (fixing integration package versioning) 2023-03-02 15:36:56 +00:00
Eric Allam 408bd6ddc8 Added a script to automatically update template repo @trigger.dev packages instead of having to do it manually 2023-03-02 15:34:53 +00:00
Eric Allam 1789d9d215 Use the caret semver for the SDK in all the other packages 2023-03-02 14:44:33 +00:00
Eric Allam f3ac17ad91 Use caret constraint for the sdk in airtable as well 2023-03-02 13:27:19 +00:00
Eric Allam 71d78805e7 Use a caret constraint for the SDK to prevent updating integration dependencies when the SDK bumps a minor version (github only) 2023-03-02 12:43:13 +00:00
Eric Allam 3012771a21 Remove unused argument 2023-03-02 12:29:56 +00:00
Eric Allam 5ec7198046 Send additional metadata about a workflow when initializing the host 2023-03-02 12:29:47 +00:00
D-K-P 60cb8d54c4 Added tooltips to sidebar and org page 2023-03-01 18:47:31 +00:00
D-K-P 9d7186eba5 Added sendgrid template 2023-03-01 17:42:32 +00:00
D-K-P 5401fa1acb Added basic cron template 2023-03-01 14:18:32 +00:00
Matt Aitken 79f21fd94e Fix for bad documentation url in Notion spec 2023-03-01 13:47:14 +00:00
James Ritchie fa7ec12434 Added a Product Hunt banner 2023-03-01 12:54:52 +00:00
Matt Aitken c6a668a5f6 Set is constant 2023-02-28 20:52:34 +00:00
Matt Aitken dd786845b7 Removed curly bracket from the end of the combined schema 2023-02-28 20:32:30 +00:00
Matt Aitken 03e90ea48f Merge pull request #75 from triggerdotdev/dev
GitHub Issue to Notion template
2023-02-28 20:29:41 +00:00
Matt Aitken fee24168aa Revert "Added a save/cancel button for changing webhook secrets"
This reverts commit ce019c7b96.
2023-02-28 19:52:09 +00:00
Matt Aitken b344dfaaf8 Added the GitHub issue -> Notion template 2023-02-28 19:50:02 +00:00
James Ritchie ce019c7b96 Added a save/cancel button for changing webhook secrets 2023-02-28 18:19:22 +00:00
D-K-P 9a52afe1e2 Added new images for all the templates and increased their size on the template grid 2023-02-28 15:07:39 +00:00
Matt Aitken d67e429f23 Merge pull request #74 from triggerdotdev/dev
 New Integration: Notion API
2023-02-28 15:07:11 +00:00
Eric Allam 628726459a Added the supabase to loops template image 2023-02-28 15:04:44 +00:00
Matt Aitken 603c3953c6 Any action input that isn’t part of the params is put in the body 2023-02-28 14:27:55 +00:00
Matt Aitken 8a7795bd4d Don’t validate the action body 2023-02-28 14:27:55 +00:00
Matt Aitken 9202d3458a Added Notion production client id 2023-02-28 14:27:55 +00:00
Eric Allam fb98a4708f Added supabase to loops template 2023-02-28 14:07:04 +00:00
Matt Aitken b29039735b Fix for connection dropdowns only working for services (not the source) 2023-02-28 12:33:45 +00:00
Matt Aitken 4d5303b0ad Changeset version: @trigger.dev/notion@0.1.24 2023-02-28 12:33:45 +00:00
Matt Aitken c3f292a320 Changeset added: @trigger.dev/notion Far smaller SDK, by creating shared types 2023-02-28 12:33:45 +00:00
Matt Aitken cb414b448e Don’t generate intermediate schema 2023-02-28 12:33:45 +00:00
D-K-P 5ad6330868 Added discord > supabase image 2023-02-28 11:48:34 +00:00
Matt Aitken e8ee088f85 Generated Notion SDK 2023-02-28 11:13:45 +00:00
Matt Aitken 167b1d1db9 Generated Airtable 2023-02-28 11:06:44 +00:00
Matt Aitken a365b81915 Generated Sendgrid 2023-02-28 11:06:44 +00:00
Matt Aitken 697e8f930a Added Prettify to the inputs and outputs inline 2023-02-28 11:06:44 +00:00
Matt Aitken 0e0baa8af8 You can generate specific integrations now 2023-02-28 11:06:44 +00:00
Matt Aitken a82088c243 Autoreffer works deep to shallow so we get refs inside refs. Better auto-naming 2023-02-28 11:06:44 +00:00
Matt Aitken e4fc05924e Autoreffer now only refs after x occurences, works for string enums too 2023-02-28 11:06:44 +00:00
Matt Aitken b3a46212ee Generate the service and use the auto reffer, and output intermediate files for viewing 2023-02-28 11:06:44 +00:00
Matt Aitken dec790e4a3 AutoReffer improved 2023-02-28 11:06:44 +00:00
Eric Allam a146469d63 Fixed bug where a duplicate event ID would throw an error instead of returning a success 2023-02-28 09:35:19 +00:00
Matt Aitken e5a3bb8903 Automatically create references to de-duplicate objects 2023-02-27 23:12:45 +00:00
Matt Aitken b61b5054dc Type generator works with $refs 2023-02-27 23:12:35 +00:00
Matt Aitken b613f3bbfc Deal with undefined params where an endpoint has no input 2023-02-27 23:12:08 +00:00
Matt Aitken 800ae1d834 Added Notion to the list of packages 2023-02-27 23:11:53 +00:00
Matt Aitken d5d3786a97 Automatically set "Notion-Version" to "2022-06-28" so users don’t have to 2023-02-27 21:39:06 +00:00
Matt Aitken b90eeea1e8 Allow generating actions with some manipulation 2023-02-27 21:39:06 +00:00
Matt Aitken aa30013e05 Params go before body in the generated SDK 2023-02-27 21:39:06 +00:00
Matt Aitken eaf06638c3 Generating the docs and SDK now deals better with anyOf 2023-02-27 21:39:06 +00:00
Eric Allam 4834eabb9d Scroll restoration not working for some reason so need to do full reloads when going to a template page 2023-02-27 18:23:17 +00:00
Eric Allam 8aceb6418a Added supabase-to-discord template 2023-02-27 18:05:07 +00:00
Eric Allam da6062a20c Changeset: new version 2023-02-27 16:54:09 +00:00
Eric Allam b57241951b Fixed issue where default webhook schema wasn't being used which caused an error 2023-02-27 16:53:55 +00:00
Matt Aitken 6a1823b242 Installed packages 2023-02-27 15:12:45 +00:00
Matt Aitken 2ad039f867 Merge remote-tracking branch 'origin/integrations/notion' into dev
# Conflicts:
#	pnpm-lock.yaml
2023-02-27 15:12:17 +00:00
Matt Aitken 634ec6c1e3 Added Notion staging OAuth details 2023-02-27 15:11:38 +00:00
Matt Aitken a73ddb2dad Generated Notion SDK 2023-02-27 14:46:59 +00:00
Matt Aitken 0504667334 Combine allOf schemas before generating the types, much better results and docs 2023-02-27 14:46:41 +00:00
Matt Aitken 6d85eee0cd Generate the SDKs in sequence not parallel 2023-02-27 14:28:55 +00:00
Matt Aitken 1f43988ad9 Increased generate-integrations memory to 16GB… we need to optimise this at some point 2023-02-27 14:24:21 +00:00
Matt Aitken 0129cbb162 Generating docs works with allOf 2023-02-27 14:24:05 +00:00
Matt Aitken 0121e1b50d SDK input schema is now the merged object of params and body 2023-02-27 14:23:54 +00:00
Eric Allam 85ced7818f Merge pull request #72 from triggerdotdev/dev
Change from npm create trigger to npx create-trigger
2023-02-27 13:49:59 +00:00
Eric Allam 55eb81f219 Merge pull request #71 from triggerdotdev/dev
Onboarding improvements using the new create-trigger CLI
2023-02-27 13:07:30 +00:00
Matt Aitken 0f90ea9455 getComments and createComment 2023-02-27 13:01:27 +00:00
Matt Aitken 6d2217bd18 updateDatabase 2023-02-27 12:48:39 +00:00
Matt Aitken 0f51328979 createDatabase 2023-02-27 12:03:43 +00:00
Matt Aitken aea812f621 queryDatabase 2023-02-27 11:59:45 +00:00
Matt Aitken 4fe573b397 getDatabase 2023-02-27 11:32:21 +00:00
Matt Aitken d338b95e7e deleteBlock 2023-02-27 11:26:28 +00:00
Matt Aitken 2d9bdb26d4 appendBlockChildren 2023-02-27 11:23:24 +00:00
Matt Aitken b660a4c07f Update block and get block children 2023-02-27 11:16:41 +00:00
Matt Aitken 65aa6e4e4c Get block endpoint 2023-02-27 09:26:28 +00:00
Matt Aitken 0432a64357 Update page endpoint 2023-02-27 09:19:28 +00:00
Matt Aitken c2eea6c2b6 Added todos with remaining endpoints 2023-02-26 18:56:07 +00:00
Matt Aitken 81bbae977f Fix for endpoints that return void 2023-02-26 18:53:25 +00:00
Matt Aitken 37bd8f4952 Separated the bot endpoint response so it doesn’t mess the SDK generation up 2023-02-26 18:47:10 +00:00
Matt Aitken 20d6c6fdfb Added typecheck to integrations 2023-02-26 18:37:11 +00:00
Matt Aitken ebc45b7f8d Fix for typecheck error in services 2023-02-26 18:37:05 +00:00
Matt Aitken 77f146210a Fixed generating successful responses schemas 2023-02-26 18:36:58 +00:00
Matt Aitken 18cb9c6bec Fix for badly named file 2023-02-26 18:36:40 +00:00
Matt Aitken dfd4966cb0 Removed validation when doing requests, changed the way we select the success/fail on a response 2023-02-26 18:24:13 +00:00
Matt Aitken d7384bf481 Nock file for creating a page 2023-02-26 18:23:25 +00:00
Matt Aitken f7dfc712b5 Added content-type to the createPage spec 2023-02-26 17:37:47 +00:00
Matt Aitken 1cfb93ada9 Remove validation of the request body and params 2023-02-26 17:29:43 +00:00
Matt Aitken 7437d9fbd6 Create page test – this crashes Node because the schema is so massive… 2023-02-26 17:27:11 +00:00
Matt Aitken 16c152ec26 Updated Notion Nock files 2023-02-26 17:05:02 +00:00
Matt Aitken 92d4008cc2 Notion specs updated by pointing at new generated schemas. Tests passing. 2023-02-26 16:50:57 +00:00
Matt Aitken 2770df644b Imported dependencies and formatted Notion schemas 2023-02-26 16:33:21 +00:00
Matt Aitken 7bebf919e2 Fixed imports and formatted some of the files 2023-02-26 15:39:43 +00:00
Matt Aitken 4b6e21d6d4 Split Notion schemas into more sensible sized files 2023-02-26 15:32:22 +00:00
Matt Aitken 21d70821de Massive Notion schema from SDK 2023-02-26 14:38:17 +00:00
Matt Aitken a4d3f1b61c Massive generated schema 2023-02-26 14:37:08 +00:00
Matt Aitken 42e297474c Delete old schemas 2023-02-26 14:37:00 +00:00
Matt Aitken a40afd55d2 Output the schema refs when generating a schema 2023-02-26 14:34:04 +00:00
Matt Aitken 621254d0ab Fleshed out the specs some more 2023-02-26 13:26:15 +00:00
Matt Aitken 0ff568843d make functions turn properties into optional 2023-02-26 13:26:03 +00:00
Matt Aitken 1bc9bc9244 getPage is working 2023-02-24 19:18:35 +00:00
Matt Aitken 2fea9e5a6c Use a test Notion workspace so I can test all the integration features 2023-02-24 19:12:43 +00:00
Matt Aitken 2756bfe073 Notion search is working and performance is good (when a schema is cached) 2023-02-24 19:05:19 +00:00
Matt Aitken 165ca9cb0f Option to measure performance of validation and compiling 2023-02-24 19:04:46 +00:00
Matt Aitken 840435284b Using ajv to compile on-demand and validate using JSON Schemas 2023-02-24 18:48:03 +00:00
Matt Aitken d65ef5eb87 If schema validation fails on prod and it’s a 2xx status, let it through as a success and log validation error 2023-02-24 17:49:41 +00:00
Matt Aitken 71007b5f60 Added Sentry to the integrations service 2023-02-24 17:49:02 +00:00
Matt Aitken 43250c444e Added Notion database schema (748 lines 😳) 2023-02-24 17:14:28 +00:00
Matt Aitken 0ccc6d3729 Search is working with pages, but not databases yet 2023-02-24 16:12:05 +00:00
Matt Aitken e779cff42a New nock responses 2023-02-24 15:05:07 +00:00
Matt Aitken 0b3c3758a7 Switched to using oauth for Notion 2023-02-24 15:05:00 +00:00
Matt Aitken ab351cbc8e Merge remote-tracking branch 'origin/nango-upgrade' into integrations/notion
# Conflicts:
#	apps/integrations/package.json
2023-02-24 14:56:06 +00:00
Matt Aitken dd4fc8c262 Added search endpoint but the current auth token is giving no results back 2023-02-24 14:54:56 +00:00
Matt Aitken a55acb6296 More page types and fixed Notion tests 2023-02-24 13:33:46 +00:00
Matt Aitken 4cae6fed63 Added a lot more schemas for the page 2023-02-24 12:51:31 +00:00
Matt Aitken 28c70ab9d1 Upgrade to the latest Nango – this will require a manual server migrate and testing 2023-02-24 11:34:29 +00:00
Matt Aitken 9d65a1a2c3 Schema for page 2023-02-24 09:55:18 +00:00
Matt Aitken fc3e85f93e Made userId user_id instead. WIP on getPage 2023-02-24 09:55:12 +00:00
Matt Aitken 8252f3ef86 Revert "Using generated schemas…"
This reverts commit 7d78089275.
2023-02-24 08:32:15 +00:00
Matt Aitken 7d78089275 Using generated schemas… 2023-02-23 20:27:19 +00:00
Matt Aitken 5ae21f28c3 Removed log from typescript-to-json-schema generator 2023-02-23 20:26:57 +00:00
Eric Allam 2614860862 Merge pull request #70 from triggerdotdev/dev
Hotfix: Fixed the issue with templates not deploying
2023-02-23 18:26:19 +00:00
Matt Aitken c2d8934820 Generate Schema TypeScript from TypeScript Types file 2023-02-23 16:32:22 +00:00
Matt Aitken 2edff18a59 Tool to generate TypeScript JSONSchemas from TypeScript types working 2023-02-23 13:56:59 +00:00
Matt Aitken fc94c78109 Work on generating schemas from TypeScript files 2023-02-23 13:46:40 +00:00
Matt Aitken 77a99c226d WIP on Notion schemas… pages are complex 2023-02-23 12:07:26 +00:00
Matt Aitken 50921f1307 makeStringSchema: you can set a string as a const 2023-02-23 12:07:08 +00:00
Matt Aitken 5445abeb9d Merge pull request #68 from triggerdotdev/dev
UX improvements to the workflow overview page
2023-02-22 19:34:02 +00:00
Matt Aitken 160ab22f70 Added getBotInfo endpoint 2023-02-22 16:06:24 +00:00
Matt Aitken 0cf3ebfae3 First two Notion endpoints working with API key 2023-02-22 14:58:47 +00:00
Matt Aitken 8767403a44 Notion authentication setup and first endpoint, but not tested yet 2023-02-22 12:43:13 +00:00
Matt Aitken 5f1ac75044 The CLI now deals with oauth with no scopes 2023-02-22 12:42:44 +00:00
Matt Aitken 0f75d15df6 Merge pull request #65 from triggerdotdev/dev
New integrations system
2023-02-21 20:06:17 +00:00
Eric Allam df1f695f9b Merge pull request #64 from triggerdotdev/dev
The logo had a broken URL link in the marketing header + added infisical to package.json
2023-02-20 21:18:26 +00:00
Matt Aitken 5fa751cd76 Merge pull request #63 from triggerdotdev/dev
Added a Todo comment to each of the samples to make it clear the id needs to be unique
2023-02-17 16:09:31 +00:00
Eric Allam 8961a30bf8 Merge pull request #62 from triggerdotdev/dev
Feature: Easy to use templates with better onboarding
2023-02-17 14:47:44 +00:00
1821 changed files with 92559 additions and 96278 deletions
+2 -9
View File
@@ -2,17 +2,10 @@
"$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"fixed": [["@trigger.dev/*"]],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"wss",
"webapp",
"integrations",
"emails",
"internal-cli",
"integration-catalog"
]
"ignore": ["webapp", "emails", "@trigger.dev/database"]
}
-8
View File
@@ -1,8 +0,0 @@
# You need to stop and re-run docker to switch, `pnpm run docker:db`
# To login using GitHub and connect via OAuth with most integrations
AUTH_CALLBACK_URL=http://localhost:3004/oauth/callback
# To connect with Slack
# AUTH_CALLBACK_URL=https://<ngrok subdomain>.eu.ngrok.io/oauth/callback
# You only need to use this locally if you specify PIZZLY_SECRET_KEY in the webapp .env file
# PIZZLY_SECRET_KEY=<secret_key>
+9 -1
View File
@@ -3,6 +3,7 @@
.github
# editor
.idea
.vscode
# dependencies
node_modules
.pnp
@@ -34,4 +35,11 @@ cypress/screenshots
cypress/videos
apps/**/styles/tailwind.css
packages/**/styles/tailwind.css
packages/**/styles/tailwind.css
.changeset
examples
CHANGESETS.md
CONTRIBUTING.md
README.md
LICENSE
+36
View File
@@ -0,0 +1,36 @@
# YOU MIGHT LIKE TO MODIFY THESE VARIABLES
SESSION_SECRET=abcdef1234
MAGIC_LINK_SECRET=abcdef1234
ENCRYPTION_KEY=ae13021afef0819c3a307ad487071c06 # Must be a random 16 byte hex string. You can generate an encryption key by running `openssl rand -hex 16` in your terminal
LOGIN_ORIGIN=http://localhost:3030
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres?schema=public
# This sets the URL used for direct connections to the database and should only be needed in limited circumstances
# See: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#fields:~:text=the%20shadow%20database.-,directUrl,-No
DIRECT_URL=${DATABASE_URL}
REMIX_APP_PORT=3030
APP_ENV=development
APP_ORIGIN=http://localhost:3030
NODE_ENV=development
# OPTIONAL VARIABLES
# This is used for logging in via GitHub. You can leave these commented out if you don't want to use GitHub for authentication.
# AUTH_GITHUB_CLIENT_ID=
# AUTH_GITHUB_CLIENT_SECRET=
# Resend is an email service used for signing in to Trigger.dev via a Magic Link.
# Emails will print to the console if you leave these commented out
### Visit https://resend.com, create an account and get your API key. Then insert it below along with your From and Reply To email addresses. Visit https://resend.com/docs for more information.
# RESEND_API_KEY=<api_key>
# FROM_EMAIL=
# REPLY_TO_EMAIL=
# CLOUD VARIABLES
POSTHOG_PROJECT_KEY=
PLAIN_API_KEY=
CLOUD_AIRTABLE_CLIENT_ID=
CLOUD_AIRTABLE_CLIENT_SECRET=
CLOUD_GITHUB_CLIENT_ID=
CLOUD_GITHUB_CLIENT_SECRET=
CLOUD_SLACK_APP_HOST=
CLOUD_SLACK_CLIENT_ID=
CLOUD_SLACK_CLIENT_SECRET=
+210
View File
@@ -0,0 +1,210 @@
name: 🚀 Publish Trigger.dev Docker
on:
push:
branches:
- main
tags:
- "v.docker.*"
paths:
- ".github/workflows/publish.yml"
- "packages/**"
- "!packages/**/*.md"
- "!packages/**/*.eslintrc"
- "apps/**"
- "!apps/**/*.md"
- "!apps/**/*.eslintrc"
- "integrations/**"
- "!integrations/**/*.md"
- "!integrations/**/*.eslintrc"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "turbo.json"
- "docker/Dockerfile"
- "docker/scripts/**"
permissions:
id-token: write
packages: write
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
AWS_REGION: us-east-1
jobs:
typecheck:
name: ʦ TypeScript
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: ⎔ Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7.18
- name: ⎔ Setup node
uses: buildjet/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: 📥 Download deps
run: pnpm install --frozen-lockfile
- name: 📀 Generate Prisma Client
run: pnpm run generate
- name: 🔎 Type check
run: pnpm run typecheck --filter webapp
unitTests:
name: Unit Tests
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: ⎔ Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7.18
- name: ⎔ Setup node
uses: buildjet/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: 📥 Download deps
run: pnpm install --frozen-lockfile
- name: Run Unit Tests
run: |
pnpm run test
e2e:
name: e2e Tests
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: ⎔ Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7.18
- name: ⎔ Setup node
uses: buildjet/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: 📥 Download deps
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: |
# Setup environment variables
cp ./.env.example ./.env
cp ./examples/nextjs-test/.env.example ./examples/nextjs-test/.env.local
# Build packages
pnpm run build --filter @examples/nextjs-test^...
pnpm --filter @trigger.dev/database generate
# Move trigger-cli bin to correct place
pnpm install --frozen-lockfile
# Execute tests
pnpm run docker
pnpm run db:migrate
pnpm run db:seed
pnpm run test:e2e
# Cleanup
pnpm run docker:stop
- name: Upload Playwright report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
publish:
needs: [typecheck, unitTests, e2e]
runs-on: buildjet-4vcpu-ubuntu-2204
outputs:
version: ${{ steps.get_version.outputs.version }}
short_sha: ${{ steps.get_commit.outputs.sha_short }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: 🆚 Get the version
id: get_version
run: |
IMAGE_TAG="${GITHUB_REF#refs/tags/}"
if [[ $GITHUB_REF == refs/tags/* ]]; then
if [[ $IMAGE_TAG == v.docker.* ]]; then
ORIGINAL_VERSION="${IMAGE_TAG#v.docker.}"
IMAGE_TAG="v${ORIGINAL_VERSION}"
fi
echo "IMAGE_TAG=${IMAGE_TAG}"
elif [[ $GITHUB_REF == refs/heads/* ]]; then
IMAGE_TAG="${GITHUB_REF#refs/heads/}"
echo "IMAGE_TAG=${IMAGE_TAG}"
else
echo "Invalid reference: ${GITHUB_REF}"
exit 1
fi
echo "::set-output name=version::${IMAGE_TAG}"
- name: 🔢 Get the commit hash
id: get_commit
run: |
echo ::set-output name=sha_short::$(echo ${{ github.sha }} | cut -c1-7)
- name: 🐳 Build Docker Image
run: |
docker build -t release_build_image -f ./docker/Dockerfile .
- name: 🐙 Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 🐙 Push to GitHub Container Registry
run: |
docker tag release_build_image $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
env:
REGISTRY: ghcr.io/triggerdotdev
REPOSITORY: trigger.dev
IMAGE_TAG: ${{ steps.get_version.outputs.version }}
- name: 🐙 Push 'latest' to GitHub Container Registry
if: startsWith(github.ref, 'refs/tags/')
run: |
docker tag release_build_image $REGISTRY/$REPOSITORY:latest
docker push $REGISTRY/$REPOSITORY:latest
env:
REGISTRY: ghcr.io/triggerdotdev
REPOSITORY: trigger.dev
+77
View File
@@ -0,0 +1,77 @@
name: 🦋 Changesets Release
on:
push:
branches:
- main
paths:
- ".github/workflows/release.yml"
- "packages/**"
- "!packages/**/*.md"
- "changesets/**"
- "integrations/**"
- "!integrations/**/*.md"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "turbo.json"
jobs:
release:
name: 🦋 Changesets Release
runs-on: buildjet-4vcpu-ubuntu-2204
if: |
github.repository == 'triggerdotdev/trigger.dev'
outputs:
published_packages: ${{ steps.changesets.outputs.publishedPackages }}
published: ${{ steps.changesets.outputs.published }}
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: ⎔ Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7.18
- name: ⎔ Setup node
uses: buildjet/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: 📥 Download deps
run: pnpm install --frozen-lockfile
- name: 📀 Generate Prisma Client
run: pnpm run generate
- name: 🔎 Type check
run: pnpm run typecheck
- name: 🔐 Setup npm auth
run: |
echo "registry=https://registry.npmjs.org" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
# This action has two responsibilities. The first time the workflow runs
# (initial push to the `main` branch) it will create a new branch and
# then open a PR with the related changes for the new version. After the
# PR is merged, the workflow will run again and this action will build +
# publish to npm.
- name: 🚀 PR / Publish
id: changesets
uses: changesets/action@v1
with:
version: pnpm run changeset:version
commit: "chore: Update version for release"
title: "chore: Update version for release"
publish: pnpm run changeset:release
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+7 -1
View File
@@ -45,4 +45,10 @@ yarn-error.log*
.output
apps/**/public/build
.tests-container-id.txt
.sentryclirc
.sentryclirc
.buildt
**/tmp/
/test-results/
/playwright-report/
/playwright/.cache/
+1 -1
View File
@@ -1 +1 @@
{"workspaceId":"63e5e42daf9a537ba8d9503c"}
{ "workspaceId": "63e5e42daf9a537ba8d9503c" }
+2 -1
View File
@@ -1 +1,2 @@
link-workspace-packages=false
link-workspace-packages=false
public-hoist-pattern[]=*prisma*
+1 -1
View File
@@ -1 +1 @@
v16.19.0
v18.12.1
+11
View File
@@ -0,0 +1,11 @@
node_modules
.env
.env.local
pnpm-lock.yaml
tailwind.css
.babelrc.json
**/.react-email/
**/storybook-static/
**/.changeset/
**/build/
**/dist/
+1 -8
View File
@@ -5,19 +5,12 @@
"version": "0.2.0",
"configurations": [
{
"command": "pnpm run idev --filter webapp",
"command": "pnpm run dev --filter webapp",
"name": "Run webapp",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}"
},
{
"command": "pnpm run dev --filter integrations",
"name": "Run integrations",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}"
},
{
"type": "chrome",
"request": "launch",
-19
View File
@@ -1,19 +0,0 @@
{
"folders": [
{
"name": "trigger.dev",
"path": "../"
},
{
"name": "Webapp",
"path": "../apps/webapp"
},
{
"name": "Integrations",
"path": "../apps/integrations"
}
],
"settings": {
"vitest.commandLine": "pnpm exec vitest"
}
}
-70
View File
@@ -1,70 +0,0 @@
# Warp Launch Configuration
#
#
# Use this to start a certain configuration of windows, tabs, and panes
# Open the launch configuration palette to access and open any launch configuration
#
# This file defines your launch configuration
# More on how to do so here:
# https://docs.warp.dev/features/session-management/launch-configurations
#
# All launch configurations are stored under ~/.warp/launch_configurations/
# Edit them anytime!
#
# You can also add commands that run on-start for your launch configurations like so:
# ---
# name: Example with Command
# windows:
# - tabs:
# - layout:
# cwd: /Users/warp-user/project
# commands:
# - exec: code .
---
name: Triggerdotdev
windows:
- tabs:
- title: webapp
layout:
split_direction: vertical
panes:
- cwd: /Users/eric/code/triggerdotdev/trigger.dev
commands:
- exec: pnpm run build --filter webapp
- exec: pnpm run i-dev --filter webapp
- cwd: /Users/eric/code/triggerdotdev/trigger.dev/apps/webapp
- title: integrations
layout:
split_direction: vertical
panes:
- cwd: /Users/eric/code/triggerdotdev/trigger.dev
commands:
- exec: pnpm run dev --filter integrations
- cwd: /Users/eric/code/triggerdotdev/trigger.dev/apps/integrations
- title: ngrok
layout:
split_direction: horizontal
panes:
- cwd: /Users/eric/code/triggerdotdev/trigger.dev
commands:
- exec: ./scripts/proxy-webapp.sh <your-trigger-dev>
- cwd: /Users/eric/code/triggerdotdev/trigger.dev
commands:
- exec: ./scripts/proxy-pizzly.sh <your-pizzly-dev>
- title: wss and examples
layout:
split_direction: horizontal
panes:
- cwd: /Users/eric/code/triggerdotdev/trigger.dev/apps/wss
commands:
- exec: LOG_LEVEL=debug pnpm run dev
- cwd: /Users/eric/code/triggerdotdev/trigger.dev/examples
- title: emails
layout:
split_direction: horizontal
panes:
- cwd: /Users/eric/Work/Git/APIHero/trigger.dev/packages/emails
commands:
- exec: pnpm run dev
- cwd: /Users/eric/Work/Git/APIHero/trigger.dev/packages/emails
+9 -9
View File
@@ -4,22 +4,22 @@ Trigger.dev uses [changesets](https://github.com/changesets/changesets) to manag
## Adding a changeset
To add a changeset, use `pnpm run changeset:add` and follow the instructions [here](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md). Please only ever select one of our public packages when adding a changeset, which currently are:
To add a changeset, use `pnpm run changeset:add` and follow the instructions [here](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md). Please only ever select one of our public packages when adding a changeset.
- `@trigger.dev/sdk`
- `@trigger.dev/integration-sdk`
- `@trigger.dev/github`
- `@trigger.dev/slack`
- `@trigger.dev/shopify`
- `@trigger.dev/resend`
## Release instructions
## Release instructions (local only)
Based on the instructions [here](https://github.com/changesets/changesets/blob/main/docs/intro-to-using-changesets.md)
1. Run `pnpm run changeset:version`
2. Run `pnpm run changeset:release`
## Release instructions (CI)
Please follow the best-practice of adding changesets in the same commit as the code making the change with `pnpm run changeset:add`, as it will allow our release.yml CI workflow to function properly:
- Anytime new changesets are added in a commit in the `main` branch, the [release.yml](./.github/workflows/release.yml) workflow will run and will automatically create/update a PR with a fresh run of `pnpm run changeset:version`.
- When the version PR is merged into `main`, the release.yml workflow will automatically run `pnpm run changeset:release` to build and release packages to npm.
## Pre-release instructions
1. Add changesets as usual `pnpm run changeset:add`
+293
View File
@@ -0,0 +1,293 @@
# Contributing to Trigger.dev
Thank you for taking the time to contribute to Trigger.dev. Your involvement is not just welcomed, but we encourage it! 🚀
Please take some time to read this guide to understand contributing best practices for Trigger.dev.
Thank you for helping us make Trigger.dev even better! 🤩
## Developing
The development branch is `main`. This is the branch that all pull
requests should be made against. The changes on the `main`
branch are tagged into a release monthly.
### Prerequisites
- [Node.js](https://nodejs.org/en) version >=16.x
- [pnpm package manager](https://pnpm.io/installation) version 7
- [Docker](https://www.docker.com/get-started/)
### Setup
1. Clone the repo into a public GitHub repository or [fork the repo](https://github.com/triggerdotdev/trigger.dev/fork). If you plan to distribute the code, keep the source code public to comply with the [Apache Licence 2.0](https://github.com/triggerdotdev/trigger.dev/blob/main/LICENSE).
```
git clone https://github.com/triggerdotdev/trigger.dev.git
```
> If you are on windows, run the following command on gitbash with admin privileges:
> `git clone -c core.symlinks=true https://github.com/triggerdotdev/trigger.dev.git`
2. Navigate to the project folder
```
cd trigger.dev
```
3. Install the required packages using pnpm.
```
pnpm i
```
4. Create your `.env` file
```
cp .env.example .env
```
5. Open it and generate a new value for `ENCRYPTION_KEY`:
`ENCRYPTION_KEY` is used to two-way encrypt OAuth access tokens and so you'll probably want to actually generate a unique value, and it must be a random 16 byte hex string. You can generate one with the following command:
```sh
openssl rand -hex 16
```
Feel free to update `SESSION_SECRET` and `MAGIC_LINK_SECRET` as well using the same method.
6. Start Docker. This starts the required services like Postgres. If this is your first time using Docker, consider going through this [guide](DOCKER_INSTALLATION.md)
```
pnpm run docker
```
7. Migrate the database
```
pnpm run db:migrate
```
8. Build the app
```
pnpm run build --filter webapp
```
9. Run the seed script
```
pnpm run db:seed
```
10. Run the app. See the section below.
## Running
1. You can run the app with:
```
pnpm run dev --filter webapp
```
It should run on port `3030`: [http://localhost:3030](http://localhost:3030/)
2. Once the app is running click the magic link button and enter your email.
3. Check your terminal, the magic link email should have printed out as following:
```sh
webapp:dev: Log in to Trigger.dev
webapp:dev:
webapp:dev: Click here to log in with this magic link
webapp:dev: [http://localhost:3030/magic?token=U2FsdGVkX18OvB0JxgaswTLCSbaRz%2FY82TN0EZWhSzFyZYwgG%2BIzKVTkeiaOtWfotPw7F8RwFzCHh53aBpMEu%2B%2B%2FItb%2FcJYh89MSjc3Pz92bevoEjqxSQ%2Ff%2BZbks09JOpqlBbYC3FzGWC8vuSVFBlxqLXxteSDLthZSUaC%2BS2LaA%2BJgp%2BLO7hgjAaC2lXbCHrM7MTgTdXOFt7i0Dvvuwz6%2BWY25RnfomZOPqDsyH0xz8Q2rzPTz0Xu53WSXrZ1hd]
webapp:dev:
webapp:dev: If you didn't try to log in, you can safely ignore this email.
```
Paste the magic link shown in your terminal into your browser to login.
## Adding and running migrations
1. Modify packages/database/prisma/schema.prisma file
2. Change directory to the packages/database folder
```sh
cd packages/database
```
3. Generate the Prisma client
```sh
pnpm run generate
```
The above updates the prisma client generated into node_modules/.prisma/client folder. This helps with typing of relevant prisma models. It ensures typescript
recognizes fields added or removed from a model and type-checks appropriately.
4. Create and apply the migrations
```
pnpm run db:migrate:dev
```
This creates a migration file and executes the migrations against your database and applies changes to the database schema(s)
5. Commit generated migrations as well as changes to the schema.prisma file
6. If you're using VSCode you may need to restart the Typescript server in the webapp to get updated type inference. Open a TypeScript file, then open the Command Palette (View > Command Palette) and run `TypeScript: Restart TS server`.
## Testing CLI changes
To test CLI changes, follow the steps below:
1. Build the CLI and watch for changes
```sh
cd packages/cli
pnpm run dev
```
2. Open a new Terminal window and run the webapp locally and then create a new project in the dashboard. Copy out the dev API key.
3. Create a new temporary Next.js app in examples directory
```sh
pnpm create next-app@latest
```
Follow the prompts to create a TypeScript project using the App Directory.
4. Then once that's finished, add the `@trigger.dev/cli` to the `devDependencies` of the newly created Next.js app's `package.json` file, like so:
```json
{
"devDependencies": { "@trigger.dev/cli": "workspace:*" }
}
```
5. Open a new terminal window, navigate into the example, and initialize the CLI:
```sh
cd examples/your-newly-created-nextjs-project
pnpm i
pnpm exec trigger-cli init
```
6. When prompted, select `self-hosted` and enter `localhost:3030` for your local version of the webapp. When asked for an API key, use the key you copied earlier.
7. Run the CLI
```sh
pnpm exec trigger-cli dev
```
8. After running the CLI, start your newly created Next.js project. You should now be able to see the changes.
9. Please remember to delete the temporary project you created after you've tested the changes, and before you raise a PR.
## Running end-to-end webapp tests
To run the end-to-end tests, follow the steps below:
1. Set up environment variables (copy example envs into the correct place)
```sh
cp ./.env.example ./.env
cp ./examples/nextjs-test/.env.example ./examples/nextjs-test/.env.local
```
2. Set up dependencies
```sh
# Build packages
pnpm run build --filter @examples/nextjs-test^...
pnpm --filter @trigger.dev/database generate
# Move trigger-cli bin to correct place
pnpm install --frozen-lockfile
# Install playwrite browsers (ONE TIME ONLY)
npx playwright install
```
3. Set up the database
```sh
pnpm run docker
pnpm run db:migrate
pnpm run db:seed
```
4. Run the end-to-end tests
```sh
pnpm run test:e2e
```
### Cleanup
The end-to-end tests use a `setup` and `teardown` script to seed the database with test data. If the test runner doesn't exit cleanly, then the database can be left in a state where the tests can't run because the `setup` script will try to create data that already exists. If this happens, you can manually delete the `users` and `organizations` from the database using prisma studio:
```sh
# With the database running (i.e. pnpm run docker)
pnpm run db:studio
```
## Add sample jobs
The [examples/jobs-starter](./examples/jobs-starter/) project defines simple jobs you can get started with.
1. `cd` into `examples/jobs-starter`
2. Create a `.env.local` file with the following content,
replacing `[TRIGGER_DEV_API_KEY]` with an actual key:
```env
TRIGGER_API_KEY=[TRIGGER_DEV_API_KEY]
TRIGGER_API_URL=http://localhost:3030
```
`TRIGGER_API_URL` is used to configure the URL for your Trigger.dev instance,
where the jobs will be registered.
3. Run the `jobs-starter` app:
```sh
pnpm dev
```
4. Navigate to your trigger.dev instance ([http://localhost:3030](http://localhost:3030/)), to see the jobs.
You can use the test feature to trigger them.
## Making a pull request
**If you get errors, be sure to fix them before committing.**
- Be sure to [check the "Allow edits from maintainers" option](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) while creating you PR.
- If your PR refers to or fixes an issue, be sure to add `refs #XXX` or `fixes #XXX` to the PR description. Replacing `XXX` with the respective issue number. See more about [Linking a pull request to an issue
](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
- Be sure to fill the PR Template accordingly.
## Adding changesets
We use [changesets](https://github.com/changesets/changesets) to manage our package versions and changelogs. If you've never used changesets before, first read [their guide here](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).
If you are contributing a change to any packages in this monorepo (anything in either the `/packages` or `/integrations` directories), then you will need to add a changeset to your Pull Requests before they can be merged.
To add a changeset, run the following command in the root of the repo
```sh
pnpm run changeset:add
```
Here's an example of creating a `patch` changeset for the `@trigger.dev/github` and `@trigger.dev/slack` packages (click to view):
[![asciicast](https://asciinema.org/a/599228.svg)](https://asciinema.org/a/599228)
You will be prompted to select which packages to include in the changeset. Only select the packages that you have made changes for.
Most of the time the changes you'll make are likely to be categorized as patch releases. If you feel like there is the need for a minor or major release of the package based on the changes being made, add the changeset as such and it will be discussed during PR review.
## Troubleshooting
### EADDRINUSE: address already in use :::3030
When receiving the following error message:
```sh
webapp:dev: Error: listen EADDRINUSE: address already in use :::3030
```
The process running on port `3030` should be destroyed.
1. Get the `PID` of the process running on PORT `3030`
```sh
lsof -i :3030
```
2. Kill the process
```sh
sudo kill -9 <PID>
```
-32
View File
@@ -1,32 +0,0 @@
# Trigger.dev Deployment Guide
## StreamNative Cloud - Hosted Pulsar
### Generic client credentials
```sh
snctl auth export-service-account webapp --key-file webapp-credentials.json
snctl auth export-service-account websocketserver --key-file wss-credentials.json
```
### Topics
#### Triggers (`persistent://triggerdotdev/workflows/triggers`)
Events that trigger workflows to run. These are sent by the "platform" and read by the Web Socket Servers, which then coordinate with the hosts for running the workflows
#### Run Commands (`persistent://triggerdotdev/workflows/run-commands`)
These are events that come from hosts and are published by the Web Socket Servers, e.g. Sending Integration Requests, Sending Logs, Initializing a Delay
#### Run Command Responses (`persistent://triggerdotdev/workflows/run-command-responses`)
These are events that come from the platform and are read by the Web Socket Servers, to resolve or reject a previous Run Command
#### Integration Requests (`persistent://triggerdotdev/queues/integration-requests`)
This is an internal queue used by the platform to perform integration requests, and retry them.
#### App Task Queue (`persistent://triggerdotdev/queues/background-tasks`)
This is an internal queue used by the platform to do tasks in a queue. Basically a background job system.
-231
View File
@@ -1,231 +0,0 @@
# Initial setup
## Prerequisites
### Pulsar requirements
1. Ensure you have Homebrew installed by running `which brew` in terminal. If it's not found then you should install it: https://brew.sh/. Run `which brew` again to check it's found. If it's not you may need to [add it your path](https://stackoverflow.com/questions/36657321/after-installing-homebrew-i-get-zsh-command-not-found-brew)
2. Run `brew install libpulsar` to install the C++ libraries that the pulsar-client depends on
3. Make sure you have Python installed on your machine by running `which python3` in terminal.
4. If python isn't found then you should install it: https://www.python.org/downloads/. In a new terminal window run `which python3` again.
5. Run `npm config set python /the/path/from/the/which/python3/command` inserting the path from step 2 or 3
6. Install node-gyp: `npm install -g node-gyp`
7. Make sure you have the Xcode command line tools installed by running `xcode-select --install` from the terminal. If it says they're already installed then you're set.
8. Run this in the terminal:
```sh
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$(brew --prefix)/include"
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
export PULSAR_CPP_DIR=/opt/homebrew/Cellar/libpulsar/3.1.0
```
9. Run `pnpm install` in the same terminal window.
## Building and running the webapp
> **Warning**
> All the following commands should be launched from the **monorepo root directory**
1. Install the dependencies.
```bash
pnpm install
```
2. Optionally, if you are testing auth (pizzly) or webhooks (webapp) then you'll need to use ngrok to proxy internet traffic to your local machine
Get access to ngrok and then follow the instructions here to get it setup: https://ngrok.com/download (use homebrew) and make sure to authenticate.
Then run the following scripts to start proxying:
```sh
./scripts/proxy-pizzly.sh dan-pizzly-dev
./scripts/proxy-webapp.sh dan-trigger-dev
```
3. Environment variables. You will need to create copies of the `.env.example` files in `app/webapp`
```sh
cp ./apps/webapp/.env.example ./apps/webapp/.env
```
Then you will need to fill in the fields with real values.
You also need to create the `pizzly-server.env` files under the `.docker` directory:
```sh
cp ./.docker/pizzly-server.env.example ./.docker/pizzly-server.env
```
Next, update the `AUTH_CALLBACK_URL` env var in the `pizzly-server.env` env file with the value provided to the `./scripts/proxy-pizzly.sh` command. Using the example above the `AUTH_CALLBACK_URL` would be `AUTH_CALLBACK_URL=https://dan-pizzly-dev.eu.ngrok.io/oauth/callback`.
If you aren't proxying pizzly according to step 2, then leave the `pizzly-server.env` file empty.
If you are proxying the webapp according to step 2 then in `webapp/.env`, set the `APP_ORIGIN` to the `NGROK_SUBDOMAIN` provided to the `./scripts/proxy-webapp.sh` command, e.g. `APP_ORIGIN=https://dan-trigger-dev.eu.ngrok.io`
4. Start postgresql, redis, pizzly server, followed by pulsar standalone
```bash
pnpm run docker:services
pnpm run docker:pulsar
```
> **Note:** The npm script will complete while Docker sets up the container in the background. Ensure that Docker has finished and your container is running before proceeding.
5. Generate prisma schema
```bash
pnpm run generate
```
6. Run the Prisma migration to the database
```bash
pnpm run db:migrate:deploy
```
7. Run the first build (with dependencies via the `...` option)
```bash
pnpm run build --filter=webapp...
```
**Running simply `pnpm run build` will build everything, including the Remix app.**
8. Run the Remix dev server
```bash
pnpm run dev --filter=webapp
```
## Attaching an API integration using Pizzly
```bash
PIZZLY_HOSTPORT=http://localhost:3004 npx pizzly config:create github github <client-id> <client-secret> "repo,user"
```
## Tests, Typechecks, Lint, Install packages...
Check the `turbo.json` file to see the available pipelines.
- Run the Cypress tests and Dev
```bash
pnpm run test:e2e:dev --filter=webapp
```
- Lint everything
```bash
pnpm run lint
```
- Typecheck the whole monorepo
```bash
pnpm run typecheck
```
- Test the whole monorepo
```bash
pnpm run test
or
pnpm run test:dev
```
- How to install an npm package in the Remix app ?
```bash
pnpm add dayjs --filter webapp
```
- Tweak the tsconfigs, eslint configs in the `config-package` folder. Any package or app will then extend from these configs.
# Running a workflow locally
## After pulling a change
1. Ensure there are no database migrations to run
```bash
pnpm run db:migrate:dev
```
2. Generate the Prisma database client
```bash
pnpm run generate
```
3. Install packages
```bash
pnpm install
```
4. Build everything
```bash
pnpm run build
```
5. Install packages again, this makes sure the local packages are linked
```bash
pnpm install
```
## Running the servers
1. Ensure the docker containers are running
```bash
pnpm run docker:services
pnpm run docker:pulsar
```
2. Run the webapp
```bash
pnpm run dev --filter=webapp
```
3. Run the Web Socket Server
```bash
pnpm run dev --filter=wss
```
4. Build all the @trigger.dev/\* packages
```bash
pnpm run dev --filter="@trigger.dev/*"
```
## Running the smoke test
1. Run the smoke test workflow
```bash
cd ./examples/smoke-test
pnpm run dev
```
2. Running the workflow requires you to send data to the local API.
You can use this cURL command to send a `user.created` event. This will run the workflow and generate the corresponding logs.
```bash
curl --request POST \
--url http://localhost:3000/api/v1/events \
--header 'Authorization: Bearer trigger_dev_zC25mKNn6c0q' \
--header 'Content-Type: application/json' \
--data '{
"name": "user.created",
"payload": {
"id": "123"
}
}'
```
## Dependency & Package graph
![Dependency Graph](assets/dependencyGraph.png)
## Warp Launch Configuration
Setup a custom launch configuration for the Warp terminal ([docs here](https://docs.warp.dev/features/sessions/launch-configurations)) by copying the `.warp/triggerdotdev.yaml.example` file to `~/.warp/launch_configurations/triggerdotdev.yaml`. Make sure you edit the file and replace `<your-trigger-dev>` and `<your-pizzly-dev>` with your custom ngrok subdomains.
+126
View File
@@ -0,0 +1,126 @@
This guide covers installing Docker and Docker Compose. If you're looking for instructions for running Trigger.dev in docker, [see here](https://github.com/triggerdotdev/docker).
## Setting up Docker for the first time.
In the contributing guide of Trigger.dev, there's a section that requires you to start Docker.
If you don't have Docker installed on your machine, you'll run into some complications (errors).
Below are the steps on how you can avoid that.
First you need to setup docker-compose as it is an underlying tool that this command: `pnpm run docker` fires behind the scene.
## Linux
To install Docker Compose on Linux Ubuntu via the terminal, you can follow these steps:
1. Update the package index on your system by running the following command:
```shell
sudo apt update
```
2. Install the required dependencies by running the following command:
```shell
sudo apt install curl
```
3. Download the Docker Compose binary into the `/usr/local/bin` directory using the `curl` command:
```shell
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
```
4. Set the appropriate permissions to make the `docker-compose` binary executable:
```shell
sudo chmod +x /usr/local/bin/docker-compose
```
5. Verify that Docker Compose has been successfully installed by running the following command:
```shell
docker-compose --version
```
This command should display the version information of Docker Compose without any errors.
After following these steps, you should have Docker Compose installed on your Ubuntu system, and you can use it by running `docker-compose` commands in the terminal.
When you've verified that the `docker-compose` package is installed and you proceed to start Docker with `pnpm run docker`.
You'll probably get an error similar to the one below:
```shell
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ELIFECYCLE Command failed with exit code 1.
```
The error message suggests that the Docker daemon is not running on your system. The Docker daemon is responsible for managing and running Docker containers.
To resolve this issue, you may need to install Docker properly on your Ubuntu system. Here are the steps to install Docker on Ubuntu:
1. Update the package index on your system by running the following command:
```shell
sudo apt update
```
2. Install the necessary packages to allow apt to use repositories over HTTPS:
```shell
sudo apt install apt-transport-https ca-certificates curl software-properties-common
```
3. Add the official Docker GPG key to your system by running the following command:
```shell
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
```
4. Add the Docker repository to the APT sources list:
```shell
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
```
5. Update the package index again:
```shell
sudo apt update
```
6. Install Docker by running the following command:
```shell
sudo apt install docker-ce docker-ce-cli containerd.io
```
7. After the installation is complete, verify that Docker is installed correctly by running the following command:
```shell
docker --version
```
This command should display the version information of Docker without any errors.
Once Docker is installed and verified, you should be able to start the Docker daemon and run the `pnpm run docker` command without encountering any issues.
## Windows
1. Download the Docker Desktop installer from the Docker website: [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop)
2. Run the installer and follow the instructions to install Docker Desktop.
3. After installation, Docker Desktop should be running automatically.
## macOS
1. Download the Docker Desktop installer from the Docker website: [Docker Desktop for Mac](https://www.docker.com/products/docker-desktop)
2. Run the installer and follow the instructions to install Docker Desktop.
3. After installation, Docker Desktop should be running automatically.
Please note that the instructions provided above are for the most common scenarios. For specific versions or different distributions, it's always a good idea to consult the official Docker documentation for the respective operating systems.
+196 -20
View File
@@ -1,25 +1,201 @@
Copyright (c) 2022 API Hero Inc.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Portions of this software are licensed as follows:
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
- All content that resides under any "ee/" directory of this repository, if such directories exists, are licensed under the license defined in "ee/LICENSE".
- All third party components incorporated into the Trigger.dev Software are licensed under the original license provided by the owner of the applicable component.
- Content outside of the above mentioned directories or restrictions above is available under the "MIT Expat" license as defined below.
1. Definitions.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+35 -174
View File
@@ -1,204 +1,65 @@
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://imagedelivery.net/3TbraffuDZ4aEf8KWOmI_w/a45d1fa2-0ae8-4a39-4409-f4f934bfae00/public">
<source media="(prefers-color-scheme: light)" srcset="https://imagedelivery.net/3TbraffuDZ4aEf8KWOmI_w/3f5ad4c1-c4c8-4277-b622-290e7f37bd00/public">
<img alt="Trigger.dev logo" src="https://imagedelivery.net/3TbraffuDZ4aEf8KWOmI_w/a45d1fa2-0ae8-4a39-4409-f4f934bfae00/public">
</picture>
### The background jobs framework for Next.js
![Hero](https://raw.githubusercontent.com/triggerdotdev/trigger.dev/eebe37109e33beae6390ee19029fce8a5934c84b/apps/webapp/public/images/logo-banner.png)
[Discord](https://discord.gg/JtBAxBr2m3) | [Website](https://trigger.dev) | [Issues](https://github.com/triggerdotdev/trigger.dev/issues) | [Docs](https://trigger.dev/docs)
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/triggerdotdev.svg?style=social&label=Follow%20%40trigger.dev)](https://twitter.com/triggerdotdev) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCu-PdxpWtIrrd7vW0N5T6ZA?style=social)](https://www.youtube.com/@triggerdotdev)
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/triggerdotdev.svg?style=social&label=Follow%20%40trigger.dev)](https://twitter.com/triggerdotdev)
[![GitHub Repo stars](https://img.shields.io/github/stars/triggerdotdev/trigger.dev?style=social)](https://github.com/triggerdotdev/trigger.dev)
[Website](https://trigger.dev) | [Community](https://discord.gg/JtBAxBr2m3) | [Docs](https://docs.trigger.dev)
</div>
# About Trigger.dev
# **✨ Trigger.dev**
### **The developer-first open source Zapier alternative.**
Create long-running jobs directly in your codebase with features like API integrations, webhooks, scheduling and delays.
### Long running Jobs on serverless
Trigger.dev is an open source platform that makes it easy for developers to create event-driven background tasks directly in their code. Build, test and run workflows locally using our SDK. Subscribe to webhooks, schedule jobs, run background jobs and add long delays easily and reliably. In our web app you get full visibility of every run your workflow has ever made making it easier to monitor and debug.
Reliably run jobs and dont worry about function timeouts, we handle those for you.
&nbsp;
- Auto-resume after a function timeout
- Auto-resume after a server outage
- Add delays of up to a year
# **⭐️ Features:**
### In your codebase
- 👂 Easily subscribe to [webhooks](https://docs.trigger.dev/triggers/webhooks)
— they work locally without tunnelling.
- 🔥 Fire your own [custom events](https://docs.trigger.dev/triggers/custom-events)—a single event can trigger multiple workflows.
- 📆 [Schedule workflows](https://docs.trigger.dev/triggers/scheduled)—easily repeat tasks or use CRON syntax for advanced cases.
- 🚦 Add [long delays](https://docs.trigger.dev/functions/delays) inside workflows (up to a year) and they will pick up where they left off.
- 🤝 When your server goes down [its not a problem](https://docs.trigger.dev/guides/resumability), workflows will reconnect and continue.
- 🪧 [View every step of every run](https://docs.trigger.dev/viewing-runs), with data, previews and errors.
- 👋 Connect to and authenticate with APIs using our custom integrations.
- 🚗 If you have a custom use case, we support [Fetch for calling any HTTP endpoint](https://docs.trigger.dev/functions/fetch) or [webhooks](https://docs.trigger.dev/triggers/webhooks) for subscribing to events from APIs.
- 📡 All API calls are automatically retried with exponential back off.
- 😀 TypeScript SDK, so whether youre using JavaScript or TypeScript you will have a great experience.
Create Jobs where they belong: in your codebase. Version control, localhost, test, review, and deploy like you're already used to.
&nbsp;
### Secure by design
# **🌱 Documentation:**
We only receive Triggers and the data you choose to send to us. You can even completely self-host the entire platform.
- [Getting Started with Trigger.dev](https://docs.trigger.dev/getting-started)
- Example workflows
- [Welcome email drip campaign using Resend and Slack](https://docs.trigger.dev/examples/resend)
- [Post to Slack when a GitHub issue is created or modified](https://docs.trigger.dev/examples/slack)
- [Create a new product on Shopify](https://docs.trigger.dev/examples/shopify)
- [When a GitHub repo is starred, post information about the user to Slack](https://docs.trigger.dev/examples/github)
- Triggers:
- [Webhooks](https://docs.trigger.dev/triggers/webhooks)
- [Custom events](https://docs.trigger.dev/triggers/custom-events)
- [Scheduled](https://docs.trigger.dev/triggers/scheduled)
- Functions:
- [Fetch](https://docs.trigger.dev/functions/fetch)
- [Logging](https://docs.trigger.dev/functions/logging)
- [Delays](https://docs.trigger.dev/functions/delays)
- [Send event](https://docs.trigger.dev/functions/send-event)
- [Loops, conditionals, etc](https://docs.trigger.dev/functions/loops-conditionals-etc)
### Don't worry about deployment
&nbsp;
Just use our SDK to write Jobs in your Next.js codebase. There's nothing extra to deploy and no CI to configure, your Jobs just connect to our cloud. Or you can always self-host.
# 🔬 **Anatomy of a workflow**
### Full visibility of every job run
* You create workflows in code on your server using our SDK
* Each API integration is a separate package, e.g. `@trigger.dev/slack`
* Each workflow has an event that triggers it, e.g. `github.events.newStarEvent`, `scheduleEvent`, `customEvent`
* Each workflow has a `run` function that is called when the event is triggered
* If we don't have an integration for the API you want to use, you can use `fetch` to call any HTTP endpoint and `webhookEvent` to subscribe to webhooks
View every Task in every Run so you can tell exactly what happened.
## **Example workflows**
![image](https://www.trigger.dev/build/_assets/web-app-2QFKXFLW.png)
<details open><summary> Post to Slack when a GitHub issue is created or modified
</summary>
### Built-in integrations
_Integrations required: Slack, GitHub_
Easily integrate with hundreds of third-party APIs including your own. Use API keys (which never leave your server) or let us handle OAuth for you. Install our integration packages and easily subscribe to webhooks and perform common tasks, or you can easily use your existing favorite Node.JS SDKs and get resumability and idempotency through our `runTask` function.
```ts
import { Trigger } from "@trigger.dev/sdk";
import * as github from "@trigger.dev/github";
import * as slack from "@trigger.dev/slack";
### Trigger.dev Connect (coming soon)
new Trigger({
id: "new-github-star-to-slack",
name: "New GitHub Star: triggerdotdev/trigger.dev",
apiKey: "<my_api_key>",
on: github.events.newStarEvent({
repo: "triggerdotdev/trigger.dev",
}),
run: async (event) => {
await slack.postMessage("github-stars", {
channelName: "github-stars",
text: `New GitHub star from \n<${event.sender.html_url}|${event.sender.login}>`,
});
},
}).listen();
```
Easily add integrations for your users.
</details>
# Getting started
<details><summary>Welcome email drip campaign
</summary>
Visit our docs [here](https://trigger.dev/docs).
_Integrations required: Slack, Resend_
## Self-host
```ts
import { customEvent, Trigger, sendEvent } from "@trigger.dev/sdk";
import * as resend from "@trigger.dev/resend";
import * as slack from "@trigger.dev/slack";
import React from "react";
import { z } from "zod";
import { getUser } from "../db";
import { InactiveEmail, TipsEmail, WelcomeEmail } from "./email-templates";
We provide an official trigger.dev docker image you can use to easily self-host the platform. We're working on more extensive guides but we currently provide a [Fly.io example repository](https://github.com/triggerdotdev/fly.io) with instructions in the README for deploying and using a self-hosted instance of Trigger.dev on Fly.io.
new Trigger({
id: "welcome-email-campaign",
name: "Welcome email drip campaign",
apiKey: "<my_api_key>",
on: customEvent({
name: "user.created",
schema: z.object({
userId: z.string(),
}),
}),
async run(event, context) {
//get the user data from the database
const user = await getUser(event.userId);
## Development
await slack.postMessage("send-to-slack", {
channelName: "new-users",
text: `New user signed up: ${user.name} (${user.email})`,
});
//Send the first email
const welcomeResponse = await resend.sendEmail("welcome-email", {
from: "Trigger.dev <james@email.trigger.dev>",
replyTo: "James <james@trigger.dev>",
to: user.email,
subject: "Welcome to Trigger.dev",
react: <WelcomeEmail name={user.name} />,
});
await context.logger.debug(
`Sent welcome email to ${welcomeResponse.to} with id ${welcomeResponse.id}`
);
//wait 1 day, check if the user has created a workflow and send the appropriate email
await context.waitFor("wait-a-while", { days: 1 });
const updatedUser = await getUser(event.userId);
if (updatedUser.hasOnboarded) {
await resend.sendEmail("onboarding-complete", {
from: "Trigger.dev <james@email.trigger.dev>",
replyTo: "James <james@trigger.dev>",
to: updatedUser.email,
subject: "Pro tips for workflows",
react: <TipsEmail name={updatedUser.name} />,
});
} else {
await resend.sendEmail("onboarding-incomplete", {
from: "Trigger.dev <james@email.trigger.dev>",
replyTo: "James <james@trigger.dev>",
to: updatedUser.email,
subject: "Help with your first workflow",
react: <InactiveEmail name={updatedUser.name} />,
});
}
},
}).listen();
```
</details>
[More examples here](https://docs.trigger.dev/examples/examples)
&nbsp;
# 👀 **Viewing runs:**
One of the most powerful features of Trigger.dev is the [runs page](https://docs.trigger.dev/viewing-runs). All of the steps in a workflow, including the initial event, can be viewed in detail. See the status / output of each step, the logs, rich previews, errors and much more.
![Viewing runs](https://imagedelivery.net/3TbraffuDZ4aEf8KWOmI_w/7343f3b2-2342-493b-5007-78f60ba5b700/public)
&nbsp;
# **🏠 Running Trigger.dev locally:**
To run Trigger.dev locally, [follow these steps](https://github.com/triggerdotdev/trigger.dev/blob/main/DEVELOPMENT.md).
&nbsp;
# **👏 Contributing:**
We are open source and love contributions!
- Request a feature in our [Discord community](https://discord.gg/JtBAxBr2m3)
- Open a PR
&nbsp;
# **🧘‍♂️ Self-hosting guide:**
Please subscribe to the [GitHub issue](https://github.com/triggerdotdev/trigger.dev/issues/48) to be notified when it's live.
&nbsp;
# **📧 Support & contact:**
- Join our [Discord community](https://discord.gg/JtBAxBr2m3)
- If you have any other questions, get in touch at [hello@trigger.dev](mailto:hello@trigger.dev)
To setup and develop locally or contribute to the open source project, follow our [developement guide](./CONTRIBUTING.md).
-21
View File
@@ -1,21 +0,0 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"env": {
"node": true,
"commonjs": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-console": "off"
},
"ignorePatterns": ["**/dist/*.js"]
}
-105
View File
@@ -1,105 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
.DS_Store
-1
View File
@@ -1 +0,0 @@
{ "workspaceId": "63ea6cff29733e58db1e6b80" }
-4
View File
@@ -1,4 +0,0 @@
node_modules
/build
.env
-55
View File
@@ -1,55 +0,0 @@
FROM node:16-bullseye AS pruner
RUN apt-get update && apt-get install openssl -y
WORKDIR /app
RUN npm install turbo@1.7.0 -g
COPY . .
RUN turbo prune --scope=integrations --docker
RUN find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
# Base strategy to have layer caching
FROM node:16-bullseye AS base
RUN apt-get update && apt-get install openssl -y
WORKDIR /app
COPY .gitignore .gitignore
COPY --from=pruner /app/out/json/ .
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
COPY --from=pruner /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml
FROM base AS production-deps
WORKDIR /app
RUN npm install turbo@1.7.0 -g
RUN corepack enable
ENV NODE_ENV production
COPY --from=pruner /app/out/full/apps/integrations/prisma/schema.prisma /app/apps/integrations/prisma/schema.prisma
RUN pnpm install --prod --frozen-lockfile
RUN pnpx prisma generate --schema /app/apps/integrations/prisma/schema.prisma
FROM base AS builder
WORKDIR /app
RUN npm install turbo@1.7.0 -g
COPY turbo.json turbo.json
RUN corepack enable
COPY --from=pruner /app/out/full/ .
ENV NODE_ENV development
RUN pnpm install --ignore-scripts --frozen-lockfile
ENV NODE_ENV production
RUN pnpm run generate
RUN pnpm run build --filter=integrations...
RUN pnpx prisma migrate deploy --schema apps/integrations/prisma/schema.prisma
# Runner
FROM node:16-bullseye AS runner
RUN apt-get update && apt-get install openssl -y
WORKDIR /app
RUN corepack enable
ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 expressjs
RUN chown -R expressjs:nodejs /app
USER expressjs
COPY --from=pruner --chown=expressjs:nodejs /app/out/full/ .
COPY --from=production-deps --chown=expressjs:nodejs /app .
COPY --from=builder --chown=expressjs:nodejs /app/apps/integrations/dist/index.js ./apps/integrations/dist/index.js
ENTRYPOINT ["pnpm", "--filter", "integrations", "run", "start"]
-2
View File
@@ -1,2 +0,0 @@
# trigger-integrations
You can create API integrations using this data and system
-63
View File
@@ -1,63 +0,0 @@
{
"private": true,
"name": "integrations",
"version": "1.0.0",
"description": "API integrations in a format that can be used to generate clients",
"main": "./dist/index.js",
"scripts": {
"build": "tsup",
"start": "node dist/index.js",
"dev": "concurrently \"tsup --watch\" \"nodemon -r dotenv/config -q dist/index.js\"",
"test": "vitest",
"lint": "eslint --no-error-on-unmatched-pattern src/**",
"lint-fix": "eslint --no-error-on-unmatched-pattern --fix src/**",
"generate-integrations": "tsx src/trigger/sdk/generate.ts",
"generate": "prisma generate",
"db:migrate:deploy": "prisma migrate deploy",
"db:migrate:dev": "prisma migrate dev"
},
"dependencies": {
"@cfworker/json-schema": "^1.12.5",
"@prisma/client": "^4.3.0",
"express": "^4.18.1",
"express-async-errors": "^3.1.1",
"json-pointer": "^0.6.2",
"json-schema-deref-sync": "^0.14.0",
"json-schema-to-typescript": "^11.0.3",
"loglevel": "^1.8.1",
"morgan": "^1.10.0",
"node-fetch": "^3.3.0",
"zod": "^3.20.2"
},
"devDependencies": {
"@types/eslint": "^8.4.6",
"@types/express": "^4.17.13",
"@types/json-pointer": "^1.0.31",
"@types/morgan": "^1.9.3",
"@types/node": "^18.13.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"concurrently": "^7.6.0",
"dotenv": "^16.0.3",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^34.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-promise": "^6.1.1",
"nock": "^13.3.0",
"nodemon": "^2.0.19",
"prisma": "^4.3.0",
"rimraf": "^4.1.2",
"tiny-invariant": "^1.2.0",
"ts-morph": "^17.0.1",
"tsup": "^6.6.2",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vite": "^4.1.1",
"vite-tsconfig-paths": "^4.0.5",
"vitest": "^0.28.4"
},
"engines": {
"node": ">=16.0.0"
}
}
@@ -1,20 +0,0 @@
-- CreateTable
CREATE TABLE "Cache" (
"id" TEXT NOT NULL,
"namespace" TEXT NOT NULL,
"key" TEXT NOT NULL,
"value" TEXT NOT NULL,
"expiresAt" TIMESTAMP(3) NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "Cache_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "Cache_key_key" ON "Cache"("key");
-- CreateIndex
CREATE INDEX "Cache_namespace_key_idx" ON "Cache"("namespace", "key");
-- CreateIndex
CREATE UNIQUE INDEX "Cache_namespace_key_key" ON "Cache"("namespace", "key");
@@ -1,5 +0,0 @@
-- DropIndex
DROP INDEX "Cache_key_key";
-- DropIndex
DROP INDEX "Cache_namespace_key_idx";
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "Cache" ALTER COLUMN "expiresAt" DROP NOT NULL;
-22
View File
@@ -1,22 +0,0 @@
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/client"
binaryTargets = ["native", "debian-openssl-1.1.x"]
previewFeatures = ["orderByNulls"]
}
model Cache {
id String @id @default(cuid())
namespace String
key String
value String
expiresAt DateTime?
createdAt DateTime @default(now())
@@unique([namespace, key])
}
@@ -1,35 +0,0 @@
import { InputSpec } from "core/action/types";
export function createParametersBody(
inputSpec: InputSpec,
params?: Record<string | number, any> | undefined
) {
//separate the parameters and body by looking at the spec and pulling properties out
let parameters: Record<string, any> | undefined = undefined;
let body: any = undefined;
if (params) {
inputSpec.parameters?.forEach((p) => {
if (!parameters) {
parameters = {};
}
parameters[p.name] = params[p.name];
});
const bodyProperties = inputSpec.body?.properties;
if (bodyProperties) {
body = {};
Object.keys(bodyProperties).forEach((name) => {
const value = params?.[name];
if (value !== undefined) {
body[name] = value;
}
});
}
}
return {
parameters,
body,
};
}
@@ -1,50 +0,0 @@
import { DisplayProperties } from "core/action/types";
import { Request, Response } from "express";
import { catalog } from "integrations/catalog";
import { z } from "zod";
import { createParametersBody } from "./createParametersBody";
import { getServiceAction } from "./validation";
const requestBodySchema = z.object({
params: z.record(z.string().or(z.number()), z.any()).optional(),
});
export async function handleActionDisplay(req: Request, res: Response) {
const serviceActionResult = getServiceAction(req.params);
if (!serviceActionResult.success) {
res
.status(404)
.send(
JSON.stringify({ success: false, error: serviceActionResult.error })
);
return;
}
const { service, action } = serviceActionResult;
const parsedRequestBody = requestBodySchema.safeParse(req.body);
if (!parsedRequestBody.success) {
res.status(400).send(
JSON.stringify({
success: false,
error: {
type: "invalid_body",
message: "Action not found",
service,
action,
issues: parsedRequestBody.error.issues,
},
})
);
return;
}
const requestData = createParametersBody(
action.spec.input,
parsedRequestBody.data.params
);
const displayProperties = await action.displayProperties(requestData);
res.send(JSON.stringify({ success: true, properties: displayProperties }));
}
@@ -1,148 +0,0 @@
import { PostgresCacheService } from "cache/postgresCache";
import { AuthCredentials } from "core/authentication/types";
import { Service } from "core/service/types";
import { validateInputs } from "core/validation/inputs";
import { Request, Response } from "express";
import { z } from "zod";
import { error, ReturnResponse } from "../requestUtilities";
import { createParametersBody } from "./createParametersBody";
import { getServiceAction } from "./validation";
const requestBodySchema = z.object({
credentials: z.object({ accessToken: z.string() }).optional(),
params: z.record(z.string().or(z.number()), z.any()).optional(),
metadata: z.object({
requestId: z.string(),
workflowId: z.string(),
connectionId: z.string(),
}),
});
export async function handleAction(req: Request, res: Response) {
const serviceActionResult = getServiceAction(req.params);
if (!serviceActionResult.success) {
res
.status(404)
.send(JSON.stringify(error(404, false, serviceActionResult.error)));
return;
}
const { service, action } = serviceActionResult;
const parsedRequestBody = requestBodySchema.safeParse(req.body);
if (!parsedRequestBody.success) {
res.status(400).send(
JSON.stringify(
error(400, false, {
type: "invalid_body",
message: "Action not found",
service,
action,
issues: parsedRequestBody.error.issues,
})
)
);
return;
}
//for v1 of this API we're building the credentials from the action
//this is fine for now but we'll want to use the connection in future to cover complex cases
let credentials: AuthCredentials | undefined = undefined;
if (parsedRequestBody.data.credentials && action.spec.input.security) {
const firstSecurityMethod = Object.entries(action.spec.input.security)[0];
if (firstSecurityMethod) {
const [name, scopes] = firstSecurityMethod;
//get the full info from the service
const securityMethod = service.authentication[name];
switch (securityMethod.type) {
case "oauth2":
credentials = {
type: "oauth2",
name,
accessToken: parsedRequestBody.data.credentials.accessToken,
scopes,
};
break;
case "api_key":
credentials = {
type: "api_key",
name,
api_key: parsedRequestBody.data.credentials.accessToken,
scopes,
};
break;
default:
throw new Error(
`Not implemented credentials for: ${JSON.stringify(securityMethod)}`
);
}
}
}
const { parameters, body } = createParametersBody(
action.spec.input,
parsedRequestBody.data.params
);
const inputValidationResult = await validateInputs(action.spec.input, {
parameters,
body,
credentials,
});
if (!inputValidationResult.success) {
res
.status(400)
.send(JSON.stringify(error(400, false, inputValidationResult.error)));
return;
}
const { metadata } = parsedRequestBody.data;
const cache = new PostgresCacheService(`${metadata.connectionId}-${service}`);
try {
const data = await action.action(
{ credentials, parameters, body },
cache,
metadata
);
//convert into the format for the webapp
const response: ReturnResponse = {
ok: true,
isRetryable: isRetryable(service, data.status),
response: {
output: data.body ?? {},
context: {
statusCode: data.status,
headers: data.headers,
},
},
};
res.send(JSON.stringify(response));
} catch (e: any) {
console.error(e);
if (e instanceof Error) {
res
.status(500)
.send(JSON.stringify(error(500, false, { error: JSON.stringify(e) })));
return;
}
if ("error" in e) {
res.status(500).send(JSON.stringify(error(500, false, e.error)));
return;
}
res
.status(500)
.send(JSON.stringify(error(500, false, { error: JSON.stringify(e) })));
}
}
function isRetryable(service: Service, status: number): boolean {
return service.retryableStatusCodes.includes(status);
}
@@ -1,50 +0,0 @@
import { Action } from "core/action/types";
import { Service } from "core/service/types";
import { Request } from "express";
import { catalog } from "integrations/catalog";
type ServiceActionResult =
| {
success: true;
service: Service;
action: Action;
}
| {
success: false;
error: Record<string, any>;
};
export function getServiceAction(
params: Request["params"]
): ServiceActionResult {
const { service, action } = params;
const matchingService = Object.values(catalog.services).find(
(s) => s.service === service
);
if (!matchingService) {
return {
success: false,
error: { type: "missing_service", message: "Service not found", service },
};
}
const matchingAction = Object.values(matchingService.actions).find(
(a) => a.name === action
);
if (!matchingAction) {
return {
success: false,
error: {
type: "missing_action",
message: "Action not found",
service,
action,
},
};
}
return { success: true, service: matchingService, action: matchingAction };
}
-116
View File
@@ -1,116 +0,0 @@
import { AuthCredentials } from "core/authentication/types";
import { HTTPMethodSchema } from "core/endpoint/types";
import { serviceFetch } from "core/fetch/serviceFetch";
import { Request, Response } from "express";
import { catalog } from "integrations/catalog";
import { z } from "zod";
import { error } from "./requestUtilities";
const requestBodySchema = z.object({
credentials: z.object({ accessToken: z.string() }).optional(),
path: z.string(),
method: HTTPMethodSchema,
headers: z.record(z.string(), z.string()).optional(),
body: z.any(),
});
type ReturnResponse = {
response: NormalizedResponse;
isRetryable: boolean;
ok: boolean;
};
type NormalizedResponse = {
output: NonNullable<any>;
context: any;
};
export async function handleAction(req: Request, res: Response) {
const { service } = req.params;
const matchingService = Object.values(catalog.services).find(
(s) => s.service === service
);
if (!matchingService) {
return {
success: false,
error: { type: "missing_service", message: "Service not found", service },
};
}
const parsedRequestBody = requestBodySchema.safeParse(req.body);
if (!parsedRequestBody.success) {
res.status(400).send(
JSON.stringify(
error(400, false, {
type: "invalid_body",
message: "Invalid input",
issues: parsedRequestBody.error.issues,
})
)
);
return;
}
//v1 build credentials from the service authentication info
let credentials: AuthCredentials | undefined = undefined;
if (parsedRequestBody.data.credentials) {
//just get the first security method
const [name, securityMethod] = Object.entries(
matchingService.authentication
)[0];
switch (securityMethod.type) {
case "oauth2":
credentials = {
type: "oauth2",
name,
accessToken: parsedRequestBody.data.credentials.accessToken,
scopes: Object.keys(securityMethod.scopes),
};
break;
case "api_key":
credentials = {
type: "api_key",
name,
api_key: parsedRequestBody.data.credentials.accessToken,
scopes: Object.keys(securityMethod.scopes),
};
break;
default:
throw new Error(
`Not implemented credentials for: ${JSON.stringify(securityMethod)}`
);
}
}
const url = matchingService.baseUrl + parsedRequestBody.data.path;
const data = await serviceFetch({
url,
method: parsedRequestBody.data.method,
headers: parsedRequestBody.data.headers,
body: parsedRequestBody.data.body,
authentication: matchingService.authentication,
credentials,
});
const response: ReturnResponse = {
ok: true,
isRetryable: isRetryable(data.status),
response: {
output: data.body ?? {},
context: {
statusCode: data.status,
headers: data.headers,
},
},
};
res.send(JSON.stringify(response));
}
function isRetryable(statusCode: number) {
return [408, 429, 500, 502, 503, 504].includes(statusCode);
}
@@ -1,29 +0,0 @@
export type ReturnResponse = {
response: NormalizedResponse;
isRetryable: boolean;
ok: boolean;
};
export type NormalizedResponse = {
output: NonNullable<any>;
context: any;
};
export function error(
status: number,
isRetryable: boolean,
error: Record<string, any>
): ReturnResponse {
const response: ReturnResponse = {
ok: false,
isRetryable,
response: {
output: error,
context: {
statusCode: status,
headers: {},
},
},
};
return response;
}
-36
View File
@@ -1,36 +0,0 @@
import { IntegrationAuthentication } from "core/authentication/types";
import { Service } from "core/service/types";
import { Request, Response } from "express";
import { catalog } from "integrations/catalog";
type ServiceMetadata = {
name: string;
service: string;
version: string;
icon: string;
live: boolean;
authentication: IntegrationAuthentication;
};
export async function handleServices(req: Request, res: Response) {
const servicesMetadata: Record<string, ServiceMetadata> = {};
Object.entries(catalog.services).forEach(([key, service]) => {
if (service.live === false) return;
const metadata = omitExtraInfo(service);
servicesMetadata[key] = {
...metadata,
icon: `/integrations/${metadata.service}.png`,
};
});
res.send(
JSON.stringify({
services: servicesMetadata,
})
);
}
function omitExtraInfo(service: Service): ServiceMetadata {
const { actions, retryableStatusCodes, ...rest } = service;
return rest;
}
-58
View File
@@ -1,58 +0,0 @@
import { PrismaClient, Prisma } from ".prisma/client";
import invariant from "tiny-invariant";
export { Prisma };
let prisma: PrismaClient;
declare global {
// eslint-disable-next-line no-var
var __db__: PrismaClient;
}
// this is needed because in development we don't want to restart
// the server with every change, but we want to make sure we don't
// create a new connection to the DB with every change either.
// in production we'll have a single connection to the DB.
if (process.env.NODE_ENV === "production") {
prisma = getClient();
} else {
if (!global.__db__) {
global.__db__ = getClient();
}
prisma = global.__db__;
}
function getClient() {
const { DATABASE_URL } = process.env;
invariant(typeof DATABASE_URL === "string", "DATABASE_URL env var not set");
// Remove the username:password in the url and print that to the console
const urlWithoutCredentials = new URL(DATABASE_URL);
urlWithoutCredentials.password = "";
console.log(
`1. 🔌 setting up prisma client to ${urlWithoutCredentials.toString()}`
);
const client = new PrismaClient({
datasources: {
db: {
url: DATABASE_URL,
},
},
log: ["warn", "error"],
});
console.log(`2.0 🔌 prisma client connecting`);
// connect eagerly
client.$connect();
console.log(`3.0 🔌 prisma client connected`);
return client;
}
export { prisma };
export type { PrismaClient } from ".prisma/client";
-53
View File
@@ -1,53 +0,0 @@
import type { Prisma, Cache } from ".prisma/client";
import { prisma } from "./db.server";
import { CacheService } from "core/cache/types";
export class PostgresCacheService implements CacheService {
constructor(private readonly namespace: string) {}
async get(key: string) {
const cachedRow = await prisma.cache.findFirst({
where: {
namespace: this.namespace,
key,
OR: [
{ expiresAt: null },
{
expiresAt: {
gt: new Date(),
},
},
],
},
});
if (cachedRow) {
return cachedRow.value;
}
return null;
}
async set(key: string, value: string, ttl?: number): Promise<void> {
const expiresAt = ttl ? new Date(Date.now() + ttl * 1000) : null;
await prisma.cache.upsert({
where: {
namespace_key: {
namespace: this.namespace,
key,
},
},
update: {
value,
expiresAt,
},
create: {
namespace: this.namespace,
key,
value,
expiresAt,
},
});
}
}
@@ -1,27 +0,0 @@
import { EndpointSpecMetadata } from "core/endpoint/types";
import { RequestData } from "core/request/types";
export async function getDisplayProperties(
data: RequestData,
displayProperties: EndpointSpecMetadata["displayProperties"]
) {
return {
title: interpolateString(displayProperties.title, {
parameters: data.parameters,
body: data.body,
}),
};
}
function interpolateString(
template: string,
data: Record<string | number, any>
) {
return template.replace(/\${([^}]+)}/g, (_, key) => {
return key
.split(".")
.reduce((obj: Record<string | number, any>, prop: string | number) => {
return obj[prop];
}, data);
});
}
@@ -1,74 +0,0 @@
import { CacheService } from "core/cache/types";
import { Endpoint } from "core/endpoint/types";
import { RequestData, RequestResponse } from "core/request/types";
import { getDisplayProperties } from "./getDisplayProperties";
import { Action, Metadata } from "./types";
import { makeInputSpec, makeOutputSpec } from "./utilities";
/** Create an action where you specify the spec and action */
export const makeAdvancedAction = ({
endpoint,
spec,
action,
}: {
endpoint: Endpoint;
spec: Action["spec"];
action: (
data: RequestData,
cache?: CacheService,
metadata?: Metadata
) => Promise<RequestResponse>;
}) => {
const displayProperties = async (data: RequestData) => {
return getDisplayProperties(
data,
endpoint.spec.endpointSpec.metadata.displayProperties
);
};
return {
name: endpoint.spec.endpointSpec.metadata.name,
description: endpoint.spec.endpointSpec.metadata.description,
path: endpoint.spec.endpointSpec.path,
method: endpoint.spec.endpointSpec.method,
spec,
action,
displayProperties,
};
};
/** Creates an action that calls an endpoint */
export const makeSimpleAction = (endpoint: Endpoint) => {
const action = async (
data: RequestData,
cache?: CacheService,
metadata?: Metadata
) => {
//a simple request doesn't use the cache or metadata
return await endpoint.request(data);
};
return makeAdvancedAction({
endpoint,
spec: {
input: makeInputSpec(endpoint),
output: makeOutputSpec(endpoint),
},
action,
});
};
export const makeSimpleActions = <
TEndpoints extends Record<string, Endpoint>,
K extends keyof TEndpoints
>(
endpoints: TEndpoints
): Record<K, Action> => {
const actions: any = {};
Object.entries(endpoints).forEach(([name, endpoint]) => {
actions[name as K] = makeSimpleAction(endpoint);
});
return actions;
};
@@ -1,42 +0,0 @@
import { CacheService } from "core/cache/types";
import { EndpointSpec, HTTPMethod } from "core/endpoint/types";
import { RequestData, RequestResponse } from "core/request/types";
export type InputSpec = {
security?: EndpointSpec["security"];
parameters?: EndpointSpec["parameters"];
body?: NonNullable<EndpointSpec["request"]["body"]>["schema"];
};
export type OutputSpec = {
responses: EndpointSpec["responses"];
};
export type Metadata = Record<string, any>;
export type DisplayProperties = {
title: string;
};
export type Action = {
name: string;
description: string;
path: string;
method: HTTPMethod;
spec: {
input: InputSpec;
output: OutputSpec;
};
action: (
/** The data to be sent to the endpoint */
data: RequestData,
/** The cache service to use for caching */
cache?: CacheService,
/** Additional metadata that can be used to modify the request */
metadata?: Metadata
) => Promise<RequestResponse>;
displayProperties: (
/** The data to be sent to the endpoint */
data: RequestData
) => Promise<DisplayProperties>;
};
@@ -1,49 +0,0 @@
import { Endpoint } from "core/endpoint/types";
import { InputSpec, OutputSpec } from "./types";
export function makeInputSpec(endpoint: Endpoint): InputSpec {
return {
security: endpoint.spec.endpointSpec.security,
parameters: endpoint.spec.endpointSpec.parameters,
body: endpoint.spec.endpointSpec.request.body?.schema,
};
}
export function makeOutputSpec(endpoint: Endpoint): OutputSpec {
return {
responses: endpoint.spec.endpointSpec.responses,
};
}
export function combineSecurityScopes(
securities: (Record<string, string[]> | undefined)[]
): Record<string, string[]> | undefined {
const securityA = securities[0];
const securityB = securities[1];
//where a key already exists, concatenate the scope arrays together
//where a key does not exist, add it to the object
let combined: Record<string, string[]> = {};
if (securityA) {
combined = {
...securityA,
};
}
if (securityB) {
for (const key in securityB) {
if (combined[key]) {
combined[key] = [...combined[key], ...securityB[key]];
} else {
combined[key] = securityB[key];
}
}
}
if (securities.length > 2) {
return combineSecurityScopes([combined, ...securities.slice(2)]);
}
return combined;
}
@@ -1,82 +0,0 @@
import { EndpointSpec } from "core/endpoint/types";
import { FetchConfig } from "core/request/types";
import { expect, test } from "vitest";
import { checkRequiredScopes, applyCredentials } from "./credentials";
import { AuthCredentials, IntegrationAuthentication } from "./types";
test("Required scopes present", async () => {
const credentials: AuthCredentials = {
type: "oauth2",
name: "authName",
accessToken: "token",
scopes: ["scope1", "scope2"],
};
const requiredScopes = ["scope1", "scope2"];
const result = checkRequiredScopes(requiredScopes, credentials);
expect(result.success).toEqual(true);
});
test("Required scopes missing", async () => {
const credentials: AuthCredentials = {
type: "oauth2",
name: "authName",
accessToken: "token",
scopes: ["scope1", "scope2"],
};
const requiredScopes = ["scope1", "scope2", "scope3"];
const result = checkRequiredScopes(requiredScopes, credentials);
expect(result.success).toEqual(false);
if (result.success) throw new Error("Should not be success");
expect(result.missingScopes).toEqual(["scope3"]);
});
test("Applied credentials", async () => {
const credentials: AuthCredentials = {
type: "oauth2",
name: "authName",
accessToken: "123456",
scopes: ["scope1", "scope2"],
};
const endpointSecurity: EndpointSpec["security"] = {
authName: ["scope1", "scope2"],
};
const integrationAuthentication: IntegrationAuthentication = {
authName: {
type: "oauth2",
placement: {
in: "header",
type: "bearer",
key: "Authorization",
},
authorizationUrl: "https://example.com",
tokenUrl: "https://example.com",
flow: "accessCode",
scopes: {
scope1: "scope1",
scope2: "scope2",
},
},
};
const existingFetch: FetchConfig = {
url: "https://example.com",
method: "GET",
headers: {
"Content-Type": "application/json",
},
};
const fetchConfig = applyCredentials(existingFetch, {
endpointSecurity,
authentication: integrationAuthentication,
credentials,
});
expect(fetchConfig.headers.Authorization).toEqual("Bearer 123456");
expect(fetchConfig.headers["Content-Type"]).toEqual("application/json");
});
@@ -1,107 +0,0 @@
import { EndpointSpec } from "core/endpoint/types";
import { InsufficientScopesError } from "core/request/errors";
import { FetchConfig } from "core/request/types";
import { IntegrationAuthentication, AuthCredentials } from "./types";
/** Apply the given credentials to the given fetch config */
export function applyCredentials(
fetch: FetchConfig,
{
endpointSecurity,
authentication,
credentials,
}: {
endpointSecurity: EndpointSpec["security"];
authentication: IntegrationAuthentication;
credentials: AuthCredentials;
}
): FetchConfig {
if (endpointSecurity === undefined) return fetch;
// check if the credentials have the required scopes
const requiredScopes = endpointSecurity[credentials.name] ?? [];
const scopesCheckResult = checkRequiredScopes(requiredScopes, credentials);
if (!scopesCheckResult.success) {
const error: InsufficientScopesError = {
type: "insufficient_scopes",
missingScopes: scopesCheckResult.missingScopes,
};
throw error;
}
return addCredentialsToConfig(fetch, { authentication, credentials });
}
export function addCredentialsToConfig(
fetch: FetchConfig,
{
authentication,
credentials,
}: {
authentication: IntegrationAuthentication;
credentials: AuthCredentials;
}
) {
// apply the credentials
switch (credentials.type) {
case "oauth2": {
const authConfig = authentication[credentials.name];
switch (authConfig.placement.in) {
case "header": {
fetch.headers[
authConfig.placement.key
] = `Bearer ${credentials.accessToken}`;
return fetch;
}
}
break;
}
case "api_key": {
const authConfig = authentication[credentials.name];
if (authConfig.placement.in === "header") {
let value = "";
switch (authConfig.placement.type) {
case "basic":
value = `Basic ${credentials.api_key}`;
break;
case "bearer":
value = `Bearer ${credentials.api_key}`;
break;
}
fetch.headers[authConfig.placement.key] = value;
}
return fetch;
}
}
throw new Error("Invalid credentials");
}
type ScopesCheckResult =
| {
success: true;
}
| {
success: false;
missingScopes: string[];
};
/** Check if the given credentials have the required scopes */
export function checkRequiredScopes(
requiredScopes: string[],
credentials: AuthCredentials
): ScopesCheckResult {
const missingScopes = requiredScopes.filter(
(scope) => !credentials.scopes.includes(scope)
);
if (missingScopes.length > 0) {
return {
success: false,
missingScopes,
};
}
return {
success: true,
};
}
@@ -1,61 +0,0 @@
import { z } from "zod";
export type IntegrationAuthentication = Record<
string,
AuthenticationDefinition
>;
type AuthenticationDefinition = OAuth2Authentication | APIKeyAuthentication;
type OAuth2Authentication = {
type: "oauth2";
placement: AuthenticationPlacement;
authorizationUrl: string;
tokenUrl: string;
flow: "accessCode" | "implicit" | "password" | "application";
scopes: Record<string, string>;
};
type APIKeyAuthentication = {
type: "api_key";
placement: AuthenticationPlacement;
documentation: string;
scopes: Record<string, string>;
additionalFields?: {
key: string;
fieldType: "text";
name: string;
placeholder?: string;
description: string;
}[];
};
type AuthenticationPlacement = HeaderAuthentication;
interface HeaderAuthentication {
in: "header";
type: "basic" | "bearer";
key: string;
}
const OAuth2CredentialsSchema = z.object({
type: z.literal("oauth2"),
name: z.string(),
accessToken: z.string(),
scopes: z.array(z.string()),
});
const APIKeyCredentialsSchema = z.object({
type: z.literal("api_key"),
name: z.string(),
api_key: z.string(),
additionalFields: z.record(z.string(), z.string()).optional(),
scopes: z.array(z.string()),
});
export const AuthCredentialsSchema = z.discriminatedUnion("type", [
OAuth2CredentialsSchema,
APIKeyCredentialsSchema,
]);
export type AuthCredentials = z.infer<typeof AuthCredentialsSchema>;
-4
View File
@@ -1,4 +0,0 @@
export interface CacheService {
get: (key: string) => Promise<string | null>;
set: (key: string, value: string, ttl?: number) => Promise<void>;
}
-5
View File
@@ -1,5 +0,0 @@
import { Service } from "./service/types";
export type Catalog = {
services: Record<string, Service>;
};
@@ -1,36 +0,0 @@
import { IntegrationAuthentication } from "core/authentication/types";
import { requestEndpoint } from "core/request/requestEndpoint";
import { RequestData, RequestResponse, RequestSpec } from "core/request/types";
import { Endpoint, EndpointSpec } from "./types";
export const makeEndpoint = (spec: RequestSpec) => {
const request = async (data: RequestData) => {
return await requestEndpoint(spec, data);
};
return {
spec,
request,
};
};
export const makeEndpoints = <
TSpecs extends Record<string, EndpointSpec>,
K extends keyof TSpecs
>(
baseUrl: string,
authentication: IntegrationAuthentication,
specs: TSpecs
): Record<K, Endpoint> => {
const endpoints: any = {};
Object.entries(specs).forEach(([name, spec]) => {
endpoints[name as K] = makeEndpoint({
baseUrl,
endpointSpec: spec,
authentication,
});
});
return endpoints;
};
@@ -1,71 +0,0 @@
import { RequestData, RequestResponse, RequestSpec } from "core/request/types";
import { JSONSchema } from "core/schemas/types";
import { z } from "zod";
export type Endpoint = {
spec: RequestSpec;
request: (data: RequestData) => Promise<RequestResponse>;
};
export const HTTPMethodSchema = z.union([
z.literal("GET"),
z.literal("POST"),
z.literal("PUT"),
z.literal("PATCH"),
z.literal("DELETE"),
z.literal("HEAD"),
z.literal("OPTIONS"),
z.literal("TRACE"),
]);
export type HTTPMethod = z.infer<typeof HTTPMethodSchema>;
export interface EndpointSpec {
path: string;
method: HTTPMethod;
metadata: EndpointSpecMetadata;
parameters?: EndpointSpecParameter[];
security?: Record<string, string[]>;
request: EndpointSpecRequest;
responses: { default: EndpointSpecResponse[] } & Record<
string,
EndpointSpecResponse[]
>;
}
export interface EndpointSpecParameter {
name: string;
description: string;
in: "query" | "path" | "header";
required?: boolean;
schema: JSONSchema;
}
interface EndpointSpecRequest {
headers?: Record<string, string>;
body?: {
schema: JSONSchema;
};
}
export interface EndpointSpecResponse {
success: boolean;
name: string;
description?: string;
schema?: JSONSchema;
}
export interface EndpointSpecMetadata {
name: string;
description: string;
displayProperties: {
title: string;
};
externalDocs?: ExternalDocs;
tags: string[];
}
interface ExternalDocs {
description: string;
url: string;
}
@@ -1,43 +0,0 @@
import { RequestResponse } from "core/request/types";
import { type Response } from "node-fetch";
export async function getFetch() {
return (await import("node-fetch")).default;
}
export async function safeGetJson(response: Response) {
try {
return await response.json();
} catch (error) {
return undefined;
}
}
export function normalizeHeaders(headers: Headers): Record<string, string> {
const normalizedHeaders: Record<string, string> = {};
headers.forEach((value, key) => {
normalizedHeaders[key.toLowerCase()] = value;
});
return normalizedHeaders;
}
export function responseFromCaughtError(error: any): RequestResponse {
if (error instanceof Error) {
return {
success: false,
status: 400,
headers: {},
body: { error: error.message },
};
}
//convert the error into JSON
return {
success: false,
status: 400,
headers: {},
body: { error: JSON.stringify(error) },
};
}
@@ -1,29 +0,0 @@
import { authentication } from "integrations/airtable/authentication";
import { startNock, stopNock } from "testing/nock";
import { describe, expect, test } from "vitest";
import { serviceFetch } from "./serviceFetch";
const authToken = () => process.env.AIRTABLE_TOKEN ?? "";
describe("serviceFetch", async () => {
test("simple GET", async () => {
const accessToken = authToken();
const nockDone = await startNock("serviceFetch.simple.get");
const response = await serviceFetch({
url: "https://api.airtable.com/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m/recHcnB1MbBr9Rd2P",
method: "GET",
authentication: authentication,
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:read"],
},
});
expect(response.status).toEqual(200);
expect(response.success).toEqual(true);
expect(response.body).not.toBeNull();
stopNock(nockDone);
});
});
@@ -1,73 +0,0 @@
import { addCredentialsToConfig } from "core/authentication/credentials";
import {
AuthCredentials,
IntegrationAuthentication,
} from "core/authentication/types";
import { HTTPMethod } from "core/endpoint/types";
import { FetchConfig, RequestResponse } from "core/request/types";
import {
getFetch,
normalizeHeaders,
responseFromCaughtError,
safeGetJson,
} from "./fetchUtilities";
export type ServiceFetchOptions = {
url: string;
method: HTTPMethod;
headers?: Record<string, string>;
body?: any;
authentication: IntegrationAuthentication;
credentials?: AuthCredentials;
};
export async function serviceFetch({
url,
method = "GET",
headers,
body,
credentials,
authentication,
}: ServiceFetchOptions): Promise<RequestResponse> {
let fetchConfig: FetchConfig = {
url,
method,
headers: {
...headers,
},
body: JSON.stringify(body),
};
if (credentials == null) {
throw {
type: "missing_credentials",
};
}
fetchConfig = addCredentialsToConfig(fetchConfig, {
authentication,
credentials,
});
const fetchObject = {
method: fetchConfig.method,
headers: fetchConfig.headers,
body: fetchConfig.body,
};
try {
const fetch = await getFetch();
const response = await fetch(url, fetchObject);
const json = await safeGetJson(response);
return {
success: response.ok,
status: response.status,
headers: normalizeHeaders(response.headers),
body: json,
};
} catch (error: any) {
return responseFromCaughtError(error);
}
}
@@ -1,66 +0,0 @@
import { JSONSchemaError } from "core/schemas/types";
export type RequestError =
| RequestBodyInvalid
| ParameterMissing
| ParametersInvalid
| ExtraParametersError
| InsufficientScopesError
| MissingResponseSpec
| ResponseBodyInvalid
| BodyMissing
| MissingCredentialsError;
export interface RequestBodyInvalid {
type: "request_body_invalid";
errors: any[];
}
export interface BodyMissing {
type: "missing_body";
}
export interface ParameterMissing {
type: "missing_parameter";
parameter: {
name: string;
};
}
export interface ParametersInvalid {
type: "parameter_invalid";
parameter: {
name: string;
value: any;
};
errors: JSONSchemaError[];
}
export interface ExtraParametersError {
type: "extra_parameters";
parameters: Array<{
name: string;
value: any;
}>;
}
export interface MissingCredentialsError {
type: "missing_credentials";
}
export interface InsufficientScopesError {
type: "insufficient_scopes";
missingScopes: string[];
}
export interface MissingResponseSpec {
type: "no_response_spec";
status: number;
}
export interface ResponseBodyInvalid {
type: "response_invalid";
errors: Array<{ name: string; errors: JSONSchemaError[] }>;
status: number;
body?: any;
}
@@ -1,209 +0,0 @@
import { applyCredentials } from "core/authentication/credentials";
import { EndpointSpec, EndpointSpecResponse } from "core/endpoint/types";
import {
getFetch,
normalizeHeaders,
responseFromCaughtError,
safeGetJson,
} from "core/fetch/fetchUtilities";
import { JSONSchemaError } from "core/schemas/types";
import { validate } from "core/schemas/validate";
import {
FetchConfig,
RequestData,
RequestResponse,
RequestSpec,
} from "./types";
export async function requestEndpoint(
{ baseUrl, endpointSpec, authentication }: RequestSpec,
{ parameters, body, credentials }: RequestData
): Promise<RequestResponse> {
const { method, security, request, responses } = endpointSpec;
let path = endpointSpec.path;
// validate the request body
if (body == null && request.body?.schema != null) {
throw {
type: "missing_body",
};
}
const requestValid = await validate(body, request.body?.schema);
if (!requestValid.success) {
throw {
type: "request_body_invalid",
errors: requestValid.errors,
};
}
let headers: Record<string, string> = {};
// validate and add the parameters
if (endpointSpec.parameters != null) {
for (const parameter of endpointSpec.parameters) {
const { name, in: location, required } = parameter;
// if the parameter is missing
if (parameters === undefined || parameters[name] == null) {
if (required) {
throw {
type: "missing_parameter",
parameter: {
name,
},
};
} else {
continue;
}
}
const element = parameters[name];
//validate the parameter against the schema
const valid = await validate(element, parameter.schema);
if (!valid.success) {
throw {
type: "parameter_invalid",
parameter: {
name,
value: element,
},
errors: valid.errors,
};
}
//add the parameter
switch (location) {
case "path":
path = path.replace(`{${name}}`, element as string);
break;
case "query": {
if (parameter.schema?.type === "array") {
const array = element as Array<string>;
for (const item of array) {
path = `${path}${path.includes("?") ? "&" : "?"}${name}=${item}`;
}
break;
}
path = `${path}${path.includes("?") ? "&" : "?"}${name}=${element}`;
break;
}
case "header":
headers = {
...headers,
[name]: `${element}`,
};
break;
}
}
}
// add headers from the config
for (const name in request.headers) {
if (Object.prototype.hasOwnProperty.call(request.headers, name)) {
const element = request.headers[name];
headers = {
...headers,
[name]: element,
};
}
}
// build the fetch config
const url = `${baseUrl}${path}`;
let fetchConfig: FetchConfig = {
url,
method,
headers: {
...headers,
},
body: JSON.stringify(body),
};
// apply credentials
if (security != null) {
if (credentials == null) {
throw {
type: "missing_credentials",
};
}
fetchConfig = applyCredentials(fetchConfig, {
endpointSecurity: security,
authentication,
credentials,
});
}
// do the fetch and try get the JSON
const fetchObject = {
method: fetchConfig.method,
headers: fetchConfig.headers,
body: fetchConfig.body,
};
try {
const fetch = await getFetch();
const response = await fetch(fetchConfig.url, fetchObject);
const json = await safeGetJson(response);
// validate the response against the specs
const responseSpecs = getResponseSpecsForStatusCode(
response.status,
responses
);
if (!responseSpecs) {
throw {
type: "no_response_spec",
status: response.status,
};
}
// start with the first spec and loop through them, if one succeeds then return that
const specErrors: Array<{ name: string; errors: JSONSchemaError[] }> = [];
for (const spec of responseSpecs) {
const responseValid = await validate(json, spec.schema);
if (responseValid.success) {
return {
success: spec.success,
status: response.status,
headers: normalizeHeaders(response.headers),
body: json,
};
} else {
if (responseValid.errors != null) {
specErrors.push({ name: spec.name, errors: responseValid.errors });
}
}
}
throw {
type: "response_invalid",
status: response.status,
body: json,
errors: specErrors,
};
} catch (error: any) {
return responseFromCaughtError(error);
}
}
/** Get the appropriate endpoint response object based on the status code. It supports wild cards like 20x and 2xx */
function getResponseSpecsForStatusCode(
statusCode: number,
endpointResponseSpecs: EndpointSpec["responses"]
): EndpointSpecResponse[] {
let specs = endpointResponseSpecs[statusCode.toString()];
if (specs) return specs;
specs =
endpointResponseSpecs[
`${statusCode.toString().charAt(0)}${statusCode.toString().charAt(1)}x`
];
if (specs) return specs;
specs = endpointResponseSpecs[`${statusCode.toString().charAt(0)}xx`];
if (specs) return specs;
return endpointResponseSpecs.default;
}
@@ -1,30 +0,0 @@
import {
IntegrationAuthentication,
AuthCredentials,
} from "core/authentication/types";
import { HTTPMethod, EndpointSpec } from "core/endpoint/types";
export interface FetchConfig {
url: string;
method: HTTPMethod;
headers: Record<string, string>;
body?: any;
}
export interface RequestSpec {
baseUrl: string;
endpointSpec: EndpointSpec;
authentication: IntegrationAuthentication;
}
export interface RequestData {
parameters?: Record<string, any>;
body?: any;
credentials?: AuthCredentials;
}
export interface RequestResponse {
success: boolean;
status: number;
headers?: Record<string, string>;
body?: any;
}
@@ -1 +0,0 @@
declare module "json-schema-deref-sync";
@@ -1,141 +0,0 @@
import { JSONSchema } from "./types";
export function makeStringSchema(
title: string,
description?: string,
options?: {
defaultValue?: string;
enum?: string[];
}
): JSONSchema {
const schema: JSONSchema = {
type: "string",
title,
};
if (description) {
schema.description = description;
}
if (options?.defaultValue) {
schema.default = options.defaultValue;
}
if (options?.enum) {
schema.enum = options.enum;
}
return schema;
}
export function makeNumberSchema(
title: string,
description?: string,
options?: {
defaultValue: number;
}
): JSONSchema {
const schema: JSONSchema = {
type: "number",
title,
};
if (description) {
schema.description = description;
}
if (options?.defaultValue) {
schema.default = options.defaultValue;
}
return schema;
}
export function makeBooleanSchema(
title: string,
description?: string,
options?: {
defaultValue?: boolean;
enum?: boolean;
}
): JSONSchema {
const schema: JSONSchema = {
title,
type: "boolean",
};
if (description) {
schema.description = description;
}
if (options?.defaultValue) {
schema.default = options.defaultValue;
}
if (options?.enum) {
schema.enum = [options.enum];
}
return schema;
}
export function makeArraySchema(title: string, items: JSONSchema): JSONSchema {
return {
type: "array",
title,
items,
};
}
export function makeObjectSchema(
title: string,
options: {
optionalProperties?: Record<string, JSONSchema>;
requiredProperties?: Record<string, JSONSchema>;
additionalProperties?: boolean | JSONSchema;
}
): JSONSchema {
let properties: Record<string, JSONSchema> | undefined = undefined;
if (options.optionalProperties || options.requiredProperties) {
properties = {};
}
if (options.optionalProperties) {
properties = {
...properties,
...options.optionalProperties,
};
}
if (options.requiredProperties) {
properties = {
...properties,
...options.requiredProperties,
};
}
return {
type: "object",
title,
properties,
required: options.requiredProperties
? Object.keys(options.requiredProperties)
: undefined,
additionalProperties: options.additionalProperties,
};
}
export function makeOneOf(title: string, schemas: JSONSchema[]): JSONSchema {
return {
title,
oneOf: schemas,
};
}
export function makeAnyOf(title: string, schemas: JSONSchema[]): JSONSchema {
return {
title,
anyOf: schemas,
};
}
@@ -1,13 +0,0 @@
import { expect, test } from "vitest";
import spec from "./test-openapi-spec-v2.json";
import { dereferenceSpec, schemaFromOpenApiSpecV2 } from "./openApi";
test("Returns the correct schema", async () => {
const dereferenced = dereferenceSpec(spec);
const schema = schemaFromOpenApiSpecV2(
dereferenced,
"/paths//conversations.list/get/responses/200/schema"
);
expect(schema.type).toEqual("object");
expect(schema.additionalProperties).toEqual(false);
});
@@ -1,15 +0,0 @@
import deref from "json-schema-deref-sync";
import pointer from "json-pointer";
import { type JSONSchema } from "./types";
export function dereferenceSpec(spec: any): any {
return deref(spec);
}
// todo validate that it's a valid json schema
export function schemaFromOpenApiSpecV2(spec: any, path: string): JSONSchema {
// we need to escape the path because it contains ~ and / characters
path = path.replace(/~/g, "~0").replace(/\/\//g, "/~1");
const schema = pointer.get(spec as pointer.JsonObject, path);
return schema;
}
File diff suppressed because it is too large Load Diff
@@ -1,4 +0,0 @@
import { Schema, OutputUnit } from "@cfworker/json-schema";
export type JSONSchema = Schema;
export type JSONSchemaError = OutputUnit;
@@ -1,57 +0,0 @@
import { JSONSchema } from "./types";
export async function validate(data: any, schema?: JSONSchema) {
try {
if (schema === undefined) {
return {
success: true as const,
};
}
if (data === undefined) {
return {
success: false as const,
errors: [
{
keyword: "undefined",
keywordLocation: "undefined",
instanceLocation: "undefined",
error: "data is undefined",
},
],
};
}
const Validator = await getValidator();
const validator = new Validator(schema);
const result = validator.validate(data);
if (!result.valid) {
return {
success: false as const,
errors: result.errors,
};
}
return {
success: true as const,
};
} catch (e: any) {
console.error(e);
return {
success: false as const,
errors: [
{
keyword: "undefined",
keywordLocation: "undefined",
instanceLocation: "undefined",
error: e.toString(),
},
],
};
}
}
async function getValidator() {
const tool = await import("@cfworker/json-schema");
return tool.Validator;
}
@@ -1,13 +0,0 @@
import { Action } from "core/action/types";
import { IntegrationAuthentication } from "core/authentication/types";
export type Service = {
name: string;
service: string;
version: string;
baseUrl: string;
live: boolean;
authentication: IntegrationAuthentication;
actions: Record<string, Action>;
retryableStatusCodes: number[];
};
@@ -1,109 +0,0 @@
import { InputSpec } from "core/action/types";
import { checkRequiredScopes } from "core/authentication/credentials";
import { RequestError } from "core/request/errors";
import { RequestData, RequestSpec } from "core/request/types";
import { validate } from "core/schemas/validate";
type ValidationResult =
| {
success: true;
}
| {
success: false;
error: RequestError;
};
export async function validateInputs(
inputSpec: InputSpec,
{ parameters, body, credentials }: RequestData
): Promise<ValidationResult> {
if (inputSpec.security) {
if (credentials === undefined) {
return {
success: false,
error: {
type: "missing_credentials",
},
};
}
const requiredScopes = inputSpec.security[credentials.name] ?? [];
const result = checkRequiredScopes(requiredScopes, credentials);
if (!result.success) {
return {
success: false,
error: {
type: "insufficient_scopes",
missingScopes: result.missingScopes,
},
};
}
}
// validate the request body exists if it should
if (body == null && inputSpec.body != null) {
return {
success: false,
error: {
type: "missing_body",
},
};
}
//validate the request body against the schema
const requestValid = await validate(body, inputSpec.body);
if (!requestValid.success) {
return {
success: false,
error: {
type: "request_body_invalid",
errors: requestValid.errors,
},
};
}
//validate the parameters
if (inputSpec.parameters != null) {
for (const parameter of inputSpec.parameters) {
const { name, required } = parameter;
// if the parameter is missing
if (parameters === undefined || parameters[name] == null) {
if (required) {
return {
success: false,
error: {
type: "missing_parameter",
parameter: {
name,
},
},
};
} else {
continue;
}
}
const element = parameters[name];
//validate the parameter against the schema
const valid = await validate(element, parameter.schema);
if (!valid.success) {
return {
success: false,
error: {
type: "parameter_invalid",
parameter: {
name,
value: element,
},
errors: valid.errors,
},
};
}
}
}
return {
success: true,
};
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,75 +0,0 @@
[
{
"scope": "https://slack.com:443",
"method": "GET",
"path": "/api/conversations.list?limit=3",
"body": "",
"status": 200,
"response": [
"13a10900e45a2e5f5f662b462e26151762c481e859dbffffde6956a4097eb37f02aa77df7d8db575e3fea335752c0a039e145027e3d40b2d00eba4129d035425d78756f60ba204af170b1f86483c07dee72fe4317870e818d6cdc59b7d081878c0287860ab6e19cd3bf225f61be1bc2382ac0003f2e24cce767358bdc5ff27e6efe91e15d4cecfa8a6aaeaa6eeeaf667d1c49ef8fb383a0c655532f02ae7e5e72c8ac21662b52b9fbf2ed41ddc25fcc145a24ddfb1d411d84be8b4ff04dbb1b7b63ebf31fc3bfed0b427f133131f2a9ed4f65f9d87833bea7962df1dcbb40c575534c5b0150ce8e822c38f0726b8c1a31775894ab417e0d9318cb3c3335335424a29fa12934fe2d87ceefa561a8129f271cb7784f29485b4fd55e0491abc5f00ce6df0e046706922da1285233d68fe538d002f132a1be061b31db24c20e0de211ded031dfdc7403381cc3efb633986e2d0cae55b25863e82922a674915308c922049729e62948938a552fde834122d2af230a4ad5404eb6368268695184d5a6b371a5b02166f21265a49a688495cc46831de9149e52d1de762e84a357473940f6c7da403cff8c744e37194d39b870b86ef4f71a40ab47210eafedec73fa66bb99aa36aaa6acc30179aa4d4548102cec5c0a3e46de9484720aa1fd1458a057d8fa70eb30d722b62ad1bfdaf51732b0c120ad5261e0936adc6e03e980bf5b38efe852022fc10052d45ff3cb4e9a73bcca22c88540219b11b9ff60572714c9e4bede4f2e2fa97ef83a8cfa3a06aeb94601a99baa6d96693b436663171fddf9a64af46731d453115ddd0d4d9b7d5af35e352b56742300a313884c29056bed452699f53febf3154c19949cfb0d0f7301142aadafa91c1303d001ec4a72f59f8541fdd1e3d3cbc3c7f0437caf536fcff03"
],
"rawHeaders": [
"date",
"Sat, 18 Feb 2023 16:06:41 GMT",
"server",
"Apache",
"x-powered-by",
"HHVM/4.153.1",
"access-control-allow-origin",
"*",
"referrer-policy",
"no-referrer",
"x-slack-backend",
"r",
"x-slack-unique-id",
"Y_D3kQScXBLeo8CcHpwldgAAECY",
"strict-transport-security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-headers",
"slack-route, x-slack-version-ts, x-b3-traceid, x-b3-spanid, x-b3-parentspanid, x-b3-sampled, x-b3-flags",
"access-control-expose-headers",
"x-slack-req-id, retry-after",
"x-oauth-scopes",
"channels:read,channels:join,channels:manage,chat:write,groups:write,im:write,mpim:write,chat:write.customize,reactions:write",
"x-accepted-oauth-scopes",
"channels:read,groups:read,mpim:read,im:read,read",
"expires",
"Mon, 26 Jul 1997 05:00:00 GMT",
"cache-control",
"private, no-cache, no-store, must-revalidate",
"pragma",
"no-cache",
"x-xss-protection",
"0",
"x-content-type-options",
"nosniff",
"x-slack-req-id",
"10d2571cfa8e50b57c91d537221aff81",
"vary",
"Accept-Encoding",
"content-encoding",
"br",
"content-length",
"654",
"content-type",
"application/json; charset=utf-8",
"x-envoy-upstream-service-time",
"118",
"x-backend",
"main_normal main_canary_with_overflow main_control_with_overflow",
"x-server",
"slack-www-hhvm-main-iad-cxtr",
"x-slack-shared-secret-outcome",
"no-match",
"via",
"envoy-www-iad-scsk, envoy-edge-lhr-csok",
"x-edge-backend",
"envoy-www",
"x-slack-edge-shared-secret-outcome",
"no-match",
"connection",
"close"
],
"responseIsBinary": false
}
]
@@ -1,53 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "POST",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m",
"body": {
"fields": {
"Employee": "Employee single create"
}
},
"status": 200,
"response": {
"id": "recY9ZLK96wNBblmo",
"createdTime": "2023-02-18T17:05:53.000Z",
"fields": {
"Employee": "Employee single create"
}
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 17:05:53 GMT",
"Content-Type",
"120",
"Connection",
"close",
"Set-Cookie",
"AWSALB=uxQV2kzjELpFGUscnluykIVz7XOSrD1HxCYqoKdrnnPDt2Djy+EBfTKTDx4p0fAh1qD5c3/jRM2bCy9rhptozXyMsWOCDL7v2H3E6VRso6pGZm+kmcdzFjjoIO36; Expires=Sat, 25 Feb 2023 17:05:53 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=uxQV2kzjELpFGUscnluykIVz7XOSrD1HxCYqoKdrnnPDt2Djy+EBfTKTDx4p0fAh1qD5c3/jRM2bCy9rhptozXyMsWOCDL7v2H3E6VRso6pGZm+kmcdzFjjoIO36; Expires=Sat, 25 Feb 2023 17:05:53 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwL5hqTq5iBqCg9Q; path=/; expires=Sun, 18 Feb 2024 17:05:53 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"114"
],
"responseIsBinary": false
}
]
@@ -1,73 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "POST",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m",
"body": {
"records": [
{
"fields": {
"Employee": "Employee #1"
}
},
{
"fields": {
"Employee": "Employee #2"
}
}
]
},
"status": 200,
"response": {
"records": [
{
"id": "recGy1FsSzQnQ1Q5G",
"createdTime": "2023-02-18T17:05:09.000Z",
"fields": {
"Employee": "Employee #1"
}
},
{
"id": "recfrk4NonMC37k3q",
"createdTime": "2023-02-18T17:05:09.000Z",
"fields": {
"Employee": "Employee #2"
}
}
]
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 17:05:09 GMT",
"Content-Type",
"145",
"Connection",
"close",
"Set-Cookie",
"AWSALB=S3w+xLzGuJ4YZa7uQpSGEZYmk2IXTVlsJ9yVl+E2aUbEW5BtGoPl4lNa9pwXEpNvI29HEMTQgpuOXAnvfTFKzm+ot6y2DAQJwqa1nDNgQVRZ2z6lNn602nx0ebhI; Expires=Sat, 25 Feb 2023 17:05:08 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=S3w+xLzGuJ4YZa7uQpSGEZYmk2IXTVlsJ9yVl+E2aUbEW5BtGoPl4lNa9pwXEpNvI29HEMTQgpuOXAnvfTFKzm+ot6y2DAQJwqa1nDNgQVRZ2z6lNn602nx0ebhI; Expires=Sat, 25 Feb 2023 17:05:08 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brw7GK0C3hS9Fnih9; path=/; expires=Sun, 18 Feb 2024 17:05:08 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"221"
],
"responseIsBinary": false
}
]
@@ -1,97 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "POST",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m",
"body": {
"fields": {
"Employee": "Delete now #3"
}
},
"status": 200,
"response": {
"id": "recyubpGhZWle9GOS",
"createdTime": "2023-02-18T17:25:39.000Z",
"fields": {
"Employee": "Delete now #3"
}
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 17:25:38 GMT",
"Content-Type",
"121",
"Connection",
"close",
"Set-Cookie",
"AWSALB=jt7yHA1t0HaG6Wp2xE4aJWZdQ59coYaZrRwqp8gwZmizt1A1N1H+xEqqycwyHEJtuK/6Rvc5FGcWdsJZQD2kbg5MSS0aropskjuOcOWICRp4+IHNWdYH5Osmcfre; Expires=Sat, 25 Feb 2023 17:25:38 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=jt7yHA1t0HaG6Wp2xE4aJWZdQ59coYaZrRwqp8gwZmizt1A1N1H+xEqqycwyHEJtuK/6Rvc5FGcWdsJZQD2kbg5MSS0aropskjuOcOWICRp4+IHNWdYH5Osmcfre; Expires=Sat, 25 Feb 2023 17:25:38 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwoFcsjVo3nFDHPT; path=/; expires=Sun, 18 Feb 2024 17:25:38 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"105"
],
"responseIsBinary": false
},
{
"scope": "https://api.airtable.com:443",
"method": "DELETE",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m/recyubpGhZWle9GOS",
"body": "",
"status": 200,
"response": {
"deleted": true,
"id": "recyubpGhZWle9GOS"
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 17:25:39 GMT",
"Content-Type",
"59",
"Connection",
"close",
"Set-Cookie",
"AWSALB=SjG+vAIOeCRwgx9Zhi7bVWiFG0acnh1G6+u2nL+ZUfo+4ON1RPjGdhX41SiaekKoYBmW2oCbSynCYAXKGnQjJYaOmPFAeIkml0VZuXSCv1Jm8P2PsXR+DoKIvZTk; Expires=Sat, 25 Feb 2023 17:25:39 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=SjG+vAIOeCRwgx9Zhi7bVWiFG0acnh1G6+u2nL+ZUfo+4ON1RPjGdhX41SiaekKoYBmW2oCbSynCYAXKGnQjJYaOmPFAeIkml0VZuXSCv1Jm8P2PsXR+DoKIvZTk; Expires=Sat, 25 Feb 2023 17:25:39 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwUynCRjs24wfp6Z; path=/; expires=Sun, 18 Feb 2024 17:25:39 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"41"
],
"responseIsBinary": false
}
]
@@ -1,125 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "POST",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m",
"body": {
"records": [
{
"fields": {
"Employee": "Delete now #1"
}
},
{
"fields": {
"Employee": "Delete now #2"
}
}
]
},
"status": 200,
"response": {
"records": [
{
"id": "recTR6YLOshwwyi1O",
"createdTime": "2023-02-18T17:22:12.000Z",
"fields": {
"Employee": "Delete now #1"
}
},
{
"id": "recuQVL2gpUjN64py",
"createdTime": "2023-02-18T17:22:12.000Z",
"fields": {
"Employee": "Delete now #2"
}
}
]
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 17:22:12 GMT",
"Content-Type",
"154",
"Connection",
"close",
"Set-Cookie",
"AWSALB=IAMzoMptPLC7k7rWXTocxJiu8ciJvbHqD17c0EPaM38k1FkzA/zW7S+tRKK6LOzrVFyLL8GUgFtdfDGFELrQ8uO1bADYnEiB4vfOAXjRwSBA2Dc61N3O+MIWMdnM; Expires=Sat, 25 Feb 2023 17:22:12 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=IAMzoMptPLC7k7rWXTocxJiu8ciJvbHqD17c0EPaM38k1FkzA/zW7S+tRKK6LOzrVFyLL8GUgFtdfDGFELrQ8uO1bADYnEiB4vfOAXjRwSBA2Dc61N3O+MIWMdnM; Expires=Sat, 25 Feb 2023 17:22:12 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwFID6JiyKkz2OUb; path=/; expires=Sun, 18 Feb 2024 17:22:12 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"225"
],
"responseIsBinary": false
},
{
"scope": "https://api.airtable.com:443",
"method": "DELETE",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m?records=recTR6YLOshwwyi1O&records=recuQVL2gpUjN64py",
"body": "",
"status": 200,
"response": {
"records": [
{
"deleted": true,
"id": "recTR6YLOshwwyi1O"
},
{
"deleted": true,
"id": "recuQVL2gpUjN64py"
}
]
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 17:22:13 GMT",
"Content-Type",
"91",
"Connection",
"close",
"Set-Cookie",
"AWSALB=psOMBihmNThSHe+ZEkpP1CKmbhnepN53OlaE2Eyi0zBUDOzM7dHGR7ptEm8ebKfpyqDolVl93quNNO44wwIfZqZHuSPVGyZsJWJoM2FsHY4G4HaFCJZoPEkqRFFs; Expires=Sat, 25 Feb 2023 17:22:12 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=psOMBihmNThSHe+ZEkpP1CKmbhnepN53OlaE2Eyi0zBUDOzM7dHGR7ptEm8ebKfpyqDolVl93quNNO44wwIfZqZHuSPVGyZsJWJoM2FsHY4G4HaFCJZoPEkqRFFs; Expires=Sat, 25 Feb 2023 17:22:12 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwq5X9BQFhfFj5lr; path=/; expires=Sun, 18 Feb 2024 17:22:12 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"97"
],
"responseIsBinary": false
}
]
@@ -1,79 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "GET",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m/recHcnB1MbBr9Rd2P",
"body": "",
"status": 200,
"response": {
"id": "recHcnB1MbBr9Rd2P",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "Faith Butterworth",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "att3ibwyOXULYL15O",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/0Hy62Ommo3C1BR3r_TsIMw/xGdMUGBUycsvzqjCPHlIuKyvUCM_Y6InDa7Bz15pCaGtWXyue5BlHYak_kFJYmgVXbgvWAXkaigRk7xdcUHiZU66F33CrAUP36ihAFT3-eU/-_khPf6Rh8P9uLt3Oc55HupkyS000nORrpvZpY1bKwI",
"filename": "headshot-purple-2 (1).png",
"size": 191272,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/MlmaPKrIg1yOj_qipSwKhg/fVQ5W7QtoxoAszvbIHT2dksddzWQi2ETkCewMXRSY2NIiX6wD1LWuC6d4VICHwRCz_6sKW4vhwZ1vkScFYpcgQ/Iy8lz5HcTKpTrG8gBq4fQJRyPAdnfYrwn3u05_lovmc",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/BBIfL5Oqc8BAHkugmNUkXA/JygSzSF9lLJi1U1dP1xCpH1QTSJwxb2FRvJssEdxZubfzVIa9iofsOn5HKsIFLuPl2K3yYCvaxAD3ZsHa7WCig/Rpbg9vWTPa6-oxoPUO4gqkOBFHzadVBHEZhjJoIu6Y8",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/xlrKts_ACw09qLqsAW16EQ/qrDMlQpI1cVdPCe0uw6ZJw9FeZCcwenmFzZ317qbsO0q8ZY2DY5k-bpPFYBaS4KkqztczIOqdnCBIYiuJ3_wqA/4LU_0QW7hp8Rw828Z_ov3GNcZa86pywziLdQy364XXE",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "Contractor"
}
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 16:02:10 GMT",
"Content-Type",
"872",
"Connection",
"close",
"Set-Cookie",
"AWSALB=PhNLtNqLT//gbRBjRTywLiyg0lY3ZGo9Q2LLwOqLnAwsXcrRIaaELYV7A+s2lJlrAsid5UKIKld15Jq1nLyroXxAcFPd3vcbq6ku7tK7LE8HnOQiaMOV9gOoxqoa; Expires=Sat, 25 Feb 2023 16:02:10 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=PhNLtNqLT//gbRBjRTywLiyg0lY3ZGo9Q2LLwOqLnAwsXcrRIaaELYV7A+s2lJlrAsid5UKIKld15Jq1nLyroXxAcFPd3vcbq6ku7tK7LE8HnOQiaMOV9gOoxqoa; Expires=Sat, 25 Feb 2023 16:02:10 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwuEVkvPW1vATlmC; path=/; expires=Sun, 18 Feb 2024 16:02:10 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"1320"
],
"responseIsBinary": false
}
]
@@ -1,112 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "POST",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m/listRecords",
"body": {
"timeZone": "America/Los_Angeles",
"userLocale": "en",
"sort": [
{
"field": "Employee",
"direction": "asc"
}
],
"fields": [
"Employee"
]
},
"status": 200,
"response": {
"records": [
{
"id": "recWhRejYoDn5CNsB",
"createdTime": "2023-01-23T07:46:46.000Z",
"fields": {}
},
{
"id": "recFeH8y7qLNR6CxB",
"createdTime": "2023-01-22T23:15:09.000Z",
"fields": {
"Employee": "Employee 7"
}
},
{
"id": "recRo4MuSqRcb33pp",
"createdTime": "2023-01-23T00:48:36.000Z",
"fields": {
"Employee": "Employee 9"
}
},
{
"id": "recHcnB1MbBr9Rd2P",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "Faith Butterworth"
}
},
{
"id": "recbKWDa9URtGWIGG",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "Harley Holbrook"
}
},
{
"id": "rec3cPi3z4s6oe9SD",
"createdTime": "2023-01-22T23:51:21.000Z",
"fields": {
"Employee": "Jimmy dean"
}
},
{
"id": "recGPicQa5yIo9dBY",
"createdTime": "2023-01-22T19:22:05.000Z",
"fields": {
"Employee": "Matt Aitken"
}
},
{
"id": "recElL0yiCgIEVcyc",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "Quinn Nguyen"
}
}
]
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 16:24:53 GMT",
"Content-Type",
"338",
"Connection",
"close",
"Set-Cookie",
"AWSALB=4+PtBWlCPjGrIo2V0YEi8J0ogkebmIOEMfx8TOaOhZvHsaXUZ1TQV+5DlPbCxYxrXoXbbP/F0iRXc3qLGC8LVtm5VIkxt0NDhBENoLsdbBAWF1bbmlOs2DM3N+k3; Expires=Sat, 25 Feb 2023 16:24:53 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=4+PtBWlCPjGrIo2V0YEi8J0ogkebmIOEMfx8TOaOhZvHsaXUZ1TQV+5DlPbCxYxrXoXbbP/F0iRXc3qLGC8LVtm5VIkxt0NDhBENoLsdbBAWF1bbmlOs2DM3N+k3; Expires=Sat, 25 Feb 2023 16:24:53 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brw4B3gkaAL97bpKd; path=/; expires=Sun, 18 Feb 2024 16:24:53 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"829"
],
"responseIsBinary": false
}
]
@@ -1,218 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "POST",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m/listRecords",
"body": {},
"status": 200,
"response": {
"records": [
{
"id": "rec3cPi3z4s6oe9SD",
"createdTime": "2023-01-22T23:51:21.000Z",
"fields": {
"Employee": "Jimmy dean",
"Phone": "7778",
"Employee type": "Employee",
"Manager": {
"id": "usrpWV6yqSVvzVO0j",
"email": "matt@trigger.dev",
"name": "Matt Aitken"
}
}
},
{
"id": "recElL0yiCgIEVcyc",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "Quinn Nguyen",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "attx14Pa1lP0DMgRw",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/5gbGs-cRWoOC46FxBWQZKw/ph_QI1srGvvZArxOz207bnKOs-xlIXF8ZqMlk5ssMr-jbiMuFfXOjmjadjOACGFRyQ9nE59Dpy7540UU_6bpgsQ_tMKtCFaaf2a4ieIPEEU/ptI5mq4oczxmmrz-RRWb3MSegywNfAwWf--9mL5IT34",
"filename": "headshot-pink-1.png",
"size": 215411,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/3bEGb1n_oJxadHpHMcDg_w/1Mga_f3JNzLtWq_an_E7I98CxejzOpiALmDJHRdI0XcBbVwIv-vzj96mY-XeAL0W32Q_WCQPu4TqWzisnlqLYg/7pJLZzaspSp1339lIgp1o1Nb1durOAoIx-IflDRI8gY",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/7Xr67It2dJ296uYyumST1g/HH8QTjlaP0frLwscoJy3vJLvOdKwz1zHL_ll8zMtfFkm1uFB9-nRkA09YeSojhemScYjpvIB7OoxJTh3lqU-jQ/8jtF2js5F47hndbxts2_ZIFZaxkuq3G0BxbomG1wRDA",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/O1xGv0NoeaGTVYYDxpZnuQ/IBXER_7M4O9QqAmv_9pF2evdf5_9YzeVmdzk3Rsi2gFaK6ueREni-Kaw6Xg8VORqFpHNtUQ7JrV_5Ya4zhSuXg/VAGl2IqW98-D0E1RgBretLYJCmNCDqledVmdTrUOEIU",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "Employee"
}
},
{
"id": "recFeH8y7qLNR6CxB",
"createdTime": "2023-01-22T23:15:09.000Z",
"fields": {
"Employee": "Employee 7",
"Phone": "342567",
"Employee type": "Contractor",
"Manager": {
"id": "usrpWV6yqSVvzVO0j",
"email": "matt@trigger.dev",
"name": "Matt Aitken"
}
}
},
{
"id": "recGPicQa5yIo9dBY",
"createdTime": "2023-01-22T19:22:05.000Z",
"fields": {
"Employee": "Matt Aitken",
"Phone": "12345678",
"Employee type": "Employee",
"Manager": {
"id": "usrpWV6yqSVvzVO0j",
"email": "matt@trigger.dev",
"name": "Matt Aitken"
}
}
},
{
"id": "recHcnB1MbBr9Rd2P",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "Faith Butterworth",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "att3ibwyOXULYL15O",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/xV5UysTMWXnI9p8E8KMTlA/Ov21BA--8-n8JC_sH7-sx_Iub_aXA1PGiVAohUAhE5SuEtqSMGhN39pRHI3tmu3LqEh8iDz8pTZ_TdWHVV8riCTBPEm8NvvD3o6BtJTRXcE/LJjYfS0Wh_KMcmkgL-82HOLXyhhDHnMsFvrqL1OCtXQ",
"filename": "headshot-purple-2 (1).png",
"size": 191272,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/L9WFjSk92HlOH9RDdrP7MA/7AgbUc3M9KuDz5plvUFL5dsRwt55PiqcnPvoDIawWfk0w_N4GDZPTPDiiqxFOsUMNOk4CB1RuBZFFLNEfu0bRA/RYcp3x_oGgLtvOi7CtUplGM_rmU-EdbBQ5zdcr7L-Yo",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/Zl-Thn_JCnnb_-j9CpJ0lg/9hIAzhles7CH7n0EgRzrg-_qVCz1G6oHXX8M7A70KVUBy3Ttnc1NwoSKLMj7JxmYkqc8hYCRU4qRA_S22sS1cw/BhQLDmDmMAUd4sUaxVfTbHnxPGJD9q0_NPB3l7rYz4o",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/4E18KjffN_36eSJ65hCEFg/1_ts6X0NwupOAEyHnehE_hy5ROdSOt1jODcXv5Cny3Wn4O5r3Ewl3vgsg3Lebkwv40iJo7tbtblZEdtZMecpJA/GBgtTGmld0ZH7_4FygTqipHkEpQVn4dt3CmGBnOo6Wc",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "Contractor"
}
},
{
"id": "recRo4MuSqRcb33pp",
"createdTime": "2023-01-23T00:48:36.000Z",
"fields": {
"Employee": "Employee 9",
"Phone": "12345678",
"Employee type": "Employee",
"Manager": {
"id": "usrpWV6yqSVvzVO0j",
"email": "matt@trigger.dev",
"name": "Matt Aitken"
}
}
},
{
"id": "recWhRejYoDn5CNsB",
"createdTime": "2023-01-23T07:46:46.000Z",
"fields": {}
},
{
"id": "recbKWDa9URtGWIGG",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "Harley Holbrook",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "attIMHgGEnN0YutyM",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/Fz00EH3JBLCN7V_swur5cg/p3tx8jWcy5175n6bvK9aCabwdIfMur6wDrly_X6A8cL6YnO5JBKK0YJW1EjrEzjCtkj0uJ0PAS4lbwD2hMsKlKUZjopUmDegHLnms_ucOxE/6HP7Qw3GHTGiAmHUM21jHC5fhLcyfTrlD9qrs35a9-I",
"filename": "headshot-yellow-2.png",
"size": 349926,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/Cyg5kaW38cKzs03TbM-X3g/8omtIQVimV1MrD9PPtj2SaAlOA3CxuCdqHWoVPxi6UELMV2w7EhFv9Ko3WexIF5bcQyd9-N4RLFGvd5__VgP6A/suCIwJkTLliZrHLwioXIUqnrkJ7gIOxtNrdQtkDrBjk",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/g3EV5PxrbBETRQ9Qzn5WYg/rloz8wROtoNA6Ab9HEykJEmHtnmqUzxnnksoNJU7Y1NjeoV6dQQQZxLTjQBYJukBQfil4EXI8b_ejtARnkANhw/RwNwembhBCNpNJPThTWE_Fae3KtNvBQf-nDboeTP06c",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676743200000/hFdCcDELa9Y1qNU8ynA-gA/rY9pKGsa3U-i95eAYUT9qPkXhakhXNpWaWBOKsKSSvmc0MFERzMvBTQ9X6hfBBOWdJNPm2ewSI5qaMk1OqdDYg/IVswNEnsz2QWGQtpfHLGHHaAZEWVam08gd7vSXPVMOI",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "On leave"
}
}
]
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 15:58:57 GMT",
"Content-Type",
"2247",
"Connection",
"close",
"Set-Cookie",
"AWSALB=eKX9sqNvujzmAJZfcbDUrm7NlI8Xe9niXH7mrVhWbrGQZxHi9a8M9cKLI067MCp0mv5UfHVCEeUvkQbnHW8lB/LQwpch1qdox/a0c+J5kcVIGXWLH8zOB6pv2t42; Expires=Sat, 25 Feb 2023 15:58:57 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=eKX9sqNvujzmAJZfcbDUrm7NlI8Xe9niXH7mrVhWbrGQZxHi9a8M9cKLI067MCp0mv5UfHVCEeUvkQbnHW8lB/LQwpch1qdox/a0c+J5kcVIGXWLH8zOB6pv2t42; Expires=Sat, 25 Feb 2023 15:58:57 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwJiIPgBOUtNPjri; path=/; expires=Sun, 18 Feb 2024 15:58:57 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"4968"
],
"responseIsBinary": false
}
]
@@ -1,83 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "PATCH",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m/recHcnB1MbBr9Rd2P",
"body": {
"fields": {
"Employee": "John Doe II"
}
},
"status": 200,
"response": {
"id": "recHcnB1MbBr9Rd2P",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "John Doe II",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "att3ibwyOXULYL15O",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/0Hy62Ommo3C1BR3r_TsIMw/xGdMUGBUycsvzqjCPHlIuKyvUCM_Y6InDa7Bz15pCaGtWXyue5BlHYak_kFJYmgVXbgvWAXkaigRk7xdcUHiZU66F33CrAUP36ihAFT3-eU/-_khPf6Rh8P9uLt3Oc55HupkyS000nORrpvZpY1bKwI",
"filename": "headshot-purple-2 (1).png",
"size": 191272,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/MlmaPKrIg1yOj_qipSwKhg/fVQ5W7QtoxoAszvbIHT2dksddzWQi2ETkCewMXRSY2NIiX6wD1LWuC6d4VICHwRCz_6sKW4vhwZ1vkScFYpcgQ/Iy8lz5HcTKpTrG8gBq4fQJRyPAdnfYrwn3u05_lovmc",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/BBIfL5Oqc8BAHkugmNUkXA/JygSzSF9lLJi1U1dP1xCpH1QTSJwxb2FRvJssEdxZubfzVIa9iofsOn5HKsIFLuPl2K3yYCvaxAD3ZsHa7WCig/Rpbg9vWTPa6-oxoPUO4gqkOBFHzadVBHEZhjJoIu6Y8",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/xlrKts_ACw09qLqsAW16EQ/qrDMlQpI1cVdPCe0uw6ZJw9FeZCcwenmFzZ317qbsO0q8ZY2DY5k-bpPFYBaS4KkqztczIOqdnCBIYiuJ3_wqA/4LU_0QW7hp8Rw828Z_ov3GNcZa86pywziLdQy364XXE",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "Contractor"
}
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 16:56:09 GMT",
"Content-Type",
"868",
"Connection",
"close",
"Set-Cookie",
"AWSALB=2CpHsb1CL3MMw3hBwb9rVw+mR1QJ7rNbVnCS1fkDNEEi3FM0b4jSEGQ0FhjkIkdkQfLhOMrCXK95XbgEImuhWJuv4FKNdOIk6hNaJawWjFq6kh/mOMlFi7HU8r8h; Expires=Sat, 25 Feb 2023 16:56:09 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=2CpHsb1CL3MMw3hBwb9rVw+mR1QJ7rNbVnCS1fkDNEEi3FM0b4jSEGQ0FhjkIkdkQfLhOMrCXK95XbgEImuhWJuv4FKNdOIk6hNaJawWjFq6kh/mOMlFi7HU8r8h; Expires=Sat, 25 Feb 2023 16:56:09 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwP6XoEdwHyGdxxZ; path=/; expires=Sun, 18 Feb 2024 16:56:09 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"1314"
],
"responseIsBinary": false
}
]
@@ -1,92 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "PATCH",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m",
"body": {
"records": [
{
"id": "recHcnB1MbBr9Rd2P",
"fields": {
"Employee": "John Doe"
}
}
]
},
"status": 200,
"response": {
"records": [
{
"id": "recHcnB1MbBr9Rd2P",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "John Doe",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "att3ibwyOXULYL15O",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/0Hy62Ommo3C1BR3r_TsIMw/xGdMUGBUycsvzqjCPHlIuKyvUCM_Y6InDa7Bz15pCaGtWXyue5BlHYak_kFJYmgVXbgvWAXkaigRk7xdcUHiZU66F33CrAUP36ihAFT3-eU/-_khPf6Rh8P9uLt3Oc55HupkyS000nORrpvZpY1bKwI",
"filename": "headshot-purple-2 (1).png",
"size": 191272,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/MlmaPKrIg1yOj_qipSwKhg/fVQ5W7QtoxoAszvbIHT2dksddzWQi2ETkCewMXRSY2NIiX6wD1LWuC6d4VICHwRCz_6sKW4vhwZ1vkScFYpcgQ/Iy8lz5HcTKpTrG8gBq4fQJRyPAdnfYrwn3u05_lovmc",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/BBIfL5Oqc8BAHkugmNUkXA/JygSzSF9lLJi1U1dP1xCpH1QTSJwxb2FRvJssEdxZubfzVIa9iofsOn5HKsIFLuPl2K3yYCvaxAD3ZsHa7WCig/Rpbg9vWTPa6-oxoPUO4gqkOBFHzadVBHEZhjJoIu6Y8",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/xlrKts_ACw09qLqsAW16EQ/qrDMlQpI1cVdPCe0uw6ZJw9FeZCcwenmFzZ317qbsO0q8ZY2DY5k-bpPFYBaS4KkqztczIOqdnCBIYiuJ3_wqA/4LU_0QW7hp8Rw828Z_ov3GNcZa86pywziLdQy364XXE",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "Contractor"
}
}
]
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 16:46:03 GMT",
"Content-Type",
"870",
"Connection",
"close",
"Set-Cookie",
"AWSALB=aRijGYsG1c7HW7/3PfA+iqX9yfDtsVgoPBVm4dkHcigHjt0gpNbzI/GN4nVRaRPorF1fOAE0jRrIREfxlnx9YcqQP097XI6IpF109sT5W5dRnY6rzb2gyGS93Vhn; Expires=Sat, 25 Feb 2023 16:46:03 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=aRijGYsG1c7HW7/3PfA+iqX9yfDtsVgoPBVm4dkHcigHjt0gpNbzI/GN4nVRaRPorF1fOAE0jRrIREfxlnx9YcqQP097XI6IpF109sT5W5dRnY6rzb2gyGS93Vhn; Expires=Sat, 25 Feb 2023 16:46:03 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwkAO755Iu5BkpXR; path=/; expires=Sun, 18 Feb 2024 16:46:03 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"1325"
],
"responseIsBinary": false
}
]
@@ -1,114 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "PATCH",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m",
"body": {
"performUpsert": {
"fieldsToMergeOn": [
"Employee"
]
},
"records": [
{
"fields": {
"Employee": "John Doe"
}
},
{
"fields": {
"Employee": "Jane Doe"
}
}
]
},
"status": 200,
"response": {
"records": [
{
"id": "recHcnB1MbBr9Rd2P",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "John Doe",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "att3ibwyOXULYL15O",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/0Hy62Ommo3C1BR3r_TsIMw/xGdMUGBUycsvzqjCPHlIuKyvUCM_Y6InDa7Bz15pCaGtWXyue5BlHYak_kFJYmgVXbgvWAXkaigRk7xdcUHiZU66F33CrAUP36ihAFT3-eU/-_khPf6Rh8P9uLt3Oc55HupkyS000nORrpvZpY1bKwI",
"filename": "headshot-purple-2 (1).png",
"size": 191272,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/MlmaPKrIg1yOj_qipSwKhg/fVQ5W7QtoxoAszvbIHT2dksddzWQi2ETkCewMXRSY2NIiX6wD1LWuC6d4VICHwRCz_6sKW4vhwZ1vkScFYpcgQ/Iy8lz5HcTKpTrG8gBq4fQJRyPAdnfYrwn3u05_lovmc",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/BBIfL5Oqc8BAHkugmNUkXA/JygSzSF9lLJi1U1dP1xCpH1QTSJwxb2FRvJssEdxZubfzVIa9iofsOn5HKsIFLuPl2K3yYCvaxAD3ZsHa7WCig/Rpbg9vWTPa6-oxoPUO4gqkOBFHzadVBHEZhjJoIu6Y8",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676750400000/xlrKts_ACw09qLqsAW16EQ/qrDMlQpI1cVdPCe0uw6ZJw9FeZCcwenmFzZ317qbsO0q8ZY2DY5k-bpPFYBaS4KkqztczIOqdnCBIYiuJ3_wqA/4LU_0QW7hp8Rw828Z_ov3GNcZa86pywziLdQy364XXE",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "Contractor"
}
},
{
"id": "recpyQHEcTiiwzAAe",
"createdTime": "2023-02-18T16:49:12.000Z",
"fields": {
"Employee": "Jane Doe"
}
}
],
"updatedRecords": [
"recHcnB1MbBr9Rd2P"
],
"createdRecords": [
"recpyQHEcTiiwzAAe"
]
},
"rawHeaders": [
"Date",
"Sat, 18 Feb 2023 16:49:12 GMT",
"Content-Type",
"931",
"Connection",
"close",
"Set-Cookie",
"AWSALB=/B2FI/4JzHLz69XGh0fnXEzIHT58xav2z9CRaJPk/mxxK+IPKjzX/Kd13DU/uJsnD5QcWRgFZjepxA7s8HoojMSUw3+Vkav3Db4mPcly8wQXp88r5BEUjDvFso9o; Expires=Sat, 25 Feb 2023 16:49:12 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=/B2FI/4JzHLz69XGh0fnXEzIHT58xav2z9CRaJPk/mxxK+IPKjzX/Kd13DU/uJsnD5QcWRgFZjepxA7s8HoojMSUw3+Vkav3Db4mPcly8wQXp88r5BEUjDvFso9o; Expires=Sat, 25 Feb 2023 16:49:12 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwsqrG8CnBxgniFg; path=/; expires=Sun, 18 Feb 2024 16:49:12 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"1504"
],
"responseIsBinary": false
}
]
@@ -1,78 +0,0 @@
[
{
"scope": "https://slack.com:443",
"method": "POST",
"path": "/api/chat.postMessage",
"body": {
"channel": "C00AAAAAAAA",
"text": "This channel doesn't exist, so message won't send"
},
"status": 200,
"response": [
"13270000045439f20ace64f1259fdc9ec3444e00b2e6817cef2beb4e3f1ab2011262c998a76bb93c"
],
"rawHeaders": [
"date",
"Sat, 18 Feb 2023 16:06:42 GMT",
"server",
"Apache",
"x-powered-by",
"HHVM/4.153.1",
"access-control-allow-origin",
"*",
"referrer-policy",
"no-referrer",
"x-slack-backend",
"r",
"x-slack-unique-id",
"Y_D3kqn7oMaK4u0tyzhR0AAAEDY",
"strict-transport-security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-headers",
"slack-route, x-slack-version-ts, x-b3-traceid, x-b3-spanid, x-b3-parentspanid, x-b3-sampled, x-b3-flags",
"access-control-expose-headers",
"x-slack-req-id, retry-after",
"x-oauth-scopes",
"channels:read,channels:join,channels:manage,chat:write,groups:write,im:write,mpim:write,chat:write.customize,reactions:write",
"x-accepted-oauth-scopes",
"chat:write",
"expires",
"Mon, 26 Jul 1997 05:00:00 GMT",
"cache-control",
"private, no-cache, no-store, must-revalidate",
"pragma",
"no-cache",
"x-xss-protection",
"0",
"x-content-type-options",
"nosniff",
"x-slack-req-id",
"ebbefac5397dbab5385db0aae08cf6b3",
"vary",
"Accept-Encoding",
"content-encoding",
"br",
"content-length",
"40",
"content-type",
"application/json; charset=utf-8",
"x-envoy-upstream-service-time",
"93",
"x-backend",
"main_normal main_canary_with_overflow main_control_with_overflow",
"x-server",
"slack-www-hhvm-main-iad-dihx",
"x-slack-shared-secret-outcome",
"no-match",
"via",
"envoy-www-iad-uqca, envoy-edge-lhr-ozbu",
"x-edge-backend",
"envoy-www",
"x-slack-edge-shared-secret-outcome",
"no-match",
"connection",
"close"
],
"responseIsBinary": false
}
]
@@ -1,78 +0,0 @@
[
{
"scope": "https://slack.com:443",
"method": "POST",
"path": "/api/chat.postMessage",
"body": {
"channel": "C04GWUTDC3W",
"text": "This the Trigger.dev integrations test"
},
"status": 200,
"response": [
"132a0300c4f7dfcd9f56ce9d9f9342c8d6f68b484575e2661a76992518653ed6029993da6eeb1ffccd5ee7345e3bb70b6a2dc047cc6a474c8790110b4b6112e38710141d5d7f7f7e5c14e36f28ac9610f8244dd23821e74d1688288302d2d790231ad355b5df82a0e0e8fa972e9eeeae73eef97ed686181b0ad73ce882605eae7aede863d1ef76db0bd36a6fa27fe9e317b9002e2360a92b8c47fc31049f8e6edce7e7ebcbcd1ba9a03e9b3101f2b01b4fd93d33e1da644bc8ff7161faf2553ea405e1dab9e6672888b8ed2456c3b4c796c43df1a8dab9fcc53ca1fa78c294ffe6b7c20bc170baaa060a937a4be63de7f627f531276273af355d3dd88e517b0185cce397a058db09ab71d2bca74b29d992ad9b657572babef0e99649c9b2cb3197da8159b25dbd5ab2f5d9ac64496a7192be18348e881e3192189d34d057f0f9d534a00667852a365b685402cac16b4132aa117b171387829075f67ae7f319"
],
"rawHeaders": [
"date",
"Sat, 18 Feb 2023 16:06:41 GMT",
"server",
"Apache",
"x-powered-by",
"HHVM/4.153.1",
"access-control-allow-origin",
"*",
"referrer-policy",
"no-referrer",
"x-slack-backend",
"r",
"x-slack-unique-id",
"Y_D3kaZTOTsosPP4CQqdxwAAAD8",
"strict-transport-security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-headers",
"slack-route, x-slack-version-ts, x-b3-traceid, x-b3-spanid, x-b3-parentspanid, x-b3-sampled, x-b3-flags",
"access-control-expose-headers",
"x-slack-req-id, retry-after",
"x-oauth-scopes",
"channels:read,channels:join,channels:manage,chat:write,groups:write,im:write,mpim:write,chat:write.customize,reactions:write",
"x-accepted-oauth-scopes",
"chat:write",
"expires",
"Mon, 26 Jul 1997 05:00:00 GMT",
"cache-control",
"private, no-cache, no-store, must-revalidate",
"pragma",
"no-cache",
"x-xss-protection",
"0",
"x-content-type-options",
"nosniff",
"x-slack-req-id",
"bd4f8b61920e9df75d67e4cfeb504ab9",
"vary",
"Accept-Encoding",
"content-encoding",
"br",
"content-length",
"351",
"content-type",
"application/json; charset=utf-8",
"x-envoy-upstream-service-time",
"141",
"x-backend",
"main_normal main_canary_with_overflow main_control_with_overflow",
"x-server",
"slack-www-hhvm-main-iad-mhht",
"x-slack-shared-secret-outcome",
"no-match",
"via",
"envoy-www-iad-qbeb, envoy-edge-lhr-vvct",
"x-edge-backend",
"envoy-www",
"x-slack-edge-shared-secret-outcome",
"no-match",
"connection",
"close"
],
"responseIsBinary": false
}
]
@@ -1,75 +0,0 @@
[
{
"scope": "https://slack.com:443",
"method": "GET",
"path": "/api/conversations.list?limit=1",
"body": "",
"status": 200,
"response": [
"13b70300c4c8b67c7d337bad87225e710b16c4026732712e9d6da4139c5a54d3ce1324f223350ae881931e68f7fe6f2e24241b5ae4fce77333b3308328b0bdc4c2a6b0c47fd8fe99218bb08d13c7b0eeaf3fed1350d47ec5b10d59b12bca7aac133d4690f51821096e8017ee6455da533537753e31a7cf1f8a4134bc504d55d54dddd5edb6948833517f6a3b0cb0cc0dea32ab8b76a2c2b0c8a4d6b369799577425dd5010f896e52233616b8cbf8b8df824e74d5d5cf1fc5e9f8fd719fd94f603a045e61471fcef3f123a9795cbe1f966919aeaa688a612b14de3162df8f279060601b5ea44a20d17d8337c7302e4f2e4d558826a6c8229a3e6ec7f23bfa639a72cc9ae6e29f85125e05bc3b2a819318db3338ce776ce35ed4d248740b126c7a503e5423e15e3c991b886c598e5622e0ce7dc37abc6fe8684101b30acd3947bb1c13d3a154d39724844e2171995571e95794c47e1c677542492aa2844b4dee39115d926741c0bb52eec747642206ab11f9b5d631d92d819adefc4a7429f12192908486c57ab7442a76f9301383deac46a939aa07554cf5b06d2cfe028d6b812d9122d694e12ac0b13c8f7d9c6302b6115dbca7c16b73fa70fa64dc9d450f6f85d8c36201"
],
"rawHeaders": [
"date",
"Sat, 18 Feb 2023 16:06:42 GMT",
"server",
"Apache",
"x-powered-by",
"HHVM/4.153.1",
"access-control-allow-origin",
"*",
"referrer-policy",
"no-referrer",
"x-slack-backend",
"r",
"x-slack-unique-id",
"Y_D3khlLQ9vqek922QY0uQAAECM",
"strict-transport-security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-headers",
"slack-route, x-slack-version-ts, x-b3-traceid, x-b3-spanid, x-b3-parentspanid, x-b3-sampled, x-b3-flags",
"access-control-expose-headers",
"x-slack-req-id, retry-after",
"x-oauth-scopes",
"channels:read,channels:join,channels:manage,chat:write,groups:write,im:write,mpim:write,chat:write.customize,reactions:write",
"x-accepted-oauth-scopes",
"channels:read,groups:read,mpim:read,im:read,read",
"expires",
"Mon, 26 Jul 1997 05:00:00 GMT",
"cache-control",
"private, no-cache, no-store, must-revalidate",
"pragma",
"no-cache",
"x-xss-protection",
"0",
"x-content-type-options",
"nosniff",
"x-slack-req-id",
"c9ac7f0c1a73910e91a87a6cd3925462",
"vary",
"Accept-Encoding",
"content-encoding",
"br",
"content-length",
"452",
"content-type",
"application/json; charset=utf-8",
"x-envoy-upstream-service-time",
"115",
"x-backend",
"main_normal main_canary_with_overflow main_control_with_overflow",
"x-server",
"slack-www-hhvm-main-iad-bmkm",
"x-slack-shared-secret-outcome",
"no-match",
"via",
"envoy-www-iad-vpph, envoy-edge-lhr-tspo",
"x-edge-backend",
"envoy-www",
"x-slack-edge-shared-secret-outcome",
"no-match",
"connection",
"close"
],
"responseIsBinary": false
}
]
@@ -1,56 +0,0 @@
[
{
"scope": "https://api.sendgrid.com:443",
"method": "POST",
"path": "/v3/mail/send",
"body": {
"from": {
"email": "matt@email.trigger.dev"
},
"subject": "Hello, World!",
"content": [
{
"type": "text/plain",
"value": "Email body here"
}
],
"personalizations": [
{
"to": [
{
"email": "matt@trigger.dev"
}
],
"subject": "Hello, World!"
}
]
},
"status": 202,
"response": "",
"rawHeaders": [
"Server",
"nginx",
"Date",
"Sun, 19 Feb 2023 19:16:30 GMT",
"Content-Length",
"0",
"Connection",
"close",
"X-Message-Id",
"D9FX-x6ETvKlMlzEi0Qlpg",
"Access-Control-Allow-Origin",
"https://sendgrid.api-docs.io",
"Access-Control-Allow-Methods",
"POST",
"Access-Control-Allow-Headers",
"Authorization, Content-Type, On-behalf-of, x-sg-elas-acl",
"Access-Control-Max-Age",
"600",
"X-No-CORS-Reason",
"https://sendgrid.com/docs/Classroom/Basics/API/cors.html",
"Strict-Transport-Security",
"max-age=600; includeSubDomains"
],
"responseIsBinary": false
}
]
@@ -1,59 +0,0 @@
[
{
"scope": "https://api.sendgrid.com:443",
"method": "PUT",
"path": "/v3/marketing/contacts",
"body": {
"contacts": [
{
"email": "matt+1@mattaitken.com",
"first_name": "Matt",
"last_name": "Aitken"
}
]
},
"status": 202,
"response": {
"job_id": "1befbf98-bfdc-4565-ba5a-c7e8b91f2678"
},
"rawHeaders": [
"Server",
"nginx",
"Date",
"Mon, 20 Feb 2023 15:21:43 GMT",
"Content-Type",
"application/json",
"Content-Length",
"50",
"Connection",
"close",
"x-amzn-requestid",
"6fcf9591-e37d-4fb9-b175-59d434ba45c6",
"access-control-allow-origin",
"*",
"access-control-allow-headers",
"AUTHORIZATION, Content-Type, On-behalf-of, x-sg-elas-acl, X-Recaptcha, X-Request-Source",
"x-amz-apigw-id",
"ApNxLHMAvHcFjkA=",
"access-control-allow-methods",
"PUT,OPTIONS,DELETE,OPTIONS",
"access-control-expose-headers",
"Link, Location",
"x-amzn-trace-id",
"Root=1-63f39007-0392a34047f268f366e7d4ce;Sampled=0",
"x-envoy-upstream-service-time",
"231",
"referrer-policy",
"strict-origin-when-cross-origin",
"x-content-type-options",
"nosniff",
"x-ratelimit-limit",
"200",
"x-ratelimit-remaining",
"197",
"x-ratelimit-reset",
"17"
],
"responseIsBinary": false
}
]
@@ -1,79 +0,0 @@
[
{
"scope": "https://api.airtable.com:443",
"method": "GET",
"path": "/v0/appBlf3KsalIQeMUo/tblvXn2TOeVPC9c6m/recHcnB1MbBr9Rd2P",
"body": "",
"status": 200,
"response": {
"id": "recHcnB1MbBr9Rd2P",
"createdTime": "2023-01-03T12:05:53.000Z",
"fields": {
"Employee": "John Doe II",
"Phone": "(123) 456-7890",
"Headshot": [
{
"id": "att3ibwyOXULYL15O",
"width": 950,
"height": 700,
"url": "https://v5.airtableusercontent.com/v1/15/15/1676995200000/D_htRl39BrNhGxsiGlNpcQ/tYWJWmeq3WBDaQCZIeDn-IAKEczimZduMBB30Xq48IYOla6DEq2h59YjRRAQZr4xH-YCc7n3cf4GAXlxPXYAYGfo2e0K230BdUzQXk43vrc/Y61oM8Pgbyu_5-jhuGhea9r2mpjjm5lxIGOJPP5BaO4",
"filename": "headshot-purple-2 (1).png",
"size": 191272,
"type": "image/png",
"thumbnails": {
"small": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676995200000/1Ev7NzTXpXw2FnaLtcYrzg/NZwW2F5QNr7qa_SXXlDx9vhjD_oxlwvSCboJj2T_S1WC0J0WWYYOWr6pfn_s_Z3aOU34l-v7ScjvQdL9vDtczQ/U0GygRlbr35RvoD2S-yyeJ3IWrbOqEjFe1D_-8KKpNY",
"width": 49,
"height": 36
},
"large": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676995200000/lgoKQYxOC2eUe51PTO-_yg/dKv1Cx9ws40PNDnn2Y8bKlv4fbCfyGDshlFno1NOrEkceHJW-cCWG5E97cBs4B389t0Rf8SK3dMt8RkUOyueCg/3WxWv9_VvEua1zls82Z4Dca3yjWD9Cp2e6ldqrhzTKg",
"width": 695,
"height": 512
},
"full": {
"url": "https://v5.airtableusercontent.com/v1/15/15/1676995200000/Rihc4R_4ndQBrAHA49_j7Q/3V3Js1Xsx4AxXmxVkurk09ZpYY0kmOJHJlhDqybO5Zws1tP1oZZC4mCaRRnMLpx3XLu41c5aALWuo7Jl7UC2yQ/1Kej1MQjyAGYqcSVqo4_1GHLMOoF9puGps0NxQCCHpQ",
"width": 3000,
"height": 3000
}
}
}
],
"Employee type": "Contractor"
}
},
"rawHeaders": [
"Date",
"Tue, 21 Feb 2023 12:47:49 GMT",
"Content-Type",
"867",
"Connection",
"close",
"Set-Cookie",
"AWSALB=P04kqBtI/0ytyUg9Fjvlqdj/79QEnNQZOJrk8expPLgAkwq3exJsTzPeYwbkOAkiuGDomuXqutUq6flBHmrEFz1du9r03QrsztyUe1mYaFVAoAPR4BacSk6CNE/8; Expires=Tue, 28 Feb 2023 12:47:49 GMT; Path=/",
"Set-Cookie",
"AWSALBCORS=P04kqBtI/0ytyUg9Fjvlqdj/79QEnNQZOJrk8expPLgAkwq3exJsTzPeYwbkOAkiuGDomuXqutUq6flBHmrEFz1du9r03QrsztyUe1mYaFVAoAPR4BacSk6CNE/8; Expires=Tue, 28 Feb 2023 12:47:49 GMT; Path=/; SameSite=None; Secure",
"Server",
"Tengine",
"Set-Cookie",
"brw=brwJ69m62Pda820BR; path=/; expires=Wed, 21 Feb 2024 12:47:49 GMT; domain=.airtable.com; samesite=none; secure",
"Strict-Transport-Security",
"max-age=31536000; includeSubDomains; preload",
"access-control-allow-origin",
"*",
"access-control-allow-methods",
"DELETE,GET,OPTIONS,PATCH,POST,PUT",
"access-control-allow-headers",
"authorization,content-length,content-type,user-agent,x-airtable-application-id,x-airtable-user-agent,x-api-version,x-requested-with",
"X-Frame-Options",
"DENY",
"X-Content-Type-Options",
"nosniff",
"Vary",
"Accept-Encoding",
"airtable-uncompressed-content-length",
"1314"
],
"responseIsBinary": false
}
]
@@ -1,106 +0,0 @@
import { EndpointSpec } from "core/endpoint/types";
import { JSONSchema } from "core/schemas/types";
import { expect, test } from "vitest";
import { createInputSchema } from "./combineSchemas";
test("create input schema when only a body schema", async () => {
try {
const schema: JSONSchema = {
type: "object",
required: ["channel"],
properties: {
as_user: {
type: "string",
description:
"Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below.",
},
attachments: {
type: "string",
description:
"A JSON-based array of structured attachments, presented as a URL-encoded string.",
},
channel: {
type: "string",
description:
"Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See [below](#channels) for more details.",
},
},
};
const inputSchema = createInputSchema({ body: schema });
expect(inputSchema).toEqual(schema);
} catch (e: any) {
console.error(JSON.stringify(e.errors, null, 2));
expect(e).toEqual(null);
}
});
test("combine input body and parameters into a schema", async () => {
try {
const bodySchema: JSONSchema = {
type: "object",
required: ["channel"],
properties: {
as_user: {
type: "string",
description:
"Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below.",
},
attachments: {
type: "string",
description:
"A JSON-based array of structured attachments, presented as a URL-encoded string.",
},
channel: {
type: "string",
description:
"Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See [below](#channels) for more details.",
},
},
};
const parameters: EndpointSpec["parameters"] = [
{
name: "limit",
description: "The maximum number of items to return.",
in: "path",
required: true,
schema: {
type: "integer",
description: "The maximum number of items to return.",
},
},
];
const inputSchema = createInputSchema({ body: bodySchema, parameters });
expect(inputSchema).toMatchInlineSnapshot(`
{
"properties": {
"as_user": {
"description": "Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below.",
"type": "string",
},
"attachments": {
"description": "A JSON-based array of structured attachments, presented as a URL-encoded string.",
"type": "string",
},
"channel": {
"description": "Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See [below](#channels) for more details.",
"type": "string",
},
"limit": {
"description": "The maximum number of items to return.",
"type": "integer",
},
},
"required": [
"channel",
"limit",
],
"type": "object",
}
`);
} catch (e: any) {
console.error(JSON.stringify(e.errors, null, 2));
expect(e).toEqual(null);
}
});
@@ -1,79 +0,0 @@
import { Action } from "core/action/types";
import { JSONSchema } from "core/schemas/types";
export function generateInputOutputSchemas(
spec: Action["spec"],
name: string
): {
input: JSONSchema | undefined;
output: JSONSchema | undefined;
} {
const inputSchema = createInputSchema(spec.input);
if (inputSchema) inputSchema.title = `${name}Input`;
const outputSchema = createSuccessfulOutputSchema(spec.output);
if (outputSchema) outputSchema.title = `${name}Output`;
return {
input: inputSchema,
output: outputSchema,
};
}
export function createInputSchema(
spec: Action["spec"]["input"]
): JSONSchema | undefined {
let inputSchema: JSONSchema | undefined = spec.body;
if (spec.parameters && spec.parameters.length > 0) {
if (!inputSchema) {
inputSchema = {
type: "object",
properties: {},
};
}
inputSchema = {
type: "object",
properties: {
...inputSchema.properties,
...Object.fromEntries(
spec.parameters.map((p) => [
p.name,
{ ...p.schema, description: p.description },
])
),
},
required: [
...(inputSchema.required ?? []),
...spec.parameters.filter((p) => p.required).map((p) => p.name),
],
};
}
return inputSchema;
}
export function createSuccessfulOutputSchema(
spec: Action["spec"]["output"]
): JSONSchema | undefined {
if (spec === undefined) return undefined;
//combine all "success" output schemas into a union
const outputSuccessSchemas = Object.values(spec.responses).flatMap((s) =>
s.flatMap((r) => (r.success ? r.schema : []))
);
return outputSuccessSchemas.length === 1
? outputSuccessSchemas[0]
: createDiscriminatedUnionSchema(`Output`, outputSuccessSchemas);
}
function createDiscriminatedUnionSchema(
name: string,
schemas: JSONSchema[]
): JSONSchema {
return {
$id: name,
oneOf: schemas,
};
}
@@ -1,119 +0,0 @@
import { expect, test } from "vitest";
import { getTypesFromSchema as generateTypesFromSchema } from "./generateTypes";
test("simple schema type generation", async () => {
try {
const schema = {
type: "object",
properties: {
channel: {
type: "string",
description: "ID of conversation to join",
},
},
required: ["channel"],
};
const data = await generateTypesFromSchema(schema, "Input");
expect(data).toMatchInlineSnapshot(`
"export interface Input {
/**
* ID of conversation to join
*/
channel: string
}
"
`);
} catch (e: any) {
console.error(JSON.stringify(e.errors, null, 2));
expect(e).toEqual(null);
}
});
test("advanced schema type generation", async () => {
try {
const schema = {
type: "object",
properties: {
channel: {
type: "string",
},
message: {
type: "object",
properties: {
attachments: {
type: "array",
items: {
type: "object",
properties: {
fallback: {
type: "string",
},
id: {
type: "number",
},
text: {
type: "string",
},
},
required: ["fallback", "id", "text"],
},
},
bot_id: {
type: "string",
},
subtype: {
type: "string",
},
text: {
type: "string",
},
ts: {
type: "string",
},
type: {
type: "string",
},
user: {
type: "string",
},
},
required: ["bot_id", "text", "ts", "type"],
},
ok: {
type: "boolean",
},
ts: {
type: "string",
},
},
required: ["channel", "message", "ok", "ts"],
};
const data = await generateTypesFromSchema(schema, "Input");
expect(data).toMatchInlineSnapshot(`
"export interface Input {
channel: string
message: {
attachments?: {
fallback: string
id: number
text: string
}[]
bot_id: string
subtype?: string
text: string
ts: string
type: string
user?: string
}
ok: boolean
ts: string
}
"
`);
} catch (e: any) {
console.error(JSON.stringify(e.errors, null, 2));
expect(e).toEqual(null);
}
});
@@ -1,10 +0,0 @@
import { compile } from "json-schema-to-typescript";
export async function getTypesFromSchema(schema: any, name: string) {
const ts = await compile(schema, name, {
additionalProperties: false,
bannerComment: "",
format: false,
});
return ts;
}
-62
View File
@@ -1,62 +0,0 @@
import { handleAction } from "api/v2/action";
import { handleActionDisplay } from "api/v2/action/display";
import { handleServices } from "api/v2/services";
import dotenv from "dotenv";
import express, { Express, NextFunction, Request, Response } from "express";
import morgan from "morgan";
dotenv.config();
const app: Express = express();
const port = process.env.PORT ?? 3006;
app.use(express.json());
app.use(morgan("combined"));
const checkAuthentication = function (
req: Request,
res: Response,
next: NextFunction
) {
//if the path is /healthcheck, skip authentication
if (req.path === "/healthcheck") {
next();
return;
}
const authHeader = req.headers.authorization;
if (!authHeader) {
res.status(401).send("Unauthorized");
return;
}
const auth = authHeader.split(" ");
if (auth.length !== 2 || auth[0] !== "Bearer") {
res.status(401).send("Unauthorized");
return;
}
const token = auth[1];
if (token !== process.env.API_TOKEN) {
res.status(401).send("Unauthorized");
return;
}
next();
};
app.use(checkAuthentication);
app.get("/", (req: Request, res: Response) => {
res.send("Trigger.dev integrations service");
});
app.get("/healthcheck", (req: Request, res: Response) => {
res.send("OK");
});
app.get("/api/v2/services", handleServices);
app.post("/api/v2/:service/action/:action/display", handleActionDisplay);
app.post("/api/v2/:service/action/:action", handleAction);
app.listen(port, () => {
console.log(`⚡️[server]: Server is running at http://localhost:${port}`);
});
@@ -1,5 +0,0 @@
import { makeSimpleActions } from "core/action/makeAction";
import endpoints from "../endpoints/endpoints";
const actions = makeSimpleActions(endpoints);
export default actions;
@@ -1,24 +0,0 @@
import { IntegrationAuthentication } from "core/authentication/types";
export const authentication: IntegrationAuthentication = {
oauth: {
type: "oauth2",
placement: {
in: "header",
type: "bearer",
key: "Authorization",
},
authorizationUrl: "https://airtable.com/oauth2/v1/authorize",
tokenUrl: "https://airtable.com/oauth2/v1/token",
flow: "accessCode",
scopes: {
"data.records:read": "data.records:read",
"data.records:write": "data.records:write",
"data.recordComments:read": "data.recordComments:read",
"data.recordComments:write": "data.recordComments:write",
"schema.bases:read": "schema.bases:read",
"schema.bases:write": "schema.bases:write",
"webhook:manage": "webhook:manage",
},
},
};
@@ -1,532 +0,0 @@
import { EndpointSpecParameter } from "core/endpoint/types";
import {
makeArraySchema,
makeBooleanSchema,
makeNumberSchema,
makeObjectSchema,
makeOneOf,
makeStringSchema,
} from "core/schemas/makeSchema";
import { JSONSchema } from "core/schemas/types";
export const CollaboratorSchema = makeObjectSchema("A Collaborator", {
requiredProperties: {
id: makeStringSchema("Collaborator ID"),
email: makeStringSchema("Collaborator Email"),
name: makeStringSchema("Collaborator Name"),
},
additionalProperties: true,
});
export const ThumbnailSchema = makeObjectSchema("A Thumbnail", {
requiredProperties: {
url: makeStringSchema("Thumbnail URL"),
width: makeNumberSchema("Thumbnail Width"),
height: makeNumberSchema("Thumbnail Height"),
},
additionalProperties: true,
});
export const AttachmentSchema = makeObjectSchema("An Attachment", {
requiredProperties: {
id: makeStringSchema("Attachment ID"),
url: makeStringSchema("Attachment URL"),
filename: makeStringSchema("Attachment Filename"),
size: makeNumberSchema("Attachment Size"),
type: makeStringSchema("Attachment Type"),
},
optionalProperties: {
height: makeNumberSchema("Attachment Height"),
width: makeNumberSchema("Attachment Width"),
thumbnails: makeObjectSchema("Thumbnails", {
requiredProperties: {
small: ThumbnailSchema,
large: ThumbnailSchema,
full: ThumbnailSchema,
},
additionalProperties: true,
}),
},
additionalProperties: true,
});
export const FieldSchema = makeOneOf("FieldValue", [
makeStringSchema("StringValue"),
makeNumberSchema("NumberValue"),
makeBooleanSchema("BooleanValue"),
CollaboratorSchema,
makeArraySchema("Collaborators", CollaboratorSchema),
makeArraySchema("StringValues", makeStringSchema("StringValue")),
makeArraySchema("Attachments", AttachmentSchema),
]);
export const BaseIdParam: EndpointSpecParameter = {
name: "baseId",
in: "path",
description: "The ID of the base",
schema: {
type: "string",
},
required: true,
};
export const TableIdOrNameParam: EndpointSpecParameter = {
name: "tableIdOrName",
in: "path",
description: "The name or id of the table",
schema: {
type: "string",
},
required: true,
};
export const RecordIdParam: EndpointSpecParameter = {
name: "recordId",
in: "path",
description: "The ID of the record",
schema: {
type: "string",
},
required: true,
};
export const TimeZoneSchema: JSONSchema = {
title: "Timezone",
description:
"The time zone that should be used to format dates when using string as the cellFormat. This parameter is required when using string as the cellFormat",
type: "string",
enum: [
"utc",
"client",
"Africa/Abidjan",
"Africa/Accra",
"Africa/Addis_Ababa",
"Africa/Algiers",
"Africa/Asmara",
"Africa/Bamako",
"Africa/Bangui",
"Africa/Banjul",
"Africa/Bissau",
"Africa/Blantyre",
"Africa/Brazzaville",
"Africa/Bujumbura",
"Africa/Cairo",
"Africa/Casablanca",
"Africa/Ceuta",
"Africa/Conakry",
"Africa/Dakar",
"Africa/Dar_es_Salaam",
"Africa/Djibouti",
"Africa/Douala",
"Africa/El_Aaiun",
"Africa/Freetown",
"Africa/Gaborone",
"Africa/Harare",
"Africa/Johannesburg",
"Africa/Juba",
"Africa/Kampala",
"Africa/Khartoum",
"Africa/Kigali",
"Africa/Kinshasa",
"Africa/Lagos",
"Africa/Libreville",
"Africa/Lome",
"Africa/Luanda",
"Africa/Lubumbashi",
"Africa/Lusaka",
"Africa/Malabo",
"Africa/Maputo",
"Africa/Maseru",
"Africa/Mbabane",
"Africa/Mogadishu",
"Africa/Monrovia",
"Africa/Nairobi",
"Africa/Ndjamena",
"Africa/Niamey",
"Africa/Nouakchott",
"Africa/Ouagadougou",
"Africa/Porto-Novo",
"Africa/Sao_Tome",
"Africa/Tripoli",
"Africa/Tunis",
"Africa/Windhoek",
"America/Adak",
"America/Anchorage",
"America/Anguilla",
"America/Antigua",
"America/Araguaina",
"America/Argentina/Buenos_Aires",
"America/Argentina/Catamarca",
"America/Argentina/Cordoba",
"America/Argentina/Jujuy",
"America/Argentina/La_Rioja",
"America/Argentina/Mendoza",
"America/Argentina/Rio_Gallegos",
"America/Argentina/Salta",
"America/Argentina/San_Juan",
"America/Argentina/San_Luis",
"America/Argentina/Tucuman",
"America/Argentina/Ushuaia",
"America/Aruba",
"America/Asuncion",
"America/Atikokan",
"America/Bahia",
"America/Bahia_Banderas",
"America/Barbados",
"America/Belem",
"America/Belize",
"America/Blanc-Sablon",
"America/Boa_Vista",
"America/Bogota",
"America/Boise",
"America/Cambridge_Bay",
"America/Campo_Grande",
"America/Cancun",
"America/Caracas",
"America/Cayenne",
"America/Cayman",
"America/Chicago",
"America/Chihuahua",
"America/Costa_Rica",
"America/Creston",
"America/Cuiaba",
"America/Curacao",
"America/Danmarkshavn",
"America/Dawson",
"America/Dawson_Creek",
"America/Denver",
"America/Detroit",
"America/Dominica",
"America/Edmonton",
"America/Eirunepe",
"America/El_Salvador",
"America/Fort_Nelson",
"America/Fortaleza",
"America/Glace_Bay",
"America/Godthab",
"America/Goose_Bay",
"America/Grand_Turk",
"America/Grenada",
"America/Guadeloupe",
"America/Guatemala",
"America/Guayaquil",
"America/Guyana",
"America/Halifax",
"America/Havana",
"America/Hermosillo",
"America/Indiana/Indianapolis",
"America/Indiana/Knox",
"America/Indiana/Marengo",
"America/Indiana/Petersburg",
"America/Indiana/Tell_City",
"America/Indiana/Vevay",
"America/Indiana/Vincennes",
"America/Indiana/Winamac",
"America/Inuvik",
"America/Iqaluit",
"America/Jamaica",
"America/Juneau",
"America/Kentucky/Louisville",
"America/Kentucky/Monticello",
"America/Kralendijk",
"America/La_Paz",
"America/Lima",
"America/Los_Angeles",
"America/Lower_Princes",
"America/Maceio",
"America/Managua",
"America/Manaus",
"America/Marigot",
"America/Martinique",
"America/Matamoros",
"America/Mazatlan",
"America/Menominee",
"America/Merida",
"America/Metlakatla",
"America/Mexico_City",
"America/Miquelon",
"America/Moncton",
"America/Monterrey",
"America/Montevideo",
"America/Montserrat",
"America/Nassau",
"America/New_York",
"America/Nipigon",
"America/Nome",
"America/Noronha",
"America/North_Dakota/Beulah",
"America/North_Dakota/Center",
"America/North_Dakota/New_Salem",
"America/Nuuk",
"America/Ojinaga",
"America/Panama",
"America/Pangnirtung",
"America/Paramaribo",
"America/Phoenix",
"America/Port-au-Prince",
"America/Port_of_Spain",
"America/Porto_Velho",
"America/Puerto_Rico",
"America/Punta_Arenas",
"America/Rainy_River",
"America/Rankin_Inlet",
"America/Recife",
"America/Regina",
"America/Resolute",
"America/Rio_Branco",
"America/Santarem",
"America/Santiago",
"America/Santo_Domingo",
"America/Sao_Paulo",
"America/Scoresbysund",
"America/Sitka",
"America/St_Barthelemy",
"America/St_Johns",
"America/St_Kitts",
"America/St_Lucia",
"America/St_Thomas",
"America/St_Vincent",
"America/Swift_Current",
"America/Tegucigalpa",
"America/Thule",
"America/Thunder_Bay",
"America/Tijuana",
"America/Toronto",
"America/Tortola",
"America/Vancouver",
"America/Whitehorse",
"America/Winnipeg",
"America/Yakutat",
"America/Yellowknife",
"Antarctica/Casey",
"Antarctica/Davis",
"Antarctica/DumontDUrville",
"Antarctica/Macquarie",
"Antarctica/Mawson",
"Antarctica/McMurdo",
"Antarctica/Palmer",
"Antarctica/Rothera",
"Antarctica/Syowa",
"Antarctica/Troll",
"Antarctica/Vostok",
"Arctic/Longyearbyen",
"Asia/Aden",
"Asia/Almaty",
"Asia/Amman",
"Asia/Anadyr",
"Asia/Aqtau",
"Asia/Aqtobe",
"Asia/Ashgabat",
"Asia/Atyrau",
"Asia/Baghdad",
"Asia/Bahrain",
"Asia/Baku",
"Asia/Bangkok",
"Asia/Barnaul",
"Asia/Beirut",
"Asia/Bishkek",
"Asia/Brunei",
"Asia/Chita",
"Asia/Choibalsan",
"Asia/Colombo",
"Asia/Damascus",
"Asia/Dhaka",
"Asia/Dili",
"Asia/Dubai",
"Asia/Dushanbe",
"Asia/Famagusta",
"Asia/Gaza",
"Asia/Hebron",
"Asia/Ho_Chi_Minh",
"Asia/Hong_Kong",
"Asia/Hovd",
"Asia/Irkutsk",
"Asia/Istanbul",
"Asia/Jakarta",
"Asia/Jayapura",
"Asia/Jerusalem",
"Asia/Kabul",
"Asia/Kamchatka",
"Asia/Karachi",
"Asia/Kathmandu",
"Asia/Khandyga",
"Asia/Kolkata",
"Asia/Krasnoyarsk",
"Asia/Kuala_Lumpur",
"Asia/Kuching",
"Asia/Kuwait",
"Asia/Macau",
"Asia/Magadan",
"Asia/Makassar",
"Asia/Manila",
"Asia/Muscat",
"Asia/Nicosia",
"Asia/Novokuznetsk",
"Asia/Novosibirsk",
"Asia/Omsk",
"Asia/Oral",
"Asia/Phnom_Penh",
"Asia/Pontianak",
"Asia/Pyongyang",
"Asia/Qatar",
"Asia/Qostanay",
"Asia/Qyzylorda",
"Asia/Rangoon",
"Asia/Riyadh",
"Asia/Sakhalin",
"Asia/Samarkand",
"Asia/Seoul",
"Asia/Shanghai",
"Asia/Singapore",
"Asia/Srednekolymsk",
"Asia/Taipei",
"Asia/Tashkent",
"Asia/Tbilisi",
"Asia/Tehran",
"Asia/Thimphu",
"Asia/Tokyo",
"Asia/Tomsk",
"Asia/Ulaanbaatar",
"Asia/Urumqi",
"Asia/Ust-Nera",
"Asia/Vientiane",
"Asia/Vladivostok",
"Asia/Yakutsk",
"Asia/Yangon",
"Asia/Yekaterinburg",
"Asia/Yerevan",
"Atlantic/Azores",
"Atlantic/Bermuda",
"Atlantic/Canary",
"Atlantic/Cape_Verde",
"Atlantic/Faroe",
"Atlantic/Madeira",
"Atlantic/Reykjavik",
"Atlantic/South_Georgia",
"Atlantic/St_Helena",
"Atlantic/Stanley",
"Australia/Adelaide",
"Australia/Brisbane",
"Australia/Broken_Hill",
"Australia/Currie",
"Australia/Darwin",
"Australia/Eucla",
"Australia/Hobart",
"Australia/Lindeman",
"Australia/Lord_Howe",
"Australia/Melbourne",
"Australia/Perth",
"Australia/Sydney",
"Europe/Amsterdam",
"Europe/Andorra",
"Europe/Astrakhan",
"Europe/Athens",
"Europe/Belgrade",
"Europe/Berlin",
"Europe/Bratislava",
"Europe/Brussels",
"Europe/Bucharest",
"Europe/Budapest",
"Europe/Busingen",
"Europe/Chisinau",
"Europe/Copenhagen",
"Europe/Dublin",
"Europe/Gibraltar",
"Europe/Guernsey",
"Europe/Helsinki",
"Europe/Isle_of_Man",
"Europe/Istanbul",
"Europe/Jersey",
"Europe/Kaliningrad",
"Europe/Kiev",
"Europe/Kirov",
"Europe/Lisbon",
"Europe/Ljubljana",
"Europe/London",
"Europe/Luxembourg",
"Europe/Madrid",
"Europe/Malta",
"Europe/Mariehamn",
"Europe/Minsk",
"Europe/Monaco",
"Europe/Moscow",
"Europe/Nicosia",
"Europe/Oslo",
"Europe/Paris",
"Europe/Podgorica",
"Europe/Prague",
"Europe/Riga",
"Europe/Rome",
"Europe/Samara",
"Europe/San_Marino",
"Europe/Sarajevo",
"Europe/Saratov",
"Europe/Simferopol",
"Europe/Skopje",
"Europe/Sofia",
"Europe/Stockholm",
"Europe/Tallinn",
"Europe/Tirane",
"Europe/Ulyanovsk",
"Europe/Uzhgorod",
"Europe/Vaduz",
"Europe/Vatican",
"Europe/Vienna",
"Europe/Vilnius",
"Europe/Volgograd",
"Europe/Warsaw",
"Europe/Zagreb",
"Europe/Zaporozhye",
"Europe/Zurich",
"Indian/Antananarivo",
"Indian/Chagos",
"Indian/Christmas",
"Indian/Cocos",
"Indian/Comoro",
"Indian/Kerguelen",
"Indian/Mahe",
"Indian/Maldives",
"Indian/Mauritius",
"Indian/Mayotte",
"Indian/Reunion",
"Pacific/Apia",
"Pacific/Auckland",
"Pacific/Bougainville",
"Pacific/Chatham",
"Pacific/Chuuk",
"Pacific/Easter",
"Pacific/Efate",
"Pacific/Enderbury",
"Pacific/Fakaofo",
"Pacific/Fiji",
"Pacific/Funafuti",
"Pacific/Galapagos",
"Pacific/Gambier",
"Pacific/Guadalcanal",
"Pacific/Guam",
"Pacific/Honolulu",
"Pacific/Kanton",
"Pacific/Kiritimati",
"Pacific/Kosrae",
"Pacific/Kwajalein",
"Pacific/Majuro",
"Pacific/Marquesas",
"Pacific/Midway",
"Pacific/Nauru",
"Pacific/Niue",
"Pacific/Norfolk",
"Pacific/Noumea",
"Pacific/Pago_Pago",
"Pacific/Palau",
"Pacific/Pitcairn",
"Pacific/Pohnpei",
"Pacific/Port_Moresby",
"Pacific/Rarotonga",
"Pacific/Saipan",
"Pacific/Tahiti",
"Pacific/Tarawa",
"Pacific/Tongatapu",
"Pacific/Wake",
"Pacific/Wallis",
],
};
@@ -1,8 +0,0 @@
import { makeEndpoints } from "core/endpoint/endpoint";
import { authentication } from "../authentication";
import * as specs from "./specs";
const baseUrl = "https://api.airtable.com/v0";
const endpoints = makeEndpoints(baseUrl, authentication, specs);
export default endpoints;
@@ -1,606 +0,0 @@
import { EndpointSpec, EndpointSpecResponse } from "core/endpoint/types";
import {
makeAnyOf,
makeArraySchema,
makeBooleanSchema,
makeNumberSchema,
makeObjectSchema,
makeStringSchema,
} from "core/schemas/makeSchema";
import {
BaseIdParam,
FieldSchema,
RecordIdParam,
TableIdOrNameParam,
TimeZoneSchema,
} from "../common/schemas";
const errorResponse: EndpointSpecResponse = {
success: false,
name: "Error",
description: "Error response",
schema: {
$schema: "http://json-schema.org/draft-07/schema#",
type: "object",
oneOf: [
{
type: "object",
properties: {
error: {
type: "string",
},
},
required: ["error"],
},
{
type: "object",
properties: {
error: {
type: "object",
properties: {
type: {
type: "string",
},
},
required: ["type"],
},
},
required: ["error"],
},
],
},
};
export const listRecords: EndpointSpec = {
path: "/{baseId}/{tableIdOrName}/listRecords",
method: "POST",
metadata: {
name: "listRecords",
description: `List records in a table. Note that table names and table ids can be used interchangeably. We recommend using table IDs so you don't need to modify your API request when your table name changes.\n
The server returns one page of records at a time. Each page will contain pageSize records, which is 100 by default. If there are more records, the response will contain an offset. To fetch the next page of records, include offset in the next request's parameters. Pagination will stop when you've reached the end of your table. If the maxRecords parameter is passed, pagination will stop once you've reached this maximum.\n
Returned records do not include any fields with "empty" values, e.g. "", [], or false.`,
displayProperties: {
title: "List records from table ${parameters.tableIdOrName}",
},
externalDocs: {
description: "API method documentation",
url: "https://airtable.com/developers/web/api/list-records",
},
tags: ["records"],
},
security: {
oauth: ["data.records:read"],
},
parameters: [BaseIdParam, TableIdOrNameParam],
request: {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
body: {
schema: makeObjectSchema("List records body", {
optionalProperties: {
timeZone: TimeZoneSchema,
userLocal: makeStringSchema(
"userLocal",
"The user locale that should be used to format dates when using string as the cellFormat. This parameter is required when using string as the cellFormat."
),
pageSize: makeNumberSchema(
"pageSize",
"The number of records returned in each request. Must be less than or equal to 100. Default is 100."
),
maxRecords: makeNumberSchema(
"maxRecords",
"The maximum total number of records that will be returned in your requests. If this value is larger than pageSize (which is 100 by default), you may have to load multiple pages to reach this total."
),
offset: makeStringSchema(
"offset",
"To fetch the next page of records, include offset from the previous request in the next request's parameters."
),
view: makeStringSchema(
"view",
"The name or ID of a view in the table. If set, only the records in that view will be returned. The records will be sorted according to the order of the view unless the sort parameter is included, which overrides that order. Fields hidden in this view will be returned in the results. To only return a subset of fields, use the fields parameter."
),
sort: makeArraySchema(
"Sort",
makeObjectSchema("Sort field", {
requiredProperties: {
field: makeStringSchema("Field name"),
},
optionalProperties: {
direction: makeStringSchema("Direction", "Direction", {
enum: ["asc", "desc"],
}),
},
})
),
filterByFormula: makeStringSchema(
"filterByFormula",
`A formula used to filter records. The formula will be evaluated for each record, and if the result is not 0, false, "", NaN, [], or #Error! the record will be included in the response. If combined with the view parameter, only records in that view which satisfy the formula will be returned. For example, to only include records where the column named "Category" equals "Programming", pass in: filterByFormula={Category}="Programming"`
),
fields: makeArraySchema(
"Only data for fields whose names or IDs are in this list will be included in the result. If you don't need every field, you can use this parameter to reduce the amount of data transferred.",
makeStringSchema("Field name")
),
},
}),
},
},
responses: {
200: [
{
success: true,
name: "Success",
description: "Typical success response",
schema: makeObjectSchema("List records success body", {
optionalProperties: {
offset: makeStringSchema(
"offset",
"To fetch the next page of records, include offset from the previous request in the next request's parameters."
),
},
requiredProperties: {
records: makeArraySchema(
"Records",
makeObjectSchema("Record", {
requiredProperties: {
id: makeStringSchema("Record ID"),
createdTime: makeStringSchema(
"createdTime",
`A date timestamp in the ISO format, eg:"2018-01-01T00:00:00.000Z"`
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
})
),
},
}),
},
],
default: [errorResponse],
},
};
export const getRecord: EndpointSpec = {
path: "/{baseId}/{tableIdOrName}/{recordId}",
method: "GET",
metadata: {
name: "getRecord",
description:
'Retrieve a single record. Any "empty" fields (e.g. "", [], or false) in the record will not be returned.',
displayProperties: {
title:
"Get record ${parameters.recordId} from table ${parameters.tableIdOrName}",
},
externalDocs: {
description: "API method documentation",
url: "https://airtable.com/developers/web/api/get-record",
},
tags: ["records"],
},
security: {
oauth: ["data.records:read"],
},
parameters: [BaseIdParam, TableIdOrNameParam, RecordIdParam],
request: {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
},
responses: {
200: [
{
success: true,
name: "Success",
description: "Typical success response",
schema: makeObjectSchema("Successful response", {
requiredProperties: {
createdTime: makeStringSchema(
"createdTime",
"When the record was created"
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
id: makeStringSchema("id", "The record id"),
},
}),
},
],
default: [errorResponse],
},
};
export const updateRecords: EndpointSpec = {
path: "/{baseId}/{tableIdOrName}",
method: "PATCH",
metadata: {
name: "updateRecords",
description: `Updates up to 10 records, or upserts them when performUpsert is set.`,
displayProperties: {
title: "Update records for table ${parameters.tableIdOrName}",
},
externalDocs: {
description: "API method documentation",
url: "https://airtable.com/developers/web/api/update-multiple-records",
},
tags: ["records"],
},
security: {
oauth: ["data.records:write"],
},
parameters: [BaseIdParam, TableIdOrNameParam],
request: {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
body: {
schema: makeObjectSchema("Update records body", {
optionalProperties: {
performUpsert: makeObjectSchema("Perform upsert", {
requiredProperties: {
fieldsToMergeOn: makeArraySchema(
"Fields to merge on",
makeStringSchema("Field name")
),
},
}),
typecast: makeBooleanSchema(
"typecast",
"If set to true, Airtable will try to convert string values into the appropriate cell value. This conversion is only performed on a best-effort basis. To ensure your data's integrity, this should only be used when necessary. Defaults to false when unset."
),
},
requiredProperties: {
records: makeArraySchema(
"Records to update/upsert",
makeObjectSchema("Record", {
requiredProperties: {
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
optionalProperties: {
id: makeStringSchema(
"id",
"Record ID. Required when performUpsert is not set."
),
},
})
),
},
}),
},
},
responses: {
200: [
{
success: true,
name: "Success",
description: "Typical success response",
schema: makeAnyOf("Update/upsert records success body", [
makeObjectSchema("Update response", {
requiredProperties: {
records: makeArraySchema(
"Records",
makeObjectSchema("Record", {
requiredProperties: {
id: makeStringSchema("Record ID"),
createdTime: makeStringSchema(
"createdTime",
`A date timestamp in the ISO format, eg:"2018-01-01T00:00:00.000Z"`
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
})
),
},
}),
makeObjectSchema("Upsert response", {
requiredProperties: {
createdRecords: makeArraySchema(
"Created records",
makeStringSchema("Record ID")
),
updatedRecords: makeArraySchema(
"Updated records",
makeStringSchema("Record ID")
),
records: makeArraySchema(
"Records",
makeObjectSchema("Record", {
requiredProperties: {
id: makeStringSchema("Record ID"),
createdTime: makeStringSchema(
"createdTime",
`A date timestamp in the ISO format, eg:"2018-01-01T00:00:00.000Z"`
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
})
),
},
}),
]),
},
],
default: [errorResponse],
},
};
export const updateRecord: EndpointSpec = {
path: "/{baseId}/{tableIdOrName}/{recordId}",
method: "PATCH",
metadata: {
name: "updateRecord",
description: `Updates a single record.`,
displayProperties: {
title:
"Update record ${parameters.recordId} for table ${parameters.tableIdOrName}",
},
externalDocs: {
description: "API method documentation",
url: "https://airtable.com/developers/web/api/update-record",
},
tags: ["records"],
},
security: {
oauth: ["data.records:write"],
},
parameters: [BaseIdParam, TableIdOrNameParam, RecordIdParam],
request: {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
body: {
schema: makeObjectSchema("Update record body", {
optionalProperties: {
typecast: makeBooleanSchema(
"typecast",
"If set to true, Airtable will try to convert string values into the appropriate cell value. This conversion is only performed on a best-effort basis. To ensure your data's integrity, this should only be used when necessary. Defaults to false when unset."
),
},
requiredProperties: {
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
}),
},
},
responses: {
200: [
{
success: true,
name: "Success",
description: "Typical success response",
schema: makeObjectSchema("Update record success body", {
requiredProperties: {
id: makeStringSchema("Record ID"),
createdTime: makeStringSchema(
"createdTime",
`A date timestamp in the ISO format, eg:"2018-01-01T00:00:00.000Z"`
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
}),
},
],
default: [errorResponse],
},
};
export const createRecords: EndpointSpec = {
path: "/{baseId}/{tableIdOrName}",
method: "POST",
metadata: {
name: "createRecords",
description: `Create up to 10 records`,
displayProperties: {
title: "Create records for table ${parameters.tableIdOrName}",
},
externalDocs: {
description: "API method documentation",
url: "https://airtable.com/developers/web/api/create-records",
},
tags: ["records"],
},
security: {
oauth: ["data.records:write"],
},
parameters: [BaseIdParam, TableIdOrNameParam],
request: {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
body: {
schema: makeObjectSchema("Create records body", {
optionalProperties: {
typecast: makeBooleanSchema(
"typecast",
"If set to true, Airtable will try to convert string values into the appropriate cell value. This conversion is only performed on a best-effort basis. To ensure your data's integrity, this should only be used when necessary. Defaults to false when unset."
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
records: makeArraySchema(
"Records to update/upsert",
makeObjectSchema("Record", {
requiredProperties: {
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
})
),
},
}),
},
},
responses: {
200: [
{
success: true,
name: "Success",
description: "Typical success response",
schema: makeAnyOf("Create records success body", [
makeObjectSchema("Multiple records created response", {
requiredProperties: {
records: makeArraySchema(
"Records",
makeObjectSchema("Record", {
requiredProperties: {
id: makeStringSchema("Record ID"),
createdTime: makeStringSchema(
"createdTime",
`A date timestamp in the ISO format, eg:"2018-01-01T00:00:00.000Z"`
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
})
),
},
}),
makeObjectSchema("Single record created response", {
requiredProperties: {
id: makeStringSchema("Record ID"),
createdTime: makeStringSchema(
"createdTime",
`A date timestamp in the ISO format, eg:"2018-01-01T00:00:00.000Z"`
),
fields: makeObjectSchema("Fields", {
additionalProperties: FieldSchema,
}),
},
}),
]),
},
],
default: [errorResponse],
},
};
export const deleteRecords: EndpointSpec = {
path: "/{baseId}/{tableIdOrName}",
method: "DELETE",
metadata: {
name: "deleteRecords",
description: `Delete more than one records with the given record IDs. Note you can't delete a single record with this.`,
displayProperties: {
title: "Delete records for table ${parameters.tableIdOrName}",
},
externalDocs: {
description: "API method documentation",
url: "https://airtable.com/developers/web/api/delete-multiple-records",
},
tags: ["records"],
},
security: {
oauth: ["data.records:write"],
},
parameters: [
BaseIdParam,
TableIdOrNameParam,
{
name: "records",
in: "query",
description: "An array of record IDs to delete",
schema: makeArraySchema(
"Records to delete",
makeStringSchema("Record ID")
),
required: true,
},
],
request: {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
},
responses: {
200: [
{
success: true,
name: "Success",
description: "Typical success response",
schema: makeObjectSchema("Delete records response", {
requiredProperties: {
records: makeArraySchema(
"Records",
makeObjectSchema("Deleted record", {
requiredProperties: {
id: makeStringSchema("Record ID"),
deleted: makeBooleanSchema(
"deleted",
"Whether the record was deleted",
{
enum: true,
}
),
},
})
),
},
}),
},
],
default: [errorResponse],
},
};
export const deleteRecord: EndpointSpec = {
path: "/{baseId}/{tableIdOrName}/{recordId}",
method: "DELETE",
metadata: {
name: "deleteRecord",
description: `Delete a single record.`,
displayProperties: {
title:
"Delete record ${parameters.recordId} for table ${parameters.tableIdOrName}",
},
externalDocs: {
description: "API method documentation",
url: "https://airtable.com/developers/web/api/delete-record",
},
tags: ["records"],
},
security: {
oauth: ["data.records:write"],
},
parameters: [BaseIdParam, TableIdOrNameParam, RecordIdParam],
request: {
headers: {
"Content-Type": "application/json; charset=utf-8",
},
},
responses: {
200: [
{
success: true,
name: "Success",
description: "Typical success response",
schema: makeObjectSchema("Delete records response", {
requiredProperties: {
id: makeStringSchema("Record ID"),
deleted: makeBooleanSchema(
"deleted",
"Whether the record was deleted",
{
enum: true,
}
),
},
}),
},
],
default: [errorResponse],
},
};
@@ -1,14 +0,0 @@
import { Service } from "core/service/types";
import { authentication } from "./authentication";
import actions from "./actions/actions";
export const airtable: Service = {
name: "Airtable",
service: "airtable",
version: "0.1.21",
baseUrl: "https://api.airtable.com/v0",
live: true,
authentication,
actions,
retryableStatusCodes: [408, 429, 500, 502, 503, 504],
};
@@ -1,356 +0,0 @@
import { startNock, stopNock } from "testing/nock";
import { describe, expect, test } from "vitest";
import endpoints from "../endpoints/endpoints";
const authToken = () => process.env.AIRTABLE_TOKEN ?? "";
describe("airtable.endpoints", async () => {
test("listRecords simple", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.listRecords.simple");
const data = await endpoints.listRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:read"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("listRecords advanced", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.listRecords.advanced");
const data = await endpoints.listRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {
timeZone: "America/Los_Angeles",
userLocale: "en",
sort: [
{
field: "Employee",
direction: "asc",
},
],
fields: ["Employee"],
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:read"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("getRecord", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.getRecord");
const data = await endpoints.getRecord.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
recordId: "recHcnB1MbBr9Rd2P",
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:read"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("updateRecords", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.updateRecords");
const data = await endpoints.updateRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {
records: [
{
id: "recHcnB1MbBr9Rd2P",
fields: {
Employee: "John Doe",
},
},
],
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("upsertRecords", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.upsertRecords");
const data = await endpoints.updateRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {
performUpsert: {
fieldsToMergeOn: ["Employee"],
},
records: [
{
fields: {
Employee: "John Doe",
},
},
{
fields: {
Employee: "Jane Doe",
},
},
],
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("updateRecord", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.updateRecord");
const data = await endpoints.updateRecord.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
recordId: "recHcnB1MbBr9Rd2P",
},
body: {
fields: {
Employee: "John Doe II",
},
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("createRecords", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.createRecords");
const data = await endpoints.createRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {
records: [
{
fields: {
Employee: "Employee #1",
},
},
{
fields: {
Employee: "Employee #2",
},
},
],
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("createRecord", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.createRecord");
const data = await endpoints.createRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {
fields: {
Employee: "Employee single create",
},
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
stopNock(nockDone);
});
test("deleteRecords", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.deleteRecords");
const data = await endpoints.createRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {
records: [
{
fields: {
Employee: "Delete now #1",
},
},
{
fields: {
Employee: "Delete now #2",
},
},
],
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
const deletedData = await endpoints.deleteRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
records: data.body.records.map((record: any) => record.id),
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(deletedData.status).toEqual(200);
expect(deletedData.success).toEqual(true);
expect(deletedData.body).not.toBeNull();
stopNock(nockDone);
});
test("deleteRecord", async () => {
const accessToken = authToken();
const nockDone = await startNock("airtable.deleteRecord");
const data = await endpoints.createRecords.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
},
body: {
fields: {
Employee: "Delete now #3",
},
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(data.status).toEqual(200);
expect(data.success).toEqual(true);
expect(data.body).not.toBeNull();
const deletedData = await endpoints.deleteRecord.request({
parameters: {
baseId: "appBlf3KsalIQeMUo",
tableIdOrName: "tblvXn2TOeVPC9c6m",
recordId: data.body.id,
},
credentials: {
type: "oauth2",
name: "oauth",
accessToken,
scopes: ["data.records:write"],
},
});
expect(deletedData.status).toEqual(200);
expect(deletedData.success).toEqual(true);
expect(deletedData.body).not.toBeNull();
stopNock(nockDone);
});
});
@@ -1,10 +0,0 @@
import { Catalog } from "core/catalog";
import { airtable } from "./airtable";
import { sendgrid } from "./sendgrid";
export const catalog: Catalog = {
services: {
airtable,
sendgrid,
},
};
@@ -1,5 +0,0 @@
import { makeSimpleActions } from "core/action/makeAction";
import endpoints from "../endpoints/endpoints";
const actions = makeSimpleActions(endpoints);
export default actions;

Some files were not shown because too many files have changed in this diff Show More