ohmyform-ui/graphql/fragment/submission.fragment.ts
Michael Schramm 8713c0a8c6 - ability to change user passwords
- add default page background
- add environment list in [doc](doc/environment.md)
- combined notificationts to become more versatile
- use exported hooks for graphql
- links at the bottom for new users
- fixes for hide contrib setting
- upgrad all packages
2021-05-02 12:43:55 +02:00

62 lines
898 B
TypeScript

import { gql } from '@apollo/client/core'
interface SubmissionFragmentFormField {
title: string
required: boolean
}
export interface SubmissionFragmentField {
id: string
value: string
type: string
field?: SubmissionFragmentFormField
}
export interface SubmissionFragment {
id: string
created: string
lastModified?: string
percentageComplete: number
timeElapsed: number
geoLocation: {
country: string
city: string
}
device: {
type: string
name: string
}
fields: SubmissionFragmentField[]
}
export const SUBMISSION_FRAGMENT = gql`
fragment Submission on Submission {
id
created
lastModified
percentageComplete
timeElapsed
geoLocation {
country
city
}
device {
type
name
}
fields {
id
value
type
field {
title
required
}
}
}
`