import type * as Types from '../schema'; import gql from 'graphql-tag'; import * as Urql from '@urql/vue'; export type Omit = Pick>; export type AddReferralLaboratoryMutationVariables = Types.Exact<{ payload: Types.ReferralLaboratoryInputType; }>; export type AddReferralLaboratoryMutation = ( { __typename?: 'Mutation' } & { createReferralLaboratory: ( { __typename: 'OperationError' } & Pick ) | ( { __typename: 'ReferralLaboratoryType' } & Pick ) } ); export type EditReferralLaboratoryMutationVariables = Types.Exact<{ uid: Types.Scalars['String']['input']; payload: Types.ReferralLaboratoryInputType; }>; export type EditReferralLaboratoryMutation = ( { __typename?: 'Mutation' } & { updateReferralLaboratory: ( { __typename: 'OperationError' } & Pick ) | ( { __typename: 'ReferralLaboratoryType' } & Pick ) } ); export type AddShipmentMutationVariables = Types.Exact<{ payload: Types.ShipmentInputType; }>; export type AddShipmentMutation = ( { __typename?: 'Mutation' } & { createShipment: ( { __typename: 'OperationError' } & Pick ) | ( { __typename: 'ShipmentListingType' } & { shipments?: Types.Maybe & { laboratory?: Types.Maybe<( { __typename?: 'ReferralLaboratoryType' } & Pick )> } )>> } ) } ); export type UpdateShipmentMutationVariables = Types.Exact<{ uid: Types.Scalars['String']['input']; payload: Types.ShipmentUpdateInputType; }>; export type UpdateShipmentMutation = ( { __typename?: 'Mutation' } & { updateShipment: ( { __typename: 'OperationError' } & Pick ) | ( { __typename: 'ShipmentType' } & Pick & { laboratory?: Types.Maybe<( { __typename?: 'ReferralLaboratoryType' } & Pick )> } ) } ); export type ShipmentManageSamplesMutationVariables = Types.Exact<{ uid: Types.Scalars['String']['input']; payload: Types.ShipmentManageSamplesInput; }>; export type ShipmentManageSamplesMutation = ( { __typename?: 'Mutation' } & { shipmentManageSamples: ( { __typename: 'OperationError' } & Pick ) | ( { __typename: 'ShipmentType' } & Pick & { laboratory?: Types.Maybe<( { __typename?: 'ReferralLaboratoryType' } & Pick )>, samples?: Types.Maybe & { analysisRequest?: Types.Maybe<( { __typename?: 'AnalysisRequestType' } & { patient: ( { __typename?: 'PatientType' } & Pick ) } )>, analyses?: Types.Maybe )>> } )>> } ) } ); export type ActionShipmentMutationVariables = Types.Exact<{ uid: Types.Scalars['String']['input']; action: Types.Scalars['String']['input']; }>; export type ActionShipmentMutation = ( { __typename?: 'Mutation' } & { actionShipment: ( { __typename: 'OperationError' } & Pick ) | ( { __typename: 'ShipmentType' } & Pick ) } ); export const AddReferralLaboratoryDocument = gql` mutation AddReferralLaboratory($payload: ReferralLaboratoryInputType!) { createReferralLaboratory(payload: $payload) { ... on ReferralLaboratoryType { __typename uid name code url password username isReferral isReference } ... on OperationError { __typename error suggestion } } } `; export function useAddReferralLaboratoryMutation() { return Urql.useMutation(AddReferralLaboratoryDocument); }; export const EditReferralLaboratoryDocument = gql` mutation EditReferralLaboratory($uid: String!, $payload: ReferralLaboratoryInputType!) { updateReferralLaboratory(uid: $uid, payload: $payload) { ... on ReferralLaboratoryType { __typename uid name code url password username isReferral isReference } ... on OperationError { __typename error suggestion } } } `; export function useEditReferralLaboratoryMutation() { return Urql.useMutation(EditReferralLaboratoryDocument); }; export const AddShipmentDocument = gql` mutation AddShipment($payload: ShipmentInputType!) { createShipment(payload: $payload) { ... on ShipmentListingType { __typename shipments { uid shipmentId assignedCount state laboratoryUid laboratory { name } createdAt laboratoryUid } } ... on OperationError { __typename error suggestion } } } `; export function useAddShipmentMutation() { return Urql.useMutation(AddShipmentDocument); }; export const UpdateShipmentDocument = gql` mutation UpdateShipment($uid: String!, $payload: ShipmentUpdateInputType!) { updateShipment(uid: $uid, payload: $payload) { ... on ShipmentType { __typename uid shipmentId assignedCount state incoming comment createdAt courier laboratory { uid name } } ... on OperationError { __typename error suggestion } } } `; export function useUpdateShipmentMutation() { return Urql.useMutation(UpdateShipmentDocument); }; export const ShipmentManageSamplesDocument = gql` mutation shipmentManageSamples($uid: String!, $payload: ShipmentManageSamplesInput!) { shipmentManageSamples(uid: $uid, payload: $payload) { ... on ShipmentType { __typename uid shipmentId assignedCount state incoming comment createdAt courier laboratory { uid name } samples { uid sampleId status analysisRequest { patient { uid } } analyses { uid name keyword } } } ... on OperationError { __typename error suggestion } } } `; export function useShipmentManageSamplesMutation() { return Urql.useMutation(ShipmentManageSamplesDocument); }; export const ActionShipmentDocument = gql` mutation actionShipment($uid: String!, $action: String!) { actionShipment(uid: $uid, action: $action) { ... on ShipmentType { __typename uid state } ... on OperationError { __typename error suggestion } } } `; export function useActionShipmentMutation() { return Urql.useMutation(ActionShipmentDocument); };