Skip to content

Commit

Permalink
can edit user now
Browse files Browse the repository at this point in the history
  • Loading branch information
burtonjong committed Aug 5, 2024
1 parent f7624ee commit d121673
Show file tree
Hide file tree
Showing 15 changed files with 2,333 additions and 1,133 deletions.
1,302 changes: 771 additions & 531 deletions amplify/auth/pre-sign-up/graphql/API.ts

Large diffs are not rendered by default.

87 changes: 70 additions & 17 deletions amplify/auth/pre-sign-up/graphql/mutations.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/* tslint:disable */

/* eslint-disable */
// this is an auto generated file. This will be overwritten
import * as APITypes from "./API";

import * as APITypes from "./API";
type GeneratedMutation<InputType, OutputType> = string & {
__generatedMutationInput: InputType;
__generatedMutationOutput: OutputType;
};

export const createSessionAttended =
/* GraphQL */ `mutation CreateSessionAttended(
export const createSessionAttended = /* GraphQL */ `mutation CreateSessionAttended(
$condition: ModelSessionAttendedConditionInput
$input: CreateSessionAttendedInput!
) {
Expand All @@ -28,6 +26,7 @@ export const createSessionAttended =
firstName
id
lastName
numberSessionsAttended
profileOwner
role
totalEarnings
Expand All @@ -38,9 +37,26 @@ export const createSessionAttended =
}
}
` as GeneratedMutation<
APITypes.CreateSessionAttendedMutationVariables,
APITypes.CreateSessionAttendedMutation
>;
APITypes.CreateSessionAttendedMutationVariables,
APITypes.CreateSessionAttendedMutation
>;
export const createTimer = /* GraphQL */ `mutation CreateTimer(
$condition: ModelTimerConditionInput
$input: CreateTimerInput!
) {
createTimer(condition: $condition, input: $input) {
createdAt
id
nextSessionDate
nextSessionTime
updatedAt
__typename
}
}
` as GeneratedMutation<
APITypes.CreateTimerMutationVariables,
APITypes.CreateTimerMutation
>;
export const createUser = /* GraphQL */ `mutation CreateUser(
$condition: ModelUserConditionInput
$input: CreateUserInput!
Expand All @@ -52,6 +68,7 @@ export const createUser = /* GraphQL */ `mutation CreateUser(
firstName
id
lastName
numberSessionsAttended
profileOwner
role
sessionsAttended {
Expand All @@ -67,8 +84,7 @@ 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!
) {
Expand All @@ -86,6 +102,7 @@ export const deleteSessionAttended =
firstName
id
lastName
numberSessionsAttended
profileOwner
role
totalEarnings
Expand All @@ -96,9 +113,26 @@ export const deleteSessionAttended =
}
}
` as GeneratedMutation<
APITypes.DeleteSessionAttendedMutationVariables,
APITypes.DeleteSessionAttendedMutation
>;
APITypes.DeleteSessionAttendedMutationVariables,
APITypes.DeleteSessionAttendedMutation
>;
export const deleteTimer = /* GraphQL */ `mutation DeleteTimer(
$condition: ModelTimerConditionInput
$input: DeleteTimerInput!
) {
deleteTimer(condition: $condition, input: $input) {
createdAt
id
nextSessionDate
nextSessionTime
updatedAt
__typename
}
}
` as GeneratedMutation<
APITypes.DeleteTimerMutationVariables,
APITypes.DeleteTimerMutation
>;
export const deleteUser = /* GraphQL */ `mutation DeleteUser(
$condition: ModelUserConditionInput
$input: DeleteUserInput!
Expand All @@ -110,6 +144,7 @@ export const deleteUser = /* GraphQL */ `mutation DeleteUser(
firstName
id
lastName
numberSessionsAttended
profileOwner
role
sessionsAttended {
Expand All @@ -125,8 +160,7 @@ 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!
) {
Expand All @@ -144,6 +178,7 @@ export const updateSessionAttended =
firstName
id
lastName
numberSessionsAttended
profileOwner
role
totalEarnings
Expand All @@ -154,9 +189,26 @@ export const updateSessionAttended =
}
}
` as GeneratedMutation<
APITypes.UpdateSessionAttendedMutationVariables,
APITypes.UpdateSessionAttendedMutation
>;
APITypes.UpdateSessionAttendedMutationVariables,
APITypes.UpdateSessionAttendedMutation
>;
export const updateTimer = /* GraphQL */ `mutation UpdateTimer(
$condition: ModelTimerConditionInput
$input: UpdateTimerInput!
) {
updateTimer(condition: $condition, input: $input) {
createdAt
id
nextSessionDate
nextSessionTime
updatedAt
__typename
}
}
` as GeneratedMutation<
APITypes.UpdateTimerMutationVariables,
APITypes.UpdateTimerMutation
>;
export const updateUser = /* GraphQL */ `mutation UpdateUser(
$condition: ModelUserConditionInput
$input: UpdateUserInput!
Expand All @@ -168,6 +220,7 @@ export const updateUser = /* GraphQL */ `mutation UpdateUser(
firstName
id
lastName
numberSessionsAttended
profileOwner
role
sessionsAttended {
Expand Down
56 changes: 49 additions & 7 deletions amplify/auth/pre-sign-up/graphql/queries.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/* tslint:disable */

/* eslint-disable */
// this is an auto generated file. This will be overwritten
import * as APITypes from "./API";

import * as APITypes from "./API";
type GeneratedQuery<InputType, OutputType> = 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
Expand All @@ -25,6 +23,7 @@ export const getSessionAttended =
firstName
id
lastName
numberSessionsAttended
profileOwner
role
totalEarnings
Expand All @@ -35,9 +34,20 @@ export const getSessionAttended =
}
}
` as GeneratedQuery<
APITypes.GetSessionAttendedQueryVariables,
APITypes.GetSessionAttendedQuery
>;
APITypes.GetSessionAttendedQueryVariables,
APITypes.GetSessionAttendedQuery
>;
export const getTimer = /* GraphQL */ `query GetTimer($id: ID!) {
getTimer(id: $id) {
createdAt
id
nextSessionDate
nextSessionTime
updatedAt
__typename
}
}
` as GeneratedQuery<APITypes.GetTimerQueryVariables, APITypes.GetTimerQuery>;
export const getUser = /* GraphQL */ `query GetUser($id: ID!) {
getUser(id: $id) {
completedRegistration
Expand All @@ -46,6 +56,7 @@ export const getUser = /* GraphQL */ `query GetUser($id: ID!) {
firstName
id
lastName
numberSessionsAttended
profileOwner
role
sessionsAttended {
Expand Down Expand Up @@ -89,6 +100,36 @@ export const listSessionAttendeds = /* GraphQL */ `query ListSessionAttendeds(
APITypes.ListSessionAttendedsQueryVariables,
APITypes.ListSessionAttendedsQuery
>;
export const listTimers = /* GraphQL */ `query ListTimers(
$filter: ModelTimerFilterInput
$id: ID
$limit: Int
$nextToken: String
$sortDirection: ModelSortDirection
) {
listTimers(
filter: $filter
id: $id
limit: $limit
nextToken: $nextToken
sortDirection: $sortDirection
) {
items {
createdAt
id
nextSessionDate
nextSessionTime
updatedAt
__typename
}
nextToken
__typename
}
}
` as GeneratedQuery<
APITypes.ListTimersQueryVariables,
APITypes.ListTimersQuery
>;
export const listUsers = /* GraphQL */ `query ListUsers(
$filter: ModelUserFilterInput
$id: ID
Expand All @@ -110,6 +151,7 @@ export const listUsers = /* GraphQL */ `query ListUsers(
firstName
id
lastName
numberSessionsAttended
profileOwner
role
totalEarnings
Expand Down
Loading

0 comments on commit d121673

Please sign in to comment.