Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyenHuang committed Apr 8, 2024
1 parent f523dd3 commit b807b8e
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 10 deletions.
2 changes: 1 addition & 1 deletion amplify/backend/auth/aray6131feb9/cli-inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
"Ref": "AWS::StackId"
}
}
}
}
8 changes: 0 additions & 8 deletions amplify/backend/backend-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,6 @@
}
]
},
"AMPLIFY_function_aray6131feb9PostConfirmation_GROUP": {
"usedBy": [
{
"category": "function",
"resourceName": "aray6131feb9PostConfirmation"
}
]
},
"AMPLIFY_function_aray6131feb9PostConfirmation_deploymentBucketName": {
"usedBy": [
{
Expand Down
2 changes: 1 addition & 1 deletion amplify/backend/types/amplify-dependent-resources-ref.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ export type AmplifyDependentResourcesAttributes = {
"Region": "string"
}
}
}
}
57 changes: 57 additions & 0 deletions src/graphql/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,63 @@ export const deleteEventAttendance = /* GraphQL */ `
}
}
`;
export const createEventProject = /* GraphQL */ `
mutation CreateEventProject(
$input: CreateEventProjectInput!
$condition: ModelEventProjectConditionInput
) {
createEventProject(input: $input, condition: $condition) {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
}
`;
export const updateEventProject = /* GraphQL */ `
mutation UpdateEventProject(
$input: UpdateEventProjectInput!
$condition: ModelEventProjectConditionInput
) {
updateEventProject(input: $input, condition: $condition) {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
}
`;
export const deleteEventProject = /* GraphQL */ `
mutation DeleteEventProject(
$input: DeleteEventProjectInput!
$condition: ModelEventProjectConditionInput
) {
deleteEventProject(input: $input, condition: $condition) {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
}
`;
export const createGovernmentAgency = /* GraphQL */ `
mutation CreateGovernmentAgency(
$input: CreateGovernmentAgencyInput!
Expand Down
72 changes: 72 additions & 0 deletions src/graphql/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,78 @@ export const getEventAttendancesByUsernameByCreatedAt = /* GraphQL */ `
}
}
`;
export const getEventProject = /* GraphQL */ `
query GetEventProject($id: ID!) {
getEventProject(id: $id) {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
}
`;
export const listEventProjects = /* GraphQL */ `
query ListEventProjects(
$filter: ModelEventProjectFilterInput
$limit: Int
$nextToken: String
) {
listEventProjects(filter: $filter, limit: $limit, nextToken: $nextToken) {
items {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
nextToken
}
}
`;
export const getEventProjectsByEventIdByStatus = /* GraphQL */ `
query GetEventProjectsByEventIdByStatus(
$eventId: ID
$status: ModelStringKeyConditionInput
$sortDirection: ModelSortDirection
$filter: ModelEventProjectFilterInput
$limit: Int
$nextToken: String
) {
getEventProjectsByEventIdByStatus(
eventId: $eventId
status: $status
sortDirection: $sortDirection
filter: $filter
limit: $limit
nextToken: $nextToken
) {
items {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
nextToken
}
}
`;
export const getGovernmentAgency = /* GraphQL */ `
query GetGovernmentAgency($id: ID!) {
getGovernmentAgency(id: $id) {
Expand Down
48 changes: 48 additions & 0 deletions src/graphql/subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,54 @@ export const onDeleteEventAttendance = /* GraphQL */ `
}
}
`;
export const onCreateEventProject = /* GraphQL */ `
subscription OnCreateEventProject {
onCreateEventProject {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
}
`;
export const onUpdateEventProject = /* GraphQL */ `
subscription OnUpdateEventProject {
onUpdateEventProject {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
}
`;
export const onDeleteEventProject = /* GraphQL */ `
subscription OnDeleteEventProject {
onDeleteEventProject {
id
eventId
projectId
status
title
description
createdAt
createdBy
updatedAt
updatedBy
}
}
`;
export const onCreateGovernmentAgency = /* GraphQL */ `
subscription OnCreateGovernmentAgency {
onCreateGovernmentAgency {
Expand Down

0 comments on commit b807b8e

Please sign in to comment.