-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
87 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type {IntegrationDef, IntegrationSchemas} from '@usevenice/cdk' | ||
import {intHelpers, oauthBaseSchema} from '@usevenice/cdk' | ||
import {z} from '@usevenice/util' | ||
|
||
export const discordSchemas = { | ||
name: z.literal('discord'), | ||
integrationConfig: oauthBaseSchema.integrationConfig, | ||
resourceSettings: oauthBaseSchema.resourceSettings, | ||
connectOutput: oauthBaseSchema.connectOutput, | ||
} satisfies IntegrationSchemas | ||
|
||
export const discordHelpers = intHelpers(discordSchemas) | ||
|
||
export const discordDef = { | ||
name: 'discord', | ||
schemas: discordSchemas, | ||
metadata: { | ||
displayName: 'Discord', | ||
stage: 'beta', | ||
logoUrl: '/_assets/logo-discord.svg', | ||
nangoProvider: 'discord', | ||
}, | ||
} satisfies IntegrationDef<typeof discordSchemas> | ||
|
||
export default discordDef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// codegen:start {preset: barrel, include: "./{*.{ts,tsx},*/index.{ts,tsx}}", exclude: "./**/*.{d,spec,test,fixture,gen,node}.{ts,tsx}"} | ||
export * from './def' | ||
export * from './server' | ||
// codegen:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "@usevenice/integration-discord", | ||
"version": "0.0.0", | ||
"private": true, | ||
"module": "./index.ts", | ||
"dependencies": { | ||
"@usevenice/cdk": "workspace:*", | ||
"@usevenice/util": "workspace:*" | ||
}, | ||
"devDependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type {IntegrationServer} from '@usevenice/cdk' | ||
|
||
import type {discordSchemas} from './def' | ||
|
||
export const discordServer = {} satisfies IntegrationServer< | ||
typeof discordSchemas | ||
> | ||
|
||
export default discordServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2c21afe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
venice – ./
usevenice.vercel.app
venice-venice.vercel.app
venice-git-production-venice.vercel.app
app.venice.is