123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import gql from 'graphql-tag'
- import type {
- UserError,
- UserInput,
- UserSignupInput,
- } from '#shared/graphql/types.ts'
- export interface TestAvatarQuery {
- userCurrentAvatarActive: {
- id: string
- imageFull: string
- createdAt: string
- updatedAt: string
- }
- }
- export interface TestUserQuery {
- user: {
- id: string
- fullname: string
- }
- }
- export interface TestUserUpdateMutation {
- userUpdate: {
- user: {
- id: string
- fullname: string
- authorizations: {
- id: string
- provider: string
- }[]
- }
- }
- }
- export interface TestUserUpdateVariables {
- userId: string
- input: UserInput
- }
- export interface TestUserQueryVariables {
- userId: string
- }
- export const TestAvatarDocument = gql`
- query userCurrentAvatarActive {
- userCurrentAvatarActive {
- id
- imageFull
- createdAt
- updatedAt
- }
- }
- `
- export interface TestTicketArticlesMultipleQuery {
- description: {
- edges: {
- node: {
- id: string
- bodyWithUrls: string
- }
- }[]
- }
- articles: {
- totalCount: number
- edges: {
- node: {
- id: string
- bodyWithUrls: string
- }
- cursor: string
- }[]
- pageInfo: {
- endCursor: string
- startCursor: string
- hasPreviousPage: boolean
- }
- }
- }
- export const TestTicketArticlesMultiple = gql`
- query ticketArticles($ticketId: ID!, $beforeCursor: String) {
- description: ticketArticles(ticket: { ticketId: $ticketId }, first: 1) {
- edges {
- node {
- id
- bodyWithUrls
- }
- }
- }
- articles: ticketArticles(
- ticket: { ticketId: $ticketId }
- before: $beforeCursor
- ) {
- totalCount
- edges {
- node {
- id
- bodyWithUrls
- }
- cursor
- }
- pageInfo {
- endCursor
- startCursor
- hasPreviousPage
- }
- }
- }
- `
- export const TestUserDocument = gql`
- query user($userId: ID) {
- user(user: { userId: $userId }) {
- id
- fullname
- }
- }
- `
- export const TestUserUpdateDocument = gql`
- mutation userUpdate($userId: ID, $input: UserInput!) {
- userUpdate(id: $userId, input: $input) {
- user {
- id
- fullname
- authorizations {
- id
- provider
- }
- }
- }
- }
- `
- export interface TestAvatarMutation {
- userCurrentAvatarAdd: {
- avatar: {
- id: string
- imageFull: string
- }
- errors: UserError[]
- }
- }
- export const TestAvatarActiveMutationDocument = gql`
- mutation userCurrentAvatarAdd($images: AvatarInput!) {
- userCurrentAvatarAdd(images: $images) {
- avatar {
- id
- imageFull
- }
- errors {
- message
- field
- }
- }
- }
- `
- export interface TestUserUpdatesSubscription {
- userUpdates: {
- user: {
- id: string
- fullname: string
- }
- }
- }
- export interface TestUserUpdatesSubscriptionVariables {
- userId: string
- }
- export const TestUserUpdatesDocument = gql`
- subscription userUpdates($userId: ID!) {
- userUpdates(userId: $userId) {
- user {
- id
- fullname
- }
- }
- }
- `
- export interface TestAutocompleteArrayFirstLevelQuery {
- autocompleteSearchObjectAttributeExternalDataSource: {
- value: number
- label: string
- }[]
- }
- export const TestAutocompleteArrayFirstLevel = gql`
- query autocompleteSearchObjectAttributeExternalDataSource(
- $input: AutocompleteSearchObjectAttributeExternalDataSourceInput!
- ) {
- autocompleteSearchObjectAttributeExternalDataSource(input: $input) {
- value
- label
- }
- }
- `
- export const TestUserSignupMutationDocument = gql`
- mutation userSignup($input: UserSignupInput!) {
- userSignup(input: $input) {
- success
- errors {
- ...errors
- }
- }
- }
- `
- export interface TestUserSignupMutationQuery {
- userSignup: {
- success: boolean
- errors: UserError[] | null
- }
- }
- export interface TestUserSignupArgs {
- input: UserSignupInput
- }
|