diff --git a/amplify/auth/pre-sign-up/graphql/API.ts b/amplify/auth/pre-sign-up/graphql/API.ts index 90bd582..d19b78b 100644 --- a/amplify/auth/pre-sign-up/graphql/API.ts +++ b/amplify/auth/pre-sign-up/graphql/API.ts @@ -3,73 +3,73 @@ // This file was automatically generated and should not be edited. export type SessionAttended = { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: User | null, + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: User | null; }; export type User = { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: ModelSessionAttendedConnection | null, - totalEarnings?: number | null, - updatedAt: string, + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: ModelSessionAttendedConnection | null; + totalEarnings?: number | null; + updatedAt: string; }; export type ModelSessionAttendedConnection = { - __typename: "ModelSessionAttendedConnection", - items: Array, - nextToken?: string | null, + __typename: "ModelSessionAttendedConnection"; + items: Array; + nextToken?: string | null; }; export type Timer = { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; }; export type ModelSessionAttendedFilterInput = { - and?: Array< ModelSessionAttendedFilterInput | null > | null, - createdAt?: ModelStringInput | null, - date?: ModelStringInput | null, - earningsThatSession?: ModelFloatInput | null, - id?: ModelIDInput | null, - not?: ModelSessionAttendedFilterInput | null, - or?: Array< ModelSessionAttendedFilterInput | null > | null, - sessionAttendedId?: ModelIDInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + date?: ModelStringInput | null; + earningsThatSession?: ModelFloatInput | null; + id?: ModelIDInput | null; + not?: ModelSessionAttendedFilterInput | null; + or?: Array | null; + sessionAttendedId?: ModelIDInput | null; + updatedAt?: ModelStringInput | null; }; export type ModelStringInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - size?: ModelSizeInput | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + size?: ModelSizeInput | null; }; export enum ModelAttributeTypes { @@ -85,43 +85,42 @@ export enum ModelAttributeTypes { stringSet = "stringSet", } - export type ModelSizeInput = { - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - le?: number | null, - lt?: number | null, - ne?: number | null, + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + le?: number | null; + lt?: number | null; + ne?: number | null; }; export type ModelFloatInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - le?: number | null, - lt?: number | null, - ne?: number | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + le?: number | null; + lt?: number | null; + ne?: number | null; }; export type ModelIDInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - size?: ModelSizeInput | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + size?: ModelSizeInput | null; }; export enum ModelSortDirection { @@ -129,835 +128,834 @@ export enum ModelSortDirection { DESC = "DESC", } - export type ModelTimerFilterInput = { - and?: Array< ModelTimerFilterInput | null > | null, - createdAt?: ModelStringInput | null, - id?: ModelIDInput | null, - nextSessionDate?: ModelStringInput | null, - nextSessionTime?: ModelStringInput | null, - not?: ModelTimerFilterInput | null, - or?: Array< ModelTimerFilterInput | null > | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + id?: ModelIDInput | null; + nextSessionDate?: ModelStringInput | null; + nextSessionTime?: ModelStringInput | null; + not?: ModelTimerFilterInput | null; + or?: Array | null; + updatedAt?: ModelStringInput | null; }; export type ModelTimerConnection = { - __typename: "ModelTimerConnection", - items: Array, - nextToken?: string | null, + __typename: "ModelTimerConnection"; + items: Array; + nextToken?: string | null; }; export type ModelUserFilterInput = { - and?: Array< ModelUserFilterInput | null > | null, - completedRegistration?: ModelBooleanInput | null, - createdAt?: ModelStringInput | null, - email?: ModelStringInput | null, - firstName?: ModelStringInput | null, - id?: ModelIDInput | null, - lastName?: ModelStringInput | null, - not?: ModelUserFilterInput | null, - numberSessionsAttended?: ModelIntInput | null, - or?: Array< ModelUserFilterInput | null > | null, - profileOwner?: ModelStringInput | null, - role?: ModelStringInput | null, - totalEarnings?: ModelFloatInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + completedRegistration?: ModelBooleanInput | null; + createdAt?: ModelStringInput | null; + email?: ModelStringInput | null; + firstName?: ModelStringInput | null; + id?: ModelIDInput | null; + lastName?: ModelStringInput | null; + not?: ModelUserFilterInput | null; + numberSessionsAttended?: ModelIntInput | null; + or?: Array | null; + profileOwner?: ModelStringInput | null; + role?: ModelStringInput | null; + totalEarnings?: ModelFloatInput | null; + updatedAt?: ModelStringInput | null; }; export type ModelBooleanInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - eq?: boolean | null, - ne?: boolean | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + eq?: boolean | null; + ne?: boolean | null; }; export type ModelIntInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - le?: number | null, - lt?: number | null, - ne?: number | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + le?: number | null; + lt?: number | null; + ne?: number | null; }; export type ModelUserConnection = { - __typename: "ModelUserConnection", - items: Array, - nextToken?: string | null, + __typename: "ModelUserConnection"; + items: Array; + nextToken?: string | null; }; export type ModelSessionAttendedConditionInput = { - and?: Array< ModelSessionAttendedConditionInput | null > | null, - createdAt?: ModelStringInput | null, - date?: ModelStringInput | null, - earningsThatSession?: ModelFloatInput | null, - not?: ModelSessionAttendedConditionInput | null, - or?: Array< ModelSessionAttendedConditionInput | null > | null, - sessionAttendedId?: ModelIDInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + date?: ModelStringInput | null; + earningsThatSession?: ModelFloatInput | null; + not?: ModelSessionAttendedConditionInput | null; + or?: Array | null; + sessionAttendedId?: ModelIDInput | null; + updatedAt?: ModelStringInput | null; }; export type CreateSessionAttendedInput = { - date: string, - earningsThatSession?: number | null, - id?: string | null, - sessionAttendedId: string, + date: string; + earningsThatSession?: number | null; + id?: string | null; + sessionAttendedId: string; }; export type ModelTimerConditionInput = { - and?: Array< ModelTimerConditionInput | null > | null, - createdAt?: ModelStringInput | null, - nextSessionDate?: ModelStringInput | null, - nextSessionTime?: ModelStringInput | null, - not?: ModelTimerConditionInput | null, - or?: Array< ModelTimerConditionInput | null > | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + nextSessionDate?: ModelStringInput | null; + nextSessionTime?: ModelStringInput | null; + not?: ModelTimerConditionInput | null; + or?: Array | null; + updatedAt?: ModelStringInput | null; }; export type CreateTimerInput = { - id?: string | null, - nextSessionDate?: string | null, - nextSessionTime?: string | null, + id?: string | null; + nextSessionDate?: string | null; + nextSessionTime?: string | null; }; export type ModelUserConditionInput = { - and?: Array< ModelUserConditionInput | null > | null, - completedRegistration?: ModelBooleanInput | null, - createdAt?: ModelStringInput | null, - email?: ModelStringInput | null, - firstName?: ModelStringInput | null, - lastName?: ModelStringInput | null, - not?: ModelUserConditionInput | null, - numberSessionsAttended?: ModelIntInput | null, - or?: Array< ModelUserConditionInput | null > | null, - profileOwner?: ModelStringInput | null, - role?: ModelStringInput | null, - totalEarnings?: ModelFloatInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + completedRegistration?: ModelBooleanInput | null; + createdAt?: ModelStringInput | null; + email?: ModelStringInput | null; + firstName?: ModelStringInput | null; + lastName?: ModelStringInput | null; + not?: ModelUserConditionInput | null; + numberSessionsAttended?: ModelIntInput | null; + or?: Array | null; + profileOwner?: ModelStringInput | null; + role?: ModelStringInput | null; + totalEarnings?: ModelFloatInput | null; + updatedAt?: ModelStringInput | null; }; export type CreateUserInput = { - completedRegistration?: boolean | null, - email?: string | null, - firstName?: string | null, - id?: string | null, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, + completedRegistration?: boolean | null; + email?: string | null; + firstName?: string | null; + id?: string | null; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; }; export type DeleteSessionAttendedInput = { - id: string, + id: string; }; export type DeleteTimerInput = { - id: string, + id: string; }; export type DeleteUserInput = { - id: string, + id: string; }; export type UpdateSessionAttendedInput = { - date?: string | null, - earningsThatSession?: number | null, - id: string, - sessionAttendedId?: string | null, + date?: string | null; + earningsThatSession?: number | null; + id: string; + sessionAttendedId?: string | null; }; export type UpdateTimerInput = { - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; }; export type UpdateUserInput = { - completedRegistration?: boolean | null, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, + completedRegistration?: boolean | null; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; }; export type ModelSubscriptionSessionAttendedFilterInput = { - and?: Array< ModelSubscriptionSessionAttendedFilterInput | null > | null, - createdAt?: ModelSubscriptionStringInput | null, - date?: ModelSubscriptionStringInput | null, - earningsThatSession?: ModelSubscriptionFloatInput | null, - id?: ModelSubscriptionIDInput | null, - or?: Array< ModelSubscriptionSessionAttendedFilterInput | null > | null, - sessionAttendedId?: ModelSubscriptionIDInput | null, - updatedAt?: ModelSubscriptionStringInput | null, + and?: Array | null; + createdAt?: ModelSubscriptionStringInput | null; + date?: ModelSubscriptionStringInput | null; + earningsThatSession?: ModelSubscriptionFloatInput | null; + id?: ModelSubscriptionIDInput | null; + or?: Array | null; + sessionAttendedId?: ModelSubscriptionIDInput | null; + updatedAt?: ModelSubscriptionStringInput | null; }; export type ModelSubscriptionStringInput = { - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - in?: Array< string | null > | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - notIn?: Array< string | null > | null, + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + in?: Array | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + notIn?: Array | null; }; export type ModelSubscriptionFloatInput = { - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - in?: Array< number | null > | null, - le?: number | null, - lt?: number | null, - ne?: number | null, - notIn?: Array< number | null > | null, + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + in?: Array | null; + le?: number | null; + lt?: number | null; + ne?: number | null; + notIn?: Array | null; }; export type ModelSubscriptionIDInput = { - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - in?: Array< string | null > | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - notIn?: Array< string | null > | null, + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + in?: Array | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + notIn?: Array | null; }; export type ModelSubscriptionTimerFilterInput = { - and?: Array< ModelSubscriptionTimerFilterInput | null > | null, - createdAt?: ModelSubscriptionStringInput | null, - id?: ModelSubscriptionIDInput | null, - nextSessionDate?: ModelSubscriptionStringInput | null, - nextSessionTime?: ModelSubscriptionStringInput | null, - or?: Array< ModelSubscriptionTimerFilterInput | null > | null, - updatedAt?: ModelSubscriptionStringInput | null, + and?: Array | null; + createdAt?: ModelSubscriptionStringInput | null; + id?: ModelSubscriptionIDInput | null; + nextSessionDate?: ModelSubscriptionStringInput | null; + nextSessionTime?: ModelSubscriptionStringInput | null; + or?: Array | null; + updatedAt?: ModelSubscriptionStringInput | null; }; export type ModelSubscriptionUserFilterInput = { - and?: Array< ModelSubscriptionUserFilterInput | null > | null, - completedRegistration?: ModelSubscriptionBooleanInput | null, - createdAt?: ModelSubscriptionStringInput | null, - email?: ModelSubscriptionStringInput | null, - firstName?: ModelSubscriptionStringInput | null, - id?: ModelSubscriptionIDInput | null, - lastName?: ModelSubscriptionStringInput | null, - numberSessionsAttended?: ModelSubscriptionIntInput | null, - or?: Array< ModelSubscriptionUserFilterInput | null > | null, - profileOwner?: ModelStringInput | null, - role?: ModelSubscriptionStringInput | null, - totalEarnings?: ModelSubscriptionFloatInput | null, - updatedAt?: ModelSubscriptionStringInput | null, + and?: Array | null; + completedRegistration?: ModelSubscriptionBooleanInput | null; + createdAt?: ModelSubscriptionStringInput | null; + email?: ModelSubscriptionStringInput | null; + firstName?: ModelSubscriptionStringInput | null; + id?: ModelSubscriptionIDInput | null; + lastName?: ModelSubscriptionStringInput | null; + numberSessionsAttended?: ModelSubscriptionIntInput | null; + or?: Array | null; + profileOwner?: ModelStringInput | null; + role?: ModelSubscriptionStringInput | null; + totalEarnings?: ModelSubscriptionFloatInput | null; + updatedAt?: ModelSubscriptionStringInput | null; }; export type ModelSubscriptionBooleanInput = { - eq?: boolean | null, - ne?: boolean | null, + eq?: boolean | null; + ne?: boolean | null; }; export type ModelSubscriptionIntInput = { - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - in?: Array< number | null > | null, - le?: number | null, - lt?: number | null, - ne?: number | null, - notIn?: Array< number | null > | null, + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + in?: Array | null; + le?: number | null; + lt?: number | null; + ne?: number | null; + notIn?: Array | null; }; export type GetSessionAttendedQueryVariables = { - id: string, + id: string; }; export type GetSessionAttendedQuery = { - getSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + getSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type GetTimerQueryVariables = { - id: string, + id: string; }; export type GetTimerQuery = { - getTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + getTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type GetUserQueryVariables = { - id: string, + id: string; }; export type GetUserQuery = { - getUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + getUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type ListSessionAttendedsQueryVariables = { - filter?: ModelSessionAttendedFilterInput | null, - id?: string | null, - limit?: number | null, - nextToken?: string | null, - sortDirection?: ModelSortDirection | null, + filter?: ModelSessionAttendedFilterInput | null; + id?: string | null; + limit?: number | null; + nextToken?: string | null; + sortDirection?: ModelSortDirection | null; }; export type ListSessionAttendedsQuery = { - listSessionAttendeds?: { - __typename: "ModelSessionAttendedConnection", - items: Array< { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - } | null >, - nextToken?: string | null, - } | null, + listSessionAttendeds?: { + __typename: "ModelSessionAttendedConnection"; + items: Array<{ + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + } | null>; + nextToken?: string | null; + } | null; }; export type ListTimersQueryVariables = { - filter?: ModelTimerFilterInput | null, - id?: string | null, - limit?: number | null, - nextToken?: string | null, - sortDirection?: ModelSortDirection | null, + filter?: ModelTimerFilterInput | null; + id?: string | null; + limit?: number | null; + nextToken?: string | null; + sortDirection?: ModelSortDirection | null; }; export type ListTimersQuery = { - listTimers?: { - __typename: "ModelTimerConnection", - items: Array< { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null >, - nextToken?: string | null, - } | null, + listTimers?: { + __typename: "ModelTimerConnection"; + items: Array<{ + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null>; + nextToken?: string | null; + } | null; }; export type ListUsersQueryVariables = { - filter?: ModelUserFilterInput | null, - id?: string | null, - limit?: number | null, - nextToken?: string | null, - sortDirection?: ModelSortDirection | null, + filter?: ModelUserFilterInput | null; + id?: string | null; + limit?: number | null; + nextToken?: string | null; + sortDirection?: ModelSortDirection | null; }; export type ListUsersQuery = { - listUsers?: { - __typename: "ModelUserConnection", - items: Array< { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null >, - nextToken?: string | null, - } | null, + listUsers?: { + __typename: "ModelUserConnection"; + items: Array<{ + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null>; + nextToken?: string | null; + } | null; }; export type CreateSessionAttendedMutationVariables = { - condition?: ModelSessionAttendedConditionInput | null, - input: CreateSessionAttendedInput, + condition?: ModelSessionAttendedConditionInput | null; + input: CreateSessionAttendedInput; }; export type CreateSessionAttendedMutation = { - createSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + createSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type CreateTimerMutationVariables = { - condition?: ModelTimerConditionInput | null, - input: CreateTimerInput, + condition?: ModelTimerConditionInput | null; + input: CreateTimerInput; }; export type CreateTimerMutation = { - createTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + createTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type CreateUserMutationVariables = { - condition?: ModelUserConditionInput | null, - input: CreateUserInput, + condition?: ModelUserConditionInput | null; + input: CreateUserInput; }; export type CreateUserMutation = { - createUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + createUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type DeleteSessionAttendedMutationVariables = { - condition?: ModelSessionAttendedConditionInput | null, - input: DeleteSessionAttendedInput, + condition?: ModelSessionAttendedConditionInput | null; + input: DeleteSessionAttendedInput; }; export type DeleteSessionAttendedMutation = { - deleteSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + deleteSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type DeleteTimerMutationVariables = { - condition?: ModelTimerConditionInput | null, - input: DeleteTimerInput, + condition?: ModelTimerConditionInput | null; + input: DeleteTimerInput; }; export type DeleteTimerMutation = { - deleteTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + deleteTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type DeleteUserMutationVariables = { - condition?: ModelUserConditionInput | null, - input: DeleteUserInput, + condition?: ModelUserConditionInput | null; + input: DeleteUserInput; }; export type DeleteUserMutation = { - deleteUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + deleteUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type UpdateSessionAttendedMutationVariables = { - condition?: ModelSessionAttendedConditionInput | null, - input: UpdateSessionAttendedInput, + condition?: ModelSessionAttendedConditionInput | null; + input: UpdateSessionAttendedInput; }; export type UpdateSessionAttendedMutation = { - updateSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + updateSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type UpdateTimerMutationVariables = { - condition?: ModelTimerConditionInput | null, - input: UpdateTimerInput, + condition?: ModelTimerConditionInput | null; + input: UpdateTimerInput; }; export type UpdateTimerMutation = { - updateTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + updateTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type UpdateUserMutationVariables = { - condition?: ModelUserConditionInput | null, - input: UpdateUserInput, + condition?: ModelUserConditionInput | null; + input: UpdateUserInput; }; export type UpdateUserMutation = { - updateUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + updateUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type OnCreateSessionAttendedSubscriptionVariables = { - filter?: ModelSubscriptionSessionAttendedFilterInput | null, + filter?: ModelSubscriptionSessionAttendedFilterInput | null; }; export type OnCreateSessionAttendedSubscription = { - onCreateSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + onCreateSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type OnCreateTimerSubscriptionVariables = { - filter?: ModelSubscriptionTimerFilterInput | null, + filter?: ModelSubscriptionTimerFilterInput | null; }; export type OnCreateTimerSubscription = { - onCreateTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + onCreateTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type OnCreateUserSubscriptionVariables = { - filter?: ModelSubscriptionUserFilterInput | null, - profileOwner?: string | null, + filter?: ModelSubscriptionUserFilterInput | null; + profileOwner?: string | null; }; export type OnCreateUserSubscription = { - onCreateUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + onCreateUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type OnDeleteSessionAttendedSubscriptionVariables = { - filter?: ModelSubscriptionSessionAttendedFilterInput | null, + filter?: ModelSubscriptionSessionAttendedFilterInput | null; }; export type OnDeleteSessionAttendedSubscription = { - onDeleteSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + onDeleteSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type OnDeleteTimerSubscriptionVariables = { - filter?: ModelSubscriptionTimerFilterInput | null, + filter?: ModelSubscriptionTimerFilterInput | null; }; export type OnDeleteTimerSubscription = { - onDeleteTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + onDeleteTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type OnDeleteUserSubscriptionVariables = { - filter?: ModelSubscriptionUserFilterInput | null, - profileOwner?: string | null, + filter?: ModelSubscriptionUserFilterInput | null; + profileOwner?: string | null; }; export type OnDeleteUserSubscription = { - onDeleteUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + onDeleteUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type OnUpdateSessionAttendedSubscriptionVariables = { - filter?: ModelSubscriptionSessionAttendedFilterInput | null, + filter?: ModelSubscriptionSessionAttendedFilterInput | null; }; export type OnUpdateSessionAttendedSubscription = { - onUpdateSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + onUpdateSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type OnUpdateTimerSubscriptionVariables = { - filter?: ModelSubscriptionTimerFilterInput | null, + filter?: ModelSubscriptionTimerFilterInput | null; }; export type OnUpdateTimerSubscription = { - onUpdateTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + onUpdateTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type OnUpdateUserSubscriptionVariables = { - filter?: ModelSubscriptionUserFilterInput | null, - profileOwner?: string | null, + filter?: ModelSubscriptionUserFilterInput | null; + profileOwner?: string | null; }; export type OnUpdateUserSubscription = { - onUpdateUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + onUpdateUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; diff --git a/amplify/auth/pre-sign-up/graphql/mutations.ts b/amplify/auth/pre-sign-up/graphql/mutations.ts index 8a5209e..aaf7677 100644 --- a/amplify/auth/pre-sign-up/graphql/mutations.ts +++ b/amplify/auth/pre-sign-up/graphql/mutations.ts @@ -1,14 +1,16 @@ /* tslint:disable */ + /* eslint-disable */ // this is an auto generated file. This will be overwritten - import * as APITypes from "./API"; + type GeneratedMutation = string & { __generatedMutationInput: InputType; __generatedMutationOutput: OutputType; }; -export const createSessionAttended = /* GraphQL */ `mutation CreateSessionAttended( +export const createSessionAttended = + /* GraphQL */ `mutation CreateSessionAttended( $condition: ModelSessionAttendedConditionInput $input: CreateSessionAttendedInput! ) { @@ -37,9 +39,9 @@ export const createSessionAttended = /* GraphQL */ `mutation CreateSessionAttend } } ` as GeneratedMutation< - APITypes.CreateSessionAttendedMutationVariables, - APITypes.CreateSessionAttendedMutation ->; + APITypes.CreateSessionAttendedMutationVariables, + APITypes.CreateSessionAttendedMutation + >; export const createTimer = /* GraphQL */ `mutation CreateTimer( $condition: ModelTimerConditionInput $input: CreateTimerInput! @@ -84,7 +86,8 @@ export const createUser = /* GraphQL */ `mutation CreateUser( APITypes.CreateUserMutationVariables, APITypes.CreateUserMutation >; -export const deleteSessionAttended = /* GraphQL */ `mutation DeleteSessionAttended( +export const deleteSessionAttended = + /* GraphQL */ `mutation DeleteSessionAttended( $condition: ModelSessionAttendedConditionInput $input: DeleteSessionAttendedInput! ) { @@ -113,9 +116,9 @@ export const deleteSessionAttended = /* GraphQL */ `mutation DeleteSessionAttend } } ` as GeneratedMutation< - APITypes.DeleteSessionAttendedMutationVariables, - APITypes.DeleteSessionAttendedMutation ->; + APITypes.DeleteSessionAttendedMutationVariables, + APITypes.DeleteSessionAttendedMutation + >; export const deleteTimer = /* GraphQL */ `mutation DeleteTimer( $condition: ModelTimerConditionInput $input: DeleteTimerInput! @@ -160,7 +163,8 @@ export const deleteUser = /* GraphQL */ `mutation DeleteUser( APITypes.DeleteUserMutationVariables, APITypes.DeleteUserMutation >; -export const updateSessionAttended = /* GraphQL */ `mutation UpdateSessionAttended( +export const updateSessionAttended = + /* GraphQL */ `mutation UpdateSessionAttended( $condition: ModelSessionAttendedConditionInput $input: UpdateSessionAttendedInput! ) { @@ -189,9 +193,9 @@ export const updateSessionAttended = /* GraphQL */ `mutation UpdateSessionAttend } } ` as GeneratedMutation< - APITypes.UpdateSessionAttendedMutationVariables, - APITypes.UpdateSessionAttendedMutation ->; + APITypes.UpdateSessionAttendedMutationVariables, + APITypes.UpdateSessionAttendedMutation + >; export const updateTimer = /* GraphQL */ `mutation UpdateTimer( $condition: ModelTimerConditionInput $input: UpdateTimerInput! diff --git a/amplify/auth/pre-sign-up/graphql/queries.ts b/amplify/auth/pre-sign-up/graphql/queries.ts index b79d32f..1482440 100644 --- a/amplify/auth/pre-sign-up/graphql/queries.ts +++ b/amplify/auth/pre-sign-up/graphql/queries.ts @@ -1,14 +1,16 @@ /* tslint:disable */ + /* eslint-disable */ // this is an auto generated file. This will be overwritten - import * as APITypes from "./API"; + type GeneratedQuery = string & { __generatedQueryInput: InputType; __generatedQueryOutput: OutputType; }; -export const getSessionAttended = /* GraphQL */ `query GetSessionAttended($id: ID!) { +export const getSessionAttended = + /* GraphQL */ `query GetSessionAttended($id: ID!) { getSessionAttended(id: $id) { createdAt date @@ -34,9 +36,9 @@ export const getSessionAttended = /* GraphQL */ `query GetSessionAttended($id: I } } ` as GeneratedQuery< - APITypes.GetSessionAttendedQueryVariables, - APITypes.GetSessionAttendedQuery ->; + APITypes.GetSessionAttendedQueryVariables, + APITypes.GetSessionAttendedQuery + >; export const getTimer = /* GraphQL */ `query GetTimer($id: ID!) { getTimer(id: $id) { createdAt diff --git a/amplify/auth/pre-sign-up/graphql/subscriptions.ts b/amplify/auth/pre-sign-up/graphql/subscriptions.ts index e003a89..2713735 100644 --- a/amplify/auth/pre-sign-up/graphql/subscriptions.ts +++ b/amplify/auth/pre-sign-up/graphql/subscriptions.ts @@ -1,14 +1,16 @@ /* tslint:disable */ + /* eslint-disable */ // this is an auto generated file. This will be overwritten - import * as APITypes from "./API"; + type GeneratedSubscription = string & { __generatedSubscriptionInput: InputType; __generatedSubscriptionOutput: OutputType; }; -export const onCreateSessionAttended = /* GraphQL */ `subscription OnCreateSessionAttended( +export const onCreateSessionAttended = + /* GraphQL */ `subscription OnCreateSessionAttended( $filter: ModelSubscriptionSessionAttendedFilterInput ) { onCreateSessionAttended(filter: $filter) { @@ -36,10 +38,11 @@ export const onCreateSessionAttended = /* GraphQL */ `subscription OnCreateSessi } } ` as GeneratedSubscription< - APITypes.OnCreateSessionAttendedSubscriptionVariables, - APITypes.OnCreateSessionAttendedSubscription ->; -export const onCreateTimer = /* GraphQL */ `subscription OnCreateTimer($filter: ModelSubscriptionTimerFilterInput) { + APITypes.OnCreateSessionAttendedSubscriptionVariables, + APITypes.OnCreateSessionAttendedSubscription + >; +export const onCreateTimer = + /* GraphQL */ `subscription OnCreateTimer($filter: ModelSubscriptionTimerFilterInput) { onCreateTimer(filter: $filter) { createdAt id @@ -50,9 +53,9 @@ export const onCreateTimer = /* GraphQL */ `subscription OnCreateTimer($filter: } } ` as GeneratedSubscription< - APITypes.OnCreateTimerSubscriptionVariables, - APITypes.OnCreateTimerSubscription ->; + APITypes.OnCreateTimerSubscriptionVariables, + APITypes.OnCreateTimerSubscription + >; export const onCreateUser = /* GraphQL */ `subscription OnCreateUser( $filter: ModelSubscriptionUserFilterInput $profileOwner: String @@ -80,7 +83,8 @@ export const onCreateUser = /* GraphQL */ `subscription OnCreateUser( APITypes.OnCreateUserSubscriptionVariables, APITypes.OnCreateUserSubscription >; -export const onDeleteSessionAttended = /* GraphQL */ `subscription OnDeleteSessionAttended( +export const onDeleteSessionAttended = + /* GraphQL */ `subscription OnDeleteSessionAttended( $filter: ModelSubscriptionSessionAttendedFilterInput ) { onDeleteSessionAttended(filter: $filter) { @@ -108,10 +112,11 @@ export const onDeleteSessionAttended = /* GraphQL */ `subscription OnDeleteSessi } } ` as GeneratedSubscription< - APITypes.OnDeleteSessionAttendedSubscriptionVariables, - APITypes.OnDeleteSessionAttendedSubscription ->; -export const onDeleteTimer = /* GraphQL */ `subscription OnDeleteTimer($filter: ModelSubscriptionTimerFilterInput) { + APITypes.OnDeleteSessionAttendedSubscriptionVariables, + APITypes.OnDeleteSessionAttendedSubscription + >; +export const onDeleteTimer = + /* GraphQL */ `subscription OnDeleteTimer($filter: ModelSubscriptionTimerFilterInput) { onDeleteTimer(filter: $filter) { createdAt id @@ -122,9 +127,9 @@ export const onDeleteTimer = /* GraphQL */ `subscription OnDeleteTimer($filter: } } ` as GeneratedSubscription< - APITypes.OnDeleteTimerSubscriptionVariables, - APITypes.OnDeleteTimerSubscription ->; + APITypes.OnDeleteTimerSubscriptionVariables, + APITypes.OnDeleteTimerSubscription + >; export const onDeleteUser = /* GraphQL */ `subscription OnDeleteUser( $filter: ModelSubscriptionUserFilterInput $profileOwner: String @@ -152,7 +157,8 @@ export const onDeleteUser = /* GraphQL */ `subscription OnDeleteUser( APITypes.OnDeleteUserSubscriptionVariables, APITypes.OnDeleteUserSubscription >; -export const onUpdateSessionAttended = /* GraphQL */ `subscription OnUpdateSessionAttended( +export const onUpdateSessionAttended = + /* GraphQL */ `subscription OnUpdateSessionAttended( $filter: ModelSubscriptionSessionAttendedFilterInput ) { onUpdateSessionAttended(filter: $filter) { @@ -180,10 +186,11 @@ export const onUpdateSessionAttended = /* GraphQL */ `subscription OnUpdateSessi } } ` as GeneratedSubscription< - APITypes.OnUpdateSessionAttendedSubscriptionVariables, - APITypes.OnUpdateSessionAttendedSubscription ->; -export const onUpdateTimer = /* GraphQL */ `subscription OnUpdateTimer($filter: ModelSubscriptionTimerFilterInput) { + APITypes.OnUpdateSessionAttendedSubscriptionVariables, + APITypes.OnUpdateSessionAttendedSubscription + >; +export const onUpdateTimer = + /* GraphQL */ `subscription OnUpdateTimer($filter: ModelSubscriptionTimerFilterInput) { onUpdateTimer(filter: $filter) { createdAt id @@ -194,9 +201,9 @@ export const onUpdateTimer = /* GraphQL */ `subscription OnUpdateTimer($filter: } } ` as GeneratedSubscription< - APITypes.OnUpdateTimerSubscriptionVariables, - APITypes.OnUpdateTimerSubscription ->; + APITypes.OnUpdateTimerSubscriptionVariables, + APITypes.OnUpdateTimerSubscription + >; export const onUpdateUser = /* GraphQL */ `subscription OnUpdateUser( $filter: ModelSubscriptionUserFilterInput $profileOwner: String diff --git a/amplify/functions/dynamoDB-function/graphql/API.ts b/amplify/functions/dynamoDB-function/graphql/API.ts index 90bd582..d19b78b 100644 --- a/amplify/functions/dynamoDB-function/graphql/API.ts +++ b/amplify/functions/dynamoDB-function/graphql/API.ts @@ -3,73 +3,73 @@ // This file was automatically generated and should not be edited. export type SessionAttended = { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: User | null, + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: User | null; }; export type User = { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: ModelSessionAttendedConnection | null, - totalEarnings?: number | null, - updatedAt: string, + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: ModelSessionAttendedConnection | null; + totalEarnings?: number | null; + updatedAt: string; }; export type ModelSessionAttendedConnection = { - __typename: "ModelSessionAttendedConnection", - items: Array, - nextToken?: string | null, + __typename: "ModelSessionAttendedConnection"; + items: Array; + nextToken?: string | null; }; export type Timer = { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; }; export type ModelSessionAttendedFilterInput = { - and?: Array< ModelSessionAttendedFilterInput | null > | null, - createdAt?: ModelStringInput | null, - date?: ModelStringInput | null, - earningsThatSession?: ModelFloatInput | null, - id?: ModelIDInput | null, - not?: ModelSessionAttendedFilterInput | null, - or?: Array< ModelSessionAttendedFilterInput | null > | null, - sessionAttendedId?: ModelIDInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + date?: ModelStringInput | null; + earningsThatSession?: ModelFloatInput | null; + id?: ModelIDInput | null; + not?: ModelSessionAttendedFilterInput | null; + or?: Array | null; + sessionAttendedId?: ModelIDInput | null; + updatedAt?: ModelStringInput | null; }; export type ModelStringInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - size?: ModelSizeInput | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + size?: ModelSizeInput | null; }; export enum ModelAttributeTypes { @@ -85,43 +85,42 @@ export enum ModelAttributeTypes { stringSet = "stringSet", } - export type ModelSizeInput = { - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - le?: number | null, - lt?: number | null, - ne?: number | null, + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + le?: number | null; + lt?: number | null; + ne?: number | null; }; export type ModelFloatInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - le?: number | null, - lt?: number | null, - ne?: number | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + le?: number | null; + lt?: number | null; + ne?: number | null; }; export type ModelIDInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - size?: ModelSizeInput | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + size?: ModelSizeInput | null; }; export enum ModelSortDirection { @@ -129,835 +128,834 @@ export enum ModelSortDirection { DESC = "DESC", } - export type ModelTimerFilterInput = { - and?: Array< ModelTimerFilterInput | null > | null, - createdAt?: ModelStringInput | null, - id?: ModelIDInput | null, - nextSessionDate?: ModelStringInput | null, - nextSessionTime?: ModelStringInput | null, - not?: ModelTimerFilterInput | null, - or?: Array< ModelTimerFilterInput | null > | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + id?: ModelIDInput | null; + nextSessionDate?: ModelStringInput | null; + nextSessionTime?: ModelStringInput | null; + not?: ModelTimerFilterInput | null; + or?: Array | null; + updatedAt?: ModelStringInput | null; }; export type ModelTimerConnection = { - __typename: "ModelTimerConnection", - items: Array, - nextToken?: string | null, + __typename: "ModelTimerConnection"; + items: Array; + nextToken?: string | null; }; export type ModelUserFilterInput = { - and?: Array< ModelUserFilterInput | null > | null, - completedRegistration?: ModelBooleanInput | null, - createdAt?: ModelStringInput | null, - email?: ModelStringInput | null, - firstName?: ModelStringInput | null, - id?: ModelIDInput | null, - lastName?: ModelStringInput | null, - not?: ModelUserFilterInput | null, - numberSessionsAttended?: ModelIntInput | null, - or?: Array< ModelUserFilterInput | null > | null, - profileOwner?: ModelStringInput | null, - role?: ModelStringInput | null, - totalEarnings?: ModelFloatInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + completedRegistration?: ModelBooleanInput | null; + createdAt?: ModelStringInput | null; + email?: ModelStringInput | null; + firstName?: ModelStringInput | null; + id?: ModelIDInput | null; + lastName?: ModelStringInput | null; + not?: ModelUserFilterInput | null; + numberSessionsAttended?: ModelIntInput | null; + or?: Array | null; + profileOwner?: ModelStringInput | null; + role?: ModelStringInput | null; + totalEarnings?: ModelFloatInput | null; + updatedAt?: ModelStringInput | null; }; export type ModelBooleanInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - eq?: boolean | null, - ne?: boolean | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + eq?: boolean | null; + ne?: boolean | null; }; export type ModelIntInput = { - attributeExists?: boolean | null, - attributeType?: ModelAttributeTypes | null, - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - le?: number | null, - lt?: number | null, - ne?: number | null, + attributeExists?: boolean | null; + attributeType?: ModelAttributeTypes | null; + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + le?: number | null; + lt?: number | null; + ne?: number | null; }; export type ModelUserConnection = { - __typename: "ModelUserConnection", - items: Array, - nextToken?: string | null, + __typename: "ModelUserConnection"; + items: Array; + nextToken?: string | null; }; export type ModelSessionAttendedConditionInput = { - and?: Array< ModelSessionAttendedConditionInput | null > | null, - createdAt?: ModelStringInput | null, - date?: ModelStringInput | null, - earningsThatSession?: ModelFloatInput | null, - not?: ModelSessionAttendedConditionInput | null, - or?: Array< ModelSessionAttendedConditionInput | null > | null, - sessionAttendedId?: ModelIDInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + date?: ModelStringInput | null; + earningsThatSession?: ModelFloatInput | null; + not?: ModelSessionAttendedConditionInput | null; + or?: Array | null; + sessionAttendedId?: ModelIDInput | null; + updatedAt?: ModelStringInput | null; }; export type CreateSessionAttendedInput = { - date: string, - earningsThatSession?: number | null, - id?: string | null, - sessionAttendedId: string, + date: string; + earningsThatSession?: number | null; + id?: string | null; + sessionAttendedId: string; }; export type ModelTimerConditionInput = { - and?: Array< ModelTimerConditionInput | null > | null, - createdAt?: ModelStringInput | null, - nextSessionDate?: ModelStringInput | null, - nextSessionTime?: ModelStringInput | null, - not?: ModelTimerConditionInput | null, - or?: Array< ModelTimerConditionInput | null > | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + createdAt?: ModelStringInput | null; + nextSessionDate?: ModelStringInput | null; + nextSessionTime?: ModelStringInput | null; + not?: ModelTimerConditionInput | null; + or?: Array | null; + updatedAt?: ModelStringInput | null; }; export type CreateTimerInput = { - id?: string | null, - nextSessionDate?: string | null, - nextSessionTime?: string | null, + id?: string | null; + nextSessionDate?: string | null; + nextSessionTime?: string | null; }; export type ModelUserConditionInput = { - and?: Array< ModelUserConditionInput | null > | null, - completedRegistration?: ModelBooleanInput | null, - createdAt?: ModelStringInput | null, - email?: ModelStringInput | null, - firstName?: ModelStringInput | null, - lastName?: ModelStringInput | null, - not?: ModelUserConditionInput | null, - numberSessionsAttended?: ModelIntInput | null, - or?: Array< ModelUserConditionInput | null > | null, - profileOwner?: ModelStringInput | null, - role?: ModelStringInput | null, - totalEarnings?: ModelFloatInput | null, - updatedAt?: ModelStringInput | null, + and?: Array | null; + completedRegistration?: ModelBooleanInput | null; + createdAt?: ModelStringInput | null; + email?: ModelStringInput | null; + firstName?: ModelStringInput | null; + lastName?: ModelStringInput | null; + not?: ModelUserConditionInput | null; + numberSessionsAttended?: ModelIntInput | null; + or?: Array | null; + profileOwner?: ModelStringInput | null; + role?: ModelStringInput | null; + totalEarnings?: ModelFloatInput | null; + updatedAt?: ModelStringInput | null; }; export type CreateUserInput = { - completedRegistration?: boolean | null, - email?: string | null, - firstName?: string | null, - id?: string | null, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, + completedRegistration?: boolean | null; + email?: string | null; + firstName?: string | null; + id?: string | null; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; }; export type DeleteSessionAttendedInput = { - id: string, + id: string; }; export type DeleteTimerInput = { - id: string, + id: string; }; export type DeleteUserInput = { - id: string, + id: string; }; export type UpdateSessionAttendedInput = { - date?: string | null, - earningsThatSession?: number | null, - id: string, - sessionAttendedId?: string | null, + date?: string | null; + earningsThatSession?: number | null; + id: string; + sessionAttendedId?: string | null; }; export type UpdateTimerInput = { - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; }; export type UpdateUserInput = { - completedRegistration?: boolean | null, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, + completedRegistration?: boolean | null; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; }; export type ModelSubscriptionSessionAttendedFilterInput = { - and?: Array< ModelSubscriptionSessionAttendedFilterInput | null > | null, - createdAt?: ModelSubscriptionStringInput | null, - date?: ModelSubscriptionStringInput | null, - earningsThatSession?: ModelSubscriptionFloatInput | null, - id?: ModelSubscriptionIDInput | null, - or?: Array< ModelSubscriptionSessionAttendedFilterInput | null > | null, - sessionAttendedId?: ModelSubscriptionIDInput | null, - updatedAt?: ModelSubscriptionStringInput | null, + and?: Array | null; + createdAt?: ModelSubscriptionStringInput | null; + date?: ModelSubscriptionStringInput | null; + earningsThatSession?: ModelSubscriptionFloatInput | null; + id?: ModelSubscriptionIDInput | null; + or?: Array | null; + sessionAttendedId?: ModelSubscriptionIDInput | null; + updatedAt?: ModelSubscriptionStringInput | null; }; export type ModelSubscriptionStringInput = { - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - in?: Array< string | null > | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - notIn?: Array< string | null > | null, + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + in?: Array | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + notIn?: Array | null; }; export type ModelSubscriptionFloatInput = { - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - in?: Array< number | null > | null, - le?: number | null, - lt?: number | null, - ne?: number | null, - notIn?: Array< number | null > | null, + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + in?: Array | null; + le?: number | null; + lt?: number | null; + ne?: number | null; + notIn?: Array | null; }; export type ModelSubscriptionIDInput = { - beginsWith?: string | null, - between?: Array< string | null > | null, - contains?: string | null, - eq?: string | null, - ge?: string | null, - gt?: string | null, - in?: Array< string | null > | null, - le?: string | null, - lt?: string | null, - ne?: string | null, - notContains?: string | null, - notIn?: Array< string | null > | null, + beginsWith?: string | null; + between?: Array | null; + contains?: string | null; + eq?: string | null; + ge?: string | null; + gt?: string | null; + in?: Array | null; + le?: string | null; + lt?: string | null; + ne?: string | null; + notContains?: string | null; + notIn?: Array | null; }; export type ModelSubscriptionTimerFilterInput = { - and?: Array< ModelSubscriptionTimerFilterInput | null > | null, - createdAt?: ModelSubscriptionStringInput | null, - id?: ModelSubscriptionIDInput | null, - nextSessionDate?: ModelSubscriptionStringInput | null, - nextSessionTime?: ModelSubscriptionStringInput | null, - or?: Array< ModelSubscriptionTimerFilterInput | null > | null, - updatedAt?: ModelSubscriptionStringInput | null, + and?: Array | null; + createdAt?: ModelSubscriptionStringInput | null; + id?: ModelSubscriptionIDInput | null; + nextSessionDate?: ModelSubscriptionStringInput | null; + nextSessionTime?: ModelSubscriptionStringInput | null; + or?: Array | null; + updatedAt?: ModelSubscriptionStringInput | null; }; export type ModelSubscriptionUserFilterInput = { - and?: Array< ModelSubscriptionUserFilterInput | null > | null, - completedRegistration?: ModelSubscriptionBooleanInput | null, - createdAt?: ModelSubscriptionStringInput | null, - email?: ModelSubscriptionStringInput | null, - firstName?: ModelSubscriptionStringInput | null, - id?: ModelSubscriptionIDInput | null, - lastName?: ModelSubscriptionStringInput | null, - numberSessionsAttended?: ModelSubscriptionIntInput | null, - or?: Array< ModelSubscriptionUserFilterInput | null > | null, - profileOwner?: ModelStringInput | null, - role?: ModelSubscriptionStringInput | null, - totalEarnings?: ModelSubscriptionFloatInput | null, - updatedAt?: ModelSubscriptionStringInput | null, + and?: Array | null; + completedRegistration?: ModelSubscriptionBooleanInput | null; + createdAt?: ModelSubscriptionStringInput | null; + email?: ModelSubscriptionStringInput | null; + firstName?: ModelSubscriptionStringInput | null; + id?: ModelSubscriptionIDInput | null; + lastName?: ModelSubscriptionStringInput | null; + numberSessionsAttended?: ModelSubscriptionIntInput | null; + or?: Array | null; + profileOwner?: ModelStringInput | null; + role?: ModelSubscriptionStringInput | null; + totalEarnings?: ModelSubscriptionFloatInput | null; + updatedAt?: ModelSubscriptionStringInput | null; }; export type ModelSubscriptionBooleanInput = { - eq?: boolean | null, - ne?: boolean | null, + eq?: boolean | null; + ne?: boolean | null; }; export type ModelSubscriptionIntInput = { - between?: Array< number | null > | null, - eq?: number | null, - ge?: number | null, - gt?: number | null, - in?: Array< number | null > | null, - le?: number | null, - lt?: number | null, - ne?: number | null, - notIn?: Array< number | null > | null, + between?: Array | null; + eq?: number | null; + ge?: number | null; + gt?: number | null; + in?: Array | null; + le?: number | null; + lt?: number | null; + ne?: number | null; + notIn?: Array | null; }; export type GetSessionAttendedQueryVariables = { - id: string, + id: string; }; export type GetSessionAttendedQuery = { - getSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + getSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type GetTimerQueryVariables = { - id: string, + id: string; }; export type GetTimerQuery = { - getTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + getTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type GetUserQueryVariables = { - id: string, + id: string; }; export type GetUserQuery = { - getUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + getUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type ListSessionAttendedsQueryVariables = { - filter?: ModelSessionAttendedFilterInput | null, - id?: string | null, - limit?: number | null, - nextToken?: string | null, - sortDirection?: ModelSortDirection | null, + filter?: ModelSessionAttendedFilterInput | null; + id?: string | null; + limit?: number | null; + nextToken?: string | null; + sortDirection?: ModelSortDirection | null; }; export type ListSessionAttendedsQuery = { - listSessionAttendeds?: { - __typename: "ModelSessionAttendedConnection", - items: Array< { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - } | null >, - nextToken?: string | null, - } | null, + listSessionAttendeds?: { + __typename: "ModelSessionAttendedConnection"; + items: Array<{ + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + } | null>; + nextToken?: string | null; + } | null; }; export type ListTimersQueryVariables = { - filter?: ModelTimerFilterInput | null, - id?: string | null, - limit?: number | null, - nextToken?: string | null, - sortDirection?: ModelSortDirection | null, + filter?: ModelTimerFilterInput | null; + id?: string | null; + limit?: number | null; + nextToken?: string | null; + sortDirection?: ModelSortDirection | null; }; export type ListTimersQuery = { - listTimers?: { - __typename: "ModelTimerConnection", - items: Array< { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null >, - nextToken?: string | null, - } | null, + listTimers?: { + __typename: "ModelTimerConnection"; + items: Array<{ + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null>; + nextToken?: string | null; + } | null; }; export type ListUsersQueryVariables = { - filter?: ModelUserFilterInput | null, - id?: string | null, - limit?: number | null, - nextToken?: string | null, - sortDirection?: ModelSortDirection | null, + filter?: ModelUserFilterInput | null; + id?: string | null; + limit?: number | null; + nextToken?: string | null; + sortDirection?: ModelSortDirection | null; }; export type ListUsersQuery = { - listUsers?: { - __typename: "ModelUserConnection", - items: Array< { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null >, - nextToken?: string | null, - } | null, + listUsers?: { + __typename: "ModelUserConnection"; + items: Array<{ + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null>; + nextToken?: string | null; + } | null; }; export type CreateSessionAttendedMutationVariables = { - condition?: ModelSessionAttendedConditionInput | null, - input: CreateSessionAttendedInput, + condition?: ModelSessionAttendedConditionInput | null; + input: CreateSessionAttendedInput; }; export type CreateSessionAttendedMutation = { - createSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + createSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type CreateTimerMutationVariables = { - condition?: ModelTimerConditionInput | null, - input: CreateTimerInput, + condition?: ModelTimerConditionInput | null; + input: CreateTimerInput; }; export type CreateTimerMutation = { - createTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + createTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type CreateUserMutationVariables = { - condition?: ModelUserConditionInput | null, - input: CreateUserInput, + condition?: ModelUserConditionInput | null; + input: CreateUserInput; }; export type CreateUserMutation = { - createUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + createUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type DeleteSessionAttendedMutationVariables = { - condition?: ModelSessionAttendedConditionInput | null, - input: DeleteSessionAttendedInput, + condition?: ModelSessionAttendedConditionInput | null; + input: DeleteSessionAttendedInput; }; export type DeleteSessionAttendedMutation = { - deleteSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + deleteSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type DeleteTimerMutationVariables = { - condition?: ModelTimerConditionInput | null, - input: DeleteTimerInput, + condition?: ModelTimerConditionInput | null; + input: DeleteTimerInput; }; export type DeleteTimerMutation = { - deleteTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + deleteTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type DeleteUserMutationVariables = { - condition?: ModelUserConditionInput | null, - input: DeleteUserInput, + condition?: ModelUserConditionInput | null; + input: DeleteUserInput; }; export type DeleteUserMutation = { - deleteUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + deleteUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type UpdateSessionAttendedMutationVariables = { - condition?: ModelSessionAttendedConditionInput | null, - input: UpdateSessionAttendedInput, + condition?: ModelSessionAttendedConditionInput | null; + input: UpdateSessionAttendedInput; }; export type UpdateSessionAttendedMutation = { - updateSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + updateSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type UpdateTimerMutationVariables = { - condition?: ModelTimerConditionInput | null, - input: UpdateTimerInput, + condition?: ModelTimerConditionInput | null; + input: UpdateTimerInput; }; export type UpdateTimerMutation = { - updateTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + updateTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type UpdateUserMutationVariables = { - condition?: ModelUserConditionInput | null, - input: UpdateUserInput, + condition?: ModelUserConditionInput | null; + input: UpdateUserInput; }; export type UpdateUserMutation = { - updateUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + updateUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type OnCreateSessionAttendedSubscriptionVariables = { - filter?: ModelSubscriptionSessionAttendedFilterInput | null, + filter?: ModelSubscriptionSessionAttendedFilterInput | null; }; export type OnCreateSessionAttendedSubscription = { - onCreateSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + onCreateSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type OnCreateTimerSubscriptionVariables = { - filter?: ModelSubscriptionTimerFilterInput | null, + filter?: ModelSubscriptionTimerFilterInput | null; }; export type OnCreateTimerSubscription = { - onCreateTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + onCreateTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type OnCreateUserSubscriptionVariables = { - filter?: ModelSubscriptionUserFilterInput | null, - profileOwner?: string | null, + filter?: ModelSubscriptionUserFilterInput | null; + profileOwner?: string | null; }; export type OnCreateUserSubscription = { - onCreateUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + onCreateUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type OnDeleteSessionAttendedSubscriptionVariables = { - filter?: ModelSubscriptionSessionAttendedFilterInput | null, + filter?: ModelSubscriptionSessionAttendedFilterInput | null; }; export type OnDeleteSessionAttendedSubscription = { - onDeleteSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + onDeleteSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type OnDeleteTimerSubscriptionVariables = { - filter?: ModelSubscriptionTimerFilterInput | null, + filter?: ModelSubscriptionTimerFilterInput | null; }; export type OnDeleteTimerSubscription = { - onDeleteTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + onDeleteTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type OnDeleteUserSubscriptionVariables = { - filter?: ModelSubscriptionUserFilterInput | null, - profileOwner?: string | null, + filter?: ModelSubscriptionUserFilterInput | null; + profileOwner?: string | null; }; export type OnDeleteUserSubscription = { - onDeleteUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + onDeleteUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; export type OnUpdateSessionAttendedSubscriptionVariables = { - filter?: ModelSubscriptionSessionAttendedFilterInput | null, + filter?: ModelSubscriptionSessionAttendedFilterInput | null; }; export type OnUpdateSessionAttendedSubscription = { - onUpdateSessionAttended?: { - __typename: "SessionAttended", - createdAt: string, - date: string, - earningsThatSession?: number | null, - id: string, - sessionAttendedId: string, - updatedAt: string, - user?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, - } | null, + onUpdateSessionAttended?: { + __typename: "SessionAttended"; + createdAt: string; + date: string; + earningsThatSession?: number | null; + id: string; + sessionAttendedId: string; + updatedAt: string; + user?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; + } | null; }; export type OnUpdateTimerSubscriptionVariables = { - filter?: ModelSubscriptionTimerFilterInput | null, + filter?: ModelSubscriptionTimerFilterInput | null; }; export type OnUpdateTimerSubscription = { - onUpdateTimer?: { - __typename: "Timer", - createdAt: string, - id: string, - nextSessionDate?: string | null, - nextSessionTime?: string | null, - updatedAt: string, - } | null, + onUpdateTimer?: { + __typename: "Timer"; + createdAt: string; + id: string; + nextSessionDate?: string | null; + nextSessionTime?: string | null; + updatedAt: string; + } | null; }; export type OnUpdateUserSubscriptionVariables = { - filter?: ModelSubscriptionUserFilterInput | null, - profileOwner?: string | null, + filter?: ModelSubscriptionUserFilterInput | null; + profileOwner?: string | null; }; export type OnUpdateUserSubscription = { - onUpdateUser?: { - __typename: "User", - completedRegistration?: boolean | null, - createdAt: string, - email?: string | null, - firstName?: string | null, - id: string, - lastName?: string | null, - numberSessionsAttended?: number | null, - profileOwner?: string | null, - role?: string | null, - sessionsAttended?: { - __typename: "ModelSessionAttendedConnection", - nextToken?: string | null, - } | null, - totalEarnings?: number | null, - updatedAt: string, - } | null, + onUpdateUser?: { + __typename: "User"; + completedRegistration?: boolean | null; + createdAt: string; + email?: string | null; + firstName?: string | null; + id: string; + lastName?: string | null; + numberSessionsAttended?: number | null; + profileOwner?: string | null; + role?: string | null; + sessionsAttended?: { + __typename: "ModelSessionAttendedConnection"; + nextToken?: string | null; + } | null; + totalEarnings?: number | null; + updatedAt: string; + } | null; }; diff --git a/amplify/functions/dynamoDB-function/graphql/mutations.ts b/amplify/functions/dynamoDB-function/graphql/mutations.ts index 8a5209e..aaf7677 100644 --- a/amplify/functions/dynamoDB-function/graphql/mutations.ts +++ b/amplify/functions/dynamoDB-function/graphql/mutations.ts @@ -1,14 +1,16 @@ /* tslint:disable */ + /* eslint-disable */ // this is an auto generated file. This will be overwritten - import * as APITypes from "./API"; + type GeneratedMutation = string & { __generatedMutationInput: InputType; __generatedMutationOutput: OutputType; }; -export const createSessionAttended = /* GraphQL */ `mutation CreateSessionAttended( +export const createSessionAttended = + /* GraphQL */ `mutation CreateSessionAttended( $condition: ModelSessionAttendedConditionInput $input: CreateSessionAttendedInput! ) { @@ -37,9 +39,9 @@ export const createSessionAttended = /* GraphQL */ `mutation CreateSessionAttend } } ` as GeneratedMutation< - APITypes.CreateSessionAttendedMutationVariables, - APITypes.CreateSessionAttendedMutation ->; + APITypes.CreateSessionAttendedMutationVariables, + APITypes.CreateSessionAttendedMutation + >; export const createTimer = /* GraphQL */ `mutation CreateTimer( $condition: ModelTimerConditionInput $input: CreateTimerInput! @@ -84,7 +86,8 @@ export const createUser = /* GraphQL */ `mutation CreateUser( APITypes.CreateUserMutationVariables, APITypes.CreateUserMutation >; -export const deleteSessionAttended = /* GraphQL */ `mutation DeleteSessionAttended( +export const deleteSessionAttended = + /* GraphQL */ `mutation DeleteSessionAttended( $condition: ModelSessionAttendedConditionInput $input: DeleteSessionAttendedInput! ) { @@ -113,9 +116,9 @@ export const deleteSessionAttended = /* GraphQL */ `mutation DeleteSessionAttend } } ` as GeneratedMutation< - APITypes.DeleteSessionAttendedMutationVariables, - APITypes.DeleteSessionAttendedMutation ->; + APITypes.DeleteSessionAttendedMutationVariables, + APITypes.DeleteSessionAttendedMutation + >; export const deleteTimer = /* GraphQL */ `mutation DeleteTimer( $condition: ModelTimerConditionInput $input: DeleteTimerInput! @@ -160,7 +163,8 @@ export const deleteUser = /* GraphQL */ `mutation DeleteUser( APITypes.DeleteUserMutationVariables, APITypes.DeleteUserMutation >; -export const updateSessionAttended = /* GraphQL */ `mutation UpdateSessionAttended( +export const updateSessionAttended = + /* GraphQL */ `mutation UpdateSessionAttended( $condition: ModelSessionAttendedConditionInput $input: UpdateSessionAttendedInput! ) { @@ -189,9 +193,9 @@ export const updateSessionAttended = /* GraphQL */ `mutation UpdateSessionAttend } } ` as GeneratedMutation< - APITypes.UpdateSessionAttendedMutationVariables, - APITypes.UpdateSessionAttendedMutation ->; + APITypes.UpdateSessionAttendedMutationVariables, + APITypes.UpdateSessionAttendedMutation + >; export const updateTimer = /* GraphQL */ `mutation UpdateTimer( $condition: ModelTimerConditionInput $input: UpdateTimerInput! diff --git a/amplify/functions/dynamoDB-function/graphql/queries.ts b/amplify/functions/dynamoDB-function/graphql/queries.ts index b79d32f..1482440 100644 --- a/amplify/functions/dynamoDB-function/graphql/queries.ts +++ b/amplify/functions/dynamoDB-function/graphql/queries.ts @@ -1,14 +1,16 @@ /* tslint:disable */ + /* eslint-disable */ // this is an auto generated file. This will be overwritten - import * as APITypes from "./API"; + type GeneratedQuery = string & { __generatedQueryInput: InputType; __generatedQueryOutput: OutputType; }; -export const getSessionAttended = /* GraphQL */ `query GetSessionAttended($id: ID!) { +export const getSessionAttended = + /* GraphQL */ `query GetSessionAttended($id: ID!) { getSessionAttended(id: $id) { createdAt date @@ -34,9 +36,9 @@ export const getSessionAttended = /* GraphQL */ `query GetSessionAttended($id: I } } ` as GeneratedQuery< - APITypes.GetSessionAttendedQueryVariables, - APITypes.GetSessionAttendedQuery ->; + APITypes.GetSessionAttendedQueryVariables, + APITypes.GetSessionAttendedQuery + >; export const getTimer = /* GraphQL */ `query GetTimer($id: ID!) { getTimer(id: $id) { createdAt diff --git a/amplify/functions/dynamoDB-function/graphql/subscriptions.ts b/amplify/functions/dynamoDB-function/graphql/subscriptions.ts index e003a89..2713735 100644 --- a/amplify/functions/dynamoDB-function/graphql/subscriptions.ts +++ b/amplify/functions/dynamoDB-function/graphql/subscriptions.ts @@ -1,14 +1,16 @@ /* tslint:disable */ + /* eslint-disable */ // this is an auto generated file. This will be overwritten - import * as APITypes from "./API"; + type GeneratedSubscription = string & { __generatedSubscriptionInput: InputType; __generatedSubscriptionOutput: OutputType; }; -export const onCreateSessionAttended = /* GraphQL */ `subscription OnCreateSessionAttended( +export const onCreateSessionAttended = + /* GraphQL */ `subscription OnCreateSessionAttended( $filter: ModelSubscriptionSessionAttendedFilterInput ) { onCreateSessionAttended(filter: $filter) { @@ -36,10 +38,11 @@ export const onCreateSessionAttended = /* GraphQL */ `subscription OnCreateSessi } } ` as GeneratedSubscription< - APITypes.OnCreateSessionAttendedSubscriptionVariables, - APITypes.OnCreateSessionAttendedSubscription ->; -export const onCreateTimer = /* GraphQL */ `subscription OnCreateTimer($filter: ModelSubscriptionTimerFilterInput) { + APITypes.OnCreateSessionAttendedSubscriptionVariables, + APITypes.OnCreateSessionAttendedSubscription + >; +export const onCreateTimer = + /* GraphQL */ `subscription OnCreateTimer($filter: ModelSubscriptionTimerFilterInput) { onCreateTimer(filter: $filter) { createdAt id @@ -50,9 +53,9 @@ export const onCreateTimer = /* GraphQL */ `subscription OnCreateTimer($filter: } } ` as GeneratedSubscription< - APITypes.OnCreateTimerSubscriptionVariables, - APITypes.OnCreateTimerSubscription ->; + APITypes.OnCreateTimerSubscriptionVariables, + APITypes.OnCreateTimerSubscription + >; export const onCreateUser = /* GraphQL */ `subscription OnCreateUser( $filter: ModelSubscriptionUserFilterInput $profileOwner: String @@ -80,7 +83,8 @@ export const onCreateUser = /* GraphQL */ `subscription OnCreateUser( APITypes.OnCreateUserSubscriptionVariables, APITypes.OnCreateUserSubscription >; -export const onDeleteSessionAttended = /* GraphQL */ `subscription OnDeleteSessionAttended( +export const onDeleteSessionAttended = + /* GraphQL */ `subscription OnDeleteSessionAttended( $filter: ModelSubscriptionSessionAttendedFilterInput ) { onDeleteSessionAttended(filter: $filter) { @@ -108,10 +112,11 @@ export const onDeleteSessionAttended = /* GraphQL */ `subscription OnDeleteSessi } } ` as GeneratedSubscription< - APITypes.OnDeleteSessionAttendedSubscriptionVariables, - APITypes.OnDeleteSessionAttendedSubscription ->; -export const onDeleteTimer = /* GraphQL */ `subscription OnDeleteTimer($filter: ModelSubscriptionTimerFilterInput) { + APITypes.OnDeleteSessionAttendedSubscriptionVariables, + APITypes.OnDeleteSessionAttendedSubscription + >; +export const onDeleteTimer = + /* GraphQL */ `subscription OnDeleteTimer($filter: ModelSubscriptionTimerFilterInput) { onDeleteTimer(filter: $filter) { createdAt id @@ -122,9 +127,9 @@ export const onDeleteTimer = /* GraphQL */ `subscription OnDeleteTimer($filter: } } ` as GeneratedSubscription< - APITypes.OnDeleteTimerSubscriptionVariables, - APITypes.OnDeleteTimerSubscription ->; + APITypes.OnDeleteTimerSubscriptionVariables, + APITypes.OnDeleteTimerSubscription + >; export const onDeleteUser = /* GraphQL */ `subscription OnDeleteUser( $filter: ModelSubscriptionUserFilterInput $profileOwner: String @@ -152,7 +157,8 @@ export const onDeleteUser = /* GraphQL */ `subscription OnDeleteUser( APITypes.OnDeleteUserSubscriptionVariables, APITypes.OnDeleteUserSubscription >; -export const onUpdateSessionAttended = /* GraphQL */ `subscription OnUpdateSessionAttended( +export const onUpdateSessionAttended = + /* GraphQL */ `subscription OnUpdateSessionAttended( $filter: ModelSubscriptionSessionAttendedFilterInput ) { onUpdateSessionAttended(filter: $filter) { @@ -180,10 +186,11 @@ export const onUpdateSessionAttended = /* GraphQL */ `subscription OnUpdateSessi } } ` as GeneratedSubscription< - APITypes.OnUpdateSessionAttendedSubscriptionVariables, - APITypes.OnUpdateSessionAttendedSubscription ->; -export const onUpdateTimer = /* GraphQL */ `subscription OnUpdateTimer($filter: ModelSubscriptionTimerFilterInput) { + APITypes.OnUpdateSessionAttendedSubscriptionVariables, + APITypes.OnUpdateSessionAttendedSubscription + >; +export const onUpdateTimer = + /* GraphQL */ `subscription OnUpdateTimer($filter: ModelSubscriptionTimerFilterInput) { onUpdateTimer(filter: $filter) { createdAt id @@ -194,9 +201,9 @@ export const onUpdateTimer = /* GraphQL */ `subscription OnUpdateTimer($filter: } } ` as GeneratedSubscription< - APITypes.OnUpdateTimerSubscriptionVariables, - APITypes.OnUpdateTimerSubscription ->; + APITypes.OnUpdateTimerSubscriptionVariables, + APITypes.OnUpdateTimerSubscription + >; export const onUpdateUser = /* GraphQL */ `subscription OnUpdateUser( $filter: ModelSubscriptionUserFilterInput $profileOwner: String