Compare commits
51 Commits
@nhost/rea
...
@nhost/str
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a402fc17de | ||
|
|
de0a125e98 | ||
|
|
ea1ad29031 | ||
|
|
3da40e5712 | ||
|
|
b9087a4add | ||
|
|
1b7a6d0252 | ||
|
|
1417d3e794 | ||
|
|
e187923858 | ||
|
|
8a60ed4074 | ||
|
|
d7d11a44a7 | ||
|
|
062e4691cd | ||
|
|
a95d49fa2c | ||
|
|
d14fc96899 | ||
|
|
93db718254 | ||
|
|
c367bd58b9 | ||
|
|
0bfed4d9e1 | ||
|
|
1f3aecd379 | ||
|
|
42306ea3bb | ||
|
|
1b12a175f6 | ||
|
|
32060aaea0 | ||
|
|
f94cace5f2 | ||
|
|
5de965d9a5 | ||
|
|
e10b3adc11 | ||
|
|
457db76b06 | ||
|
|
1e952a026e | ||
|
|
2f4c040789 | ||
|
|
74648752b4 | ||
|
|
09d218a3fe | ||
|
|
2e8938dbb0 | ||
|
|
ec60d03536 | ||
|
|
2f3767552f | ||
|
|
bc401c0dd2 | ||
|
|
ca012d790c | ||
|
|
aeda14ef53 | ||
|
|
3fa5e2005a | ||
|
|
beadd84adb | ||
|
|
f8f55d2b99 | ||
|
|
03a98d4f3a | ||
|
|
8ed8e04ab6 | ||
|
|
587efd4551 | ||
|
|
7055ffc37a | ||
|
|
c68ce6d480 | ||
|
|
98a149c8bf | ||
|
|
ceb558975e | ||
|
|
7a87321a7e | ||
|
|
9349766c0a | ||
|
|
31655191a3 | ||
|
|
e3b91efa84 | ||
|
|
cfe736776a | ||
|
|
481bf237cc | ||
|
|
33ce9bf1b9 |
4
.github/workflows/changesets.yaml
vendored
4
.github/workflows/changesets.yaml
vendored
@@ -18,6 +18,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
version:
|
version:
|
||||||
|
name: Version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
|
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
|
||||||
@@ -61,6 +62,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
|
name: Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- test
|
- test
|
||||||
@@ -110,6 +112,8 @@ jobs:
|
|||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
push: true
|
push: true
|
||||||
|
- name: Trigger a Vercel deployment
|
||||||
|
run: curl -X POST -d {} https://api.vercel.com/v1/integrations/deploy/${{ secrets.DASHBOARD_VERCEL_PROJECT_ID }}/${{ secrets.DASHBOARD_VERCEL_WEBHOOK_ID }}
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: taiki-e/create-gh-release-action@v1
|
uses: taiki-e/create-gh-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
24
README.md
24
README.md
@@ -179,14 +179,21 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<sub><b>Grégory D'Angelo</b></sub>
|
<sub><b>Grégory D'Angelo</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/ejkkan">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/32518962?v=4" width="100;" alt="ejkkan"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Erik Magnusson</b></sub>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/guicurcio">
|
<a href="https://github.com/guicurcio">
|
||||||
<img src="https://avatars.githubusercontent.com/u/20285232?v=4" width="100;" alt="guicurcio"/>
|
<img src="https://avatars.githubusercontent.com/u/20285232?v=4" width="100;" alt="guicurcio"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Guido Curcio</b></sub>
|
<sub><b>Guido Curcio</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/subatuba21">
|
<a href="https://github.com/subatuba21">
|
||||||
<img src="https://avatars.githubusercontent.com/u/34824571?v=4" width="100;" alt="subatuba21"/>
|
<img src="https://avatars.githubusercontent.com/u/34824571?v=4" width="100;" alt="subatuba21"/>
|
||||||
@@ -221,15 +228,15 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<br />
|
<br />
|
||||||
<sub><b>Christopher Möller</b></sub>
|
<sub><b>Christopher Möller</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td></tr>
|
||||||
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/GavanWilhite">
|
<a href="https://github.com/GavanWilhite">
|
||||||
<img src="https://avatars.githubusercontent.com/u/2085119?v=4" width="100;" alt="GavanWilhite"/>
|
<img src="https://avatars.githubusercontent.com/u/2085119?v=4" width="100;" alt="GavanWilhite"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Gavan Wilhite</b></sub>
|
<sub><b>Gavan Wilhite</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/FuzzyReason">
|
<a href="https://github.com/FuzzyReason">
|
||||||
<img src="https://avatars.githubusercontent.com/u/62517920?v=4" width="100;" alt="FuzzyReason"/>
|
<img src="https://avatars.githubusercontent.com/u/62517920?v=4" width="100;" alt="FuzzyReason"/>
|
||||||
@@ -237,13 +244,6 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<sub><b>Vadim Smirnov</b></sub>
|
<sub><b>Vadim Smirnov</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
|
||||||
<a href="https://github.com/ejkkan">
|
|
||||||
<img src="https://avatars.githubusercontent.com/u/32518962?v=4" width="100;" alt="ejkkan"/>
|
|
||||||
<br />
|
|
||||||
<sub><b>Erik Magnusson</b></sub>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/macmac49">
|
<a href="https://github.com/macmac49">
|
||||||
<img src="https://avatars.githubusercontent.com/u/831190?v=4" width="100;" alt="macmac49"/>
|
<img src="https://avatars.githubusercontent.com/u/831190?v=4" width="100;" alt="macmac49"/>
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost/dashboard
|
# @nhost/dashboard
|
||||||
|
|
||||||
|
## 0.4.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 5de965d9: fix(dashboard): alphabetic ordering of providers
|
||||||
|
- b9087a4a: fix(dashboard): console -> dashboard terminology
|
||||||
|
- ca012d79: docs(workos): WorkOS Docs
|
||||||
|
|
||||||
## 0.4.2
|
## 0.4.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/dashboard",
|
"name": "@nhost/dashboard",
|
||||||
"version": "0.4.2",
|
"version": "0.4.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
|
|||||||
1
dashboard/public/assets/twilio.svg
Normal file
1
dashboard/public/assets/twilio.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="21" height="21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.08 0c5.578 0 10.08 4.507 10.08 10.09 0 5.584-4.502 10.09-10.08 10.09A10.072 10.072 0 0 1 0 10.09C0 4.507 4.503 0 10.08 0Zm0 2.69a7.375 7.375 0 0 0-7.392 7.4c0 4.104 3.293 7.4 7.392 7.4 4.1 0 7.392-3.296 7.392-7.4 0-4.103-3.293-7.4-7.392-7.4Zm-2.486 7.804c1.142 0 2.083.942 2.083 2.085 0 1.144-.94 2.086-2.083 2.086a2.095 2.095 0 0 1-2.083-2.086c0-1.143.94-2.085 2.083-2.085Zm4.973 0c1.142 0 2.083.942 2.083 2.085 0 1.144-.94 2.086-2.083 2.086a2.095 2.095 0 0 1-2.084-2.086c0-1.143.941-2.085 2.084-2.085Zm0-4.978c1.142 0 2.083.942 2.083 2.085 0 1.144-.94 2.086-2.083 2.086A2.095 2.095 0 0 1 10.483 7.6c0-1.143.941-2.085 2.084-2.085Zm-4.973 0c1.142 0 2.083.942 2.083 2.085 0 1.144-.94 2.086-2.083 2.086A2.095 2.095 0 0 1 5.51 7.6c0-1.143.94-2.085 2.083-2.085Z" fill="#F22F46"/></svg>
|
||||||
|
After Width: | Height: | Size: 869 B |
@@ -79,7 +79,7 @@ export default function AnonymousSignInSettings() {
|
|||||||
<Form onSubmit={handlePasswordProtectionSettingsChange}>
|
<Form onSubmit={handlePasswordProtectionSettingsChange}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Anonymous Users"
|
title="Anonymous Users"
|
||||||
description="Allow users to sign-in anonymously."
|
description="Allow users to sign in anonymously."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled:
|
disabled:
|
||||||
form.formState.isSubmitting ||
|
form.formState.isSubmitting ||
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ export default function AppleProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Apple"
|
title="Apple"
|
||||||
description="Allows users to sign in with Apple."
|
description="Allow users to sign in with Apple."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default function DiscordProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Discord"
|
title="Discord"
|
||||||
description="Allows users to sign in with Discord."
|
description="Allow users to sign in with Discord."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export interface EmailAndPasswordFormValues {
|
|||||||
authPasswordHibpEnabled: boolean;
|
authPasswordHibpEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function EmailSettings() {
|
export default function EmailAndPasswordSettings() {
|
||||||
const { currentApplication } = useCurrentWorkspaceAndApplication();
|
const { currentApplication } = useCurrentWorkspaceAndApplication();
|
||||||
const [updateApp] = useUpdateAppMutation({
|
const [updateApp] = useUpdateAppMutation({
|
||||||
refetchQueries: [GetAppLoginDataDocument],
|
refetchQueries: [GetAppLoginDataDocument],
|
||||||
@@ -61,7 +61,7 @@ export default function EmailSettings() {
|
|||||||
|
|
||||||
const { formState } = form;
|
const { formState } = form;
|
||||||
|
|
||||||
const handleEmailSettingsChange = async (
|
const handleEmailAndPasswordSettingsChange = async (
|
||||||
values: EmailAndPasswordFormValues,
|
values: EmailAndPasswordFormValues,
|
||||||
) => {
|
) => {
|
||||||
const updateAppMutation = updateApp({
|
const updateAppMutation = updateApp({
|
||||||
@@ -90,10 +90,10 @@ export default function EmailSettings() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<FormProvider {...form}>
|
<FormProvider {...form}>
|
||||||
<Form onSubmit={handleEmailSettingsChange}>
|
<Form onSubmit={handleEmailAndPasswordSettingsChange}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Email and Password"
|
title="Email and Password"
|
||||||
description="Sign in users using email and password."
|
description="Allow users to sign in with email and password."
|
||||||
docsLink="https://docs.nhost.io/authentication/sign-in-with-email-and-password"
|
docsLink="https://docs.nhost.io/authentication/sign-in-with-email-and-password"
|
||||||
docsTitle="how to sign in users with email and password"
|
docsTitle="how to sign in users with email and password"
|
||||||
className="grid grid-flow-row"
|
className="grid grid-flow-row"
|
||||||
@@ -109,10 +109,8 @@ export default function EmailSettings() {
|
|||||||
name="authEmailSigninEmailVerifiedRequired"
|
name="authEmailSigninEmailVerifiedRequired"
|
||||||
id="authEmailSigninEmailVerifiedRequired"
|
id="authEmailSigninEmailVerifiedRequired"
|
||||||
label={
|
label={
|
||||||
<span className="inline-grid grid-flow-row gap-y-[2px] text-[15px]">
|
<span className="inline-grid grid-flow-row gap-y-0.5 text-sm+">
|
||||||
<span className="text-[15px] font-medium">
|
<span className="font-medium">Require Verified Emails</span>
|
||||||
Require Verified Emails
|
|
||||||
</span>
|
|
||||||
<span className="font-normal text-greyscaleMedium">
|
<span className="font-normal text-greyscaleMedium">
|
||||||
Users must verify their email to be able to sign in.
|
Users must verify their email to be able to sign in.
|
||||||
</span>
|
</span>
|
||||||
@@ -124,11 +122,9 @@ export default function EmailSettings() {
|
|||||||
name="authPasswordHibpEnabled"
|
name="authPasswordHibpEnabled"
|
||||||
id="authPasswordHibpEnabled"
|
id="authPasswordHibpEnabled"
|
||||||
label={
|
label={
|
||||||
<span className="inline-grid grid-flow-row gap-y-[2px] text-[15px]">
|
<span className="inline-grid grid-flow-row gap-y-0.5 text-sm+">
|
||||||
<span className="text-[15px] font-medium">
|
<span className="font-medium">Password Protection</span>
|
||||||
Password Protection
|
<span className="font-normal text-greyscaleMedium">
|
||||||
</span>
|
|
||||||
<span className="text-[12px] font-normal text-greyscaleMedium">
|
|
||||||
Passwords must pass haveibeenpwned.com during sign-up.
|
Passwords must pass haveibeenpwned.com during sign-up.
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
export * from './EmailAndPasswordSettings';
|
||||||
|
export { default } from './EmailAndPasswordSettings';
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export * from './EmailSettings';
|
|
||||||
export { default } from './EmailSettings';
|
|
||||||
@@ -88,7 +88,7 @@ export default function FacebookProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Facebook"
|
title="Facebook"
|
||||||
description="Allows users to sign in with Facebook."
|
description="Allow users to sign in with Facebook."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default function GitHubProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="GitHub"
|
title="GitHub"
|
||||||
description="Allows users to sign in with GitHub."
|
description="Allow users to sign in with GitHub."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default function GoogleProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Google"
|
title="Google"
|
||||||
description="Allows users to sign in with Google."
|
description="Allow users to sign in with Google."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default function LinkedInProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="LinkedIn"
|
title="LinkedIn"
|
||||||
description="Allows users to sign in with LinkedIn"
|
description="Allow users to sign in with LinkedIn."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export default function MagicLinkSettings() {
|
|||||||
<Form onSubmit={handleMagicLinkSettingsUpdate}>
|
<Form onSubmit={handleMagicLinkSettingsUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Magic Link"
|
title="Magic Link"
|
||||||
description="Allow users to sign-in with a magic link."
|
description="Allow users to sign in with a magic link."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default function SpotifyProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Spotify"
|
title="Spotify"
|
||||||
description="Allows users to sign in with Spotify."
|
description="Allow users to sign in with Spotify."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default function TwitchProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Twitch"
|
title="Twitch"
|
||||||
description="Allows users to sign in with Twitch."
|
description="Allow users to sign in with Twitch."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default function TwitterProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Twitter"
|
title="Twitter"
|
||||||
description="Allows users to sign in with Twitter."
|
description="Allow users to sign in with Twitter."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default function WebAuthnSettings() {
|
|||||||
<Form onSubmit={handleWebAuthnSettingsUpdate}>
|
<Form onSubmit={handleWebAuthnSettingsUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Security Keys"
|
title="Security Keys"
|
||||||
description="Allow users to sign-in with security keys using WebAuthn."
|
description="Allow users to sign in with security keys using WebAuthn."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default function WindowsLiveProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="Windows Live"
|
title="Windows Live"
|
||||||
description="Allows users to sign in with Windows Live."
|
description="Allow users to sign in with Windows Live."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
|
|||||||
@@ -94,11 +94,13 @@ export default function WorkOsProviderSettings() {
|
|||||||
<Form onSubmit={handleProviderUpdate}>
|
<Form onSubmit={handleProviderUpdate}>
|
||||||
<SettingsContainer
|
<SettingsContainer
|
||||||
title="WorkOS"
|
title="WorkOS"
|
||||||
description="Allows users to sign in with WorkOS."
|
description="Allow users to sign in with WorkOS."
|
||||||
primaryActionButtonProps={{
|
primaryActionButtonProps={{
|
||||||
disabled: !formState.isValid || !formState.isDirty,
|
disabled: !formState.isValid || !formState.isDirty,
|
||||||
loading: formState.isSubmitting,
|
loading: formState.isSubmitting,
|
||||||
}}
|
}}
|
||||||
|
docsLink="https://docs.nhost.io/authentication/sign-in-with-workos"
|
||||||
|
docsTitle="how to sign in users with WorkOS"
|
||||||
icon="/logos/WorkOs.svg"
|
icon="/logos/WorkOs.svg"
|
||||||
switchId="authWorkOsEnabled"
|
switchId="authWorkOsEnabled"
|
||||||
showSwitch
|
showSwitch
|
||||||
@@ -112,8 +114,8 @@ export default function WorkOsProviderSettings() {
|
|||||||
{...register(`authWorkOsClientId`)}
|
{...register(`authWorkOsClientId`)}
|
||||||
name="authWorkOsClientId"
|
name="authWorkOsClientId"
|
||||||
id="authWorkOsClientId"
|
id="authWorkOsClientId"
|
||||||
label="WorkOS Client ID"
|
label="Client ID"
|
||||||
placeholder="WorkOS Client ID"
|
placeholder="Enter your Client ID"
|
||||||
className="col-span-3"
|
className="col-span-3"
|
||||||
fullWidth
|
fullWidth
|
||||||
hideEmptyHelperText
|
hideEmptyHelperText
|
||||||
@@ -122,28 +124,28 @@ export default function WorkOsProviderSettings() {
|
|||||||
{...register('authWorkOsClientSecret')}
|
{...register('authWorkOsClientSecret')}
|
||||||
name="authWorkOsClientSecret"
|
name="authWorkOsClientSecret"
|
||||||
id="authWorkOsClientSecret"
|
id="authWorkOsClientSecret"
|
||||||
label="WorkOS Client Secret"
|
label="Client Secret"
|
||||||
placeholder="WorkOS Client Secret"
|
placeholder="Enter your Client Secret"
|
||||||
className="col-span-3"
|
className="col-span-3"
|
||||||
fullWidth
|
fullWidth
|
||||||
hideEmptyHelperText
|
hideEmptyHelperText
|
||||||
/>
|
/>
|
||||||
<Input
|
|
||||||
{...register('authWorkOsDefaultDomain')}
|
|
||||||
name="authWorkOsDefaultDomain"
|
|
||||||
id="authWorkOsDefaultDomain"
|
|
||||||
label="Default Domain"
|
|
||||||
placeholder="Default Domain"
|
|
||||||
className="col-span-2"
|
|
||||||
fullWidth
|
|
||||||
hideEmptyHelperText
|
|
||||||
/>
|
|
||||||
<Input
|
<Input
|
||||||
{...register('authWorkOsDefaultOrganization')}
|
{...register('authWorkOsDefaultOrganization')}
|
||||||
name="authWorkOsDefaultOrganization"
|
name="authWorkOsDefaultOrganization"
|
||||||
id="authWorkOsDefaultOrganization"
|
id="authWorkOsDefaultOrganization"
|
||||||
label="Default Organization"
|
label="Default Organization ID (optional)"
|
||||||
placeholder="Default Organization"
|
placeholder="Default Organization ID"
|
||||||
|
className="col-span-2"
|
||||||
|
fullWidth
|
||||||
|
hideEmptyHelperText
|
||||||
|
/>
|
||||||
|
<Input
|
||||||
|
{...register('authWorkOsDefaultDomain')}
|
||||||
|
name="authWorkOsDefaultDomain"
|
||||||
|
id="authWorkOsDefaultDomain"
|
||||||
|
label="Default Domain (optional)"
|
||||||
|
placeholder="Default Domain"
|
||||||
className="col-span-2"
|
className="col-span-2"
|
||||||
fullWidth
|
fullWidth
|
||||||
hideEmptyHelperText
|
hideEmptyHelperText
|
||||||
@@ -152,7 +154,7 @@ export default function WorkOsProviderSettings() {
|
|||||||
{...register('authWorkOsDefaultConnection')}
|
{...register('authWorkOsDefaultConnection')}
|
||||||
name="authWorkOsDefaultConnection"
|
name="authWorkOsDefaultConnection"
|
||||||
id="authWorkOsDefaultConnection"
|
id="authWorkOsDefaultConnection"
|
||||||
label="Default Connection"
|
label="Default Connection (optional)"
|
||||||
placeholder="Default Connection"
|
placeholder="Default Connection"
|
||||||
className="col-span-2"
|
className="col-span-2"
|
||||||
fullWidth
|
fullWidth
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import SettingsLayout from '@/components/settings/SettingsLayout';
|
|||||||
import AnonymousSignInSettings from '@/components/settings/signInMethods/AnonymousSignInSettings';
|
import AnonymousSignInSettings from '@/components/settings/signInMethods/AnonymousSignInSettings';
|
||||||
import AppleProviderSettings from '@/components/settings/signInMethods/AppleProviderSettings';
|
import AppleProviderSettings from '@/components/settings/signInMethods/AppleProviderSettings';
|
||||||
import DiscordProviderSettings from '@/components/settings/signInMethods/DiscordProviderSettings';
|
import DiscordProviderSettings from '@/components/settings/signInMethods/DiscordProviderSettings';
|
||||||
import EmailSettings from '@/components/settings/signInMethods/EmailSettings';
|
import EmailAndPasswordSettings from '@/components/settings/signInMethods/EmailAndPasswordSettings';
|
||||||
import FacebookProviderSettings from '@/components/settings/signInMethods/FacebookProviderSettings';
|
import FacebookProviderSettings from '@/components/settings/signInMethods/FacebookProviderSettings';
|
||||||
import GitHubProviderSettings from '@/components/settings/signInMethods/GitHubProviderSettings';
|
import GitHubProviderSettings from '@/components/settings/signInMethods/GitHubProviderSettings';
|
||||||
import GoogleProviderSettings from '@/components/settings/signInMethods/GoogleProviderSettings';
|
import GoogleProviderSettings from '@/components/settings/signInMethods/GoogleProviderSettings';
|
||||||
@@ -35,7 +35,7 @@ export default function SettingsSignInMethodsPage() {
|
|||||||
return (
|
return (
|
||||||
<ActivityIndicator
|
<ActivityIndicator
|
||||||
delay={1000}
|
delay={1000}
|
||||||
label="Loading Sign-In Methods Settings..."
|
label="Loading sign-in method settings..."
|
||||||
className="justify-center"
|
className="justify-center"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@@ -50,21 +50,21 @@ export default function SettingsSignInMethodsPage() {
|
|||||||
className="max-w-5xl space-y-8 bg-fafafa"
|
className="max-w-5xl space-y-8 bg-fafafa"
|
||||||
wrapperClassName="bg-fafafa"
|
wrapperClassName="bg-fafafa"
|
||||||
>
|
>
|
||||||
<EmailSettings />
|
<EmailAndPasswordSettings />
|
||||||
<MagicLinkSettings />
|
<MagicLinkSettings />
|
||||||
<WebAuthnSettings />
|
<WebAuthnSettings />
|
||||||
<AnonymousSignInSettings />
|
<AnonymousSignInSettings />
|
||||||
<SMSSettings />
|
<SMSSettings />
|
||||||
<GoogleProviderSettings />
|
|
||||||
<GitHubProviderSettings />
|
|
||||||
<LinkedInProviderSettings />
|
|
||||||
<AppleProviderSettings />
|
<AppleProviderSettings />
|
||||||
<WindowsLiveProviderSettings />
|
<DiscordProviderSettings />
|
||||||
<FacebookProviderSettings />
|
<FacebookProviderSettings />
|
||||||
|
<GitHubProviderSettings />
|
||||||
|
<GoogleProviderSettings />
|
||||||
|
<LinkedInProviderSettings />
|
||||||
<SpotifyProviderSettings />
|
<SpotifyProviderSettings />
|
||||||
<TwitchProviderSettings />
|
<TwitchProviderSettings />
|
||||||
<DiscordProviderSettings />
|
|
||||||
<TwitterProviderSettings />
|
<TwitterProviderSettings />
|
||||||
|
<WindowsLiveProviderSettings />
|
||||||
<WorkOsProviderSettings />
|
<WorkOsProviderSettings />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
@@ -72,11 +72,7 @@ export default function SettingsSignInMethodsPage() {
|
|||||||
|
|
||||||
SettingsSignInMethodsPage.getLayout = function getLayout(page: ReactElement) {
|
SettingsSignInMethodsPage.getLayout = function getLayout(page: ReactElement) {
|
||||||
return (
|
return (
|
||||||
<SettingsLayout
|
<SettingsLayout mainContainerProps={{ className: 'bg-fafafa' }}>
|
||||||
mainContainerProps={{
|
|
||||||
className: 'bg-fafafa',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{page}
|
{page}
|
||||||
</SettingsLayout>
|
</SettingsLayout>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ export default class MyDocument extends Document {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'Nhost 2.0 | Console',
|
title: 'Dashboard - Nhost',
|
||||||
description: 'Nhost Console 2.0',
|
description: 'Nhost Dashboard',
|
||||||
image: '/assets/splash.png',
|
image: '/assets/splash.png',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -26,5 +26,5 @@ export default function IndexPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IndexPage.getLayout = function getLayout(page: ReactElement) {
|
IndexPage.getLayout = function getLayout(page: ReactElement) {
|
||||||
return <AuthenticatedLayout title="Console">{page}</AuthenticatedLayout>;
|
return <AuthenticatedLayout title="Dashboard">{page}</AuthenticatedLayout>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/docs
|
# @nhost/docs
|
||||||
|
|
||||||
|
## 0.0.5
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- ca012d79: docs(workos): WorkOS Docs
|
||||||
|
|
||||||
## 0.0.4
|
## 0.0.4
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Follow this guide to sign in users with GitHub.
|
|||||||
|
|
||||||
- Fill in Application Name.
|
- Fill in Application Name.
|
||||||
- Fill in Homepage URL.
|
- Fill in Homepage URL.
|
||||||
- Fill in **Authorization callback URL** with your OAuth Callbacke URL from Nhost.
|
- Fill in **Authorization callback URL** with your OAuth Callback URL from Nhost.
|
||||||
|
|
||||||
## Configure Nhost
|
## Configure Nhost
|
||||||
|
|
||||||
|
|||||||
67
docs/docs/authentication/sign-in-methods/4-workos.mdx
Normal file
67
docs/docs/authentication/sign-in-methods/4-workos.mdx
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
---
|
||||||
|
title: Sign In with WorkOS
|
||||||
|
sidebar_label: WorkOS
|
||||||
|
slug: /authentication/sign-in-with-workos
|
||||||
|
image: /img/og/sign-in-with-workos.png
|
||||||
|
---
|
||||||
|
|
||||||
|
Follow this guide to sign in users with WorkOS.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img
|
||||||
|
alt="WorkOS Sign In Preview"
|
||||||
|
src="/img/social-providers/workos-preview.svg"
|
||||||
|
width={480}
|
||||||
|
height={267}
|
||||||
|
/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## Create WorkOS Account
|
||||||
|
|
||||||
|
- Go to [WorkOS's website](https://workos.com/).
|
||||||
|
- Click on **Sign In** in the top menu and create a WorkOS account.
|
||||||
|
|
||||||
|
## Get the Client ID
|
||||||
|
|
||||||
|
- In the WorkOS dashboard, click on **Configuration** in the left menu.
|
||||||
|
- Copy the **Client ID**, which starts with `project_`.
|
||||||
|
- Paste the **Client ID** in the **Client ID** field in the WorkOS settings in the Nhost Dashboard.
|
||||||
|
|
||||||
|
## Set correct Redirect URI
|
||||||
|
|
||||||
|
- In the WorkOS dashboard, click on **Configuration** in the left menu.
|
||||||
|
- Click on **Edit Redirect URIs** in the Redirect URIs section.
|
||||||
|
- Add the **Redirect URL** from the Nhost Dashboard to the list of Redirect URIs.
|
||||||
|
- Set the newly added redirect URI as the **Default Redirect URI**.
|
||||||
|
- Click on **Close**.
|
||||||
|
|
||||||
|
## Get the Client Secret
|
||||||
|
|
||||||
|
- In the WorkOS dashboard, click on **API Keys** in the left menu.
|
||||||
|
- Click on the eye icon next to the **Client Secret** to reveal it.
|
||||||
|
- Copy the **Client Secret**, which stars with `sk_`.
|
||||||
|
- Paste the **Client Secret** in the **Client Secret** field in the WorkOS settings in the Nhost Dashboard.
|
||||||
|
|
||||||
|
## Get Organization ID
|
||||||
|
|
||||||
|
- In the WorkOS dashboard, click on **Organizations** in the left menu.
|
||||||
|
- Click on **Create an Organization**.
|
||||||
|
- Fill in the organization details and click on **Create Organization**.
|
||||||
|
- Click on the newly created organization.
|
||||||
|
- Copy the **Organization ID**, which stars with `org_`.
|
||||||
|
- Paste the **Organization ID** in the **Organization ID** field in the WorkOS settings in the Nhost Dashboard.
|
||||||
|
- Click **Save** in the Nhost Dashboard to save all WorkOS settings.
|
||||||
|
|
||||||
|
The WorkOS configuration is now completed with Nhost.
|
||||||
|
|
||||||
|
See the [WorkOS documentation](https://workos.com/docs/) to learn more about how to configure WorkOS.
|
||||||
|
|
||||||
|
## Sign In Users
|
||||||
|
|
||||||
|
Use the [Nhost JavaScript client](/reference/javascript) to sign in users:
|
||||||
|
|
||||||
|
```js
|
||||||
|
nhost.auth.signIn({
|
||||||
|
provider: 'workos'
|
||||||
|
})
|
||||||
|
```
|
||||||
@@ -88,6 +88,26 @@ custom_claims: '{"organisation-id":"user.profile.organisation.id"}'
|
|||||||
|
|
||||||
JSON columns cannot be used in custom claims, with the exception of the `users.metadata` column.
|
JSON columns cannot be used in custom claims, with the exception of the `users.metadata` column.
|
||||||
|
|
||||||
|
### Arrays
|
||||||
|
|
||||||
|
When the target value is expected to be an array, it is important to explicitly add a `[]` at the end of the expression. For instance: if `organisationIds` is expected to be an array, you must set the expression to `organisationIds[]`. It will otherwise return a litteral when the array is a singleton.
|
||||||
|
|
||||||
|
✅ Singleton array with `'{"organisation-ids":"organisationIds[]"}'`
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"x-hasura-organisation-ids": "{\"org-id-1\"}"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
🛑 Singleton array with `'{"organisation-ids":"organisationIds"}'`
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"x-hasura-organisation-ids": "org-id-1"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Roles
|
## Roles
|
||||||
|
|
||||||
Every GraphQL request is resolved based on a **single role**. Roles are added in the Hasura Console when selecting a table and clicking **Permisisons**.
|
Every GraphQL request is resolved based on a **single role**. Roles are added in the Hasura Console when selecting a table and clicking **Permisisons**.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/docs",
|
"name": "@nhost/docs",
|
||||||
"version": "0.0.4",
|
"version": "0.0.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"docusaurus": "docusaurus",
|
"docusaurus": "docusaurus",
|
||||||
|
|||||||
BIN
docs/static/img/og/sign-in-with-workos.png
vendored
Normal file
BIN
docs/static/img/og/sign-in-with-workos.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 167 KiB |
24
docs/static/img/social-providers/workos-preview.svg
vendored
Normal file
24
docs/static/img/social-providers/workos-preview.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 55 KiB |
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '5432:5432'
|
- '5432:5432'
|
||||||
graphql-engine:
|
graphql-engine:
|
||||||
image: hasura/graphql-engine:v2.2.0
|
image: hasura/graphql-engine:v2.15.2
|
||||||
depends_on:
|
depends_on:
|
||||||
- 'postgres'
|
- 'postgres'
|
||||||
restart: always
|
restart: always
|
||||||
@@ -72,7 +72,7 @@ services:
|
|||||||
- "traefik.http.routers.auth.middlewares=strip-auth@docker"
|
- "traefik.http.routers.auth.middlewares=strip-auth@docker"
|
||||||
- "traefik.http.routers.auth.entrypoints=web"
|
- "traefik.http.routers.auth.entrypoints=web"
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.1
|
image: nhost/hasura-storage:0.3.1
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- graphql-engine
|
- graphql-engine
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
@@ -15,7 +15,7 @@ auth:
|
|||||||
allowed_emails: ''
|
allowed_emails: ''
|
||||||
blocked_email_domains: ''
|
blocked_email_domains: ''
|
||||||
blocked_emails: ''
|
blocked_emails: ''
|
||||||
allowed_redirect_urls: 'http://127.0.0.1:3000'
|
allowed_redirect_urls: http://127.0.0.1:3000
|
||||||
anonymous_users_enabled: true
|
anonymous_users_enabled: true
|
||||||
client_url: http://localhost:3000
|
client_url: http://localhost:3000
|
||||||
disable_new_users: false
|
disable_new_users: false
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ services:
|
|||||||
hasura:
|
hasura:
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
minio:
|
minio:
|
||||||
environment:
|
environment:
|
||||||
minio_root_password: minioaccesskey123123
|
minio_root_password: minioaccesskey123123
|
||||||
@@ -13,9 +13,9 @@ services:
|
|||||||
postgres_password: postgres
|
postgres_password: postgres
|
||||||
postgres_user: postgres
|
postgres_user: postgres
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
webauthn:
|
webauthn:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.7
|
image: nhost/hasura-storage:0.3.0
|
||||||
hasura:
|
hasura:
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
|
image: hasura/graphql-engine:v2.15.2
|
||||||
minio:
|
minio:
|
||||||
environment:
|
environment:
|
||||||
minio_root_password: minioaccesskey123123
|
minio_root_password: minioaccesskey123123
|
||||||
@@ -13,6 +14,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
postgres_password: postgres
|
postgres_password: postgres
|
||||||
postgres_user: postgres
|
postgres_user: postgres
|
||||||
|
auth:
|
||||||
|
image: nhost/hasura-auth:0.16.1
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ services:
|
|||||||
hasura:
|
hasura:
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
|
image: hasura/graphql-engine:v2.15.2
|
||||||
minio:
|
minio:
|
||||||
environment:
|
environment:
|
||||||
minio_root_password: minioaccesskey123123
|
minio_root_password: minioaccesskey123123
|
||||||
@@ -11,15 +12,19 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
postgres_password: postgres
|
postgres_password: postgres
|
||||||
postgres_user: postgres
|
postgres_user: postgres
|
||||||
|
auth:
|
||||||
|
image: nhost/hasura-auth:0.16.1
|
||||||
|
storage:
|
||||||
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
allowed_email_domains: ""
|
allowed_email_domains: ''
|
||||||
allowed_emails: ""
|
allowed_emails: ''
|
||||||
blocked_email_domains: ""
|
blocked_email_domains: ''
|
||||||
blocked_emails: ""
|
blocked_emails: ''
|
||||||
url:
|
url:
|
||||||
allowed_redirect_urls: ""
|
allowed_redirect_urls: ''
|
||||||
anonymous_users_enabled: false
|
anonymous_users_enabled: false
|
||||||
client_url: http://localhost:3000
|
client_url: http://localhost:3000
|
||||||
disable_new_users: false
|
disable_new_users: false
|
||||||
@@ -28,11 +33,11 @@ auth:
|
|||||||
passwordless:
|
passwordless:
|
||||||
enabled: false
|
enabled: false
|
||||||
signin_email_verified_required: true
|
signin_email_verified_required: true
|
||||||
template_fetch_url: ""
|
template_fetch_url: ''
|
||||||
gravatar:
|
gravatar:
|
||||||
default: ""
|
default: ''
|
||||||
enabled: true
|
enabled: true
|
||||||
rating: ""
|
rating: ''
|
||||||
locale:
|
locale:
|
||||||
allowed: en
|
allowed: en
|
||||||
default: en
|
default: en
|
||||||
@@ -41,65 +46,65 @@ auth:
|
|||||||
min_length: 3
|
min_length: 3
|
||||||
provider:
|
provider:
|
||||||
apple:
|
apple:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
key_id: ""
|
key_id: ''
|
||||||
private_key: ""
|
private_key: ''
|
||||||
scope: name,email
|
scope: name,email
|
||||||
team_id: ""
|
team_id: ''
|
||||||
bitbucket:
|
bitbucket:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
facebook:
|
facebook:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: email,photos,displayName
|
scope: email,photos,displayName
|
||||||
github:
|
github:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: user:email
|
scope: user:email
|
||||||
token_url: ""
|
token_url: ''
|
||||||
user_profile_url: ""
|
user_profile_url: ''
|
||||||
gitlab:
|
gitlab:
|
||||||
base_url: ""
|
base_url: ''
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: read_user
|
scope: read_user
|
||||||
google:
|
google:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: email,profile
|
scope: email,profile
|
||||||
linkedin:
|
linkedin:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: r_emailaddress,r_liteprofile
|
scope: r_emailaddress,r_liteprofile
|
||||||
spotify:
|
spotify:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: user-read-email,user-read-private
|
scope: user-read-email,user-read-private
|
||||||
strava:
|
strava:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
twilio:
|
twilio:
|
||||||
account_sid: ""
|
account_sid: ''
|
||||||
auth_token: ""
|
auth_token: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
messaging_service_id: ""
|
messaging_service_id: ''
|
||||||
twitter:
|
twitter:
|
||||||
consumer_key: ""
|
consumer_key: ''
|
||||||
consumer_secret: ""
|
consumer_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
windows_live:
|
windows_live:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: wl.basic,wl.emails,wl.contacts_emails
|
scope: wl.basic,wl.emails,wl.contacts_emails
|
||||||
sms:
|
sms:
|
||||||
@@ -108,13 +113,13 @@ auth:
|
|||||||
enabled: false
|
enabled: false
|
||||||
provider:
|
provider:
|
||||||
twilio:
|
twilio:
|
||||||
account_sid: ""
|
account_sid: ''
|
||||||
auth_token: ""
|
auth_token: ''
|
||||||
from: ""
|
from: ''
|
||||||
messaging_service_id: ""
|
messaging_service_id: ''
|
||||||
smtp:
|
smtp:
|
||||||
host: mailhog
|
host: mailhog
|
||||||
method: ""
|
method: ''
|
||||||
pass: password
|
pass: password
|
||||||
port: 1025
|
port: 1025
|
||||||
secure: false
|
secure: false
|
||||||
|
|||||||
9
examples/serverless-functions/CHANGELOG.md
Normal file
9
examples/serverless-functions/CHANGELOG.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# @nhost-examples/serverless-functions
|
||||||
|
|
||||||
|
## 0.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 93db7182: feat(stripe-graphql-js): add charges, payment intents and connected accounts
|
||||||
|
- Updated dependencies [93db7182]
|
||||||
|
- @nhost/stripe-graphql-js@0.0.6
|
||||||
25
examples/serverless-functions/functions/async-await/index.ts
Normal file
25
examples/serverless-functions/functions/async-await/index.ts
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
- How to use async/await.
|
||||||
|
|
||||||
|
Test:
|
||||||
|
|
||||||
|
curl http://localhost:1337/v1/functions/async-await
|
||||||
|
*/
|
||||||
|
|
||||||
|
import fetch from 'cross-fetch'
|
||||||
|
import { Request, Response } from 'express'
|
||||||
|
|
||||||
|
// using async in the function signature
|
||||||
|
export default async (req: Request, res: Response) => {
|
||||||
|
// using await
|
||||||
|
const result = await fetch('//api.github.com/repos/nhost/nhost')
|
||||||
|
|
||||||
|
if (result.status >= 400) {
|
||||||
|
throw new Error('Bad response from server')
|
||||||
|
}
|
||||||
|
|
||||||
|
const repo = await result.json()
|
||||||
|
|
||||||
|
res.json(repo)
|
||||||
|
}
|
||||||
44
examples/serverless-functions/functions/send-email/index.ts
Normal file
44
examples/serverless-functions/functions/send-email/index.ts
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
- How to send an email via SMTP.
|
||||||
|
|
||||||
|
Test:
|
||||||
|
|
||||||
|
curl http://localhost:1337/v1/functions/send-email
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Request, Response } from 'express'
|
||||||
|
import nodemailer from 'nodemailer'
|
||||||
|
|
||||||
|
export default async (req: Request, res: Response) => {
|
||||||
|
// Only needed if you don't have a real mail account for testing
|
||||||
|
let testAccount = await nodemailer.createTestAccount()
|
||||||
|
|
||||||
|
// create reusable transporter object using the default SMTP transport
|
||||||
|
let transporter = nodemailer.createTransport({
|
||||||
|
host: 'smtp.ethereal.email',
|
||||||
|
port: 587,
|
||||||
|
secure: false, // true for 465, false for other ports
|
||||||
|
auth: {
|
||||||
|
user: testAccount.user, // generated ethereal user
|
||||||
|
pass: testAccount.pass // generated ethereal password
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// send mail with defined transport object
|
||||||
|
let info = await transporter.sendMail({
|
||||||
|
from: '"Fred Foo 👻" <foo@example.com>', // sender address
|
||||||
|
to: 'bar@example.com, baz@example.com', // list of receivers
|
||||||
|
subject: 'Hello ✔', // Subject line
|
||||||
|
text: 'Hello world?', // plain text body
|
||||||
|
html: '<b>Hello world?</b>' // html body
|
||||||
|
})
|
||||||
|
|
||||||
|
console.log('Message sent: %s', info.messageId)
|
||||||
|
// Message sent: <b658f8ca-6296-ccf4-8306-87d57a0b4321@example.com>
|
||||||
|
|
||||||
|
// Preview only available when sending through an Ethereal account
|
||||||
|
console.log('Preview URL: %s', nodemailer.getTestMessageUrl(info))
|
||||||
|
|
||||||
|
res.json('Message sent')
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ services:
|
|||||||
hasura:
|
hasura:
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
|
image: hasura/graphql-engine:v2.15.2
|
||||||
minio:
|
minio:
|
||||||
environment:
|
environment:
|
||||||
minio_root_password: minioaccesskey123123
|
minio_root_password: minioaccesskey123123
|
||||||
@@ -11,15 +12,19 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
postgres_password: postgres
|
postgres_password: postgres
|
||||||
postgres_user: postgres
|
postgres_user: postgres
|
||||||
|
auth:
|
||||||
|
image: nhost/hasura-auth:0.16.1
|
||||||
|
storage:
|
||||||
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
allowed_email_domains: ""
|
allowed_email_domains: ''
|
||||||
allowed_emails: ""
|
allowed_emails: ''
|
||||||
blocked_email_domains: ""
|
blocked_email_domains: ''
|
||||||
blocked_emails: ""
|
blocked_emails: ''
|
||||||
url:
|
url:
|
||||||
allowed_redirect_urls: ""
|
allowed_redirect_urls: ''
|
||||||
anonymous_users_enabled: false
|
anonymous_users_enabled: false
|
||||||
client_url: http://localhost:3000
|
client_url: http://localhost:3000
|
||||||
disable_new_users: false
|
disable_new_users: false
|
||||||
@@ -28,11 +33,11 @@ auth:
|
|||||||
passwordless:
|
passwordless:
|
||||||
enabled: false
|
enabled: false
|
||||||
signin_email_verified_required: true
|
signin_email_verified_required: true
|
||||||
template_fetch_url: ""
|
template_fetch_url: ''
|
||||||
gravatar:
|
gravatar:
|
||||||
default: ""
|
default: ''
|
||||||
enabled: true
|
enabled: true
|
||||||
rating: ""
|
rating: ''
|
||||||
locale:
|
locale:
|
||||||
allowed: en
|
allowed: en
|
||||||
default: en
|
default: en
|
||||||
@@ -41,65 +46,65 @@ auth:
|
|||||||
min_length: 3
|
min_length: 3
|
||||||
provider:
|
provider:
|
||||||
apple:
|
apple:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
key_id: ""
|
key_id: ''
|
||||||
private_key: ""
|
private_key: ''
|
||||||
scope: name,email
|
scope: name,email
|
||||||
team_id: ""
|
team_id: ''
|
||||||
bitbucket:
|
bitbucket:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
facebook:
|
facebook:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: email,photos,displayName
|
scope: email,photos,displayName
|
||||||
github:
|
github:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: user:email
|
scope: user:email
|
||||||
token_url: ""
|
token_url: ''
|
||||||
user_profile_url: ""
|
user_profile_url: ''
|
||||||
gitlab:
|
gitlab:
|
||||||
base_url: ""
|
base_url: ''
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: read_user
|
scope: read_user
|
||||||
google:
|
google:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: email,profile
|
scope: email,profile
|
||||||
linkedin:
|
linkedin:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: r_emailaddress,r_liteprofile
|
scope: r_emailaddress,r_liteprofile
|
||||||
spotify:
|
spotify:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: user-read-email,user-read-private
|
scope: user-read-email,user-read-private
|
||||||
strava:
|
strava:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
twilio:
|
twilio:
|
||||||
account_sid: ""
|
account_sid: ''
|
||||||
auth_token: ""
|
auth_token: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
messaging_service_id: ""
|
messaging_service_id: ''
|
||||||
twitter:
|
twitter:
|
||||||
consumer_key: ""
|
consumer_key: ''
|
||||||
consumer_secret: ""
|
consumer_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
windows_live:
|
windows_live:
|
||||||
client_id: ""
|
client_id: ''
|
||||||
client_secret: ""
|
client_secret: ''
|
||||||
enabled: false
|
enabled: false
|
||||||
scope: wl.basic,wl.emails,wl.contacts_emails
|
scope: wl.basic,wl.emails,wl.contacts_emails
|
||||||
sms:
|
sms:
|
||||||
@@ -108,13 +113,13 @@ auth:
|
|||||||
enabled: false
|
enabled: false
|
||||||
provider:
|
provider:
|
||||||
twilio:
|
twilio:
|
||||||
account_sid: ""
|
account_sid: ''
|
||||||
auth_token: ""
|
auth_token: ''
|
||||||
from: ""
|
from: ''
|
||||||
messaging_service_id: ""
|
messaging_service_id: ''
|
||||||
smtp:
|
smtp:
|
||||||
host: mailhog
|
host: mailhog
|
||||||
method: ""
|
method: ''
|
||||||
pass: password
|
pass: password
|
||||||
port: 1025
|
port: 1025
|
||||||
secure: false
|
secure: false
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/serverless-functions",
|
"name": "@nhost-examples/serverless-functions",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/express": "^4.17.13"
|
"@types/express": "^4.17.13"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@graphql-yoga/node": "^2.13.13",
|
"@graphql-yoga/node": "^2.13.13",
|
||||||
"@nhost/stripe-graphql-js": "^0.0.5",
|
"@nhost/stripe-graphql-js": "^0.0.6",
|
||||||
"@pothos/core": "^3.21.0",
|
"@pothos/core": "^3.21.0",
|
||||||
|
"cross-fetch": "^3.1.5",
|
||||||
"graphql": "15.7.2",
|
"graphql": "15.7.2",
|
||||||
|
"nodemailer": "^6.8.0",
|
||||||
"slugify": "^1.6.5"
|
"slugify": "^1.6.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/stripe-graphql-js
|
# @nhost/stripe-graphql-js
|
||||||
|
|
||||||
|
## 0.0.6
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 93db7182: feat(stripe-graphql-js): add charges, payment intents and connected accounts
|
||||||
|
|
||||||
## 0.0.5
|
## 0.0.5
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -197,6 +197,14 @@ Start the development server:
|
|||||||
pnpm dev
|
pnpm dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Include the correct admin secret header for admin access
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
"x-hasura-admin-secret":"<secret value matching your NHOST_ADMIN_SECRET environment variable>"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
The GraphQL Server will reload every time the code changes.
|
The GraphQL Server will reload every time the code changes.
|
||||||
|
|
||||||
Open GraphiQL:
|
Open GraphiQL:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/stripe-graphql-js",
|
"name": "@nhost/stripe-graphql-js",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"description": "Stripe GraphQL API",
|
"description": "Stripe GraphQL API",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -3,7 +3,13 @@ import Stripe from 'stripe'
|
|||||||
|
|
||||||
import SchemaBuilder from '@pothos/core'
|
import SchemaBuilder from '@pothos/core'
|
||||||
|
|
||||||
import { Context, StripeInvoice, StripePaymentMethod, StripeSubscription } from './types'
|
import {
|
||||||
|
Context,
|
||||||
|
StripeCharge,
|
||||||
|
StripeInvoice,
|
||||||
|
StripePaymentIntent,
|
||||||
|
StripePaymentMethod,
|
||||||
|
StripeSubscription} from './types'
|
||||||
|
|
||||||
// TODO: Make sure we either use Type or Types (e.g. StripePaymentMethodTypes or StripePaymentMethodType ) everywhere
|
// TODO: Make sure we either use Type or Types (e.g. StripePaymentMethodTypes or StripePaymentMethodType ) everywhere
|
||||||
|
|
||||||
@@ -93,6 +99,18 @@ const builder = new SchemaBuilder<{
|
|||||||
|
|
||||||
// BILLING PORTAL
|
// BILLING PORTAL
|
||||||
StripeBillingPortalSession: Stripe.BillingPortal.Session
|
StripeBillingPortalSession: Stripe.BillingPortal.Session
|
||||||
|
|
||||||
|
// PAYMENT INTENT
|
||||||
|
StripePaymentIntent: StripePaymentIntent
|
||||||
|
StripePaymentIntents: Stripe.ApiList<StripePaymentIntent>
|
||||||
|
|
||||||
|
// CHARGES
|
||||||
|
StripeCharge: StripeCharge
|
||||||
|
StripeCharges: Stripe.ApiList<StripeCharge>
|
||||||
|
|
||||||
|
// CONNECTED ACCOUNTS
|
||||||
|
StripeConnectedAccount: Stripe.Account
|
||||||
|
StripeConnectedAccounts: Stripe.ApiList<Stripe.Account>
|
||||||
}
|
}
|
||||||
Context: Context
|
Context: Context
|
||||||
}>({})
|
}>({})
|
||||||
|
|||||||
82
integrations/stripe-graphql-js/src/schema/charge.ts
Normal file
82
integrations/stripe-graphql-js/src/schema/charge.ts
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
import Stripe from 'stripe'
|
||||||
|
|
||||||
|
import { builder } from '../builder'
|
||||||
|
import { StripeInvoice } from '../types'
|
||||||
|
import { stripe } from '../utils'
|
||||||
|
|
||||||
|
builder.objectType('StripeCharge', {
|
||||||
|
description: 'Stripe charge object',
|
||||||
|
fields: (t) => ({
|
||||||
|
id: t.exposeString('id'),
|
||||||
|
customer: t.exposeString('customer'),
|
||||||
|
amount: t.exposeInt('amount'),
|
||||||
|
amountCaptured: t.exposeInt('amount_captured'),
|
||||||
|
amountRefunded: t.exposeInt('amount_refunded'),
|
||||||
|
applicationFeeAmount: t.exposeInt('application_fee_amount', { nullable: true }),
|
||||||
|
calculatedStatementDescriptor: t.exposeString('calculated_statement_descriptor', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
billingDetails: t.expose('billing_details', { type: 'JSON', nullable: true }),
|
||||||
|
captured: t.exposeBoolean('captured'),
|
||||||
|
created: t.exposeInt('created', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
currency: t.exposeString('currency'),
|
||||||
|
description: t.exposeString('description', { nullable: true }),
|
||||||
|
disputed: t.exposeBoolean('disputed'),
|
||||||
|
failureCode: t.exposeString('failure_code', { nullable: true }),
|
||||||
|
invoice: t.field({
|
||||||
|
type: 'StripeInvoice',
|
||||||
|
nullable: true,
|
||||||
|
resolve: async (charge) => {
|
||||||
|
const { invoice } = charge
|
||||||
|
|
||||||
|
if (!invoice) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
const invoiceData = await stripe.invoices.retrieve(invoice as string)
|
||||||
|
|
||||||
|
return invoiceData as Stripe.Response<StripeInvoice>
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
application: t.field({
|
||||||
|
type: 'StripeConnectedAccount',
|
||||||
|
nullable: true,
|
||||||
|
resolve: async (charge) => {
|
||||||
|
const { application } = charge
|
||||||
|
if (!application) return null
|
||||||
|
|
||||||
|
const connectedAccount = await stripe.accounts.retrieve(application as string)
|
||||||
|
|
||||||
|
return connectedAccount
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
livemode: t.exposeBoolean('livemode'),
|
||||||
|
metadata: t.expose('metadata', { nullable: true, type: 'JSON' }),
|
||||||
|
outcome: t.expose('outcome', { nullable: true, type: 'JSON' }),
|
||||||
|
fraudDetails: t.expose('fraud_details', { nullable: true, type: 'JSON' }),
|
||||||
|
paid: t.exposeBoolean('paid'),
|
||||||
|
receiptEmail: t.exposeString('receipt_email', { nullable: true }),
|
||||||
|
receiptNumber: t.exposeString('receipt_number', { nullable: true }),
|
||||||
|
receiptUrl: t.exposeString('receipt_url', { nullable: true }),
|
||||||
|
refunded: t.exposeBoolean('refunded'),
|
||||||
|
shipping: t.expose('shipping', { nullable: true, type: 'JSON' }),
|
||||||
|
statementDescriptor: t.exposeString('statement_descriptor', { nullable: true }),
|
||||||
|
statementDescriptorSuffix: t.exposeString('statement_descriptor_suffix', { nullable: true }),
|
||||||
|
status: t.exposeString('status'),
|
||||||
|
transferData: t.expose('transfer_data', { nullable: true, type: 'JSON' }),
|
||||||
|
transferGroup: t.exposeString('transfer_group', { nullable: true }),
|
||||||
|
refunds: t.expose('refunds', { nullable: true, type: 'JSON' }),
|
||||||
|
paymentMethodDetails: t.expose('payment_method_details', { nullable: true, type: 'JSON' }),
|
||||||
|
paymentIntent: t.exposeString('payment_intent', { nullable: true }),
|
||||||
|
paymentMethod: t.exposeString('payment_method', { nullable: true })
|
||||||
|
|
||||||
|
// todo: add missing fields
|
||||||
|
// application_fee
|
||||||
|
// balance_transaction
|
||||||
|
// on_behalf_of
|
||||||
|
// failure_balance_transaction
|
||||||
|
// source_transfer
|
||||||
|
})
|
||||||
|
})
|
||||||
14
integrations/stripe-graphql-js/src/schema/charges.ts
Normal file
14
integrations/stripe-graphql-js/src/schema/charges.ts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import { builder } from '../builder'
|
||||||
|
|
||||||
|
builder.objectType('StripeCharges', {
|
||||||
|
description: 'List of Stripe charge objects',
|
||||||
|
fields: (t) => ({
|
||||||
|
object: t.exposeString('object'),
|
||||||
|
url: t.exposeString('url'),
|
||||||
|
hasMore: t.exposeBoolean('has_more'),
|
||||||
|
data: t.expose('data', {
|
||||||
|
type: ['StripeCharge'],
|
||||||
|
nullable: false
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import { builder } from '../builder'
|
||||||
|
|
||||||
|
builder.objectType('StripeConnectedAccount', {
|
||||||
|
description: 'Stripe charge object',
|
||||||
|
fields: (t) => ({
|
||||||
|
id: t.exposeString('id'),
|
||||||
|
object: t.exposeString('object'),
|
||||||
|
country: t.exposeString('country', { nullable: true }),
|
||||||
|
businessType: t.exposeString('business_type', { nullable: true }),
|
||||||
|
capabilities: t.expose('capabilities', { type: 'JSON' }),
|
||||||
|
company: t.expose('company', { type: 'JSON' }),
|
||||||
|
email: t.exposeString('email', { nullable: true }),
|
||||||
|
individual: t.expose('individual', { type: 'JSON' }),
|
||||||
|
metadata: t.expose('metadata', { type: 'JSON' }),
|
||||||
|
requirements: t.expose('requirements', { type: 'JSON' }),
|
||||||
|
tosAcceptance: t.expose('tos_acceptance', { type: 'JSON' }),
|
||||||
|
businessProfile: t.expose('business_profile', { type: 'JSON' }),
|
||||||
|
chargesEnabled: t.exposeBoolean('charges_enabled'),
|
||||||
|
controller: t.expose('controller', { nullable: true, type: 'JSON' }),
|
||||||
|
created: t.exposeInt('created', { nullable: true }),
|
||||||
|
defaultCurrency: t.exposeString('default_currency', { nullable: true }),
|
||||||
|
detailsSubmitted: t.exposeBoolean('details_submitted'),
|
||||||
|
externalAccounts: t.expose('external_accounts', { type: 'JSON' }),
|
||||||
|
futureRequirements: t.expose('future_requirements', { type: 'JSON' }),
|
||||||
|
payoutsEnabled: t.exposeBoolean('payouts_enabled'),
|
||||||
|
settings: t.expose('settings', { type: 'JSON' })
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { builder } from '../builder'
|
||||||
|
|
||||||
|
builder.objectType('StripeConnectedAccounts', {
|
||||||
|
description: 'List of Stripe Connected Account objects',
|
||||||
|
fields: (t) => ({
|
||||||
|
object: t.exposeString('object'),
|
||||||
|
url: t.exposeString('url'),
|
||||||
|
hasMore: t.exposeBoolean('has_more'),
|
||||||
|
data: t.expose('data', {
|
||||||
|
type: ['StripeConnectedAccount'],
|
||||||
|
nullable: false
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
import Stripe from 'stripe'
|
import Stripe from 'stripe'
|
||||||
|
|
||||||
import { builder } from '../builder'
|
import { builder } from '../builder'
|
||||||
import { StripeInvoice, StripePaymentMethod, StripeSubscription } from '../types'
|
import {
|
||||||
|
StripeCharge,
|
||||||
|
StripeInvoice,
|
||||||
|
StripePaymentIntent,
|
||||||
|
StripePaymentMethod,
|
||||||
|
StripeSubscription} from '../types'
|
||||||
import { stripe } from '../utils'
|
import { stripe } from '../utils'
|
||||||
|
|
||||||
import { StripePaymentMethodTypes } from './payment-methods'
|
import { StripePaymentMethodTypes } from './payment-methods'
|
||||||
@@ -110,6 +115,16 @@ builder.objectType('StripeCustomer', {
|
|||||||
return invoices as Stripe.Response<Stripe.ApiList<StripeInvoice>>
|
return invoices as Stripe.Response<Stripe.ApiList<StripeInvoice>>
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
paymentIntents: t.field({
|
||||||
|
type: 'StripePaymentIntents',
|
||||||
|
nullable: false,
|
||||||
|
resolve: async (customer) => {
|
||||||
|
const paymentIntents = await stripe.paymentIntents.list({
|
||||||
|
customer: customer.id
|
||||||
|
})
|
||||||
|
return paymentIntents as Stripe.Response<Stripe.ApiList<StripePaymentIntent>>
|
||||||
|
}
|
||||||
|
}),
|
||||||
paymentMethods: t.field({
|
paymentMethods: t.field({
|
||||||
type: 'StripePaymentMethods',
|
type: 'StripePaymentMethods',
|
||||||
args: {
|
args: {
|
||||||
@@ -138,6 +153,16 @@ builder.objectType('StripeCustomer', {
|
|||||||
})
|
})
|
||||||
return paymentMethods as Stripe.Response<Stripe.ApiList<StripePaymentMethod>>
|
return paymentMethods as Stripe.Response<Stripe.ApiList<StripePaymentMethod>>
|
||||||
}
|
}
|
||||||
|
}),
|
||||||
|
charges: t.field({
|
||||||
|
type: 'StripeCharges',
|
||||||
|
nullable: false,
|
||||||
|
resolve: async (customer) => {
|
||||||
|
const charges = await stripe.charges.list({
|
||||||
|
customer: customer.id
|
||||||
|
})
|
||||||
|
return charges as Stripe.Response<Stripe.ApiList<StripeCharge>>
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -42,6 +42,12 @@ import './product'
|
|||||||
import './tax-rate'
|
import './tax-rate'
|
||||||
import './test-clock'
|
import './test-clock'
|
||||||
import './billing-portal-session'
|
import './billing-portal-session'
|
||||||
|
import './payment-intent'
|
||||||
|
import './payment-intents'
|
||||||
|
import './charges'
|
||||||
|
import './charge'
|
||||||
|
import './connectedAccount'
|
||||||
|
import './connectedAccounts'
|
||||||
|
|
||||||
import { builder } from '../builder'
|
import { builder } from '../builder'
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,18 @@ builder.objectType('StripeInvoice', {
|
|||||||
amountRemaining: t.exposeInt('amount_remaining', {
|
amountRemaining: t.exposeInt('amount_remaining', {
|
||||||
description: `The difference between amount_due and amount_paid, in %s.`
|
description: `The difference between amount_due and amount_paid, in %s.`
|
||||||
}),
|
}),
|
||||||
// todo: application
|
application: t.field({
|
||||||
|
type: 'StripeConnectedAccount',
|
||||||
|
nullable: true,
|
||||||
|
resolve: async (invoice) => {
|
||||||
|
const { application } = invoice
|
||||||
|
if (!application) return null
|
||||||
|
|
||||||
|
const connectedAccount = await stripe.accounts.retrieve(application as string)
|
||||||
|
|
||||||
|
return connectedAccount
|
||||||
|
}
|
||||||
|
}),
|
||||||
applicationFeeAmount: t.exposeInt('application_fee_amount', {
|
applicationFeeAmount: t.exposeInt('application_fee_amount', {
|
||||||
description: `The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.`,
|
description: `The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.`,
|
||||||
nullable: true
|
nullable: true
|
||||||
|
|||||||
75
integrations/stripe-graphql-js/src/schema/payment-intent.ts
Normal file
75
integrations/stripe-graphql-js/src/schema/payment-intent.ts
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
import Stripe from 'stripe'
|
||||||
|
|
||||||
|
import { builder } from '../builder'
|
||||||
|
import { StripeInvoice } from '../types'
|
||||||
|
import { stripe } from '../utils'
|
||||||
|
|
||||||
|
builder.objectType('StripePaymentIntent', {
|
||||||
|
description: 'Payment intents',
|
||||||
|
fields: (t) => ({
|
||||||
|
id: t.exposeString('id'),
|
||||||
|
object: t.exposeString('object'),
|
||||||
|
amount: t.exposeInt('amount'),
|
||||||
|
currency: t.exposeString('currency'),
|
||||||
|
description: t.exposeString('description', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
metadata: t.expose('metadata', {
|
||||||
|
type: 'JSON',
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
paymentMethodTypes: t.exposeStringList('payment_method_types'),
|
||||||
|
statementDescriptor: t.exposeString('statement_descriptor', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
statementDescriptorSuffix: t.exposeString('statement_descriptor_suffix', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
receiptEmail: t.exposeString('receipt_email', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
customer: t.exposeString('customer'),
|
||||||
|
amountCapturable: t.exposeInt('amount_capturable'),
|
||||||
|
amountDetails: t.expose('amount_details', {
|
||||||
|
nullable: true,
|
||||||
|
type: 'JSON'
|
||||||
|
}),
|
||||||
|
amountReceived: t.exposeInt('amount_received'),
|
||||||
|
|
||||||
|
applicationFeeAmount: t.exposeInt('application_fee_amount', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
canceledAt: t.exposeInt('canceled_at', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
transferGroup: t.exposeString('transfer_group', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
cancellationReason: t.exposeString('cancellation_reason', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
created: t.exposeInt('created', {
|
||||||
|
nullable: true
|
||||||
|
}),
|
||||||
|
status: t.exposeString('status'),
|
||||||
|
invoice: t.field({
|
||||||
|
type: 'StripeInvoice',
|
||||||
|
nullable: true,
|
||||||
|
resolve: async (paymentIntent) => {
|
||||||
|
const { invoice } = paymentIntent
|
||||||
|
|
||||||
|
if (!invoice) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
const invoiceData = await stripe.invoices.retrieve(invoice as string)
|
||||||
|
|
||||||
|
return invoiceData as Stripe.Response<StripeInvoice>
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// todo: missing fields
|
||||||
|
// capture_method
|
||||||
|
// add charges
|
||||||
|
// application
|
||||||
|
})
|
||||||
|
})
|
||||||
13
integrations/stripe-graphql-js/src/schema/payment-intents.ts
Normal file
13
integrations/stripe-graphql-js/src/schema/payment-intents.ts
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { builder } from '../builder'
|
||||||
|
|
||||||
|
builder.objectType('StripePaymentIntents', {
|
||||||
|
fields: (t) => ({
|
||||||
|
object: t.exposeString('object'),
|
||||||
|
url: t.exposeString('url'),
|
||||||
|
hasMore: t.exposeBoolean('has_more'),
|
||||||
|
data: t.expose('data', {
|
||||||
|
type: ['StripePaymentIntent'],
|
||||||
|
nullable: false
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -7,6 +7,35 @@ import { stripe } from '../utils'
|
|||||||
|
|
||||||
builder.objectType('Stripe', {
|
builder.objectType('Stripe', {
|
||||||
fields: (t) => ({
|
fields: (t) => ({
|
||||||
|
connectedAccounts: t.field({
|
||||||
|
type: 'StripeConnectedAccounts',
|
||||||
|
resolve: async (_parent, _, context) => {
|
||||||
|
const { isAdmin } = context
|
||||||
|
|
||||||
|
if (!isAdmin) throw new GraphQLYogaError('Not allowed')
|
||||||
|
|
||||||
|
const connectedAccounts = await stripe.accounts.list()
|
||||||
|
|
||||||
|
return connectedAccounts
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
connectedAccount: t.field({
|
||||||
|
type: 'StripeConnectedAccount',
|
||||||
|
args: {
|
||||||
|
id: t.arg.string({
|
||||||
|
required: true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
resolve: async (_parent, { id }, context) => {
|
||||||
|
const { isAdmin } = context
|
||||||
|
|
||||||
|
if (!isAdmin) throw new GraphQLYogaError('Not allowed')
|
||||||
|
|
||||||
|
const connectedAccount = await stripe.accounts.retrieve(id)
|
||||||
|
|
||||||
|
return connectedAccount
|
||||||
|
}
|
||||||
|
}),
|
||||||
customer: t.field({
|
customer: t.field({
|
||||||
type: 'StripeCustomer',
|
type: 'StripeCustomer',
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
@@ -31,6 +31,16 @@ export type StripeInvoice = Stripe.Invoice & {
|
|||||||
id: string
|
id: string
|
||||||
customer: string
|
customer: string
|
||||||
default_payment_method: StripePaymentMethod | null
|
default_payment_method: StripePaymentMethod | null
|
||||||
|
payment_intent: any
|
||||||
|
}
|
||||||
|
|
||||||
|
export type StripePaymentIntent = Stripe.PaymentIntent & {
|
||||||
|
customer: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type StripeCharge = Stripe.Charge & {
|
||||||
|
customer: string
|
||||||
|
payment_intent: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UserHasuraClaims = {
|
export type UserHasuraClaims = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Docker image versions used in the cloud
|
# Docker image versions used in the cloud
|
||||||
hasura: v2.10.1
|
hasura: v2.15.2
|
||||||
auth: 0.15.0
|
auth: 0.16.1
|
||||||
storage: 0.2.5
|
storage: 0.3.0
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
services:
|
services:
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.10.1
|
image: hasura/graphql-engine:v2.15.2
|
||||||
environment:
|
environment:
|
||||||
hasura_graphql_enable_remote_schema_permissions: false
|
hasura_graphql_enable_remote_schema_permissions: false
|
||||||
auth:
|
auth:
|
||||||
image: nhost/hasura-auth:0.15.0
|
image: nhost/hasura-auth:0.16.1
|
||||||
storage:
|
storage:
|
||||||
image: nhost/hasura-storage:0.2.5
|
image: nhost/hasura-storage:0.3.0
|
||||||
auth:
|
auth:
|
||||||
access_control:
|
access_control:
|
||||||
email:
|
email:
|
||||||
|
|||||||
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
@@ -638,16 +638,20 @@ importers:
|
|||||||
examples/serverless-functions:
|
examples/serverless-functions:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@graphql-yoga/node': ^2.13.13
|
'@graphql-yoga/node': ^2.13.13
|
||||||
'@nhost/stripe-graphql-js': ^0.0.5
|
'@nhost/stripe-graphql-js': ^0.0.6
|
||||||
'@pothos/core': ^3.21.0
|
'@pothos/core': ^3.21.0
|
||||||
'@types/express': ^4.17.13
|
'@types/express': ^4.17.13
|
||||||
|
cross-fetch: ^3.1.5
|
||||||
graphql: 15.7.2
|
graphql: 15.7.2
|
||||||
|
nodemailer: ^6.8.0
|
||||||
slugify: ^1.6.5
|
slugify: ^1.6.5
|
||||||
dependencies:
|
dependencies:
|
||||||
'@graphql-yoga/node': 2.13.13_graphql@15.7.2
|
'@graphql-yoga/node': 2.13.13_graphql@15.7.2
|
||||||
'@nhost/stripe-graphql-js': link:../../integrations/stripe-graphql-js
|
'@nhost/stripe-graphql-js': link:../../integrations/stripe-graphql-js
|
||||||
'@pothos/core': 3.21.0_graphql@15.7.2
|
'@pothos/core': 3.21.0_graphql@15.7.2
|
||||||
|
cross-fetch: 3.1.5
|
||||||
graphql: 15.7.2
|
graphql: 15.7.2
|
||||||
|
nodemailer: 6.8.0
|
||||||
slugify: 1.6.5
|
slugify: 1.6.5
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@types/express': 4.17.13
|
'@types/express': 4.17.13
|
||||||
@@ -24109,6 +24113,11 @@ packages:
|
|||||||
/node-releases/2.0.6:
|
/node-releases/2.0.6:
|
||||||
resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==}
|
resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==}
|
||||||
|
|
||||||
|
/nodemailer/6.8.0:
|
||||||
|
resolution: {integrity: sha512-EjYvSmHzekz6VNkNd12aUqAco+bOkRe3Of5jVhltqKhEsjw/y0PYPJfp83+s9Wzh1dspYAkUW/YNQ350NATbSQ==}
|
||||||
|
engines: {node: '>=6.0.0'}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/normalize-package-data/2.5.0:
|
/normalize-package-data/2.5.0:
|
||||||
resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
|
resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user