omnivore/packages/web/lib/networking/fragments/labelFragment.ts
2022-04-12 12:23:55 -07:00

28 lines
No EOL
412 B
TypeScript

import { gql } from 'graphql-request'
export type LabelColor =
| '#FF5D99'
| '#7CFF7B'
| '#FFD234'
| '#7BE4FF'
| '#CE88EF'
| '#EF8C43'
| 'custom color';
export const labelFragment = gql`
fragment LabelFields on Label {
id
name
color
description
createdAt
}
`
export type Label = {
id: string
name: string
color: LabelColor
description?: string
createdAt: Date
}