Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .graphqlconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
projects:
thrifty:
schemaPath: app/src/main/graphql/schema.json
includes:
- app/src/main/graphql/**/*.graphql
excludes:
- ./amplify/**
extensions:
amplify:
codeGenTarget: ''
generatedFileName: ''
docsFilePath: app/src/main/graphql/com/amazonaws/amplify/generated/graphql
extensions:
amplify:
version: 3
17 changes: 0 additions & 17 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

56 changes: 33 additions & 23 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions amplify/.config/project-config.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"providers": [
"awscloudformation"
],
"projectName": "Thrifty",
"projectName": "thrifty",
"version": "3.1",
"frontend": "android",
"android": {
"config": {
"ResDir": "app/src/main/res"
}
}
},
"providers": [
"awscloudformation"
]
}
8 changes: 8 additions & 0 deletions amplify/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Getting Started with Amplify CLI
This directory was generated by [Amplify CLI](https://docs.amplify.aws/cli).

Helpful resources:
- Amplify documentation: https://docs.amplify.aws
- Amplify CLI documentation: https://docs.amplify.aws/cli
- More details on this folder & generated files: https://docs.amplify.aws/cli/reference/files
- Join Amplify's community: https://amplify.aws/community/
22 changes: 0 additions & 22 deletions amplify/backend/analytics/ThriftyOWUjV/parameters.json

This file was deleted.

21 changes: 21 additions & 0 deletions amplify/backend/analytics/thrifty/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"appName": "thrifty",
"roleName": "pinpointLambdaRole66d02b86",
"cloudformationPolicyName": "cloudformationPolicy66d02b86",
"cloudWatchPolicyName": "cloudWatchPolicy66d02b86",
"pinpointPolicyName": "pinpointPolicy66d02b86",
"authPolicyName": "pinpoint_amplify_66d02b86",
"unauthPolicyName": "pinpoint_amplify_66d02b86",
"authRoleName": {
"Ref": "AuthRoleName"
},
"unauthRoleName": {
"Ref": "UnauthRoleName"
},
"authRoleArn": {
"Fn::GetAtt": [
"AuthRole",
"Arn"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Pinpoint resource stack creation using Amplify CLI",
"Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"7.5.4\",\"stackType\":\"analytics-Pinpoint\",\"metadata\":{}}",
"Parameters": {
"appName": {
"Type": "String"
Expand Down
16 changes: 8 additions & 8 deletions amplify/backend/api/thrifty/cli-inputs.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"version": 1,
"serviceConfiguration": {
"apiName": "thrifty",
"serviceName": "AppSync",
"gqlSchemaPath": "/tmp/amplify-5f4ff87e-eb3f-47d2-a2dc-8391321807a4/amplify/backend/api/thrifty/schema.graphql",
"defaultAuthType": {
"mode": "AMAZON_COGNITO_USER_POOLS",
"cognitoUserPoolId": "auththrifty21f6c364"
"mode": "API_KEY",
"keyDescription": "api key description",
"expirationTime": 30
},
"conflictResolution": {
"defaultResolutionStrategy": {
"type": "AUTOMERGE"
}
},
"apiName": "thrifty",
"gqlSchemaPath": "/tmp/amplify-b38aed8f-cc0e-48c1-ab26-b93ee968bf10/amplify/backend/api/thrifty/schema.graphql",
"additionalAuthTypes": [
{
"mode": "API_KEY",
"keyDescription": "api key description",
"expirationTime": 30
"mode": "AWS_IAM"
},
{
"mode": "AWS_IAM"
"mode": "AMAZON_COGNITO_USER_POOLS",
"cognitoUserPoolId": "auththrifty84b44427"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions amplify/backend/api/thrifty/parameters.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"DynamoDBEnableServerSideEncryption": false,
"AuthCognitoUserPoolId": {
"Fn::GetAtt": [
"auththrifty21f6c364",
"auththrifty84b44427",
"Outputs.UserPoolId"
]
},
"AuthModeLastUpdated": "2021-11-28T17:20:48.071Z"
"AuthModeLastUpdated": "2021-12-01T01:19:54.436Z"
}
Empty file modified amplify/backend/api/thrifty/resolvers/README.md
100755 → 100644
Empty file.
28 changes: 11 additions & 17 deletions amplify/backend/api/thrifty/schema.graphql
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
type Favorite @model @auth(rules: [{allow: private}]) @key(name: "byUser", fields: ["userID"]) {
type User @model @auth(rules: [{allow: public}]){
id: ID!
titleFav: String!
imageFav: String!
priceFav: String!
sizeFav: String!
categoryFav: String!
userID: ID
email: String!
favProducts: [Favorite] @hasMany
}

type User @model @auth(rules: [{allow: private}]) {
type Favorite @model @auth(rules: [{allow: public}]){
id: ID!
email: String!
Favorite: [Favorite] @connection(keyName: "byUser", fields: ["id"])
product: Product @hasOne
}

type Category @model @auth(rules: [{allow: private}]) {
type Category @model @auth(rules: [{allow: public}]) {
id: ID!
name: String!
Products: [Product] @connection(keyName: "byCategory", fields: ["id"])
name: String
Products: [Product] @hasMany(indexName: "byCategory", fields: ["id"])
}

type Product @model @auth(rules: [{allow: private}]) @key(name: "byCategory", fields: ["categoryID"]) {
type Product @model {
id: ID!
title: String!
description: String!
price: String!
size: String!
color: String!
categoryID: ID
image: String!
image: String
categoryID: ID @index(name: "byCategory")
}

Empty file modified amplify/backend/api/thrifty/stacks/CustomResources.json
100755 → 100644
Empty file.
Empty file modified amplify/backend/api/thrifty/transform.conf.json
100755 → 100644
Empty file.
Loading