-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GraphQL types package setup to include all types available (#722)
* refactor(graphql-types): export types for all services * refactor(graphql-types): export types for all services * refactor(graphql-types): exporting different entry points * refactor(graphql-types): add post-processing step * refactor: update models graphql types * refactor(graphql-types): remove support for different entry points * refactor(graphql-types): remove support for different entry points * refactor(generators): update generator to invlude graphql types package * refactor(graphql-types): apply regexp security suggestion * refactor(commons): adjust graphql types * refactor(graphql-types): apply review feedback * refactor(graphql-types): removed unnecessary dependencies
- Loading branch information
1 parent
3aff52c
commit 25e7de7
Showing
40 changed files
with
172,023 additions
and
897 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
schema: | ||
- '${MC_API_URL}/graphql': | ||
headers: | ||
Cookie: mcAccessToken=${MC_ACCESS_TOKEN} | ||
X-Graphql-Target: ctp | ||
X-Project-Key: ${CTP_PROJECT_KEY} | ||
extensions: | ||
codegen: | ||
generates: | ||
schemas/ctp.json: | ||
plugins: | ||
- introspection | ||
graphql-types/src/generated/ctp.ts: | ||
plugins: | ||
- typescript | ||
- typescript-operations | ||
config: | ||
typesPrefix: TCtp | ||
addUnderscoreToArgsType: true | ||
useImplementingTypes: true | ||
hooks: | ||
afterAllFileWrite: | ||
- prettier --write | ||
- node ./graphql-types/src/types-post-processor.mjs |
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
Oops, something went wrong.