chore: Use integer for IDs of resources

This commit is contained in:
Faruk AYDIN
2021-12-26 13:41:46 +03:00
committed by Ömer Faruk Aydın
parent a58411ee99
commit 3f2f1212c9
29 changed files with 172 additions and 103 deletions

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const CREATE_AUTH_DATA = gql`
mutation createAuthData($id: String!) {
mutation createAuthData($id: Int!) {
createAuthData(id: $id) {
url
}

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const DELETE_CONNECTION = gql`
mutation DeleteConnection($id: String!) {
mutation DeleteConnection($id: Int!) {
deleteConnection(id: $id)
}
`;

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const RESET_CONNECTION = gql`
mutation ResetConnection($id: String!) {
mutation ResetConnection($id: Int!) {
resetConnection(id: $id) {
id
}

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const UPDATE_CONNECTION = gql`
mutation UpdateConnection($id: String!, $data: JSONObject!) {
mutation UpdateConnection($id: Int!, $data: JSONObject!) {
updateConnection(id: $id, data: $data) {
id
key

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const VERIFY_CONNECTION = gql`
mutation VerifyConnection($id: String!) {
mutation VerifyConnection($id: Int!) {
verifyConnection(id: $id) {
id
verified

View File

@@ -1,7 +1,7 @@
import { gql } from '@apollo/client';
export const GET_FLOW = gql`
query GetFlow($id: String!) {
query GetFlow($id: Int!) {
getFlow(id: $id) {
id
name
@@ -14,4 +14,4 @@ export const GET_FLOW = gql`
}
}
}
`;
`;

View File

@@ -1,10 +1,10 @@
import { gql } from '@apollo/client';
export const TEST_CONNECTION = gql`
query TestConnection($id: String!) {
query TestConnection($id: Int!) {
testConnection(id: $id) {
id
verified
}
}
`;
`;