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AEr7B,MAAO,WAE7DyM,OAAOkuB,eAAepC,EAAS,aAAc,CAAEv4B,OAAO,GAAO,ECL9Dk4B,EAAoBoD,IAAOhD,IAC1BA,EAAOiD,MAAQ,GACVjD,EAAOz5B,WAAUy5B,EAAOz5B,SAAW,IACjCy5B,GCHRJ,EAAoBsD,EAAI,I,MCKxB,IAAIC,EAAkB,CACrB,IAAK,GAaNvD,EAAoBc,EAAEQ,EAAKkC,GAA0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4B1xB,KACvD,IAGIuuB,EAAUiD,GAHTzC,EAAU4C,EAAaC,GAAW5xB,EAGhBovB,EAAI,EAC3B,GAAGL,EAAS8C,MAAMhwB,GAAgC,IAAxB0vB,EAAgB1vB,KAAa,CACtD,IAAI0sB,KAAYoD,EACZ3D,EAAoBC,EAAE0D,EAAapD,KACrCP,EAAoBY,EAAEL,GAAYoD,EAAYpD,IAGhD,GAAGqD,EAAS,IAAI5a,EAAS4a,EAAQ5D,EAClC,CAEA,IADG0D,GAA4BA,EAA2B1xB,GACrDovB,EAAIL,EAAS9tB,OAAQmuB,IACzBoC,EAAUzC,EAASK,GAChBpB,EAAoBC,EAAEsD,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOxD,EAAoBc,EAAE9X,EAAO,EAGjC8a,EAAqBC,KAAsB,gBAAIA,KAAsB,iBAAK,GAC9ED,EAAmB3f,QAAQsf,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBt2B,KAAOi2B,EAAqBO,KAAK,KAAMF,EAAmBt2B,KAAKw2B,KAAKF,G,KC7CvF,IAAIG,EAAsBjE,EAAoBc,OAAE5tB,EAAW,CAAC,KAAK,IAAO8sB,EAAoB,SAC5FiE,EAAsBjE,EAAoBc,EAAEmD,E","sources":["src/theme.js","src/views/admin/users/components/AddButton.tsx","src/graphql/queries.js","src/graphql/mutations.js","src/models/index.js","src/models/schema.js","src/utils/dateUtils.js","src/services/cognito/cognito.service.ts","src/services/goulapi/goulapi.utils.ts","src/services/goulapi/goulapi.class.ts","src/services/goulapi/goulapi.user.ts","src/views/admin/users/components/EditUserModal/ClassTag.tsx","src/views/admin/users/components/EditUserModal/ClassAdder.tsx","src/views/admin/users/components/EditUserModal/EditUserModal.tsx","src/modals/YesNoModal.tsx","src/types.ts","src/services/goulapi/goulapi.service.ts","src/components/LoadingContext.tsx","src/views/admin/users/components/BasicTable.tsx","src/utils/agendaUtils.tsx","src/views/user/userCalendar/CustomCalendar.tsx","src/views/user/userCalendar/component/UserClass.tsx","src/views/user/userCalendar/UserCalendarView.tsx","src/views/user/userCalendar/UserCalendarNavigator.tsx","src/views/admin/users/AdminUserList.tsx","src/views/admin/schedule/component/Schedule/ScheduleColumn.tsx","src/views/admin/schedule/component/Schedule/TimeColumn.tsx","src/views/admin/schedule/component/Schedule/Schedule.tsx","src/views/admin/schedule/component/AddClassButton.tsx","src/services/goulapi/goulapi.classtype.ts","src/views/admin/schedule/AdminClassSchedule.tsx","src/utils/classFormatters.tsx","src/views/admin/calendar/component/CalendarClass.tsx","src/views/admin/calendar/AdminCalendarView.tsx","src/views/dev/classType/classTypeView.tsx","src/views/dev/reSendEmail/ReSendEmail.tsx","src/components/AppBar.tsx","src/Main.jsx","src/aws-exports.js","App.js","node_modules/moment/locale|sync|/^/.//.*$","webpack/bootstrap","webpack/runtime/chunk loaded","webpack/runtime/compat get default export","webpack/runtime/create fake namespace object","webpack/runtime/define property getters","webpack/runtime/global","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/make namespace object","webpack/runtime/node module decorator","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading","webpack/startup"],"sourcesContent":["import { Platform } from 'react-native'\n\nconst theme = {\n appBar: {\n primary: '#24292e',\n textSecondary: '#999',\n textPrimary: '#fff'\n },\n colors: {\n textPrimary: '#24292e',\n textSecondary: '#586069',\n primary: '#0366d6',\n white: '#fefefe'\n },\n fontSizes: {\n body: 14,\n subheading: 16\n },\n fonts: {\n main: Platform.select({\n ios: 'Arial',\n android: 'Roboto',\n default: 'System'\n })\n },\n fontWeights: {\n normal: '400',\n bold: '700'\n }\n}\n\nexport default theme\n","import React, { useState } from 'react';\nimport { Text, StyleSheet, Modal, View, TextInput, TouchableOpacity } from 'react-native';\n//Antd\nimport Button from '@ant-design/react-native/lib/button';\n\ninterface AddButtonProps {\n buttonText: string;\n onSave: (email: string, name: string) => void;\n}\n\nconst AddButton: React.FC = ({ buttonText, onSave }) => {\n const [modalVisible, setModalVisible] = useState(false);\n const [name, setName] = useState('');\n const [email, setEmail] = useState('');\n\n const handleSave = () => {\n onSave(email, name);\n setName('');\n setEmail('');\n setModalVisible(false);\n };\n\n const handleClose = () => {\n // Reset input fields and close the modal\n setName('');\n setEmail('');\n setModalVisible(false);\n };\n\n return (\n <>\n \n\n setModalVisible(false)}\n >\n \n \n setName(text)}\n />\n setEmail(text)}\n />\n\n \n \n Save\n \n \n Close\n \n \n \n \n \n \n );\n};\n\nexport default AddButton;\n\nconst styles = StyleSheet.create({\n button: {\n backgroundColor: '#95EC91',\n borderColor: '#6DFE4A',\n borderRadius: 8,\n padding: 10,\n },\n buttonText: {\n letterSpacing: 1,\n fontSize: 13,\n textAlign: 'center',\n },\n modalContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n modalContent: {\n backgroundColor: 'white',\n borderRadius: 8,\n padding: 20,\n width: 300,\n },\n input: {\n height: 40,\n borderColor: 'gray',\n borderWidth: 1,\n marginVertical: 10,\n borderRadius: 8,\n paddingLeft: 10,\n },\n buttonContainer: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginTop: 20,\n },\n saveButton: {\n backgroundColor: '#95EC91',\n borderColor: '#6DFE4A',\n borderRadius: 8,\n padding: 10,\n alignItems: 'center',\n flex: 1,\n marginRight: 5,\n },\n closeButton: {\n backgroundColor: '#FF6F6F',\n borderColor: '#FF4646',\n borderRadius: 8,\n padding: 10,\n alignItems: 'center',\n flex: 1,\n marginLeft: 5,\n },\n});","/* eslint-disable */\n// this is an auto generated file. This will be overwritten\n\nexport const getClassType = /* GraphQL */ `\n query GetClassType($id: ID!) {\n getClassType(id: $id) {\n id\n name\n description\n color\n classes {\n items {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listClassTypes = /* GraphQL */ `\n query ListClassTypes(\n $filter: ModelClassTypeFilterInput\n $limit: Int\n $nextToken: String\n ) {\n listClassTypes(filter: $filter, limit: $limit, nextToken: $nextToken) {\n items {\n id\n name\n description\n color\n classes {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const getClass = /* GraphQL */ `\n query GetClass($id: ID!) {\n getClass(id: $id) {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n classes {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n items {\n id\n classId\n userId\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n date\n description\n classID\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listClasses = /* GraphQL */ `\n query ListClasses(\n $filter: ModelClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n listClasses(filter: $filter, limit: $limit, nextToken: $nextToken) {\n items {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n users {\n items {\n userId\n }\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n date\n description\n classID\n }\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const classesByClassTypeID = /* GraphQL */ `\n query ClassesByClassTypeID(\n $classTypeID: ID!\n $sortDirection: ModelSortDirection\n $filter: ModelClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n classesByClassTypeID(\n classTypeID: $classTypeID\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const getUser = /* GraphQL */ `\n query GetUser($id: ID!) {\n getUser(id: $id) {\n id\n classes {\n items{\n class {\n id\n classTypeID\n classType {\n name\n description\n color\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n canceledClasses {\n items {\n id\n date\n description\n classID\n }\n }\n }\n }\n }\n canceledClasses {\n items{\n class {\n classType {\n name\n description\n color\n }\n description\n time\n duration\n dayOfWeek\n }\n date\n }\n }\n joinedClasses {\n items {\n class {\n classType {\n name\n description\n color\n }\n description\n time\n duration\n dayOfWeek\n }\n date\n }\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listUsers = /* GraphQL */ `\n query ListUsers(\n $filter: ModelUserFilterInput\n $limit: Int\n $nextToken: String\n ) {\n listUsers(filter: $filter, limit: $limit, nextToken: $nextToken) {\n items {\n id\n classes {\n items{\n id\n class {\n id\n classType {\n name\n description\n color\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n }\n }\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const getUserCanceledClass = /* GraphQL */ `\n query GetUserCanceledClass($id: ID!) {\n getUserCanceledClass(id: $id) {\n id\n userJoinedClass(filter: {isCancelled: {ne: true}}) {\n items {\n id\n userCanceledClassID\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listUserCanceledClasses = /* GraphQL */ `\n query ListUserCanceledClasses(\n $id: ID\n $filter: ModelUserCanceledClassFilterInput\n $limit: Int\n $nextToken: String\n $sortDirection: ModelSortDirection\n ) {\n listUserCanceledClasses(\n id: $id\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n sortDirection: $sortDirection\n ) {\n items {\n id\n date\n owner\n isCancelled\n userJoinedClass(filter: {isCancelled: {ne: true}}) {\n items {\n id\n userCanceledClassID\n userID\n classID\n class {\n id\n classTypeID\n description\n time\n dayOfWeek\n }\n date\n owner\n createdAt\n updatedAt\n __typename\n }\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const userCanceledClassesByUserIDAndDate = /* GraphQL */ `\n query UserCanceledClassesByUserIDAndDate(\n $userID: ID!\n $date: ModelIntKeyConditionInput\n $sortDirection: ModelSortDirection\n $filter: ModelUserCanceledClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n userCanceledClassesByUserIDAndDate(\n userID: $userID\n date: $date\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n userJoinedClass(filter: {isCancelled: {ne: true}}) {\n items {\n id\n userCanceledClassID\n userID\n classID\n class {\n id\n classTypeID\n description\n time\n dayOfWeek\n }\n date\n owner\n createdAt\n updatedAt\n __typename\n }\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const userCanceledClassesByClassIDAndDate = /* GraphQL */ `\n query UserCanceledClassesByClassIDAndDate(\n $classID: ID!\n $date: ModelIntKeyConditionInput\n $sortDirection: ModelSortDirection\n $filter: ModelUserCanceledClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n userCanceledClassesByClassIDAndDate(\n classID: $classID\n date: $date\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n userJoinedClass {\n nextToken\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const userCanceledClassesByDateAndId = /* GraphQL */ `\n query UserCanceledClassesByDateAndId(\n $date: Int!\n $id: ModelIDKeyConditionInput\n $sortDirection: ModelSortDirection\n $filter: ModelUserCanceledClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n userCanceledClassesByDateAndId(\n date: $date\n id: $id\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n userJoinedClass {\n nextToken\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const getUserJoinedClass = /* GraphQL */ `\n query GetUserJoinedClass($id: ID!) {\n getUserJoinedClass(id: $id) {\n id\n userCanceledClassID\n userCanceledClass(filter: {isCancelled: {ne: true}}) {\n id\n userJoinedClass {\n nextToken\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listUserJoinedClasses = /* GraphQL */ `\n query ListUserJoinedClasses(\n $id: ID\n $filter: ModelUserJoinedClassFilterInput\n $limit: Int\n $nextToken: String\n $sortDirection: ModelSortDirection\n ) {\n listUserJoinedClasses(\n id: $id\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n sortDirection: $sortDirection\n ) {\n items {\n id\n userCanceledClassID\n userCanceledClass {\n id\n userID\n classID\n class {\n id\n classTypeID\n description\n time\n dayOfWeek\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n name\n description\n color\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\n\nexport const userJoinedClassesByClassIDAndDate = /* GraphQL */ `\n query UserJoinedClassesByClassIDAndDate(\n $classID: ID!\n $date: ModelIntKeyConditionInput\n $sortDirection: ModelSortDirection\n $filter: ModelUserJoinedClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n userJoinedClassesByClassIDAndDate(\n classID: $classID\n date: $date\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n userCanceledClassID\n userCanceledClass {\n id\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const userJoinedClassesByUserIDAndDate = /* GraphQL */ `\n query UserJoinedClassesByUserIDAndDate(\n $userID: ID!\n $date: ModelIntKeyConditionInput\n $sortDirection: ModelSortDirection\n $filter: ModelUserJoinedClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n userJoinedClassesByUserIDAndDate(\n userID: $userID\n date: $date\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n userCanceledClassID\n userCanceledClass {\n id\n userID\n classID\n class {\n id\n classTypeID\n description\n time\n dayOfWeek\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n name\n description\n color\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const userJoinedClassesByDateAndId = /* GraphQL */ `\n query UserJoinedClassesByDateAndId(\n $date: Int!\n $id: ModelIDKeyConditionInput\n $sortDirection: ModelSortDirection\n $filter: ModelUserJoinedClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n userJoinedClassesByDateAndId(\n date: $date\n id: $id\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n userCanceledClassID\n userCanceledClass {\n id\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const getCanceledClass = /* GraphQL */ `\n query GetCanceledClass($id: ID!) {\n getCanceledClass(id: $id) {\n id\n date\n description\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listCanceledClasses = /* GraphQL */ `\n query ListCanceledClasses(\n $id: ID\n $filter: ModelCanceledClassFilterInput\n $limit: Int\n $nextToken: String\n $sortDirection: ModelSortDirection\n ) {\n listCanceledClasses(\n id: $id\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n sortDirection: $sortDirection\n ) {\n items {\n id\n date\n description\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const canceledClassesByDateAndId = /* GraphQL */ `\n query CanceledClassesByDateAndId(\n $date: Int!\n $id: ModelIDKeyConditionInput\n $sortDirection: ModelSortDirection\n $filter: ModelCanceledClassFilterInput\n $limit: Int\n $nextToken: String\n ) {\n canceledClassesByDateAndId(\n date: $date\n id: $id\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n date\n description\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const getCancelledDay = /* GraphQL */ `\n query GetCancelledDay($id: ID!) {\n getCancelledDay(id: $id) {\n id\n date\n description\n unavailableDay\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listCancelledDays = /* GraphQL */ `\n query ListCancelledDays(\n $filter: ModelCancelledDayFilterInput\n $limit: Int\n $nextToken: String\n ) {\n listCancelledDays(filter: $filter, limit: $limit, nextToken: $nextToken) {\n items {\n id\n date\n description\n unavailableDay\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const getClassUsers = /* GraphQL */ `\n query GetClassUsers($id: ID!) {\n getClassUsers(id: $id) {\n id\n classId\n userId\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const listClassUsers = /* GraphQL */ `\n query ListClassUsers(\n $filter: ModelClassUsersFilterInput\n $limit: Int\n $nextToken: String\n ) {\n listClassUsers(filter: $filter, limit: $limit, nextToken: $nextToken) {\n items {\n id\n classId\n userId\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const classUsersByClassId = /* GraphQL */ `\n query ClassUsersByClassId(\n $classId: ID!\n $sortDirection: ModelSortDirection\n $filter: ModelClassUsersFilterInput\n $limit: Int\n $nextToken: String\n ) {\n classUsersByClassId(\n classId: $classId\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n classId\n userId\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\nexport const classUsersByUserId = /* GraphQL */ `\n query ClassUsersByUserId(\n $userId: ID!\n $sortDirection: ModelSortDirection\n $filter: ModelClassUsersFilterInput\n $limit: Int\n $nextToken: String\n ) {\n classUsersByUserId(\n userId: $userId\n sortDirection: $sortDirection\n filter: $filter\n limit: $limit\n nextToken: $nextToken\n ) {\n items {\n id\n classId\n userId\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n }\n`;\n","/* eslint-disable */\n// this is an auto generated file. This will be overwritten\n\nexport const createClassType = /* GraphQL */ `\n mutation CreateClassType(\n $input: CreateClassTypeInput!\n $condition: ModelClassTypeConditionInput\n ) {\n createClassType(input: $input, condition: $condition) {\n id\n name\n description\n color\n classes {\n items {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateClassType = /* GraphQL */ `\n mutation UpdateClassType(\n $input: UpdateClassTypeInput!\n $condition: ModelClassTypeConditionInput\n ) {\n updateClassType(input: $input, condition: $condition) {\n id\n name\n description\n color\n classes {\n items {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteClassType = /* GraphQL */ `\n mutation DeleteClassType(\n $input: DeleteClassTypeInput!\n $condition: ModelClassTypeConditionInput\n ) {\n deleteClassType(input: $input, condition: $condition) {\n id\n name\n description\n color\n classes {\n items {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const createClass = /* GraphQL */ `\n mutation CreateClass(\n $input: CreateClassInput!\n $condition: ModelClassConditionInput\n ) {\n createClass(input: $input, condition: $condition) {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n classes {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n items {\n id\n classId\n userId\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n date\n description\n classID\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateClass = /* GraphQL */ `\n mutation UpdateClass(\n $input: UpdateClassInput!\n $condition: ModelClassConditionInput\n ) {\n updateClass(input: $input, condition: $condition) {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n classes {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n items {\n id\n classId\n userId\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n date\n description\n classID\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteClass = /* GraphQL */ `\n mutation DeleteClass(\n $input: DeleteClassInput!\n $condition: ModelClassConditionInput\n ) {\n deleteClass(input: $input, condition: $condition) {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n classes {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n items {\n id\n classId\n userId\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n date\n description\n classID\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const createUser = /* GraphQL */ `\n mutation CreateUser(\n $input: CreateUserInput!\n $condition: ModelUserConditionInput\n ) {\n createUser(input: $input, condition: $condition) {\n id\n classes {\n items {\n id\n classId\n userId\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n joinedClasses {\n items {\n id\n userCanceledClassID\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateUser = /* GraphQL */ `\n mutation UpdateUser(\n $input: UpdateUserInput!\n $condition: ModelUserConditionInput\n ) {\n updateUser(input: $input, condition: $condition) {\n id\n classes {\n items {\n id\n classId\n userId\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n joinedClasses {\n items {\n id\n userCanceledClassID\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteUser = /* GraphQL */ `\n mutation DeleteUser(\n $input: DeleteUserInput!\n $condition: ModelUserConditionInput\n ) {\n deleteUser(input: $input, condition: $condition) {\n id\n classes {\n items {\n id\n classId\n userId\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n canceledClasses {\n items {\n id\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n joinedClasses {\n items {\n id\n userCanceledClassID\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const createUserCanceledClass = /* GraphQL */ `\n mutation CreateUserCanceledClass(\n $input: CreateUserCanceledClassInput!\n $condition: ModelUserCanceledClassConditionInput\n ) {\n createUserCanceledClass(input: $input, condition: $condition) {\n id\n userJoinedClass {\n items {\n id\n userCanceledClassID\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateUserCanceledClass = /* GraphQL */ `\n mutation UpdateUserCanceledClass(\n $input: UpdateUserCanceledClassInput!\n $condition: ModelUserCanceledClassConditionInput\n ) {\n updateUserCanceledClass(input: $input, condition: $condition) {\n id\n userJoinedClass {\n items {\n id\n userCanceledClassID\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteUserCanceledClass = /* GraphQL */ `\n mutation DeleteUserCanceledClass(\n $input: DeleteUserCanceledClassInput!\n $condition: ModelUserCanceledClassConditionInput\n ) {\n deleteUserCanceledClass(input: $input, condition: $condition) {\n id\n userJoinedClass {\n items {\n id\n userCanceledClassID\n userID\n classID\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n nextToken\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const createUserJoinedClass = /* GraphQL */ `\n mutation CreateUserJoinedClass(\n $input: CreateUserJoinedClassInput!\n $condition: ModelUserJoinedClassConditionInput\n ) {\n createUserJoinedClass(input: $input, condition: $condition) {\n id\n userCanceledClassID\n userCanceledClass {\n id\n userJoinedClass {\n nextToken\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateUserJoinedClass = /* GraphQL */ `\n mutation UpdateUserJoinedClass(\n $input: UpdateUserJoinedClassInput!\n $condition: ModelUserJoinedClassConditionInput\n ) {\n updateUserJoinedClass(input: $input, condition: $condition) {\n id\n userCanceledClassID\n userCanceledClass {\n id\n userJoinedClass {\n nextToken\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteUserJoinedClass = /* GraphQL */ `\n mutation DeleteUserJoinedClass(\n $input: DeleteUserJoinedClassInput!\n $condition: ModelUserJoinedClassConditionInput\n ) {\n deleteUserJoinedClass(input: $input, condition: $condition) {\n id\n userCanceledClassID\n userCanceledClass {\n id\n userJoinedClass {\n nextToken\n __typename\n }\n userID\n user {\n id\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n description\n time\n duration\n dayOfWeek\n maxAssist\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n userID\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n date\n owner\n isCancelled\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const createCanceledClass = /* GraphQL */ `\n mutation CreateCanceledClass(\n $input: CreateCanceledClassInput!\n $condition: ModelCanceledClassConditionInput\n ) {\n createCanceledClass(input: $input, condition: $condition) {\n id\n date\n description\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateCanceledClass = /* GraphQL */ `\n mutation UpdateCanceledClass(\n $input: UpdateCanceledClassInput!\n $condition: ModelCanceledClassConditionInput\n ) {\n updateCanceledClass(input: $input, condition: $condition) {\n id\n date\n description\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteCanceledClass = /* GraphQL */ `\n mutation DeleteCanceledClass(\n $input: DeleteCanceledClassInput!\n $condition: ModelCanceledClassConditionInput\n ) {\n deleteCanceledClass(input: $input, condition: $condition) {\n id\n date\n description\n classID\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const createCancelledDay = /* GraphQL */ `\n mutation CreateCancelledDay(\n $input: CreateCancelledDayInput!\n $condition: ModelCancelledDayConditionInput\n ) {\n createCancelledDay(input: $input, condition: $condition) {\n id\n date\n description\n unavailableDay\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateCancelledDay = /* GraphQL */ `\n mutation UpdateCancelledDay(\n $input: UpdateCancelledDayInput!\n $condition: ModelCancelledDayConditionInput\n ) {\n updateCancelledDay(input: $input, condition: $condition) {\n id\n date\n description\n unavailableDay\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteCancelledDay = /* GraphQL */ `\n mutation DeleteCancelledDay(\n $input: DeleteCancelledDayInput!\n $condition: ModelCancelledDayConditionInput\n ) {\n deleteCancelledDay(input: $input, condition: $condition) {\n id\n date\n description\n unavailableDay\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const createClassUsers = /* GraphQL */ `\n mutation CreateClassUsers(\n $input: CreateClassUsersInput!\n $condition: ModelClassUsersConditionInput\n ) {\n createClassUsers(input: $input, condition: $condition) {\n id\n classId\n userId\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const updateClassUsers = /* GraphQL */ `\n mutation UpdateClassUsers(\n $input: UpdateClassUsersInput!\n $condition: ModelClassUsersConditionInput\n ) {\n updateClassUsers(input: $input, condition: $condition) {\n id\n classId\n userId\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\nexport const deleteClassUsers = /* GraphQL */ `\n mutation DeleteClassUsers(\n $input: DeleteClassUsersInput!\n $condition: ModelClassUsersConditionInput\n ) {\n deleteClassUsers(input: $input, condition: $condition) {\n id\n classId\n userId\n class {\n id\n classTypeID\n classType {\n id\n name\n description\n color\n createdAt\n updatedAt\n __typename\n }\n description\n time\n duration\n dayOfWeek\n maxAssist\n users {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n isDeleted\n createdAt\n updatedAt\n __typename\n }\n user {\n id\n classes {\n nextToken\n __typename\n }\n canceledClasses {\n nextToken\n __typename\n }\n joinedClasses {\n nextToken\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n createdAt\n updatedAt\n __typename\n }\n }\n`;\n","// @ts-check\nimport { initSchema } from '@aws-amplify/datastore';\nimport { schema } from './schema';\n\n\n\nconst { ClassType, Class, User, UserCanceledClass, UserJoinedClass, CanceledClass, CancelledDay, ClassUsers } = initSchema(schema);\n\nexport {\n ClassType,\n Class,\n User,\n UserCanceledClass,\n UserJoinedClass,\n CanceledClass,\n CancelledDay,\n ClassUsers\n};","export const schema = {\n \"models\": {\n \"ClassType\": {\n \"name\": \"ClassType\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"name\": {\n \"name\": \"name\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"description\": {\n \"name\": \"description\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"color\": {\n \"name\": \"color\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"classes\": {\n \"name\": \"classes\",\n \"isArray\": true,\n \"type\": {\n \"model\": \"Class\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"isArrayNullable\": true,\n \"association\": {\n \"connectionType\": \"HAS_MANY\",\n \"associatedWith\": [\n \"classType\"\n ]\n }\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"ClassTypes\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"auth\",\n \"properties\": {\n \"rules\": [\n {\n \"groupClaim\": \"cognito:groups\",\n \"provider\": \"userPools\",\n \"allow\": \"groups\",\n \"groups\": [\n \"admin\"\n ],\n \"operations\": [\n \"create\",\n \"update\",\n \"delete\",\n \"read\"\n ]\n },\n {\n \"allow\": \"private\",\n \"operations\": [\n \"read\"\n ]\n }\n ]\n }\n }\n ]\n },\n \"Class\": {\n \"name\": \"Class\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"classTypeID\": {\n \"name\": \"classTypeID\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"classType\": {\n \"name\": \"classType\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"ClassType\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"BELONGS_TO\",\n \"targetNames\": [\n \"classTypeID\"\n ]\n }\n },\n \"description\": {\n \"name\": \"description\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"time\": {\n \"name\": \"time\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"duration\": {\n \"name\": \"duration\",\n \"isArray\": false,\n \"type\": \"Int\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"dayOfWeek\": {\n \"name\": \"dayOfWeek\",\n \"isArray\": false,\n \"type\": \"Int\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"maxAssist\": {\n \"name\": \"maxAssist\",\n \"isArray\": false,\n \"type\": \"Int\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"users\": {\n \"name\": \"users\",\n \"isArray\": true,\n \"type\": {\n \"model\": \"ClassUsers\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"isArrayNullable\": true,\n \"association\": {\n \"connectionType\": \"HAS_MANY\",\n \"associatedWith\": [\n \"class\"\n ]\n }\n },\n \"canceledClasses\": {\n \"name\": \"canceledClasses\",\n \"isArray\": true,\n \"type\": {\n \"model\": \"CanceledClass\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"isArrayNullable\": true,\n \"association\": {\n \"connectionType\": \"HAS_MANY\",\n \"associatedWith\": [\n \"class\"\n ]\n }\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"Classes\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"name\": \"byClassTypeId\",\n \"fields\": [\n \"classTypeID\",\n \"dayOfWeek\"\n ]\n }\n },\n {\n \"type\": \"auth\",\n \"properties\": {\n \"rules\": [\n {\n \"groupClaim\": \"cognito:groups\",\n \"provider\": \"userPools\",\n \"allow\": \"groups\",\n \"groups\": [\n \"admin\"\n ],\n \"operations\": [\n \"create\",\n \"update\",\n \"delete\",\n \"read\"\n ]\n },\n {\n \"allow\": \"private\",\n \"operations\": [\n \"read\"\n ]\n }\n ]\n }\n }\n ]\n },\n \"User\": {\n \"name\": \"User\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"userName\": {\n \"name\": \"userName\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"classes\": {\n \"name\": \"classes\",\n \"isArray\": true,\n \"type\": {\n \"model\": \"ClassUsers\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"isArrayNullable\": true,\n \"association\": {\n \"connectionType\": \"HAS_MANY\",\n \"associatedWith\": [\n \"user\"\n ]\n }\n },\n \"canceledClasses\": {\n \"name\": \"canceledClasses\",\n \"isArray\": true,\n \"type\": {\n \"model\": \"UserCanceledClass\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"isArrayNullable\": true,\n \"association\": {\n \"connectionType\": \"HAS_MANY\",\n \"associatedWith\": [\n \"user\"\n ]\n }\n },\n \"joinedClasses\": {\n \"name\": \"joinedClasses\",\n \"isArray\": true,\n \"type\": {\n \"model\": \"UserJoinedClass\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"isArrayNullable\": true,\n \"association\": {\n \"connectionType\": \"HAS_MANY\",\n \"associatedWith\": [\n \"user\"\n ]\n }\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"Users\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"name\": \"userByUsername\",\n \"fields\": [\n \"userName\",\n \"id\"\n ]\n }\n },\n {\n \"type\": \"auth\",\n \"properties\": {\n \"rules\": [\n {\n \"groupClaim\": \"cognito:groups\",\n \"provider\": \"userPools\",\n \"allow\": \"groups\",\n \"groups\": [\n \"admin\"\n ],\n \"operations\": [\n \"create\",\n \"update\",\n \"delete\",\n \"read\"\n ]\n },\n {\n \"allow\": \"private\",\n \"operations\": [\n \"read\"\n ]\n }\n ]\n }\n }\n ]\n },\n \"UserCanceledClass\": {\n \"name\": \"UserCanceledClass\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"userID\": {\n \"name\": \"userID\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"user\": {\n \"name\": \"user\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"User\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"BELONGS_TO\",\n \"targetNames\": [\n \"userID\"\n ]\n }\n },\n \"classID\": {\n \"name\": \"classID\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"class\": {\n \"name\": \"class\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"Class\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"HAS_ONE\",\n \"associatedWith\": [\n \"id\"\n ],\n \"targetNames\": [\n \"classID\"\n ]\n }\n },\n \"date\": {\n \"name\": \"date\",\n \"isArray\": false,\n \"type\": \"Int\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"owner\": {\n \"name\": \"owner\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": false,\n \"attributes\": []\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"UserCanceledClasses\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"fields\": [\n \"id\"\n ]\n }\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"name\": \"userCCByUserID\",\n \"fields\": [\n \"userID\",\n \"date\"\n ]\n }\n },\n {\n \"type\": \"auth\",\n \"properties\": {\n \"rules\": [\n {\n \"groupClaim\": \"cognito:groups\",\n \"provider\": \"userPools\",\n \"allow\": \"groups\",\n \"groups\": [\n \"admin\"\n ],\n \"operations\": [\n \"create\",\n \"update\",\n \"delete\",\n \"read\"\n ]\n },\n {\n \"allow\": \"private\",\n \"operations\": [\n \"read\"\n ]\n },\n {\n \"provider\": \"userPools\",\n \"ownerField\": \"owner\",\n \"allow\": \"owner\",\n \"operations\": [\n \"create\",\n \"read\"\n ],\n \"identityClaim\": \"cognito:username\"\n }\n ]\n }\n }\n ]\n },\n \"UserJoinedClass\": {\n \"name\": \"UserJoinedClass\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"userID\": {\n \"name\": \"userID\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"user\": {\n \"name\": \"user\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"User\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"BELONGS_TO\",\n \"targetNames\": [\n \"userID\"\n ]\n }\n },\n \"classID\": {\n \"name\": \"classID\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"class\": {\n \"name\": \"class\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"Class\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"HAS_ONE\",\n \"associatedWith\": [\n \"id\"\n ],\n \"targetNames\": [\n \"classID\"\n ]\n }\n },\n \"date\": {\n \"name\": \"date\",\n \"isArray\": false,\n \"type\": \"Int\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"owner\": {\n \"name\": \"owner\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": false,\n \"attributes\": []\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"UserJoinedClasses\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"fields\": [\n \"id\"\n ]\n }\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"name\": \"userJCByID\",\n \"fields\": [\n \"userID\",\n \"date\"\n ]\n }\n },\n {\n \"type\": \"auth\",\n \"properties\": {\n \"rules\": [\n {\n \"groupClaim\": \"cognito:groups\",\n \"provider\": \"userPools\",\n \"allow\": \"groups\",\n \"groups\": [\n \"admin\"\n ],\n \"operations\": [\n \"create\",\n \"update\",\n \"delete\",\n \"read\"\n ]\n },\n {\n \"allow\": \"private\",\n \"operations\": [\n \"read\"\n ]\n },\n {\n \"provider\": \"userPools\",\n \"ownerField\": \"owner\",\n \"allow\": \"owner\",\n \"operations\": [\n \"create\",\n \"read\"\n ],\n \"identityClaim\": \"cognito:username\"\n }\n ]\n }\n }\n ]\n },\n \"CanceledClass\": {\n \"name\": \"CanceledClass\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"date\": {\n \"name\": \"date\",\n \"isArray\": false,\n \"type\": \"Int\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"description\": {\n \"name\": \"description\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"classID\": {\n \"name\": \"classID\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"class\": {\n \"name\": \"class\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"Class\"\n },\n \"isRequired\": false,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"BELONGS_TO\",\n \"targetNames\": [\n \"classID\"\n ]\n }\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"CanceledClasses\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"fields\": [\n \"id\"\n ]\n }\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"name\": \"CCByClassID\",\n \"fields\": [\n \"classID\",\n \"date\"\n ]\n }\n },\n {\n \"type\": \"auth\",\n \"properties\": {\n \"rules\": [\n {\n \"groupClaim\": \"cognito:groups\",\n \"provider\": \"userPools\",\n \"allow\": \"groups\",\n \"groups\": [\n \"admin\"\n ],\n \"operations\": [\n \"create\",\n \"update\",\n \"delete\",\n \"read\"\n ]\n },\n {\n \"allow\": \"private\",\n \"operations\": [\n \"read\"\n ]\n }\n ]\n }\n }\n ]\n },\n \"CancelledDay\": {\n \"name\": \"CancelledDay\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"date\": {\n \"name\": \"date\",\n \"isArray\": false,\n \"type\": \"Int\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"description\": {\n \"name\": \"description\",\n \"isArray\": false,\n \"type\": \"String\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"CancelledDays\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"auth\",\n \"properties\": {\n \"rules\": [\n {\n \"groupClaim\": \"cognito:groups\",\n \"provider\": \"userPools\",\n \"allow\": \"groups\",\n \"groups\": [\n \"admin\"\n ],\n \"operations\": [\n \"create\",\n \"update\",\n \"delete\",\n \"read\"\n ]\n },\n {\n \"allow\": \"private\",\n \"operations\": [\n \"read\"\n ]\n }\n ]\n }\n }\n ]\n },\n \"ClassUsers\": {\n \"name\": \"ClassUsers\",\n \"fields\": {\n \"id\": {\n \"name\": \"id\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": true,\n \"attributes\": []\n },\n \"classId\": {\n \"name\": \"classId\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": false,\n \"attributes\": []\n },\n \"userId\": {\n \"name\": \"userId\",\n \"isArray\": false,\n \"type\": \"ID\",\n \"isRequired\": false,\n \"attributes\": []\n },\n \"class\": {\n \"name\": \"class\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"Class\"\n },\n \"isRequired\": true,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"BELONGS_TO\",\n \"targetNames\": [\n \"classId\"\n ]\n }\n },\n \"user\": {\n \"name\": \"user\",\n \"isArray\": false,\n \"type\": {\n \"model\": \"User\"\n },\n \"isRequired\": true,\n \"attributes\": [],\n \"association\": {\n \"connectionType\": \"BELONGS_TO\",\n \"targetNames\": [\n \"userId\"\n ]\n }\n },\n \"createdAt\": {\n \"name\": \"createdAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n },\n \"updatedAt\": {\n \"name\": \"updatedAt\",\n \"isArray\": false,\n \"type\": \"AWSDateTime\",\n \"isRequired\": false,\n \"attributes\": [],\n \"isReadOnly\": true\n }\n },\n \"syncable\": true,\n \"pluralName\": \"ClassUsers\",\n \"attributes\": [\n {\n \"type\": \"model\",\n \"properties\": {}\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"name\": \"byClass\",\n \"fields\": [\n \"classId\"\n ]\n }\n },\n {\n \"type\": \"key\",\n \"properties\": {\n \"name\": \"byUser\",\n \"fields\": [\n \"userId\"\n ]\n }\n }\n ]\n }\n },\n \"enums\": {},\n \"nonModels\": {},\n \"codegenVersion\": \"3.4.4\",\n \"version\": \"4733d483a71c918c4eb2c60cb8269733\"\n};","export function dateDB_to_date(date, dayOfWeek)\n{\n return new Date(Math.floor(date/100), 0, (date%100 - 1 ) * 7 + (dayOfWeek) - (7 + new Date(Math.floor(date/100), 0, 1).getDay() - 1 ) % 7);\n};\n\nexport function dateDBCancelledDay_to_date(cancelledDayFormat)\n{\n const dayOfweek = cancelledDayFormat%10;\n const date= (cancelledDayFormat - dayOfweek)/10;\n return dateDB_to_date(date, dayOfWeek);\n};\n\nexport function dayFormat(selectedDate)\n{\n return new Date(selectedDate - (new Date(selectedDate).getTimezoneOffset()*60*1000)).toISOString().split('T')[0];;\n};\n\nexport function getDayOfWeek(date)\n{\n return date.getDay();\n};\n\nexport const getDaysOfWeekFrom = (fechaInicio, fechaFinal, diaSemana) => {\n const resultados = [];\n const diaDeLaSemana = fechaInicio.getDay(); // 0 = domingo, 1 = lunes, ..., 6 = sábado\n\n const dia = new Date(fechaInicio.getFullYear(), fechaInicio.getMonth(), fechaInicio.getDate());\n dia.setDate(dia.getDate() + (7 + diaSemana - diaDeLaSemana) % 7);\n\n // Añade todos los lunes al arreglo de resultados\n while (dia <= fechaFinal) {\n resultados.push(dayFormat(dia));\n dia.setDate(dia.getDate() + 7);\n }\n\n return resultados;\n};\n\n\nexport const getDaysFrom = (fechaInicio, fechaFinal) => {\n const resultados = [];\n const diaDeLaSemana = fechaInicio.getDay(); // 0 = domingo, 1 = lunes, ..., 6 = sábado\n\n const dia = new Date(fechaInicio);\n\n // Añade todos los lunes al arreglo de resultados\n while (dia <= fechaFinal) {\n resultados[dayFormat(dia)] = [];\n dia.setDate(dia.getDate() + 1);\n }\n\n return resultados;\n};\n\nexport const generateTimeArray = (start, end, interval) => {\n const timeArray = [];\n let currentTime = new Date(`2023-01-01 ${start}`);\n const endTime = new Date(`2023-01-01 ${end}`);\n \n while (currentTime <= endTime) {\n timeArray.push(currentTime.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }));\n currentTime = new Date(currentTime.getTime() + interval * 60 * 1000);\n }\n \n return timeArray;\n}\n\n export function getWeekNumber(date: Date): number {\n\n const year = date.getFullYear();\n \n const onejan = new Date(year, 0, 1);\n const millisecsInDay = 86400000;\n const oneJanDay = onejan.getDay();\n const week = Math.ceil((((date.getTime() - onejan.getTime() + 1) / millisecsInDay) + (7 + oneJanDay - 1 ) % 7) / 7);\n \n return year*100 + week;\n } \n \n export function getCancelledDayFormat(date: Date): number { \n return getWeekNumber(date)*10 + getDayOfWeek(date);\n }","import { API, Auth } from \"aws-amplify\";\n\nexport const listOfUsers = async (jwtToken: string, limit: number = 10): Promise => {\n try {\n let apiName = 'AdminQueries';\n let path = '/listUsers';\n let options = {\n queryStringParameters: {\n },\n headers: {\n 'Content-Type': 'application/json',\n Authorization: jwtToken\n }\n };\n const response = await API.get(apiName, path, options);\n return response;\n } catch (error) {\n console.log('Error retrieving listOfUsers:', error);\n return null;\n }\n};\n\nexport const createUser = async (jwtToken: string, username: string, email: string): Promise => {\n try {\n let apiName = 'AdminQueries';\n let path = '/createUser';\n let options = {\n body: {\n username: username,\n email: email\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': jwtToken\n }\n };\n const response = await API.post(apiName, path, options);\n \n return response;\n } catch (error) {\n console.log('User already exists, enabling user', error);\n return enableUser(jwtToken, email);\n }\n};\n\nexport const resendUserEmail = async (jwtToken: string, username: string, email: string): Promise => {\n try {\n let apiName = 'AdminQueries';\n let path = '/resendUserEmail';\n let options = {\n body: {\n username: username,\n email: email\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': jwtToken\n }\n };\n const response = await API.post(apiName, path, options);\n console.log('re-sended email to user: ' + email);\n return response;\n } catch (error) {\n console.log('Error retrieving resendUserEmail:', error);\n return null;\n }\n};\n\n\nexport const disableUser = async (jwtToken: string, username: string): Promise => {\n try {\n\n //TODO Borrar el usuario en cascada, empezando por graphql\n let apiName = 'AdminQueries';\n let path = '/disableUser';\n let options = {\n body: {\n username: username\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': jwtToken\n }\n };\n const response = await API.post(apiName, path, options);\n return response;\n } catch (error) {\n console.log('Error retrieving disableUser:', error);\n return null;\n }\n};\n\nexport const enableUser = async (jwtToken: string, username: string): Promise => {\n try {\n let apiName = 'AdminQueries';\n let path = '/enableUser';\n let options = {\n body: {\n username: username\n },\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': jwtToken\n }\n };\n const response = await API.post(apiName, path, options);\n return response;\n } catch (error) {\n console.log('Error retrieving enableUser:', error);\n return null;\n }\n};","import { API, graphqlOperation } from 'aws-amplify';\n\nexport async function baseListGQLRequest(variables: any, query: string): Promise {\n let items: any[] = [];\n variables.nextToken = null;\n const queryPart = query.split(' ')[3].split('(')[0];\n const propertyName = queryPart.charAt(0).toLowerCase() + queryPart.slice(1);\n\n try {\n const startTime = Date.now();\n var counter = 0;\n do {\n const response = await API.graphql({\n query: query,\n variables: variables,\n authMode: 'AMAZON_COGNITO_USER_POOLS'\n });\n\n items.push(...response.data[propertyName]?.items || []);\n variables.nextToken = response.data[propertyName]?.nextToken;\n ++counter;\n } while (variables.nextToken);\n\n const endTime = Date.now();\n const timeTaken = endTime - startTime;\n console.log(`Query: ${query.split('(')[0].trim()}, Time taken: ${timeTaken}ms (${counter} calls)`);\n\n } catch (error) {\n console.log('Error retrieving ' + propertyName + ': ', error);\n }\n return items;\n}\n\nexport async function baseGQLRequest(variables: any, query: string): Promise {\n const queryPart = query.split(' ')[3].split('(')[0];\n const propertyName = queryPart.charAt(0).toLowerCase() + queryPart.slice(1);\n let item: any = {};\n\n try {\n const startTime = Date.now();\n const response = await API.graphql({\n query: query,\n variables: variables,\n authMode: 'AMAZON_COGNITO_USER_POOLS',\n });\n const endTime = Date.now();\n const timeTaken = endTime - startTime;\n console.log(`Query: ${query.split('(')[0].trim()}, Time taken: ${timeTaken}ms`);\n\n item = response.data[propertyName];\n } catch (error) {\n console.log('Error retrieving ' + propertyName + ': ', error);\n }\n return item;\n}\n\nexport function getWeekFilterAndNotCancelled(weekFrom: number, weekTo: number) {\n var variables = {};\n \n if (weekFrom != 0 && weekTo != 0) {\n variables = {\n filter: {\n isCancelled: { ne: true },\n and: { date: { between: [weekFrom, weekTo] } }\n }\n }\n }\n\n return variables;\n}","\nimport * as queries from '../../graphql/queries';\nimport * as mutations from '../../graphql/mutations';\nimport { Class} from \"../../models\";\nimport { baseListGQLRequest, baseGQLRequest } from './goulapi.utils';\n\n// Classes\nexport async function getAvailableClasses(types: string[] = []): Promise {\n const variables = types.length > 0 ? {\n filter: {isDeleted: {ne: true},\n or: types.map(type => ({ classTypeID: { eq: type } }))\n }\n } : {filter:{isDeleted: {ne: true}}};\n return baseListGQLRequest(variables, queries.listClasses);\n}\n\nexport async function getClasesFromDayOfWeek(dayOfWeek): Promise{\n return baseListGQLRequest({ filter: { dayOfWeek: {eq: dayOfWeek} } }, queries.listClasses);\n}\n\nexport async function getClass(classId: string): Promise {\n return baseGQLRequest({ id: classId }, queries.getClass);\n}\n\nexport async function addClass(newClass: Class): Promise {\n return baseGQLRequest({ input: newClass, }, mutations.createClass);\n}\n\nexport async function removeClass(classId: string): Promise {\n const classToCancel = { id: classId, isDeleted: true };\n return baseGQLRequest({ input: classToCancel}, mutations.updateClass);\n}\nexport async function updateClass(updatedClass: Class): Promise {\n return baseGQLRequest({ input: updatedClass}, mutations.updateClass);\n}\n","\nimport * as queries from '../../graphql/queries';\nimport * as mutations from '../../graphql/mutations';\nimport { User, UserCanceledClass, UserJoinedClass } from \"../../models\";\nimport { getWeekNumber } from \"../../utils/dateUtils\";\nimport { Auth } from 'aws-amplify';\nimport { listOfUsers } from '../cognito/cognito.service';\nimport { getClass } from './goulapi.class';\nimport { baseListGQLRequest, baseGQLRequest, getWeekFilterAndNotCancelled } from './goulapi.utils';\n\nexport async function getUsersAndInfo(): Promise {\n try {\n const findAttinUser = (user, val) => {\n const filter = Object.entries(user.Attributes).find(([key, att]) => att?.Name === val);\n if(filter)\n {\n return filter[1].Value;\n }\n return '';\n }\n\n const usersCognito = await listOfUsers((await Auth.currentSession()).getAccessToken().getJwtToken());\n //filter Admin user\n const adminIndex = usersCognito.findIndex(u => findAttinUser(u, 'name')=== 'Admin 01');\n if(adminIndex !== -1) {\n usersCognito.splice(adminIndex, 1);\n }\n const usersAPI = await getUsers() || [User];\n const output = usersCognito.filter((user, key) => user.Enabled).map((user, key) => (\n {...usersAPI.find(u => u.id === user.Username), userName: user.Username ,email: findAttinUser(user, 'email'), name: findAttinUser(user, 'name'), telf: findAttinUser(user, 'phone_number'), status: user.UserStatus}) \n );\n output.sort((a, b) => a.name.localeCompare(b.name));\n return output;\n } catch (error) {\n console.log('Error retrieving getUsersAndInfo:', error);\n return [];\n }\n}\n\nasync function queriesListUserCanceledClasses(variables: any): Promise {\n return await baseListGQLRequest(variables, queries.listUserCanceledClasses);\n}\n\nasync function queriesListUserCanceledClassesByUser(userID: string, dateFrom: number, dateTo: number, filter: any): Promise {\n var variables;\n if(dateFrom == dateTo){\n variables = {userID: userID, date: {eq: dateFrom}};\n }\n else\n {\n variables = {userID: userID, date: {between: [dateFrom, dateTo]}};\n }\n \n variables.filter = filter;\n return await baseListGQLRequest(variables, queries.userCanceledClassesByUserIDAndDate);\n}\n\nexport async function getUsersSessionsJoinedFromUser(userID: string, dateFrom: number = 0, dateTo: number = 999999): Promise {\n //TODO add also day of week filter\n //TODO add classID filter if it is different than ''\n var variables;\n if(dateFrom == dateTo){\n variables = {userID: userID, date: {eq: dateFrom}};\n }\n else\n {\n variables = {userID: userID, date: {between: [dateFrom, dateTo]}};\n }\n variables.filter = {isCancelled: {ne: true}};\n return await baseListGQLRequest(variables, queries.userJoinedClassesByUserIDAndDate);\n}\n\n// Users\nexport async function getUsers(): Promise {\n return await baseListGQLRequest({}, queries.listUsers);\n}\n\nexport async function getUser(userId: string): Promise {\n return await baseGQLRequest({id: userId}, queries.getUser);\n}\n\nexport async function addUser(newUserName: string): Promise {\n const newUser = { id: newUserName }\n return await baseGQLRequest({input: newUser}, mutations.createUser);\n}\n\nexport async function removeUser(userId: string): Promise {\n const userToDelete = { id: userId };\n return await baseGQLRequest({input: userToDelete}, mutations.deleteUser);\n}\n\nexport async function updateUser(updatedUser: User): Promise {\n return await baseGQLRequest({input: updatedUser}, mutations.updateUser);\n}\n\nexport async function getClassUser(userId: string, classId: string): Promise {\n let items: any[] = [];\n const variables = {\n filter: {\n and: [{ classId: { eq: classId } }, { userId: { eq: userId } }]\n }\n };\n return await baseListGQLRequest(variables, queries.listClassUsers);\n}\n\nexport async function getClassUserByClassId( classId: string): Promise {\n let items: any[] = [];\n const variables = {\n filter: {\n and: [{ classId: { eq: classId } }]\n }\n };\n return await baseListGQLRequest(variables, queries.listClassUsers);\n}\n\nexport async function addClassUser(userId: string, classId: string): Promise {\n const existingClassUser = await getClassUser(userId, classId);\n\n if (existingClassUser?.length > 0) {\n throw new Error('User is already in the class');\n }\n\n if (!(await getClass(classId))) {\n throw new Error('Class does not exist');\n }\n\n if (!(await getUser(userId))) {\n await addUser(userId);\n }\n\n var response = await baseGQLRequest({\n input: {\n classId: classId,\n userId: userId\n }\n }, mutations.createClassUsers);\n \n return response;\n}\n\nexport async function admin_deleteClassUserById(classUserId: string): Promise {\n try {\n const response = await baseGQLRequest({ input: { id: classUserId } }, mutations.deleteClassUsers);\n\n const userID = response.userId;\n const classID = response.classId;\n //TODO instead of use this call use the call before and add a filter with the maximum posible date\n const userCancelledSessions = await baseListGQLRequest({userID: userID, date: {ge: getWeekNumber(new Date())}}, queries.userCanceledClassesByUserIDAndDate);\n for (const userCancelledSession of userCancelledSessions) {\n if(userCancelledSession.userJoinedClass.items.length > 0){\n removeUserSessionJoined(userCancelledSession.userJoinedClass.items[0].id);\n }\n removeUserSessionCancelled(userCancelledSession.id);\n }\n\n } catch (error) {\n console.log('Error retrieving deleteClassUser', error);\n }\n}\n\nexport async function admin_deleteClassUser(userId: string, classId: string): Promise {\n try {\n const classUser = await getClassUser(userId, classId);\n if(classUser.length > 0)\n {\n await admin_deleteClassUserById(classUser[0].id);\n }\n \n } catch (error) {\n console.log('Error retrieving deleteClassUser', error);\n }\n}\n\nexport async function getUsersSessionCancelled(weekFrom: number = 0, weekTo: number = 999999): Promise {\n if(weekFrom == weekTo)\n {\n return await baseListGQLRequest({date: weekFrom, filter: {isCancelled: {ne: true}}}, queries.userCanceledClassesByDateAndId)\n }\n else\n {\n return await queriesListUserCanceledClasses(getWeekFilterAndNotCancelled(weekFrom, weekTo)); \n } \n}\n\nexport async function getUsersSessionJoined(weekFrom: number = 0, weekTo: number = 999999): Promise {\n if(weekFrom == weekTo)\n {\n return await baseListGQLRequest({date: weekFrom, filter: {isCancelled: {ne: true}}}, queries.userJoinedClassesByDateAndId);\n }\n else\n {\n return await baseListGQLRequest(getWeekFilterAndNotCancelled(weekFrom, weekTo), queries.listUserJoinedClasses); \n } \n}\n\nexport async function getUsersSessionsJoinedByClassIdAndWeek(classId: number, weekFrom: number): Promise {\n\n return await baseListGQLRequest({classID: classId, date: {ge: weekFrom}}, queries.userJoinedClassesByClassIDAndDate);\n}\n\nasync function getUserCancelledClassByID(userCanceledClassID: number): Promise {\n return await baseGQLRequest({ id: userCanceledClassID }, queries.getUserCanceledClass);\n}\n\nexport async function createUserJoinedClass(userCanceledClassID: number, userId: string, classId: string, date: string): Promise {\n try {\n const fecha = getWeekNumber(new Date(date));\n var ret;\n //Check if user has already joined to the class\n var userCancelledClass = await getUserCancelledClassByID(userCanceledClassID);\n if (userCancelledClass.userJoinedClass.items.length > 0) {\n throw new Error('User is already in the class');\n }\n if(userCancelledClass.classID == classId){\n ret = await removeUserSessionCancelled(userCancelledClass.id);\n }\n else {\n //Join user to the class\n const newJoinedClass = { \n userID: userId,\n classID: classId, \n date: fecha,\n userCanceledClassID: userCanceledClassID\n }\n\n ret = await baseGQLRequest({ input: newJoinedClass }, mutations.createUserJoinedClass);\n }\n return ret;\n \n } catch (error) {\n console.log('Error retrieving createUserJoinedClass', error);\n }\n}\n\nasync function getUserCancelledClassByUserIDAndClassIDAndDate(userId: string, classId: string, dateNumber: number): Promise { \n return await queriesListUserCanceledClassesByUser(userId, dateNumber, dateNumber, {classID: {eq: dateNumber}, isCancelled: { eq: false }});\n}\n\nexport async function createUserCanceledClass(userId: string, classId: string, date: string): Promise {\n try {\n const fecha = getWeekNumber(new Date(date));\n\n //Check if user has already cancelled the class\n const existingUserCancelledClass = await getUserCancelledClassByUserIDAndClassIDAndDate( userId, classId, fecha);\n if (existingUserCancelledClass.length > 0) {\n throw new Error('User is already in the class');\n }\n\n //Cancel the class to the user\n const newCanceledClass = { \n userID: userId,\n classID: classId, \n date: fecha\n }\n\n return await baseGQLRequest({ input: newCanceledClass }, mutations.createUserCanceledClass);\n\n } catch (error) {\n console.log('Error retrieving createUserCanceledClass', error);\n }\n}\n\nexport async function admin_createUserCanceledClass(userId: string, classId: string, date: string): Promise {\n try {\n const fecha = getWeekNumber(new Date(date));\n\n //Check if user has already cancelled the class\n const existingUserCancelledClass = await getUserCancelledClassByUserIDAndClassIDAndDate( userId, classId, fecha);\n if (existingUserCancelledClass.length > 0) {\n throw new Error('User is already in the class');\n }\n\n //Cancel the class to the user\n const newUserCanceledClass = { \n userID: userId,\n classID: classId, \n date: fecha,\n owner: userId\n }\n \n return await baseGQLRequest({ input: newUserCanceledClass }, mutations.createUserCanceledClass);\n\n } catch (error) {\n console.log('Error retrieving createUserCanceledClass', error);\n }\n}\n\nexport async function getUsersSessionsCancelledFromUser(userId: string, weekFrom: number = 0, weekTo: number = 999999): Promise {\n return await queriesListUserCanceledClassesByUser(userId, weekFrom, weekTo, {});\n}\n\nexport async function removeUserSessionJoined(userJoinedID: string): Promise {\n const joinedSessionToCancel = { id: userJoinedID, isCancelled: true };\n return await baseGQLRequest({ input: joinedSessionToCancel }, mutations.updateUserJoinedClass);\n}\n\nexport async function removeUserSessionCancelled(userSessionCancelledID: string): Promise {\n const userCancelledSessionRemove = { id: userSessionCancelledID, isCancelled: true };\n return await baseGQLRequest({ input: userCancelledSessionRemove }, mutations.updateUserCanceledClass);\n}","import React, { useEffect } from 'react';\nimport { Class, ClassUsers } from '../../../../../models';\nimport { StyleSheet, TouchableOpacity, View, Text } from 'react-native';\nimport { Ionicons } from '@expo/vector-icons'; // Import Ionicons\n\ninterface ClassTagProps {\n onDelete: (classID: string) => void;\n tagClass: ClassUsers;\n key: any;\n isLoading: boolean;\n isCloseable: boolean;\n};\n\nconst ClassTag: React.FC = ({ onDelete, classKey, tagClass, isCloseable }) => {\n const dayOfWeek = [\"Lunes\", \"Martes\", \"Miercoles\", \"Jueves\", \"Viernes\"];\n\n function formatClassNameForTag(tagClass: Class) {\n return tagClass.classType.name + \" - \" + dayOfWeek[tagClass.dayOfWeek - 1] + \" [\" + tagClass.time + \"]\";\n }\n\n return (\n \n {formatClassNameForTag(tagClass.class)}\n {isCloseable ? (\n onDelete(tagClass.id)}>\n \n \n \n \n ) : null}\n \n );\n};\n\nexport default ClassTag;\n\n\nconst styles = StyleSheet.create({\n label: {\n fontWeight: 'bold',\n marginTop: 10,\n },\n tag: {\n backgroundColor: '#e0e0e0',\n padding: 5,\n margin: 5,\n borderRadius: 5,\n flexDirection: 'row',\n alignItems: 'center',\n },\n deleteButton: {\n marginLeft: 5,\n color: 'red',\n },\n});\n","import React, { useState } from 'react';\nimport { Class } from '../../../../../models';\nimport { StyleSheet, TouchableOpacity, View, Text, Button } from 'react-native';\nimport { Picker } from '@react-native-picker/picker';\n\ninterface ClassAdderProps {\n onSave: (classId: string) => void;\n classList: Class[];\n}\n\nconst ClassAdder: React.FC = ({ onSave, classList }) => {\n const [selectedDayOfTheWeek, setSelectedDayOfTheWeek] = useState(null);\n const [selectedClassType, setSelectedClassType] = useState(null);\n const [selectedClass, setSelectedClass] = useState(null);\n var dayOfWeek = [\"Lunes\", \"Martes\", \"Miercoles\", \"Jueves\", \"Viernes\"];\n\n return (\n <>\n {\n setSelectedDayOfTheWeek(itemValue);\n }}\n >\n \n {[...new Set(classList.sort((a, b) => a.dayOfWeek - b.dayOfWeek).map((classSel) => classSel.dayOfWeek))]\n .map((dayOfWeekValue, key) => (\n \n ))}\n \n {\n setSelectedClassType(itemValue);\n }}\n >\n \n {[...new Set(\n classList\n .filter((cls) => cls.dayOfWeek.toString() === selectedDayOfTheWeek)\n .sort((a, b) => a.classType.name.localeCompare(b.classType.name))\n .map((classSel) => classSel.classType.name)\n )].map((classTypeName, key) => (\n \n ))}\n \n {\n setSelectedClass(itemValue);\n }}\n >\n \n {classList\n .filter((cls) => cls.dayOfWeek.toString() === selectedDayOfTheWeek)\n .filter((cls) => cls.classType.name === selectedClassType)\n .sort((a, b) => a.time.localeCompare(b.time))\n .map((classSel, key) => (\n \n ))}\n \n onSave(selectedClass)}\n disabled={selectedClass && selectedDayOfTheWeek && selectedClassType ? false : true}\n style={[\n styles.addButton,\n { backgroundColor: selectedClass && selectedDayOfTheWeek && selectedClassType ? '#95EC91' : '#D3D3D3' },\n ]}\n >\n {'+'}\n \n \n );\n};\n\nexport default ClassAdder;\n\nconst styles = StyleSheet.create({\n picker: {\n height: 40,\n borderColor: 'gray',\n borderWidth: 1,\n borderRadius: 5,\n padding: 10,\n marginBottom: 10,\n marginRight: 15,\n minWidth: '25%', // Minimum width of 1/4 the container\n },\n addButton: {\n marginBottom: 10,\n borderRadius: 10,\n alignItems: 'center',\n justifyContent: 'center',\n width: '3%', // You can adjust the width as needed\n height: 40, // You can adjust the height as needed\n },\n addButtonText: {\n color: 'white', // White text color\n fontSize: 20, // You can adjust the font size as needed\n },\n});\n","import React, { useEffect, useState } from 'react';\nimport { Class } from '../../../../../models';\nimport { Modal, ScrollView, StyleSheet, TouchableOpacity, View, Text } from 'react-native';\nimport { UserExtended } from '../../../../../types';\nimport { addClassUser, admin_deleteClassUserById } from '../../../../../services/goulapi/goulapi.user';\nimport ClassTag from './ClassTag';\nimport ClassAdder from './ClassAdder';\nimport { Mutex } from 'async-mutex';\n\ninterface EditUserModalProps {\n visible: boolean;\n setVisible: (visible: boolean) => void;\n userData: UserExtended;\n setUserData: (userData: UserExtended) => void;\n onClose: () => void;\n classList: Class[];\n setToReload: (toReload: boolean) => void;\n}\n\nconst EditUserModal: React.FC = ({ visible, onClose, userData, setUserData, classList, setToReload }) => {\n const [selectedClassID, setSelectedClassID] = useState(null);\n const [reloadTags, setReloadTags] = useState(false);\n const mutex = new Mutex();\n\n async function handleAddClassID(classId: string) {\n await mutex.acquire();\n try {\n const response = await addClassUser(userData.userName, classId);\n if (response != null) {\n if (!userData.classes) {\n userData.classes = { items: [] };\n }\n userData.classes.items.push(response);\n setUserData(userData);\n setReloadTags(true);\n }\n } finally {\n mutex.release();\n }\n };\n\n useEffect(() => {\n if (reloadTags) {\n setReloadTags(false);\n }\n }, [reloadTags]);\n\n const handleDeleteClassID = (classID: string) => {\n setSelectedClassID(classID);\n };\n\n const handleConfirmDelete = async () => {\n await admin_deleteClassUserById(selectedClassID);\n setSelectedClassID(null);\n userData.classes.items = userData.classes.items.filter(item => item.id !== selectedClassID);\n setUserData(userData);\n setReloadTags(true);\n };\n\n const handleCancelDelete = () => {\n setSelectedClassID(null);\n };\n\n const handleRequestClose = () => {\n onClose();\n setToReload(true);\n };\n\n return userData || reloadTags ? (\n \n \n \n Seguro que quieres eliminar esta clase?\n \n \n Yes\n \n \n No\n \n \n \n \n \n \n \n Nombre:\n {userData.name}\n\n e-mail:\n {userData.email}\n\n Teléfono:\n {userData.telf}\n\n Clases actuales:\n \n {userData.classes ? Object.entries(userData.classes.items).sort((a, b) =>a[1].class.dayOfWeek - b[1].class.dayOfWeek).map(([key, classSel]) => (\n \n )) : null}\n \n \n \n \n \n\n \n Cerrar\n \n \n \n \n ) : null;\n};\n\nconst styles = StyleSheet.create({\n modalOverlay: {\n flex: 1,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n justifyContent: 'center',\n alignItems: 'center',\n },\n modalContent: {\n width: '80%',\n maxHeight: '80%',\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 10,\n overflow: 'hidden',\n },\n label: {\n fontWeight: 'bold',\n marginTop: 10,\n },\n tagContainer: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n marginTop: 5,\n },\n inputContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n marginTop: 10,\n },\n input: {\n flex: 1,\n height: 40,\n borderColor: 'gray',\n borderWidth: 1,\n marginRight: 10,\n paddingLeft: 10,\n borderRadius: 5,\n },\n closeButton: {\n marginTop: 10,\n color: 'blue', // Change the color as needed\n textAlign: 'center',\n },\n confirmationModal: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n confirmationText: {\n marginBottom: 20,\n color: 'white',\n },\n confirmationButtons: {\n flexDirection: 'row',\n justifyContent: 'space-around',\n },\n yesButton: {\n backgroundColor: '#7CFC00', // Apple green color\n padding: 10,\n borderRadius: 10,\n marginTop: 10, // Increased separation\n marginRight: 5\n },\n noButton: {\n backgroundColor: 'red',\n padding: 10,\n borderRadius: 10,\n marginTop: 10, // Increased separation\n marginLeft: 5\n },\n buttonText: {\n color: 'white',\n textAlign: 'center',\n },\n pickerContainer: {\n flexDirection: 'row',\n marginTop: 10,\n },\n picker: {\n height: 40,\n borderColor: 'gray',\n borderWidth: 1,\n borderRadius: 5,\n marginBottom: 10,\n },\n});\n\nexport default EditUserModal;","import React, { useState } from 'react';\nimport { View, Text, Modal, StyleSheet, Pressable } from 'react-native';\n\nconst YesNoModal = ({ buttonText, buttonStyle, buttonTextStyle, question, confirmationMessage, handleYes, handleNo }) => {\n const [modalVisible, setModalVisible] = useState(false);\n\n\n return (\n \n {\n setModalVisible(!modalVisible);\n }}\n >\n \n \n {question}\n {confirmationMessage}\n \n { handleYes(); setModalVisible(false); }}>\n Si\n \n { handleNo(); setModalVisible(false); }}>\n No\n \n \n \n \n \n\n setModalVisible(true)}\n >\n \n {buttonText}\n \n \n );\n};\n\nconst styles = StyleSheet.create({\n yesButton: {\n backgroundColor: '#7CFC00', // Apple green color\n padding: 10,\n marginRight: 5\n },\n noButton: {\n backgroundColor: 'red',\n padding: 10,\n marginLeft: 5\n },\n buttonText: {\n color: 'white',\n textAlign: 'center',\n },\n confirmationText: {\n color: 'white',\n }, \n confirmationModal: {\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n padding: 20, \n }\n });\n\nexport default YesNoModal;","import { Class, User } from \"./models\";\n\n//Normal user\nexport const UserState = {\n REGULAR: 0,\n RESCHEDULED: 1,\n CANCELED_RESCHEDULED: 2,\n CANCELED_NON_RESCHEDULED: 3,\n CANCELED: 4\n };\n\n export const ClassState = {\n AVAILABLE: 0,\n CANCELED: 1,\n CANCELED_NO_RESCHEDULE: 2,\n };\n\nexport type UserClassSession = Class & {\n state: typeof UserState, \n numOfAssist: number,\n date: string \n canceledClassID: string\n}\n\nexport type ClassSession = Class & {\n state: typeof ClassState,\n numOfAssist: number,\n date: string \n}\n\nexport type UserExtended = User & {\n email: string,\n name: string,\n telf: string,\n status: string \n}","\nimport * as queries from '../../graphql/queries';\nimport * as mutations from '../../graphql/mutations';\nimport { UserCanceledClass } from \"../../models\";\nimport { dateDB_to_date, dayFormat, getCancelledDayFormat, getDayOfWeek, getDaysOfWeekFrom, getWeekNumber } from \"../../utils/dateUtils\";\nimport { Auth } from 'aws-amplify';\nimport { ClassSession, ClassState, UserClassSession, UserExtended, UserState } from '../../types';\nimport { admin_deleteClassUser, admin_deleteClassUserById, getClassUserByClassId, getUser, getUsersSessionCancelled, getUsersSessionJoined, getUsersSessionsCancelledFromUser, getUsersSessionsJoinedByClassIdAndWeek, getUsersSessionsJoinedFromUser, removeUserSessionJoined } from './goulapi.user';\nimport { getAvailableClasses, getClasesFromDayOfWeek, removeClass } from './goulapi.class';\nimport { disableUser } from '../cognito/cognito.service';\nimport { baseListGQLRequest, baseGQLRequest } from './goulapi.utils';\n\nexport async function getCancelledDays(weekFrom: number = 0): Promise {\n return baseListGQLRequest({ filter: { date: { eq: weekFrom } } }, queries.listCancelledDays);\n}\n\nexport async function getCancelledDaysFrom(weekFrom: number = 0, weekTo: number = 99999999): Promise {\n return baseListGQLRequest({ filter: { date: { between: [weekFrom, weekTo] } } }, queries.listCancelledDays);\n}\n\nexport async function admin_cancelClassDay(classId: string, date: string, description: string = \"\"): Promise {\n try {\n const fecha = getWeekNumber(new Date(date));\n\n // Check if the class is cancelled already\n const existingCanceled = await baseListGQLRequest({ filter: { classID: { eq: classId }, date: { eq: fecha } } }, queries.listCanceledClasses) //TODO make the call for classID \n\n if (existingCanceled.length > 0) {\n console.log('Class is already cancelled');\n return existingCanceled;\n }\n\n // Remove all recheluded sessions for the day\n const userJoinedClasses = await baseListGQLRequest({ filter: { classID: { eq: classId }, date: { eq: fecha } } }, queries.listUserJoinedClasses);\n\n for (const joinedClass of userJoinedClasses || []) {\n removeUserSessionJoined(joinedClass.id);\n }\n\n // Cancel the class to the user\n const newCanceledClass = {\n classID: classId,\n date: fecha,\n description: description\n }\n\n return await baseListGQLRequest({ input: newCanceledClass }, mutations.createCanceledClass);\n\n } catch (error) {\n console.log('Error retrieving createUserCanceledClass', error);\n }\n}\n\nexport async function admin_cancelDay(date: Date, description: string = \"\", unavailableDay: boolean = false): Promise {\n try {\n const fecha = getWeekNumber(date);\n const cancelledDayFormat = getCancelledDayFormat(date);\n\n // Check if the class is cancelled already\n const existingCanceled = await getCancelledDays(getCancelledDayFormat(date));\n\n if (existingCanceled.length > 0) {\n console.log('Class is already cancelled');\n return existingCanceled;\n }\n\n //Get all classes from that day\n const classes = await getClasesFromDayOfWeek(getDayOfWeek(date));\n for (const classItem of classes) {\n // Remove all recheluded sessions for the day\n const userJoinedClasses = await baseListGQLRequest({ filter: { classID: { eq: classItem.id }, date: { eq: fecha } } }, queries.listUserJoinedClasses);\n\n for (const joinedClass of userJoinedClasses || []) {\n removeUserSessionJoined(joinedClass.id);\n }\n }\n\n // Cancel the class to the user\n const newCancelledDay = {\n date: cancelledDayFormat,\n description: description,\n unavailableDay: unavailableDay\n }\n\n return await baseGQLRequest({ input: newCancelledDay }, mutations.createCancelledDay);\n\n } catch (error) {\n console.log('Error retrieving admin_cancelDay', error);\n }\n}\n\nexport async function admin_removeUser(user: UserExtended) {\n if (user?.classes) {\n for (const classItem of user.classes.items) {\n await admin_deleteClassUser(user.id, classItem.class.id);\n }\n }\n disableUser((await Auth.currentSession()).getAccessToken().getJwtToken(), user.userName);\n console.log(`Delete button pressed for ${user.name}`);\n}\n\nexport async function admin_removeClass(classid) {\n //Cancel all userJoinedClass\n const usersJoinedList = await getUsersSessionsJoinedByClassIdAndWeek(classid, getWeekNumber(new Date()));\n for (const joinedClass of usersJoinedList || []) {\n await removeUserSessionJoined(joinedClass.id);\n }\n\n //Remove all userClass\n const classUserList = await getClassUserByClassId(classid);\n for (const classUser of classUserList || []) {\n await admin_deleteClassUserById(classUser.id);\n }\n \n await removeClass(classid);\n console.log(`Delete button pressed for class ${classid}`);\n}\n\nexport async function getClassesFromRange(startDate: Date, endDate: Date, types: string[] = []): Promise {\n const classes: ClassSession[] = [];\n\n try {\n const weekStart = getWeekNumber(startDate);\n const weekEnd = getWeekNumber(endDate);\n\n const allClasses = await getAvailableClasses(types);\n const allUsersCancelled = await getUsersSessionCancelled(weekStart, weekEnd);\n const allUsersJoined = await getUsersSessionJoined(weekStart, weekEnd);\n const allCancelledDays = await getCancelledDaysFrom(getCancelledDayFormat(startDate), getCancelledDayFormat(endDate));\n\n for (const classItem of allClasses) {\n const dayOfWeek = classItem.dayOfWeek;\n const daysInMonth = getDaysOfWeekFrom(startDate, endDate, dayOfWeek);\n for (const day of daysInMonth) {\n var state = ClassState.AVAILABLE;\n var canceledDay = allCancelledDays.filter((canDay) => canDay.date == getCancelledDayFormat(new Date(day)));\n var canceledClass = classItem.canceledClasses.items.filter((canDay) => canDay.date == getWeekNumber(new Date(day)))\n if (canceledDay.length > 0) {\n state = canceledDay[0].unavailableDay\n ? ClassState.CANCELED_NO_RESCHEDULE\n : ClassState.CANCELED;\n } else if (canceledClass.length > 0) {\n state = ClassState.CANCELED;\n }\n\n const userCancelled = allUsersCancelled.filter((userCan) => userCan.classID == classItem.id && userCan.date == getWeekNumber(new Date(day)));\n const userJoined = allUsersJoined.filter((userJoin) => userJoin.classID == classItem.id && userJoin.date == getWeekNumber(new Date(day)));\n\n const users = JSON.parse(JSON.stringify(classItem.users.items));\n users.forEach(element => {\n element['status'] = UserState.REGULAR;\n })\n userCancelled.map((userCan) => {\n var userwCancelled = users.filter((user) => user.userId === userCan.userID);\n userwCancelled.forEach(element => {\n element['status'] = UserState.CANCELED;\n });\n });\n\n userJoined.map((userJoin) => {\n userJoin['status'] = UserState.RESCHEDULED;\n userJoin['userId'] = userJoin.userID;\n userJoin['userJoinedClassID'] = userJoin.id;\n //Problems with camelcasing things\n users.push(userJoin);\n });\n\n classes.push({\n id: classItem.id,\n description: classItem.description,\n time: classItem.time,\n classTypeID: classItem.classTypeID,\n classType: classItem.classType.name,\n duration: classItem.duration,\n maxAssist: classItem.maxAssist,\n dayOfWeek: dayOfWeek,\n state: state,\n users: users,\n numOfAssist: 0,\n date: day,\n });\n }\n }\n } catch (error) {\n console.log('Error retrieving createUserCanceledDay', error);\n }\n\n return classes;\n}\n\nexport async function getClassesFromUser(userID: string, startDate: Date, endDate: Date): Promise {\n if (!userID) {\n return [];\n }\n\n const weekStart = getWeekNumber(startDate);\n const weekEnd = getWeekNumber(endDate);\n\n try {\n const user = await getUser(userID);\n\n const allClasses = user?.classes?.items || [];\n const classes: UserClassSession[] = [];\n const allUsersCancelled = await getUsersSessionsCancelledFromUser(userID, weekStart, weekEnd); //Get userCancelledClases from user and fiilter it!\n const allUsersJoined = await getUsersSessionsJoinedFromUser(userID, weekStart, weekEnd);\n const allCancelledDays = await getCancelledDaysFrom(getCancelledDayFormat(startDate), getCancelledDayFormat(endDate));\n\n\n for (const classItem of allClasses) {\n const classSel = classItem.class;\n const dayOfWeek = classSel.dayOfWeek;\n const daysInMonth = getDaysOfWeekFrom(startDate, endDate, dayOfWeek);\n\n for (const day of daysInMonth) {\n var state = ClassState.AVAILABLE;\n var canceledDay = allCancelledDays.filter((canDay) => canDay.date == getCancelledDayFormat(new Date(day)));\n var canceledClass = classSel.canceledClasses.items.filter((canDay) => canDay.date == getWeekNumber(new Date(day)))\n // Check if there are any canceled days\n if (canceledDay.length) {\n // Set state based on whether the day is unavailable or not\n state = canceledDay[0].unavailableDay ? UserState.CANCELED_NON_RESCHEDULED : UserState.CANCELED;\n }\n // Check if there are any canceled classes when no canceled days are found\n else if (canceledClass.length) {\n // TODO: Verify if the class cancellation is specific to the day\n state = UserState.CANCELED;\n }\n classes.push({\n id: classSel.id,\n time: classSel.time,\n classTypeID: classSel.classTypeID,\n classType: classSel.classType,\n duration: classSel.duration,\n maxAssist: classSel.maxAssist,\n dayOfWeek: dayOfWeek,\n description: classSel.description,\n state: state,\n date: day,\n });\n }\n }\n\n //TODO: Re-filter the classes because the user can join more classes if they cancell the previous one\n allUsersJoined?.forEach((element) => {\n const date = dateDB_to_date(element.date, element.class.dayOfWeek);\n if (date < startDate || date > endDate) {\n return;\n }\n classes.push({\n id: element.class.id,\n time: element.class.time,\n classTypeID: element.class.classTypeID,\n classType: element.class.classType,\n duration: element.class.duration,\n description: element.class.description,\n maxAssist: element.class.maxAssist,\n dayOfWeek: element.class.dayOfWeek,\n state: UserState.RESCHEDULED,\n userCancelledClass: element.userCanceledClass,\n date: dayFormat(date),\n joinedID: element.id\n })\n })\n\n allUsersCancelled?.forEach((userCan) => {\n const fClasses = classes.filter((classSel) => {\n return !userCan.isCancelled && (userCan.classID === classSel.id && dayFormat(dateDB_to_date(userCan.date, userCan.class.dayOfWeek)) === classSel.date);\n })\n fClasses.forEach((fClass) => {\n fClass.state = userCan.userJoinedClass.items.length > 0 ? UserState.CANCELED_RESCHEDULED : UserState.CANCELED;\n fClass['canceledClassID'] = userCan.id;\n fClass['userJoinedClass'] = userCan.userJoinedClass.items.length > 0 ? userCan.userJoinedClass.items[0] : null;\n });\n });\n\n allCancelledDays?.forEach((element) => {\n const date = dateDB_to_date(element.date, element.dayOfWeek);\n })\n\n return classes;\n } catch (error) {\n console.log('Error retrieving getClassesFromUser:', error);\n return [];\n }\n}","import { createContext, useState } from 'react';\n\nimport {View, ActivityIndicator, Modal, SafeAreaView, StyleSheet } from 'react-native';\n\nconst styles = StyleSheet.create({\n loadingModal: {\n width: '80%',\n maxHeight: '80%',\n padding: 20,\n borderRadius: 10,\n overflow: 'hidden',\n alignContent: 'center'\n }\n});\n\nconst LoadingContext = createContext();\n\nconst LoadingProvider = ({ children }) => {\n const [isLoading, setIsLoading] = useState(true);\n const [isAdmin, setIsAdmin] = useState(false);\n const [whoAmI, setWhoAmI] = useState({userName:'', email: '', name: ''});\n\n return (\n \n \n \n \n \n \n {children}\n \n );\n};\n\nexport { LoadingProvider, LoadingContext };","import React, { useContext, useEffect, useState } from 'react';\nimport { ScrollView, TouchableOpacity, StyleSheet, View, Text, ActivityIndicator, Modal } from 'react-native';\nimport { User, Class, ClassUsers } from '../../../../models';\nimport { Table, Row, Rows } from 'react-native-table-component';\nimport Button from '@ant-design/react-native/lib/button';\nimport { Ionicons } from '@expo/vector-icons'; // Import Ionicons\nimport EditUserModal from './EditUserModal/EditUserModal';\nimport { UserExtended } from '../../../../types';\nimport { disableUser, resendUserEmail } from '../../../../services/cognito/cognito.service';\nimport { Auth } from 'aws-amplify';\nimport { FlatList } from \"react-native\";\nimport { MaterialIcons } from '@expo/vector-icons';\nimport ClassTag from './EditUserModal/ClassTag';\nimport YesNoModal from '../../../../modals/YesNoModal';\nimport { admin_removeUser } from '../../../../services/goulapi/goulapi.service';\nimport { LoadingContext } from '../../../../components/LoadingContext';\n\ninterface BasicTableProps {\n rowNames: string[];\n userList: UserExtended[];\n classList: Class[];\n setToReload: (toReload: boolean) => void;\n impostUser: () => void\n}\n\nconst BasicTable: React.FC = ({ rowNames, userList, classList, setToReload, impostUser}) => {\n var dayOfWeek = [\"Lunes\", \"Martes\", \"Miercoles\", \"Jueves\", \"Viernes\"];\n const [modalVisible, setModalVisible] = useState(false);\n const [userData, setUserData] = useState();\n const [pageNumber, setPageNumber] = useState(0);\n const userPerPage = 10;\n const totalPages = Math.ceil(userList.length / userPerPage)\n\n function formatDataTable(pageSize: number, pageNumber: number) {\n const startIndex = pageSize * pageNumber;\n const endIndex = startIndex + pageSize;\n const paginatedData = userList.slice(startIndex, endIndex);\n const { setWhoAmI } = useContext(LoadingContext);\n \n const dataTableFormatted = paginatedData.map((userListItem, index) => {\n const userActions = (\n \n {userListItem.status === \"CONFIRMED\" ? null : (\n handleResendEmail(userListItem)}\n handleNo={() => {}}\n />\n )}\n \n );\n \n const editButton = (\n \n );\n \n const deleteButton = (\n handleDeletePress(userListItem)}\n handleNo={() => {}}\n />\n ); \n\n const impostarButton = (\n \n );\n\n return [\n userListItem.name,\n userListItem.email,\n userListItem.telf,\n getUserClassesFormatted(userListItem),\n userActions,\n \n {impostarButton}\n {editButton}\n {deleteButton}\n ,\n ];\n });\n \n return dataTableFormatted;\n }\n\n useEffect(() => {\n if(userData!=null){\n setUserData(userList.find((user) => user.userName === userData.userName));\n }\n }, [userList]); \n\n function handleEditPress(userListItem: UserExtended) {\n setUserData(userListItem);\n setModalVisible(true);\n }\n\n async function handleResendEmail(userListItem: UserExtended) {\n const response = resendUserEmail((await Auth.currentSession()).getAccessToken().getJwtToken(), userListItem.name, userListItem.email);\n }\n async function handleDeletePress(userListItem: UserExtended) {\n // Add your 'delete' button press logic here\n //TODO add delete user clases user etc.\n await admin_removeUser(userListItem);\n setToReload(true);\n }\n\n function getUserClassesFormatted(user: UserExtended) {\n const classes = user?.classes?.items || []\n return (classes.map((classSel: ClassUsers, key) => {\n return ();\n }));\n }\n\n return (<>\n {setModalVisible(false);}} \n userData={userData} \n setUserData={setUserData}\n classList={classList}\n setToReload={setToReload}/>\n \n setPageNumber((pageNumber + totalPages - 1) % (totalPages))}>\n \n \n {pageNumber + 1} / {totalPages}\n setPageNumber((pageNumber + 1) % (totalPages))}>\n \n \n \n \n (\n \n \n
\n )}\n keyExtractor={(item, index) => index.toString()}\n ListHeaderComponent={() => (\n \n \n \n
\n
\n )}\n />\n
\n \n );\n};\nexport default BasicTable;\n\nconst styles = StyleSheet.create({\n tableContainer: {\n borderBottomWidth: 2,\n borderColor: '#EC7063',\n },\n headerContainer: {\n borderBottomWidth: 1,\n borderColor: '#EC7063'\n },\n header: {\n backgroundColor: '#FEF3F3',\n height: 40,\n borderWidth: 0\n },\n headerText: {\n fontSize: 15,\n color: '#FF7777',\n fontWeight: 'bold',\n textAlign: 'left',\n marginLeft: 10,\n borderBottomColor: '#CE9595'\n },\n row: {\n fontSize: 13,\n flexWrap: 'wrap',\n borderBottomWidth: 1,\n borderBottomColor: '#F0E0DC'\n },\n cellText: {\n color: 'black',\n paddingLeft: 7,\n padding: 5,\n },\n buttonContainer: {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n },\n editButton: {\n backgroundColor: '#55a630',\n borderRadius: 100,\n padding: 5,\n margin: 2,\n },\n deleteButton: {\n backgroundColor: '#ff6961',\n borderRadius: 100,\n padding: 5,\n margin: 2,\n },\n pagination: {\n flexDirection: 'row',\n marginBottom: 5,\n }\n});\n","import { UserClassSession } from '../types';\nimport { getWeekNumber, dateDB_to_date, getDaysFrom } from './dateUtils';\n\nexport const setClassSessionToAgendaFormat = (startDate: Date, endDate: Date, result: UserClassSession[]) => {\n //TODO solve bug about the week and the filter, that cannot be the first day of the week. Ej 1 Frabrary is week 5, but it start on wenednesday. monday and thursday are the first days of the week is not covered. \n const agendaFormat = getDaysFrom(dateDB_to_date(getWeekNumber(startDate),1), endDate);\n result.map((clase: UserClassSession) => {\n agendaFormat[clase.date].push({description: clase.description, day: clase.date, height:1, classID: clase.id, classTypeID: clase.classTypeID, classType: clase.classType, time: clase.time, duration: clase.duration, numOfAssist: clase.numOfAssist, maxAssist: clase.maxAssist, users: clase.users, state: clase.state, canceledClassID: clase.canceledClassID, cancelledClass: clase.userCancelledClass, joinedClass: clase.userJoinedClass, joinedID: clase.joinedID});\n })\n return agendaFormat;\n};\n\n\nexport const setClassSessionToCalendarFormat = (selectedDay: string, result) => {\n const calendarFormat = {};\n Object.keys(result).map((day) => {\n calendarFormat[day] = {\n marked: false,\n selected: false\n };\n if(result[day].length)\n {\n calendarFormat[day].marked = true;\n }\n })\n\n if(calendarFormat[selectedDay])\n {\n calendarFormat[selectedDay].selected = true;\n }\n\n return calendarFormat;\n};","import React, { useState, useEffect } from 'react';\nimport { StyleSheet, Button, ActivityIndicator, View, Modal, Text, TouchableOpacity } from 'react-native';\nimport { CalendarList } from 'react-native-calendars';\nimport { useNavigation, RouteProp, useRoute } from '@react-navigation/native';\nimport { dayFormat } from '../../../utils/dateUtils'\nimport { useAuthenticator } from '@aws-amplify/ui-react-native';\nimport { Class } from '../../../models/index';\nimport { getClassesFromRange } from '../../../services/goulapi/goulapi.service';\nimport { setClassSessionToAgendaFormat, setClassSessionToCalendarFormat } from '../../../utils/agendaUtils';\nimport { createUserCanceledClass, createUserJoinedClass } from '../../../services/goulapi/goulapi.user';\nimport { ClassSession, ClassState, UserClassSession, UserState } from '../../../types';\nimport { Mutex } from 'async-mutex';\n\nimport { useContext } from 'react';\nimport { LoadingContext } from '../../../components/LoadingContext';\n\n// Define the route params type\ntype MyScreenParams = {\n classSel: Class;\n};\n\nconst CustomCalendar: React.FC = () => {\n const navigation = useNavigation();\n const route = useRoute>();\n\n const [availableClasses, setAvailableClasses] = useState({})\n const [markedClasses, setMarkedClasses] = useState({})\n const [toReload, setToReload] = useState(true);\n const { isLoading, setIsLoading, whoAmI } = useContext(LoadingContext);\n\n // Access the params\n const today = new Date();\n const classSel = route.params.classSel;\n const userID = route.params.userID;\n const setToReloadFather = route.params.setToReload;\n\n var daySelStart = new Date(classSel.day);\n daySelStart.setDate(daySelStart.getDate() - 28);\n\n if(daySelStart < today)\n {\n daySelStart = today;\n }\n \n const daySelEnd = new Date(classSel.day);\n daySelEnd.setDate(daySelEnd.getDate() + 28);\n\n const [selectedDate, setSelectedDate] = useState(today);\n const [modalVisible, setModalVisible] = useState(false);\n const [newClass, setNewClass] = useState(null);\n\n const mutex = new Mutex();\n\n useEffect(() => {\n async function setAllClasses() {\n if (toReload) {\n setIsLoading(true)\n const classesFromRange = await getClassesFromRange(daySelStart, daySelEnd, [classSel.classTypeID]);\n\n const classesToAgendaFormat = await setClassSessionToAgendaFormat(daySelStart, daySelEnd, classesFromRange);\n setAvailableClasses(classesToAgendaFormat);\n setMarkedClasses(setClassSessionToCalendarFormat(dayFormat(daySelStart), classesToAgendaFormat)); \n setIsLoading(false)\n setToReload(false)\n }\n }\n setAllClasses();\n }, [toReload]);\n\n function isJoineabled(clase) {\n const dateTime = new Date(`${clase.day}T${clase.time}`);\n dateTime.setHours(dateTime.getHours());\n const isFull = clase.users.filter((f_user) => f_user.status < UserState.CANCELED_RESCHEDULED).length >= clase.maxAssist;\n const isMyClassDay = isMyClass(clase) ? classSel.day == clase.day && classSel.time == clase.time : true;\n \n return (clase.state == ClassState.AVAILABLE) && (today <= dateTime) && !isFull && isMyClassDay;\n }\n\n function isMyClass(clase) { \n return classSel.classID == clase.classID;\n }\n\n function isMyClassJoineable(clase) { \n return isMyClass(clase) && classSel.day == clase.day && classSel.time == clase.time;\n }\n\n function userOnClass(clase) {\n const userOnClass = clase.users.filter((f_user) => {\n if(f_user.userId === whoAmI.username) {\n return f_user.status < UserState.CANCELED_RESCHEDULED;\n }\n });\n return userOnClass.length !== 0;\n }\n\n //TODO move customSort to utils\n const customSort = (a, b) => {\n const [aHours, aMinutes] = a.time.split(/[:.]/).map(Number);\n const [bHours, bMinutes] = b.time.split(/[:.]/).map(Number);\n\n if (aHours !== bHours) {\n return aHours - bHours;\n }\n return aMinutes - bMinutes;\n };\n\n\n function getDailyActivities() {\n var currentDate = dayFormat(selectedDate);\n return (\n <>\n {availableClasses[currentDate]?.sort(customSort).map((clase: Class) => {\n return (<>{(!isMyClassJoineable(clase) && isMyClass(clase) ? <> : \n user.status < UserState.CANCELED_RESCHEDULED).length + \"/\" + clase.maxAssist + \")\" + ((clase.state == ClassState.CANCELED_NO_RESCHEDULE) ? \" (Vacaciones)\" : (clase.state == ClassState.CANCELED) ? \" (Cancelada)\" :isMyClassJoineable(clase) ? \" (Volver a unirse)\" : userOnClass(clase) ? \" (En clase)\" : \"\")}\n onPress={() => { setNewClass(clase); setModalVisible(true) }}\n disabled={ !( !userOnClass(clase) && isJoineabled(clase)) }\n />)})\n })}\n );\n }\n\n async function modifySessionDay(oldSession: UserClassSession, newSession: UserClassSession) {\n await mutex.acquire();\n try {\n var canceledClassID;\n if(!oldSession.canceledClassID)\n {\n const canceledClass = await createUserCanceledClass(userID, oldSession.classID, oldSession.day);\n canceledClassID = canceledClass.id;\n }\n else\n {\n canceledClassID = oldSession.canceledClassID;\n }\n\n await createUserJoinedClass(canceledClassID, userID, newSession.classID, newSession.day);\n } finally {\n setToReloadFather(true);\n mutex.release();\n }\n }\n\n return (\n <>\n \n {isLoading ?\n \n :\n {\n setSelectedDate(new Date(day.dateString));\n setMarkedClasses(setClassSessionToCalendarFormat(dayFormat(new Date(day.dateString)), availableClasses));\n }}\n />\n }\n \n \n {getDailyActivities()}\n {\n setModalVisible(!modalVisible);\n }}>\n {\n setModalVisible(false);\n }}\n >\n \n Deseas cambiar tu session por la sesion seleccionada? \n \n \n ))\n }\n \n )\n }\n\n function getTableItem(startTimeStr, timeTable, index, sortedData) {\n if (sortedData.length > 0) {\n var item = sortedData[0];\n var startTime = new Date(`2023-01-01 ${startTimeStr}`);\n var endTime = new Date(`2023-01-01 ${timeTable[index + 1]}`);\n var targetTime = new Date(`2023-01-01 ${item.time}`);\n var classesFound = sortedData\n .filter((data) => data.time >= startTimeStr && data.time < timeTable[index + 1]);\n if (classesFound.length > 0) {\n sortedData.splice(0, classesFound.length - 1);\n return (\n )\n }\n else {\n return ()\n }\n }\n else {\n return ()\n }\n }\n\n function getClassColumn() {\n var sortedData = classList.sort(customSort);\n var timeTable = generateTimeArray('8:00', '22:00', 45);\n\n return (\n timeTable.map((startTimeStr, index) => (\n getTableItem(startTimeStr, timeTable, index, sortedData)\n ))\n );\n }\n\n return (\n <>\n \n \n {getClassColumn()}\n
\n
\n )\n};\n\nexport default ScheduleColumn;\n\nconst calculateEndTime = (startTime, duration) => {\n const start = new Date(`2023-01-01 ${startTime}`);\n const endTime = new Date(start.getTime() + duration * 60 * 1000);\n return endTime.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });\n};\n\nconst styles = StyleSheet.create({\n container: { flex: 1, paddingTop: 10, backgroundColor: '#fff' },\n head: { height: 40, backgroundColor: '#808B97' },\n text: { margin: 6, color: 'black', textAlign: 'center' },\n row: { flexDirection: 'row', backgroundColor: '#fff', minHeight: 52 },\n cellView: { flexDirection: 'row', backgroundColor: '#fff'},\n buttonDeleteText: {\n color: 'red',\n textAlign: 'center',\n }\n});\n","import React from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport { Table, Row, } from 'react-native-table-component';\nimport { generateTimeArray } from '../../../../../utils/dateUtils'\n//Antd\n\ninterface TimeColumnProps {\n}\n\nconst TimeColumn: React.FC = () => {\n\n function getTimeColumn() {\n var timeTable = generateTimeArray('8:00', '22:00', 45);\n\n return (\n timeTable.map((startTimeStr, index) => (\n \n ))\n );\n }\n\n return (\n <>\n \n \n {getTimeColumn()}\n
\n
\n )\n};\n\nexport default TimeColumn;\n\nconst styles = StyleSheet.create({\n container: { flex: 1, paddingTop: 10, backgroundColor: '#fff' },\n head: { height: 40, backgroundColor: '#808B97' },\n text: { margin: 6, color: 'black' },\n row: { flexDirection: 'row', backgroundColor: '#fff', minHeight: 52 },\n});\n","import React from 'react';\nimport { Text, StyleSheet, View, ScrollView, SafeAreaView } from 'react-native';\nimport { Table, TableWrapper, Row, Cols, Col } from 'react-native-table-component';\nimport { generateTimeArray } from '../../../../../utils/dateUtils'\nimport ScheduleColumn from './ScheduleColumn';\n//Antd\nimport ActivityIndicator from '@ant-design/react-native/lib/activity-indicator';\nimport TimeColumn from './TimeColumn';\n\n\ninterface ScheduleProps {\n classList: {};\n allUsers: {};\n setToReload;\n}\n\nconst Schedule: React.FC = ({ classList, allUsers, setToReload}) => {\n var dayOfWeek = [\"Lunes\", \"Martes\", \"Miercoles\", \"Jueves\", \"Viernes\"];\n\n function formatSchedulerColumns() {\n var dataTableFormatted = [];\n\n dataTableFormatted.push([])\n\n dayOfWeek.map((day, index) => (\n dataTableFormatted.push([\n \n ])\n ));\n return dataTableFormatted;\n }\n\n return (\n <>\n \n \n \n \n
\n
\n );\n};\n\nexport default Schedule;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n flexDirection: \"column\"\n },\n table: {\n width: '100%',\n minWidth: 700,\n maxWidth: 'auto'\n },\n header: {\n backgroundColor: '#FEF3F3',\n height: 40,\n borderWidth: 0\n },\n headerText: {\n fontSize: 15,\n color: '#FF7777',\n fontWeight: 'bold',\n textAlign: 'center',\n marginLeft: 10,\n borderBottomColor: '#CE9595'\n },\n\n});","import React, { useState } from 'react';\nimport { Text, StyleSheet, Modal, View, TextInput, TouchableOpacity } from 'react-native';\nimport { generateTimeArray } from '../../../../utils/dateUtils'\n//Antd\nimport Button from '@ant-design/react-native/lib/button';\nimport { Class, ClassType } from '../../../../models';\nimport { Picker } from '@react-native-picker/picker';\n\ninterface AddClassButtonProps {\n classTypes: ClassType[];\n buttonText: string;\n onSave: (session: Class) => void;\n}\n\nconst AddClassButton: React.FC = ({ classTypes, buttonText, onSave }) => {\n var daysOfWeek = [\"Lunes\", \"Martes\", \"Miercoles\", \"Jueves\", \"Viernes\"];\n var times = generateTimeArray(\"8:00\", \"22:00\", 15)\n const [modalVisible, setModalVisible] = useState(false);\n const [classTypeID, setClassTypeID] = useState('');\n const [description, setDescription] = useState('');\n const [dayOfWeek, setDayOfWeek] = useState(null);\n const [time, setTime] = useState('');\n const [duration, setDuration] = useState(null);\n const [maxAssist, setMaxAssists] = useState(null);\n\n function resetFields() {\n setClassTypeID(null);\n setDescription('')\n setDayOfWeek(null);\n setTime('');\n setDuration(null);\n setMaxAssists(null);\n }\n\n const handleSave = () => {\n const newClass = {\n classTypeID: classTypeID,\n description: description,\n time: time,\n duration: duration,\n maxAssist: maxAssist,\n dayOfWeek: dayOfWeek\n }\n onSave(newClass);\n resetFields();\n setModalVisible(false);\n };\n\n const handleClose = () => {\n resetFields();\n setModalVisible(false);\n };\n\n const isButtonDisabled = () => {\n return classTypeID && description && time && duration && maxAssist && dayOfWeek;\n }\n\n return (\n <>\n \n\n setModalVisible(false)}\n >\n \n \n {\n setClassTypeID(itemValue);\n }}\n >\n \n {classTypes.map((classType, key) => (\n \n ))}\n \n setDescription(text)}\n />\n {\n setDayOfWeek(itemValue);\n }}\n >\n \n {daysOfWeek.map((day, key) => (\n \n ))}\n \n {\n setTime(itemValue);\n }}\n >\n \n {times.map((time, key) => (\n \n ))}\n \n setMaxAssists(parseInt(text))}\n />\n setDuration(parseInt(text))}\n />\n\n \n \n Save\n \n \n Close\n \n \n \n \n \n \n );\n};\n\nexport default AddClassButton;\n\nconst styles = StyleSheet.create({\n button: {\n backgroundColor: '#95EC91',\n borderColor: '#6DFE4A',\n borderRadius: 8,\n padding: 10,\n },\n buttonText: {\n letterSpacing: 1,\n fontSize: 13,\n textAlign: 'center',\n },\n modalContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n modalContent: {\n backgroundColor: 'white',\n borderRadius: 8,\n padding: 20,\n width: 300,\n },\n input: {\n height: 40,\n borderColor: 'gray',\n borderWidth: 1,\n marginVertical: 10,\n borderRadius: 8,\n paddingLeft: 10,\n },\n buttonContainer: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginTop: 20,\n },\n saveButton: {\n backgroundColor: '#95EC91',\n borderColor: '#6DFE4A',\n borderRadius: 8,\n padding: 10,\n alignItems: 'center',\n flex: 1,\n marginRight: 5,\n },\n closeButton: {\n backgroundColor: '#FF6F6F',\n borderColor: '#FF4646',\n borderRadius: 8,\n padding: 10,\n alignItems: 'center',\n flex: 1,\n marginLeft: 5,\n },\n picker: {\n height: 40,\n borderColor: 'gray',\n borderWidth: 1,\n borderRadius: 5,\n padding: 10,\n marginBottom: 10,\n marginRight: 15,\n //minWidth: '25%', // Minimum width of 1/4 the container\n },\n});","\nimport * as queries from '../../graphql/queries';\nimport * as mutations from '../../graphql/mutations';\nimport { ClassType} from \"../../models\";\nimport { baseListGQLRequest, baseGQLRequest } from './goulapi.utils';\n\n// Class Types\nexport async function listClassTypes(): Promise{\n return baseListGQLRequest({}, queries.listClassTypes);\n}\nexport function createClassType(newClassType: ClassType) {\n return baseGQLRequest({ input: newClassType }, mutations.createClassType);\n}\n\nexport function updateClassType(classType) {\n return baseGQLRequest({ input: classType }, mutations.updateClassType);\n}\n\nexport function deleteClassType(classTypeID: string) {\n return baseGQLRequest({ input: { id: classTypeID } }, mutations.deleteClassType);\n}","import React, { useEffect, useState } from 'react';\nimport { useContext } from 'react';\nimport { SafeAreaView, StyleSheet } from 'react-native';\nimport View from '@ant-design/react-native/lib/view';\nimport Schedule from './component/Schedule/Schedule';\nimport AddClassButton from './component/AddClassButton';\nimport { Class } from '../../../models';\nimport { addClass, getAvailableClasses } from '../../../services/goulapi/goulapi.class';\nimport { listClassTypes } from '../../../services/goulapi/goulapi.classtype';\nimport { sortClassesByDay } from '../../../utils/classFormatters';\nimport { LoadingContext } from '../../../components/LoadingContext';\nimport { Auth } from 'aws-amplify';\nimport { listOfUsers } from '../../../services/cognito/cognito.service';\n\n\nfunction AdminClassSchedule() {\n var allUsers;\n const [classList, setClassList] = useState({});\n const [classTypeList, setClassTypeList] = useState([]);\n const [toReload, setToReload] = useState(true);\n const { isLoading, setIsLoading } = useContext(LoadingContext);\n\n\n useEffect(() => {\n async function setClasses() {\n setClassList(sortClassesByDay(await getAvailableClasses()));\n allUsers = await listOfUsers((await Auth.currentSession()).getAccessToken().getJwtToken());\n setClassTypeList(await listClassTypes());\n setToReload(false);\n setIsLoading(false);\n }\n if (toReload) {\n setIsLoading(true);\n setClasses();\n }\n }, [toReload]);\n\n return (<>\n \n {toReload ? null :\n <>\n \n { await addClass(session); setToReload(true) }}>\n \n \n \n \n \n }\n \n\n );\n}\n\nexport default AdminClassSchedule;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#FFF',\n padding: 20,\n margin: 5,\n },\n scheduleView: {\n marginTop: 10,\n marginBottom: 2,\n margin: 10,\n },\n buttonView: {\n marginTop: 10,\n marginBottom: 2,\n margin: 10,\n alignItems: 'flex-end',\n },\n\n});\n","import { Class } from '../models';\n\nexport const formatAllClases = (classList: Class[]) => {\n var classDict = {};\n classList.forEach((element) => classDict[element.id] = element);\n return classDict;\n}\n\nexport const sortClassesByDay = (classList: Class[]) => {\n var classDict = {1: [], 2: [], 3: [], 4: [], 5: []}\n classList.forEach((element) => classDict[element.dayOfWeek].push(element));\n return classDict;\n}","import React, { useEffect, useState } from 'react';\nimport { Text, StyleSheet, TouchableOpacity, View } from 'react-native';\nimport { Class, User } from '../../../../models';\nimport { ClassState, UserState } from '../../../../types';\nimport Button from '@ant-design/react-native/lib/button';\nimport { admin_createUserCanceledClass, removeUserSessionJoined } from '../../../../services/goulapi/goulapi.user';\nimport YesNoModal from '../../../../modals/YesNoModal';\nimport { Tooltip } from 'react-native-elements';\nimport { admin_cancelClassDay } from '../../../../services/goulapi/goulapi.service';\n\ninterface AdminClassProps {\n selectedClass: Class;\n users: User[];\n setToReload;\n}\n\nconst CalendarClass: React.FC = ({ selectedClass, users, setToReload }) => {\n const [isExpanded, setExpanded] = useState(false);\n const [calendarClassView, setCalendarClassView] = useState(null);\n const buttonBorderColor = selectedClass.classType.color || 'red';\n\n const handlePress = () => {\n setExpanded(!isExpanded);\n };\n\n function searchUserName(selectedClass) {\n return selectedClass.users.map((userToFind, index) => {\n const foundUser = users.find((user) => user.userName === userToFind.userId);\n return (foundUser ?\n \n \n {\"email: \" + foundUser?.email}\n {\"Telf.: \" + foundUser?.telf}\n \n }\n width={300}\n height={70}\n backgroundColor={'#fff'}\n withOverlay={false}\n withPointer={false}\n >\n = UserState.CANCELED_RESCHEDULED\n ? '#F9A97C' // Adjust color as needed for strikethrough\n : 'black', // Default color\n textDecorationLine: userToFind.status >= UserState.CANCELED_RESCHEDULED ? 'line-through' : 'none',\n paddingLeft: userToFind.status >= UserState.CANCELED_RESCHEDULED ? 26 : 0,\n },\n ]}\n >\n {userToFind.status < UserState.CANCELED_RESCHEDULED ? \n handleDeleteUser(selectedClass, userToFind)}\n handleNo={()=>{}}\n />:\n null\n }\n {foundUser?.name}\n \n \n
: null)\n });\n }\n\n function handleDeleteUser(selectedClass, user) {\n if(user.status == UserState.REGULAR){\n admin_createUserCanceledClass(user.userId, selectedClass.id, selectedClass.date)\n } else if(user.status == UserState.RESCHEDULED){\n removeUserSessionJoined(user.userJoinedClassID); \n }\n setToReload(true);\n }\n\n function handleCancelClass(selectedClass) {\n admin_cancelClassDay(selectedClass.id, selectedClass.date);\n setToReload(true);\n }\n\n useEffect(() => {\n setCalendarClassView(<>\n \n {selectedClass.state == ClassState.AVAILABLE ?\n <>\n \n handleCancelClass(selectedClass)}\n handleNo={()=>{}}\n />\n \n \n {selectedClass.time} - {selectedClass.classType}\n \n ({selectedClass.duration}min)\n {selectedClass.users.filter((user) => user.status < UserState.CANCELED_RESCHEDULED).length} / {selectedClass.maxAssist}\n {isExpanded && (\n \n )}\n {isExpanded && Array.isArray(selectedClass.users) && selectedClass.users.length > 0 && (\n <>\n \n {\"______________________\"}\n {searchUserName(selectedClass)}\n \n )}\n \n :\n <>\n \n {selectedClass.time} - {selectedClass.classType}\n \n ({selectedClass.duration}min)\n 0/ {selectedClass.maxAssist}\n }\n\n \n );\n }, [selectedClass, users, isExpanded]);\n\n return (\n
\n {calendarClassView}\n
\n );\n};\n\nexport default CalendarClass;\n\nconst styles = StyleSheet.create({\n button: {\n margin: 10,\n borderRadius: 10,\n borderWidth: 1,\n padding: 10,\n },\n itemType: {\n color: 'black',\n fontSize: 16,\n textAlign: 'center',\n },\n itemTime: {\n color: 'lightgray',\n fontSize: 14,\n textAlign: 'center',\n },\n itemUser: {\n color: 'lightgray',\n fontSize: 14,\n textAlign: 'justify',\n },\n itemInfo: {\n color: 'black',\n fontSize: 14,\n textAlign: 'justify',\n },\n divider: {\n height: 1,\n backgroundColor: 'gray',\n marginVertical: 3,\n },\n buttonText: {\n letterSpacing: 1,\n fontSize: 13,\n textAlign: 'center',\n },\n buttonDelete: {\n padding: 10,\n borderRadius: 5,\n borderWidth: 0, // This removes the border\n },\n buttonDeleteText: {\n color: 'red',\n textAlign: 'center',\n },\n});\n","import React, { useContext, useEffect, useState } from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet, TouchableWithoutFeedback, Dimensions, ScrollView } from 'react-native';\nimport { CalendarList, LocaleConfig } from 'react-native-calendars';\nimport { Ionicons } from '@expo/vector-icons';\nimport { LoadingContext } from '../../../components/LoadingContext';\nimport YesNoModal from '../../../modals/YesNoModal';\nimport { Class } from '../../../models';\nimport { getClassesFromRange, admin_cancelDay, getCancelledDays } from '../../../services/goulapi/goulapi.service';\nimport { getUsersAndInfo } from '../../../services/goulapi/goulapi.user';\nimport CalendarClass from './component/CalendarClass';\nimport { getCancelledDayFormat } from '../../../utils/dateUtils';\n\nLocaleConfig.defaultLocale = 'es';\nLocaleConfig.locales['es'] = {\n monthNames: [\n 'Enero',\n 'Febrero',\n 'Marzo',\n 'Abril',\n 'Mayo',\n 'Junio',\n 'Julio',\n 'Agosto',\n 'Septiembre',\n 'Octubre',\n 'Noviembre',\n 'Diciembre'\n ],\n monthNamesShort: ['Ene.', 'Feb.', 'Mar.', 'Abr.', 'May.', 'Jun.', 'Jul.', 'Ago.', 'Sep.', 'Oct.', 'Nov.', 'Dic.'],\n dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],\n dayNamesShort: ['Dom.', 'Lun.', 'Mar.', 'Mié.', 'Jue.', 'Vie.', 'Sáb.'],\n today: 'Hoy'\n};\n\nconst windowWidth = Dimensions.get('window').width;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n flexDirection: 'row',\n overflow: 'hidden',\n },\n calendarContainer: {\n flex: 1,\n zIndex: 0,\n },\n sidebarContainer: {\n width: windowWidth >= 600 ? '25%' : '100%',\n backgroundColor: 'white',\n padding: 20,\n borderLeftWidth: 1,\n borderColor: '#e0e0e0',\n zIndex: 1,\n },\n closeButton: {\n position: 'absolute',\n top: 5,\n right: 10,\n padding: 10,\n borderRadius: 5,\n zIndex: 2,\n },\n closeIcon: {\n color: '#CACBCA', // Greyish color\n fontSize: 30,\n },\n shadow: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n zIndex: 0,\n },\n calendarTheme: {\n backgroundColor: '#ffffff',\n calendarBackground: '#ffffff',\n textSectionTitleColor: '#b6c1cd',\n textSectionTitleDisabledColor: '#d9e1e8',\n selectedDayBackgroundColor: '#AFFE7F',\n selectedDayTextColor: '#ffffff',\n todayTextColor: 'red',\n dayTextColor: '#2d4150',\n textDisabledColor: '#d9e1e8',\n monthTextColor: '#FE8C7F',\n indicatorColor: 'red',\n textDayFontWeight: '300',\n textMonthFontWeight: 'bold',\n textDayHeaderFontWeight: '300',\n textDayFontSize: 16,\n textMonthFontSize: 15,\n textDayHeaderFontSize: 16,\n },\n dayHeader: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-start', // Updated to justify to the right\n marginBottom: 10,\n },\n daysubHeader: {\n flexDirection: 'column',\n justifyContent: 'flex-start', // Updated to justify to the right\n marginBottom: 10,\n },\n dayNumber: {\n width: 50, // Updated to make the circle slightly larger\n height: 50, // Updated to make the circle slightly larger\n borderRadius: 25, // Updated to make the circle slightly larger\n backgroundColor: '#FEA47F', // You can set the desired color\n marginLeft: 10, // Updated to create space between the number and text\n alignItems: 'center',\n justifyContent: 'center',\n },\n dayText: {\n fontWeight: 'bold',\n fontSize: 20, // Updated to make the number bigger\n color: 'white', // Updated to set the font color to white\n },\n dayNameText: {\n fontSize: 22, // Updated to make the number bigger\n marginLeft: 7,\n textTransform: 'capitalize', // Added to capitalize the first letter\n },\n monthNameText: {\n fontSize: 14, // Updated to make the number bigger\n color: 'lightgrey',\n marginLeft: 7,\n textTransform: 'capitalize', // Added to capitalize the first letter\n },\n buttonDelete: {\n padding: 10,\n borderRadius: 5,\n borderWidth: 0, // This removes the border\n },\n buttonDeleteText: {\n color: 'red',\n textAlign: 'center',\n }\n});\n\nfunction AdminCalendarView() {\n const [selectedDay, setSelectedDay] = useState('');\n var selectedDayClasses = [];\n var isDayCanceled = 0;\n const [toReload, setToReload] = useState(false);\n const [firstLoad, setFirstLoad] = useState(true);\n const { isLoading, setIsLoading } = useContext(LoadingContext);\n const [userInfo, setUserInfo] = useState([]);\n\n const customSort = (a, b) => {\n const [aHours, aMinutes] = a.time.split(/[:.]/).map(Number);\n const [bHours, bMinutes] = b.time.split(/[:.]/).map(Number);\n\n if (aHours !== bHours) {\n return aHours - bHours;\n }\n return aMinutes - bMinutes;\n };\n\n const handleDayPress = (day) => {\n setSelectedDay(day.dateString);\n };\n\n const closeSidebar = () => {\n setSelectedDay('');\n };\n\n function handleCancelClassDay(day: Date) {\n admin_cancelDay(day);\n setToReload(true);\n }\n\n function handleCancelClassDayHoliday(day: Date) {\n admin_cancelDay(day, \"\", true);\n setToReload(true);\n }\n\n const renderDayHeader = () => {\n const selectedDate = new Date(selectedDay);\n const dayNumber = selectedDate.getDate();\n const dayName = new Intl.DateTimeFormat('es', { weekday: 'long' }).format(selectedDate);\n const month = new Intl.DateTimeFormat('es', { month: 'long' }).format(selectedDate);\n\n return (<>\n \n \n {dayNumber}\n \n \n {month}\n {dayName}\n \n \n {(selectedDayClasses.length > 0 ?\n {(isDayCanceled == 0 ? \n <>\n handleCancelClassDay(selectedDate)}\n handleNo={() => { }}\n />\n handleCancelClassDayHoliday(selectedDate)}\n handleNo={() => { }}\n />\n :\n <>{(isDayCanceled == 1 ? \n Clases canceladas por vacaciones \n :Clases canceladas\n )}\n )}\n :\n <>)}\n \n \n );\n };\n\n const renderShadow = () => {\n return (\n \n \n \n );\n };\n\n const renderCalendar = () => {\n return (\n \n \n \n );\n }\n\n const renderCalendarWithSideBar = () => {\n return (\n <>\n {renderCalendar()}\n \n \n \n \n {renderDayHeader()}\n \n {selectedDayClasses.map((selClass: Class, key) => (\n \n ))}\n \n \n {renderShadow()}\n \n );\n }\n\n const [calendarView, setCalendarView] = useState(<>{renderCalendar()});\n\n async function setView() {\n if (selectedDay == '') {\n selectedDayClasses = [];\n setCalendarView(<>{renderCalendar()});\n }\n else {\n const selectedDate = new Date(selectedDay);\n const unorderSelectedDayClasses = await getClassesFromRange(selectedDate, selectedDate);\n selectedDayClasses = unorderSelectedDayClasses.sort(customSort);\n const selWeekFormat = getCancelledDayFormat(selectedDate);\n const cancellDay = await getCancelledDays(selWeekFormat);\n isDayCanceled = cancellDay.length > 0 ? cancellDay[0].unavailableDay ? 1 : 2 : 0 ;\n setCalendarView(<>{renderCalendarWithSideBar()});\n }\n setIsLoading(false);\n setToReload(false);\n }\n\n useEffect(() => {\n async function getUsersFromCognito() {\n setUserInfo(await getUsersAndInfo());\n setIsLoading(false);\n setFirstLoad(false);\n }\n\n if (firstLoad) {\n setIsLoading(true);\n getUsersFromCognito();\n }\n }, [firstLoad]);\n\n useEffect(() => {\n if (!firstLoad) {\n setIsLoading(true);\n setView();\n }\n }, [selectedDay]);\n\n useEffect(() => {\n if (!firstLoad) {\n setIsLoading(true);\n setView();\n }\n }, [toReload]);\n\n return (\n \n {calendarView}\n \n );\n}\n\nexport default AdminCalendarView;","import React, { useEffect, useState } from 'react';\nimport { View, TextInput, Pressable, FlatList, Modal, Text, StyleSheet } from 'react-native';\n\nimport { createClassType, deleteClassType, listClassTypes, updateClassType } from '../../../services/goulapi/goulapi.classtype';\n\nconst ClassTypeView = () => {\n const [input, setInput] = useState({\n name: '',\n description: '',\n color: ''\n });\n const [modalVisibleCreate, setModalVisibleCreate] = useState(false);\n const [modalVisibleUpdate, setModalVisibleUpdate] = useState(false);\n const [modalVisibleDelete, setModalVisibleDelete] = useState(false);\n\n const [classTypes, setClassTypes] = useState([]);\n\n const fetchClassTypes = async () => {\n try {\n const classTypesData = await listClassTypes();\n setClassTypes(classTypesData);\n } catch (error) {\n console.log('Error retrieving classTypes:', error);\n }\n };\n\n useEffect(() => {\n fetchClassTypes();\n }, []);\n\n const handleSubmit = async () => {\n // Perform the GraphQL mutation here using the input values\n // After successfully creating the class type, add it to the list\n const newClassType = {\n name: input.name,\n description: input.description,\n color: input.color,\n };\n const response = createClassType(newClassType);\n fetchClassTypes();\n setInput({ name: '', description: '', color: '' });\n setModalVisibleCreate(false);\n setModalVisibleUpdate(false);\n setModalVisibleDelete(false);\n };\n\n const handleEdit = async (item) => {\n // Perform the GraphQL mutation here using the input values\n // After successfully creating the class type, add it to the list\n const classType = {\n id: input.id,\n name: input.name,\n description: input.description,\n color: input.color,\n };\n const response = updateClassType(classType);\n\n fetchClassTypes();\n setInput({ name: '', description: '', color: '' });\n setModalVisibleCreate(false);\n setModalVisibleUpdate(false);\n setModalVisibleDelete(false);\n };\n\n const handleDelete = async (item) => {\n const response = deleteClassType(item.id);\n\n fetchClassTypes();\n setInput({ name: '', description: '', color: '' });\n setModalVisibleCreate(false);\n setModalVisibleUpdate(false);\n setModalVisibleDelete(false);\n };\n\n const renderItem = ({ item }) => (\n \n \n {item.name}\n \n \n {item.description}\n \n \n {item.color}\n \n \n setModalVisibleUpdate(true)}>\n Editar\n \n \n \n setModalVisibleDelete(true)}>\n Borrar\n \n \n \n \n setInput({ ...input, name: Text })}\n />\n setInput({ ...input, description: Text })}\n />\n setInput({ ...input, color: Text })}\n />\n handleEdit(item)}>\n Submit\n \n setModalVisibleUpdate(false)}>\n Cancel\n \n \n \n \n \n Are you sure that want to delete the class type '{item.name}' ?\n handleDelete(item)}>\n Yes\n \n setModalVisibleDelete(false)}>\n Cancel\n \n \n \n \n );\n\n return (\n \n setModalVisibleCreate(true)}>\n Add\n \n \n \n setInput({ ...input, name: Text })}\n />\n setInput({ ...input, description: Text })}\n />\n setInput({ ...input, color: Text })}\n />\n \n Submit\n \n setModalVisibleCreate(false)}>\n Cancel\n \n \n \n item.id}\n renderItem={renderItem}\n />\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n justifyContent: 'center',\n },\n modalContent: {\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'white',\n padding: 20,\n paddingTop: 100, // Add more padding to the top side\n borderRadius: 10,\n elevation: 5,\n shadowColor: 'black',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.25,\n shadowRadius: 3.84,\n },\n row: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginBottom: 10,\n },\n column: {\n flex: 1,\n marginHorizontal: 5,\n },\n field: {\n fontSize: 16,\n marginBottom: 5,\n },\n button: {\n fontSize: 16,\n marginTop: 5,\n color: 'blue',\n },\n});\n\nexport default ClassTypeView","import React, { useEffect, useState } from 'react';\nimport { View, TextInput, Pressable, FlatList, Modal, Text, StyleSheet } from 'react-native';\n\nimport { API, Auth } from 'aws-amplify';\nimport * as queries from '../../../graphql/queries';\nimport * as mutations from '../../../graphql/mutations';\nimport { createClassType, deleteClassType, listClassTypes, updateClassType } from '../../../services/goulapi/goulapi.classtype';\nimport { listOfUsers, resendUserEmail } from '../../../services/cognito/cognito.service';\n\nconst ReSendEmail = () => {\n const [input, setInput] = useState({\n name: '',\n email: ''\n });\n const [modalVisibleCreate, setModalVisibleCreate] = useState(false);\n const [token, setToken] = useState('');\n\n const [classTypes, setClassTypes] = useState([]);\n\n const fetchClassTypes = async () => {\n try {\n setToken((await Auth.currentSession()).getAccessToken().getJwtToken());\n } catch (error) {\n console.log('Error retrieving classTypes:', error);\n }\n };\n\n useEffect(() => {\n fetchClassTypes();\n }, []);\n\n const handleSubmit = async () => {\n const response = resendUserEmail(token, input.name, input.email);\n fetchClassTypes();\n setInput({ name: '', email: ''});\n setModalVisibleCreate(false);\n };\n\n const findAttinUser = (user, val) => {\n const filter = Object.entries(user.Attributes).find(([key, att]) => att?.Name === val);\n if(filter)\n {\n return filter[1].Value;\n }\n return '';\n}\n\nconst reSendAll = async () => {\n const allUsers = await listOfUsers(token);\n for (const user of allUsers) {\n if (user.UserStatus === 'FORCE_CHANGE_PASSWORD') {\n const response = await resendUserEmail(token, findAttinUser(user, 'name'), findAttinUser(user, 'email'));\n await new Promise(resolve => setTimeout(resolve, 1000)); // wait for 1s\n console.log(response);\n if(response === null)\n {\n break;\n }\n }\n }\n fetchClassTypes();\n setModalVisibleCreate(false);\n};\n\n const renderItem = ({ item }) => (\n \n \n {item.name}\n \n \n {item.email}\n \n \n );\n\n return (\n \n setModalVisibleCreate(true)}>\n re-send email to user\n \n reSendAll()}>\n re-send email to all\n \n \n \n setInput({ ...input, name: Text })}\n />\n setInput({ ...input, email: Text })}\n />\n \n Submit\n \n setModalVisibleCreate(false)}>\n Cancel\n \n \n \n item.id}\n renderItem={renderItem}\n />\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n justifyContent: 'center',\n },\n modalContent: {\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'white',\n padding: 20,\n paddingTop: 100, // Add more padding to the top side\n borderRadius: 10,\n elevation: 5,\n shadowColor: 'black',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.25,\n shadowRadius: 3.84,\n },\n row: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginBottom: 10,\n },\n column: {\n flex: 1,\n marginHorizontal: 5,\n },\n field: {\n fontSize: 16,\n marginBottom: 5,\n },\n button: {\n fontSize: 16,\n marginTop: 5,\n color: 'blue',\n },\n});\n\nexport default ReSendEmail","import React, { useContext, useEffect, useState } from 'react'\nimport { Button, View, Text, StyleSheet, ActivityIndicator} from 'react-native';\nimport Constants from 'expo-constants'\nimport theme from '../theme'\nimport { NavigationContainer } from '@react-navigation/native';\nimport { createDrawerNavigator } from '@react-navigation/drawer';\nimport AdminUserList from '../views/admin/users/AdminUserList'\nimport AdminClassSchedule from '../views/admin/schedule/AdminClassSchedule';\nimport AdminCalendarView from '../views/admin/calendar/AdminCalendarView';\nimport UserCalendarNavigator from '../views/user/userCalendar/UserCalendarNavigator'\nimport { useAuthenticator } from '@aws-amplify/ui-react-native'\nimport ClassTypeView from '../views/dev/classType/classTypeView';\nimport ReSendEmail from '../views/dev/reSendEmail/ReSendEmail';\nimport { LoadingContext } from './LoadingContext';\n\nconst styles = StyleSheet.create({\n container: {\n backgroundColor: theme.appBar.primary,\n flexDirection: 'row',\n paddingTop: Constants.statusBarHeight + 10\n },\n scroll: {\n paddingBottom: 15\n },\n text: {\n color: theme.appBar.textSecondary,\n paddingHorizontal: 10\n },\n active: {\n color: theme.appBar.textPrimary\n }\n});\n\n// Aquí está la función SignOut, pero ahora es un componente que muestra un botón\nconst LogoutScreen = () => {\n const { signOut } = useAuthenticator();\n\n return (\n \n ¿Estás seguro de que deseas cerrar sesión?\n