From c83296cf27a34abf9363a1edd9e5c0ea01b1528f Mon Sep 17 00:00:00 2001 From: hrutik7 <62372737+hrutik7@users.noreply.github.com> Date: Sun, 30 Jul 2023 14:01:03 +0530 Subject: [PATCH] tags into array --- amplify/backend/api/tada/schema.graphql | 6 + app/Components/Tags/Tags.jsx | 11 +- app/Screens/Confirmation/Confirmation.js | 2 +- app/Screens/Gender/Gender.js | 36 +- app/Screens/Signup/SignUp.js | 1 + app/Screens/WaitingMatch/WaitingMatch.js | 63 +- package-lock.json | 281 ++++- package.json | 1 + src/graphql/mutations.js | 54 + src/graphql/queries.js | 69 + src/graphql/schema.json | 1456 +++++++++++++++++----- src/graphql/subscriptions.js | 51 + src/models/index.d.ts | 26 + src/models/index.js | 3 +- src/models/schema.js | 52 +- yarn.lock | 92 +- 16 files changed, 1826 insertions(+), 378 deletions(-) diff --git a/amplify/backend/api/tada/schema.graphql b/amplify/backend/api/tada/schema.graphql index 5dcfc5e..b9f8de5 100644 --- a/amplify/backend/api/tada/schema.graphql +++ b/amplify/backend/api/tada/schema.graphql @@ -62,6 +62,11 @@ type UserInfo @model{ id: ID! username: String! } + +type GenderInfo @model{ + id: ID! + gender: String! +} type ExplainYourself @model{ id: ID! explain: String! @@ -81,6 +86,7 @@ type UsersData @model { id: ID! username : String! tags: [String] + gender : String! } type Message @model { diff --git a/app/Components/Tags/Tags.jsx b/app/Components/Tags/Tags.jsx index cbe5af3..4320596 100644 --- a/app/Components/Tags/Tags.jsx +++ b/app/Components/Tags/Tags.jsx @@ -7,6 +7,7 @@ import ResponsiveFontSize from 'react-native-responsive-fontsize'; import * as mutations from '../../../src/graphql/mutations'; import { API } from "aws-amplify"; import { UserInfo } from '../../../src/models'; +import { GenderInfo } from '../../../src/models'; import { DataStore } from 'aws-amplify'; import { SQLiteAdapter } from '@aws-amplify/datastore-storage-adapter/SQLiteAdapter'; @@ -17,11 +18,14 @@ const Tags = ({navigation}) => { const [text, setText] = useState(''); const [inputarray,setInputarray] = useState([]) const [username,setUsername] = useState('') + const [gender,setGender] = useState('') const postUserData = async () => { try { const posts = await DataStore.query(UserInfo); + const genderinfo = await DataStore.query(GenderInfo); setUsername(posts[0].username) - console.log('Posts retrieved successfully!', posts); + + setGender(genderinfo[0].gender) } catch (error) { console.log('Error retrieving posts', error); } @@ -29,13 +33,14 @@ const Tags = ({navigation}) => { // console.log(inputarray,username,"====================") const inputstring = JSON.stringify(inputarray) - console.log(inputstring,"string==============================") + console.log(inputstring,"this isinputokkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk") const userData = await API.graphql({ query: mutations.createUsersData, variables: { input: { username: username, - tags: inputstring + tags: inputarray, + gender:gender } } }); diff --git a/app/Screens/Confirmation/Confirmation.js b/app/Screens/Confirmation/Confirmation.js index 541caf4..8d7c200 100644 --- a/app/Screens/Confirmation/Confirmation.js +++ b/app/Screens/Confirmation/Confirmation.js @@ -18,7 +18,7 @@ const Confirmation = ({navigation}) => { try { const user = await Auth.confirmSignUp(username, code); console.log(user,"user is here....") - navigation.navigate("Login") + navigation.navigate("Gender") } catch (error) { Alert.alert(error) console.log('error signing in', error); diff --git a/app/Screens/Gender/Gender.js b/app/Screens/Gender/Gender.js index 8e14c09..be4f081 100644 --- a/app/Screens/Gender/Gender.js +++ b/app/Screens/Gender/Gender.js @@ -1,15 +1,29 @@ import React, {useState} from 'react'; import {View, StyleSheet, Image, Text, TouchableOpacity} from 'react-native'; -// import InputField from '../../components/InputField'; -import InputField from '../../Components/InputField/InputField'; -import CustomTouchableOpacity from '../../Components/Button/Button'; +import {DataStore} from 'aws-amplify'; +import {SQLiteAdapter} from '@aws-amplify/datastore-storage-adapter/SQLiteAdapter'; +import { UserInfo } from '../../../src/models'; +import { GenderInfo } from '../../../src/models'; +DataStore.configure({ + storageAdapter: SQLiteAdapter, +}); + +const Gender = ({navigation}) => { + -import {Alert} from 'react-native'; -const Gender = () => { - const [Username, setUsername] = useState(''); - const [email, setEmail] = useState(''); - const [password, setPassword] = useState(''); - const [login, setLogin] = useState(false); + const saveGender = async(gender) =>{ + try { + const post = await DataStore.save( + new GenderInfo({ + gender: gender + }), + ); + console.log('gender saved successfully!', post); + navigation.navigate("Explain") + } catch (error) { + console.log(error,"err hain") + } + } return ( @@ -19,7 +33,7 @@ const Gender = () => { setLogin(true)}> + onPress={() => saveGender("male")}> { setLogin(true)}> + onPress={() => saveGender("female")}> { }), ); console.log('Post saved successfully!', post); + } catch (error) { console.log('Error saving post', error); } diff --git a/app/Screens/WaitingMatch/WaitingMatch.js b/app/Screens/WaitingMatch/WaitingMatch.js index 9c57ded..bfb5345 100644 --- a/app/Screens/WaitingMatch/WaitingMatch.js +++ b/app/Screens/WaitingMatch/WaitingMatch.js @@ -5,14 +5,69 @@ import { SvgUri } from 'react-native-svg'; import CustomTouchableOpacity from '../../Components/Button/Button'; import * as queries from '../../../src/graphql/queries' import { API, DataStore } from 'aws-amplify'; +import awsconfig from '../../../src/aws-exports' +import { Auth } from 'aws-amplify'; +import { listUserInfos } from '../../../src/graphql/queries'; +import { listUsersData } from '../../../src/graphql/queries'; const WaitingScreen = ({navigation}) => { + const [users,setUsers] = useState() + const [NextToken,setNextToken] = useState() useEffect(()=>{ - fetchApi() + fetchApi(10) },[]) + + const fetchApi = async (limit) =>{ + // let apiName = 'listUserInfos'; + // let path = '/listUsersInGroup'; + // let myInit = { + // queryStringParameters: { + + // "limit": limit, + // "token": nextToken + // }, + // headers: { + // 'Content-Type' : 'application/json', + // Authorization: `${(await Auth.currentSession()).getAccessToken().getJwtToken()}` + // } + // } + // const { NextToken, ...rest } = await API.get(apiName, path, myInit); + // nextToken = NextToken; + // console.log(rest,"rest") + // return rest; + + + try { + let nextToken = await Auth.currentSession() + // let nextToken = await Auth.currentSession().getAccessToken().getJwtToken() + + + let nextjwt = nextToken.accessToken.jwtToken + console.log(nextjwt,"==========================================") + const { data , errors} = await API.graphql({ + query: listUsersData, + variables: { + filter : null, + limit: 10, // Set the desired limit for each query + token: nextjwt, // Use the nextToken to paginate + }, + }); + if (errors) { + console.error('GraphQL errors:', errors); + return; + } + const newUsers = data.listUserInfos.items; + const newNextToken = data.listUserInfos.nextToken; +console.log(data.listUserInfos.items,"here is data") + setUsers((prevUsers) => [...prevUsers, ...newUsers]); + setNextToken(nextjwt); + } catch (error) { + console.error('Error fetching user information:', error.data.listUsersData.items); + } + + + + - const fetchApi = async () =>{ - const allTodos = await API.graphql({ query: queries.listUsersData }); - console.log(allTodos.data,"con") } const signOut = async () =>{ diff --git a/package-lock.json b/package-lock.json index 53d9e24..c7c1af9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "@reduxjs/toolkit": "^1.9.5", "amazon-cognito-identity-js": "^6.3.1", "aws-amplify": "^5.3.5", + "aws-sdk": "^2.1425.0", "core-js": "^3.31.1", "react": "18.2.0", "react-native": "0.72.3", @@ -10303,7 +10304,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -10332,6 +10332,71 @@ "tslib": "^2.0.0" } }, + "node_modules/aws-sdk": { + "version": "2.1425.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1425.0.tgz", + "integrity": "sha512-DbY5z7E8RsrX8/0pMBKMuh/rWFic3AghtU2AWkUdzxDi0cUSK7rOSPS/OIURU9Rh0jaNXoA0ujBDdx/CC5CvRA==", + "dependencies": { + "buffer": "4.9.2", + "events": "1.1.1", + "ieee754": "1.1.13", + "jmespath": "0.16.0", + "querystring": "0.2.0", + "sax": "1.2.1", + "url": "0.10.3", + "util": "^0.12.4", + "uuid": "8.0.0", + "xml2js": "0.5.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/aws-sdk/node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "node_modules/aws-sdk/node_modules/events": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/aws-sdk/node_modules/ieee754": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + }, + "node_modules/aws-sdk/node_modules/punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==" + }, + "node_modules/aws-sdk/node_modules/url": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", + "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", + "dependencies": { + "punycode": "1.3.2", + "querystring": "0.2.0" + } + }, + "node_modules/aws-sdk/node_modules/uuid": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", + "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/axios": { "version": "0.26.0", "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.0.tgz", @@ -10695,7 +10760,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.1", @@ -12644,7 +12708,6 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, "license": "MIT", "dependencies": { "is-callable": "^1.1.3" @@ -12749,7 +12812,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.1", @@ -12883,7 +12945,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.3" @@ -12961,7 +13022,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -12974,7 +13034,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -12987,7 +13046,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" @@ -13473,6 +13531,21 @@ "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", "license": "MIT" }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", @@ -13528,7 +13601,6 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -13603,6 +13675,20 @@ "node": ">=6" } }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -13771,7 +13857,6 @@ "version": "1.1.10", "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.5", @@ -14581,6 +14666,14 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/jmespath": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", + "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/joi": { "version": "17.9.2", "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", @@ -17174,6 +17267,11 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, + "node_modules/sax": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", + "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" + }, "node_modules/scheduler": { "version": "0.24.0-canary-efb381bbf-20230505", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.24.0-canary-efb381bbf-20230505.tgz", @@ -18322,6 +18420,18 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -18484,7 +18594,6 @@ "version": "1.1.10", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz", "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==", - "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.5", @@ -18559,6 +18668,26 @@ } } }, + "node_modules/xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "engines": { + "node": ">=4.0" + } + }, "node_modules/xstate": { "version": "4.38.2", "resolved": "https://registry.npmjs.org/xstate/-/xstate-4.38.2.tgz", @@ -26749,8 +26878,7 @@ "available-typed-arrays": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" }, "aws-amplify": { "version": "5.3.5", @@ -26772,6 +26900,64 @@ "tslib": "^2.0.0" } }, + "aws-sdk": { + "version": "2.1425.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1425.0.tgz", + "integrity": "sha512-DbY5z7E8RsrX8/0pMBKMuh/rWFic3AghtU2AWkUdzxDi0cUSK7rOSPS/OIURU9Rh0jaNXoA0ujBDdx/CC5CvRA==", + "requires": { + "buffer": "4.9.2", + "events": "1.1.1", + "ieee754": "1.1.13", + "jmespath": "0.16.0", + "querystring": "0.2.0", + "sax": "1.2.1", + "url": "0.10.3", + "util": "^0.12.4", + "uuid": "8.0.0", + "xml2js": "0.5.0" + }, + "dependencies": { + "buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "events": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==" + }, + "ieee754": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + }, + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==" + }, + "url": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", + "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + } + }, + "uuid": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", + "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==" + } + } + }, "axios": { "version": "0.26.0", "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.0.tgz", @@ -27024,7 +27210,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, "requires": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" @@ -28354,7 +28539,6 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, "requires": { "is-callable": "^1.1.3" } @@ -28426,7 +28610,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dev": true, "requires": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -28509,7 +28692,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, "requires": { "get-intrinsic": "^1.1.3" } @@ -28561,20 +28743,17 @@ "has-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "dev": true + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" }, "has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" }, "has-tostringtag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, "requires": { "has-symbols": "^1.0.2" } @@ -28930,6 +29109,15 @@ "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" }, + "is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, "is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", @@ -28968,8 +29156,7 @@ "is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" }, "is-core-module": { "version": "2.12.1", @@ -29010,6 +29197,14 @@ "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true }, + "is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, "is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -29109,7 +29304,6 @@ "version": "1.1.10", "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dev": true, "requires": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", @@ -29695,6 +29889,11 @@ } } }, + "jmespath": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", + "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==" + }, "joi": { "version": "17.9.2", "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", @@ -31522,6 +31721,11 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, + "sax": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", + "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" + }, "scheduler": { "version": "0.24.0-canary-efb381bbf-20230505", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.24.0-canary-efb381bbf-20230505.tgz", @@ -32339,6 +32543,18 @@ "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", "requires": {} }, + "util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "requires": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -32462,7 +32678,6 @@ "version": "1.1.10", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz", "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==", - "dev": true, "requires": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", @@ -32503,6 +32718,20 @@ "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", "requires": {} }, + "xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "requires": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + } + }, + "xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==" + }, "xstate": { "version": "4.38.2", "resolved": "https://registry.npmjs.org/xstate/-/xstate-4.38.2.tgz", diff --git a/package.json b/package.json index a2086fb..e4d9443 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@reduxjs/toolkit": "^1.9.5", "amazon-cognito-identity-js": "^6.3.1", "aws-amplify": "^5.3.5", + "aws-sdk": "^2.1425.0", "core-js": "^3.31.1", "react": "18.2.0", "react-native": "0.72.3", diff --git a/src/graphql/mutations.js b/src/graphql/mutations.js index cebf52b..1353b13 100644 --- a/src/graphql/mutations.js +++ b/src/graphql/mutations.js @@ -391,6 +391,57 @@ export const deleteUserInfo = /* GraphQL */ ` } } `; +export const createGenderInfo = /* GraphQL */ ` + mutation CreateGenderInfo( + $input: CreateGenderInfoInput! + $condition: ModelGenderInfoConditionInput + ) { + createGenderInfo(input: $input, condition: $condition) { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + } +`; +export const updateGenderInfo = /* GraphQL */ ` + mutation UpdateGenderInfo( + $input: UpdateGenderInfoInput! + $condition: ModelGenderInfoConditionInput + ) { + updateGenderInfo(input: $input, condition: $condition) { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + } +`; +export const deleteGenderInfo = /* GraphQL */ ` + mutation DeleteGenderInfo( + $input: DeleteGenderInfoInput! + $condition: ModelGenderInfoConditionInput + ) { + deleteGenderInfo(input: $input, condition: $condition) { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + } +`; export const createExplainYourself = /* GraphQL */ ` mutation CreateExplainYourself( $input: CreateExplainYourselfInput! @@ -502,6 +553,7 @@ export const createUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version @@ -520,6 +572,7 @@ export const updateUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version @@ -538,6 +591,7 @@ export const deleteUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version diff --git a/src/graphql/queries.js b/src/graphql/queries.js index c99a5a6..1f1dec4 100644 --- a/src/graphql/queries.js +++ b/src/graphql/queries.js @@ -563,6 +563,72 @@ export const syncUserInfos = /* GraphQL */ ` } } `; +export const getGenderInfo = /* GraphQL */ ` + query GetGenderInfo($id: ID!) { + getGenderInfo(id: $id) { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + } +`; +export const listGenderInfos = /* GraphQL */ ` + query ListGenderInfos( + $filter: ModelGenderInfoFilterInput + $limit: Int + $nextToken: String + ) { + listGenderInfos(filter: $filter, limit: $limit, nextToken: $nextToken) { + items { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + nextToken + startedAt + __typename + } + } +`; +export const syncGenderInfos = /* GraphQL */ ` + query SyncGenderInfos( + $filter: ModelGenderInfoFilterInput + $limit: Int + $nextToken: String + $lastSync: AWSTimestamp + ) { + syncGenderInfos( + filter: $filter + limit: $limit + nextToken: $nextToken + lastSync: $lastSync + ) { + items { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + nextToken + startedAt + __typename + } + } +`; export const getExplainYourself = /* GraphQL */ ` query GetExplainYourself($id: ID!) { getExplainYourself(id: $id) { @@ -705,6 +771,7 @@ export const getUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version @@ -725,6 +792,7 @@ export const listUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version @@ -755,6 +823,7 @@ export const syncUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version diff --git a/src/graphql/schema.json b/src/graphql/schema.json index 463183a..5200a6e 100644 --- a/src/graphql/schema.json +++ b/src/graphql/schema.json @@ -865,6 +865,115 @@ }, "isDeprecated" : false, "deprecationReason" : null + }, { + "name" : "getGenderInfo", + "description" : null, + "args" : [ { + "name" : "id", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "ID", + "ofType" : null + } + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "GenderInfo", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "listGenderInfos", + "description" : null, + "args" : [ { + "name" : "filter", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelGenderInfoFilterInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "limit", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "Int", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "nextToken", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "ModelGenderInfoConnection", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "syncGenderInfos", + "description" : null, + "args" : [ { + "name" : "filter", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelGenderInfoFilterInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "limit", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "Int", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "nextToken", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "lastSync", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "AWSTimestamp", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "ModelGenderInfoConnection", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null }, { "name" : "getExplainYourself", "description" : null, @@ -4774,7 +4883,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "ExplainYourself", + "name" : "GenderInfo", "description" : null, "fields" : [ { "name" : "id", @@ -4792,7 +4901,7 @@ "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "explain", + "name" : "gender", "description" : null, "args" : [ ], "type" : { @@ -4884,7 +4993,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "ModelExplainYourselfConnection", + "name" : "ModelGenderInfoConnection", "description" : null, "fields" : [ { "name" : "items", @@ -4898,7 +5007,7 @@ "name" : null, "ofType" : { "kind" : "OBJECT", - "name" : "ExplainYourself", + "name" : "GenderInfo", "ofType" : null } } @@ -4934,7 +5043,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelExplainYourselfFilterInput", + "name" : "ModelGenderInfoFilterInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -4947,7 +5056,7 @@ }, "defaultValue" : null }, { - "name" : "explain", + "name" : "gender", "description" : null, "type" : { "kind" : "INPUT_OBJECT", @@ -4963,7 +5072,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelExplainYourselfFilterInput", + "name" : "ModelGenderInfoFilterInput", "ofType" : null } }, @@ -4976,7 +5085,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelExplainYourselfFilterInput", + "name" : "ModelGenderInfoFilterInput", "ofType" : null } }, @@ -4986,7 +5095,7 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelExplainYourselfFilterInput", + "name" : "ModelGenderInfoFilterInput", "ofType" : null }, "defaultValue" : null @@ -5005,7 +5114,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "Todo", + "name" : "ExplainYourself", "description" : null, "fields" : [ { "name" : "id", @@ -5023,7 +5132,7 @@ "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "task", + "name" : "explain", "description" : null, "args" : [ ], "type" : { @@ -5115,7 +5224,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "ModelTodoConnection", + "name" : "ModelExplainYourselfConnection", "description" : null, "fields" : [ { "name" : "items", @@ -5129,7 +5238,7 @@ "name" : null, "ofType" : { "kind" : "OBJECT", - "name" : "Todo", + "name" : "ExplainYourself", "ofType" : null } } @@ -5165,7 +5274,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelTodoFilterInput", + "name" : "ModelExplainYourselfFilterInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -5178,7 +5287,7 @@ }, "defaultValue" : null }, { - "name" : "task", + "name" : "explain", "description" : null, "type" : { "kind" : "INPUT_OBJECT", @@ -5194,7 +5303,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelTodoFilterInput", + "name" : "ModelExplainYourselfFilterInput", "ofType" : null } }, @@ -5207,7 +5316,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelTodoFilterInput", + "name" : "ModelExplainYourselfFilterInput", "ofType" : null } }, @@ -5217,7 +5326,7 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelTodoFilterInput", + "name" : "ModelExplainYourselfFilterInput", "ofType" : null }, "defaultValue" : null @@ -5236,7 +5345,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "UsersData", + "name" : "Todo", "description" : null, "fields" : [ { "name" : "id", @@ -5254,7 +5363,7 @@ "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "username", + "name" : "task", "description" : null, "args" : [ ], "type" : { @@ -5268,21 +5377,6 @@ }, "isDeprecated" : false, "deprecationReason" : null - }, { - "name" : "tags", - "description" : null, - "args" : [ ], - "type" : { - "kind" : "LIST", - "name" : null, - "ofType" : { - "kind" : "SCALAR", - "name" : "String", - "ofType" : null - } - }, - "isDeprecated" : false, - "deprecationReason" : null }, { "name" : "createdAt", "description" : null, @@ -5361,7 +5455,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "ModelUsersDataConnection", + "name" : "ModelTodoConnection", "description" : null, "fields" : [ { "name" : "items", @@ -5375,7 +5469,7 @@ "name" : null, "ofType" : { "kind" : "OBJECT", - "name" : "UsersData", + "name" : "Todo", "ofType" : null } } @@ -5411,7 +5505,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelUsersDataFilterInput", + "name" : "ModelTodoFilterInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -5424,16 +5518,7 @@ }, "defaultValue" : null }, { - "name" : "username", - "description" : null, - "type" : { - "kind" : "INPUT_OBJECT", - "name" : "ModelStringInput", - "ofType" : null - }, - "defaultValue" : null - }, { - "name" : "tags", + "name" : "task", "description" : null, "type" : { "kind" : "INPUT_OBJECT", @@ -5449,7 +5534,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUsersDataFilterInput", + "name" : "ModelTodoFilterInput", "ofType" : null } }, @@ -5462,7 +5547,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUsersDataFilterInput", + "name" : "ModelTodoFilterInput", "ofType" : null } }, @@ -5472,7 +5557,7 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUsersDataFilterInput", + "name" : "ModelTodoFilterInput", "ofType" : null }, "defaultValue" : null @@ -5491,7 +5576,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "Message", + "name" : "UsersData", "description" : null, "fields" : [ { "name" : "id", @@ -5509,7 +5594,7 @@ "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "content", + "name" : "username", "description" : null, "args" : [ ], "type" : { @@ -5524,7 +5609,22 @@ "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "createdAt", + "name" : "tags", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "gender", "description" : null, "args" : [ ], "type" : { @@ -5538,6 +5638,21 @@ }, "isDeprecated" : false, "deprecationReason" : null + }, { + "name" : "createdAt", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "AWSDateTime", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null }, { "name" : "updatedAt", "description" : null, @@ -5547,7 +5662,7 @@ "name" : null, "ofType" : { "kind" : "SCALAR", - "name" : "String", + "name" : "AWSDateTime", "ofType" : null } }, @@ -5601,7 +5716,7 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "ModelMessageConnection", + "name" : "ModelUsersDataConnection", "description" : null, "fields" : [ { "name" : "items", @@ -5615,7 +5730,7 @@ "name" : null, "ofType" : { "kind" : "OBJECT", - "name" : "Message", + "name" : "UsersData", "ofType" : null } } @@ -5651,7 +5766,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelMessageFilterInput", + "name" : "ModelUsersDataFilterInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -5664,7 +5779,7 @@ }, "defaultValue" : null }, { - "name" : "content", + "name" : "username", "description" : null, "type" : { "kind" : "INPUT_OBJECT", @@ -5673,7 +5788,7 @@ }, "defaultValue" : null }, { - "name" : "createdAt", + "name" : "tags", "description" : null, "type" : { "kind" : "INPUT_OBJECT", @@ -5682,7 +5797,7 @@ }, "defaultValue" : null }, { - "name" : "updatedAt", + "name" : "gender", "description" : null, "type" : { "kind" : "INPUT_OBJECT", @@ -5698,7 +5813,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelMessageFilterInput", + "name" : "ModelUsersDataFilterInput", "ofType" : null } }, @@ -5711,7 +5826,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelMessageFilterInput", + "name" : "ModelUsersDataFilterInput", "ofType" : null } }, @@ -5721,7 +5836,7 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelMessageFilterInput", + "name" : "ModelUsersDataFilterInput", "ofType" : null }, "defaultValue" : null @@ -5740,39 +5855,288 @@ "possibleTypes" : null }, { "kind" : "OBJECT", - "name" : "Mutation", + "name" : "Message", "description" : null, "fields" : [ { - "name" : "createUserSignup", + "name" : "id", "description" : null, - "args" : [ { - "name" : "input", - "description" : null, - "type" : { - "kind" : "NON_NULL", - "name" : null, - "ofType" : { - "kind" : "INPUT_OBJECT", - "name" : "CreateUserSignupInput", - "ofType" : null - } - }, - "defaultValue" : null - }, { - "name" : "condition", - "description" : null, - "type" : { - "kind" : "INPUT_OBJECT", - "name" : "ModelUserSignupConditionInput", - "ofType" : null - }, - "defaultValue" : null - } ], + "args" : [ ], "type" : { - "kind" : "OBJECT", - "name" : "UserSignup", - "ofType" : null - }, + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "ID", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "content", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "createdAt", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "updatedAt", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "_version", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "Int", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "_deleted", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "SCALAR", + "name" : "Boolean", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "_lastChangedAt", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "AWSTimestamp", + "ofType" : null + } + }, + "isDeprecated" : false, + "deprecationReason" : null + } ], + "inputFields" : null, + "interfaces" : [ ], + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "OBJECT", + "name" : "ModelMessageConnection", + "description" : null, + "fields" : [ { + "name" : "items", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "OBJECT", + "name" : "Message", + "ofType" : null + } + } + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "nextToken", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "startedAt", + "description" : null, + "args" : [ ], + "type" : { + "kind" : "SCALAR", + "name" : "AWSTimestamp", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + } ], + "inputFields" : null, + "interfaces" : [ ], + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "INPUT_OBJECT", + "name" : "ModelMessageFilterInput", + "description" : null, + "fields" : null, + "inputFields" : [ { + "name" : "id", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelIDInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "content", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelStringInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "createdAt", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelStringInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "updatedAt", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelStringInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "and", + "description" : null, + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelMessageFilterInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "or", + "description" : null, + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelMessageFilterInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "not", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelMessageFilterInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "_deleted", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelBooleanInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "OBJECT", + "name" : "Mutation", + "description" : null, + "fields" : [ { + "name" : "createUserSignup", + "description" : null, + "args" : [ { + "name" : "input", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "CreateUserSignupInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "condition", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelUserSignupConditionInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "UserSignup", + "ofType" : null + }, "isDeprecated" : false, "deprecationReason" : null }, { @@ -6248,7 +6612,106 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "CreateCredeInput", + "name" : "CreateCredeInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "condition", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelCredeConditionInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "Crede", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "updateCrede", + "description" : null, + "args" : [ { + "name" : "input", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "UpdateCredeInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "condition", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelCredeConditionInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "Crede", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "deleteCrede", + "description" : null, + "args" : [ { + "name" : "input", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "DeleteCredeInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "condition", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelCredeConditionInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "Crede", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "createUserInfo", + "description" : null, + "args" : [ { + "name" : "input", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "CreateUserInfoInput", "ofType" : null } }, @@ -6258,20 +6721,20 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelCredeConditionInput", + "name" : "ModelUserInfoConditionInput", "ofType" : null }, "defaultValue" : null } ], "type" : { "kind" : "OBJECT", - "name" : "Crede", + "name" : "UserInfo", "ofType" : null }, "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "updateCrede", + "name" : "updateUserInfo", "description" : null, "args" : [ { "name" : "input", @@ -6281,7 +6744,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "UpdateCredeInput", + "name" : "UpdateUserInfoInput", "ofType" : null } }, @@ -6291,20 +6754,20 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelCredeConditionInput", + "name" : "ModelUserInfoConditionInput", "ofType" : null }, "defaultValue" : null } ], "type" : { "kind" : "OBJECT", - "name" : "Crede", + "name" : "UserInfo", "ofType" : null }, "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "deleteCrede", + "name" : "deleteUserInfo", "description" : null, "args" : [ { "name" : "input", @@ -6314,7 +6777,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "DeleteCredeInput", + "name" : "DeleteUserInfoInput", "ofType" : null } }, @@ -6324,20 +6787,20 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelCredeConditionInput", + "name" : "ModelUserInfoConditionInput", "ofType" : null }, "defaultValue" : null } ], "type" : { "kind" : "OBJECT", - "name" : "Crede", + "name" : "UserInfo", "ofType" : null }, "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "createUserInfo", + "name" : "createGenderInfo", "description" : null, "args" : [ { "name" : "input", @@ -6347,7 +6810,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "CreateUserInfoInput", + "name" : "CreateGenderInfoInput", "ofType" : null } }, @@ -6357,20 +6820,20 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUserInfoConditionInput", + "name" : "ModelGenderInfoConditionInput", "ofType" : null }, "defaultValue" : null } ], "type" : { "kind" : "OBJECT", - "name" : "UserInfo", + "name" : "GenderInfo", "ofType" : null }, "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "updateUserInfo", + "name" : "updateGenderInfo", "description" : null, "args" : [ { "name" : "input", @@ -6380,7 +6843,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "UpdateUserInfoInput", + "name" : "UpdateGenderInfoInput", "ofType" : null } }, @@ -6390,20 +6853,20 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUserInfoConditionInput", + "name" : "ModelGenderInfoConditionInput", "ofType" : null }, "defaultValue" : null } ], "type" : { "kind" : "OBJECT", - "name" : "UserInfo", + "name" : "GenderInfo", "ofType" : null }, "isDeprecated" : false, "deprecationReason" : null }, { - "name" : "deleteUserInfo", + "name" : "deleteGenderInfo", "description" : null, "args" : [ { "name" : "input", @@ -6413,7 +6876,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "DeleteUserInfoInput", + "name" : "DeleteGenderInfoInput", "ofType" : null } }, @@ -6423,14 +6886,14 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUserInfoConditionInput", + "name" : "ModelGenderInfoConditionInput", "ofType" : null }, "defaultValue" : null } ], "type" : { "kind" : "OBJECT", - "name" : "UserInfo", + "name" : "GenderInfo", "ofType" : null }, "isDeprecated" : false, @@ -7865,7 +8328,229 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelPostConditionInput", + "name" : "ModelPostConditionInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "or", + "description" : null, + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelPostConditionInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "not", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelPostConditionInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "_deleted", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelBooleanInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "INPUT_OBJECT", + "name" : "UpdatePostInput", + "description" : null, + "fields" : null, + "inputFields" : [ { + "name" : "id", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "ID", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "title", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "status", + "description" : null, + "type" : { + "kind" : "ENUM", + "name" : "PostStatus", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "rating", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "Int", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "content", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "_version", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "Int", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "INPUT_OBJECT", + "name" : "DeletePostInput", + "description" : null, + "fields" : null, + "inputFields" : [ { + "name" : "id", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "ID", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "_version", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "Int", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "INPUT_OBJECT", + "name" : "CreateCredeInput", + "description" : null, + "fields" : null, + "inputFields" : [ { + "name" : "id", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "ID", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "username", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "password", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "_version", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "Int", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "INPUT_OBJECT", + "name" : "ModelCredeConditionInput", + "description" : null, + "fields" : null, + "inputFields" : [ { + "name" : "username", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelStringInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "password", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelStringInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "and", + "description" : null, + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelCredeConditionInput", "ofType" : null } }, @@ -7878,7 +8563,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelPostConditionInput", + "name" : "ModelCredeConditionInput", "ofType" : null } }, @@ -7888,7 +8573,7 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelPostConditionInput", + "name" : "ModelCredeConditionInput", "ofType" : null }, "defaultValue" : null @@ -7907,7 +8592,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "UpdatePostInput", + "name" : "UpdateCredeInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -7924,7 +8609,7 @@ }, "defaultValue" : null }, { - "name" : "title", + "name" : "username", "description" : null, "type" : { "kind" : "SCALAR", @@ -7933,25 +8618,7 @@ }, "defaultValue" : null }, { - "name" : "status", - "description" : null, - "type" : { - "kind" : "ENUM", - "name" : "PostStatus", - "ofType" : null - }, - "defaultValue" : null - }, { - "name" : "rating", - "description" : null, - "type" : { - "kind" : "SCALAR", - "name" : "Int", - "ofType" : null - }, - "defaultValue" : null - }, { - "name" : "content", + "name" : "password", "description" : null, "type" : { "kind" : "SCALAR", @@ -7974,7 +8641,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "DeletePostInput", + "name" : "DeleteCredeInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8005,7 +8672,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "CreateCredeInput", + "name" : "CreateUserInfoInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8030,19 +8697,6 @@ } }, "defaultValue" : null - }, { - "name" : "password", - "description" : null, - "type" : { - "kind" : "NON_NULL", - "name" : null, - "ofType" : { - "kind" : "SCALAR", - "name" : "String", - "ofType" : null - } - }, - "defaultValue" : null }, { "name" : "_version", "description" : null, @@ -8058,7 +8712,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelCredeConditionInput", + "name" : "ModelUserInfoConditionInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8070,15 +8724,6 @@ "ofType" : null }, "defaultValue" : null - }, { - "name" : "password", - "description" : null, - "type" : { - "kind" : "INPUT_OBJECT", - "name" : "ModelStringInput", - "ofType" : null - }, - "defaultValue" : null }, { "name" : "and", "description" : null, @@ -8087,7 +8732,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelCredeConditionInput", + "name" : "ModelUserInfoConditionInput", "ofType" : null } }, @@ -8100,7 +8745,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelCredeConditionInput", + "name" : "ModelUserInfoConditionInput", "ofType" : null } }, @@ -8110,7 +8755,7 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelCredeConditionInput", + "name" : "ModelUserInfoConditionInput", "ofType" : null }, "defaultValue" : null @@ -8129,7 +8774,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "UpdateCredeInput", + "name" : "UpdateUserInfoInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8154,15 +8799,6 @@ "ofType" : null }, "defaultValue" : null - }, { - "name" : "password", - "description" : null, - "type" : { - "kind" : "SCALAR", - "name" : "String", - "ofType" : null - }, - "defaultValue" : null }, { "name" : "_version", "description" : null, @@ -8178,7 +8814,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "DeleteCredeInput", + "name" : "DeleteUserInfoInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8209,7 +8845,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "CreateUserInfoInput", + "name" : "CreateGenderInfoInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8222,7 +8858,7 @@ }, "defaultValue" : null }, { - "name" : "username", + "name" : "gender", "description" : null, "type" : { "kind" : "NON_NULL", @@ -8249,11 +8885,11 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelUserInfoConditionInput", + "name" : "ModelGenderInfoConditionInput", "description" : null, "fields" : null, "inputFields" : [ { - "name" : "username", + "name" : "gender", "description" : null, "type" : { "kind" : "INPUT_OBJECT", @@ -8269,7 +8905,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUserInfoConditionInput", + "name" : "ModelGenderInfoConditionInput", "ofType" : null } }, @@ -8282,7 +8918,7 @@ "name" : null, "ofType" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUserInfoConditionInput", + "name" : "ModelGenderInfoConditionInput", "ofType" : null } }, @@ -8292,7 +8928,7 @@ "description" : null, "type" : { "kind" : "INPUT_OBJECT", - "name" : "ModelUserInfoConditionInput", + "name" : "ModelGenderInfoConditionInput", "ofType" : null }, "defaultValue" : null @@ -8311,7 +8947,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "UpdateUserInfoInput", + "name" : "UpdateGenderInfoInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8328,7 +8964,7 @@ }, "defaultValue" : null }, { - "name" : "username", + "name" : "gender", "description" : null, "type" : { "kind" : "SCALAR", @@ -8351,7 +8987,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "DeleteUserInfoInput", + "name" : "DeleteGenderInfoInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -8766,6 +9402,19 @@ } }, "defaultValue" : null + }, { + "name" : "gender", + "description" : null, + "type" : { + "kind" : "NON_NULL", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + } + }, + "defaultValue" : null }, { "name" : "_version", "description" : null, @@ -8802,6 +9451,15 @@ "ofType" : null }, "defaultValue" : null + }, { + "name" : "gender", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelStringInput", + "ofType" : null + }, + "defaultValue" : null }, { "name" : "and", "description" : null, @@ -8890,6 +9548,15 @@ } }, "defaultValue" : null + }, { + "name" : "gender", + "description" : null, + "type" : { + "kind" : "SCALAR", + "name" : "String", + "ofType" : null + }, + "defaultValue" : null }, { "name" : "_version", "description" : null, @@ -9585,6 +10252,66 @@ }, "isDeprecated" : false, "deprecationReason" : null + }, { + "name" : "onCreateGenderInfo", + "description" : null, + "args" : [ { + "name" : "filter", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionGenderInfoFilterInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "GenderInfo", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "onUpdateGenderInfo", + "description" : null, + "args" : [ { + "name" : "filter", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionGenderInfoFilterInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "GenderInfo", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "onDeleteGenderInfo", + "description" : null, + "args" : [ { + "name" : "filter", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionGenderInfoFilterInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "type" : { + "kind" : "OBJECT", + "name" : "GenderInfo", + "ofType" : null + }, + "isDeprecated" : false, + "deprecationReason" : null }, { "name" : "onCreateExplainYourself", "description" : null, @@ -10723,6 +11450,68 @@ "interfaces" : null, "enumValues" : null, "possibleTypes" : null + }, { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionGenderInfoFilterInput", + "description" : null, + "fields" : null, + "inputFields" : [ { + "name" : "id", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionIDInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "gender", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionStringInput", + "ofType" : null + }, + "defaultValue" : null + }, { + "name" : "and", + "description" : null, + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionGenderInfoFilterInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "or", + "description" : null, + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionGenderInfoFilterInput", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "_deleted", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelBooleanInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", "name" : "ModelSubscriptionExplainYourselfFilterInput", @@ -10879,6 +11668,15 @@ "ofType" : null }, "defaultValue" : null + }, { + "name" : "gender", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionStringInput", + "ofType" : null + }, + "defaultValue" : null }, { "name" : "and", "description" : null, @@ -10986,21 +11784,40 @@ }, "defaultValue" : null }, { - "name" : "_deleted", + "name" : "_deleted", + "description" : null, + "type" : { + "kind" : "INPUT_OBJECT", + "name" : "ModelBooleanInput", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "ENUM", + "name" : "ModelSortDirection", + "description" : null, + "fields" : null, + "inputFields" : null, + "interfaces" : null, + "enumValues" : [ { + "name" : "ASC", + "description" : null, + "isDeprecated" : false, + "deprecationReason" : null + }, { + "name" : "DESC", "description" : null, - "type" : { - "kind" : "INPUT_OBJECT", - "name" : "ModelBooleanInput", - "ofType" : null - }, - "defaultValue" : null + "isDeprecated" : false, + "deprecationReason" : null } ], - "interfaces" : null, - "enumValues" : null, "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelFloatInput", + "name" : "ModelSubscriptionFloatInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -11071,21 +11888,29 @@ }, "defaultValue" : null }, { - "name" : "attributeExists", + "name" : "in", "description" : null, "type" : { - "kind" : "SCALAR", - "name" : "Boolean", - "ofType" : null + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "Float", + "ofType" : null + } }, "defaultValue" : null }, { - "name" : "attributeType", + "name" : "notIn", "description" : null, "type" : { - "kind" : "ENUM", - "name" : "ModelAttributeTypes", - "ofType" : null + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "Float", + "ofType" : null + } }, "defaultValue" : null } ], @@ -11094,7 +11919,7 @@ "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelSubscriptionFloatInput", + "name" : "SearchableFloatFilterInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -11107,7 +11932,7 @@ }, "defaultValue" : null }, { - "name" : "eq", + "name" : "gt", "description" : null, "type" : { "kind" : "SCALAR", @@ -11116,7 +11941,7 @@ }, "defaultValue" : null }, { - "name" : "le", + "name" : "lt", "description" : null, "type" : { "kind" : "SCALAR", @@ -11125,7 +11950,7 @@ }, "defaultValue" : null }, { - "name" : "lt", + "name" : "gte", "description" : null, "type" : { "kind" : "SCALAR", @@ -11134,7 +11959,7 @@ }, "defaultValue" : null }, { - "name" : "ge", + "name" : "lte", "description" : null, "type" : { "kind" : "SCALAR", @@ -11143,7 +11968,7 @@ }, "defaultValue" : null }, { - "name" : "gt", + "name" : "eq", "description" : null, "type" : { "kind" : "SCALAR", @@ -11152,33 +11977,7 @@ }, "defaultValue" : null }, { - "name" : "between", - "description" : null, - "type" : { - "kind" : "LIST", - "name" : null, - "ofType" : { - "kind" : "SCALAR", - "name" : "Float", - "ofType" : null - } - }, - "defaultValue" : null - }, { - "name" : "in", - "description" : null, - "type" : { - "kind" : "LIST", - "name" : null, - "ofType" : { - "kind" : "SCALAR", - "name" : "Float", - "ofType" : null - } - }, - "defaultValue" : null - }, { - "name" : "notIn", + "name" : "range", "description" : null, "type" : { "kind" : "LIST", @@ -11194,28 +11993,9 @@ "interfaces" : null, "enumValues" : null, "possibleTypes" : null - }, { - "kind" : "ENUM", - "name" : "ModelSortDirection", - "description" : null, - "fields" : null, - "inputFields" : null, - "interfaces" : null, - "enumValues" : [ { - "name" : "ASC", - "description" : null, - "isDeprecated" : false, - "deprecationReason" : null - }, { - "name" : "DESC", - "description" : null, - "isDeprecated" : false, - "deprecationReason" : null - } ], - "possibleTypes" : null }, { "kind" : "INPUT_OBJECT", - "name" : "ModelSubscriptionBooleanInput", + "name" : "ModelFloatInput", "description" : null, "fields" : null, "inputFields" : [ { @@ -11223,7 +12003,7 @@ "description" : null, "type" : { "kind" : "SCALAR", - "name" : "Boolean", + "name" : "Float", "ofType" : null }, "defaultValue" : null @@ -11232,21 +12012,12 @@ "description" : null, "type" : { "kind" : "SCALAR", - "name" : "Boolean", + "name" : "Float", "ofType" : null }, "defaultValue" : null - } ], - "interfaces" : null, - "enumValues" : null, - "possibleTypes" : null - }, { - "kind" : "INPUT_OBJECT", - "name" : "SearchableFloatFilterInput", - "description" : null, - "fields" : null, - "inputFields" : [ { - "name" : "ne", + }, { + "name" : "le", "description" : null, "type" : { "kind" : "SCALAR", @@ -11255,7 +12026,7 @@ }, "defaultValue" : null }, { - "name" : "gt", + "name" : "lt", "description" : null, "type" : { "kind" : "SCALAR", @@ -11264,7 +12035,7 @@ }, "defaultValue" : null }, { - "name" : "lt", + "name" : "ge", "description" : null, "type" : { "kind" : "SCALAR", @@ -11273,7 +12044,7 @@ }, "defaultValue" : null }, { - "name" : "gte", + "name" : "gt", "description" : null, "type" : { "kind" : "SCALAR", @@ -11282,34 +12053,61 @@ }, "defaultValue" : null }, { - "name" : "lte", + "name" : "between", + "description" : null, + "type" : { + "kind" : "LIST", + "name" : null, + "ofType" : { + "kind" : "SCALAR", + "name" : "Float", + "ofType" : null + } + }, + "defaultValue" : null + }, { + "name" : "attributeExists", "description" : null, "type" : { "kind" : "SCALAR", - "name" : "Float", + "name" : "Boolean", "ofType" : null }, "defaultValue" : null }, { - "name" : "eq", + "name" : "attributeType", + "description" : null, + "type" : { + "kind" : "ENUM", + "name" : "ModelAttributeTypes", + "ofType" : null + }, + "defaultValue" : null + } ], + "interfaces" : null, + "enumValues" : null, + "possibleTypes" : null + }, { + "kind" : "INPUT_OBJECT", + "name" : "ModelSubscriptionBooleanInput", + "description" : null, + "fields" : null, + "inputFields" : [ { + "name" : "ne", "description" : null, "type" : { "kind" : "SCALAR", - "name" : "Float", + "name" : "Boolean", "ofType" : null }, "defaultValue" : null }, { - "name" : "range", + "name" : "eq", "description" : null, "type" : { - "kind" : "LIST", - "name" : null, - "ofType" : { - "kind" : "SCALAR", - "name" : "Float", - "ofType" : null - } + "kind" : "SCALAR", + "name" : "Boolean", + "ofType" : null }, "defaultValue" : null } ], @@ -12099,6 +12897,14 @@ "onOperation" : false, "onFragment" : false, "onField" : true + }, { + "name" : "aws_iam", + "description" : "Tells the service this field/object has access authorized by sigv4 signing.", + "locations" : [ "OBJECT", "FIELD_DEFINITION" ], + "args" : [ ], + "onOperation" : false, + "onFragment" : false, + "onField" : false }, { "name" : "deprecated", "description" : null, @@ -12117,12 +12923,12 @@ "onFragment" : false, "onField" : false }, { - "name" : "aws_cognito_user_pools", - "description" : "Tells the service this field/object has access authorized by a Cognito User Pools token.", - "locations" : [ "OBJECT", "FIELD_DEFINITION" ], + "name" : "aws_publish", + "description" : "Tells the service which subscriptions will be published to when this mutation is called. This directive is deprecated use @aws_susbscribe directive instead.", + "locations" : [ "FIELD_DEFINITION" ], "args" : [ { - "name" : "cognito_groups", - "description" : "List of cognito user pool groups which have access on this field", + "name" : "subscriptions", + "description" : "List of subscriptions which will be published to when this mutation is called.", "type" : { "kind" : "LIST", "name" : null, @@ -12137,6 +12943,30 @@ "onOperation" : false, "onFragment" : false, "onField" : false + }, { + "name" : "aws_lambda", + "description" : "Tells the service this field/object has access authorized by a Lambda Authorizer.", + "locations" : [ "OBJECT", "FIELD_DEFINITION" ], + "args" : [ ], + "onOperation" : false, + "onFragment" : false, + "onField" : false + }, { + "name" : "aws_api_key", + "description" : "Tells the service this field/object has access authorized by an API key.", + "locations" : [ "OBJECT", "FIELD_DEFINITION" ], + "args" : [ ], + "onOperation" : false, + "onFragment" : false, + "onField" : false + }, { + "name" : "aws_oidc", + "description" : "Tells the service this field/object has access authorized by an OIDC token.", + "locations" : [ "OBJECT", "FIELD_DEFINITION" ], + "args" : [ ], + "onOperation" : false, + "onFragment" : false, + "onField" : false }, { "name" : "aws_subscribe", "description" : "Tells the service which mutation triggers this subscription.", @@ -12158,22 +12988,6 @@ "onOperation" : false, "onFragment" : false, "onField" : false - }, { - "name" : "aws_oidc", - "description" : "Tells the service this field/object has access authorized by an OIDC token.", - "locations" : [ "OBJECT", "FIELD_DEFINITION" ], - "args" : [ ], - "onOperation" : false, - "onFragment" : false, - "onField" : false - }, { - "name" : "aws_iam", - "description" : "Tells the service this field/object has access authorized by sigv4 signing.", - "locations" : [ "OBJECT", "FIELD_DEFINITION" ], - "args" : [ ], - "onOperation" : false, - "onFragment" : false, - "onField" : false }, { "name" : "aws_auth", "description" : "Directs the schema to enforce authorization on a field", @@ -12196,20 +13010,12 @@ "onFragment" : false, "onField" : false }, { - "name" : "aws_api_key", - "description" : "Tells the service this field/object has access authorized by an API key.", + "name" : "aws_cognito_user_pools", + "description" : "Tells the service this field/object has access authorized by a Cognito User Pools token.", "locations" : [ "OBJECT", "FIELD_DEFINITION" ], - "args" : [ ], - "onOperation" : false, - "onFragment" : false, - "onField" : false - }, { - "name" : "aws_publish", - "description" : "Tells the service which subscriptions will be published to when this mutation is called. This directive is deprecated use @aws_susbscribe directive instead.", - "locations" : [ "FIELD_DEFINITION" ], "args" : [ { - "name" : "subscriptions", - "description" : "List of subscriptions which will be published to when this mutation is called.", + "name" : "cognito_groups", + "description" : "List of cognito user pool groups which have access on this field", "type" : { "kind" : "LIST", "name" : null, @@ -12224,14 +13030,6 @@ "onOperation" : false, "onFragment" : false, "onField" : false - }, { - "name" : "aws_lambda", - "description" : "Tells the service this field/object has access authorized by a Lambda Authorizer.", - "locations" : [ "OBJECT", "FIELD_DEFINITION" ], - "args" : [ ], - "onOperation" : false, - "onFragment" : false, - "onField" : false } ] } } diff --git a/src/graphql/subscriptions.js b/src/graphql/subscriptions.js index 6e1c139..8611f36 100644 --- a/src/graphql/subscriptions.js +++ b/src/graphql/subscriptions.js @@ -346,6 +346,54 @@ export const onDeleteUserInfo = /* GraphQL */ ` } } `; +export const onCreateGenderInfo = /* GraphQL */ ` + subscription OnCreateGenderInfo( + $filter: ModelSubscriptionGenderInfoFilterInput + ) { + onCreateGenderInfo(filter: $filter) { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + } +`; +export const onUpdateGenderInfo = /* GraphQL */ ` + subscription OnUpdateGenderInfo( + $filter: ModelSubscriptionGenderInfoFilterInput + ) { + onUpdateGenderInfo(filter: $filter) { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + } +`; +export const onDeleteGenderInfo = /* GraphQL */ ` + subscription OnDeleteGenderInfo( + $filter: ModelSubscriptionGenderInfoFilterInput + ) { + onDeleteGenderInfo(filter: $filter) { + id + gender + createdAt + updatedAt + _version + _deleted + _lastChangedAt + __typename + } + } +`; export const onCreateExplainYourself = /* GraphQL */ ` subscription OnCreateExplainYourself( $filter: ModelSubscriptionExplainYourselfFilterInput @@ -444,6 +492,7 @@ export const onCreateUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version @@ -461,6 +510,7 @@ export const onUpdateUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version @@ -478,6 +528,7 @@ export const onDeleteUsersData = /* GraphQL */ ` id username tags + gender createdAt updatedAt _version diff --git a/src/models/index.d.ts b/src/models/index.d.ts index 2729780..3bab416 100644 --- a/src/models/index.d.ts +++ b/src/models/index.d.ts @@ -35,6 +35,10 @@ type UserInfoMetaData = { readOnlyFields: 'createdAt' | 'updatedAt'; } +type GenderInfoMetaData = { + readOnlyFields: 'createdAt' | 'updatedAt'; +} + type ExplainYourselfMetaData = { readOnlyFields: 'createdAt' | 'updatedAt'; } @@ -211,6 +215,26 @@ export declare const UserInfo: (new (init: ModelInit copyOf(source: UserInfo, mutator: (draft: MutableModel) => MutableModel | void): UserInfo; } +type EagerGenderInfo = { + readonly id: string; + readonly gender: string; + readonly createdAt?: string | null; + readonly updatedAt?: string | null; +} + +type LazyGenderInfo = { + readonly id: string; + readonly gender: string; + readonly createdAt?: string | null; + readonly updatedAt?: string | null; +} + +export declare type GenderInfo = LazyLoading extends LazyLoadingDisabled ? EagerGenderInfo : LazyGenderInfo + +export declare const GenderInfo: (new (init: ModelInit) => GenderInfo) & { + copyOf(source: GenderInfo, mutator: (draft: MutableModel) => MutableModel | void): GenderInfo; +} + type EagerExplainYourself = { readonly id: string; readonly explain: string; @@ -255,6 +279,7 @@ type EagerUsersData = { readonly id: string; readonly username: string; readonly tags?: (string | null)[] | null; + readonly gender: string; readonly createdAt?: string | null; readonly updatedAt?: string | null; } @@ -263,6 +288,7 @@ type LazyUsersData = { readonly id: string; readonly username: string; readonly tags?: (string | null)[] | null; + readonly gender: string; readonly createdAt?: string | null; readonly updatedAt?: string | null; } diff --git a/src/models/index.js b/src/models/index.js index 59e461f..84e128e 100644 --- a/src/models/index.js +++ b/src/models/index.js @@ -7,7 +7,7 @@ const PostStatus = { "INACTIVE": "INACTIVE" }; -const { UserSignup, UserLogin, Restaurant, User, Post, Crede, UserInfo, ExplainYourself, Todo, UsersData, Message } = initSchema(schema); +const { UserSignup, UserLogin, Restaurant, User, Post, Crede, UserInfo, GenderInfo, ExplainYourself, Todo, UsersData, Message } = initSchema(schema); export { UserSignup, @@ -17,6 +17,7 @@ export { Post, Crede, UserInfo, + GenderInfo, ExplainYourself, Todo, UsersData, diff --git a/src/models/schema.js b/src/models/schema.js index c2e3425..50957b6 100644 --- a/src/models/schema.js +++ b/src/models/schema.js @@ -384,6 +384,49 @@ export const schema = { } ] }, + "GenderInfo": { + "name": "GenderInfo", + "fields": { + "id": { + "name": "id", + "isArray": false, + "type": "ID", + "isRequired": true, + "attributes": [] + }, + "gender": { + "name": "gender", + "isArray": false, + "type": "String", + "isRequired": true, + "attributes": [] + }, + "createdAt": { + "name": "createdAt", + "isArray": false, + "type": "AWSDateTime", + "isRequired": false, + "attributes": [], + "isReadOnly": true + }, + "updatedAt": { + "name": "updatedAt", + "isArray": false, + "type": "AWSDateTime", + "isRequired": false, + "attributes": [], + "isReadOnly": true + } + }, + "syncable": true, + "pluralName": "GenderInfos", + "attributes": [ + { + "type": "model", + "properties": {} + } + ] + }, "ExplainYourself": { "name": "ExplainYourself", "fields": { @@ -495,6 +538,13 @@ export const schema = { "attributes": [], "isArrayNullable": true }, + "gender": { + "name": "gender", + "isArray": false, + "type": "String", + "isRequired": true, + "attributes": [] + }, "createdAt": { "name": "createdAt", "isArray": false, @@ -574,5 +624,5 @@ export const schema = { }, "nonModels": {}, "codegenVersion": "3.4.4", - "version": "90d3326970d1620bd234dc4a5ae850a2" + "version": "1ff970e4470f3b5bbd978c06107057c9" }; \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 7bd4d4c..c6ae511 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4266,6 +4266,22 @@ "@aws-amplify/storage" "5.8.0" "tslib" "^2.0.0" +"aws-sdk@^2.1425.0": + "integrity" "sha512-DbY5z7E8RsrX8/0pMBKMuh/rWFic3AghtU2AWkUdzxDi0cUSK7rOSPS/OIURU9Rh0jaNXoA0ujBDdx/CC5CvRA==" + "resolved" "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1425.0.tgz" + "version" "2.1425.0" + dependencies: + "buffer" "4.9.2" + "events" "1.1.1" + "ieee754" "1.1.13" + "jmespath" "0.16.0" + "querystring" "0.2.0" + "sax" "1.2.1" + "url" "0.10.3" + "util" "^0.12.4" + "uuid" "8.0.0" + "xml2js" "0.5.0" + "axios@0.26.0": "integrity" "sha512-lKoGLMYtHvFrPVt3r+RBMp9nh34N0M8zEfCWqdWZx6phynIEhQqAdydpyBAAG211zlhX9Rgu08cOamy6XjE5Og==" "resolved" "https://registry.npmjs.org/axios/-/axios-0.26.0.tgz" @@ -5418,6 +5434,11 @@ "resolved" "https://registry.npmjs.org/events/-/events-3.3.0.tgz" "version" "3.3.0" +"events@1.1.1": + "integrity" "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==" + "resolved" "https://registry.npmjs.org/events/-/events-1.1.1.tgz" + "version" "1.1.1" + "execa@^5.0.0": "integrity" "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==" "resolved" "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" @@ -5924,6 +5945,11 @@ "resolved" "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" "version" "1.2.1" +"ieee754@1.1.13": + "integrity" "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + "resolved" "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz" + "version" "1.1.13" + "ignore@^5.0.5", "ignore@^5.2.0": "integrity" "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==" "resolved" "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz" @@ -6033,6 +6059,14 @@ "resolved" "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz" "version" "1.1.8" +"is-arguments@^1.0.4": + "integrity" "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==" + "resolved" "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz" + "version" "1.1.1" + dependencies: + "call-bind" "^1.0.2" + "has-tostringtag" "^1.0.0" + "is-array-buffer@^3.0.1", "is-array-buffer@^3.0.2": "integrity" "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==" "resolved" "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz" @@ -6106,6 +6140,13 @@ "resolved" "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz" "version" "2.1.0" +"is-generator-function@^1.0.7": + "integrity" "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==" + "resolved" "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz" + "version" "1.0.10" + dependencies: + "has-tostringtag" "^1.0.0" + "is-glob@^4.0.0", "is-glob@^4.0.1", "is-glob@^4.0.3": "integrity" "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==" "resolved" "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" @@ -6186,7 +6227,7 @@ dependencies: "has-symbols" "^1.0.2" -"is-typed-array@^1.1.10", "is-typed-array@^1.1.9": +"is-typed-array@^1.1.10", "is-typed-array@^1.1.3", "is-typed-array@^1.1.9": "integrity" "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==" "resolved" "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz" "version" "1.1.10" @@ -6664,6 +6705,11 @@ "import-local" "^3.0.2" "jest-cli" "^29.6.1" +"jmespath@0.16.0": + "integrity" "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==" + "resolved" "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz" + "version" "0.16.0" + "joi@^17.2.1": "integrity" "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==" "resolved" "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz" @@ -8276,6 +8322,11 @@ "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" "version" "2.1.2" +"sax@>=0.6.0", "sax@1.2.1": + "integrity" "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" + "resolved" "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz" + "version" "1.2.1" + "scheduler@^0.23.0": "integrity" "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==" "resolved" "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz" @@ -8986,6 +9037,14 @@ "punycode" "1.3.2" "querystring" "0.2.0" +"url@0.10.3": + "integrity" "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==" + "resolved" "https://registry.npmjs.org/url/-/url-0.10.3.tgz" + "version" "0.10.3" + dependencies: + "punycode" "1.3.2" + "querystring" "0.2.0" + "use-isomorphic-layout-effect@^1.0.0": "integrity" "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==" "resolved" "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz" @@ -9006,6 +9065,17 @@ "resolved" "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" "version" "1.0.2" +"util@^0.12.4": + "integrity" "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==" + "resolved" "https://registry.npmjs.org/util/-/util-0.12.5.tgz" + "version" "0.12.5" + dependencies: + "inherits" "^2.0.3" + "is-arguments" "^1.0.4" + "is-generator-function" "^1.0.7" + "is-typed-array" "^1.1.3" + "which-typed-array" "^1.1.2" + "utils-merge@1.0.1": "integrity" "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" "resolved" "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" @@ -9021,6 +9091,11 @@ "resolved" "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" "version" "8.3.2" +"uuid@8.0.0": + "integrity" "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==" + "resolved" "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz" + "version" "8.0.0" + "v8-to-istanbul@^9.0.1": "integrity" "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==" "resolved" "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz" @@ -9107,7 +9182,7 @@ "resolved" "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz" "version" "2.0.1" -"which-typed-array@^1.1.10": +"which-typed-array@^1.1.10", "which-typed-array@^1.1.2": "integrity" "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==" "resolved" "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz" "version" "1.1.10" @@ -9178,6 +9253,19 @@ "resolved" "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz" "version" "7.5.9" +"xml2js@0.5.0": + "integrity" "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==" + "resolved" "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz" + "version" "0.5.0" + dependencies: + "sax" ">=0.6.0" + "xmlbuilder" "~11.0.0" + +"xmlbuilder@~11.0.0": + "integrity" "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==" + "resolved" "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz" + "version" "11.0.1" + "xstate@^4.33.0", "xstate@^4.33.6": "integrity" "sha512-Fba/DwEPDLneHT3tbJ9F3zafbQXszOlyCJyQqqdzmtlY/cwE2th462KK48yaANf98jHlP6lJvxfNtN0LFKXPQg==" "resolved" "https://registry.npmjs.org/xstate/-/xstate-4.38.2.tgz"