-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from heitorlessa/twitch
EP2 - Catalog Service
- Loading branch information
Showing
13 changed files
with
2,670 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
projects: | ||
awsserverlessairline: | ||
schemaPath: src/graphql/schema.json | ||
includes: | ||
- src/graphql/**/*.js | ||
excludes: | ||
- ./amplify/** | ||
extensions: | ||
amplify: | ||
codeGenTarget: javascript | ||
generatedFileName: '' | ||
docsFilePath: src/graphql | ||
graphQLApiId: p3jpzjnkcjfnnjs2qcd7rafkum | ||
endpoints: | ||
prod: >- | ||
https://2byom2uph5gpzixmozba5rdsky.appsync-api.eu-west-1.amazonaws.com/graphql |
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,10 @@ | ||
{ | ||
"AppSyncApiName": "awsserverlessairline", | ||
"DynamoDBBillingMode": "PAY_PER_REQUEST", | ||
"AuthCognitoUserPoolId": { | ||
"Fn::GetAtt": [ | ||
"authserverlessaairlineauth", | ||
"Outputs.UserPoolId" | ||
] | ||
} | ||
} |
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,17 @@ | ||
|
||
type Flight @model { | ||
id: ID! | ||
departureDate: String! | ||
departureAirportCode: String! | ||
departureAirportName: String! | ||
departureCity: String! | ||
departureLocale: String! | ||
arrivalDate: String! | ||
arrivalAirportCode: String! | ||
arrivalAirportName: String! | ||
arrivalCity: String! | ||
arrivalLocale: String! | ||
ticketPrice: Int! | ||
ticketCurrency: String! | ||
flightNumber: Int! | ||
} |
61 changes: 61 additions & 0 deletions
61
amplify/backend/api/awsserverlessairline/stacks/CustomResources.json
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,61 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "An auto-generated nested stack.", | ||
"Metadata": {}, | ||
"Parameters": { | ||
"AppSyncApiId": { | ||
"Type": "String", | ||
"Description": "The id of the AppSync API associated with this project." | ||
}, | ||
"AppSyncApiName": { | ||
"Type": "String", | ||
"Description": "The name of the AppSync API", | ||
"Default": "AppSyncSimpleTransform" | ||
}, | ||
"env": { | ||
"Type": "String", | ||
"Description": "The environment name. e.g. Dev, Test, or Production", | ||
"Default": "NONE" | ||
}, | ||
"S3DeploymentBucket": { | ||
"Type": "String", | ||
"Description": "The S3 bucket containing all deployment assets for the project." | ||
}, | ||
"S3DeploymentRootKey": { | ||
"Type": "String", | ||
"Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." | ||
} | ||
}, | ||
"Resources": { | ||
"EmptyResource": { | ||
"Type": "Custom::EmptyResource", | ||
"Condition": "AlwaysFalse" | ||
} | ||
}, | ||
"Conditions": { | ||
"HasEnvironmentParameter": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Equals": [ | ||
{ | ||
"Ref": "env" | ||
}, | ||
"NONE" | ||
] | ||
} | ||
] | ||
}, | ||
"AlwaysFalse": { | ||
"Fn::Equals": [ | ||
"true", | ||
"false" | ||
] | ||
} | ||
}, | ||
"Outputs": { | ||
"EmptyOutput": { | ||
"Description": "An empty output. You may delete this if you have at least one resource above.", | ||
"Value": "" | ||
} | ||
} | ||
} |
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,60 @@ | ||
// eslint-disable | ||
// this is an auto generated file. This will be overwritten | ||
|
||
export const createFlight = `mutation CreateFlight($input: CreateFlightInput!) { | ||
createFlight(input: $input) { | ||
id | ||
departureDate | ||
departureAirportCode | ||
departureAirportName | ||
departureCity | ||
departureLocale | ||
arrivalDate | ||
arrivalAirportCode | ||
arrivalAirportName | ||
arrivalCity | ||
arrivalLocale | ||
ticketPrice | ||
ticketCurrency | ||
flightNumber | ||
} | ||
} | ||
`; | ||
export const updateFlight = `mutation UpdateFlight($input: UpdateFlightInput!) { | ||
updateFlight(input: $input) { | ||
id | ||
departureDate | ||
departureAirportCode | ||
departureAirportName | ||
departureCity | ||
departureLocale | ||
arrivalDate | ||
arrivalAirportCode | ||
arrivalAirportName | ||
arrivalCity | ||
arrivalLocale | ||
ticketPrice | ||
ticketCurrency | ||
flightNumber | ||
} | ||
} | ||
`; | ||
export const deleteFlight = `mutation DeleteFlight($input: DeleteFlightInput!) { | ||
deleteFlight(input: $input) { | ||
id | ||
departureDate | ||
departureAirportCode | ||
departureAirportName | ||
departureCity | ||
departureLocale | ||
arrivalDate | ||
arrivalAirportCode | ||
arrivalAirportName | ||
arrivalCity | ||
arrivalLocale | ||
ticketPrice | ||
ticketCurrency | ||
flightNumber | ||
} | ||
} | ||
`; |
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,48 @@ | ||
// eslint-disable | ||
// this is an auto generated file. This will be overwritten | ||
|
||
export const getFlight = `query GetFlight($id: ID!) { | ||
getFlight(id: $id) { | ||
id | ||
departureDate | ||
departureAirportCode | ||
departureAirportName | ||
departureCity | ||
departureLocale | ||
arrivalDate | ||
arrivalAirportCode | ||
arrivalAirportName | ||
arrivalCity | ||
arrivalLocale | ||
ticketPrice | ||
ticketCurrency | ||
flightNumber | ||
} | ||
} | ||
`; | ||
export const listFlights = `query ListFlights( | ||
$filter: ModelFlightFilterInput | ||
$limit: Int | ||
$nextToken: String | ||
) { | ||
listFlights(filter: $filter, limit: $limit, nextToken: $nextToken) { | ||
items { | ||
id | ||
departureDate | ||
departureAirportCode | ||
departureAirportName | ||
departureCity | ||
departureLocale | ||
arrivalDate | ||
arrivalAirportCode | ||
arrivalAirportName | ||
arrivalCity | ||
arrivalLocale | ||
ticketPrice | ||
ticketCurrency | ||
flightNumber | ||
} | ||
nextToken | ||
} | ||
} | ||
`; |
Oops, something went wrong.