-
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.
- Loading branch information
1 parent
42439d5
commit 89b5fee
Showing
10 changed files
with
5,466 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
appsync/graphql.ts: graphql/schema.graphql | ||
if [ -z "$(IN_PIPELINE)" ] ; then \ | ||
docker run --rm -it --user $$(id -u):$$(id -g) -v $(PWD):/app -w /app/appsync --entrypoint ./node_modules/.bin/graphql-code-generator node:20 --config codegen.ts ; \ | ||
else \ | ||
echo Not re-auto-generating types file in pipeline | ||
fi |
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,14 @@ | ||
|
||
import type { CodegenConfig } from '@graphql-codegen/cli'; | ||
|
||
const config: CodegenConfig = { | ||
overwrite: true, | ||
schema: "../graphql/schema.graphql", | ||
generates: { | ||
"graphql.ts": { | ||
plugins: ["typescript"] | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
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,54 @@ | ||
export type Maybe<T> = T | null; | ||
export type InputMaybe<T> = Maybe<T>; | ||
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; | ||
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }; | ||
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }; | ||
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }; | ||
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; | ||
/** All built-in and custom scalars, mapped to their actual values */ | ||
export type Scalars = { | ||
ID: { input: string; output: string; } | ||
String: { input: string; output: string; } | ||
Boolean: { input: boolean; output: boolean; } | ||
Int: { input: number; output: number; } | ||
Float: { input: number; output: number; } | ||
AWSDateTime: { input: any; output: any; } | ||
}; | ||
|
||
export type CreateGameInput = { | ||
description?: InputMaybe<Scalars['String']['input']>; | ||
name: Scalars['String']['input']; | ||
}; | ||
|
||
export type Game = { | ||
__typename?: 'Game'; | ||
createdAt: Scalars['AWSDateTime']['output']; | ||
description?: Maybe<Scalars['String']['output']>; | ||
fireflyUserId: Scalars['ID']['output']; | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
players?: Maybe<Array<Scalars['ID']['output']>>; | ||
privateNotes?: Maybe<Scalars['String']['output']>; | ||
publicNotes?: Maybe<Scalars['String']['output']>; | ||
updatedAt: Scalars['AWSDateTime']['output']; | ||
}; | ||
|
||
export type Mutation = { | ||
__typename?: 'Mutation'; | ||
createGame: Game; | ||
}; | ||
|
||
|
||
export type MutationCreateGameArgs = { | ||
input: CreateGameInput; | ||
}; | ||
|
||
export type Query = { | ||
__typename?: 'Query'; | ||
getGame: Game; | ||
}; | ||
|
||
|
||
export type QueryGetGameArgs = { | ||
id: Scalars['ID']['input']; | ||
}; |
Oops, something went wrong.