Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed type errors by stricter absinthe check #1865

Merged
merged 4 commits into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/graphql/mutations/Flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const UPDATE_FLOW = gql`
`;

export const PUBLISH_FLOW = gql`
mutation publishFlow($uuid: UUID!) {
mutation publishFlow($uuid: UUID4!) {
publishFlow(uuid: $uuid) {
success
errors {
Expand Down Expand Up @@ -90,7 +90,7 @@ export const CREATE_FLOW_COPY = gql`
`;

export const IMPORT_FLOW = gql`
mutation importFlow($flow: Json) {
mutation importFlow($flow: Json!) {
importFlow(flow: $flow) {
success
errors {
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/mutations/InteractiveMessage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';

export const CREATE_INTERACTIVE = gql`
mutation createInteractiveTemplate($input: interactiveTemplateInput!) {
mutation createInteractiveTemplate($input: InteractiveTemplateInput!) {
createInteractiveTemplate(input: $input) {
interactiveTemplate {
id
Expand All @@ -23,7 +23,7 @@ export const CREATE_INTERACTIVE = gql`
`;

export const UPDATE_INTERACTIVE = gql`
mutation updateInteractiveTemplate($id: ID!, $input: interactiveTemplateInput!) {
mutation updateInteractiveTemplate($id: ID!, $input: InteractiveTemplateInput!) {
updateInteractiveTemplate(id: $id, input: $input) {
interactiveTemplate {
id
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/mutations/Trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const CREATE_TRIGGER = gql`
`;

export const UPDATE_TRIGGER = gql`
mutation updateTrigger($id: ID!, $input: TriggerUpdateInput!) {
mutation updateTrigger($id: ID!, $input: TriggerInput!) {
updateTrigger(id: $id, input: $input) {
trigger {
days
Expand Down
6 changes: 3 additions & 3 deletions src/graphql/queries/Search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const SEARCH_QUERY = gql`
`;

export const SAVED_SEARCH_QUERY = gql`
query savedSearches($filter: SavedSearchFilters!, $opts: SavedSearchOpts!) {
query savedSearches($filter: SavedSearchFilter!, $opts: Opts) {
savedSearches(filter: $filter, opts: $opts) {
id
shortcode
Expand Down Expand Up @@ -271,7 +271,7 @@ export const SCROLL_HEIGHT = gql`
`;

export const SEARCH_LIST_QUERY = gql`
query savedSearches($filter: SavedSearchFilters!, $opts: SavedSearchOpts!) {
query savedSearches($filter: SavedSearchFilter!, $opts: Opts!) {
savedSearches(filter: $filter, opts: $opts) {
id
shortcode
Expand All @@ -289,7 +289,7 @@ export const SEARCH_QUERY_COUNT = gql`
`;

export const GET_SEARCH = gql`
query savedSearches($id: ID) {
query savedSearches($id: ID!) {
savedSearch(id: $id) {
savedSearch {
id
Expand Down