-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ressources): branchement strapi pour l'envoi de la demande
- Loading branch information
Showing
10 changed files
with
213 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
INSTAGRAM_TOKEN="instagramtoken" | ||
NEXT_PUBLIC_API_URL=https://backoffice-1000jours-preprod.dev.fabrique.social.gouv.fr |
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,31 @@ | ||
import { ApolloClient, gql, InMemoryCache, HttpLink } from "@apollo/client" | ||
import fetch from "cross-fetch" | ||
import { API_URL } from "./src/utils/constants.util" | ||
|
||
export const client = new ApolloClient({ | ||
cache: new InMemoryCache(), | ||
headers: { "content-type": "application/json" }, | ||
link: new HttpLink({ uri: `${API_URL}/graphql?nocache`, fetch }), | ||
}) | ||
|
||
export const EPDS_CONTACT_INFORMATION = gql` | ||
mutation ( | ||
$email: String | ||
$telephone: String | ||
$prenom: String | ||
$nombreEnfants: Int | ||
$naissanceDernierEnfant: String | ||
$moyen: String | ||
$horaires: String | ||
) { | ||
epdsContact( | ||
email: $email | ||
telephone: $telephone | ||
prenom: $prenom | ||
nombre_enfants: $nombreEnfants | ||
naissance_dernier_enfant: $naissanceDernierEnfant | ||
moyen: $moyen | ||
horaires: $horaires | ||
) | ||
} | ||
` |
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 @@ | ||
export const API_URL = process.env.NEXT_PUBLIC_API_URL |
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